@sprawlify/vue 0.0.66 → 0.0.67

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.
Files changed (46) hide show
  1. package/dist/{collapsible-BBV8R9Wm.js → collapsible-DQfAISmg.js} +1 -1
  2. package/dist/{collection-DR2kMzrX.js → collection-Ba0Aeh5P.js} +1 -1
  3. package/dist/components/accordion/index.d.ts +14 -14
  4. package/dist/components/accordion/index.js +2 -2
  5. package/dist/components/angle-slider/index.d.ts +15 -15
  6. package/dist/components/angle-slider/index.js +1 -1
  7. package/dist/components/avatar/index.d.ts +8 -8
  8. package/dist/components/avatar/index.js +1 -1
  9. package/dist/components/bottom-sheet/index.d.ts +15 -15
  10. package/dist/components/bottom-sheet/index.js +1 -1
  11. package/dist/components/carousel/index.d.ts +18 -18
  12. package/dist/components/carousel/index.js +1 -1
  13. package/dist/components/checkbox/index.d.ts +23 -23
  14. package/dist/components/checkbox/index.js +1 -1
  15. package/dist/components/client-only/index.d.ts +2 -2
  16. package/dist/components/clipboard/index.d.ts +14 -14
  17. package/dist/components/clipboard/index.js +1 -1
  18. package/dist/components/collapsible/index.d.ts +12 -12
  19. package/dist/components/collapsible/index.js +1 -1
  20. package/dist/components/collection/index.js +1 -1
  21. package/dist/components/color-picker/index.d.ts +610 -0
  22. package/dist/components/color-picker/index.js +1127 -0
  23. package/dist/components/combobox/index.d.ts +618 -0
  24. package/dist/components/combobox/index.js +802 -0
  25. package/dist/components/date-picker/index.d.ts +597 -0
  26. package/dist/components/date-picker/index.js +1110 -0
  27. package/dist/components/dialog/index.d.ts +270 -0
  28. package/dist/components/dialog/index.js +433 -0
  29. package/dist/components/download-trigger/index.d.ts +29 -0
  30. package/dist/components/download-trigger/index.js +68 -0
  31. package/dist/components/editable/index.d.ts +288 -0
  32. package/dist/components/editable/index.js +459 -0
  33. package/dist/components/field/index.d.ts +24 -24
  34. package/dist/components/fieldset/index.d.ts +10 -10
  35. package/dist/components/highlight/index.d.ts +35 -0
  36. package/dist/components/highlight/index.js +57 -0
  37. package/dist/components/menu/index.d.ts +498 -0
  38. package/dist/components/menu/index.js +885 -0
  39. package/dist/components/presence/index.d.ts +1 -1
  40. package/dist/components/select/index.d.ts +30 -29
  41. package/dist/components/select/index.js +2 -2
  42. package/dist/index-BBHms9-0.d.ts +91 -0
  43. package/dist/{index-rHf4D8np.d.ts → index-CDQghZtv.d.ts} +8 -8
  44. package/dist/index.d.ts +2 -91
  45. package/package.json +34 -2
  46. /package/dist/{clean-props-ChPEW0vT.js → clean-props-BDv2zb5M.js} +0 -0
