Skip to content
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

Create styles context #161

Merged
merged 5 commits into from
Jul 20, 2022
Merged

Create styles context #161

merged 5 commits into from
Jul 20, 2022

Conversation

csandman
Copy link
Owner

@csandman csandman commented Jul 20, 2022

  • Remove all instances of createStylesContext [0bbb7ad] - closes [BUG] When upgrading to React18/Chakra2: createStylesContext is not a function #159
    • Instead of returning to the deprecated StylesProvider/useStyles, use the useMultiStyleConfig hook in each part of the multi-part components.
  • Convert each instance of the SystemStyleObject interface to the CSSObject interface.
    • No big reason for this as they are identical, mainly just because the sx prop on Chakra components specifically expects the CSSObject type.
  • Add small horizontal spacing around the Input component to better visually match the original react-select
  • Update all devDependencies:
 @babel/cli                              ^7.18.6  →   ^7.18.9     
 @babel/core                             ^7.18.6  →   ^7.18.9     
 @babel/preset-env                       ^7.18.6  →   ^7.18.9     
 @chakra-ui/babel-plugin                  ^1.0.3  →    ^1.0.4     
 @chakra-ui/form-control                  ^2.0.2  →    ^2.0.4     
 @chakra-ui/icon                          ^3.0.2  →    ^3.0.4     
 @chakra-ui/layout                        ^2.0.2  →    ^2.1.1     
 @chakra-ui/menu                          ^2.0.3  →    ^2.0.6     
 @chakra-ui/spinner                       ^2.0.2  →    ^2.0.4     
 @chakra-ui/system                        ^2.1.3  →    ^2.2.2     
 @trivago/prettier-plugin-sort-imports    ^3.2.0  →    ^3.3.0     
 @types/react                           ^18.0.14  →  ^18.0.15     
 @typescript-eslint/eslint-plugin        ^5.30.0  →   ^5.30.7     
 @typescript-eslint/parser               ^5.30.0  →   ^5.30.7     
 concurrently                             ^7.2.2  →    ^7.3.0     
 eslint                                  ^8.18.0  →   ^8.20.0     
 nodemon                                 ^2.0.18  →   ^2.0.19

@csandman csandman merged commit 0c0cdbc into main Jul 20, 2022
@csandman csandman deleted the create-styles-context branch July 20, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] When upgrading to React18/Chakra2: createStylesContext is not a function
2 participants