@nuxt/ui 4.7.0 → 4.8.0

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 (355) hide show
  1. package/.nuxt/{ui.css → ui.static.css} +0 -10
  2. package/LICENSE.md +1 -1
  3. package/cli/commands/make/component.mjs +6 -2
  4. package/cli/templates.mjs +46 -20
  5. package/cli/utils.mjs +19 -0
  6. package/dist/module.json +1 -1
  7. package/dist/module.mjs +4 -4
  8. package/dist/runtime/components/Accordion.vue +15 -14
  9. package/dist/runtime/components/Alert.vue +20 -20
  10. package/dist/runtime/components/AuthForm.vue +37 -37
  11. package/dist/runtime/components/Avatar.d.vue.ts +4 -0
  12. package/dist/runtime/components/Avatar.vue +14 -12
  13. package/dist/runtime/components/Avatar.vue.d.ts +4 -0
  14. package/dist/runtime/components/AvatarGroup.d.vue.ts +4 -0
  15. package/dist/runtime/components/AvatarGroup.vue +11 -8
  16. package/dist/runtime/components/AvatarGroup.vue.d.ts +4 -0
  17. package/dist/runtime/components/Badge.vue +11 -11
  18. package/dist/runtime/components/Banner.vue +25 -23
  19. package/dist/runtime/components/BlogPost.d.vue.ts +1 -1
  20. package/dist/runtime/components/BlogPost.vue +30 -28
  21. package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
  22. package/dist/runtime/components/BlogPosts.vue +6 -6
  23. package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -0
  24. package/dist/runtime/components/Breadcrumb.vue +21 -18
  25. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -0
  26. package/dist/runtime/components/Button.vue +17 -16
  27. package/dist/runtime/components/Calendar.vue +21 -20
  28. package/dist/runtime/components/Card.vue +11 -11
  29. package/dist/runtime/components/Carousel.vue +23 -22
  30. package/dist/runtime/components/ChangelogVersion.vue +31 -29
  31. package/dist/runtime/components/ChangelogVersions.vue +8 -8
  32. package/dist/runtime/components/ChatMessage.d.vue.ts +6 -0
  33. package/dist/runtime/components/ChatMessage.vue +46 -36
  34. package/dist/runtime/components/ChatMessage.vue.d.ts +6 -0
  35. package/dist/runtime/components/ChatMessages.vue +14 -14
  36. package/dist/runtime/components/ChatPalette.vue +6 -6
  37. package/dist/runtime/components/ChatPrompt.d.vue.ts +7 -0
  38. package/dist/runtime/components/ChatPrompt.vue +22 -12
  39. package/dist/runtime/components/ChatPrompt.vue.d.ts +7 -0
  40. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -3
  41. package/dist/runtime/components/ChatPromptSubmit.vue +6 -6
  42. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -3
  43. package/dist/runtime/components/ChatReasoning.vue +20 -20
  44. package/dist/runtime/components/ChatShimmer.vue +7 -7
  45. package/dist/runtime/components/ChatTool.d.vue.ts +1 -1
  46. package/dist/runtime/components/ChatTool.vue +19 -19
  47. package/dist/runtime/components/ChatTool.vue.d.ts +1 -1
  48. package/dist/runtime/components/Checkbox.d.vue.ts +2 -0
  49. package/dist/runtime/components/Checkbox.vue +25 -24
  50. package/dist/runtime/components/Checkbox.vue.d.ts +2 -0
  51. package/dist/runtime/components/CheckboxGroup.d.vue.ts +1 -1
  52. package/dist/runtime/components/CheckboxGroup.vue +17 -14
  53. package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
  54. package/dist/runtime/components/Chip.vue +8 -8
  55. package/dist/runtime/components/Collapsible.vue +8 -7
  56. package/dist/runtime/components/ColorPicker.d.vue.ts +2 -0
  57. package/dist/runtime/components/ColorPicker.vue +10 -10
  58. package/dist/runtime/components/ColorPicker.vue.d.ts +2 -0
  59. package/dist/runtime/components/CommandPalette.d.vue.ts +5 -5
  60. package/dist/runtime/components/CommandPalette.vue +92 -69
  61. package/dist/runtime/components/CommandPalette.vue.d.ts +5 -5
  62. package/dist/runtime/components/Container.vue +4 -4
  63. package/dist/runtime/components/ContextMenu.vue +16 -15
  64. package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -1
  65. package/dist/runtime/components/DashboardGroup.vue +6 -4
  66. package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
  67. package/dist/runtime/components/DashboardNavbar.vue +16 -16
  68. package/dist/runtime/components/DashboardPanel.vue +7 -7
  69. package/dist/runtime/components/DashboardResizeHandle.vue +5 -5
  70. package/dist/runtime/components/DashboardSearch.d.vue.ts +16 -1
  71. package/dist/runtime/components/DashboardSearch.vue +13 -11
  72. package/dist/runtime/components/DashboardSearch.vue.d.ts +16 -1
  73. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
  74. package/dist/runtime/components/DashboardSearchButton.vue +15 -15
  75. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
  76. package/dist/runtime/components/DashboardSidebar.d.vue.ts +1 -1
  77. package/dist/runtime/components/DashboardSidebar.vue +22 -22
  78. package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
  79. package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +1 -1
  80. package/dist/runtime/components/DashboardSidebarCollapse.vue +5 -5
  81. package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
  82. package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -1
  83. package/dist/runtime/components/DashboardSidebarToggle.vue +5 -5
  84. package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
  85. package/dist/runtime/components/DashboardToolbar.vue +6 -6
  86. package/dist/runtime/components/Drawer.d.vue.ts +1 -1
  87. package/dist/runtime/components/Drawer.vue +23 -22
  88. package/dist/runtime/components/Drawer.vue.d.ts +1 -1
  89. package/dist/runtime/components/DropdownMenu.vue +21 -20
  90. package/dist/runtime/components/Editor.vue +8 -7
  91. package/dist/runtime/components/EditorDragHandle.d.vue.ts +2 -2
  92. package/dist/runtime/components/EditorDragHandle.vue +8 -8
  93. package/dist/runtime/components/EditorDragHandle.vue.d.ts +2 -2
  94. package/dist/runtime/components/EditorToolbar.vue +10 -9
  95. package/dist/runtime/components/Empty.vue +14 -14
  96. package/dist/runtime/components/Error.d.vue.ts +9 -1
  97. package/dist/runtime/components/Error.vue +17 -10
  98. package/dist/runtime/components/Error.vue.d.ts +9 -1
  99. package/dist/runtime/components/FieldGroup.vue +4 -4
  100. package/dist/runtime/components/FileUpload.vue +36 -37
  101. package/dist/runtime/components/Footer.vue +10 -10
  102. package/dist/runtime/components/FooterColumns.vue +15 -15
  103. package/dist/runtime/components/Form.d.vue.ts +1 -1
  104. package/dist/runtime/components/Form.vue +5 -5
  105. package/dist/runtime/components/Form.vue.d.ts +1 -1
  106. package/dist/runtime/components/FormField.d.vue.ts +2 -1
  107. package/dist/runtime/components/FormField.vue +21 -21
  108. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  109. package/dist/runtime/components/Header.vue +19 -19
  110. package/dist/runtime/components/Input.vue +19 -19
  111. package/dist/runtime/components/InputDate.vue +21 -20
  112. package/dist/runtime/components/InputMenu.d.vue.ts +52 -51
  113. package/dist/runtime/components/InputMenu.vue +66 -63
  114. package/dist/runtime/components/InputMenu.vue.d.ts +52 -51
  115. package/dist/runtime/components/InputNumber.vue +25 -24
  116. package/dist/runtime/components/InputTags.vue +26 -25
  117. package/dist/runtime/components/InputTime.vue +21 -20
  118. package/dist/runtime/components/Kbd.vue +5 -5
  119. package/dist/runtime/components/Link.d.vue.ts +11 -2
  120. package/dist/runtime/components/Link.vue +13 -4
  121. package/dist/runtime/components/Link.vue.d.ts +11 -2
  122. package/dist/runtime/components/Listbox.d.vue.ts +13 -9
  123. package/dist/runtime/components/Listbox.vue +34 -32
  124. package/dist/runtime/components/Listbox.vue.d.ts +13 -9
  125. package/dist/runtime/components/Main.vue +4 -4
  126. package/dist/runtime/components/Marquee.vue +5 -5
  127. package/dist/runtime/components/Modal.d.vue.ts +2 -2
  128. package/dist/runtime/components/Modal.vue +25 -24
  129. package/dist/runtime/components/Modal.vue.d.ts +2 -2
  130. package/dist/runtime/components/NavigationMenu.vue +66 -65
  131. package/dist/runtime/components/Page.vue +7 -7
  132. package/dist/runtime/components/PageAnchors.vue +11 -11
  133. package/dist/runtime/components/PageAside.vue +9 -9
  134. package/dist/runtime/components/PageBody.vue +4 -4
  135. package/dist/runtime/components/PageCTA.vue +18 -16
  136. package/dist/runtime/components/PageCard.vue +25 -23
  137. package/dist/runtime/components/PageColumns.vue +4 -4
  138. package/dist/runtime/components/PageFeature.vue +17 -15
  139. package/dist/runtime/components/PageGrid.vue +4 -4
  140. package/dist/runtime/components/PageHeader.vue +14 -14
  141. package/dist/runtime/components/PageHero.vue +20 -18
  142. package/dist/runtime/components/PageLinks.vue +12 -12
  143. package/dist/runtime/components/PageList.vue +4 -4
  144. package/dist/runtime/components/PageLogos.vue +16 -16
  145. package/dist/runtime/components/PageSection.d.vue.ts +1 -1
  146. package/dist/runtime/components/PageSection.vue +24 -22
  147. package/dist/runtime/components/PageSection.vue.d.ts +1 -1
  148. package/dist/runtime/components/Pagination.d.vue.ts +2 -2
  149. package/dist/runtime/components/Pagination.vue +23 -22
  150. package/dist/runtime/components/Pagination.vue.d.ts +2 -2
  151. package/dist/runtime/components/PinInput.vue +15 -14
  152. package/dist/runtime/components/Popover.vue +9 -8
  153. package/dist/runtime/components/PricingPlan.vue +36 -36
  154. package/dist/runtime/components/PricingPlans.vue +6 -6
  155. package/dist/runtime/components/PricingTable.vue +44 -44
  156. package/dist/runtime/components/Progress.d.vue.ts +1 -1
  157. package/dist/runtime/components/Progress.vue +12 -11
  158. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  159. package/dist/runtime/components/RadioGroup.d.vue.ts +2 -0
  160. package/dist/runtime/components/RadioGroup.vue +28 -27
  161. package/dist/runtime/components/RadioGroup.vue.d.ts +2 -0
  162. package/dist/runtime/components/ScrollArea.vue +13 -13
  163. package/dist/runtime/components/Select.vue +38 -40
  164. package/dist/runtime/components/SelectMenu.d.vue.ts +46 -46
  165. package/dist/runtime/components/SelectMenu.vue +49 -48
  166. package/dist/runtime/components/SelectMenu.vue.d.ts +46 -46
  167. package/dist/runtime/components/Separator.d.vue.ts +9 -3
  168. package/dist/runtime/components/Separator.vue +29 -16
  169. package/dist/runtime/components/Separator.vue.d.ts +9 -3
  170. package/dist/runtime/components/Sidebar.vue +28 -28
  171. package/dist/runtime/components/Skeleton.vue +5 -5
  172. package/dist/runtime/components/Slideover.d.vue.ts +3 -3
  173. package/dist/runtime/components/Slideover.vue +24 -23
  174. package/dist/runtime/components/Slideover.vue.d.ts +3 -3
  175. package/dist/runtime/components/Slider.vue +16 -15
  176. package/dist/runtime/components/Stepper.vue +19 -18
  177. package/dist/runtime/components/Switch.d.vue.ts +2 -0
  178. package/dist/runtime/components/Switch.vue +26 -23
  179. package/dist/runtime/components/Switch.vue.d.ts +2 -0
  180. package/dist/runtime/components/Table.vue +26 -25
  181. package/dist/runtime/components/Tabs.vue +22 -21
  182. package/dist/runtime/components/Textarea.vue +19 -18
  183. package/dist/runtime/components/Theme.d.vue.ts +13 -5
  184. package/dist/runtime/components/Theme.vue +32 -4
  185. package/dist/runtime/components/Theme.vue.d.ts +13 -5
  186. package/dist/runtime/components/Timeline.vue +15 -15
  187. package/dist/runtime/components/Toast.vue +35 -34
  188. package/dist/runtime/components/Toaster.d.vue.ts +1 -1
  189. package/dist/runtime/components/Toaster.vue +10 -9
  190. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  191. package/dist/runtime/components/Tooltip.vue +13 -12
  192. package/dist/runtime/components/Tree.vue +24 -23
  193. package/dist/runtime/components/User.vue +23 -21
  194. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +5 -2
  195. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +1 -1
  196. package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -6
  197. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
  198. package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -2
  199. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -0
  200. package/dist/runtime/components/content/ContentNavigation.vue +31 -30
  201. package/dist/runtime/components/content/ContentSearch.d.vue.ts +30 -3
  202. package/dist/runtime/components/content/ContentSearch.vue +66 -32
  203. package/dist/runtime/components/content/ContentSearch.vue.d.ts +30 -3
  204. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
  205. package/dist/runtime/components/content/ContentSearchButton.vue +15 -15
  206. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
  207. package/dist/runtime/components/content/ContentSurround.vue +14 -12
  208. package/dist/runtime/components/content/ContentToc.vue +34 -33
  209. package/dist/runtime/components/prose/A.vue +4 -4
  210. package/dist/runtime/components/prose/Accordion.vue +4 -4
  211. package/dist/runtime/components/prose/AccordionItem.vue +5 -5
  212. package/dist/runtime/components/prose/Badge.vue +4 -4
  213. package/dist/runtime/components/prose/Blockquote.vue +4 -4
  214. package/dist/runtime/components/prose/Callout.vue +8 -8
  215. package/dist/runtime/components/prose/Card.vue +12 -12
  216. package/dist/runtime/components/prose/CardGroup.vue +4 -4
  217. package/dist/runtime/components/prose/Code.vue +4 -4
  218. package/dist/runtime/components/prose/CodeCollapse.vue +8 -8
  219. package/dist/runtime/components/prose/CodeGroup.vue +9 -9
  220. package/dist/runtime/components/prose/CodePreview.vue +6 -6
  221. package/dist/runtime/components/prose/CodeTree.vue +14 -14
  222. package/dist/runtime/components/prose/Collapsible.vue +7 -7
  223. package/dist/runtime/components/prose/Em.vue +4 -4
  224. package/dist/runtime/components/prose/Field.vue +13 -13
  225. package/dist/runtime/components/prose/FieldGroup.vue +4 -4
  226. package/dist/runtime/components/prose/H1.vue +5 -5
  227. package/dist/runtime/components/prose/H2.vue +7 -7
  228. package/dist/runtime/components/prose/H3.vue +7 -7
  229. package/dist/runtime/components/prose/H4.vue +5 -5
  230. package/dist/runtime/components/prose/Hr.vue +4 -4
  231. package/dist/runtime/components/prose/Icon.vue +4 -4
  232. package/dist/runtime/components/prose/Img.vue +17 -12
  233. package/dist/runtime/components/prose/Kbd.d.vue.ts +10 -2
  234. package/dist/runtime/components/prose/Kbd.vue +8 -5
  235. package/dist/runtime/components/prose/Kbd.vue.d.ts +10 -2
  236. package/dist/runtime/components/prose/Li.vue +4 -4
  237. package/dist/runtime/components/prose/Ol.vue +4 -4
  238. package/dist/runtime/components/prose/P.vue +4 -4
  239. package/dist/runtime/components/prose/Pre.vue +9 -9
  240. package/dist/runtime/components/prose/Prompt.vue +12 -12
  241. package/dist/runtime/components/prose/Steps.vue +4 -4
  242. package/dist/runtime/components/prose/Strong.vue +4 -4
  243. package/dist/runtime/components/prose/Table.vue +5 -5
  244. package/dist/runtime/components/prose/Tabs.vue +4 -4
  245. package/dist/runtime/components/prose/TabsItem.vue +5 -5
  246. package/dist/runtime/components/prose/Tbody.vue +4 -4
  247. package/dist/runtime/components/prose/Td.vue +4 -4
  248. package/dist/runtime/components/prose/Th.vue +4 -4
  249. package/dist/runtime/components/prose/Thead.vue +4 -4
  250. package/dist/runtime/components/prose/Tr.vue +4 -4
  251. package/dist/runtime/components/prose/Ul.vue +4 -4
  252. package/dist/runtime/composables/defineShortcuts.js +7 -2
  253. package/dist/runtime/composables/index.d.ts +1 -2
  254. package/dist/runtime/composables/index.js +1 -2
  255. package/dist/runtime/composables/useAvatarGroup.d.ts +12 -1
  256. package/dist/runtime/composables/useAvatarGroup.js +4 -2
  257. package/dist/runtime/composables/useComponentIcons.js +1 -1
  258. package/dist/runtime/composables/useComponentProps.d.ts +180 -0
  259. package/dist/runtime/composables/useComponentProps.js +59 -0
  260. package/dist/runtime/composables/useContentSearch.d.ts +4 -2
  261. package/dist/runtime/composables/useContentSearch.js +64 -7
  262. package/dist/runtime/composables/useFieldGroup.d.ts +9 -1
  263. package/dist/runtime/composables/useFormField.d.ts +21 -1
  264. package/dist/runtime/composables/useForwardProps.d.ts +13 -0
  265. package/dist/runtime/composables/useForwardProps.js +14 -0
  266. package/dist/runtime/composables/usePrefix.d.ts +6 -0
  267. package/dist/runtime/composables/usePrefix.js +11 -0
  268. package/dist/runtime/composables/useResizable.d.ts +4 -0
  269. package/dist/runtime/composables/useResizable.js +1 -1
  270. package/dist/runtime/locale/ar.js +1 -0
  271. package/dist/runtime/locale/az.js +1 -0
  272. package/dist/runtime/locale/be.js +1 -0
  273. package/dist/runtime/locale/bg.js +1 -0
  274. package/dist/runtime/locale/bn.js +1 -0
  275. package/dist/runtime/locale/ca.js +1 -0
  276. package/dist/runtime/locale/ckb.js +1 -0
  277. package/dist/runtime/locale/cs.js +1 -0
  278. package/dist/runtime/locale/da.js +1 -0
  279. package/dist/runtime/locale/de.js +1 -0
  280. package/dist/runtime/locale/de_ch.js +1 -0
  281. package/dist/runtime/locale/el.js +1 -0
  282. package/dist/runtime/locale/en.js +1 -0
  283. package/dist/runtime/locale/es.js +1 -0
  284. package/dist/runtime/locale/et.js +1 -0
  285. package/dist/runtime/locale/eu.js +1 -0
  286. package/dist/runtime/locale/fa_ir.js +1 -0
  287. package/dist/runtime/locale/fi.js +1 -0
  288. package/dist/runtime/locale/fr.js +1 -0
  289. package/dist/runtime/locale/gl.js +1 -0
  290. package/dist/runtime/locale/he.js +1 -0
  291. package/dist/runtime/locale/hi.js +1 -0
  292. package/dist/runtime/locale/hr.js +1 -0
  293. package/dist/runtime/locale/hu.js +1 -0
  294. package/dist/runtime/locale/hy.js +1 -0
  295. package/dist/runtime/locale/id.js +1 -0
  296. package/dist/runtime/locale/is.js +1 -0
  297. package/dist/runtime/locale/it.js +1 -0
  298. package/dist/runtime/locale/ja.js +1 -0
  299. package/dist/runtime/locale/ka.js +1 -0
  300. package/dist/runtime/locale/kk.js +1 -0
  301. package/dist/runtime/locale/km.js +1 -0
  302. package/dist/runtime/locale/ko.js +1 -0
  303. package/dist/runtime/locale/ky.js +1 -0
  304. package/dist/runtime/locale/lb.js +1 -0
  305. package/dist/runtime/locale/lo.js +1 -0
  306. package/dist/runtime/locale/lt.js +1 -0
  307. package/dist/runtime/locale/mn.js +1 -0
  308. package/dist/runtime/locale/ms.js +1 -0
  309. package/dist/runtime/locale/nb_no.js +1 -0
  310. package/dist/runtime/locale/nl.js +1 -0
  311. package/dist/runtime/locale/pl.js +1 -0
  312. package/dist/runtime/locale/pt.js +1 -0
  313. package/dist/runtime/locale/pt_br.js +1 -0
  314. package/dist/runtime/locale/ro.js +1 -0
  315. package/dist/runtime/locale/ru.js +1 -0
  316. package/dist/runtime/locale/sk.js +1 -0
  317. package/dist/runtime/locale/sl.js +1 -0
  318. package/dist/runtime/locale/sq.js +1 -0
  319. package/dist/runtime/locale/sv.js +1 -0
  320. package/dist/runtime/locale/th.js +1 -0
  321. package/dist/runtime/locale/tj.js +1 -0
  322. package/dist/runtime/locale/tr.js +1 -0
  323. package/dist/runtime/locale/ug_cn.js +1 -0
  324. package/dist/runtime/locale/uk.js +1 -0
  325. package/dist/runtime/locale/ur.js +1 -0
  326. package/dist/runtime/locale/uz.js +1 -0
  327. package/dist/runtime/locale/vi.js +1 -0
  328. package/dist/runtime/locale/zh_cn.js +1 -0
  329. package/dist/runtime/locale/zh_tw.js +1 -0
  330. package/dist/runtime/plugins/colors.js +1 -1
  331. package/dist/runtime/types/content.d.ts +1 -0
  332. package/dist/runtime/types/content.js +1 -0
  333. package/dist/runtime/types/form.d.ts +2 -2
  334. package/dist/runtime/types/locale.d.ts +1 -0
  335. package/dist/runtime/utils/dashboard.d.ts +1 -1
  336. package/dist/runtime/utils/link.d.ts +1 -1
  337. package/dist/runtime/utils/link.js +1 -0
  338. package/dist/runtime/utils/{fuse.d.ts → search.d.ts} +2 -1
  339. package/dist/runtime/utils/{fuse.js → search.js} +11 -2
  340. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -0
  341. package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +1 -1
  342. package/dist/runtime/vue/overrides/inertia/Link.vue +5 -0
  343. package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +1 -1
  344. package/dist/runtime/vue/overrides/none/Link.d.vue.ts +1 -1
  345. package/dist/runtime/vue/overrides/none/Link.vue.d.ts +1 -1
  346. package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +1 -1
  347. package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +1 -1
  348. package/dist/shared/{ui.BIQuJqNV.mjs → ui.CoJ8bnb0.mjs} +244 -83
  349. package/dist/unplugin.mjs +1 -1
  350. package/dist/vite.mjs +1 -1
  351. package/package.json +27 -34
  352. package/dist/runtime/composables/useComponentUI.d.ts +0 -33
  353. package/dist/runtime/composables/useComponentUI.js +0 -13
  354. package/dist/runtime/composables/useResolvedVariants.d.ts +0 -21
  355. package/dist/runtime/composables/useResolvedVariants.js +0 -14
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
3
  "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
