table.ts
4.09 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
const loadingAnimation = [
"carousel",
"carousel-inverse",
"swing",
"elastic"
] as const
const loadingColor = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
export default {
"slots": {
"root": "relative overflow-auto",
"base": "min-w-full overflow-clip",
"caption": "sr-only",
"thead": "relative",
"tbody": "isolate [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary divide-y divide-default",
"tfoot": "relative",
"tr": "data-[selected=true]:bg-elevated/50",
"th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
"td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
"separator": "absolute z-1 left-0 w-full h-px bg-(--ui-border-accented)",
"empty": "py-6 text-center text-sm text-muted",
"loading": "py-6 text-center"
},
"variants": {
"pinned": {
"true": {
"th": "sticky bg-default/75 z-1",
"td": "sticky bg-default/75 z-1"
}
},
"sticky": {
"true": {
"thead": "sticky top-0 inset-x-0 bg-default/75 backdrop-blur z-1",
"tfoot": "sticky bottom-0 inset-x-0 bg-default/75 backdrop-blur z-1"
},
"header": {
"thead": "sticky top-0 inset-x-0 bg-default/75 backdrop-blur z-1"
},
"footer": {
"tfoot": "sticky bottom-0 inset-x-0 bg-default/75 backdrop-blur z-1"
}
},
"loading": {
"true": {
"thead": "after:absolute after:z-1 after:h-px"
}
},
"loadingAnimation": {
"carousel": "",
"carousel-inverse": "",
"swing": "",
"elastic": ""
},
"loadingColor": {
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"error": "",
"neutral": ""
}
},
"compoundVariants": [
{
"loading": true,
"loadingColor": "primary" as typeof loadingColor[number],
"class": {
"thead": "after:bg-primary"
}
},
{
"loading": true,
"loadingColor": "secondary" as typeof loadingColor[number],
"class": {
"thead": "after:bg-secondary"
}
},
{
"loading": true,
"loadingColor": "success" as typeof loadingColor[number],
"class": {
"thead": "after:bg-success"
}
},
{
"loading": true,
"loadingColor": "info" as typeof loadingColor[number],
"class": {
"thead": "after:bg-info"
}
},
{
"loading": true,
"loadingColor": "warning" as typeof loadingColor[number],
"class": {
"thead": "after:bg-warning"
}
},
{
"loading": true,
"loadingColor": "error" as typeof loadingColor[number],
"class": {
"thead": "after:bg-error"
}
},
{
"loading": true,
"loadingColor": "neutral" as typeof loadingColor[number],
"class": {
"thead": "after:bg-inverted"
}
},
{
"loading": true,
"loadingAnimation": "carousel" as typeof loadingAnimation[number],
"class": {
"thead": "after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]"
}
},
{
"loading": true,
"loadingAnimation": "carousel-inverse" as typeof loadingAnimation[number],
"class": {
"thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
}
},
{
"loading": true,
"loadingAnimation": "swing" as typeof loadingAnimation[number],
"class": {
"thead": "after:animate-[swing_2s_ease-in-out_infinite]"
}
},
{
"loading": true,
"loadingAnimation": "elastic" as typeof loadingAnimation[number],
"class": {
"thead": "after:animate-[elastic_2s_ease-in-out_infinite]"
}
}
],
"defaultVariants": {
"loadingColor": "primary" as typeof loadingColor[number],
"loadingAnimation": "carousel" as typeof loadingAnimation[number]
}
}