@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
@@ -2,14 +2,14 @@ import type { AccordionRootProps, AccordionRootEmits } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { ContentNavigationItem } from '@nuxt/content';
4
4
  import theme from '#build/ui/content/content-navigation';
5
- import type { BadgeProps, LinkProps } from '../../types';
5
+ import type { BadgeProps, IconProps, LinkProps } from '../../types';
6
6
  import type { ComponentConfig } from '../../types/tv';
7
7
  type ContentNavigation = ComponentConfig<typeof theme, AppConfig, 'contentNavigation'>;
8
8
  export interface ContentNavigationLink extends ContentNavigationItem {
9
9
  /**
10
10
  * @IconifyIcon
11
11
  */
12
- icon?: string;
12
+ icon?: IconProps['name'];
13
13
  /**
14
14
  * Display a badge on the link.
15
15
  * `{ color: 'neutral', variant: 'outline', size: 'sm' }`{lang="ts-type"}
@@ -19,7 +19,7 @@ export interface ContentNavigationLink extends ContentNavigationItem {
19
19
  /**
20
20
  * @IconifyIcon
21
21
  */
22
- trailingIcon?: string;
22
+ trailingIcon?: IconProps['name'];
23
23
  disabled?: boolean;
24
24
  children?: ContentNavigationLink[];
25
25
  defaultOpen?: boolean;
@@ -44,7 +44,7 @@ export interface ContentNavigationProps<T extends ContentNavigationLink = Conten
44
44
  * @defaultValue appConfig.ui.icons.chevronDown
45
45
  * @IconifyIcon
46
46
  */
47
- trailingIcon?: string;
47
+ trailingIcon?: IconProps['name'];
48
48
  /**
49
49
  * @defaultValue 'primary'
50
50
  */
@@ -88,7 +88,7 @@ export interface ContentNavigationSlots<T extends ContentNavigationLink = Conten
88
88
  declare const _default: <T extends ContentNavigationLink>(__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<{
89
89
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
90
90
  readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
91
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & ContentNavigationProps<T> & Partial<{}>> & import("vue").PublicProps;
91
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & ContentNavigationProps<T> & {}> & import("vue").PublicProps;
92
92
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
93
93
  attrs: any;
94
94
  slots: ContentNavigationSlots<T>;
@@ -15,13 +15,13 @@ import { tv } from "../../utils/tv";
15
15
  import UModal from "../Modal.vue";
16
16
  import UCommandPalette from "../CommandPalette.vue";
17
17
  const props = defineProps({
18
- icon: { type: String, required: false },
18
+ icon: { type: [String, Object], required: false },
19
19
  placeholder: { type: String, required: false },
20
20
  autofocus: { type: Boolean, required: false },
21
21
  loading: { type: Boolean, required: false },
22
- loadingIcon: { type: String, required: false },
22
+ loadingIcon: { type: [String, Object], required: false },
23
23
  close: { type: [Boolean, Object], required: false, default: true },
24
- closeIcon: { type: String, required: false },
24
+ closeIcon: { type: [String, Object], required: false },
25
25
  shortcut: { type: String, required: false, default: "meta_k" },
26
26
  links: { type: Array, required: false },
27
27
  navigation: { type: Array, required: false },
@@ -2,7 +2,7 @@ import type { ContentNavigationItem } from '@nuxt/content';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
4
4
  import theme from '#build/ui/content/content-search';
5
- import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem } from '../../types';
5
+ import type { ButtonProps, InputProps, LinkProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, IconProps } from '../../types';
6
6
  import type { ComponentConfig } from '../../types/tv';
7
7
  type ContentSearch = ComponentConfig<typeof theme, AppConfig, 'contentSearch'>;
8
8
  export interface ContentSearchLink extends Omit<LinkProps, 'custom'> {
@@ -11,7 +11,7 @@ export interface ContentSearchLink extends Omit<LinkProps, 'custom'> {
11
11
  /**
12
12
  * @IconifyIcon
13
13
  */
14
- icon?: string;
14
+ icon?: IconProps['name'];
15
15
  children?: ContentSearchLink[];
16
16
  }
17
17
  export interface ContentSearchFile {
@@ -26,7 +26,7 @@ export interface ContentSearchItem extends Omit<LinkProps, 'custom'>, CommandPal
26
26
  /**
27
27
  * @IconifyIcon
28
28
  */
29
- icon?: string;
29
+ icon?: IconProps['name'];
30
30
  }
31
31
  export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchLink> extends /* @vue-ignore */ Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'> {
32
32
  /**
@@ -34,7 +34,7 @@ export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchL
34
34
  * @defaultValue appConfig.ui.icons.search
35
35
  * @IconifyIcon
36
36
  */
37
- icon?: string;
37
+ icon?: IconProps['name'];
38
38
  /**
39
39
  * The placeholder text for the input.
40
40
  * @defaultValue t('commandPalette.placeholder')
@@ -52,7 +52,7 @@ export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchL
52
52
  * @defaultValue appConfig.ui.icons.loading
53
53
  * @IconifyIcon
54
54
  */
55
- loadingIcon?: string;
55
+ loadingIcon?: IconProps['name'];
56
56
  /**
57
57
  * Display a close button in the input (useful when inside a Modal for example).
58
58
  * `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -65,7 +65,7 @@ export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchL
65
65
  * @defaultValue appConfig.ui.icons.close
66
66
  * @IconifyIcon
67
67
  */
68
- closeIcon?: string;
68
+ closeIcon?: IconProps['name'];
69
69
  /**
70
70
  * Keyboard shortcut to open the search (used by [`defineShortcuts`](https://ui.nuxt.com/docs/composables/define-shortcuts))
71
71
  * @defaultValue 'meta_k'
@@ -98,7 +98,7 @@ declare const _default: <T extends ContentSearchLink>(__VLS_props: NonNullable<A
98
98
  readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
99
99
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:searchTerm"> & (ContentSearchProps<T> & {
100
100
  searchTerm?: string;
101
- }) & Partial<{}>> & import("vue").PublicProps;
101
+ }) & {}> & import("vue").PublicProps;
102
102
  expose(exposed: import("vue").ShallowUnwrapRef<{
103
103
  commandPaletteRef: Readonly<import("vue").ShallowRef<import("vue").ShallowUnwrapRef<{}> | null>>;
104
104
  }>): void;
@@ -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/content/content-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 ContentSearchButton = ComponentConfig<typeof theme, AppConfig, 'contentSearchButton'>;
6
6
  export interface ContentSearchButtonProps {
@@ -9,7 +9,7 @@ export interface ContentSearchButtonProps {
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('contentSearchButton.label')
@@ -45,7 +45,7 @@ export interface ContentSearchButtonProps {
45
45
  ui?: ContentSearchButton['slots'] & ButtonProps['ui'];
46
46
  class?: any;
47
47
  }
48
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContentSearchButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContentSearchButtonProps> & Readonly<{}>, {
48
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContentSearchButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContentSearchButtonProps> & Readonly<{}>, {
49
49
  color: "error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral";
50
50
  tooltip: boolean | TooltipProps;
51
51
  kbds: KbdProps["value"][] | KbdProps[];
@@ -13,8 +13,8 @@ import UIcon from "../Icon.vue";
13
13
  defineOptions({ inheritAttrs: false });
14
14
  const props = defineProps({
15
15
  as: { type: null, required: false },
16
- prevIcon: { type: String, required: false },
17
- nextIcon: { type: String, required: false },
16
+ prevIcon: { type: [String, Object], required: false },
17
+ nextIcon: { type: [String, Object], required: false },
18
18
  surround: { type: Array, required: false },
19
19
  class: { type: null, required: false },
20
20
  ui: { type: null, required: false }
@@ -1,6 +1,7 @@
1
1
  import type { ContentNavigationItem } from '@nuxt/content';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/ui/content/content-surround';
4
+ import type { IconProps } from '../../types';
4
5
  import type { ComponentConfig } from '../../types/tv';
5
6
  type ContentSurround = ComponentConfig<typeof theme, AppConfig, 'contentSurround'>;
6
7
  export interface ContentSurroundLink extends ContentNavigationItem {
@@ -8,7 +9,7 @@ export interface ContentSurroundLink extends ContentNavigationItem {
8
9
  /**
9
10
  * @IconifyIcon
10
11
  */
11
- icon?: string;
12
+ icon?: IconProps['name'];
12
13
  class?: any;
13
14
  ui?: Pick<ContentSurround['slots'], 'link' | 'linkLeading' | 'linkLeadingIcon' | 'linkTitle' | 'linkDescription'>;
14
15
  }
@@ -23,13 +24,13 @@ export interface ContentSurroundProps<T extends ContentSurroundLink = ContentSur
23
24
  * @defaultValue appConfig.ui.icons.arrowLeft
24
25
  * @IconifyIcon
25
26
  */
26
- prevIcon?: string;
27
+ prevIcon?: IconProps['name'];
27
28
  /**
28
29
  * The icon displayed in the next link.
29
30
  * @defaultValue appConfig.ui.icons.arrowRight
30
31
  * @IconifyIcon
31
32
  */
32
- nextIcon?: string;
33
+ nextIcon?: IconProps['name'];
33
34
  surround?: T[];
34
35
  class?: any;
35
36
  ui?: ContentSurround['slots'];
@@ -44,7 +45,7 @@ export interface ContentSurroundSlots<T extends ContentSurroundLink = ContentSur
44
45
  'link-description': SlotProps<T>;
45
46
  }
46
47
  declare const _default: <T extends ContentSurroundLink>(__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<{
47
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ContentSurroundProps<T> & Partial<{}>> & import("vue").PublicProps;
48
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & ContentSurroundProps<T> & {}> & import("vue").PublicProps;
48
49
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
49
50
  attrs: any;
50
51
  slots: ContentSurroundSlots<T>;
@@ -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, default: "nav" },
17
- trailingIcon: { type: String, required: false },
17
+ trailingIcon: { type: [String, Object], required: false },
18
18
  title: { type: String, required: false },
19
19
  color: { type: null, required: false },
20
20
  highlight: { type: Boolean, required: false },
@@ -2,6 +2,7 @@ import type { CollapsibleRootProps, CollapsibleRootEmits } from 'reka-ui';
2
2
  import type { TocLink } from '@nuxt/content';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import theme from '#build/ui/content/content-toc';
5
+ import type { IconProps } from '../../types';
5
6
  import type { ComponentConfig } from '../../types/tv';
6
7
  type ContentToc = ComponentConfig<typeof theme, AppConfig, 'contentToc'>;
7
8
  export type ContentTocLink = TocLink & {
@@ -19,7 +20,7 @@ export interface ContentTocProps<T extends ContentTocLink = ContentTocLink> exte
19
20
  * @defaultValue appConfig.ui.icons.chevronDown
20
21
  * @IconifyIcon
21
22
  */
22
- trailingIcon?: string;
23
+ trailingIcon?: IconProps['name'];
23
24
  /**
24
25
  * The title of the table of contents.
25
26
  * @defaultValue t('contentToc.title')
@@ -73,7 +74,7 @@ declare const _default: <T extends ContentTocLink>(__VLS_props: NonNullable<Awai
73
74
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
74
75
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
75
76
  readonly onMove?: ((id: string) => any) | undefined;
76
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onMove"> & ContentTocProps<T> & Partial<{}>> & import("vue").PublicProps;
77
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onMove"> & ContentTocProps<T> & {}> & import("vue").PublicProps;
77
78
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
78
79
  attrs: any;
79
80
  slots: ContentTocSlots<T>;
@@ -5,7 +5,7 @@ export interface LocaleSelectProps extends /** @vue-ignore */ Pick<SelectMenuPro
5
5
  }
6
6
  declare const _default: import("vue").DefineComponent<LocaleSelectProps & {
7
7
  modelValue?: string;
8
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: string | undefined) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<LocaleSelectProps & {
11
11
  modelValue?: string;
@@ -6,7 +6,7 @@ export interface ProseAProps {
6
6
  export interface ProseASlots {
7
7
  default(props?: {}): any;
8
8
  }
9
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseASlots>;
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseASlots>;
10
10
  export default _default;
11
11
  type __VLS_WithSlots<T, S> = T & {
12
12
  new (): {
@@ -5,7 +5,7 @@ export interface ProseAccordionProps {
5
5
  export interface ProseAccordionSlots {
6
6
  default(props?: {}): any;
7
7
  }
8
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAccordionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAccordionProps> & Readonly<{}>, {
8
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAccordionProps> & Readonly<{}>, {
9
9
  type: "single" | "multiple";
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseAccordionSlots>;
11
11
  export default _default;
@@ -6,7 +6,7 @@ export interface ProseAccordionItemProps {
6
6
  export interface ProseAccordionItemSlots {
7
7
  default(props?: {}): any;
8
8
  }
9
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAccordionItemProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseAccordionItemSlots>;
9
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseAccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseAccordionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseAccordionItemSlots>;
10
10
  export default _default;
11
11
  type __VLS_WithSlots<T, S> = T & {
12
12
  new (): {
@@ -4,7 +4,7 @@ export interface ProseBadgeProps {
4
4
  export interface ProseBadgeSlots {
5
5
  default(props?: {}): any;
6
6
  }
7
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseBadgeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseBadgeSlots>;
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseBadgeSlots>;
8
8
  export default _default;
9
9
  type __VLS_WithSlots<T, S> = T & {
10
10
  new (): {
@@ -4,7 +4,7 @@ export interface ProseBlockquoteProps {
4
4
  export interface ProseBlockquoteSlots {
5
5
  default(props?: {}): any;
6
6
  }
7
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseBlockquoteProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseBlockquoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseBlockquoteSlots>;
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseBlockquoteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseBlockquoteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseBlockquoteSlots>;
8
8
  export default _default;
9
9
  type __VLS_WithSlots<T, S> = T & {
10
10
  new (): {
@@ -12,7 +12,7 @@ defineOptions({ inheritAttrs: false });
12
12
  const props = defineProps({
13
13
  to: { type: null, required: false },
14
14
  target: { type: [String, Object, null], required: false },
15
- icon: { type: String, required: false },
15
+ icon: { type: [String, Object], required: false },
16
16
  color: { type: null, required: false },
17
17
  class: { type: null, required: false },
18
18
  ui: { type: null, required: false }
@@ -1,12 +1,12 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/prose/callout';
3
- import type { LinkProps } from '../../types';
3
+ import type { IconProps, LinkProps } from '../../types';
4
4
  import type { ComponentConfig } from '../../types/tv';
5
5
  type ProseCallout = ComponentConfig<typeof theme, AppConfig, 'callout', 'ui.prose'>;
6
6
  export interface ProseCalloutProps {
7
7
  to?: LinkProps['to'];
8
8
  target?: LinkProps['target'];
9
- icon?: string;
9
+ icon?: IconProps['name'];
10
10
  /**
11
11
  * @defaultValue 'neutral'
12
12
  */
@@ -17,7 +17,7 @@ export interface ProseCalloutProps {
17
17
  export interface ProseCalloutSlots {
18
18
  default(props?: {}): any;
19
19
  }
20
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCalloutProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCalloutProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCalloutSlots>;
20
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCalloutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCalloutProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCalloutSlots>;
21
21
  export default _default;
22
22
  type __VLS_WithSlots<T, S> = T & {
23
23
  new (): {
@@ -12,7 +12,7 @@ defineOptions({ inheritAttrs: false });
12
12
  const props = defineProps({
13
13
  to: { type: null, required: false },
14
14
  target: { type: [String, Object, null], required: false },
15
- icon: { type: String, required: false },
15
+ icon: { type: [String, Object], required: false },
16
16
  title: { type: String, required: false },
17
17
  description: { type: String, required: false },
18
18
  color: { type: null, required: false },
@@ -1,12 +1,12 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/prose/card';
3
- import type { LinkProps } from '../../types';
3
+ import type { IconProps, LinkProps } from '../../types';
4
4
  import type { ComponentConfig } from '../../types/tv';
5
5
  type ProseCard = ComponentConfig<typeof theme, AppConfig, 'card', 'ui.prose'>;
6
6
  export interface ProseCardProps {
7
7
  to?: LinkProps['to'];
8
8
  target?: LinkProps['target'];
9
- icon?: string;
9
+ icon?: IconProps['name'];
10
10
  title?: string;
11
11
  description?: string;
12
12
  /**
@@ -20,7 +20,7 @@ export interface ProseCardSlots {
20
20
  default(props?: {}): any;
21
21
  title(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCardProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCardSlots>;
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCardSlots>;
24
24
  export default _default;
25
25
  type __VLS_WithSlots<T, S> = T & {
26
26
  new (): {
@@ -4,7 +4,7 @@ export interface ProseCardGroupProps {
4
4
  export interface ProseCardGroupSlots {
5
5
  default(props?: {}): any;
6
6
  }
7
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCardGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCardGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCardGroupSlots>;
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCardGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCardGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCardGroupSlots>;
8
8
  export default _default;
9
9
  type __VLS_WithSlots<T, S> = T & {
10
10
  new (): {
@@ -13,7 +13,7 @@ export interface ProseCodeProps {
13
13
  export interface ProseCodeSlots {
14
14
  default(props?: {}): any;
15
15
  }
16
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodeSlots>;
16
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodeSlots>;
17
17
  export default _default;
18
18
  type __VLS_WithSlots<T, S> = T & {
19
19
  new (): {
@@ -9,7 +9,7 @@ import { useLocale } from "../../composables/useLocale";
9
9
  import { tv } from "../../utils/tv";
10
10
  import UButton from "../Button.vue";
11
11
  const props = defineProps({
12
- icon: { type: String, required: false },
12
+ icon: { type: [String, Object], required: false },
13
13
  name: { type: String, required: false },
14
14
  openText: { type: String, required: false },
15
15
  closeText: { type: String, required: false },
@@ -1,5 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/prose/code-collapse';
3
+ import type { IconProps } from '../../types';
3
4
  import type { ComponentConfig } from '../../types/tv';
4
5
  type ProseCodeCollapse = ComponentConfig<typeof theme, AppConfig, 'codeCollapse', 'ui.prose'>;
5
6
  export interface ProseCodeCollapseProps {
@@ -7,7 +8,7 @@ export interface ProseCodeCollapseProps {
7
8
  * The icon displayed to toggle the code.
8
9
  * @defaultValue appConfig.ui.icons.chevronDown
9
10
  */
10
- icon?: string;
11
+ icon?: IconProps['name'];
11
12
  /**
12
13
  * The name displayed in the trigger label.
13
14
  * @defaultValue t('prose.codeCollapse.name')
@@ -31,7 +32,7 @@ export interface ProseCodeCollapseSlots {
31
32
  }
32
33
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeCollapseProps & {
33
34
  open?: boolean;
34
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
36
  "update:open": (value: boolean) => any;
36
37
  }, string, import("vue").PublicProps, Readonly<ProseCodeCollapseProps & {
37
38
  open?: boolean;
@@ -20,7 +20,7 @@ export interface ProseCodeGroupSlots {
20
20
  }
21
21
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeGroupProps & {
22
22
  modelValue?: string;
23
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:modelValue": (value: string | undefined) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<ProseCodeGroupProps & {
26
26
  modelValue?: string;
@@ -8,7 +8,7 @@ import { defu } from "defu";
8
8
  import { useAppConfig } from "#imports";
9
9
  import UIcon from "../Icon.vue";
10
10
  const props = defineProps({
11
- icon: { type: String, required: false },
11
+ icon: { type: [String, Object], required: false },
12
12
  filename: { type: String, required: false }
13
13
  });
14
14
  const appConfig = useAppConfig();
@@ -1,6 +1,7 @@
1
+ import type { IconProps } from '../../types';
1
2
  export interface ProseCodeIconProps {
2
- icon?: string;
3
+ icon?: IconProps['name'];
3
4
  filename?: string;
4
5
  }
5
- declare const _default: import("vue").DefineComponent<ProseCodeIconProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: import("vue").DefineComponent<ProseCodeIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
7
  export default _default;
@@ -10,7 +10,7 @@ export interface ProseCodePreviewSlots {
10
10
  default(props?: {}): any;
11
11
  code(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodePreviewProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodePreviewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodePreviewSlots>;
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodePreviewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodePreviewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodePreviewSlots>;
14
14
  export default _default;
15
15
  type __VLS_WithSlots<T, S> = T & {
16
16
  new (): {
@@ -19,7 +19,7 @@ export interface ProseCodeTreeProps {
19
19
  export interface ProseCodeTreeSlots {
20
20
  default(props?: {}): any;
21
21
  }
22
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeTreeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodeTreeSlots>;
22
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCodeTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCodeTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCodeTreeSlots>;
23
23
  export default _default;
24
24
  type __VLS_WithSlots<T, S> = T & {
25
25
  new (): {
@@ -11,7 +11,7 @@ import { tv } from "../../utils/tv";
11
11
  import UCollapsible from "../Collapsible.vue";
12
12
  import UIcon from "../Icon.vue";
13
13
  const props = defineProps({
14
- icon: { type: String, required: false },
14
+ icon: { type: [String, Object], required: false },
15
15
  name: { type: String, required: false },
16
16
  openText: { type: String, required: false },
17
17
  closeText: { type: String, required: false },
@@ -1,5 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/prose/collapsible';
3
+ import type { IconProps } from '../../types';
3
4
  import type { ComponentConfig } from '../../types/tv';
4
5
  type ProseCollapsible = ComponentConfig<typeof theme, AppConfig, 'collapsible', 'ui.prose'>;
5
6
  export interface ProseCollapsibleProps {
@@ -7,7 +8,7 @@ export interface ProseCollapsibleProps {
7
8
  * The icon displayed to toggle the collapsible.
8
9
  * @defaultValue appConfig.ui.icons.chevronDown
9
10
  */
10
- icon?: string;
11
+ icon?: IconProps['name'];
11
12
  /**
12
13
  * The name displayed in the trigger label.
13
14
  * @defaultValue t('prose.collapsible.name')
@@ -29,7 +30,7 @@ export interface ProseCollapsibleProps {
29
30
  export interface ProseCollapsibleSlots {
30
31
  default(props?: {}): any;
31
32
  }
32
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCollapsibleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCollapsibleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCollapsibleSlots>;
33
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseCollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseCollapsibleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseCollapsibleSlots>;
33
34
  export default _default;
34
35
  type __VLS_WithSlots<T, S> = T & {
35
36
  new (): {
@@ -4,7 +4,7 @@ export interface ProseEmProps {
4
4
  export interface ProseEmSlots {
5
5
  default(props?: {}): any;
6
6
  }
7
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseEmProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseEmProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseEmSlots>;
7
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseEmProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseEmProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseEmSlots>;
8
8
  export default _default;
9
9
  type __VLS_WithSlots<T, S> = T & {
10
10
  new (): {
@@ -30,7 +30,7 @@ export interface ProseFieldProps {
30
30
  export interface ProseFieldSlots {
31
31
  default(props?: {}): any;
32
32
  }
33
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseFieldSlots>;
33
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseFieldSlots>;
34
34
  export default _default;
35
35
  type __VLS_WithSlots<T, S> = T & {
36
36
  new (): {
@@ -9,7 +9,7 @@ export interface ProseFieldGroupProps {
9
9
  export interface ProseFieldGroupSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseFieldGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseFieldGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseFieldGroupSlots>;
12
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseFieldGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseFieldGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseFieldGroupSlots>;
13
13
  export default _default;
14
14
  type __VLS_WithSlots<T, S> = T & {
15
15
  new (): {
@@ -10,7 +10,7 @@ export interface ProseH1Props {
10
10
  export interface ProseH1Slots {
11
11
  default(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH1Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH1Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH1Slots>;
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH1Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH1Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH1Slots>;
14
14
  export default _default;
15
15
  type __VLS_WithSlots<T, S> = T & {
16
16
  new (): {
@@ -10,7 +10,7 @@ export interface ProseH2Props {
10
10
  export interface ProseH2Slots {
11
11
  default(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH2Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH2Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH2Slots>;
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH2Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH2Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH2Slots>;
14
14
  export default _default;
15
15
  type __VLS_WithSlots<T, S> = T & {
16
16
  new (): {
@@ -10,7 +10,7 @@ export interface ProseH3Props {
10
10
  export interface ProseH3Slots {
11
11
  default(props?: {}): any;
12
12
  }
13
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH3Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH3Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH3Slots>;
13
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ProseH3Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProseH3Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ProseH3Slots>;
14
14
  export default _default;
15
15
  type __VLS_WithSlots<T, S> = T & {
16
16
  new (): {