Releases: chakra-ui/zag
@zag-js/[email protected]
Patch Changes
- Updated dependencies []:
- @zag-js/[email protected]
@zag-js/[email protected]
Minor Changes
-
2def7af
Thanks
@segunadebayo! - - Resolved an issue whereonFileReject
was incorrectly triggered
when deleting accepted files usingItemDeleteTrigger
- The file deletion logic now properly differentiates between accepted and rejected files, preventing unnecessary
callbacks - Added
type
prop to all item-related components (ItemProps
,ItemGroupProps
) to specify whether items are
"accepted" or "rejected" - Added
data-type
attribute to all item-related elements for easier styling of accepted vs rejected files - Exposed
ItemType
,ItemGroupProps
, andItemTypeProps
types for better TypeScript support
Migration
When rendering rejected files, you should now pass
type: "rejected"
to item components:// Before <div {...api.getItemProps({ file })}> <button {...api.getItemDeleteTriggerProps({ file })}>Delete</button> </div> // After - for rejected files <div {...api.getItemProps({ file, type: "rejected" })}> <button {...api.getItemDeleteTriggerProps({ file, type: "rejected" })}>Delete</button> </div>
- The file deletion logic now properly differentiates between accepted and rejected files, preventing unnecessary
Patch Changes
-
#2673
a493193
Thanks
@julienbenac! - Adddata-required
to label parts -
Updated dependencies [
92c0bf5
,
47011ad
,
92c0bf5
,
50391e1
]:- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
@zag-js/[email protected]
Patch Changes
-
#2673
a493193
Thanks
@julienbenac! - Adddata-required
to label parts -
Updated dependencies [
92c0bf5
,
47011ad
,
92c0bf5
,
50391e1
]:- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
@zag-js/[email protected]
Patch Changes
-
#2697
92c0bf5
Thanks
@nikparo! - Fix issue whereisActiveElement
checks don't consider the Shadow DOM. -
#2548
47011ad
Thanks
@segunadebayo! - [New] Introduce bottom sheet state machine to show secondary
content anchored to the bottom of the screen -
#2697
92c0bf5
Thanks
@nikparo! - Fix issue wheregetActiveElement
returnsactiveElement
rather than
null
for focusable web components with no focusable children -
Updated dependencies []:
- @zag-js/[email protected]
@zag-js/[email protected]
@zag-js/[email protected]
Minor Changes
352c638
Thanks
@segunadebayo! - Add support for layer types in dismissable layer stack. Layers can
now be categorized asdialog
,popover
,menu
, orlistbox
. This enables:data-nested
attribute on nested layers of the same typedata-has-nested
attribute on parent layers with nested children of the same type--nested-layer-count
CSS variable indicating the number of nested layers of the same type
Patch Changes
- Updated dependencies [
92c0bf5
,
47011ad
,
92c0bf5
]:- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
@zag-js/[email protected]
Minor Changes
352c638
Thanks
@segunadebayo! - Add support for layer types in dismissable layer stack. Layers can
now be categorized asdialog
,popover
,menu
, orlistbox
. This enables:data-nested
attribute on nested layers of the same typedata-has-nested
attribute on parent layers with nested children of the same type--nested-layer-count
CSS variable indicating the number of nested layers of the same type
Patch Changes
- Updated dependencies [
92c0bf5
,
352c638
,
47011ad
,
92c0bf5
,
50391e1
]:- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
@zag-js/[email protected]
@zag-js/[email protected]
Minor Changes
352c638
Thanks
@segunadebayo! - Add support for layer types in dismissable layer stack. Layers can
now be categorized asdialog
,popover
,menu
, orlistbox
. This enables:data-nested
attribute on nested layers of the same typedata-has-nested
attribute on parent layers with nested children of the same type--nested-layer-count
CSS variable indicating the number of nested layers of the same type
Patch Changes
-
#2697
92c0bf5
Thanks
@nikparo! - Fix issue whereisActiveElement
checks don't consider the Shadow DOM. -
e55d277
Thanks
@segunadebayo! - Add support fordisabled
property for years ingetYearsGrid
function. -
Updated dependencies [
92c0bf5
,
352c638
,
47011ad
,
92c0bf5
,
50391e1
]:- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
- @zag-js/[email protected]
@zag-js/[email protected]
Patch Changes
-
50391e1
Thanks
@segunadebayo! - Fix issue wheremergeProps
strips symbols after merging. -
Updated dependencies [
92c0bf5
,
47011ad
,
92c0bf5
]:- @zag-js/[email protected]
- @zag-js/[email protected]