badge.ts
7.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
const color = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
const variant = [
"solid",
"outline",
"soft",
"subtle"
] as const
const size = [
"xs",
"sm",
"md",
"lg",
"xl"
] as const
export default {
"slots": {
"base": "font-medium inline-flex items-center",
"label": "truncate",
"leadingIcon": "shrink-0",
"leadingAvatar": "shrink-0",
"leadingAvatarSize": "",
"trailingIcon": "shrink-0"
},
"variants": {
"fieldGroup": {
"horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
"vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
},
"color": {
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"error": "",
"neutral": ""
},
"variant": {
"solid": "",
"outline": "",
"soft": "",
"subtle": ""
},
"size": {
"xs": {
"base": "text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm",
"leadingIcon": "size-3",
"leadingAvatarSize": "3xs",
"trailingIcon": "size-3"
},
"sm": {
"base": "text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm",
"leadingIcon": "size-3",
"leadingAvatarSize": "3xs",
"trailingIcon": "size-3"
},
"md": {
"base": "text-xs px-2 py-1 gap-1 rounded-md",
"leadingIcon": "size-4",
"leadingAvatarSize": "3xs",
"trailingIcon": "size-4"
},
"lg": {
"base": "text-sm px-2 py-1 gap-1.5 rounded-md",
"leadingIcon": "size-5",
"leadingAvatarSize": "2xs",
"trailingIcon": "size-5"
},
"xl": {
"base": "text-base px-2.5 py-1 gap-1.5 rounded-md",
"leadingIcon": "size-6",
"leadingAvatarSize": "2xs",
"trailingIcon": "size-6"
}
},
"square": {
"true": ""
}
},
"compoundVariants": [
{
"color": "primary" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-primary text-inverted"
},
{
"color": "secondary" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-secondary text-inverted"
},
{
"color": "success" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-success text-inverted"
},
{
"color": "info" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-info text-inverted"
},
{
"color": "warning" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-warning text-inverted"
},
{
"color": "error" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "bg-error text-inverted"
},
{
"color": "primary" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-primary ring ring-inset ring-primary/50"
},
{
"color": "secondary" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-secondary ring ring-inset ring-secondary/50"
},
{
"color": "success" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-success ring ring-inset ring-success/50"
},
{
"color": "info" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-info ring ring-inset ring-info/50"
},
{
"color": "warning" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-warning ring ring-inset ring-warning/50"
},
{
"color": "error" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "text-error ring ring-inset ring-error/50"
},
{
"color": "primary" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-primary/10 text-primary"
},
{
"color": "secondary" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-secondary/10 text-secondary"
},
{
"color": "success" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-success/10 text-success"
},
{
"color": "info" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-info/10 text-info"
},
{
"color": "warning" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-warning/10 text-warning"
},
{
"color": "error" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "bg-error/10 text-error"
},
{
"color": "primary" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-primary/10 text-primary ring ring-inset ring-primary/25"
},
{
"color": "secondary" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"
},
{
"color": "success" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-success/10 text-success ring ring-inset ring-success/25"
},
{
"color": "info" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-info/10 text-info ring ring-inset ring-info/25"
},
{
"color": "warning" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-warning/10 text-warning ring ring-inset ring-warning/25"
},
{
"color": "error" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "bg-error/10 text-error ring ring-inset ring-error/25"
},
{
"color": "neutral" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-inverted"
},
{
"color": "neutral" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-accented text-default bg-default"
},
{
"color": "neutral" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-default bg-elevated"
},
{
"color": "neutral" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "ring ring-inset ring-accented text-default bg-elevated"
},
{
"size": "xs" as typeof size[number],
"square": true,
"class": "p-0.5"
},
{
"size": "sm" as typeof size[number],
"square": true,
"class": "p-1"
},
{
"size": "md" as typeof size[number],
"square": true,
"class": "p-1"
},
{
"size": "lg" as typeof size[number],
"square": true,
"class": "p-1"
},
{
"size": "xl" as typeof size[number],
"square": true,
"class": "p-1"
}
],
"defaultVariants": {
"color": "primary" as typeof color[number],
"variant": "solid" as typeof variant[number],
"size": "md" as typeof size[number]
}
}