@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,26 @@
1
+ const orientation = [
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 color = [
15
+ "primary",
16
+ "secondary",
17
+ "success",
18
+ "info",
19
+ "warning",
20
+ "error",
21
+ "neutral"
22
+ ] as const
23
+
1
24
  export default {
2
25
  "slots": {
3
26
  "root": "flex gap-4",
@@ -97,75 +120,75 @@ export default {
97
120
  },
98
121
  "compoundVariants": [
99
122
  {
100
- "orientation": "horizontal" as const,
101
- "size": "xs" as const,
123
+ "orientation": "horizontal" as typeof orientation[number],
124
+ "size": "xs" as typeof size[number],
102
125
  "class": {
103
126
  "separator": "start-[calc(50%+16px)] end-[calc(-50%+16px)]"
104
127
  }
105
128
  },
106
129
  {
107
- "orientation": "horizontal" as const,
108
- "size": "sm" as const,
130
+ "orientation": "horizontal" as typeof orientation[number],
131
+ "size": "sm" as typeof size[number],
109
132
  "class": {
110
133
  "separator": "start-[calc(50%+20px)] end-[calc(-50%+20px)]"
111
134
  }
112
135
  },
113
136
  {
114
- "orientation": "horizontal" as const,
115
- "size": "md" as const,
137
+ "orientation": "horizontal" as typeof orientation[number],
138
+ "size": "md" as typeof size[number],
116
139
  "class": {
117
140
  "separator": "start-[calc(50%+28px)] end-[calc(-50%+28px)]"
118
141
  }
119
142
  },
120
143
  {
121
- "orientation": "horizontal" as const,
122
- "size": "lg" as const,
144
+ "orientation": "horizontal" as typeof orientation[number],
145
+ "size": "lg" as typeof size[number],
123
146
  "class": {
124
147
  "separator": "start-[calc(50%+32px)] end-[calc(-50%+32px)]"
125
148
  }
126
149
  },
127
150
  {
128
- "orientation": "horizontal" as const,
129
- "size": "xl" as const,
151
+ "orientation": "horizontal" as typeof orientation[number],
152
+ "size": "xl" as typeof size[number],
130
153
  "class": {
131
154
  "separator": "start-[calc(50%+36px)] end-[calc(-50%+36px)]"
132
155
  }
133
156
  },
134
157
  {
135
- "orientation": "vertical" as const,
136
- "size": "xs" as const,
158
+ "orientation": "vertical" as typeof orientation[number],
159
+ "size": "xs" as typeof size[number],
137
160
  "class": {
138
161
  "separator": "top-[30px]",
139
162
  "item": "gap-1.5"
140
163
  }
141
164
  },
142
165
  {
143
- "orientation": "vertical" as const,
144
- "size": "sm" as const,
166
+ "orientation": "vertical" as typeof orientation[number],
167
+ "size": "sm" as typeof size[number],
145
168
  "class": {
146
169
  "separator": "top-[38px]",
147
170
  "item": "gap-2"
148
171
  }
149
172
  },
150
173
  {
151
- "orientation": "vertical" as const,
152
- "size": "md" as const,
174
+ "orientation": "vertical" as typeof orientation[number],
175
+ "size": "md" as typeof size[number],
153
176
  "class": {
154
177
  "separator": "top-[46px]",
155
178
  "item": "gap-2.5"
156
179
  }
157
180
  },
158
181
  {
159
- "orientation": "vertical" as const,
160
- "size": "lg" as const,
182
+ "orientation": "vertical" as typeof orientation[number],
183
+ "size": "lg" as typeof size[number],
161
184
  "class": {
162
185
  "separator": "top-[54px]",
163
186
  "item": "gap-3"
164
187
  }
165
188
  },
166
189
  {
167
- "orientation": "vertical" as const,
168
- "size": "xl" as const,
190
+ "orientation": "vertical" as typeof orientation[number],
191
+ "size": "xl" as typeof size[number],
169
192
  "class": {
170
193
  "separator": "top-[62px]",
171
194
  "item": "gap-3.5"
@@ -173,8 +196,7 @@ export default {
173
196
  }
174
197
  ],
175
198
  "defaultVariants": {
176
- "orientation": "horizontal" as const,
177
- "size": "md" as const,
178
- "color": "primary" as const
199
+ "size": "md" as typeof size[number],
200
+ "color": "primary" as typeof color[number]
179
201
  }
180
202
  }
@@ -1,3 +1,21 @@
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
21
  "root": "relative flex items-start",
@@ -107,7 +125,7 @@ export default {
107
125
  }
108
126
  },
109
127
  "defaultVariants": {
110
- "color": "primary" as const,
111
- "size": "md" as const
128
+ "color": "primary" as typeof color[number],
129
+ "size": "md" as typeof size[number]
112
130
  }
113
131
  }
package/.nuxt/ui/table.ts CHANGED
@@ -1,3 +1,20 @@
1
+ const loadingAnimation = [
2
+ "carousel",
3
+ "carousel-inverse",
4
+ "swing",
5
+ "elastic"
6
+ ] as const
7
+
8
+ const loadingColor = [
9
+ "primary",
10
+ "secondary",
11
+ "success",
12
+ "info",
13
+ "warning",
14
+ "error",
15
+ "neutral"
16
+ ] as const
17
+
1
18
  export default {
2
19
  "slots": {
3
20
  "root": "relative overflow-auto",
@@ -46,84 +63,84 @@ export default {
46
63
  "compoundVariants": [
47
64
  {
48
65
  "loading": true,
49
- "loadingColor": "primary" as const,
66
+ "loadingColor": "primary" as typeof loadingColor[number],
50
67
  "class": {
51
68
  "thead": "after:bg-[var(--ui-primary)]"
52
69
  }
53
70
  },
54
71
  {
55
72
  "loading": true,
56
- "loadingColor": "secondary" as const,
73
+ "loadingColor": "secondary" as typeof loadingColor[number],
57
74
  "class": {
58
75
  "thead": "after:bg-[var(--ui-secondary)]"
59
76
  }
60
77
  },
61
78
  {
62
79
  "loading": true,
63
- "loadingColor": "success" as const,
80
+ "loadingColor": "success" as typeof loadingColor[number],
64
81
  "class": {
65
82
  "thead": "after:bg-[var(--ui-success)]"
66
83
  }
67
84
  },
68
85
  {
69
86
  "loading": true,
70
- "loadingColor": "info" as const,
87
+ "loadingColor": "info" as typeof loadingColor[number],
71
88
  "class": {
72
89
  "thead": "after:bg-[var(--ui-info)]"
73
90
  }
74
91
  },
75
92
  {
76
93
  "loading": true,
77
- "loadingColor": "warning" as const,
94
+ "loadingColor": "warning" as typeof loadingColor[number],
78
95
  "class": {
79
96
  "thead": "after:bg-[var(--ui-warning)]"
80
97
  }
81
98
  },
82
99
  {
83
100
  "loading": true,
84
- "loadingColor": "error" as const,
101
+ "loadingColor": "error" as typeof loadingColor[number],
85
102
  "class": {
86
103
  "thead": "after:bg-[var(--ui-error)]"
87
104
  }
88
105
  },
89
106
  {
90
107
  "loading": true,
91
- "loadingColor": "neutral" as const,
108
+ "loadingColor": "neutral" as typeof loadingColor[number],
92
109
  "class": {
93
110
  "thead": "after:bg-[var(--ui-bg-inverted)]"
94
111
  }
95
112
  },
96
113
  {
97
114
  "loading": true,
98
- "loadingAnimation": "carousel" as const,
115
+ "loadingAnimation": "carousel" as typeof loadingAnimation[number],
99
116
  "class": {
100
117
  "thead": "after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]"
101
118
  }
102
119
  },
103
120
  {
104
121
  "loading": true,
105
- "loadingAnimation": "carousel-inverse" as const,
122
+ "loadingAnimation": "carousel-inverse" as typeof loadingAnimation[number],
106
123
  "class": {
107
124
  "thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
108
125
  }
109
126
  },
110
127
  {
111
128
  "loading": true,
112
- "loadingAnimation": "swing" as const,
129
+ "loadingAnimation": "swing" as typeof loadingAnimation[number],
113
130
  "class": {
114
131
  "thead": "after:animate-[swing_2s_ease-in-out_infinite]"
115
132
  }
116
133
  },
117
134
  {
118
135
  "loading": true,
119
- "loadingAnimation": "elastic" as const,
136
+ "loadingAnimation": "elastic" as typeof loadingAnimation[number],
120
137
  "class": {
121
138
  "thead": "after:animate-[elastic_2s_ease-in-out_infinite]"
122
139
  }
123
140
  }
124
141
  ],
125
142
  "defaultVariants": {
126
- "loadingColor": "primary" as const,
127
- "loadingAnimation": "carousel" as const
143
+ "loadingColor": "primary" as typeof loadingColor[number],
144
+ "loadingAnimation": "carousel" as typeof loadingAnimation[number]
128
145
  }
129
146
  }
package/.nuxt/ui/tabs.ts CHANGED
@@ -1,3 +1,31 @@
1
+ const color = [
2
+ "primary",
3
+ "secondary",
4
+ "success",
5
+ "info",
6
+ "warning",
7
+ "error",
8
+ "neutral"
9
+ ] as const
10
+
11
+ const variant = [
12
+ "pill",
13
+ "link"
14
+ ] as const
15
+
16
+ const orientation = [
17
+ "horizontal",
18
+ "vertical"
19
+ ] as const
20
+
21
+ const size = [
22
+ "xs",
23
+ "sm",
24
+ "md",
25
+ "lg",
26
+ "xl"
27
+ ] as const
28
+
1
29
  export default {
2
30
  "slots": {
3
31
  "root": "flex items-center gap-2",
@@ -76,143 +104,143 @@ export default {
76
104
  },
77
105
  "compoundVariants": [
78
106
  {
79
- "orientation": "horizontal" as const,
80
- "variant": "pill" as const,
107
+ "orientation": "horizontal" as typeof orientation[number],
108
+ "variant": "pill" as typeof variant[number],
81
109
  "class": {
82
110
  "indicator": "inset-y-1"
83
111
  }
84
112
  },
85
113
  {
86
- "orientation": "horizontal" as const,
87
- "variant": "link" as const,
114
+ "orientation": "horizontal" as typeof orientation[number],
115
+ "variant": "link" as typeof variant[number],
88
116
  "class": {
89
117
  "list": "border-b -mb-px",
90
118
  "indicator": "-bottom-px h-px"
91
119
  }
92
120
  },
93
121
  {
94
- "orientation": "vertical" as const,
95
- "variant": "pill" as const,
122
+ "orientation": "vertical" as typeof orientation[number],
123
+ "variant": "pill" as typeof variant[number],
96
124
  "class": {
97
125
  "indicator": "inset-x-1",
98
126
  "list": "items-center"
99
127
  }
100
128
  },
101
129
  {
102
- "orientation": "vertical" as const,
103
- "variant": "link" as const,
130
+ "orientation": "vertical" as typeof orientation[number],
131
+ "variant": "link" as typeof variant[number],
104
132
  "class": {
105
133
  "list": "border-s -ms-px",
106
134
  "indicator": "-start-px w-px"
107
135
  }
108
136
  },
109
137
  {
110
- "color": "primary" as const,
111
- "variant": "pill" as const,
138
+ "color": "primary" as typeof color[number],
139
+ "variant": "pill" as typeof variant[number],
112
140
  "class": {
113
141
  "indicator": "bg-[var(--ui-primary)]",
114
142
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]"
115
143
  }
116
144
  },
117
145
  {
118
- "color": "secondary" as const,
119
- "variant": "pill" as const,
146
+ "color": "secondary" as typeof color[number],
147
+ "variant": "pill" as typeof variant[number],
120
148
  "class": {
121
149
  "indicator": "bg-[var(--ui-secondary)]",
122
150
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-secondary)]"
123
151
  }
124
152
  },
125
153
  {
126
- "color": "success" as const,
127
- "variant": "pill" as const,
154
+ "color": "success" as typeof color[number],
155
+ "variant": "pill" as typeof variant[number],
128
156
  "class": {
129
157
  "indicator": "bg-[var(--ui-success)]",
130
158
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-success)]"
131
159
  }
132
160
  },
133
161
  {
134
- "color": "info" as const,
135
- "variant": "pill" as const,
162
+ "color": "info" as typeof color[number],
163
+ "variant": "pill" as typeof variant[number],
136
164
  "class": {
137
165
  "indicator": "bg-[var(--ui-info)]",
138
166
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-info)]"
139
167
  }
140
168
  },
