@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
@@ -12,7 +12,7 @@ export default {
12
12
  "image": "object-cover object-top w-full h-full",
13
13
  "authors": "flex flex-wrap gap-x-4 gap-y-1.5",
14
14
  "footer": "border-t border-default pt-5 flex items-center justify-between",
15
- "indicator": "absolute left-0 top-0 w-32 hidden lg:flex items-center justify-end gap-3 min-w-0",
15
+ "indicator": "absolute start-0 top-0 w-32 hidden lg:flex items-center justify-end gap-3 min-w-0",
16
16
  "dot": "size-4 rounded-full bg-default ring ring-default flex items-center justify-center my-1",
17
17
  "dotInner": "size-2 rounded-full bg-primary"
18
18
  },
@@ -2,7 +2,7 @@ export default {
2
2
  "slots": {
3
3
  "root": "relative",
4
4
  "container": "flex flex-col gap-y-8 sm:gap-y-12 lg:gap-y-16",
5
- "indicator": "absolute hidden lg:block overflow-hidden inset-y-3 left-32 h-full w-px bg-border -ml-[8.5px]",
6
- "beam": "absolute left-0 top-0 w-full bg-primary will-change-[height]"
5
+ "indicator": "absolute hidden lg:block overflow-hidden inset-y-3 start-32 h-full w-px bg-border -ms-[8.5px]",
6
+ "beam": "absolute start-0 top-0 w-full bg-primary will-change-[height]"
7
7
  }
8
8
  }
