@sprawlify/vue 0.0.67 → 0.0.72

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 (131) hide show
  1. package/dist/boolean-CpMsIRK4.js +7 -0
  2. package/dist/{collapsible-DQfAISmg.js → collapsible-jX9S7WYj.js} +5 -4
  3. package/dist/{collection-Ba0Aeh5P.js → collection-DGKjEgOz.js} +1 -1
  4. package/dist/components/accordion/index.d.ts +19 -19
  5. package/dist/components/accordion/index.js +8 -7
  6. package/dist/components/angle-slider/index.d.ts +18 -18
  7. package/dist/components/angle-slider/index.js +5 -4
  8. package/dist/components/avatar/index.d.ts +11 -11
  9. package/dist/components/avatar/index.js +5 -4
  10. package/dist/components/bottom-sheet/index.d.ts +22 -22
  11. package/dist/components/bottom-sheet/index.js +8 -7
  12. package/dist/components/carousel/index.d.ts +25 -25
  13. package/dist/components/carousel/index.js +5 -4
  14. package/dist/components/checkbox/index.d.ts +27 -27
  15. package/dist/components/checkbox/index.js +8 -12
  16. package/dist/components/client-only/index.d.ts +2 -2
  17. package/dist/components/clipboard/index.d.ts +17 -17
  18. package/dist/components/clipboard/index.js +5 -4
  19. package/dist/components/collapsible/index.d.ts +16 -16
  20. package/dist/components/collapsible/index.js +5 -4
  21. package/dist/components/collection/index.d.ts +1 -1
  22. package/dist/components/collection/index.js +1 -1
  23. package/dist/components/color-picker/index.d.ts +56 -56
  24. package/dist/components/color-picker/index.js +8 -7
  25. package/dist/components/combobox/index.d.ts +38 -38
  26. package/dist/components/combobox/index.js +9 -8
  27. package/dist/components/date-picker/index.d.ts +47 -47
  28. package/dist/components/date-picker/index.js +7 -6
  29. package/dist/components/dialog/index.d.ts +35 -35
  30. package/dist/components/dialog/index.js +7 -6
  31. package/dist/components/download-trigger/index.d.ts +4 -4
  32. package/dist/components/download-trigger/index.js +4 -3
  33. package/dist/components/editable/index.d.ts +29 -29
  34. package/dist/components/editable/index.js +6 -5
  35. package/dist/components/field/index.d.ts +25 -25
  36. package/dist/components/field/index.js +5 -4
  37. package/dist/components/fieldset/index.d.ts +13 -13
  38. package/dist/components/fieldset/index.js +5 -4
  39. package/dist/components/file-upload/index.d.ts +329 -0
  40. package/dist/components/file-upload/index.js +597 -0
  41. package/dist/components/floating-panel/index.d.ts +325 -0
  42. package/dist/components/floating-panel/index.js +568 -0
  43. package/dist/components/focus-trap/index.d.ts +48 -0
  44. package/dist/components/focus-trap/index.js +96 -0
  45. package/dist/components/format/index.d.ts +40 -0
  46. package/dist/components/format/index.js +148 -0
  47. package/dist/components/frame/index.d.ts +39 -0
  48. package/dist/components/frame/index.js +111 -0
  49. package/dist/components/highlight/index.d.ts +4 -4
  50. package/dist/components/highlight/index.js +1 -1
  51. package/dist/components/hover-card/index.d.ts +200 -0
  52. package/dist/components/hover-card/index.js +335 -0
  53. package/dist/components/image-cropper/index.d.ts +211 -0
  54. package/dist/components/image-cropper/index.js +381 -0
  55. package/dist/components/json-tree-view/index.d.ts +91 -0
  56. package/dist/components/json-tree-view/index.js +490 -0
  57. package/dist/components/listbox/index.d.ts +325 -0
  58. package/dist/components/listbox/index.js +533 -0
  59. package/dist/components/marquee/index.d.ts +268 -0
  60. package/dist/components/marquee/index.js +340 -0
  61. package/dist/components/menu/index.d.ts +55 -56
  62. package/dist/components/menu/index.js +7 -6
  63. package/dist/components/navigation-menu/index.d.ts +272 -0
  64. package/dist/components/navigation-menu/index.js +559 -0
  65. package/dist/components/number-input/index.d.ts +253 -0
  66. package/dist/components/number-input/index.js +427 -0
  67. package/dist/components/pagination/index.d.ts +211 -0
  68. package/dist/components/pagination/index.js +346 -0
  69. package/dist/components/password-input/index.d.ts +213 -0
  70. package/dist/components/password-input/index.js +325 -0
  71. package/dist/components/pin-input/index.d.ts +198 -0
  72. package/dist/components/pin-input/index.js +346 -0
  73. package/dist/components/popover/index.d.ts +318 -0
  74. package/dist/components/popover/index.js +486 -0
  75. package/dist/components/presence/index.d.ts +2 -2
  76. package/dist/components/presence/index.js +4 -3
  77. package/dist/components/progress/index.d.ts +231 -0
  78. package/dist/components/progress/index.js +372 -0
  79. package/dist/components/qr-code/index.d.ts +159 -0
  80. package/dist/components/qr-code/index.js +263 -0
  81. package/dist/components/radio-group/index.d.ts +231 -0
  82. package/dist/components/radio-group/index.js +378 -0
  83. package/dist/components/rating-group/index.d.ts +201 -0
  84. package/dist/components/rating-group/index.js +330 -0
  85. package/dist/components/scroll-area/index.d.ts +171 -0
  86. package/dist/components/scroll-area/index.js +264 -0
  87. package/dist/components/segment-group/index.d.ts +231 -0
  88. package/dist/components/segment-group/index.js +422 -0
  89. package/dist/components/select/index.d.ts +39 -39
  90. package/dist/components/select/index.js +9 -8
  91. package/dist/components/signature-pad/index.d.ts +202 -0
  92. package/dist/components/signature-pad/index.js +345 -0
  93. package/dist/components/slider/index.d.ts +300 -0
  94. package/dist/components/slider/index.js +511 -0
  95. package/dist/components/splitter/index.d.ts +162 -0
  96. package/dist/components/splitter/index.js +280 -0
  97. package/dist/components/steps/index.d.ts +290 -0
  98. package/dist/components/steps/index.js +469 -0
  99. package/dist/components/switch/index.d.ts +179 -0
  100. package/dist/components/switch/index.js +290 -0
  101. package/dist/components/tabs/index.d.ts +181 -0
  102. package/dist/components/tabs/index.js +335 -0
  103. package/dist/components/tags-input/index.d.ts +339 -0
  104. package/dist/components/tags-input/index.js +569 -0
  105. package/dist/components/timer/index.d.ts +177 -0
  106. package/dist/components/timer/index.js +295 -0
  107. package/dist/components/tree-view/index.d.ts +6 -0
  108. package/dist/components/tree-view/index.js +11 -0
  109. package/dist/create-context-Ds1GbsVc.js +16 -0
  110. package/dist/{field-DnHnX3Tf.js → field-CtPR24u6.js} +4 -3
  111. package/dist/{fieldset-DzhN7Zrg.js → fieldset-D5SznrKY.js} +4 -3
  112. package/dist/{index-CDQghZtv.d.ts → index-B_UiXhk3.d.ts} +11 -11
  113. package/dist/index-DwWFWpls.d.ts +447 -0
  114. package/dist/{index-BBHms9-0.d.ts → index-xb1q4_02.d.ts} +7 -7
  115. package/dist/index.d.ts +3 -3
  116. package/dist/index.js +3 -2
  117. package/dist/{presence-CvUnYMZQ.js → presence-B4-UhJY9.js} +3 -2
  118. package/dist/{providers-B2CNPFg1.js → providers-DNBWT-O_.js} +1 -1
  119. package/dist/tree-view-Ctpu5RjE.js +737 -0
  120. package/dist/{use-forward-expose-4p5AGAI3.js → use-forward-expose-CCAmHTUB.js} +2 -15
  121. package/dist/{use-render-strategy-BkxoN6ll.js → use-render-strategy-DA33j31C.js} +1 -1
  122. package/package.json +126 -2
  123. /package/dist/{clean-props-BDv2zb5M.js → clean-props-D2R4tz5e.js} +0 -0
  124. /package/dist/{create-split-props-YZ3qgXe_.js → create-split-props-0RD5_O4P.js} +0 -0
  125. /package/dist/{factory-D_ge_w76.d.ts → factory-B5zr8_kk.d.ts} +0 -0
  126. /package/dist/{factory-BH3WrWd2.js → factory-Co08Aw8u.js} +0 -0
  127. /package/dist/{index-B66Om_3U.d.ts → index-CCRVRFFQ.d.ts} +0 -0
  128. /package/dist/{index-DqRk-Yea.d.ts → index-DhFoJHfp.d.ts} +0 -0
  129. /package/dist/{presence-types-Bv1E60Cw.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
  130. /package/dist/{types-Bj-dS2Hc.d.ts → types-DIEO6uP3.d.ts} +0 -0
  131. /package/dist/{use-render-strategy-CHj_pCfT.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
@@ -0,0 +1,177 @@
1
+ import { t as PolymorphicProps } from "../../factory-B5zr8_kk.js";
2
+ import { a as Optional, r as EmitFn$1 } from "../../types-DIEO6uP3.js";
3
+ import { r as PropTypes } from "../../index-CCRVRFFQ.js";
4
+ import * as vue1724 from "vue";
5
+ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
6
+ import * as timer from "@sprawlify/primitives/machines/timer";
7
+ import { ActionTriggerProps, ItemProps, TickDetails, anatomy as timerAnatomy } from "@sprawlify/primitives/machines/timer";
8
+
9
+ //#region src/components/timer/timer-action-trigger.vue.d.ts
10
+ interface TimerActionTriggerBaseProps extends ActionTriggerProps, PolymorphicProps {}
11
+ interface TimerActionTriggerProps extends TimerActionTriggerBaseProps,
12
+ /**
13
+ * @vue-ignore
14
+ */
15
+ ButtonHTMLAttributes {}
16
+ declare const _default: typeof __VLS_export$7;
17
+ declare const __VLS_export$7: __VLS_WithSlots$6<vue1724.DefineComponent<TimerActionTriggerProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerActionTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
18
+ default?: (props: {}) => any;
19
+ }>;
20
+ type __VLS_WithSlots$6<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ //#endregion
26
+ //#region src/components/timer/timer-types.d.ts
27
+ interface RootProps {
28
+ autoStart?: boolean;
29
+ countdown?: boolean;
30
+ id?: string;
31
+ ids?: Partial<{
32
+ root: string;
33
+ area: string;
34
+ }>;
35
+ interval?: number;
36
+ startMs?: number;
37
+ targetMs?: number;
38
+ }
39
+ type RootEmits = {
40
+ complete: [];
41
+ tick: [details: timer.TickDetails];
42
+ };
43
+ //#endregion
44
+ //#region src/components/timer/use-timer.d.ts
45
+ interface UseTimerProps extends Optional<Omit<timer.Props, 'dir' | 'getRootNode'>, 'id'> {}
46
+ interface UseTimerReturn extends ComputedRef<timer.Api<PropTypes>> {}
47
+ declare const useTimer: (props: MaybeRef<UseTimerProps>, emit?: EmitFn$1<RootEmits>) => UseTimerReturn;
48
+ //#endregion
49
+ //#region src/components/timer/use-timer-context.d.ts
50
+ interface UseTimerContext extends UseTimerReturn {}
51
+ //#endregion
52
+ //#region src/components/timer/timer-context.vue.d.ts
53
+ interface TimerContextProps extends SlotsType<{
54
+ default: UnwrapRef<UseTimerContext>;
55
+ }> {}
56
+ declare const _default$2: typeof __VLS_export$6;
57
+ declare const __VLS_export$6: __VLS_WithSlots$5<vue1724.DefineComponent<{}, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, true, {}, any>, {
58
+ default(timer: UnwrapRef<UseTimerContext>): unknown;
59
+ }>;
60
+ type __VLS_WithSlots$5<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
65
+ //#endregion
66
+ //#region src/components/timer/timer-item.vue.d.ts
67
+ interface TimerItemBaseProps extends ItemProps, PolymorphicProps {}
68
+ interface TimerItemProps extends TimerItemBaseProps,
69
+ /**
70
+ * @vue-ignore
71
+ */
72
+ HTMLAttributes {}
73
+ declare const _default$4: typeof __VLS_export$5;
74
+ declare const __VLS_export$5: vue1724.DefineComponent<TimerItemProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>;
75
+ //#endregion
76
+ //#region src/components/timer/timer-area.vue.d.ts
77
+ interface TimerAreaBaseProps extends PolymorphicProps {}
78
+ interface TimerAreaProps extends TimerAreaBaseProps,
79
+ /**
80
+ * @vue-ignore
81
+ */
82
+ HTMLAttributes {}
83
+ declare const _default$1: typeof __VLS_export$4;
84
+ declare const __VLS_export$4: __VLS_WithSlots$4<vue1724.DefineComponent<TimerAreaProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerAreaProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
85
+ default?: (props: {}) => any;
86
+ }>;
87
+ type __VLS_WithSlots$4<T, S> = T & {
88
+ new (): {
89
+ $slots: S;
90
+ };
91
+ };
92
+ //#endregion
93
+ //#region src/components/timer/timer-control.vue.d.ts
94
+ interface TimerControlBaseProps extends PolymorphicProps {}
95
+ interface TimerControlProps extends TimerControlBaseProps,
96
+ /**
97
+ * @vue-ignore
98
+ */
99
+ HTMLAttributes {}
100
+ declare const _default$3: typeof __VLS_export$3;
101
+ declare const __VLS_export$3: __VLS_WithSlots$3<vue1724.DefineComponent<TimerControlProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
102
+ default?: (props: {}) => any;
103
+ }>;
104
+ type __VLS_WithSlots$3<T, S> = T & {
105
+ new (): {
106
+ $slots: S;
107
+ };
108
+ };
109
+ //#endregion
110
+ //#region src/components/timer/timer-root-provider.vue.d.ts
111
+ interface RootProviderProps {
112
+ value: UnwrapRef<UseTimerReturn>;
113
+ }
114
+ interface TimerRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
115
+ interface TimerRootProviderProps extends TimerRootProviderBaseProps,
116
+ /**
117
+ * @vue-ignore
118
+ */
119
+ HTMLAttributes {}
120
+ declare const _default$6: typeof __VLS_export$2;
121
+ declare const __VLS_export$2: __VLS_WithSlots$2<vue1724.DefineComponent<TimerRootProviderProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
122
+ default?: (props: {}) => any;
123
+ }>;
124
+ type __VLS_WithSlots$2<T, S> = T & {
125
+ new (): {
126
+ $slots: S;
127
+ };
128
+ };
129
+ //#endregion
130
+ //#region src/components/timer/timer-root.vue.d.ts
131
+ interface TimerRootBaseProps extends RootProps, PolymorphicProps {}
132
+ interface TimerRootProps extends TimerRootBaseProps,
133
+ /**
134
+ * @vue-ignore
135
+ */
136
+ HTMLAttributes {}
137
+ interface TimerRootEmits extends RootEmits {}
138
+ declare const _default$5: typeof __VLS_export$1;
139
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue1724.DefineComponent<TimerRootProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {
140
+ complete: () => any;
141
+ tick: (details: timer.TickDetails) => any;
142
+ }, string, vue1724.PublicProps, Readonly<TimerRootProps> & Readonly<{
143
+ onComplete?: (() => any) | undefined;
144
+ onTick?: ((details: timer.TickDetails) => any) | undefined;
145
+ }>, {
146
+ autoStart: boolean;
147
+ countdown: boolean;
148
+ }, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
149
+ default?: (props: {}) => any;
150
+ }>;
151
+ type __VLS_WithSlots$1<T, S> = T & {
152
+ new (): {
153
+ $slots: S;
154
+ };
155
+ };
156
+ //#endregion
157
+ //#region src/components/timer/timer-separator.vue.d.ts
158
+ interface TimerSeparatorBaseProps extends PolymorphicProps {}
159
+ interface TimerSeparatorProps extends TimerSeparatorBaseProps,
160
+ /**
161
+ * @vue-ignore
162
+ */
163
+ HTMLAttributes {}
164
+ declare const _default$7: typeof __VLS_export;
165
+ declare const __VLS_export: __VLS_WithSlots<vue1724.DefineComponent<TimerSeparatorProps, {}, {}, {}, {}, vue1724.ComponentOptionsMixin, vue1724.ComponentOptionsMixin, {}, string, vue1724.PublicProps, Readonly<TimerSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1724.ComponentProvideOptions, false, {}, any>, {
166
+ default?: (props: {}) => any;
167
+ }>;
168
+ type __VLS_WithSlots<T, S> = T & {
169
+ new (): {
170
+ $slots: S;
171
+ };
172
+ };
173
+ declare namespace timer_d_exports {
174
+ export { _default as ActionTrigger, TimerActionTriggerBaseProps as ActionTriggerBaseProps, TimerActionTriggerProps as ActionTriggerProps, _default$1 as Area, TimerAreaBaseProps as AreaBaseProps, TimerAreaProps as AreaProps, _default$2 as Context, TimerContextProps as ContextProps, _default$3 as Control, TimerControlBaseProps as ControlBaseProps, TimerControlProps as ControlProps, _default$4 as Item, TimerItemBaseProps as ItemBaseProps, TimerItemProps as ItemProps, _default$5 as Root, TimerRootBaseProps as RootBaseProps, TimerRootEmits as RootEmits, TimerRootProps as RootProps, _default$6 as RootProvider, TimerRootProviderBaseProps as RootProviderBaseProps, TimerRootProviderProps as RootProviderProps, _default$7 as Separator, TimerSeparatorBaseProps as SeparatorBaseProps, TimerSeparatorProps as SeparatorProps, TickDetails };
175
+ }
176
+ //#endregion
177
+ export { timer_d_exports as Timer, _default as TimerActionTrigger, type TimerActionTriggerBaseProps, type TimerActionTriggerProps, _default$1 as TimerArea, type TimerAreaBaseProps, type TimerAreaProps, _default$2 as TimerContext, type TimerContextProps, _default$3 as TimerControl, type TimerControlBaseProps, type TimerControlProps, _default$4 as TimerItem, type TimerItemBaseProps, type TimerItemProps, _default$5 as TimerRoot, type TimerRootBaseProps, type TimerRootEmits, type TimerRootProps, _default$6 as TimerRootProvider, type TimerRootProviderBaseProps, type TimerRootProviderProps, _default$7 as TimerSeparator, type TimerSeparatorBaseProps, type TimerSeparatorProps, type UseTimerContext, type UseTimerProps, type UseTimerReturn, timerAnatomy, useTimer, useTimerContext };
@@ -0,0 +1,295 @@
1
+ import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
2
+ import { n as useMachine, r as normalizeProps$1 } from "../../core-DNndr38p.js";
3
+ import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "../../providers-DNBWT-O_.js";
4
+ import { t as createContext } from "../../create-context-Ds1GbsVc.js";
5
+ import { t as useForwardExpose } from "../../use-forward-expose-CCAmHTUB.js";
6
+ import { t as sprawlify } from "../../factory-Co08Aw8u.js";
7
+ import { t as cleanProps } from "../../clean-props-D2R4tz5e.js";
8
+ import { computed, createBlock, createTextVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, toValue, unref, useId, withCtx } from "vue";
9
+ import * as timer from "@sprawlify/primitives/machines/timer";
10
+ import { anatomy as timerAnatomy } from "@sprawlify/primitives/machines/timer";
11
+
12
+ //#region src/components/timer/use-timer-context.ts
13
+ const [TimerProvider, useTimerContext] = createContext("TimerContext");
14
+
15
+ //#endregion
16
+ //#region src/components/timer/timer-action-trigger.vue?vue&type=script&setup=true&lang.ts
17
+ var timer_action_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
18
+ __name: "timer-action-trigger",
19
+ props: {
20
+ action: {
21
+ type: String,
22
+ required: true
23
+ },
24
+ asChild: {
25
+ type: Boolean,
26
+ required: false
27
+ }
28
+ },
29
+ setup(__props) {
30
+ const props = __props;
31
+ const timer = useTimerContext();
32
+ useForwardExpose();
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(timer).getActionTriggerProps(props), { "as-child": __props.asChild }), {
35
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
36
+ _: 3
37
+ }, 16, ["as-child"]);
38
+ };
39
+ }
40
+ });
41
+
42
+ //#endregion
43
+ //#region src/components/timer/timer-action-trigger.vue
44
+ var timer_action_trigger_default = timer_action_trigger_vue_vue_type_script_setup_true_lang_default;
45
+
46
+ //#endregion
47
+ //#region src/components/timer/timer-context.vue?vue&type=script&setup=true&lang.ts
48
+ var timer_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
49
+ __name: "timer-context",
50
+ setup(__props) {
51
+ const timer = useTimerContext();
52
+ return (_ctx, _cache) => {
53
+ return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(timer))));
54
+ };
55
+ }
56
+ });
57
+
58
+ //#endregion
59
+ //#region src/components/timer/timer-context.vue
60
+ var timer_context_default = timer_context_vue_vue_type_script_setup_true_lang_default;
61
+
62
+ //#endregion
63
+ //#region src/components/timer/timer-item.vue?vue&type=script&setup=true&lang.ts
64
+ var timer_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
65
+ __name: "timer-item",
66
+ props: {
67
+ type: {
68
+ type: String,
69
+ required: true
70
+ },
71
+ asChild: {
72
+ type: Boolean,
73
+ required: false
74
+ }
75
+ },
76
+ setup(__props) {
77
+ const props = __props;
78
+ const timer = useTimerContext();
79
+ useForwardExpose();
80
+ return (_ctx, _cache) => {
81
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getItemProps(props), { "as-child": __props.asChild }), {
82
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(timer).formattedTime[props.type]), 1)]),
83
+ _: 1
84
+ }, 16, ["as-child"]);
85
+ };
86
+ }
87
+ });
88
+
89
+ //#endregion
90
+ //#region src/components/timer/timer-item.vue
91
+ var timer_item_default = timer_item_vue_vue_type_script_setup_true_lang_default;
92
+
93
+ //#endregion
94
+ //#region src/components/timer/timer-area.vue?vue&type=script&setup=true&lang.ts
95
+ var timer_area_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
96
+ __name: "timer-area",
97
+ props: { asChild: {
98
+ type: Boolean,
99
+ required: false
100
+ } },
101
+ setup(__props) {
102
+ const timer = useTimerContext();
103
+ useForwardExpose();
104
+ return (_ctx, _cache) => {
105
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getAreaProps(), { "as-child": __props.asChild }), {
106
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
107
+ _: 3
108
+ }, 16, ["as-child"]);
109
+ };
110
+ }
111
+ });
112
+
113
+ //#endregion
114
+ //#region src/components/timer/timer-area.vue
115
+ var timer_area_default = timer_area_vue_vue_type_script_setup_true_lang_default;
116
+
117
+ //#endregion
118
+ //#region src/components/timer/timer-control.vue?vue&type=script&setup=true&lang.ts
119
+ var timer_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
120
+ __name: "timer-control",
121
+ props: { asChild: {
122
+ type: Boolean,
123
+ required: false
124
+ } },
125
+ setup(__props) {
126
+ const timer = useTimerContext();
127
+ useForwardExpose();
128
+ return (_ctx, _cache) => {
129
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getControlProps(), { "as-child": __props.asChild }), {
130
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
131
+ _: 3
132
+ }, 16, ["as-child"]);
133
+ };
134
+ }
135
+ });
136
+
137
+ //#endregion
138
+ //#region src/components/timer/timer-control.vue
139
+ var timer_control_default = timer_control_vue_vue_type_script_setup_true_lang_default;
140
+
141
+ //#endregion
142
+ //#region src/components/timer/timer-root-provider.vue?vue&type=script&setup=true&lang.ts
143
+ var timer_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
144
+ __name: "timer-root-provider",
145
+ props: {
146
+ value: {
147
+ type: null,
148
+ required: true
149
+ },
150
+ asChild: {
151
+ type: Boolean,
152
+ required: false
153
+ }
154
+ },
155
+ setup(__props) {
156
+ const props = __props;
157
+ const timer = computed(() => props.value);
158
+ TimerProvider(timer);
159
+ useForwardExpose();
160
+ return (_ctx, _cache) => {
161
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(timer.value.getRootProps(), { "as-child": __props.asChild }), {
162
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
163
+ _: 3
164
+ }, 16, ["as-child"]);
165
+ };
166
+ }
167
+ });
168
+
169
+ //#endregion
170
+ //#region src/components/timer/timer-root-provider.vue
171
+ var timer_root_provider_default = timer_root_provider_vue_vue_type_script_setup_true_lang_default;
172
+
173
+ //#endregion
174
+ //#region src/components/timer/use-timer.ts
175
+ const useTimer = (props, emit) => {
176
+ const id = useId();
177
+ const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
178
+ const context = computed(() => {
179
+ const localProps = toValue(props);
180
+ return {
181
+ id,
182
+ getRootNode: env?.value.getRootNode,
183
+ ...cleanProps(localProps),
184
+ onComplete: () => {
185
+ emit?.("complete");
186
+ localProps.onComplete?.();
187
+ },
188
+ onTick: (details) => {
189
+ emit?.("tick", details);
190
+ localProps.onTick?.(details);
191
+ }
192
+ };
193
+ });
194
+ const service = useMachine(timer.machine, context);
195
+ return computed(() => timer.connect(service, normalizeProps$1));
196
+ };
197
+
198
+ //#endregion
199
+ //#region src/components/timer/timer-root.vue?vue&type=script&setup=true&lang.ts
200
+ var timer_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
201
+ __name: "timer-root",
202
+ props: /* @__PURE__ */ mergeDefaults({
203
+ autoStart: {
204
+ type: Boolean,
205
+ required: false
206
+ },
207
+ countdown: {
208
+ type: Boolean,
209
+ required: false
210
+ },
211
+ id: {
212
+ type: String,
213
+ required: false
214
+ },
215
+ ids: {
216
+ type: Object,
217
+ required: false
218
+ },
219
+ interval: {
220
+ type: Number,
221
+ required: false
222
+ },
223
+ startMs: {
224
+ type: Number,
225
+ required: false
226
+ },
227
+ targetMs: {
228
+ type: Number,
229
+ required: false
230
+ },
231
+ asChild: {
232
+ type: Boolean,
233
+ required: false
234
+ }
235
+ }, {
236
+ autoStart: void 0,
237
+ countdown: void 0
238
+ }),
239
+ emits: ["complete", "tick"],
240
+ setup(__props, { emit: __emit }) {
241
+ const timer = useTimer(__props, __emit);
242
+ TimerProvider(timer);
243
+ useForwardExpose();
244
+ return (_ctx, _cache) => {
245
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getRootProps(), { "as-child": __props.asChild }), {
246
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
247
+ _: 3
248
+ }, 16, ["as-child"]);
249
+ };
250
+ }
251
+ });
252
+
253
+ //#endregion
254
+ //#region src/components/timer/timer-root.vue
255
+ var timer_root_default = timer_root_vue_vue_type_script_setup_true_lang_default;
256
+
257
+ //#endregion
258
+ //#region src/components/timer/timer-separator.vue?vue&type=script&setup=true&lang.ts
259
+ var timer_separator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
260
+ __name: "timer-separator",
261
+ props: { asChild: {
262
+ type: Boolean,
263
+ required: false
264
+ } },
265
+ setup(__props) {
266
+ const timer = useTimerContext();
267
+ useForwardExpose();
268
+ return (_ctx, _cache) => {
269
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(timer).getSeparatorProps(), { "as-child": __props.asChild }), {
270
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
271
+ _: 3
272
+ }, 16, ["as-child"]);
273
+ };
274
+ }
275
+ });
276
+
277
+ //#endregion
278
+ //#region src/components/timer/timer-separator.vue
279
+ var timer_separator_default = timer_separator_vue_vue_type_script_setup_true_lang_default;
280
+
281
+ //#endregion
282
+ //#region src/components/timer/timer.ts
283
+ var timer_exports = /* @__PURE__ */ __exportAll({
284
+ ActionTrigger: () => timer_action_trigger_default,
285
+ Area: () => timer_area_default,
286
+ Context: () => timer_context_default,
287
+ Control: () => timer_control_default,
288
+ Item: () => timer_item_default,
289
+ Root: () => timer_root_default,
290
+ RootProvider: () => timer_root_provider_default,
291
+ Separator: () => timer_separator_default
292
+ });
293
+
294
+ //#endregion
295
+ export { timer_exports as Timer, timer_action_trigger_default as TimerActionTrigger, timer_area_default as TimerArea, timer_context_default as TimerContext, timer_control_default as TimerControl, timer_item_default as TimerItem, timer_root_default as TimerRoot, timer_root_provider_default as TimerRootProvider, timer_separator_default as TimerSeparator, timerAnatomy, useTimer, useTimerContext };
@@ -0,0 +1,6 @@
1
+ import "../../factory-B5zr8_kk.js";
2
+ import "../../index-CCRVRFFQ.js";
3
+ import "../../use-render-strategy-U5NxU252.js";
4
+ import { f as TreeCollection, g as createTreeCollection, h as createFileTreeCollection, m as TreeNode } from "../../index-DhFoJHfp.js";
5
+ import { $ as _default$9, A as _default$14, B as TreeViewNodeCheckboxProps, C as TreeViewRootProviderComponent, Ct as TreeViewBranchControlProps, D as TreeViewNodeProviderProps, Dt as _default$1, E as TreeViewNodeProviderBaseProps, Et as TreeViewBranchContentProps, F as _default$16, G as TreeViewItemBaseProps, H as TreeViewLabelBaseProps, I as TreeViewNodeCheckboxIndicatorBaseProps, J as TreeViewItemTextBaseProps, K as TreeViewItemProps, L as TreeViewNodeCheckboxIndicatorProps, M as useTreeViewNodeContext, N as TreeViewNodeRenameInputBaseProps, O as _default$15, P as TreeViewNodeRenameInputProps, Q as TreeViewItemIndicatorProps, R as _default$13, S as TreeViewRootProviderBaseProps, St as TreeViewBranchControlBaseProps, T as _default$18, Tt as TreeViewBranchContentBaseProps, U as TreeViewLabelProps, V as _default$12, W as _default$11, X as _default$10, Y as TreeViewItemTextProps, Z as TreeViewItemIndicatorBaseProps, _ as TreeViewRootBaseProps, _t as TreeViewBranchIndicatorProps, a as TreeViewLoadChildrenDetails, at as UseTreeViewReturn, b as TreeViewRootProps, bt as TreeViewBranchIndentGuideProps, c as TreeViewNodeState, ct as TreeViewBranchProps, d as TreeViewSelectionChangeDetails, dt as TreeViewBranchTriggerProps, et as TreeViewContextProps, f as tree_view_d_exports, ft as _default$6, g as _default$19, gt as TreeViewBranchIndicatorBaseProps, h as TreeViewTreeProps, ht as _default$5, i as TreeViewLoadChildrenCompleteDetails, it as UseTreeViewProps, j as UseTreeViewNodeContext, k as TreeViewNodeContextProps, l as TreeViewRenameCompleteDetails, lt as _default, m as TreeViewTreeBaseProps, mt as TreeViewBranchTextProps, n as TreeViewExpandedChangeDetails, nt as UseTreeViewContext, o as TreeViewLoadChildrenErrorDetails, ot as useTreeView, p as treeViewAnatomy, pt as TreeViewBranchTextBaseProps, q as _default$8, r as TreeViewFocusChangeDetails, rt as useTreeViewContext, s as TreeViewNodeProps, st as TreeViewBranchBaseProps, t as TreeViewCheckedChangeDetails, tt as _default$7, u as TreeViewRenameStartDetails, ut as TreeViewBranchTriggerBaseProps, v as TreeViewRootComponent, vt as _default$4, w as TreeViewRootProviderProps, wt as _default$2, x as _default$17, xt as _default$3, y as TreeViewRootComponentProps, yt as TreeViewBranchIndentGuideBaseProps, z as TreeViewNodeCheckboxBaseProps } from "../../index-DwWFWpls.js";
6
+ export { TreeCollection, TreeNode, tree_view_d_exports as TreeView, _default as TreeViewBranch, TreeViewBranchBaseProps, _default$1 as TreeViewBranchContent, TreeViewBranchContentBaseProps, TreeViewBranchContentProps, _default$2 as TreeViewBranchControl, TreeViewBranchControlBaseProps, TreeViewBranchControlProps, _default$3 as TreeViewBranchIndentGuide, TreeViewBranchIndentGuideBaseProps, TreeViewBranchIndentGuideProps, _default$4 as TreeViewBranchIndicator, TreeViewBranchIndicatorBaseProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, _default$5 as TreeViewBranchText, TreeViewBranchTextBaseProps, TreeViewBranchTextProps, _default$6 as TreeViewBranchTrigger, TreeViewBranchTriggerBaseProps, TreeViewBranchTriggerProps, TreeViewCheckedChangeDetails, _default$7 as TreeViewContext, TreeViewContextProps, TreeViewExpandedChangeDetails, TreeViewFocusChangeDetails, _default$8 as TreeViewItem, TreeViewItemBaseProps, _default$9 as TreeViewItemIndicator, TreeViewItemIndicatorBaseProps, TreeViewItemIndicatorProps, TreeViewItemProps, _default$10 as TreeViewItemText, TreeViewItemTextBaseProps, TreeViewItemTextProps, _default$11 as TreeViewLabel, TreeViewLabelBaseProps, TreeViewLabelProps, TreeViewLoadChildrenCompleteDetails, TreeViewLoadChildrenDetails, TreeViewLoadChildrenErrorDetails, _default$12 as TreeViewNodeCheckbox, TreeViewNodeCheckboxBaseProps, _default$13 as TreeViewNodeCheckboxIndicator, TreeViewNodeCheckboxIndicatorBaseProps, TreeViewNodeCheckboxIndicatorProps, TreeViewNodeCheckboxProps, _default$14 as TreeViewNodeContext, TreeViewNodeContextProps, TreeViewNodeProps, _default$15 as TreeViewNodeProvider, TreeViewNodeProviderBaseProps, TreeViewNodeProviderProps, _default$16 as TreeViewNodeRenameInput, TreeViewNodeRenameInputBaseProps, TreeViewNodeRenameInputProps, TreeViewNodeState, TreeViewRenameCompleteDetails, TreeViewRenameStartDetails, _default$17 as TreeViewRoot, TreeViewRootBaseProps, TreeViewRootComponent, TreeViewRootComponentProps, TreeViewRootProps, _default$18 as TreeViewRootProvider, TreeViewRootProviderBaseProps, TreeViewRootProviderComponent, TreeViewRootProviderProps, TreeViewSelectionChangeDetails, _default$19 as TreeViewTree, TreeViewTreeBaseProps, TreeViewTreeProps, UseTreeViewContext, UseTreeViewNodeContext, UseTreeViewProps, UseTreeViewReturn, createFileTreeCollection, createTreeCollection, treeViewAnatomy, useTreeView, useTreeViewContext, useTreeViewNodeContext };
@@ -0,0 +1,11 @@
1
+ import "../../core-DNndr38p.js";
2
+ import "../../providers-DNBWT-O_.js";
3
+ import "../../create-context-Ds1GbsVc.js";
4
+ import "../../use-forward-expose-CCAmHTUB.js";
5
+ import "../../factory-Co08Aw8u.js";
6
+ import "../../collapsible-jX9S7WYj.js";
7
+ import "../../use-render-strategy-DA33j31C.js";
8
+ import { a as createTreeCollection, i as createFileTreeCollection } from "../../collection-DGKjEgOz.js";
9
+ import { C as tree_view_branch_control_default, S as tree_view_branch_indent_guide_default, T as useTreeViewContext, _ as tree_view_branch_default, a as useTreeView, b as tree_view_branch_text_default, c as tree_view_node_context_default, d as tree_view_node_checkbox_default, f as tree_view_label_default, g as tree_view_context_default, h as tree_view_item_indicator_default, i as tree_view_root_default, l as tree_view_node_rename_input_default, m as tree_view_item_text_default, n as treeViewAnatomy, o as tree_view_root_provider_default, p as tree_view_item_default, r as tree_view_tree_default, s as tree_view_node_provider_default, t as tree_view_exports, u as tree_view_node_checkbox_indicator_default, v as useTreeViewNodeContext, w as tree_view_branch_content_default, x as tree_view_branch_indicator_default, y as tree_view_branch_trigger_default } from "../../tree-view-Ctpu5RjE.js";
10
+
11
+ export { tree_view_exports as TreeView, tree_view_branch_default as TreeViewBranch, tree_view_branch_content_default as TreeViewBranchContent, tree_view_branch_control_default as TreeViewBranchControl, tree_view_branch_indent_guide_default as TreeViewBranchIndentGuide, tree_view_branch_indicator_default as TreeViewBranchIndicator, tree_view_branch_text_default as TreeViewBranchText, tree_view_branch_trigger_default as TreeViewBranchTrigger, tree_view_context_default as TreeViewContext, tree_view_item_default as TreeViewItem, tree_view_item_indicator_default as TreeViewItemIndicator, tree_view_item_text_default as TreeViewItemText, tree_view_label_default as TreeViewLabel, tree_view_node_checkbox_default as TreeViewNodeCheckbox, tree_view_node_checkbox_indicator_default as TreeViewNodeCheckboxIndicator, tree_view_node_context_default as TreeViewNodeContext, tree_view_node_provider_default as TreeViewNodeProvider, tree_view_node_rename_input_default as TreeViewNodeRenameInput, tree_view_root_default as TreeViewRoot, tree_view_root_provider_default as TreeViewRootProvider, tree_view_tree_default as TreeViewTree, createFileTreeCollection, createTreeCollection, treeViewAnatomy, useTreeView, useTreeViewContext, useTreeViewNodeContext };
@@ -0,0 +1,16 @@
1
+ import { inject, provide } from "vue";
2
+
3
+ //#region src/utils/create-context.ts
4
+ const createContext = (id) => {
5
+ const contextId = Symbol(id);
6
+ const provider = (value) => provide(contextId, value);
7
+ const consumer = (fallback) => inject(contextId, fallback);
8
+ return [
9
+ provider,
10
+ consumer,
11
+ contextId
12
+ ];
13
+ };
14
+
15
+ //#endregion
16
+ export { createContext as t };
@@ -1,7 +1,8 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "./providers-B2CNPFg1.js";
3
- import { n as unrefElement, r as createContext, t as useForwardExpose } from "./use-forward-expose-4p5AGAI3.js";
4
- import { t as sprawlify } from "./factory-BH3WrWd2.js";
2
+ import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "./providers-DNBWT-O_.js";
3
+ import { t as createContext } from "./create-context-Ds1GbsVc.js";
4
+ import { n as unrefElement, t as useForwardExpose } from "./use-forward-expose-CCAmHTUB.js";
5
+ import { t as sprawlify } from "./factory-Co08Aw8u.js";
5
6
  import { computed, createBlock, createCommentVNode, createTextVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toValue, unref, useId, withCtx } from "vue";
