@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
package/.nuxt/ui/badge.ts CHANGED
@@ -1,6 +1,36 @@
1
+ const buttonGroup = [
2
+ "horizontal",
3
+ "vertical"
4
+ ] as const
5
+
6
+ const color = [
7
+ "primary",
8
+ "secondary",
9
+ "success",
10
+ "info",
11
+ "warning",
12
+ "error",
13
+ "neutral"
14
+ ] as const
15
+
16
+ const variant = [
17
+ "solid",
18
+ "outline",
19
+ "soft",
20
+ "subtle"
21
+ ] as const
22
+
23
+ const size = [
24
+ "xs",
25
+ "sm",
26
+ "md",
27
+ "lg",
28
+ "xl"
29
+ ] as const
30
+
1
31
  export default {
2
32
  "slots": {
3
- "base": "rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center",
33
+ "base": "font-medium inline-flex items-center",
4
34
  "label": "truncate",
5
35
  "leadingIcon": "shrink-0",
6
36
  "leadingAvatar": "shrink-0",
@@ -8,6 +38,10 @@ export default {
8
38
  "trailingIcon": "shrink-0"
9
39
  },
10
40
  "variants": {
41
+ "buttonGroup": {
42
+ "horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
43
+ "vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
44
+ },
11
45
  "color": {
12
46
  "primary": "",
13
47
  "secondary": "",
@@ -24,171 +58,183 @@ export default {
24
58
  "subtle": ""
25
59
  },
26
60
  "size": {
61
+ "xs": {
62
+ "base": "text-[8px]/3 px-1 py-0.5 gap-1 rounded-[calc(var(--ui-radius))]",
63
+ "leadingIcon": "size-3",
64
+ "leadingAvatarSize": "3xs",
65
+ "trailingIcon": "size-3"
66
+ },
27
67
  "sm": {
28
- "base": "text-xs px-1.5 py-0.5 gap-1",
29
- "leadingIcon": "size-4",
68
+ "base": "text-[10px]/3 px-1.5 py-1 gap-1 rounded-[calc(var(--ui-radius))]",
69
+ "leadingIcon": "size-3",
30
70
  "leadingAvatarSize": "3xs",
31
- "trailingIcon": "size-4"
71
+ "trailingIcon": "size-3"
32
72
  },
33
73
  "md": {
34
- "base": "text-xs px-2 py-1 gap-1",
74
+ "base": "text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)]",
35
75
  "leadingIcon": "size-4",
36
76
  "leadingAvatarSize": "3xs",
37
77
  "trailingIcon": "size-4"
38
78
  },
39
79
  "lg": {
40
- "base": "text-sm px-2 py-1 gap-1.5",
80
+ "base": "text-sm px-2 py-1 gap-1.5 rounded-[calc(var(--ui-radius)*1.5)]",
41
81
  "leadingIcon": "size-5",
42
82
  "leadingAvatarSize": "2xs",
43
83
  "trailingIcon": "size-5"
84
+ },
85
+ "xl": {
86
+ "base": "text-base px-2.5 py-1 gap-1.5 rounded-[calc(var(--ui-radius)*1.5)]",
87
+ "leadingIcon": "size-6",
88
+ "leadingAvatarSize": "2xs",
89
+ "trailingIcon": "size-6"
44
90
  }
45
91
  }
46
92
  },
47
93
  "compoundVariants": [
48
94
  {
49
- "color": "primary" as const,
50
- "variant": "solid" as const,
51
- "class": "bg-[var(--ui-primary)] text-[var(--ui-bg)]"
95
+ "color": "primary" as typeof color[number],
96
+ "variant": "solid" as typeof variant[number],
97
+ "class": "bg-(--ui-primary) text-(--ui-bg)"
52
98
  },
53
99
  {
54
- "color": "secondary" as const,
55
- "variant": "solid" as const,
56
- "class": "bg-[var(--ui-secondary)] text-[var(--ui-bg)]"
100
+ "color": "secondary" as typeof color[number],
101
+ "variant": "solid" as typeof variant[number],
102
+ "class": "bg-(--ui-secondary) text-(--ui-bg)"
57
103
  },
58
104
  {
59
- "color": "success" as const,
60
- "variant": "solid" as const,
61
- "class": "bg-[var(--ui-success)] text-[var(--ui-bg)]"
105
+ "color": "success" as typeof color[number],
106
+ "variant": "solid" as typeof variant[number],
107
+ "class": "bg-(--ui-success) text-(--ui-bg)"
62
108
  },
63
109
  {
64
- "color": "info" as const,
65
- "variant": "solid" as const,
66
- "class": "bg-[var(--ui-info)] text-[var(--ui-bg)]"
110
+ "color": "info" as typeof color[number],
111
+ "variant": "solid" as typeof variant[number],
112
+ "class": "bg-(--ui-info) text-(--ui-bg)"
67
113
  },
68
114
  {
69
- "color": "warning" as const,
70
- "variant": "solid" as const,
71
- "class": "bg-[var(--ui-warning)] text-[var(--ui-bg)]"
115
+ "color": "warning" as typeof color[number],
116
+ "variant": "solid" as typeof variant[number],
117
+ "class": "bg-(--ui-warning) text-(--ui-bg)"
72
118
  },
73
119
  {
74
- "color": "error" as const,
75
- "variant": "solid" as const,
76
- "class": "bg-[var(--ui-error)] text-[var(--ui-bg)]"
120
+ "color": "error" as typeof color[number],
121
+ "variant": "solid" as typeof variant[number],
122
+ "class": "bg-(--ui-error) text-(--ui-bg)"
77
123
  },
78
124
  {
79
- "color": "primary" as const,
80
- "variant": "outline" as const,
81
- "class": "text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/50"
125
+ "color": "primary" as typeof color[number],
126
+ "variant": "outline" as typeof variant[number],
127
+ "class": "text-(--ui-primary) ring ring-inset ring-(--ui-primary)/50"
82
128
  },
83
129
  {
84
- "color": "secondary" as const,
85
- "variant": "outline" as const,
86
- "class": "text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/50"
130
+ "color": "secondary" as typeof color[number],
131
+ "variant": "outline" as typeof variant[number],
132
+ "class": "text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/50"
87
133
  },
88
134
  {
89
- "color": "success" as const,
90
- "variant": "outline" as const,
91
- "class": "text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/50"
135
+ "color": "success" as typeof color[number],
136
+ "variant": "outline" as typeof variant[number],
137
+ "class": "text-(--ui-success) ring ring-inset ring-(--ui-success)/50"
92
138
  },
93
139
  {
94
- "color": "info" as const,
95
- "variant": "outline" as const,
96
- "class": "text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/50"
140
+ "color": "info" as typeof color[number],
141
+ "variant": "outline" as typeof variant[number],
142
+ "class": "text-(--ui-info) ring ring-inset ring-(--ui-info)/50"
97
143
  },
98
144
  {
99
- "color": "warning" as const,
100
- "variant": "outline" as const,
101
- "class": "text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/50"
145
+ "color": "warning" as typeof color[number],
146
+ "variant": "outline" as typeof variant[number],
147
+ "class": "text-(--ui-warning) ring ring-inset ring-(--ui-warning)/50"
102
148
  },
103
149
  {
104
- "color": "error" as const,
105
- "variant": "outline" as const,
106
- "class": "text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/50"
150
+ "color": "error" as typeof color[number],
151
+ "variant": "outline" as typeof variant[number],
152
+ "class": "text-(--ui-error) ring ring-inset ring-(--ui-error)/50"
107
153
  },
108
154
  {
109
- "color": "primary" as const,
110
- "variant": "soft" as const,
111
- "class": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)]"
155
+ "color": "primary" as typeof color[number],
156
+ "variant": "soft" as typeof variant[number],
157
+ "class": "bg-(--ui-primary)/10 text-(--ui-primary)"
112
158
  },
113
159
  {
114
- "color": "secondary" as const,
115
- "variant": "soft" as const,
116
- "class": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)]"
160
+ "color": "secondary" as typeof color[number],
161
+ "variant": "soft" as typeof variant[number],
162
+ "class": "bg-(--ui-secondary)/10 text-(--ui-secondary)"
117
163
  },
