@nuxt/ui 3.0.0-alpha.8 → 3.0.0-beta.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 (310) hide show
  1. package/.nuxt/ui/accordion.ts +2 -2
  2. package/.nuxt/ui/alert.ts +122 -95
  3. package/.nuxt/ui/avatar-group.ts +14 -2
  4. package/.nuxt/ui/avatar.ts +16 -4
  5. package/.nuxt/ui/badge.ts +139 -93
  6. package/.nuxt/ui/breadcrumb.ts +5 -5
  7. package/.nuxt/ui/button-group.ts +13 -0
  8. package/.nuxt/ui/button.ts +167 -136
  9. package/.nuxt/ui/calendar.ts +103 -0
  10. package/.nuxt/ui/card.ts +27 -1
  11. package/.nuxt/ui/carousel.ts +9 -7
  12. package/.nuxt/ui/checkbox.ts +45 -27
  13. package/.nuxt/ui/chip.ts +44 -15
  14. package/.nuxt/ui/color-picker.ts +47 -0
  15. package/.nuxt/ui/command-palette.ts +28 -18
  16. package/.nuxt/ui/container.ts +1 -1
  17. package/.nuxt/ui/context-menu.ts +64 -46
  18. package/.nuxt/ui/drawer.ts +83 -15
  19. package/.nuxt/ui/dropdown-menu.ts +65 -47
  20. package/.nuxt/ui/form-field.ts +15 -7
  21. package/.nuxt/ui/index.ts +7 -1
  22. package/.nuxt/ui/input-menu.ts +150 -116
  23. package/.nuxt/ui/input-number.ts +235 -0
  24. package/.nuxt/ui/input.ts +111 -76
  25. package/.nuxt/ui/kbd.ts +18 -6
  26. package/.nuxt/ui/link.ts +3 -3
  27. package/.nuxt/ui/modal.ts +8 -7
  28. package/.nuxt/ui/navigation-menu.ts +244 -131
  29. package/.nuxt/ui/pin-input.ts +171 -0
  30. package/.nuxt/ui/popover.ts +2 -2
  31. package/.nuxt/ui/progress.ts +111 -72
  32. package/.nuxt/ui/radio-group.ts +45 -22
  33. package/.nuxt/ui/select-menu.ts +127 -96
  34. package/.nuxt/ui/select.ts +120 -84
  35. package/.nuxt/ui/separator.ts +60 -31
  36. package/.nuxt/ui/skeleton.ts +1 -1
  37. package/.nuxt/ui/slideover.ts +17 -9
  38. package/.nuxt/ui/slider.ts +61 -38
  39. package/.nuxt/ui/stepper.ts +202 -0
  40. package/.nuxt/ui/switch.ts +40 -22
  41. package/.nuxt/ui/table.ts +49 -31
  42. package/.nuxt/ui/tabs.ts +101 -73
  43. package/.nuxt/ui/textarea.ts +111 -76
  44. package/.nuxt/ui/toast.ts +53 -33
  45. package/.nuxt/ui/toaster.ts +31 -15
  46. package/.nuxt/ui/tooltip.ts +2 -2
  47. package/.nuxt/ui/tree.ts +154 -0
  48. package/.nuxt/ui.css +92 -0
  49. package/README.md +69 -18
  50. package/cli/commands/{init.mjs → make/component.mjs} +16 -4
  51. package/cli/commands/make/index.mjs +14 -0
  52. package/cli/commands/make/locale.mjs +64 -0
  53. package/cli/index.mjs +2 -2
  54. package/cli/package.json +2 -2
  55. package/cli/templates.mjs +62 -12
  56. package/cli/utils.mjs +14 -0
  57. package/dist/module.cjs +9 -170
  58. package/dist/module.d.cts +5 -15
  59. package/dist/module.d.mts +5 -15
  60. package/dist/module.d.ts +5 -15
  61. package/dist/module.json +2 -2
  62. package/dist/module.mjs +12 -167
  63. package/dist/runtime/components/Accordion.vue +8 -39
  64. package/dist/runtime/components/Alert.vue +25 -21
  65. package/dist/runtime/components/App.vue +15 -15
  66. package/dist/runtime/components/Avatar.vue +33 -21
  67. package/dist/runtime/components/AvatarGroup.vue +5 -7
  68. package/dist/runtime/components/Badge.vue +10 -8
  69. package/dist/runtime/components/Breadcrumb.vue +13 -34
  70. package/dist/runtime/components/Button.vue +5 -8
  71. package/dist/runtime/components/ButtonGroup.vue +5 -7
  72. package/dist/runtime/components/Calendar.vue +194 -0
  73. package/dist/runtime/components/Card.vue +10 -9
  74. package/dist/runtime/components/Carousel.vue +26 -17
  75. package/dist/runtime/components/Checkbox.vue +32 -38
  76. package/dist/runtime/components/Chip.vue +6 -8
  77. package/dist/runtime/components/Collapsible.vue +10 -11
  78. package/dist/runtime/components/ColorPicker.vue +297 -0
  79. package/dist/runtime/components/CommandPalette.vue +114 -98
  80. package/dist/runtime/components/Container.vue +4 -7
  81. package/dist/runtime/components/ContextMenu.vue +16 -69
  82. package/dist/runtime/components/ContextMenuContent.vue +14 -10
  83. package/dist/runtime/components/Drawer.vue +23 -12
  84. package/dist/runtime/components/DropdownMenu.vue +18 -59
  85. package/dist/runtime/components/DropdownMenuContent.vue +14 -10
  86. package/dist/runtime/components/Form.vue +78 -49
  87. package/dist/runtime/components/FormField.vue +28 -15
  88. package/dist/runtime/components/Icon.vue +1 -1
  89. package/dist/runtime/components/Input.vue +15 -7
  90. package/dist/runtime/components/InputMenu.vue +133 -66
  91. package/dist/runtime/components/InputNumber.vue +197 -0
  92. package/dist/runtime/components/Kbd.vue +5 -6
  93. package/dist/runtime/components/Link.vue +24 -13
  94. package/dist/runtime/components/LinkBase.vue +1 -1
  95. package/dist/runtime/components/Modal.vue +56 -34
  96. package/dist/runtime/components/NavigationMenu.vue +129 -112
  97. package/dist/runtime/components/OverlayProvider.vue +28 -0
  98. package/dist/runtime/components/Pagination.vue +18 -14
  99. package/dist/runtime/components/PinInput.vue +95 -0
  100. package/dist/runtime/components/Popover.vue +28 -14
  101. package/dist/runtime/components/Progress.vue +28 -12
  102. package/dist/runtime/components/RadioGroup.vue +9 -12
  103. package/dist/runtime/components/Select.vue +61 -35
  104. package/dist/runtime/components/SelectMenu.vue +201 -130
  105. package/dist/runtime/components/Separator.vue +6 -5
  106. package/dist/runtime/components/Skeleton.vue +4 -7
  107. package/dist/runtime/components/Slideover.vue +56 -33
  108. package/dist/runtime/components/Slider.vue +8 -7
  109. package/dist/runtime/components/Stepper.vue +170 -0
  110. package/dist/runtime/components/Switch.vue +19 -23
  111. package/dist/runtime/components/Table.vue +157 -32
  112. package/dist/runtime/components/Tabs.vue +12 -31
  113. package/dist/runtime/components/Textarea.vue +18 -9
  114. package/dist/runtime/components/Toast.vue +39 -25
  115. package/dist/runtime/components/Toaster.vue +31 -24
  116. package/dist/runtime/components/Tooltip.vue +9 -12
  117. package/dist/runtime/components/Tree.vue +196 -0
  118. package/dist/runtime/composables/defineLocale.d.ts +9 -0
  119. package/dist/runtime/composables/defineLocale.js +4 -0
  120. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  121. package/dist/runtime/composables/defineShortcuts.js +2 -2
  122. package/dist/runtime/composables/useFormField.d.ts +11 -4
  123. package/dist/runtime/composables/useFormField.js +19 -9
  124. package/dist/runtime/composables/useLocale.d.ts +4 -0
  125. package/dist/runtime/composables/useLocale.js +10 -0
  126. package/dist/runtime/composables/useOverlay.d.ts +30 -0
  127. package/dist/runtime/composables/useOverlay.js +70 -0
  128. package/dist/runtime/composables/useToast.d.ts +4 -3
  129. package/dist/runtime/composables/useToast.js +20 -6
  130. package/dist/runtime/index.css +1 -1
  131. package/dist/runtime/keyframes.css +1 -1
  132. package/dist/runtime/locale/ar.d.ts +2 -0
  133. package/dist/runtime/locale/ar.js +55 -0
  134. package/dist/runtime/locale/az.d.ts +2 -0
  135. package/dist/runtime/locale/az.js +54 -0
  136. package/dist/runtime/locale/bn.d.ts +2 -0
  137. package/dist/runtime/locale/bn.js +54 -0
  138. package/dist/runtime/locale/cs.d.ts +2 -0
  139. package/dist/runtime/locale/cs.js +54 -0
  140. package/dist/runtime/locale/da.d.ts +2 -0
  141. package/dist/runtime/locale/da.js +54 -0
  142. package/dist/runtime/locale/de.d.ts +2 -0
  143. package/dist/runtime/locale/de.js +54 -0
  144. package/dist/runtime/locale/el.d.ts +2 -0
  145. package/dist/runtime/locale/el.js +54 -0
  146. package/dist/runtime/locale/en.d.ts +2 -0
  147. package/dist/runtime/locale/en.js +54 -0
  148. package/dist/runtime/locale/es.d.ts +2 -0
  149. package/dist/runtime/locale/es.js +54 -0
  150. package/dist/runtime/locale/et.d.ts +2 -0
  151. package/dist/runtime/locale/et.js +54 -0
  152. package/dist/runtime/locale/fa_ir.d.ts +2 -0
  153. package/dist/runtime/locale/fa_ir.js +55 -0
  154. package/dist/runtime/locale/fi.d.ts +2 -0
  155. package/dist/runtime/locale/fi.js +54 -0
  156. package/dist/runtime/locale/fr.d.ts +2 -0
  157. package/dist/runtime/locale/fr.js +54 -0
  158. package/dist/runtime/locale/he.d.ts +2 -0
  159. package/dist/runtime/locale/he.js +53 -0
  160. package/dist/runtime/locale/hi.d.ts +2 -0
  161. package/dist/runtime/locale/hi.js +54 -0
  162. package/dist/runtime/locale/hu.d.ts +2 -0
  163. package/dist/runtime/locale/hu.js +54 -0
  164. package/dist/runtime/locale/id.d.ts +2 -0
  165. package/dist/runtime/locale/id.js +54 -0
  166. package/dist/runtime/locale/index.d.ts +34 -0
  167. package/dist/runtime/locale/index.js +34 -0
  168. package/dist/runtime/locale/it.d.ts +2 -0
  169. package/dist/runtime/locale/it.js +54 -0
  170. package/dist/runtime/locale/ja.d.ts +2 -0
  171. package/dist/runtime/locale/ja.js +54 -0
  172. package/dist/runtime/locale/km.d.ts +2 -0
  173. package/dist/runtime/locale/km.js +54 -0
  174. package/dist/runtime/locale/ko.d.ts +2 -0
  175. package/dist/runtime/locale/ko.js +54 -0
  176. package/dist/runtime/locale/nb_no.d.ts +2 -0
  177. package/dist/runtime/locale/nb_no.js +54 -0
  178. package/dist/runtime/locale/nl.d.ts +2 -0
  179. package/dist/runtime/locale/nl.js +54 -0
  180. package/dist/runtime/locale/pl.d.ts +2 -0
  181. package/dist/runtime/locale/pl.js +54 -0
  182. package/dist/runtime/locale/pt.d.ts +2 -0
  183. package/dist/runtime/locale/pt.js +54 -0
  184. package/dist/runtime/locale/pt_br.d.ts +2 -0
  185. package/dist/runtime/locale/pt_br.js +54 -0
  186. package/dist/runtime/locale/ru.d.ts +2 -0
  187. package/dist/runtime/locale/ru.js +54 -0
  188. package/dist/runtime/locale/sk.d.ts +2 -0
  189. package/dist/runtime/locale/sk.js +54 -0
  190. package/dist/runtime/locale/sv.d.ts +2 -0
  191. package/dist/runtime/locale/sv.js +54 -0
  192. package/dist/runtime/locale/th.d.ts +2 -0
  193. package/dist/runtime/locale/th.js +54 -0
  194. package/dist/runtime/locale/tr.d.ts +2 -0
  195. package/dist/runtime/locale/tr.js +54 -0
  196. package/dist/runtime/locale/uk.d.ts +2 -0
  197. package/dist/runtime/locale/uk.js +54 -0
  198. package/dist/runtime/locale/vi.d.ts +2 -0
  199. package/dist/runtime/locale/vi.js +54 -0
  200. package/dist/runtime/locale/zh_cn.d.ts +2 -0
  201. package/dist/runtime/locale/zh_cn.js +54 -0
  202. package/dist/runtime/locale/zh_tw.d.ts +2 -0
  203. package/dist/runtime/locale/zh_tw.js +54 -0
  204. package/dist/runtime/plugins/colors.js +8 -5
  205. package/dist/runtime/types/form.d.ts +29 -15
  206. package/dist/runtime/types/form.js +2 -2
  207. package/dist/runtime/types/index.d.ts +8 -0
  208. package/dist/runtime/types/index.js +8 -0
  209. package/dist/runtime/types/locale.d.ts +56 -0
  210. package/dist/runtime/types/locale.js +0 -0
  211. package/dist/runtime/types/utils.d.ts +7 -3
  212. package/dist/runtime/utils/form.d.ts +5 -9
  213. package/dist/runtime/utils/form.js +113 -50
  214. package/dist/runtime/utils/index.d.ts +1 -1
  215. package/dist/runtime/utils/index.js +15 -2
  216. package/dist/runtime/utils/link.d.ts +1 -1
  217. package/dist/runtime/utils/locale.d.ts +15 -0
  218. package/dist/runtime/utils/locale.js +25 -0
  219. package/dist/runtime/utils/tv.d.ts +1 -0
  220. package/dist/runtime/utils/tv.js +4 -0
  221. package/dist/runtime/vue/components/Icon.vue +2 -2
  222. package/dist/runtime/vue/components/Link.vue +87 -23
  223. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  224. package/dist/runtime/vue/composables/useAppConfig.js +2 -0
  225. package/dist/runtime/vue/plugins/head.d.ts +1 -1
  226. package/dist/runtime/vue/plugins/head.js +3 -3
  227. package/dist/runtime/vue/stubs.d.ts +19 -0
  228. package/dist/runtime/vue/stubs.js +37 -0
  229. package/dist/shared/{ui.BufKhDiD.mjs → ui.DSPu6Y8j.mjs} +1071 -409
  230. package/dist/shared/{ui.BU7wzH0D.cjs → ui.DfK2RX6G.cjs} +1074 -409
  231. package/dist/unplugin.cjs +62 -26
  232. package/dist/unplugin.d.cts +17 -3
  233. package/dist/unplugin.d.mts +17 -3
  234. package/dist/unplugin.d.ts +17 -3
  235. package/dist/unplugin.mjs +61 -25
  236. package/dist/vite.cjs +3 -2
  237. package/dist/vite.d.cts +2 -0
  238. package/dist/vite.d.mts +2 -0
  239. package/dist/vite.d.ts +2 -0
  240. package/dist/vite.mjs +3 -2
  241. package/package.json +110 -67
  242. package/dist/chunks/component-meta.cjs +0 -73264
  243. package/dist/chunks/component-meta.mjs +0 -73262
  244. package/dist/client/devtools/200.html +0 -1
  245. package/dist/client/devtools/404.html +0 -1
  246. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
  247. package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
  248. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
  249. package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
  250. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
  251. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
  252. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
  253. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
  254. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
  255. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
  256. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
  257. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
  258. package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
  259. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
  260. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
  261. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
  262. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
  263. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
  264. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
  265. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
  266. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
  267. package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
  268. package/dist/client/devtools/_nuxt/Bj9hdafK.js +0 -1
  269. package/dist/client/devtools/_nuxt/DM3_wAgz.js +0 -62
  270. package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
  271. package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +0 -1
  272. package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +0 -24
  273. package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +0 -1
  274. package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +0 -1
  275. package/dist/client/devtools/_nuxt/hKiujHsR.js +0 -1
  276. package/dist/client/devtools/favicon.svg +0 -1
  277. package/dist/client/devtools/index.html +0 -1
  278. package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
  279. package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
  280. package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
  281. package/dist/devtools/runtime/examples/CardExample.vue +0 -13
  282. package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
  283. package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
  284. package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
  285. package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
  286. package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
  287. package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
  288. package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
  289. package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
  290. package/dist/devtools/runtime/examples/FormExample.vue +0 -30
  291. package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
  292. package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
  293. package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
  294. package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
  295. package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
  296. package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
  297. package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
  298. package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
  299. package/dist/runtime/components/ModalProvider.vue +0 -12
  300. package/dist/runtime/components/SlideoverProvider.vue +0 -12
  301. package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
  302. package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
  303. package/dist/runtime/composables/useModal.d.ts +0 -17
  304. package/dist/runtime/composables/useModal.js +0 -46
  305. package/dist/runtime/composables/useSlideover.d.ts +0 -17
  306. package/dist/runtime/composables/useSlideover.js +0 -46
  307. package/dist/runtime/plugins/modal.d.ts +0 -2
  308. package/dist/runtime/plugins/modal.js +0 -10
  309. package/dist/runtime/plugins/slideover.d.ts +0 -2
  310. package/dist/runtime/plugins/slideover.js +0 -10
