title | description | releaseUrl | releaseDate | version |
---|---|---|---|---|
Version 1.4.0 |
Explore the changelog for Chakra UI version 1.4.0. Learn about the latest features, bug fixes, and improvements. |
March 21, 2021 |
1.4.0 |
91ef14839
#3583 Thanks @segunadebayo! - Refactor the positioning logic to improve stability and leverage CSS custom properties
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
-
e748219f3
Thanks @segunadebayo! - ### Pointer EventsAdd unified pointer event management utils and hook for interal use only.
The hook is called
usePointerEvent
, it works pretty similar touseEventListener
except that does two things:- Unifies the pointer event system and ensure that only one of
onMouse*
,onTouch*
, oronPointer*
handler runs - Provide event information about the pointer event like
x
andy
position depending on the pointer type.
Credits to
framer-motion
for doing the hard work for this utilities- Added
useFocusOnPointerDown
to get Safari to detect the correctevent.relatedTarget
when you blur a focused element.
Set
preventScroll
option to betrue
by default, setting focus on an element should happen without scrolling the page (in most cases).Set
nextTick
toundefined
by default and update all components that use next tick to use{ nextTick: true }
. - Unifies the pointer event system and ensure that only one of
-
9c143bfe5
Thanks @segunadebayo! - Update focus utils to usenextTick
option since its default value is now false in the focus utils@internal
use only
-
dc9bccfe3
Thanks @segunadebayo! - [Internal] Add support for controllable machines via thecreateControllableMachine
anduseControllableMachine
hooks.This is an internal API not intended for public usage
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
-
91ef14839
#3583 Thanks @segunadebayo! - - Refactor arrow components to usedata-popper-arrow
anddata-popper-arrow-inner
to define the arrow elements. This is used within the modifiers to update the arrow styles/position positioning.-
Change
arrowSize
andarrowShadowColor
to use CSS custom properties instead of passing it tousePopper
. -
Update component themes to use
--popper-arrow-bg
to set the background for the popper's arrow element.
-
-
9c143bfe5
Thanks @segunadebayo! - Update focus utils to usenextTick
option since its default value is now false in the focus utils@internal
use only -
Updated dependencies [
64e8466b5
,e748219f3
,9c143bfe5
,91ef14839
,91ef14839
]
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
-
91ef14839
#3583 Thanks @segunadebayo! - - Refactor arrow components to usedata-popper-arrow
anddata-popper-arrow-inner
to define the arrow elements. This is used within the modifiers to update the arrow styles/position positioning.-
Change
arrowSize
andarrowShadowColor
to use CSS custom properties instead of passing it tousePopper
. -
Update component themes to use
--popper-arrow-bg
to set the background for the popper's arrow element.
-
-
223e50b32
Thanks @segunadebayo! - Fix issue where popover doesn't close on trigger click when popover is open -
Updated dependencies [
64e8466b5
,e748219f3
,9c143bfe5
,91ef14839
,91ef14839
]
-
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4 -
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
- Updated dependencies
[
96139067d
,64e8466b5
,e748219f3
,035d5726e
,da443cd67
,5bbad1947
,96139067d
,d82c3c81d
,fd0252be2
,91ef14839
,9c143bfe5
,e6d33794b
,223e50b32
,00be7e92f
,96139067d
,91ef14839
,91ef14839
,eece70293
]
035d5726e
#3529 Thanks @callum-mellorreed-privitar! - Add support fortextStyle
andlayerStyle
theme type generation to@chakra-ui/cli
-
c3dcaabbc
#3615 Thanks @segunadebayo! - Fix: issue where responsive styles defined in textstyles not overriden wiht props.Fix: issue where
toCSSVars
omitted the transition tokens -
96139067d
#3551 Thanks @segunadebayo! - - Fix: issue where RTL property keys are incorrect due toconfig.property
mutation.- Fix: change
mx
andpx
to use logical properties. Instead of mapping tomarginLeft
andmarginRight
, it maps tomarginInlineStart
andmarginInlineEnd
. Same forpx
- Fix: change
035d5726e
#3529 Thanks @callum-mellorreed-privitar! - Add support fortextStyle
andlayerStyle
theme type generation to@chakra-ui/cli
-
96139067d
#3551 Thanks @segunadebayo! - Fix: only return an array intoCSSObject
whencss
prop is passed. -
Updated dependencies [
d70515fc2
,e748219f3
,035d5726e
,c3dcaabbc
,91ef14839
,96139067d
]
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
-
91ef14839
#3583 Thanks @segunadebayo! - - Refactor arrow components to usedata-popper-arrow
anddata-popper-arrow-inner
to define the arrow elements. This is used within the modifiers to update the arrow styles/position positioning.-
Change
arrowSize
andarrowShadowColor
to use CSS custom properties instead of passing it tousePopper
. -
Update component themes to use
--popper-arrow-bg
to set the background for the popper's arrow element.
-
-
Updated dependencies [
e748219f3
,9c143bfe5
,91ef14839
,91ef14839
]
64e8466b5
#3623 Thanks @with-heart! - Added support forframer-motion
v4
-
e748219f3
Thanks @segunadebayo! - ### Pointer EventsAdd unified pointer event management utils and hook for interal use only.
The hook is called
usePointerEvent
, it works pretty similar touseEventListener
except that does two things:- Unifies the pointer event system and ensure that only one of
onMouse*
,onTouch*
, oronPointer*
handler runs - Provide event information about the pointer event like
x
andy
position depending on the pointer type.
Credits to
framer-motion
for doing the hard work for this utilities- Added
useFocusOnPointerDown
to get Safari to detect the correctevent.relatedTarget
when you blur a focused element.
Set
preventScroll
option to betrue
by default, setting focus on an element should happen without scrolling the page (in most cases).Set
nextTick
toundefined
by default and update all components that use next tick to use{ nextTick: true }
. - Unifies the pointer event system and ensure that only one of
-
91ef14839
#3583 Thanks @segunadebayo! - AddgetCSSVar
function to resolve token values and return the css variable reference instead of the actual value. It does a lookup againsttheme.__cssMap
.const value = getCSSVar(theme, "colors", "blue.500") // => "var(--chakra-colors-blue.500)" const value = getCSSVar(theme, "colors", "tomato") // => "tomato" // since tomato doesn't exist in theme colors
035d5726e
#3529 Thanks @callum-mellorreed-privitar! - Add support fortextStyle
andlayerStyle
theme type generation to@chakra-ui/cli
-
4955fe4fa
#3621 Thanks @TimKolberger! - Fixed an issue where the cli tokens command exited unexpectedly
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
-
00be7e92f
Thanks @segunadebayo! - Fix: ensure fallback avatar has an accessible text
-
d70515fc2
Thanks @segunadebayo! - Fix: memoize the context value forColorModeProvider
fd0252be2
Thanks @segunadebayo! - Fix: issue where blur/submit fires unexpectedly ifsubmitOnBlur
is true and you try to click the cancel button- Updated dependencies
[
e748219f3
,9c143bfe5
,91ef14839
]
-
9c143bfe5
Thanks @segunadebayo! - Update focus utils to usenextTick
option since its default value is now false in the focus utils@internal
use only
- Updated dependencies
-
9c143bfe5
Thanks @segunadebayo! - Update focus utils to usenextTick
option since its default value is now false in the focus utils@internal
use only -
96139067d
#3551 Thanks @segunadebayo! - Addroot
to number input parts and updateright
toinsetEnd
for it to work in RTL.
-
5bbad1947
Thanks @segunadebayo! - Fix issue where controlled radio group can't be cleared -
d82c3c81d
Thanks @segunadebayo! - Fix:onChange
type foruse-radio-group
props
-
9c143bfe5
Thanks @segunadebayo! - Update focus utils to usenextTick
option since its default value is now false in the focus utils@internal
use only
e6d33794b
#3587 Thanks @AnanaMJ! - - Addaria-label
to tag close button- Get
TagLeftIcon
andTagRightIcon
to work for RTL layouts.
- Get
- Updated dependencies
[
e748219f3
,91ef14839
]
-
96139067d
#3551 Thanks @segunadebayo! - NumberInput: addroot
to parts, leverage css variables and update styles to be rtl friendly. -
91ef14839
#3583 Thanks @segunadebayo! - - Refactor arrow components to usedata-popper-arrow
anddata-popper-arrow-inner
to define the arrow elements. This is used within the modifiers to update the arrow styles/position positioning.-
Change
arrowSize
andarrowShadowColor
to use CSS custom properties instead of passing it tousePopper
. -
Update component themes to use
--popper-arrow-bg
to set the background for the popper's arrow element.
-
-
eece70293
#3622 Thanks @TimKolberger! - - Added typings for thetheme
prop inThemingPropsThunk
and export a standalone typeThemeComponentProps
import { ThemeComponentProps } from "@chakra-ui/react" function baseStyle(props: ThemeComponentProps) { return { boxShadow: `0 1px 2px 0 rgba(0, 0, 0, 0.05) ${props.theme.colors.whiteAlpha[500]}`, } }
@chakra-ui/visually-hidden@1.0.6
efd32c982
Thanks @segunadebayo! - - Update peer-dependency for gatsby- Remove
@chakra-ui/theme
from peer-dependency. The theme already exists in@chakra-ui/react
- Remove
-
102d6da86
#3510 Thanks @TimKolberger! - Extract all hook props for documentation purposes -
Updated dependencies [
64e8466b5
,035d5726e
,c3dcaabbc
,96139067d
,64e8466b5
]
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0
64e8466b5
#3623 Thanks @with-heart! - Upgradedframer-motion
dependency to^4.0.0