@ark-ui/vue 5.21.0 → 5.22.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.
Files changed (71) hide show
  1. package/dist/components/combobox/combobox-empty.vue.cjs +35 -0
  2. package/dist/components/combobox/combobox-empty.vue.d.cts +19 -0
  3. package/dist/components/combobox/combobox-empty.vue.d.ts +19 -0
  4. package/dist/components/combobox/combobox-empty.vue.js +31 -0
  5. package/dist/components/combobox/combobox-empty.vue2.cjs +9 -0
  6. package/dist/components/combobox/combobox-empty.vue2.js +5 -0
  7. package/dist/components/combobox/combobox.anatomy.cjs +9 -0
  8. package/dist/components/combobox/combobox.anatomy.d.cts +2 -1
  9. package/dist/components/combobox/combobox.anatomy.d.ts +2 -1
  10. package/dist/components/combobox/combobox.anatomy.js +5 -0
  11. package/dist/components/combobox/combobox.cjs +2 -0
  12. package/dist/components/combobox/combobox.d.cts +1 -0
  13. package/dist/components/combobox/combobox.d.ts +1 -0
  14. package/dist/components/combobox/combobox.js +1 -0
  15. package/dist/components/combobox/index.cjs +6 -7
  16. package/dist/components/combobox/index.d.cts +1 -0
  17. package/dist/components/combobox/index.d.ts +1 -0
  18. package/dist/components/combobox/index.js +2 -1
  19. package/dist/components/dialog/dialog-root.vue.cjs +1 -1
  20. package/dist/components/dialog/dialog-root.vue.d.cts +12 -0
  21. package/dist/components/dialog/dialog-root.vue.d.ts +12 -0
  22. package/dist/components/dialog/dialog-root.vue.js +1 -1
  23. package/dist/components/dialog/dialog.types.d.cts +11 -0
  24. package/dist/components/dialog/dialog.types.d.ts +11 -0
  25. package/dist/components/dialog/use-dialog.cjs +4 -0
  26. package/dist/components/dialog/use-dialog.js +4 -0
  27. package/dist/components/hover-card/hover-card-root.vue.cjs +2 -0
  28. package/dist/components/hover-card/hover-card-root.vue.d.cts +1 -0
  29. package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -0
  30. package/dist/components/hover-card/hover-card-root.vue.js +2 -0
  31. package/dist/components/hover-card/hover-card.types.d.cts +4 -0
  32. package/dist/components/hover-card/hover-card.types.d.ts +4 -0
  33. package/dist/components/index.cjs +12 -14
  34. package/dist/components/index.js +4 -2
  35. package/dist/components/listbox/index.cjs +6 -7
  36. package/dist/components/listbox/index.d.cts +1 -0
  37. package/dist/components/listbox/index.d.ts +1 -0
  38. package/dist/components/listbox/index.js +2 -1
  39. package/dist/components/listbox/listbox-empty.vue.cjs +35 -0
  40. package/dist/components/listbox/listbox-empty.vue.d.cts +19 -0
  41. package/dist/components/listbox/listbox-empty.vue.d.ts +19 -0
  42. package/dist/components/listbox/listbox-empty.vue.js +31 -0
  43. package/dist/components/listbox/listbox-empty.vue2.cjs +9 -0
  44. package/dist/components/listbox/listbox-empty.vue2.js +5 -0
  45. package/dist/components/listbox/listbox.anatomy.cjs +9 -0
  46. package/dist/components/listbox/listbox.anatomy.d.cts +2 -1
  47. package/dist/components/listbox/listbox.anatomy.d.ts +2 -1
  48. package/dist/components/listbox/listbox.anatomy.js +5 -0
  49. package/dist/components/listbox/listbox.cjs +2 -0
  50. package/dist/components/listbox/listbox.d.cts +1 -0
  51. package/dist/components/listbox/listbox.d.ts +1 -0
  52. package/dist/components/listbox/listbox.js +1 -0
  53. package/dist/components/menu/menu-root.vue.cjs +1 -1
  54. package/dist/components/menu/menu-root.vue.d.cts +12 -0
  55. package/dist/components/menu/menu-root.vue.d.ts +12 -0
  56. package/dist/components/menu/menu-root.vue.js +1 -1
  57. package/dist/components/menu/menu.types.d.cts +11 -0
  58. package/dist/components/menu/menu.types.d.ts +11 -0
  59. package/dist/components/popover/popover-root.vue.cjs +1 -1
  60. package/dist/components/popover/popover-root.vue.d.cts +12 -0
  61. package/dist/components/popover/popover-root.vue.d.ts +12 -0
  62. package/dist/components/popover/popover-root.vue.js +1 -1
  63. package/dist/components/popover/popover.types.d.cts +11 -0
  64. package/dist/components/popover/popover.types.d.ts +11 -0
  65. package/dist/components/segment-group/segment-group.anatomy.d.cts +2 -2
  66. package/dist/components/segment-group/segment-group.anatomy.d.ts +2 -2
  67. package/dist/components/signature-pad/signature-pad-segment.vue.cjs +1 -2
  68. package/dist/components/signature-pad/signature-pad-segment.vue.js +1 -2
  69. package/dist/index.cjs +12 -14
  70. package/dist/index.js +4 -2
  71. package/package.json +68 -68
