@ark-ui/vue 5.25.0 → 5.25.1

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 (99) hide show
  1. package/dist/components/anatomy.cjs +5 -0
  2. package/dist/components/anatomy.d.cts +1 -0
  3. package/dist/components/anatomy.d.ts +1 -0
  4. package/dist/components/anatomy.js +1 -0
  5. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue.cjs +35 -0
  6. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue.d.cts +19 -0
  7. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue.d.ts +19 -0
  8. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue.js +31 -0
  9. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue2.cjs +9 -0
  10. package/dist/components/bottom-sheet/bottom-sheet-backdrop.vue2.js +5 -0
  11. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue.cjs +30 -0
  12. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue.d.cts +19 -0
  13. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue.d.ts +19 -0
  14. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue.js +26 -0
  15. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue2.cjs +9 -0
  16. package/dist/components/bottom-sheet/bottom-sheet-close-trigger.vue2.js +5 -0
  17. package/dist/components/bottom-sheet/bottom-sheet-content.vue.cjs +44 -0
  18. package/dist/components/bottom-sheet/bottom-sheet-content.vue.d.cts +22 -0
  19. package/dist/components/bottom-sheet/bottom-sheet-content.vue.d.ts +22 -0
  20. package/dist/components/bottom-sheet/bottom-sheet-content.vue.js +40 -0
  21. package/dist/components/bottom-sheet/bottom-sheet-content.vue2.cjs +9 -0
  22. package/dist/components/bottom-sheet/bottom-sheet-content.vue2.js +5 -0
  23. package/dist/components/bottom-sheet/bottom-sheet-context.vue.cjs +18 -0
  24. package/dist/components/bottom-sheet/bottom-sheet-context.vue.d.cts +17 -0
  25. package/dist/components/bottom-sheet/bottom-sheet-context.vue.d.ts +17 -0
  26. package/dist/components/bottom-sheet/bottom-sheet-context.vue.js +14 -0
  27. package/dist/components/bottom-sheet/bottom-sheet-context.vue2.cjs +9 -0
  28. package/dist/components/bottom-sheet/bottom-sheet-context.vue2.js +5 -0
  29. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue.cjs +30 -0
  30. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue.d.cts +19 -0
  31. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue.d.ts +19 -0
  32. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue.js +26 -0
  33. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue2.cjs +9 -0
  34. package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.vue2.js +5 -0
  35. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue.cjs +30 -0
  36. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue.d.cts +19 -0
  37. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue.d.ts +19 -0
  38. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue.js +26 -0
  39. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue2.cjs +9 -0
  40. package/dist/components/bottom-sheet/bottom-sheet-grabber.vue2.js +5 -0
  41. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue.cjs +34 -0
  42. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue.d.cts +19 -0
  43. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue.d.ts +19 -0
  44. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue.js +30 -0
  45. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue2.cjs +9 -0
  46. package/dist/components/bottom-sheet/bottom-sheet-root-provider.vue2.js +5 -0
  47. package/dist/components/bottom-sheet/bottom-sheet-root.vue.cjs +70 -0
  48. package/dist/components/bottom-sheet/bottom-sheet-root.vue.d.cts +39 -0
  49. package/dist/components/bottom-sheet/bottom-sheet-root.vue.d.ts +39 -0
  50. package/dist/components/bottom-sheet/bottom-sheet-root.vue.js +66 -0
  51. package/dist/components/bottom-sheet/bottom-sheet-root.vue2.cjs +9 -0
  52. package/dist/components/bottom-sheet/bottom-sheet-root.vue2.js +5 -0
  53. package/dist/components/bottom-sheet/bottom-sheet-title.vue.cjs +30 -0
  54. package/dist/components/bottom-sheet/bottom-sheet-title.vue.d.cts +19 -0
  55. package/dist/components/bottom-sheet/bottom-sheet-title.vue.d.ts +19 -0
  56. package/dist/components/bottom-sheet/bottom-sheet-title.vue.js +26 -0
  57. package/dist/components/bottom-sheet/bottom-sheet-title.vue2.cjs +9 -0
  58. package/dist/components/bottom-sheet/bottom-sheet-title.vue2.js +5 -0
  59. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.cjs +30 -0
  60. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.d.cts +19 -0
  61. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.d.ts +19 -0
  62. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue.js +26 -0
  63. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue2.cjs +9 -0
  64. package/dist/components/bottom-sheet/bottom-sheet-trigger.vue2.js +5 -0
  65. package/dist/components/bottom-sheet/bottom-sheet.anatomy.d.cts +1 -0
  66. package/dist/components/bottom-sheet/bottom-sheet.anatomy.d.ts +1 -0
  67. package/dist/components/bottom-sheet/bottom-sheet.cjs +27 -0
  68. package/dist/components/bottom-sheet/bottom-sheet.d.cts +11 -0
  69. package/dist/components/bottom-sheet/bottom-sheet.d.ts +11 -0
  70. package/dist/components/bottom-sheet/bottom-sheet.js +10 -0
  71. package/dist/components/bottom-sheet/bottom-sheet.types.d.cts +110 -0
  72. package/dist/components/bottom-sheet/bottom-sheet.types.d.ts +110 -0
  73. package/dist/components/bottom-sheet/index.cjs +38 -0
  74. package/dist/components/bottom-sheet/index.d.cts +15 -0
  75. package/dist/components/bottom-sheet/index.d.ts +15 -0
  76. package/dist/components/bottom-sheet/index.js +15 -0
  77. package/dist/components/bottom-sheet/use-bottom-sheet-context.cjs +11 -0
  78. package/dist/components/bottom-sheet/use-bottom-sheet-context.d.cts +4 -0
  79. package/dist/components/bottom-sheet/use-bottom-sheet-context.d.ts +4 -0
  80. package/dist/components/bottom-sheet/use-bottom-sheet-context.js +6 -0
  81. package/dist/components/bottom-sheet/use-bottom-sheet.cjs +56 -0
  82. package/dist/components/bottom-sheet/use-bottom-sheet.d.cts +10 -0
  83. package/dist/components/bottom-sheet/use-bottom-sheet.d.ts +10 -0
  84. package/dist/components/bottom-sheet/use-bottom-sheet.js +33 -0
  85. package/dist/components/dialog/dialog-root.vue.d.cts +4 -4
  86. package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
  87. package/dist/components/format/format-byte.vue.cjs +1 -0
  88. package/dist/components/format/format-byte.vue.d.cts +4 -0
  89. package/dist/components/format/format-byte.vue.d.ts +4 -0
  90. package/dist/components/format/format-byte.vue.js +1 -0
  91. package/dist/components/index.cjs +31 -0
  92. package/dist/components/index.d.cts +1 -0
  93. package/dist/components/index.d.ts +1 -0
  94. package/dist/components/index.js +15 -0
  95. package/dist/components/popover/popover-root.vue.d.cts +2 -2
  96. package/dist/components/popover/popover-root.vue.d.ts +2 -2
  97. package/dist/index.cjs +31 -0
  98. package/dist/index.js +15 -0
  99. package/package.json +62 -61
