@nuxt/ui 3.0.0-alpha.10 → 3.0.0-alpha.11

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 (172) hide show
  1. package/.nuxt/ui/alert.ts +75 -58
  2. package/.nuxt/ui/avatar-group.ts +13 -1
  3. package/.nuxt/ui/avatar.ts +13 -1
  4. package/.nuxt/ui/badge.ts +102 -65
  5. package/.nuxt/ui/button-group.ts +13 -0
  6. package/.nuxt/ui/button.ts +124 -92
  7. package/.nuxt/ui/calendar.ts +20 -2
  8. package/.nuxt/ui/carousel.ts +5 -3
  9. package/.nuxt/ui/checkbox.ts +27 -9
  10. package/.nuxt/ui/chip.ts +36 -7
  11. package/.nuxt/ui/color-picker.ts +9 -1
  12. package/.nuxt/ui/context-menu.ts +32 -14
  13. package/.nuxt/ui/drawer.ts +11 -4
  14. package/.nuxt/ui/dropdown-menu.ts +32 -14
  15. package/.nuxt/ui/form-field.ts +9 -1
  16. package/.nuxt/ui/input-menu.ts +110 -75
  17. package/.nuxt/ui/input-number.ts +82 -51
  18. package/.nuxt/ui/input.ts +88 -53
  19. package/.nuxt/ui/kbd.ts +14 -2
  20. package/.nuxt/ui/navigation-menu.ts +114 -68
  21. package/.nuxt/ui/pin-input.ts +57 -31
  22. package/.nuxt/ui/popover.ts +1 -1
  23. package/.nuxt/ui/progress.ts +93 -54
  24. package/.nuxt/ui/radio-group.ts +25 -2
  25. package/.nuxt/ui/select-menu.ts +89 -54
  26. package/.nuxt/ui/select.ts +89 -54
  27. package/.nuxt/ui/separator.ts +52 -23
  28. package/.nuxt/ui/slideover.ts +11 -4
  29. package/.nuxt/ui/slider.ts +45 -22
  30. package/.nuxt/ui/stepper.ts +45 -23
  31. package/.nuxt/ui/switch.ts +20 -2
  32. package/.nuxt/ui/table.ts +30 -13
  33. package/.nuxt/ui/tabs.ts +67 -39
  34. package/.nuxt/ui/textarea.ts +88 -53
  35. package/.nuxt/ui/toast.ts +11 -1
  36. package/.nuxt/ui/toaster.ts +27 -11
  37. package/.nuxt/ui/tooltip.ts +1 -1
  38. package/README.md +8 -1
  39. package/cli/commands/make/component.mjs +12 -0
  40. package/cli/package.json +2 -2
  41. package/cli/templates.mjs +17 -12
  42. package/dist/client/devtools/200.html +1 -1
  43. package/dist/client/devtools/404.html +1 -1
  44. package/dist/client/devtools/_nuxt/CQ-XZFu7.js +54 -0
  45. package/dist/client/devtools/_nuxt/DNZFyo26.js +1 -0
  46. package/dist/client/devtools/_nuxt/Dtz-o9GB.js +1 -0
  47. package/dist/client/devtools/_nuxt/builds/latest.json +1 -1
  48. package/dist/client/devtools/_nuxt/builds/meta/1f5fbd7b-9d97-480e-9ae4-e02b4ff7018b.json +1 -0
  49. package/dist/client/devtools/_nuxt/entry.qOdop8tq.css +1 -0
  50. package/dist/client/devtools/_nuxt/error-404.D-rS9BDk.css +1 -0
  51. package/dist/client/devtools/_nuxt/error-500.CfcCHs91.css +1 -0
  52. package/dist/client/devtools/index.html +1 -1
  53. package/dist/module.cjs +1 -1
  54. package/dist/module.json +1 -1
  55. package/dist/module.mjs +1 -1
  56. package/dist/runtime/components/Accordion.vue +2 -1
  57. package/dist/runtime/components/Alert.vue +3 -2
  58. package/dist/runtime/components/Avatar.vue +5 -4
  59. package/dist/runtime/components/AvatarGroup.vue +2 -1
  60. package/dist/runtime/components/Badge.vue +2 -1
  61. package/dist/runtime/components/Breadcrumb.vue +1 -1
  62. package/dist/runtime/components/Button.vue +2 -1
  63. package/dist/runtime/components/ButtonGroup.vue +2 -1
  64. package/dist/runtime/components/Calendar.vue +2 -1
  65. package/dist/runtime/components/Card.vue +1 -1
  66. package/dist/runtime/components/Carousel.vue +2 -1
  67. package/dist/runtime/components/Checkbox.vue +2 -1
  68. package/dist/runtime/components/Chip.vue +3 -2
  69. package/dist/runtime/components/Collapsible.vue +4 -2
  70. package/dist/runtime/components/ColorPicker.vue +2 -1
  71. package/dist/runtime/components/CommandPalette.vue +12 -5
  72. package/dist/runtime/components/Container.vue +1 -1
  73. package/dist/runtime/components/ContextMenu.vue +2 -1
  74. package/dist/runtime/components/ContextMenuContent.vue +3 -3
  75. package/dist/runtime/components/Drawer.vue +7 -2
  76. package/dist/runtime/components/DropdownMenu.vue +2 -1
  77. package/dist/runtime/components/DropdownMenuContent.vue +3 -3
  78. package/dist/runtime/components/Form.vue +15 -14
  79. package/dist/runtime/components/FormField.vue +2 -1
  80. package/dist/runtime/components/Input.vue +3 -2
  81. package/dist/runtime/components/InputMenu.vue +13 -2
  82. package/dist/runtime/components/InputNumber.vue +2 -1
  83. package/dist/runtime/components/Kbd.vue +2 -1
  84. package/dist/runtime/components/Link.vue +1 -1
  85. package/dist/runtime/components/Modal.vue +8 -13
  86. package/dist/runtime/components/NavigationMenu.vue +14 -9
  87. package/dist/runtime/components/Pagination.vue +1 -1
  88. package/dist/runtime/components/PinInput.vue +4 -3
  89. package/dist/runtime/components/Popover.vue +7 -6
  90. package/dist/runtime/components/Progress.vue +4 -3
  91. package/dist/runtime/components/RadioGroup.vue +2 -1
  92. package/dist/runtime/components/Select.vue +3 -2
  93. package/dist/runtime/components/SelectMenu.vue +20 -4
  94. package/dist/runtime/components/Separator.vue +2 -1
  95. package/dist/runtime/components/Skeleton.vue +1 -1
  96. package/dist/runtime/components/Slideover.vue +8 -12
  97. package/dist/runtime/components/Slider.vue +2 -1
  98. package/dist/runtime/components/Stepper.vue +6 -4
  99. package/dist/runtime/components/Switch.vue +2 -1
  100. package/dist/runtime/components/Table.vue +2 -1
  101. package/dist/runtime/components/Tabs.vue +3 -1
  102. package/dist/runtime/components/Textarea.vue +3 -2
  103. package/dist/runtime/components/Toast.vue +2 -1
  104. package/dist/runtime/components/Toaster.vue +2 -1
  105. package/dist/runtime/components/Tooltip.vue +1 -1
  106. package/dist/runtime/composables/defineShortcuts.js +1 -1
  107. package/dist/runtime/composables/useFormField.d.ts +1 -1
  108. package/dist/runtime/composables/useFormField.js +6 -3
  109. package/dist/runtime/locale/ar.js +3 -1
  110. package/dist/runtime/locale/cs.js +3 -1
  111. package/dist/runtime/locale/da.d.ts +2 -0
  112. package/dist/runtime/locale/da.js +54 -0
  113. package/dist/runtime/locale/de.js +3 -1
  114. package/dist/runtime/locale/el.d.ts +2 -0
  115. package/dist/runtime/locale/el.js +54 -0
  116. package/dist/runtime/locale/en.js +3 -1
  117. package/dist/runtime/locale/es.js +3 -1
  118. package/dist/runtime/locale/et.d.ts +2 -0
  119. package/dist/runtime/locale/et.js +54 -0
  120. package/dist/runtime/locale/fa_ir.js +3 -1
  121. package/dist/runtime/locale/fi.d.ts +2 -0
  122. package/dist/runtime/locale/fi.js +54 -0
  123. package/dist/runtime/locale/fr.js +3 -1
  124. package/dist/runtime/locale/id.d.ts +2 -0
  125. package/dist/runtime/locale/id.js +54 -0
  126. package/dist/runtime/locale/index.d.ts +9 -0
  127. package/dist/runtime/locale/index.js +9 -0
  128. package/dist/runtime/locale/it.js +3 -1
  129. package/dist/runtime/locale/ja.js +3 -1
  130. package/dist/runtime/locale/ko.js +3 -1
  131. package/dist/runtime/locale/nl.js +3 -1
  132. package/dist/runtime/locale/pl.js +3 -1
  133. package/dist/runtime/locale/pt.js +3 -1
  134. package/dist/runtime/locale/pt_br.js +3 -1
  135. package/dist/runtime/locale/ru.js +3 -1
  136. package/dist/runtime/locale/sk.js +3 -1
  137. package/dist/runtime/locale/sv.d.ts +2 -0
  138. package/dist/runtime/locale/sv.js +54 -0
  139. package/dist/runtime/locale/th.d.ts +2 -0
  140. package/dist/runtime/locale/th.js +54 -0
  141. package/dist/runtime/locale/tr.js +3 -1
  142. package/dist/runtime/locale/uk.d.ts +2 -0
  143. package/dist/runtime/locale/uk.js +54 -0
  144. package/dist/runtime/locale/vi.d.ts +2 -0
  145. package/dist/runtime/locale/vi.js +54 -0
  146. package/dist/runtime/locale/zh_hans.js +3 -1
  147. package/dist/runtime/locale/zh_hant.js +11 -9
  148. package/dist/runtime/types/form.d.ts +2 -2
  149. package/dist/runtime/types/form.js +2 -2
  150. package/dist/runtime/types/locale.d.ts +2 -0
  151. package/dist/runtime/utils/form.d.ts +2 -2
  152. package/dist/runtime/utils/form.js +3 -3
  153. package/dist/runtime/utils/tv.d.ts +1 -0
  154. package/dist/runtime/utils/tv.js +4 -0
  155. package/dist/runtime/vue/components/Icon.vue +2 -2
  156. package/dist/runtime/vue/plugins/head.d.ts +1 -1
  157. package/dist/runtime/vue/plugins/head.js +3 -3
  158. package/dist/shared/{ui.D_93iuwH.mjs → ui.BKsd22-Q.mjs} +63 -36
  159. package/dist/shared/{ui.CwmIkD_Y.cjs → ui.DCjJwb6l.cjs} +63 -36
  160. package/dist/unplugin.cjs +5 -5
  161. package/dist/unplugin.mjs +5 -5
  162. package/dist/vite.cjs +1 -1
  163. package/dist/vite.mjs +1 -1
  164. package/package.json +49 -44
  165. package/dist/client/devtools/_nuxt/B1fTd_Rf.js +0 -1
  166. package/dist/client/devtools/_nuxt/CSUxkedg.js +0 -1
  167. package/dist/client/devtools/_nuxt/CbRTGpb7.js +0 -1
  168. package/dist/client/devtools/_nuxt/YQTlxbcT.js +0 -53
  169. package/dist/client/devtools/_nuxt/builds/meta/b3465abc-0a92-4ee7-ba6b-e5174891fcc0.json +0 -1
  170. package/dist/client/devtools/_nuxt/entry.DXXceQev.css +0 -1
  171. package/dist/client/devtools/_nuxt/error-404.BJpkZFyY.css +0 -1
  172. package/dist/client/devtools/_nuxt/error-500.D3i9VDlt.css +0 -1