141
169
  {
142
- "color": "warning" as const,
143
- "variant": "pill" as const,
170
+ "color": "warning" as typeof color[number],
171
+ "variant": "pill" as typeof variant[number],
144
172
  "class": {
145
173
  "indicator": "bg-[var(--ui-warning)]",
146
174
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-warning)]"
147
175
  }
148
176
  },
149
177
  {
150
- "color": "error" as const,
151
- "variant": "pill" as const,
178
+ "color": "error" as typeof color[number],
179
+ "variant": "pill" as typeof variant[number],
152
180
  "class": {
153
181
  "indicator": "bg-[var(--ui-error)]",
154
182
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-error)]"
155
183
  }
156
184
  },
157
185
  {
158
- "color": "neutral" as const,
159
- "variant": "pill" as const,
186
+ "color": "neutral" as typeof color[number],
187
+ "variant": "pill" as typeof variant[number],
160
188
  "class": {
161
189
  "indicator": "bg-[var(--ui-bg-inverted)]",
162
190
  "trigger": "data-[state=active]:text-[var(--ui-bg)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-border-inverted)]"
163
191
  }
164
192
  },
165
193
  {
166
- "color": "primary" as const,
167
- "variant": "link" as const,
194
+ "color": "primary" as typeof color[number],
195
+ "variant": "link" as typeof variant[number],
168
196
  "class": {
169
197
  "indicator": "bg-[var(--ui-primary)]",
170
198
  "trigger": "data-[state=active]:text-[var(--ui-primary)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
171
199
  }
172
200
  },
