@nuxt/ui 4.0.0-alpha.0 → 4.0.0-alpha.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 (249) hide show
  1. package/.nuxt/ui/changelog-version.ts +1 -1
  2. package/.nuxt/ui/changelog-versions.ts +2 -2
  3. package/README.md +10 -10
  4. package/dist/module.json +2 -2
  5. package/dist/module.mjs +3 -3
  6. package/dist/runtime/components/Accordion.vue +1 -1
  7. package/dist/runtime/components/Accordion.vue.d.ts +5 -4
  8. package/dist/runtime/components/Alert.vue +2 -2
  9. package/dist/runtime/components/Alert.vue.d.ts +4 -4
  10. package/dist/runtime/components/App.vue +1 -1
  11. package/dist/runtime/components/App.vue.d.ts +1 -1
  12. package/dist/runtime/components/AuthForm.vue +1 -1
  13. package/dist/runtime/components/AuthForm.vue.d.ts +3 -3
  14. package/dist/runtime/components/Avatar.vue +1 -1
  15. package/dist/runtime/components/Avatar.vue.d.ts +3 -3
  16. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  17. package/dist/runtime/components/Badge.vue +3 -3
  18. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  19. package/dist/runtime/components/Banner.vue +2 -2
  20. package/dist/runtime/components/Banner.vue.d.ts +4 -4
  21. package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
  22. package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
  23. package/dist/runtime/components/Breadcrumb.vue +1 -1
  24. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -4
  25. package/dist/runtime/components/Button.vue +4 -4
  26. package/dist/runtime/components/Button.vue.d.ts +1 -1
  27. package/dist/runtime/components/Calendar.vue +5 -5
  28. package/dist/runtime/components/Calendar.vue.d.ts +8 -7
  29. package/dist/runtime/components/Card.vue.d.ts +1 -1
  30. package/dist/runtime/components/Carousel.vue +3 -3
  31. package/dist/runtime/components/Carousel.vue.d.ts +4 -4
  32. package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
  33. package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
  34. package/dist/runtime/components/ChatMessage.vue +1 -1
  35. package/dist/runtime/components/ChatMessage.vue.d.ts +3 -3
  36. package/dist/runtime/components/ChatMessages.vue +1 -1
  37. package/dist/runtime/components/ChatMessages.vue.d.ts +3 -3
  38. package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
  39. package/dist/runtime/components/ChatPromptSubmit.vue +4 -4
  40. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +6 -6
  41. package/dist/runtime/components/Checkbox.vue +2 -2
  42. package/dist/runtime/components/Checkbox.vue.d.ts +7 -6
  43. package/dist/runtime/components/CheckboxGroup.vue +1 -1
  44. package/dist/runtime/components/CheckboxGroup.vue.d.ts +4 -4
  45. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  46. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  47. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  48. package/dist/runtime/components/CommandPalette.vue +6 -6
  49. package/dist/runtime/components/CommandPalette.vue.d.ts +9 -9
  50. package/dist/runtime/components/Container.vue.d.ts +1 -1
  51. package/dist/runtime/components/ContextMenu.vue +4 -3
  52. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -6
  53. package/dist/runtime/components/ContextMenuContent.vue +3 -3
  54. package/dist/runtime/components/ContextMenuContent.vue.d.ts +5 -5
  55. package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
  56. package/dist/runtime/components/DashboardNavbar.vue +1 -1
  57. package/dist/runtime/components/DashboardNavbar.vue.d.ts +3 -3
  58. package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
  59. package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
  60. package/dist/runtime/components/DashboardSearch.vue +3 -3
  61. package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -4
  62. package/dist/runtime/components/DashboardSearchButton.vue +1 -1
  63. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +3 -3
  64. package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
  65. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
  66. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
  67. package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
  68. package/dist/runtime/components/Drawer.vue.d.ts +1 -1
  69. package/dist/runtime/components/DropdownMenu.vue +3 -3
  70. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -6
  71. package/dist/runtime/components/DropdownMenuContent.vue +3 -3
  72. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +5 -5
  73. package/dist/runtime/components/Error.vue.d.ts +1 -1
  74. package/dist/runtime/components/FieldGroup.vue.d.ts +1 -1
  75. package/dist/runtime/components/FileUpload.vue +4 -4
  76. package/dist/runtime/components/FileUpload.vue.d.ts +9 -10
  77. package/dist/runtime/components/Footer.vue.d.ts +1 -1
  78. package/dist/runtime/components/FooterColumns.vue.d.ts +3 -3
  79. package/dist/runtime/components/Form.vue +2 -2
  80. package/dist/runtime/components/Form.vue.d.ts +7 -7
  81. package/dist/runtime/components/FormField.vue +2 -2
  82. package/dist/runtime/components/FormField.vue.d.ts +1 -1
  83. package/dist/runtime/components/Header.vue.d.ts +1 -1
  84. package/dist/runtime/components/Icon.vue +3 -2
  85. package/dist/runtime/components/Icon.vue.d.ts +2 -2
  86. package/dist/runtime/components/Input.vue +8 -5
  87. package/dist/runtime/components/Input.vue.d.ts +6 -11
  88. package/dist/runtime/components/InputMenu.vue +7 -7
  89. package/dist/runtime/components/InputMenu.vue.d.ts +14 -14
  90. package/dist/runtime/components/InputNumber.vue +12 -6
  91. package/dist/runtime/components/InputNumber.vue.d.ts +13 -9
  92. package/dist/runtime/components/InputTags.vue +5 -5
  93. package/dist/runtime/components/InputTags.vue.d.ts +3 -2
  94. package/dist/runtime/components/Kbd.vue.d.ts +1 -1
  95. package/dist/runtime/components/Link.vue.d.ts +1 -1
  96. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  97. package/dist/runtime/components/Main.vue.d.ts +1 -1
  98. package/dist/runtime/components/Marquee.vue.d.ts +1 -1
  99. package/dist/runtime/components/Modal.vue +1 -1
  100. package/dist/runtime/components/Modal.vue.d.ts +3 -3
  101. package/dist/runtime/components/NavigationMenu.vue +2 -2
  102. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -6
  103. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  104. package/dist/runtime/components/Page.vue.d.ts +1 -1
  105. package/dist/runtime/components/PageAnchors.vue.d.ts +3 -3
  106. package/dist/runtime/components/PageAside.vue.d.ts +1 -1
  107. package/dist/runtime/components/PageBody.vue.d.ts +1 -1
  108. package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
  109. package/dist/runtime/components/PageCard.vue +1 -1
  110. package/dist/runtime/components/PageCard.vue.d.ts +3 -3
  111. package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
  112. package/dist/runtime/components/PageFeature.vue +1 -1
  113. package/dist/runtime/components/PageFeature.vue.d.ts +3 -3
  114. package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
  115. package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
  116. package/dist/runtime/components/PageHero.vue.d.ts +1 -1
  117. package/dist/runtime/components/PageLinks.vue.d.ts +3 -3
  118. package/dist/runtime/components/PageList.vue.d.ts +1 -1
  119. package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
  120. package/dist/runtime/components/PageSection.vue +1 -1
  121. package/dist/runtime/components/PageSection.vue.d.ts +3 -3
  122. package/dist/runtime/components/Pagination.vue +5 -5
  123. package/dist/runtime/components/Pagination.vue.d.ts +7 -7
  124. package/dist/runtime/components/PinInput.vue.d.ts +6 -6
  125. package/dist/runtime/components/Popover.vue.d.ts +1 -1
  126. package/dist/runtime/components/PricingPlan.vue.d.ts +3 -3
  127. package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
  128. package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
  129. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  130. package/dist/runtime/components/RadioGroup.vue.d.ts +4 -4
  131. package/dist/runtime/components/Select.vue +5 -5
  132. package/dist/runtime/components/Select.vue.d.ts +13 -13
  133. package/dist/runtime/components/SelectMenu.vue +5 -5
  134. package/dist/runtime/components/SelectMenu.vue.d.ts +13 -13
  135. package/dist/runtime/components/Separator.vue +1 -1
  136. package/dist/runtime/components/Separator.vue.d.ts +3 -3
  137. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  138. package/dist/runtime/components/Slideover.vue +1 -1
  139. package/dist/runtime/components/Slideover.vue.d.ts +3 -3
  140. package/dist/runtime/components/Slider.vue +1 -1
  141. package/dist/runtime/components/Slider.vue.d.ts +6 -7
  142. package/dist/runtime/components/Stepper.vue.d.ts +8 -7
  143. package/dist/runtime/components/Switch.vue +3 -3
  144. package/dist/runtime/components/Switch.vue.d.ts +8 -7
  145. package/dist/runtime/components/Table.vue +2 -2
  146. package/dist/runtime/components/Table.vue.d.ts +1 -1
  147. package/dist/runtime/components/Tabs.vue.d.ts +3 -3
  148. package/dist/runtime/components/Textarea.vue +8 -5
  149. package/dist/runtime/components/Textarea.vue.d.ts +6 -11
  150. package/dist/runtime/components/Timeline.vue.d.ts +3 -3
  151. package/dist/runtime/components/Toast.vue +2 -2
  152. package/dist/runtime/components/Toast.vue.d.ts +3 -3
  153. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  154. package/dist/runtime/components/Tooltip.vue.d.ts +1 -1
  155. package/dist/runtime/components/Tree.vue +3 -3
  156. package/dist/runtime/components/Tree.vue.d.ts +9 -8
  157. package/dist/runtime/components/User.vue.d.ts +1 -1
  158. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
  159. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  160. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
  161. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  162. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  163. package/dist/runtime/components/content/ContentNavigation.vue +1 -1
  164. package/dist/runtime/components/content/ContentNavigation.vue.d.ts +5 -5
  165. package/dist/runtime/components/content/ContentSearch.vue +3 -3
  166. package/dist/runtime/components/content/ContentSearch.vue.d.ts +7 -7
  167. package/dist/runtime/components/content/ContentSearchButton.vue +1 -1
  168. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +3 -3
  169. package/dist/runtime/components/content/ContentSurround.vue +2 -2
  170. package/dist/runtime/components/content/ContentSurround.vue.d.ts +5 -4
  171. package/dist/runtime/components/content/ContentToc.vue +1 -1
  172. package/dist/runtime/components/content/ContentToc.vue.d.ts +3 -2
  173. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
  174. package/dist/runtime/components/prose/A.vue.d.ts +1 -1
  175. package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
  176. package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
  177. package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
  178. package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
  179. package/dist/runtime/components/prose/Callout.vue +1 -1
  180. package/dist/runtime/components/prose/Callout.vue.d.ts +3 -3
  181. package/dist/runtime/components/prose/Card.vue +1 -1
  182. package/dist/runtime/components/prose/Card.vue.d.ts +3 -3
  183. package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
  184. package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
  185. package/dist/runtime/components/prose/CodeCollapse.vue +1 -1
  186. package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +3 -2
  187. package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
  188. package/dist/runtime/components/prose/CodeIcon.vue +1 -1
  189. package/dist/runtime/components/prose/CodeIcon.vue.d.ts +3 -2
  190. package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
  191. package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
  192. package/dist/runtime/components/prose/Collapsible.vue +1 -1
  193. package/dist/runtime/components/prose/Collapsible.vue.d.ts +3 -2
  194. package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
  195. package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
  196. package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
  197. package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
  198. package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
  199. package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
  200. package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
  201. package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
  202. package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
  203. package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
  204. package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
  205. package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
  206. package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
  207. package/dist/runtime/components/prose/P.vue.d.ts +1 -1
  208. package/dist/runtime/components/prose/Pre.vue +1 -1
  209. package/dist/runtime/components/prose/Pre.vue.d.ts +3 -2
  210. package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
  211. package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
  212. package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
  213. package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
  214. package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
  215. package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
  216. package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
  217. package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
  218. package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
  219. package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
  220. package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
  221. package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
  222. package/dist/runtime/components/prose/callout/Caution.vue.d.ts +1 -1
  223. package/dist/runtime/components/prose/callout/Note.vue.d.ts +1 -1
  224. package/dist/runtime/components/prose/callout/Tip.vue.d.ts +1 -1
  225. package/dist/runtime/components/prose/callout/Warning.vue.d.ts +1 -1
  226. package/dist/runtime/composables/useComponentIcons.d.ts +5 -5
  227. package/dist/runtime/composables/useFormField.d.ts +2 -1
  228. package/dist/runtime/composables/useFormField.js +1 -0
  229. package/dist/runtime/index.css +1 -1
  230. package/dist/runtime/inertia/components/Link.vue +3 -0
  231. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  232. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  233. package/dist/runtime/types/form.d.ts +3 -3
  234. package/dist/runtime/types/input.d.ts +8 -0
  235. package/dist/runtime/types/input.js +0 -0
  236. package/dist/runtime/types/utils.d.ts +1 -1
  237. package/dist/runtime/utils/index.d.ts +1 -0
  238. package/dist/runtime/utils/index.js +30 -1
  239. package/dist/runtime/utils/tv.d.ts +1 -1
  240. package/dist/runtime/vue/components/Icon.vue +3 -2
  241. package/dist/runtime/vue/components/Icon.vue.d.ts +3 -2
  242. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  243. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  244. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
  245. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  246. package/dist/shared/{ui.DT-jTZu1.mjs → ui.BEZXPd3d.mjs} +3 -3
  247. package/dist/unplugin.mjs +12 -4
  248. package/dist/vite.mjs +1 -1
  249. package/package.json +20 -22