6
7
  import { ariaAttr, dataAttr } from "@sprawlify/primitives/dom-query";
7
8
  import { createAnatomy } from "@sprawlify/primitives/anatomy";
@@ -1,7 +1,8 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "./providers-B2CNPFg1.js";
3
- import { n as unrefElement, r as createContext, t as useForwardExpose } from "./use-forward-expose-4p5AGAI3.js";
4
- import { t as sprawlify } from "./factory-BH3WrWd2.js";
2
+ import { c as useEnvironmentContext, s as DEFAULT_ENVIRONMENT } from "./providers-DNBWT-O_.js";
3
+ import { t as createContext } from "./create-context-Ds1GbsVc.js";
4
+ import { n as unrefElement, t as useForwardExpose } from "./use-forward-expose-CCAmHTUB.js";
5
+ import { t as sprawlify } from "./factory-Co08Aw8u.js";
5
6
  import { computed, createBlock, createCommentVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toValue, unref, useId, withCtx } from "vue";
6
7
  import { dataAttr } from "@sprawlify/primitives/dom-query";
7
8
  import { createAnatomy } from "@sprawlify/primitives/anatomy";
@@ -1,7 +1,7 @@
1
- import { t as PolymorphicProps } from "./factory-D_ge_w76.js";
2
- import { n as RootProps, t as RootEmits } from "./presence-types-Bv1E60Cw.js";
3
- import { a as Optional, r as EmitFn$1 } from "./types-Bj-dS2Hc.js";
4
- import * as vue718 from "vue";
1
+ import { t as PolymorphicProps } from "./factory-B5zr8_kk.js";
2
+ import { n as RootProps, t as RootEmits } from "./presence-types-BJRr8tqd.js";
3
+ import { a as Optional, r as EmitFn$1 } from "./types-DIEO6uP3.js";
4
+ import * as vue5 from "vue";
5
5
  import { HTMLAttributes, MaybeRef } from "vue";
