@zag-js/combobox 1.35.2 → 1.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/combobox.connect.js +1 -1
- package/dist/combobox.connect.mjs +1 -1
- package/dist/combobox.machine.js +332 -405
- package/dist/combobox.machine.mjs +336 -405
- package/dist/combobox.types.d.mts +3 -2
- package/dist/combobox.types.d.ts +3 -2
- package/package.json +11 -11
|
@@ -253,7 +253,7 @@ interface ComboboxProps<T extends CollectionItem = CollectionItem> extends Direc
|
|
|
253
253
|
type PropsWithDefault = "openOnChange" | "openOnKeyPress" | "composite" | "loopFocus" | "positioning" | "openOnClick" | "openOnChange" | "inputBehavior" | "collection" | "selectionBehavior" | "closeOnSelect" | "translations" | "positioning" | "defaultValue" | "defaultInputValue";
|
|
254
254
|
interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
255
255
|
props: RequiredBy<ComboboxProps<T>, PropsWithDefault>;
|
|
256
|
-
state: "idle" | "focused" | "suggesting" | "interacting";
|
|
256
|
+
state: "closed.idle" | "closed.focused" | "open.suggesting" | "open.interacting";
|
|
257
257
|
tag: "open" | "focused" | "idle" | "closed";
|
|
258
258
|
context: {
|
|
259
259
|
value: string[];
|
|
@@ -261,7 +261,7 @@ interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
|
261
261
|
highlightedValue: string | null;
|
|
262
262
|
currentPlacement?: Placement | undefined;
|
|
263
263
|
highlightedItem: T | null;
|
|
264
|
-
|
|
264
|
+
selectedItemMap: Map<string, T>;
|
|
265
265
|
};
|
|
266
266
|
computed: {
|
|
267
267
|
isCustomValue: boolean;
|
|
@@ -270,6 +270,7 @@ interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
|
270
270
|
autoComplete: boolean;
|
|
271
271
|
autoHighlight: boolean;
|
|
272
272
|
hasSelectedItems: boolean;
|
|
273
|
+
selectedItems: T[];
|
|
273
274
|
valueAsString: string;
|
|
274
275
|
};
|
|
275
276
|
event: EventObject;
|
package/dist/combobox.types.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ interface ComboboxProps<T extends CollectionItem = CollectionItem> extends Direc
|
|
|
253
253
|
type PropsWithDefault = "openOnChange" | "openOnKeyPress" | "composite" | "loopFocus" | "positioning" | "openOnClick" | "openOnChange" | "inputBehavior" | "collection" | "selectionBehavior" | "closeOnSelect" | "translations" | "positioning" | "defaultValue" | "defaultInputValue";
|
|
254
254
|
interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
255
255
|
props: RequiredBy<ComboboxProps<T>, PropsWithDefault>;
|
|
256
|
-
state: "idle" | "focused" | "suggesting" | "interacting";
|
|
256
|
+
state: "closed.idle" | "closed.focused" | "open.suggesting" | "open.interacting";
|
|
257
257
|
tag: "open" | "focused" | "idle" | "closed";
|
|
258
258
|
context: {
|
|
259
259
|
value: string[];
|
|
@@ -261,7 +261,7 @@ interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
|
261
261
|
highlightedValue: string | null;
|
|
262
262
|
currentPlacement?: Placement | undefined;
|
|
263
263
|
highlightedItem: T | null;
|
|
264
|
-
|
|
264
|
+
selectedItemMap: Map<string, T>;
|
|
265
265
|
};
|
|
266
266
|
computed: {
|
|
267
267
|
isCustomValue: boolean;
|
|
@@ -270,6 +270,7 @@ interface ComboboxSchema<T extends CollectionItem = CollectionItem> {
|
|
|
270
270
|
autoComplete: boolean;
|
|
271
271
|
autoHighlight: boolean;
|
|
272
272
|
hasSelectedItems: boolean;
|
|
273
|
+
selectedItems: T[];
|
|
273
274
|
valueAsString: string;
|
|
274
275
|
};
|
|
275
276
|
event: EventObject;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/combobox",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.3",
|
|
4
4
|
"description": "Core logic for the combobox widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "1.35.
|
|
30
|
-
"@zag-js/aria-hidden": "1.35.
|
|
31
|
-
"@zag-js/
|
|
32
|
-
"@zag-js/
|
|
33
|
-
"@zag-js/
|
|
34
|
-
"@zag-js/dom-query": "1.35.
|
|
35
|
-
"@zag-js/
|
|
36
|
-
"@zag-js/
|
|
37
|
-
"@zag-js/
|
|
38
|
-
"@zag-js/utils": "1.35.
|
|
29
|
+
"@zag-js/anatomy": "1.35.3",
|
|
30
|
+
"@zag-js/aria-hidden": "1.35.3",
|
|
31
|
+
"@zag-js/collection": "1.35.3",
|
|
32
|
+
"@zag-js/core": "1.35.3",
|
|
33
|
+
"@zag-js/dismissable": "1.35.3",
|
|
34
|
+
"@zag-js/dom-query": "1.35.3",
|
|
35
|
+
"@zag-js/focus-visible": "1.35.3",
|
|
36
|
+
"@zag-js/popper": "1.35.3",
|
|
37
|
+
"@zag-js/types": "1.35.3",
|
|
38
|
+
"@zag-js/utils": "1.35.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"clean-package": "2.2.0"
|