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