@@ -0,0 +1,618 @@
1
+ import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
2
+ import { t as RootEmits$1 } from "../../presence-types-Bv1E60Cw.js";
3
+ import { i as UsePresenceProps } from "../../index-CDQghZtv.js";
4
+ import { a as Optional, r as EmitFn$1, t as Assign } from "../../types-Bj-dS2Hc.js";
5
+ import { r as PropTypes } from "../../index-B66Om_3U.js";
6
+ import { t as RenderStrategyProps } from "../../use-render-strategy-CHj_pCfT.js";
7
+ import { _ as CollectionItem, b as createListCollection, i as UseListCollectionProps, o as useListCollection, y as ListCollection } from "../../index-DqRk-Yea.js";
8
+ import * as vue725 from "vue";
9
+ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
10
+ import * as _sprawlify_primitives_machines_bottom_sheet25 from "@sprawlify/primitives/machines/bottom-sheet";
11
+ import * as _sprawlify_primitives_anatomy5 from "@sprawlify/primitives/anatomy";
12
+ import * as combobox from "@sprawlify/primitives/machines/combobox";
13
+ import { FocusOutsideEvent, FocusOutsideEvent as ComboboxFocusOutsideEvent, HighlightChangeDetails, HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, InteractOutsideEvent, InteractOutsideEvent as ComboboxInteractOutsideEvent, ItemGroupProps, ItemProps, ItemState, OpenChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, PointerDownOutsideEvent, PointerDownOutsideEvent as ComboboxPointerDownOutsideEvent, SelectionDetails, SelectionDetails as ComboboxSelectionDetails, TriggerProps, ValueChangeDetails, ValueChangeDetails as ComboboxValueChangeDetails } from "@sprawlify/primitives/machines/combobox";
14
+
15
+ //#region src/components/combobox/combobox-clear-trigger.vue.d.ts
16
+ interface ComboboxClearTriggerBaseProps extends PolymorphicProps {}
17
+ interface ComboboxClearTriggerProps extends ComboboxClearTriggerBaseProps,
18
+ /**
19
+ * @vue-ignore
20
+ */
21
+ ButtonHTMLAttributes {}
22
+ declare const _default: typeof __VLS_export$17;
23
+ declare const __VLS_export$17: __VLS_WithSlots$15<vue725.DefineComponent<ComboboxClearTriggerProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxClearTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
24
+ default?: (props: {}) => any;
25
+ }>;
26
+ type __VLS_WithSlots$15<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
31
+ //#endregion
32
+ //#region src/components/combobox/combobox-content.vue.d.ts
33
+ interface ComboboxContentBaseProps extends PolymorphicProps {}
34
+ interface ComboboxContentProps extends ComboboxContentBaseProps,
35
+ /**
36
+ * @vue-ignore
37
+ */
38
+ HTMLAttributes {}
39
+ declare const _default$1: typeof __VLS_export$16;
40
+ declare const __VLS_export$16: __VLS_WithSlots$14<vue725.DefineComponent<ComboboxContentProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
41
+ default?: (props: {}) => any;
42
+ }>;
43
+ type __VLS_WithSlots$14<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ //#endregion
49
+ //#region src/components/combobox/combobox-empty.vue.d.ts
50
+ interface ComboboxEmptyBaseProps extends PolymorphicProps {}
51
+ interface ComboboxEmptyProps extends ComboboxEmptyBaseProps,
52
+ /**
53
+ * @vue-ignore
54
+ */
55
+ HTMLAttributes {}
56
+ declare const _default$4: typeof __VLS_export$15;
57
+ declare const __VLS_export$15: __VLS_WithSlots$13<vue725.DefineComponent<ComboboxEmptyProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
58
+ default?: (props: {}) => any;
59
+ }>;
60
+ type __VLS_WithSlots$13<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
65
+ //#endregion
66
+ //#region src/components/combobox/combobox-control.vue.d.ts
67
+ interface ComboboxControlBaseProps extends PolymorphicProps {}
68
+ interface ComboboxControlProps extends ComboboxControlBaseProps,
69
+ /**
70
+ * @vue-ignore
71
+ */
72
+ HTMLAttributes {}
73
+ declare const _default$3: typeof __VLS_export$14;
74
+ declare const __VLS_export$14: __VLS_WithSlots$12<vue725.DefineComponent<ComboboxControlProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
75
+ default?: (props: {}) => any;
76
+ }>;
77
+ type __VLS_WithSlots$12<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
82
+ //#endregion
83
+ //#region src/components/combobox/combobox-input.vue.d.ts
84
+ interface ComboboxInputBaseProps extends PolymorphicProps {}
85
+ interface ComboboxInputProps extends ComboboxInputBaseProps,
86
+ /**
87
+ * @vue-ignore
88
+ */
89
+ InputHTMLAttributes {}
90
+ declare const _default$5: typeof __VLS_export$13;
91
+ declare const __VLS_export$13: __VLS_WithSlots$11<vue725.DefineComponent<ComboboxInputProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
92
+ default?: (props: {}) => any;
93
+ }>;
94
+ type __VLS_WithSlots$11<T, S> = T & {
95
+ new (): {
96
+ $slots: S;
97
+ };
98
+ };
99
+ //#endregion
100
+ //#region src/components/combobox/use-combobox-item-context.d.ts
101
+ interface UseComboboxItemContext extends ComputedRef<ItemState> {}
102
+ //#endregion
103
+ //#region src/components/combobox/combobox-item-context.vue.d.ts
104
+ interface ComboboxItemContextProps extends SlotsType<{
105
+ default: UnwrapRef<UseComboboxItemContext>;
106
+ }> {}
107
+ declare const _default$7: typeof __VLS_export$12;
108
+ declare const __VLS_export$12: __VLS_WithSlots$10<vue725.DefineComponent<{}, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, true, {}, any>, {
109
+ default(combobox: UnwrapRef<UseComboboxItemContext>): unknown;
110
+ }>;
111
+ type __VLS_WithSlots$10<T, S> = T & {
112
+ new (): {
113
+ $slots: S;
114
+ };
115
+ };
116
+ //#endregion
117
+ //#region src/components/combobox/combobox-item-group-label.vue.d.ts
118
+ interface ComboboxItemGroupLabelBaseProps extends PolymorphicProps {}
119
+ interface ComboboxItemGroupLabelProps extends ComboboxItemGroupLabelBaseProps,
120
+ /**
121
+ * @vue-ignore
122
+ */
123
+ HTMLAttributes {}
124
+ declare const _default$9: typeof __VLS_export$11;
125
+ declare const __VLS_export$11: __VLS_WithSlots$9<vue725.DefineComponent<ComboboxItemGroupLabelProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxItemGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
126
+ default?: (props: {}) => any;
127
+ }>;
128
+ type __VLS_WithSlots$9<T, S> = T & {
129
+ new (): {
130
+ $slots: S;
131
+ };
132
+ };
133
+ //#endregion
134
+ //#region src/components/combobox/combobox-item-group.vue.d.ts
135
+ interface ComboboxItemGroupBaseProps extends Partial<ItemGroupProps>, PolymorphicProps {}
136
+ interface ComboboxItemGroupProps extends ComboboxItemGroupBaseProps,
137
+ /**
138
+ * @vue-ignore
139
+ */
140
+ HTMLAttributes {}
141
+ declare const _default$8: typeof __VLS_export$10;
142
+ declare const __VLS_export$10: __VLS_WithSlots$8<vue725.DefineComponent<ComboboxItemGroupProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxItemGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
143
+ default?: (props: {}) => any;
144
+ }>;
145
+ type __VLS_WithSlots$8<T, S> = T & {
146
+ new (): {
147
+ $slots: S;
148
+ };
149
+ };
150
+ //#endregion
151
+ //#region src/components/combobox/combobox-item-indicator.vue.d.ts
152
+ interface ComboboxItemIndicatorBaseProps extends PolymorphicProps {}
153
+ interface ComboboxItemIndicatorProps extends ComboboxItemIndicatorBaseProps,
154
+ /**
155
+ * @vue-ignore
156
+ */
157
+ HTMLAttributes {}
158
+ declare const _default$10: typeof __VLS_export$9;
159
+ declare const __VLS_export$9: __VLS_WithSlots$7<vue725.DefineComponent<ComboboxItemIndicatorProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
160
+ default?: (props: {}) => any;
161
+ }>;
162
+ type __VLS_WithSlots$7<T, S> = T & {
163
+ new (): {
164
+ $slots: S;
165
+ };
166
+ };
167
+ //#endregion
168
+ //#region src/components/combobox/combobox-item-text.vue.d.ts
169
+ interface ComboboxItemTextBaseProps extends PolymorphicProps {}
170
+ interface ComboboxItemTextProps extends ComboboxItemTextBaseProps,
171
+ /**
172
+ * @vue-ignore
173
+ */
174
+ HTMLAttributes {}
175
+ declare const _default$11: typeof __VLS_export$8;
176
+ declare const __VLS_export$8: __VLS_WithSlots$6<vue725.DefineComponent<ComboboxItemTextProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
177
+ default?: (props: {}) => any;
178
+ }>;
179
+ type __VLS_WithSlots$6<T, S> = T & {
180
+ new (): {
181
+ $slots: S;
182
+ };
183
+ };
184
+ //#endregion
185
+ //#region src/components/combobox/combobox-item.vue.d.ts
186
+ interface ComboboxItemBaseProps extends ItemProps, PolymorphicProps {}
187
+ interface ComboboxItemProps extends ComboboxItemBaseProps,
188
+ /**
189
+ * @vue-ignore
190
+ */
191
+ HTMLAttributes {}
192
+ declare const _default$6: typeof __VLS_export$7;
193
+ declare const __VLS_export$7: __VLS_WithSlots$5<vue725.DefineComponent<ComboboxItemProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
194
+ default?: (props: {}) => any;
195
+ }>;
196
+ type __VLS_WithSlots$5<T, S> = T & {
197
+ new (): {
198
+ $slots: S;
199
+ };
200
+ };
201
+ //#endregion
202
+ //#region src/components/combobox/combobox-label.vue.d.ts
203
+ interface ComboboxLabelBaseProps extends PolymorphicProps {}
204
+ interface ComboboxLabelProps extends ComboboxLabelBaseProps,
205
+ /**
206
+ * @vue-ignore
207
+ */
208
+ LabelHTMLAttributes {}
209
+ declare const _default$12: typeof __VLS_export$6;
210
+ declare const __VLS_export$6: __VLS_WithSlots$4<vue725.DefineComponent<ComboboxLabelProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
211
+ default?: (props: {}) => any;
212
+ }>;
213
+ type __VLS_WithSlots$4<T, S> = T & {
214
+ new (): {
215
+ $slots: S;
216
+ };
217
+ };
218
+ //#endregion
219
+ //#region src/components/combobox/combobox-list.vue.d.ts
220
+ interface ComboboxListBaseProps extends PolymorphicProps {}
221
+ interface ComboboxListProps extends ComboboxListBaseProps,
222
+ /**
223
+ * @vue-ignore
224
+ */
225
+ HTMLAttributes {}
226
+ declare const _default$13: typeof __VLS_export$5;
227
+ declare const __VLS_export$5: __VLS_WithSlots$3<vue725.DefineComponent<ComboboxListProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
228
+ default?: (props: {}) => any;
229
+ }>;
230
+ type __VLS_WithSlots$3<T, S> = T & {
231
+ new (): {
232
+ $slots: S;
233
+ };
234
+ };
235
+ //#endregion
236
+ //#region src/components/combobox/combobox-positioner.vue.d.ts
237
+ interface ComboboxPositionerBaseProps extends PolymorphicProps {}
238
+ interface ComboboxPositionerProps extends ComboboxPositionerBaseProps,
239
+ /**
240
+ * @vue-ignore
241
+ */
242
+ HTMLAttributes {}
243
+ declare const _default$14: typeof __VLS_export$4;
244
+ declare const __VLS_export$4: __VLS_WithSlots$2<vue725.DefineComponent<ComboboxPositionerProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
245
+ default?: (props: {}) => any;
246
+ }>;
247
+ type __VLS_WithSlots$2<T, S> = T & {
248
+ new (): {
249
+ $slots: S;
250
+ };
251
+ };
252
+ //#endregion
253
+ //#region src/components/combobox/combobox-root-provider.vue.d.ts
254
+ interface RootProviderProps<T extends CollectionItem> {
255
+ value: UnwrapRef<UseComboboxReturn<T>>;
256
+ }
257
+ interface ComboboxRootProviderBaseProps<T extends CollectionItem> extends RootProviderProps<T>, RenderStrategyProps, PolymorphicProps {}
258
+ interface ComboboxRootProviderProps<T extends CollectionItem> extends ComboboxRootProviderBaseProps<T>,
259
+ /**
260
+ * @vue-ignore
261
+ */
262
+ HTMLAttributes {}
263
+ type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any;
264
+ interface ComboboxRootProviderEmits extends RootEmits$1 {}
265
+ declare const _default$16: typeof __VLS_export$3;
266
+ declare const __VLS_export$3: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
267
+ props: vue725.PublicProps & __VLS_PrettifyLocal$1<ComboboxRootProviderProps<T> & {
268
+ onExitComplete?: (() => any) | undefined;
269
+ }> & (typeof globalThis extends {
270
+ __VLS_PROPS_FALLBACK: infer P;
271
+ } ? P : {});
272
+ expose: (exposed: {}) => void;
273
+ attrs: any;
274
+ slots: {
275
+ default?: (props: {}) => any;
276
+ };
277
+ emit: (evt: "exitComplete") => void;
278
+ }>) => vue725.VNode & {
279
+ __ctx?: Awaited<typeof __VLS_setup>;
280
+ };
281
+ type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
282
+ //#endregion
283
+ //#region src/components/combobox/combobox.types.d.ts
284
+ interface RootProps<T extends CollectionItem> {
285
+ /**
286
+ * Whether to allow typing custom values in the input
287
+ */
288
+ allowCustomValue?: boolean;
289
+ /**
290
+ * Whether to allow bypassing the default two-step behavior (Enter to close combobox, then Enter to submit form)
291
+ * and instead submit the form immediately on Enter press. This is useful for single-field autocomplete forms
292
+ * where Enter should submit the form directly.
293
+ */
294
+ alwaysSubmitOnEnter?: boolean;
295
+ /**
296
+ * Whether to autofocus the input on mount
297
+ */
298
+ autoFocus?: boolean;
299
+ /**
300
+ * Whether to close the combobox when an item is selected.
301
+ */
302
+ closeOnSelect?: boolean;
303
+ /**
304
+ * The collection of items
305
+ */
306
+ collection?: ListCollection<T>;
307
+ /**
308
+ * Whether the combobox is a composed with other composite widgets like tabs
309
+ * @default true
310
+ */
311
+ composite?: boolean;
312
+ /**
313
+ * The initial highlighted value of the combobox when rendered.
314
+ * Use when you don't need to control the highlighted value of the combobox.
315
+ */
316
+ defaultHighlightedValue?: string;
317
+ /**
318
+ * The initial value of the combobox's input when rendered.
319
+ * Use when you don't need to control the value of the combobox's input.
320
+ * @default ""
321
+ */
322
+ defaultInputValue?: string;
323
+ /**
324
+ * The initial open state of the combobox when rendered.
325
+ * Use when you don't need to control the open state of the combobox.
326
+ */
327
+ defaultOpen?: boolean;
328
+ /**
329
+ * The initial value of the combobox's selected items when rendered.
330
+ * Use when you don't need to control the value of the combobox's selected items.
331
+ * @default []
332
+ */
333
+ defaultValue?: string[];
334
+ /**
335
+ * Whether to disable registering this a dismissable layer
336
+ */
337
+ disableLayer?: boolean;
338
+ /**
339
+ * Whether the combobox is disabled
340
+ */
341
+ disabled?: boolean;
342
+ /**
343
+ * The associate form of the combobox.
344
+ */
345
+ form?: string;
346
+ /**
347
+ * The controlled highlighted value of the combobox
348
+ */
349
+ highlightedValue?: string;
350
+ /**
351
+ * The unique identifier of the machine.
352
+ */
353
+ id?: string;
354
+ /**
355
+ * The ids of the elements in the combobox. Useful for composition.
356
+ */
357
+ ids?: Partial<{
358
+ root: string;
359
+ label: string;
360
+ control: string;
361
+ input: string;
362
+ content: string;
363
+ trigger: string;
364
+ clearTrigger: string;
365
+ item(id: string, index?: number): string;
366
+ positioner: string;
367
+ itemGroup(id: string | number): string;
368
+ itemGroupLabel(id: string | number): string;
369
+ }>;
370
+ /**
371
+ * Defines the auto-completion behavior of the combobox.
372
+ *
373
+ * - `autohighlight`: The first focused item is highlighted as the user types
374
+ * - `autocomplete`: Navigating the listbox with the arrow keys selects the item and the input is updated
375
+ *
376
+ * @default "none"
377
+ */
378
+ inputBehavior?: 'autohighlight' | 'autocomplete' | 'none';
379
+ /**
380
+ * The controlled value of the combobox's input
381
+ */
382
+ inputValue?: string;
383
+ /**
384
+ * Whether the combobox is invalid
385
+ */
386
+ invalid?: boolean;
387
+ /**
388
+ * Whether to loop the keyboard navigation through the items
389
+ * @default true
390
+ */
391
+ loopFocus?: boolean;
392
+ /**
393
+ * The v-model value of the combobox
394
+ */
395
+ modelValue?: string[];
396
+ /**
397
+ * Whether to allow multiple selection.
398
+ *
399
+ * **Good to know:** When `multiple` is `true`, the `selectionBehavior` is automatically set to `clear`.
400
+ * It is recommended to render the selected items in a separate container.
401
+ */
402
+ multiple?: boolean;
403
+ /**
404
+ * The `name` attribute of the combobox's input. Useful for form submission
405
+ */
406
+ name?: string;
407
+ /**
408
+ * Function to navigate to the selected item
409
+ */
410
+ navigate?: (details: combobox.NavigateDetails) => void;
411
+ /**
412
+ * The controlled open state of the combobox
413
+ */
414
+ open?: boolean;
415
+ /**
416
+ * Whether to show the combobox when the input value changes
417
+ * @default true
418
+ */
419
+ openOnChange?: boolean | ((details: combobox.InputValueChangeDetails) => boolean);
420
+ /**
421
+ * Whether to open the combobox popup on initial click on the input
422
+ * @default false
423
+ */
424
+ openOnClick?: boolean;
425
+ /**
426
+ * Whether to open the combobox on arrow key press
427
+ * @default true
428
+ */
429
+ openOnKeyPress?: boolean;
430
+ /**
431
+ * The placeholder text of the combobox's input
432
+ */
433
+ placeholder?: string;
434
+ /**
435
+ * The positioning options to dynamically position the menu
436
+ * @default { placement: "bottom-start" }
437
+ */
438
+ positioning?: combobox.PositioningOptions;
439
+ /**
440
+ * Whether the combobox is readonly. This puts the combobox in a "non-editable" mode
441
+ * but the user can still interact with it
442
+ */
443
+ readOnly?: boolean;
444
+ /**
445
+ * Whether the combobox is required
446
+ */
447
+ required?: boolean;
448
+ /**
449
+ * Function to scroll to a specific index
450
+ */
451
+ scrollToIndexFn?: (details: combobox.ScrollToIndexDetails) => void;
452
+ /**
453
+ * The behavior of the combobox input when an item is selected
454
+ *
455
+ * - `replace`: The selected item string is set as the input value
456
+ * - `clear`: The input value is cleared
457
+ * - `preserve`: The input value is preserved
458
+ *
459
+ * @default "replace"
460
+ */
461
+ selectionBehavior?: 'clear' | 'replace' | 'preserve';
462
+ /**
463
+ * Specifies the localized strings that identifies the accessibility elements and their states
464
+ */
465
+ translations?: combobox.IntlTranslations;
466
+ }
467
+ type RootEmits<T extends CollectionItem> = {
468
+ /**
469
+ * Function called when the animation ends in the closed state
470
+ */
471
+ exitComplete: [];
472
+ /**
473
+ * Function called when the focus is moved outside the component
474
+ */
475
+ focusOutside: [event: combobox.FocusOutsideEvent];
476
+ /**
477
+ * Function called when an item is highlighted using the pointer
478
+ * or keyboard navigation.
479
+ */
480
+ highlightChange: [details: combobox.HighlightChangeDetails<T>];
481
+ /**
482
+ * Function called when the input's value changes
483
+ */
484
+ inputValueChange: [details: combobox.InputValueChangeDetails];
485
+ /**
486
+ * Function called when an interaction happens outside the component
487
+ */
488
+ interactOutside: [event: combobox.InteractOutsideEvent];
489
+ /**
490
+ * Function called when the popup is opened
491
+ */
492
+ openChange: [details: combobox.OpenChangeDetails];
493
+ /**
494
+ * Function called when the pointer is pressed down outside the component
495
+ */
496
+ pointerDownOutside: [event: combobox.PointerDownOutsideEvent];
497
+ /**
498
+ * Function called when a new item is selected
499
+ */
500
+ valueChange: [details: combobox.ValueChangeDetails<T>];
501
+ /**
502
+ * Function called when an item is selected
503
+ */
504
+ select: [details: {
505
+ value: string[];
506
+ itemValue: string;
507
+ }];
508
+ /**
509
+ * The callback fired when the model value changes.
510
+ */
511
+ 'update:modelValue': [value: string[]];
512
+ /**
513
+ * The callback fired when the highlighted value changes.
514
+ */
515
+ 'update:highlightedValue': [value: string | null];
516
+ /**
517
+ * The callback fired when the input value changes.
518
+ */
519
+ 'update:inputValue': [value: string];
520
+ /**
521
+ * The callback fired when the open state changes.
522
+ */
523
+ 'update:open': [value: boolean];
524
+ };
525
+ //#endregion
526
+ //#region src/components/combobox/combobox-root.vue.d.ts
527
+ interface ComboboxRootBaseProps<T extends CollectionItem> extends RootProps<T>, RenderStrategyProps, PolymorphicProps {}
528
+ interface ComboboxRootProps<T extends CollectionItem> extends ComboboxRootBaseProps<T>,
529
+ /**
530
+ * @vue-ignore
531
+ */
532
+ Omit<HTMLAttributes, 'onSelect'> {}
533
+ type ComboboxRootComponentProps<T extends CollectionItem = CollectionItem, P = {}> = Assign<ComboboxRootProps<T>, P>;
534
+ type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: ComboboxRootComponentProps<T, P>) => any;
535
+ declare const _default$15: typeof __VLS_export$2;
536
+ declare const __VLS_export$2: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
537
+ props: vue725.PublicProps & __VLS_PrettifyLocal<ComboboxRootProps<T> & {
538
+ onSelect?: ((details: {
539
+ value: string[];
540
+ itemValue: string;
541
+ }) => any) | undefined;
542
+ onExitComplete?: (() => any) | undefined;
543
+ onOpenChange?: ((details: combobox.OpenChangeDetails) => any) | undefined;
544
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
545
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
546
+ onFocusOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet25.FocusOutsideEvent) => any) | undefined;
547
+ onHighlightChange?: ((details: combobox.HighlightChangeDetails<T>) => any) | undefined;
548
+ onInteractOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet25.InteractOutsideEvent) => any) | undefined;
549
+ onPointerDownOutside?: ((event: _sprawlify_primitives_machines_bottom_sheet25.PointerDownOutsideEvent) => any) | undefined;
550
+ "onUpdate:highlightedValue"?: ((value: string | null) => any) | undefined;
551
+ onValueChange?: ((details: combobox.ValueChangeDetails<T>) => any) | undefined;
552
+ onInputValueChange?: ((details: combobox.InputValueChangeDetails) => any) | undefined;
553
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
554
+ }> & (typeof globalThis extends {
555
+ __VLS_PROPS_FALLBACK: infer P;
556
+ } ? P : {});
557
+ expose: (exposed: {}) => void;
558
+ attrs: any;
559
+ slots: {
560
+ default?: (props: {}) => any;
561
+ };
562
+ emit: ((evt: "select", details: {
563
+ value: string[];
564
+ itemValue: string;
565
+ }) => void) & ((evt: "exitComplete") => void) & ((evt: "openChange", details: combobox.OpenChangeDetails) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: string[]) => void) & ((evt: "focusOutside", event: _sprawlify_primitives_machines_bottom_sheet25.FocusOutsideEvent) => void) & ((evt: "highlightChange", details: combobox.HighlightChangeDetails<T>) => void) & ((evt: "interactOutside", event: _sprawlify_primitives_machines_bottom_sheet25.InteractOutsideEvent) => void) & ((evt: "pointerDownOutside", event: _sprawlify_primitives_machines_bottom_sheet25.PointerDownOutsideEvent) => void) & ((evt: "update:highlightedValue", value: string | null) => void) & ((evt: "valueChange", details: combobox.ValueChangeDetails<T>) => void) & ((evt: "inputValueChange", details: combobox.InputValueChangeDetails) => void) & ((evt: "update:inputValue", value: string) => void);
566
+ }>) => vue725.VNode & {
567
+ __ctx?: Awaited<typeof __VLS_setup>;
568
+ };
569
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
570
+ //#endregion
571
+ //#region src/components/combobox/combobox-trigger.vue.d.ts
572
+ interface ComboboxTriggerBaseProps extends TriggerProps, PolymorphicProps {}
573
+ interface ComboboxTriggerProps extends ComboboxTriggerBaseProps,
574
+ /**
575
+ * @vue-ignore
576
+ */
577
+ ButtonHTMLAttributes {}
578
+ declare const _default$17: typeof __VLS_export$1;
579
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue725.DefineComponent<ComboboxTriggerProps, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, false, {}, any>, {
580
+ default?: (props: {}) => any;
581
+ }>;
582
+ type __VLS_WithSlots$1<T, S> = T & {
583
+ new (): {
584
+ $slots: S;
585
+ };
586
+ };
587
+ declare namespace combobox_d_exports {
588
+ export { _default as ClearTrigger, ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, ComboboxClearTriggerProps as ClearTriggerProps, _default$1 as Content, ComboboxContentBaseProps as ContentBaseProps, ComboboxContentProps as ContentProps, _default$2 as Context, ComboboxContextProps as ContextProps, _default$3 as Control, ComboboxControlBaseProps as ControlBaseProps, ComboboxControlProps as ControlProps, _default$4 as Empty, ComboboxEmptyBaseProps as EmptyBaseProps, ComboboxEmptyProps as EmptyProps, FocusOutsideEvent, HighlightChangeDetails, _default$5 as Input, ComboboxInputBaseProps as InputBaseProps, ComboboxInputProps as InputProps, InputValueChangeDetails, InteractOutsideEvent, _default$6 as Item, ComboboxItemBaseProps as ItemBaseProps, _default$7 as ItemContext, ComboboxItemContextProps as ItemContextProps, _default$8 as ItemGroup, ComboboxItemGroupBaseProps as ItemGroupBaseProps, _default$9 as ItemGroupLabel, ComboboxItemGroupLabelBaseProps as ItemGroupLabelBaseProps, ComboboxItemGroupLabelProps as ItemGroupLabelProps, ComboboxItemGroupProps as ItemGroupProps, _default$10 as ItemIndicator, ComboboxItemIndicatorBaseProps as ItemIndicatorBaseProps, ComboboxItemIndicatorProps as ItemIndicatorProps, ComboboxItemProps as ItemProps, _default$11 as ItemText, ComboboxItemTextBaseProps as ItemTextBaseProps, ComboboxItemTextProps as ItemTextProps, _default$12 as Label, ComboboxLabelBaseProps as LabelBaseProps, ComboboxLabelProps as LabelProps, _default$13 as List, ComboboxListBaseProps as ListBaseProps, ComboboxListProps as ListProps, OpenChangeDetails, PointerDownOutsideEvent, _default$14 as Positioner, ComboboxPositionerBaseProps as PositionerBaseProps, ComboboxPositionerProps as PositionerProps, _default$15 as Root, ComboboxRootBaseProps as RootBaseProps, ComboboxRootComponent as RootComponent, ComboboxRootComponentProps as RootComponentProps, RootEmits, ComboboxRootProps as RootProps, _default$16 as RootProvider, ComboboxRootProviderBaseProps as RootProviderBaseProps, ComboboxRootProviderComponent as RootProviderComponent, ComboboxRootProviderProps as RootProviderProps, SelectionDetails, _default$17 as Trigger, ComboboxTriggerBaseProps as TriggerBaseProps, ComboboxTriggerProps as TriggerProps, ValueChangeDetails };
589
+ }
590
+ //#endregion
591
+ //#region src/components/combobox/use-combobox.d.ts
592
+ interface UseComboboxProps<T extends CollectionItem> extends Optional<Omit<combobox.Props<T>, 'dir' | 'getRootNode'>, 'id'> {
593
+ modelValue?: combobox.Props<T>['value'];
594
+ }
595
+ interface UseComboboxReturn<T extends CollectionItem> extends ComputedRef<combobox.Api<PropTypes, T>> {}
596
+ declare const useCombobox: <T extends CollectionItem>(props: MaybeRef<UseComboboxProps<T>>, emit?: EmitFn$1<RootEmits<T>>) => UseComboboxReturn<T>;
597
+ //#endregion
598
+ //#region src/components/combobox/use-combobox-context.d.ts
599
+ interface UseComboboxContext<T extends CollectionItem = CollectionItem> extends UseComboboxReturn<T>, UsePresenceProps {}
600
+ //#endregion
601
+ //#region src/components/combobox/combobox-context.vue.d.ts
602
+ interface ComboboxContextProps extends SlotsType<{
603
+ default: UnwrapRef<UseComboboxContext>;
604
+ }> {}
605
+ declare const _default$2: typeof __VLS_export;
606
+ declare const __VLS_export: __VLS_WithSlots<vue725.DefineComponent<{}, {}, {}, {}, {}, vue725.ComponentOptionsMixin, vue725.ComponentOptionsMixin, {}, string, vue725.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue725.ComponentProvideOptions, true, {}, any>, {
607
+ default(combobox: UnwrapRef<UseComboboxContext>): unknown;
608
+ }>;
609
+ type __VLS_WithSlots<T, S> = T & {
610
+ new (): {
611
+ $slots: S;
612
+ };
613
+ };
614
+ //#endregion
615
+ //#region src/components/combobox/combobox-anatomy.d.ts
616
+ declare const comboboxAnatomy: _sprawlify_primitives_anatomy5.AnatomyInstance<"input" | "label" | "root" | "content" | "trigger" | "list" | "positioner" | "control" | "item" | "itemGroup" | "itemIndicator" | "clearTrigger" | "itemText" | "itemGroupLabel" | "empty">;
617
+ //#endregion
618
+ export { type CollectionItem, combobox_d_exports as Combobox, _default as ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, _default$1 as ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, _default$2 as ComboboxContext, type ComboboxContextProps, _default$3 as ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, _default$4 as ComboboxEmpty, type ComboboxEmptyBaseProps, type ComboboxEmptyProps, type ComboboxFocusOutsideEvent, type ComboboxHighlightChangeDetails, _default$5 as ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps, type ComboboxInputValueChangeDetails, type ComboboxInteractOutsideEvent, _default$6 as ComboboxItem, type ComboboxItemBaseProps, _default$7 as ComboboxItemContext, type ComboboxItemContextProps, _default$8 as ComboboxItemGroup, type ComboboxItemGroupBaseProps, _default$9 as ComboboxItemGroupLabel, type ComboboxItemGroupLabelBaseProps, type ComboboxItemGroupLabelProps, type ComboboxItemGroupProps, _default$10 as ComboboxItemIndicator, type ComboboxItemIndicatorBaseProps, type ComboboxItemIndicatorProps, type ComboboxItemProps, _default$11 as ComboboxItemText, type ComboboxItemTextBaseProps, type ComboboxItemTextProps, _default$12 as ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps, _default$13 as ComboboxList, type ComboboxListBaseProps, type ComboboxListProps, type ComboboxOpenChangeDetails, type ComboboxPointerDownOutsideEvent, _default$14 as ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, _default$15 as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootComponentProps, type RootEmits as ComboboxRootEmits, type ComboboxRootProps, _default$16 as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderComponent, type ComboboxRootProviderEmits, type ComboboxRootProviderProps, type ComboboxSelectionDetails, _default$17 as ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, type ComboboxValueChangeDetails, type ListCollection, type UseComboboxContext, type UseComboboxItemContext, type UseComboboxProps, type UseComboboxReturn, type UseListCollectionProps, comboboxAnatomy, createListCollection, useCombobox, useComboboxContext, useComboboxItemContext, useListCollection };