@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
@@ -359,14 +359,26 @@ const authForm = {
359
359
  }
360
360
  };
361
361
 
362
- const avatar = {
362
+ const avatar = (options) => ({
363
363
  slots: {
364
- root: "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated",
364
+ root: "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle",
365
365
  image: "h-full w-full rounded-[inherit] object-cover",
366
- fallback: "font-medium text-muted truncate",
367
- icon: "text-muted shrink-0"
366
+ fallback: "font-medium truncate",
367
+ icon: "shrink-0"
368
368
  },
369
369
  variants: {
370
+ color: {
371
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
372
+ root: `bg-${color}/10`,
373
+ fallback: `text-${color}`,
374
+ icon: `text-${color}`
375
+ }])),
376
+ neutral: {
377
+ root: "bg-elevated",
378
+ fallback: "text-muted",
379
+ icon: "text-muted"
380
+ }
381
+ },
370
382
  size: {
371
383
  "3xs": {
372
384
  root: "size-4 text-[8px]"
@@ -398,11 +410,12 @@ const avatar = {
398
410
  }
399
411
  },
400
412
  defaultVariants: {
401
- size: "md"
413
+ size: "md",
414
+ color: "neutral"
402
415
  }
403
- };
416
+ });
404
417
 
405
- const avatarGroup = {
418
+ const avatarGroup = (options) => ({
406
419
  slots: {
407
420
  root: "inline-flex flex-row-reverse justify-end",
408
421
  base: "relative rounded-full ring-bg first:me-0"
@@ -436,12 +449,17 @@ const avatarGroup = {
436
449
  "3xl": {
437
450
  base: "ring-3 -me-2"
438
451
  }
452
+ },
453
+ color: {
454
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
455
+ neutral: ""
439
456
  }
440
457
  },
441
458
  defaultVariants: {
442
- size: "md"
459
+ size: "md",
460
+ color: "neutral"
443
461
  }
444
- };
462
+ });
445
463
 
