fix(deps): update dependency @chakra-ui/react to v3 #1052
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.10.4
->^3.0.0
Release Notes
chakra-ui/chakra-ui (@chakra-ui/react)
v3.1.1
Compare Source
Patch Changes
#9128
0715e2c
Thanks @coverlv! - Fix issue where
useBreakpointValue
throws error ifssr
is false#9103
1254769
Thanks @Newbie012! - - Checkbox: Fix issue
where checkmark doesn't show on Safari
error like
ClientOnly cannot be used as a JSX component.
colorPalette
v3.1.0
Compare Source
Minor Changes
9a27c2c
Thanks @segunadebayo! - - System: Fix
issue where using
as
prop with logic based components doesn't work asexpected.
DataList: Add support for
bold
variant.Button: Tweak the horizontal padding when size is
sm
.Snippets
showValue
prop to render the text value of the slider.HiddenSelect
to ensure it works in form submissions.SelectRoot
component fromsnippet
element
next-themes
.ColorModeProvider
powered bynext-themes
for better customization.
Toggle: Add
Toggle
component for toggling between two states. Itcomposes the
Button
component.v3.0.2
Compare Source
Patch Changes
20b91bd
Thanks @segunadebayo! - - InputAddon:
Fix issue with input addon not stretched correctly.
width={{ md: "sm" }}
to the toast root.v3.0.1
Compare Source
Patch Changes
c0020c9
Thanks @segunadebayo! - Fix issue where
using
keyframe
interpolation inanimation
prop doesn't work7d4f898
Thanks @segunadebayo! - Fix issue where
scrollBehavior=outside
doesn't allow scrolling outside the dialog contentv3.0.0
Major Changes
#8153
7b6e66a
Thanks @segunadebayo! - Prepares the ground
for the next version Chakra that leverages Ark UI.
User Facing
Infrastructure
jest
tovitest
tsup
to customrollup
setup for better bundling strategy#8815
806be96
Thanks @isBatak! - Remove the
@chakra-ui/hooks
package in favour of using dedicated, robust libraries like
react-use
andusehooks-ts
Minor Changes
#8121
170198f
Thanks @kkieninger! - ### Fixed
Avatar component
Added
accentColor
property to style propsasChild
in chakra factorytoastStore
fromtoast
componentframer-motion
to allow for skipAnimationspreserveScrollBarGap
Changed
Redesign the component themes and anatomy
192c6b1
Thanks @segunadebayo! - Add new fieldset
component
07b04b1
Thanks @segunadebayo! - - [NEW]: Add
RatingGroup
,SegmentControl
EmptyState
component for empty statesRadioCard
andCheckboxCard
components for card-basedselection
#8568
5fd993b
Thanks @isBatak! - Add Collapsible recipe with
default open/close animation
3fc49ca
Thanks @segunadebayo! - Add support for
FormatNumber
andFormatByte
components3ccbbdf
Thanks @segunadebayo! - ### Motion Styles
Add support for
motionStyle
props.The idea is to pair them with text styles and layer styles to create this
three-part mixin that can make your styles a lot cleaner.
Motion styles focus solely on animations, allowing you to orchestrate
animation properties.
Built-in Keyframe Animations
Chakra new provides built-in keyframe animations that you can use to create
your own motion styles.
Slide:
slide-from-top
,slide-from-bottom
,slide-from-left
,slide-from-right
,slide-to-top
,slide-to-bottom
,slide-to-left
,slide-to-right
Slide Full:
slide-from-top-full
,slide-from-bottom-full
,slide-from-left-full
,slide-from-right-full
,slide-to-top-full
,slide-to-bottom-full
,slide-to-left-full
,slide-to-right-full
Fade:
fade-in
,fade-out
Scale:
scale-in
,scale-out
You can compose these animations using the
animationName
property in yourmotion styles to create really cool animations. No JS required.
3ccbbdf
Thanks @segunadebayo! - Add support for
built-in layer styles to help prototype faster with automatic dark mode.
Paired with
colorPalette
, you can create beautiful designs with little codethat adapts to dark mode automatically.
Fill Layer Styles:
fill.muted
,fill.solid
,fill.surface
Border Layer Styles:
outline.muted
,outline.solid
Indicator Styles:
indicator.top
,indicator.end
,indicator.bottom
,indicator.start
Disabled Styles:
disabled
You can combine these layer styles to create very complex designs with little
code.
de9c0a0
Thanks @segunadebayo! - Add
DataList
component
e77a9b8
Thanks @segunadebayo! - - Add new Timeline
component to presenting chronological information or activities.
className
in the DOM.neutral
status toAlert
component763329e
Thanks @segunadebayo! - Add preset and
preset-base entrypoints.
preset
entrypoint exposes the default theme and recipes for Chakra.preset-base
entrypoint exposes the base utilities and conditions usedinternally.
925cfd9
Thanks @segunadebayo! - Add ActionBar,
Status, Rating, Pagination components
e9a1537
Thanks @segunadebayo! - BREAKING: Change
signature of
useRecipe
,useSlotRecipe
,createSlotRecipeContext
createSlotRecipeContext
Before:
After:
useSlotRecipe
Before:
After:
3908155
Thanks @segunadebayo! - Rename
createStyleContext
tocreateSlotRecipeContext
c654ee3
Thanks @segunadebayo! - Improve performance
of styled components to avoid unneeded re-renders.
edec8f7
Thanks @segunadebayo! - Add clipboard
composition
5093e18
Thanks @segunadebayo! - Add cursor pointer
to button
4c6838c
Thanks @segunadebayo! - - Rename
onLabel
and
offLabel
totrackLabel
thumbLabel
prop for rendering an icon within thumb#8393
623e558
Thanks @segunadebayo! - - Integrate Ark UI
components to reduce maintenance surface.
FileUpload
componenttrigger=hover
in favor ofHoverCard
Tooltip
,Popover
andHoverCard
with those from Ark UI945a777
Thanks @segunadebayo! - BREAKING: Integrate
Ark v4. This mostly affects the custom select component that requires the use
of
createListCollection
now.c26acf0
Thanks @segunadebayo! - Add support for
cursor token type
55c0839
Thanks @segunadebayo! - Move the
Prose
component to snippets so it can be customized by the user.
952647a
Thanks @segunadebayo! - Add
CardTitle
andCardDescription
componentsf4762bf
Thanks @segunadebayo! - Add support for
merging multiple system configs into one within
createSystem
Before:
After:
#8218
a89c598
Thanks @segunadebayo! - Add support for
custom theme conditions or pseudo props via
theme.conditions
This allows you to use the pseudo prop in your components
For TypeScript users, you need to use the Chakra CLI to generate the types
for your custom conditions.
c2f45ca
Thanks @segunadebayo! - Rename
Fieldset.Control
toFieldset.Content
1738b90
Thanks @segunadebayo! - - Icon: Set
asChild
totrue
by default to reduce repetitionAll components
at 20px, larger elements start at 40px
Input, Textarea: Rename
filled
variant tosubtle
Tags: Add new
Tag.StartElement
andTag.EndElement
components to allowfor easier styling of the start and end elements
3ccbbdf
Thanks @segunadebayo! - Redesign
Stepper
component. It's now called
Steps
and manages the state internally, no needto use
useSteps
anymore.We've also improved the accessibility of the component by leveraging the tabs
pattern and adding the required ARIA attributes.
Using the CLI, you can also scaffold an already composed stepper component
548470d
Thanks @segunadebayo! - Add custom select
from Ark UI and design recipe
8b110da
Thanks @segunadebayo! - Support inlining
recipe in
createRecipeContext
andcreateSlotRecipeContext
for better DXwhen shipping libraries based on Chakra.
This reduces the need for using the Chakra CLI to generate types for custom
components.
05793a2
Thanks @segunadebayo! - - Make
gray
thedefault color palette.
36px
for consistency.bg
for outline component variants.43f2c7d
Thanks @segunadebayo! - - CheckboxCard
[New]
Add support for a new
CheckboxCard
component that can be used to render acard with a checkbox.
Checkmark [New]
Add new checkmark component for rendering a static checkmark icon with the
checked
,disabled
, andindeterminate
state baked in.EmptyState [New]
Add new
EmptyState
component for rendering an empty state message with atitle, description, and optional action button.
e119ae9
Thanks @segunadebayo! - Rename
motionStyle
toanimationStyle
for better intuitiveness#8575
d4522d9
Thanks @isBatak! - Align theme recipe name with
panda
3ccbbdf
Thanks @segunadebayo! - Add support for
focusRing
andfocusRingColor
style props that allow to quickly style focusvisible state of form controls.
The focus ring values can be either
extend
orcontain
4ff153f
Thanks @segunadebayo! - Speed up
intellisence for style props, and add support for
strictTokens
in the CLI.47a8a9e
Thanks @segunadebayo! - - Add
inherit
toSpinner recipe size
b6d1d0d
Thanks @segunadebayo! - Simplify spinner
component to use less custom props.
emptyColor
, prefer to use--spinner-track-color
speed
, prefer to useanimationDuration
thickness
, prefer to useborderWidth
#8218
a89c598
Thanks @segunadebayo! - Add support for
_open
and_closed
pseudo props for styling their respective selectors._open
:&[data-state=open], &[open]
_closed
:&[data-state=closed]
_groupOpen
:[data-group][data-state=open] &
_groupClosed
:[data-group][data-state=closed] &
Extend the existing pseudo props to support new selectors`
_placeholder
now supports&[data-placeholder]
_placeholderShow
now supports&[data-placeholder-shown]
_fullscreen
now supports&[data-fullscreen]
_empty
now supports&[data-empty]
_expanded
now supports&[data-state=expanded]
_checked
now supports&[data-state-checked]
#8569
eb26857
Thanks @isBatak! - Fix the
boxSize
type toallow number values.
47b3b5a
Thanks @segunadebayo! - Support array in
conditions object. This matches the API in Panda CSS and allow users to define
complex selectors like media hover queries.
e4f2df0
Thanks @segunadebayo! - Add
Prose
component to help style markdown content.
c243698
Thanks @segunadebayo! - - Add
referrerPolicy to Avatar component.
muted
andsubtle
color tokensPatch Changes
be98566
Thanks @segunadebayo! - Fix checkbox and
toast on mobile
c941971
Thanks @segunadebayo! - - Convert
Tabs
component to use Ark UI
NumberInput
to use Ark UI#8795
4408573
Thanks @TylerAPfledderer! - Adds style
prop names to
LayerStyleProperty
union type83366c4
Thanks @segunadebayo! - - Fix regression in
mergeConfigs
Decompose
Field
components into smaller components, which can beoptionally used with
Field
Label
which is a generic label componentErrorMessage
which is a generic error message componentHelpText
which is a generic help text componentRefactor components to use Ark UI: Avatar, Progress, CircularProgress,
PinInput
0ae054d
Thanks @segunadebayo! - Fix issue where
hideFrom
andhideBelow
doesn't show any autocompletions0a03bcc
Thanks @segunadebayo! - - Fix circular
progress element types
#8617
7e9fbf0
Thanks @isBatak! - Refactor text-styles to use
tokens instead of raw values.
6d4cbbe
Thanks @segunadebayo! - Fix ES module
interop for @emotion/is-prop-value that makes Jest throw error.
#8857
fdc2b9b
Thanks @stevensecreti! - update mapObject
util to not call fn provided on nullish values
788f493
Thanks @segunadebayo! - Fix issue where
media query css order is inconsistent with v2
87cf70c
Thanks @segunadebayo! - Revert text recipe
to prevent color regressions
#8740
d5a225f
Thanks @Pagebakers! - Use correct extension
for ESM exports
#8905
807a581
Thanks @stevensecreti! - Added transform
function to backgroundClip to appropriately handle 'text' value
#8739
651561b
Thanks @Pagebakers! - Added /anatomy to
exports
#8792
4dd77ec
Thanks @TylerAPfledderer! - Updates the
exposed list of slot anatomy to ensure all anatomy is included for use in
type-checking extend recipe configs.
bffb68f
Thanks @segunadebayo! - - Pagination:
Fix issue page props were not forwarded correctly.
#8601
1867d66
Thanks @isBatak! - Fix
blur
property tokenconversion to CSS variable.
32a454d
Thanks @segunadebayo! - Add missing
use client
directives to several components#8854
388716d
Thanks @codebutler! - Fix issue where target
was not passed to link overlay
#8475
9224f4e
Thanks @ryo-manba! - Add
aria-current
attribute to stepper
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.