@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,6 +1,24 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const size = [
12
+ "xs",
13
+ "sm",
14
+ "md",
15
+ "lg",
16
+ "xl"
17
+ ] as const
18
+
1
19
  export default {
2
20
  "slots": {
3
- "content": "min-w-32 bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--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-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--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] pointer-events-auto",
4
22
  "group": "p-1 isolate",
5
23
  "label": "w-full flex items-center font-semibold text-[var(--ui-text-highlighted)]",
6
24
  "separator": "-mx-1 my-1 h-px bg-[var(--ui-border)]",
@@ -96,7 +114,7 @@ export default {
96
114
  },
97
115
  "compoundVariants": [
98
116
  {
99
- "color": "primary" as const,
117
+ "color": "primary" as typeof color[number],
100
118
  "active": false,
101
119
  "class": {
102
120
  "item": "text-[var(--ui-primary)] data-highlighted:text-[var(--ui-primary)] data-highlighted:before:bg-[var(--ui-primary)]/10 data-[state=open]:before:bg-[var(--ui-primary)]/10",
@@ -104,7 +122,7 @@ export default {
104
122
  }
105
123
  },
106
124
  {
107
- "color": "secondary" as const,
125
+ "color": "secondary" as typeof color[number],
108
126
  "active": false,
109
127
  "class": {
110
128
  "item": "text-[var(--ui-secondary)] data-highlighted:text-[var(--ui-secondary)] data-highlighted:before:bg-[var(--ui-secondary)]/10 data-[state=open]:before:bg-[var(--ui-secondary)]/10",
@@ -112,7 +130,7 @@ export default {
112
130
  }
113
131
  },
114
132
  {
115
- "color": "success" as const,
133
+ "color": "success" as typeof color[number],
116
134
  "active": false,
117
135
  "class": {
118
136
  "item": "text-[var(--ui-success)] data-highlighted:text-[var(--ui-success)] data-highlighted:before:bg-[var(--ui-success)]/10 data-[state=open]:before:bg-[var(--ui-success)]/10",
@@ -120,7 +138,7 @@ export default {
120
138
  }
121
139
  },
122
140
  {
123
- "color": "info" as const,
141
+ "color": "info" as typeof color[number],
124
142
  "active": false,
125
143
  "class": {
126
144
  "item": "text-[var(--ui-info)] data-highlighted:text-[var(--ui-info)] data-highlighted:before:bg-[var(--ui-info)]/10 data-[state=open]:before:bg-[var(--ui-info)]/10",
@@ -128,7 +146,7 @@ export default {
128
146
  }
129
147
  },
130
148
  {
131
- "color": "warning" as const,
149
+ "color": "warning" as typeof color[number],
132
150
  "active": false,
133
151
  "class": {
134
152
  "item": "text-[var(--ui-warning)] data-highlighted:text-[var(--ui-warning)] data-highlighted:before:bg-[var(--ui-warning)]/10 data-[state=open]:before:bg-[var(--ui-warning)]/10",
@@ -136,7 +154,7 @@ export default {
136
154
  }
137
155
  },
138
156
  {
139
- "color": "error" as const,
157
+ "color": "error" as typeof color[number],
140
158
  "active": false,
141
159
  "class": {
142
160
  "item": "text-[var(--ui-error)] data-highlighted:text-[var(--ui-error)] data-highlighted:before:bg-[var(--ui-error)]/10 data-[state=open]:before:bg-[var(--ui-error)]/10",
@@ -144,7 +162,7 @@ export default {
144
162
  }
145
163
  },
146
164
  {
147
- "color": "primary" as const,
165
+ "color": "primary" as typeof color[number],
148
166
  "active": true,
149
167
  "class": {
150
168
  "item": "text-[var(--ui-primary)] before:bg-[var(--ui-primary)]/10",
@@ -152,7 +170,7 @@ export default {
152
170
  }
153
171
  },
154
172
  {
155
- "color": "secondary" as const,
173
+ "color": "secondary" as typeof color[number],
156
174
  "active": true,
157
175
  "class": {
158
176
  "item": "text-[var(--ui-secondary)] before:bg-[var(--ui-secondary)]/10",
@@ -160,7 +178,7 @@ export default {
160
178
  }
161
179
  },
162
180
  {
163
- "color": "success" as const,
181
+ "color": "success" as typeof color[number],
164
182
  "active": true,
165
183
  "class": {
166
184
  "item": "text-[var(--ui-success)] before:bg-[var(--ui-success)]/10",
@@ -168,7 +186,7 @@ export default {
168
186
  }
169
187
  },
170
188
  {
171
- "color": "info" as const,
189
+ "color": "info" as typeof color[number],
172
190
  "active": true,
173
191
  "class": {
174
192
  "item": "text-[var(--ui-info)] before:bg-[var(--ui-info)]/10",
@@ -176,7 +194,7 @@ export default {
176
194
  }
177
195
  },
178
196
  {
179
- "color": "warning" as const,
197
+ "color": "warning" as typeof color[number],
180
198
  "active": true,
181
199
  "class": {
182
200
  "item": "text-[var(--ui-warning)] before:bg-[var(--ui-warning)]/10",
@@ -184,7 +202,7 @@ export default {
184
202
  }
185
203
  },
186
204
  {
187
- "color": "error" as const,
205
+ "color": "error" as typeof color[number],
188
206
  "active": true,
189
207
  "class": {
190
208
  "item": "text-[var(--ui-error)] before:bg-[var(--ui-error)]/10",
@@ -193,6 +211,6 @@ export default {
193
211
  }
194
212
  ],
195
213
  "defaultVariants": {
196
- "size": "md" as const
214
+ "size": "md" as typeof size[number]
197
215
  }
198
216
  }
@@ -1,3 +1,10 @@
1
+ const direction = [
2
+ "top",
3
+ "right",
4
+ "bottom",
5
+ "left"
6
+ ] as const
7
+
1
8
  export default {
2
9
  "slots": {
3
10
  "overlay": "fixed inset-0 bg-[var(--ui-bg-elevated)]/75",
@@ -33,8 +40,8 @@ export default {
33
40
  "compoundVariants": [
34
41
  {
35
42
  "direction": [
36
- "top" as const,
37
- "bottom" as const
43
+ "top" as typeof direction[number],
44
+ "bottom" as typeof direction[number]
38
45
  ],
39
46
  "class": {
40
47
  "content": "inset-x-0 h-auto max-h-[96%]",
@@ -43,8 +50,8 @@ export default {
43
50
  },
44
51
  {
45
52
  "direction": [
46
- "right" as const,
47
- "left" as const
53
+ "right" as typeof direction[number],
54
+ "left" as typeof direction[number]
48
55
  ],
49
56
  "class": {
50
57
  "content": "inset-y-4 w-auto max-w-[calc(100%-2rem)] rounded-[calc(var(--ui-radius)*2)] after:hidden",
@@ -1,6 +1,24 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const size = [
12
+ "xs",
13
+ "sm",
14
+ "md",
15
+ "lg",
16
+ "xl"
17
+ ] as const
18
+
1
19
  export default {
2
20
  "slots": {
3
- "content": "min-w-32 bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--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-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--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] pointer-events-auto",
4
22
  "arrow": "fill-[var(--ui-border)]",
5
23
  "group": "p-1 isolate",
6
24
  "label": "w-full flex items-center font-semibold text-[var(--ui-text-highlighted)]",
@@ -97,7 +115,7 @@ export default {
97
115
  },
98
116
  "compoundVariants": [
99
117
  {
100
- "color": "primary" as const,
118
+ "color": "primary" as typeof color[number],
101
119
  "active": false,
102
120
  "class": {
103
121
  "item": "text-[var(--ui-primary)] data-highlighted:text-[var(--ui-primary)] data-highlighted:before:bg-[var(--ui-primary)]/10 data-[state=open]:before:bg-[var(--ui-primary)]/10",
@@ -105,7 +123,7 @@ export default {
105
123
  }
106
124
  },
107
125
  {
108
- "color": "secondary" as const,
126
+ "color": "secondary" as typeof color[number],
109
127
  "active": false,
110
128
  "class": {
111
129
  "item": "text-[var(--ui-secondary)] data-highlighted:text-[var(--ui-secondary)] data-highlighted:before:bg-[var(--ui-secondary)]/10 data-[state=open]:before:bg-[var(--ui-secondary)]/10",
@@ -113,7 +131,7 @@ export default {
113
131
  }
114
132
  },
115
133
  {
116
- "color": "success" as const,
134
+ "color": "success" as typeof color[number],
117
135
  "active": false,
118
136
  "class": {
119
137
  "item": "text-[var(--ui-success)] data-highlighted:text-[var(--ui-success)] data-highlighted:before:bg-[var(--ui-success)]/10 data-[state=open]:before:bg-[var(--ui-success)]/10",
@@ -121,7 +139,7 @@ export default {
121
139
  }
122
140
  },
123
141
  {
124
- "color": "info" as const,
142
+ "color": "info" as typeof color[number],
125
143
  "active": false,
126
144
  "class": {
127
145
  "item": "text-[var(--ui-info)] data-highlighted:text-[var(--ui-info)] data-highlighted:before:bg-[var(--ui-info)]/10 data-[state=open]:before:bg-[var(--ui-info)]/10",
@@ -129,7 +147,7 @@ export default {
129
147
  }
130
148
  },
131
149
  {
132
- "color": "warning" as const,
150
+ "color": "warning" as typeof color[number],
133
151
  "active": false,
134
152
  "class": {
135
153
  "item": "text-[var(--ui-warning)] data-highlighted:text-[var(--ui-warning)] data-highlighted:before:bg-[var(--ui-warning)]/10 data-[state=open]:before:bg-[var(--ui-warning)]/10",
@@ -137,7 +155,7 @@ export default {
137
155
  }
138
156
  },
139
157
  {
140
- "color": "error" as const,
158
+ "color": "error" as typeof color[number],
141
159
  "active": false,
142
160
  "class": {
143
161
  "item": "text-[var(--ui-error)] data-highlighted:text-[var(--ui-error)] data-highlighted:before:bg-[var(--ui-error)]/10 data-[state=open]:before:bg-[var(--ui-error)]/10",
@@ -145,7 +163,7 @@ export default {
145
163
  }
146
164
  },
147
165
  {
148
- "color": "primary" as const,
166
+ "color": "primary" as typeof color[number],
149
167
  "active": true,
150
168
  "class": {
151
169
  "item": "text-[var(--ui-primary)] before:bg-[var(--ui-primary)]/10",
@@ -153,7 +171,7 @@ export default {
153
171
  }
154
172
  },
155
173
  {
156
- "color": "secondary" as const,
174
+ "color": "secondary" as typeof color[number],
157
175
  "active": true,
158
176
  "class": {
159
177
  "item": "text-[var(--ui-secondary)] before:bg-[var(--ui-secondary)]/10",
@@ -161,7 +179,7 @@ export default {
161
179
  }
162
180
  },
163
181
  {
164
- "color": "success" as const,
182
+ "color": "success" as typeof color[number],
165
183
  "active": true,
166
184
  "class": {
167
185
  "item": "text-[var(--ui-success)] before:bg-[var(--ui-success)]/10",
@@ -169,7 +187,7 @@ export default {
169
187
  }
170
188
  },
171
189
  {
172
- "color": "info" as const,
190
+ "color": "info" as typeof color[number],
173
191
  "active": true,
174
192
  "class": {
175
193
  "item": "text-[var(--ui-info)] before:bg-[var(--ui-info)]/10",
@@ -177,7 +195,7 @@ export default {
177
195
  }
178
196
  },
179
197
  {
180
- "color": "warning" as const,
198
+ "color": "warning" as typeof color[number],
181
199
  "active": true,
182
200
  "class": {
183
201
  "item": "text-[var(--ui-warning)] before:bg-[var(--ui-warning)]/10",
@@ -185,7 +203,7 @@ export default {
185
203
  }
186
204
  },
187
205
  {
188
- "color": "error" as const,
206
+ "color": "error" as typeof color[number],
189
207
  "active": true,
190
208
  "class": {
191
209
  "item": "text-[var(--ui-error)] before:bg-[var(--ui-error)]/10",
@@ -194,6 +212,6 @@ export default {
194
212
  }
195
213
  ],
196
214
  "defaultVariants": {
197
- "size": "md" as const
215
+ "size": "md" as typeof size[number]
198
216
  }
199
217
  }
@@ -1,3 +1,11 @@
1
+ const size = [
2
+ "xs",
3
+ "sm",
4
+ "md",
5
+ "lg",
6
+ "xl"
7
+ ] as const
8
+
1
9
  export default {
2
10
  "slots": {
3
11
  "root": "",
@@ -35,6 +43,6 @@ export default {
35
43
  }
36
44
  },
37
45
  "defaultVariants": {
38
- "size": "md" as const
46
+ "size": "md" as typeof size[number]
39
47
  }
40
48
  }