@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.
- package/dist/boolean-CpMsIRK4.js +7 -0
- package/dist/{collapsible-DQfAISmg.js → collapsible-jX9S7WYj.js} +5 -4
- package/dist/{collection-Ba0Aeh5P.js → collection-DGKjEgOz.js} +1 -1
- package/dist/components/accordion/index.d.ts +19 -19
- package/dist/components/accordion/index.js +8 -7
- package/dist/components/angle-slider/index.d.ts +18 -18
- package/dist/components/angle-slider/index.js +5 -4
- package/dist/components/avatar/index.d.ts +11 -11
- package/dist/components/avatar/index.js +5 -4
- package/dist/components/bottom-sheet/index.d.ts +22 -22
- package/dist/components/bottom-sheet/index.js +8 -7
- package/dist/components/carousel/index.d.ts +25 -25
- package/dist/components/carousel/index.js +5 -4
- package/dist/components/checkbox/index.d.ts +27 -27
- package/dist/components/checkbox/index.js +8 -12
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -17
- package/dist/components/clipboard/index.js +5 -4
- package/dist/components/collapsible/index.d.ts +16 -16
- package/dist/components/collapsible/index.js +5 -4
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +56 -56
- package/dist/components/color-picker/index.js +8 -7
- package/dist/components/combobox/index.d.ts +38 -38
- package/dist/components/combobox/index.js +9 -8
- package/dist/components/date-picker/index.d.ts +47 -47
- package/dist/components/date-picker/index.js +7 -6
- package/dist/components/dialog/index.d.ts +35 -35
- package/dist/components/dialog/index.js +7 -6
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/download-trigger/index.js +4 -3
- package/dist/components/editable/index.d.ts +29 -29
- package/dist/components/editable/index.js +6 -5
- package/dist/components/field/index.d.ts +25 -25
- package/dist/components/field/index.js +5 -4
- package/dist/components/fieldset/index.d.ts +13 -13
- package/dist/components/fieldset/index.js +5 -4
- package/dist/components/file-upload/index.d.ts +329 -0
- package/dist/components/file-upload/index.js +597 -0
- package/dist/components/floating-panel/index.d.ts +325 -0
- package/dist/components/floating-panel/index.js +568 -0
- package/dist/components/focus-trap/index.d.ts +48 -0
- package/dist/components/focus-trap/index.js +96 -0
- package/dist/components/format/index.d.ts +40 -0
- package/dist/components/format/index.js +148 -0
- package/dist/components/frame/index.d.ts +39 -0
- package/dist/components/frame/index.js +111 -0
- package/dist/components/highlight/index.d.ts +4 -4
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +200 -0
- package/dist/components/hover-card/index.js +335 -0
- package/dist/components/image-cropper/index.d.ts +211 -0
- package/dist/components/image-cropper/index.js +381 -0
- package/dist/components/json-tree-view/index.d.ts +91 -0
- package/dist/components/json-tree-view/index.js +490 -0
- package/dist/components/listbox/index.d.ts +325 -0
- package/dist/components/listbox/index.js +533 -0
- package/dist/components/marquee/index.d.ts +268 -0
- package/dist/components/marquee/index.js +340 -0
- package/dist/components/menu/index.d.ts +55 -56
- package/dist/components/menu/index.js +7 -6
- package/dist/components/navigation-menu/index.d.ts +272 -0
- package/dist/components/navigation-menu/index.js +559 -0
- package/dist/components/number-input/index.d.ts +253 -0
- package/dist/components/number-input/index.js +427 -0
- package/dist/components/pagination/index.d.ts +211 -0
- package/dist/components/pagination/index.js +346 -0
- package/dist/components/password-input/index.d.ts +213 -0
- package/dist/components/password-input/index.js +325 -0
- package/dist/components/pin-input/index.d.ts +198 -0
- package/dist/components/pin-input/index.js +346 -0
- package/dist/components/popover/index.d.ts +318 -0
- package/dist/components/popover/index.js +486 -0
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +4 -3
- package/dist/components/progress/index.d.ts +231 -0
- package/dist/components/progress/index.js +372 -0
- package/dist/components/qr-code/index.d.ts +159 -0
- package/dist/components/qr-code/index.js +263 -0
- package/dist/components/radio-group/index.d.ts +231 -0
- package/dist/components/radio-group/index.js +378 -0
- package/dist/components/rating-group/index.d.ts +201 -0
- package/dist/components/rating-group/index.js +330 -0
- package/dist/components/scroll-area/index.d.ts +171 -0
- package/dist/components/scroll-area/index.js +264 -0
- package/dist/components/segment-group/index.d.ts +231 -0
- package/dist/components/segment-group/index.js +422 -0
- package/dist/components/select/index.d.ts +39 -39
- package/dist/components/select/index.js +9 -8
- package/dist/components/signature-pad/index.d.ts +202 -0
- package/dist/components/signature-pad/index.js +345 -0
- package/dist/components/slider/index.d.ts +300 -0
- package/dist/components/slider/index.js +511 -0
- package/dist/components/splitter/index.d.ts +162 -0
- package/dist/components/splitter/index.js +280 -0
- package/dist/components/steps/index.d.ts +290 -0
- package/dist/components/steps/index.js +469 -0
- package/dist/components/switch/index.d.ts +179 -0
- package/dist/components/switch/index.js +290 -0
- package/dist/components/tabs/index.d.ts +181 -0
- package/dist/components/tabs/index.js +335 -0
- package/dist/components/tags-input/index.d.ts +339 -0
- package/dist/components/tags-input/index.js +569 -0
- package/dist/components/timer/index.d.ts +177 -0
- package/dist/components/timer/index.js +295 -0
- package/dist/components/tree-view/index.d.ts +6 -0
- package/dist/components/tree-view/index.js +11 -0
- package/dist/create-context-Ds1GbsVc.js +16 -0
- package/dist/{field-DnHnX3Tf.js → field-CtPR24u6.js} +4 -3
- package/dist/{fieldset-DzhN7Zrg.js → fieldset-D5SznrKY.js} +4 -3
- package/dist/{index-CDQghZtv.d.ts → index-B_UiXhk3.d.ts} +11 -11
- package/dist/index-DwWFWpls.d.ts +447 -0
- package/dist/{index-BBHms9-0.d.ts → index-xb1q4_02.d.ts} +7 -7
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -2
- package/dist/{presence-CvUnYMZQ.js → presence-B4-UhJY9.js} +3 -2
- package/dist/{providers-B2CNPFg1.js → providers-DNBWT-O_.js} +1 -1
- package/dist/tree-view-Ctpu5RjE.js +737 -0
- package/dist/{use-forward-expose-4p5AGAI3.js → use-forward-expose-CCAmHTUB.js} +2 -15
- package/dist/{use-render-strategy-BkxoN6ll.js → use-render-strategy-DA33j31C.js} +1 -1
- package/package.json +126 -2
- /package/dist/{clean-props-BDv2zb5M.js → clean-props-D2R4tz5e.js} +0 -0
- /package/dist/{create-split-props-YZ3qgXe_.js → create-split-props-0RD5_O4P.js} +0 -0
- /package/dist/{factory-D_ge_w76.d.ts → factory-B5zr8_kk.d.ts} +0 -0
- /package/dist/{factory-BH3WrWd2.js → factory-Co08Aw8u.js} +0 -0
- /package/dist/{index-B66Om_3U.d.ts → index-CCRVRFFQ.d.ts} +0 -0
- /package/dist/{index-DqRk-Yea.d.ts → index-DhFoJHfp.d.ts} +0 -0
- /package/dist/{presence-types-Bv1E60Cw.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
- /package/dist/{types-Bj-dS2Hc.d.ts → types-DIEO6uP3.d.ts} +0 -0
- /package/dist/{use-render-strategy-CHj_pCfT.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
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 vue1020 from "vue";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
6
|
+
import * as numberInput from "@sprawlify/primitives/machines/number-input";
|
|
7
|
+
import { FocusChangeDetails, FocusChangeDetails as NumberInputFocusChangeDetails, ValueChangeDetails, ValueChangeDetails as NumberInputValueChangeDetails, ValueInvalidDetails, ValueInvalidDetails as NumberInputValueInvalidDetails, anatomy as numberInputAnatomy } from "@sprawlify/primitives/machines/number-input";
|
|
8
|
+
|
|
9
|
+
//#region src/components/number-input/number-input-types.d.ts
|
|
10
|
+
interface RootProps {
|
|
11
|
+
allowMouseWheel?: boolean;
|
|
12
|
+
allowOverflow?: boolean;
|
|
13
|
+
clampValueOnBlur?: boolean;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
focusInputOnChange?: boolean;
|
|
17
|
+
form?: string;
|
|
18
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
19
|
+
id?: string;
|
|
20
|
+
ids?: Partial<{
|
|
21
|
+
root: string;
|
|
22
|
+
label: string;
|
|
23
|
+
input: string;
|
|
24
|
+
incrementTrigger: string;
|
|
25
|
+
decrementTrigger: string;
|
|
26
|
+
scrubber: string;
|
|
27
|
+
}>;
|
|
28
|
+
inputMode?: 'text' | 'tel' | 'numeric' | 'decimal';
|
|
29
|
+
invalid?: boolean;
|
|
30
|
+
locale?: string;
|
|
31
|
+
max?: number;
|
|
32
|
+
min?: number;
|
|
33
|
+
modelValue?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
pattern?: string;
|
|
36
|
+
readOnly?: boolean;
|
|
37
|
+
required?: boolean;
|
|
38
|
+
spinOnPress?: boolean;
|
|
39
|
+
step?: number;
|
|
40
|
+
translations?: numberInput.IntlTranslations;
|
|
41
|
+
}
|
|
42
|
+
type RootEmits = {
|
|
43
|
+
focusChange: [details: numberInput.FocusChangeDetails];
|
|
44
|
+
valueChange: [details: numberInput.ValueChangeDetails];
|
|
45
|
+
valueInvalid: [details: numberInput.ValueInvalidDetails];
|
|
46
|
+
'update:modelValue': [value: string];
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/number-input/use-number-input.d.ts
|
|
50
|
+
interface UseNumberInputProps extends Optional<Omit<numberInput.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
51
|
+
modelValue?: numberInput.Props['value'];
|
|
52
|
+
}
|
|
53
|
+
interface UseNumberInputReturn extends ComputedRef<numberInput.Api<PropTypes>> {}
|
|
54
|
+
declare const useNumberInput: (props?: MaybeRef<UseNumberInputProps>, emit?: EmitFn$1<RootEmits>) => UseNumberInputReturn;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/number-input/use-number-input-context.d.ts
|
|
57
|
+
interface UseNumberInputContext extends UseNumberInputReturn {}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/number-input/number-input-context.vue.d.ts
|
|
60
|
+
interface NumberInputContextProps extends SlotsType<{
|
|
61
|
+
default: UnwrapRef<UseNumberInputContext>;
|
|
62
|
+
}> {}
|
|
63
|
+
declare const _default: typeof __VLS_export$9;
|
|
64
|
+
declare const __VLS_export$9: __VLS_WithSlots$9<vue1020.DefineComponent<{}, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, true, {}, any>, {
|
|
65
|
+
default(numberInput: UnwrapRef<UseNumberInputContext>): unknown;
|
|
66
|
+
}>;
|
|
67
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/number-input/number-input-control.vue.d.ts
|
|
74
|
+
interface NumberInputControlBaseProps extends PolymorphicProps {}
|
|
75
|
+
interface NumberInputControlProps extends NumberInputControlBaseProps,
|
|
76
|
+
/**
|
|
77
|
+
* @vue-ignore
|
|
78
|
+
*/
|
|
79
|
+
HTMLAttributes {}
|
|
80
|
+
declare const _default$1: typeof __VLS_export$8;
|
|
81
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<vue1020.DefineComponent<NumberInputControlProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
82
|
+
default?: (props: {}) => any;
|
|
83
|
+
}>;
|
|
84
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/number-input/number-input-decrement-trigger.vue.d.ts
|
|
91
|
+
interface NumberInputDecrementTriggerBaseProps extends PolymorphicProps {}
|
|
92
|
+
interface NumberInputDecrementTriggerProps extends NumberInputDecrementTriggerBaseProps,
|
|
93
|
+
/**
|
|
94
|
+
* @vue-ignore
|
|
95
|
+
*/
|
|
96
|
+
ButtonHTMLAttributes {}
|
|
97
|
+
declare const _default$2: typeof __VLS_export$7;
|
|
98
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<vue1020.DefineComponent<NumberInputDecrementTriggerProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputDecrementTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
99
|
+
default?: (props: {}) => any;
|
|
100
|
+
}>;
|
|
101
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/number-input/number-input-increment-trigger.vue.d.ts
|
|
108
|
+
interface NumberInputIncrementTriggerBaseProps extends PolymorphicProps {}
|
|
109
|
+
interface NumberInputIncrementTriggerProps extends NumberInputIncrementTriggerBaseProps,
|
|
110
|
+
/**
|
|
111
|
+
* @vue-ignore
|
|
112
|
+
*/
|
|
113
|
+
ButtonHTMLAttributes {}
|
|
114
|
+
declare const _default$3: typeof __VLS_export$6;
|
|
115
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<vue1020.DefineComponent<NumberInputIncrementTriggerProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputIncrementTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
116
|
+
default?: (props: {}) => any;
|
|
117
|
+
}>;
|
|
118
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
119
|
+
new (): {
|
|
120
|
+
$slots: S;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/number-input/number-input-input.vue.d.ts
|
|
125
|
+
interface NumberInputInputBaseProps extends PolymorphicProps {}
|
|
126
|
+
interface NumberInputInputProps extends NumberInputInputBaseProps,
|
|
127
|
+
/**
|
|
128
|
+
* @vue-ignore
|
|
129
|
+
*/
|
|
130
|
+
InputHTMLAttributes {}
|
|
131
|
+
declare const _default$4: typeof __VLS_export$5;
|
|
132
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<vue1020.DefineComponent<NumberInputInputProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
133
|
+
default?: (props: {}) => any;
|
|
134
|
+
}>;
|
|
135
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
136
|
+
new (): {
|
|
137
|
+
$slots: S;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/components/number-input/number-input-label.vue.d.ts
|
|
142
|
+
interface NumberInputLabelBaseProps extends PolymorphicProps {}
|
|
143
|
+
interface NumberInputLabelProps extends NumberInputLabelBaseProps,
|
|
144
|
+
/**
|
|
145
|
+
* @vue-ignore
|
|
146
|
+
*/
|
|
147
|
+
LabelHTMLAttributes {}
|
|
148
|
+
declare const _default$5: typeof __VLS_export$4;
|
|
149
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<vue1020.DefineComponent<NumberInputLabelProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
150
|
+
default?: (props: {}) => any;
|
|
151
|
+
}>;
|
|
152
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
153
|
+
new (): {
|
|
154
|
+
$slots: S;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/number-input/number-input-root-provider.vue.d.ts
|
|
159
|
+
interface RootProviderProps {
|
|
160
|
+
value: UnwrapRef<UseNumberInputReturn>;
|
|
161
|
+
}
|
|
162
|
+
interface NumberInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
|
|
163
|
+
interface NumberInputRootProviderProps extends NumberInputRootProviderBaseProps,
|
|
164
|
+
/**
|
|
165
|
+
* @vue-ignore
|
|
166
|
+
*/
|
|
167
|
+
HTMLAttributes {}
|
|
168
|
+
declare const _default$7: typeof __VLS_export$3;
|
|
169
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<vue1020.DefineComponent<NumberInputRootProviderProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
170
|
+
default?: (props: {}) => any;
|
|
171
|
+
}>;
|
|
172
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
173
|
+
new (): {
|
|
174
|
+
$slots: S;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/number-input/number-input-root.vue.d.ts
|
|
179
|
+
interface NumberInputRootBaseProps extends RootProps, PolymorphicProps {}
|
|
180
|
+
interface NumberInputRootProps extends NumberInputRootBaseProps,
|
|
181
|
+
/**
|
|
182
|
+
* @vue-ignore
|
|
183
|
+
*/
|
|
184
|
+
HTMLAttributes {}
|
|
185
|
+
interface NumberInputRootEmits extends RootEmits {}
|
|
186
|
+
declare const _default$6: typeof __VLS_export$2;
|
|
187
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<vue1020.DefineComponent<NumberInputRootProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {
|
|
188
|
+
valueChange: (details: numberInput.ValueChangeDetails) => any;
|
|
189
|
+
valueInvalid: (details: numberInput.ValueInvalidDetails) => any;
|
|
190
|
+
"update:modelValue": (value: string) => any;
|
|
191
|
+
focusChange: (details: numberInput.FocusChangeDetails) => any;
|
|
192
|
+
}, string, vue1020.PublicProps, Readonly<NumberInputRootProps> & Readonly<{
|
|
193
|
+
onValueChange?: ((details: numberInput.ValueChangeDetails) => any) | undefined;
|
|
194
|
+
onValueInvalid?: ((details: numberInput.ValueInvalidDetails) => any) | undefined;
|
|
195
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
196
|
+
onFocusChange?: ((details: numberInput.FocusChangeDetails) => any) | undefined;
|
|
197
|
+
}>, {
|
|
198
|
+
required: boolean;
|
|
199
|
+
disabled: boolean;
|
|
200
|
+
invalid: boolean;
|
|
201
|
+
readOnly: boolean;
|
|
202
|
+
allowOverflow: boolean;
|
|
203
|
+
allowMouseWheel: boolean;
|
|
204
|
+
clampValueOnBlur: boolean;
|
|
205
|
+
focusInputOnChange: boolean;
|
|
206
|
+
spinOnPress: boolean;
|
|
207
|
+
}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
208
|
+
default?: (props: {}) => any;
|
|
209
|
+
}>;
|
|
210
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
211
|
+
new (): {
|
|
212
|
+
$slots: S;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/components/number-input/number-input-scrubber.vue.d.ts
|
|
217
|
+
interface NumberInputScrubberBaseProps extends PolymorphicProps {}
|
|
218
|
+
interface NumberInputScrubberProps extends NumberInputScrubberBaseProps,
|
|
219
|
+
/**
|
|
220
|
+
* @vue-ignore
|
|
221
|
+
*/
|
|
222
|
+
HTMLAttributes {}
|
|
223
|
+
declare const _default$8: typeof __VLS_export$1;
|
|
224
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<vue1020.DefineComponent<NumberInputScrubberProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputScrubberProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
225
|
+
default?: (props: {}) => any;
|
|
226
|
+
}>;
|
|
227
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
228
|
+
new (): {
|
|
229
|
+
$slots: S;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/components/number-input/number-input-value-text.vue.d.ts
|
|
234
|
+
interface NumberInputValueTextBaseProps extends PolymorphicProps {}
|
|
235
|
+
interface NumberInputValueTextProps extends NumberInputValueTextBaseProps,
|
|
236
|
+
/**
|
|
237
|
+
* @vue-ignore
|
|
238
|
+
*/
|
|
239
|
+
HTMLAttributes {}
|
|
240
|
+
declare const _default$9: typeof __VLS_export;
|
|
241
|
+
declare const __VLS_export: __VLS_WithSlots<vue1020.DefineComponent<NumberInputValueTextProps, {}, {}, {}, {}, vue1020.ComponentOptionsMixin, vue1020.ComponentOptionsMixin, {}, string, vue1020.PublicProps, Readonly<NumberInputValueTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1020.ComponentProvideOptions, false, {}, any>, {
|
|
242
|
+
default?: (props: {}) => any;
|
|
243
|
+
}>;
|
|
244
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
245
|
+
new (): {
|
|
246
|
+
$slots: S;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
declare namespace number_input_d_exports {
|
|
250
|
+
export { _default as Context, NumberInputContextProps as ContextProps, _default$1 as Control, NumberInputControlBaseProps as ControlBaseProps, NumberInputControlProps as ControlProps, _default$2 as DecrementTrigger, NumberInputDecrementTriggerBaseProps as DecrementTriggerBaseProps, NumberInputDecrementTriggerProps as DecrementTriggerProps, FocusChangeDetails, _default$3 as IncrementTrigger, NumberInputIncrementTriggerBaseProps as IncrementTriggerBaseProps, NumberInputIncrementTriggerProps as IncrementTriggerProps, _default$4 as Input, NumberInputInputBaseProps as InputBaseProps, NumberInputInputProps as InputProps, _default$5 as Label, NumberInputLabelBaseProps as LabelBaseProps, NumberInputLabelProps as LabelProps, _default$6 as Root, NumberInputRootBaseProps as RootBaseProps, NumberInputRootEmits as RootEmits, NumberInputRootProps as RootProps, _default$7 as RootProvider, NumberInputRootProviderBaseProps as RootProviderBaseProps, NumberInputRootProviderProps as RootProviderProps, _default$8 as Scrubber, NumberInputScrubberBaseProps as ScrubberBaseProps, NumberInputScrubberProps as ScrubberProps, ValueChangeDetails, ValueInvalidDetails, _default$9 as ValueText, NumberInputValueTextBaseProps as ValueTextBaseProps, NumberInputValueTextProps as ValueTextProps };
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
export { number_input_d_exports as NumberInput, _default as NumberInputContext, type NumberInputContextProps, _default$1 as NumberInputControl, type NumberInputControlBaseProps, type NumberInputControlProps, _default$2 as NumberInputDecrementTrigger, type NumberInputDecrementTriggerBaseProps, type NumberInputDecrementTriggerProps, type NumberInputFocusChangeDetails, _default$3 as NumberInputIncrementTrigger, type NumberInputIncrementTriggerBaseProps, type NumberInputIncrementTriggerProps, _default$4 as NumberInputInput, type NumberInputInputBaseProps, type NumberInputInputProps, _default$5 as NumberInputLabel, type NumberInputLabelBaseProps, type NumberInputLabelProps, _default$6 as NumberInputRoot, type NumberInputRootBaseProps, type NumberInputRootEmits, type NumberInputRootProps, _default$7 as NumberInputRootProvider, type NumberInputRootProviderBaseProps, type NumberInputRootProviderProps, _default$8 as NumberInputScrubber, type NumberInputScrubberBaseProps, type NumberInputScrubberProps, type NumberInputValueChangeDetails, type NumberInputValueInvalidDetails, _default$9 as NumberInputValueText, type NumberInputValueTextBaseProps, type NumberInputValueTextProps, type UseNumberInputContext, type UseNumberInputProps, type UseNumberInputReturn, numberInputAnatomy, useNumberInput, useNumberInputContext };
|
|
@@ -0,0 +1,427 @@
|
|
|
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 numberInput from "@sprawlify/primitives/machines/number-input";
|
|
11
|
+
import { anatomy as numberInputAnatomy } from "@sprawlify/primitives/machines/number-input";
|
|
12
|
+
|
|
13
|
+
//#region src/components/number-input/use-number-input-context.ts
|
|
14
|
+
const [NumberInputProvider, useNumberInputContext] = createContext("NumberInputContext");
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/number-input/number-input-context.vue?vue&type=script&setup=true&lang.ts
|
|
18
|
+
var number_input_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "number-input-context",
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const numberInput = useNumberInputContext();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(numberInput))));
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/number-input/number-input-context.vue
|
|
30
|
+
var number_input_context_default = number_input_context_vue_vue_type_script_setup_true_lang_default;
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/number-input/number-input-control.vue?vue&type=script&setup=true&lang.ts
|
|
34
|
+
var number_input_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
35
|
+
__name: "number-input-control",
|
|
36
|
+
props: { asChild: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: false
|
|
39
|
+
} },
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const numberInput = useNumberInputContext();
|
|
42
|
+
useForwardExpose();
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(numberInput).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/number-input/number-input-control.vue
|
|
54
|
+
var number_input_control_default = number_input_control_vue_vue_type_script_setup_true_lang_default;
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/number-input/number-input-decrement-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
58
|
+
var number_input_decrement_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
59
|
+
__name: "number-input-decrement-trigger",
|
|
60
|
+
props: { asChild: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
required: false
|
|
63
|
+
} },
|
|
64
|
+
setup(__props) {
|
|
65
|
+
const numberInput = useNumberInputContext();
|
|
66
|
+
useForwardExpose();
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(numberInput).getDecrementTriggerProps(), { "as-child": __props.asChild }), {
|
|
69
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
70
|
+
_: 3
|
|
71
|
+
}, 16, ["as-child"]);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/number-input/number-input-decrement-trigger.vue
|
|
78
|
+
var number_input_decrement_trigger_default = number_input_decrement_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/number-input/number-input-increment-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
82
|
+
var number_input_increment_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
83
|
+
__name: "number-input-increment-trigger",
|
|
84
|
+
props: { asChild: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
required: false
|
|
87
|
+
} },
|
|
88
|
+
setup(__props) {
|
|
89
|
+
const numberInput = useNumberInputContext();
|
|
90
|
+
useForwardExpose();
|
|
91
|
+
return (_ctx, _cache) => {
|
|
92
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(numberInput).getIncrementTriggerProps(), { "as-child": __props.asChild }), {
|
|
93
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 16, ["as-child"]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/number-input/number-input-increment-trigger.vue
|
|
102
|
+
var number_input_increment_trigger_default = number_input_increment_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/number-input/number-input-input.vue?vue&type=script&setup=true&lang.ts
|
|
106
|
+
var number_input_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
107
|
+
__name: "number-input-input",
|
|
108
|
+
props: { asChild: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
required: false
|
|
111
|
+
} },
|
|
112
|
+
setup(__props) {
|
|
113
|
+
const numberInput = useNumberInputContext();
|
|
114
|
+
const field = useFieldContext();
|
|
115
|
+
useForwardExpose();
|
|
116
|
+
return (_ctx, _cache) => {
|
|
117
|
+
return openBlock(), createBlock(unref(sprawlify).input, mergeProps({ "aria-describedby": unref(field)?.ariaDescribedby }, unref(numberInput).getInputProps(), { "as-child": __props.asChild }), {
|
|
118
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
119
|
+
_: 3
|
|
120
|
+
}, 16, ["aria-describedby", "as-child"]);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/number-input/number-input-input.vue
|
|
127
|
+
var number_input_input_default = number_input_input_vue_vue_type_script_setup_true_lang_default;
|
|
128
|
+
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/number-input/number-input-label.vue?vue&type=script&setup=true&lang.ts
|
|
131
|
+
var number_input_label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
132
|
+
__name: "number-input-label",
|
|
133
|
+
props: { asChild: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
required: false
|
|
136
|
+
} },
|
|
137
|
+
setup(__props) {
|
|
138
|
+
const numberInput = useNumberInputContext();
|
|
139
|
+
useForwardExpose();
|
|
140
|
+
return (_ctx, _cache) => {
|
|
141
|
+
return openBlock(), createBlock(unref(sprawlify).label, mergeProps(unref(numberInput).getLabelProps(), { "as-child": __props.asChild }), {
|
|
142
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
143
|
+
_: 3
|
|
144
|
+
}, 16, ["as-child"]);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/components/number-input/number-input-label.vue
|
|
151
|
+
var number_input_label_default = number_input_label_vue_vue_type_script_setup_true_lang_default;
|
|
152
|
+
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/number-input/number-input-root-provider.vue?vue&type=script&setup=true&lang.ts
|
|
155
|
+
var number_input_root_provider_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
156
|
+
__name: "number-input-root-provider",
|
|
157
|
+
props: {
|
|
158
|
+
value: {
|
|
159
|
+
type: null,
|
|
160
|
+
required: true
|
|
161
|
+
},
|
|
162
|
+
asChild: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
required: false
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
setup(__props) {
|
|
168
|
+
const props = __props;
|
|
169
|
+
const numberInput = computed(() => props.value);
|
|
170
|
+
NumberInputProvider(numberInput);
|
|
171
|
+
useForwardExpose();
|
|
172
|
+
return (_ctx, _cache) => {
|
|
173
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(numberInput.value.getRootProps(), { "as-child": __props.asChild }), {
|
|
174
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 16, ["as-child"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/number-input/number-input-root-provider.vue
|
|
183
|
+
var number_input_root_provider_default = number_input_root_provider_vue_vue_type_script_setup_true_lang_default;
|
|
184
|
+
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/components/number-input/use-number-input.ts
|
|
187
|
+
const useNumberInput = (props = {}, emit) => {
|
|
188
|
+
const id = useId();
|
|
189
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
190
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
191
|
+
const field = useFieldContext();
|
|
192
|
+
const context = computed(() => {
|
|
193
|
+
const localeProps = toValue(props);
|
|
194
|
+
return {
|
|
195
|
+
id,
|
|
196
|
+
ids: {
|
|
197
|
+
label: field?.value.ids.label,
|
|
198
|
+
input: field?.value.ids.control
|
|
199
|
+
},
|
|
200
|
+
disabled: field?.value.disabled,
|
|
201
|
+
readOnly: field?.value.readOnly,
|
|
202
|
+
required: field?.value.required,
|
|
203
|
+
invalid: field?.value.invalid,
|
|
204
|
+
dir: locale.value.dir,
|
|
205
|
+
locale: locale.value.locale,
|
|
206
|
+
value: localeProps.modelValue,
|
|
207
|
+
getRootNode: env?.value.getRootNode,
|
|
208
|
+
...cleanProps(localeProps),
|
|
209
|
+
onValueChange: (details) => {
|
|
210
|
+
emit?.("valueChange", details);
|
|
211
|
+
emit?.("update:modelValue", details.value);
|
|
212
|
+
localeProps.onValueChange?.(details);
|
|
213
|
+
},
|
|
214
|
+
onFocusChange: (details) => {
|
|
215
|
+
emit?.("focusChange", details);
|
|
216
|
+
localeProps.onFocusChange?.(details);
|
|
217
|
+
},
|
|
218
|
+
onValueInvalid: (details) => {
|
|
219
|
+
emit?.("valueInvalid", details);
|
|
220
|
+
localeProps.onValueInvalid?.(details);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
});
|
|
224
|
+
const service = useMachine(numberInput.machine, context);
|
|
225
|
+
return computed(() => numberInput.connect(service, normalizeProps$1));
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/components/number-input/number-input-root.vue?vue&type=script&setup=true&lang.ts
|
|
230
|
+
var number_input_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
231
|
+
__name: "number-input-root",
|
|
232
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
233
|
+
allowMouseWheel: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
allowOverflow: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
required: false
|
|
240
|
+
},
|
|
241
|
+
clampValueOnBlur: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
required: false
|
|
244
|
+
},
|
|
245
|
+
defaultValue: {
|
|
246
|
+
type: String,
|
|
247
|
+
required: false
|
|
248
|
+
},
|
|
249
|
+
disabled: {
|
|
250
|
+
type: Boolean,
|
|
251
|
+
required: false
|
|
252
|
+
},
|
|
253
|
+
focusInputOnChange: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
required: false
|
|
256
|
+
},
|
|
257
|
+
form: {
|
|
258
|
+
type: String,
|
|
259
|
+
required: false
|
|
260
|
+
},
|
|
261
|
+
formatOptions: {
|
|
262
|
+
type: null,
|
|
263
|
+
required: false
|
|
264
|
+
},
|
|
265
|
+
id: {
|
|
266
|
+
type: String,
|
|
267
|
+
required: false
|
|
268
|
+
},
|
|
269
|
+
ids: {
|
|
270
|
+
type: Object,
|
|
271
|
+
required: false
|
|
272
|
+
},
|
|
273
|
+
inputMode: {
|
|
274
|
+
type: String,
|
|
275
|
+
required: false
|
|
276
|
+
},
|
|
277
|
+
invalid: {
|
|
278
|
+
type: Boolean,
|
|
279
|
+
required: false
|
|
280
|
+
},
|
|
281
|
+
locale: {
|
|
282
|
+
type: String,
|
|
283
|
+
required: false
|
|
284
|
+
},
|
|
285
|
+
max: {
|
|
286
|
+
type: Number,
|
|
287
|
+
required: false
|
|
288
|
+
},
|
|
289
|
+
min: {
|
|
290
|
+
type: Number,
|
|
291
|
+
required: false
|
|
292
|
+
},
|
|
293
|
+
modelValue: {
|
|
294
|
+
type: String,
|
|
295
|
+
required: false
|
|
296
|
+
},
|
|
297
|
+
name: {
|
|
298
|
+
type: String,
|
|
299
|
+
required: false
|
|
300
|
+
},
|
|
301
|
+
pattern: {
|
|
302
|
+
type: String,
|
|
303
|
+
required: false
|
|
304
|
+
},
|
|
305
|
+
readOnly: {
|
|
306
|
+
type: Boolean,
|
|
307
|
+
required: false
|
|
308
|
+
},
|
|
309
|
+
required: {
|
|
310
|
+
type: Boolean,
|
|
311
|
+
required: false
|
|
312
|
+
},
|
|
313
|
+
spinOnPress: {
|
|
314
|
+
type: Boolean,
|
|
315
|
+
required: false
|
|
316
|
+
},
|
|
317
|
+
step: {
|
|
318
|
+
type: Number,
|
|
319
|
+
required: false
|
|
320
|
+
},
|
|
321
|
+
translations: {
|
|
322
|
+
type: null,
|
|
323
|
+
required: false
|
|
324
|
+
},
|
|
325
|
+
asChild: {
|
|
326
|
+
type: Boolean,
|
|
327
|
+
required: false
|
|
328
|
+
}
|
|
329
|
+
}, {
|
|
330
|
+
allowMouseWheel: void 0,
|
|
331
|
+
allowOverflow: void 0,
|
|
332
|
+
clampValueOnBlur: void 0,
|
|
333
|
+
disabled: void 0,
|
|
334
|
+
focusInputOnChange: void 0,
|
|
335
|
+
invalid: void 0,
|
|
336
|
+
readOnly: void 0,
|
|
337
|
+
required: void 0,
|
|
338
|
+
spinOnPress: void 0
|
|
339
|
+
}),
|
|
340
|
+
emits: [
|
|
341
|
+
"focusChange",
|
|
342
|
+
"valueChange",
|
|
343
|
+
"valueInvalid",
|
|
344
|
+
"update:modelValue"
|
|
345
|
+
],
|
|
346
|
+
setup(__props, { emit: __emit }) {
|
|
347
|
+
const numberInput = useNumberInput(__props, __emit);
|
|
348
|
+
NumberInputProvider(numberInput);
|
|
349
|
+
useForwardExpose();
|
|
350
|
+
return (_ctx, _cache) => {
|
|
351
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(numberInput).getRootProps(), { "as-child": __props.asChild }), {
|
|
352
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
353
|
+
_: 3
|
|
354
|
+
}, 16, ["as-child"]);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region src/components/number-input/number-input-root.vue
|
|
361
|
+
var number_input_root_default = number_input_root_vue_vue_type_script_setup_true_lang_default;
|
|
362
|
+
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/components/number-input/number-input-scrubber.vue?vue&type=script&setup=true&lang.ts
|
|
365
|
+
var number_input_scrubber_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
366
|
+
__name: "number-input-scrubber",
|
|
367
|
+
props: { asChild: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
required: false
|
|
370
|
+
} },
|
|
371
|
+
setup(__props) {
|
|
372
|
+
const numberInput = useNumberInputContext();
|
|
373
|
+
useForwardExpose();
|
|
374
|
+
return (_ctx, _cache) => {
|
|
375
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(numberInput).getScrubberProps(), { "as-child": __props.asChild }), {
|
|
376
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
377
|
+
_: 3
|
|
378
|
+
}, 16, ["as-child"]);
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/components/number-input/number-input-scrubber.vue
|
|
385
|
+
var number_input_scrubber_default = number_input_scrubber_vue_vue_type_script_setup_true_lang_default;
|
|
386
|
+
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/components/number-input/number-input-value-text.vue?vue&type=script&setup=true&lang.ts
|
|
389
|
+
var number_input_value_text_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
390
|
+
__name: "number-input-value-text",
|
|
391
|
+
props: { asChild: {
|
|
392
|
+
type: Boolean,
|
|
393
|
+
required: false
|
|
394
|
+
} },
|
|
395
|
+
setup(__props) {
|
|
396
|
+
const numberInput = useNumberInputContext();
|
|
397
|
+
useForwardExpose();
|
|
398
|
+
return (_ctx, _cache) => {
|
|
399
|
+
return openBlock(), createBlock(unref(sprawlify).span, mergeProps(unref(numberInput).getValueTextProps(), { "as-child": __props.asChild }), {
|
|
400
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
401
|
+
_: 3
|
|
402
|
+
}, 16, ["as-child"]);
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region src/components/number-input/number-input-value-text.vue
|
|
409
|
+
var number_input_value_text_default = number_input_value_text_vue_vue_type_script_setup_true_lang_default;
|
|
410
|
+
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/components/number-input/number-input.ts
|
|
413
|
+
var number_input_exports = /* @__PURE__ */ __exportAll({
|
|
414
|
+
Context: () => number_input_context_default,
|
|
415
|
+
Control: () => number_input_control_default,
|
|
416
|
+
DecrementTrigger: () => number_input_decrement_trigger_default,
|
|
417
|
+
IncrementTrigger: () => number_input_increment_trigger_default,
|
|
418
|
+
Input: () => number_input_input_default,
|
|
419
|
+
Label: () => number_input_label_default,
|
|
420
|
+
Root: () => number_input_root_default,
|
|
421
|
+
RootProvider: () => number_input_root_provider_default,
|
|
422
|
+
Scrubber: () => number_input_scrubber_default,
|
|
423
|
+
ValueText: () => number_input_value_text_default
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
//#endregion
|
|
427
|
+
export { number_input_exports as NumberInput, number_input_context_default as NumberInputContext, number_input_control_default as NumberInputControl, number_input_decrement_trigger_default as NumberInputDecrementTrigger, number_input_increment_trigger_default as NumberInputIncrementTrigger, number_input_input_default as NumberInputInput, number_input_label_default as NumberInputLabel, number_input_root_default as NumberInputRoot, number_input_root_provider_default as NumberInputRootProvider, number_input_scrubber_default as NumberInputScrubber, number_input_value_text_default as NumberInputValueText, numberInputAnatomy, useNumberInput, useNumberInputContext };
|