package/README.md CHANGED
@@ -14,28 +14,28 @@
14
14
  Nuxt UI harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS](https://tailwindcss.com/), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
15
15
 
16
16
  > [!NOTE]
17
- > You are on the `v4` development branch, check out the [v2 branch](https://github.com/nuxt/ui/tree/v2) for Nuxt UI v2.
17
+ > You are on the `v4` branch, check out the [v3 branch](https://github.com/nuxt/ui/tree/v3) for Nuxt UI v3 or [v2 branch](https://github.com/nuxt/ui/tree/v2) for Nuxt UI v2.
18
18
 
19
19
  ## Documentation
20
20
 
21
- Visit https://ui.nuxt.com to explore the documentation.
21
+ Visit https://ui4.nuxt.com to explore the documentation.
22
22
 
23
23
  ## Installation
24
24
 
25
25
  ```bash [pnpm]
26
- pnpm add @nuxt/ui
26
+ pnpm add @nuxt/ui@alpha
27
27
  ```
28
28
 
29
29
  ```bash [yarn]
30
- yarn add @nuxt/ui
30
+ yarn add @nuxt/ui@alpha
31
31
  ```
32
32
 
33
33
  ```bash [npm]
34
- npm install @nuxt/ui
34
+ npm install @nuxt/ui@alpha
35
35
  ```
36
36
 
37
37
  ```bash [bun]
38
- bun add @nuxt/ui
38
+ bun add @nuxt/ui@alpha
39
39
  ```
40
40
 
41
41
  ### Nuxt
@@ -55,7 +55,7 @@ export default defineNuxtConfig({
55
55
  @import "@nuxt/ui";
56
56
  ```
57
57
 
58
- Learn more in the [installation guide](https://ui.nuxt.com/docs/getting-started/installation/nuxt).
58
+ Learn more in the [installation guide](https://ui4.nuxt.com/docs/getting-started/installation/nuxt).
59
59
 
60
60
  ### Vue
61
61
 
@@ -102,18 +102,18 @@ app.mount('#app')
102
102
  @import "@nuxt/ui";
103
103
  ```
104
104
 
105
- Learn more in the [installation guide](https://ui.nuxt.com/docs/getting-started/installation/vue).
105
+ Learn more in the [installation guide](https://ui4.nuxt.com/docs/getting-started/installation/vue).
106
106
 
107
107
  ## Contribution
108
108
 
109
109
  Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:
110
110
 
111
111
  - Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
112
- - Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui.nuxt.com/docs/getting-started/contribution) to share your suggestions.
112
+ - Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui4.nuxt.com/docs/getting-started/contribution) to share your suggestions.
113
113
 
114
114
  ## Local Development
115
115
 
116
- Follow the docs to [set up your local development environment](https://ui.nuxt.com/docs/getting-started/contribution#local-development) and contribute.
116
+ Follow the docs to [set up your local development environment](https://ui4.nuxt.com/docs/getting-started/contribution#local-development) and contribute.
117
117
 
118
118
  ## Credits
119
119
 
package/dist/module.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "4.0.0-alpha.0",
3
+ "version": "4.0.0-alpha.1",
4
4
  "docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
7
- "nuxt": ">=3.16.0"
7
+ "nuxt": ">=4.0.0"
8
8
  },
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defu } from 'defu';
2
2
  import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
3
- import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.DT-jTZu1.mjs';
3
+ import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.BEZXPd3d.mjs';
4
4
  import '../dist/runtime/utils/index.js';
5
5
  import 'node:url';
6
6
  import 'scule';
@@ -8,7 +8,7 @@ import 'knitwork';
8
8
  import 'tailwindcss/colors';
9
9
 
10
10
  const name = "@nuxt/ui";
11
- const version = "4.0.0-alpha.0";
11
+ const version = "4.0.0-alpha.1";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -17,7 +17,7 @@ const module = defineNuxtModule({
17
17
  docs: "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
18
18
  configKey: "ui",
19
19
  compatibility: {
20
- nuxt: ">=3.16.0"
20
+ nuxt: ">=4.0.0"
21
21
  }
22
22
  },
23
23
  defaults: defaultOptions,
@@ -13,7 +13,7 @@ import UIcon from "./Icon.vue";
13
13
  const props = defineProps({
14
14
  as: { type: null, required: false },
15
15
  items: { type: Array, required: false },
16
- trailingIcon: { type: String, required: false },
16
+ trailingIcon: { type: [String, Object], required: false },
17
17
  labelKey: { type: String, required: false, default: "label" },
18
18
  class: { type: null, required: false },
19
19
  ui: { type: null, required: false },
@@ -1,6 +1,7 @@
1
1
  import type { AccordionRootProps, AccordionRootEmits } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/ui/accordion';
4
+ import type { IconProps } from '../types';
4
5
  import type { DynamicSlots } from '../types/utils';
5
6
  import type { ComponentConfig } from '../types/tv';
6
7
  type Accordion = ComponentConfig<typeof theme, AppConfig, 'accordion'>;
@@ -9,11 +10,11 @@ export interface AccordionItem {
9
10
  /**
10
11
  * @IconifyIcon
11
12
  */
12
- icon?: string;
13
+ icon?: IconProps['name'];
13
14
  /**
14
15
  * @IconifyIcon
15
16
  */
16
- trailingIcon?: string;
17
+ trailingIcon?: IconProps['name'];
17
18
  slot?: string;
18
19
  content?: string;
19
20
  /** A unique value for the accordion item. Defaults to the index. */
@@ -35,7 +36,7 @@ export interface AccordionProps<T extends AccordionItem = AccordionItem> extends
35
36
  * @defaultValue appConfig.ui.icons.chevronDown
36
37
  * @IconifyIcon
37
38
  */
38
- trailingIcon?: string;
39
+ trailingIcon?: IconProps['name'];
39
40
  /**
40
41
  * The key used to get the label from the item.
41
42
  * @defaultValue 'label'
@@ -64,7 +65,7 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
64
65
  declare const _default: <T extends AccordionItem>(__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<{
65
66
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
66
67
  readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
67
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & Partial<{}>> & import("vue").PublicProps;
68
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & {}> & import("vue").PublicProps;
68
69
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
69
70
  attrs: any;
70
71
  slots: AccordionSlots<T>;
@@ -15,14 +15,14 @@ const props = defineProps({
15
15
  as: { type: null, required: false },
16
16
  title: { type: String, required: false },
17
17
  description: { type: String, required: false },
18
- icon: { type: String, required: false },
18
+ icon: { type: [String, Object], required: false },
19
19
  avatar: { type: Object, required: false },
20
20
  color: { type: null, required: false },
21
21
  variant: { type: null, required: false },
22
22
  orientation: { type: null, required: false, default: "vertical" },
23
23
  actions: { type: Array, required: false },
24
24
  close: { type: [Boolean, Object], required: false },
25
- closeIcon: { type: String, required: false },
25
+ closeIcon: { type: [String, Object], required: false },
26
26
  class: { type: null, required: false },
27
27
  ui: { type: null, required: false }
28
28
  });
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/alert';
3
- import type { AvatarProps, ButtonProps } from '../types';
3
+ import type { AvatarProps, ButtonProps, IconProps } from '../types';
4
4
  import type { ComponentConfig } from '../types/tv';
5
5
  type Alert = ComponentConfig<typeof theme, AppConfig, 'alert'>;
6
6
  export interface AlertProps {
@@ -14,7 +14,7 @@ export interface AlertProps {
14
14
  /**
15
15
  * @IconifyIcon
16
16
  */
17
- icon?: string;
17
+ icon?: IconProps['name'];
18
18
  avatar?: AvatarProps;
19
19
  /**
20
20
  * @defaultValue 'primary'
@@ -48,7 +48,7 @@ export interface AlertProps {
48
48
  * @defaultValue appConfig.ui.icons.close
49
49
  * @IconifyIcon
50
50
  */
51
- closeIcon?: string;
51
+ closeIcon?: IconProps['name'];
52
52
  class?: any;
53
53
  ui?: Alert['slots'];
54
54
  }
@@ -66,7 +66,7 @@ export interface AlertSlots {
66
66
  };
67
67
  }): any;
68
68
  }
69
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  "update:open": (value: boolean) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
72
72
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -15,7 +15,7 @@ import UOverlayProvider from "./OverlayProvider.vue";
15
15
  const props = defineProps({
16
16
  tooltip: { type: Object, required: false },
17
17
  toaster: { type: [Object, null], required: false },
18
- locale: { type: null, required: false },
18
+ locale: { type: Object, required: false },
19
19
  portal: { type: null, required: false, default: "body" },
20
20
  scrollBody: { type: [Boolean, Object], required: false },
21
21
  nonce: { type: String, required: false }
@@ -11,7 +11,7 @@ export interface AppSlots {
11
11
  default(props?: {}): any;
12
12
  }
13
13
  declare const _default: <T extends Messages>(__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<{
14
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & Partial<{}>> & import("vue").PublicProps;
14
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & {}> & import("vue").PublicProps;
15
15
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
16
16
  attrs: any;
17
17
  slots: AppSlots;
@@ -20,7 +20,7 @@ import UInput from "./Input.vue";
20
20
  import UPinInput from "./PinInput.vue";
21
21
  const props = defineProps({
22
22
  as: { type: null, required: false },
23
- icon: { type: String, required: false },
23
+ icon: { type: [String, Object], required: false },
24
24
  title: { type: String, required: false },
25
25
  description: { type: String, required: false },
26
26
  fields: { type: Array, required: false },
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/auth-form';
3
- import type { ButtonProps, FormProps, FormFieldProps, SeparatorProps, PinInputProps } from '../types';
3
+ import type { ButtonProps, FormProps, FormFieldProps, SeparatorProps, PinInputProps, IconProps } from '../types';
4
4
  import type { FormSchema, FormSubmitEvent, InferInput } from '../types/form';
5
5
  import type { ComponentConfig } from '../types/tv';
6
6
  type AuthForm = ComponentConfig<typeof theme, AppConfig, 'authForm'>;
@@ -20,7 +20,7 @@ export interface AuthFormProps<T extends FormSchema = FormSchema<object>, F exte
20
20
  * The icon displayed above the title.
21
21
  * @IconifyIcon
22
22
  */
23
- icon?: string;
23
+ icon?: IconProps['name'];
24
24
  title?: string;
25
25
  description?: string;
26
26
  fields?: F[];
@@ -73,7 +73,7 @@ export type AuthFormSlots<T extends object = object, F extends AuthFormField = A
73
73
  declare const _default: <T extends FormSchema, F extends AuthFormField>(__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<{
74
74
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
75
75
  readonly onSubmit?: ((payload: FormSubmitEvent<import("vue").Reactive<InferInput<T>>>) => any) | undefined;
76
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit"> & AuthFormProps<T, F> & Partial<{}>> & import("vue").PublicProps;
76
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit"> & AuthFormProps<T, F> & {}> & import("vue").PublicProps;
77
77
  expose(exposed: import("vue").ShallowUnwrapRef<{
78
78
  formRef: Readonly<import("vue").ShallowRef<import("vue").ShallowUnwrapRef<import("../types").Form<T>> | null>>;
79
79
  state: import("vue").Reactive<InferInput<T>>;
@@ -16,7 +16,7 @@ const props = defineProps({
16
16
  as: { type: null, required: false, default: "span" },
17
17
  src: { type: String, required: false },
18
18
  alt: { type: String, required: false },
19
- icon: { type: String, required: false },
19
+ icon: { type: [String, Object], required: false },
20
20
  text: { type: String, required: false },
21
21
  size: { type: null, required: false },
22
22
  chip: { type: [Boolean, Object], required: false },
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/avatar';
3
- import type { ChipProps } from '../types';
3
+ import type { ChipProps, IconProps } from '../types';
4
4
  import type { ComponentConfig } from '../types/tv';
5
5
  type Avatar = ComponentConfig<typeof theme, AppConfig, 'avatar'>;
6
6
  export interface AvatarProps {
@@ -14,7 +14,7 @@ export interface AvatarProps {
14
14
  /**
15
15
  * @IconifyIcon
16
16
  */
17
- icon?: string;
17
+ icon?: IconProps['name'];
18
18
  text?: string;
19
19
  /**
20
20
  * @defaultValue 'md'
@@ -28,7 +28,7 @@ export interface AvatarProps {
28
28
  export interface AvatarSlots {
29
29
  default(props?: {}): any;
30
30
  }
31
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
31
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
32
32
  as: any;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
34
  default?: (props: {}) => any;
@@ -22,7 +22,7 @@ export interface AvatarGroupProps {
22
22
  export interface AvatarGroupSlots {
23
23
  default(props?: {}): any;
24
24
  }
25
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
25
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
26
26
  export default _default;
27
27
  type __VLS_WithSlots<T, S> = T & {
28
28
  new (): {
@@ -20,12 +20,12 @@ const props = defineProps({
20
20
  square: { type: Boolean, required: false },
21
21
  class: { type: null, required: false },
22
22
  ui: { type: null, required: false },
23
- icon: { type: String, required: false },
23
+ icon: { type: [String, Object], required: false },
24
24
  avatar: { type: Object, required: false },
25
25
  leading: { type: Boolean, required: false },
26
- leadingIcon: { type: String, required: false },
26
+ leadingIcon: { type: [String, Object], required: false },
27
27
  trailing: { type: Boolean, required: false },
28
- trailingIcon: { type: String, required: false }
28
+ trailingIcon: { type: [String, Object], required: false }
29
29
  });
30
30
  const slots = defineSlots();
31
31
  const appConfig = useAppConfig();
@@ -32,7 +32,7 @@ export interface BadgeSlots {
32
32
  default(props?: {}): any;
33
33
  trailing(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
35
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
36
36
  as: any;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
38
38
  export default _default;
@@ -16,14 +16,14 @@ defineOptions({ inheritAttrs: false });
16
16
  const props = defineProps({
17
17
  as: { type: null, required: false },
18
18
  id: { type: String, required: false },
19
- icon: { type: String, required: false },
19
+ icon: { type: [String, Object], required: false },
20
20
  title: { type: String, required: false },
21
21
  actions: { type: Array, required: false },
22
22
  to: { type: null, required: false },
23
23
  target: { type: [String, Object, null], required: false },
24
24
  color: { type: null, required: false },
25
25
  close: { type: [Boolean, Object], required: false },
26
- closeIcon: { type: String, required: false },
26
+ closeIcon: { type: [String, Object], required: false },
27
27
  class: { type: null, required: false },
28
28
  ui: { type: null, required: false }
29
29
  });
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/banner';
3
- import type { ButtonProps, LinkProps } from '../types';
3
+ import type { ButtonProps, IconProps, LinkProps } from '../types';
4
4
  import type { ComponentConfig } from '../types/tv';
5
5
  type Banner = ComponentConfig<typeof theme, AppConfig, 'banner'>;
6
6
  export interface BannerProps {
@@ -19,7 +19,7 @@ export interface BannerProps {
19
19
  * The icon displayed next to the title.
20
20
  * @IconifyIcon
21
21
  */
22
- icon?: string;
22
+ icon?: IconProps['name'];
23
23
  title?: string;
24
24
  /**
25
25
  * Display a list of actions next to the title.
@@ -44,7 +44,7 @@ export interface BannerProps {
44
44
  * @defaultValue appConfig.ui.icons.close
45
45
  * @IconifyIcon
46
46
  */
47
- closeIcon?: string;
47
+ closeIcon?: IconProps['name'];
48
48
  class?: any;
49
49
  ui?: Banner['slots'];
50
50
  }
@@ -59,7 +59,7 @@ export interface BannerSlots {
59
59
  export interface BannerEmits {
60
60
  close: [];
61
61
  }
62
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
62
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BannerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
63
  close: () => any;
64
64
  }, string, import("vue").PublicProps, Readonly<BannerProps> & Readonly<{
65
65
  onClose?: (() => any) | undefined;
@@ -48,7 +48,7 @@ export interface BlogPostSlots {
48
48
  body(props?: {}): any;
49
49
  footer(props?: {}): any;
50
50
  }
51
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostProps> & Readonly<{}>, {
51
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostProps> & Readonly<{}>, {
52
52
  as: any;
53
53
  orientation: BlogPost["variants"]["orientation"];
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostSlots>;
@@ -20,7 +20,7 @@ export interface BlogPostsProps {
20
20
  export interface BlogPostsSlots {
21
21
  default(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostsProps> & Readonly<{}>, {
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BlogPostsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BlogPostsProps> & Readonly<{}>, {
24
24
  orientation: BlogPosts["variants"]["orientation"];
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BlogPostsSlots>;
26
26
  export default _default;
@@ -17,7 +17,7 @@ import ULink from "./Link.vue";
17
17
  const props = defineProps({
18
18
  as: { type: null, required: false, default: "nav" },
19
19
  items: { type: Array, required: false },
20
- separatorIcon: { type: String, required: false },
20
+ separatorIcon: { type: [String, Object], required: false },
21
21
  labelKey: { type: String, required: false, default: "label" },
22
22
  class: { type: null, required: false },
23
23
  ui: { type: null, required: false }
@@ -1,6 +1,6 @@
1
1
  import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/ui/breadcrumb';
3
- import type { AvatarProps, LinkProps } from '../types';
3
+ import type { AvatarProps, IconProps, LinkProps } from '../types';
4
4
  import type { DynamicSlots } from '../types/utils';
5
5
  import type { ComponentConfig } from '../types/tv';
6
6
  type Breadcrumb = ComponentConfig<typeof theme, AppConfig, 'breadcrumb'>;
@@ -9,7 +9,7 @@ export interface BreadcrumbItem extends Omit<LinkProps, 'raw' | 'custom'> {
9
9
  /**
10
10
  * @IconifyIcon
11
11
  */
12
- icon?: string;
12
+ icon?: IconProps['name'];
13
13
  avatar?: AvatarProps;
14
14
  slot?: string;
15
15
  class?: any;
@@ -28,7 +28,7 @@ export interface BreadcrumbProps<T extends BreadcrumbItem = BreadcrumbItem> {
28
28
  * @defaultValue appConfig.ui.icons.chevronRight
29
29
  * @IconifyIcon
30
30
  */
31
- separatorIcon?: string;
31
+ separatorIcon?: IconProps['name'];
32
32
  /**
33
33
  * The key used to get the label from the item.
34
34
  * @defaultValue 'label'
@@ -53,7 +53,7 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
53
53
  active?: boolean;
54
54
  }>;
55
55
  declare const _default: <T extends BreadcrumbItem>(__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<{
56
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & Partial<{}>> & import("vue").PublicProps;
56
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & {}> & import("vue").PublicProps;
57
57
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
58
58
  attrs: any;
59
59
  slots: BreadcrumbSlots<T>;
@@ -30,14 +30,14 @@ const props = defineProps({
30
30
  onClick: { type: [Function, Array], required: false },
31
31
  class: { type: null, required: false },
32
32
  ui: { type: null, required: false },
33
- icon: { type: String, required: false },
33
+ icon: { type: [String, Object], required: false },
34
34
  avatar: { type: Object, required: false },
35
35
  leading: { type: Boolean, required: false },
36
- leadingIcon: { type: String, required: false },
36
+ leadingIcon: { type: [String, Object], required: false },
37
37
  trailing: { type: Boolean, required: false },
38
- trailingIcon: { type: String, required: false },
38
+ trailingIcon: { type: [String, Object], required: false },
39
39
  loading: { type: Boolean, required: false },
40
- loadingIcon: { type: String, required: false },
40
+ loadingIcon: { type: [String, Object], required: false },
41
41
  as: { type: null, required: false },
42
42
  type: { type: null, required: false },
43
43
  disabled: { type: Boolean, required: false },
@@ -35,7 +35,7 @@ export interface ButtonSlots {
35
35
  default(props?: {}): any;
36
36
  trailing(props?: {}): any;
37
37
  }
38
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
38
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
39
39
  export default _default;
40
40
  type __VLS_WithSlots<T, S> = T & {
41
41
  new (): {
@@ -13,13 +13,13 @@ import { tv } from "../utils/tv";
13
13
  import UButton from "./Button.vue";
14
14
  const props = defineProps({
15
15
  as: { type: null, required: false },
16
- nextYearIcon: { type: String, required: false },
16
+ nextYearIcon: { type: [String, Object], required: false },
17
17
  nextYear: { type: Object, required: false },
18
- nextMonthIcon: { type: String, required: false },
18
+ nextMonthIcon: { type: [String, Object], required: false },
19
19
  nextMonth: { type: Object, required: false },
20
- prevYearIcon: { type: String, required: false },
20
+ prevYearIcon: { type: [String, Object], required: false },
21
21
  prevYear: { type: Object, required: false },
22
- prevMonthIcon: { type: String, required: false },
22
+ prevMonthIcon: { type: [String, Object], required: false },
23
23
  prevMonth: { type: Object, required: false },
24
24
  color: { type: null, required: false },
25
25
  size: { type: null, required: false },
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  disableDaysOutsideCurrentView: { type: Boolean, required: false },
55
55
  fixedDate: { type: String, required: false }
56
56
  });
57
- const emits = defineEmits(["update:modelValue", "update:placeholder", "update:startValue"]);
57
+ const emits = defineEmits(["update:modelValue", "update:placeholder", "update:validModelValue", "update:startValue"]);
58
58
  defineSlots();
59
59
  const { code: locale, dir, t } = useLocale();
60
60
  const appConfig = useAppConfig();
@@ -2,7 +2,7 @@ import type { CalendarRootProps, CalendarRootEmits, RangeCalendarRootProps, Rang
2
2
  import type { DateValue } from '@internationalized/date';
3
3
  import type { AppConfig } from '@nuxt/schema';
4
4
  import theme from '#build/ui/calendar';
5
- import type { ButtonProps } from '../types';
5
+ import type { ButtonProps, IconProps } from '../types';
6
6
  import type { ComponentConfig } from '../types/tv';
7
7
  type Calendar = ComponentConfig<typeof theme, AppConfig, 'calendar'>;
8
8
  type CalendarDefaultValue<R extends boolean = false, M extends boolean = false> = R extends true ? DateRange : M extends true ? DateValue[] : DateValue;
@@ -20,7 +20,7 @@ export interface CalendarProps<R extends boolean = false, M extends boolean = fa
20
20
  * @defaultValue appConfig.ui.icons.chevronDoubleRight
21
21
  * @IconifyIcon
22
22
  */
23
- nextYearIcon?: string;
23
+ nextYearIcon?: IconProps['name'];
24
24
  /**
25
25
  * Configure the next year button.
26
26
  * `{ color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -31,7 +31,7 @@ export interface CalendarProps<R extends boolean = false, M extends boolean = fa
31
31
  * @defaultValue appConfig.ui.icons.chevronRight
32
32
  * @IconifyIcon
33
33
  */
34
- nextMonthIcon?: string;
34
+ nextMonthIcon?: IconProps['name'];
35
35
  /**
36
36
  * Configure the next month button.
37
37
  * `{ color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -42,7 +42,7 @@ export interface CalendarProps<R extends boolean = false, M extends boolean = fa
42
42
  * @defaultValue appConfig.ui.icons.chevronDoubleLeft
43
43
  * @IconifyIcon
44
44
  */
45
- prevYearIcon?: string;
45
+ prevYearIcon?: IconProps['name'];
46
46
  /**
47
47
  * Configure the prev year button.
48
48
  * `{ color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -53,7 +53,7 @@ export interface CalendarProps<R extends boolean = false, M extends boolean = fa
53
53
  * @defaultValue appConfig.ui.icons.chevronLeft
54
54
  * @IconifyIcon
55
55
  */
56
- prevMonthIcon?: string;
56
+ prevMonthIcon?: IconProps['name'];
57
57
  /**
58
58
  * Configure the prev month button.
59
59
  * `{ color: 'neutral', variant: 'ghost' }`{lang="ts-type"}
@@ -96,12 +96,13 @@ declare const _default: <R extends boolean, M extends boolean>(__VLS_props: NonN
96
96
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
97
  readonly "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
98
  readonly "onUpdate:placeholder"?: ((...args: unknown[]) => any) | undefined;
99
+ readonly "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
99
100
  readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
100
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:startValue"> & CalendarProps<R, M> & Partial<{}>> & import("vue").PublicProps;
101
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:validModelValue" | "onUpdate:startValue"> & CalendarProps<R, M> & {}> & import("vue").PublicProps;
101
102
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
102
103
  attrs: any;
103
104
  slots: CalendarSlots;
104
- emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
105
+ emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
105
106
  }>) => import("vue").VNode & {
106
107
  __ctx?: Awaited<typeof __VLS_setup>;
107
108
  };
@@ -20,7 +20,7 @@ export interface CardSlots {
20
20
  default(props?: {}): any;
21
21
  footer(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
24
24
  export default _default;
25
25
  type __VLS_WithSlots<T, S> = T & {
26
26
  new (): {