@nuxt/ui 3.3.4 → 3.3.6

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 (149) hide show
  1. package/.nuxt/ui/drawer.ts +23 -0
  2. package/.nuxt/ui/progress.ts +3 -3
  3. package/README.md +10 -10
  4. package/dist/module.d.mts +6 -6
  5. package/dist/module.json +2 -2
  6. package/dist/module.mjs +3 -3
  7. package/dist/runtime/components/Accordion.d.vue.ts +78 -0
  8. package/dist/runtime/components/Accordion.vue.d.ts +6 -5
  9. package/dist/runtime/components/Alert.d.vue.ts +82 -0
  10. package/dist/runtime/components/Alert.vue.d.ts +2 -1
  11. package/dist/runtime/components/App.d.vue.ts +25 -0
  12. package/dist/runtime/components/App.vue +1 -1
  13. package/dist/runtime/components/App.vue.d.ts +5 -4
  14. package/dist/runtime/components/Avatar.d.vue.ts +42 -0
  15. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  16. package/dist/runtime/components/AvatarGroup.d.vue.ts +32 -0
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
  18. package/dist/runtime/components/Badge.d.vue.ts +44 -0
  19. package/dist/runtime/components/Badge.vue.d.ts +2 -1
  20. package/dist/runtime/components/Breadcrumb.d.vue.ts +67 -0
  21. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
  22. package/dist/runtime/components/Button.d.vue.ts +45 -0
  23. package/dist/runtime/components/Button.vue.d.ts +2 -1
  24. package/dist/runtime/components/ButtonGroup.d.vue.ts +35 -0
  25. package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
  26. package/dist/runtime/components/Calendar.d.vue.ts +113 -0
  27. package/dist/runtime/components/Calendar.vue.d.ts +9 -8
  28. package/dist/runtime/components/Card.d.vue.ts +30 -0
  29. package/dist/runtime/components/Card.vue.d.ts +2 -1
  30. package/dist/runtime/components/Carousel.d.vue.ts +128 -0
  31. package/dist/runtime/components/Carousel.vue +32 -12
  32. package/dist/runtime/components/Carousel.vue.d.ts +7 -6
  33. package/dist/runtime/components/Checkbox.d.vue.ts +74 -0
  34. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  35. package/dist/runtime/components/CheckboxGroup.d.vue.ts +85 -0
  36. package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
  37. package/dist/runtime/components/Chip.d.vue.ts +58 -0
  38. package/dist/runtime/components/Chip.vue.d.ts +2 -1
  39. package/dist/runtime/components/Collapsible.d.vue.ts +36 -0
  40. package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
  41. package/dist/runtime/components/ColorPicker.d.vue.ts +49 -0
  42. package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
  43. package/dist/runtime/components/CommandPalette.d.vue.ts +193 -0
  44. package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
  45. package/dist/runtime/components/Container.d.vue.ts +19 -0
  46. package/dist/runtime/components/Container.vue.d.ts +2 -1
  47. package/dist/runtime/components/ContextMenu.d.vue.ts +110 -0
  48. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
  49. package/dist/runtime/components/ContextMenuContent.d.vue.ts +50 -0
  50. package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
  51. package/dist/runtime/components/Drawer.d.vue.ts +87 -0
  52. package/dist/runtime/components/Drawer.vue +19 -5
  53. package/dist/runtime/components/Drawer.vue.d.ts +5 -1
  54. package/dist/runtime/components/DropdownMenu.d.vue.ts +120 -0
  55. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
  56. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +56 -0
  57. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
  58. package/dist/runtime/components/FileUpload.d.vue.ts +167 -0
  59. package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
  60. package/dist/runtime/components/Form.d.vue.ts +72 -0
  61. package/dist/runtime/components/Form.vue.d.ts +7 -6
  62. package/dist/runtime/components/FormField.d.vue.ts +62 -0
  63. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  64. package/dist/runtime/components/Icon.d.vue.ts +9 -0
  65. package/dist/runtime/components/Icon.vue.d.ts +2 -1
  66. package/dist/runtime/components/Input.d.vue.ts +78 -0
  67. package/dist/runtime/components/Input.vue.d.ts +9 -8
  68. package/dist/runtime/components/InputMenu.d.vue.ts +330 -0
  69. package/dist/runtime/components/InputMenu.vue +1 -1
  70. package/dist/runtime/components/InputMenu.vue.d.ts +19 -24
  71. package/dist/runtime/components/InputNumber.d.vue.ts +187 -0
  72. package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
  73. package/dist/runtime/components/InputTags.d.vue.ts +186 -0
  74. package/dist/runtime/components/InputTags.vue +2 -2
  75. package/dist/runtime/components/InputTags.vue.d.ts +13 -12
  76. package/dist/runtime/components/Kbd.d.vue.ts +39 -0
  77. package/dist/runtime/components/Kbd.vue.d.ts +2 -1
  78. package/dist/runtime/components/Link.d.vue.ts +92 -0
  79. package/dist/runtime/components/Link.vue.d.ts +2 -1
  80. package/dist/runtime/components/LinkBase.d.vue.ts +26 -0
  81. package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
  82. package/dist/runtime/components/Modal.d.vue.ts +107 -0
  83. package/dist/runtime/components/Modal.vue.d.ts +4 -3
  84. package/dist/runtime/components/NavigationMenu.d.vue.ts +171 -0
  85. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
  86. package/dist/runtime/components/OverlayProvider.d.vue.ts +3 -0
  87. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  88. package/dist/runtime/components/Pagination.d.vue.ts +119 -0
  89. package/dist/runtime/components/Pagination.vue +4 -4
  90. package/dist/runtime/components/Pagination.vue.d.ts +2 -1
  91. package/dist/runtime/components/PinInput.d.vue.ts +61 -0
  92. package/dist/runtime/components/PinInput.vue.d.ts +10 -9
  93. package/dist/runtime/components/Popover.d.vue.ts +71 -0
  94. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  95. package/dist/runtime/components/Progress.d.vue.ts +67 -0
  96. package/dist/runtime/components/Progress.vue +2 -3
  97. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  98. package/dist/runtime/components/RadioGroup.d.vue.ts +95 -0
  99. package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
  100. package/dist/runtime/components/Select.d.vue.ts +254 -0
  101. package/dist/runtime/components/Select.vue.d.ts +11 -10
  102. package/dist/runtime/components/SelectMenu.d.vue.ts +303 -0
  103. package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
  104. package/dist/runtime/components/Separator.d.vue.ts +55 -0
  105. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  106. package/dist/runtime/components/Skeleton.d.vue.ts +18 -0
  107. package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
  108. package/dist/runtime/components/Slideover.d.vue.ts +108 -0
  109. package/dist/runtime/components/Slideover.vue.d.ts +4 -3
  110. package/dist/runtime/components/Slider.d.vue.ts +58 -0
  111. package/dist/runtime/components/Slider.vue.d.ts +8 -7
  112. package/dist/runtime/components/Stepper.d.vue.ts +86 -0
  113. package/dist/runtime/components/Stepper.vue.d.ts +10 -9
  114. package/dist/runtime/components/Switch.d.vue.ts +71 -0
  115. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  116. package/dist/runtime/components/Table.d.vue.ts +202 -0
  117. package/dist/runtime/components/Table.vue +19 -1
  118. package/dist/runtime/components/Table.vue.d.ts +20 -19
  119. package/dist/runtime/components/Tabs.d.vue.ts +99 -0
  120. package/dist/runtime/components/Tabs.vue +2 -2
  121. package/dist/runtime/components/Tabs.vue.d.ts +7 -6
  122. package/dist/runtime/components/Textarea.d.vue.ts +80 -0
  123. package/dist/runtime/components/Textarea.vue.d.ts +9 -8
  124. package/dist/runtime/components/Timeline.d.vue.ts +71 -0
  125. package/dist/runtime/components/Timeline.vue.d.ts +7 -6
  126. package/dist/runtime/components/Toast.d.vue.ts +165 -0
  127. package/dist/runtime/components/Toast.vue.d.ts +2 -1
  128. package/dist/runtime/components/Toaster.d.vue.ts +45 -0
  129. package/dist/runtime/components/Toaster.vue.d.ts +2 -1
  130. package/dist/runtime/components/Tooltip.d.vue.ts +57 -0
  131. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  132. package/dist/runtime/components/Tree.d.vue.ts +115 -0
  133. package/dist/runtime/components/Tree.vue.d.ts +7 -6
  134. package/dist/runtime/composables/useKbd.js +1 -1
  135. package/dist/runtime/composables/usePortal.d.ts +3 -3
  136. package/dist/runtime/composables/usePortal.js +5 -10
  137. package/dist/runtime/inertia/components/Link.d.vue.ts +64 -0
  138. package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
  139. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +26 -0
  140. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
  141. package/dist/runtime/types/tv.d.ts +9 -2
  142. package/dist/runtime/vue/components/Icon.d.vue.ts +6 -0
  143. package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
  144. package/dist/runtime/vue/components/Link.d.vue.ts +94 -0
  145. package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
  146. package/dist/shared/{ui.BTUFJHYJ.mjs → ui.DBpKc5X3.mjs} +100 -68
  147. package/dist/unplugin.mjs +1 -1
  148. package/dist/vite.mjs +1 -1
  149. package/package.json +18 -18
