@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
@@ -1,327 +1,7 @@
1
- import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
2
- import { a as DEFAULT_LOCALE, c as DEFAULT_ENVIRONMENT, d as mergeProps$1, f as useMachine, l as useEnvironmentContext, o as useLocaleContext, p as normalizeProps$1, t as useForwardExpose, u as createContext } from "../../use-forward-expose-BIk4OI3R.js";
3
- import { Fragment, cloneVNode, computed, createBlock, createCommentVNode, defineComponent, guardReactiveProps, h, mergeDefaults, mergeProps, normalizeProps, openBlock, ref, renderSlot, toValue, unref, useId, watch, withCtx } from "vue";
4
- import * as collapsible from "@sprawlify/primitives/machines/collapsible";
5
- import { anatomy as collapsibleAnatomy } from "@sprawlify/primitives/machines/collapsible";
1
+ import "../../core-DNndr38p.js";
2
+ import "../../providers-B2CNPFg1.js";
3
+ import "../../use-forward-expose-4p5AGAI3.js";
4
+ import "../../factory-BH3WrWd2.js";
5
+ import { a as collapsible_root_default, c as collapsible_context_default, i as collapsible_trigger_default, l as collapsible_content_default, n as collapsibleAnatomy, o as useCollapsible, r as collapsible_indicator_default, s as collapsible_root_provider_default, t as collapsible_exports, u as useCollapsibleContext } from "../../collapsible-BBV8R9Wm.js";
6
6
 
