@nuxt/ui 3.2.0 → 3.3.1

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 (185) hide show
  1. package/.nuxt/ui/button.ts +42 -42
  2. package/.nuxt/ui/command-palette.ts +2 -1
  3. package/.nuxt/ui/drawer.ts +1 -1
  4. package/.nuxt/ui/file-upload.ts +290 -0
  5. package/.nuxt/ui/index.ts +1 -0
  6. package/.nuxt/ui/input.ts +1 -1
  7. package/.nuxt/ui/kbd.ts +167 -3
  8. package/.nuxt/ui/select.ts +7 -7
  9. package/.nuxt/ui/table.ts +8 -0
  10. package/.nuxt/ui/tabs.ts +4 -2
  11. package/.nuxt/ui/textarea.ts +1 -1
  12. package/.nuxt/ui/toast.ts +8 -15
  13. package/.nuxt/ui/tooltip.ts +1 -1
  14. package/cli/templates.mjs +8 -3
  15. package/dist/module.d.mts +15 -1
  16. package/dist/module.json +2 -2
  17. package/dist/module.mjs +3 -3
  18. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  19. package/dist/runtime/components/Alert.vue.d.ts +2 -2
  20. package/dist/runtime/components/App.vue.d.ts +1 -1
  21. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  22. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  23. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  24. package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
  25. package/dist/runtime/components/Button.vue +6 -6
  26. package/dist/runtime/components/Button.vue.d.ts +1 -5
  27. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  28. package/dist/runtime/components/Calendar.vue.d.ts +1 -1
  29. package/dist/runtime/components/Card.vue.d.ts +1 -1
  30. package/dist/runtime/components/Carousel.vue +18 -14
  31. package/dist/runtime/components/Carousel.vue.d.ts +1 -1
  32. package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
  33. package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
  34. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  35. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  36. package/dist/runtime/components/ColorPicker.vue +1 -2
  37. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  38. package/dist/runtime/components/CommandPalette.vue +4 -0
  39. package/dist/runtime/components/CommandPalette.vue.d.ts +6 -1
  40. package/dist/runtime/components/Container.vue.d.ts +1 -1
  41. package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
  42. package/dist/runtime/components/ContextMenuContent.vue +5 -3
  43. package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
  44. package/dist/runtime/components/Drawer.vue +4 -4
  45. package/dist/runtime/components/Drawer.vue.d.ts +6 -1
  46. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
  47. package/dist/runtime/components/DropdownMenuContent.vue +5 -3
  48. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
  49. package/dist/runtime/components/FileUpload.vue +248 -0
  50. package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
  51. package/dist/runtime/components/Form.vue +3 -3
  52. package/dist/runtime/components/Form.vue.d.ts +6 -5
  53. package/dist/runtime/components/FormField.vue +2 -2
  54. package/dist/runtime/components/FormField.vue.d.ts +4 -4
  55. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  56. package/dist/runtime/components/Input.vue +10 -7
  57. package/dist/runtime/components/Input.vue.d.ts +9 -9
  58. package/dist/runtime/components/InputMenu.vue +25 -13
  59. package/dist/runtime/components/InputMenu.vue.d.ts +16 -221
  60. package/dist/runtime/components/InputNumber.vue +3 -2
  61. package/dist/runtime/components/InputNumber.vue.d.ts +7 -81
  62. package/dist/runtime/components/InputTags.vue +2 -0
  63. package/dist/runtime/components/InputTags.vue.d.ts +7 -5
  64. package/dist/runtime/components/Kbd.vue +2 -1
  65. package/dist/runtime/components/Kbd.vue.d.ts +5 -1
  66. package/dist/runtime/components/Link.vue +6 -5
  67. package/dist/runtime/components/Link.vue.d.ts +1 -3
  68. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  69. package/dist/runtime/components/Modal.vue.d.ts +2 -2
  70. package/dist/runtime/components/NavigationMenu.vue +3 -2
  71. package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
  72. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  73. package/dist/runtime/components/Pagination.vue.d.ts +1 -1
  74. package/dist/runtime/components/PinInput.vue +3 -1
  75. package/dist/runtime/components/PinInput.vue.d.ts +5 -5
  76. package/dist/runtime/components/Popover.vue +2 -1
  77. package/dist/runtime/components/Popover.vue.d.ts +8 -2
  78. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  79. package/dist/runtime/components/RadioGroup.vue +1 -1
  80. package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
  81. package/dist/runtime/components/Select.vue +16 -6
  82. package/dist/runtime/components/Select.vue.d.ts +3 -3
  83. package/dist/runtime/components/SelectMenu.vue +18 -10
  84. package/dist/runtime/components/SelectMenu.vue.d.ts +3 -3
  85. package/dist/runtime/components/Separator.vue.d.ts +1 -1
  86. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  87. package/dist/runtime/components/Slideover.vue.d.ts +2 -2
  88. package/dist/runtime/components/Slider.vue.d.ts +5 -5
  89. package/dist/runtime/components/Stepper.vue.d.ts +1 -1
  90. package/dist/runtime/components/Switch.vue.d.ts +1 -1
  91. package/dist/runtime/components/Table.vue +83 -8
  92. package/dist/runtime/components/Table.vue.d.ts +20 -4
  93. package/dist/runtime/components/Tabs.vue +12 -2
  94. package/dist/runtime/components/Tabs.vue.d.ts +8 -3
  95. package/dist/runtime/components/Textarea.vue +10 -7
  96. package/dist/runtime/components/Textarea.vue.d.ts +10 -9
  97. package/dist/runtime/components/Timeline.vue.d.ts +1 -1
  98. package/dist/runtime/components/Toast.vue +12 -4
  99. package/dist/runtime/components/Toast.vue.d.ts +14 -13
  100. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  101. package/dist/runtime/components/Tooltip.vue +4 -3
  102. package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
  103. package/dist/runtime/components/Tree.vue +31 -28
  104. package/dist/runtime/components/Tree.vue.d.ts +2 -1
  105. package/dist/runtime/composables/defineShortcuts.js +5 -3
  106. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  107. package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
  108. package/dist/runtime/composables/useFileUpload.d.ts +19 -0
  109. package/dist/runtime/composables/useFileUpload.js +69 -0
  110. package/dist/runtime/composables/useFormField.d.ts +3 -6
  111. package/dist/runtime/composables/useFormField.js +5 -2
  112. package/dist/runtime/composables/useKbd.d.ts +1 -1
  113. package/dist/runtime/composables/useLocale.js +2 -2
  114. package/dist/runtime/composables/useOverlay.d.ts +29 -2
  115. package/dist/runtime/composables/useOverlay.js +8 -7
  116. package/dist/runtime/composables/usePortal.d.ts +1 -1
  117. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  118. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  119. package/dist/runtime/inertia/stubs.d.ts +1 -0
  120. package/dist/runtime/inertia/stubs.js +4 -2
  121. package/dist/runtime/locale/ar.js +5 -1
  122. package/dist/runtime/locale/az.js +4 -0
  123. package/dist/runtime/locale/bg.js +4 -0
  124. package/dist/runtime/locale/bn.js +4 -0
  125. package/dist/runtime/locale/ca.js +4 -0
  126. package/dist/runtime/locale/ckb.js +5 -1
  127. package/dist/runtime/locale/cs.js +4 -0
  128. package/dist/runtime/locale/da.js +4 -0
  129. package/dist/runtime/locale/de.js +4 -0
  130. package/dist/runtime/locale/el.js +4 -0
  131. package/dist/runtime/locale/en.js +4 -0
  132. package/dist/runtime/locale/es.js +4 -0
  133. package/dist/runtime/locale/et.js +4 -0
  134. package/dist/runtime/locale/fa_ir.js +4 -0
  135. package/dist/runtime/locale/fi.js +4 -0
  136. package/dist/runtime/locale/fr.js +4 -0
  137. package/dist/runtime/locale/he.js +4 -0
  138. package/dist/runtime/locale/hi.js +5 -1
  139. package/dist/runtime/locale/hu.js +4 -0
  140. package/dist/runtime/locale/hy.js +4 -0
  141. package/dist/runtime/locale/id.js +4 -0
  142. package/dist/runtime/locale/it.js +4 -0
  143. package/dist/runtime/locale/ja.js +4 -0
  144. package/dist/runtime/locale/kk.js +4 -0
  145. package/dist/runtime/locale/km.js +5 -1
  146. package/dist/runtime/locale/ko.js +4 -0
  147. package/dist/runtime/locale/ky.js +4 -0
  148. package/dist/runtime/locale/lb.js +4 -0
  149. package/dist/runtime/locale/lt.js +4 -0
  150. package/dist/runtime/locale/mn.js +4 -0
  151. package/dist/runtime/locale/ms.js +4 -0
  152. package/dist/runtime/locale/nb_no.js +4 -0
  153. package/dist/runtime/locale/nl.js +4 -0
  154. package/dist/runtime/locale/pl.js +4 -0
  155. package/dist/runtime/locale/pt.js +4 -0
  156. package/dist/runtime/locale/pt_br.js +4 -0
  157. package/dist/runtime/locale/ro.js +4 -0
  158. package/dist/runtime/locale/ru.js +4 -0
  159. package/dist/runtime/locale/sk.js +4 -0
  160. package/dist/runtime/locale/sl.js +4 -0
  161. package/dist/runtime/locale/sv.js +4 -0
  162. package/dist/runtime/locale/th.js +4 -0
  163. package/dist/runtime/locale/tj.js +4 -0
  164. package/dist/runtime/locale/tr.js +4 -0
  165. package/dist/runtime/locale/ug_cn.js +4 -0
  166. package/dist/runtime/locale/uk.js +4 -0
  167. package/dist/runtime/locale/ur.js +4 -0
  168. package/dist/runtime/locale/uz.js +4 -0
  169. package/dist/runtime/locale/vi.js +4 -0
  170. package/dist/runtime/locale/zh_cn.js +4 -0
  171. package/dist/runtime/locale/zh_tw.js +4 -0
  172. package/dist/runtime/types/index.d.ts +1 -0
  173. package/dist/runtime/types/index.js +1 -0
  174. package/dist/runtime/types/locale.d.ts +4 -0
  175. package/dist/runtime/utils/index.d.ts +6 -0
  176. package/dist/runtime/utils/index.js +27 -0
  177. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  178. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  179. package/dist/runtime/vue/stubs.d.ts +1 -0
  180. package/dist/runtime/vue/stubs.js +3 -1
  181. package/dist/shared/{ui.BPVxSPGY.mjs → ui.BTUFJHYJ.mjs} +299 -36
  182. package/dist/unplugin.d.mts +2 -0
  183. package/dist/unplugin.mjs +6 -3
  184. package/dist/vite.mjs +1 -1
  185. package/package.json +31 -27