@@ -0,0 +1,330 @@
1
+ import { nextTick } from 'vue';
2
+ import type { InputHTMLAttributes } from 'vue';
3
+ import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, ComboboxContentEmits, ComboboxArrowProps } from 'reka-ui';
4
+ import type { AppConfig } from '@nuxt/schema';
5
+ import theme from '#build/ui/input-menu';
6
+ import type { UseComponentIconsProps } from '../composables/useComponentIcons';
7
+ import type { AvatarProps, ChipProps } from '../types';
8
+ import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils';
9
+ type InputMenu = ComponentConfig<typeof theme, AppConfig, 'inputMenu'>;
10
+ interface _InputMenuItem {
11
+ label?: string;
12
+ /**
13
+ * @IconifyIcon
14
+ */
15
+ icon?: string;
16
+ avatar?: AvatarProps;
17
+ chip?: ChipProps;
18
+ /**
19
+ * The item type.
20
+ * @defaultValue 'item'
21
+ */
22
+ type?: 'label' | 'separator' | 'item';
23
+ disabled?: boolean;
24
+ onSelect?(e?: Event): void;
25
+ class?: any;
26
+ ui?: Pick<InputMenu['slots'], 'tagsItem' | 'tagsItemText' | 'tagsItemDelete' | 'tagsItemDeleteIcon' | 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChip' | 'itemLeadingChipSize' | 'itemLabel' | 'itemTrailing' | 'itemTrailingIcon'>;
27
+ [key: string]: any;
28
+ }
29
+ export type InputMenuItem = _InputMenuItem | AcceptableValue | boolean;
30
+ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus'>, UseComponentIconsProps {
31
+ /**
32
+ * The element or component this component should render as.
33
+ * @defaultValue 'div'
34
+ */
35
+ as?: any;
36
+ id?: string;
37
+ type?: InputHTMLAttributes['type'];
38
+ /** The placeholder text when the input is empty. */
39
+ placeholder?: string;
40
+ /**
41
+ * @defaultValue 'primary'
42
+ */
43
+ color?: InputMenu['variants']['color'];
44
+ /**
45
+ * @defaultValue 'outline'
46
+ */
47
+ variant?: InputMenu['variants']['variant'];
48
+ /**
49
+ * @defaultValue 'md'
50
+ */
51
+ size?: InputMenu['variants']['size'];
52
+ required?: boolean;
53
+ autofocus?: boolean;
54
+ autofocusDelay?: number;
55
+ /**
56
+ * The icon displayed to open the menu.
57
+ * @defaultValue appConfig.ui.icons.chevronDown
58
+ * @IconifyIcon
59
+ */
60
+ trailingIcon?: string;
61
+ /**
62
+ * The icon displayed when an item is selected.
63
+ * @defaultValue appConfig.ui.icons.check
64
+ * @IconifyIcon
65
+ */
66
+ selectedIcon?: string;
67
+ /**
68
+ * The icon displayed to delete a tag.
69
+ * Works only when `multiple` is `true`.
70
+ * @defaultValue appConfig.ui.icons.close
71
+ * @IconifyIcon
72
+ */
73
+ deleteIcon?: string;
74
+ /**
75
+ * The content of the menu.
76
+ * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8, position: 'popper' }
77
+ */
78
+ content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<ComboboxContentEmits>>;
79
+ /**
80
+ * Display an arrow alongside the menu.
81
+ * @defaultValue false
82
+ */
83
+ arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>;
84
+ /**
85
+ * Render the menu in a portal.
86
+ * @defaultValue true
87
+ */
88
+ portal?: boolean | string | HTMLElement;
89
+ /**
90
+ * When `items` is an array of objects, select the field to use as the value instead of the object itself.
91
+ * @defaultValue undefined
92
+ */
93
+ valueKey?: VK;
94
+ /**
95
+ * When `items` is an array of objects, select the field to use as the label.
96
+ * @defaultValue 'label'
97
+ */
98
+ labelKey?: keyof NestedItem<T>;
99
+ items?: T;
100
+ /** The value of the InputMenu when initially rendered. Use when you do not need to control the state of the InputMenu. */
101
+ defaultValue?: GetModelValue<T, VK, M>;
102
+ /** The controlled value of the InputMenu. Can be binded-with with `v-model`. */
103
+ modelValue?: GetModelValue<T, VK, M>;
104
+ /** Whether multiple options can be selected or not. */
105
+ multiple?: M & boolean;
106
+ /** Highlight the ring color like a focus state. */
107
+ highlight?: boolean;
108
+ /**
109
+ * Determines if custom user input that does not exist in options can be added.
110
+ * @defaultValue false
111
+ */
112
+ createItem?: boolean | 'always' | {
113
+ position?: 'top' | 'bottom';
114
+ when?: 'empty' | 'always';
115
+ };
116
+ /**
117
+ * Fields to filter items by.
118
+ * @defaultValue [labelKey]
119
+ */
120
+ filterFields?: string[];
121
+ /**
122
+ * When `true`, disable the default filters, useful for custom filtering (useAsyncData, useFetch, etc.).
123
+ * @defaultValue false
124
+ */
125
+ ignoreFilter?: boolean;
126
+ class?: any;
127
+ ui?: InputMenu['slots'];
128
+ }
129
+ export type InputMenuEmits<A extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
130
+ 'change': [event: Event];
131
+ 'blur': [event: FocusEvent];
132
+ 'focus': [event: FocusEvent];
133
+ 'create': [item: string];
134
+ /** Event handler when highlighted element changes. */
135
+ 'highlight': [
136
+ payload: {
137
+ ref: HTMLElement;
138
+ value: GetModelValue<A, VK, M>;
139
+ } | undefined
140
+ ];
141
+ 'remove-tag': [item: GetModelValue<A, VK, M>];
142
+ } & GetModelValueEmits<A, VK, M>;
143
+ type SlotProps<T extends InputMenuItem> = (props: {
144
+ item: T;
145
+ index: number;
146
+ }) => any;
147
+ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<A> | undefined = undefined, M extends boolean = false, T extends NestedItem<A> = NestedItem<A>> {
148
+ 'leading'(props: {
149
+ modelValue?: GetModelValue<A, VK, M>;
150
+ open: boolean;
151
+ ui: {
152
+ [K in keyof Required<InputMenu['slots']>]: (props?: Record<string, any>) => string;
153
+ };
154
+ }): any;
155
+ 'trailing'(props: {
156
+ modelValue?: GetModelValue<A, VK, M>;
157
+ open: boolean;
158
+ ui: {
159
+ [K in keyof Required<InputMenu['slots']>]: (props?: Record<string, any>) => string;
160
+ };
161
+ }): any;
162
+ 'empty'(props: {
163
+ searchTerm?: string;
164
+ }): any;
165
+ 'item': SlotProps<T>;
166
+ 'item-leading': SlotProps<T>;
167
+ 'item-label': SlotProps<T>;
168
+ 'item-trailing': SlotProps<T>;
169
+ 'tags-item-text': SlotProps<T>;
170
+ 'tags-item-delete': SlotProps<T>;
171
+ 'content-top': (props?: {}) => any;
172
+ 'content-bottom': (props?: {}) => any;
173
+ 'create-item-label'(props: {
174
+ item: string;
175
+ }): any;
176
+ }
177
+ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
178
+ props: __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
179
+ searchTerm?: string;
180
+ }) & {
181
+ onBlur?: ((event: FocusEvent) => any) | undefined;
182
+ onChange?: ((event: Event) => any) | undefined;
183
+ onFocus?: ((event: FocusEvent) => any) | undefined;
184
+ onCreate?: ((item: string) => any) | undefined;
185
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
186
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
187
+ onHighlight?: ((payload: {
188
+ ref: HTMLElement;
189
+ value: GetModelValue<T, VK, M>;
190
+ } | undefined) => any) | undefined;
191
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
192
+ "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
193
+ }> & import("vue").PublicProps;
194
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
195
+ inputRef: import("vue").Ref<({
196
+ $: import("vue").ComponentInternalInstance;
197
+ $data: {};
198
+ $props: {
199
+ readonly displayValue?: ((val: any) => string) | undefined;
200
+ readonly modelValue?: string | undefined;
201
+ readonly autoFocus?: boolean | undefined;
202
+ readonly disabled?: boolean | undefined;
203
+ readonly asChild?: boolean | undefined;
204
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
205
+ readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
206
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
207
+ $attrs: {
208
+ [x: string]: unknown;
209
+ };
210
+ $refs: {
211
+ [x: string]: unknown;
212
+ };
213
+ $slots: Readonly<{
214
+ [name: string]: import("vue").Slot<any> | undefined;
215
+ }>;
216
+ $root: import("vue").ComponentPublicInstance | null;
217
+ $parent: import("vue").ComponentPublicInstance | null;
218
+ $host: Element | null;
219
+ $emit: (event: "update:modelValue", args_0: string) => void;
220
+ $el: any;
221
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
222
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
223
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
224
+ "update:modelValue": (args_0: string) => any;
225
+ }, string, {
226
+ as: import("reka-ui").AsTag | import("vue").Component;
227
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
228
+ beforeCreate?: (() => void) | (() => void)[];
229
+ created?: (() => void) | (() => void)[];
230
+ beforeMount?: (() => void) | (() => void)[];
231
+ mounted?: (() => void) | (() => void)[];
232
+ beforeUpdate?: (() => void) | (() => void)[];
233
+ updated?: (() => void) | (() => void)[];
234
+ activated?: (() => void) | (() => void)[];
235
+ deactivated?: (() => void) | (() => void)[];
236
+ beforeDestroy?: (() => void) | (() => void)[];
237
+ beforeUnmount?: (() => void) | (() => void)[];
238
+ destroyed?: (() => void) | (() => void)[];
239
+ unmounted?: (() => void) | (() => void)[];
240
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
241
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
242
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
243
+ };
244
+ $forceUpdate: () => void;
245
+ $nextTick: typeof nextTick;
246
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
247
+ } & Readonly<{
248
+ as: import("reka-ui").AsTag | import("vue").Component;
249
+ }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
250
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
251
+ }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
252
+ $slots: {
253
+ default?: (props: {}) => any;
254
+ };
255
+ }) | null, ({
256
+ $: import("vue").ComponentInternalInstance;
257
+ $data: {};
258
+ $props: {
259
+ readonly displayValue?: ((val: any) => string) | undefined;
260
+ readonly modelValue?: string | undefined;
261
+ readonly autoFocus?: boolean | undefined;
262
+ readonly disabled?: boolean | undefined;
263
+ readonly asChild?: boolean | undefined;
264
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
265
+ readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
266
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
267
+ $attrs: {
268
+ [x: string]: unknown;
269
+ };
270
+ $refs: {
271
+ [x: string]: unknown;
272
+ };
273
+ $slots: Readonly<{
274
+ [name: string]: import("vue").Slot<any> | undefined;
275
+ }>;
276
+ $root: import("vue").ComponentPublicInstance | null;
277
+ $parent: import("vue").ComponentPublicInstance | null;
278
+ $host: Element | null;
279
+ $emit: (event: "update:modelValue", args_0: string) => void;
280
+ $el: any;
281
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
282
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
283
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
284
+ "update:modelValue": (args_0: string) => any;
285
+ }, string, {
286
+ as: import("reka-ui").AsTag | import("vue").Component;
287
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
288
+ beforeCreate?: (() => void) | (() => void)[];
289
+ created?: (() => void) | (() => void)[];
290
+ beforeMount?: (() => void) | (() => void)[];
291
+ mounted?: (() => void) | (() => void)[];
292
+ beforeUpdate?: (() => void) | (() => void)[];
293
+ updated?: (() => void) | (() => void)[];
294
+ activated?: (() => void) | (() => void)[];
295
+ deactivated?: (() => void) | (() => void)[];
296
+ beforeDestroy?: (() => void) | (() => void)[];
297
+ beforeUnmount?: (() => void) | (() => void)[];
298
+ destroyed?: (() => void) | (() => void)[];
299
+ unmounted?: (() => void) | (() => void)[];
300
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
301
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
302
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
303
+ };
304
+ $forceUpdate: () => void;
305
+ $nextTick: typeof nextTick;
306
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
307
+ } & Readonly<{
308
+ as: import("reka-ui").AsTag | import("vue").Component;
309
+ }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
310
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
311
+ }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
312
+ $slots: {
313
+ default?: (props: {}) => any;
314
+ };
315
+ }) | null>;
316
+ }>) => void;
317
+ attrs: any;
318
+ slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
319
+ emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
320
+ ref: HTMLElement;
321
+ value: GetModelValue<T, VK, M>;
322
+ } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
323
+ }>) => import("vue").VNode & {
324
+ __ctx?: Awaited<typeof __VLS_setup>;
325
+ };
326
+ declare const _default: typeof __VLS_export;
327
+ export default _default;
328
+ type __VLS_PrettifyLocal<T> = {
329
+ [K in keyof T as K]: T[K];
330
+ } & {};
@@ -259,7 +259,7 @@ defineExpose({
259
259
  @focus="onFocus"
260
260
  @remove-tag="onRemoveTag"
261
261
  >
262
- <TagsInputItem v-for="(item, index) in tags" :key="index" :value="item" :class="ui.tagsItem({ class: [props.ui?.tagsItem, isInputItem(item) && item.ui?.tagsItem] })">
262
+ <TagsInputItem v-for="(item, index) in tags" :key="index" :value="isInputItem(item) ? item : String(item)" :class="ui.tagsItem({ class: [props.ui?.tagsItem, isInputItem(item) && item.ui?.tagsItem] })">
263
263
  <TagsInputItemText :class="ui.tagsItemText({ class: [props.ui?.tagsItemText, isInputItem(item) && item.ui?.tagsItemText] })">
264
264
  <slot name="tags-item-text" :item="item" :index="index">
265
265
  {{ displayValue(item) }}
@@ -174,24 +174,24 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
174
174
  item: string;
175
175
  }): any;
