-
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
V6 (Chakra UI V3) #341
Conversation
📊 Package size report -2.15%↓
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
Open in Stackblitz • chakra-react-select-demo
commit: |
@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 |
I have been using rc.4 and it has been working great so far. I had to adjust some of the old styling, but the it was more of removing them since the default out of the box in chakra v3 works great. |
Thanks for the feedback! When you say "removing them", do you mean removing custom styling you previously had using the chakraStyles prop or something? The goal of the styling for this package has always been to rely on Chakra styles directly as much as possible, adding only minimal overrides to bridge the gap between the differences in DOM structure between the built-in Chakra components and React Select components, as well as their differences in the absolute positioning of the popover. Previously, I had to rely on pulling in styles from the closest available counterpart to a select, that being the Chakra Hopefully, this should make it much easier for people to rely on their own theme styles in order to make this component appear as they'd like it to. And also to hopefully be styled more like they'd expect it to be in general, with less quirks when it comes to styles that are unexpectedly necessary to override. |
Ok all, the official release is most likely coming Monday! Thanks for all the support! |
Sorry for the late reply, I meant that the old styling was specific to chakra-v2 customization to match my app. It did not break anything (if I remember correctly), but it was more of just a small clean up. Looking forward to the new release :D |
v6 is officially released, give it a try and let me know if anything isn't working right! |
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.This version is now in the final stages, and should be fully production ready! For anyone interested in upgrading to Chakra v3, you can install the latest version of this package by using the
rc
tag:npm i chakra-react-select@rc # or yarn add chakra-react-select@rc
I included a checklist of remaining items that need to be finished before publishing a full release at the bottom of this post. At this point, it's just documentation changes.
Here is a list of breaking changes that should be kept in mind when upgrading:
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, as there is no longer any equivalent prop that exists.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
.Remaining Tasks
useSize
hook