6
6
  import * as presence from "@sprawlify/primitives/machines/presence";
7
7
 
@@ -14,17 +14,17 @@ interface PresenceProps extends PresenceBaseProps,
14
14
  HTMLAttributes {}
15
15
  interface PresenceEmits extends RootEmits {}
16
16
  declare const _default: typeof __VLS_export;
17
- declare const __VLS_export: __VLS_WithSlots<vue718.DefineComponent<PresenceProps, {}, {}, {}, {}, vue718.ComponentOptionsMixin, vue718.ComponentOptionsMixin, {
17
+ declare const __VLS_export: __VLS_WithSlots<vue5.DefineComponent<PresenceProps, {}, {}, {}, {}, vue5.ComponentOptionsMixin, vue5.ComponentOptionsMixin, {
18
18
  exitComplete: () => any;
19
- }, string, vue718.PublicProps, Readonly<PresenceProps> & Readonly<{
19
+ }, string, vue5.PublicProps, Readonly<PresenceProps> & Readonly<{
20
20
  onExitComplete?: (() => any) | undefined;
21
21
  }>, {
22
- lazyMount: boolean;
23
- unmountOnExit: boolean;
24
22
  present: boolean;
25
23
  immediate: boolean;
24
+ lazyMount: boolean;
26
25
  skipAnimationOnMount: boolean;
27
- }, {}, {}, {}, string, vue718.ComponentProvideOptions, false, {}, any>, {
26
+ unmountOnExit: boolean;
27
+ }, {}, {}, {}, string, vue5.ComponentProvideOptions, false, {}, any>, {
28
28
  default?: (props: {}) => any;
29
29
  }>;
30
30
  type __VLS_WithSlots<T, S> = T & {
@@ -40,11 +40,11 @@ interface UsePresenceProps extends Optional<presence.Props, 'present'> {
40
40
  skipAnimationOnMount?: boolean;
41
41
  }
42
42
  type UsePresenceReturn = ReturnType<typeof usePresence>;
43
- declare const usePresence: (props: MaybeRef<UsePresenceProps>, emit?: EmitFn$1<RootEmits>) => vue718.ComputedRef<{
43
+ declare const usePresence: (props: MaybeRef<UsePresenceProps>, emit?: EmitFn$1<RootEmits>) => vue5.ComputedRef<{
44
44
  present: boolean;
45
45
  unmounted: boolean | undefined;
46
46
  presenceProps: {
47
- ref: vue718.Ref<any, any>;
47
+ ref: vue5.Ref<any, any>;
48
48
  hidden: boolean;
49
49
  'data-state': string | undefined;
50
50
  };