446
464
  const fieldGroupVariant = {
447
465
  fieldGroup: {
@@ -770,7 +788,7 @@ const breadcrumb = (options) => ({
770
788
  root: "relative min-w-0",
771
789
  list: "flex items-center gap-1.5",
772
790
  item: "flex min-w-0",
773
- link: "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-primary",
791
+ link: "group relative flex items-center gap-1.5 text-sm min-w-0",
774
792
  linkLeadingIcon: "shrink-0 size-5",
775
793
  linkLeadingAvatar: "shrink-0",
776
794
  linkLeadingAvatarSize: "2xs",
@@ -781,7 +799,7 @@ const breadcrumb = (options) => ({
781
799
  variants: {
782
800
  active: {
783
801
  true: {
784
- link: "text-primary font-semibold"
802
+ link: "font-semibold"
785
803
  },
786
804
  false: {
787
805
  link: "text-muted font-medium"
@@ -794,6 +812,10 @@ const breadcrumb = (options) => ({
794
812
  },
795
813
  to: {
796
814
  true: ""
815
+ },
816
+ color: {
817
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, { link: `focus-visible:outline-${color}` }])),
818
+ neutral: { link: "focus-visible:outline-inverted" }
797
819
  }
798
820
  },
799
821
  compoundVariants: [{
@@ -803,7 +825,22 @@ const breadcrumb = (options) => ({
803
825
  class: {
804
826
  link: ["hover:text-default", options.theme.transitions && "transition-colors"]
805
827
  }
806
- }]
828
+ }, ...(options.theme.colors || []).map((color) => ({
829
+ color,
830
+ active: true,
831
+ class: {
832
+ link: `text-${color}`
833
+ }
834
+ })), {
835
+ color: "neutral",
836
+ active: true,
837
+ class: {
838
+ link: "text-highlighted"
839
+ }
840
+ }],
841
+ defaultVariants: {
842
+ color: "primary"
843
+ }
807
844
  });
808
845
 
809
846
  const button = (options) => ({
@@ -1235,38 +1272,35 @@ const changelogVersions = {
1235
1272
  const chatMessage = (options) => ({
1236
1273
  slots: {
1237
1274
  root: "group/message relative w-full",
1275
+ header: "flex mb-1.5",
1238
1276
  container: "relative flex items-start",
1277
+ body: "min-w-0",
1239
1278
  leading: "inline-flex items-center justify-center min-h-6",
1240
1279
  leadingIcon: "shrink-0",
1241
1280
  leadingAvatar: "shrink-0",
1242
1281
  leadingAvatarSize: "",
1243
- files: "flex items-center gap-1.5 mb-1.5",
1244
- content: "relative text-pretty min-w-0 *:first:mt-0 *:last:mb-0",
1245
- actions: ["opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center", options.theme.transitions && "transition-opacity"]
1282
+ files: "flex items-center gap-1.5",
1283
+ content: "relative text-pretty wrap-break-word *:first:mt-0 *:last:mb-0",
1284
+ actions: ["[@media(hover:hover)]:opacity-0 group-hover/message:opacity-100 absolute bottom-0 flex items-center", options.theme.transitions && "transition-opacity"]
1246
1285
  },
1247
1286
  variants: {
1248
1287
  variant: {
1249
- solid: {
1250
- content: "bg-inverted text-inverted"
1251
- },
1252
- outline: {
1253
- content: "bg-default ring ring-default"
1254
- },
1255
- soft: {
1256
- content: "bg-elevated/50"
1257
- },
1258
- subtle: {
1259
- content: "bg-elevated/50 ring ring-default"
1260
- },
1261
- naked: {
1262
- content: ""
1263
- }
1288
+ solid: "",
1289
+ outline: "",
1290
+ soft: "",
1291
+ subtle: "",
1292
+ naked: ""
1293
+ },
1294
+ color: {
1295
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
1296
+ neutral: ""
1264
1297
  },
1265
1298
  side: {
1266
1299
  left: {},
1267
1300
  right: {
1268
1301
  container: "justify-end ms-auto max-w-[75%]",
1269
- files: "justify-end"
1302
+ header: "justify-end",
1303
+ actions: "right-0"
1270
1304
  }
1271
1305
  },
1272
1306
  leading: {
@@ -1298,20 +1332,6 @@ const chatMessage = (options) => ({
1298
1332
  class: {
1299
1333
  container: "pb-8"
1300
1334
  }
1301
- }, {
1302
- leading: true,
1303
- compact: false,
1304
- side: "left",
1305
- class: {
1306
- actions: "left-11"
1307
- }
1308
- }, {
1309
- leading: true,
1310
- compact: true,
1311
- side: "left",
1312
- class: {
1313
- actions: "left-6.5"
1314
- }
1315
1335
  }, {
1316
1336
  variant: ["solid", "outline", "soft", "subtle"],
1317
1337
  compact: false,
@@ -1332,9 +1352,65 @@ const chatMessage = (options) => ({
1332
1352
  class: {
1333
1353
  content: "w-full"
1334
1354
  }
1355
+ }, ...(options.theme.colors || []).map((color) => ({
1356
+ color,
1357
+ variant: "solid",
1358
+ class: {
1359
+ content: `bg-${color} text-inverted`
1360
+ }
1361
+ })), ...(options.theme.colors || []).map((color) => ({
1362
+ color,
1363
+ variant: "outline",
1364
+ class: {
1365
+ content: `text-${color} ring ring-${color}/25`
1366
+ }
1367
+ })), ...(options.theme.colors || []).map((color) => ({
1368
+ color,
1369
+ variant: "soft",
1370
+ class: {
1371
+ content: `bg-${color}/10 text-${color}`
1372
+ }
1373
+ })), ...(options.theme.colors || []).map((color) => ({
1374
+ color,
1375
+ variant: "subtle",
1376
+ class: {
1377
+ content: `bg-${color}/10 text-${color} ring ring-${color}/25`
1378
+ }
1379
+ })), ...(options.theme.colors || []).map((color) => ({
1380
+ color,
1381
+ variant: "naked",
1382
+ class: {
1383
+ content: `text-${color}`
1384
+ }
1385
+ })), {
1386
+ color: "neutral",
1387
+ variant: "solid",
1388
+ class: {
1389
+ content: "bg-inverted text-inverted"
1390
+ }
1391
+ }, {
1392
+ color: "neutral",
1393
+ variant: "outline",
1394
+ class: {
1395
+ content: "bg-default ring ring-default"
1396
+ }
1397
+ }, {
1398
+ color: "neutral",
1399
+ variant: "soft",
1400
+ class: {
1401
+ content: "bg-elevated/50"
1402
+ }
1403
+ }, {
1404
+ color: "neutral",
1405
+ variant: "subtle",
1406
+ class: {
1407
+ content: "bg-elevated/50 ring ring-default"
1408
+ }
1335
1409
  }],
1336
1410
  defaultVariants: {
1337
- variant: "naked"
1411
+ side: "left",
1412
+ variant: "naked",
1413
+ color: "neutral"
1338
1414
  }
1339
1415
  });
1340
1416
 
@@ -1471,9 +1547,6 @@ const chatTool = (options) => ({
1471
1547
  chevronIcon: ["absolute inset-0 opacity-0 group-hover:opacity-100 group-data-[state=open]:opacity-100", options.theme.transitions && "transition-[rotate,opacity] duration-200"]
1472
1548
  }
1473
1549
  }
1474
- },
1475
- defaultVariants: {
1476
- variant: "inline"
1477
1550
  }
1478
1551
  });
1479
1552
 
@@ -1561,6 +1634,9 @@ const checkbox = (options) => ({
1561
1634
  description: "cursor-not-allowed"
1562
1635
  }
1563
1636
  },
1637
+ highlight: {
1638
+ true: ""
1639
+ },
1564
1640
  checked: {
1565
1641
  true: ""
1566
1642
  }
@@ -1591,6 +1667,20 @@ const checkbox = (options) => ({
1591
1667
  class: {
1592
1668
  root: "cursor-not-allowed"
1593
1669
  }
1670
+ },
1671
+ ...(options.theme.colors || []).map((color) => ({
1672
+ color,
1673
+ highlight: true,
1674
+ class: {
1675
+ base: `ring-${color}`
1676
+ }
1677
+ })),
1678
+ {
1679
+ color: "neutral",
1680
+ highlight: true,
1681
+ class: {
1682
+ base: "ring-inverted"
1683
+ }
1594
1684
  }
1595
1685
  ],
1596
1686
  defaultVariants: {
@@ -1840,10 +1930,10 @@ const commandPalette = (options) => ({
1840
1930
  itemTrailingKbdsSize: "",
1841
1931
  itemWrapper: "flex-1 flex flex-col text-start min-w-0",
1842
1932
  itemLabel: "truncate space-x-1 text-dimmed",
1843
- itemDescription: "truncate text-muted",
1844
- itemLabelBase: "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
1933
+ itemLabelBase: "text-highlighted [&>mark]:text-primary [&>mark]:bg-primary/15",
1845
1934
  itemLabelPrefix: "text-default",
1846
- itemLabelSuffix: "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
1935
+ itemLabelSuffix: "text-dimmed [&>mark]:text-primary [&>mark]:bg-primary/15",
1936
+ itemDescription: "truncate text-muted [&>mark]:text-primary [&>mark]:bg-primary/15"
1847
1937
  },
1848
1938
  variants: {
1849
1939
  virtualize: {
@@ -1958,7 +2048,7 @@ const container = {
1958
2048
 
1959
2049
  const contextMenu = (options) => ({
1960
2050
  slots: {
1961
- content: "min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin) flex flex-col",
2051
+ content: "min-w-32 max-h-(--reka-context-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-context-menu-content-transform-origin) flex flex-col",
1962
2052
  viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
1963
2053
  group: "p-1 isolate",
1964
2054
  label: "w-full flex items-center font-semibold text-highlighted",
@@ -2237,7 +2327,7 @@ const drawer = (options) => ({
2237
2327
  handle: "mb-4"
2238
2328
  },
2239
2329
  right: {
2240
- content: "flex-row",
2330
+ content: "flex-row rtl:flex-row-reverse",
2241
2331
  handle: "!ml-4"
2242
2332
  },
2243
2333
  bottom: {
@@ -2245,7 +2335,7 @@ const drawer = (options) => ({
2245
2335
  handle: "mt-4"
2246
2336
  },
2247
2337
  left: {
2248
- content: "flex-row-reverse",
2338
+ content: "flex-row-reverse rtl:flex-row",
2249
2339
  handle: "!mr-4"
2250
2340
  }
2251
2341
  },
@@ -2348,7 +2438,7 @@ const drawer = (options) => ({
2348
2438
 
2349
2439
  const dropdownMenu = (options) => ({
2350
2440
  slots: {
2351
- content: "min-w-32 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",
2441
+ content: "min-w-32 max-h-(--reka-dropdown-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",
2352
2442
  input: "border-b border-default",
2353
2443
  empty: "text-center text-muted",
2354
2444
  viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
@@ -2695,6 +2785,8 @@ const empty = {
2695
2785
  const error = {
2696
2786
  slots: {
2697
2787
  root: "min-h-[calc(100vh-var(--ui-header-height))] flex flex-col items-center justify-center text-center",
2788
+ leading: "mb-4 flex items-center justify-center",
2789
+ leadingIcon: "size-10 shrink-0 text-primary",
2698
2790
  statusCode: "text-base font-semibold text-primary",
2699
2791
  statusMessage: "mt-2 text-4xl sm:text-5xl font-bold text-highlighted text-balance",
2700
2792
  message: "mt-4 text-lg text-muted text-balance",
@@ -2971,8 +3063,7 @@ const formField = {
2971
3063
  }
2972
3064
  },
2973
3065
  defaultVariants: {
2974
- size: "md",
2975
- orientation: "vertical"
3066
+ size: "md"
2976
3067
  }
2977
3068
  };
2978
3069
 
@@ -3249,7 +3340,7 @@ const inputMenu = (options) => {
3249
3340
  trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none",
3250
3341
  trailingClear: "p-0",
3251
3342
  arrow: "fill-bg stroke-default",
3252
- content: "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
3343
+ content: "max-h-[min(15rem,var(--reka-combobox-content-available-height))] w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
3253
3344
  viewport: "relative scroll-py-1 overflow-y-auto flex-1",
3254
3345
  group: "p-1 isolate",
3255
3346
  empty: "text-center text-muted",
@@ -5307,6 +5398,9 @@ const radioGroup = (options) => ({
5307
5398
  indicator: "after:size-2"
5308
5399
  }
5309
5400
  },
5401
+ highlight: {
5402
+ true: ""
5403
+ },
5310
5404
  disabled: {
5311
5405
  true: {
5312
5406
  item: "opacity-75",
@@ -5377,13 +5471,26 @@ const radioGroup = (options) => ({
5377
5471
  class: {
5378
5472
  item: "cursor-not-allowed"
5379
5473
  }
5474
+ },
5475
+ ...(options.theme.colors || []).map((color) => ({
5476
+ color,
5477
+ highlight: true,
5478
+ class: {
5479
+ base: `ring-${color}`
5480
+ }
5481
+ })),
5482
+ {
5483
+ color: "neutral",
5484
+ highlight: true,
5485
+ class: {
5486
+ base: "ring-inverted"
5487
+ }
5380
5488
  }
5381
5489
  ],
5382
5490
  defaultVariants: {
5383
5491
  size: "md",
5384
5492
  color: "primary",
5385
5493
  variant: "list",
5386
- orientation: "vertical",
5387
5494
  indicator: "start"
5388
5495
  }
5389
5496
  });
@@ -5418,7 +5525,7 @@ const select = (options) => {
5418
5525
  value: "truncate pointer-events-none",
5419
5526
  placeholder: "truncate text-dimmed",
5420
5527
  arrow: "fill-bg stroke-default",
5421
- content: "max-h-60 w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
5528
+ content: "max-h-[min(15rem,var(--reka-select-content-available-height))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
5422
5529
  viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
5423
5530
  group: "p-1 isolate",
5424
5531
  empty: "text-center text-muted",
@@ -5528,7 +5635,7 @@ const selectMenu = (options) => {
5528
5635
  input: "border-b border-default",
5529
5636
  focusScope: "flex flex-col min-h-0",
5530
5637
  viewport: "relative scroll-py-1 overflow-y-auto flex-1",
5531
- content: (content) => [content, "origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
5638
+ content: (content) => [content, "max-h-[min(15rem,var(--reka-combobox-content-available-height))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
5532
5639
  trailingClear: "p-0"
5533
5640
  },
5534
5641
  variants: {
@@ -5570,12 +5677,12 @@ const separator = (options) => ({
5570
5677
  horizontal: {
5571
5678
  root: "w-full flex-row",
5572
5679
  border: "w-full",
5573
- container: "mx-3 whitespace-nowrap"
5680
+ container: "whitespace-nowrap"
5574
5681
  },
5575
5682
  vertical: {
5576
5683
  root: "h-full flex-col",
5577
5684
  border: "h-full",
5578
- container: "my-2"
5685
+ container: ""
5579
5686
  }
5580
5687
  },
5581
5688
  size: {
@@ -5585,6 +5692,11 @@ const separator = (options) => ({
5585
5692
  lg: "",
5586
5693
  xl: ""
5587
5694
  },
5695
+ position: {
5696
+ start: "",
5697
+ center: "",
5698
+ end: ""
5699
+ },
5588
5700
  type: {
5589
5701
  solid: {
5590
5702
  border: "border-solid"
@@ -5598,6 +5710,30 @@ const separator = (options) => ({
5598
5710
  }
5599
5711
  },
5600
5712
  compoundVariants: [{
5713
+ orientation: "horizontal",
5714
+ position: "start",
5715
+ class: { container: "me-3" }
5716
+ }, {
5717
+ orientation: "horizontal",
5718
+ position: "center",
5719
+ class: { container: "mx-3" }
5720
+ }, {
5721
+ orientation: "horizontal",
5722
+ position: "end",
5723
+ class: { container: "ms-3" }
5724
+ }, {
5725
+ orientation: "vertical",
5726
+ position: "start",
5727
+ class: { container: "mb-2" }
5728
+ }, {
5729
+ orientation: "vertical",
5730
+ position: "center",
5731
+ class: { container: "my-2" }
5732
+ }, {
5733
+ orientation: "vertical",
5734
+ position: "end",
5735
+ class: { container: "mt-2" }
5736
+ }, {
5601
5737
  orientation: "horizontal",
5602
5738
  size: "xs",
5603
5739
  class: { border: "border-t" }
@@ -6200,6 +6336,9 @@ const _switch = (options) => ({
6200
6336
  icon: "animate-spin"
6201
6337
  }
6202
6338
  },
6339
+ highlight: {
6340
+ true: ""
6341
+ },
6203
6342
  required: {
6204
6343
  true: {
6205
6344
  label: "after:content-['*'] after:ms-0.5 after:text-error"
@@ -6214,6 +6353,22 @@ const _switch = (options) => ({
6214
6353
  }
6215
6354
  }
6216
6355
  },
6356
+ compoundVariants: [
6357
+ ...(options.theme.colors || []).map((color) => ({
6358
+ color,
6359
+ highlight: true,
6360
+ class: {
6361
+ base: `ring ring-${color}`
6362
+ }
6363
+ })),
6364
+ {
6365
+ color: "neutral",
6366
+ highlight: true,
6367
+ class: {
6368
+ base: "ring ring-inverted"
6369
+ }
6370
+ }
6371
+ ],
6217
6372
  defaultVariants: {
6218
6373
  color: "primary",
6219
6374
  size: "md"
@@ -7480,11 +7635,11 @@ const pre = {
7480
7635
 
7481
7636
  const prompt = {
7482
7637
  slots: {
7483
- root: "relative flex items-center gap-2 border border-muted bg-muted rounded-md px-4 py-3 my-5 last:mb-0",
7638
+ root: "relative flex flex-wrap items-center gap-2 border border-muted bg-muted rounded-md px-4 py-3 my-5 last:mb-0",
7484
7639
  icon: "size-4 shrink-0 text-highlighted",
7485
- content: "flex-1 min-w-0",
7640
+ content: "min-w-0",
7486
7641
  description: "text-sm/6 text-default font-medium",
7487
- actions: "flex items-center shrink-0 gap-1.5"
7642
+ actions: "flex flex-wrap items-center gap-1.5 ms-auto"
7488
7643
  }
7489
7644
  };
7490
7645
 
@@ -8049,21 +8204,7 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
8049
8204
  }
8050
8205
  return sources.join("\n");
8051
8206
  }
8052
- templates.push({
8053
- filename: "ui.css",
8054
- write: true,
8055
- getContents: async () => {
8056
- const sources = await generateSources();
8057
- const prefix = options.theme?.prefix ? `${options.theme.prefix}:` : "";
8058
- return `${sources}
8059
-
8060
- @layer base {
8061
- body {
8062
- @apply ${prefix}antialiased ${prefix}text-default ${prefix}bg-default ${prefix}scheme-light ${prefix}dark:scheme-dark;
8063
- }
8064
- }
8065
-
8066
- @theme static {
8207
+ const themeBlocks = `@theme static {
8067
8208
  --color-old-neutral-50: ${colors.neutral[50]};
8068
8209
  --color-old-neutral-100: ${colors.neutral[100]};
8069
8210
  --color-old-neutral-200: ${colors.neutral[200]};
@@ -8129,8 +8270,28 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
8129
8270
  --fill-inverted: var(--ui-border-inverted);
8130
8271
  }
8131
8272
  `;
8273
+ templates.push({
8274
+ filename: "ui.css",
8275
+ write: true,
8276
+ getContents: async () => {
8277
+ const sources = await generateSources();
8278
+ const prefix = options.theme?.prefix ? `${options.theme.prefix}:` : "";
8279
+ return `${sources}
8280
+
8281
+ @layer base {
8282
+ body {
8283
+ @apply ${prefix}antialiased ${prefix}text-default ${prefix}bg-default ${prefix}scheme-light ${prefix}dark:scheme-dark;
8284
+ }
8285
+ }
8286
+
8287
+ ${themeBlocks}`;
8132
8288
  }
8133
8289
  });
8290
+ templates.push({
8291
+ filename: "ui.static.css",
8292
+ write: true,
8293
+ getContents: () => themeBlocks
8294
+ });
8134
8295
  templates.push({
8135
8296
  filename: "ui/index.ts",
8136
8297
  write: true,
@@ -8224,4 +8385,4 @@ const publicComposables = {
8224
8385
  useToast: ["useToast"]
8225
8386
  };
8226
8387
 
8227
- export { getDefaultConfig as a, addTemplates as b, defaultOptions as d, getTemplates as g, publicComposables as p, resolveColors as r };
8388
+ export { addTemplates as a, getTemplates as b, defaultOptions as d, getDefaultConfig as g, publicComposables as p, resolveColors as r };
package/dist/unplugin.mjs CHANGED
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
3
3
  import { createUnplugin } from 'unplugin';
4
4
  import { defu } from 'defu';
5
5
  import tailwind from '@tailwindcss/vite';
6
- import { g as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, a as getDefaultConfig } from './shared/ui.BIQuJqNV.mjs';
6
+ import { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.CoJ8bnb0.mjs';
7
7
  import fs from 'node:fs';
8
8
  import path from 'node:path';
9
9
  import MagicString from 'magic-string';
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/ui.BIQuJqNV.mjs';
7
+ import './shared/ui.CoJ8bnb0.mjs';
8
8
  import '../dist/runtime/utils/index.js';
9
9
  import 'scule';
10
10
  import 'knitwork';