@nuxt/ui 3.1.0 → 3.1.2

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 (187) hide show
  1. package/.nuxt/ui/accordion.ts +2 -23
  2. package/.nuxt/ui/alert.ts +2 -28
  3. package/.nuxt/ui/avatar-group.ts +2 -23
  4. package/.nuxt/ui/avatar.ts +2 -23
  5. package/.nuxt/ui/badge.ts +32 -30
  6. package/.nuxt/ui/breadcrumb.ts +2 -23
  7. package/.nuxt/ui/button-group.ts +2 -36
  8. package/.nuxt/ui/button.ts +4 -30
  9. package/.nuxt/ui/calendar.ts +4 -25
  10. package/.nuxt/ui/card.ts +2 -23
  11. package/.nuxt/ui/carousel.ts +2 -28
  12. package/.nuxt/ui/checkbox-group.ts +146 -24
  13. package/.nuxt/ui/checkbox.ts +2 -23
  14. package/.nuxt/ui/chip.ts +2 -23
  15. package/.nuxt/ui/collapsible.ts +2 -23
  16. package/.nuxt/ui/color-picker.ts +4 -25
  17. package/.nuxt/ui/command-palette.ts +2 -23
  18. package/.nuxt/ui/container.ts +2 -23
  19. package/.nuxt/ui/context-menu.ts +2 -23
  20. package/.nuxt/ui/drawer.ts +2 -23
  21. package/.nuxt/ui/dropdown-menu.ts +2 -23
  22. package/.nuxt/ui/form-field.ts +2 -23
  23. package/.nuxt/ui/form.ts +2 -23
  24. package/.nuxt/ui/input-menu.ts +4 -34
  25. package/.nuxt/ui/input-number.ts +12 -23
  26. package/.nuxt/ui/input.ts +4 -34
  27. package/.nuxt/ui/kbd.ts +2 -23
  28. package/.nuxt/ui/link.ts +14 -28
  29. package/.nuxt/ui/modal.ts +2 -23
  30. package/.nuxt/ui/navigation-menu.ts +3 -24
  31. package/.nuxt/ui/pagination.ts +2 -23
  32. package/.nuxt/ui/pin-input.ts +2 -23
  33. package/.nuxt/ui/popover.ts +2 -23
  34. package/.nuxt/ui/progress.ts +2 -23
  35. package/.nuxt/ui/radio-group.ts +2 -23
  36. package/.nuxt/ui/select-menu.ts +4 -34
  37. package/.nuxt/ui/select.ts +4 -34
  38. package/.nuxt/ui/separator.ts +2 -23
  39. package/.nuxt/ui/skeleton.ts +2 -23
  40. package/.nuxt/ui/slideover.ts +2 -23
  41. package/.nuxt/ui/slider.ts +2 -23
  42. package/.nuxt/ui/stepper.ts +2 -23
  43. package/.nuxt/ui/switch.ts +2 -23
  44. package/.nuxt/ui/table.ts +2 -23
  45. package/.nuxt/ui/tabs.ts +6 -26
  46. package/.nuxt/ui/textarea.ts +4 -34
  47. package/.nuxt/ui/toast.ts +2 -28
  48. package/.nuxt/ui/toaster.ts +2 -23
  49. package/.nuxt/ui/tooltip.ts +2 -23
  50. package/.nuxt/ui/tree.ts +2 -23
  51. package/.nuxt/ui.css +15 -8
  52. package/README.md +4 -0
  53. package/cli/templates.mjs +2 -2
  54. package/dist/module.json +1 -1
  55. package/dist/module.mjs +15 -5
  56. package/dist/runtime/components/Accordion.vue +9 -9
  57. package/dist/runtime/components/Accordion.vue.d.ts +6 -20
  58. package/dist/runtime/components/Alert.vue +1 -1
  59. package/dist/runtime/components/Alert.vue.d.ts +7 -22
  60. package/dist/runtime/components/App.vue.d.ts +2 -2
  61. package/dist/runtime/components/Avatar.vue +2 -2
  62. package/dist/runtime/components/Avatar.vue.d.ts +4 -25
  63. package/dist/runtime/components/AvatarGroup.vue +1 -1
  64. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
  65. package/dist/runtime/components/Badge.vue +5 -3
  66. package/dist/runtime/components/Badge.vue.d.ts +5 -24
  67. package/dist/runtime/components/Breadcrumb.vue +8 -8
  68. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -20
  69. package/dist/runtime/components/Button.vue +2 -3
  70. package/dist/runtime/components/Button.vue.d.ts +4 -29
  71. package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -24
  72. package/dist/runtime/components/Calendar.vue +2 -1
  73. package/dist/runtime/components/Calendar.vue.d.ts +6 -2
  74. package/dist/runtime/components/Card.vue +1 -1
  75. package/dist/runtime/components/Card.vue.d.ts +2 -11
  76. package/dist/runtime/components/Carousel.vue +5 -2
  77. package/dist/runtime/components/Carousel.vue.d.ts +10 -3
  78. package/dist/runtime/components/Checkbox.vue +2 -2
  79. package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
  80. package/dist/runtime/components/CheckboxGroup.vue +8 -5
  81. package/dist/runtime/components/CheckboxGroup.vue.d.ts +12 -3
  82. package/dist/runtime/components/Chip.vue +1 -1
  83. package/dist/runtime/components/Chip.vue.d.ts +10 -24
  84. package/dist/runtime/components/Collapsible.vue +1 -1
  85. package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
  86. package/dist/runtime/components/ColorPicker.vue +1 -1
  87. package/dist/runtime/components/ColorPicker.vue.d.ts +9 -24
  88. package/dist/runtime/components/CommandPalette.vue +17 -17
  89. package/dist/runtime/components/CommandPalette.vue.d.ts +17 -27
  90. package/dist/runtime/components/Container.vue.d.ts +2 -11
  91. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -24
  92. package/dist/runtime/components/ContextMenuContent.vue +15 -15
  93. package/dist/runtime/components/ContextMenuContent.vue.d.ts +17 -57
  94. package/dist/runtime/components/Drawer.vue.d.ts +17 -27
  95. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -28
  96. package/dist/runtime/components/DropdownMenuContent.vue +15 -15
  97. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
  98. package/dist/runtime/components/Form.vue.d.ts +5 -2
  99. package/dist/runtime/components/FormField.vue +5 -5
  100. package/dist/runtime/components/FormField.vue.d.ts +2 -11
  101. package/dist/runtime/components/Icon.vue.d.ts +1 -10
  102. package/dist/runtime/components/Input.vue +2 -2
  103. package/dist/runtime/components/Input.vue.d.ts +20 -41
  104. package/dist/runtime/components/InputMenu.vue +17 -17
  105. package/dist/runtime/components/InputMenu.vue.d.ts +227 -5
  106. package/dist/runtime/components/InputNumber.vue +13 -7
  107. package/dist/runtime/components/InputNumber.vue.d.ts +90 -23
  108. package/dist/runtime/components/Kbd.vue.d.ts +3 -24
  109. package/dist/runtime/components/Link.vue +5 -14
  110. package/dist/runtime/components/Link.vue.d.ts +3 -34
  111. package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
  112. package/dist/runtime/components/Modal.vue.d.ts +12 -28
  113. package/dist/runtime/components/NavigationMenu.vue +35 -28
  114. package/dist/runtime/components/NavigationMenu.vue.d.ts +24 -26
  115. package/dist/runtime/components/Pagination.vue +1 -1
  116. package/dist/runtime/components/Pagination.vue.d.ts +9 -33
  117. package/dist/runtime/components/PinInput.vue +1 -1
  118. package/dist/runtime/components/PinInput.vue.d.ts +13 -24
  119. package/dist/runtime/components/Popover.vue.d.ts +9 -26
  120. package/dist/runtime/components/Progress.vue +1 -1
  121. package/dist/runtime/components/Progress.vue.d.ts +10 -41
  122. package/dist/runtime/components/RadioGroup.vue +8 -8
  123. package/dist/runtime/components/RadioGroup.vue.d.ts +8 -3
  124. package/dist/runtime/components/Select.vue +12 -12
  125. package/dist/runtime/components/Select.vue.d.ts +11 -3
  126. package/dist/runtime/components/SelectMenu.vue +13 -13
  127. package/dist/runtime/components/SelectMenu.vue.d.ts +19 -5
  128. package/dist/runtime/components/Separator.vue +1 -1
  129. package/dist/runtime/components/Separator.vue.d.ts +3 -24
  130. package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
  131. package/dist/runtime/components/Slideover.vue.d.ts +12 -29
  132. package/dist/runtime/components/Slider.vue +16 -4
  133. package/dist/runtime/components/Slider.vue.d.ts +23 -36
  134. package/dist/runtime/components/Stepper.vue +10 -10
  135. package/dist/runtime/components/Stepper.vue.d.ts +10 -14
  136. package/dist/runtime/components/Switch.vue +1 -1
  137. package/dist/runtime/components/Switch.vue.d.ts +10 -13
  138. package/dist/runtime/components/Table.vue +2 -2
  139. package/dist/runtime/components/Table.vue.d.ts +17 -17
  140. package/dist/runtime/components/Tabs.vue +6 -6
  141. package/dist/runtime/components/Tabs.vue.d.ts +6 -20
  142. package/dist/runtime/components/Textarea.vue +3 -3
  143. package/dist/runtime/components/Textarea.vue.d.ts +20 -44
  144. package/dist/runtime/components/Toast.vue +3 -2
  145. package/dist/runtime/components/Toast.vue.d.ts +92 -24
  146. package/dist/runtime/components/Toaster.vue +4 -4
  147. package/dist/runtime/components/Toaster.vue.d.ts +9 -28
  148. package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
  149. package/dist/runtime/components/Tree.vue +10 -10
  150. package/dist/runtime/components/Tree.vue.d.ts +7 -22
  151. package/dist/runtime/composables/defineShortcuts.js +6 -0
  152. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  153. package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
  154. package/dist/runtime/composables/useFormField.d.ts +2 -2
  155. package/dist/runtime/composables/useFormField.js +2 -1
  156. package/dist/runtime/composables/useKbd.d.ts +1 -0
  157. package/dist/runtime/composables/useKbd.js +4 -3
  158. package/dist/runtime/composables/useOverlay.d.ts +9 -10
  159. package/dist/runtime/composables/useOverlay.js +11 -6
  160. package/dist/runtime/inertia/components/Link.vue +46 -60
  161. package/dist/runtime/inertia/components/Link.vue.d.ts +4 -33
  162. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  163. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  164. package/dist/runtime/inertia/stubs.d.ts +1 -1
  165. package/dist/runtime/inertia/stubs.js +1 -1
  166. package/dist/runtime/locale/index.d.ts +1 -0
  167. package/dist/runtime/locale/index.js +1 -0
  168. package/dist/runtime/locale/sl.d.ts +3 -0
  169. package/dist/runtime/locale/sl.js +54 -0
  170. package/dist/runtime/types/tv.d.ts +53 -0
  171. package/dist/runtime/types/tv.js +0 -0
  172. package/dist/runtime/types/utils.d.ts +2 -52
  173. package/dist/runtime/types/utils.js +1 -0
  174. package/dist/runtime/utils/link.d.ts +1 -0
  175. package/dist/runtime/utils/link.js +12 -0
  176. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -10
  177. package/dist/runtime/vue/components/Link.vue +27 -40
  178. package/dist/runtime/vue/components/Link.vue.d.ts +3 -34
  179. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  180. package/dist/runtime/vue/stubs.d.ts +1 -1
  181. package/dist/runtime/vue/stubs.js +1 -1
  182. package/dist/shared/{ui.D7lOOabO.mjs → ui.BvUP-pSb.mjs} +120 -27
  183. package/dist/unplugin.d.mts +2 -2
  184. package/dist/unplugin.mjs +1 -1
  185. package/dist/vite.d.mts +1 -1
  186. package/dist/vite.mjs +2 -2
  187. package/package.json +28 -27