176
176
  }
177
- declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
178
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
179
- readonly onBlur?: ((event: FocusEvent) => any) | undefined;
180
- readonly onChange?: ((event: Event) => any) | undefined;
181
- readonly onFocus?: ((event: FocusEvent) => any) | undefined;
182
- readonly onCreate?: ((item: string) => any) | undefined;
183
- readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
184
- readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
185
- readonly onHighlight?: ((payload: {
177
+ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
178
+ props: __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
179
+ searchTerm?: string;
180
+ }) & {
181
+ onBlur?: ((event: FocusEvent) => any) | undefined;
182
+ onChange?: ((event: Event) => any) | undefined;
183
+ onFocus?: ((event: FocusEvent) => any) | undefined;
184
+ onCreate?: ((item: string) => any) | undefined;
185
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
186
+ "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
187
+ onHighlight?: ((payload: {
186
188
  ref: HTMLElement;
187
189
  value: GetModelValue<T, VK, M>;
188
190
  } | undefined) => any) | undefined;
189
- readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
190
- readonly "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
191
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate" | "onRemove-tag"> & (InputMenuProps<T, VK, M> & {
192
- searchTerm?: string;
193
- }) & {}> & import("vue").PublicProps;
194
- expose(exposed: import("vue").ShallowUnwrapRef<{
191
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
192
+ "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
193
+ }> & import("vue").PublicProps;
194
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
195
195
  inputRef: import("vue").Ref<({
196
196
  $: import("vue").ComponentInternalInstance;
197
197
  $data: {};
@@ -243,10 +243,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
243
243
  };
244
244
  $forceUpdate: () => void;
245
245
  $nextTick: typeof nextTick;
246
- $watch<T_1 extends string | ((... /**
247
- * When `items` is an array of objects, select the field to use as the label.
248
- * @defaultValue 'label'
249
- */args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
246
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
250
247
  } & Readonly<{
251
248
  as: import("reka-ui").AsTag | import("vue").Component;
252
249
  }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
@@ -306,10 +303,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
306
303
  };
307
304
  $forceUpdate: () => void;
308
305
  $nextTick: typeof nextTick;
309
- $watch<T_1 extends string | ((... /**
310
- * When `items` is an array of objects, select the field to use as the label.
311
- * @defaultValue 'label'
312
- */args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
306
+ $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
313
307
  } & Readonly<{
314
308
  as: import("reka-ui").AsTag | import("vue").Component;
315
309
  }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
@@ -319,7 +313,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
319
313
  default?: (props: {}) => any;
320
314
  };
321
315
  }) | null>;