173
201
  {
174
- "color": "secondary" as const,
175
- "variant": "link" as const,
202
+ "color": "secondary" as typeof color[number],
203
+ "variant": "link" as typeof variant[number],
176
204
  "class": {
177
205
  "indicator": "bg-[var(--ui-secondary)]",
178
206
  "trigger": "data-[state=active]:text-[var(--ui-secondary)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
179
207
  }
180
208
  },
181
209
  {
182
- "color": "success" as const,
183
- "variant": "link" as const,
210
+ "color": "success" as typeof color[number],
211
+ "variant": "link" as typeof variant[number],
184
212
  "class": {
185
213
  "indicator": "bg-[var(--ui-success)]",
186
214
  "trigger": "data-[state=active]:text-[var(--ui-success)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
187
215
  }
188
216
  },
189
217
  {
190
- "color": "info" as const,
191
- "variant": "link" as const,
218
+ "color": "info" as typeof color[number],
219
+ "variant": "link" as typeof variant[number],
192
220
  "class": {
193
221
  "indicator": "bg-[var(--ui-info)]",
194
222
  "trigger": "data-[state=active]:text-[var(--ui-info)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
195
223
  }
196
224
  },
197
225
  {
198
- "color": "warning" as const,
199
- "variant": "link" as const,
226
+ "color": "warning" as typeof color[number],
227
+ "variant": "link" as typeof variant[number],
200
228
  "class": {
201
229
  "indicator": "bg-[var(--ui-warning)]",
202
230
  "trigger": "data-[state=active]:text-[var(--ui-warning)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
203
231
  }
204
232
  },
205
233
  {
206
- "color": "error" as const,
207
- "variant": "link" as const,
234
+ "color": "error" as typeof color[number],
235
+ "variant": "link" as typeof variant[number],
208
236
  "class": {
209
237
  "indicator": "bg-[var(--ui-error)]",
210
238
  "trigger": "data-[state=active]:text-[var(--ui-error)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
211
239
  }
212
240
  },
213
241
  {
214
- "color": "neutral" as const,
215
- "variant": "link" as const,
242
+ "color": "neutral" as typeof color[number],
243
+ "variant": "link" as typeof variant[number],
216
244
  "class": {
217
245
  "indicator": "bg-[var(--ui-bg-inverted)]",
218
246
  "trigger": "data-[state=active]:text-[var(--ui-text-highlighted)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
@@ -220,8 +248,8 @@ export default {
220
248
  }
221
249
  ],
222
250
  "defaultVariants": {
223
- "color": "primary" as const,
224
- "variant": "pill" as const,
225
- "size": "md" as const
251
+ "color": "primary" as typeof color[number],
252
+ "variant": "pill" as typeof variant[number],
253
+ "size": "md" as typeof size[number]
226
254
  }
227
255
  }