title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 1.4.2 |
Explore the changelog for Chakra UI version 1.4.2. Learn about the latest features, bug fixes, and improvements. |
March 30, 2021 |
1.4.2 |
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
6ab82ca37
Thanks @segunadebayo! - Fix rtl styles for avatar
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
69ae9f68e
Thanks @segunadebayo! - - AddgetRootProps
to usecheckbox hook to manage props passed to checkbox container.-
Forward
onFocus
andonBlur
props to the input element for better integration with form libraries. -
Ensure the checkbox works when the root element is not
label
. This helps to fix the current accessibility issues with theSwitch
component.
-
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
f9b1a2a9b
Thanks @segunadebayo! - Expose setvalue function to allow update state without onchange
-
428593906
#3664 Thanks @segunadebayo! - Fix issue where onChange is called when value did not change
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
fa9350eff
#3689 Thanks @segunadebayo! - RefactoruseFormControlProvider
to return prop gettersgetHelpTextProps
,getErrorMessageProps
, andgetRootProps
.Detect helper text and error message using
ref
callback instead ofuseLayoutEffect
Create
useFormControlProps
to provide a way to get the resolved form control propsisInvalid
,isDisabled
, instead of HTML attributes. This will make it easier to integrate with number-input, checkbox, and switch.Update
aria-describedby
id to includefeedbackId
only whenisInvalid
istrue
,
3cc77ce60
Thanks @segunadebayo! - Fix concurrent mode issue with setting state in focus event handler. We usewithFlushSync
helper to achieve this.- Updated dependencies
[
623e782e8
,a58b724e9
,b724a9dd9
]
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
623e782e8
#3408 Thanks @dodas! -useControllableState
: TheonChange
callback will be called only if the new value isn't equal to the current one.- Updated dependencies
[
a58b724e9
,b724a9dd9
]
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
1d85e4729
Thanks @segunadebayo! - Fix: remove redundantrole
attribute from divider -
f1612df7b
#3665 Thanks @burhanuday! - fixed the bug where a margin bottom would get applied to direction=row of stack -
c71cb7b08
Thanks @segunadebayo! - Fix issue where AbsoluteCenter doesn't haveposition: absolute
fa8351d19
Thanks @segunadebayo! - Addassign
function to level out API with@xstate/fsm
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
fa9350eff
#3689 Thanks @segunadebayo! - ### useNumberInput- Forward
aria-*
props to the input element. - Fix issue where
onChange
was called on mount. - Fix issue where
onBlur
was called twice. - Memoize all callback props
onFocus
,onBlur
,getAriaValueText
- Refactor implicit
useFormControl
logic to be called fromNumberInput
instead. - Call
setFocused.on
withReactDOM.flushSync
to prevent concurrent mode issue where setting state inonFocus
affectsonChange
event handler.
- Forward
-
Updated dependencies [
623e782e8
,a58b724e9
,f9b1a2a9b
,b724a9dd9
,3cc77ce60
,fa9350eff
,428593906
]
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
a8a841beb
Thanks @segunadebayo! - Fix issue where popover arrow can't be overriden
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
32e79f835
#3648 Thanks @segunadebayo! - Add support for css variable tokens. This means you can create a css variable and reference value in the tokens.// We're convert `colors.red.200` to `var(--chakra-colors-red-200)` <Box sx={{ "--banner-color": "colors.red.200", "& .banner": { bg: "var(--banner-color)", }, }} />
You can also add fallback values in event the token doesn't exist:
<Box sx={{ // evaluates to #fff if `colors.red.1000` doesn't exists in theme map "--banner-color": "colors.red.1000, #fff", "& .banner": { bg: "var(--banner-color)", }, }} />
This opens new possbilities with css variables, for example you can apply responsive token values like you would with style props.
TypeScript support for this is still WIP
<Box sx={{ "--banner-color": ["colors.red.200", "colors.pink.400"], "& .banner": { bg: "var(--banner-color)", }, }} />
-
eed076c4b
#3678 Thanks @segunadebayo! - - Fix usegetRootProps
from useCheckbox for the root element and memoize styles- Add support for
children
prop as a way to add an accessible label.
- Add support for
-
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
36252981a
#3636 Thanks @TimKolberger! - - Fixed an issue where theStylesProvider
export was not working in every environment- Add style config for
rotateX
,rotateY
,scaleX
,scaleY
- Add style config for
- Updated dependencies
[
32e79f835
,a58b724e9
,b724a9dd9
]
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
aba02eab1
#3678 Thanks @segunadebayo! - ###Switch
- Add
container
part - Use css vars to handle styles
- Fix rtl issue
-
Fix rtl issue
-
Remove
0
token value from spacing tokens. 0 maps to0
and there's no need to create a css custom property for that.
- Add
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
-
a58b724e9
Thanks @segunadebayo! - AddwithFlushSync
function wrapper to help resolve concurrent mode and onFocus state issues.This is a temp fix until the issue is fixed in React.
-
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
- Updated dependencies
- Updated dependencies
[
a8a841beb
,1d85e4729
,623e782e8
,aba02eab1
,36252981a
,eed076c4b
,6ab82ca37
,f1612df7b
,a58b724e9
,f9b1a2a9b
,b724a9dd9
,3cc77ce60
,c71cb7b08
,fa9350eff
,fa9350eff
,428593906
,bb5b004ef
,69ae9f68e
]
-
bb5b004ef
#3650 Thanks @gmathieu! - Bump@reach/alert
to fix yarn pnp issue -
Updated dependencies [
623e782e8
,aba02eab1
,a58b724e9
,b724a9dd9
]
@chakra-ui/visually-hidden@1.0.7
- Updated dependencies
[
32e79f835
]
b724a9dd9
#3674 Thanks @codebender828! - Extract all React based utilities and types into@chakra-ui/react-utils
- Updated dependencies