322
- }>): void;
316
+ }>) => void;
323
317
  attrs: any;
324
318
  slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
325
319
  emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
@@ -329,6 +323,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
329
323
  }>) => import("vue").VNode & {
330
324
  __ctx?: Awaited<typeof __VLS_setup>;
331
325
  };
326
+ declare const _default: typeof __VLS_export;
332
327
  export default _default;
333
328
  type __VLS_PrettifyLocal<T> = {
334
329
  [K in keyof T as K]: T[K];
@@ -0,0 +1,187 @@
1
+ import type { NumberFieldRootProps } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/ui/input-number';
4
+ import type { ButtonProps } from '../types';
5
+ import type { ComponentConfig } from '../types/utils';
6
+ type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
7
+ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'> {
8
+ /**
9
+ * The element or component this component should render as.
10
+ * @defaultValue 'div'
11
+ */
12
+ as?: any;
13
+ /** The placeholder text when the input is empty. */
14
+ placeholder?: string;
15
+ color?: InputNumber['variants']['color'];
16
+ variant?: InputNumber['variants']['variant'];
17
+ size?: InputNumber['variants']['size'];
18
+ /** Highlight the ring color like a focus state. */
19
+ highlight?: boolean;
20
+ /**
21
+ * The orientation of the input menu.
22
+ * @defaultValue 'horizontal'
23
+ */
24
+ orientation?: 'vertical' | 'horizontal';
25
+ /**
26
+ * Configure the increment button. The `color` and `size` are inherited.
27
+ * @defaultValue { variant: 'link' }
28
+ */
29
+ increment?: ButtonProps;
30
+ /**
31
+ * The icon displayed to increment the value.
32
+ * @defaultValue appConfig.ui.icons.plus
33
+ * @IconifyIcon
34
+ */
35
+ incrementIcon?: string;
36
+ /** Disable the increment button. */
37
+ incrementDisabled?: boolean;
38
+ /**
39
+ * Configure the decrement button. The `color` and `size` are inherited.
40
+ * @defaultValue { variant: 'link' }
41
+ */
42
+ decrement?: ButtonProps;
43
+ /**
44
+ * The icon displayed to decrement the value.
45
+ * @defaultValue appConfig.ui.icons.minus
46
+ * @IconifyIcon
47
+ */
48
+ decrementIcon?: string;
49
+ /** Disable the decrement button. */
50
+ decrementDisabled?: boolean;
51
+ autofocus?: boolean;
52
+ autofocusDelay?: number;
53
+ /**
54
+ * The locale to use for formatting and parsing numbers.
55
+ * @defaultValue UApp.locale.code
56
+ */
57
+ locale?: string;
58
+ class?: any;
59
+ ui?: InputNumber['slots'];
60
+ }
61
+ export interface InputNumberEmits {
62
+ 'update:modelValue': [value: number];
63
+ 'blur': [event: FocusEvent];
64
+ 'change': [event: Event];
65
+ }
66
+ export interface InputNumberSlots {
67
+ increment(props?: {}): any;
68
+ decrement(props?: {}): any;
69
+ }
70
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
71
+ inputRef: import("vue").Ref<({
72
+ $: import("vue").ComponentInternalInstance;
73
+ $data: {};
74
+ $props: {
75
+ readonly asChild?: boolean | undefined;
76
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
77
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
78
+ $attrs: {
79
+ [x: string]: unknown;
80
+ };
81
+ $refs: {
82
+ [x: string]: unknown;
83
+ };
84
+ $slots: Readonly<{
85
+ [name: string]: import("vue").Slot<any> | undefined;
86
+ }>;
87
+ $root: import("vue").ComponentPublicInstance | null;
88
+ $parent: import("vue").ComponentPublicInstance | null;
89
+ $host: Element | null;
90
+ $emit: (event: string, ...args: any[]) => void;
91
+ $el: any;
92
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
93
+ as: import("reka-ui").AsTag | import("vue").Component;
94
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
95
+ beforeCreate?: (() => void) | (() => void)[];
96
+ created?: (() => void) | (() => void)[];
97
+ beforeMount?: (() => void) | (() => void)[];
98
+ mounted?: (() => void) | (() => void)[];
99
+ beforeUpdate?: (() => void) | (() => void)[];
100
+ updated?: (() => void) | (() => void)[];
101
+ activated?: (() => void) | (() => void)[];
102
+ deactivated?: (() => void) | (() => void)[];
103
+ beforeDestroy?: (() => void) | (() => void)[];
104
+ beforeUnmount?: (() => void) | (() => void)[];
105
+ destroyed?: (() => void) | (() => void)[];
106
+ unmounted?: (() => void) | (() => void)[];
107
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
108
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
109
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
110
+ };
111
+ $forceUpdate: () => void;
112
+ $nextTick: typeof import("vue").nextTick;
113
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
114
+ } & Readonly<{
115
+ as: import("reka-ui").AsTag | import("vue").Component;
116
+ }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
117
+ $slots: {
118
+ default?: (props: {}) => any;
119
+ };
120
+ }) | null, ({
121
+ $: import("vue").ComponentInternalInstance;
122
+ $data: {};
123
+ $props: {
124
+ readonly asChild?: boolean | undefined;
125
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
126
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
127
+ $attrs: {
128
+ [x: string]: unknown;
129
+ };
130
+ $refs: {
131
+ [x: string]: unknown;
132
+ };
133
+ $slots: Readonly<{
134
+ [name: string]: import("vue").Slot<any> | undefined;
135
+ }>;
136
+ $root: import("vue").ComponentPublicInstance | null;
137
+ $parent: import("vue").ComponentPublicInstance | null;
138
+ $host: Element | null;
139
+ $emit: (event: string, ...args: any[]) => void;
140
+ $el: any;
141
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
142
+ as: import("reka-ui").AsTag | import("vue").Component;
143
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
144
+ beforeCreate?: (() => void) | (() => void)[];
145
+ created?: (() => void) | (() => void)[];
146
+ beforeMount?: (() => void) | (() => void)[];
147
+ mounted?: (() => void) | (() => void)[];
148
+ beforeUpdate?: (() => void) | (() => void)[];
149
+ updated?: (() => void) | (() => void)[];
150
+ activated?: (() => void) | (() => void)[];
151
+ deactivated?: (() => void) | (() => void)[];
152
+ beforeDestroy?: (() => void) | (() => void)[];
153
+ beforeUnmount?: (() => void) | (() => void)[];
154
+ destroyed?: (() => void) | (() => void)[];
155
+ unmounted?: (() => void) | (() => void)[];
156
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
157
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
158
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
159
+ };
160
+ $forceUpdate: () => void;
161
+ $nextTick: typeof import("vue").nextTick;
162
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
163
+ } & Readonly<{
164
+ as: import("reka-ui").AsTag | import("vue").Component;
165
+ }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
166
+ $slots: {
167
+ default?: (props: {}) => any;
168
+ };
169
+ }) | null>;
170
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
171
+ blur: (event: FocusEvent) => any;
172
+ change: (event: Event) => any;
173
+ "update:modelValue": (value: number) => any;
174
+ }, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
175
+ onBlur?: ((event: FocusEvent) => any) | undefined;
176
+ onChange?: ((event: Event) => any) | undefined;
177
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
178
+ }>, {
179
+ orientation: "vertical" | "horizontal";
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
181
+ declare const _default: typeof __VLS_export;
182
+ export default _default;
183
+ type __VLS_WithSlots<T, S> = T & {
184
+ new (): {
185
+ $slots: S;
186
+ };
187
+ };
@@ -67,7 +67,7 @@ export interface InputNumberSlots {
67
67
  increment(props?: {}): any;
68
68
  decrement(props?: {}): any;
69
69
  }
70
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
70
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
71
71
  inputRef: import("vue").Ref<({
72
72
  $: import("vue").ComponentInternalInstance;
73
73
  $data: {};
@@ -178,6 +178,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
178
178
  }>, {
179
179
  orientation: "vertical" | "horizontal";
180
180
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
181
+ declare const _default: typeof __VLS_export;
181
182
  export default _default;
182
183
  type __VLS_WithSlots<T, S> = T & {
183
184
  new (): {