Releases: chakra-ui/ark
@ark-ui/[email protected]
Fixed
- General: Ensure pointerdown or click event handlers only execute when the main button is clicked
- Tree View: Exported
TreeViewNodeState
andTreeViewNodeProps
types from@zag-js/tree-view
Changed
-
Collection: Improve the APIs around
tree.flatten(...)
andflattenedToTree
to ensure the original node
properties are preserved.Previously,
tree.flatten()
would return an array of objects withvalue
andlabel
stripping out the original
node properties.const tree = new TreeCollection({ rootNode: { value: 'ROOT', children: [{ value: 'child1' }, { value: 'child2' }], }, }) const flattened = tree.flatten() const reconstructed = flattenedToTree(flattened) console.log(reconstructed.rootNode) // { // value: "ROOT", // children: [{ value: "child1" }, { value: "child2" }], // }
@ark-ui/[email protected]
Fixed
- General: Ensure pointerdown or click event handlers only execute when the main button is clicked
- Tree View: Exported
TreeViewNodeState
andTreeViewNodeProps
types from@zag-js/tree-view
Changed
-
Collection: Improve the APIs around
tree.flatten(...)
andflattenedToTree
to ensure the original node
properties are preserved.Previously,
tree.flatten()
would return an array of objects withvalue
andlabel
stripping out the original
node properties.const tree = new TreeCollection({ rootNode: { value: 'ROOT', children: [{ value: 'child1' }, { value: 'child2' }], }, }) const flattened = tree.flatten() const reconstructed = flattenedToTree(flattened) console.log(reconstructed.rootNode) // { // value: "ROOT", // children: [{ value: "child1" }, { value: "child2" }], // }
@ark-ui/[email protected]
Fixed
- General: Ensure pointerdown or click event handlers only execute when the main button is clicked
- Tree View: Exported
TreeViewNodeState
andTreeViewNodeProps
types from@zag-js/tree-view
Changed
-
Collection: Improve the APIs around
tree.flatten(...)
andflattenedToTree
to ensure the original node
properties are preserved.Previously,
tree.flatten()
would return an array of objects withvalue
andlabel
stripping out the original
node properties.const tree = new TreeCollection({ rootNode: { value: 'ROOT', children: [{ value: 'child1' }, { value: 'child2' }], }, }) const flattened = tree.flatten() const reconstructed = flattenedToTree(flattened) console.log(reconstructed.rootNode) // { // value: "ROOT", // children: [{ value: "child1" }, { value: "child2" }], // }
@ark-ui/[email protected]
Added
- Added all components to match React and Vue packages.
@ark-ui/[email protected]
Fixed
- Popover: Fixed issue where
onOpenChange
could be called twice when controlled - File Utils: Improved
downloadFile
function to handle webview scenarios - Toast: Fixed issue where toast's CSS variables don't apply correctly
- Combobox:
- Fixed issue where
onInputValueChange
could be called twice when selecting an item - Fixed issue where combobox with
allowCustomValue: true
used within in a form requires two enter keypress to submit
- Fixed issue where
@ark-ui/[email protected]
Fixed
- Popover: Fixed issue where
onOpenChange
could be called twice when controlled - File Utils: Improved
downloadFile
function to handle webview scenarios - Combobox:
- Fixed issue where
onInputValueChange
could be called twice when selecting an item - Fixed issue where combobox with
allowCustomValue: true
used within in a form requires two enter keypress to submit
- Fixed issue where
@ark-ui/[email protected]
Fixed
- Popover: Fixed issue where
onOpenChange
could be called twice when controlled - File Utils: Improved
downloadFile
function to handle webview scenarios - Combobox:
- Fixed issue where
onInputValueChange
could be called twice when selecting an item - Fixed issue where combobox with
allowCustomValue: true
used within in a form requires two enter keypress to submit
- Fixed issue where
@ark-ui/[email protected]
Added
- Editable: Added support for
activationMode=none
- Collection
- Exposed
copy
method - Added support for
getParentNodes
to accept a value or index path
- Exposed
Fixed
- Collection: Fixed issue where entrypoint
@ark-ui/vue/collection
was not working as expected - Carousel: Fixed issue where carousel crashes when
slidesPerPage
is 0 - File Upload: Prevented
undefined
inacceptedFiles
when no files accepted - Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
- Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
- Menu: Fixed issue where
Menu.ItemText
could not be used withMenu.Item
@ark-ui/[email protected]
Added
- Editable: Added support for
activationMode=none
- Collection
- Exposed
copy
method - Added support for
getParentNodes
to accept a value or index path
- Exposed
Fixed
- Collection: Fixed issue where entrypoint
@ark-ui/solid/collection
was not working as expected - Carousel: Fixed issue where carousel crashes when
slidesPerPage
is 0 - File Upload: Prevented
undefined
inacceptedFiles
when no files accepted - Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
- Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
- Menu: Fixed issue where
Menu.ItemText
could not be used withMenu.Item
@ark-ui/[email protected]
Added
- Editable: Added support for
activationMode=none
- Collection
- Exposed
copy
method - Added support for
getParentNodes
to accept a value or index path
- Exposed
Fixed
- Collection: Fixed issue where entrypoint
@ark-ui/react/collection
was not working as expected - Carousel: Fixed issue where carousel crashes when
slidesPerPage
is 0 - File Upload: Prevented
undefined
inacceptedFiles
when no files accepted - Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
- Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
- Menu: Fixed issue where
Menu.ItemText
could not be used withMenu.Item