Update dependency chakra-ui-2--react to v3 #1658
Open
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.9->3.28.0Release Notes
chakra-ui/chakra-ui (chakra-ui-2--react)
v3.28.0Compare Source
Minor Changes
#10374
e62bae7Thanks @Adebesin-Cell! - Add new
TagsInputcomponent for entering multiple values as tags with features liketag creation, deletion, and keyboard navigation.
bf31e2aThanks @segunadebayo! - - Checkbox
indeterminatedoesn'twork
api.checkedStatereturns the correct checked statecollapsedHeightandcollapsedWidthprops to controlthe dimensions of the collapsible content when in its collapsed state
dirprop value doesn't get applied correctlydata-has-collapsed-sizeisset)
propagate its initial value to
inputValuearia-controlsto be included in the focus trap scopestill calls
event.preventDefault()formatOptionslikestyle: "currency"getPageUrlprop for generatinghrefattributes whenusing pagination as links
Cmd+BackspaceandCmd+Deletewould insert "undefined" instead of clearing the fieldcorrectly on the trigger
drag operation
data-activeis inconsistently applied whendisabledstate changes at runtimegetBoundingClientRect()for precise indicatorpositioning
v3.27.1Compare Source
Patch Changes
e1774c8Thanks @segunadebayo! - Expose
Collapsible.Indicatorcomponent to provide visual indicator for collapsiblestate
f9d66f4Thanks @segunadebayo! - - CodeBlock
highlight.jsadapter to properly handle diff attributes foradded/removed lines
f26e863Thanks @segunadebayo! - - Styled
System:
variants
#10325
3e6d1f7Thanks @wo-o29! - Fix issue where refs don't
support cleanup function (React 19 compatibility)
#10328
451209eThanks @megos! - fix(table): ensure stickyHeader
works with outline variant
56a4501Thanks @segunadebayo! - Timeline: Add
showLastSeparatorvariant to control visibility of the last separatorv3.27.0Compare Source
Minor Changes
16fb3ccThanks @segunadebayo! - Enhanced
composition types with comprehensive CSS property support
Text Style Properties: Added these properties to
theme.textStyles:color,direction,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette)hangingPunctuation,hyphens,hyphenateCharacter,hyphenateLimitChars,lineBreak,quotes,overflowWrap,tabSize)textAlign,textAlignLast,textCombineUpright,textJustify)textDecorationSkip,textDecorationSkipBox,textDecorationSkipInk,textDecorationSkipInset,textDecorationThickness,textEmphasis)textShadow,textStroke,textStrokeColor,textStrokeWidth,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle)unicodeBidi,verticalAlign,whiteSpace,wordBreak,wordSpacing,writingMode)Layer Style Properties: Added these properties to
theme.layerStyles:aspectRatio,display,contain,contentVisibility,isolation)clipPath,mixBlendMode,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize)objectFit,objectPosition,pointerEvents,resize,visibility,willChange)borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth)overflow,overflowX,overflowY)Patch Changes
c741fe9Thanks @segunadebayo! - - CodeBlock:
Fix issue where Line numbers display incorrectly when
meta.wordWrapis truein code blocks
accessibility.
openDelay: from700msto600msaccessibility.
Learn more
openDelay: from1000msto400mscloseDelay: from500msto150mstarget="_blank"would open two tabs
to scroll into view
alwaysSubmitOnEnterprop to allow forcing the form to besubmitted immediately on Enter press.
#10312
6189068Thanks @itushh! - - CodeBlock: Allow
horizontal scrolling when code block overflows
v3.26.0Compare Source
Minor Changes
b9eede5Thanks @segunadebayo! - - Listbox
[New]: Add new component with support for single/multi-select, grouping,
virtualization, controlled state, icons, descriptions, and accessibility
features.
This component can be used to build command palettes, dropdowns with search,
and much more.
disabledproptypeahead
RTL mode
patternwhenformatOptionsis provided. This preventsnative pattern validation from conflicting with formatted values (e.g.,
currency or percent).
data-scrubbingattribute to the number input parts.Patch Changes
b9eede5Thanks @segunadebayo! - CodeBlock: Add
configurable theme support and sync loading for Shiki adapter
themeproperty must beexplicitly provided to
createShikiAdapterdescriptive errors
loadSyncmethod for better performancev3.25.0Compare Source
Minor Changes
#10254
3fb9d7cThanks @segunadebayo! - Add new scroll area
component
Patch Changes
d3a1064Thanks @segunadebayo! - Fix nested token
override issue during theme merging
#10244
9501179Thanks @isBatak! - - System: Implement
preset for table
border-spacingproperty and improve documentationonCheckedChangecould be called twice on checkbox orradio item
data-stateattribute for context menu triggerfails to reposition
data-focus-visibleon the newly focused item.exactMatchprop that enables whole-word matching usingregex word boundaries.
v3.24.2Compare Source
Patch Changes
333b063Thanks @segunadebayo! - Fix issue where
using
asChildwith invalid child elements orReact.lazycomponents wouldthrow an error.
v3.24.1Compare Source
Patch Changes
e81a6aeThanks @segunadebayo! - Provide a way to
exclude components from prose styling by using
not-prose9b7bf1dThanks @segunadebayo! - Fix issue where
_fullscreenreturns the wrong css selectorv3.24.0Compare Source
Minor Changes
#10164
79971c0Thanks @segunadebayo! - Add new codeblock
component with support for highlight.js and shiki.
Patch Changes
5e7831fThanks @ponharu! - fix: check if
separatorisa valid React element
v3.23.0Compare Source
Minor Changes
86ca96aThanks @segunadebayo! - - System: Add
unstyledprop support to compound component children to opt-out of recipestyles per component.
--group-gapCSSvariable
Patch Changes
dd3af62Thanks @segunadebayo! - - Tree View
filtermethod completely deletes the children key fromthe node when there are no matching children
acceptedFilesanddefaultAcceptedFilesFileError,FileMimeType, andFileRejectiontypes and fixvalidation issues
dc02076Thanks @segunadebayo! - Fix HTML semantic
structure for
Breadcrumb.Ellipsiscomponent by changing the underlyingelement from
<span>to<li>.4da48e3Thanks @segunadebayo! - - Tabs: Export
missing types
@chakra-ui/react/hookstree-shaking
@chakra-ui/react/theme. We now exposerecipes,slotRecipes,breakpoints,keyframes,textStyles,layerStyles,animationStyles,globalCss,cssVarsPrefix,cssVarsRoot,semanticTokens,tokensas dedicated modules.dvhanddvwunits instead ofvhandvwtodynamically adjust to viewport size changes.
sizes.
v3.22.0Compare Source
Minor Changes
32967aaThanks @segunadebayo! - Add new TreeView
component that is used to represent hierarchical data in a tree structure.
Patch Changes
ca40993Thanks @isBatak! - - Clipboard: Fix issue
where
clipboardAnatomywas not exported from@chakra-ui/react/anatomyreasontoonOpenChangeandonInputValueChangecallbacksapi.clearHighlightedValuefunction to clear highlighted valuetitleordescriptioncould not acceptReact element
valueAsStringformattingapi.clearHighlightedValuefunction to clear highlighted valuechildrenas a functionv3.21.1Compare Source
Patch Changes
8ddeb0bThanks @segunadebayo! - - Popover:
Fixed issue where
onOpenChangecould be called twice when controlledonInputValueChangecould be called twice whenselecting an item
allowCustomValue: trueused within in aform requires two enter keypress to submit
verticaldon't workdefaultValuetonulldoesn't showindeterminate state
toaster.promiseis calledwithout loading option. The
loadingoption is now required. A warning willbe logged if it is not provided
defaultValueorvalueafter fetching items doesn't update thevalueAsString#10119
6cf8cc6Thanks @isBatak! - - improve
Drawerrecipe tobetter support conditional variants.
Drawerconditional variants example to the docs and storybook.#10101
2b4fa6dThanks @isBatak! - - Select: Export missing
SelectRootComponent type export
d7914adThanks @segunadebayo! - Fix inconsistent
handling of
nullandundefinedfor skipping breakpoints using array syntaxv3.21.0Compare Source
Minor Changes
3df43baThanks @segunadebayo! - Add support new
entrypoint for
/themewhich allows for incremental loading of componentrecipes to avoid bloating the theme with unused components.
For example, if you want just the
buttonrecipe to be included in yourbundle, you can cherry-pick the recipe you need like this:
Patch Changes
010f256Thanks @segunadebayo! - - File Upload:
Prevented
undefinedinacceptedFileswhen no files acceptednavigating up/down the list with keyboard
upon cmd/middle click
Menu.ItemTextcould not be used withMenu.Itemv3.20.0Compare Source
Minor Changes
65020ddThanks @segunadebayo! - - System: Allow
undefinedfor optional properties in CSS and recipe typesColor Picker: Fixed issue where value change end event is invoked when
committing via an input.
Toast: Fixed issue where calling
toast.remove()without an id shows aTypeScript error.
Field: Fixed issue where helper text and error text could not be
detected in shadow DOM environments.
Slider
minStepsBetweenThumbsisn't computed correctly wheninteracting with pointer or keyboard.
Shift+ArrowRightset value to0instead ofmaxwhen step is too large (e.g.
20).onValueChangeEnddoesn't return the latest value whendragging very fast.
or dialog.
File Upload: Added support for transforming uploaded files via
transformFilescontext property.Combobox: Fixed issue where
onInputValueChangedoesn't get called whenautoFocusis set totruePin Input: Fixed issue where input padding could cause clipping of the
text when
fontSizeis increased.Patch Changes
#10081
c2f650bThanks @isBatak! - - export
CheckboxRootProviderPropstype#10075
63c267fThanks @isBatak! - - export
Quotetypographycomponent and its types
v3.19.2Compare Source
Patch Changes
#10059
a289c3cThanks @isBatak! - - System: add explicit
undefinedto generated types to support TSexactOptionalPropertyTypes#10064
10d0a8eThanks @mhsattarian! - - Drawer: Fix
drawer close animation in RTL
display: contentsandvisibility: hiddendata-loadingattribute whenloadingistrueso allow stylingloading state with
_loadingpseudo propv3.19.1Compare Source
Patch Changes
aa9c2b0Thanks @segunadebayo! - - System: Fix
issue where some svg element props tend to be treated as style props
v3.19.0Compare Source
Minor Changes
d860d48Thanks @segunadebayo! - - [New]
Combobox Add combobox component for autocomplete text entry.
v3.18.0Compare Source
Minor Changes
e91ec7eThanks @segunadebayo! - - DownloadTrigger
[New] Add
DownloadTriggercomponent to help download file contents.System
dprop tochakra.pathadds it to styles not asa direct attribute.
Select: Fix issue where indicator group doesn't align correctly in RTL
layouts.
v3.17.0Compare Source
Minor Changes
ad8cc44Thanks @seongminn! - - Breadcrumb: Prevent
screen reader from reading the separator
Toast: Added toast queuing when the max limit is reached:
SegmentGroup: Fix issue where
disabledprop was not being applied toSegmentGroup.ItemsRatingGroup: Fix issue where half-filled icons were not being displayed
correctly in RTL
Collapsible: Fixed issue in React.js <= v18.x where collapse animation
might not work as expected
v3.16.1Compare Source
Patch Changes
46075baThanks @segunadebayo! - - Dialog,
Drawer: Use correct z-index for dialog and drawer backdrop
orientationprop toSegmentGroup.Rootdoesn't work as expected
v3.16.0Compare Source
Minor Changes
529244dThanks @segunadebayo! - - Global CSS:
Improve text selection contrast
System
borderEndshorthand was not working despiteborderStartbeing presentsystem.cvareturn type was incorrectDialog, Drawer: Fix issue where
z-indexwas not being appliedcorrectly
[Beta] createOverlay: Add
createOverlayutility for programmaticallycontrolling overlay components (Dialog, Drawer, etc.)
v3.15.1Compare Source
Patch Changes
e3d7db7Thanks @segunadebayo! - - Fix issue where
backdrop could overlap positioner when reopened quickly
v3.15.0Compare Source
Minor Changes
2f4ea3bThanks @segunadebayo! - -
useMediaQuery: Fix type signature to allow skipping the second argument
RadioCard: Fix accessibility issue due to html structure
Slider
origin: endto align the thumb to the end of the track.thumbSizeas CSS variables in the root element. Can be useful forstyling the slider.
Menu
onSelectevent to theMenu.Itemcomponent.validation.
v3.14.2Compare Source
Patch Changes
87a072bThanks @segunadebayo! - - Fix potential
import error from
@zag-js/utilsin@ark-ui/reactv3.14.1Compare Source
Patch Changes
0eb769eThanks @segunadebayo! - - System: Fix
issue where output of
<system>.css(...)from Chakra UI can't be assigned toInterpolation<Theme>from@emotion/react.@ark-ui/reactto latest version.v3.14.0Compare Source
Minor Changes
354eaa6Thanks @segunadebayo! - Improve render
performance by upgrading to the latest Ark UI v5.
This brings a 1.5x–4x performance improvements across components. Learn
more from the
Ark UI v5 changelog.
v3.13.0Compare Source
Minor Changes
eba44a3Thanks @segunadebayo! - - ColorPicker
Add support for
ColorPicker.ChannelTextcomponentAdd
ColorPicker.EyeDroppercomponent that wrapsIconButtonAdd
ColorPicker.SliderandColorPicker.Inputshortcut components toreduce LOC.
InputGroup
@chakra-ui/reactpackagePagination
Pagination.Itemsshortcut component to render the number of pagesbased on the
countandpageSizeprops.Pagination.PageTextcomponent to render the current page and totalpages.
v3.12.0Compare Source
Minor Changes
7abe7e3Thanks @segunadebayo! - - FileUpload:
FileUpload.FileTextto render the list of uploaded file names.FileUpload.Itemsshorcut component to render the list of uploadedfiles.
FileUpload.Listshortcut component that combinesFileUpload.Itemsand
FileUpload.ItemGroup.v3.11.0Compare Source
Minor Changes
8789401Thanks @segunadebayo! - - Accordion
Accordion.ItemTriggerdoesn't applytextAlign: startSegmentGroup.Itemsshortcut component to render multipleSegmentGroup.Itemcomponents based on theitemspropv3.10.0Compare Source
Minor Changes
11bdf77Thanks @segunadebayo! - - Menu
Set the default children of
Menu.ArrowtoMenu.ArrowTipHoverCard
HoverCard.ArrowtoHoverCard.ArrowTipDialog, Drawer
instead of relying on snippet styles.
v3.9.0Compare Source
Minor Changes
52a97d0Thanks @segunadebayo! - - Skeleton
Bring back
SkeletonCircleandSkeletonTextcomponents.Switch
childrenforSwitch.ControltoSwitch.Thumbtoreduce LOC for common use cases.
Checkbox
childrenforCheckbox.ControltoCheckbox.Indicatorto reduce LOC for common use cases.
NumberInput
childrenforNumberInput.ControltoNumberInput.IncrementTriggerandNumberInput.DecrementTriggertoreduce LOC for common use cases.
QrCode
QrCode.Framecomponent toQrCode.Patternto reduce LOC forcommon use cases.
RatingGroup
childrenforRatingGroup.Controlto the array ofRatingGroup.Itemcomponents to reduce LOC for common use cases.Slider
Slider.Markscomponent to render marks on the slider track. This isa closed composition of
Slider.MarkerGroupandSlider.Markerto reduceLOC for common use cases.
Slider.Thumbscomponent to render thumbs on the slider track. Thisis a closed composition of
Slider.Thumbto reduce LOC for common usecases.
PinInput
attachedvariant prop to render a pin input withattached inputs. This removes the need for the
Groupcomponent to wrapthe inputs.
v3.8.2Compare Source
Patch Changes
91945b7Thanks @segunadebayo! - Fix issue where
mtalias tomarginBlockStartinstead ofmarginTop#9712
f733a87Thanks @CerealeZ! - AspectRatio: Fix issue
where
cssprop was not respectedv3.8.1Compare Source
Patch Changes
cdb9459Thanks @segunadebayo! - - Fix performance
regression from
v3.5.xby reverting memoization logicuseMemoto provider components and styling hooks to avoid unnecessaryrecomputations
v3.8.0Compare Source
Minor Changes
fa5e966Thanks @segunadebayo! - - Add new hooks
useElementRect,useForceUpdate,useLiveRef,usePreviousanduseSafeLayoutEffectFocusTrapcomponent for trapping focus within a containerPatch Changes
54a73a7Thanks @mhsattarian! - - Breadcrumb: Fix
issue where breadcrumb arrow don't flip in RTL
LightModeandDarkModecomponents toforce light and dark color mode in a subtree
Groupcomponent doesn't skip invalid childrenv3.7.0Compare Source
Minor Changes
cb0ffc9Thanks @segunadebayo! - - Avatar: Add
support for passing
nameto theAvatarFallbackto render the initials. Ifno
nameorchildrenis passed, it'll render either the initials or afallback icon.
useConstanduseUpdateEffecthooks from v2.Wrapcomponent from v2.v3.6.0Compare Source
Minor Changes
04a1a07Thanks @segunadebayo! - - Styled
System:
JSON.stringifyinmemofunction and avoid memoizing non-primitive arguments.
assetstoken tobackgroundImageandlistStyleImagecssproperties.
lazyMountandunmountOnExittotruein theRootcomponent to improve initial rendering performance.pattern.
StatGroupcomponent from v2.CloseButtoncomponent.v3.5.1Compare Source
Patch Changes
34d46e3Thanks @segunadebayo! - - Button: Fix
issue where button is not disabled when loading props is passed
caused by updates to the
data-placementattributeAlertsnippet in favor of using theAlertcomponent directly from@chakra-ui/react.v3.5.0Compare Source
Minor Changes
30a12d0Thanks @segunadebayo! - - Native Select
disabledandinvalidprops were not being passed to theNativeSelectFieldcomponent.invalidprop is set.devices.
LoaderandLoaderOverlaycomponents.ButtonGroupcomponent similar to v2 forgrouping similar buttons.
loadingandloadingTextprops to theButtoncomponent.component.
v3.4.0Compare Source
Minor Changes
375e05fThanks @segunadebayo! - - [New]
Presence: Add component to animate an element using css animation, and
control the mount/unmount behavior
Patch Changes
882c7f6Thanks @segunadebayo! - - Separator:
Fix issue where
aria-orientationwas missing in the DOM andorientationwas added instead.
event being cancelled.
preview.
disableClickprop.4c885dfThanks @segunadebayo! - - Button, Icon
Fix issue where button and icon doesn't export props providers
b39ea43Thanks @segunadebayo! - System: Fix
issue where render times feels slower compared to v2 due to the global style
computation in the provider component. Now, it is much faster.
See Discussion
v3.3.3Compare Source
Patch Changes
9c55f21Thanks @segunadebayo! - Fix issue where
icon sizes doesn't work anymore
v3.3.2Compare Source
Patch Changes
855bb29Thanks @segunadebayo! - - Icon:
Refactor icon recipe
size=inheritto allow for composition with buttonportalledtotrueby default#9470
4bd9f8dThanks @lcswillems! - - Menu, Select: Use
the same semantic token for select
_highlightedstatee4fe984Thanks @segunadebayo! - Fix issue where
using
<Icon as={...} />throws an error, forcing users to use theasChildapproach
e506044Thanks @segunadebayo! - Fix issue where
factory shows a warning React 19 due to accessing
child.refv3.3.1Compare Source
Patch Changes
0fc040aThanks @segunadebayo! - HoverCard,
Tooltip: Resolved an issue where the controlled open state could become
inconsistent during the
openingorclosingphases.1439548Thanks @segunadebayo! - Fix issue where
useRecipeanduseSlotRecipereturnsneverwhen key does not matchbuilt-in recipe.
v3.3.0Compare Source
Minor Changes
791bcecThanks @segunadebayo! - ### Added
Clipboard.ValueTextto display clipboardcontent.
preventDropOnDocumentto block file drops on the document when thefile upload component is active.
setClipboardFilesto the API for setting files from clipboarddata.
onValueChangeanddefaultValue.navigateproperty for custom routernavigation when selections render as links.
onValueChangeanddefaultValue.QrCode.DownloadTriggerto enable QR code image downloads.Fixed
Collapsible: Fixed a bug where the opening animation replayed when an
open collapsible was re-rendered.
Dialog, Popover: Resolved an issue causing dialogs or popovers to close
if the focused element was removed from the DOM.
FileUpload: Fixed a bug causing the hidden input to desync from accepted
files.
Menu, Popover: Fixed inconsistent interaction detection outside the
component when the trigger was inside a scrollable container.
Pagination: Corrected an issue where the page range returned an
incorrect
endvalue when `paConfiguration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - "at 10am on Monday except on 25th of December in 2023 and 1st of January 2024 and 1st of April 2024 and 20th of May 2024 and 19th of August 2024" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, 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.