7
- //#region src/utils/dynamic.ts
8
- const Dynamic = defineComponent({
9
- name: "Dynamic",
10
- inheritAttrs: false,
11
- setup(_, { attrs, slots }) {
12
- return () => {
13
- if (!slots.default) return null;
14
- const children = renderSlotFragments(slots.default());
15
- const [firstChildren, ...otherChildren] = children;
16
- if (Object.keys(attrs).length > 0) {
17
- delete firstChildren.props?.ref;
18
- const mergedProps = mergeProps$1(attrs, firstChildren.props ?? {});
19
- const cloned = cloneVNode(firstChildren, mergedProps);
20
- for (const prop in mergedProps) if (prop.startsWith("on")) {
21
- cloned.props ||= {};
22
- cloned.props[prop] = mergedProps[prop];
23
- }
24
- return children.length === 1 ? cloned : [cloned, ...otherChildren];
25
- }
26
- return children;
27
- };
28
- }
29
- });
30
- function renderSlotFragments(children) {
31
- if (!children) return [];
32
- return children.flatMap((child) => {
33
- if (child.type === Fragment) return renderSlotFragments(child.children);
34
- return [child];
35
- });
36
- }
37
-
38
- //#endregion
39
- //#region src/components/factory.ts
40
- const SELF_CLOSING_TAGS = "br, hr, img, input, area, textarea".split(", ");
41
- const isSelfClosingTag = (tag) => typeof tag === "string" && SELF_CLOSING_TAGS.includes(tag);
42
- const withAsChild = (component) => {
43
- return defineComponent({
44
- name: "Polymorphic",
45
- inheritAttrs: false,
46
- props: { asChild: {
47
- type: Boolean,
48
- default: false
49
- } },
50
- setup(props, { attrs, slots }) {
51
- if (!props.asChild) return () => h(component, attrs, isSelfClosingTag(component) ? void 0 : slots.default?.());
52
- return () => h(Dynamic, attrs, slots);
53
- }
54
- });
55
- };
56
- function jsxFactory() {
57
- const cache = /* @__PURE__ */ new Map();
58
- return new Proxy(withAsChild, {
59
- apply(_target, _thisArg, argArray) {
60
- return withAsChild(argArray[0]);
61
- },
62
- get(_, element) {
63
- if (!cache.has(element)) cache.set(element, withAsChild(element));
64
- return cache.get(element);
65
- }
66
- });
67
- }
68
- const sprawlify = jsxFactory();
69
-
70
- //#endregion
71
- //#region src/components/collapsible/use-collapsible-context.ts
72
- const [CollapsibleProvider, useCollapsibleContext] = createContext("CollapsibleContext");
73
-
74
- //#endregion
75
- //#region src/components/collapsible/collapsible-content.vue?vue&type=script&setup=true&lang.ts
76
- var collapsible_content_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
77
- __name: "collapsible-content",
78
- props: { asChild: {
79
- type: Boolean,
80
- required: false
81
- } },
82
- setup(__props) {
83
- const collapsible = useCollapsibleContext();
84
- useForwardExpose();
85
- return (_ctx, _cache) => {
86
- return !unref(collapsible).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, unref(collapsible).getContentProps(), { "as-child": __props.asChild }), {
87
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
88
- _: 3
89
- }, 16, ["as-child"])) : createCommentVNode("v-if", true);
90
- };
91
- }
92
- });
93
-
94
- //#endregion
95
- //#region src/components/collapsible/collapsible-content.vue
96
- var collapsible_content_default = collapsible_content_vue_vue_type_script_setup_true_lang_default;
97
-
98
- //#endregion
99
- //#region src/components/collapsible/collapsible-context.vue?vue&type=script&setup=true&lang.ts
100
- var collapsible_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
101
- __name: "collapsible-context",
102
- setup(__props) {
103
- const collapsible = useCollapsibleContext();
104
- return (_ctx, _cache) => {
105
- return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(collapsible))));
106
- };
107
- }
108
- });
109
-
110
- //#endregion
111
- //#region src/components/collapsible/collapsible-context.vue
112
- var collapsible_context_default = collapsible_context_vue_vue_type_script_setup_true_lang_default;
113
-
114
- //#endregion
115
- //#region src/components/collapsible/collapsible-root-provider.vue?vue&type=script&setup=true&lang.ts
116
- var collapsible_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
117
- __name: "collapsible-root-provider",
118
- props: {
119
- value: {
120
- type: null,
121
- required: true
122
- },
123
- asChild: {
124
- type: Boolean,
125
- required: false
126
- }
127
- },
128
- setup(__props) {
129
- const props = __props;
130
- const collapsible = computed(() => props.value);
131
- CollapsibleProvider(collapsible);
132
- useForwardExpose();
133
- return (_ctx, _cache) => {
134
- return openBlock(), createBlock(unref(sprawlify).div, mergeProps(collapsible.value.getRootProps(), { "as-child": __props.asChild }), {
135
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
136
- _: 3
137
- }, 16, ["as-child"]);
138
- };
139
- }
140
- });
141
-
142
- //#endregion
143
- //#region src/components/collapsible/collapsible-root-provider.vue
144
- var collapsible_root_provider_default = collapsible_root_provider_vue_vue_type_script_setup_true_lang_default;
145
-
146
- //#endregion
147
- //#region src/utils/clean-props.ts
148
- const cleanProps = (obj) => {
149
- const result = {};
150
- for (const [key, value] of Object.entries(obj)) if (value !== void 0) result[key] = value;
151
- return result;
152
- };
153
-
154
- //#endregion
155
- //#region src/components/collapsible/use-collapsible.ts
156
- const useCollapsible = (props = {}, emits) => {
157
- const id = useId();
158
- const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
159
- const locale = useLocaleContext(DEFAULT_LOCALE);
160
- const context = computed(() => {
161
- const localeProps = toValue(props);
162
- return {
163
- id,
164
- dir: locale.value.dir,
165
- getRootNode: env?.value.getRootNode,
166
- ...cleanProps(localeProps),
167
- onExitComplete: () => {
168
- emits?.("exitComplete");
169
- localeProps.onExitComplete?.();
170
- },
171
- onOpenChange: (details) => {
172
- emits?.("openChange", details);
173
- emits?.("update:open", details.open);
174
- localeProps.onOpenChange?.(details);
175
- }
176
- };
177
- });
178
- const service = useMachine(collapsible.machine, context);
179
- const api = computed(() => collapsible.connect(service, normalizeProps$1));
180
- const wasVisible = ref(false);
181
- watch(() => api.value.visible, () => {
182
- if (api.value.visible) wasVisible.value = true;
183
- });
184
- return computed(() => {
185
- const localeProps = toValue(props);
186
- return {
187
- ...api.value,
188
- unmounted: !api.value.visible && !wasVisible.value && localeProps.lazyMount || localeProps.unmountOnExit && !api.value.visible && wasVisible.value
189
- };
190
- });
191
- };
192
-
193
- //#endregion
194
- //#region src/components/collapsible/collapsible-root.vue?vue&type=script&setup=true&lang.ts
195
- var collapsible_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
196
- __name: "collapsible-root",
197
- props: /* @__PURE__ */ mergeDefaults({
198
- collapsedHeight: {
199
- type: [Number, String],
200
- required: false
201
- },
202
- collapsedWidth: {
203
- type: [Number, String],
204
- required: false
205
- },
206
- defaultOpen: {
207
- type: Boolean,
208
- required: false
209
- },
210
- disabled: {
211
- type: Boolean,
212
- required: false
213
- },
214
- id: {
215
- type: String,
216
- required: false
217
- },
218
- ids: {
219
- type: Object,
220
- required: false
221
- },
222
- lazyMount: {
223
- type: Boolean,
224
- required: false
225
- },
226
- open: {
227
- type: Boolean,
228
- required: false
229
- },
230
- unmountOnExit: {
231
- type: Boolean,
232
- required: false
233
- },
234
- asChild: {
235
- type: Boolean,
236
- required: false
237
- }
238
- }, {
239
- defaultOpen: void 0,
240
- disabled: void 0,
241
- lazyMount: void 0,
242
- open: void 0,
243
- unmountOnExit: void 0
244
- }),
245
- emits: [
246
- "exitComplete",
247
- "openChange",
248
- "update:open"
249
- ],
250
- setup(__props, { emit: __emit }) {
251
- const collapsible = useCollapsible(__props, __emit);
252
- CollapsibleProvider(collapsible);
253
- useForwardExpose();
254
- return (_ctx, _cache) => {
255
- return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(collapsible).getRootProps(), { "as-child": __props.asChild }), {
256
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
257
- _: 3
258
- }, 16, ["as-child"]);
259
- };
260
- }
261
- });
262
-
263
- //#endregion
264
- //#region src/components/collapsible/collapsible-root.vue
265
- var collapsible_root_default = collapsible_root_vue_vue_type_script_setup_true_lang_default;
266
-
267
- //#endregion
268
- //#region src/components/collapsible/collapsible-trigger.vue?vue&type=script&setup=true&lang.ts
269
- var collapsible_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
270
- __name: "collapsible-trigger",
271
- props: { asChild: {
272
- type: Boolean,
273
- required: false
274
- } },
275
- setup(__props) {
276
- const collapsible = useCollapsibleContext();
277
- useForwardExpose();
278
- return (_ctx, _cache) => {
279
- return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(collapsible).getTriggerProps(), { "as-child": __props.asChild }), {
280
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
281
- _: 3
282
- }, 16, ["as-child"]);
283
- };
284
- }
285
- });
286
-
287
- //#endregion
288
- //#region src/components/collapsible/collapsible-trigger.vue
289
- var collapsible_trigger_default = collapsible_trigger_vue_vue_type_script_setup_true_lang_default;
290
-
291
- //#endregion
292
- //#region src/components/collapsible/collapsible-indicator.vue?vue&type=script&setup=true&lang.ts
293
- var collapsible_indicator_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
294
- __name: "collapsible-indicator",
295
- props: { asChild: {
296
- type: Boolean,
297
- required: false
298
- } },
299
- setup(__props) {
300
- const collapsible = useCollapsibleContext();
301
- useForwardExpose();
302
- return (_ctx, _cache) => {
303
- return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(collapsible).getIndicatorProps(), { "as-child": __props.asChild }), {
304
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
305
- _: 3
306
- }, 16, ["as-child"]);
307
- };
308
- }
309
- });
310
-
311
- //#endregion
312
- //#region src/components/collapsible/collapsible-indicator.vue
313
- var collapsible_indicator_default = collapsible_indicator_vue_vue_type_script_setup_true_lang_default;
314
-
315
- //#endregion
316
- //#region src/components/collapsible/collapsible.ts
317
- var collapsible_exports = /* @__PURE__ */ __exportAll({
318
- Content: () => collapsible_content_default,
319
- Context: () => collapsible_context_default,
320
- Indicator: () => collapsible_indicator_default,
321
- Root: () => collapsible_root_default,
322
- RootProvider: () => collapsible_root_provider_default,
323
- Trigger: () => collapsible_trigger_default
324
- });
325
-
326
- //#endregion
327
7
  export { collapsible_exports as Collapsible, collapsible_content_default as CollapsibleContent, collapsible_context_default as CollapsibleContext, collapsible_indicator_default as CollapsibleIndicator, collapsible_root_default as CollapsibleRoot, collapsible_root_provider_default as CollapsibleRootProvider, collapsible_trigger_default as CollapsibleTrigger, collapsibleAnatomy, useCollapsible, useCollapsibleContext };
