@zag-js/combobox
Advanced tools
Comparing version 0.58.2 to 0.58.3
@@ -325,2 +325,3 @@ "use strict"; | ||
disabled, | ||
"data-invalid": (0, import_dom_query2.dataAttr)(invalid), | ||
"data-focusable": (0, import_dom_query2.dataAttr)(props.focusable), | ||
@@ -376,2 +377,3 @@ "data-readonly": (0, import_dom_query2.dataAttr)(readOnly), | ||
"data-state": open ? "open" : "closed", | ||
"data-placement": state.context.currentPlacement, | ||
"aria-labelledby": dom.getLabelId(state.context), | ||
@@ -400,2 +402,3 @@ "aria-multiselectable": state.context.multiple && composite ? true : void 0, | ||
disabled, | ||
"data-invalid": (0, import_dom_query2.dataAttr)(invalid), | ||
"aria-label": translations.clearTriggerLabel, | ||
@@ -460,2 +463,3 @@ "aria-controls": dom.getInputId(state.context), | ||
dir: state.context.dir, | ||
"data-state": itemState.selected ? "checked" : "unchecked", | ||
"data-disabled": (0, import_dom_query2.dataAttr)(itemState.disabled), | ||
@@ -1221,2 +1225,3 @@ "data-highlighted": (0, import_dom_query2.dataAttr)(itemState.highlighted) | ||
ctx2.valueAsString = valueAsString; | ||
if (ctx2.inputValue.trim() || ctx2.multiple) return; | ||
ctx2.inputValue = (0, import_utils.match)(ctx2.selectionBehavior, { | ||
@@ -1223,0 +1228,0 @@ preserve: ctx2.inputValue || valueAsString, |
{ | ||
"name": "@zag-js/combobox", | ||
"version": "0.58.2", | ||
"version": "0.58.3", | ||
"description": "Core logic for the combobox widget implemented as a state machine", | ||
@@ -30,12 +30,12 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.58.2", | ||
"@zag-js/aria-hidden": "0.58.2", | ||
"@zag-js/collection": "0.58.2", | ||
"@zag-js/core": "0.58.2", | ||
"@zag-js/dismissable": "0.58.2", | ||
"@zag-js/dom-query": "0.58.2", | ||
"@zag-js/dom-event": "0.58.2", | ||
"@zag-js/utils": "0.58.2", | ||
"@zag-js/popper": "0.58.2", | ||
"@zag-js/types": "0.58.2" | ||
"@zag-js/anatomy": "0.58.3", | ||
"@zag-js/aria-hidden": "0.58.3", | ||
"@zag-js/collection": "0.58.3", | ||
"@zag-js/core": "0.58.3", | ||
"@zag-js/dismissable": "0.58.3", | ||
"@zag-js/dom-query": "0.58.3", | ||
"@zag-js/dom-event": "0.58.3", | ||
"@zag-js/utils": "0.58.3", | ||
"@zag-js/popper": "0.58.3", | ||
"@zag-js/types": "0.58.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -249,2 +249,3 @@ import { clickIfLink, getEventKey, isContextMenuEvent, isLeftClick, type EventKeyMap } from "@zag-js/dom-event" | ||
disabled, | ||
"data-invalid": dataAttr(invalid), | ||
"data-focusable": dataAttr(props.focusable), | ||
@@ -304,2 +305,3 @@ "data-readonly": dataAttr(readOnly), | ||
"data-state": open ? "open" : "closed", | ||
"data-placement": state.context.currentPlacement, | ||
"aria-labelledby": dom.getLabelId(state.context), | ||
@@ -331,2 +333,3 @@ "aria-multiselectable": state.context.multiple && composite ? true : undefined, | ||
disabled: disabled, | ||
"data-invalid": dataAttr(invalid), | ||
"aria-label": translations.clearTriggerLabel, | ||
@@ -396,2 +399,3 @@ "aria-controls": dom.getInputId(state.context), | ||
dir: state.context.dir, | ||
"data-state": itemState.selected ? "checked" : "unchecked", | ||
"data-disabled": dataAttr(itemState.disabled), | ||
@@ -398,0 +402,0 @@ "data-highlighted": dataAttr(itemState.highlighted), |
@@ -757,2 +757,4 @@ import { ariaHidden } from "@zag-js/aria-hidden" | ||
if (ctx.inputValue.trim() || ctx.multiple) return | ||
ctx.inputValue = match(ctx.selectionBehavior, { | ||
@@ -759,0 +761,0 @@ preserve: ctx.inputValue || valueAsString, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
348485
5118
+ Added@floating-ui/dom@1.6.6(transitive)
+ Added@zag-js/anatomy@0.58.3(transitive)
+ Added@zag-js/aria-hidden@0.58.3(transitive)
+ Added@zag-js/collection@0.58.3(transitive)
+ Added@zag-js/core@0.58.3(transitive)
+ Added@zag-js/dismissable@0.58.3(transitive)
+ Added@zag-js/dom-event@0.58.3(transitive)
+ Added@zag-js/dom-query@0.58.3(transitive)
+ Added@zag-js/interact-outside@0.58.3(transitive)
+ Added@zag-js/popper@0.58.3(transitive)
+ Added@zag-js/store@0.58.3(transitive)
+ Added@zag-js/text-selection@0.58.3(transitive)
+ Added@zag-js/types@0.58.3(transitive)
+ Added@zag-js/utils@0.58.3(transitive)
- Removed@floating-ui/dom@1.6.5(transitive)
- Removed@zag-js/anatomy@0.58.2(transitive)
- Removed@zag-js/aria-hidden@0.58.2(transitive)
- Removed@zag-js/collection@0.58.2(transitive)
- Removed@zag-js/core@0.58.2(transitive)
- Removed@zag-js/dismissable@0.58.2(transitive)
- Removed@zag-js/dom-event@0.58.2(transitive)
- Removed@zag-js/dom-query@0.58.2(transitive)
- Removed@zag-js/interact-outside@0.58.2(transitive)
- Removed@zag-js/popper@0.58.2(transitive)
- Removed@zag-js/store@0.58.2(transitive)
- Removed@zag-js/text-selection@0.58.2(transitive)
- Removed@zag-js/types@0.58.2(transitive)
- Removed@zag-js/utils@0.58.2(transitive)
Updated@zag-js/anatomy@0.58.3
Updated@zag-js/aria-hidden@0.58.3
Updated@zag-js/collection@0.58.3
Updated@zag-js/core@0.58.3
Updated@zag-js/dismissable@0.58.3
Updated@zag-js/dom-event@0.58.3
Updated@zag-js/dom-query@0.58.3
Updated@zag-js/popper@0.58.3
Updated@zag-js/types@0.58.3
Updated@zag-js/utils@0.58.3