basecoat-css 0.3.11 → 1.0.0-beta.1
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.
- package/README.md +8 -1
- package/dist/base/base.css +150 -0
- package/dist/basecoat-base.cdn.css +2942 -0
- package/dist/basecoat-base.cdn.min.css +2 -0
- package/dist/basecoat-base.css +2 -0
- package/dist/basecoat-components.css +32 -0
- package/dist/basecoat-luma.cdn.css +6073 -0
- package/dist/basecoat-luma.cdn.min.css +2 -0
- package/dist/basecoat-luma.css +2 -0
- package/dist/basecoat-lyra.cdn.css +6004 -0
- package/dist/basecoat-lyra.cdn.min.css +2 -0
- package/dist/basecoat-lyra.css +2 -0
- package/dist/basecoat-maia.cdn.css +6012 -0
- package/dist/basecoat-maia.cdn.min.css +2 -0
- package/dist/basecoat-maia.css +2 -0
- package/dist/basecoat-mira.cdn.css +6063 -0
- package/dist/basecoat-mira.cdn.min.css +2 -0
- package/dist/basecoat-mira.css +2 -0
- package/dist/basecoat-nova.cdn.css +6067 -0
- package/dist/basecoat-nova.cdn.min.css +2 -0
- package/dist/basecoat-nova.css +2 -0
- package/dist/basecoat-rhea.cdn.css +6092 -0
- package/dist/basecoat-rhea.cdn.min.css +2 -0
- package/dist/basecoat-rhea.css +2 -0
- package/dist/basecoat-sera.cdn.css +5840 -0
- package/dist/basecoat-sera.cdn.min.css +2 -0
- package/dist/basecoat-sera.css +2 -0
- package/dist/basecoat-vega.cdn.css +6023 -0
- package/dist/basecoat-vega.cdn.min.css +2 -0
- package/dist/basecoat-vega.css +2 -0
- package/dist/basecoat.all.css +1 -0
- package/dist/basecoat.cdn.css +5084 -2646
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/basecoat.css +1 -1311
- package/dist/components/alert.css +21 -0
- package/dist/components/badge.css +12 -0
- package/dist/components/button-group.css +54 -0
- package/dist/components/button.css +61 -0
- package/dist/components/card.css +22 -0
- package/dist/components/checkbox.css +12 -0
- package/dist/components/collapsible.css +21 -0
- package/dist/components/combobox.css +78 -0
- package/dist/components/command.css +133 -0
- package/dist/components/dialog.css +52 -0
- package/dist/components/dropdown-menu.css +48 -0
- package/dist/components/empty.css +26 -0
- package/dist/components/field.css +86 -0
- package/dist/components/form.css +9 -0
- package/dist/components/input-group.css +50 -0
- package/dist/components/input.css +32 -0
- package/dist/components/item.css +50 -0
- package/dist/components/kbd.css +10 -0
- package/dist/components/label.css +12 -0
- package/dist/components/native-select.css +12 -0
- package/dist/components/popover.css +81 -0
- package/dist/components/radio.css +11 -0
- package/dist/components/range.css +50 -0
- package/dist/components/select.css +64 -0
- package/dist/components/sidebar.css +101 -0
- package/dist/components/skeleton.css +6 -0
- package/dist/components/switch.css +8 -0
- package/dist/components/table.css +34 -0
- package/dist/components/tabs.css +31 -0
- package/dist/components/textarea.css +7 -0
- package/dist/components/toast.css +57 -0
- package/dist/components/tooltip.css +82 -0
- package/dist/js/all.js +1435 -755
- package/dist/js/all.min.js +1 -1
- package/dist/js/basecoat.js +95 -40
- package/dist/js/basecoat.min.js +1 -1
- package/dist/js/combobox.js +483 -0
- package/dist/js/combobox.min.js +1 -0
- package/dist/js/command.js +165 -126
- package/dist/js/command.min.js +1 -1
- package/dist/js/dropdown-menu.js +158 -133
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/popover.js +22 -8
- package/dist/js/popover.min.js +1 -1
- package/dist/js/range.js +25 -0
- package/dist/js/range.min.js +1 -0
- package/dist/js/select.js +347 -359
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +27 -31
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/tabs.js +82 -38
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +42 -37
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +1308 -0
- package/dist/styles/lyra.css +1289 -0
- package/dist/styles/maia.css +1296 -0
- package/dist/styles/mira.css +1297 -0
- package/dist/styles/nova.css +1293 -0
- package/dist/styles/rhea.css +1305 -0
- package/dist/styles/sera.css +1316 -0
- package/dist/styles/vega.css +1293 -0
- package/package.json +51 -3
|
@@ -0,0 +1,1297 @@
|
|
|
1
|
+
/* Button */
|
|
2
|
+
@layer components {
|
|
3
|
+
.btn,
|
|
4
|
+
.btn-primary,
|
|
5
|
+
.btn-secondary,
|
|
6
|
+
.btn-outline,
|
|
7
|
+
.btn-ghost,
|
|
8
|
+
.btn-link,
|
|
9
|
+
.btn-destructive,
|
|
10
|
+
.btn-xs,
|
|
11
|
+
.btn-xs-primary,
|
|
12
|
+
.btn-xs-secondary,
|
|
13
|
+
.btn-xs-outline,
|
|
14
|
+
.btn-xs-ghost,
|
|
15
|
+
.btn-xs-link,
|
|
16
|
+
.btn-xs-destructive,
|
|
17
|
+
.btn-sm,
|
|
18
|
+
.btn-sm-primary,
|
|
19
|
+
.btn-sm-secondary,
|
|
20
|
+
.btn-sm-outline,
|
|
21
|
+
.btn-sm-ghost,
|
|
22
|
+
.btn-sm-link,
|
|
23
|
+
.btn-sm-destructive,
|
|
24
|
+
.btn-lg,
|
|
25
|
+
.btn-lg-primary,
|
|
26
|
+
.btn-lg-secondary,
|
|
27
|
+
.btn-lg-outline,
|
|
28
|
+
.btn-lg-ghost,
|
|
29
|
+
.btn-lg-link,
|
|
30
|
+
.btn-lg-destructive,
|
|
31
|
+
.btn-icon,
|
|
32
|
+
.btn-icon-primary,
|
|
33
|
+
.btn-icon-secondary,
|
|
34
|
+
.btn-icon-outline,
|
|
35
|
+
.btn-icon-ghost,
|
|
36
|
+
.btn-icon-link,
|
|
37
|
+
.btn-icon-destructive,
|
|
38
|
+
.btn-xs-icon,
|
|
39
|
+
.btn-xs-icon-primary,
|
|
40
|
+
.btn-xs-icon-secondary,
|
|
41
|
+
.btn-xs-icon-outline,
|
|
42
|
+
.btn-xs-icon-ghost,
|
|
43
|
+
.btn-xs-icon-link,
|
|
44
|
+
.btn-xs-icon-destructive,
|
|
45
|
+
.btn-sm-icon,
|
|
46
|
+
.btn-sm-icon-primary,
|
|
47
|
+
.btn-sm-icon-secondary,
|
|
48
|
+
.btn-sm-icon-outline,
|
|
49
|
+
.btn-sm-icon-ghost,
|
|
50
|
+
.btn-sm-icon-link,
|
|
51
|
+
.btn-sm-icon-destructive,
|
|
52
|
+
.btn-lg-icon,
|
|
53
|
+
.btn-lg-icon-primary,
|
|
54
|
+
.btn-lg-icon-secondary,
|
|
55
|
+
.btn-lg-icon-outline,
|
|
56
|
+
.btn-lg-icon-ghost,
|
|
57
|
+
.btn-lg-icon-link,
|
|
58
|
+
.btn-lg-icon-destructive {
|
|
59
|
+
@apply rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.btn,
|
|
63
|
+
.btn-primary,
|
|
64
|
+
.btn-secondary,
|
|
65
|
+
.btn-outline,
|
|
66
|
+
.btn-ghost,
|
|
67
|
+
.btn-link,
|
|
68
|
+
.btn-destructive {
|
|
69
|
+
@apply h-7 gap-1 px-2 text-xs/relaxed;
|
|
70
|
+
|
|
71
|
+
&:has(> [data-icon=inline-start]) {
|
|
72
|
+
@apply ps-1.5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:has(> [data-icon=inline-end]) {
|
|
76
|
+
@apply pe-1.5;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.btn-xs,
|
|
81
|
+
.btn-xs-primary,
|
|
82
|
+
.btn-xs-secondary,
|
|
83
|
+
.btn-xs-outline,
|
|
84
|
+
.btn-xs-ghost,
|
|
85
|
+
.btn-xs-link,
|
|
86
|
+
.btn-xs-destructive {
|
|
87
|
+
@apply h-5 gap-1 px-2 text-[0.625rem] rounded-sm [&_svg:not([class*='size-'])]:size-2.5;
|
|
88
|
+
|
|
89
|
+
&:has(> [data-icon=inline-start]) {
|
|
90
|
+
@apply ps-1.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:has(> [data-icon=inline-end]) {
|
|
94
|
+
@apply pe-1.5;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.btn-sm,
|
|
99
|
+
.btn-sm-primary,
|
|
100
|
+
.btn-sm-secondary,
|
|
101
|
+
.btn-sm-outline,
|
|
102
|
+
.btn-sm-ghost,
|
|
103
|
+
.btn-sm-link,
|
|
104
|
+
.btn-sm-destructive {
|
|
105
|
+
@apply h-6 gap-1 px-2 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3;
|
|
106
|
+
|
|
107
|
+
&:has(> [data-icon=inline-start]) {
|
|
108
|
+
@apply ps-1.5;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:has(> [data-icon=inline-end]) {
|
|
112
|
+
@apply pe-1.5;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-lg,
|
|
117
|
+
.btn-lg-primary,
|
|
118
|
+
.btn-lg-secondary,
|
|
119
|
+
.btn-lg-outline,
|
|
120
|
+
.btn-lg-ghost,
|
|
121
|
+
.btn-lg-link,
|
|
122
|
+
.btn-lg-destructive {
|
|
123
|
+
@apply h-8 gap-1 px-2.5 text-xs/relaxed;
|
|
124
|
+
|
|
125
|
+
&:has(> [data-icon=inline-start]) {
|
|
126
|
+
@apply ps-2;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:has(> [data-icon=inline-end]) {
|
|
130
|
+
@apply pe-2;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.btn-icon,
|
|
135
|
+
.btn-icon-primary,
|
|
136
|
+
.btn-icon-secondary,
|
|
137
|
+
.btn-icon-outline,
|
|
138
|
+
.btn-icon-ghost,
|
|
139
|
+
.btn-icon-link,
|
|
140
|
+
.btn-icon-destructive {
|
|
141
|
+
@apply size-7 [&_svg:not([class*='size-'])]:size-3.5;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.btn-xs-icon,
|
|
145
|
+
.btn-xs-icon-primary,
|
|
146
|
+
.btn-xs-icon-secondary,
|
|
147
|
+
.btn-xs-icon-outline,
|
|
148
|
+
.btn-xs-icon-ghost,
|
|
149
|
+
.btn-xs-icon-link,
|
|
150
|
+
.btn-xs-icon-destructive {
|
|
151
|
+
@apply size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.btn-sm-icon,
|
|
155
|
+
.btn-sm-icon-primary,
|
|
156
|
+
.btn-sm-icon-secondary,
|
|
157
|
+
.btn-sm-icon-outline,
|
|
158
|
+
.btn-sm-icon-ghost,
|
|
159
|
+
.btn-sm-icon-link,
|
|
160
|
+
.btn-sm-icon-destructive {
|
|
161
|
+
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.btn-lg-icon,
|
|
165
|
+
.btn-lg-icon-primary,
|
|
166
|
+
.btn-lg-icon-secondary,
|
|
167
|
+
.btn-lg-icon-outline,
|
|
168
|
+
.btn-lg-icon-ghost,
|
|
169
|
+
.btn-lg-icon-link,
|
|
170
|
+
.btn-lg-icon-destructive {
|
|
171
|
+
@apply size-8 [&_svg:not([class*='size-'])]:size-4;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.btn,
|
|
175
|
+
.btn-primary,
|
|
176
|
+
.btn-xs,
|
|
177
|
+
.btn-xs-primary,
|
|
178
|
+
.btn-sm,
|
|
179
|
+
.btn-sm-primary,
|
|
180
|
+
.btn-lg,
|
|
181
|
+
.btn-lg-primary,
|
|
182
|
+
.btn-icon,
|
|
183
|
+
.btn-icon-primary,
|
|
184
|
+
.btn-xs-icon,
|
|
185
|
+
.btn-xs-icon-primary,
|
|
186
|
+
.btn-sm-icon,
|
|
187
|
+
.btn-sm-icon-primary,
|
|
188
|
+
.btn-lg-icon,
|
|
189
|
+
.btn-lg-icon-primary {
|
|
190
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.btn-secondary,
|
|
194
|
+
.btn-xs-secondary,
|
|
195
|
+
.btn-sm-secondary,
|
|
196
|
+
.btn-lg-secondary,
|
|
197
|
+
.btn-icon-secondary,
|
|
198
|
+
.btn-xs-icon-secondary,
|
|
199
|
+
.btn-sm-icon-secondary,
|
|
200
|
+
.btn-lg-icon-secondary {
|
|
201
|
+
@apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.btn-outline,
|
|
205
|
+
.btn-xs-outline,
|
|
206
|
+
.btn-sm-outline,
|
|
207
|
+
.btn-lg-outline,
|
|
208
|
+
.btn-icon-outline,
|
|
209
|
+
.btn-xs-icon-outline,
|
|
210
|
+
.btn-sm-icon-outline,
|
|
211
|
+
.btn-lg-icon-outline {
|
|
212
|
+
@apply border-border hover:bg-input/50 hover:text-foreground dark:border-input dark:bg-input/30 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.btn-ghost,
|
|
216
|
+
.btn-xs-ghost,
|
|
217
|
+
.btn-sm-ghost,
|
|
218
|
+
.btn-lg-ghost,
|
|
219
|
+
.btn-icon-ghost,
|
|
220
|
+
.btn-xs-icon-ghost,
|
|
221
|
+
.btn-sm-icon-ghost,
|
|
222
|
+
.btn-lg-icon-ghost {
|
|
223
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.btn-link,
|
|
227
|
+
.btn-xs-link,
|
|
228
|
+
.btn-sm-link,
|
|
229
|
+
.btn-lg-link,
|
|
230
|
+
.btn-icon-link,
|
|
231
|
+
.btn-xs-icon-link,
|
|
232
|
+
.btn-sm-icon-link,
|
|
233
|
+
.btn-lg-icon-link {
|
|
234
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.btn-destructive,
|
|
238
|
+
.btn-xs-destructive,
|
|
239
|
+
.btn-sm-destructive,
|
|
240
|
+
.btn-lg-destructive,
|
|
241
|
+
.btn-icon-destructive,
|
|
242
|
+
.btn-xs-icon-destructive,
|
|
243
|
+
.btn-sm-icon-destructive,
|
|
244
|
+
.btn-lg-icon-destructive {
|
|
245
|
+
@apply bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Button Group */
|
|
249
|
+
.button-group {
|
|
250
|
+
@apply has-[>.button-group]:gap-2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.button-group:not([data-orientation='vertical']) {
|
|
254
|
+
> :last-child,
|
|
255
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
256
|
+
@apply rounded-e-md!;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.button-group[data-orientation='vertical'] {
|
|
261
|
+
> :last-child,
|
|
262
|
+
> :is(.dropdown-menu, .popover, .select):last-child > button {
|
|
263
|
+
@apply rounded-b-md!;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.button-group-text {
|
|
268
|
+
@apply bg-muted gap-2 rounded-md border px-2.5 text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.button-group > hr[role='separator'],
|
|
272
|
+
.button-group-separator {
|
|
273
|
+
@apply bg-input;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/* Tabs */
|
|
278
|
+
.tabs {
|
|
279
|
+
@apply gap-2;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.tabs > [role='tablist'] {
|
|
283
|
+
@apply rounded-lg p-[3px] h-8;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.tabs > [role='tablist']:not([data-variant='line']) {
|
|
287
|
+
@apply bg-muted;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.tabs > [role='tablist'][data-variant='line'] {
|
|
291
|
+
@apply gap-1 rounded-none bg-transparent;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] {
|
|
295
|
+
@apply h-fit ;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.tabs > [role='tablist'] > [role='tab'] {
|
|
299
|
+
@apply text-foreground/60 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:text-muted-foreground dark:hover:text-foreground gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-3.5 focus-visible:ring-[3px] focus-visible:outline-1;
|
|
300
|
+
@apply after:absolute after:bg-foreground after:opacity-0 after:transition-opacity;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.tabs > [role='tablist'][aria-orientation='vertical'] > [role='tab'] {
|
|
304
|
+
@apply w-full justify-start py-[calc(--spacing(1.25))];
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='horizontal'] > [role='tab'] {
|
|
308
|
+
@apply bg-transparent shadow-none after:inset-x-0 after:bottom-[-5px] after:h-0.5;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.tabs > [role='tablist'][data-variant='line'][aria-orientation='vertical'] > [role='tab'] {
|
|
312
|
+
@apply bg-transparent shadow-none after:inset-y-0 after:end-[-4px] after:w-0.5;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.tabs > [role='tablist']:not([data-variant='line']) > [role='tab'][aria-selected='true'] {
|
|
316
|
+
@apply bg-background text-foreground dark:border-input dark:bg-input/30 dark:text-foreground shadow-sm;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.tabs > [role='tablist'][data-variant='line'] > [role='tab'][aria-selected='true'] {
|
|
320
|
+
@apply bg-transparent text-foreground shadow-none dark:border-transparent dark:bg-transparent dark:text-foreground after:opacity-100;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:first-child) {
|
|
324
|
+
@apply ps-1;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.tabs > [role='tablist'] > [role='tab']:has(> svg:last-child) {
|
|
328
|
+
@apply pe-1;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.tabs > [role='tabpanel'] {
|
|
332
|
+
@apply text-xs/relaxed;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* Textarea */
|
|
336
|
+
.field > textarea,
|
|
337
|
+
.textarea {
|
|
338
|
+
@apply border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 resize-none rounded-md border px-2 py-2 text-sm transition-colors focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
339
|
+
}
|
|
340
|
+
/* Input */
|
|
341
|
+
.field > input[type='text']:not(:is(.command > header input, .dialog > * > header input)),
|
|
342
|
+
.field > input[type='email'],
|
|
343
|
+
.field > input[type='password'],
|
|
344
|
+
.field > input[type='number'],
|
|
345
|
+
.field > input[type='file'],
|
|
346
|
+
.field > input[type='tel'],
|
|
347
|
+
.field > input[type='url'],
|
|
348
|
+
.field > input[type='search']:not(:is(.command > header input, .dialog > * > header input)),
|
|
349
|
+
.field > input[type='date'],
|
|
350
|
+
.field > input[type='datetime-local'],
|
|
351
|
+
.field > input[type='month'],
|
|
352
|
+
.field > input[type='week'],
|
|
353
|
+
.field > input[type='time'],
|
|
354
|
+
.field > input:not([type]),
|
|
355
|
+
.input[type='text'],
|
|
356
|
+
.input[type='email'],
|
|
357
|
+
.input[type='password'],
|
|
358
|
+
.input[type='number'],
|
|
359
|
+
.input[type='file'],
|
|
360
|
+
.input[type='tel'],
|
|
361
|
+
.input[type='url'],
|
|
362
|
+
.input[type='search'],
|
|
363
|
+
.input[type='date'],
|
|
364
|
+
.input[type='datetime-local'],
|
|
365
|
+
.input[type='month'],
|
|
366
|
+
.input[type='week'],
|
|
367
|
+
.input[type='time'],
|
|
368
|
+
.input:not([type]) {
|
|
369
|
+
@apply bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-2 aria-invalid:ring-2 md:text-xs/relaxed;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Native Select */
|
|
373
|
+
.field > select,
|
|
374
|
+
select.select {
|
|
375
|
+
@apply border-input bg-input/20 placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 w-fit rounded-md border py-0.5 ps-2 pe-6 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem];
|
|
376
|
+
@apply bg-[image:var(--chevron-down-icon-50)] bg-no-repeat bg-position-[center_right_0.375rem] bg-size-[0.875rem] data-[size=sm]:bg-size-[0.75rem];
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
:is(.field > select, select.select):dir(rtl) {
|
|
380
|
+
@apply bg-position-[center_left_0.375rem];
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* Alert */
|
|
384
|
+
.alert,
|
|
385
|
+
.alert-destructive {
|
|
386
|
+
@apply grid gap-0.5 rounded-lg border px-2 py-1.5 text-start text-xs/relaxed has-[>[data-action]]:relative has-[>[data-action]]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-3.5;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.alert {
|
|
390
|
+
@apply bg-card text-card-foreground;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.alert-destructive {
|
|
394
|
+
@apply text-destructive bg-card [&>section]:text-destructive/90 [&>svg]:text-current;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
398
|
+
.alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
399
|
+
@apply font-medium;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
:is(.alert, .alert-destructive):has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
404
|
+
@apply col-start-2;
|
|
405
|
+
}
|
|
406
|
+
.alert > section,
|
|
407
|
+
.alert-destructive > section {
|
|
408
|
+
@apply text-muted-foreground text-xs/relaxed text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.alert > [data-action],
|
|
412
|
+
.alert-destructive > [data-action] {
|
|
413
|
+
@apply absolute top-1.5 end-2;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Badge */
|
|
417
|
+
.badge,
|
|
418
|
+
.badge-primary,
|
|
419
|
+
.badge-secondary,
|
|
420
|
+
.badge-destructive,
|
|
421
|
+
.badge-outline,
|
|
422
|
+
.badge-ghost,
|
|
423
|
+
.badge-link {
|
|
424
|
+
@apply h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium transition-all has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:size-2.5!;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.badge,
|
|
428
|
+
.badge-primary {
|
|
429
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.badge-secondary {
|
|
433
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.badge-outline {
|
|
437
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.badge-destructive {
|
|
441
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.badge-ghost {
|
|
445
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.badge-link {
|
|
449
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Command */
|
|
453
|
+
.command {
|
|
454
|
+
@apply bg-popover text-popover-foreground rounded-xl p-1;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.command-dialog > * {
|
|
458
|
+
@apply rounded-xl p-0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.command > header {
|
|
462
|
+
@apply m-1 mb-0 h-8 gap-2 rounded-lg bg-input/20 px-2 dark:bg-input/30;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.command > header svg {
|
|
466
|
+
@apply size-3.5 opacity-50;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.command > header input {
|
|
470
|
+
@apply h-full text-xs/relaxed placeholder:text-muted-foreground;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.command [role='menu'] {
|
|
474
|
+
@apply max-h-72 scroll-py-1;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
478
|
+
@apply py-6 text-center text-xs/relaxed;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.command [role='group'] {
|
|
482
|
+
@apply p-1 text-foreground;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.command [role='heading'] {
|
|
486
|
+
@apply text-muted-foreground px-2.5 py-1.5 text-xs font-medium;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.command [role='separator'] {
|
|
490
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.command [role='menuitem'] {
|
|
494
|
+
@apply min-h-7 gap-2 rounded-md px-2.5 py-1.5 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.command [role='menuitem'].active {
|
|
498
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.command [data-shortcut] {
|
|
502
|
+
@apply text-muted-foreground text-[0.625rem] tracking-widest;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.command [role='menuitem'].active [data-shortcut] {
|
|
506
|
+
@apply text-foreground;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
/* Combobox */
|
|
511
|
+
.combobox > input[role='combobox'] {
|
|
512
|
+
@apply border-input bg-input/20 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border py-1 ps-2 pe-6 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.combobox > svg,
|
|
516
|
+
.combobox-trigger-icon {
|
|
517
|
+
@apply text-muted-foreground end-2 top-1/2 size-3.5 -translate-y-1/2;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.combobox [data-popover] {
|
|
521
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 dark:bg-popover max-h-72 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.combobox [role='listbox'] {
|
|
525
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
529
|
+
@apply px-3 py-2 text-center text-xs/relaxed text-muted-foreground;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.combobox [role='heading'] {
|
|
533
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.combobox [role='option'] {
|
|
537
|
+
@apply min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.combobox [role='option'].active,
|
|
541
|
+
.combobox [role='option']:focus-visible {
|
|
542
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.combobox [role='group'] {
|
|
546
|
+
@apply scroll-my-1 p-1;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.combobox [role='separator'] {
|
|
550
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.combobox-chips {
|
|
554
|
+
@apply bg-input/20 dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/30 has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40 has-[[aria-invalid=true]]:border-destructive dark:has-[[aria-invalid=true]]:border-destructive/50 min-h-7 gap-1 rounded-md border bg-clip-padding px-1 py-0.5 text-xs/relaxed transition-colors focus-within:ring-2 has-[[aria-invalid=true]]:ring-2;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.combobox-chip {
|
|
558
|
+
@apply bg-muted-foreground/10 text-foreground h-4.75 gap-1 rounded-[calc(var(--radius-sm)-2px)] px-1.5 text-xs/relaxed font-medium has-[>.combobox-chip-remove]:pe-0;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.combobox-chip-remove {
|
|
562
|
+
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3;
|
|
563
|
+
}
|
|
564
|
+
/* Select */
|
|
565
|
+
*:not(select).select > button {
|
|
566
|
+
@apply border-input bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem] gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-3.5;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
*:not(select).select > button > span {
|
|
570
|
+
@apply gap-1.5;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
*:not(select).select > button > svg {
|
|
574
|
+
@apply text-muted-foreground size-3.5;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
*:not(select).select [data-popover] {
|
|
578
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
*:not(select).select [role='listbox'] {
|
|
585
|
+
@apply scroll-py-1;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
*:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
589
|
+
@apply px-3 py-2 text-center text-xs;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
*:not(select).select [role='heading'] {
|
|
593
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
*:not(select).select [role='option'] {
|
|
597
|
+
@apply min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
*:not(select).select [role='option'][aria-selected='true'] {
|
|
601
|
+
@apply pe-8;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
*:not(select).select [role='option'].active,
|
|
605
|
+
*:not(select).select [role='option']:focus-visible {
|
|
606
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
*:not(select).select [role='group'] {
|
|
610
|
+
@apply scroll-my-1 p-1;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
*:not(select).select [role='separator'] {
|
|
614
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
/* Dialog */
|
|
619
|
+
.dialog::backdrop,
|
|
620
|
+
.command-dialog::backdrop {
|
|
621
|
+
@apply bg-black/80 backdrop-blur-xs duration-100;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.dialog > * {
|
|
625
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-xs/relaxed ring-1 duration-100 sm:max-w-sm;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.dialog > * > :is(button, form[method='dialog']) {
|
|
629
|
+
@apply top-2 end-2;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.dialog > * > header {
|
|
633
|
+
@apply gap-1;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.dialog > * > footer {
|
|
637
|
+
@apply gap-2;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.dialog > * > header > h2,
|
|
641
|
+
.dialog > * > [data-title] {
|
|
642
|
+
@apply text-sm font-medium;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.dialog > * > header > p,
|
|
646
|
+
.dialog > * > [data-description] {
|
|
647
|
+
@apply text-muted-foreground text-xs/relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* Dropdown Menu */
|
|
651
|
+
.dropdown-menu > [data-popover] {
|
|
652
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
656
|
+
@apply min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg:not([class*='size-'])]:size-3.5;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
|
|
660
|
+
@apply bg-accent text-accent-foreground;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.dropdown-menu [data-variant='destructive'] {
|
|
664
|
+
@apply text-destructive;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.dropdown-menu [data-variant='destructive']:is(:focus-visible, .active) {
|
|
668
|
+
@apply bg-destructive/10 text-destructive dark:bg-destructive/20;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.dropdown-menu [data-variant='destructive'] svg {
|
|
672
|
+
@apply text-destructive;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
676
|
+
@apply py-1.5 pe-8 ps-2 text-xs;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
|
|
680
|
+
.dropdown-menu [role='heading'][data-inset] {
|
|
681
|
+
@apply ps-7.5;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.dropdown-menu [data-indicator] {
|
|
685
|
+
@apply absolute end-2 flex items-center justify-center;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.dropdown-menu [role='heading'] {
|
|
689
|
+
@apply text-muted-foreground px-2 py-1.5 text-xs;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.dropdown-menu [role='separator'] {
|
|
693
|
+
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.dropdown-menu [data-shortcut] {
|
|
697
|
+
@apply text-muted-foreground text-[0.625rem] tracking-widest;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
|
|
701
|
+
@apply text-accent-foreground;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/* Popover */
|
|
705
|
+
[data-popover] {
|
|
706
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 flex flex-col gap-4 rounded-lg p-2.5 text-xs shadow-md ring-1 duration-100;
|
|
707
|
+
}
|
|
708
|
+
.popover > [data-popover] > header,
|
|
709
|
+
.popover > [data-popover] > [data-header] {
|
|
710
|
+
@apply flex flex-col gap-1 text-xs;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.popover > [data-popover] > header > :is(h1, h2, h3, h4, h5, h6),
|
|
714
|
+
.popover > [data-popover] > :is(h1, h2, h3, h4, h5, h6, [data-title]) {
|
|
715
|
+
@apply text-sm font-medium;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.popover > [data-popover] > header > p,
|
|
719
|
+
.popover > [data-popover] > [data-description] {
|
|
720
|
+
@apply text-muted-foreground;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/* Card */
|
|
724
|
+
.card {
|
|
725
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 [&>img:first-child]:rounded-t-lg [&>img:last-child]:rounded-b-lg;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.card > header {
|
|
729
|
+
@apply gap-1 rounded-t-lg px-4 in-data-[size=sm]:px-3 [.border-b]:pb-4 in-data-[size=sm]:[.border-b]:pb-3;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.card > header > :is(h2, h3, [data-title], .card-title) {
|
|
733
|
+
@apply text-sm font-medium;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.card > header > :is(p, [data-description], .card-description) {
|
|
737
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.card > section {
|
|
741
|
+
@apply px-4 in-data-[size=sm]:px-3;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.card > footer {
|
|
745
|
+
@apply rounded-b-lg px-4 in-data-[size=sm]:px-3 [.border-t]:pt-4 in-data-[size=sm]:[.border-t]:pt-3;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/* Checkbox */
|
|
749
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
750
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
751
|
+
@apply border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border transition-shadow in-data-[disabled=true]:opacity-50 focus-visible:ring-2 aria-invalid:ring-2;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
:is(.field > input[type='checkbox']:not([role='switch']), .input[type='checkbox']:not([role='switch'])):checked:after {
|
|
755
|
+
@apply size-3.5;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/* Radio */
|
|
759
|
+
[role='radiogroup'] {
|
|
760
|
+
@apply grid gap-3;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.field > input[type='radio'],
|
|
764
|
+
.input[type='radio'] {
|
|
765
|
+
@apply border-input dark:bg-input/30 checked:bg-primary checked:text-primary-foreground dark:checked:bg-primary checked:border-primary aria-invalid:checked:border-primary aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-3 aria-invalid:ring-3;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:is(.field > input[type='radio'], .input[type='radio']):checked:before {
|
|
769
|
+
@apply bg-primary-foreground size-2;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/* Switch */
|
|
773
|
+
.field > input[type='checkbox'][role='switch'],
|
|
774
|
+
.input[type='checkbox'][role='switch'] {
|
|
775
|
+
@apply checked:bg-primary not-checked:bg-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:not-checked:bg-input/80 rounded-full border border-transparent focus-visible:ring-2 aria-invalid:ring-2;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']) {
|
|
779
|
+
@apply h-[16.6px] w-[28px];
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm'] {
|
|
783
|
+
@apply h-[14px] w-[24px];
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
787
|
+
@apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
|
791
|
+
@apply size-3.5;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch'])[data-size='sm']:before {
|
|
795
|
+
@apply size-3;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:not([data-size='sm']):before {
|
|
799
|
+
@apply translate-x-[calc(100%-2px)];
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked[data-size='sm']:before {
|
|
803
|
+
@apply translate-x-[calc(100%-2px)];
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked:not([data-size='sm']):before {
|
|
807
|
+
@apply -translate-x-[calc(100%-2px)];
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):dir(rtl):checked[data-size='sm']:before {
|
|
811
|
+
@apply -translate-x-[calc(100%-2px)];
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
815
|
+
@apply translate-x-0;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
/* Field */
|
|
820
|
+
.fieldset {
|
|
821
|
+
@apply gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.fieldset > legend,
|
|
825
|
+
.field-legend {
|
|
826
|
+
@apply mb-2 font-medium data-[variant=label]:text-xs/relaxed data-[variant=legend]:text-sm;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
830
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
831
|
+
@apply gap-4;
|
|
832
|
+
|
|
833
|
+
&[role='radiogroup'],
|
|
834
|
+
&[data-slot='checkbox-group'],
|
|
835
|
+
&[data-slot='radio-group'] {
|
|
836
|
+
@apply gap-3;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
:is(.fieldset, .field) > :is([role='group'], [role='radiogroup']):not(.field) > :is([role='group'], [role='radiogroup']):not(.field),
|
|
841
|
+
.field > fieldset:not(.field) > :is([role='group'], [role='radiogroup']):not(.field) {
|
|
842
|
+
@apply gap-4;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.field {
|
|
846
|
+
@apply data-[invalid=true]:text-destructive gap-2;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.field > section,
|
|
850
|
+
.field-content {
|
|
851
|
+
@apply gap-0.5;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.field > label,
|
|
855
|
+
label:has(> .field) {
|
|
856
|
+
@apply has-[:checked]:bg-primary/5 dark:has-[:checked]:bg-primary/10 gap-2 leading-snug in-data-[disabled=true]:opacity-50;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.field > label:has(input[type='radio']),
|
|
860
|
+
.field > label:has(input[type='checkbox']),
|
|
861
|
+
.field > label:has(input[role='switch']),
|
|
862
|
+
.field > label:has(> .field),
|
|
863
|
+
label:has(> .field) {
|
|
864
|
+
@apply rounded-md border;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.field > label:has(input[type='radio']),
|
|
868
|
+
.field > label:has(input[type='checkbox']),
|
|
869
|
+
.field > label:has(input[role='switch']) {
|
|
870
|
+
@apply p-2;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
:is(.field > label, label:has(> .field)) > .field {
|
|
874
|
+
@apply p-2;
|
|
875
|
+
}
|
|
876
|
+
.field h2,
|
|
877
|
+
.field h3,
|
|
878
|
+
.field-title {
|
|
879
|
+
@apply gap-2 text-xs/relaxed font-medium in-data-[disabled=true]:opacity-50;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.fieldset legend + p,
|
|
883
|
+
.field > p,
|
|
884
|
+
.field section > p,
|
|
885
|
+
.field-description {
|
|
886
|
+
@apply text-muted-foreground text-start text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.field-separator {
|
|
890
|
+
@apply -my-2 h-5 text-xs/relaxed in-data-[variant=outline]:-mb-2;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.field-separator > span {
|
|
894
|
+
@apply text-muted-foreground px-2;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.field [role="alert"],
|
|
898
|
+
.field-error {
|
|
899
|
+
@apply text-destructive text-xs/relaxed;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/* Input Group */
|
|
903
|
+
.input-group {
|
|
904
|
+
@apply h-8 has-[>textarea]:h-auto rounded-md border border-input bg-muted/20 transition-[color,box-shadow] focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30 has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-2 has-[[aria-invalid=true]]:ring-destructive/20 has-[>textarea]:rounded-md dark:bg-input/30 dark:has-[[aria-invalid=true]]:ring-destructive/40;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
.input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
|
|
909
|
+
@apply opacity-50;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.input-group > :is(input, select, [data-control]) {
|
|
913
|
+
@apply px-2 py-0.5 text-xs/relaxed;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
|
|
917
|
+
@apply ps-1.5;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
|
|
921
|
+
@apply pe-1.5;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.input-group > textarea {
|
|
925
|
+
@apply px-2 py-2 text-xs/relaxed;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.input-group > :is(span, [role='group'], header, footer),
|
|
929
|
+
.input-group > :is(svg, kbd, .popover, .dropdown-menu) {
|
|
930
|
+
@apply gap-1 py-2 text-xs/relaxed font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-3.5;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.input-group > [data-align='start'] {
|
|
934
|
+
@apply ps-2;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.input-group > [data-align='end'] {
|
|
938
|
+
@apply pe-2;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.input-group > [data-align='start']:has(> button) {
|
|
942
|
+
@apply -ms-1;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
.input-group > [data-align='end']:has(> button) {
|
|
946
|
+
@apply -me-1;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.input-group > [data-align='start']:has(> kbd) {
|
|
950
|
+
@apply -ms-0.5;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.input-group > [data-align='end']:has(> kbd) {
|
|
954
|
+
@apply -me-0.5;
|
|
955
|
+
}
|
|
956
|
+
.input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
|
|
957
|
+
@apply px-2;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
|
|
961
|
+
@apply rounded-[calc(var(--radius-sm)-2px)] bg-muted-foreground/10 px-1 text-[0.625rem];
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button) {
|
|
965
|
+
@apply gap-2 rounded-[calc(var(--radius-sm)-2px)] text-xs/relaxed shadow-none [&>svg:not([class*='size-'])]:size-3;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
.input-group > :is(button, [role='group'] > button, header > button, footer > button):has(> svg):not(:has(> :not(svg))) {
|
|
970
|
+
@apply size-6 p-0;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/* Empty */
|
|
974
|
+
.empty {
|
|
975
|
+
@apply gap-4 rounded-xl border-dashed p-6;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.empty > header {
|
|
979
|
+
@apply gap-1;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.empty figure {
|
|
983
|
+
@apply mb-2;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.empty figure:has(> svg:only-child) {
|
|
987
|
+
@apply bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md [&_svg:not([class*='size-'])]:size-4;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.empty :is(h2, h3, h4) {
|
|
991
|
+
@apply text-sm font-medium tracking-tight;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.empty p {
|
|
995
|
+
@apply text-muted-foreground text-xs/relaxed;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.empty > :is(section, footer) {
|
|
999
|
+
@apply gap-2 text-xs/relaxed;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/* Item */
|
|
1003
|
+
.item {
|
|
1004
|
+
@apply rounded-md border text-xs/relaxed;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.item:not([data-variant]),
|
|
1008
|
+
.item[data-variant='default'] {
|
|
1009
|
+
@apply border-transparent;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.item[data-variant='outline'] {
|
|
1013
|
+
@apply border-border;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.item[data-variant='muted'] {
|
|
1017
|
+
@apply bg-muted/50 border-transparent;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.item:not([data-size]),
|
|
1021
|
+
.item[data-size='default'] {
|
|
1022
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.item[data-size='sm'] {
|
|
1026
|
+
@apply gap-2.5 px-3 py-2.5;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.item[data-size='xs'] {
|
|
1030
|
+
@apply gap-2.5 px-2.5 py-2;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.item > figure {
|
|
1034
|
+
@apply gap-2;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.item:has(p) > figure {
|
|
1038
|
+
@apply translate-y-0.5 self-start;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.item > figure:has(> svg:only-child) {
|
|
1042
|
+
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.item > figure:has(img) {
|
|
1046
|
+
@apply size-8 overflow-hidden rounded-sm;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.item[data-size='sm'] > figure:has(img) {
|
|
1050
|
+
@apply size-8;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.item[data-size='xs'] > figure:has(img) {
|
|
1054
|
+
@apply size-6;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.item > section {
|
|
1058
|
+
@apply gap-1;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.item[data-size='xs'] > section {
|
|
1062
|
+
@apply gap-0.5;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.item :is(h2, h3, h4) {
|
|
1066
|
+
@apply gap-2 text-xs/relaxed leading-snug font-medium underline-offset-4;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.item p {
|
|
1070
|
+
@apply text-xs/relaxed;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.item[data-size='xs'] p {
|
|
1074
|
+
@apply text-xs/relaxed;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.item > aside,
|
|
1078
|
+
.item > :is(header, footer) {
|
|
1079
|
+
@apply gap-2;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.item-group {
|
|
1083
|
+
@apply gap-4;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.item-group:has(> .item[data-size='sm']) {
|
|
1087
|
+
@apply gap-2.5;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.item-group:has(> .item[data-size='xs']) {
|
|
1091
|
+
@apply gap-2;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.item-group > hr {
|
|
1095
|
+
@apply my-2;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* Kbd */
|
|
1099
|
+
.kbd {
|
|
1100
|
+
@apply bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-xs px-1 font-sans text-[0.625rem] font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.kbd-group {
|
|
1104
|
+
@apply gap-1;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/* Label */
|
|
1108
|
+
.field > label,
|
|
1109
|
+
.label {
|
|
1110
|
+
@apply gap-2 text-xs/relaxed leading-none font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/* Sidebar */
|
|
1114
|
+
.sidebar nav {
|
|
1115
|
+
@apply bg-sidebar text-sidebar-foreground;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.sidebar nav > header,
|
|
1119
|
+
.sidebar nav > footer {
|
|
1120
|
+
@apply gap-2 p-2;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.sidebar nav > section {
|
|
1124
|
+
@apply gap-0;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.sidebar nav [role=separator] {
|
|
1128
|
+
@apply border-sidebar-border mx-2;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.sidebar nav > section > [role=group] {
|
|
1132
|
+
@apply px-2 py-1;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.sidebar nav h3 {
|
|
1136
|
+
@apply text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.sidebar nav > section > [role=group] > ul {
|
|
1140
|
+
@apply gap-px;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
.sidebar nav > section > [role=group] {
|
|
1144
|
+
@apply text-xs;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.sidebar nav li > :is(a, button),
|
|
1148
|
+
.sidebar nav li > details > summary {
|
|
1149
|
+
@apply ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-xs focus-visible:ring-2 text-left focus-visible:outline-hidden data-[open]:hover:bg-sidebar-accent data-[open]:hover:text-sidebar-accent-foreground [&>svg]:shrink-0 [&>svg]:size-4;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.sidebar nav li > :is(a, button):is([aria-current=page], [data-active=true]),
|
|
1153
|
+
.sidebar nav li > details > summary:is([aria-current=page], [data-active=true]) {
|
|
1154
|
+
@apply bg-sidebar-accent text-sidebar-accent-foreground font-medium;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.sidebar nav li > :is(a, button):not([data-variant]),
|
|
1158
|
+
.sidebar nav li > details > summary:not([data-variant]),
|
|
1159
|
+
.sidebar nav li > :is(a, button)[data-variant=default],
|
|
1160
|
+
.sidebar nav li > details > summary[data-variant=default] {
|
|
1161
|
+
@apply hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.sidebar nav li > :is(a, button)[data-variant=outline],
|
|
1165
|
+
.sidebar nav li > details > summary[data-variant=outline] {
|
|
1166
|
+
@apply bg-muted/20 dark:bg-muted/30 border-input shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
.sidebar nav li > :is(a, button):not([data-size]),
|
|
1170
|
+
.sidebar nav li > details > summary:not([data-size]),
|
|
1171
|
+
.sidebar nav li > :is(a, button)[data-size=default],
|
|
1172
|
+
.sidebar nav li > details > summary[data-size=default] {
|
|
1173
|
+
@apply h-8 text-xs;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.sidebar nav li > :is(a, button)[data-size=sm],
|
|
1177
|
+
.sidebar nav li > details > summary[data-size=sm] {
|
|
1178
|
+
@apply h-7 text-xs;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.sidebar nav li > :is(a, button)[data-size=lg],
|
|
1182
|
+
.sidebar nav li > details > summary[data-size=lg] {
|
|
1183
|
+
@apply h-12 text-xs;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.sidebar nav li > details > summary::after {
|
|
1187
|
+
@apply size-4;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.sidebar nav li > details::details-content {
|
|
1191
|
+
@apply px-3.5;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.sidebar nav ul ul {
|
|
1195
|
+
@apply border-sidebar-border translate-x-px gap-1 border-s px-2.5 py-0.5 rtl:-translate-x-px;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.sidebar nav ul ul > li > :is(a, button),
|
|
1199
|
+
.sidebar nav ul ul > li > details > summary {
|
|
1200
|
+
@apply text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-7 gap-2 rounded-md px-2 text-xs focus-visible:ring-2 [&>svg]:size-4;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/* Skeleton */
|
|
1204
|
+
.skeleton {
|
|
1205
|
+
@apply bg-muted rounded-md;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/* Table */
|
|
1209
|
+
.table-container {
|
|
1210
|
+
@apply relative w-full overflow-x-auto;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.table {
|
|
1214
|
+
@apply w-full caption-bottom text-xs;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.table thead {
|
|
1218
|
+
@apply [&_tr]:border-b;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.table tbody {
|
|
1222
|
+
@apply [&_tr:last-child]:border-0;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.table tfoot {
|
|
1226
|
+
@apply bg-muted/50 border-t font-medium [&>tr]:last:border-b-0;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.table tr {
|
|
1230
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.table th {
|
|
1234
|
+
@apply text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.table td {
|
|
1238
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.table caption {
|
|
1242
|
+
@apply text-muted-foreground mt-4 text-xs;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/* Tooltip */
|
|
1247
|
+
[data-tooltip]::before {
|
|
1248
|
+
@apply bg-foreground text-background inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-[.kbd]:pe-1.5 [&_.kbd]:relative [&_.kbd]:isolate [&_.kbd]:z-50 [&_.kbd]:rounded-sm;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
[data-tooltip][data-arrow]::after {
|
|
1252
|
+
@apply bg-foreground absolute z-[60] size-2.5 rotate-45 rounded-[2px];
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/* Toast */
|
|
1256
|
+
.toast-content {
|
|
1257
|
+
@apply bg-popover text-popover-foreground border shadow-lg rounded-md;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/* Slider */
|
|
1261
|
+
.field > input[type='range'],
|
|
1262
|
+
.input[type='range'] {
|
|
1263
|
+
@apply h-5;
|
|
1264
|
+
--slider-track-height: 0.25rem;
|
|
1265
|
+
--slider-thumb-size: 0.75rem;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-runnable-track {
|
|
1269
|
+
@apply bg-muted h-1 rounded-md;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-track {
|
|
1273
|
+
@apply bg-muted h-1 rounded-md;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-track {
|
|
1277
|
+
@apply bg-muted h-1 rounded-md;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-lower,
|
|
1281
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-fill-upper {
|
|
1282
|
+
@apply rounded-[inherit];
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
:is(.field > input[type='range'], .input[type='range'])::-webkit-slider-thumb {
|
|
1286
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow] hover:ring-2 focus-visible:ring-2 active:ring-2 -mt-[calc((var(--slider-thumb-size)-var(--slider-track-height))/2)] focus-visible:outline-hidden;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
:is(.field > input[type='range'], .input[type='range'])::-moz-range-thumb {
|
|
1290
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow] hover:ring-2 focus-visible:ring-2 active:ring-2 focus-visible:outline-hidden;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
:is(.field > input[type='range'], .input[type='range'])::-ms-thumb {
|
|
1294
|
+
@apply border-ring ring-ring/30 relative size-3 rounded-md border bg-white transition-[color,box-shadow] hover:ring-2 focus-visible:ring-2 active:ring-2 focus-visible:outline-hidden;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
}
|