@@ -216,7 +216,7 @@ defineExpose({
216
216
  >
217
217
  <span :class="ui.itemLabel({ class: props.ui?.itemLabel })">
218
218
  <slot name="create-item-label" :item="searchTerm">
219
- {{ t('inputMenu.create', { label: searchTerm }) }}
219
+ {{ t("inputMenu.create", { label: searchTerm }) }}
220
220
  </slot>
221
221
  </span>
222
222
  </ComboboxItem>
@@ -229,7 +229,7 @@ defineExpose({
229
229
  v-bind="rootProps"
230
230
  :name="name"
231
231
  :disabled="disabled"
232
- :class="ui.root({ class: [props.class, props.ui?.root] })"
232
+ :class="ui.root({ class: [props.ui?.root, props.class] })"
233
233
  :as-child="!!multiple"
234
234
  ignore-filter
235
235
  @update:model-value="onUpdate"
@@ -249,16 +249,16 @@ defineExpose({
249
249
  @focus="onFocus"
250
250
  @remove-tag="onRemoveTag"
251
251
  >
252
- <TagsInputItem v-for="(item, index) in tags" :key="index" :value="item" :class="ui.tagsItem({ class: props.ui?.tagsItem })">
253
- <TagsInputItemText :class="ui.tagsItemText({ class: props.ui?.tagsItemText })">
252
+ <TagsInputItem v-for="(item, index) in tags" :key="index" :value="item" :class="ui.tagsItem({ class: [props.ui?.tagsItem, isInputItem(item) && item.ui?.tagsItem] })">
253
+ <TagsInputItemText :class="ui.tagsItemText({ class: [props.ui?.tagsItemText, isInputItem(item) && item.ui?.tagsItemText] })">
254
254
  <slot name="tags-item-text" :item="item" :index="index">
255
255
  {{ displayValue(item) }}
256
256
  </slot>
257
257
  </TagsInputItemText>
258
258
 
259
- <TagsInputItemDelete :class="ui.tagsItemDelete({ class: props.ui?.tagsItemDelete })" :disabled="disabled">
259
+ <TagsInputItemDelete :class="ui.tagsItemDelete({ class: [props.ui?.tagsItemDelete, isInputItem(item) && item.ui?.tagsItemDelete] })" :disabled="disabled">
260
260
  <slot name="tags-item-delete" :item="item" :index="index">
261
- <UIcon :name="deleteIcon || appConfig.ui.icons.close" :class="ui.tagsItemDeleteIcon({ class: props.ui?.tagsItemDeleteIcon })" />
261
+ <UIcon :name="deleteIcon || appConfig.ui.icons.close" :class="ui.tagsItemDeleteIcon({ class: [props.ui?.tagsItemDeleteIcon, isInputItem(item) && item.ui?.tagsItemDeleteIcon] })" />
262
262
  </slot>
263
263
  </TagsInputItemDelete>
264
264
  </TagsInputItem>
@@ -307,7 +307,7 @@ defineExpose({
307
307
 
308
308
  <ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
309
309
  <slot name="empty" :search-term="searchTerm">
310
- {{ searchTerm ? t('inputMenu.noMatch', { searchTerm }) : t('inputMenu.noData') }}
310
+ {{ searchTerm ? t("inputMenu.noMatch", { searchTerm }) : t("inputMenu.noData") }}
311
311
  </slot>
312
312
  </ComboboxEmpty>
313
313
 
@@ -316,44 +316,44 @@ defineExpose({
316
316
 
317
317
  <ComboboxGroup v-for="(group, groupIndex) in filteredGroups" :key="`group-${groupIndex}`" :class="ui.group({ class: props.ui?.group })">
318
318
  <template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
319
- <ComboboxLabel v-if="isInputItem(item) && item.type === 'label'" :class="ui.label({ class: props.ui?.label })">
319
+ <ComboboxLabel v-if="isInputItem(item) && item.type === 'label'" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })">
320
320
  {{ get(item, props.labelKey) }}
321
321
  </ComboboxLabel>
322
322
 
323
- <ComboboxSeparator v-else-if="isInputItem(item) && item.type === 'separator'" :class="ui.separator({ class: props.ui?.separator })" />
323
+ <ComboboxSeparator v-else-if="isInputItem(item) && item.type === 'separator'" :class="ui.separator({ class: [props.ui?.separator, item.ui?.separator, item.class] })" />
324
324
 
325
325
  <ComboboxItem
326
326
  v-else
327
- :class="ui.item({ class: props.ui?.item })"
327
+ :class="ui.item({ class: [props.ui?.item, isInputItem(item) && item.ui?.item, isInputItem(item) && item.class] })"
328
328
  :disabled="isInputItem(item) && item.disabled"
329
329
  :value="props.valueKey && isInputItem(item) ? get(item, props.valueKey) : item"
330
330
  @select="onSelect($event, item)"
331
331
  >
332
332
  <slot name="item" :item="item" :index="index">
333
333
  <slot name="item-leading" :item="item" :index="index">
334
- <UIcon v-if="isInputItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: props.ui?.itemLeadingIcon })" />
335
- <UAvatar v-else-if="isInputItem(item) && item.avatar" :size="props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: props.ui?.itemLeadingAvatar })" />
334
+ <UIcon v-if="isInputItem(item) && item.icon" :name="item.icon" :class="ui.itemLeadingIcon({ class: [props.ui?.itemLeadingIcon, item.ui?.itemLeadingIcon] })" />
335
+ <UAvatar v-else-if="isInputItem(item) && item.avatar" :size="item.ui?.itemLeadingAvatarSize || props.ui?.itemLeadingAvatarSize || ui.itemLeadingAvatarSize()" v-bind="item.avatar" :class="ui.itemLeadingAvatar({ class: [props.ui?.itemLeadingAvatar, item.ui?.itemLeadingAvatar] })" />
336
336
  <UChip
337
337
  v-else-if="isInputItem(item) && item.chip"
338
- :size="props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
338
+ :size="item.ui?.itemLeadingChipSize || props.ui?.itemLeadingChipSize || ui.itemLeadingChipSize()"
339
339
  inset
340
340
  standalone
341
341
  v-bind="item.chip"
342
- :class="ui.itemLeadingChip({ class: props.ui?.itemLeadingChip })"
342
+ :class="ui.itemLeadingChip({ class: [props.ui?.itemLeadingChip, item.ui?.itemLeadingChip] })"
343
343
  />
344
344
  </slot>
345
345
 
346
- <span :class="ui.itemLabel({ class: props.ui?.itemLabel })">
346
+ <span :class="ui.itemLabel({ class: [props.ui?.itemLabel, isInputItem(item) && item.ui?.itemLabel] })">
347
347
  <slot name="item-label" :item="item" :index="index">
348
348
  {{ isInputItem(item) ? get(item, props.labelKey) : item }}
349
349
  </slot>
350
350
  </span>
351
351
 
352
- <span :class="ui.itemTrailing({ class: props.ui?.itemTrailing })">
352
+ <span :class="ui.itemTrailing({ class: [props.ui?.itemTrailing, isInputItem(item) && item.ui?.itemTrailing] })">
353
353
  <slot name="item-trailing" :item="item" :index="index" />
354
354
 
355
355
  <ComboboxItemIndicator as-child>
356
- <UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: props.ui?.itemTrailingIcon })" />
356
+ <UIcon :name="selectedIcon || appConfig.ui.icons.check" :class="ui.itemTrailingIcon({ class: [props.ui?.itemTrailingIcon, isInputItem(item) && item.ui?.itemTrailingIcon] })" />
357
357
  </ComboboxItemIndicator>
358
358
  </span>
359
359
  </slot>
@@ -21,6 +21,8 @@ interface _InputMenuItem {
21
21
  type?: 'label' | 'separator' | 'item';
22
22
  disabled?: boolean;
23
23
  onSelect?(e?: Event): void;
24
+ class?: any;
25
+ ui?: Pick<InputMenu['slots'], 'tagsItem' | 'tagsItemText' | 'tagsItemDelete' | 'tagsItemDeleteIcon' | 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChip' | 'itemLeadingChipSize' | 'itemLabel' | 'itemTrailing' | 'itemTrailingIcon'>;
24
26
  [key: string]: any;
25
27
  }
26
28
  export type InputMenuItem = _InputMenuItem | AcceptableValue | boolean;
@@ -171,9 +173,21 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
171
173
  }): any;
172
174
  }
173
175
  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<{
174
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ({
176
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
177
+ readonly onBlur?: ((payload: FocusEvent) => any) | undefined;
178
+ readonly onChange?: ((payload: Event) => any) | undefined;
179
+ readonly onFocus?: ((payload: FocusEvent) => any) | undefined;
180
+ readonly onCreate?: ((item: string) => any) | undefined;
181
+ readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
182
+ readonly "onUpdate:modelValue"?: ((payload: GetModelValue<T, VK, M>) => any) | undefined;
183
+ readonly onHighlight?: ((payload: {
184
+ ref: HTMLElement;
185
+ value: GetModelValue<T, VK, M>;
186
+ } | undefined) => any) | undefined;
187
+ readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
188
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate"> & (InputMenuProps<T, VK, M> & {
175
189
  searchTerm?: string;
176
- } & InputMenuProps<T, VK, M>) & Partial<{}>> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
190
+ }) & Partial<{}>> & import("vue").PublicProps;
177
191
  expose(exposed: import("vue").ShallowUnwrapRef<{
178
192
  inputRef: import("vue").Ref<({
179
193
  $: import("vue").ComponentInternalInstance;
@@ -192,6 +206,110 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
192
206
  };
193
207
  $refs: {
194
208
  [x: string]: unknown;
209
+ } & {
210
+ primitiveElement: ({
211
+ $: import("vue").ComponentInternalInstance;
212
+ $data: {};
213
+ $props: {
214
+ readonly modelValue?: string | undefined;
215
+ readonly autoFocus?: boolean | undefined;
216
+ readonly disabled?: boolean | undefined;
217
+ readonly asChild?: boolean | undefined;
218
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
219
+ readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
220
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
221
+ $attrs: {
222
+ [x: string]: unknown;
223
+ };
224
+ $refs: {
225
+ [x: string]: unknown;
226
+ } & {
227
+ primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
228
+ asChild: {
229
+ type: BooleanConstructor;
230
+ default: boolean;
231
+ };
232
+ as: {
233
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
234
+ default: string;
235
+ };
236
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
237
+ [key: string]: any;
238
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
239
+ asChild: boolean;
240
+ as: import("reka-ui").AsTag | import("vue").Component;
241
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
242
+ P: {};
243
+ B: {};
244
+ D: {};
245
+ C: {};
246
+ M: {};
247
+ Defaults: {};
248
+ }, Readonly<import("vue").ExtractPropTypes<{
249
+ asChild: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ as: {
254
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
255
+ default: string;
256
+ };
257
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
258
+ [key: string]: any;
259
+ }>, {}, {}, {}, {
260
+ asChild: boolean;
261
+ as: import("reka-ui").AsTag | import("vue").Component;
262
+ }> | null;
263
+ };
264
+ $slots: Readonly<{
265
+ [name: string]: import("vue").Slot<any> | undefined;
266
+ }>;
267
+ $root: import("vue").ComponentPublicInstance | null;
268
+ $parent: import("vue").ComponentPublicInstance | null;
269
+ $host: Element | null;
270
+ $emit: (event: "update:modelValue", args_0: string) => void;
271
+ $el: any;
272
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ListboxFilterProps> & Readonly<{
273
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
274
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
275
+ "update:modelValue": (args_0: string) => any;
276
+ }, string, {
277
+ as: import("reka-ui").AsTag | import("vue").Component;
278
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
279
+ beforeCreate?: (() => void) | (() => void)[];
280
+ created?: (() => void) | (() => void)[];
281
+ beforeMount?: (() => void) | (() => void)[];
282
+ mounted?: (() => void) | (() => void)[];
283
+ beforeUpdate?: (() => void) | (() => void)[];
284
+ updated?: (() => void) | (() => void)[];
285
+ activated?: (() => void) | (() => void)[];
286
+ deactivated?: (() => void) | (() => void)[];
287
+ beforeDestroy?: (() => void) | (() => void)[];
288
+ beforeUnmount?: (() => void) | (() => void)[];
289
+ destroyed?: (() => void) | (() => void)[];
290
+ unmounted?: (() => void) | (() => void)[];
291
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
292
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
293
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
294
+ };
295
+ $forceUpdate: () => void;
296
+ $nextTick: typeof import("vue").nextTick;
297
+ $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;
298
+ } & Readonly<{
299
+ as: import("reka-ui").AsTag | import("vue").Component;
300
+ }> & Omit<Readonly<import("reka-ui").ListboxFilterProps> & Readonly<{
301
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
302
+ }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
303
+ $slots: Readonly<{
304
+ default: (props: {
305
+ modelValue: string | undefined;
306
+ }) => any;
307
+ }> & {
308
+ default: (props: {
309
+ modelValue: string | undefined;
310
+ }) => any;
311
+ };
312
+ }) | null;
195
313
  };
196
314
  $slots: Readonly<{
197
315
  [name: string]: import("vue").Slot<any> | undefined;
@@ -252,6 +370,110 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
252
370
  };
253
371
  $refs: {
254
372
  [x: string]: unknown;
373
+ } & {
374
+ primitiveElement: ({
375
+ $: import("vue").ComponentInternalInstance;
376
+ $data: {};
377
+ $props: {
378
+ readonly modelValue?: string | undefined;
379
+ readonly autoFocus?: boolean | undefined;
380
+ readonly disabled?: boolean | undefined;
381
+ readonly asChild?: boolean | undefined;
382
+ readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
383
+ readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
384
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
385
+ $attrs: {
386
+ [x: string]: unknown;
387
+ };
388
+ $refs: {
389
+ [x: string]: unknown;
390
+ } & {
391
+ primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
392
+ asChild: {
393
+ type: BooleanConstructor;
394
+ default: boolean;
395
+ };
396
+ as: {
397
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
398
+ default: string;
399
+ };
400
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
401
+ [key: string]: any;
402
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
403
+ asChild: boolean;
404
+ as: import("reka-ui").AsTag | import("vue").Component;
405
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
406
+ P: {};
407
+ B: {};
408
+ D: {};
409
+ C: {};
410
+ M: {};
411
+ Defaults: {};
412
+ }, Readonly<import("vue").ExtractPropTypes<{
413
+ asChild: {
414
+ type: BooleanConstructor;
415
+ default: boolean;
416
+ };
417
+ as: {
418
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
419
+ default: string;
420
+ };
421
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
422
+ [key: string]: any;
423
+ }>, {}, {}, {}, {
424
+ asChild: boolean;
425
+ as: import("reka-ui").AsTag | import("vue").Component;
426
+ }> | null;
427
+ };
428
+ $slots: Readonly<{
429
+ [name: string]: import("vue").Slot<any> | undefined;
430
+ }>;
431
+ $root: import("vue").ComponentPublicInstance | null;
432
+ $parent: import("vue").ComponentPublicInstance | null;
433
+ $host: Element | null;
434
+ $emit: (event: "update:modelValue", args_0: string) => void;
435
+ $el: any;
436
+ $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ListboxFilterProps> & Readonly<{
437
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
438
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
439
+ "update:modelValue": (args_0: string) => any;
440
+ }, string, {
441
+ as: import("reka-ui").AsTag | import("vue").Component;
442
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
443
+ beforeCreate?: (() => void) | (() => void)[];
444
+ created?: (() => void) | (() => void)[];
445
+ beforeMount?: (() => void) | (() => void)[];
446
+ mounted?: (() => void) | (() => void)[];
447
+ beforeUpdate?: (() => void) | (() => void)[];
448
+ updated?: (() => void) | (() => void)[];
449
+ activated?: (() => void) | (() => void)[];
450
+ deactivated?: (() => void) | (() => void)[];
451
+ beforeDestroy?: (() => void) | (() => void)[];
452
+ beforeUnmount?: (() => void) | (() => void)[];
453
+ destroyed?: (() => void) | (() => void)[];
454
+ unmounted?: (() => void) | (() => void)[];
455
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
456
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
457
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
458
+ };
459
+ $forceUpdate: () => void;
460
+ $nextTick: typeof import("vue").nextTick;
461
+ $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;
462
+ } & Readonly<{
463
+ as: import("reka-ui").AsTag | import("vue").Component;
464
+ }> & Omit<Readonly<import("reka-ui").ListboxFilterProps> & Readonly<{
465
+ "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
466
+ }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
467
+ $slots: Readonly<{
468
+ default: (props: {
469
+ modelValue: string | undefined;
470
+ }) => any;
471
+ }> & {
472
+ default: (props: {
473
+ modelValue: string | undefined;
474
+ }) => any;
475
+ };
476
+ }) | null;
255
477
  };
256
478
  $slots: Readonly<{
257
479
  [name: string]: import("vue").Slot<any> | undefined;
@@ -298,11 +520,11 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
298
520
  }) | null>;
299
521
  }>): void;
