input-time.ts
9.11 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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
const size = [
"xs",
"sm",
"md",
"lg",
"xl"
] as const
const variant = [
"outline",
"soft",
"subtle",
"ghost",
"none"
] as const
const color = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
export default {
"slots": {
"base": [
"group relative inline-flex items-center rounded-md select-none",
"transition-colors"
],
"leading": "absolute inset-y-0 start-0 flex items-center",
"leadingIcon": "shrink-0 text-dimmed",
"leadingAvatar": "shrink-0",
"leadingAvatarSize": "",
"trailing": "absolute inset-y-0 end-0 flex items-center",
"trailingIcon": "shrink-0 text-dimmed",
"segment": [
"rounded text-center outline-hidden data-placeholder:text-dimmed data-[segment=literal]:text-muted data-invalid:text-error data-disabled:cursor-not-allowed data-disabled:opacity-75",
"transition-colors"
],
"separatorIcon": "shrink-0 size-4 text-muted"
},
"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]"
},
"size": {
"xs": {
"base": [
"px-2 py-1 text-sm/4 gap-1",
"gap-0.25"
],
"leading": "ps-2",
"trailing": "pe-2",
"leadingIcon": "size-4",
"leadingAvatarSize": "3xs",
"trailingIcon": "size-4",
"segment": "not-data-[segment=literal]:w-8"
},
"sm": {
"base": [
"px-2.5 py-1.5 text-sm/4 gap-1.5",
"gap-0.5"
],
"leading": "ps-2.5",
"trailing": "pe-2.5",
"leadingIcon": "size-4",
"leadingAvatarSize": "3xs",
"trailingIcon": "size-4",
"segment": "not-data-[segment=literal]:w-8"
},
"md": {
"base": [
"px-2.5 py-1.5 text-base/5 gap-1.5",
"gap-0.5"
],
"leading": "ps-2.5",
"trailing": "pe-2.5",
"leadingIcon": "size-5",
"leadingAvatarSize": "2xs",
"trailingIcon": "size-5",
"segment": "not-data-[segment=literal]:w-9"
},
"lg": {
"base": [
"px-3 py-2 text-base/5 gap-2",
"gap-0.75"
],
"leading": "ps-3",
"trailing": "pe-3",
"leadingIcon": "size-5",
"leadingAvatarSize": "2xs",
"trailingIcon": "size-5",
"segment": "not-data-[segment=literal]:w-9"
},
"xl": {
"base": [
"px-3 py-2 text-base gap-2",
"gap-0.75"
],
"leading": "ps-3",
"trailing": "pe-3",
"leadingIcon": "size-6",
"leadingAvatarSize": "xs",
"trailingIcon": "size-6",
"segment": "not-data-[segment=literal]:w-10"
}
},
"variant": {
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
"none": "text-highlighted bg-transparent"
},
"color": {
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"error": "",
"neutral": ""
},
"leading": {
"true": ""
},
"trailing": {
"true": ""
},
"loading": {
"true": ""
},
"highlight": {
"true": ""
},
"fixed": {
"false": ""
},
"type": {
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
}
},
"compoundVariants": [
{
"variant": "outline" as typeof variant[number],
"class": {
"segment": "focus:bg-elevated"
}
},
{
"variant": "soft" as typeof variant[number],
"class": {
"segment": "focus:bg-accented/50 group-hover:focus:bg-accented"
}
},
{
"variant": "subtle" as typeof variant[number],
"class": {
"segment": "focus:bg-accented"
}
},
{
"variant": "ghost" as typeof variant[number],
"class": {
"segment": "focus:bg-elevated group-hover:focus:bg-accented"
}
},
{
"variant": "none" as typeof variant[number],
"class": {
"segment": "focus:bg-elevated"
}
},
{
"color": "primary" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
},
{
"color": "secondary" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
},
{
"color": "success" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
},
{
"color": "info" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
},
{
"color": "warning" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
},
{
"color": "error" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
},
{
"color": "primary" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-primary"
},
{
"color": "secondary" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-secondary"
},
{
"color": "success" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-success"
},
{
"color": "info" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-info"
},
{
"color": "warning" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-warning"
},
{
"color": "error" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-error"
},
{
"color": "neutral" as typeof color[number],
"variant": [
"outline" as typeof variant[number],
"subtle" as typeof variant[number]
],
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
},
{
"color": "neutral" as typeof color[number],
"highlight": true,
"class": "ring ring-inset ring-inverted"
},
{
"leading": true,
"size": "xs" as typeof size[number],
"class": "ps-7"
},
{
"leading": true,
"size": "sm" as typeof size[number],
"class": "ps-8"
},
{
"leading": true,
"size": "md" as typeof size[number],
"class": "ps-9"
},
{
"leading": true,
"size": "lg" as typeof size[number],
"class": "ps-10"
},
{
"leading": true,
"size": "xl" as typeof size[number],
"class": "ps-11"
},
{
"trailing": true,
"size": "xs" as typeof size[number],
"class": "pe-7"
},
{
"trailing": true,
"size": "sm" as typeof size[number],
"class": "pe-8"
},
{
"trailing": true,
"size": "md" as typeof size[number],
"class": "pe-9"
},
{
"trailing": true,
"size": "lg" as typeof size[number],
"class": "pe-10"
},
{
"trailing": true,
"size": "xl" as typeof size[number],
"class": "pe-11"
},
{
"loading": true,
"leading": true,
"class": {
"leadingIcon": "animate-spin"
}
},
{
"loading": true,
"leading": false,
"trailing": true,
"class": {
"trailingIcon": "animate-spin"
}
},
{
"fixed": false,
"size": "xs" as typeof size[number],
"class": "md:text-xs"
},
{
"fixed": false,
"size": "sm" as typeof size[number],
"class": "md:text-xs"
},
{
"fixed": false,
"size": "md" as typeof size[number],
"class": "md:text-sm"
},
{
"fixed": false,
"size": "lg" as typeof size[number],
"class": "md:text-sm"
}
],
"defaultVariants": {
"size": "md" as typeof size[number],
"color": "primary" as typeof color[number],
"variant": "outline" as typeof variant[number]
}
}