@@ -13,6 +13,8 @@ export interface InputTagsProps<T extends InputTagItem = InputTagItem> extends P
13
13
  as?: any;
14
14
  /** The placeholder text when the input is empty. */
15
15
  placeholder?: string;
16
+ /** The maximum number of character allowed. */
17
+ maxLength?: number;
16
18
  /**
17
19
  * @defaultValue 'primary'
18
20
  */
@@ -61,8 +63,8 @@ declare const _default: <T extends InputTagItem>(__VLS_props: NonNullable<Awaite
61
63
  readonly onFocus?: ((event: FocusEvent) => any) | undefined;
62
64
  readonly onInvalid?: ((payload: T) => any) | undefined;
63
65
  readonly "onUpdate:modelValue"?: ((payload: T[]) => any) | undefined;
64
- readonly onRemoveTag?: ((payload: T) => any) | undefined;
65
66
  readonly onAddTag?: ((payload: T) => any) | undefined;
67
+ readonly onRemoveTag?: ((payload: T) => any) | undefined;
66
68
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInvalid" | "onUpdate:modelValue" | "onRemoveTag" | "onAddTag"> & InputTagsProps<T> & Partial<{}>> & import("vue").PublicProps;
67
69
  expose(exposed: import("vue").ShallowUnwrapRef<{
68
70
  inputRef: import("vue").Ref<({
@@ -115,7 +117,7 @@ declare const _default: <T extends InputTagItem>(__VLS_props: NonNullable<Awaite
115
117
  as: import("reka-ui").AsTag | import("vue").Component;
116
118
  }> & Omit<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
117
119
  $slots: {
118
- default?(_: {}): any;
120
+ default?: (props: {}) => any;
119
121
  };
120
122
  }) | null, ({
121
123
  $: import("vue").ComponentInternalInstance;
@@ -167,17 +169,17 @@ declare const _default: <T extends InputTagItem>(__VLS_props: NonNullable<Awaite
167
169
  as: import("reka-ui").AsTag | import("vue").Component;
168
170
  }> & Omit<Readonly<import("reka-ui").TagsInputInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
169
171
  $slots: {
170
- default?(_: {}): any;
172
+ default?: (props: {}) => any;
171
173
  };
172
174
  }) | null>;
173
175
  }>): void;
174
176
  attrs: any;
175
177
  slots: InputTagsSlots<T>;
176
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "removeTag", payload: T) => void) & ((evt: "addTag", payload: T) => void);
178
+ emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", payload: T) => void) & ((evt: "update:modelValue", payload: T[]) => void) & ((evt: "addTag", payload: T) => void) & ((evt: "removeTag", payload: T) => void);
177
179
  }>) => import("vue").VNode & {
178
180
  __ctx?: Awaited<typeof __VLS_setup>;
179
181
  };