@@ -10,7 +10,7 @@ export interface DashboardGroupProps extends Pick<UseResizableProps, 'storage' |
10
10
  export interface DashboardGroupSlots {
11
11
  default(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardGroupProps> & Readonly<{}>, {
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardGroupProps> & Readonly<{}>, {
14
14
  storage: "cookie" | "local";
15
15
  unit: "%" | "rem" | "px";
16
16
  storageKey: string;
@@ -14,7 +14,7 @@ import UIcon from "./Icon.vue";
14
14
  defineOptions({ inheritAttrs: false });
15
15
  const props = defineProps({
16
16
  as: { type: null, required: false },
17
- icon: { type: String, required: false },
17
+ icon: { type: [String, Object], required: false },
18
18
  title: { type: String, required: false },
19
19
  toggle: { type: [Boolean, Object], required: false, default: true },
20
20
  toggleSide: { type: String, required: false, default: "left" },
@@ -1,7 +1,7 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/dashboard-navbar';
3
3
  import type { DashboardContext } from '../utils/dashboard';
4
- import type { ButtonProps } from '../types';
4
+ import type { ButtonProps, IconProps } from '../types';
5
5
  import type { ComponentConfig } from '../types/tv';
6
6
  type DashboardNavbar = ComponentConfig<typeof theme, AppConfig, 'dashboardNavbar'>;
7
7
  export interface DashboardNavbarProps {
@@ -14,7 +14,7 @@ export interface DashboardNavbarProps {
14
14
  * The icon displayed next to the title.
15
15
  * @IconifyIcon
16
16
  */
17
- icon?: string;
17
+ icon?: IconProps['name'];
18
18
  title?: string;
19
19
  /**
20
20
  * Customize the toggle button to open the sidebar.
@@ -40,7 +40,7 @@ export interface DashboardNavbarSlots {
40
40
  right(props: DashboardNavbarSlotsProps): any;
41
41
  toggle(props: DashboardNavbarSlotsProps): any;
42
42
  }
43
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardNavbarProps> & Readonly<{}>, {
43
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardNavbarProps> & Readonly<{}>, {
44
44
  toggle: boolean | Partial<ButtonProps>;
45
45
  toggleSide: "left" | "right";
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardNavbarSlots>;
@@ -18,7 +18,7 @@ export interface DashboardPanelSlots {
18
18
  onDoubleClick: (e: MouseEvent) => void;
19
19
  }): any;
20
20
  }
21
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {
21
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {
22
22
  minSize: number;
23
23
  resizable: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardPanelSlots>;
@@ -9,7 +9,7 @@ export interface DashboardResizeHandleProps {
9
9
  export interface DashboardResizeHandleSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardResizeHandleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardResizeHandleSlots>;
12
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardResizeHandleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardResizeHandleSlots>;
13
13
  export default _default;
14
14
  type __VLS_WithSlots<T, S> = T & {
15
15
  new (): {
@@ -14,13 +14,13 @@ import { tv } from "../utils/tv";
14
14
  import UCommandPalette from "./CommandPalette.vue";
15
15
  import UModal from "./Modal.vue";
16
16
  const props = defineProps({
17
- icon: { type: String, required: false },
17
+ icon: { type: [String, Object], required: false },
18
18
  placeholder: { type: String, required: false },
19
19
  autofocus: { type: Boolean, required: false },
20
20
  loading: { type: Boolean, required: false },
21
- loadingIcon: { type: String, required: false },
21
+ loadingIcon: { type: [String, Object], required: false },
22
22
  close: { type: [Boolean, Object], required: false, default: true },
23
- closeIcon: { type: String, required: false },
23
+ closeIcon: { type: [String, Object], required: false },
24
24
  shortcut: { type: String, required: false, default: "meta_k" },
25
25
  groups: { type: Array, required: false },
26
26
  fuse: { type: Object, required: false },
@@ -1,7 +1,7 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
3
3
  import theme from '#build/ui/dashboard-search';
4
- import type { ButtonProps, InputProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem } from '../types';
4
+ import type { ButtonProps, InputProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconProps } from '../types';
5
5
  import type { ComponentConfig } from '../types/tv';
6
6
  type DashboardSearch = ComponentConfig<typeof theme, AppConfig, 'dashboardSearch'>;
7
7
  export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> extends /* @vue-ignore */ Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'> {
@@ -10,7 +10,7 @@ export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPale
10
10
  * @defaultValue appConfig.ui.icons.search
11
11
  * @IconifyIcon
12
12
  */
13
- icon?: string;
13
+ icon?: IconProps['name'];
14
14
  /**
15
15
  * The placeholder text for the input.
16
16
  * @defaultValue t('commandPalette.placeholder')
@@ -28,7 +28,7 @@ export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPale
28
28
  * @defaultValue appConfig.ui.icons.loading
29
29
  * @IconifyIcon
30
30
  */
31
- loadingIcon?: string;
31
+ loadingIcon?: IconProps['name'];
32
32
  /**
33
33
  * Display a close button in the input (useful when inside a Modal for example).
34
34
  * `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -41,7 +41,7 @@ export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPale
41
41
  * @defaultValue appConfig.ui.icons.close
42
42
  * @IconifyIcon
43
43
  */
44
- closeIcon?: string;
44
+ closeIcon?: IconProps['name'];
45
45
  /**
46
46
  * Keyboard shortcut to open the search (used by [`defineShortcuts`](https://ui.nuxt.com/docs/composables/define-shortcuts))
47
47
  * @defaultValue 'meta_k'
@@ -17,7 +17,7 @@ import UKbd from "./Kbd.vue";
17
17
  import UTooltip from "./Tooltip.vue";
18
18
  defineOptions({ inheritAttrs: false });
19
19
  const props = defineProps({
20
- icon: { type: String, required: false },
20
+ icon: { type: [String, Object], required: false },
21
21
  label: { type: String, required: false },
22
22
  color: { type: null, required: false, default: "neutral" },
23
23
  variant: { type: null, required: false },
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/dashboard-search-button';
3
- import type { ButtonProps, ButtonSlots, KbdProps, TooltipProps } from '../types';
3
+ import type { ButtonProps, ButtonSlots, IconProps, KbdProps, TooltipProps } from '../types';
4
4
  import type { ComponentConfig } from '../types/tv';
5
5
  type DashboardSearchButton = ComponentConfig<typeof theme, AppConfig, 'dashboardSearchButton'>;
6
6
  export interface DashboardSearchButtonProps {
@@ -9,7 +9,7 @@ export interface DashboardSearchButtonProps {
9
9
  * @defaultValue appConfig.ui.icons.search
10
10
  * @IconifyIcon
11
11
  */
12
- icon?: string;
12
+ icon?: IconProps['name'];
13
13
  /**
14
14
  * The label displayed in the button.
15
15
  * @defaultValue t('dashboardSearchButton.label')
@@ -45,7 +45,7 @@ export interface DashboardSearchButtonProps {
45
45
  ui?: DashboardSearchButton['slots'] & ButtonProps['ui'];
46
46
  class?: any;
47
47
  }
48
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
48
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
49
49
  color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
50
50
  tooltip: boolean | TooltipProps;
51
51
  kbds: KbdProps["value"][] | KbdProps[];
@@ -61,7 +61,7 @@ declare const _default: <T extends DashboardSidebarMode>(__VLS_props: NonNullabl
61
61
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:collapsed"> & (DashboardSidebarProps<T> & {
62
62
  open?: boolean;
63
63
  collapsed?: boolean;
64
- }) & Partial<{}>> & import("vue").PublicProps;
64
+ }) & {}> & import("vue").PublicProps;
65
65
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
66
66
  attrs: any;
67
67
  slots: DashboardSidebarSlots;
@@ -11,7 +11,7 @@ export interface DashboardSidebarCollapseProps extends /** @vue-ignore */ Pick<B
11
11
  variant?: ButtonProps['variant'];
12
12
  class?: any;
13
13
  }
14
- declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarCollapseProps> & Readonly<{}>, {
14
+ declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarCollapseProps> & Readonly<{}>, {
15
15
  color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
16
16
  variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
17
17
  side: "left" | "right";
@@ -11,7 +11,7 @@ export interface DashboardSidebarToggleProps extends /** @vue-ignore */ Pick<But
11
11
  variant?: ButtonProps['variant'];
12
12
  class?: any;
13
13
  }
14
- declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarToggleProps> & Readonly<{}>, {
14
+ declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarToggleProps> & Readonly<{}>, {
15
15
  color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
16
16
  variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
17
17
  side: "left" | "right";
@@ -16,7 +16,7 @@ export interface DashboardToolbarSlots {
16
16
  left(props?: {}): any;
17
17
  right(props?: {}): any;
18
18
  }
19
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardToolbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardToolbarSlots>;
19
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardToolbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardToolbarSlots>;
20
20
  export default _default;
21
21
  type __VLS_WithSlots<T, S> = T & {
22
22
  new (): {
@@ -54,7 +54,7 @@ export interface DrawerSlots {
54
54
  body(props?: {}): any;
55
55
  footer(props?: {}): any;
56
56
  }
57
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
58
58
  close: () => any;
59
59
  drag: (percentageDragged: number) => any;
60
60
  "update:open": (open: boolean) => any;
@@ -14,9 +14,9 @@ import UDropdownMenuContent from "./DropdownMenuContent.vue";
14
14
  const props = defineProps({
15
15
  size: { type: null, required: false },
16
16
  items: { type: null, required: false },
17
- checkedIcon: { type: String, required: false },
18
- loadingIcon: { type: String, required: false },
19
- externalIcon: { type: [Boolean, String], required: false, default: true },
17
+ checkedIcon: { type: [String, Object], required: false },
18
+ loadingIcon: { type: [String, Object], required: false },
19
+ externalIcon: { type: [Boolean, String, Object], required: false, default: true },
20
20
  content: { type: Object, required: false },
21
21
  arrow: { type: [Boolean, Object], required: false },
22
22
  portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
@@ -1,7 +1,7 @@
1
1
  import type { DropdownMenuRootProps, DropdownMenuRootEmits, DropdownMenuContentProps, DropdownMenuContentEmits, DropdownMenuArrowProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/ui/dropdown-menu';
4
- import type { AvatarProps, KbdProps, LinkProps } from '../types';
4
+ import type { AvatarProps, IconProps, KbdProps, LinkProps } from '../types';
5
5
  import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, EmitsToProps } from '../types/utils';
6
6
  import type { ComponentConfig } from '../types/tv';
7
7
  type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>;
@@ -10,7 +10,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cust
10
10
  /**
11
11
  * @IconifyIcon
12
12
  */
13
- icon?: string;
13
+ icon?: IconProps['name'];
14
14
  color?: DropdownMenu['variants']['color'];
15
15
  avatar?: AvatarProps;
16
16
  content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DropdownMenuContentEmits>>;
@@ -44,20 +44,20 @@ export interface DropdownMenuProps<T extends ArrayOrNested<DropdownMenuItem> = A
44
44
  * @defaultValue appConfig.ui.icons.check
45
45
  * @IconifyIcon
46
46
  */
47
- checkedIcon?: string;
47
+ checkedIcon?: IconProps['name'];
48
48
  /**
49
49
  * The icon displayed when an item is loading.
50
50
  * @defaultValue appConfig.ui.icons.loading
51
51
  * @IconifyIcon
52
52
  */
53
- loadingIcon?: string;
53
+ loadingIcon?: IconProps['name'];
54
54
  /**
55
55
  * The icon displayed when the item is an external link.
56
56
  * Set to `false` to hide the external icon.
57
57
  * @defaultValue appConfig.ui.icons.external
58
58
  * @IconifyIcon
59
59
  */
60
- externalIcon?: boolean | string;
60
+ externalIcon?: boolean | IconProps['name'];
61
61
  /**
62
62
  * The content of the menu.
63
63
  * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8 }
@@ -106,7 +106,7 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
106
106
  declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__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<{
107
107
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
108
108
  readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
109
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & Partial<{}>> & import("vue").PublicProps;
109
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & {}> & import("vue").PublicProps;
110
110
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
111
111
  attrs: any;
112
112
  slots: DropdownMenuSlots<T, NestedItem<T>>;
@@ -23,9 +23,9 @@ const props = defineProps({
23
23
  portal: { type: [Boolean, String], required: false, skipCheck: true },
24
24
  sub: { type: Boolean, required: false },
25
25
  labelKey: { type: null, required: true },
26
- checkedIcon: { type: String, required: false },
27
- loadingIcon: { type: String, required: false },
28
- externalIcon: { type: [Boolean, String], required: false },
26
+ checkedIcon: { type: [String, Object], required: false },
27
+ loadingIcon: { type: [String, Object], required: false },
28
+ externalIcon: { type: [Boolean, String, Object], required: false },
29
29
  class: { type: null, required: false },
30
30
  ui: { type: null, required: true },
31
31
  uiOverride: { type: null, required: false },
@@ -2,7 +2,7 @@ import { DropdownMenu } from 'reka-ui/namespaced';
2
2
  import type { DropdownMenuContentProps as RekaDropdownMenuContentProps } from 'reka-ui';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import type theme from '#build/ui/dropdown-menu';
5
- import type { DropdownMenuItem, DropdownMenuSlots } from '../types';
5
+ import type { DropdownMenuItem, DropdownMenuSlots, IconProps } from '../types';
6
6
  import type { ArrayOrNested, NestedItem, DynamicSlots, MergeTypes } from '../types/utils';
7
7
  import type { ComponentConfig } from '../types/tv';
8
8
  type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>;
@@ -14,15 +14,15 @@ interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> ex
14
14
  /**
15
15
  * @IconifyIcon
16
16
  */
17
- checkedIcon?: string;
17
+ checkedIcon?: IconProps['name'];
18
18
  /**
19
19
  * @IconifyIcon
20
20
  */
21
- loadingIcon?: string;
21
+ loadingIcon?: IconProps['name'];
22
22
  /**
23
23
  * @IconifyIcon
24
24
  */
25
- externalIcon?: boolean | string;
25
+ externalIcon?: boolean | IconProps['name'];
26
26
  class?: any;
27
27
  ui: {
28
28
  [K in keyof Required<DropdownMenu['slots']>]: (props?: Record<string, any>) => string;
@@ -42,7 +42,7 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
42
42
  readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
43
43
  readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
44
44
  readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
45
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
45
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & {}> & import("vue").PublicProps;
46
46
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
47
47
  attrs: any;
48
48
  slots: DropdownMenuContentSlots<T, NestedItem<T>>;
@@ -34,7 +34,7 @@ export interface ErrorSlots {
34
34
  message(props?: {}): any;
35
35
  links(props?: {}): any;
36
36
  }
37
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ErrorProps> & Readonly<{}>, {
37
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ErrorProps> & Readonly<{}>, {
38
38
  clear: boolean | Partial<ButtonProps>;
39
39
  as: any;
40
40
  redirect: string;
@@ -23,7 +23,7 @@ export interface FieldGroupProps {
23
23
  export interface FieldGroupSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FieldGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldGroupProps> & Readonly<{}>, {
26
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FieldGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldGroupProps> & Readonly<{}>, {
27
27
  orientation: FieldGroup["variants"]["orientation"];
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FieldGroupSlots>;
29
29
  export default _default;
@@ -18,7 +18,7 @@ const props = defineProps({
18
18
  as: { type: null, required: false },
19
19
  id: { type: String, required: false },
20
20
  name: { type: String, required: false },
21
- icon: { type: String, required: false },
21
+ icon: { type: [String, Object], required: false },
22
22
  label: { type: String, required: false },
23
23
  description: { type: String, required: false },
24
24
  color: { type: null, required: false },
@@ -34,13 +34,13 @@ const props = defineProps({
34
34
  interactive: { type: Boolean, required: false, default: true },
35
35
  required: { type: Boolean, required: false },
36
36
  disabled: { type: Boolean, required: false },
37
- fileIcon: { type: String, required: false },
37
+ fileIcon: { type: [String, Object], required: false },
38
38
  fileDelete: { type: [Boolean, Object], required: false },
39
- fileDeleteIcon: { type: String, required: false },
39
+ fileDeleteIcon: { type: [String, Object], required: false },
40
40
  class: { type: null, required: false },
41
41
  ui: { type: null, required: false }
42
42
  });
43
- const emits = defineEmits(["update:modelValue", "change"]);
43
+ const emits = defineEmits(["change"]);
44
44
  const slots = defineSlots();
45
45
  const modelValue = defineModel({ type: null });
46
46
  const appConfig = useAppConfig();
@@ -1,7 +1,7 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import type { UseFileDialogReturn } from '@vueuse/core';
3
3
  import theme from '#build/ui/file-upload';
4
- import type { ButtonProps } from '../types';
4
+ import type { ButtonProps, IconProps } from '../types';
5
5
  import type { ComponentConfig } from '../types/tv';
6
6
  type FileUpload = ComponentConfig<typeof theme, AppConfig, 'fileUpload'>;
7
7
  export interface FileUploadProps<M extends boolean = false> {
@@ -17,7 +17,7 @@ export interface FileUploadProps<M extends boolean = false> {
17
17
  * @defaultValue appConfig.ui.icons.upload
18
18
  * @IconifyIcon
19
19
  */
20
- icon?: string;
20
+ icon?: IconProps['name'];
21
21
  label?: string;
22
22
  description?: string;
23
23
  /**
@@ -76,7 +76,7 @@ export interface FileUploadProps<M extends boolean = false> {
76
76
  * @defaultValue appConfig.ui.icons.file
77
77
  * @IconifyIcon
78
78
  */
79
- fileIcon?: string;
79
+ fileIcon?: IconProps['name'];
80
80
  /**
81
81
  * Configure the delete button for the file.
82
82
  * When `layout` is `grid`, the default is `{ color: 'neutral', variant: 'solid', size: 'xs' }`{lang="ts-type"}
@@ -88,13 +88,12 @@ export interface FileUploadProps<M extends boolean = false> {
88
88
  * @defaultValue appConfig.ui.icons.close
89
89
  * @IconifyIcon
90
90
  */
91
- fileDeleteIcon?: string;
91
+ fileDeleteIcon?: IconProps['name'];
92
92
  class?: any;
93
93
  ui?: FileUpload['slots'];
94
94
  }
95
- export interface FileUploadEmits<M extends boolean = false> {
96
- 'update:modelValue': [payload: M extends true ? File[] : File | null];
97
- 'change': [event: Event];
95
+ export interface FileUploadEmits {
96
+ change: [event: Event];
98
97
  }
99
98
  type FileUploadFiles<M> = (M extends true ? File[] : File) | null;
100
99
  export interface FileUploadSlots<M extends boolean = false> {
@@ -147,17 +146,17 @@ export interface FileUploadSlots<M extends boolean = false> {
147
146
  declare const _default: <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<{
148
147
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
149
148
  readonly onChange?: ((event: Event) => any) | undefined;
150
- readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
149
+ readonly "onUpdate:modelValue"?: ((value: (M extends true ? File[] : File) | null | undefined) => any) | undefined;
151
150
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (FileUploadProps<M> & {
152
151
  modelValue?: (M extends true ? File[] : File) | null;
153
- }) & Partial<{}>> & import("vue").PublicProps;
152
+ }) & {}> & import("vue").PublicProps;
154
153
  expose(exposed: import("vue").ShallowUnwrapRef<{
155
154
  inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
156
155
  dropzoneRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
157
156
  }>): void;
158
157
  attrs: any;
159
158
  slots: FileUploadSlots<M>;
160
- emit: (((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: M extends true ? File[] : File | null) => void)) & ((evt: "update:modelValue", value: (M extends true ? File[] : File) | null | undefined) => void);
159
+ emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: (M extends true ? File[] : File) | null | undefined) => void);
161
160
  }>) => import("vue").VNode & {
162
161
  __ctx?: Awaited<typeof __VLS_setup>;
163
162
  };
@@ -18,7 +18,7 @@ export interface FooterSlots {
18
18
  top(props?: {}): any;
19
19
  bottom(props?: {}): any;
20
20
  }
21
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FooterProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterProps> & Readonly<{}>, {
21
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FooterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterProps> & Readonly<{}>, {
22
22
  as: any;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FooterSlots>;
24
24
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/footer-columns';
3
- import type { LinkProps } from '../types';
3
+ import type { IconProps, LinkProps } from '../types';
4
4
  import type { ComponentConfig } from '../types/tv';
5
5
  type FooterColumns = ComponentConfig<typeof theme, AppConfig, 'footerColumns'>;
6
6
  export interface FooterColumnLink extends Omit<LinkProps, 'custom'> {
@@ -8,7 +8,7 @@ export interface FooterColumnLink extends Omit<LinkProps, 'custom'> {
8
8
  /**
9
9
  * @IconifyIcon
10
10
  */
11
- icon?: string;
11
+ icon?: IconProps['name'];
12
12
  class?: any;
13
13
  ui?: Pick<FooterColumns['slots'], 'item' | 'link' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkLeadingIcon'>;
14
14
  }
@@ -43,7 +43,7 @@ export interface FooterColumnsSlots<T extends FooterColumnLink = FooterColumnLin
43
43
  'link-trailing': SlotProps<T>;
44
44
  }
45
45
  declare const _default: <T extends FooterColumnLink>(__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<{
46
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & FooterColumnsProps<T> & Partial<{}>> & import("vue").PublicProps;
46
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & FooterColumnsProps<T> & {}> & import("vue").PublicProps;
47
47
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
48
48
  attrs: any;
49
49
  slots: FooterColumnsSlots<T>;
@@ -6,7 +6,7 @@ import theme from "#build/ui/form";
6
6
  import { provide, inject, nextTick, ref, onUnmounted, onMounted, computed, useId, readonly, reactive } from "vue";
7
7
  import { useEventBus } from "@vueuse/core";
8
8
  import { useAppConfig } from "#imports";
9
- import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey } from "../composables/useFormField";
9
+ import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
10
10
  import { tv } from "../utils/tv";
11
11
  import { validateSchema } from "../utils/form";
12
12
  import { FormValidationException } from "../types/form";
@@ -77,7 +77,7 @@ onUnmounted(() => {
77
77
  }
78
78
  });
79
79
  const errors = ref([]);
80
- provide("form-errors", errors);
80
+ provide(formErrorsInjectionKey, errors);
81
81
  const inputs = ref({});
82
82
  provide(formInputsInjectionKey, inputs);
83
83
  const dirtyFields = reactive(/* @__PURE__ */ new Set());
@@ -44,24 +44,24 @@ export interface FormProps<S extends FormSchema, T extends boolean = true> {
44
44
  onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => void | Promise<void>) | (() => void | Promise<void>);
45
45
  }
46
46
  export interface FormEmits<S extends FormSchema, T extends boolean = true> {
47
- submit: [payload: FormSubmitEvent<FormData<S, T>>];
48
- error: [payload: FormErrorEvent];
47
+ submit: [event: FormSubmitEvent<FormData<S, T>>];
48
+ error: [event: FormErrorEvent];
49
49
  }
50
50
  export interface FormSlots {
51
- default(props?: {
51
+ default(props: {
52
52
  errors: FormError[];
53
53
  loading: boolean;
54
54
  }): any;
55
55
  }
56
56
  declare const _default: <S extends FormSchema, T extends boolean = true>(__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<{
57
57
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
58
- readonly onError?: ((payload: FormErrorEvent) => any) | undefined;
59
- readonly onSubmit?: ((payload: FormSubmitEvent<FormData<S, T>>) => any) | undefined;
60
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> & Partial<{}>> & import("vue").PublicProps;
58
+ readonly onError?: ((event: FormErrorEvent) => any) | undefined;
59
+ readonly onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => any) | undefined;
60
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> & {}> & import("vue").PublicProps;
61
61
  expose(exposed: import("vue").ShallowUnwrapRef<Form<S>>): void;
62
62
  attrs: any;
63
63
  slots: FormSlots;
64
- emit: ((evt: "error", payload: FormErrorEvent) => void) & ((evt: "submit", payload: FormSubmitEvent<FormData<S, T>>) => void);
64
+ emit: ((evt: "error", event: FormErrorEvent) => void) & ((evt: "submit", event: FormSubmitEvent<FormData<S, T>>) => void);
65
65
  }>) => import("vue").VNode & {
66
66
  __ctx?: Awaited<typeof __VLS_setup>;
67
67
  };
@@ -6,7 +6,7 @@ import theme from "#build/ui/form-field";
6
6
  import { computed, ref, inject, provide, useId } from "vue";
7
7
  import { Primitive, Label } from "reka-ui";
8
8
  import { useAppConfig } from "#imports";
9
- import { formFieldInjectionKey, inputIdInjectionKey } from "../composables/useFormField";
9
+ import { formFieldInjectionKey, inputIdInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
10
10
  import { tv } from "../utils/tv";
11
11
  const props = defineProps({
12
12
  as: { type: null, required: false },
@@ -30,7 +30,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.formField ||
30
30
  size: props.size,
31
31
  required: props.required
32
32
  }));
33
- const formErrors = inject("form-errors", null);
33
+ const formErrors = inject(formErrorsInjectionKey, null);
34
34
  const error = computed(() => props.error || formErrors?.value?.find((error2) => error2.name && (error2.name === props.name || props.errorPattern && error2.name.match(props.errorPattern)))?.message);
35
35
  const id = ref(useId());
36
36
  const ariaId = id.value;
@@ -52,7 +52,7 @@ export interface FormFieldSlots {
52
52
  error?: boolean | string;
53
53
  }): any;
54
54
  }
55
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
55
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
56
56
  export default _default;
57
57
  type __VLS_WithSlots<T, S> = T & {
58
58
  new (): {
@@ -54,7 +54,7 @@ declare const _default: <T extends HeaderMode>(__VLS_props: NonNullable<Awaited<
54
54
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
55
55
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & (HeaderProps<T> & {
56
56
  open?: boolean;
57
- }) & Partial<{}>> & import("vue").PublicProps;
57
+ }) & {}> & import("vue").PublicProps;
58
58
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
59
59
  attrs: any;
60
60
  slots: HeaderSlots;
@@ -6,7 +6,7 @@
6
6
  import { useForwardProps } from "reka-ui";
7
7
  import { reactivePick } from "@vueuse/core";
8
8
  const props = defineProps({
9
- name: { type: String, required: true },
9
+ name: { type: [String, Object], required: true },
10
10
  mode: { type: String, required: false },
11
11
  size: { type: [String, Number], required: false },
12
12
  customize: { type: Function, required: false }
@@ -15,5 +15,6 @@ const iconProps = useForwardProps(reactivePick(props, "name", "mode", "size", "c
15
15
  </script>
16
16
 
17
17
  <template>
18
- <Icon v-bind="iconProps" />
18
+ <Icon v-if="typeof name === 'string'" v-bind="iconProps" />
19
+ <component :is="name" v-else />
19
20
  </template>
@@ -1,8 +1,8 @@
1
1
  export interface IconProps {
2
- name: string;
2
+ name: string | object;
3
3
  mode?: 'svg' | 'css';
4
4
  size?: string | number;
5
5
  customize?: (content: string, name?: string, prefix?: string, provider?: string) => string;
6
6
  }
7
- declare const _default: import("vue").DefineComponent<IconProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;