@@ -1,22 +1,40 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const size = [
12
+ "xs",
13
+ "sm",
14
+ "md",
15
+ "lg",
16
+ "xl"
17
+ ] as const
18
+
1
19
  export default {
2
20
  "slots": {
3
21
  "root": "relative flex items-start",
4
- "base": "shrink-0 flex items-center justify-center rounded-[var(--ui-radius)] text-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)] focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
22
+ "base": "shrink-0 flex items-center justify-center rounded-(--ui-radius) text-(--ui-bg) ring ring-inset ring-(--ui-border-accented) focus-visible:outline-2 focus-visible:outline-offset-2",
5
23
  "container": "flex items-center",
6
24
  "wrapper": "ms-2",
7
25
  "icon": "shrink-0 size-full",
8
- "label": "block font-medium text-[var(--ui-text)]",
9
- "description": "text-[var(--ui-text-muted)]"
26
+ "label": "block font-medium text-(--ui-text)",
27
+ "description": "text-(--ui-text-muted)"
10
28
  },
11
29
  "variants": {
12
30
  "color": {
13
- "primary": "focus-visible:outline-[var(--ui-primary)]",
14
- "secondary": "focus-visible:outline-[var(--ui-secondary)]",
15
- "success": "focus-visible:outline-[var(--ui-success)]",
16
- "info": "focus-visible:outline-[var(--ui-info)]",
17
- "warning": "focus-visible:outline-[var(--ui-warning)]",
18
- "error": "focus-visible:outline-[var(--ui-error)]",
19
- "neutral": "focus-visible:outline-[var(--ui-border-inverted)]"
31
+ "primary": "focus-visible:outline-(--ui-primary)",
32
+ "secondary": "focus-visible:outline-(--ui-secondary)",
33
+ "success": "focus-visible:outline-(--ui-success)",
34
+ "info": "focus-visible:outline-(--ui-info)",
35
+ "warning": "focus-visible:outline-(--ui-warning)",
36
+ "error": "focus-visible:outline-(--ui-error)",
37
+ "neutral": "focus-visible:outline-(--ui-border-inverted)"
20
38
  },
21
39
  "size": {
22
40
  "xs": {
@@ -47,7 +65,7 @@ export default {
47
65
  },
48
66
  "required": {
49
67
  "true": {
50
- "label": "after:content-['*'] after:ms-0.5 after:text-[var(--ui-error)]"
68
+ "label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
51
69
  }
52
70
  },
53
71
  "disabled": {
@@ -63,43 +81,43 @@ export default {
63
81
  },
64
82
  "compoundVariants": [
65
83
  {
66
- "color": "primary" as const,
84
+ "color": "primary" as typeof color[number],
67
85
  "checked": true,
68
- "class": "ring-2 ring-[var(--ui-primary)] bg-[var(--ui-primary)]"
86
+ "class": "ring-2 ring-(--ui-primary) bg-(--ui-primary)"
69
87
  },
70
88
  {
71
- "color": "secondary" as const,
89
+ "color": "secondary" as typeof color[number],
72
90
  "checked": true,
73
- "class": "ring-2 ring-[var(--ui-secondary)] bg-[var(--ui-secondary)]"
91
+ "class": "ring-2 ring-(--ui-secondary) bg-(--ui-secondary)"
74
92
  },
75
93
  {
76
- "color": "success" as const,
94
+ "color": "success" as typeof color[number],
77
95
  "checked": true,
78
- "class": "ring-2 ring-[var(--ui-success)] bg-[var(--ui-success)]"
96
+ "class": "ring-2 ring-(--ui-success) bg-(--ui-success)"
79
97
  },
80
98
  {
81
- "color": "info" as const,
99
+ "color": "info" as typeof color[number],
82
100
  "checked": true,
83
- "class": "ring-2 ring-[var(--ui-info)] bg-[var(--ui-info)]"
101
+ "class": "ring-2 ring-(--ui-info) bg-(--ui-info)"
84
102
  },
85
103
  {
86
- "color": "warning" as const,
104
+ "color": "warning" as typeof color[number],
87
105
  "checked": true,
88
- "class": "ring-2 ring-[var(--ui-warning)] bg-[var(--ui-warning)]"
106
+ "class": "ring-2 ring-(--ui-warning) bg-(--ui-warning)"
89
107
  },
90
108
  {
91
- "color": "error" as const,
109
+ "color": "error" as typeof color[number],
92
110
  "checked": true,
93
- "class": "ring-2 ring-[var(--ui-error)] bg-[var(--ui-error)]"
111
+ "class": "ring-2 ring-(--ui-error) bg-(--ui-error)"
94
112
  },
95
113
  {
96
- "color": "neutral" as const,
114
+ "color": "neutral" as typeof color[number],
97
115
  "checked": true,
98
- "class": "ring-2 ring-[var(--ui-border-inverted)] bg-[var(--ui-bg-inverted)]"
116
+ "class": "ring-2 ring-(--ui-border-inverted) bg-(--ui-bg-inverted)"
99
117
  }
100
118
  ],
101
119
  "defaultVariants": {
102
- "size": "md" as const,
103
- "color": "primary" as const
120
+ "size": "md" as typeof size[number],
121
+ "color": "primary" as typeof color[number]
104
122
  }
105
123
  }
package/.nuxt/ui/chip.ts CHANGED
@@ -1,17 +1,46 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const size = [
12
+ "3xs",
13
+ "2xs",
14
+ "xs",
15
+ "sm",
16
+ "md",
17
+ "lg",
18
+ "xl",
19
+ "2xl",
20
+ "3xl"
21
+ ] as const
22
+
23
+ const position = [
24
+ "top-right",
25
+ "bottom-right",
26
+ "top-left",
27
+ "bottom-left"
28
+ ] as const
29
+
1
30
  export default {
2
31
  "slots": {
3
32
  "root": "relative inline-flex items-center justify-center shrink-0",
4
- "base": "rounded-full ring ring-[var(--ui-bg)] flex items-center justify-center text-[var(--ui-bg)] font-medium whitespace-nowrap"
33
+ "base": "rounded-full ring ring-(--ui-bg) flex items-center justify-center text-(--ui-bg) font-medium whitespace-nowrap"
5
34
  },
6
35
  "variants": {
7
36
  "color": {
8
- "primary": "bg-[var(--ui-primary)]",
9
- "secondary": "bg-[var(--ui-secondary)]",
10
- "success": "bg-[var(--ui-success)]",
11
- "info": "bg-[var(--ui-info)]",
12
- "warning": "bg-[var(--ui-warning)]",
13
- "error": "bg-[var(--ui-error)]",
14
- "neutral": "bg-[var(--ui-text-muted)]"
37
+ "primary": "bg-(--ui-primary)",
38
+ "secondary": "bg-(--ui-secondary)",
39
+ "success": "bg-(--ui-success)",
40
+ "info": "bg-(--ui-info)",
41
+ "warning": "bg-(--ui-warning)",
42
+ "error": "bg-(--ui-error)",
43
+ "neutral": "bg-(--ui-text-muted)"
15
44
  },
16
45
  "size": {
17
46
  "3xs": "h-[4px] min-w-[4px] text-[4px]",
@@ -39,29 +68,29 @@ export default {
39
68
  },
40
69
  "compoundVariants": [
41
70
  {
42
- "position": "top-right" as const,
71
+ "position": "top-right" as typeof position[number],
43
72
  "inset": false,
44
73
  "class": "-translate-y-1/2 translate-x-1/2 transform"
45
74
  },
46
75
  {
47
- "position": "bottom-right" as const,
76
+ "position": "bottom-right" as typeof position[number],
48
77
  "inset": false,
49
78
  "class": "translate-y-1/2 translate-x-1/2 transform"
50
79
  },
51
80
  {
52
- "position": "top-left" as const,
81
+ "position": "top-left" as typeof position[number],
53
82
  "inset": false,
54
83
  "class": "-translate-y-1/2 -translate-x-1/2 transform"
55
84
  },
56
85
  {
57
- "position": "bottom-left" as const,
86
+ "position": "bottom-left" as typeof position[number],
58
87
  "inset": false,
59
88
  "class": "translate-y-1/2 -translate-x-1/2 transform"
60
89
  }
61
90
  ],
62
91
  "defaultVariants": {
63
- "size": "md" as const,
64
- "color": "primary" as const,
65
- "position": "top-right" as const
92
+ "size": "md" as typeof size[number],
93
+ "color": "primary" as typeof color[number],
94
+ "position": "top-right" as typeof position[number]
66
95
  }
67
96
  }
@@ -0,0 +1,47 @@
1
+ const size = [
2
+ "xs",
3
+ "sm",
4
+ "md",
5
+ "lg",
6
+ "xl"
7
+ ] as const
8
+
9
+ export default {
10
+ "slots": {
11
+ "root": "data-[disabled]:opacity-75",
12
+ "picker": "flex gap-4",
13
+ "selector": "rounded-[calc(var(--ui-radius)*1.5)]",
14
+ "selectorBackground": "w-full h-full relative rounded-[calc(var(--ui-radius)*1.2)]",
15
+ "selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-(--color-white) rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
16
+ "track": "w-[8px] relative rounded-[calc(var(--ui-radius)*1.5)]",
17
+ "trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-(--color-white) cursor-pointer data-[disabled]:cursor-not-allowed"
18
+ },
19
+ "variants": {
20
+ "size": {
21
+ "xs": {
22
+ "selector": "w-38 h-38",
23
+ "track": "h-38"
24
+ },
25
+ "sm": {
26
+ "selector": "w-40 h-40",
27
+ "track": "h-40"
28
+ },
29
+ "md": {
30
+ "selector": "w-42 h-42",
31
+ "track": "h-42"
32
+ },
33
+ "lg": {
34
+ "selector": "w-44 h-44",
35
+ "track": "h-44"
36
+ },
37
+ "xl": {
38
+ "selector": "w-46 h-46",
39
+ "track": "h-46"
40
+ }
41
+ }
42
+ },
43
+ "compoundVariants": [],
44
+ "defaultVariants": {
45
+ "size": "md" as typeof size[number]
46
+ }
47
+ }
@@ -1,36 +1,46 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "flex flex-col min-h-0 min-w-0 divide-y divide-[var(--ui-border)]",
3
+ "root": "flex flex-col min-h-0 min-w-0 divide-y divide-(--ui-border)",
4
4
  "input": "[&>input]:h-12",
5
5
  "close": "",
6
- "content": "relative overflow-hidden",
7
- "viewport": "divide-y divide-[var(--ui-border)] scroll-py-1",
6
+ "content": "relative overflow-hidden flex flex-col",
7
+ "viewport": "relative divide-y divide-(--ui-border) scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
8
8
  "group": "p-1 isolate",
9
- "empty": "py-6 text-center text-sm text-[var(--ui-text-muted)]",
10
- "label": "px-2 py-1.5 text-xs font-semibold text-[var(--ui-text-highlighted)]",
11
- "item": [
12
- "group relative w-full flex items-center gap-2 px-2 py-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75 text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50",
13
- "transition-colors before:transition-colors"
14
- ],
15
- "itemLeadingIcon": [
16
- "shrink-0 size-5 text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)]",
17
- "transition-colors"
18
- ],
9
+ "empty": "py-6 text-center text-sm text-(--ui-text-muted)",
10
+ "label": "px-2 py-1.5 text-xs font-semibold text-(--ui-text-highlighted)",
11
+ "item": "group relative w-full flex items-center gap-2 px-2 py-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
12
+ "itemLeadingIcon": "shrink-0 size-5",
19
13
  "itemLeadingAvatar": "shrink-0",
20
14
  "itemLeadingAvatarSize": "2xs",
21
15
  "itemLeadingChip": "shrink-0 size-5",
22
16
  "itemLeadingChipSize": "md",
23
17
  "itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
24
18
  "itemTrailingIcon": "shrink-0 size-5",
25
- "itemTrailingHighlightedIcon": "shrink-0 size-5 text-[var(--ui-text-dimmed)] hidden group-data-highlighted:inline-flex",
19
+ "itemTrailingHighlightedIcon": "shrink-0 size-5 text-(--ui-text-dimmed) hidden group-data-highlighted:inline-flex",
26
20
  "itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
27
21
  "itemTrailingKbdsSize": "md",
28
- "itemLabel": "truncate space-x-1 rtl:space-x-reverse",
29
- "itemLabelBase": "text-[var(--ui-text-highlighted)] [&>mark]:text-[var(--ui-bg)] [&>mark]:bg-[var(--ui-primary)]",
30
- "itemLabelPrefix": "text-[var(--ui-text)]",
31
- "itemLabelSuffix": "text-[var(--ui-text-dimmed)] [&>mark]:text-[var(--ui-bg)] [&>mark]:bg-[var(--ui-primary)]"
22
+ "itemLabel": "truncate space-x-1 rtl:space-x-reverse text-(--ui-text-dimmed)",
23
+ "itemLabelBase": "text-(--ui-text-highlighted) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)",
24
+ "itemLabelPrefix": "text-(--ui-text)",
25
+ "itemLabelSuffix": "text-(--ui-text-dimmed) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)"
32
26
  },
33
27
  "variants": {
28
+ "active": {
29
+ "true": {
30
+ "item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
31
+ "itemLeadingIcon": "text-(--ui-text)"
32
+ },
33
+ "false": {
34
+ "item": [
35
+ "text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50",
36
+ "transition-colors before:transition-colors"
37
+ ],
38
+ "itemLeadingIcon": [
39
+ "text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text)",
40
+ "transition-colors"
41
+ ]
42
+ }
43
+ },
34
44
  "loading": {
35
45
  "true": {
36
46
  "itemLeadingIcon": "animate-spin"
@@ -1,3 +1,3 @@
1
1
  export default {
2
- "base": "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"
2
+ "base": "max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
3
3
  }
@@ -1,19 +1,37 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const size = [
12
+ "xs",
13
+ "sm",
14
+ "md",
15
+ "lg",
16
+ "xl"
17
+ ] as const
18
+
1
19
  export default {
2
20
  "slots": {
3
- "content": "min-w-32 bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--ui-border)] overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
21
+ "content": "min-w-32 bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) divide-y divide-(--ui-border) overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
4
22
  "group": "p-1 isolate",
5
- "label": "w-full flex items-center font-semibold text-[var(--ui-text-highlighted)]",
6
- "separator": "-mx-1 my-1 h-px bg-[var(--ui-border)]",
23
+ "label": "w-full flex items-center font-semibold text-(--ui-text-highlighted)",
24
+ "separator": "-mx-1 my-1 h-px bg-(--ui-border)",
7
25
  "item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
8
26
  "itemLeadingIcon": "shrink-0",
9
27
  "itemLeadingAvatar": "shrink-0",
10
28
  "itemLeadingAvatarSize": "",
11
- "itemTrailing": "ms-auto inline-flex",
29
+ "itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
12
30
  "itemTrailingIcon": "shrink-0",
13
31
  "itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
14
32
  "itemTrailingKbdsSize": "",
15
33
  "itemLabel": "truncate",
16
- "itemLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]"
34
+ "itemLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)"
17
35
  },
18
36
  "variants": {
19
37
  "color": {
@@ -27,16 +45,16 @@ export default {
27
45
  },
28
46
  "active": {
29
47
  "true": {
30
- "item": "text-[var(--ui-text-highlighted)] before:bg-[var(--ui-bg-elevated)]",
31
- "itemLeadingIcon": "text-[var(--ui-text)]"
48
+ "item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
49
+ "itemLeadingIcon": "text-(--ui-text)"
32
50
  },
33
51
  "false": {
34
52
  "item": [
35
- "text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50",
53
+ "text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-[state=open]:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50 data-[state=open]:before:bg-(--ui-bg-elevated)/50",
36
54
  "transition-colors before:transition-colors"
37
55
  ],
38
56
  "itemLeadingIcon": [
39
- "text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
57
+ "text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text) group-data-[state=open]:text-(--ui-text)",
40
58
  "transition-colors"
41
59
  ]
42
60
  }
@@ -96,103 +114,103 @@ export default {
96
114
  },
97
115
  "compoundVariants": [
98
116
  {
99
- "color": "primary" as const,
117
+ "color": "primary" as typeof color[number],
100
118
  "active": false,
101
119
  "class": {
102
- "item": "text-[var(--ui-primary)] data-highlighted:text-[var(--ui-primary)] data-highlighted:before:bg-[var(--ui-primary)]/10 data-[state=open]:before:bg-[var(--ui-primary)]/10",
103
- "itemLeadingIcon": "text-[var(--ui-primary)]/75 group-data-highlighted:text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
120
+ "item": "text-(--ui-primary) data-highlighted:text-(--ui-primary) data-highlighted:before:bg-(--ui-primary)/10 data-[state=open]:before:bg-(--ui-primary)/10",
121
+ "itemLeadingIcon": "text-(--ui-primary)/75 group-data-highlighted:text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
104
122
  }
105
123
  },
106
124
  {
107
- "color": "secondary" as const,
125
+ "color": "secondary" as typeof color[number],
108
126
  "active": false,
109
127
  "class": {
110
- "item": "text-[var(--ui-secondary)] data-highlighted:text-[var(--ui-secondary)] data-highlighted:before:bg-[var(--ui-secondary)]/10 data-[state=open]:before:bg-[var(--ui-secondary)]/10",
111
- "itemLeadingIcon": "text-[var(--ui-secondary)]/75 group-data-highlighted:text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
128
+ "item": "text-(--ui-secondary) data-highlighted:text-(--ui-secondary) data-highlighted:before:bg-(--ui-secondary)/10 data-[state=open]:before:bg-(--ui-secondary)/10",
129
+ "itemLeadingIcon": "text-(--ui-secondary)/75 group-data-highlighted:text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
112
130
  }
113
131
  },
114
132
  {
115
- "color": "success" as const,
133
+ "color": "success" as typeof color[number],
116
134
  "active": false,
117
135
  "class": {
118
- "item": "text-[var(--ui-success)] data-highlighted:text-[var(--ui-success)] data-highlighted:before:bg-[var(--ui-success)]/10 data-[state=open]:before:bg-[var(--ui-success)]/10",
119
- "itemLeadingIcon": "text-[var(--ui-success)]/75 group-data-highlighted:text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
136
+ "item": "text-(--ui-success) data-highlighted:text-(--ui-success) data-highlighted:before:bg-(--ui-success)/10 data-[state=open]:before:bg-(--ui-success)/10",
137
+ "itemLeadingIcon": "text-(--ui-success)/75 group-data-highlighted:text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
120
138
  }
121
139
  },
122
140
  {
123
- "color": "info" as const,
141
+ "color": "info" as typeof color[number],
124
142
  "active": false,
125
143
  "class": {
126
- "item": "text-[var(--ui-info)] data-highlighted:text-[var(--ui-info)] data-highlighted:before:bg-[var(--ui-info)]/10 data-[state=open]:before:bg-[var(--ui-info)]/10",
127
- "itemLeadingIcon": "text-[var(--ui-info)]/75 group-data-highlighted:text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
144
+ "item": "text-(--ui-info) data-highlighted:text-(--ui-info) data-highlighted:before:bg-(--ui-info)/10 data-[state=open]:before:bg-(--ui-info)/10",
145
+ "itemLeadingIcon": "text-(--ui-info)/75 group-data-highlighted:text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
128
146
  }
129
147
  },
130
148
  {
131
- "color": "warning" as const,
149
+ "color": "warning" as typeof color[number],
132
150
  "active": false,
133
151
  "class": {
134
- "item": "text-[var(--ui-warning)] data-highlighted:text-[var(--ui-warning)] data-highlighted:before:bg-[var(--ui-warning)]/10 data-[state=open]:before:bg-[var(--ui-warning)]/10",
135
- "itemLeadingIcon": "text-[var(--ui-warning)]/75 group-data-highlighted:text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
152
+ "item": "text-(--ui-warning) data-highlighted:text-(--ui-warning) data-highlighted:before:bg-(--ui-warning)/10 data-[state=open]:before:bg-(--ui-warning)/10",
153
+ "itemLeadingIcon": "text-(--ui-warning)/75 group-data-highlighted:text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
136
154
  }
137
155
  },
138
156
  {
139
- "color": "error" as const,
157
+ "color": "error" as typeof color[number],
140
158
  "active": false,
141
159
  "class": {
142
- "item": "text-[var(--ui-error)] data-highlighted:text-[var(--ui-error)] data-highlighted:before:bg-[var(--ui-error)]/10 data-[state=open]:before:bg-[var(--ui-error)]/10",
143
- "itemLeadingIcon": "text-[var(--ui-error)]/75 group-data-highlighted:text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
160
+ "item": "text-(--ui-error) data-highlighted:text-(--ui-error) data-highlighted:before:bg-(--ui-error)/10 data-[state=open]:before:bg-(--ui-error)/10",
161
+ "itemLeadingIcon": "text-(--ui-error)/75 group-data-highlighted:text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
144
162
  }
145
163
  },
146
164
  {
147
- "color": "primary" as const,
165
+ "color": "primary" as typeof color[number],
148
166
  "active": true,
149
167
  "class": {
150
- "item": "text-[var(--ui-primary)] before:bg-[var(--ui-primary)]/10",
151
- "itemLeadingIcon": "text-[var(--ui-primary)]"
168
+ "item": "text-(--ui-primary) before:bg-(--ui-primary)/10",
169
+ "itemLeadingIcon": "text-(--ui-primary)"
152
170
  }
153
171
  },
154
172
  {
155
- "color": "secondary" as const,
173
+ "color": "secondary" as typeof color[number],
156
174
  "active": true,
157
175
  "class": {
158
- "item": "text-[var(--ui-secondary)] before:bg-[var(--ui-secondary)]/10",
159
- "itemLeadingIcon": "text-[var(--ui-secondary)]"
176
+ "item": "text-(--ui-secondary) before:bg-(--ui-secondary)/10",
177
+ "itemLeadingIcon": "text-(--ui-secondary)"
160
178
  }
161
179
  },
162
180
  {
163
- "color": "success" as const,
181
+ "color": "success" as typeof color[number],
164
182
  "active": true,
165
183
  "class": {
166
- "item": "text-[var(--ui-success)] before:bg-[var(--ui-success)]/10",
167
- "itemLeadingIcon": "text-[var(--ui-success)]"
184
+ "item": "text-(--ui-success) before:bg-(--ui-success)/10",
185
+ "itemLeadingIcon": "text-(--ui-success)"
168
186
  }
169
187
  },
170
188
  {
171
- "color": "info" as const,
189
+ "color": "info" as typeof color[number],
172
190
  "active": true,
173
191
  "class": {
174
- "item": "text-[var(--ui-info)] before:bg-[var(--ui-info)]/10",
175
- "itemLeadingIcon": "text-[var(--ui-info)]"
192
+ "item": "text-(--ui-info) before:bg-(--ui-info)/10",
193
+ "itemLeadingIcon": "text-(--ui-info)"
176
194
  }
177
195
  },
178
196
  {
179
- "color": "warning" as const,
197
+ "color": "warning" as typeof color[number],
180
198
  "active": true,
181
199
  "class": {
182
- "item": "text-[var(--ui-warning)] before:bg-[var(--ui-warning)]/10",
183
- "itemLeadingIcon": "text-[var(--ui-warning)]"
200
+ "item": "text-(--ui-warning) before:bg-(--ui-warning)/10",
201
+ "itemLeadingIcon": "text-(--ui-warning)"
184
202
  }
185
203
  },
186
204
  {
187
- "color": "error" as const,
205
+ "color": "error" as typeof color[number],
188
206
  "active": true,
189
207
  "class": {
190
- "item": "text-[var(--ui-error)] before:bg-[var(--ui-error)]/10",
191
- "itemLeadingIcon": "text-[var(--ui-error)]"
208
+ "item": "text-(--ui-error) before:bg-(--ui-error)/10",
209
+ "itemLeadingIcon": "text-(--ui-error)"
192
210
  }
193
211
  }
194
212
  ],
195
213
  "defaultVariants": {
196
- "size": "md" as const
214
+ "size": "md" as typeof size[number]
197
215
  }
198
216
  }