118
164
  {
119
- "color": "success" as const,
120
- "variant": "soft" as const,
121
- "class": "bg-[var(--ui-success)]/10 text-[var(--ui-success)]"
165
+ "color": "success" as typeof color[number],
166
+ "variant": "soft" as typeof variant[number],
167
+ "class": "bg-(--ui-success)/10 text-(--ui-success)"
122
168
  },
123
169
  {
124
- "color": "info" as const,
125
- "variant": "soft" as const,
126
- "class": "bg-[var(--ui-info)]/10 text-[var(--ui-info)]"
170
+ "color": "info" as typeof color[number],
171
+ "variant": "soft" as typeof variant[number],
172
+ "class": "bg-(--ui-info)/10 text-(--ui-info)"
127
173
  },
128
174
  {
129
- "color": "warning" as const,
130
- "variant": "soft" as const,
131
- "class": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)]"
175
+ "color": "warning" as typeof color[number],
176
+ "variant": "soft" as typeof variant[number],
177
+ "class": "bg-(--ui-warning)/10 text-(--ui-warning)"
132
178
  },
133
179
  {
134
- "color": "error" as const,
135
- "variant": "soft" as const,
136
- "class": "bg-[var(--ui-error)]/10 text-[var(--ui-error)]"
180
+ "color": "error" as typeof color[number],
181
+ "variant": "soft" as typeof variant[number],
182
+ "class": "bg-(--ui-error)/10 text-(--ui-error)"
137
183
  },