300
522
  attrs: any;
301
- slots: Readonly<InputMenuSlots<T, VK, M, NestedItem<T>>> & InputMenuSlots<T, VK, M, NestedItem<T>>;
302
- emit: (((evt: "blur", payload: FocusEvent) => void) & ((evt: "change", payload: Event) => void) & ((evt: "focus", payload: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "highlight", payload: {
523
+ slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
524
+ emit: (((evt: "blur", payload: FocusEvent) => void) & ((evt: "change", payload: Event) => void) & ((evt: "focus", payload: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
303
525
  ref: HTMLElement;
304
526
  value: GetModelValue<T, VK, M>;
305
- } | undefined) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
527
+ } | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
306
528
  }>) => import("vue").VNode & {
307
529
  __ctx?: Awaited<typeof __VLS_setup>;
308
530
  };
@@ -7,6 +7,7 @@ import { onMounted, ref, computed } from "vue";
7
7
  import { NumberFieldRoot, NumberFieldInput, NumberFieldDecrement, NumberFieldIncrement, useForwardPropsEmits } from "reka-ui";
8
8
  import { reactivePick } from "@vueuse/core";
9
9
  import { useAppConfig } from "#imports";
10
+ import { useButtonGroup } from "../composables/useButtonGroup";
10
11
  import { useFormField } from "../composables/useFormField";
11
12
  import { useLocale } from "../composables/useLocale";
12
13
  import { tv } from "../utils/tv";
@@ -22,8 +23,10 @@ const props = defineProps({
22
23
  orientation: { type: String, required: false, default: "horizontal" },
23
24
  increment: { type: Object, required: false },
24
25
  incrementIcon: { type: String, required: false },
26
+ incrementDisabled: { type: Boolean, required: false },
25
27
  decrement: { type: Object, required: false },
26
28
  decrementIcon: { type: String, required: false },
29
+ decrementDisabled: { type: Boolean, required: false },
27
30
  autofocus: { type: Boolean, required: false },
28
31
  autofocusDelay: { type: Number, required: false },
29
32
  locale: { type: String, required: false },
@@ -44,17 +47,20 @@ const props = defineProps({
44
47
  });
45
48
  const emits = defineEmits(["update:modelValue", "blur", "change"]);
46
49
  defineSlots();
50
+ const { t, code: codeLocale } = useLocale();
47
51
  const appConfig = useAppConfig();
48
52
  const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange"), emits);
49
- const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size, name, highlight, disabled, ariaAttrs } = useFormField(props);
50
- const { t, code: codeLocale } = useLocale();
53
+ const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size: formGroupSize, name, highlight, disabled, ariaAttrs } = useFormField(props);
54
+ const { orientation, size: buttonGroupSize } = useButtonGroup(props);
51
55
  const locale = computed(() => props.locale || codeLocale.value);
56
+ const inputSize = computed(() => buttonGroupSize.value || formGroupSize.value);
52
57
  const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.inputNumber || {} })({
53
58
  color: color.value,
54
59
  variant: props.variant,
55
- size: size.value,
60
+ size: inputSize.value,
56
61
  highlight: highlight.value,
57
- orientation: props.orientation
62
+ orientation: props.orientation,
63
+ buttonGroup: orientation.value
58
64
  }));