@@ -16,6 +16,7 @@ const tour_anatomy = require('./tour/tour.anatomy.cjs');
16
16
  const accordion = require('@zag-js/accordion');
17
17
  const angleSlider = require('@zag-js/angle-slider');
18
18
  const avatar = require('@zag-js/avatar');
19
+ const bottomSheet = require('@zag-js/bottom-sheet');
19
20
  const carousel = require('@zag-js/carousel');
20
21
  const clipboard = require('@zag-js/clipboard');
21
22
  const collapsible = require('@zag-js/collapsible');
@@ -73,6 +74,10 @@ Object.defineProperty(exports, "avatarAnatomy", {
73
74
  enumerable: true,
74
75
  get: () => avatar.anatomy
75
76
  });
77
+ Object.defineProperty(exports, "bottomSheetAnatomy", {
78
+ enumerable: true,
79
+ get: () => bottomSheet.anatomy
80
+ });
76
81
  Object.defineProperty(exports, "carouselAnatomy", {
77
82
  enumerable: true,
78
83
  get: () => carousel.anatomy
@@ -2,6 +2,7 @@ export * from '@zag-js/anatomy';
2
2
  export { accordionAnatomy } from './accordion/accordion.anatomy';
3
3
  export { angleSliderAnatomy } from './angle-slider/angle-slider.anatomy';
4
4
  export { avatarAnatomy } from './avatar/avatar.anatomy';
5
+ export { bottomSheetAnatomy } from './bottom-sheet/bottom-sheet.anatomy';
5
6
  export { carouselAnatomy } from './carousel/carousel.anatomy';
6
7
  export { checkboxAnatomy } from './checkbox/checkbox.anatomy';
7
8
  export { clipboardAnatomy } from './clipboard/clipboard.anatomy';
@@ -2,6 +2,7 @@ export * from '@zag-js/anatomy';
2
2
  export { accordionAnatomy } from './accordion/accordion.anatomy';
3
3
  export { angleSliderAnatomy } from './angle-slider/angle-slider.anatomy';
4
4
  export { avatarAnatomy } from './avatar/avatar.anatomy';
5
+ export { bottomSheetAnatomy } from './bottom-sheet/bottom-sheet.anatomy';
5
6
  export { carouselAnatomy } from './carousel/carousel.anatomy';
6
7
  export { checkboxAnatomy } from './checkbox/checkbox.anatomy';
7
8
  export { clipboardAnatomy } from './clipboard/clipboard.anatomy';
@@ -12,6 +12,7 @@ export { tourAnatomy } from './tour/tour.anatomy.js';
12
12
  export { anatomy as accordionAnatomy } from '@zag-js/accordion';
13
13
  export { anatomy as angleSliderAnatomy } from '@zag-js/angle-slider';
14
14
  export { anatomy as avatarAnatomy } from '@zag-js/avatar';
15
+ export { anatomy as bottomSheetAnatomy } from '@zag-js/bottom-sheet';
15
16
  export { anatomy as carouselAnatomy } from '@zag-js/carousel';
16
17
  export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
17
18
  export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
@@ -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 useForwardExpose = require('../../utils/use-forward-expose.cjs');
7
+ const useRenderStrategy = require('../../utils/use-render-strategy.cjs');
8
+ const presence_vue_vue_type_script_setup_true_lang = require('../presence/presence.vue.cjs');
9
+ const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
10
+
11
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
+ __name: "bottom-sheet-backdrop",
13
+ props: {
14
+ asChild: { type: Boolean }
15
+ },
16
+ setup(__props) {
17
+ const bottomSheet = useBottomSheetContext.useBottomSheetContext();
18
+ const renderStrategy = useRenderStrategy.useRenderStrategyProps();
19
+ useForwardExpose.useForwardExpose();
20
+ return (_ctx, _cache) => {
21
+ return vue.openBlock(), vue.createBlock(vue.unref(presence_vue_vue_type_script_setup_true_lang.default), vue.mergeProps(vue.unref(bottomSheet).getBackdropProps(), {
22
+ present: vue.unref(bottomSheet).open,
23
+ "lazy-mount": vue.unref(renderStrategy).lazyMount,
24
+ "unmount-on-exit": vue.unref(renderStrategy).unmountOnExit
25
+ }), {
26
+ default: vue.withCtx(() => [
27
+ vue.renderSlot(_ctx.$slots, "default")
28
+ ]),
29
+ _: 3
30
+ }, 16, ["present", "lazy-mount", "unmount-on-exit"]);
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 BottomSheetBackdropBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetBackdropProps extends BottomSheetBackdropBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetBackdropProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetBackdropProps> & 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 BottomSheetBackdropBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetBackdropProps extends BottomSheetBackdropBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetBackdropProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetBackdropProps> & 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, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { useForwardExpose } from '../../utils/use-forward-expose.js';
3
+ import { useRenderStrategyProps } from '../../utils/use-render-strategy.js';
4
+ import _sfc_main$1 from '../presence/presence.vue.js';
5
+ import { useBottomSheetContext } from './use-bottom-sheet-context.js';
6
+
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "bottom-sheet-backdrop",
9
+ props: {
10
+ asChild: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ const bottomSheet = useBottomSheetContext();
14
+ const renderStrategy = useRenderStrategyProps();
15
+ useForwardExpose();
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createBlock(unref(_sfc_main$1), mergeProps(unref(bottomSheet).getBackdropProps(), {
18
+ present: unref(bottomSheet).open,
19
+ "lazy-mount": unref(renderStrategy).lazyMount,
20
+ "unmount-on-exit": unref(renderStrategy).unmountOnExit
21
+ }), {
22
+ default: withCtx(() => [
23
+ renderSlot(_ctx.$slots, "default")
24
+ ]),
25
+ _: 3
26
+ }, 16, ["present", "lazy-mount", "unmount-on-exit"]);
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 bottomSheetBackdrop_vue_vue_type_script_setup_true_lang = require('./bottom-sheet-backdrop.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = bottomSheetBackdrop_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './bottom-sheet-backdrop.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,30 @@
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 useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
8
+ require('@zag-js/core');
9
+ const useForwardExpose = require('../../utils/use-forward-expose.cjs');
10
+
11
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
+ __name: "bottom-sheet-close-trigger",
13
+ props: {
14
+ asChild: { type: Boolean }
15
+ },
16
+ setup(__props) {
17
+ const bottomSheet = useBottomSheetContext.useBottomSheetContext();
18
+ useForwardExpose.useForwardExpose();
19
+ return (_ctx, _cache) => {
20
+ return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).button, vue.mergeProps(vue.unref(bottomSheet).getCloseTriggerProps(), { "as-child": _ctx.asChild }), {
21
+ default: vue.withCtx(() => [
22
+ vue.renderSlot(_ctx.$slots, "default")
23
+ ]),
24
+ _: 3
25
+ }, 16, ["as-child"]);
26
+ };
27
+ }
28
+ });
29
+
30
+ 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 BottomSheetCloseTriggerBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetCloseTriggerProps extends BottomSheetCloseTriggerBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetCloseTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetCloseTriggerProps> & 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 BottomSheetCloseTriggerBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetCloseTriggerProps extends BottomSheetCloseTriggerBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetCloseTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetCloseTriggerProps> & 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,26 @@
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { ark } from '../factory.js';
3
+ import { useBottomSheetContext } from './use-bottom-sheet-context.js';
4
+ import '@zag-js/core';
5
+ import { useForwardExpose } from '../../utils/use-forward-expose.js';
6
+
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "bottom-sheet-close-trigger",
9
+ props: {
10
+ asChild: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ const bottomSheet = useBottomSheetContext();
14
+ useForwardExpose();
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createBlock(unref(ark).button, mergeProps(unref(bottomSheet).getCloseTriggerProps(), { "as-child": _ctx.asChild }), {
17
+ default: withCtx(() => [
18
+ renderSlot(_ctx.$slots, "default")
19
+ ]),
20
+ _: 3
21
+ }, 16, ["as-child"]);
22
+ };
23
+ }
24
+ });
25
+
26
+ 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 bottomSheetCloseTrigger_vue_vue_type_script_setup_true_lang = require('./bottom-sheet-close-trigger.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = bottomSheetCloseTrigger_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './bottom-sheet-close-trigger.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,44 @@
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 useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
8
+ require('@zag-js/core');
9
+ const useForwardExpose = require('../../utils/use-forward-expose.cjs');
10
+ const usePresenceContext = require('../presence/use-presence-context.cjs');
11
+ const vue$1 = require('@zag-js/vue');
12
+ const createSplitProps = require('../create-split-props.cjs');
13
+
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ __name: "bottom-sheet-content",
16
+ props: {
17
+ asChild: { type: Boolean },
18
+ draggable: { type: Boolean, default: true }
19
+ },
20
+ setup(__props) {
21
+ const props = __props;
22
+ const [contentProps, localProps] = createSplitProps.createSplitProps()(props, ["draggable"]);
23
+ const bottomSheet = useBottomSheetContext.useBottomSheetContext();
24
+ const presence = usePresenceContext.usePresenceContext();
25
+ const mergedProps = vue.computed(
26
+ () => vue$1.mergeProps(
27
+ bottomSheet.value.getContentProps({ draggable: true, ...contentProps }),
28
+ presence.value.presenceProps,
29
+ localProps
30
+ )
31
+ );
32
+ useForwardExpose.useForwardExpose();
33
+ return (_ctx, _cache) => {
34
+ return !vue.unref(presence).unmounted ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 0 }, mergedProps.value, { "as-child": _ctx.asChild }), {
35
+ default: vue.withCtx(() => [
36
+ vue.renderSlot(_ctx.$slots, "default")
37
+ ]),
38
+ _: 3
39
+ }, 16, ["as-child"])) : vue.createCommentVNode("", true);
40
+ };
41
+ }
42
+ });
43
+
44
+ exports.default = _sfc_main;
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PolymorphicProps } from '../factory';
3
+ import { ContentProps } from '@zag-js/bottom-sheet';
4
+ export interface BottomSheetContentBaseProps extends PolymorphicProps, ContentProps {
5
+ }
6
+ export interface BottomSheetContentProps extends BottomSheetContentBaseProps,
7
+ /**
8
+ * @vue-ignore
9
+ */
10
+ Omit<HTMLAttributes, 'draggable'> {
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetContentProps> & Readonly<{}>, {
13
+ draggable: boolean;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
15
+ default?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PolymorphicProps } from '../factory';
3
+ import { ContentProps } from '@zag-js/bottom-sheet';
4
+ export interface BottomSheetContentBaseProps extends PolymorphicProps, ContentProps {
5
+ }
6
+ export interface BottomSheetContentProps extends BottomSheetContentBaseProps,
7
+ /**
8
+ * @vue-ignore
9
+ */
10
+ Omit<HTMLAttributes, 'draggable'> {
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetContentProps> & Readonly<{}>, {
13
+ draggable: boolean;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
15
+ default?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent, computed, createBlock, createCommentVNode, unref, openBlock, mergeProps as mergeProps$1, withCtx, renderSlot } from 'vue';
2
+ import { ark } from '../factory.js';
3
+ import { useBottomSheetContext } from './use-bottom-sheet-context.js';
4
+ import '@zag-js/core';
5
+ import { useForwardExpose } from '../../utils/use-forward-expose.js';
6
+ import { usePresenceContext } from '../presence/use-presence-context.js';
7
+ import { mergeProps } from '@zag-js/vue';
8
+ import { createSplitProps } from '../create-split-props.js';
9
+
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "bottom-sheet-content",
12
+ props: {
13
+ asChild: { type: Boolean },
14
+ draggable: { type: Boolean, default: true }
15
+ },
16
+ setup(__props) {
17
+ const props = __props;
18
+ const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
19
+ const bottomSheet = useBottomSheetContext();
20
+ const presence = usePresenceContext();
21
+ const mergedProps = computed(
22
+ () => mergeProps(
23
+ bottomSheet.value.getContentProps({ draggable: true, ...contentProps }),
24
+ presence.value.presenceProps,
25
+ localProps
26
+ )
27
+ );
28
+ useForwardExpose();
29
+ return (_ctx, _cache) => {
30
+ return !unref(presence).unmounted ? (openBlock(), createBlock(unref(ark).div, mergeProps$1({ key: 0 }, mergedProps.value, { "as-child": _ctx.asChild }), {
31
+ default: withCtx(() => [
32
+ renderSlot(_ctx.$slots, "default")
33
+ ]),
34
+ _: 3
35
+ }, 16, ["as-child"])) : createCommentVNode("", true);
36
+ };
37
+ }
38
+ });
39
+
40
+ 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 bottomSheetContent_vue_vue_type_script_setup_true_lang = require('./bottom-sheet-content.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = bottomSheetContent_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './bottom-sheet-content.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const vue = require('vue');
6
+ const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
7
+
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
+ __name: "bottom-sheet-context",
10
+ setup(__props) {
11
+ const bottomSheet = useBottomSheetContext.useBottomSheetContext();
12
+ return (_ctx, _cache) => {
13
+ return vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(bottomSheet))));
14
+ };
15
+ }
16
+ });
17
+
18
+ exports.default = _sfc_main;
@@ -0,0 +1,17 @@
1
+ import { SlotsType, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { UseBottomSheetContext } from './use-bottom-sheet-context';
3
+ export interface BottomSheetContextProps extends SlotsType<{
4
+ default: UnwrapRef<UseBottomSheetContext>;
5
+ }> {
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
8
+ default(bottomSheet: UnwrapRef<UseBottomSheetContext>): unknown;
9
+ }> & {
10
+ default(bottomSheet: UnwrapRef<UseBottomSheetContext>): unknown;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,17 @@
1
+ import { SlotsType, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { UseBottomSheetContext } from './use-bottom-sheet-context';
3
+ export interface BottomSheetContextProps extends SlotsType<{
4
+ default: UnwrapRef<UseBottomSheetContext>;
5
+ }> {
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
8
+ default(bottomSheet: UnwrapRef<UseBottomSheetContext>): unknown;
9
+ }> & {
10
+ default(bottomSheet: UnwrapRef<UseBottomSheetContext>): unknown;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent, renderSlot, normalizeProps, guardReactiveProps, unref } from 'vue';
2
+ import { useBottomSheetContext } from './use-bottom-sheet-context.js';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "bottom-sheet-context",
6
+ setup(__props) {
7
+ const bottomSheet = useBottomSheetContext();
8
+ return (_ctx, _cache) => {
9
+ return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(bottomSheet))));
10
+ };
11
+ }
12
+ });
13
+
14
+ 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 bottomSheetContext_vue_vue_type_script_setup_true_lang = require('./bottom-sheet-context.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = bottomSheetContext_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './bottom-sheet-context.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,30 @@
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 useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
8
+ require('@zag-js/core');
9
+ const useForwardExpose = require('../../utils/use-forward-expose.cjs');
10
+
11
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
+ __name: "bottom-sheet-grabber-indicator",
13
+ props: {
14
+ asChild: { type: Boolean }
15
+ },
16
+ setup(__props) {
17
+ const bottomSheet = useBottomSheetContext.useBottomSheetContext();
18
+ useForwardExpose.useForwardExpose();
19
+ return (_ctx, _cache) => {
20
+ return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps(vue.unref(bottomSheet).getGrabberIndicatorProps(), { "as-child": _ctx.asChild }), {
21
+ default: vue.withCtx(() => [
22
+ vue.renderSlot(_ctx.$slots, "default")
23
+ ]),
24
+ _: 3
25
+ }, 16, ["as-child"]);
26
+ };
27
+ }
28
+ });
29
+
30
+ 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 BottomSheetGrabberIndicatorBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetGrabberIndicatorProps extends BottomSheetGrabberIndicatorBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetGrabberIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetGrabberIndicatorProps> & 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 BottomSheetGrabberIndicatorBaseProps extends PolymorphicProps {
4
+ }
5
+ export interface BottomSheetGrabberIndicatorProps extends BottomSheetGrabberIndicatorBaseProps,
6
+ /**
7
+ * @vue-ignore
8
+ */
9
+ HTMLAttributes {
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<BottomSheetGrabberIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BottomSheetGrabberIndicatorProps> & 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,26 @@
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { ark } from '../factory.js';
3
+ import { useBottomSheetContext } from './use-bottom-sheet-context.js';
4
+ import '@zag-js/core';
5
+ import { useForwardExpose } from '../../utils/use-forward-expose.js';
6
+
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "bottom-sheet-grabber-indicator",
9
+ props: {
10
+ asChild: { type: Boolean }
11
+ },
12
+ setup(__props) {
13
+ const bottomSheet = useBottomSheetContext();
14
+ useForwardExpose();
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createBlock(unref(ark).div, mergeProps(unref(bottomSheet).getGrabberIndicatorProps(), { "as-child": _ctx.asChild }), {
17
+ default: withCtx(() => [
18
+ renderSlot(_ctx.$slots, "default")
19
+ ]),
20
+ _: 3
21
+ }, 16, ["as-child"]);
22
+ };
23
+ }
24
+ });
25
+
26
+ 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 bottomSheetGrabberIndicator_vue_vue_type_script_setup_true_lang = require('./bottom-sheet-grabber-indicator.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = bottomSheetGrabberIndicator_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './bottom-sheet-grabber-indicator.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };