@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,198 @@
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 vue142 from "vue";
5
+ import { ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
6
+ import * as pinInput from "@sprawlify/primitives/machines/pin-input";
7
+ import { InputProps, ValueChangeDetails, ValueChangeDetails as PinInputValueChangeDetails, ValueInvalidDetails, ValueInvalidDetails as PinInputValueInvalidDetails, anatomy as pinInputAnatomy } from "@sprawlify/primitives/machines/pin-input";
8
+
9
+ //#region src/components/pin-input/pin-input-control.vue.d.ts
10
+ interface PinInputControlBaseProps extends PolymorphicProps {}
11
+ interface PinInputControlProps extends PinInputControlBaseProps,
12
+ /**
13
+ * @vue-ignore
14
+ */
15
+ HTMLAttributes {}
16
+ declare const _default$1: typeof __VLS_export$6;
17
+ declare const __VLS_export$6: __VLS_WithSlots$6<vue142.DefineComponent<PinInputControlProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<PinInputControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue142.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/pin-input/pin-input-hidden-input.vue.d.ts
27
+ interface PinInputHiddenInputBaseProps extends PolymorphicProps {}
28
+ interface PinInputHiddenInputProps extends PinInputHiddenInputBaseProps,
29
+ /**
30
+ * @vue-ignore
31
+ */
32
+ InputHTMLAttributes {}
33
+ declare const _default$2: typeof __VLS_export$5;
34
+ declare const __VLS_export$5: __VLS_WithSlots$5<vue142.DefineComponent<PinInputHiddenInputProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<PinInputHiddenInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue142.ComponentProvideOptions, false, {}, any>, {
35
+ default?: (props: {}) => any;
36
+ }>;
37
+ type __VLS_WithSlots$5<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
42
+ //#endregion
43
+ //#region src/components/pin-input/pin-input-input.vue.d.ts
44
+ interface PinInputInputBaseProps extends InputProps, PolymorphicProps {}
45
+ interface PinInputInputProps extends PinInputInputBaseProps,
46
+ /**
47
+ * @vue-ignore
48
+ */
49
+ InputHTMLAttributes {}
50
+ declare const _default$3: typeof __VLS_export$4;
51
+ declare const __VLS_export$4: __VLS_WithSlots$4<vue142.DefineComponent<PinInputInputProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<PinInputInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue142.ComponentProvideOptions, false, {}, any>, {
52
+ default?: (props: {}) => any;
53
+ }>;
54
+ type __VLS_WithSlots$4<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
59
+ //#endregion
60
+ //#region src/components/pin-input/pin-input-label.vue.d.ts
61
+ interface PinInputLabelBaseProps extends PolymorphicProps {}
62
+ interface PinInputLabelProps extends PinInputLabelBaseProps,
63
+ /**
64
+ * @vue-ignore
65
+ */
66
+ LabelHTMLAttributes {}
67
+ declare const _default$4: typeof __VLS_export$3;
68
+ declare const __VLS_export$3: __VLS_WithSlots$3<vue142.DefineComponent<PinInputLabelProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<PinInputLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue142.ComponentProvideOptions, false, {}, any>, {
69
+ default?: (props: {}) => any;
70
+ }>;
71
+ type __VLS_WithSlots$3<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
76
+ //#endregion
77
+ //#region src/components/pin-input/pin-input-root-provider.vue.d.ts
78
+ interface RootProviderProps {
79
+ value: UnwrapRef<UsePinInputReturn>;
80
+ }
81
+ interface PinInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
82
+ interface PinInputRootProviderProps extends PinInputRootProviderBaseProps,
83
+ /**
84
+ * @vue-ignore
85
+ */
86
+ HTMLAttributes {}
87
+ declare const _default$6: typeof __VLS_export$2;
88
+ declare const __VLS_export$2: __VLS_WithSlots$2<vue142.DefineComponent<PinInputRootProviderProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<PinInputRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue142.ComponentProvideOptions, false, {}, any>, {
89
+ default?: (props: {}) => any;
90
+ }>;
91
+ type __VLS_WithSlots$2<T, S> = T & {
92
+ new (): {
93
+ $slots: S;
94
+ };
95
+ };
96
+ //#endregion
97
+ //#region src/components/pin-input/pin-input.types.d.ts
98
+ interface RootProps {
99
+ autoFocus?: boolean;
100
+ blurOnComplete?: boolean;
101
+ count?: number;
102
+ defaultValue?: string[];
103
+ disabled?: boolean;
104
+ form?: string;
105
+ id?: string;
106
+ ids?: Partial<{
107
+ root: string;
108
+ hiddenInput: string;
109
+ label: string;
110
+ control: string;
111
+ input(id: string): string;
112
+ }>;
113
+ invalid?: boolean;
114
+ mask?: boolean;
115
+ modelValue?: string[];
116
+ name?: string;
117
+ otp?: boolean;
118
+ pattern?: string;
119
+ placeholder?: string;
120
+ readOnly?: boolean;
121
+ required?: boolean;
122
+ selectOnFocus?: boolean;
123
+ translations?: pinInput.IntlTranslations;
124
+ type?: 'alphanumeric' | 'numeric' | 'alphabetic';
125
+ }
126
+ type RootEmits = {
127
+ valueChange: [details: pinInput.ValueChangeDetails];
128
+ valueComplete: [details: pinInput.ValueChangeDetails];
129
+ valueInvalid: [details: pinInput.ValueInvalidDetails];
130
+ 'update:modelValue': [value: string[]];
131
+ };
132
+ //#endregion
133
+ //#region src/components/pin-input/pin-input-root.vue.d.ts
134
+ interface PinInputRootBaseProps extends RootProps, PolymorphicProps {}
135
+ interface PinInputRootProps extends PinInputRootBaseProps,
136
+ /**
137
+ * @vue-ignore
138
+ */
139
+ HTMLAttributes {}
140
+ interface PinInputRootEmits extends RootEmits {}
141
+ declare const _default$5: typeof __VLS_export$1;
142
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue142.DefineComponent<PinInputRootProps, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {
143
+ valueChange: (details: pinInput.ValueChangeDetails) => any;
144
+ valueComplete: (details: pinInput.ValueChangeDetails) => any;
145
+ valueInvalid: (details: pinInput.ValueInvalidDetails) => any;
146
+ "update:modelValue": (value: string[]) => any;
147
+ }, string, vue142.PublicProps, Readonly<PinInputRootProps> & Readonly<{
148
+ onValueChange?: ((details: pinInput.ValueChangeDetails) => any) | undefined;
149
+ onValueComplete?: ((details: pinInput.ValueChangeDetails) => any) | undefined;
150
+ onValueInvalid?: ((details: pinInput.ValueInvalidDetails) => any) | undefined;
151
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
152
+ }>, {
153
+ mask: boolean;
154
+ required: boolean;
155
+ disabled: boolean;
156
+ invalid: boolean;
157
+ readOnly: boolean;
158
+ autoFocus: boolean;
159
+ blurOnComplete: boolean;
160
+ otp: boolean;
161
+ selectOnFocus: boolean;
162
+ }, {}, {}, {}, string, vue142.ComponentProvideOptions, false, {}, any>, {
163
+ default?: (props: {}) => any;
164
+ }>;
165
+ type __VLS_WithSlots$1<T, S> = T & {
166
+ new (): {
167
+ $slots: S;
168
+ };
169
+ };
170
+ declare namespace pin_input_d_exports {
171
+ export { _default as Context, PinInputContextProps as ContextProps, _default$1 as Control, PinInputControlBaseProps as ControlBaseProps, PinInputControlProps as ControlProps, _default$2 as HiddenInput, PinInputHiddenInputBaseProps as HiddenInputBaseProps, PinInputHiddenInputProps as HiddenInputProps, _default$3 as Input, PinInputInputBaseProps as InputBaseProps, PinInputInputProps as InputProps, _default$4 as Label, PinInputLabelBaseProps as LabelBaseProps, PinInputLabelProps as LabelProps, _default$5 as Root, PinInputRootBaseProps as RootBaseProps, PinInputRootEmits as RootEmits, PinInputRootProps as RootProps, _default$6 as RootProvider, PinInputRootProviderBaseProps as RootProviderBaseProps, PinInputRootProviderProps as RootProviderProps, ValueChangeDetails, ValueInvalidDetails };
172
+ }
173
+ //#endregion
174
+ //#region src/components/pin-input/use-pin-input.d.ts
175
+ interface UsePinInputProps extends Optional<Omit<pinInput.Props, 'dir' | 'getRootNode'>, 'id'> {
176
+ modelValue?: pinInput.Props['value'];
177
+ }
178
+ interface UsePinInputReturn extends ComputedRef<pinInput.Api<PropTypes>> {}
179
+ declare const usePinInput: (props?: MaybeRef<UsePinInputProps>, emit?: EmitFn$1<PinInputRootEmits>) => ComputedRef<pinInput.Api<PropTypes>>;
180
+ //#endregion
181
+ //#region src/components/pin-input/use-pin-input-context.d.ts
182
+ interface UsePinInputContext extends UsePinInputReturn {}
183
+ //#endregion
184
+ //#region src/components/pin-input/pin-input-context.vue.d.ts
185
+ interface PinInputContextProps extends SlotsType<{
186
+ default: UnwrapRef<UsePinInputContext>;
187
+ }> {}
188
+ declare const _default: typeof __VLS_export;
189
+ declare const __VLS_export: __VLS_WithSlots<vue142.DefineComponent<{}, {}, {}, {}, {}, vue142.ComponentOptionsMixin, vue142.ComponentOptionsMixin, {}, string, vue142.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue142.ComponentProvideOptions, true, {}, any>, {
190
+ default(pinInput: UnwrapRef<UsePinInputContext>): unknown;
191
+ }>;
192
+ type __VLS_WithSlots<T, S> = T & {
193
+ new (): {
194
+ $slots: S;
195
+ };
196
+ };
197
+ //#endregion
198
+ export { pin_input_d_exports as PinInput, _default as PinInputContext, type PinInputContextProps, _default$1 as PinInputControl, type PinInputControlBaseProps, type PinInputControlProps, _default$2 as PinInputHiddenInput, type PinInputHiddenInputBaseProps, type PinInputHiddenInputProps, _default$3 as PinInputInput, type PinInputInputBaseProps, type PinInputInputProps, _default$4 as PinInputLabel, type PinInputLabelBaseProps, type PinInputLabelProps, _default$5 as PinInputRoot, type PinInputRootBaseProps, type PinInputRootEmits, type PinInputRootProps, _default$6 as PinInputRootProvider, type PinInputRootProviderBaseProps, type PinInputRootProviderProps, type PinInputValueChangeDetails, type PinInputValueInvalidDetails, type UsePinInputContext, type UsePinInputProps, type UsePinInputReturn, pinInputAnatomy, usePinInput, usePinInputContext };
@@ -0,0 +1,346 @@
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 { a as useLocaleContext, c as useEnvironmentContext, i as DEFAULT_LOCALE, 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 { m as useFieldContext } from "../../field-CtPR24u6.js";
9
+ import { computed, createBlock, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
10
+ import * as pinInput from "@sprawlify/primitives/machines/pin-input";
11
+ import { anatomy as pinInputAnatomy } from "@sprawlify/primitives/machines/pin-input";
12
+
13
+ //#region src/components/pin-input/use-pin-input-context.ts
14
+ const [PinInputProvider, usePinInputContext] = createContext("PinInputContext");
15
+
16
+ //#endregion
17
+ //#region src/components/pin-input/pin-input-context.vue?vue&type=script&setup=true&lang.ts
18
+ var pin_input_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
19
+ __name: "pin-input-context",
20
+ setup(__props) {
21
+ const pinInput = usePinInputContext();
22
+ return (_ctx, _cache) => {
23
+ return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(pinInput))));
24
+ };
25
+ }
26
+ });
27
+
28
+ //#endregion
29
+ //#region src/components/pin-input/pin-input-context.vue
30
+ var pin_input_context_default = pin_input_context_vue_vue_type_script_setup_true_lang_default;
31
+
32
+ //#endregion
33
+ //#region src/components/pin-input/pin-input-control.vue?vue&type=script&setup=true&lang.ts
34
+ var pin_input_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
35
+ __name: "pin-input-control",
36
+ props: { asChild: {
37
+ type: Boolean,
38
+ required: false
39
+ } },
40
+ setup(__props) {
41
+ const pinInput = usePinInputContext();
42
+ useForwardExpose();
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(pinInput).getControlProps(), { "as-child": __props.asChild }), {
45
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
46
+ _: 3
47
+ }, 16, ["as-child"]);
48
+ };
49
+ }
50
+ });
51
+
52
+ //#endregion
53
+ //#region src/components/pin-input/pin-input-control.vue
54
+ var pin_input_control_default = pin_input_control_vue_vue_type_script_setup_true_lang_default;
55
+
56
+ //#endregion
57
+ //#region src/components/pin-input/pin-input-hidden-input.vue?vue&type=script&setup=true&lang.ts
58
+ var pin_input_hidden_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
59
+ __name: "pin-input-hidden-input",
60
+ props: { asChild: {
61
+ type: Boolean,
62
+ required: false
63
+ } },
64
+ setup(__props) {
65
+ const pinInput = usePinInputContext();
66
+ const field = useFieldContext();
67
+ useForwardExpose();
68
+ return (_ctx, _cache) => {
69
+ return openBlock(), createBlock(unref(sprawlify).input, mergeProps({ "aria-describedby": unref(field)?.ariaDescribedby }, unref(pinInput).getHiddenInputProps(), { "as-child": __props.asChild }), {
70
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
71
+ _: 3
72
+ }, 16, ["aria-describedby", "as-child"]);
73
+ };
74
+ }
75
+ });
76
+
77
+ //#endregion
78
+ //#region src/components/pin-input/pin-input-hidden-input.vue
79
+ var pin_input_hidden_input_default = pin_input_hidden_input_vue_vue_type_script_setup_true_lang_default;
80
+
81
+ //#endregion
82
+ //#region src/components/pin-input/pin-input-input.vue?vue&type=script&setup=true&lang.ts
83
+ var pin_input_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
84
+ __name: "pin-input-input",
85
+ props: {
86
+ index: {
87
+ type: Number,
88
+ required: true
89
+ },
90
+ asChild: {
91
+ type: Boolean,
92
+ required: false
93
+ }
94
+ },
95
+ setup(__props) {
96
+ const props = __props;
97
+ const pinInput = usePinInputContext();
98
+ useForwardExpose();
99
+ return (_ctx, _cache) => {
100
+ return openBlock(), createBlock(unref(sprawlify).input, mergeProps(unref(pinInput).getInputProps(props), { "as-child": __props.asChild }), {
101
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
102
+ _: 3
103
+ }, 16, ["as-child"]);
104
+ };
105
+ }
106
+ });
107
+
108
+ //#endregion
109
+ //#region src/components/pin-input/pin-input-input.vue
110
+ var pin_input_input_default = pin_input_input_vue_vue_type_script_setup_true_lang_default;
111
+
112
+ //#endregion
113
+ //#region src/components/pin-input/pin-input-label.vue?vue&type=script&setup=true&lang.ts
114
+ var pin_input_label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
115
+ __name: "pin-input-label",
116
+ props: { asChild: {
117
+ type: Boolean,
118
+ required: false
119
+ } },
120
+ setup(__props) {
121
+ const pinInput = usePinInputContext();
122
+ useForwardExpose();
123
+ return (_ctx, _cache) => {
124
+ return openBlock(), createBlock(unref(sprawlify).label, mergeProps(unref(pinInput).getLabelProps(), { "as-child": __props.asChild }), {
125
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
126
+ _: 3
127
+ }, 16, ["as-child"]);
128
+ };
129
+ }
130
+ });
131
+
132
+ //#endregion
133
+ //#region src/components/pin-input/pin-input-label.vue
134
+ var pin_input_label_default = pin_input_label_vue_vue_type_script_setup_true_lang_default;
135
+
136
+ //#endregion
137
+ //#region src/components/pin-input/pin-input-root-provider.vue?vue&type=script&setup=true&lang.ts
138
+ var pin_input_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
139
+ __name: "pin-input-root-provider",
140
+ props: {
141
+ value: {
142
+ type: null,
143
+ required: true
144
+ },
145
+ asChild: {
146
+ type: Boolean,
147
+ required: false
148
+ }
149
+ },
150
+ setup(__props) {
151
+ const props = __props;
152
+ const pinInput = computed(() => props.value);
153
+ PinInputProvider(pinInput);
154
+ useForwardExpose();
155
+ return (_ctx, _cache) => {
156
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(pinInput.value.getRootProps(), { "as-child": __props.asChild }), {
157
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
158
+ _: 3
159
+ }, 16, ["as-child"]);
160
+ };
161
+ }
162
+ });
163
+
164
+ //#endregion
165
+ //#region src/components/pin-input/pin-input-root-provider.vue
166
+ var pin_input_root_provider_default = pin_input_root_provider_vue_vue_type_script_setup_true_lang_default;
167
+
168
+ //#endregion
169
+ //#region src/components/pin-input/use-pin-input.ts
170
+ const usePinInput = (props = {}, emit) => {
171
+ const id = useId();
172
+ const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
173
+ const locale = useLocaleContext(DEFAULT_LOCALE);
174
+ const field = useFieldContext();
175
+ const context = computed(() => {
176
+ const localeProps = toValue(props);
177
+ return {
178
+ id,
179
+ ids: {
180
+ label: field?.value.ids.label,
181
+ hiddenInput: field?.value.ids.control
182
+ },
183
+ disabled: field?.value.disabled,
184
+ readOnly: field?.value.readOnly,
185
+ required: field?.value.required,
186
+ invalid: field?.value.invalid,
187
+ dir: locale.value.dir,
188
+ value: localeProps.modelValue,
189
+ getRootNode: env?.value.getRootNode,
190
+ ...cleanProps(localeProps),
191
+ onValueChange: (details) => {
192
+ emit?.("valueChange", details);
193
+ emit?.("update:modelValue", details.value);
194
+ localeProps.onValueChange?.(details);
195
+ },
196
+ onValueComplete: (details) => {
197
+ emit?.("valueComplete", details);
198
+ localeProps.onValueComplete?.(details);
199
+ },
200
+ onValueInvalid: (details) => {
201
+ emit?.("valueInvalid", details);
202
+ localeProps.onValueInvalid?.(details);
203
+ }
204
+ };
205
+ });
206
+ const service = useMachine(pinInput.machine, context);
207
+ return computed(() => pinInput.connect(service, normalizeProps$1));
208
+ };
209
+
210
+ //#endregion
211
+ //#region src/components/pin-input/pin-input-root.vue?vue&type=script&setup=true&lang.ts
212
+ var pin_input_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
213
+ __name: "pin-input-root",
214
+ props: /* @__PURE__ */ mergeDefaults({
215
+ autoFocus: {
216
+ type: Boolean,
217
+ required: false
218
+ },
219
+ blurOnComplete: {
220
+ type: Boolean,
221
+ required: false
222
+ },
223
+ count: {
224
+ type: Number,
225
+ required: false
226
+ },
227
+ defaultValue: {
228
+ type: Array,
229
+ required: false
230
+ },
231
+ disabled: {
232
+ type: Boolean,
233
+ required: false
234
+ },
235
+ form: {
236
+ type: String,
237
+ required: false
238
+ },
239
+ id: {
240
+ type: String,
241
+ required: false
242
+ },
243
+ ids: {
244
+ type: Object,
245
+ required: false
246
+ },
247
+ invalid: {
248
+ type: Boolean,
249
+ required: false
250
+ },
251
+ mask: {
252
+ type: Boolean,
253
+ required: false
254
+ },
255
+ modelValue: {
256
+ type: Array,
257
+ required: false
258
+ },
259
+ name: {
260
+ type: String,
261
+ required: false
262
+ },
263
+ otp: {
264
+ type: Boolean,
265
+ required: false
266
+ },
267
+ pattern: {
268
+ type: String,
269
+ required: false
270
+ },
271
+ placeholder: {
272
+ type: String,
273
+ required: false
274
+ },
275
+ readOnly: {
276
+ type: Boolean,
277
+ required: false
278
+ },
279
+ required: {
280
+ type: Boolean,
281
+ required: false
282
+ },
283
+ selectOnFocus: {
284
+ type: Boolean,
285
+ required: false
286
+ },
287
+ translations: {
288
+ type: null,
289
+ required: false
290
+ },
291
+ type: {
292
+ type: String,
293
+ required: false
294
+ },
295
+ asChild: {
296
+ type: Boolean,
297
+ required: false
298
+ }
299
+ }, {
300
+ autoFocus: void 0,
301
+ blurOnComplete: void 0,
302
+ disabled: void 0,
303
+ invalid: void 0,
304
+ mask: void 0,
305
+ otp: void 0,
306
+ readOnly: void 0,
307
+ required: void 0,
308
+ selectOnFocus: void 0
309
+ }),
310
+ emits: [
311
+ "valueChange",
312
+ "valueComplete",
313
+ "valueInvalid",
314
+ "update:modelValue"
315
+ ],
316
+ setup(__props, { emit: __emit }) {
317
+ const pinInput = usePinInput(__props, __emit);
318
+ PinInputProvider(pinInput);
319
+ useForwardExpose();
320
+ return (_ctx, _cache) => {
321
+ return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(pinInput).getRootProps(), { "as-child": __props.asChild }), {
322
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
323
+ _: 3
324
+ }, 16, ["as-child"]);
325
+ };
326
+ }
327
+ });
328
+
329
+ //#endregion
330
+ //#region src/components/pin-input/pin-input-root.vue
331
+ var pin_input_root_default = pin_input_root_vue_vue_type_script_setup_true_lang_default;
332
+
333
+ //#endregion
334
+ //#region src/components/pin-input/pin-input.ts
335
+ var pin_input_exports = /* @__PURE__ */ __exportAll({
336
+ Context: () => pin_input_context_default,
337
+ Control: () => pin_input_control_default,
338
+ HiddenInput: () => pin_input_hidden_input_default,
339
+ Input: () => pin_input_input_default,
340
+ Label: () => pin_input_label_default,
341
+ Root: () => pin_input_root_default,
342
+ RootProvider: () => pin_input_root_provider_default
343
+ });
344
+
345
+ //#endregion
346
+ export { pin_input_exports as PinInput, pin_input_context_default as PinInputContext, pin_input_control_default as PinInputControl, pin_input_hidden_input_default as PinInputHiddenInput, pin_input_input_default as PinInputInput, pin_input_label_default as PinInputLabel, pin_input_root_default as PinInputRoot, pin_input_root_provider_default as PinInputRootProvider, pinInputAnatomy, usePinInput, usePinInputContext };