@zag-js/combobox 0.53.0 → 0.55.0
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/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1478 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1448 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/combobox.anatomy.ts +9 -8
- package/src/combobox.connect.ts +182 -164
- package/src/combobox.types.ts +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { StateMachine } from '@zag-js/core';
|
|
|
9
9
|
import { PositioningOptions } from '@zag-js/popper';
|
|
10
10
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
11
11
|
|
|
12
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"input" | "label" | "root" | "content" | "item" | "
|
|
12
|
+
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"input" | "label" | "root" | "content" | "item" | "list" | "clearTrigger" | "control" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "positioner" | "trigger">;
|
|
13
13
|
|
|
14
14
|
declare const collection: {
|
|
15
15
|
<T extends unknown>(options: CollectionOptions<T>): Collection<T>;
|
|
@@ -379,15 +379,15 @@ interface MachineApi<T extends PropTypes = PropTypes, V extends CollectionItem =
|
|
|
379
379
|
* Function to set the positioning options
|
|
380
380
|
*/
|
|
381
381
|
reposition(options?: Partial<PositioningOptions>): void;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
getRootProps(): T["element"];
|
|
383
|
+
getLabelProps(): T["label"];
|
|
384
|
+
getControlProps(): T["element"];
|
|
385
|
+
getPositionerProps(): T["element"];
|
|
386
|
+
getInputProps(): T["input"];
|
|
387
|
+
getContentProps(): T["element"];
|
|
388
388
|
getTriggerProps(props?: TriggerProps): T["button"];
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
getClearTriggerProps(): T["button"];
|
|
390
|
+
getListProps(): T["element"];
|
|
391
391
|
getItemProps(props: ItemProps): T["element"];
|
|
392
392
|
getItemTextProps(props: ItemProps): T["element"];
|
|
393
393
|
getItemIndicatorProps(props: ItemProps): T["element"];
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { StateMachine } from '@zag-js/core';
|
|
|
9
9
|
import { PositioningOptions } from '@zag-js/popper';
|
|
10
10
|
export { Placement, PositioningOptions } from '@zag-js/popper';
|
|
11
11
|
|
|
12
|
-
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"input" | "label" | "root" | "content" | "item" | "
|
|
12
|
+
declare const anatomy: _zag_js_anatomy.AnatomyInstance<"input" | "label" | "root" | "content" | "item" | "list" | "clearTrigger" | "control" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "positioner" | "trigger">;
|
|
13
13
|
|
|
14
14
|
declare const collection: {
|
|
15
15
|
<T extends unknown>(options: CollectionOptions<T>): Collection<T>;
|
|
@@ -379,15 +379,15 @@ interface MachineApi<T extends PropTypes = PropTypes, V extends CollectionItem =
|
|
|
379
379
|
* Function to set the positioning options
|
|
380
380
|
*/
|
|
381
381
|
reposition(options?: Partial<PositioningOptions>): void;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
getRootProps(): T["element"];
|
|
383
|
+
getLabelProps(): T["label"];
|
|
384
|
+
getControlProps(): T["element"];
|
|
385
|
+
getPositionerProps(): T["element"];
|
|
386
|
+
getInputProps(): T["input"];
|
|
387
|
+
getContentProps(): T["element"];
|
|
388
388
|
getTriggerProps(props?: TriggerProps): T["button"];
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
getClearTriggerProps(): T["button"];
|
|
390
|
+
getListProps(): T["element"];
|
|
391
391
|
getItemProps(props: ItemProps): T["element"];
|
|
392
392
|
getItemTextProps(props: ItemProps): T["element"];
|
|
393
393
|
getItemIndicatorProps(props: ItemProps): T["element"];
|