@sprawlify/vue 0.0.65 → 0.0.66

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 (51) hide show
  1. package/dist/clean-props-ChPEW0vT.js +9 -0
  2. package/dist/collapsible-BBV8R9Wm.js +259 -0
  3. package/dist/collection-DR2kMzrX.js +218 -0
  4. package/dist/components/accordion/index.d.ts +195 -0
  5. package/dist/components/accordion/index.js +361 -0
  6. package/dist/components/angle-slider/index.d.ts +230 -0
  7. package/dist/components/angle-slider/index.js +371 -0
  8. package/dist/components/avatar/index.d.ts +116 -0
  9. package/dist/components/avatar/index.js +177 -0
  10. package/dist/components/bottom-sheet/index.d.ts +241 -0
  11. package/dist/components/bottom-sheet/index.js +429 -0
  12. package/dist/components/carousel/index.d.ts +306 -0
  13. package/dist/components/carousel/index.js +500 -0
  14. package/dist/components/checkbox/index.d.ts +273 -0
  15. package/dist/components/checkbox/index.js +500 -0
  16. package/dist/components/client-only/index.d.ts +20 -0
  17. package/dist/components/client-only/index.js +22 -0
  18. package/dist/components/clipboard/index.d.ts +204 -0
  19. package/dist/components/clipboard/index.js +297 -0
  20. package/dist/components/collapsible/index.d.ts +18 -26
  21. package/dist/components/collapsible/index.js +5 -325
  22. package/dist/components/collection/index.d.ts +2 -0
  23. package/dist/components/collection/index.js +4 -0
  24. package/dist/components/field/index.d.ts +326 -0
  25. package/dist/components/field/index.js +7 -0
  26. package/dist/components/fieldset/index.d.ts +161 -0
  27. package/dist/components/fieldset/index.js +7 -0
  28. package/dist/components/presence/index.d.ts +3 -0
  29. package/dist/components/presence/index.js +6 -0
  30. package/dist/components/select/index.d.ts +429 -0
  31. package/dist/components/select/index.js +769 -0
  32. package/dist/{use-forward-expose-BIk4OI3R.js → core-DNndr38p.js} +2 -170
  33. package/dist/create-split-props-YZ3qgXe_.js +11 -0
  34. package/dist/factory-BH3WrWd2.js +68 -0
  35. package/dist/factory-D_ge_w76.d.ts +8 -0
  36. package/dist/field-DnHnX3Tf.js +501 -0
  37. package/dist/fieldset-DzhN7Zrg.js +278 -0
  38. package/dist/{types-BQfkZGpL.d.ts → index-B66Om_3U.d.ts} +1 -9
  39. package/dist/index-DqRk-Yea.d.ts +199 -0
  40. package/dist/index-rHf4D8np.d.ts +57 -0
  41. package/dist/index.d.ts +2 -1
  42. package/dist/index.js +4 -50
  43. package/dist/presence-CvUnYMZQ.js +105 -0
  44. package/dist/presence-types-Bv1E60Cw.d.ts +13 -0
  45. package/dist/providers-B2CNPFg1.js +108 -0
  46. package/dist/types-Bj-dS2Hc.d.ts +9 -0
  47. package/dist/use-forward-expose-4p5AGAI3.js +67 -0
  48. package/dist/use-render-strategy-BkxoN6ll.js +7 -0
  49. package/dist/use-render-strategy-CHj_pCfT.d.ts +9 -0
  50. package/dist/utils-B4FuOOE-.js +51 -0
  51. package/package.json +54 -2