@@ -0,0 +1,2 @@
1
+ import { C as createGridCollection, S as GridCollectionOptions, _ as CollectionItem, a as UseListCollectionReturn, b as createListCollection, c as UseAsyncListReturn, d as FlatTreeNode, f as TreeCollection, g as createTreeCollection, h as createFileTreeCollection, i as UseListCollectionProps, l as useAsyncList, m as TreeNode, n as UseListSelectionReturn, o as useListCollection, p as TreeCollectionOptions, r as useListSelection, s as UseAsyncListProps, t as UseListSelectionProps, u as FilePathTreeNode, v as CollectionOptions, x as GridCollection, y as ListCollection } from "../../index-DqRk-Yea.js";
2
+ export { CollectionItem, CollectionOptions, FilePathTreeNode, FlatTreeNode, GridCollection, GridCollectionOptions, ListCollection, TreeCollection, TreeCollectionOptions, TreeNode, UseAsyncListProps, UseAsyncListReturn, UseListCollectionProps, UseListCollectionReturn, UseListSelectionProps, UseListSelectionReturn, createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection };
@@ -0,0 +1,4 @@
1
+ import "../../core-DNndr38p.js";
2
+ import { a as createTreeCollection, i as createFileTreeCollection, n as useListCollection, o as createListCollection, r as useAsyncList, s as createGridCollection, t as useListSelection } from "../../collection-DR2kMzrX.js";
3
+
4
+ export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection };
@@ -0,0 +1,326 @@
1
+ import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
2
+ import * as vue454 from "vue";
3
+ import { HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SelectHTMLAttributes, SlotsType, TextareaHTMLAttributes, UnwrapRef } from "vue";
4
+ import * as _sprawlify_primitives_anatomy2 from "@sprawlify/primitives/anatomy";
5
+
6
+ //#region src/components/field/field-types.d.ts
7
+ interface ElementIds {
8
+ root?: string;
9
+ control?: string;
10
+ label?: string;
11
+ errorText?: string;
12
+ helperText?: string;
13
+ }
14
+ interface RootProps {
15
+ disabled?: boolean;
16
+ id?: string;
17
+ ids?: ElementIds;
18
+ invalid?: boolean;
19
+ readOnly?: boolean;
20
+ required?: boolean;
21
+ }
22
+ //#endregion
23
+ //#region src/components/field/use-field.d.ts
24
+ interface UseFieldProps {
25
+ id?: string;
26
+ ids?: ElementIds;
27
+ required?: boolean;
28
+ disabled?: boolean;
29
+ invalid?: boolean;
30
+ readOnly?: boolean;
31
+ }
32
+ type UseFieldReturn = ReturnType<typeof useField>;
33
+ declare const useField: (props?: MaybeRef<UseFieldProps>) => vue454.ComputedRef<{
34
+ ariaDescribedby: string | undefined;
35
+ ids: {
36
+ control: string;
37
+ label: string;
38
+ errorText: string;
39
+ helperText: string;
40
+ };
41
+ refs: {
42
+ rootRef: vue454.Ref<null, null>;
43
+ };
44
+ disabled: boolean | undefined;
45
+ invalid: boolean | undefined;
46
+ readOnly: boolean | undefined;
47
+ required: boolean | undefined;
48
+ getLabelProps: () => {
49
+ id: string;
50
+ 'data-disabled': boolean | "true" | "false";
51
+ 'data-invalid': boolean | "true" | "false";
52
+ 'data-readonly': boolean | "true" | "false";
53
+ 'data-required': boolean | "true" | "false";
54
+ htmlFor: string;
55
+ "data-scope": string;
56
+ "data-part": string;
57
+ };
58
+ getRootProps: () => {
59
+ id: string;
60
+ role: string;
61
+ 'data-disabled': boolean | "true" | "false";
62
+ 'data-invalid': boolean | "true" | "false";
63
+ 'data-readonly': boolean | "true" | "false";
64
+ "data-scope": string;
65
+ "data-part": string;
66
+ };
67
+ getInputProps: () => {
68
+ "data-scope": string;
69
+ "data-part": string;
70
+ 'aria-describedby': string | undefined;
71
+ 'aria-invalid': "true" | undefined;
72
+ 'data-invalid': boolean | "true" | "false";
73
+ 'data-required': boolean | "true" | "false";
74
+ 'data-readonly': boolean | "true" | "false";
75
+ id: string;
76
+ required: boolean | undefined;
77
+ disabled: boolean | undefined;
78
+ readOnly: boolean | undefined;
79
+ };
80
+ getTextareaProps: () => {
81
+ "data-scope": string;
82
+ "data-part": string;
83
+ 'aria-describedby': string | undefined;
84
+ 'aria-invalid': "true" | undefined;
85
+ 'data-invalid': boolean | "true" | "false";
86
+ 'data-required': boolean | "true" | "false";
87
+ 'data-readonly': boolean | "true" | "false";
88
+ id: string;
89
+ required: boolean | undefined;
90
+ disabled: boolean | undefined;
91
+ readOnly: boolean | undefined;
92
+ };
93
+ getSelectProps: () => {
94
+ "data-scope": string;
95
+ "data-part": string;
96
+ 'aria-describedby': string | undefined;
97
+ 'aria-invalid': "true" | undefined;
98
+ 'data-invalid': boolean | "true" | "false";
99
+ 'data-required': boolean | "true" | "false";
100
+ 'data-readonly': boolean | "true" | "false";
101
+ id: string;
102
+ required: boolean | undefined;
103
+ disabled: boolean | undefined;
104
+ readOnly: boolean | undefined;
105
+ };
106
+ getHelperTextProps: () => {
107
+ 'data-disabled': boolean | "true" | "false";
108
+ "data-scope": string;
109
+ "data-part": string;
110
+ id: string;
111
+ };
112
+ getErrorTextProps: () => HTMLAttributes;
113
+ getRequiredIndicatorProps: () => HTMLAttributes;
114
+ }>;
115
+ //#endregion
116
+ //#region src/components/field/use-field-context.d.ts
117
+ interface UseFieldContext extends UseFieldReturn {}
118
+ //#endregion
119
+ //#region src/components/field/field-context.vue.d.ts
120
+ interface FieldContextProps extends SlotsType<{
121
+ default: UnwrapRef<UseFieldContext>;
122
+ }> {}
123
+ declare const _default: typeof __VLS_export$9;
124
+ declare const __VLS_export$9: __VLS_WithSlots$9<vue454.DefineComponent<{}, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, true, {}, any>, {
125
+ default(field: UnwrapRef<UseFieldContext>): unknown;
126
+ }>;
127
+ type __VLS_WithSlots$9<T, S> = T & {
128
+ new (): {
129
+ $slots: S;
130
+ };
131
+ };
132
+ //#endregion
133
+ //#region src/components/field/field-error-text.vue.d.ts
134
+ interface FieldErrorTextBaseProps extends PolymorphicProps {}
135
+ interface FieldErrorTextProps extends FieldErrorTextBaseProps,
136
+ /**
137
+ * @vue-ignore
138
+ */
139
+ HTMLAttributes {}
140
+ declare const _default$1: typeof __VLS_export$8;
141
+ declare const __VLS_export$8: __VLS_WithSlots$8<vue454.DefineComponent<FieldErrorTextProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
142
+ default?: (props: {}) => any;
143
+ }>;
144
+ type __VLS_WithSlots$8<T, S> = T & {
145
+ new (): {
146
+ $slots: S;
147
+ };
148
+ };
149
+ //#endregion
150
+ //#region src/components/field/field-helper-text.vue.d.ts
151
+ interface FieldHelperTextBaseProps extends PolymorphicProps {}
152
+ interface FieldHelperTextProps extends FieldHelperTextBaseProps,
153
+ /**
154
+ * @vue-ignore
155
+ */
156
+ HTMLAttributes {}
157
+ declare const _default$2: typeof __VLS_export$7;
158
+ declare const __VLS_export$7: __VLS_WithSlots$7<vue454.DefineComponent<FieldHelperTextProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
159
+ default?: (props: {}) => any;
160
+ }>;
161
+ type __VLS_WithSlots$7<T, S> = T & {
162
+ new (): {
163
+ $slots: S;
164
+ };
165
+ };
166
+ //#endregion
167
+ //#region src/components/field/field-input.vue.d.ts
168
+ interface FieldInputBaseProps extends PolymorphicProps {}
169
+ interface FieldInputProps extends FieldInputBaseProps,
170
+ /**
171
+ * @vue-ignore
172
+ */
173
+ Omit<InputHTMLAttributes, 'value'> {
174
+ modelValue?: InputHTMLAttributes['value'];
175
+ }
176
+ declare const _default$3: typeof __VLS_export$6;
177
+ declare const __VLS_export$6: __VLS_WithSlots$6<vue454.DefineComponent<FieldInputProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {
178
+ "update:modelValue": (...args: any[]) => void;
179
+ }, string, vue454.PublicProps, Readonly<FieldInputProps> & Readonly<{
180
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
181
+ }>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
182
+ default?: (props: {}) => any;
183
+ }>;
184
+ type __VLS_WithSlots$6<T, S> = T & {
185
+ new (): {
186
+ $slots: S;
187
+ };
188
+ };
189
+ //#endregion
190
+ //#region src/components/field/field-label.vue.d.ts
191
+ interface FieldLabelBaseProps extends PolymorphicProps {}
192
+ interface FieldLabelProps extends FieldLabelBaseProps,
193
+ /**
194
+ * @vue-ignore
195
+ */
196
+ LabelHTMLAttributes {}
197
+ declare const _default$4: typeof __VLS_export$5;
198
+ declare const __VLS_export$5: __VLS_WithSlots$5<vue454.DefineComponent<FieldLabelProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
199
+ default?: (props: {}) => any;
200
+ }>;
201
+ type __VLS_WithSlots$5<T, S> = T & {
202
+ new (): {
203
+ $slots: S;
204
+ };
205
+ };
206
+ //#endregion
207
+ //#region src/components/field/field-required-indicator.vue.d.ts
208
+ interface FieldRequiredIndicatorBaseProps extends PolymorphicProps {}
209
+ interface FieldRequiredIndicatorProps extends FieldRequiredIndicatorBaseProps,
210
+ /**
211
+ * @vue-ignore
212
+ */
213
+ HTMLAttributes {}
214
+ declare const _default$5: typeof __VLS_export$4;
215
+ declare const __VLS_export$4: __VLS_WithSlots$4<vue454.DefineComponent<FieldRequiredIndicatorProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldRequiredIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
216
+ default?: (props: {}) => any;
217
+ } & {
218
+ fallback?: (props: {}) => any;
219
+ }>;
220
+ type __VLS_WithSlots$4<T, S> = T & {
221
+ new (): {
222
+ $slots: S;
223
+ };
224
+ };
225
+ //#endregion
226
+ //#region src/components/field/field-root-provider.vue.d.ts
227
+ interface RootProviderProps {
228
+ value: UnwrapRef<UseFieldReturn>;
229
+ }
230
+ interface FieldRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
231
+ interface FieldRootProviderProps extends FieldRootProviderBaseProps,
232
+ /**
233
+ * @vue-ignore
234
+ */
235
+ HTMLAttributes {}
236
+ declare const _default$7: typeof __VLS_export$3;
237
+ declare const __VLS_export$3: __VLS_WithSlots$3<vue454.DefineComponent<FieldRootProviderProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
238
+ default?: (props: {}) => any;
239
+ }>;
240
+ type __VLS_WithSlots$3<T, S> = T & {
241
+ new (): {
242
+ $slots: S;
243
+ };
244
+ };
245
+ //#endregion
246
+ //#region src/components/field/field-root.vue.d.ts
247
+ interface FieldRootBaseProps extends RootProps, PolymorphicProps {}
248
+ interface FieldRootProps extends FieldRootBaseProps,
249
+ /**
250
+ * @vue-ignore
251
+ */
252
+ HTMLAttributes {}
253
+ declare const _default$6: typeof __VLS_export$2;
254
+ declare const __VLS_export$2: __VLS_WithSlots$2<vue454.DefineComponent<FieldRootProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {}, string, vue454.PublicProps, Readonly<FieldRootProps> & Readonly<{}>, {
255
+ disabled: boolean;
256
+ invalid: boolean;
257
+ readOnly: boolean;
258
+ required: boolean;
259
+ }, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
260
+ default?: (props: {}) => any;
261
+ }>;
262
+ type __VLS_WithSlots$2<T, S> = T & {
263
+ new (): {
264
+ $slots: S;
265
+ };
266
+ };
267
+ //#endregion
268
+ //#region src/components/field/field-select.vue.d.ts
269
+ interface FieldSelectBaseProps extends PolymorphicProps {}
270
+ interface FieldSelectProps extends FieldSelectBaseProps,
271
+ /**
272
+ * @vue-ignore
273
+ */
274
+ Omit<SelectHTMLAttributes, 'value'> {
275
+ modelValue?: SelectHTMLAttributes['value'];
276
+ }
277
+ declare const _default$8: typeof __VLS_export$1;
278
+ declare const __VLS_export$1: __VLS_WithSlots$1<vue454.DefineComponent<FieldSelectProps & {
279
+ modelValue?: string;
280
+ }, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {
281
+ "update:modelValue": (...args: any[]) => void;
282
+ }, string, vue454.PublicProps, Readonly<FieldSelectProps & {
283
+ modelValue?: string;
284
+ }> & Readonly<{
285
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
286
+ }>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
287
+ default?: (props: {}) => any;
288
+ }>;
289
+ type __VLS_WithSlots$1<T, S> = T & {
290
+ new (): {
291
+ $slots: S;
292
+ };
293
+ };
294
+ //#endregion
295
+ //#region src/components/field/field-textarea.vue.d.ts
296
+ interface FieldTextareaBaseProps extends PolymorphicProps {
297
+ autoresize?: boolean;
298
+ }
299
+ interface FieldTextareaProps extends FieldTextareaBaseProps,
300
+ /**
301
+ * @vue-ignore
302
+ */
303
+ Omit<TextareaHTMLAttributes, 'value'> {
304
+ modelValue?: TextareaHTMLAttributes['value'];
305
+ }
306
+ declare const _default$9: typeof __VLS_export;
307
+ declare const __VLS_export: __VLS_WithSlots<vue454.DefineComponent<FieldTextareaProps, {}, {}, {}, {}, vue454.ComponentOptionsMixin, vue454.ComponentOptionsMixin, {
308
+ "update:modelValue": (...args: any[]) => void;
309
+ }, string, vue454.PublicProps, Readonly<FieldTextareaProps> & Readonly<{
310
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
311
+ }>, {}, {}, {}, {}, string, vue454.ComponentProvideOptions, false, {}, any>, {
312
+ default?: (props: {}) => any;
313
+ }>;
314
+ type __VLS_WithSlots<T, S> = T & {
315
+ new (): {
316
+ $slots: S;
317
+ };
318
+ };
319
+ //#endregion
320
+ //#region src/components/field/field-anatomy.d.ts
321
+ declare const fieldAnatomy: _sprawlify_primitives_anatomy2.AnatomyInstance<"input" | "label" | "select" | "textarea" | "root" | "errorText" | "helperText" | "requiredIndicator">;
322
+ declare namespace field_d_exports {
323
+ export { _default as Context, FieldContextProps as ContextProps, _default$1 as ErrorText, FieldErrorTextBaseProps as ErrorTextBaseProps, FieldErrorTextProps as ErrorTextProps, _default$2 as HelperText, FieldHelperTextBaseProps as HelperTextBaseProps, FieldHelperTextProps as HelperTextProps, _default$3 as Input, FieldInputBaseProps as InputBaseProps, FieldInputProps as InputProps, _default$4 as Label, FieldLabelBaseProps as LabelBaseProps, FieldLabelProps as LabelProps, _default$5 as RequiredIndicator, FieldRequiredIndicatorBaseProps as RequiredIndicatorBaseProps, FieldRequiredIndicatorProps as RequiredIndicatorProps, _default$6 as Root, FieldRootBaseProps as RootBaseProps, FieldRootProps as RootProps, _default$7 as RootProvider, FieldRootProviderBaseProps as RootProviderBaseProps, FieldRootProviderProps as RootProviderProps, _default$8 as Select, FieldSelectBaseProps as SelectBaseProps, FieldSelectProps as SelectProps, _default$9 as Textarea, FieldTextareaBaseProps as TextareaBaseProps, FieldTextareaProps as TextareaProps };
324
+ }
325
+ //#endregion
326
+ export { field_d_exports as Field, _default as FieldContext, type FieldContextProps, _default$1 as FieldErrorText, type FieldErrorTextBaseProps, type FieldErrorTextProps, _default$2 as FieldHelperText, type FieldHelperTextBaseProps, type FieldHelperTextProps, _default$3 as FieldInput, type FieldInputBaseProps, type FieldInputProps, _default$4 as FieldLabel, type FieldLabelBaseProps, type FieldLabelProps, _default$5 as FieldRequiredIndicator, type FieldRequiredIndicatorBaseProps, type FieldRequiredIndicatorProps, _default$6 as FieldRoot, type FieldRootBaseProps, type FieldRootProps, _default$7 as FieldRootProvider, type FieldRootProviderBaseProps, type FieldRootProviderProps, _default$8 as FieldSelect, type FieldSelectBaseProps, type FieldSelectProps, _default$9 as FieldTextarea, type FieldTextareaBaseProps, type FieldTextareaProps, type UseFieldContext, type UseFieldProps, type UseFieldReturn, fieldAnatomy, useField, useFieldContext };
@@ -0,0 +1,7 @@
1
+ import "../../core-DNndr38p.js";
2
+ import "../../providers-B2CNPFg1.js";
3
+ import "../../use-forward-expose-4p5AGAI3.js";
4
+ import "../../factory-BH3WrWd2.js";
5
+ import { a as useField, c as field_required_indicator_default, d as field_helper_text_default, f as field_error_text_default, i as field_root_default, l as field_label_default, m as useFieldContext, n as field_textarea_default, o as fieldAnatomy, p as field_context_default, r as field_select_default, s as field_root_provider_default, t as field_exports, u as field_input_default } from "../../field-DnHnX3Tf.js";
6
+
7
+ export { field_exports as Field, field_context_default as FieldContext, field_error_text_default as FieldErrorText, field_helper_text_default as FieldHelperText, field_input_default as FieldInput, field_label_default as FieldLabel, field_required_indicator_default as FieldRequiredIndicator, field_root_default as FieldRoot, field_root_provider_default as FieldRootProvider, field_select_default as FieldSelect, field_textarea_default as FieldTextarea, fieldAnatomy, useField, useFieldContext };