138
184
  {
139
- "color": "primary" as const,
140
- "variant": "subtle" as const,
141
- "class": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25"
185
+ "color": "primary" as typeof color[number],
186
+ "variant": "subtle" as typeof variant[number],
187
+ "class": "bg-(--ui-primary)/10 text-(--ui-primary) ring ring-inset ring-(--ui-primary)/25"
142
188
  },
143
189
  {
144
- "color": "secondary" as const,
145
- "variant": "subtle" as const,
146
- "class": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/25"
190
+ "color": "secondary" as typeof color[number],
191
+ "variant": "subtle" as typeof variant[number],
192
+ "class": "bg-(--ui-secondary)/10 text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/25"
147
193
  },
148
194
  {
149
- "color": "success" as const,
150
- "variant": "subtle" as const,
151
- "class": "bg-[var(--ui-success)]/10 text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/25"
195
+ "color": "success" as typeof color[number],
196
+ "variant": "subtle" as typeof variant[number],
197
+ "class": "bg-(--ui-success)/10 text-(--ui-success) ring ring-inset ring-(--ui-success)/25"
152
198
  },
153
199
  {
154
- "color": "info" as const,
155
- "variant": "subtle" as const,
156
- "class": "bg-[var(--ui-info)]/10 text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/25"
200
+ "color": "info" as typeof color[number],
201
+ "variant": "subtle" as typeof variant[number],
202
+ "class": "bg-(--ui-info)/10 text-(--ui-info) ring ring-inset ring-(--ui-info)/25"
157
203
  },
158
204
  {
159
- "color": "warning" as const,
160
- "variant": "subtle" as const,
161
- "class": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/25"
205
+ "color": "warning" as typeof color[number],
206
+ "variant": "subtle" as typeof variant[number],
207
+ "class": "bg-(--ui-warning)/10 text-(--ui-warning) ring ring-inset ring-(--ui-warning)/25"
162
208
  },
