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