-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V6 (Chakra UI V3) #341
base: main
Are you sure you want to change the base?
V6 (Chakra UI V3) #341
Conversation
📊 Package size report -2.59%↓
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
Open in Stackblitz • chakra-react-select-demo
commit: |
The |
@JAD3N Good callout, I had seen the release notification but forgot to handle the implementation. I just went ahead and published In order to ensure everything still works, I also went ahead and updated all of the dependencies of the demo so that is now also on EDIT: Actually, I just pushed one more new version with a minimum |
This is still very much a work in progress, I'm just going to leave this open in draft state while I work on it.
To test out the Chakra V3 compatible version, install it using the following.
npm i chakra-react-select@next # or yarn add chakra-react-select@next
Just to keep track, here are some loosely formatted notes on what changed:
select
component (except for the control which still uses input styles).colorScheme
is nowcolorPalette
tagColorScheme
->tagColorPalette
selectedOptionColorScheme
->selectedOptionColorPalette
colorScheme
->colorPalette
chakraComponents.LoadingIndicator
:emptyColor
->trackColor
(this isn't a real prop, but it maps to the--spinner-track-color
css variable).speed
->animationDuration
thickness
->borderWidth
colorPalette
was 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).focusBorderColor
was replaced withfocusRingColor
anderrorBorderColor
was removed.is
prefix removed:isRequired
is now therequired
attribute that's already built-in toreact-select
.isReadOnly
->readOnly
isInvalid
->invalid
disabled
, which will override theisDisabled
prop built-in toreact-select
menuPlacement
of"auto"
. This is to more closely match the default flipping behavior of the ChakraSelect
.EDIT: I just released the first release candidate version
v6.0.0-rc.0
, which can be installed using therc
tag:For more info on what's changed and what's left, see this comment: #341 (comment)
Remaining Tasks
useSize
hook