@@ -0,0 +1,273 @@
1
+ import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
2
+ import { a as Optional, r as EmitFn$1 } from "../../types-Bj-dS2Hc.js";
3
+ import { r as PropTypes } from "../../index-B66Om_3U.js";
4
+ import * as vue227 from "vue";
5
+ import { ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
6
+ import * as checkbox from "@sprawlify/primitives/machines/checkbox";
7
+ import { CheckedChangeDetails, CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState, CheckedState as CheckboxCheckedState, connect } from "@sprawlify/primitives/machines/checkbox";
8
+ import * as _sprawlify_primitives_anatomy1 from "@sprawlify/primitives/anatomy";
9
+
10
+ //#region src/components/checkbox/use-checkbox-context.d.ts
11
+ interface UseCheckboxContext extends ComputedRef<ReturnType<typeof connect>> {}
12
+ //#endregion
13
+ //#region src/components/checkbox/checkbox-context.vue.d.ts
14
+ interface CheckboxContextProps extends SlotsType<{
15
+ default: UnwrapRef<UseCheckboxContext>;
16
+ }> {}
17
+ declare const _default: typeof __VLS_export$8;
18
+ declare const __VLS_export$8: __VLS_WithSlots$8<vue227.DefineComponent<{}, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, true, {}, any>, {
19
+ default(checkbox: UnwrapRef<UseCheckboxContext>): unknown;
20
+ }>;
21
+ type __VLS_WithSlots$8<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //#endregion
27
+ //#region src/components/checkbox/checkbox-control.vue.d.ts
28
+ interface CheckboxControlBaseProps extends PolymorphicProps {}
29
+ interface CheckboxControlProps extends CheckboxControlBaseProps,
30
+ /**
31
+ * @vue-ignore
32
+ */
33
+ HTMLAttributes {}
34
+ declare const _default$1: typeof __VLS_export$7;
35
+ declare const __VLS_export$7: __VLS_WithSlots$7<vue227.DefineComponent<CheckboxControlProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
36
+ default?: (props: {}) => any;
37
+ }>;
38
+ type __VLS_WithSlots$7<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
43
+ //#endregion
44
+ //#region src/components/checkbox/checkbox-group-types.d.ts
45
+ interface GroupProps {
46
+ defaultValue?: string[];
47
+ modelValue?: string[];
48
+ disabled?: boolean;
49
+ readOnly?: boolean;
50
+ name?: string;
51
+ invalid?: boolean;
52
+ }
53
+ type GroupEmits = {
54
+ valueChange: [value: string[]];
55
+ 'update:modelValue': [value: string[]];
56
+ };
57
+ //#endregion
58
+ //#region src/components/checkbox/checkbox-group.vue.d.ts
59
+ interface CheckboxGroupBaseProps extends GroupProps, PolymorphicProps {}
60
+ interface CheckboxGroupProps extends CheckboxGroupBaseProps,
61
+ /**
62
+ * @vue-ignore
63
+ */
64
+ HTMLAttributes {}
65
+ declare const _default$2: typeof __VLS_export$6;
66
+ declare const __VLS_export$6: __VLS_WithSlots$6<vue227.DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {
67
+ valueChange: (value: string[]) => any;
68
+ "update:modelValue": (value: string[]) => any;
69
+ }, string, vue227.PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
70
+ onValueChange?: ((value: string[]) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
72
+ }>, {
73
+ disabled: boolean;
74
+ invalid: boolean;
75
+ readOnly: boolean;
76
+ }, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
77
+ default?: (props: {}) => any;
78
+ }>;
79
+ type __VLS_WithSlots$6<T, S> = T & {
80
+ new (): {
81
+ $slots: S;
82
+ };
83
+ };
84
+ //#endregion
85
+ //#region src/components/checkbox/use-checkbox-group.d.ts
86
+ interface UseCheckboxGroupProps extends GroupProps {}
87
+ type UseCheckboxGroupReturn = ReturnType<typeof useCheckboxGroup>;
88
+ interface CheckboxGroupItemProps {
89
+ value: string | undefined;
90
+ }
91
+ declare function useCheckboxGroup(props: GroupProps, emit?: EmitFn$1<GroupEmits>): vue227.ComputedRef<{
92
+ isChecked: (val: string | undefined) => boolean;
93
+ value: string[];
94
+ name: string | undefined;
95
+ disabled: boolean;
96
+ readOnly: boolean | undefined;
97
+ invalid: boolean | undefined;
98
+ addValue: (val: string) => void;
99
+ setValue: (value: string[]) => void;
100
+ toggleValue: (val: string) => void;
101
+ getItemProps: (itemProps: CheckboxGroupItemProps) => {
102
+ checked: boolean | undefined;
103
+ onCheckedChange(): void;
104
+ name: string | undefined;
105
+ disabled: boolean;
106
+ readOnly: boolean | undefined;
107
+ invalid: boolean | undefined;
108
+ };
109
+ }>;
110
+ //#endregion
111
+ //#region src/components/checkbox/checkbox-group-provider.vue.d.ts
112
+ interface GroupProviderProps {
113
+ value: UnwrapRef<UseCheckboxGroupReturn>;
114
+ }
115
+ interface CheckboxGroupProviderBaseProps extends GroupProviderProps, PolymorphicProps {}
116
+ interface CheckboxGroupProviderProps extends CheckboxGroupProviderBaseProps,
117
+ /**
118
+ * @vue-ignore
119
+ */
120
+ HTMLAttributes {}
121
+ declare const _default$3: typeof __VLS_export$5;
122
+ declare const __VLS_export$5: __VLS_WithSlots$5<vue227.DefineComponent<CheckboxGroupProviderProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxGroupProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
123
+ default?: (props: {}) => any;
124
+ }>;
125
+ type __VLS_WithSlots$5<T, S> = T & {
126
+ new (): {
127
+ $slots: S;
128
+ };
129
+ };
130
+ //#endregion
131
+ //#region src/components/checkbox/checkbox-hidden-input.vue.d.ts
132
+ interface CheckboxHiddenInputBaseProps extends PolymorphicProps {}
133
+ interface CheckboxHiddenInputProps extends CheckboxHiddenInputBaseProps,
134
+ /**
135
+ * @vue-ignore
136
+ */
137
+ InputHTMLAttributes {}
138
+ declare const _default$4: typeof __VLS_export$4;
139
+ declare const __VLS_export$4: __VLS_WithSlots$4<vue227.DefineComponent<CheckboxHiddenInputProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxHiddenInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
140
+ default?: (props: {}) => any;
141
+ }>;
142
+ type __VLS_WithSlots$4<T, S> = T & {
143
+ new (): {
144
+ $slots: S;
145
+ };
146
+ };
147
+ //#endregion
148
+ //#region src/components/checkbox/checkbox-indicator.vue.d.ts
149
+ interface CheckboxIndicatorBaseProps extends PolymorphicProps {}
150
+ interface CheckboxIndicatorProps extends CheckboxIndicatorBaseProps,
151
+ /**
152
+ * @vue-ignore
153
+ */
154
+ HTMLAttributes {
155
+ indeterminate?: boolean;
156
+ }
157
+ declare const _default$5: typeof __VLS_export$3;
158
+ declare const __VLS_export$3: __VLS_WithSlots$3<vue227.DefineComponent<CheckboxIndicatorProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
159
+ default?: (props: {}) => any;
160
+ }>;
161
+ type __VLS_WithSlots$3<T, S> = T & {
162
+ new (): {
163
+ $slots: S;
164
+ };
165
+ };
166
+ //#endregion
167
+ //#region src/components/checkbox/checkbox-label.vue.d.ts
168
+ interface CheckboxLabelBaseProps extends PolymorphicProps {}
169
+ interface CheckboxLabelProps extends CheckboxLabelBaseProps,
170
+ /**
171
+ * @vue-ignore
172
+ */
173
+ HTMLAttributes {}
174
+ declare const _default$6: typeof __VLS_export$2;
175
+ declare const __VLS_export$2: __VLS_WithSlots$2<vue227.DefineComponent<CheckboxLabelProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
176
+ default?: (props: {}) => any;
177
+ }>;
178
+ type __VLS_WithSlots$2<T, S> = T & {
179
+ new (): {
180
+ $slots: S;
181
+ };
182
+ };
183
+ //#endregion
184
+ //#region src/components/checkbox/checkbox-types.d.ts
185
+ interface RootProps {
186
+ checked?: checkbox.CheckedState;
187
+ defaultChecked?: checkbox.CheckedState;
188
+ disabled?: boolean;
189
+ form?: string;
190
+ id?: string;
191
+ ids?: Partial<{
192
+ root: string;
193
+ hiddenInput: string;
194
+ control: string;
195
+ label: string;
196
+ }>;
197
+ invalid?: boolean;
198
+ name?: string;
199
+ readOnly?: boolean;
200
+ required?: boolean;
201
+ value?: string;
202
+ }
203
+ type RootEmits = {
204
+ checkedChange: [details: checkbox.CheckedChangeDetails];
205
+ 'update:checked': [checked: checkbox.CheckedState];
206
+ };
207
+ //#endregion
208
+ //#region src/components/checkbox/checkbox-root.vue.d.ts
209
+ interface CheckboxRootBaseProps extends RootProps, PolymorphicProps {}
210
+ interface CheckboxRootProps extends CheckboxRootBaseProps,
211
+ /**
212
+ * @vue-ignore
213
+ */
214
+ LabelHTMLAttributes {}
215
+ interface CheckboxRootEmits extends RootEmits {}
216
+ declare const _default$7: typeof __VLS_export$1;
217
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue227.DefineComponent<CheckboxRootProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {
218
+ checkedChange: (details: checkbox.CheckedChangeDetails) => any;
219
+ "update:checked": (checked: checkbox.CheckedState) => any;
220
+ }, string, vue227.PublicProps, Readonly<CheckboxRootProps> & Readonly<{
221
+ onCheckedChange?: ((details: checkbox.CheckedChangeDetails) => any) | undefined;
222
+ "onUpdate:checked"?: ((checked: checkbox.CheckedState) => any) | undefined;
223
+ }>, {
224
+ disabled: boolean;
225
+ invalid: boolean;
226
+ readOnly: boolean;
227
+ checked: checkbox.CheckedState;
228
+ required: boolean;
229
+ defaultChecked: checkbox.CheckedState;
230
+ }, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
231
+ default?: (props: {}) => any;
232
+ }>;
233
+ type __VLS_WithSlots$1<T, S> = T & {
234
+ new (): {
235
+ $slots: S;
236
+ };
237
+ };
238
+ declare namespace checkbox_d_exports {
239
+ export { CheckedChangeDetails, CheckedState, _default as Context, CheckboxContextProps as ContextProps, _default$1 as Control, CheckboxControlBaseProps as ControlBaseProps, CheckboxControlProps as ControlProps, _default$2 as Group, CheckboxGroupBaseProps as GroupBaseProps, CheckboxGroupProps as GroupProps, _default$3 as GroupProvider, CheckboxGroupProviderBaseProps as GroupProviderBaseProps, CheckboxGroupProviderProps as GroupProviderProps, _default$4 as HiddenInput, CheckboxHiddenInputBaseProps as HiddenInputBaseProps, CheckboxHiddenInputProps as HiddenInputProps, _default$5 as Indicator, CheckboxIndicatorBaseProps as IndicatorBaseProps, CheckboxIndicatorProps as IndicatorProps, _default$6 as Label, CheckboxLabelBaseProps as LabelBaseProps, CheckboxLabelProps as LabelProps, _default$7 as Root, CheckboxRootBaseProps as RootBaseProps, CheckboxRootEmits as RootEmits, CheckboxRootProps as RootProps, _default$8 as RootProvider, CheckboxRootProviderBaseProps as RootProviderBaseProps, CheckboxRootProviderProps as RootProviderProps };
240
+ }
241
+ //#endregion
242
+ //#region src/components/checkbox/use-checkbox.d.ts
243
+ interface UseCheckboxProps extends Optional<Omit<checkbox.Props, 'dir' | 'getRootNode'>, 'id'> {}
244
+ interface UseCheckboxReturn extends ComputedRef<checkbox.Api<PropTypes>> {}
245
+ declare const useCheckbox: (props?: MaybeRef<UseCheckboxProps>, emit?: EmitFn$1<CheckboxRootEmits>) => ComputedRef<checkbox.Api<PropTypes>>;
246
+ //#endregion
247
+ //#region src/components/checkbox/checkbox-root-provider.vue.d.ts
248
+ interface RootProviderProps {
249
+ value: UnwrapRef<UseCheckboxReturn>;
250
+ }
251
+ interface CheckboxRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
252
+ interface CheckboxRootProviderProps extends CheckboxRootProviderBaseProps,
253
+ /**
254
+ * @vue-ignore
255
+ */
256
+ LabelHTMLAttributes {}
257
+ declare const _default$8: typeof __VLS_export;
258
+ declare const __VLS_export: __VLS_WithSlots<vue227.DefineComponent<CheckboxRootProviderProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {}, string, vue227.PublicProps, Readonly<CheckboxRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>, {
259
+ default?: (props: {}) => any;
260
+ }>;
261
+ type __VLS_WithSlots<T, S> = T & {
262
+ new (): {
263
+ $slots: S;
264
+ };
265
+ };
266
+ //#endregion
267
+ //#region src/components/checkbox/use-checkbox-group-context.d.ts
268
+ interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {}
269
+ //#endregion
270
+ //#region src/components/checkbox/checkbox-anatomy.d.ts
271
+ declare const checkboxAnatomy: _sprawlify_primitives_anatomy1.AnatomyInstance<"label" | "root" | "control" | "indicator" | "group">;
272
+ //#endregion
273
+ export { checkbox_d_exports as Checkbox, type CheckboxCheckedChangeDetails, type CheckboxCheckedState, _default as CheckboxContext, type CheckboxContextProps, _default$1 as CheckboxControl, type CheckboxControlBaseProps, type CheckboxControlProps, _default$2 as CheckboxGroup, type CheckboxGroupBaseProps, type CheckboxGroupProps, _default$3 as CheckboxGroupProvider, type CheckboxGroupProviderBaseProps, type CheckboxGroupProviderProps, _default$4 as CheckboxHiddenInput, type CheckboxHiddenInputBaseProps, type CheckboxHiddenInputProps, _default$5 as CheckboxIndicator, type CheckboxIndicatorBaseProps, type CheckboxIndicatorProps, _default$6 as CheckboxLabel, type CheckboxLabelBaseProps, type CheckboxLabelProps, _default$7 as CheckboxRoot, type CheckboxRootBaseProps, type CheckboxRootEmits, type CheckboxRootProps, _default$8 as CheckboxRootProvider, type CheckboxRootProviderBaseProps, type CheckboxRootProviderProps, type UseCheckboxContext, type UseCheckboxGroupContext, type UseCheckboxGroupProps, type UseCheckboxGroupReturn, type UseCheckboxProps, type UseCheckboxReturn, checkboxAnatomy, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext };