6.0.0 #350
csandman
announced in
Announcements
6.0.0
#350
Replies: 1 comment 1 reply
-
|
Congrats for this huge work!! Very great library that you've done! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Finally, a Chakra V3 compatible version is ready to go! There were many breaking changes in the V3 release of Chakra UI, so this version took a while, but it's now ready for use in production. Thanks to everyone who tested out the pre-releases and gave feedback.
The docs should be fully updated, but if anything doesn't make sense after the release, don't hesitate to post an issue or a discussion. Unfortunately, due to the size of this release, there won't be a codemod available for migrating (similar to the core Chakra library). Here are all of the breaking changes that should be noted when upgrading.
Breaking Changes
Selectcomponent.Control, which still uses styles from theInputtheme, and theMultiValuecomponents, which still pull their styles from theTagtheme. The docs have been updated to list out which theme styles are being used for each React Select sub-component: https://github.com/csandman/chakra-react-select#theme-styles.colorSchemeis now namedcolorPalette: https://www.chakra-ui.com/docs/get-started/migration#colorscheme-proptagColorSchemeis nowtagColorPalette.selectedOptionColorSchemeis nowselectedOptionColorPalette.colorSchemekey is nowcolorPalette.chakraComponents.LoadingIndicator:emptyColoris nowtrackColor(this isn't a real prop, but it maps to the--spinner-track-colorcss variable).speedis nowanimationDuration.thicknessis nowborderWidth.colorPalettewas also added to the loading indicator which can be used to set the color without specifying a token number (responds better to changes between light and dark mode).LoadingIndicatorcomponent no longer changes size in response to changes to the rootsizeprop. With the new default size, the default spinner size ended up looking the best across all three select sizes.focusBorderColorwas replaced withfocusRingColoranderrorBorderColorwas removed, as there is no longer any equivalent prop that exists.isprefix removed: https://www.chakra-ui.com/docs/get-started/migration#boolean-propsisRequiredis now therequiredattribute that's already built-in toreact-select. It will behave the same as therequiredprop on any other Chakra component.isReadOnlyis nowreadOnlyisInvalidis nowinvalid. This prop was removed from the coreInput,Select, andTextareacomponents in the Chakra UI library in favor of passing them into a wrappingField.Root. However, they were left on this package due to many users not always wrapping theSelect: https://www.chakra-ui.com/docs/get-started/migration#input-select-textareadisabled, which will override theisDisabledprop built-in toreact-selectisDisabledprop from React Select will still function as it did previously.menuPlacementof"auto". This is to more closely match the default flipping behavior of the ChakraSelect.One other change to note is that most of the other custom StackBlitz demos were removed from the readme. These were very time consuming to maintain, so they were removed to prevent confusion. However, most of the advanced examples were added to the main demo, so if you'd like to see how any of them have changed, you can check there.
The main demo is now a direct copy of the demo project included in this repo. This should make maintenance much easier going forward, as this will always be the basis for testing future changes.
Full Changelog: v5.0.2...v6.0.0
This discussion was created from the release 6.0.0.
Beta Was this translation helpful? Give feedback.
All reactions