@ark-ui/vue 5.21.0 → 5.23.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/components/combobox/combobox-empty.vue.cjs +35 -0
- package/dist/components/combobox/combobox-empty.vue.d.cts +19 -0
- package/dist/components/combobox/combobox-empty.vue.d.ts +19 -0
- package/dist/components/combobox/combobox-empty.vue.js +31 -0
- package/dist/components/combobox/combobox-empty.vue2.cjs +9 -0
- package/dist/components/combobox/combobox-empty.vue2.js +5 -0
- package/dist/components/combobox/combobox-root-provider.vue.d.cts +2 -0
- package/dist/components/combobox/combobox-root-provider.vue.d.ts +2 -0
- package/dist/components/combobox/combobox-root.vue.d.cts +2 -0
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -0
- package/dist/components/combobox/combobox.anatomy.cjs +9 -0
- package/dist/components/combobox/combobox.anatomy.d.cts +2 -1
- package/dist/components/combobox/combobox.anatomy.d.ts +2 -1
- package/dist/components/combobox/combobox.anatomy.js +5 -0
- package/dist/components/combobox/combobox.cjs +2 -0
- package/dist/components/combobox/combobox.d.cts +3 -2
- package/dist/components/combobox/combobox.d.ts +3 -2
- package/dist/components/combobox/combobox.js +1 -0
- package/dist/components/combobox/index.cjs +6 -7
- package/dist/components/combobox/index.d.cts +3 -2
- package/dist/components/combobox/index.d.ts +3 -2
- package/dist/components/combobox/index.js +2 -1
- package/dist/components/dialog/dialog-root.vue.cjs +1 -1
- package/dist/components/dialog/dialog-root.vue.d.cts +12 -0
- package/dist/components/dialog/dialog-root.vue.d.ts +12 -0
- package/dist/components/dialog/dialog-root.vue.js +1 -1
- package/dist/components/dialog/dialog.types.d.cts +11 -0
- package/dist/components/dialog/dialog.types.d.ts +11 -0
- package/dist/components/dialog/use-dialog.cjs +4 -0
- package/dist/components/dialog/use-dialog.js +4 -0
- package/dist/components/field/use-field.cjs +1 -0
- package/dist/components/field/use-field.d.cts +1 -0
- package/dist/components/field/use-field.d.ts +1 -0
- package/dist/components/field/use-field.js +1 -0
- package/dist/components/hover-card/hover-card-root.vue.cjs +2 -0
- package/dist/components/hover-card/hover-card-root.vue.d.cts +1 -0
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -0
- package/dist/components/hover-card/hover-card-root.vue.js +2 -0
- package/dist/components/hover-card/hover-card.types.d.cts +4 -0
- package/dist/components/hover-card/hover-card.types.d.ts +4 -0
- package/dist/components/index.cjs +12 -14
- package/dist/components/index.js +4 -2
- package/dist/components/listbox/index.cjs +6 -7
- package/dist/components/listbox/index.d.cts +3 -2
- package/dist/components/listbox/index.d.ts +3 -2
- package/dist/components/listbox/index.js +2 -1
- package/dist/components/listbox/listbox-empty.vue.cjs +35 -0
- package/dist/components/listbox/listbox-empty.vue.d.cts +19 -0
- package/dist/components/listbox/listbox-empty.vue.d.ts +19 -0
- package/dist/components/listbox/listbox-empty.vue.js +31 -0
- package/dist/components/listbox/listbox-empty.vue2.cjs +9 -0
- package/dist/components/listbox/listbox-empty.vue2.js +5 -0
- package/dist/components/listbox/listbox-root-provider.vue.d.cts +2 -0
- package/dist/components/listbox/listbox-root-provider.vue.d.ts +2 -0
- package/dist/components/listbox/listbox-root.vue.d.cts +2 -0
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -0
- package/dist/components/listbox/listbox.anatomy.cjs +9 -0
- package/dist/components/listbox/listbox.anatomy.d.cts +2 -1
- package/dist/components/listbox/listbox.anatomy.d.ts +2 -1
- package/dist/components/listbox/listbox.anatomy.js +5 -0
- package/dist/components/listbox/listbox.cjs +2 -0
- package/dist/components/listbox/listbox.d.cts +3 -2
- package/dist/components/listbox/listbox.d.ts +3 -2
- package/dist/components/listbox/listbox.js +1 -0
- package/dist/components/menu/menu-root.vue.cjs +1 -1
- package/dist/components/menu/menu-root.vue.d.cts +12 -0
- package/dist/components/menu/menu-root.vue.d.ts +12 -0
- package/dist/components/menu/menu-root.vue.js +1 -1
- package/dist/components/menu/menu-trigger-item.vue.cjs +2 -0
- package/dist/components/menu/menu-trigger-item.vue.js +3 -1
- package/dist/components/menu/menu.types.d.cts +11 -0
- package/dist/components/menu/menu.types.d.ts +11 -0
- package/dist/components/popover/popover-root.vue.cjs +1 -1
- package/dist/components/popover/popover-root.vue.d.cts +12 -0
- package/dist/components/popover/popover-root.vue.d.ts +12 -0
- package/dist/components/popover/popover-root.vue.js +1 -1
- package/dist/components/popover/popover.types.d.cts +11 -0
- package/dist/components/popover/popover.types.d.ts +11 -0
- package/dist/components/segment-group/segment-group.anatomy.d.cts +2 -2
- package/dist/components/segment-group/segment-group.anatomy.d.ts +2 -2
- package/dist/components/select/index.d.cts +2 -2
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select-root-provider.vue.d.cts +2 -0
- package/dist/components/select/select-root-provider.vue.d.ts +2 -0
- package/dist/components/select/select-root.vue.d.cts +2 -0
- package/dist/components/select/select-root.vue.d.ts +2 -0
- package/dist/components/select/select.d.cts +2 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/signature-pad/signature-pad-segment.vue.cjs +1 -2
- package/dist/components/signature-pad/signature-pad-segment.vue.js +1 -2
- package/dist/components/tree-view/index.d.cts +2 -2
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/tree-view/tree-view-root-provider.vue.d.cts +2 -0
- package/dist/components/tree-view/tree-view-root-provider.vue.d.ts +2 -0
- package/dist/components/tree-view/tree-view-root.vue.d.cts +2 -0
- package/dist/components/tree-view/tree-view-root.vue.d.ts +2 -0
- package/dist/components/tree-view/tree-view.d.cts +2 -2
- package/dist/components/tree-view/tree-view.d.ts +2 -2
- package/dist/index.cjs +12 -14
- package/dist/index.js +4 -2
- package/package.json +68 -68
|
@@ -10,6 +10,10 @@ export interface RootProps {
|
|
|
10
10
|
* Use when you don't need to control the open state of the hover card.
|
|
11
11
|
*/
|
|
12
12
|
defaultOpen?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the hover card is disabled
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* The unique identifier of the machine.
|
|
15
19
|
*/
|
|
@@ -128,6 +128,7 @@ const useColorPickerContext = require('./color-picker/use-color-picker-context.c
|
|
|
128
128
|
const colorPicker$1 = require('./color-picker/color-picker.cjs');
|
|
129
129
|
const comboboxClearTrigger_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-clear-trigger.vue.cjs');
|
|
130
130
|
const comboboxContent_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-content.vue.cjs');
|
|
131
|
+
const comboboxEmpty_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-empty.vue.cjs');
|
|
131
132
|
const comboboxContext_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-context.vue.cjs');
|
|
132
133
|
const comboboxControl_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-control.vue.cjs');
|
|
133
134
|
const comboboxInput_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-input.vue.cjs');
|
|
@@ -143,10 +144,11 @@ const comboboxPositioner_vue_vue_type_script_setup_true_lang = require('./combob
|
|
|
143
144
|
const comboboxRootProvider_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-root-provider.vue.cjs');
|
|
144
145
|
const comboboxRoot_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-root.vue.cjs');
|
|
145
146
|
const comboboxTrigger_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-trigger.vue.cjs');
|
|
147
|
+
const combobox_anatomy = require('./combobox/combobox.anatomy.cjs');
|
|
146
148
|
const useCombobox = require('./combobox/use-combobox.cjs');
|
|
147
149
|
const useComboboxContext = require('./combobox/use-combobox-context.cjs');
|
|
148
150
|
const useComboboxItemContext = require('./combobox/use-combobox-item-context.cjs');
|
|
149
|
-
const combobox
|
|
151
|
+
const combobox = require('./combobox/combobox.cjs');
|
|
150
152
|
const datePicker = require('@zag-js/date-picker');
|
|
151
153
|
const datePickerClearTrigger_vue_vue_type_script_setup_true_lang = require('./date-picker/date-picker-clear-trigger.vue.cjs');
|
|
152
154
|
const datePickerContent_vue_vue_type_script_setup_true_lang = require('./date-picker/date-picker-content.vue.cjs');
|
|
@@ -292,6 +294,7 @@ const useJsonTreeView = require('./json-tree-view/use-json-tree-view.cjs');
|
|
|
292
294
|
const jsonTreeView = require('./json-tree-view/json-tree-view.cjs');
|
|
293
295
|
const listboxContext_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-context.vue.cjs');
|
|
294
296
|
const listboxContent_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-content.vue.cjs');
|
|
297
|
+
const listboxEmpty_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-empty.vue.cjs');
|
|
295
298
|
const listboxInput_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-input.vue.cjs');
|
|
296
299
|
const listboxItem_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-item.vue.cjs');
|
|
297
300
|
const listboxItemContext_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-item-context.vue.cjs');
|
|
@@ -303,10 +306,11 @@ const listboxLabel_vue_vue_type_script_setup_true_lang = require('./listbox/list
|
|
|
303
306
|
const listboxRoot_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-root.vue.cjs');
|
|
304
307
|
const listboxRootProvider_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-root-provider.vue.cjs');
|
|
305
308
|
const listboxValueText_vue_vue_type_script_setup_true_lang = require('./listbox/listbox-value-text.vue.cjs');
|
|
309
|
+
const listbox_anatomy = require('./listbox/listbox.anatomy.cjs');
|
|
306
310
|
const useListbox = require('./listbox/use-listbox.cjs');
|
|
307
311
|
const useListboxContext = require('./listbox/use-listbox-context.cjs');
|
|
308
312
|
const useListboxItemContext = require('./listbox/use-listbox-item-context.cjs');
|
|
309
|
-
const listbox
|
|
313
|
+
const listbox = require('./listbox/listbox.cjs');
|
|
310
314
|
const menuArrowTip_vue_vue_type_script_setup_true_lang = require('./menu/menu-arrow-tip.vue.cjs');
|
|
311
315
|
const menuArrow_vue_vue_type_script_setup_true_lang = require('./menu/menu-arrow.vue.cjs');
|
|
312
316
|
const menuCheckboxItem_vue_vue_type_script_setup_true_lang = require('./menu/menu-checkbox-item.vue.cjs');
|
|
@@ -697,13 +701,11 @@ const avatar = require('@zag-js/avatar');
|
|
|
697
701
|
const carousel = require('@zag-js/carousel');
|
|
698
702
|
const clipboard = require('@zag-js/clipboard');
|
|
699
703
|
const collapsible = require('@zag-js/collapsible');
|
|
700
|
-
const combobox = require('@zag-js/combobox');
|
|
701
704
|
const dialog = require('@zag-js/dialog');
|
|
702
705
|
const editable = require('@zag-js/editable');
|
|
703
706
|
const fileUpload = require('@zag-js/file-upload');
|
|
704
707
|
const floatingPanel = require('@zag-js/floating-panel');
|
|
705
708
|
const hoverCard = require('@zag-js/hover-card');
|
|
706
|
-
const listbox = require('@zag-js/listbox');
|
|
707
709
|
const menu = require('@zag-js/menu');
|
|
708
710
|
const numberInput = require('@zag-js/number-input');
|
|
709
711
|
const pagination = require('@zag-js/pagination');
|
|
@@ -862,6 +864,7 @@ exports.useColorPickerContext = useColorPickerContext.useColorPickerContext;
|
|
|
862
864
|
exports.ColorPicker = colorPicker$1;
|
|
863
865
|
exports.ComboboxClearTrigger = comboboxClearTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
864
866
|
exports.ComboboxContent = comboboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
867
|
+
exports.ComboboxEmpty = comboboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
865
868
|
exports.ComboboxContext = comboboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
866
869
|
exports.ComboboxControl = comboboxControl_vue_vue_type_script_setup_true_lang.default;
|
|
867
870
|
exports.ComboboxInput = comboboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -877,10 +880,11 @@ exports.ComboboxPositioner = comboboxPositioner_vue_vue_type_script_setup_true_l
|
|
|
877
880
|
exports.ComboboxRootProvider = comboboxRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
878
881
|
exports.ComboboxRoot = comboboxRoot_vue_vue_type_script_setup_true_lang.default;
|
|
879
882
|
exports.ComboboxTrigger = comboboxTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
883
|
+
exports.comboboxAnatomy = combobox_anatomy.comboboxAnatomy;
|
|
880
884
|
exports.useCombobox = useCombobox.useCombobox;
|
|
881
885
|
exports.useComboboxContext = useComboboxContext.useComboboxContext;
|
|
882
886
|
exports.useComboboxItemContext = useComboboxItemContext.useComboboxItemContext;
|
|
883
|
-
exports.Combobox = combobox
|
|
887
|
+
exports.Combobox = combobox;
|
|
884
888
|
Object.defineProperty(exports, "parseDate", {
|
|
885
889
|
enumerable: true,
|
|
886
890
|
get: () => datePicker.parse
|
|
@@ -1030,6 +1034,7 @@ exports.useJsonTreeView = useJsonTreeView.useJsonTreeView;
|
|
|
1030
1034
|
exports.JsonTreeView = jsonTreeView;
|
|
1031
1035
|
exports.ListboxContext = listboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
1032
1036
|
exports.ListboxContent = listboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
1037
|
+
exports.ListboxEmpty = listboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
1033
1038
|
exports.ListboxInput = listboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
1034
1039
|
exports.ListboxItem = listboxItem_vue_vue_type_script_setup_true_lang.default;
|
|
1035
1040
|
exports.ListboxItemContext = listboxItemContext_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1041,10 +1046,11 @@ exports.ListboxLabel = listboxLabel_vue_vue_type_script_setup_true_lang.default;
|
|
|
1041
1046
|
exports.ListboxRoot = listboxRoot_vue_vue_type_script_setup_true_lang.default;
|
|
1042
1047
|
exports.ListboxRootProvider = listboxRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
1043
1048
|
exports.ListboxValueText = listboxValueText_vue_vue_type_script_setup_true_lang.default;
|
|
1049
|
+
exports.listboxAnatomy = listbox_anatomy.listboxAnatomy;
|
|
1044
1050
|
exports.useListbox = useListbox.useListbox;
|
|
1045
1051
|
exports.useListboxContext = useListboxContext.useListboxContext;
|
|
1046
1052
|
exports.useListboxItemContext = useListboxItemContext.useListboxItemContext;
|
|
1047
|
-
exports.Listbox = listbox
|
|
1053
|
+
exports.Listbox = listbox;
|
|
1048
1054
|
exports.MenuArrowTip = menuArrowTip_vue_vue_type_script_setup_true_lang.default;
|
|
1049
1055
|
exports.MenuArrow = menuArrow_vue_vue_type_script_setup_true_lang.default;
|
|
1050
1056
|
exports.MenuCheckboxItem = menuCheckboxItem_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1457,10 +1463,6 @@ Object.defineProperty(exports, "collapsibleAnatomy", {
|
|
|
1457
1463
|
enumerable: true,
|
|
1458
1464
|
get: () => collapsible.anatomy
|
|
1459
1465
|
});
|
|
1460
|
-
Object.defineProperty(exports, "comboboxAnatomy", {
|
|
1461
|
-
enumerable: true,
|
|
1462
|
-
get: () => combobox.anatomy
|
|
1463
|
-
});
|
|
1464
1466
|
Object.defineProperty(exports, "dialogAnatomy", {
|
|
1465
1467
|
enumerable: true,
|
|
1466
1468
|
get: () => dialog.anatomy
|
|
@@ -1481,10 +1483,6 @@ Object.defineProperty(exports, "hoverCardAnatomy", {
|
|
|
1481
1483
|
enumerable: true,
|
|
1482
1484
|
get: () => hoverCard.anatomy
|
|
1483
1485
|
});
|
|
1484
|
-
Object.defineProperty(exports, "listboxAnatomy", {
|
|
1485
|
-
enumerable: true,
|
|
1486
|
-
get: () => listbox.anatomy
|
|
1487
|
-
});
|
|
1488
1486
|
Object.defineProperty(exports, "menuAnatomy", {
|
|
1489
1487
|
enumerable: true,
|
|
1490
1488
|
get: () => menu.anatomy
|
package/dist/components/index.js
CHANGED
|
@@ -132,6 +132,7 @@ import * as colorPicker from './color-picker/color-picker.js';
|
|
|
132
132
|
export { colorPicker as ColorPicker };
|
|
133
133
|
export { default as ComboboxClearTrigger } from './combobox/combobox-clear-trigger.vue.js';
|
|
134
134
|
export { default as ComboboxContent } from './combobox/combobox-content.vue.js';
|
|
135
|
+
export { default as ComboboxEmpty } from './combobox/combobox-empty.vue.js';
|
|
135
136
|
export { default as ComboboxContext } from './combobox/combobox-context.vue.js';
|
|
136
137
|
export { default as ComboboxControl } from './combobox/combobox-control.vue.js';
|
|
137
138
|
export { default as ComboboxInput } from './combobox/combobox-input.vue.js';
|
|
@@ -147,6 +148,7 @@ export { default as ComboboxPositioner } from './combobox/combobox-positioner.vu
|
|
|
147
148
|
export { default as ComboboxRootProvider } from './combobox/combobox-root-provider.vue.js';
|
|
148
149
|
export { default as ComboboxRoot } from './combobox/combobox-root.vue.js';
|
|
149
150
|
export { default as ComboboxTrigger } from './combobox/combobox-trigger.vue.js';
|
|
151
|
+
export { comboboxAnatomy } from './combobox/combobox.anatomy.js';
|
|
150
152
|
export { useCombobox } from './combobox/use-combobox.js';
|
|
151
153
|
export { useComboboxContext } from './combobox/use-combobox-context.js';
|
|
152
154
|
export { useComboboxItemContext } from './combobox/use-combobox-item-context.js';
|
|
@@ -307,6 +309,7 @@ import * as jsonTreeView from './json-tree-view/json-tree-view.js';
|
|
|
307
309
|
export { jsonTreeView as JsonTreeView };
|
|
308
310
|
export { default as ListboxContext } from './listbox/listbox-context.vue.js';
|
|
309
311
|
export { default as ListboxContent } from './listbox/listbox-content.vue.js';
|
|
312
|
+
export { default as ListboxEmpty } from './listbox/listbox-empty.vue.js';
|
|
310
313
|
export { default as ListboxInput } from './listbox/listbox-input.vue.js';
|
|
311
314
|
export { default as ListboxItem } from './listbox/listbox-item.vue.js';
|
|
312
315
|
export { default as ListboxItemContext } from './listbox/listbox-item-context.vue.js';
|
|
@@ -318,6 +321,7 @@ export { default as ListboxLabel } from './listbox/listbox-label.vue.js';
|
|
|
318
321
|
export { default as ListboxRoot } from './listbox/listbox-root.vue.js';
|
|
319
322
|
export { default as ListboxRootProvider } from './listbox/listbox-root-provider.vue.js';
|
|
320
323
|
export { default as ListboxValueText } from './listbox/listbox-value-text.vue.js';
|
|
324
|
+
export { listboxAnatomy } from './listbox/listbox.anatomy.js';
|
|
321
325
|
export { useListbox } from './listbox/use-listbox.js';
|
|
322
326
|
export { useListboxContext } from './listbox/use-listbox-context.js';
|
|
323
327
|
export { useListboxItemContext } from './listbox/use-listbox-item-context.js';
|
|
@@ -741,13 +745,11 @@ export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
|
741
745
|
export { anatomy as carouselAnatomy } from '@zag-js/carousel';
|
|
742
746
|
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
|
743
747
|
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
|
744
|
-
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
|
745
748
|
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
|
746
749
|
export { anatomy as editableAnatomy } from '@zag-js/editable';
|
|
747
750
|
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
|
748
751
|
export { anatomy as floatingPanelAnatomy } from '@zag-js/floating-panel';
|
|
749
752
|
export { anatomy as hoverCardAnatomy } from '@zag-js/hover-card';
|
|
750
|
-
export { anatomy as listboxAnatomy } from '@zag-js/listbox';
|
|
751
753
|
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
|
752
754
|
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
753
755
|
export { anatomy as paginationAnatomy } from '@zag-js/pagination';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const listCollection = require('../collection/list-collection.cjs');
|
|
6
6
|
const listboxContext_vue_vue_type_script_setup_true_lang = require('./listbox-context.vue.cjs');
|
|
7
7
|
const listboxContent_vue_vue_type_script_setup_true_lang = require('./listbox-content.vue.cjs');
|
|
8
|
+
const listboxEmpty_vue_vue_type_script_setup_true_lang = require('./listbox-empty.vue.cjs');
|
|
8
9
|
const listboxInput_vue_vue_type_script_setup_true_lang = require('./listbox-input.vue.cjs');
|
|
9
10
|
const listboxItem_vue_vue_type_script_setup_true_lang = require('./listbox-item.vue.cjs');
|
|
10
11
|
const listboxItemContext_vue_vue_type_script_setup_true_lang = require('./listbox-item-context.vue.cjs');
|
|
@@ -16,17 +17,18 @@ const listboxLabel_vue_vue_type_script_setup_true_lang = require('./listbox-labe
|
|
|
16
17
|
const listboxRoot_vue_vue_type_script_setup_true_lang = require('./listbox-root.vue.cjs');
|
|
17
18
|
const listboxRootProvider_vue_vue_type_script_setup_true_lang = require('./listbox-root-provider.vue.cjs');
|
|
18
19
|
const listboxValueText_vue_vue_type_script_setup_true_lang = require('./listbox-value-text.vue.cjs');
|
|
20
|
+
const listbox_anatomy = require('./listbox.anatomy.cjs');
|
|
19
21
|
const useListbox = require('./use-listbox.cjs');
|
|
20
22
|
const useListboxContext = require('./use-listbox-context.cjs');
|
|
21
23
|
const useListboxItemContext = require('./use-listbox-item-context.cjs');
|
|
22
|
-
const listbox
|
|
23
|
-
const listbox = require('@zag-js/listbox');
|
|
24
|
+
const listbox = require('./listbox.cjs');
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
exports.createListCollection = listCollection.createListCollection;
|
|
28
29
|
exports.ListboxContext = listboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
29
30
|
exports.ListboxContent = listboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
31
|
+
exports.ListboxEmpty = listboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
30
32
|
exports.ListboxInput = listboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
31
33
|
exports.ListboxItem = listboxItem_vue_vue_type_script_setup_true_lang.default;
|
|
32
34
|
exports.ListboxItemContext = listboxItemContext_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -38,11 +40,8 @@ exports.ListboxLabel = listboxLabel_vue_vue_type_script_setup_true_lang.default;
|
|
|
38
40
|
exports.ListboxRoot = listboxRoot_vue_vue_type_script_setup_true_lang.default;
|
|
39
41
|
exports.ListboxRootProvider = listboxRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
40
42
|
exports.ListboxValueText = listboxValueText_vue_vue_type_script_setup_true_lang.default;
|
|
43
|
+
exports.listboxAnatomy = listbox_anatomy.listboxAnatomy;
|
|
41
44
|
exports.useListbox = useListbox.useListbox;
|
|
42
45
|
exports.useListboxContext = useListboxContext.useListboxContext;
|
|
43
46
|
exports.useListboxItemContext = useListboxItemContext.useListboxItemContext;
|
|
44
|
-
exports.Listbox = listbox
|
|
45
|
-
Object.defineProperty(exports, "listboxAnatomy", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: () => listbox.anatomy
|
|
48
|
-
});
|
|
47
|
+
exports.Listbox = listbox;
|
|
@@ -2,6 +2,7 @@ export type { HighlightChangeDetails as ListboxHighlightChangeDetails, ScrollToI
|
|
|
2
2
|
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
3
|
export { default as ListboxContext, type ListboxContextProps } from './listbox-context.vue';
|
|
4
4
|
export { default as ListboxContent, type ListboxContentBaseProps, type ListboxContentProps, } from './listbox-content.vue';
|
|
5
|
+
export { default as ListboxEmpty, type ListboxEmptyBaseProps, type ListboxEmptyProps } from './listbox-empty.vue';
|
|
5
6
|
export { default as ListboxInput, type ListboxInputBaseProps, type ListboxInputProps } from './listbox-input.vue';
|
|
6
7
|
export { default as ListboxItem, type ListboxItemBaseProps, type ListboxItemProps } from './listbox-item.vue';
|
|
7
8
|
export { default as ListboxItemContext, type ListboxItemContextProps } from './listbox-item-context.vue';
|
|
@@ -10,8 +11,8 @@ export { default as ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps,
|
|
|
10
11
|
export { default as ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator.vue';
|
|
11
12
|
export { default as ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps, } from './listbox-item-text.vue';
|
|
12
13
|
export { default as ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label.vue';
|
|
13
|
-
export { default as ListboxRoot, type ListboxRootBaseProps, type
|
|
14
|
-
export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider.vue';
|
|
14
|
+
export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootComponent, type ListboxRootEmits, type ListboxRootProps, } from './listbox-root.vue';
|
|
15
|
+
export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, type ListboxRootProviderComponent, } from './listbox-root-provider.vue';
|
|
15
16
|
export { default as ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps, } from './listbox-value-text.vue';
|
|
16
17
|
export { listboxAnatomy } from './listbox.anatomy';
|
|
17
18
|
export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
|
|
@@ -2,6 +2,7 @@ export type { HighlightChangeDetails as ListboxHighlightChangeDetails, ScrollToI
|
|
|
2
2
|
export { createListCollection, type CollectionItem, type ListCollection } from '../collection';
|
|
3
3
|
export { default as ListboxContext, type ListboxContextProps } from './listbox-context.vue';
|
|
4
4
|
export { default as ListboxContent, type ListboxContentBaseProps, type ListboxContentProps, } from './listbox-content.vue';
|
|
5
|
+
export { default as ListboxEmpty, type ListboxEmptyBaseProps, type ListboxEmptyProps } from './listbox-empty.vue';
|
|
5
6
|
export { default as ListboxInput, type ListboxInputBaseProps, type ListboxInputProps } from './listbox-input.vue';
|
|
6
7
|
export { default as ListboxItem, type ListboxItemBaseProps, type ListboxItemProps } from './listbox-item.vue';
|
|
7
8
|
export { default as ListboxItemContext, type ListboxItemContextProps } from './listbox-item-context.vue';
|
|
@@ -10,8 +11,8 @@ export { default as ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps,
|
|
|
10
11
|
export { default as ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator.vue';
|
|
11
12
|
export { default as ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps, } from './listbox-item-text.vue';
|
|
12
13
|
export { default as ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label.vue';
|
|
13
|
-
export { default as ListboxRoot, type ListboxRootBaseProps, type
|
|
14
|
-
export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider.vue';
|
|
14
|
+
export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootComponent, type ListboxRootEmits, type ListboxRootProps, } from './listbox-root.vue';
|
|
15
|
+
export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, type ListboxRootProviderComponent, } from './listbox-root-provider.vue';
|
|
15
16
|
export { default as ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps, } from './listbox-value-text.vue';
|
|
16
17
|
export { listboxAnatomy } from './listbox.anatomy';
|
|
17
18
|
export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createListCollection } from '../collection/list-collection.js';
|
|
2
2
|
export { default as ListboxContext } from './listbox-context.vue.js';
|
|
3
3
|
export { default as ListboxContent } from './listbox-content.vue.js';
|
|
4
|
+
export { default as ListboxEmpty } from './listbox-empty.vue.js';
|
|
4
5
|
export { default as ListboxInput } from './listbox-input.vue.js';
|
|
5
6
|
export { default as ListboxItem } from './listbox-item.vue.js';
|
|
6
7
|
export { default as ListboxItemContext } from './listbox-item-context.vue.js';
|
|
@@ -12,9 +13,9 @@ export { default as ListboxLabel } from './listbox-label.vue.js';
|
|
|
12
13
|
export { default as ListboxRoot } from './listbox-root.vue.js';
|
|
13
14
|
export { default as ListboxRootProvider } from './listbox-root-provider.vue.js';
|
|
14
15
|
export { default as ListboxValueText } from './listbox-value-text.vue.js';
|
|
16
|
+
export { listboxAnatomy } from './listbox.anatomy.js';
|
|
15
17
|
export { useListbox } from './use-listbox.js';
|
|
16
18
|
export { useListboxContext } from './use-listbox-context.js';
|
|
17
19
|
export { useListboxItemContext } from './use-listbox-item-context.js';
|
|
18
20
|
import * as listbox from './listbox.js';
|
|
19
21
|
export { listbox as Listbox };
|
|
20
|
-
export { anatomy as listboxAnatomy } from '@zag-js/listbox';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const factory = require('../factory.cjs');
|
|
7
|
+
const listbox_anatomy = require('./listbox.anatomy.cjs');
|
|
8
|
+
const useListboxContext = require('./use-listbox-context.cjs');
|
|
9
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
10
|
+
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
__name: "listbox-empty",
|
|
13
|
+
props: {
|
|
14
|
+
asChild: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const parts = listbox_anatomy.listboxAnatomy.build();
|
|
18
|
+
const listbox = useListboxContext.useListboxContext();
|
|
19
|
+
const isEmpty = vue.computed(() => listbox.value.collection.size === 0);
|
|
20
|
+
useForwardExpose.useForwardExpose();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 0 }, vue.unref(parts).empty.attrs, {
|
|
23
|
+
role: "presentation",
|
|
24
|
+
"as-child": _ctx.asChild
|
|
25
|
+
}), {
|
|
26
|
+
default: vue.withCtx(() => [
|
|
27
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["as-child"])) : vue.createCommentVNode("", true);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface ListboxEmptyBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxEmptyProps extends ListboxEmptyBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<ListboxEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface ListboxEmptyBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ListboxEmptyProps extends ListboxEmptyBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<ListboxEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ListboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, createCommentVNode, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { ark } from '../factory.js';
|
|
3
|
+
import { listboxAnatomy } from './listbox.anatomy.js';
|
|
4
|
+
import { useListboxContext } from './use-listbox-context.js';
|
|
5
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
6
|
+
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "listbox-empty",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const parts = listboxAnatomy.build();
|
|
14
|
+
const listbox = useListboxContext();
|
|
15
|
+
const isEmpty = computed(() => listbox.value.collection.size === 0);
|
|
16
|
+
useForwardExpose();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return isEmpty.value ? (openBlock(), createBlock(unref(ark).div, mergeProps({ key: 0 }, unref(parts).empty.attrs, {
|
|
19
|
+
role: "presentation",
|
|
20
|
+
"as-child": _ctx.asChild
|
|
21
|
+
}), {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
renderSlot(_ctx.$slots, "default")
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["as-child"])) : createCommentVNode("", true);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const listboxEmpty_vue_vue_type_script_setup_true_lang = require('./listbox-empty.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = listboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { CollectionItem } from '../collection';
|
|
3
4
|
import { PolymorphicProps } from '../factory';
|
|
4
5
|
import { UseListboxReturn } from './use-listbox';
|
|
@@ -13,6 +14,7 @@ export interface ListboxRootProviderProps<T extends CollectionItem> extends List
|
|
|
13
14
|
*/
|
|
14
15
|
HTMLAttributes {
|
|
15
16
|
}
|
|
17
|
+
export type ListboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProviderProps<T>, P>) => any;
|
|
16
18
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
19
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ListboxRootProviderProps<T> & Partial<{}>> & PublicProps;
|
|
18
20
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { CollectionItem } from '../collection';
|
|
3
4
|
import { PolymorphicProps } from '../factory';
|
|
4
5
|
import { UseListboxReturn } from './use-listbox';
|
|
@@ -13,6 +14,7 @@ export interface ListboxRootProviderProps<T extends CollectionItem> extends List
|
|
|
13
14
|
*/
|
|
14
15
|
HTMLAttributes {
|
|
15
16
|
}
|
|
17
|
+
export type ListboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProviderProps<T>, P>) => any;
|
|
16
18
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
17
19
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ListboxRootProviderProps<T> & Partial<{}>> & PublicProps;
|
|
18
20
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { CollectionItem } from '../collection';
|
|
3
4
|
import { PolymorphicProps } from '../factory';
|
|
4
5
|
import { RootProps } from './listbox.types';
|
|
@@ -11,6 +12,7 @@ export interface ListboxRootProps<T extends CollectionItem> extends ListboxRootB
|
|
|
11
12
|
*/
|
|
12
13
|
HTMLAttributes {
|
|
13
14
|
}
|
|
15
|
+
export type ListboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProps<T>, P>) => any;
|
|
14
16
|
export type { RootEmits as ListboxRootEmits } from './listbox.types';
|
|
15
17
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
18
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { CollectionItem } from '../collection';
|
|
3
4
|
import { PolymorphicProps } from '../factory';
|
|
4
5
|
import { RootProps } from './listbox.types';
|
|
@@ -11,6 +12,7 @@ export interface ListboxRootProps<T extends CollectionItem> extends ListboxRootB
|
|
|
11
12
|
*/
|
|
12
13
|
HTMLAttributes {
|
|
13
14
|
}
|
|
15
|
+
export type ListboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProps<T>, P>) => any;
|
|
14
16
|
export type { RootEmits as ListboxRootEmits } from './listbox.types';
|
|
15
17
|
declare const _default: <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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
18
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const listboxAnatomy: AnatomyInstance<"input" | "label" | "content" | "root" | "item" | "valueText" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const listboxAnatomy: AnatomyInstance<"input" | "label" | "content" | "root" | "item" | "valueText" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const listboxContext_vue_vue_type_script_setup_true_lang = require('./listbox-context.vue.cjs');
|
|
6
6
|
const listboxContent_vue_vue_type_script_setup_true_lang = require('./listbox-content.vue.cjs');
|
|
7
|
+
const listboxEmpty_vue_vue_type_script_setup_true_lang = require('./listbox-empty.vue.cjs');
|
|
7
8
|
const listboxInput_vue_vue_type_script_setup_true_lang = require('./listbox-input.vue.cjs');
|
|
8
9
|
const listboxItemContext_vue_vue_type_script_setup_true_lang = require('./listbox-item-context.vue.cjs');
|
|
9
10
|
const listboxItemGroupLabel_vue_vue_type_script_setup_true_lang = require('./listbox-item-group-label.vue.cjs');
|
|
@@ -20,6 +21,7 @@ const listboxValueText_vue_vue_type_script_setup_true_lang = require('./listbox-
|
|
|
20
21
|
|
|
21
22
|
exports.Context = listboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
22
23
|
exports.Content = listboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
24
|
+
exports.Empty = listboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
23
25
|
exports.Input = listboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
24
26
|
exports.ItemContext = listboxItemContext_vue_vue_type_script_setup_true_lang.default;
|
|
25
27
|
exports.ItemGroupLabel = listboxItemGroupLabel_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, ScrollToIndexDetails, SelectionDetails, SelectionMode, ValueChangeDetails, } from '@zag-js/listbox';
|
|
2
2
|
export { default as Context, type ListboxContextProps as ContextProps } from './listbox-context.vue';
|
|
3
3
|
export { default as Content, type ListboxContentBaseProps as ContentBaseProps, type ListboxContentProps as ContentProps, } from './listbox-content.vue';
|
|
4
|
+
export { default as Empty, type ListboxEmptyBaseProps as EmptyBaseProps, type ListboxEmptyProps as EmptyProps, } from './listbox-empty.vue';
|
|
4
5
|
export { default as Input, type ListboxInputBaseProps as InputBaseProps, type ListboxInputProps as InputProps, } from './listbox-input.vue';
|
|
5
6
|
export { default as ItemContext, type ListboxItemContextProps as ItemContextProps } from './listbox-item-context.vue';
|
|
6
7
|
export { default as ItemGroupLabel, type ListboxItemGroupLabelBaseProps as ItemGroupLabelBaseProps, type ListboxItemGroupLabelProps as ItemGroupLabelProps, } from './listbox-item-group-label.vue';
|
|
@@ -9,6 +10,6 @@ export { default as ItemIndicator, type ListboxItemIndicatorBaseProps as ItemInd
|
|
|
9
10
|
export { default as ItemText, type ListboxItemTextBaseProps as ItemTextBaseProps, type ListboxItemTextProps as ItemTextProps, } from './listbox-item-text.vue';
|
|
10
11
|
export { default as Item, type ListboxItemBaseProps as ItemBaseProps, type ListboxItemProps as ItemProps, } from './listbox-item.vue';
|
|
11
12
|
export { default as Label, type ListboxLabelBaseProps as LabelBaseProps, type ListboxLabelProps as LabelProps, } from './listbox-label.vue';
|
|
12
|
-
export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, } from './listbox-root-provider.vue';
|
|
13
|
-
export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
|
|
13
|
+
export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, type ListboxRootProviderComponent as RootProviderComponent, } from './listbox-root-provider.vue';
|
|
14
|
+
export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootComponent as RootComponent, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
|
|
14
15
|
export { default as ValueText, type ListboxValueTextBaseProps as ValueTextBaseProps, type ListboxValueTextProps as ValueTextProps, } from './listbox-value-text.vue';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, ScrollToIndexDetails, SelectionDetails, SelectionMode, ValueChangeDetails, } from '@zag-js/listbox';
|
|
2
2
|
export { default as Context, type ListboxContextProps as ContextProps } from './listbox-context.vue';
|
|
3
3
|
export { default as Content, type ListboxContentBaseProps as ContentBaseProps, type ListboxContentProps as ContentProps, } from './listbox-content.vue';
|
|
4
|
+
export { default as Empty, type ListboxEmptyBaseProps as EmptyBaseProps, type ListboxEmptyProps as EmptyProps, } from './listbox-empty.vue';
|
|
4
5
|
export { default as Input, type ListboxInputBaseProps as InputBaseProps, type ListboxInputProps as InputProps, } from './listbox-input.vue';
|
|
5
6
|
export { default as ItemContext, type ListboxItemContextProps as ItemContextProps } from './listbox-item-context.vue';
|
|
6
7
|
export { default as ItemGroupLabel, type ListboxItemGroupLabelBaseProps as ItemGroupLabelBaseProps, type ListboxItemGroupLabelProps as ItemGroupLabelProps, } from './listbox-item-group-label.vue';
|
|
@@ -9,6 +10,6 @@ export { default as ItemIndicator, type ListboxItemIndicatorBaseProps as ItemInd
|
|
|
9
10
|
export { default as ItemText, type ListboxItemTextBaseProps as ItemTextBaseProps, type ListboxItemTextProps as ItemTextProps, } from './listbox-item-text.vue';
|
|
10
11
|
export { default as Item, type ListboxItemBaseProps as ItemBaseProps, type ListboxItemProps as ItemProps, } from './listbox-item.vue';
|
|
11
12
|
export { default as Label, type ListboxLabelBaseProps as LabelBaseProps, type ListboxLabelProps as LabelProps, } from './listbox-label.vue';
|
|
12
|
-
export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, } from './listbox-root-provider.vue';
|
|
13
|
-
export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
|
|
13
|
+
export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, type ListboxRootProviderComponent as RootProviderComponent, } from './listbox-root-provider.vue';
|
|
14
|
+
export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootComponent as RootComponent, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
|
|
14
15
|
export { default as ValueText, type ListboxValueTextBaseProps as ValueTextBaseProps, type ListboxValueTextProps as ValueTextProps, } from './listbox-value-text.vue';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as Context } from './listbox-context.vue.js';
|
|
2
2
|
export { default as Content } from './listbox-content.vue.js';
|
|
3
|
+
export { default as Empty } from './listbox-empty.vue.js';
|
|
3
4
|
export { default as Input } from './listbox-input.vue.js';
|
|
4
5
|
export { default as ItemContext } from './listbox-item-context.vue.js';
|
|
5
6
|
export { default as ItemGroupLabel } from './listbox-item-group-label.vue.js';
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
38
|
open: void 0,
|
|
39
39
|
typeahead: void 0
|
|
40
40
|
}),
|
|
41
|
-
emits: ["escapeKeyDown", "focusOutside", "highlightChange", "interactOutside", "openChange", "pointerDownOutside", "select", "update:open", "update:highlightedValue"],
|
|
41
|
+
emits: ["escapeKeyDown", "focusOutside", "highlightChange", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "select", "update:open", "update:highlightedValue"],
|
|
42
42
|
setup(__props, { emit: __emit }) {
|
|
43
43
|
const props = __props;
|
|
44
44
|
const emits = __emit;
|
|
@@ -20,6 +20,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<MenuRootProps,
|
|
|
20
20
|
highlightChange: (details: HighlightChangeDetails) => any;
|
|
21
21
|
"update:highlightedValue": (highlightedValue: string | null) => any;
|
|
22
22
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
23
|
+
requestDismiss: (event: CustomEvent<{
|
|
24
|
+
originalLayer: HTMLElement;
|
|
25
|
+
targetLayer: HTMLElement | undefined;
|
|
26
|
+
originalIndex: number;
|
|
27
|
+
targetIndex: number;
|
|
28
|
+
}>) => any;
|
|
23
29
|
}, string, PublicProps, Readonly<MenuRootProps> & Readonly<{
|
|
24
30
|
onSelect?: ((details: SelectionDetails) => any) | undefined;
|
|
25
31
|
onOpenChange?: ((details: OpenChangeDetails) => any) | undefined;
|
|
@@ -30,6 +36,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<MenuRootProps,
|
|
|
30
36
|
onHighlightChange?: ((details: HighlightChangeDetails) => any) | undefined;
|
|
31
37
|
"onUpdate:highlightedValue"?: ((highlightedValue: string | null) => any) | undefined;
|
|
32
38
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
39
|
+
onRequestDismiss?: ((event: CustomEvent<{
|
|
40
|
+
originalLayer: HTMLElement;
|
|
41
|
+
targetLayer: HTMLElement | undefined;
|
|
42
|
+
originalIndex: number;
|
|
43
|
+
targetIndex: number;
|
|
44
|
+
}>) => any) | undefined;
|
|
33
45
|
}>, {
|
|
34
46
|
open: boolean;
|
|
35
47
|
defaultOpen: boolean;
|