title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 1.6.0 |
Explore the changelog for Chakra UI version 1.6.0. Learn about the latest features, bug fixes, and improvements. |
April 23, 2021 |
1.6.0 |
-
82f08867f
#3864 Thanks @segunadebayo! - > Note: This is an internal package.Improve performance of registering, filtering and finding the index of descendants in a disclosure(open/close) widget.
Mostly used by the accordion, menu, tabs and pin-input components.
- Updated dependencies
[
82f08867f
]
-
e7261d536
#3841 Thanks @LekoArts! - Upgrading to this new major version is recommended for everyone as it fixes hot reloading in Gatsby (Fast Refresh). In the previous version changes to the shadowedtheme.js
file didn't trigger automatic reloading, and a manual reload was necessary.- The
isUsingColorMode
option was removed. TheChakraProvider
will always use theColorModeProvider
- The
isResettingCSS
option was renamed toresetCSS
Those changes were made to use the current
ChakraProvider
and align the prop names.- Use
ChakraProvider
instead of the outdatedThemeProvider
pattern - Add
initialColorMode
to theColorModeScript
- Allow Fast Refresh reloading of all theme files
- Set stricter
peerDependency
ongatsby
(to^2.29.3 || ^3.0.0
)
- The
82f08867f
#3864 Thanks @segunadebayo! - Update tabs and accordion to use updated descendants logic
52748f4e5
Thanks @segunadebayo! - Upgrade valtio to v1
d14c97420
#3864 Thanks @segunadebayo! - - Update menu to use new descendants logic.- Fix issue where menu doesn't select menu item when the first item is disabled.
- Fix issue where menu doesn't work when an input is used within it.
17c57be68
#3864 Thanks @segunadebayo! - Update pin-input to use the new descendants logic
-
1d5e55272
#3511 Thanks @TimKolberger! - TheextendTheme
function allows you to pass multiple overrides or extensions:import { extendTheme, withDefaultColorScheme, withDefaultSize, withDefaultVariant, withDefaultProps, } from "@chakra-ui/react" const customTheme = extendTheme( { colors: { brand: { // ... 500: "#b4d455", // ... }, }, }, withDefaultColorScheme({ colorScheme: "brand" }), withDefaultSize({ size: "lg", components: ["Input", "NumberInput", "PinInput"], }), withDefaultVariant({ variant: "outline", components: ["Input", "NumberInput", "PinInput"], }), // or all in one: withDefaultProps({ defaultProps: { colorScheme: "brand", variant: "outline", size: "lg", }, components: ["Input", "NumberInput", "PinInput"], }), // optional: yourCustomBaseTheme, // defaults to our chakra default theme )
- Updated dependencies
[
17c57be68
,1f94620a1
,82f08867f
,ad8a7b9f1
,d14c97420
,04be15201
,946f8eab5
,1d5e55272
,e9ac4cc76
]
-
82f08867f
#3864 Thanks @segunadebayo! - Update tabs and accordion to use updated descendants logic -
04be15201
#3864 Thanks @segunadebayo! - Add support for RTL keyboard navigation
e9ac4cc76
#3511 Thanks @TimKolberger! - - Addpipe
function- Add generic to
isFunction
guard
- Add generic to
ad8a7b9f1
#3875 Thanks @antoniel! - Resolved an issue where thetype
prop of theButton
component was set toundefined
.- Updated dependencies
[
82f08867f
,e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
82f08867f
]
-
82f08867f
#3864 Thanks @segunadebayo! - Update types formergeRefs
to include null -
Updated dependencies [
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
-
1d5e55272
#3511 Thanks @TimKolberger! - TheextendTheme
function allows you to pass multiple overrides or extensions:import { extendTheme, withDefaultColorScheme, withDefaultSize, withDefaultVariant, withDefaultProps, } from "@chakra-ui/react" const customTheme = extendTheme( { colors: { brand: { // ... 500: "#b4d455", // ... }, }, }, withDefaultColorScheme({ colorScheme: "brand" }), withDefaultSize({ size: "lg", components: ["Input", "NumberInput", "PinInput"], }), withDefaultVariant({ variant: "outline", components: ["Input", "NumberInput", "PinInput"], }), // or all in one: withDefaultProps({ defaultProps: { colorScheme: "brand", variant: "outline", size: "lg", }, components: ["Input", "NumberInput", "PinInput"], }), // optional: yourCustomBaseTheme, // defaults to our chakra default theme )
-
Updated dependencies [
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
e9ac4cc76
]
@chakra-ui/visually-hidden@1.0.11
- Updated dependencies
[
e9ac4cc76
]
- Updated dependencies
[
1d5e55272
]
e7261d536
#3841 Thanks @LekoArts! - Updates to Gatsby-related documentation to account for the breaking changes made in PR #3841. The "Providers" section from the Gatsby guide was removed as the plugin itself handles everything already.
- Updated dependencies
[
1d5e55272
]