4
- "version": "4.7.0",
5
- "packageManager": "pnpm@10.33.1",
4
+ "version": "4.8.0",
5
+ "packageManager": "pnpm@11.1.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/nuxt/ui.git"
@@ -91,7 +91,7 @@
91
91
  }
92
92
  },
93
93
  "imports": {
94
- "#build/ui.css": "./.nuxt/ui.css"
94
+ "#build/ui.css": "./.nuxt/ui.static.css"
95
95
  },
96
96
  "bin": {
97
97
  "nuxt-ui": "./cli/index.mjs"
@@ -99,7 +99,7 @@
99
99
  "style": "./dist/runtime/index.css",
100
100
  "main": "./dist/module.mjs",
101
101
  "files": [
102
- ".nuxt/ui.css",
102
+ ".nuxt/ui.static.css",
103
103
  "dist",
104
104
  "cli",
105
105
  "vue-plugin.d.ts"
@@ -128,17 +128,17 @@
128
128
  },
129
129
  "dependencies": {
130
130
  "@floating-ui/dom": "^1.7.6",
131
- "@iconify/vue": "^5.0.0",
131
+ "@iconify/vue": "^5.0.1",
132
132
  "@internationalized/date": "^3.12.1",
133
133
  "@internationalized/number": "^3.6.6",
134
134
  "@nuxt/fonts": "^0.14.0",
135
- "@nuxt/icon": "^2.2.1",
136
- "@nuxt/kit": "^4.4.2",
137
- "@nuxt/schema": "^4.4.2",
135
+ "@nuxt/icon": "^2.2.2",
136
+ "@nuxt/kit": "^4.4.6",
137
+ "@nuxt/schema": "^4.4.6",
138
138
  "@nuxtjs/color-mode": "^3.5.2",
139
139
  "@standard-schema/spec": "^1.1.0",
140
- "@tailwindcss/postcss": "^4.2.4",
141
- "@tailwindcss/vite": "^4.2.4",
140
+ "@tailwindcss/postcss": "^4.3.0",
141
+ "@tailwindcss/vite": "^4.3.0",
142
142
  "@tanstack/vue-table": "^8.21.3",
143
143
  "@tanstack/vue-virtual": "^3.13.24",
144
144
  "@tiptap/core": "^3.22.4",
@@ -158,10 +158,10 @@
158
158
  "@tiptap/starter-kit": "^3.22.4",
159
159
  "@tiptap/suggestion": "^3.22.4",
160
160
  "@tiptap/vue-3": "^3.22.4",
161
- "@unhead/vue": "^2.1.13",
162
- "@vueuse/core": "^14.2.1",
163
- "@vueuse/integrations": "^14.2.1",
164
- "@vueuse/shared": "^14.2.1",
161
+ "@unhead/vue": "^2.1.15",
162
+ "@vueuse/core": "^14.3.0",
163
+ "@vueuse/integrations": "^14.3.0",
164
+ "@vueuse/shared": "^14.3.0",
165
165
  "colortranslator": "^5.0.0",
166
166
  "consola": "^3.4.2",
167
167
  "defu": "^6.1.7",
@@ -180,18 +180,18 @@
180
180
  "motion-v": "^2.2.1",
181
181
  "ohash": "^2.0.11",
182
182
  "pathe": "^2.0.3",
183
- "reka-ui": "2.9.6",
183
+ "reka-ui": "2.9.7",
184
184
  "scule": "^1.3.0",
185
- "tailwind-merge": "^3.5.0",
185
+ "tailwind-merge": "^3.6.0",
186
186
  "tailwind-variants": "^3.2.2",
187
- "tailwindcss": "^4.2.4",
187
+ "tailwindcss": "^4.3.0",
188
188
  "tinyglobby": "^0.2.16",
189
- "ufo": "^1.6.3",
189
+ "ufo": "^1.6.4",
190
190
  "unplugin": "^3.0.0",
191
191
  "unplugin-auto-import": "^21.0.0",
192
192
  "unplugin-vue-components": "^32.0.0",
193
193
  "vaul-vue": "0.4.1",
194
- "vue-component-type-helpers": "^3.2.7"
194
+ "vue-component-type-helpers": "^3.3.0"
195
195
  },
196
196
  "devDependencies": {
197
197
  "@nuxt/eslint-config": "^1.15.2",
@@ -199,20 +199,20 @@
199
199
  "@nuxt/test-utils": "^4.0.2",
200
200
  "@release-it/conventional-changelog": "^10.0.6",
201
201
  "@tanstack/table-core": "^8.21.3",
202
- "@vitejs/plugin-vue": "^6.0.5",
203
- "@vue/test-utils": "^2.4.6",
204
- "ai": "^6.0.168",
202
+ "@vitejs/plugin-vue": "^6.0.7",
203
+ "@vue/test-utils": "^2.4.10",
204
+ "ai": "^6.0.185",
205
205
  "embla-carousel": "^8.6.0",
206
- "eslint": "^10.2.1",
206
+ "eslint": "^10.4.0",
207
207
  "happy-dom": "^20.9.0",
208
- "nuxt": "^4.4.2",
208
+ "nuxt": "^4.4.6",
209
209
  "release-it": "^19.2.4",
210
210
  "unbuild": "^3.6.1",
211
- "vitest": "^4.1.5",
211
+ "vitest": "^4.1.6",
212
212
  "vitest-axe": "^0.1.0",
213
213
  "vitest-environment-nuxt": "^1.0.1",
214
- "vue": "^3.5.30",
215
- "vue-tsc": "^3.2.7"
214
+ "vue": "^3.5.34",
215
+ "vue-tsc": "^3.3.0"
216
216
  },
217
217
  "peerDependencies": {
218
218
  "@inertiajs/vue3": "^2.0.7 || ^3.0.0",
@@ -260,13 +260,6 @@
260
260
  "optional": true
261
261
  }
262
262
  },