@@ -1,3 +1,42 @@
1
+ const animation = [
2
+ "carousel",
3
+ "carousel-inverse",
4
+ "swing",
5
+ "elastic"
6
+ ] as const
7
+
8
+ const color = [
9
+ "primary",
10
+ "secondary",
11
+ "success",
12
+ "info",
13
+ "warning",
14
+ "error",
15
+ "neutral"
16
+ ] as const
17
+
18
+ const size = [
19
+ "2xs",
20
+ "xs",
21
+ "sm",
22
+ "md",
23
+ "lg",
24
+ "xl",
25
+ "2xl"
26
+ ] as const
27
+
28
+ const step = [
29
+ "active",
30
+ "first",
31
+ "other",
32
+ "last"
33
+ ] as const
34
+
35
+ const orientation = [
36
+ "horizontal",
37
+ "vertical"
38
+ ] as const
39
+
1
40
  export default {
2
41
  "slots": {
3
42
  "root": "gap-2",
@@ -5,7 +44,7 @@ export default {
5
44
  "indicator": "rounded-full size-full transition-transform duration-200 ease-out",
6
45
  "status": "flex justify-end text-[var(--ui-text-dimmed)] transition-[width] duration-200",
7
46
  "steps": "grid items-end",
8
- "step": "truncate text-end row-start-1 col-start-1 transition-opacity" as const
47
+ "step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
9
48
  },
10
49
  "variants": {
11
50
  "animation": {
@@ -76,13 +115,13 @@ export default {
76
115
  },
77
116
  "step": {
78
117
  "active": {
79
- "step": "opacity-100" as const
118
+ "step": "opacity-100" as typeof step[number]
80
119
  },
81
120
  "first": {
82
- "step": "opacity-100 text-[var(--ui-text-muted)]" as const
121
+ "step": "opacity-100 text-[var(--ui-text-muted)]" as typeof step[number]
83
122
  },
84
123
  "other": {
85
- "step": "opacity-0" as const
124
+ "step": "opacity-0" as typeof step[number]
86
125
  },
87
126
  "last": {
88
127
  "step": ""
@@ -109,150 +148,150 @@ export default {
109
148
  "compoundVariants": [
110
149
  {
111
150
  "inverted": true,
112
- "orientation": "horizontal" as const,
151
+ "orientation": "horizontal" as typeof orientation[number],
113
152
  "class": {
114
- "step": "text-start" as const,
153
+ "step": "text-start" as typeof step[number],
115
154
  "status": "flex-row-reverse"
116
155
  }
117
156
  },
118
157
  {
119
158
  "inverted": true,
120
- "orientation": "vertical" as const,
159
+ "orientation": "vertical" as typeof orientation[number],
121
160
  "class": {
122
161
  "steps": "items-start",
123
162
  "status": "flex-col-reverse"
124
163
  }
125
164
  },
126
165
  {
127
- "orientation": "horizontal" as const,
128
- "size": "2xs" as const,
166
+ "orientation": "horizontal" as typeof orientation[number],
167
+ "size": "2xs" as typeof size[number],
129
168
  "class": "h-px"
130
169
  },
131
170
  {
132
- "orientation": "horizontal" as const,
133
- "size": "xs" as const,
171
+ "orientation": "horizontal" as typeof orientation[number],
172
+ "size": "xs" as typeof size[number],
134
173
  "class": "h-0.5"
135
174
  },
136
175
  {
137
- "orientation": "horizontal" as const,
138
- "size": "sm" as const,
176
+ "orientation": "horizontal" as typeof orientation[number],
177
+ "size": "sm" as typeof size[number],
139
178
  "class": "h-1"
140
179
  },
141
180
  {
142
- "orientation": "horizontal" as const,
143
- "size": "md" as const,
181
+ "orientation": "horizontal" as typeof orientation[number],
182
+ "size": "md" as typeof size[number],
144
183
  "class": "h-2"
145
184
  },
146
185
  {
147
- "orientation": "horizontal" as const,
148
- "size": "lg" as const,
186
+ "orientation": "horizontal" as typeof orientation[number],
187
+ "size": "lg" as typeof size[number],
149
188
  "class": "h-3"
150
189
  },
151
190
  {
152
- "orientation": "horizontal" as const,
153
- "size": "xl" as const,
191
+ "orientation": "horizontal" as typeof orientation[number],
192
+ "size": "xl" as typeof size[number],
154
193
  "class": "h-4"
155
194
  },
156
195
  {
157
- "orientation": "horizontal" as const,
158
- "size": "2xl" as const,
196
+ "orientation": "horizontal" as typeof orientation[number],
197
+ "size": "2xl" as typeof size[number],
159
198
  "class": "h-5"
160
199
  },
161
200
  {
162
- "orientation": "vertical" as const,
163
- "size": "2xs" as const,
201
+ "orientation": "vertical" as typeof orientation[number],
202
+ "size": "2xs" as typeof size[number],
164
203
  "class": "w-px"
165
204
  },
166
205
  {
167
- "orientation": "vertical" as const,
168
- "size": "xs" as const,
206
+ "orientation": "vertical" as typeof orientation[number],
207
+ "size": "xs" as typeof size[number],
169
208
  "class": "w-0.5"
170
209
  },
171
210
  {
172
- "orientation": "vertical" as const,
173
- "size": "sm" as const,
211
+ "orientation": "vertical" as typeof orientation[number],
212
+ "size": "sm" as typeof size[number],
174
213
  "class": "w-1"
175
214
  },
176
215
  {
177
- "orientation": "vertical" as const,
178
- "size": "md" as const,
216
+ "orientation": "vertical" as typeof orientation[number],
217
+ "size": "md" as typeof size[number],
179
218
  "class": "w-2"
180
219
  },
181
220
  {
182
- "orientation": "vertical" as const,
183
- "size": "lg" as const,
221
+ "orientation": "vertical" as typeof orientation[number],
222
+ "size": "lg" as typeof size[number],
184
223
  "class": "w-3"
185
224
  },
186
225
  {
187
- "orientation": "vertical" as const,
188
- "size": "xl" as const,
226
+ "orientation": "vertical" as typeof orientation[number],
227
+ "size": "xl" as typeof size[number],
189
228
  "class": "w-4"
190
229
  },
191
230
  {
192
- "orientation": "vertical" as const,
193
- "size": "2xl" as const,
231
+ "orientation": "vertical" as typeof orientation[number],
232
+ "size": "2xl" as typeof size[number],
194
233
  "class": "w-5"
195
234
  },
196
235
  {
197
- "orientation": "horizontal" as const,
198
- "animation": "carousel" as const,
236
+ "orientation": "horizontal" as typeof orientation[number],
237
+ "animation": "carousel" as typeof animation[number],
199
238
  "class": {
200
239
  "indicator": "data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]"
201
240
  }
202
241
  },
203
242
  {
204
- "orientation": "vertical" as const,
205
- "animation": "carousel" as const,
243
+ "orientation": "vertical" as typeof orientation[number],
244
+ "animation": "carousel" as typeof animation[number],
206
245
  "class": {
207
246
  "indicator": "data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]"
208
247
  }
209
248
  },
210
249
  {
211
- "orientation": "horizontal" as const,
212
- "animation": "carousel-inverse" as const,
250
+ "orientation": "horizontal" as typeof orientation[number],
251
+ "animation": "carousel-inverse" as typeof animation[number],
213
252
  "class": {
214
253
  "indicator": "data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
215
254
  }
216
255
  },
217
256
  {
218
- "orientation": "vertical" as const,
219
- "animation": "carousel-inverse" as const,
257
+ "orientation": "vertical" as typeof orientation[number],
258
+ "animation": "carousel-inverse" as typeof animation[number],
220
259
  "class": {
221
260
  "indicator": "data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]"
222
261
  }
223
262
  },
224
263
  {
225
- "orientation": "horizontal" as const,
226
- "animation": "swing" as const,
264
+ "orientation": "horizontal" as typeof orientation[number],
265
+ "animation": "swing" as typeof animation[number],
227
266
  "class": {
228
267
  "indicator": "data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]"
229
268
  }
230
269
  },
231
270
  {
232
- "orientation": "vertical" as const,
233
- "animation": "swing" as const,
271
+ "orientation": "vertical" as typeof orientation[number],
272
+ "animation": "swing" as typeof animation[number],
234
273
  "class": {
235
274
  "indicator": "data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]"
236
275
  }
237
276
  },
238
277
  {
239
- "orientation": "horizontal" as const,
240
- "animation": "elastic" as const,
278
+ "orientation": "horizontal" as typeof orientation[number],
279
+ "animation": "elastic" as typeof animation[number],
241
280
  "class": {
242
281
  "indicator": "data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]"
243
282
  }
244
283
  },
245
284
  {
246
- "orientation": "vertical" as const,
247
- "animation": "elastic" as const,
285
+ "orientation": "vertical" as typeof orientation[number],
286
+ "animation": "elastic" as typeof animation[number],
248
287
  "class": {
249
288
  "indicator": "data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]"
250
289
  }
251
290
  }
252
291
  ],
253
292
  "defaultVariants": {
254
- "animation": "carousel" as const,
255
- "color": "primary" as const,
256
- "size": "md" as const
293
+ "animation": "carousel" as typeof animation[number],
294
+ "color": "primary" as typeof color[number],
295
+ "size": "md" as typeof size[number]
257
296
  }
258
297
  }
@@ -1,3 +1,26 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const orientation = [
12
+ "horizontal",
13
+ "vertical"
14
+ ] as const
15
+
16
+ const size = [
17
+ "xs",
18
+ "sm",
19
+ "md",
20
+ "lg",
21
+ "xl"
22
+ ] as const
23
+
1
24
  export default {
2
25
  "slots": {
3
26
  "root": "relative",
@@ -106,7 +129,7 @@ export default {
106
129
  }
107
130
  },
108
131
  "defaultVariants": {
109
- "size": "md" as const,
110
- "color": "primary" as const
132
+ "size": "md" as typeof size[number],
133
+ "color": "primary" as typeof color[number]
111
134
  }
112
135
  }
@@ -1,19 +1,54 @@
1
+ const buttonGroup = [
2
+ "horizontal",
3
+ "vertical"
4
+ ] as const
5
+
6
+ const size = [
7
+ "xs",
8
+ "sm",
9
+ "md",
10
+ "lg",
11
+ "xl"
12
+ ] as const
13
+
14
+ const variant = [
15
+ "outline",
16
+ "soft",
17
+ "subtle",
18
+ "ghost",
19
+ "none"
20
+ ] as const
21
+
22
+ const color = [
23
+ "primary",
24
+ "secondary",
25
+ "success",
26
+ "info",
27
+ "warning",
28
+ "error",
29
+ "neutral"
30
+ ] as const
31
+
32
+ const type = [
33
+ "file"
34
+ ] as const
35
+
1
36
  export default {
2
37
  "slots": {
3
38
  "base": [
4
39
  "relative group rounded-[calc(var(--ui-radius)*1.5)] inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
5
40
  "transition-colors"
6
41
  ],
7
- "leading": "absolute inset-y-0 start-0 flex items-center" as const,
42
+ "leading": "absolute inset-y-0 start-0 flex items-center",
8
43
  "leadingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
9
44
  "leadingAvatar": "shrink-0",
10
45
  "leadingAvatarSize": "",
11
- "trailing": "absolute inset-y-0 end-0 flex items-center" as const,
46
+ "trailing": "absolute inset-y-0 end-0 flex items-center",
12
47
  "trailingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
13
48
  "value": "truncate pointer-events-none",
14
49
  "placeholder": "truncate text-[var(--ui-text-dimmed)]",
15
50
  "arrow": "fill-[var(--ui-border)]",
16
- "content": "max-h-60 w-[var(--reka-popper-anchor-width)] bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
51
+ "content": "max-h-60 w-[var(--reka-popper-anchor-width)] bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
17
52
  "viewport": "divide-y divide-[var(--ui-border)] scroll-py-1",
18
53
  "group": "p-1 isolate",
19
54
  "empty": "py-2 text-center text-sm text-[var(--ui-text-muted)]",
@@ -44,8 +79,8 @@ export default {
44
79
  "size": {
45
80
  "xs": {
46
81
  "base": "px-2 py-1 text-xs gap-1",
47
- "leading": "ps-2" as const,
48
- "trailing": "pe-2" as const,
82
+ "leading": "ps-2",
83
+ "trailing": "pe-2",
49
84
  "leadingIcon": "size-4",
50
85
  "leadingAvatarSize": "3xs",
51
86
  "trailingIcon": "size-4",
@@ -59,8 +94,8 @@ export default {
59
94
  },
60
95
  "sm": {
61
96
  "base": "px-2.5 py-1.5 text-xs gap-1.5",
62
- "leading": "ps-2.5" as const,
63
- "trailing": "pe-2.5" as const,
97
+ "leading": "ps-2.5",
98
+ "trailing": "pe-2.5",
64
99
  "leadingIcon": "size-4",
65
100
  "leadingAvatarSize": "3xs",
66
101
  "trailingIcon": "size-4",
@@ -74,8 +109,8 @@ export default {
74
109
  },
75
110
  "md": {
76
111
  "base": "px-2.5 py-1.5 text-sm gap-1.5",
77
- "leading": "ps-2.5" as const,
78
- "trailing": "pe-2.5" as const,
112
+ "leading": "ps-2.5",
113
+ "trailing": "pe-2.5",
79
114
  "leadingIcon": "size-5",
80
115
  "leadingAvatarSize": "2xs",
81
116
  "trailingIcon": "size-5",
@@ -89,8 +124,8 @@ export default {
89
124
  },
90
125
  "lg": {
91
126
  "base": "px-3 py-2 text-sm gap-2",
92
- "leading": "ps-3" as const,
93
- "trailing": "pe-3" as const,
127
+ "leading": "ps-3",
128
+ "trailing": "pe-3",
94
129
  "leadingIcon": "size-5",
95
130
  "leadingAvatarSize": "2xs",
96
131
  "trailingIcon": "size-5",
@@ -104,8 +139,8 @@ export default {
104
139
  },
105
140
  "xl": {
106
141
  "base": "px-3 py-2 text-base gap-2",
107
- "leading": "ps-3" as const,
108
- "trailing": "pe-3" as const,
142
+ "leading": "ps-3",
143
+ "trailing": "pe-3",
109
144
  "leadingIcon": "size-6",
110
145
  "leadingAvatarSize": "xs",
111
146
  "trailingIcon": "size-6",
@@ -152,144 +187,144 @@ export default {
152
187
  },
153
188
  "compoundVariants": [
154
189
  {
155
- "color": "primary" as const,
190
+ "color": "primary" as typeof color[number],
156
191
  "variant": [
157
- "outline" as const,
158
- "subtle" as const
192
+ "outline" as typeof variant[number],
193
+ "subtle" as typeof variant[number]
159
194
  ],
160
195
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
161
196
  },
162
197
  {
163
- "color": "secondary" as const,
198
+ "color": "secondary" as typeof color[number],
164
199
  "variant": [
165
- "outline" as const,
166
- "subtle" as const
200
+ "outline" as typeof variant[number],
201
+ "subtle" as typeof variant[number]
167
202
  ],
168
203
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
169
204
  },
170
205
  {
171
- "color": "success" as const,
206
+ "color": "success" as typeof color[number],
172
207
  "variant": [
173
- "outline" as const,
174
- "subtle" as const
208
+ "outline" as typeof variant[number],
209
+ "subtle" as typeof variant[number]
175
210
  ],
176
211
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
177
212
  },
178
213
  {
179
- "color": "info" as const,
214
+ "color": "info" as typeof color[number],
180
215
  "variant": [
181
- "outline" as const,
182
- "subtle" as const
216
+ "outline" as typeof variant[number],
217
+ "subtle" as typeof variant[number]
183
218
  ],
184
219
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
185
220
  },
186
221
  {
187
- "color": "warning" as const,
222
+ "color": "warning" as typeof color[number],
188
223
  "variant": [
189
- "outline" as const,
190
- "subtle" as const
224
+ "outline" as typeof variant[number],
225
+ "subtle" as typeof variant[number]
191
226
  ],
192
227
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
193
228
  },
194
229
  {
195
- "color": "error" as const,
230
+ "color": "error" as typeof color[number],
196
231
  "variant": [
197
- "outline" as const,
198
- "subtle" as const
232
+ "outline" as typeof variant[number],
233
+ "subtle" as typeof variant[number]
199
234
  ],
200
235
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
201
236
  },
202
237
  {
203
- "color": "primary" as const,
238
+ "color": "primary" as typeof color[number],
204
239
  "highlight": true,
205
240
  "class": "ring ring-inset ring-[var(--ui-primary)]"
206
241
  },
207
242
  {
208
- "color": "secondary" as const,
243
+ "color": "secondary" as typeof color[number],
209
244
  "highlight": true,
210
245
  "class": "ring ring-inset ring-[var(--ui-secondary)]"
211
246
  },
212
247
  {
213
- "color": "success" as const,
248
+ "color": "success" as typeof color[number],
214
249
  "highlight": true,
215
250
  "class": "ring ring-inset ring-[var(--ui-success)]"
216
251
  },
217
252
  {
218
- "color": "info" as const,
253
+ "color": "info" as typeof color[number],
219
254
  "highlight": true,
220
255
  "class": "ring ring-inset ring-[var(--ui-info)]"
221
256
  },
222
257
  {
223
- "color": "warning" as const,
258
+ "color": "warning" as typeof color[number],
224
259
  "highlight": true,
225
260
  "class": "ring ring-inset ring-[var(--ui-warning)]"
226
261
  },
227
262
  {
228
- "color": "error" as const,
263
+ "color": "error" as typeof color[number],
229
264
  "highlight": true,
230
265
  "class": "ring ring-inset ring-[var(--ui-error)]"
231
266
  },
232
267
  {
233
- "color": "neutral" as const,
268
+ "color": "neutral" as typeof color[number],
234
269
  "variant": [
235
- "outline" as const,
236
- "subtle" as const
270
+ "outline" as typeof variant[number],
271
+ "subtle" as typeof variant[number]
237
272
  ],
238
273
  "class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
239
274
  },
240
275
  {
241
- "color": "neutral" as const,
276
+ "color": "neutral" as typeof color[number],
242
277
  "highlight": true,
243
278
  "class": "ring ring-inset ring-[var(--ui-border-inverted)]"
244
279
  },
245
280
  {
246
281
  "leading": true,
247
- "size": "xs" as const,
282
+ "size": "xs" as typeof size[number],
248
283
  "class": "ps-7"
249
284
  },
250
285
  {
251
286
  "leading": true,
252
- "size": "sm" as const,
287
+ "size": "sm" as typeof size[number],
253
288
  "class": "ps-8"
254
289
  },
255
290
  {
256
291
  "leading": true,
257
- "size": "md" as const,
292
+ "size": "md" as typeof size[number],
258
293
  "class": "ps-9"
259
294
  },
260
295
  {
261
296
  "leading": true,
262
- "size": "lg" as const,
297
+ "size": "lg" as typeof size[number],
263
298
  "class": "ps-10"
264
299
  },
265
300
  {
266
301
  "leading": true,
267
- "size": "xl" as const,
302
+ "size": "xl" as typeof size[number],
268
303
  "class": "ps-11"
269
304
  },
270
305
  {
271
306
  "trailing": true,
272
- "size": "xs" as const,
307
+ "size": "xs" as typeof size[number],
273
308
  "class": "pe-7"
274
309
  },
275
310
  {
276
311
  "trailing": true,
277
- "size": "sm" as const,
312
+ "size": "sm" as typeof size[number],
278
313
  "class": "pe-8"
279
314
  },
280
315
  {
281
316
  "trailing": true,
282
- "size": "md" as const,
317
+ "size": "md" as typeof size[number],
283
318
  "class": "pe-9"
284
319
  },
285
320
  {
286
321
  "trailing": true,
287
- "size": "lg" as const,
322
+ "size": "lg" as typeof size[number],
288
323
  "class": "pe-10"
289
324
  },
290
325
  {
291
326
  "trailing": true,
292
- "size": "xl" as const,
327
+ "size": "xl" as typeof size[number],
293
328
  "class": "pe-11"
294
329
  },
295
330
  {
@@ -309,8 +344,8 @@ export default {
309
344
  }
310
345
  ],
311
346
  "defaultVariants": {
312
- "size": "md" as const,
313
- "color": "primary" as const,
314
- "variant": "outline" as const
347
+ "size": "md" as typeof size[number],
348
+ "color": "primary" as typeof color[number],
349
+ "variant": "outline" as typeof variant[number]
315
350
  }
316
351
  }