chip.ts
2.27 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
const color = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
const size = [
"3xs",
"2xs",
"xs",
"sm",
"md",
"lg",
"xl",
"2xl",
"3xl"
] as const
const position = [
"top-right",
"bottom-right",
"top-left",
"bottom-left"
] as const
export default {
"slots": {
"root": "relative inline-flex items-center justify-center shrink-0",
"base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
},
"variants": {
"color": {
"primary": "bg-primary",
"secondary": "bg-secondary",
"success": "bg-success",
"info": "bg-info",
"warning": "bg-warning",
"error": "bg-error",
"neutral": "bg-inverted"
},
"size": {
"3xs": "h-[4px] min-w-[4px] text-[4px]",
"2xs": "h-[5px] min-w-[5px] text-[5px]",
"xs": "h-[6px] min-w-[6px] text-[6px]",
"sm": "h-[7px] min-w-[7px] text-[7px]",
"md": "h-[8px] min-w-[8px] text-[8px]",
"lg": "h-[9px] min-w-[9px] text-[9px]",
"xl": "h-[10px] min-w-[10px] text-[10px]",
"2xl": "h-[11px] min-w-[11px] text-[11px]",
"3xl": "h-[12px] min-w-[12px] text-[12px]"
},
"position": {
"top-right": "top-0 right-0",
"bottom-right": "bottom-0 right-0",
"top-left": "top-0 left-0",
"bottom-left": "bottom-0 left-0"
},
"inset": {
"false": ""
},
"standalone": {
"false": "absolute"
}
},
"compoundVariants": [
{
"position": "top-right" as typeof position[number],
"inset": false,
"class": "-translate-y-1/2 translate-x-1/2 transform"
},
{
"position": "bottom-right" as typeof position[number],
"inset": false,
"class": "translate-y-1/2 translate-x-1/2 transform"
},
{
"position": "top-left" as typeof position[number],
"inset": false,
"class": "-translate-y-1/2 -translate-x-1/2 transform"
},
{
"position": "bottom-left" as typeof position[number],
"inset": false,
"class": "translate-y-1/2 -translate-x-1/2 transform"
}
],
"defaultVariants": {
"size": "md" as typeof size[number],
"color": "primary" as typeof color[number],
"position": "top-right" as typeof position[number]
}
}