@@ -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$1 = require('./listbox.cjs');
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$1;
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';
@@ -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';
@@ -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;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './listbox-empty.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const listbox = require('@zag-js/listbox');
6
+
7
+ const listboxAnatomy = listbox.anatomy.extendWith("empty");
8
+
9
+ exports.listboxAnatomy = listboxAnatomy;
@@ -1 +1,2 @@
1
- export { anatomy as listboxAnatomy } from '@zag-js/listbox';
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
- export { anatomy as listboxAnatomy } from '@zag-js/listbox';
1
+ import { AnatomyInstance } from '@zag-js/anatomy';
2
+ export declare const listboxAnatomy: AnatomyInstance<"input" | "label" | "content" | "root" | "item" | "valueText" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
@@ -0,0 +1,5 @@
1
+ import { anatomy } from '@zag-js/listbox';
2
+
3
+ const listboxAnatomy = anatomy.extendWith("empty");
4
+
5
+ export { listboxAnatomy };
@@ -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';
@@ -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';
@@ -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;
@@ -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;
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  open: void 0,
35
35
  typeahead: void 0
36
36
  }),
37
- emits: ["escapeKeyDown", "focusOutside", "highlightChange", "interactOutside", "openChange", "pointerDownOutside", "select", "update:open", "update:highlightedValue"],
37
+ emits: ["escapeKeyDown", "focusOutside", "highlightChange", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "select", "update:open", "update:highlightedValue"],
38
38
  setup(__props, { emit: __emit }) {
39
39
  const props = __props;
40
40
  const emits = __emit;
@@ -96,6 +96,17 @@ export type RootEmits = {
96
96
  * Function called when the pointer is pressed down outside the component
97
97
  */
98
98
  pointerDownOutside: [event: menu.PointerDownOutsideEvent];
99
+ /**
100
+ * Function called when this layer is closed due to a parent layer being closed
101
+ */
102
+ requestDismiss: [
103
+ event: CustomEvent<{
104
+ originalLayer: HTMLElement;
105
+ targetLayer: HTMLElement | undefined;
106
+ originalIndex: number;
107
+ targetIndex: number;
108
+ }>
109
+ ];
99
110
  /**
100
111
  * Function called when a menu item is selected.
101
112
  */
@@ -96,6 +96,17 @@ export type RootEmits = {
96
96
  * Function called when the pointer is pressed down outside the component
97
97
  */
98
98
  pointerDownOutside: [event: menu.PointerDownOutsideEvent];
99
+ /**
100
+ * Function called when this layer is closed due to a parent layer being closed
101
+ */
102
+ requestDismiss: [
103
+ event: CustomEvent<{
104
+ originalLayer: HTMLElement;
105
+ targetLayer: HTMLElement | undefined;
106
+ originalIndex: number;
107
+ targetIndex: number;
108
+ }>
109
+ ];
99
110
  /**
100
111
  * Function called when a menu item is selected.
101
112
  */
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
34
  open: void 0,
35
35
  portalled: void 0
36
36
  }),
37
- emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
37
+ emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "update:open"],
38
38
  setup(__props, { emit: __emit }) {
39
39
  const props = __props;
40
40
  const emits = __emit;
@@ -16,6 +16,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PopoverRootProp
16
16
  interactOutside: (event: InteractOutsideEvent) => any;
17
17
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
18
18
  escapeKeyDown: (event: KeyboardEvent) => any;
19
+ requestDismiss: (event: CustomEvent<{
20
+ originalLayer: HTMLElement;
21
+ targetLayer: HTMLElement | undefined;
22
+ originalIndex: number;
23
+ targetIndex: number;
24
+ }>) => any;
19
25
  }, string, PublicProps, Readonly<PopoverRootProps> & Readonly<{
20
26
  onOpenChange?: ((details: OpenChangeDetails) => any) | undefined;
21
27
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
@@ -23,6 +29,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PopoverRootProp
23
29
  onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
24
30
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
25
31
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
32
+ onRequestDismiss?: ((event: CustomEvent<{
33
+ originalLayer: HTMLElement;
34
+ targetLayer: HTMLElement | undefined;
35
+ originalIndex: number;
36
+ targetIndex: number;
37
+ }>) => any) | undefined;
26
38
  }>, {
27
39
  open: boolean;
28
40
  autoFocus: boolean;
@@ -16,6 +16,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PopoverRootProp
16
16
  interactOutside: (event: InteractOutsideEvent) => any;
17
17
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
18
18
  escapeKeyDown: (event: KeyboardEvent) => any;
19
+ requestDismiss: (event: CustomEvent<{
20
+ originalLayer: HTMLElement;
21
+ targetLayer: HTMLElement | undefined;
22
+ originalIndex: number;
23
+ targetIndex: number;
24
+ }>) => any;
19
25
  }, string, PublicProps, Readonly<PopoverRootProps> & Readonly<{
20
26
  onOpenChange?: ((details: OpenChangeDetails) => any) | undefined;
21
27
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
@@ -23,6 +29,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<PopoverRootProp
23
29
  onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
24
30
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
25
31
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
32
+ onRequestDismiss?: ((event: CustomEvent<{
33
+ originalLayer: HTMLElement;
34
+ targetLayer: HTMLElement | undefined;
35
+ originalIndex: number;
36
+ targetIndex: number;
37
+ }>) => any) | undefined;
26
38
  }>, {
27
39
  open: boolean;
28
40
  autoFocus: boolean;
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  open: void 0,
31
31
  portalled: void 0
32
32
  }),
