title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 1.8.4 |
Explore the changelog for Chakra UI version 1.8.4. Learn about the latest features, bug fixes, and improvements. |
February 20, 2022 |
1.8.4 |
-
#5579
b0da6e666
Thanks @jrolfs! - Modify theme types to make it possible to customize token types via TypeScript module augmentation and declaration merging in addition to allowing customization via the Chakra CLI.This makes it possible to do the following:
- Distribute custom types with a component library based on Chakra
- Customize theme types by hand
- Version control your theme types
To customize themes using the new mechanism, augment the
CustomThemeTypings
type in a definitions file such astypes/chakra.d.ts
:⚠️ NOTE: yourCustomThemeTypings
must implement/extendBaseThemeTypings
, otherwise the types will fall back to the default Chakra types (or custom output from @chakra-ui/cli)import { BaseThemeTypings } from "@chakra-ui/styled-system"; type DefaultSizes = 'small' | 'medium' | 'large'; declare module "@chakra-ui/styled-system" { export interface CustomThemeTypings extends BaseThemeTypings { // Example custom `borders` tokens borders: 'none' | 'thin' | 'thick'; // ... // Other custom tokens // ... components: { Button: { // Example custom component sizes and variants sizes: DefaultSizes; variants: 'solid' | 'outline' | 'wacky' | 'chill'; }; // ... } }
- Updated dependencies
[
a870e6b94
]
-
#5508
e5e0f255c
Thanks @TimKolberger! - Allow allJSX.IntrinsicElements
for the chakra factory. This allows to use every DOM element with the shorthand version:<chakra.header>Header</chakra.header> <chakra.main>Main</chakra.main> <chakra.footer>Many more</chakra.footer>
- #5595
0542b8a53
Thanks @takethefake! - Add a new multi style partroot
to the Accordion component. It is applied to the topmost DOM element. - Updated dependencies
[
a870e6b94
,c2bcba11c
]
- #5595
0542b8a53
Thanks @takethefake! - Add a new multi style partroot
to the Accordion component. It is applied to the topmost DOM element. - Updated dependencies
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
-
#5564
44c9fab5b
Thanks @santialbo! - AddFormControl
support foruseCheckbox
-
Updated dependencies [
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
-
#5597
c2bcba11c
Thanks @m4x3d! - Add missing word in comment ofCreateIconOptions
-
Updated dependencies [
a870e6b94
]
- Updated dependencies
[
c2bcba11c
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
-
#5574
eca771a9a
Thanks @nikolovlazar! - Added props descriptions to Show / Hide components -
#5576
a870e6b94
Thanks @TimKolberger! - Fixed an issue where the hookuseBreakpoint
did not update after the first page load. -
#5625
99c92df93
Thanks @TimKolberger! - Fixed an issue where theuseBreakpointValue
hook did not work as expected with custom breakpoints -
Updated dependencies [
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
-
#5422
5aa79f81c
Thanks @dqn! - FixuseAriaHidden
hook dependency to make it work as expected -
Updated dependencies [
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
c5eb9c03c
,eca771a9a
,44c9fab5b
,a870e6b94
,a870e6b94
,5aa79f81c
,c2bcba11c
,e5e0f255c
,99c92df93
,5d4abe4b6
,0542b8a53
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- #5500
c5eb9c03c
Thanks @kk21! - Fixed a UI issue where the Switch component rendered a few pixels off the baseline. - Updated dependencies
[
44c9fab5b
,a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
-
#5599
5d4abe4b6
Thanks @m4x3d! - Change order of aria-label prop on TagCloseButton to be over-writable
- Updated dependencies
[
a870e6b94
]
- #5595
0542b8a53
Thanks @takethefake! - Add a new multi style partroot
to the Accordion component. It is applied to the topmost DOM element. - Updated dependencies
[
a870e6b94
,0542b8a53
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
a870e6b94
]
- #5576
a870e6b94
Thanks @TimKolberger! - Fixed an issue wherequeryString()
created invalid media queries when min and max were set.
@chakra-ui/visually-hidden@1.1.5
- Updated dependencies
[
a870e6b94
]
- Updated dependencies
[
b0da6e666
]
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies