@nuxt/ui 3.0.2 → 3.1.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 (220) hide show
  1. package/.nuxt/ui/accordion.ts +25 -4
  2. package/.nuxt/ui/alert.ts +52 -31
  3. package/.nuxt/ui/avatar-group.ts +24 -3
  4. package/.nuxt/ui/avatar.ts +26 -5
  5. package/.nuxt/ui/badge.ts +56 -35
  6. package/.nuxt/ui/breadcrumb.ts +28 -7
  7. package/.nuxt/ui/button-group.ts +23 -2
  8. package/.nuxt/ui/button.ts +66 -45
  9. package/.nuxt/ui/calendar.ts +39 -18
  10. package/.nuxt/ui/card.ts +28 -7
  11. package/.nuxt/ui/carousel.ts +29 -8
  12. package/.nuxt/ui/checkbox-group.ts +82 -0
  13. package/.nuxt/ui/checkbox.ts +163 -29
  14. package/.nuxt/ui/chip.ts +31 -10
  15. package/.nuxt/ui/collapsible.ts +23 -2
  16. package/.nuxt/ui/color-picker.ts +26 -5
  17. package/.nuxt/ui/command-palette.ts +37 -16
  18. package/.nuxt/ui/container.ts +23 -2
  19. package/.nuxt/ui/context-menu.ts +56 -35
  20. package/.nuxt/ui/drawer.ts +33 -12
  21. package/.nuxt/ui/dropdown-menu.ts +57 -36
  22. package/.nuxt/ui/form-field.ts +29 -8
  23. package/.nuxt/ui/form.ts +23 -2
  24. package/.nuxt/ui/index.ts +1 -0
  25. package/.nuxt/ui/input-menu.ts +65 -44
  26. package/.nuxt/ui/input-number.ts +43 -22
  27. package/.nuxt/ui/input.ts +46 -25
  28. package/.nuxt/ui/kbd.ts +27 -6
  29. package/.nuxt/ui/link.ts +26 -5
  30. package/.nuxt/ui/modal.ts +28 -7
  31. package/.nuxt/ui/navigation-menu.ts +102 -83
  32. package/.nuxt/ui/pagination.ts +23 -2
  33. package/.nuxt/ui/pin-input.ts +43 -22
  34. package/.nuxt/ui/popover.ts +25 -4
  35. package/.nuxt/ui/progress.ts +40 -19
  36. package/.nuxt/ui/radio-group.ts +273 -37
  37. package/.nuxt/ui/select-menu.ts +59 -35
  38. package/.nuxt/ui/select.ts +55 -34
  39. package/.nuxt/ui/separator.ts +31 -10
  40. package/.nuxt/ui/skeleton.ts +24 -3
  41. package/.nuxt/ui/slideover.ts +27 -6
  42. package/.nuxt/ui/slider.ts +39 -18
  43. package/.nuxt/ui/stepper.ts +41 -20
  44. package/.nuxt/ui/switch.ts +43 -22
  45. package/.nuxt/ui/table.ts +38 -17
  46. package/.nuxt/ui/tabs.ts +55 -34
  47. package/.nuxt/ui/textarea.ts +63 -37
  48. package/.nuxt/ui/toast.ts +47 -26
  49. package/.nuxt/ui/toaster.ts +23 -2
  50. package/.nuxt/ui/tooltip.ts +25 -4
  51. package/.nuxt/ui/tree.ts +41 -20
  52. package/.nuxt/ui.css +56 -12
  53. package/README.md +11 -0
  54. package/cli/templates.mjs +18 -17
  55. package/dist/module.json +5 -5
  56. package/dist/module.mjs +11 -7
  57. package/dist/runtime/components/Accordion.vue +36 -93
  58. package/dist/runtime/components/Accordion.vue.d.ts +91 -0
  59. package/dist/runtime/components/Alert.vue +37 -100
  60. package/dist/runtime/components/Alert.vue.d.ts +96 -0
  61. package/dist/runtime/components/App.vue +28 -34
  62. package/dist/runtime/components/App.vue.d.ts +24 -0
  63. package/dist/runtime/components/Avatar.vue +42 -75
  64. package/dist/runtime/components/Avatar.vue.d.ts +60 -0
  65. package/dist/runtime/components/AvatarGroup.vue +40 -77
  66. package/dist/runtime/components/AvatarGroup.vue.d.ts +40 -0
  67. package/dist/runtime/components/Badge.vue +33 -62
  68. package/dist/runtime/components/Badge.vue.d.ts +62 -0
  69. package/dist/runtime/components/Breadcrumb.vue +37 -90
  70. package/dist/runtime/components/Breadcrumb.vue.d.ts +82 -0
  71. package/dist/runtime/components/Button.vue +95 -104
  72. package/dist/runtime/components/Button.vue.d.ts +73 -0
  73. package/dist/runtime/components/ButtonGroup.vue +20 -46
  74. package/dist/runtime/components/ButtonGroup.vue.d.ts +55 -0
  75. package/dist/runtime/components/Calendar.vue +67 -150
  76. package/dist/runtime/components/Calendar.vue.d.ts +107 -0
  77. package/dist/runtime/components/Card.vue +18 -40
  78. package/dist/runtime/components/Card.vue.d.ts +38 -0
  79. package/dist/runtime/components/Carousel.vue +112 -234
  80. package/dist/runtime/components/Carousel.vue.d.ts +120 -0
  81. package/dist/runtime/components/Checkbox.vue +52 -93
  82. package/dist/runtime/components/Checkbox.vue.d.ts +76 -0
  83. package/dist/runtime/components/CheckboxGroup.vue +121 -0
  84. package/dist/runtime/components/CheckboxGroup.vue.d.ts +75 -0
  85. package/dist/runtime/components/Chip.vue +26 -69
  86. package/dist/runtime/components/Chip.vue.d.ts +71 -0
  87. package/dist/runtime/components/Collapsible.vue +22 -41
  88. package/dist/runtime/components/Collapsible.vue.d.ts +50 -0
  89. package/dist/runtime/components/ColorPicker.vue +111 -197
  90. package/dist/runtime/components/ColorPicker.vue.d.ts +63 -0
  91. package/dist/runtime/components/CommandPalette.vue +96 -237
  92. package/dist/runtime/components/CommandPalette.vue.d.ts +173 -0
  93. package/dist/runtime/components/Container.vue +15 -28
  94. package/dist/runtime/components/Container.vue.d.ts +27 -0
  95. package/dist/runtime/components/ContextMenu.vue +34 -133
  96. package/dist/runtime/components/ContextMenu.vue.d.ts +127 -0
  97. package/dist/runtime/components/ContextMenuContent.vue +73 -81
  98. package/dist/runtime/components/ContextMenuContent.vue.d.ts +105 -0
  99. package/dist/runtime/components/Drawer.vue +49 -83
  100. package/dist/runtime/components/Drawer.vue.d.ts +88 -0
  101. package/dist/runtime/components/DropdownMenu.vue +39 -142
  102. package/dist/runtime/components/DropdownMenu.vue.d.ts +141 -0
  103. package/dist/runtime/components/DropdownMenuContent.vue +78 -88
  104. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +55 -0
  105. package/dist/runtime/components/Form.vue +135 -220
  106. package/dist/runtime/components/Form.vue.d.ts +66 -0
  107. package/dist/runtime/components/FormField.vue +35 -77
  108. package/dist/runtime/components/FormField.vue.d.ts +70 -0
  109. package/dist/runtime/components/Icon.vue +12 -19
  110. package/dist/runtime/components/Icon.vue.d.ts +17 -0
  111. package/dist/runtime/components/Input.vue +82 -140
  112. package/dist/runtime/components/Input.vue.d.ts +91 -0
  113. package/dist/runtime/components/InputMenu.vue +185 -332
  114. package/dist/runtime/components/InputMenu.vue.d.ts +312 -0
  115. package/dist/runtime/components/InputNumber.vue +71 -133
  116. package/dist/runtime/components/InputNumber.vue.d.ts +193 -0
  117. package/dist/runtime/components/Kbd.vue +20 -46
  118. package/dist/runtime/components/Kbd.vue.d.ts +55 -0
  119. package/dist/runtime/components/Link.vue +98 -176
  120. package/dist/runtime/components/Link.vue.d.ts +124 -0
  121. package/dist/runtime/components/LinkBase.vue +33 -42
  122. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  123. package/dist/runtime/components/Modal.vue +53 -116
  124. package/dist/runtime/components/Modal.vue.d.ts +109 -0
  125. package/dist/runtime/components/NavigationMenu.vue +77 -209
  126. package/dist/runtime/components/NavigationMenu.vue.d.ts +159 -0
  127. package/dist/runtime/components/OverlayProvider.vue +14 -18
  128. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  129. package/dist/runtime/components/Pagination.vue +46 -140
  130. package/dist/runtime/components/Pagination.vue.d.ts +143 -0
  131. package/dist/runtime/components/PinInput.vue +61 -78
  132. package/dist/runtime/components/PinInput.vue.d.ts +68 -0
  133. package/dist/runtime/components/Popover.vue +47 -84
  134. package/dist/runtime/components/Popover.vue.d.ts +80 -0
  135. package/dist/runtime/components/Progress.vue +70 -131
  136. package/dist/runtime/components/Progress.vue.d.ts +97 -0
  137. package/dist/runtime/components/RadioGroup.vue +70 -132
  138. package/dist/runtime/components/RadioGroup.vue.d.ts +88 -0
  139. package/dist/runtime/components/Select.vue +110 -224
  140. package/dist/runtime/components/Select.vue.d.ts +139 -0
  141. package/dist/runtime/components/SelectMenu.vue +161 -310
  142. package/dist/runtime/components/SelectMenu.vue.d.ts +184 -0
  143. package/dist/runtime/components/Separator.vue +29 -71
  144. package/dist/runtime/components/Separator.vue.d.ts +75 -0
  145. package/dist/runtime/components/Skeleton.vue +21 -23
  146. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  147. package/dist/runtime/components/Slideover.vue +53 -120
  148. package/dist/runtime/components/Slideover.vue.d.ts +111 -0
  149. package/dist/runtime/components/Slider.vue +46 -84
  150. package/dist/runtime/components/Slider.vue.d.ts +71 -0
  151. package/dist/runtime/components/Stepper.vue +45 -115
  152. package/dist/runtime/components/Stepper.vue.d.ts +89 -0
  153. package/dist/runtime/components/Switch.vue +45 -93
  154. package/dist/runtime/components/Switch.vue.d.ts +73 -0
  155. package/dist/runtime/components/Table.vue +163 -267
  156. package/dist/runtime/components/Table.vue.d.ts +183 -0
  157. package/dist/runtime/components/Tabs.vue +41 -107
  158. package/dist/runtime/components/Tabs.vue.d.ts +104 -0
  159. package/dist/runtime/components/Textarea.vue +113 -158
  160. package/dist/runtime/components/Textarea.vue.d.ts +95 -0
  161. package/dist/runtime/components/Toast.vue +49 -110
  162. package/dist/runtime/components/Toast.vue.d.ts +95 -0
  163. package/dist/runtime/components/Toaster.vue +70 -107
  164. package/dist/runtime/components/Toaster.vue.d.ts +63 -0
  165. package/dist/runtime/components/Tooltip.vue +38 -65
  166. package/dist/runtime/components/Tooltip.vue.d.ts +65 -0
  167. package/dist/runtime/components/Tree.vue +59 -166
  168. package/dist/runtime/components/Tree.vue.d.ts +128 -0
  169. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  170. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  171. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  172. package/dist/runtime/composables/useFormField.d.ts +2 -2
  173. package/dist/runtime/composables/useOverlay.d.ts +14 -7
  174. package/dist/runtime/composables/useOverlay.js +14 -6
  175. package/dist/runtime/composables/usePortal.d.ts +6 -0
  176. package/dist/runtime/composables/usePortal.js +17 -0
  177. package/dist/runtime/index.css +1 -1
  178. package/dist/runtime/inertia/components/Link.vue +146 -0
  179. package/dist/runtime/inertia/components/Link.vue.d.ts +92 -0
  180. package/dist/runtime/inertia/stubs.d.ts +43 -0
  181. package/dist/runtime/inertia/stubs.js +82 -0
  182. package/dist/runtime/locale/bg.d.ts +3 -0
  183. package/dist/runtime/locale/bg.js +54 -0
  184. package/dist/runtime/locale/index.d.ts +5 -1
  185. package/dist/runtime/locale/index.js +5 -1
  186. package/dist/runtime/locale/kk.d.ts +3 -0
  187. package/dist/runtime/locale/kk.js +54 -0
  188. package/dist/runtime/locale/tj.d.ts +3 -0
  189. package/dist/runtime/locale/tj.js +54 -0
  190. package/dist/runtime/locale/ug_cn.d.ts +3 -0
  191. package/dist/runtime/locale/ug_cn.js +55 -0
  192. package/dist/runtime/types/form.d.ts +4 -1
  193. package/dist/runtime/types/index.d.ts +1 -0
  194. package/dist/runtime/types/index.js +1 -0
  195. package/dist/runtime/types/utils.d.ts +47 -7
  196. package/dist/runtime/utils/link.d.ts +3 -3
  197. package/dist/runtime/utils/link.js +1 -0
  198. package/dist/runtime/utils/tv.js +2 -2
  199. package/dist/runtime/vue/components/Icon.vue +7 -8
  200. package/dist/runtime/vue/components/Icon.vue.d.ts +14 -0
  201. package/dist/runtime/vue/components/Link.vue +118 -202
  202. package/dist/runtime/vue/components/Link.vue.d.ts +124 -0
  203. package/dist/runtime/vue/stubs.d.ts +2 -2
  204. package/dist/shared/{ui.BkNUP964.mjs → ui.D7lOOabO.mjs} +621 -362
  205. package/dist/types.d.mts +3 -5
  206. package/dist/unplugin.d.mts +4 -0
  207. package/dist/unplugin.mjs +25 -4
  208. package/dist/vite.mjs +1 -1
  209. package/package.json +94 -53
  210. package/dist/module.cjs +0 -62
  211. package/dist/module.d.cts +0 -45
  212. package/dist/module.d.ts +0 -45
  213. package/dist/shared/ui.BL-XB3u1.cjs +0 -3555
  214. package/dist/types.d.ts +0 -7
  215. package/dist/unplugin.cjs +0 -232
  216. package/dist/unplugin.d.cts +0 -62
  217. package/dist/unplugin.d.ts +0 -62
  218. package/dist/vite.cjs +0 -23
  219. package/dist/vite.d.cts +0 -15
  220. package/dist/vite.d.ts +0 -15