59
65
  const incrementIcon = computed(() => props.incrementIcon || (props.orientation === "horizontal" ? appConfig.ui.icons.plus : appConfig.ui.icons.chevronUp));
60
66
  const decrementIcon = computed(() => props.decrementIcon || (props.orientation === "horizontal" ? appConfig.ui.icons.minus : appConfig.ui.icons.chevronDown));
@@ -88,7 +94,7 @@ defineExpose({
88
94
  <NumberFieldRoot
89
95
  v-bind="rootProps"
90
96
  :id="id"
91
- :class="ui.root({ class: [props.class, props.ui?.root] })"
97
+ :class="ui.root({ class: [props.ui?.root, props.class] })"
92
98
  :name="name"
93
99
  :disabled="disabled"
94
100
  :locale="locale"
@@ -105,7 +111,7 @@ defineExpose({
105
111
  />
106
112
 
107
113
  <div :class="ui.increment({ class: props.ui?.increment })">
108
- <NumberFieldIncrement as-child :disabled="disabled">
114
+ <NumberFieldIncrement as-child :disabled="disabled || incrementDisabled">
109
115
  <slot name="increment">
110
116
  <UButton
111
117
  :icon="incrementIcon"
@@ -120,7 +126,7 @@ defineExpose({
120
126
  </div>
121
127
 
122
128
  <div :class="ui.decrement({ class: props.ui?.decrement })">
123
- <NumberFieldDecrement as-child :disabled="disabled">
129
+ <NumberFieldDecrement as-child :disabled="disabled || decrementDisabled">
124
130
  <slot name="decrement">
125
131
  <UButton
126
132
  :icon="decrementIcon"
@@ -33,6 +33,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
33
33
  * @IconifyIcon
34
34
  */
35
35
  incrementIcon?: string;
36
+ /** Disable the increment button. */
37
+ incrementDisabled?: boolean;
36
38
  /**
37
39
  * Configure the decrement button. The `color` and `size` are inherited.
38
40
  * @defaultValue { variant: 'link' }
@@ -44,6 +46,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
44
46
  * @IconifyIcon
45
47
  */
46
48
  decrementIcon?: string;
49
+ /** Disable the decrement button. */
50
+ decrementDisabled?: boolean;
47
51
  autofocus?: boolean;
48
52
  autofocusDelay?: number;
49
53
  /**
@@ -63,9 +67,7 @@ export interface InputNumberSlots {
63
67
  increment(props?: {}): any;
64
68
  decrement(props?: {}): any;
65
69
  }
66
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<InputNumberProps>, {
67
- orientation: string;
68
- }>>, {
70
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
69
71
  inputRef: import("vue").Ref<({
70
72
  $: import("vue").ComponentInternalInstance;
71
73
  $data: {};
@@ -78,6 +80,43 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
78
80
  };
79
81
  $refs: {
80
82
  [x: string]: unknown;
83
+ } & {
84
+ primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
85
+ asChild: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ as: {
90
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
91
+ default: string;
92
+ };
93
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
94
+ [key: string]: any;
95
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
96
+ asChild: boolean;
97
+ as: import("reka-ui").AsTag | import("vue").Component;
98
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
99
+ P: {};
100
+ B: {};
101
+ D: {};
102
+ C: {};
103
+ M: {};
104
+ Defaults: {};
105
+ }, Readonly<import("vue").ExtractPropTypes<{
106
+ asChild: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ as: {
111
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
112
+ default: string;
113
+ };
114
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
115
+ [key: string]: any;
116
+ }>, {}, {}, {}, {
117
+ asChild: boolean;
118
+ as: import("reka-ui").AsTag | import("vue").Component;
119
+ }> | null;
81
120
  };
82
121
  $slots: Readonly<{
83
122
  [name: string]: import("vue").Slot<any> | undefined;
@@ -127,6 +166,43 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
127
166
  };
128
167
  $refs: {
129
168
  [x: string]: unknown;
169
+ } & {
170
+ primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
171
+ asChild: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ as: {
176
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
177
+ default: string;
178
+ };
179
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
180
+ [key: string]: any;
181
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
182
+ asChild: boolean;
183
+ as: import("reka-ui").AsTag | import("vue").Component;
184
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
185
+ P: {};
186
+ B: {};
187
+ D: {};
188
+ C: {};
189
+ M: {};
190
+ Defaults: {};
191
+ }, Readonly<import("vue").ExtractPropTypes<{
192
+ asChild: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ as: {
197
+ type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
198
+ default: string;
199
+ };
200
+ }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
201
+ [key: string]: any;
202
+ }>, {}, {}, {}, {
203
+ asChild: boolean;
204
+ as: import("reka-ui").AsTag | import("vue").Component;
205
+ }> | null;
130
206
  };
131
207
  $slots: Readonly<{
132
208
  [name: string]: import("vue").Slot<any> | undefined;
@@ -165,29 +241,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
165
241
  default?(_: {}): any;
166
242
  };
167
243
  }) | null>;
168
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
244
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
245
+ blur: (event: FocusEvent) => any;
246
+ change: (payload: Event) => any;
247
+ "update:modelValue": (payload: number) => any;
248
+ }, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
249
+ onBlur?: ((event: FocusEvent) => any) | undefined;
250
+ onChange?: ((payload: Event) => any) | undefined;
251
+ "onUpdate:modelValue"?: ((payload: number) => any) | undefined;
252
+ }>, {
169
253
  orientation: "vertical" | "horizontal";
170
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<InputNumberSlots> & InputNumberSlots>;
254
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
171
255
  export default _default;
172
- type __VLS_WithDefaults<P, D> = {
173
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
174
- default: D[K];
175
- }> : P[K];
176
- };
177
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
178
- type __VLS_TypePropsToOption<T> = {
179
- [K in keyof T]-?: {} extends Pick<T, K> ? {
180
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
181
- } : {
182
- type: import('vue').PropType<T[K]>;
183
- required: true;
184
- };
185
- };
186
- type __VLS_WithTemplateSlots<T, S> = T & {
256
+ type __VLS_WithSlots<T, S> = T & {
187
257
  new (): {
188
258
  $slots: S;
189
259
  };
190
260
  };
191
- type __VLS_PrettifyLocal<T> = {
192
- [K in keyof T]: T[K];
193
- } & {};
@@ -23,33 +23,12 @@ export interface KbdProps {
23
23
  export interface KbdSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<KbdProps>, {
27
- as: string;
28
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<KbdProps>, {
29
- as: string;
30
- }>>> & Readonly<{}>, {
26
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
31
27
  as: any;
32
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<KbdSlots> & KbdSlots>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
33
29
  export default _default;
34
- type __VLS_WithDefaults<P, D> = {
35
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
36
- default: D[K];
37
- }> : P[K];
38
- };
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToOption<T> = {
41
- [K in keyof T]-?: {} extends Pick<T, K> ? {
42
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
- } : {
44
- type: import('vue').PropType<T[K]>;
45
- required: true;
46
- };
47
- };
48
- type __VLS_WithTemplateSlots<T, S> = T & {
30
+ type __VLS_WithSlots<T, S> = T & {
49
31
  new (): {
50
32
  $slots: S;
51
33
  };
52
34
  };
53
- type __VLS_PrettifyLocal<T> = {
54
- [K in keyof T]: T[K];
55
- } & {};