@sprawlify/vue 0.0.65 → 0.0.67
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.
- package/dist/clean-props-BDv2zb5M.js +9 -0
- package/dist/collapsible-DQfAISmg.js +259 -0
- package/dist/collection-Ba0Aeh5P.js +218 -0
- package/dist/components/accordion/index.d.ts +195 -0
- package/dist/components/accordion/index.js +361 -0
- package/dist/components/angle-slider/index.d.ts +230 -0
- package/dist/components/angle-slider/index.js +371 -0
- package/dist/components/avatar/index.d.ts +116 -0
- package/dist/components/avatar/index.js +177 -0
- package/dist/components/bottom-sheet/index.d.ts +241 -0
- package/dist/components/bottom-sheet/index.js +429 -0
- package/dist/components/carousel/index.d.ts +306 -0
- package/dist/components/carousel/index.js +500 -0
- package/dist/components/checkbox/index.d.ts +273 -0
- package/dist/components/checkbox/index.js +500 -0
- package/dist/components/client-only/index.d.ts +20 -0
- package/dist/components/client-only/index.js +22 -0
- package/dist/components/clipboard/index.d.ts +204 -0
- package/dist/components/clipboard/index.js +297 -0
- package/dist/components/collapsible/index.d.ts +15 -23
- package/dist/components/collapsible/index.js +5 -325
- package/dist/components/collection/index.d.ts +2 -0
- package/dist/components/collection/index.js +4 -0
- package/dist/components/color-picker/index.d.ts +610 -0
- package/dist/components/color-picker/index.js +1127 -0
- package/dist/components/combobox/index.d.ts +618 -0
- package/dist/components/combobox/index.js +802 -0
- package/dist/components/date-picker/index.d.ts +597 -0
- package/dist/components/date-picker/index.js +1110 -0
- package/dist/components/dialog/index.d.ts +270 -0
- package/dist/components/dialog/index.js +433 -0
- package/dist/components/download-trigger/index.d.ts +29 -0
- package/dist/components/download-trigger/index.js +68 -0
- package/dist/components/editable/index.d.ts +288 -0
- package/dist/components/editable/index.js +459 -0
- package/dist/components/field/index.d.ts +326 -0
- package/dist/components/field/index.js +7 -0
- package/dist/components/fieldset/index.d.ts +161 -0
- package/dist/components/fieldset/index.js +7 -0
- package/dist/components/highlight/index.d.ts +35 -0
- package/dist/components/highlight/index.js +57 -0
- package/dist/components/menu/index.d.ts +498 -0
- package/dist/components/menu/index.js +885 -0
- package/dist/components/presence/index.d.ts +3 -0
- package/dist/components/presence/index.js +6 -0
- package/dist/components/select/index.d.ts +430 -0
- package/dist/components/select/index.js +769 -0
- package/dist/{use-forward-expose-BIk4OI3R.js → core-DNndr38p.js} +2 -170
- package/dist/create-split-props-YZ3qgXe_.js +11 -0
- package/dist/factory-BH3WrWd2.js +68 -0
- package/dist/factory-D_ge_w76.d.ts +8 -0
- package/dist/field-DnHnX3Tf.js +501 -0
- package/dist/fieldset-DzhN7Zrg.js +278 -0
- package/dist/{types-BQfkZGpL.d.ts → index-B66Om_3U.d.ts} +1 -9
- package/dist/index-BBHms9-0.d.ts +91 -0
- package/dist/index-CDQghZtv.d.ts +57 -0
- package/dist/index-DqRk-Yea.d.ts +199 -0
- package/dist/index.d.ts +4 -92
- package/dist/index.js +4 -50
- package/dist/presence-CvUnYMZQ.js +105 -0
- package/dist/presence-types-Bv1E60Cw.d.ts +13 -0
- package/dist/providers-B2CNPFg1.js +108 -0
- package/dist/types-Bj-dS2Hc.d.ts +9 -0
- package/dist/use-forward-expose-4p5AGAI3.js +67 -0
- package/dist/use-render-strategy-BkxoN6ll.js +7 -0
- package/dist/use-render-strategy-CHj_pCfT.d.ts +9 -0
- package/dist/utils-B4FuOOE-.js +51 -0
- package/package.json +86 -2
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
|
|
2
|
+
import * as vue419 from "vue";
|
|
3
|
+
import { HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SelectHTMLAttributes, SlotsType, TextareaHTMLAttributes, UnwrapRef } from "vue";
|
|
4
|
+
import * as _sprawlify_primitives_anatomy1 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>) => vue419.ComputedRef<{
|
|
34
|
+
ariaDescribedby: string | undefined;
|
|
35
|
+
ids: {
|
|
36
|
+
control: string;
|
|
37
|
+
label: string;
|
|
38
|
+
errorText: string;
|
|
39
|
+
helperText: string;
|
|
40
|
+
};
|
|
41
|
+
refs: {
|
|
42
|
+
rootRef: vue419.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<vue419.DefineComponent<{}, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldErrorTextProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldHelperTextProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldInputProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {
|
|
178
|
+
"update:modelValue": (...args: any[]) => void;
|
|
179
|
+
}, string, vue419.PublicProps, Readonly<FieldInputProps> & Readonly<{
|
|
180
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
181
|
+
}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldLabelProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldRequiredIndicatorProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldRequiredIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldRootProviderProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldRootProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {}, string, vue419.PublicProps, Readonly<FieldRootProps> & Readonly<{}>, {
|
|
255
|
+
disabled: boolean;
|
|
256
|
+
required: boolean;
|
|
257
|
+
invalid: boolean;
|
|
258
|
+
readOnly: boolean;
|
|
259
|
+
}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldSelectProps & {
|
|
279
|
+
modelValue?: string;
|
|
280
|
+
}, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {
|
|
281
|
+
"update:modelValue": (...args: any[]) => void;
|
|
282
|
+
}, string, vue419.PublicProps, Readonly<FieldSelectProps & {
|
|
283
|
+
modelValue?: string;
|
|
284
|
+
}> & Readonly<{
|
|
285
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
286
|
+
}>, {}, {}, {}, {}, string, vue419.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<vue419.DefineComponent<FieldTextareaProps, {}, {}, {}, {}, vue419.ComponentOptionsMixin, vue419.ComponentOptionsMixin, {
|
|
308
|
+
"update:modelValue": (...args: any[]) => void;
|
|
309
|
+
}, string, vue419.PublicProps, Readonly<FieldTextareaProps> & Readonly<{
|
|
310
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
311
|
+
}>, {}, {}, {}, {}, string, vue419.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_anatomy1.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 };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { t as PolymorphicProps } from "../../factory-D_ge_w76.js";
|
|
2
|
+
import * as vue246 from "vue";
|
|
3
|
+
import { FieldsetHTMLAttributes, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
4
|
+
import * as _sprawlify_primitives_anatomy0 from "@sprawlify/primitives/anatomy";
|
|
5
|
+
|
|
6
|
+
//#region src/components/fieldset/use-fieldset.d.ts
|
|
7
|
+
interface UseFieldsetProps {
|
|
8
|
+
id?: string;
|
|
9
|
+
disabled?: boolean | 'true' | 'false';
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
}
|
|
12
|
+
type UseFieldsetReturn = ReturnType<typeof useFieldset>;
|
|
13
|
+
declare const useFieldset: (props?: MaybeRef<UseFieldsetProps>) => vue246.ComputedRef<{
|
|
14
|
+
refs: {
|
|
15
|
+
rootRef: vue246.Ref<null, null>;
|
|
16
|
+
};
|
|
17
|
+
ids: {
|
|
18
|
+
legend: string;
|
|
19
|
+
errorText: string;
|
|
20
|
+
helperText: string;
|
|
21
|
+
};
|
|
22
|
+
disabled: boolean | "true" | "false" | undefined;
|
|
23
|
+
invalid: boolean | undefined;
|
|
24
|
+
getRootProps: () => FieldsetHTMLAttributes;
|
|
25
|
+
getLegendProps: () => {
|
|
26
|
+
'data-disabled': boolean | "true" | "false";
|
|
27
|
+
'data-invalid': boolean | "true" | "false";
|
|
28
|
+
"data-scope": string;
|
|
29
|
+
"data-part": string;
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
getHelperTextProps: () => {
|
|
33
|
+
"data-scope": string;
|
|
34
|
+
"data-part": string;
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
getErrorTextProps: () => HTMLAttributes;
|
|
38
|
+
}>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/fieldset/use-fieldset-context.d.ts
|
|
41
|
+
interface UseFieldsetContext extends UseFieldsetReturn {}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/fieldset/fieldset-context.vue.d.ts
|
|
44
|
+
interface FieldsetContextProps extends SlotsType<{
|
|
45
|
+
default: UnwrapRef<UseFieldsetContext>;
|
|
46
|
+
}> {}
|
|
47
|
+
declare const _default: typeof __VLS_export$5;
|
|
48
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue246.DefineComponent<{}, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, true, {}, any>, {
|
|
49
|
+
default(fieldset: UnwrapRef<UseFieldsetContext>): unknown;
|
|
50
|
+
}>;
|
|
51
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/fieldset/fieldset-error-text.vue.d.ts
|
|
58
|
+
interface FieldsetErrorTextBaseProps extends PolymorphicProps {}
|
|
59
|
+
interface FieldsetErrorTextProps extends FieldsetErrorTextBaseProps,
|
|
60
|
+
/**
|
|
61
|
+
* @vue-ignore
|
|
62
|
+
*/
|
|
63
|
+
HTMLAttributes {}
|
|
64
|
+
declare const _default$1: typeof __VLS_export$4;
|
|
65
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue246.DefineComponent<FieldsetErrorTextProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetErrorTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
66
|
+
default?: (props: {}) => any;
|
|
67
|
+
}>;
|
|
68
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/fieldset/fieldset-helper-text.vue.d.ts
|
|
75
|
+
interface FieldsetHelperTextBaseProps extends PolymorphicProps {}
|
|
76
|
+
interface FieldsetHelperTextProps extends FieldsetHelperTextBaseProps,
|
|
77
|
+
/**
|
|
78
|
+
* @vue-ignore
|
|
79
|
+
*/
|
|
80
|
+
HTMLAttributes {}
|
|
81
|
+
declare const _default$2: typeof __VLS_export$3;
|
|
82
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue246.DefineComponent<FieldsetHelperTextProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetHelperTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
83
|
+
default?: (props: {}) => any;
|
|
84
|
+
}>;
|
|
85
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/fieldset/fieldset-legend.vue.d.ts
|
|
92
|
+
interface FieldsetLegendBaseProps extends PolymorphicProps {}
|
|
93
|
+
interface FieldsetLegendProps extends FieldsetLegendBaseProps,
|
|
94
|
+
/**
|
|
95
|
+
* @vue-ignore
|
|
96
|
+
*/
|
|
97
|
+
HTMLAttributes {}
|
|
98
|
+
declare const _default$3: typeof __VLS_export$2;
|
|
99
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue246.DefineComponent<FieldsetLegendProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetLegendProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
100
|
+
default?: (props: {}) => any;
|
|
101
|
+
}>;
|
|
102
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
103
|
+
new (): {
|
|
104
|
+
$slots: S;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/components/fieldset/fieldset-root-provider.vue.d.ts
|
|
109
|
+
interface RootProviderProps {
|
|
110
|
+
value: UnwrapRef<UseFieldsetReturn>;
|
|
111
|
+
}
|
|
112
|
+
interface FieldsetRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
113
|
+
interface FieldsetRootProviderProps extends FieldsetRootProviderBaseProps,
|
|
114
|
+
/**
|
|
115
|
+
* @vue-ignore
|
|
116
|
+
*/
|
|
117
|
+
FieldsetHTMLAttributes {}
|
|
118
|
+
declare const _default$5: typeof __VLS_export$1;
|
|
119
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue246.DefineComponent<FieldsetRootProviderProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
}>;
|
|
122
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/components/fieldset/fieldset-types.d.ts
|
|
129
|
+
interface RootProps {
|
|
130
|
+
disabled?: boolean | 'true' | 'false';
|
|
131
|
+
id?: string;
|
|
132
|
+
invalid?: boolean;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/components/fieldset/fieldset-root.vue.d.ts
|
|
136
|
+
interface FieldsetRootBaseProps extends RootProps, PolymorphicProps {}
|
|
137
|
+
interface FieldsetRootProps extends FieldsetRootBaseProps,
|
|
138
|
+
/**
|
|
139
|
+
* @vue-ignore
|
|
140
|
+
*/
|
|
141
|
+
FieldsetHTMLAttributes {}
|
|
142
|
+
declare const _default$4: typeof __VLS_export;
|
|
143
|
+
declare const __VLS_export: __VLS_WithSlots<vue246.DefineComponent<FieldsetRootProps, {}, {}, {}, {}, vue246.ComponentOptionsMixin, vue246.ComponentOptionsMixin, {}, string, vue246.PublicProps, Readonly<FieldsetRootProps> & Readonly<{}>, {
|
|
144
|
+
disabled: boolean | "true" | "false";
|
|
145
|
+
invalid: boolean;
|
|
146
|
+
}, {}, {}, {}, string, vue246.ComponentProvideOptions, false, {}, any>, {
|
|
147
|
+
default?: (props: {}) => any;
|
|
148
|
+
}>;
|
|
149
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
150
|
+
new (): {
|
|
151
|
+
$slots: S;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/components/fieldset/fieldset-anatomy.d.ts
|
|
156
|
+
declare const fieldsetAnatomy: _sprawlify_primitives_anatomy0.AnatomyInstance<"legend" | "root" | "errorText" | "helperText">;
|
|
157
|
+
declare namespace fieldset_d_exports {
|
|
158
|
+
export { _default as Context, FieldsetContextProps as ContextProps, _default$1 as ErrorText, FieldsetErrorTextBaseProps as ErrorTextBaseProps, FieldsetErrorTextProps as ErrorTextProps, _default$2 as HelperText, FieldsetHelperTextBaseProps as HelperTextBaseProps, FieldsetHelperTextProps as HelperTextProps, _default$3 as Legend, FieldsetLegendBaseProps as LegendBaseProps, FieldsetLegendProps as LegendProps, _default$4 as Root, FieldsetRootBaseProps as RootBaseProps, FieldsetRootProps as RootProps, _default$5 as RootProvider, FieldsetRootProviderBaseProps as RootProviderBaseProps, FieldsetRootProviderProps as RootProviderProps };
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { fieldset_d_exports as Fieldset, _default as FieldsetContext, type FieldsetContextProps, _default$1 as FieldsetErrorText, type FieldsetErrorTextBaseProps, type FieldsetErrorTextProps, _default$2 as FieldsetHelperText, type FieldsetHelperTextBaseProps, type FieldsetHelperTextProps, _default$3 as FieldsetLegend, type FieldsetLegendBaseProps, type FieldsetLegendProps, _default$4 as FieldsetRoot, type FieldsetRootBaseProps, type FieldsetRootProps, _default$5 as FieldsetRootProvider, type FieldsetRootProviderBaseProps, type FieldsetRootProviderProps, type UseFieldsetContext, type UseFieldsetProps, type UseFieldsetReturn, fieldsetAnatomy, useFieldset, useFieldsetContext };
|
|
@@ -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 fieldset_root_provider_default, c as fieldset_error_text_default, i as fieldsetAnatomy, l as fieldset_context_default, n as fieldset_root_default, o as fieldset_legend_default, r as useFieldset, s as fieldset_helper_text_default, t as fieldset_exports, u as useFieldsetContext } from "../../fieldset-DzhN7Zrg.js";
|
|
6
|
+
|
|
7
|
+
export { fieldset_exports as Fieldset, fieldset_context_default as FieldsetContext, fieldset_error_text_default as FieldsetErrorText, fieldset_helper_text_default as FieldsetHelperText, fieldset_legend_default as FieldsetLegend, fieldset_root_default as FieldsetRoot, fieldset_root_provider_default as FieldsetRootProvider, fieldsetAnatomy, useFieldset, useFieldsetContext };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as vue258 from "vue";
|
|
2
|
+
import { HTMLAttributes, MaybeRef } from "vue";
|
|
3
|
+
import * as _sprawlify_primitives_highlight_word0 from "@sprawlify/primitives/highlight-word";
|
|
4
|
+
|
|
5
|
+
//#region src/components/highlight/highlight-types.d.ts
|
|
6
|
+
interface UseHighlightProps {
|
|
7
|
+
text: string;
|
|
8
|
+
query: string | string[];
|
|
9
|
+
ignoreCase?: boolean;
|
|
10
|
+
matchAll?: boolean;
|
|
11
|
+
exactMatch?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface HighlightChunk {
|
|
14
|
+
text: string;
|
|
15
|
+
match: boolean;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/highlight/use-highlight.d.ts
|
|
19
|
+
declare const useHighlight: (props: MaybeRef<UseHighlightProps>) => vue258.ComputedRef<_sprawlify_primitives_highlight_word0.HighlightChunk[]>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/highlight/highlight.vue.d.ts
|
|
22
|
+
interface HighlightBaseProps extends UseHighlightProps {}
|
|
23
|
+
interface HighlightProps extends HighlightBaseProps,
|
|
24
|
+
/**
|
|
25
|
+
* @vue-ignore
|
|
26
|
+
*/
|
|
27
|
+
HTMLAttributes {}
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
declare const __VLS_export: vue258.DefineComponent<HighlightProps, {}, {}, {}, {}, vue258.ComponentOptionsMixin, vue258.ComponentOptionsMixin, {}, string, vue258.PublicProps, Readonly<HighlightProps> & Readonly<{}>, {
|
|
30
|
+
ignoreCase: boolean;
|
|
31
|
+
matchAll: boolean;
|
|
32
|
+
exactMatch: boolean;
|
|
33
|
+
}, {}, {}, {}, string, vue258.ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { _default as Highlight, type HighlightChunk, type HighlightProps, type UseHighlightProps, useHighlight };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { t as cleanProps } from "../../clean-props-BDv2zb5M.js";
|
|
2
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, toValue, unref } from "vue";
|
|
3
|
+
import { highlightWord } from "@sprawlify/primitives/highlight-word";
|
|
4
|
+
|
|
5
|
+
//#region src/components/highlight/use-highlight.ts
|
|
6
|
+
const useHighlight = (props) => {
|
|
7
|
+
return computed(() => highlightWord(cleanProps(toValue(props))));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/highlight/highlight.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
+
const _hoisted_1 = { key: 0 };
|
|
13
|
+
var highlight_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "highlight",
|
|
15
|
+
props: {
|
|
16
|
+
text: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
query: {
|
|
21
|
+
type: [String, Array],
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
ignoreCase: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: false,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
matchAll: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: false,
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
exactMatch: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: false,
|
|
37
|
+
default: void 0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
if (typeof props.text !== "string") throw new Error("[sprawlify/highlight] text must be a string");
|
|
43
|
+
const chunks = useHighlight(props);
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(chunks), (chunk) => {
|
|
46
|
+
return openBlock(), createElementBlock(Fragment, null, [chunk.match ? (openBlock(), createElementBlock("mark", _hoisted_1, toDisplayString(chunk.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(chunk.text), 1)], 64))], 64);
|
|
47
|
+
}), 256);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/highlight/highlight.vue
|
|
54
|
+
var highlight_default = highlight_vue_vue_type_script_setup_true_lang_default;
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { highlight_default as Highlight, useHighlight };
|