33
- emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
33
+ emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "update:open"],
34
34
  setup(__props, { emit: __emit }) {
35
35
  const props = __props;
36
36
  const emits = __emit;
@@ -96,6 +96,17 @@ export type RootEmits = {
96
96
  * Function called when the pointer is pressed down outside the component
97
97
  */
98
98
  pointerDownOutside: [event: popover.PointerDownOutsideEvent];
99
+ /**
100
+ * Function called when this layer is closed due to a parent layer being closed
101
+ */
102
+ requestDismiss: [
103
+ event: CustomEvent<{
104
+ originalLayer: HTMLElement;
105
+ targetLayer: HTMLElement | undefined;
106
+ originalIndex: number;
107
+ targetIndex: number;
108
+ }>
109
+ ];
99
110
  /**
100
111
  * The callback fired when the open state changes.
101
112
  */
@@ -96,6 +96,17 @@ export type RootEmits = {
96
96
  * Function called when the pointer is pressed down outside the component
97
97
  */
98
98
  pointerDownOutside: [event: popover.PointerDownOutsideEvent];
99
+ /**
100
+ * Function called when this layer is closed due to a parent layer being closed
101
+ */
102
+ requestDismiss: [
103
+ event: CustomEvent<{
104
+ originalLayer: HTMLElement;
105
+ targetLayer: HTMLElement | undefined;
106
+ originalIndex: number;
107
+ targetIndex: number;
108
+ }>
109
+ ];
99
110
  /**
100
111
  * The callback fired when the open state changes.
101
112
  */
@@ -1,3 +1,3 @@
1
1
  import { Anatomy, AnatomyPart } from '@zag-js/anatomy';
2
- export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemControl" | "itemText">;
3
- export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemControl" | "itemText", AnatomyPart>;
2
+ export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl">;
3
+ export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl", AnatomyPart>;
@@ -1,3 +1,3 @@
1
1
  import { Anatomy, AnatomyPart } from '@zag-js/anatomy';
2
- export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemControl" | "itemText">;
3
- export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemControl" | "itemText", AnatomyPart>;
2
+ export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl">;
3
+ export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl", AnatomyPart>;
@@ -24,8 +24,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
24
24
  }), 128)),
25
25
  vue.unref(signaturePad).currentPath ? (vue.openBlock(), vue.createElementBlock("path", vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(signaturePad).getSegmentPathProps({ path: vue.unref(signaturePad).currentPath }))), null, 16)) : vue.createCommentVNode("", true)
26
26
  ]),
27
- _: 1,
28
- __: [0]
27
+ _: 1
29
28
  }, 16, ["as-child"]);
30
29
  };
31
30
  }
@@ -20,8 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  }), 128)),
21
21
  unref(signaturePad).currentPath ? (openBlock(), createElementBlock("path", normalizeProps(mergeProps({ key: 0 }, unref(signaturePad).getSegmentPathProps({ path: unref(signaturePad).currentPath }))), null, 16)) : createCommentVNode("", true)
22
22
  ]),
23
- _: 1,
24
- __: [0]
23
+ _: 1
25
24
  }, 16, ["as-child"]);
26
25
  };
27
26
  }