180
182
  export default _default;
181
183
  type __VLS_PrettifyLocal<T> = {
182
- [K in keyof T]: T[K];
184
+ [K in keyof T as K]: T[K];
183
185
  } & {};
@@ -11,6 +11,7 @@ import { tv } from "../utils/tv";
11
11
  const props = defineProps({
12
12
  as: { type: null, required: false, default: "kbd" },
13
13
  value: { type: null, required: false },
14
+ color: { type: null, required: false },
14
15
  variant: { type: null, required: false },
15
16
  size: { type: null, required: false },
16
17
  class: { type: null, required: false }
@@ -22,7 +23,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.kbd || {} }))
22
23
  </script>
23
24
 
24
25
  <template>
25
- <Primitive :as="as" :class="ui({ variant, size, class: props.class })">
26
+ <Primitive :as="as" :class="ui({ class: props.class, color: props.color, variant: props.variant, size: props.size })">
26
27
  <slot>
27
28
  {{ getKbdKey(value) }}
28
29
  </slot>
@@ -10,6 +10,10 @@ export interface KbdProps {
10
10
  */
11
11
  as?: any;
12
12
  value?: KbdKey | string;
13
+ /**
14
+ * @defaultValue 'neutral'
15
+ */
16
+ color?: Kbd['variants']['color'];
13
17
  /**
14
18
  * @defaultValue 'outline'
15
19
  */
@@ -23,7 +27,7 @@ export interface KbdProps {
23
27
  export interface KbdSlots {
24
28
  default(props?: {}): any;
25
29
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
30
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
27
31
  as: any;
28
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
29
33
  export default _default;
@@ -4,11 +4,12 @@ import theme from "#build/ui/link";
4
4
 
5
5
  <script setup>
6
6
  import { computed } from "vue";
7
- import { defu } from "defu";
8
7
  import { isEqual } from "ohash/utils";
9
8
  import { useForwardProps } from "reka-ui";
9
+ import { defu } from "defu";
10
10
  import { reactiveOmit } from "@vueuse/core";
11
11
  import { useRoute, useAppConfig } from "#imports";
12
+ import { mergeClasses } from "../utils";
12
13
  import { tv } from "../utils/tv";
13
14
  import { isPartiallyEqual } from "../utils/link";
14
15
  import ULinkBase from "./LinkBase.vue";
@@ -21,7 +22,7 @@ const props = defineProps({
21
22
  exact: { type: Boolean, required: false },
22
23
  exactQuery: { type: [Boolean, String], required: false },
23
24
  exactHash: { type: Boolean, required: false },
24
- inactiveClass: { type: String, required: false, default: "" },
25
+ inactiveClass: { type: String, required: false },
25
26
  custom: { type: Boolean, required: false },
26
27
  raw: { type: Boolean, required: false },
27
28
  class: { type: null, required: false },
@@ -35,7 +36,7 @@ const props = defineProps({
35
36
  prefetch: { type: Boolean, required: false },
36
37
  prefetchOn: { type: [String, Object], required: false },
37
38
  noPrefetch: { type: Boolean, required: false },
38
- activeClass: { type: String, required: false, default: "" },
39
+ activeClass: { type: String, required: false },
39
40
  exactActiveClass: { type: String, required: false },
40
41
  ariaCurrentValue: { type: String, required: false, default: "page" },
41
42
  viewTransition: { type: Boolean, required: false },
@@ -50,8 +51,8 @@ const ui = computed(() => tv({
50
51
  ...defu({
51
52
  variants: {
52
53
  active: {
53
- true: props.activeClass,
54
- false: props.inactiveClass
54
+ true: mergeClasses(appConfig.ui?.link?.variants?.active?.true, props.activeClass),
55
+ false: mergeClasses(appConfig.ui?.link?.variants?.active?.false, props.inactiveClass)
55
56
  }
56
57
  }
57
58
  }, appConfig.ui?.link || {})
@@ -77,13 +77,11 @@ export interface LinkSlots {
77
77
  active: boolean;
78
78
  }): any;
79
79
  }
80
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
80
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
81
81
  type: "reset" | "submit" | "button";
82
82
  as: any;
83
- activeClass: string;
84
83
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
85
84
  active: boolean;
86
- inactiveClass: string;
87
85
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
88
86
  export default _default;
89
87
  type __VLS_WithSlots<T, S> = T & {
@@ -11,7 +11,7 @@ export interface LinkBaseProps {
11
11
  active?: boolean;
12
12
  isExternal?: boolean;
13
13
  }
14
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
14
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
15
15
  type: string;
16
16
  as: string;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -80,7 +80,7 @@ export interface ModalSlots {
80
80
  close: () => void;
81
81
  }): any;
82
82
  }
83
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
84
84
  "update:open": (value: boolean) => any;
85
85
  "after:leave": () => any;
86
86
  "after:enter": () => any;
@@ -93,9 +93,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps
93
93
  }>, {
94
94
  close: boolean | Partial<ButtonProps>;
95
95
  modal: boolean;
96
+ transition: boolean;
96
97
  portal: boolean | string | HTMLElement;
97
98
  overlay: boolean;
98
- transition: boolean;
99
99
  dismissible: boolean;
100
100
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
101
101
  export default _default;
@@ -18,6 +18,7 @@ import UIcon from "./Icon.vue";
18
18
  import UBadge from "./Badge.vue";
19
19
  import UPopover from "./Popover.vue";
20
20
  import UTooltip from "./Tooltip.vue";
21
+ defineOptions({ inheritAttrs: false });
21
22
  const props = defineProps({
22
23
  as: { type: null, required: false },
23
24
  trailingIcon: { type: String, required: false },
@@ -121,7 +122,7 @@ function getAccordionDefaultValue(list, level = 0) {
121
122
  <component :is="orientation === 'vertical' && item.children?.length && !collapsed ? AccordionTrigger : 'span'" v-if="(!collapsed || orientation !== 'vertical') && (item.badge || orientation === 'horizontal' && (item.children?.length || !!slots[item.slot ? `${item.slot}-content` : 'item-content']) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[item.slot ? `${item.slot}-trailing` : 'item-trailing'])" as="span" :class="ui.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })" @click.stop.prevent>
122
123
  <slot :name="item.slot ? `${item.slot}-trailing` : 'item-trailing'" :item="item" :active="active" :index="index">
123
124
  <UBadge
124
- v-if="item.badge"
125
+ v-if="item.badge !== void 0"
125
126
  color="neutral"
126
127
  variant="outline"
127
128
  :size="item.ui?.linkTrailingBadgeSize || props.ui?.linkTrailingBadgeSize || ui.linkTrailingBadgeSize()"
@@ -243,7 +244,7 @@ function getAccordionDefaultValue(list, level = 0) {
243
244
  </component>
244
245
  </DefineItemTemplate>
245
246
 
246
- <NavigationMenuRoot v-bind="rootProps" :data-collapsed="collapsed" :class="ui.root({ class: [props.ui?.root, props.class] })">
247
+ <NavigationMenuRoot v-bind="{ ...rootProps, ...$attrs }" :data-collapsed="collapsed" :class="ui.root({ class: [props.ui?.root, props.class] })">
247
248
  <slot name="list-leading" />
248
249
 
249
250
  <template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
@@ -166,5 +166,5 @@ declare const _default: <T extends ArrayOrNested<NavigationMenuItem>>(__VLS_prop
166
166
  };
167
167
  export default _default;
168
168
  type __VLS_PrettifyLocal<T> = {
169
- [K in keyof T]: T[K];
169
+ [K in keyof T as K]: T[K];
170
170
  } & {};
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -95,7 +95,7 @@ export interface PaginationSlots {
95
95
  index: number;
96
96
  }): any;
97
97
  }
98
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
98
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PaginationProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
99
99
  "update:page": (value: number) => any;
100
100
  }, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{
101
101
  "onUpdate:page"?: ((value: number) => any) | undefined;
@@ -34,7 +34,7 @@ const props = defineProps({
34
34
  });
35
35
  const emits = defineEmits(["update:modelValue", "complete", "change", "blur"]);
36
36
  const appConfig = useAppConfig();
37
- const rootProps = useForwardPropsEmits(reactivePick(props, "defaultValue", "disabled", "id", "mask", "modelValue", "name", "otp", "required", "type"), emits);
37
+ const rootProps = useForwardPropsEmits(reactivePick(props, "disabled", "id", "mask", "name", "otp", "required", "type"), emits);
38
38
  const { emitFormInput, emitFormFocus, emitFormChange, emitFormBlur, size, color, id, name, highlight, disabled, ariaAttrs } = useFormField(props);
39
39
  const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pinInput || {} })({
40
40
  color: color.value,
@@ -76,6 +76,8 @@ defineExpose({
76
76
  :id="id"
77
77
  :name="name"
78
78
  :placeholder="placeholder"
79
+ :model-value="modelValue"
80
+ :default-value="defaultValue"
79
81
  :class="ui.root({ class: [props.ui?.root, props.class] })"
80
82
  @update:model-value="emitFormInput()"
81
83
  @complete="onComplete"
@@ -38,23 +38,23 @@ export type PinInputEmits<T extends PinInputType = 'text'> = PinInputRootEmits<T
38
38
  change: [payload: Event];
39
39
  blur: [payload: Event];
40
40
  };
41
- declare const _default: <T extends PinInputType = "text">(__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<{
41
+ declare const _default: <T extends PinInputType>(__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<{
42
42
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
43
43
  readonly onBlur?: ((payload: Event) => any) | undefined;
44
- readonly onComplete?: ((value: T extends "number" ? number[] : string[]) => any) | undefined;
44
+ readonly onComplete?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
45
45
  readonly onChange?: ((payload: Event) => any) | undefined;
46
- readonly "onUpdate:modelValue"?: ((value: T extends "number" ? number[] : string[]) => any) | undefined;
46
+ readonly "onUpdate:modelValue"?: ((value: [T] extends ["number"] ? number[] : string[]) => any) | undefined;
47
47
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue" | "onComplete"> & PinInputProps<T> & Partial<{}>> & import("vue").PublicProps;
48
48
  expose(exposed: import("vue").ShallowUnwrapRef<{
49
49
  inputsRef: import("vue").Ref<ComponentPublicInstance[], ComponentPublicInstance[]>;
50
50
  }>): void;
51
51
  attrs: any;
52
52
  slots: {};
53
- emit: ((evt: "blur", payload: Event) => void) & ((evt: "complete", value: T extends "number" ? number[] : string[]) => void) & ((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", value: T extends "number" ? number[] : string[]) => void);
53
+ emit: ((evt: "blur", payload: Event) => void) & ((evt: "complete", value: [T] extends ["number"] ? number[] : string[]) => void) & ((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", value: [T] extends ["number"] ? number[] : string[]) => void);
54
54
  }>) => import("vue").VNode & {
55
55
  __ctx?: Awaited<typeof __VLS_setup>;
56
56
  };
57
57
  export default _default;
58
58
  type __VLS_PrettifyLocal<T> = {
59
- [K in keyof T]: T[K];
59
+ [K in keyof T as K]: T[K];
60
60
  } & {};
@@ -16,6 +16,7 @@ const props = defineProps({
16
16
  content: { type: Object, required: false },
17
17
  arrow: { type: [Boolean, Object], required: false },
18
18
  portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
19
+ reference: { type: null, required: false },
19
20
  dismissible: { type: Boolean, required: false, default: true },
20
21
  class: { type: null, required: false },
21
22
  ui: { type: null, required: false },
@@ -54,7 +55,7 @@ const Component = computed(() => props.mode === "hover" ? HoverCard : Popover);
54
55
 
55
56
  <template>
56
57
  <Component.Root v-slot="{ open }" v-bind="rootProps">
57
- <Component.Trigger v-if="!!slots.default" as-child :class="props.class">
58
+ <Component.Trigger v-if="!!slots.default || !!reference" as-child :reference="reference" :class="props.class">
58
59
  <slot :open="open" />
59
60
  </Component.Trigger>
60
61
 
@@ -1,5 +1,5 @@
1
1
  import { Popover } from 'reka-ui/namespaced';
2
- import type { PopoverRootProps, HoverCardRootProps, PopoverRootEmits, PopoverContentProps, PopoverContentEmits, PopoverArrowProps } from 'reka-ui';
2
+ import type { PopoverRootProps, HoverCardRootProps, PopoverRootEmits, PopoverContentProps, PopoverContentEmits, PopoverArrowProps, HoverCardTriggerProps } from 'reka-ui';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import theme from '#build/ui/popover';
5
5
  import type { EmitsToProps, ComponentConfig } from '../types/utils';
@@ -25,6 +25,12 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
25
25
  * @defaultValue true
26
26
  */
27
27
  portal?: boolean | string | HTMLElement;
28
+ /**
29
+ * The reference (or anchor) element that is being referred to for positioning.
30
+ *
31
+ * If not provided will use the current component as anchor.
32
+ */
33
+ reference?: HoverCardTriggerProps['reference'];
28
34
  /**
29
35
  * When `false`, the popover will not close when clicking outside or pressing escape.
30
36
  * @defaultValue true
@@ -43,7 +49,7 @@ export interface PopoverSlots {
43
49
  content(props?: {}): any;
44
50
  anchor(props?: {}): any;
45
51
  }
46
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PopoverProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
53
  "update:open": (value: boolean) => any;
48
54
  "close:prevent": () => any;
49
55
  }, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
@@ -47,7 +47,7 @@ export type ProgressSlots = {
47
47
  step: number;
48
48
  }) => any;
49
49
  };
50
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProgressProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
51
  "update:modelValue": (value: string[] | undefined) => any;
52
52
  "update:max": (value: number) => any;
53
53
  }, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{
@@ -54,7 +54,7 @@ function normalizeItem(item) {
54
54
  label: void 0
55
55
  };
56
56
  }
57
- if (typeof item === "string" || typeof item === "number") {
57
+ if (typeof item === "string" || typeof item === "number" || typeof item === "bigint") {
58
58
  return {
59
59
  id: `${id}:${item}`,
60
60
  value: String(item),
@@ -64,10 +64,11 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
64
64
  export type RadioGroupEmits = RadioGroupRootEmits & {
65
65
  change: [payload: Event];
66
66
  };
67
+ type NormalizeItem<T extends RadioGroupItem> = Exclude<T & {
68
+ id: string;
69
+ }, RadioGroupValue>;
67
70
  type SlotProps<T extends RadioGroupItem> = (props: {
68
- item: T & {
69
- id: string;
70
- };
71
+ item: NormalizeItem<T>;
71
72
  modelValue?: RadioGroupValue;
72
73
  }) => any;
73
74
  export interface RadioGroupSlots<T extends RadioGroupItem = RadioGroupItem> {
@@ -89,5 +90,5 @@ declare const _default: <T extends RadioGroupItem>(__VLS_props: NonNullable<Awai
89
90
  };
90
91
  export default _default;
91
92
  type __VLS_PrettifyLocal<T> = {
92
- [K in keyof T]: T[K];
93
+ [K in keyof T as K]: T[K];
93
94
  } & {};
@@ -12,7 +12,7 @@ import { useButtonGroup } from "../composables/useButtonGroup";
12
12
  import { useComponentIcons } from "../composables/useComponentIcons";
13
13
  import { useFormField } from "../composables/useFormField";
14
14
  import { usePortal } from "../composables/usePortal";
15
- import { compare, get, isArrayOfArray } from "../utils";
15
+ import { get, getDisplayValue, isArrayOfArray } from "../utils";
16
16
  import { tv } from "../utils/tv";
17
17
  import UIcon from "./Icon.vue";
18
18
  import UAvatar from "./Avatar.vue";
@@ -81,11 +81,16 @@ const groups = computed(
81
81
  const items = computed(() => groups.value.flatMap((group) => group));
82
82
  function displayValue(value) {
83
83
  if (props.multiple && Array.isArray(value)) {
84
- const values = value.map((v) => displayValue(v)).filter(Boolean);
85
- return values?.length ? values.join(", ") : void 0;
84
+ const displayedValues = value.map((item) => getDisplayValue(items.value, item, {
85
+ labelKey: props.labelKey,
86
+ valueKey: props.valueKey
87
+ })).filter((v) => v != null && v !== "");
88
+ return displayedValues.length > 0 ? displayedValues.join(", ") : void 0;
86
89
  }
87
- const item = items.value.find((item2) => compare(typeof item2 === "object" ? get(item2, props.valueKey) : item2, value));
88
- return item && (typeof item === "object" ? get(item, props.labelKey) : item);
90
+ return getDisplayValue(items.value, value, {
91
+ labelKey: props.labelKey,
92
+ valueKey: props.valueKey
93
+ });
89
94
  }
90
95
  const triggerRef = ref(null);
91
96
  function autoFocus() {
@@ -137,7 +142,12 @@ defineExpose({
137
142
  @update:model-value="onUpdate"
138
143
  @update:open="onUpdateOpen"
139
144
  >
140
- <SelectTrigger :id="id" ref="triggerRef" :class="ui.base({ class: [props.ui?.base, props.class] })" v-bind="{ ...$attrs, ...ariaAttrs }">
145
+ <SelectTrigger
146
+ :id="id"
147
+ ref="triggerRef"
148
+ :class="ui.base({ class: [props.ui?.base, props.class] })"
149
+ v-bind="{ ...$attrs, ...ariaAttrs }"
150
+ >
141
151
  <span v-if="isLeading || !!avatar || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
142
152
  <slot name="leading" :model-value="modelValue" :open="open" :ui="ui">
143
153
  <UIcon v-if="isLeading && leadingIconName" :name="leadingIconName" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
@@ -186,7 +186,7 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
186
186
  as: import("reka-ui").AsTag | import("vue").Component;
187
187
  }> & Omit<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
188
188
  $slots: {
189
- default?(_: {}): any;
189
+ default?: (props: {}) => any;
190
190
  };
191
191
  }) | null, ({
192
192
  $: import("vue").ComponentInternalInstance;
@@ -237,7 +237,7 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
237
237
  as: import("reka-ui").AsTag | import("vue").Component;
238
238
  }> & Omit<Readonly<import("reka-ui").SelectTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
239
239
  $slots: {
240
- default?(_: {}): any;
240
+ default?: (props: {}) => any;
241
241
  };
242
242
  }) | null>;
243
243
  }>): void;
@@ -249,5 +249,5 @@ declare const _default: <T extends ArrayOrNested<SelectItem>, VK extends GetItem
249
249
  };
250
250
  export default _default;
251
251
  type __VLS_PrettifyLocal<T> = {
252
- [K in keyof T]: T[K];
252
+ [K in keyof T as K]: T[K];
253
253
  } & {};
@@ -13,7 +13,7 @@ import { useComponentIcons } from "../composables/useComponentIcons";
13
13
  import { useFormField } from "../composables/useFormField";
14
14
  import { useLocale } from "../composables/useLocale";
15
15
  import { usePortal } from "../composables/usePortal";
16
- import { compare, get, isArrayOfArray } from "../utils";
16
+ import { compare, get, getDisplayValue, isArrayOfArray } from "../utils";
17
17
  import { tv } from "../utils/tv";
18
18
  import UIcon from "./Icon.vue";
19
19
  import UAvatar from "./Avatar.vue";
@@ -90,14 +90,16 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.selectMenu ||
90
90
  }));
91
91
  function displayValue(value) {
92
92
  if (props.multiple && Array.isArray(value)) {
93
- const values = value.map((v) => displayValue(v)).filter(Boolean);
94
- return values?.length ? values.join(", ") : void 0;
93
+ const displayedValues = value.map((item) => getDisplayValue(items.value, item, {
94
+ labelKey: props.labelKey,
95
+ valueKey: props.valueKey
96
+ })).filter((v) => v != null && v !== "");
97
+ return displayedValues.length > 0 ? displayedValues.join(", ") : void 0;
95
98
  }
96
- if (!props.valueKey) {
97
- return value && (typeof value === "object" ? get(value, props.labelKey) : value);
98
- }
99
- const item = items.value.find((item2) => compare(typeof item2 === "object" ? get(item2, props.valueKey) : item2, value));
100
- return item && (typeof item === "object" ? get(item, props.labelKey) : item);
99
+ return getDisplayValue(items.value, value, {
100
+ labelKey: props.labelKey,
101
+ valueKey: props.valueKey
102
+ });
101
103
  }
102
104
  const groups = computed(
103
105
  () => props.items?.length ? isArrayOfArray(props.items) ? props.items : [props.items] : []
@@ -109,13 +111,19 @@ const filteredGroups = computed(() => {
109
111
  }
110
112
  const fields = Array.isArray(props.filterFields) ? props.filterFields : [props.labelKey];
111
113
  return groups.value.map((items2) => items2.filter((item) => {
112
- if (typeof item !== "object" || item === null) {
114
+ if (item === void 0 || item === null) {
115
+ return false;
116
+ }
117
+ if (typeof item !== "object") {
113
118
  return contains(String(item), searchTerm.value);
114
119
  }
115
120
  if (item.type && ["label", "separator"].includes(item.type)) {
116
121
  return true;
117
122
  }
118
- return fields.some((field) => contains(get(item, field), searchTerm.value));
123
+ return fields.some((field) => {
124
+ const value = get(item, field);
125
+ return value !== void 0 && value !== null && contains(String(value), searchTerm.value);
126
+ });
119
127
  })).filter((group) => group.filter(
120
128
  (item) => !isSelectItem(item) || (!item.type || !["label", "separator"].includes(item.type))
121
129
  ).length > 0);
@@ -233,7 +233,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
233
233
  as: import("reka-ui").AsTag | import("vue").Component;
234
234
  }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
235
235
  $slots: {
236
- default?(_: {}): any;
236
+ default?: (props: {}) => any;
237
237
  };
238
238
  }) | null, ({
239
239
  $: import("vue").ComponentInternalInstance;
@@ -283,7 +283,7 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
283
283
  as: import("reka-ui").AsTag | import("vue").Component;
284
284
  }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
285
285
  $slots: {
286
- default?(_: {}): any;
286
+ default?: (props: {}) => any;
287
287
  };
288
288
  }) | null>;
289
289
  }>): void;
@@ -298,5 +298,5 @@ declare const _default: <T extends ArrayOrNested<SelectMenuItem>, VK extends Get
298
298
  };
299
299
  export default _default;
300
300
  type __VLS_PrettifyLocal<T> = {
301
- [K in keyof T]: T[K];
301
+ [K in keyof T as K]: T[K];
302
302
  } & {};
@@ -43,7 +43,7 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
43
43
  export interface SeparatorSlots {
44
44
  default(props?: {}): any;
45
45
  }
46
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
46
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SeparatorProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeparatorProps> & Readonly<{}>, {
47
47
  orientation: "horizontal" | "vertical";
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SeparatorSlots>;
49
49
  export default _default;
@@ -6,7 +6,7 @@ export interface SkeletonProps {
6
6
  as?: any;
7
7
  class?: any;
8
8
  }
9
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SkeletonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
10
10
  default?: (props: {}) => any;
11
11
  }>;
12
12
  export default _default;
@@ -80,7 +80,7 @@ export interface SlideoverSlots {
80
80
  close: () => void;
81
81
  }): any;
82
82
  }
83
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
84
84
  "update:open": (value: boolean) => any;
85
85
  "after:leave": () => any;
86
86
  "after:enter": () => any;
@@ -93,9 +93,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SlideoverP
93
93
  }>, {
94
94
  close: boolean | Partial<ButtonProps>;
95
95
  modal: boolean;
96
+ transition: boolean;
96
97
  portal: boolean | string | HTMLElement;
97
98
  overlay: boolean;
98
- transition: boolean;
99
99
  side: Slideover["variants"]["side"];
100
100
  dismissible: boolean;
101
101
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>;
@@ -35,24 +35,24 @@ export interface SliderProps extends Pick<SliderRootProps, 'name' | 'disabled' |
35
35
  ui?: Slider['slots'];
36
36
  }
37
37
  export interface SliderEmits<T extends number | number[] = number | number[]> {
38
- (e: 'update:modelValue', payload: T): void;
39
- (e: 'change', payload: Event): void;
38
+ 'update:modelValue': [payload: T];
39
+ 'change': [payload: Event];
40
40
  }
41
41
  declare const _default: <T extends number | number[]>(__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<{
42
42
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
43
43
  readonly onChange?: ((payload: Event) => any) | undefined;
44
- readonly "onUpdate:modelValue"?: ((payload: T) => any) | undefined;
44
+ readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
45
45
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (SliderProps & {
46
46
  modelValue?: T;
47
47
  }) & Partial<{}>> & import("vue").PublicProps;
48
48
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
49
49
  attrs: any;
50
50
  slots: {};
51
- emit: SliderEmits<T> & ((evt: "update:modelValue", value: T | undefined) => void);
51
+ emit: (((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", payload: T) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
52
52
  }>) => import("vue").VNode & {
53
53
  __ctx?: Awaited<typeof __VLS_setup>;
54
54
  };
55
55
  export default _default;
56
56
  type __VLS_PrettifyLocal<T> = {
57
- [K in keyof T]: T[K];
57
+ [K in keyof T as K]: T[K];
58
58
  } & {};
@@ -81,5 +81,5 @@ declare const _default: <T extends StepperItem>(__VLS_props: NonNullable<Awaited
81
81
  };
82
82
  export default _default;
83
83
  type __VLS_PrettifyLocal<T> = {
84
- [K in keyof T]: T[K];
84
+ [K in keyof T as K]: T[K];
85
85
  } & {};
@@ -53,7 +53,7 @@ export interface SwitchSlots {
53
53
  }
54
54
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<SwitchProps & {
55
55
  modelValue?: boolean;
56
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
56
+ }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
57
  change: (payload: Event) => any;
58
58
  "update:modelValue": (value: boolean) => any;
59
59
  }, string, import("vue").PublicProps, Readonly<SwitchProps & {