@@ -1,9 +1,28 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/carousel"
2
+
1
3
  const orientation = [
2
4
  "vertical",
3
5
  "horizontal"
4
6
  ] as const
5
7
 
6
- export default {
8
+ const result = typeof template === 'function' ? (template as Function)({
9
+ "prefix": "U",
10
+ "fonts": true,
11
+ "colorMode": true,
12
+ "theme": {
13
+ "colors": [
14
+ "primary",
15
+ "secondary",
16
+ "success",
17
+ "info",
18
+ "warning",
19
+ "error"
20
+ ],
21
+ "transitions": true
22
+ }
23
+ }) : template
24
+
25
+ const theme = {
7
26
  "slots": {
8
27
  "root": "relative focus:outline-none",
9
28
  "viewport": "overflow-hidden",
@@ -15,7 +34,7 @@ export default {
15
34
  "next": "absolute rounded-full",
16
35
  "dots": "absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",
17
36
  "dot": [
18
- "cursor-pointer size-3 bg-(--ui-border-accented) rounded-full",
37
+ "cursor-pointer size-3 bg-accented rounded-full",
19
38
  "transition"
20
39
  ]
21
40
  },
@@ -24,20 +43,22 @@ export default {
24
43
  "vertical": {
25
44
  "container": "flex-col -mt-4",
26
45
  "item": "pt-4",
27
- "prev": "-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",
28
- "next": "-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"
46
+ "prev": "top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90",
47
+ "next": "bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90"
29
48
  },
30
49
  "horizontal": {
31
50
  "container": "flex-row -ms-4",
32
51
  "item": "ps-4",
33
- "prev": "-start-12 top-1/2 -translate-y-1/2",
34
- "next": "-end-12 top-1/2 -translate-y-1/2"
52
+ "prev": "start-4 sm:-start-12 top-1/2 -translate-y-1/2",
53
+ "next": "end-4 sm:-end-12 top-1/2 -translate-y-1/2"
35
54
  }
36
55
  },
37
56
  "active": {
38
57
  "true": {
39
- "dot": "bg-(--ui-border-inverted)"
58
+ "dot": "bg-inverted"
40
59
  }
41
60
  }
42
61
  }
43
- }
62
+ }
63
+
64
+ export default result as typeof theme
@@ -0,0 +1,82 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/checkbox-group"
2
+
3
+ const orientation = [
4
+ "horizontal",
5
+ "vertical"
6
+ ] as const
7
+
8
+ const size = [
9
+ "xs",
10
+ "sm",
11
+ "md",
12
+ "lg",
13
+ "xl"
14
+ ] as const
15
+
16
+ const result = typeof template === 'function' ? (template as Function)({
17
+ "prefix": "U",
18
+ "fonts": true,
19
+ "colorMode": true,
20
+ "theme": {
21
+ "colors": [
22
+ "primary",
23
+ "secondary",
24
+ "success",
25
+ "info",
26
+ "warning",
27
+ "error"
28
+ ],
29
+ "transitions": true
30
+ }
31
+ }) : template
32
+
33
+ const theme = {
34
+ "slots": {
35
+ "root": "relative",
36
+ "fieldset": "flex gap-x-2",
37
+ "legend": "mb-1 block font-medium text-default",
38
+ "item": ""
39
+ },
40
+ "variants": {
41
+ "orientation": {
42
+ "horizontal": {
43
+ "fieldset": "flex-row"
44
+ },
45
+ "vertical": {
46
+ "fieldset": "flex-col"
47
+ }
48
+ },
49
+ "size": {
50
+ "xs": {
51
+ "fieldset": "gap-y-0.5",
52
+ "legend": "text-xs"
53
+ },
54
+ "sm": {
55
+ "fieldset": "gap-y-0.5",
56
+ "legend": "text-xs"
57
+ },
58
+ "md": {
59
+ "fieldset": "gap-y-1",
60
+ "legend": "text-sm"
61
+ },
62
+ "lg": {
63
+ "fieldset": "gap-y-1",
64
+ "legend": "text-sm"
65
+ },
66
+ "xl": {
67
+ "fieldset": "gap-y-1.5",
68
+ "legend": "text-base"
69
+ }
70
+ },
71
+ "required": {
72
+ "true": {
73
+ "legend": "after:content-['*'] after:ms-0.5 after:text-error"
74
+ }
75
+ }
76
+ },
77
+ "defaultVariants": {
78
+ "size": "md" as typeof size[number]
79
+ }
80
+ }
81
+
82
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/checkbox"
2
+
1
3
  const color = [
2
4
  "primary",
3
5
  "secondary",
@@ -8,6 +10,17 @@ const color = [
8
10
  "neutral"
9
11
  ] as const
10
12
 
13
+ const variant = [
14
+ "list",
15
+ "card"
16
+ ] as const
17
+
18
+ const indicator = [
19
+ "start",
20
+ "end",
21
+ "hidden"
22
+ ] as const
23
+
11
24
  const size = [
12
25
  "xs",
13
26
  "sm",
@@ -16,25 +29,86 @@ const size = [
16
29
  "xl"
17
30
  ] as const
18
31
 
19
- export default {
32
+ const result = typeof template === 'function' ? (template as Function)({
33
+ "prefix": "U",
34
+ "fonts": true,
35
+ "colorMode": true,
36
+ "theme": {
37
+ "colors": [
38
+ "primary",
39
+ "secondary",
40
+ "success",
41
+ "info",
42
+ "warning",
43
+ "error"
44
+ ],
45
+ "transitions": true
46
+ }
47
+ }) : template
48
+
49
+ const theme = {
20
50
  "slots": {
21
51
  "root": "relative flex items-start",
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",
23
52
  "container": "flex items-center",
24
- "wrapper": "ms-2",
53
+ "base": "rounded-sm ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
54
+ "indicator": "flex items-center justify-center size-full text-inverted" as typeof indicator[number],
25
55
  "icon": "shrink-0 size-full",
26
- "label": "block font-medium text-(--ui-text)",
27
- "description": "text-(--ui-text-muted)"
56
+ "wrapper": "w-full",
57
+ "label": "block font-medium text-default",
58
+ "description": "text-muted"
28
59
  },
29
60
  "variants": {
30
61
  "color": {
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)"
62
+ "primary": {
63
+ "base": "focus-visible:outline-primary",
64
+ "indicator": "bg-primary" as typeof indicator[number]
65
+ },
66
+ "secondary": {
67
+ "base": "focus-visible:outline-secondary",
68
+ "indicator": "bg-secondary" as typeof indicator[number]
69
+ },
70
+ "success": {
71
+ "base": "focus-visible:outline-success",
72
+ "indicator": "bg-success" as typeof indicator[number]
73
+ },
74
+ "info": {
75
+ "base": "focus-visible:outline-info",
76
+ "indicator": "bg-info" as typeof indicator[number]
77
+ },
78
+ "warning": {
79
+ "base": "focus-visible:outline-warning",
80
+ "indicator": "bg-warning" as typeof indicator[number]
81
+ },
82
+ "error": {
83
+ "base": "focus-visible:outline-error",
84
+ "indicator": "bg-error" as typeof indicator[number]
85
+ },
86
+ "neutral": {
87
+ "base": "focus-visible:outline-inverted",
88
+ "indicator": "bg-inverted" as typeof indicator[number]
89
+ }
90
+ },
91
+ "variant": {
92
+ "list": {
93
+ "root": ""
94
+ },
95
+ "card": {
96
+ "root": "border border-muted rounded-lg"
97
+ }
98
+ },
99
+ "indicator": {
100
+ "start": {
101
+ "root": "flex-row",
102
+ "wrapper": "ms-2"
103
+ },
104
+ "end": {
105
+ "root": "flex-row-reverse",
106
+ "wrapper": "me-2"
107
+ },
108
+ "hidden": {
109
+ "base": "sr-only",
110
+ "wrapper": "text-center"
111
+ }
38
112
  },
39
113
  "size": {
40
114
  "xs": {
@@ -65,7 +139,7 @@ export default {
65
139
  },
66
140
  "required": {
67
141
  "true": {
68
- "label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
142
+ "label": "after:content-['*'] after:ms-0.5 after:text-error"
69
143
  }
70
144
  },
71
145
  "disabled": {
@@ -80,44 +154,104 @@ export default {
80
154
  }
81
155
  },
82
156
  "compoundVariants": [
157
+ {
158
+ "size": "xs" as typeof size[number],
159
+ "variant": "card" as typeof variant[number],
160
+ "class": {
161
+ "root": "p-2.5"
162
+ }
163
+ },
164
+ {
165
+ "size": "sm" as typeof size[number],
166
+ "variant": "card" as typeof variant[number],
167
+ "class": {
168
+ "root": "p-3"
169
+ }
170
+ },
171
+ {
172
+ "size": "md" as typeof size[number],
173
+ "variant": "card" as typeof variant[number],
174
+ "class": {
175
+ "root": "p-3.5"
176
+ }
177
+ },
178
+ {
179
+ "size": "lg" as typeof size[number],
180
+ "variant": "card" as typeof variant[number],
181
+ "class": {
182
+ "root": "p-4"
183
+ }
184
+ },
185
+ {
186
+ "size": "xl" as typeof size[number],
187
+ "variant": "card" as typeof variant[number],
188
+ "class": {
189
+ "root": "p-4.5"
190
+ }
191
+ },
83
192
  {
84
193
  "color": "primary" as typeof color[number],
85
- "checked": true,
86
- "class": "ring-2 ring-(--ui-primary) bg-(--ui-primary)"
194
+ "variant": "card" as typeof variant[number],
195
+ "class": {
196
+ "root": "has-data-[state=checked]:border-primary"
197
+ }
87
198
  },
88
199
  {
89
200
  "color": "secondary" as typeof color[number],
90
- "checked": true,
91
- "class": "ring-2 ring-(--ui-secondary) bg-(--ui-secondary)"
201
+ "variant": "card" as typeof variant[number],
202
+ "class": {
203
+ "root": "has-data-[state=checked]:border-secondary"
204
+ }
92
205
  },
93
206
  {
94
207
  "color": "success" as typeof color[number],
95
- "checked": true,
96
- "class": "ring-2 ring-(--ui-success) bg-(--ui-success)"
208
+ "variant": "card" as typeof variant[number],
209
+ "class": {
210
+ "root": "has-data-[state=checked]:border-success"
211
+ }
97
212
  },
98
213
  {
99
214
  "color": "info" as typeof color[number],
100
- "checked": true,
101
- "class": "ring-2 ring-(--ui-info) bg-(--ui-info)"
215
+ "variant": "card" as typeof variant[number],
216
+ "class": {
217
+ "root": "has-data-[state=checked]:border-info"
218
+ }
102
219
  },
103
220
  {
104
221
  "color": "warning" as typeof color[number],
105
- "checked": true,
106
- "class": "ring-2 ring-(--ui-warning) bg-(--ui-warning)"
222
+ "variant": "card" as typeof variant[number],
223
+ "class": {
224
+ "root": "has-data-[state=checked]:border-warning"
225
+ }
107
226
  },
108
227
  {
109
228
  "color": "error" as typeof color[number],
110
- "checked": true,
111
- "class": "ring-2 ring-(--ui-error) bg-(--ui-error)"
229
+ "variant": "card" as typeof variant[number],
230
+ "class": {
231
+ "root": "has-data-[state=checked]:border-error"
232
+ }
112
233
  },
113
234
  {
114
235
  "color": "neutral" as typeof color[number],
115
- "checked": true,
116
- "class": "ring-2 ring-(--ui-border-inverted) bg-(--ui-bg-inverted)"
236
+ "variant": "card" as typeof variant[number],
237
+ "class": {
238
+ "root": "has-data-[state=checked]:border-inverted"
239
+ }
240
+ },
241
+ {
242
+ "variant": "card" as typeof variant[number],
243
+ "disabled": true,
244
+ "class": {
245
+ "root": "cursor-not-allowed opacity-75"
246
+ }
117
247
  }
118
248
  ],
119
249
  "defaultVariants": {
120
250
  "size": "md" as typeof size[number],
121
- "color": "primary" as typeof color[number]
251
+ "color": "primary" as typeof color[number],
252
+ "variant": "list" as typeof variant[number],
253
+ "indicator": "start" as typeof indicator[number]
122
254
  }
123
- }
255
+ }
256
+
257
+ export default result as typeof theme
package/.nuxt/ui/chip.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/chip"
2
+
1
3
  const color = [
2
4
  "primary",
3
5
  "secondary",
@@ -27,20 +29,37 @@ const position = [
27
29
  "bottom-left"
28
30
  ] as const
29
31
 
30
- export default {
32
+ const result = typeof template === 'function' ? (template as Function)({
33
+ "prefix": "U",
34
+ "fonts": true,
35
+ "colorMode": true,
36
+ "theme": {
37
+ "colors": [
38
+ "primary",
39
+ "secondary",
40
+ "success",
41
+ "info",
42
+ "warning",
43
+ "error"
44
+ ],
45
+ "transitions": true
46
+ }
47
+ }) : template
48
+
49
+ const theme = {
31
50
  "slots": {
32
51
  "root": "relative inline-flex items-center justify-center shrink-0",
33
- "base": "rounded-full ring ring-(--ui-bg) flex items-center justify-center text-(--ui-bg) font-medium whitespace-nowrap"
52
+ "base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
34
53
  },
35
54
  "variants": {
36
55
  "color": {
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)"
56
+ "primary": "bg-primary",
57
+ "secondary": "bg-secondary",
58
+ "success": "bg-success",
59
+ "info": "bg-info",
60
+ "warning": "bg-warning",
61
+ "error": "bg-error",
62
+ "neutral": "bg-inverted"
44
63
  },
45
64
  "size": {
46
65
  "3xs": "h-[4px] min-w-[4px] text-[4px]",
@@ -93,4 +112,6 @@ export default {
93
112
  "color": "primary" as typeof color[number],
94
113
  "position": "top-right" as typeof position[number]
95
114
  }
96
- }
115
+ }
116
+
117
+ export default result as typeof theme
@@ -1,6 +1,27 @@
1
- export default {
1
+ import template from "/home/runner/work/ui/ui/src/theme/collapsible"
2
+
3
+ const result = typeof template === 'function' ? (template as Function)({
4
+ "prefix": "U",
5
+ "fonts": true,
6
+ "colorMode": true,
7
+ "theme": {
8
+ "colors": [
9
+ "primary",
10
+ "secondary",
11
+ "success",
12
+ "info",
13
+ "warning",
14
+ "error"
15
+ ],
16
+ "transitions": true
17
+ }
18
+ }) : template
19
+
20
+ const theme = {
2
21
  "slots": {
3
22
  "root": "",
4
23
  "content": "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
5
24
  }
6
- }
25
+ }
26
+
27
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/color-picker"
2
+
1
3
  const size = [
2
4
  "xs",
3
5
  "sm",
@@ -6,14 +8,31 @@ const size = [
6
8
  "xl"
7
9
  ] as const
8
10
 
9
- export default {
11
+ const result = typeof template === 'function' ? (template as Function)({
12
+ "prefix": "U",
13
+ "fonts": true,
14
+ "colorMode": true,
15
+ "theme": {
16
+ "colors": [
17
+ "primary",
18
+ "secondary",
19
+ "success",
20
+ "info",
21
+ "warning",
22
+ "error"
23
+ ],
24
+ "transitions": true
25
+ }
26
+ }) : template
27
+
28
+ const theme = {
10
29
  "slots": {
11
30
  "root": "data-[disabled]:opacity-75",
12
31
  "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)]",
32
+ "selector": "rounded-md",
33
+ "selectorBackground": "w-full h-full relative rounded-md",
15
34
  "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)]",
35
+ "track": "w-[8px] relative rounded-md",
17
36
  "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
37
  },
19
38
  "variants": {
@@ -44,4 +63,6 @@ export default {
44
63
  "defaultVariants": {
45
64
  "size": "md" as typeof size[number]
46
65
  }
47
- }
66
+ }
67
+
68
+ export default result as typeof theme
@@ -1,14 +1,33 @@
1
- export default {
1
+ import template from "/home/runner/work/ui/ui/src/theme/command-palette"
2
+
3
+ const result = typeof template === 'function' ? (template as Function)({
4
+ "prefix": "U",
5
+ "fonts": true,
6
+ "colorMode": true,
7
+ "theme": {
8
+ "colors": [
9
+ "primary",
10
+ "secondary",
11
+ "success",
12
+ "info",
13
+ "warning",
14
+ "error"
15
+ ],
16
+ "transitions": true
17
+ }
18
+ }) : template
19
+
20
+ const theme = {
2
21
  "slots": {
3
- "root": "flex flex-col min-h-0 min-w-0 divide-y divide-(--ui-border)",
22
+ "root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
4
23
  "input": "[&>input]:h-12",
5
24
  "close": "",
6
25
  "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",
26
+ "viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
8
27
  "group": "p-1 isolate",
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",
28
+ "empty": "py-6 text-center text-sm text-muted",
29
+ "label": "p-1.5 text-xs font-semibold text-highlighted",
30
+ "item": "group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",
12
31
  "itemLeadingIcon": "shrink-0 size-5",
13
32
  "itemLeadingAvatar": "shrink-0",
14
33
  "itemLeadingAvatarSize": "2xs",
@@ -16,27 +35,27 @@ export default {
16
35
  "itemLeadingChipSize": "md",
17
36
  "itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
18
37
  "itemTrailingIcon": "shrink-0 size-5",
19
- "itemTrailingHighlightedIcon": "shrink-0 size-5 text-(--ui-text-dimmed) hidden group-data-highlighted:inline-flex",
38
+ "itemTrailingHighlightedIcon": "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
20
39
  "itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
21
40
  "itemTrailingKbdsSize": "md",
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)"
41
+ "itemLabel": "truncate space-x-1 rtl:space-x-reverse text-dimmed",
42
+ "itemLabelBase": "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
43
+ "itemLabelPrefix": "text-default",
44
+ "itemLabelSuffix": "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
26
45
  },
27
46
  "variants": {
28
47
  "active": {
29
48
  "true": {
30
- "item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
31
- "itemLeadingIcon": "text-(--ui-text)"
49
+ "item": "text-highlighted before:bg-elevated",
50
+ "itemLeadingIcon": "text-default"
32
51
  },
33
52
  "false": {
34
53
  "item": [
35
- "text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50",
54
+ "text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
36
55
  "transition-colors before:transition-colors"
37
56
  ],
38
57
  "itemLeadingIcon": [
39
- "text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text)",
58
+ "text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
40
59
  "transition-colors"
41
60
  ]
42
61
  }
@@ -47,4 +66,6 @@ export default {
47
66
  }
48
67
  }
49
68
  }
50
- }
69
+ }
70
+
71
+ export default result as typeof theme
@@ -1,3 +1,24 @@
1
- export default {
1
+ import template from "/home/runner/work/ui/ui/src/theme/container"
2
+
3
+ const result = typeof template === 'function' ? (template as Function)({
4
+ "prefix": "U",
5
+ "fonts": true,
6
+ "colorMode": true,
7
+ "theme": {
8
+ "colors": [
9
+ "primary",
10
+ "secondary",
11
+ "success",
12
+ "info",
13
+ "warning",
14
+ "error"
15
+ ],
16
+ "transitions": true
17
+ }
18
+ }) : template
19
+
20
+ const theme = {
2
21
  "base": "w-full max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8"
3
- }
22
+ }
23
+
24
+ export default result as typeof theme