@nuxt/ui 3.0.1 → 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 (228) 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 +24 -3
  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 +103 -84
  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 +44 -23
  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.d.mts +2 -1
  56. package/dist/module.json +5 -5
  57. package/dist/module.mjs +11 -7
  58. package/dist/runtime/components/Accordion.vue +36 -92
  59. package/dist/runtime/components/Accordion.vue.d.ts +91 -0
  60. package/dist/runtime/components/Alert.vue +37 -100
  61. package/dist/runtime/components/Alert.vue.d.ts +96 -0
  62. package/dist/runtime/components/App.vue +28 -34
  63. package/dist/runtime/components/App.vue.d.ts +24 -0
  64. package/dist/runtime/components/Avatar.vue +47 -78
  65. package/dist/runtime/components/Avatar.vue.d.ts +60 -0
  66. package/dist/runtime/components/AvatarGroup.vue +40 -77
  67. package/dist/runtime/components/AvatarGroup.vue.d.ts +40 -0
  68. package/dist/runtime/components/Badge.vue +33 -62
  69. package/dist/runtime/components/Badge.vue.d.ts +62 -0
  70. package/dist/runtime/components/Breadcrumb.vue +36 -88
  71. package/dist/runtime/components/Breadcrumb.vue.d.ts +82 -0
  72. package/dist/runtime/components/Button.vue +96 -105
  73. package/dist/runtime/components/Button.vue.d.ts +73 -0
  74. package/dist/runtime/components/ButtonGroup.vue +20 -46
  75. package/dist/runtime/components/ButtonGroup.vue.d.ts +55 -0
  76. package/dist/runtime/components/Calendar.vue +73 -127
  77. package/dist/runtime/components/Calendar.vue.d.ts +107 -0
  78. package/dist/runtime/components/Card.vue +18 -40
  79. package/dist/runtime/components/Card.vue.d.ts +38 -0
  80. package/dist/runtime/components/Carousel.vue +112 -230
  81. package/dist/runtime/components/Carousel.vue.d.ts +120 -0
  82. package/dist/runtime/components/Checkbox.vue +52 -93
  83. package/dist/runtime/components/Checkbox.vue.d.ts +76 -0
  84. package/dist/runtime/components/CheckboxGroup.vue +121 -0
  85. package/dist/runtime/components/CheckboxGroup.vue.d.ts +75 -0
  86. package/dist/runtime/components/Chip.vue +26 -69
  87. package/dist/runtime/components/Chip.vue.d.ts +71 -0
  88. package/dist/runtime/components/Collapsible.vue +22 -41
  89. package/dist/runtime/components/Collapsible.vue.d.ts +50 -0
  90. package/dist/runtime/components/ColorPicker.vue +111 -197
  91. package/dist/runtime/components/ColorPicker.vue.d.ts +63 -0
  92. package/dist/runtime/components/CommandPalette.vue +94 -234
  93. package/dist/runtime/components/CommandPalette.vue.d.ts +173 -0
  94. package/dist/runtime/components/Container.vue +15 -28
  95. package/dist/runtime/components/Container.vue.d.ts +27 -0
  96. package/dist/runtime/components/ContextMenu.vue +32 -119
  97. package/dist/runtime/components/ContextMenu.vue.d.ts +127 -0
  98. package/dist/runtime/components/ContextMenuContent.vue +71 -72
  99. package/dist/runtime/components/ContextMenuContent.vue.d.ts +105 -0
  100. package/dist/runtime/components/Drawer.vue +49 -87
  101. package/dist/runtime/components/Drawer.vue.d.ts +88 -0
  102. package/dist/runtime/components/DropdownMenu.vue +37 -129
  103. package/dist/runtime/components/DropdownMenu.vue.d.ts +141 -0
  104. package/dist/runtime/components/DropdownMenuContent.vue +76 -79
  105. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +55 -0
  106. package/dist/runtime/components/Form.vue +135 -219
  107. package/dist/runtime/components/Form.vue.d.ts +66 -0
  108. package/dist/runtime/components/FormField.vue +36 -77
  109. package/dist/runtime/components/FormField.vue.d.ts +70 -0
  110. package/dist/runtime/components/Icon.vue +12 -19
  111. package/dist/runtime/components/Icon.vue.d.ts +17 -0
  112. package/dist/runtime/components/Input.vue +82 -140
  113. package/dist/runtime/components/Input.vue.d.ts +91 -0
  114. package/dist/runtime/components/InputMenu.vue +193 -302
  115. package/dist/runtime/components/InputMenu.vue.d.ts +312 -0
  116. package/dist/runtime/components/InputNumber.vue +71 -133
  117. package/dist/runtime/components/InputNumber.vue.d.ts +193 -0
  118. package/dist/runtime/components/Kbd.vue +20 -46
  119. package/dist/runtime/components/Kbd.vue.d.ts +55 -0
  120. package/dist/runtime/components/Link.vue +98 -173
  121. package/dist/runtime/components/Link.vue.d.ts +124 -0
  122. package/dist/runtime/components/LinkBase.vue +33 -41
  123. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  124. package/dist/runtime/components/Modal.vue +53 -116
  125. package/dist/runtime/components/Modal.vue.d.ts +109 -0
  126. package/dist/runtime/components/NavigationMenu.vue +78 -186
  127. package/dist/runtime/components/NavigationMenu.vue.d.ts +159 -0
  128. package/dist/runtime/components/OverlayProvider.vue +14 -18
  129. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  130. package/dist/runtime/components/Pagination.vue +46 -140
  131. package/dist/runtime/components/Pagination.vue.d.ts +143 -0
  132. package/dist/runtime/components/PinInput.vue +61 -78
  133. package/dist/runtime/components/PinInput.vue.d.ts +68 -0
  134. package/dist/runtime/components/Popover.vue +47 -84
  135. package/dist/runtime/components/Popover.vue.d.ts +80 -0
  136. package/dist/runtime/components/Progress.vue +70 -131
  137. package/dist/runtime/components/Progress.vue.d.ts +97 -0
  138. package/dist/runtime/components/RadioGroup.vue +75 -126
  139. package/dist/runtime/components/RadioGroup.vue.d.ts +88 -0
  140. package/dist/runtime/components/Select.vue +115 -202
  141. package/dist/runtime/components/Select.vue.d.ts +139 -0
  142. package/dist/runtime/components/SelectMenu.vue +167 -281
  143. package/dist/runtime/components/SelectMenu.vue.d.ts +184 -0
  144. package/dist/runtime/components/Separator.vue +29 -71
  145. package/dist/runtime/components/Separator.vue.d.ts +75 -0
  146. package/dist/runtime/components/Skeleton.vue +21 -23
  147. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  148. package/dist/runtime/components/Slideover.vue +53 -120
  149. package/dist/runtime/components/Slideover.vue.d.ts +111 -0
  150. package/dist/runtime/components/Slider.vue +46 -84
  151. package/dist/runtime/components/Slider.vue.d.ts +71 -0
  152. package/dist/runtime/components/Stepper.vue +44 -113
  153. package/dist/runtime/components/Stepper.vue.d.ts +89 -0
  154. package/dist/runtime/components/Switch.vue +45 -93
  155. package/dist/runtime/components/Switch.vue.d.ts +73 -0
  156. package/dist/runtime/components/Table.vue +165 -264
  157. package/dist/runtime/components/Table.vue.d.ts +183 -0
  158. package/dist/runtime/components/Tabs.vue +40 -105
  159. package/dist/runtime/components/Tabs.vue.d.ts +104 -0
  160. package/dist/runtime/components/Textarea.vue +113 -158
  161. package/dist/runtime/components/Textarea.vue.d.ts +95 -0
  162. package/dist/runtime/components/Toast.vue +49 -110
  163. package/dist/runtime/components/Toast.vue.d.ts +95 -0
  164. package/dist/runtime/components/Toaster.vue +70 -107
  165. package/dist/runtime/components/Toaster.vue.d.ts +63 -0
  166. package/dist/runtime/components/Tooltip.vue +38 -65
  167. package/dist/runtime/components/Tooltip.vue.d.ts +65 -0
  168. package/dist/runtime/components/Tree.vue +57 -150
  169. package/dist/runtime/components/Tree.vue.d.ts +128 -0
  170. package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
  171. package/dist/runtime/composables/defineShortcuts.js +0 -1
  172. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  173. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  174. package/dist/runtime/composables/useFormField.d.ts +2 -2
  175. package/dist/runtime/composables/useFormField.js +1 -1
  176. package/dist/runtime/composables/useOverlay.d.ts +16 -8
  177. package/dist/runtime/composables/useOverlay.js +14 -6
  178. package/dist/runtime/composables/usePortal.d.ts +6 -0
  179. package/dist/runtime/composables/usePortal.js +17 -0
  180. package/dist/runtime/index.css +1 -1
  181. package/dist/runtime/inertia/components/Link.vue +146 -0
  182. package/dist/runtime/inertia/components/Link.vue.d.ts +92 -0
  183. package/dist/runtime/inertia/stubs.d.ts +43 -0
  184. package/dist/runtime/inertia/stubs.js +82 -0
  185. package/dist/runtime/locale/bg.d.ts +3 -0
  186. package/dist/runtime/locale/bg.js +54 -0
  187. package/dist/runtime/locale/hy.d.ts +3 -0
  188. package/dist/runtime/locale/hy.js +54 -0
  189. package/dist/runtime/locale/index.d.ts +6 -1
  190. package/dist/runtime/locale/index.js +6 -1
  191. package/dist/runtime/locale/kk.d.ts +3 -0
  192. package/dist/runtime/locale/kk.js +54 -0
  193. package/dist/runtime/locale/tj.d.ts +3 -0
  194. package/dist/runtime/locale/tj.js +54 -0
  195. package/dist/runtime/locale/ug_cn.d.ts +3 -0
  196. package/dist/runtime/locale/ug_cn.js +55 -0
  197. package/dist/runtime/types/form.d.ts +5 -1
  198. package/dist/runtime/types/index.d.ts +2 -0
  199. package/dist/runtime/types/index.js +2 -0
  200. package/dist/runtime/types/utils.d.ts +70 -10
  201. package/dist/runtime/utils/index.d.ts +1 -0
  202. package/dist/runtime/utils/index.js +3 -0
  203. package/dist/runtime/utils/link.d.ts +4 -27
  204. package/dist/runtime/utils/link.js +32 -1
  205. package/dist/runtime/utils/tv.js +2 -2
  206. package/dist/runtime/vue/components/Icon.vue +7 -8
  207. package/dist/runtime/vue/components/Icon.vue.d.ts +14 -0
  208. package/dist/runtime/vue/components/Link.vue +118 -199
  209. package/dist/runtime/vue/components/Link.vue.d.ts +124 -0
  210. package/dist/runtime/vue/stubs.d.ts +5 -0
  211. package/dist/runtime/vue/stubs.js +11 -2
  212. package/dist/shared/{ui.BCaWD5Ek.mjs → ui.D7lOOabO.mjs} +623 -364
  213. package/dist/types.d.mts +5 -1
  214. package/dist/unplugin.d.mts +6 -1
  215. package/dist/unplugin.mjs +25 -4
  216. package/dist/vite.mjs +1 -1
  217. package/package.json +122 -64
  218. package/dist/module.cjs +0 -62
  219. package/dist/module.d.cts +0 -44
  220. package/dist/module.d.ts +0 -44
  221. package/dist/shared/ui.C6uTSFTI.cjs +0 -3555
  222. package/dist/types.d.ts +0 -1
  223. package/dist/unplugin.cjs +0 -232
  224. package/dist/unplugin.d.cts +0 -61
  225. package/dist/unplugin.d.ts +0 -61
  226. package/dist/vite.cjs +0 -23
  227. package/dist/vite.d.cts +0 -15
  228. package/dist/vite.d.ts +0 -15
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/textarea"
2
+
1
3
  const buttonGroup = [
2
4
  "horizontal",
3
5
  "vertical"
@@ -33,19 +35,36 @@ const type = [
33
35
  "file"
34
36
  ] as const
35
37
 
36
- export default {
38
+ const result = typeof template === 'function' ? (template as Function)({
39
+ "prefix": "U",
40
+ "fonts": true,
41
+ "colorMode": true,
42
+ "theme": {
43
+ "colors": [
44
+ "primary",
45
+ "secondary",
46
+ "success",
47
+ "info",
48
+ "warning",
49
+ "error"
50
+ ],
51
+ "transitions": true
52
+ }
53
+ }) : template
54
+
55
+ const theme = {
37
56
  "slots": {
38
57
  "root": "relative inline-flex items-center",
39
58
  "base": [
40
- "w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-(--ui-text-dimmed) focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
59
+ "w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
41
60
  "transition-colors"
42
61
  ],
43
- "leading": "absolute inset-y-0 start-0 flex items-center",
44
- "leadingIcon": "shrink-0 text-(--ui-text-dimmed)",
62
+ "leading": "absolute start-0 flex items-start",
63
+ "leadingIcon": "shrink-0 text-dimmed",
45
64
  "leadingAvatar": "shrink-0",
46
65
  "leadingAvatarSize": "",
47
- "trailing": "absolute inset-y-0 end-0 flex items-center",
48
- "trailingIcon": "shrink-0 text-(--ui-text-dimmed)"
66
+ "trailing": "absolute end-0 flex items-start",
67
+ "trailingIcon": "shrink-0 text-dimmed"
49
68
  },
50
69
  "variants": {
51
70
  "buttonGroup": {
@@ -61,51 +80,51 @@ export default {
61
80
  "size": {
62
81
  "xs": {
63
82
  "base": "px-2 py-1 text-xs gap-1",
64
- "leading": "ps-2",
65
- "trailing": "pe-2",
83
+ "leading": "ps-2 inset-y-1",
84
+ "trailing": "pe-2 inset-y-1",
66
85
  "leadingIcon": "size-4",
67
86
  "leadingAvatarSize": "3xs",
68
87
  "trailingIcon": "size-4"
69
88
  },
70
89
  "sm": {
71
90
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
72
- "leading": "ps-2.5",
73
- "trailing": "pe-2.5",
91
+ "leading": "ps-2.5 inset-y-1.5",
92
+ "trailing": "pe-2.5 inset-y-1.5",
74
93
  "leadingIcon": "size-4",
75
94
  "leadingAvatarSize": "3xs",
76
95
  "trailingIcon": "size-4"
77
96
  },
78
97
  "md": {
79
98
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
80
- "leading": "ps-2.5",
81
- "trailing": "pe-2.5",
99
+ "leading": "ps-2.5 inset-y-1.5",
100
+ "trailing": "pe-2.5 inset-y-1.5",
82
101
  "leadingIcon": "size-5",
83
102
  "leadingAvatarSize": "2xs",
84
103
  "trailingIcon": "size-5"
85
104
  },
86
105
  "lg": {
87
106
  "base": "px-3 py-2 text-sm gap-2",
88
- "leading": "ps-3",
89
- "trailing": "pe-3",
107
+ "leading": "ps-3 inset-y-2",
108
+ "trailing": "pe-3 inset-y-2",
90
109
  "leadingIcon": "size-5",
91
110
  "leadingAvatarSize": "2xs",
92
111
  "trailingIcon": "size-5"
93
112
  },
94
113
  "xl": {
95
114
  "base": "px-3 py-2 text-base gap-2",
96
- "leading": "ps-3",
97
- "trailing": "pe-3",
115
+ "leading": "ps-3 inset-y-2",
116
+ "trailing": "pe-3 inset-y-2",
98
117
  "leadingIcon": "size-6",
99
118
  "leadingAvatarSize": "xs",
100
119
  "trailingIcon": "size-6"
101
120
  }
102
121
  },
103
122
  "variant": {
104
- "outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
105
- "soft": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg-elevated)/50",
106
- "subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
107
- "ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
108
- "none": "text-(--ui-text-highlighted) bg-transparent"
123
+ "outline": "text-highlighted bg-default ring ring-inset ring-accented",
124
+ "soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
125
+ "subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
126
+ "ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
127
+ "none": "text-highlighted bg-transparent"
109
128
  },
110
129
  "color": {
111
130
  "primary": "",
@@ -129,7 +148,12 @@ export default {
129
148
  "true": ""
130
149
  },
131
150
  "type": {
132
- "file": "file:me-1.5 file:font-medium file:text-(--ui-text-muted) file:outline-none"
151
+ "file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
152
+ },
153
+ "autoresize": {
154
+ "true": {
155
+ "base": "resize-none"
156
+ }
133
157
  }
134
158
  },
135
159
  "compoundVariants": [
@@ -139,7 +163,7 @@ export default {
139
163
  "outline" as typeof variant[number],
140
164
  "subtle" as typeof variant[number]
141
165
  ],
142
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
166
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
143
167
  },
144
168
  {
145
169
  "color": "secondary" as typeof color[number],
@@ -147,7 +171,7 @@ export default {
147
171
  "outline" as typeof variant[number],
148
172
  "subtle" as typeof variant[number]
149
173
  ],
150
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
174
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
151
175
  },
152
176
  {
153
177
  "color": "success" as typeof color[number],
@@ -155,7 +179,7 @@ export default {
155
179
  "outline" as typeof variant[number],
156
180
  "subtle" as typeof variant[number]
157
181
  ],
158
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
182
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
159
183
  },
160
184
  {
161
185
  "color": "info" as typeof color[number],
@@ -163,7 +187,7 @@ export default {
163
187
  "outline" as typeof variant[number],
164
188
  "subtle" as typeof variant[number]
165
189
  ],
166
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)"
190
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
167
191
  },
168
192
  {
169
193
  "color": "warning" as typeof color[number],
@@ -171,7 +195,7 @@ export default {
171
195
  "outline" as typeof variant[number],
172
196
  "subtle" as typeof variant[number]
173
197
  ],
174
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
198
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
175
199
  },
176
200
  {
177
201
  "color": "error" as typeof color[number],
@@ -179,37 +203,37 @@ export default {
179
203
  "outline" as typeof variant[number],
180
204
  "subtle" as typeof variant[number]
181
205
  ],
182
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
206
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
183
207
  },
184
208
  {
185
209
  "color": "primary" as typeof color[number],
186
210
  "highlight": true,
187
- "class": "ring ring-inset ring-(--ui-primary)"
211
+ "class": "ring ring-inset ring-primary"
188
212
  },
189
213
  {
190
214
  "color": "secondary" as typeof color[number],
191
215
  "highlight": true,
192
- "class": "ring ring-inset ring-(--ui-secondary)"
216
+ "class": "ring ring-inset ring-secondary"
193
217
  },
194
218
  {
195
219
  "color": "success" as typeof color[number],
196
220
  "highlight": true,
197
- "class": "ring ring-inset ring-(--ui-success)"
221
+ "class": "ring ring-inset ring-success"
198
222
  },
199
223
  {
200
224
  "color": "info" as typeof color[number],
201
225
  "highlight": true,
202
- "class": "ring ring-inset ring-(--ui-info)"
226
+ "class": "ring ring-inset ring-info"
203
227
  },
204
228
  {
205
229
  "color": "warning" as typeof color[number],
206
230
  "highlight": true,
207
- "class": "ring ring-inset ring-(--ui-warning)"
231
+ "class": "ring ring-inset ring-warning"
208
232
  },
209
233
  {
210
234
  "color": "error" as typeof color[number],
211
235
  "highlight": true,
212
- "class": "ring ring-inset ring-(--ui-error)"
236
+ "class": "ring ring-inset ring-error"
213
237
  },
214
238
  {
215
239
  "color": "neutral" as typeof color[number],
@@ -217,12 +241,12 @@ export default {
217
241
  "outline" as typeof variant[number],
218
242
  "subtle" as typeof variant[number]
219
243
  ],
220
- "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
244
+ "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
221
245
  },
222
246
  {
223
247
  "color": "neutral" as typeof color[number],
224
248
  "highlight": true,
225
- "class": "ring ring-inset ring-(--ui-border-inverted)"
249
+ "class": "ring ring-inset ring-inverted"
226
250
  },
227
251
  {
228
252
  "leading": true,
@@ -295,4 +319,6 @@ export default {
295
319
  "color": "primary" as typeof color[number],
296
320
  "variant": "outline" as typeof variant[number]
297
321
  }
298
- }
322
+ }
323
+
324
+ export default result as typeof theme
package/.nuxt/ui/toast.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/toast"
2
+
1
3
  const color = [
2
4
  "primary",
3
5
  "secondary",
@@ -13,12 +15,29 @@ const orientation = [
13
15
  "vertical"
14
16
  ] as const
15
17
 
16
- export default {
18
+ const result = typeof template === 'function' ? (template as Function)({
19
+ "prefix": "U",
20
+ "fonts": true,
21
+ "colorMode": true,
22
+ "theme": {
23
+ "colors": [
24
+ "primary",
25
+ "secondary",
26
+ "success",
27
+ "info",
28
+ "warning",
29
+ "error"
30
+ ],
31
+ "transitions": true
32
+ }
33
+ }) : template
34
+
35
+ const theme = {
17
36
  "slots": {
18
- "root": "relative group overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*2)] ring ring-(--ui-border) p-4 flex gap-2.5 focus:outline-none",
37
+ "root": "relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5 focus:outline-none",
19
38
  "wrapper": "w-0 flex-1 flex flex-col",
20
- "title": "text-sm font-medium text-(--ui-text-highlighted)",
21
- "description": "text-sm text-(--ui-text-muted)",
39
+ "title": "text-sm font-medium text-highlighted",
40
+ "description": "text-sm text-muted",
22
41
  "icon": "shrink-0 size-5",
23
42
  "avatar": "shrink-0",
24
43
  "avatarSize": "2xl",
@@ -29,39 +48,39 @@ export default {
29
48
  "variants": {
30
49
  "color": {
31
50
  "primary": {
32
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)",
33
- "icon": "text-(--ui-primary)",
34
- "progress": "bg-(--ui-primary)"
51
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
52
+ "icon": "text-primary",
53
+ "progress": "bg-primary"
35
54
  },
36
55
  "secondary": {
37
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)",
38
- "icon": "text-(--ui-secondary)",
39
- "progress": "bg-(--ui-secondary)"
56
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
57
+ "icon": "text-secondary",
58
+ "progress": "bg-secondary"
40
59
  },
41
60
  "success": {
42
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)",
43
- "icon": "text-(--ui-success)",
44
- "progress": "bg-(--ui-success)"
61
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",
62
+ "icon": "text-success",
63
+ "progress": "bg-success"
45
64
  },
46
65
  "info": {
47
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)",
48
- "icon": "text-(--ui-info)",
49
- "progress": "bg-(--ui-info)"
66
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",
67
+ "icon": "text-info",
68
+ "progress": "bg-info"
50
69
  },
51
70
  "warning": {
52
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)",
53
- "icon": "text-(--ui-warning)",
54
- "progress": "bg-(--ui-warning)"
71
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",
72
+ "icon": "text-warning",
73
+ "progress": "bg-warning"
55
74
  },
56
75
  "error": {
57
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)",
58
- "icon": "text-(--ui-error)",
59
- "progress": "bg-(--ui-error)"
76
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",
77
+ "icon": "text-error",
78
+ "progress": "bg-error"
60
79
  },
61
80
  "neutral": {
62
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)",
63
- "icon": "text-(--ui-text-highlighted)",
64
- "progress": "bg-(--ui-bg-inverted)"
81
+ "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",
82
+ "icon": "text-highlighted",
83
+ "progress": "bg-inverted"
65
84
  }
66
85
  },
67
86
  "orientation": {
@@ -83,4 +102,6 @@ export default {
83
102
  "defaultVariants": {
84
103
  "color": "primary" as typeof color[number]
85
104
  }
86
- }
105
+ }
106
+
107
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/toaster"
2
+
1
3
  const position = [
2
4
  "top-left",
3
5
  "top-center",
@@ -14,7 +16,24 @@ const swipeDirection = [
14
16
  "left"
15
17
  ] as const
16
18
 
17
- export default {
19
+ const result = typeof template === 'function' ? (template as Function)({
20
+ "prefix": "U",
21
+ "fonts": true,
22
+ "colorMode": true,
23
+ "theme": {
24
+ "colors": [
25
+ "primary",
26
+ "secondary",
27
+ "success",
28
+ "info",
29
+ "warning",
30
+ "error"
31
+ ],
32
+ "transitions": true
33
+ }
34
+ }) : template
35
+
36
+ const theme = {
18
37
  "slots": {
19
38
  "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
20
39
  "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
@@ -88,4 +107,6 @@ export default {
88
107
  "defaultVariants": {
89
108
  "position": "bottom-right" as typeof position[number]
90
109
  }
91
- }
110
+ }
111
+
112
+ export default result as typeof theme
@@ -1,9 +1,30 @@
1
- export default {
1
+ import template from "/home/runner/work/ui/ui/src/theme/tooltip"
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
- "content": "flex items-center gap-1 bg-(--ui-bg) text-(--ui-text-highlighted) shadow-sm rounded-(--ui-radius) ring ring-(--ui-border) h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
4
- "arrow": "fill-(--ui-border)",
22
+ "content": "flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
23
+ "arrow": "fill-default",
5
24
  "text": "truncate",
6
25
  "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
7
26
  "kbdsSize": "sm"
8
27
  }
9
- }
28
+ }
29
+
30
+ export default result as typeof theme
package/.nuxt/ui/tree.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/ui/ui/src/theme/tree"
2
+
1
3
  const color = [
2
4
  "primary",
3
5
  "secondary",
@@ -16,13 +18,30 @@ const size = [
16
18
  "xl"
17
19
  ] as const
18
20
 
19
- export default {
21
+ const result = typeof template === 'function' ? (template as Function)({
22
+ "prefix": "U",
23
+ "fonts": true,
24
+ "colorMode": true,
25
+ "theme": {
26
+ "colors": [
27
+ "primary",
28
+ "secondary",
29
+ "success",
30
+ "info",
31
+ "warning",
32
+ "error"
33
+ ],
34
+ "transitions": true
35
+ }
36
+ }) : template
37
+
38
+ const theme = {
20
39
  "slots": {
21
40
  "root": "relative isolate",
22
41
  "item": "",
23
- "listWithChildren": "ms-4.5 border-s border-(--ui-border)",
42
+ "listWithChildren": "ms-4.5 border-s border-default",
24
43
  "itemWithChildren": "ps-1.5 -ms-px",
25
- "link": "relative group w-full flex items-center text-sm before:absolute before:inset-y-px before:inset-x-0 before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
44
+ "link": "relative group w-full flex items-center text-sm before:absolute before:inset-y-px before:inset-x-0 before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
26
45
  "linkLeadingIcon": "shrink-0",
27
46
  "linkLabel": "truncate",
28
47
  "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
@@ -31,25 +50,25 @@ export default {
31
50
  "variants": {
32
51
  "color": {
33
52
  "primary": {
34
- "link": "focus-visible:before:ring-(--ui-primary)"
53
+ "link": "focus-visible:before:ring-primary"
35
54
  },
36
55
  "secondary": {
37
- "link": "focus-visible:before:ring-(--ui-secondary)"
56
+ "link": "focus-visible:before:ring-secondary"
38
57
  },
39
58
  "success": {
40
- "link": "focus-visible:before:ring-(--ui-success)"
59
+ "link": "focus-visible:before:ring-success"
41
60
  },
42
61
  "info": {
43
- "link": "focus-visible:before:ring-(--ui-info)"
62
+ "link": "focus-visible:before:ring-info"
44
63
  },
45
64
  "warning": {
46
- "link": "focus-visible:before:ring-(--ui-warning)"
65
+ "link": "focus-visible:before:ring-warning"
47
66
  },
48
67
  "error": {
49
- "link": "focus-visible:before:ring-(--ui-error)"
68
+ "link": "focus-visible:before:ring-error"
50
69
  },
51
70
  "neutral": {
52
- "link": "focus-visible:before:ring-(--ui-border-inverted)"
71
+ "link": "focus-visible:before:ring-inverted"
53
72
  }
54
73
  },
55
74
  "size": {
@@ -81,11 +100,11 @@ export default {
81
100
  },
82
101
  "selected": {
83
102
  "true": {
84
- "link": "before:bg-(--ui-bg-elevated)"
103
+ "link": "before:bg-elevated"
85
104
  },
86
105
  "false": {
87
106
  "link": [
88
- "hover:not-disabled:text-(--ui-text-highlighted) hover:not-disabled:before:bg-(--ui-bg-elevated)/50",
107
+ "hover:not-disabled:text-highlighted hover:not-disabled:before:bg-elevated/50",
89
108
  "transition-colors before:transition-colors"
90
109
  ]
91
110
  }
@@ -101,49 +120,49 @@ export default {
101
120
  "color": "primary" as typeof color[number],
102
121
  "selected": true,
103
122
  "class": {
104
- "link": "text-(--ui-primary)"
123
+ "link": "text-primary"
105
124
  }
106
125
  },
107
126
  {
108
127
  "color": "secondary" as typeof color[number],
109
128
  "selected": true,
110
129
  "class": {
111
- "link": "text-(--ui-secondary)"
130
+ "link": "text-secondary"
112
131
  }
113
132
  },
114
133
  {
115
134
  "color": "success" as typeof color[number],
116
135
  "selected": true,
117
136
  "class": {
118
- "link": "text-(--ui-success)"
137
+ "link": "text-success"
119
138
  }
120
139
  },
121
140
  {
122
141
  "color": "info" as typeof color[number],
123
142
  "selected": true,
124
143
  "class": {
125
- "link": "text-(--ui-info)"
144
+ "link": "text-info"
126
145
  }
127
146
  },
128
147
  {
129
148
  "color": "warning" as typeof color[number],
130
149
  "selected": true,
131
150
  "class": {
132
- "link": "text-(--ui-warning)"
151
+ "link": "text-warning"
133
152
  }
134
153
  },
135
154
  {
136
155
  "color": "error" as typeof color[number],
137
156
  "selected": true,
138
157
  "class": {
139
- "link": "text-(--ui-error)"
158
+ "link": "text-error"
140
159
  }
141
160
  },
142
161
  {
143
162
  "color": "neutral" as typeof color[number],
144
163
  "selected": true,
145
164
  "class": {
146
- "link": "text-(--ui-text-highlighted)"
165
+ "link": "text-highlighted"
147
166
  }
148
167
  }
149
168
  ],
@@ -151,4 +170,6 @@ export default {
151
170
  "color": "primary" as typeof color[number],
152
171
  "size": "md" as typeof size[number]
153
172
  }
154
- }
173
+ }
174
+
175
+ export default result as typeof theme