chore(deps): update dependency @ark-ui/react to v4 #53
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:
^1.2.1
->^4.0.0
Release Notes
chakra-ui/ark (@ark-ui/react)
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 componentis active.
setClipboardFiles
to the API for setting files from clipboard data.onValueChange
anddefaultValue
.navigate
property for custom router navigation when selectionsrender as links.
onValueChange
anddefaultValue
.QrCode.DownloadTrigger
to enable QR code image downloads.Fixed
re-rendered.
was removed from the DOM.
was inside a scrollable container.
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 athumb.
Field.RequiredIndicator
to show a required indicator (e.g., an asterisk) whenthe
required
prop is set.Fixed
api.addTag(...)
was not functioning correctly.readOnly
was set totrue
.getSelectionValue
was called multiple times; it nowtriggers only when a selection is made.
preventDefault
calls on thetouchstart
event to avoid browser errorlogs.
close unexpectedly.
unmounting state if closed with a delay while switching tabs.
Changed
data-autoresize
attribute to both editable and preview elements whenautoResize
isenabled.
all: unset
style from the input whenautoResize
is enabled, allowing foruser-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.iframe.
Fixed
ref
to a component occasionally triggered a warning.input.
scrollbar was clicked.
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
Added
ClearTrigger
for clearing file uploads.data-focus-visible
attribute for elementsinteracted with via keyboard.
Fixed
directory: true
was non-functional.Changed
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
items was empty.
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
instead of the 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
then focusing the input.
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 asthe
value
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 ofdeferring to the next tick.
Fixed
defaultSelectedValue
ordefaultExpandedValue
.defaultOpen
did not work.tab content.
onFileAccept
event was triggered when deleting an itemvia 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
Added the missing
'use client'
annotation to thePortal
component.Fixed an issue where the
keydown
event might not fire in React due tonativeEvent.currentTarget
not being set consistently.Avatar: Improved image load check by using
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.Tooltip: Added
defaultOpen
prop for cases where you do not need to control its open state.Types: Exported
Assign
andOptional
types to enhance type handling.Toast: Added support for overlapping and stacked toast.
[BREAKING]: Exposed hidden inputs in
Checkbox
,ColorPicker
,FileUpload
,PinInput
,RadioGroup
,RatingGroup
,SegmentGroup
,Select
,Slider
,Switch
, andTagsInput
forbetter form library compatibility. Please ensure 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.
loop
toloopFocus
to be moredescriptive.
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 ormore toasts.
v2.2.2
Compare Source
Fixed
Accordion.Item
could still be opened.v2.2.1
Compare Source
@ark-ui/anatomy
version.v2.2.0
Compare Source
Added
Added
Collapsible
component.Added support for
defaultExpandedIds
in theTreeView
component.Enhanced the performance of the Ark
factory
by utilizingmemo
to avoid unnecessary re-renders.Integrated
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.v2.1.1
Compare Source
Fixed
Clipboard
component was missing a specifier in the@ark-ui/react
package.
v2.1.0
Compare Source
Added
Clipboard
component. Refer to thedocumentation for details.
ColorPicker
,DatePicker
,Dialog
,HoverCard
,Menu
,Popover
,Select
, andTooltip
.PresetTrigger
part to theDatePicker
component, enabling custom triggers for commondate presets (e.g., Last 7 days, Last 30 days).
DatePicker.Control
component to support multiple inputs by introducing an optionalindex
attribute toDatePicker.Input
. Example usage:TreeView
component API for streamlined component usage. See thedocumentation for details.
Fixed
starting point.
Combobox
,Menu
, andSelect
where scrolling into view inadvertentlyscrolled the body element.
DatePicker
regarding the incorrect display of weeks when settingstartOfWeek
.Editable
preventing text deletion upon reachingmaxLength
.Select
where an item group's labelid
was misdirected.Select
to use the correctid
for thearia-activedescendant
attribute.v2.0.2
Compare Source
Added
Exported
SelectionDetails
type for theMenu
component.Updated
Dialog.Description
andPopover.Description
elements fromp
todiv
for betterparagraph handling.
Altered
TreeView.BranchTrigger
element frombutton
todiv
for accessibility enhancements.Fixed
@types/react@18.2.8
broke current typings inPortal
Select
component submits its first option when used in a form, even if there isno value selected.
v2.0.1
Compare Source
Fixed
v2.0.0
Compare Source
Added
Added
TreeView
componentUpdated
@zag-js
dependencies to their latest versions, enhancing performance for all components.Breaking Change: Renamed the root types for all components to
<ComponentName>RootProps
. Likeshown for the
Avatar
component below:.Root
suffix for provider component likePresence
andEnvironment
.Breaking Change: Renamed the
indicator
part toview
in theProgress
component to moreaccurately reflect its functionality.
Added the
ItemPreview
component to theTagsInput
component. See the example below:Progress
component to usediv
elements instead ofnav
for semanticcorrectness.
Fixed
Combobox
,Menu
, orSelect
triggered a click event on the element behind the portalled content.
PinInput
where pasting a value filled all inputs instead of populating themone per input.
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 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.