263
- "resolutions": {
264
- "@nuxt/kit": "^4.4.2",
265
- "@nuxt/ui": "workspace:*",
266
- "nitropack": "^2.13.0",
267
- "unplugin": "^3.0.0",
268
- "c12": "^3.3.2"
269
- },
270
263
  "keywords": [
271
264
  "nuxt-ui",
272
265
  "nuxt",
@@ -1,33 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- import type { ClassValue } from 'tailwind-variants';
3
- import type { TVConfig } from '../types/tv';
4
- import type * as ui from '#build/ui';
5
- type UIConfig = TVConfig<typeof ui>;
6
- type ExtractUISlots<C> = C extends {
7
- slots?: infer S;
8
- } ? NonNullable<S> : never;
9
- type UIConfigSlots<T extends keyof UIConfig> = 'slots' extends keyof NonNullable<UIConfig[T]> ? ExtractUISlots<NonNullable<UIConfig[T]>> : {
10
- base?: ClassValue;
11
- };
12
- type ThemeSlotOverrides<T> = T extends {
13
- slots: infer S extends Record<string, any>;
14
- } ? {
15
- [K in keyof S]?: ClassValue;
16
- } : {
17
- [K in keyof T]?: T[K] extends Record<string, any> ? ThemeSlotOverrides<T[K]> : ClassValue;
18
- };
19
- export type ThemeUI = {
20
- [K in keyof typeof ui]?: ThemeSlotOverrides<(typeof ui)[K]>;
21
- };
22
- export type ThemeRootContext = {
23
- ui: ComputedRef<ThemeUI>;
24
- };
25
- declare const provideThemeContext: (contextValue: ThemeRootContext) => ThemeRootContext;
26
- export { provideThemeContext };
27
- type ComponentUIProps<T extends keyof UIConfig> = {
28
- ui?: UIConfigSlots<T>;
29
- };
30
- export declare function useComponentUI<T extends keyof UIConfig>(name: T, props: ComponentUIProps<T>): ComputedRef<UIConfigSlots<T>>;
31
- export declare function useComponentUI(name: string, props: {
32
- ui?: any;
33
- }): ComputedRef<any>;
@@ -1,13 +0,0 @@
1
- import { computed } from "vue";
2
- import defu from "defu";
3
- import { createContext } from "reka-ui";
4
- import { get } from "../utils/index.js";
5
- const [injectThemeContext, provideThemeContext] = createContext("UTheme", "RootContext");
6
- export { provideThemeContext };
7
- export function useComponentUI(name, props) {
8
- const { ui } = injectThemeContext({ ui: computed(() => ({})) });
9
- return computed(() => {
10
- const themeOverrides = get(ui.value, name) || {};
11
- return defu(props.ui ?? {}, themeOverrides);
12
- });
13
- }
@@ -1,21 +0,0 @@
1
- import type { ComputedRef, MaybeRefOrGetter } from 'vue';
2
- /**
3
- * Resolve variant values that are consumed in template logic (e.g. `<component :is="...">`).
4
- *
5
- * `tv()`'s `defaultVariants` only apply when computing classes — they don't affect
6
- * template conditionals that read the prop directly. This mirrors tv's priority:
7
- * `props[key]` > `app.config.ts` `defaultVariants[key]` > `theme.defaultVariants[key]`.
8
- *
9
- * @example
10
- * const { variant } = useResolvedVariants('radioGroup', props, theme, ['variant'])
11
- *
12
- * // For nested prop paths, override with a getter:
13
- * const { position } = useResolvedVariants('select', props, theme, ['position'], {
14
- * position: () => props.content?.position
15
- * })
16
- *
17
- * Related: #6360
18
- */
19
- export declare function useResolvedVariants<K extends string>(name: string, props: Record<string, any>, theme: Record<string, any>, keys: K[], overrides?: Partial<Record<K, MaybeRefOrGetter<any>>>): {
20
- [P in K]: ComputedRef<any>;
21
- };
@@ -1,14 +0,0 @@
1
- import { computed, toValue } from "vue";
2
- import { useAppConfig } from "#imports";
3
- import { get } from "../utils/index.js";
4
- export function useResolvedVariants(name, props, theme, keys, overrides) {
5
- const appConfig = useAppConfig();
6
- const result = {};
7
- for (const key of keys) {
8
- result[key] = computed(() => {
9
- const value = overrides?.[key] !== void 0 ? toValue(overrides[key]) : get(props, key);
10
- return value ?? appConfig.ui?.[name]?.defaultVariants?.[key] ?? theme.defaultVariants?.[key];
11
- });
12
- }
13
- return result;
14
- }