163
209
  {
164
- "color": "error" as const,
165
- "variant": "subtle" as const,
166
- "class": "bg-[var(--ui-error)]/10 text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/25"
210
+ "color": "error" as typeof color[number],
211
+ "variant": "subtle" as typeof variant[number],
212
+ "class": "bg-(--ui-error)/10 text-(--ui-error) ring ring-inset ring-(--ui-error)/25"
167
213
  },
168
214
  {
169
- "color": "neutral" as const,
170
- "variant": "solid" as const,
171
- "class": "text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)]"
215
+ "color": "neutral" as typeof color[number],
216
+ "variant": "solid" as typeof variant[number],
217
+ "class": "text-(--ui-bg) bg-(--ui-bg-inverted)"
172
218
  },
173
219
  {
174
- "color": "neutral" as const,
175
- "variant": "outline" as const,
176
- "class": "ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg)]"
220
+ "color": "neutral" as typeof color[number],
221
+ "variant": "outline" as typeof variant[number],
222
+ "class": "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg)"
177
223
  },
178
224
  {
179
- "color": "neutral" as const,
180
- "variant": "soft" as const,
181
- "class": "text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]"
225
+ "color": "neutral" as typeof color[number],
226
+ "variant": "soft" as typeof variant[number],
227
+ "class": "text-(--ui-text) bg-(--ui-bg-elevated)"
182
228
  },
183
229
  {
184
- "color": "neutral" as const,
185
- "variant": "subtle" as const,
186
- "class": "ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]"
230
+ "color": "neutral" as typeof color[number],
231
+ "variant": "subtle" as typeof variant[number],
232
+ "class": "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated)"
187
233
  }
188
234
  ],
189
235
  "defaultVariants": {
190
- "color": "primary" as const,
191
- "variant": "solid" as const,
192
- "size": "md" as const
236
+ "color": "primary" as typeof color[number],
237
+ "variant": "solid" as typeof variant[number],
238
+ "size": "md" as typeof size[number]
193
239
  }
194
240
  }
@@ -3,21 +3,21 @@ export default {
3
3
  "root": "relative min-w-0",
4
4
  "list": "flex items-center gap-1.5",
5
5
  "item": "flex min-w-0",
6
- "link": "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-[var(--ui-primary)]",
6
+ "link": "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-(--ui-primary)",
7
7
  "linkLeadingIcon": "shrink-0 size-5",
8
8
  "linkLeadingAvatar": "shrink-0",
9
9
  "linkLeadingAvatarSize": "2xs",
10
10
  "linkLabel": "truncate",
11
11
  "separator": "flex",
12
- "separatorIcon": "shrink-0 size-5 text-[var(--ui-text-muted)]"
12
+ "separatorIcon": "shrink-0 size-5 text-(--ui-text-muted)"
13
13
  },
14
14
  "variants": {
15
15
  "active": {
16
16
  "true": {
17
- "link": "text-[var(--ui-primary)] font-semibold"
17
+ "link": "text-(--ui-primary) font-semibold"
18
18
  },
19
19
  "false": {
20
- "link": "text-[var(--ui-text-muted)] font-medium"
20
+ "link": "text-(--ui-text-muted) font-medium"
21
21
  }
22
22
  },
23
23
  "disabled": {
@@ -36,7 +36,7 @@ export default {
36
36
  "to": true,
37
37
  "class": {
38
38
  "link": [
39
- "hover:text-[var(--ui-text)]",
39
+ "hover:text-(--ui-text)",
40
40
  "transition-colors"
41
41
  ]
42
42
  }
@@ -1,3 +1,16 @@
1
+ const size = [
2
+ "xs",
3
+ "sm",
4
+ "md",
5
+ "lg",
6
+ "xl"
7
+ ] as const
8
+
9
+ const orientation = [
10
+ "horizontal",
11
+ "vertical"
12
+ ] as const
13
+
1
14
  export default {
2
15
  "base": "relative",
3
16
  "variants": {