Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

6.0.0#350

6.0.0#350
Jan 8, 2025· 1 comments· 1 reply
Discussion options

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 topost an issue ora 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

  • Most of the styles pulled from the theme are now using styles from Chakra's newSelect component.
    • The exceptions are theControl, which still uses styles from theInput theme, and theMultiValue components, which still pull their styles from theTag theme. 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.
  • Everything that was previously namedcolorScheme is now namedcolorPalette:https://www.chakra-ui.com/docs/get-started/migration#colorscheme-prop
    • tagColorScheme is nowtagColorPalette.
    • selectedOptionColorScheme is nowselectedOptionColorPalette.
    • An individual option'scolorScheme key is nowcolorPalette.
  • Some props were replaced onchakraComponents.LoadingIndicator:
  • TheLoadingIndicator component no longer changes size in response to changes to the rootsize prop. With the new default size, the default spinner size ended up looking the best across all three select sizes.
  • focusBorderColor was replaced withfocusRingColor anderrorBorderColor was removed, as there is no longer any equivalent prop that exists.
  • All boolean props have had theis prefix removed:https://www.chakra-ui.com/docs/get-started/migration#boolean-props
    • isRequired is now therequired attribute that's already built-in toreact-select. It will behave the same as therequired prop on any other Chakra component.
    • isReadOnly is nowreadOnly
    • isInvalid is nowinvalid. This prop was removed from the coreInput,Select, andTextarea components 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-textarea
    • Addsdisabled, which will override theisDisabled prop built-in toreact-select
      • This is just to keep the props consistent with the other Chakra prop names. TheisDisabled prop from React Select will still function as it did previously.
  • Add a default for themenuPlacement of"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 release6.0.0.
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Congrats for this huge work!! Very great library that you've done!

You must be logged in to vote
1 reply
@csandman
Comment options

csandmanJan 14, 2025
Maintainer Author

Thanks a lot! It was a big lift getting this version out, so I'm happy it's finally ready to go.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@csandman@lcswillems

[8]ページ先頭

©2009-2025 Movatter.jp