-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency @ark-ui/react to v5 #3202
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e175fe9
to
76f19bc
Compare
76f19bc
to
224232e
Compare
224232e
to
510bd8a
Compare
510bd8a
to
6e34533
Compare
This PR contains the following updates:
2.1.1
->5.5.0
Release Notes
chakra-ui/ark (@ark-ui/react)
v5.5.0
Compare Source
Added
disclosure components (e.g.,
Dialog
,DatePicker
,Menu
etc).Fixed
Tabs: Fixed issue where tabs indicator animation behaves inconsistently.
Date Picker
Disclosure Components
v5.4.0
Compare Source
Added
Slider
origin: end
to align the thumb to the end of the track.thumbSize
as CSS variables in the root element. Can be useful for styling the slider.Menu
onSelect
event to theMenu.Item
component.Fixed
tabIndex
for better dialog support.v5.3.1
Compare Source
Fixed
v5.3.0
Compare Source
Added
Indicator
part to display whether the collapsible was open or closed.ValueText
component.Fixed
onOpenChange
was called with the sameopen
value.use client
directive.onResizeStart
andonResizeEnd
callbacks weren't triggered during keyboardinteractions.
v5.2.0
Compare Source
Added
asynchronously.
Changed
0.01
whenformatOptions.style
was set topercent
.Splitter documentation for more details.
Fixed
offsets
toundefined
caused the machine to throw.valueAsString
lost reactivity.v5.1.0
Compare Source
Added
ref
.Fixed
useField
hook.onValueChange
correctly receivedvalueAsNumber
.min
was set to a non-zero value.v5.0.1
Compare Source
Fixed
data-invalid
is no longer set wheninvalid
isfalse
.interval
from250
to1000
.v5.0.0
Compare Source
Ark UI just got a major performance boost! 🚀
What’s new in v5?
We made this happen by using React’s native reactive primitives instead of external stores.
In our stress tests with 10,000 components, Ark v5 delivered 1.5x–4x better performance across the board.
A quick note on tests
Most component updates are non-breaking, but due to this change, some tests may need adjustments. For example:
Added
slideCount
toCarousel.Root
component.onValueChange
anddefaultValue
props.defaultFormat
prop.defaultHighlightedValue
anddefaultInputValue
props.defaultFocusedValue
prop,getViewProps
, andvisibleRangeText
.defaultHighlightedValue
prop.defaultPageSize
prop.count
prop for better SSR aria-label.locale
andformatOptions
props.pixelSize
prop.defaultHighlightedValue
prop.defaultInputValue
prop.Fixed
api.setSrc
not working.directory: true
.value
prop not being consumed.multiple: true
didn't work.<li>
elements correctly within<ul>
or<ol>
.ResizeObserver
warning.action
prop was passed toActionTrigger
.data-focus
not being removed on blur.v4.9.2
Compare Source
Fixed
FocusTrap
component to theindex
file.data-disabled
attribute wasn't set on the field helpertext when the field is disabled.
v4.9.1
Compare Source
Fixed
operation.
defaultView
property did not correctly switch to thespecified view.
v4.9.0
Compare Source
Added
minView
andmaxView
options for better control over the displayed views, allowing tocreate Month and Year pickers.
parse
method to convert input values into valid dates, complementing theformat
option for enhanced UXlocale
andtimeZone
options to theformat
methodplaceholder
context property to customize the input's placeholder textFixed
data-placement
attributedropzone
context.setClipboardFiles(...)
was called despite file upload beingdisabled
dragging
state even when disabledcontext.disabled
min
andmax
dates were less than one year apart and overlapped two distinct years
v4.8.1
Compare Source
Fixed
disableClick
prop.v4.8.0
Compare Source
Added
Tour
component to guide users through the interface. For moredetails, check the Tour documentation.
FocusTrap
component to confine focus within a specifiedcontainer.
Fixed
inconsistent during the
opening
orclosing
phases.v4.7.0
Compare Source
Added
Clipboard.ValueText
to display clipboard content.preventDropOnDocument
to block file drops on the document when the file upload component is active.setClipboardFiles
to the API for setting files from clipboard data.onValueChange
anddefaultValue
.navigate
property for custom router navigation when selections render as links.onValueChange
anddefaultValue
.QrCode.DownloadTrigger
to enable QR code image downloads.Fixed
end
value whenpageSize
exceededcount
.getDataUrl
to generate a properly sized QR code.v4.6.0
Compare Source
Added
Fixed
accept
attribute wasn’t applied to the hidden input.v4.5.0
Compare Source
Added
invalid
andopenAutoFocus
props.TreeCollection
type.acceptedFiles
andrejectedFiles
outputs to thevalidate
method.Changed
EnvironmentContext
in favor ofUseEnvironmentContext
.Fixed
EnvironmentContext
.getDataUrl(...)
rendered improperly scaled images inFirefox.
LocaleProvider
was not appliedcorrectly.
Removed
modal
prop.v4.4.4
Compare Source
Fixed
TreeViewContext
.v4.4.3
Compare Source
Fixed
anatomy
was not properly transpiled.v4.4.2
Compare Source
Fixed
package.json
for/anatomy
.v4.4.1
Compare Source
Fixed
package.json
for/anatomy
.v4.4.0
Compare Source
Added
createAnatomy
for defining custom component anatomy, now accessible viaimport { createAnatomy } from '@​ark-ui/react/anatomy'
.Fixed
--color
CSS variable to swatch and swatch trigger parts.onValueChange
callback.type="button"
attribute on clipboard trigger.resizeObserver
onField.Textarea
.rows
attribute or fonts change.timePickerAnatomy
.v4.3.0
Compare Source
Added
autoresize
prop toField.Textarea
for auto-resizing the textarea based oncontent.
Changed
management. See the TreeView documentation
for details.
Fixed
preventScroll
wasenabled.
createToaster
function.v4.2.0
Compare Source
Added
Slider.DraggingIndicator
for displaying an indicator when dragging a thumb.Field.RequiredIndicator
to show a required indicator (e.g., an asterisk) when therequired
prop is set.Fixed
api.addTag(...)
was not functioning correctly.readOnly
was set totrue
.getSelectionValue
was called multiple times; it now triggers only when a selection is made.preventDefault
calls on thetouchstart
event to avoid browser error logs.Changed
data-autoresize
attribute to both editable and preview elements whenautoResize
is enabled.all: unset
style from the input whenautoResize
is enabled, allowing for user-defined CSS.v4.1.2
Compare Source
Fixed
Portal
component to render twice.'use client'
annotation in theFrame
component.v4.1.1
Compare Source
Changed
value
anddefaultValue
types fromstring
toTime
. Usethe exported
parseTime
function to convert between strings and time objects.Fixed
the delete key.
the value.
v4.1.0
Compare Source
Added
Toggle
component.Fixed
ref
to a component occasionally triggered a warning.acceptedFiles
were removed after an invalid file upload.createObjectURL
was not cleaned up.v4.0.0
Compare Source
In this major release, we shifted from primitive data types like strings to more structured types
such as
Collection
,Color
, andDateValue
. This enhanced flexibility and control by offeringadvanced methods and properties.
The new APIs introduced helper functions like
parseColor
,parseDate
, andcreateListCollection
to simplify working with the new types and make code more concise.
Changed
ColorPicker [Breaking]: Updated
value
anddefaultValue
types fromstring
toColor
. Usethe exported
parseColor
function to convert between strings and color objects.Before
After
Select, Combobox [Breaking]: Removed the
items
,itemToString
, anditemToValue
props.Introduced a
collection
prop instead. Use thecreateListCollection
helper to generate acollection from items.
Before
After
DatePicker [Breaking]: Changed
value
anddefaultValue
types fromstring
toDate
. Toconvert between strings and dates, use the
parseDate
function.Before
After
v3.13.0
Compare Source
Fixed
directory: true
doesn't workChanged
Switch, Checkbox, Radio Group: Added
data-focus-visible
attribute to the selected radiobutton when it is interacted with the keyboard.
Tooltip: Focus behavior only opens when the tooltip trigger is focused with keyboard.
Added
ClearTrigger
to theFileUpload
component.v3.12.1
Compare Source
Fixed
DatePicker
min
andmax
props.min
ormax
is changed.v3.12.0
Compare Source
Added
Frame
component for rendering content within an iframe.Area
andControl
parts to improve structure and anatomy.Fixed
v3.11.1
Compare Source
Fixed
ignoreCase
andmatchAll
props were not working.v3.11.0
Compare Source
Fixed
Floating Components: Fixed issue where clicking outside of a dialog on mobile passed click
events through.
Popover: Fixed issue where popover did not restore focus when open state was changed
programmatically
Avatar: Fixed issue where avatar could throw when the fallback inner text changed
Steps: Improved accessibility of tablist semantics by using
aria-owns
Added
FileUpload: Add support for more file types in file upload
accept
intellisenseToast: Add support for
action
property when creating toasts, giving you the ability to add aaction.label
andaction.onClick
. TheonClick
function will be called when the user clicksthe action trigger.
invalid
prop in file upload to explicitly mark uploadoperation as invalid. This could be paired with the
rejectedFiles
to show an error message.Changed
Floating Components: Refactored
boundary
to only support function that returns an element.Select
v3.10.0
Compare Source
Fixed
Added
invalid
prop toCheckbox.Group
v3.9.0
Compare Source
Added
Editable
edit
andonEditChange
Pagination
api.count
propertyChanged
Editable
onEdit
in favor ofonEditChange
startsWithEditView
in favor ofedit
propFixed
Dialog
previously focused element.
Steps: Fixed issue where the steps component was not exported in the index file.
v3.8.0
Compare Source
Added
Steps
component.Timer
component.v3.7.0
Compare Source
Changed
Progress.ValueText
to render percentage as string.Fixed
Field:
useLayoutEffect
usage.data-*
attributes to control part to allow for better styling.Select: Fixed reactivity issues when
items
andvalue
are updated.v3.6.2
Compare Source
Changed
index
ingetLabelProps
.Fixed
getPresetTrigger
.onValueChangeEnd
was called with an incorrect value.@internationalized/date
.v3.6.1
Compare Source
Changed
@ark-ui/react/highlight
.HighlightChunk
type to enhance type inference in userland code.Fixed
HiddenSelect
to correctly emit values when a simple string array is used as thevalue
for theSelect
component.v3.6.0
Compare Source
Added
Learn more in the documentation.
closeOnClick
to control tooltip closure on trigger click.Changed
CreateToasterReturn
type to improve type inference.aria-selected
andaria-disabled
attributes.Fixed
aria-labelledby
andaria-describedby
attributes on the root element.data-readonly
attribute.closeOnSelect
whenmultiple
is true.v3.5.0
Compare Source
Added
All Components: Exported each component's anatomy. For example:
NumberInput: Introduced the
ValueText
part to render the internal state value.Checkbox: Added the
name
prop toCheckbox.Group
for setting names within the group.Fixed
Circle
due to an incorrectviewBox
attribute on the<svg>
element.
slidesPerView
and
loop
are set.v3.4.0
Compare Source
Added
Field
component for flexible form input, label, and helper textcontainer.
in CSS-in-JS environments.
SliderValueText
,SliderLabel
, andValueSwatch
parts for enhancedcustomization.
closeOnScroll
option to control whether the tooltip should closewhen the trigger's overflow parent scrolls.
Shadow DOM
.HiddenInput
to theSignaturePad
component for better formlibrary compatibility.
Fixed
press.
RadioOptionItem
did not provide thechecked
state in context.activationMode
todblclick
unexpectedly cleared theinput value.
group
role for the Checkbox group component.Circle
,CircleTrack
, andCircleRange
components to use React'sforwardRef
for improved ref handling.RootProvider
for theColorPicker
,NumberInput
,RatingGroup
,SegmentGroup
, andToggleGroup
components.v3.3.0
Compare Source
Added
SignaturePad
component for capturing signatures.QRCode
component for generating QR codes.CheckboxGroup
component for managing multiple checkboxes.immediate
to synchronize presence changes immediately instead of deferring to the next tick.Fixed
defaultSelectedValue
ordefaultExpandedValue
.defaultOpen
did not work.onFileAccept
event was triggered when deleting an item via the delete trigger.SelectList
component.v3.2.1
Compare Source
Fixed
ComboboxList
component.v3.2.0
Compare Source
Added
Provider
component for easier access to internal machineAPIs, improving component composition. See the example below:
v3.1.0
Compare Source
Added
textarea
as the input element in edit mode.Fixed
event.
autoFocus
to determine whether the popover should autofocus on open:true
, the first focusable element or the content is focused.false
, the content is focused.v3.0.2
Compare Source
Fixed
'use client'
annotation to thePortal
component.keydown
event might not fire in React due tonativeEvent.currentTarget
not being set consistently.Changed
naturalWidth
andnaturalHeight
instead ofcurrentSrc
.v3.0.1
Compare Source
Fixed
HiddenInput
inSlider
.ItemHiddenInput
inRadioGroup
andSegmentGroup
.v3.0.0
Compare Source
Highlights
The 3.0 release brings significant enhancements and some breaking changes for a more streamlined and
flexible API. Key updates include new components and types, improved form integration, and forward
compatibility with React 19. Here are some of the highlights:
Added
Context
component for easier access to internal machineAPIs, improving component composition. See the example below:
Format
component for formatting bytes and numbers.defaultOpen
prop for cases where you do not need to control its open state.Assign
andOptional
types to enhance type handling.Changed
Checkbox
,ColorPicker
,FileUpload
,PinInput
,RatingGroup
,Select
,Switch
, andTagsInput
for better form library compatibility. Pleaseensure to include the hidden input in your component like shown below:
id
optional and removedhtmlFor
fromItemGroupLabel
for cleaner markup.
closeOnEsc
tocloseOnEscape
to be consistent withdialog machine.
Environment
toEnvironmentProvider
to align with otherproviders.
ark
factory's forward compatibility with React 19 by supportingref
as a normal prop.
Fixed
min
andmax
props not supporting date strings.HTMLInputElement
withHTMLDivElement
inTagsInput.Root
.Removed
Context
component for more flexible and cleaner API integration.
dir
andgetRootNode
attributes. UseLocaleProvider and
EnvironmentProvider for these settings.
v2.2.3
Compare Source
Fixed
Locale
in Next.js projects.Toast
not updating its toasts and count properties when creating one or more toasts.v2.2.2
Compare Source
Fixed
Accordion.Item
could still be opened.̊v2.2.1
Compare Source
Changed
@ark-ui/anatomy
version.v2.2.0
Compare Source
Added
Collapsible
component.defaultExpandedIds
in theTreeView
component.Changed
factory
by utilizingmemo
to avoid unnecessary re-renders.Collapsible
intoAccordion
, allowing theAccordion
component to utilizeCollapsible
for animating the opening and closing of content.dFixed
createToaster
for comprehensive IntelliSense support when styling theToaster
component.TreeView
to utilizedefaultSelectedIds
instead ofdefaultFocusedId
.factory
in Next.js projects.Tooltip
would flash upon hovering and clicking the trigger.Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.