basecoat-css 1.0.0-beta.1 → 1.0.0-beta.3
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/dist/base/base.css +42 -16
- package/dist/basecoat-base.cdn.css +495 -153
- package/dist/basecoat-base.cdn.min.css +2 -2
- package/dist/basecoat-compat.cdn.css +1066 -0
- package/dist/basecoat-compat.cdn.min.css +2 -0
- package/dist/basecoat-compat.css +1 -0
- package/dist/basecoat-components.css +4 -1
- package/dist/basecoat-luma.cdn.css +787 -341
- package/dist/basecoat-luma.cdn.min.css +2 -2
- package/dist/basecoat-lyra.cdn.css +791 -314
- package/dist/basecoat-lyra.cdn.min.css +2 -2
- package/dist/basecoat-maia.cdn.css +767 -301
- package/dist/basecoat-maia.cdn.min.css +2 -2
- package/dist/basecoat-mira.cdn.css +775 -305
- package/dist/basecoat-mira.cdn.min.css +2 -2
- package/dist/basecoat-nova.cdn.css +792 -313
- package/dist/basecoat-nova.cdn.min.css +2 -2
- package/dist/basecoat-rhea.cdn.css +793 -341
- package/dist/basecoat-rhea.cdn.min.css +2 -2
- package/dist/basecoat-sera.cdn.css +769 -308
- package/dist/basecoat-sera.cdn.min.css +2 -2
- package/dist/basecoat-vega.cdn.css +784 -316
- package/dist/basecoat-vega.cdn.min.css +2 -2
- package/dist/basecoat.cdn.css +784 -316
- package/dist/basecoat.cdn.min.css +2 -2
- package/dist/compat/legacy.css +429 -0
- package/dist/components/alert.css +11 -6
- package/dist/components/avatar.css +47 -0
- package/dist/components/badge.css +1 -7
- package/dist/components/button-group.css +7 -7
- package/dist/components/button.css +1 -56
- package/dist/components/chart.css +56 -0
- package/dist/components/dropdown-menu.css +9 -1
- package/dist/components/empty.css +1 -1
- package/dist/components/field.css +7 -11
- package/dist/components/input-group.css +30 -6
- package/dist/components/item.css +1 -1
- package/dist/components/kbd.css +0 -4
- package/dist/components/label.css +1 -0
- package/dist/components/progress.css +14 -0
- package/dist/js/all.js +7 -2
- package/dist/js/all.min.js +1 -1
- package/dist/js/basecoat.js +1 -0
- package/dist/js/basecoat.min.js +1 -1
- package/dist/js/chart.js +537 -0
- package/dist/js/chart.min.js +1 -0
- package/dist/js/select.js +5 -1
- package/dist/js/select.min.js +1 -1
- package/dist/js/toast.js +1 -1
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +219 -279
- package/dist/styles/lyra.css +228 -275
- package/dist/styles/maia.css +217 -277
- package/dist/styles/mira.css +222 -274
- package/dist/styles/nova.css +228 -275
- package/dist/styles/rhea.css +224 -276
- package/dist/styles/sera.css +219 -279
- package/dist/styles/vega.css +227 -275
- package/package.json +7 -1
package/dist/styles/rhea.css
CHANGED
|
@@ -1,247 +1,64 @@
|
|
|
1
1
|
/* Button */
|
|
2
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 {
|
|
3
|
+
.btn {
|
|
59
4
|
@apply rounded-2xl 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
5
|
}
|
|
61
6
|
|
|
62
|
-
.btn,
|
|
63
|
-
.btn-
|
|
64
|
-
|
|
65
|
-
.btn-outline,
|
|
66
|
-
.btn-ghost,
|
|
67
|
-
.btn-link,
|
|
68
|
-
.btn-destructive {
|
|
69
|
-
@apply h-8 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
|
-
}
|
|
7
|
+
.btn:not([data-size]),
|
|
8
|
+
.btn[data-size='default'] {
|
|
9
|
+
@apply h-8 gap-1.5 px-3 has-[[data-icon='inline-end']]:pr-2.5 has-[[data-icon='inline-start']]:pl-2.5;
|
|
78
10
|
}
|
|
79
11
|
|
|
80
|
-
.btn-xs
|
|
81
|
-
|
|
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
|
-
}
|
|
12
|
+
.btn[data-size='xs'] {
|
|
13
|
+
@apply h-6 gap-1 px-2.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
|
|
96
14
|
}
|
|
97
15
|
|
|
98
|
-
.btn-sm
|
|
99
|
-
|
|
100
|
-
.btn-sm-secondary,
|
|
101
|
-
.btn-sm-outline,
|
|
102
|
-
.btn-sm-ghost,
|
|
103
|
-
.btn-sm-link,
|
|
104
|
-
.btn-sm-destructive {
|
|
105
|
-
@apply h-7 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
|
-
}
|
|
16
|
+
.btn[data-size='sm'] {
|
|
17
|
+
@apply h-7 gap-1 px-3 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
|
|
114
18
|
}
|
|
115
19
|
|
|
116
|
-
.btn-lg
|
|
117
|
-
|
|
118
|
-
.btn-lg-secondary,
|
|
119
|
-
.btn-lg-outline,
|
|
120
|
-
.btn-lg-ghost,
|
|
121
|
-
.btn-lg-link,
|
|
122
|
-
.btn-lg-destructive {
|
|
123
|
-
@apply h-9 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
|
-
}
|
|
20
|
+
.btn[data-size='lg'] {
|
|
21
|
+
@apply h-9 gap-1.5 px-4 has-[[data-icon='inline-end']]:pr-3 has-[[data-icon='inline-start']]:pl-3;
|
|
132
22
|
}
|
|
133
23
|
|
|
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 {
|
|
24
|
+
.btn[data-size='icon'] {
|
|
141
25
|
@apply size-8;
|
|
142
26
|
}
|
|
143
27
|
|
|
144
|
-
.btn-xs
|
|
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 {
|
|
28
|
+
.btn[data-size='icon-xs'] {
|
|
151
29
|
@apply size-6 [&_svg:not([class*='size-'])]:size-3;
|
|
152
30
|
}
|
|
153
31
|
|
|
154
|
-
.btn-sm
|
|
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 {
|
|
32
|
+
.btn[data-size='icon-sm'] {
|
|
161
33
|
@apply size-7;
|
|
162
34
|
}
|
|
163
35
|
|
|
164
|
-
.btn-lg
|
|
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 {
|
|
36
|
+
.btn[data-size='icon-lg'] {
|
|
171
37
|
@apply size-9;
|
|
172
38
|
}
|
|
173
39
|
|
|
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 {
|
|
40
|
+
.btn:not([data-variant]),
|
|
41
|
+
.btn[data-variant='primary'] {
|
|
190
42
|
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
191
43
|
}
|
|
192
44
|
|
|
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 {
|
|
45
|
+
.btn[data-variant='secondary'] {
|
|
201
46
|
@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
47
|
}
|
|
203
48
|
|
|
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 {
|
|
49
|
+
.btn[data-variant='outline'] {
|
|
212
50
|
@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
51
|
}
|
|
214
52
|
|
|
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 {
|
|
53
|
+
.btn[data-variant='ghost'] {
|
|
223
54
|
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
224
55
|
}
|
|
225
56
|
|
|
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 {
|
|
57
|
+
.btn[data-variant='link'] {
|
|
234
58
|
@apply text-primary underline-offset-4 hover:underline;
|
|
235
59
|
}
|
|
236
60
|
|
|
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 {
|
|
61
|
+
.btn[data-variant='destructive'] {
|
|
245
62
|
@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
63
|
}
|
|
247
64
|
|
|
@@ -250,8 +67,8 @@
|
|
|
250
67
|
@apply has-[>.button-group]:gap-2;
|
|
251
68
|
}
|
|
252
69
|
|
|
253
|
-
.button-group:has(>
|
|
254
|
-
.button-group:has(> .select > button
|
|
70
|
+
.button-group:has(> .btn[data-variant='outline']),
|
|
71
|
+
.button-group:has(> .select > button.btn[data-variant='outline']) {
|
|
255
72
|
> .input,
|
|
256
73
|
> .select > button {
|
|
257
74
|
@apply border-border focus-visible:border-ring;
|
|
@@ -272,12 +89,11 @@
|
|
|
272
89
|
}
|
|
273
90
|
}
|
|
274
91
|
|
|
275
|
-
.button-group
|
|
92
|
+
.button-group > :is(span, label, output) {
|
|
276
93
|
@apply bg-muted gap-2 rounded-2xl border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
277
94
|
}
|
|
278
95
|
|
|
279
|
-
.button-group > hr[role='separator']
|
|
280
|
-
.button-group-separator {
|
|
96
|
+
.button-group > hr[role='separator'] {
|
|
281
97
|
@apply bg-input;
|
|
282
98
|
}
|
|
283
99
|
|
|
@@ -389,71 +205,107 @@
|
|
|
389
205
|
}
|
|
390
206
|
|
|
391
207
|
/* Alert */
|
|
392
|
-
.alert
|
|
393
|
-
|
|
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;
|
|
208
|
+
.alert {
|
|
209
|
+
@apply grid gap-0.5 rounded-2xl border px-4 py-3 text-start text-sm 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
210
|
}
|
|
396
211
|
|
|
397
212
|
.alert {
|
|
398
213
|
@apply bg-card text-card-foreground;
|
|
399
214
|
}
|
|
400
215
|
|
|
401
|
-
.alert-destructive {
|
|
402
|
-
@apply text-destructive bg-card [&>
|
|
216
|
+
.alert[data-variant='destructive'] {
|
|
217
|
+
@apply text-destructive bg-card [&>svg]:text-current;
|
|
403
218
|
}
|
|
404
219
|
|
|
405
220
|
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
406
|
-
.alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
221
|
+
.alert[data-variant='destructive'] > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
407
222
|
@apply font-medium;
|
|
408
223
|
}
|
|
409
224
|
|
|
410
225
|
|
|
411
|
-
|
|
226
|
+
.alert:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
412
227
|
@apply col-start-2;
|
|
413
228
|
}
|
|
414
|
-
.alert > section
|
|
415
|
-
.alert-destructive > section {
|
|
229
|
+
.alert > section {
|
|
416
230
|
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
417
231
|
}
|
|
418
232
|
|
|
419
|
-
.alert
|
|
420
|
-
|
|
421
|
-
|
|
233
|
+
.alert[data-variant='destructive'] > section {
|
|
234
|
+
@apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.alert > footer,
|
|
238
|
+
.alert[data-variant='destructive'] > footer {
|
|
239
|
+
@apply top-2.5 end-3;
|
|
240
|
+
}
|
|
241
|
+
/* Avatar */
|
|
242
|
+
.avatar {
|
|
243
|
+
@apply rounded-full after:rounded-[inherit];
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.avatar {
|
|
247
|
+
@apply size-8;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.avatar[data-size='sm'] {
|
|
251
|
+
@apply size-6;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.avatar[data-size='lg'] {
|
|
255
|
+
@apply size-10;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.avatar > span:not([data-badge]) {
|
|
259
|
+
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.avatar > img {
|
|
263
|
+
@apply rounded-[inherit];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.avatar > [data-badge] {
|
|
267
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.avatar-group > [data-count] {
|
|
271
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm [&>svg]:size-4;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
|
|
275
|
+
@apply size-6 [&>svg]:size-3;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
|
|
279
|
+
@apply size-10 [&>svg]:size-5;
|
|
422
280
|
}
|
|
423
281
|
|
|
424
282
|
/* Badge */
|
|
425
|
-
.badge
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
.badge-
|
|
430
|
-
.badge-
|
|
431
|
-
.badge-link {
|
|
432
|
-
@apply h-5 gap-1 rounded-2xl 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 {
|
|
283
|
+
.badge {
|
|
284
|
+
@apply h-5 gap-1 rounded-2xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3!;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.badge:not([data-variant]),
|
|
288
|
+
.badge[data-variant='primary'] {
|
|
437
289
|
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
438
290
|
}
|
|
439
291
|
|
|
440
|
-
.badge-secondary {
|
|
292
|
+
.badge[data-variant='secondary'] {
|
|
441
293
|
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
442
294
|
}
|
|
443
295
|
|
|
444
|
-
.badge-outline {
|
|
296
|
+
.badge[data-variant='outline'] {
|
|
445
297
|
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
446
298
|
}
|
|
447
299
|
|
|
448
|
-
.badge-destructive {
|
|
300
|
+
.badge[data-variant='destructive'] {
|
|
449
301
|
@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
302
|
}
|
|
451
303
|
|
|
452
|
-
.badge-ghost {
|
|
304
|
+
.badge[data-variant='ghost'] {
|
|
453
305
|
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
454
306
|
}
|
|
455
307
|
|
|
456
|
-
.badge-link {
|
|
308
|
+
.badge[data-variant='link'] {
|
|
457
309
|
@apply text-primary underline-offset-4 hover:underline;
|
|
458
310
|
}
|
|
459
311
|
|
|
@@ -547,7 +399,7 @@
|
|
|
547
399
|
|
|
548
400
|
.combobox [role='option'].active,
|
|
549
401
|
.combobox [role='option']:focus-visible {
|
|
550
|
-
@apply bg-
|
|
402
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
551
403
|
}
|
|
552
404
|
|
|
553
405
|
.combobox [role='group'] {
|
|
@@ -607,7 +459,7 @@
|
|
|
607
459
|
|
|
608
460
|
*:not(select).select [role='option'].active,
|
|
609
461
|
*:not(select).select [role='option']:focus-visible {
|
|
610
|
-
@apply bg-
|
|
462
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
611
463
|
}
|
|
612
464
|
|
|
613
465
|
*:not(select).select [role='group'] {
|
|
@@ -665,7 +517,7 @@
|
|
|
665
517
|
}
|
|
666
518
|
|
|
667
519
|
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
|
|
668
|
-
@apply bg-
|
|
520
|
+
@apply bg-muted text-foreground;
|
|
669
521
|
}
|
|
670
522
|
|
|
671
523
|
.dropdown-menu [data-variant='destructive'] {
|
|
@@ -701,11 +553,11 @@
|
|
|
701
553
|
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
702
554
|
}
|
|
703
555
|
|
|
704
|
-
.dropdown-menu [data-shortcut] {
|
|
705
|
-
@apply text-muted-foreground text-xs tracking-widest;
|
|
556
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
557
|
+
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
706
558
|
}
|
|
707
559
|
|
|
708
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
|
|
560
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
709
561
|
@apply text-accent-foreground;
|
|
710
562
|
}
|
|
711
563
|
|
|
@@ -730,11 +582,23 @@
|
|
|
730
582
|
|
|
731
583
|
/* Card */
|
|
732
584
|
.card {
|
|
733
|
-
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10
|
|
585
|
+
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 overflow-hidden rounded-[min(var(--radius-4xl),24px)] text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-[min(var(--radius-4xl),24px)] [&>img:last-child]:rounded-b-[min(var(--radius-4xl),24px)];
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.card {
|
|
589
|
+
@apply gap-5 py-5;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.card[data-size='sm'] {
|
|
593
|
+
@apply gap-4 py-4;
|
|
734
594
|
}
|
|
735
595
|
|
|
736
596
|
.card > header {
|
|
737
|
-
@apply gap-1.5 rounded-t-[min(var(--radius-4xl),24px)] px-5
|
|
597
|
+
@apply gap-1.5 rounded-t-[min(var(--radius-4xl),24px)] px-5 [.border-b]:pb-5;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.card[data-size='sm'] > header {
|
|
601
|
+
@apply px-4 [.border-b]:pb-4;
|
|
738
602
|
}
|
|
739
603
|
|
|
740
604
|
.card > header > :is(h2, h3, [data-title], .card-title) {
|
|
@@ -746,11 +610,40 @@
|
|
|
746
610
|
}
|
|
747
611
|
|
|
748
612
|
.card > section {
|
|
749
|
-
@apply px-5
|
|
613
|
+
@apply px-5;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.card[data-size='sm'] > section {
|
|
617
|
+
@apply px-4;
|
|
750
618
|
}
|
|
751
619
|
|
|
752
620
|
.card > footer {
|
|
753
|
-
@apply rounded-b-[min(var(--radius-4xl),24px)] px-5
|
|
621
|
+
@apply rounded-b-[min(var(--radius-4xl),24px)] px-5 [.border-t]:pt-5;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.card[data-size='sm'] > footer {
|
|
625
|
+
@apply px-4 [.border-t]:pt-4;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* Chart */
|
|
629
|
+
.chart {
|
|
630
|
+
--chart-bar-radius: 6px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.chart-tooltip {
|
|
634
|
+
@apply border-border/50 bg-background text-foreground gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.chart-tooltip-title {
|
|
638
|
+
@apply font-medium;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.chart-legend-item {
|
|
642
|
+
@apply text-foreground;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
646
|
+
@apply text-muted-foreground;
|
|
754
647
|
}
|
|
755
648
|
|
|
756
649
|
/* Checkbox */
|
|
@@ -829,8 +722,7 @@
|
|
|
829
722
|
@apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
830
723
|
}
|
|
831
724
|
|
|
832
|
-
.fieldset > legend
|
|
833
|
-
.field-legend {
|
|
725
|
+
.fieldset > legend {
|
|
834
726
|
@apply mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
|
|
835
727
|
}
|
|
836
728
|
|
|
@@ -839,6 +731,8 @@
|
|
|
839
731
|
@apply gap-6;
|
|
840
732
|
|
|
841
733
|
&[role='radiogroup'],
|
|
734
|
+
&:has(> .field > input[type='checkbox']:not([role='switch'])),
|
|
735
|
+
&:has(> .field > input[type='radio']),
|
|
842
736
|
&[data-slot='checkbox-group'],
|
|
843
737
|
&[data-slot='radio-group'] {
|
|
844
738
|
@apply gap-3;
|
|
@@ -851,15 +745,15 @@
|
|
|
851
745
|
}
|
|
852
746
|
|
|
853
747
|
.field {
|
|
854
|
-
@apply data-[invalid=true]:text-destructive gap-3;
|
|
748
|
+
@apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-3;
|
|
855
749
|
}
|
|
856
750
|
|
|
857
|
-
.field > section
|
|
858
|
-
.field-content {
|
|
751
|
+
.field > section {
|
|
859
752
|
@apply gap-1;
|
|
860
753
|
}
|
|
861
754
|
|
|
862
755
|
.field > label,
|
|
756
|
+
.field > section > label,
|
|
863
757
|
label:has(> .field) {
|
|
864
758
|
@apply has-[:checked]:bg-input/30 gap-2 leading-snug in-data-[disabled=true]:opacity-50;
|
|
865
759
|
}
|
|
@@ -882,18 +776,25 @@
|
|
|
882
776
|
@apply p-4;
|
|
883
777
|
}
|
|
884
778
|
.field h2,
|
|
885
|
-
.field h3
|
|
886
|
-
.field-title {
|
|
779
|
+
.field h3 {
|
|
887
780
|
@apply gap-2 leading-snug text-sm font-medium in-data-[disabled=true]:opacity-50;
|
|
888
781
|
}
|
|
889
782
|
|
|
890
783
|
.fieldset legend + p,
|
|
891
784
|
.field > p,
|
|
892
|
-
.field section > p
|
|
893
|
-
.field-description {
|
|
785
|
+
.field section > p {
|
|
894
786
|
@apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5;
|
|
895
787
|
}
|
|
896
788
|
|
|
789
|
+
.fieldset > legend[data-variant='label'] {
|
|
790
|
+
@apply mb-0;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.fieldset > legend:not([data-variant]) + p,
|
|
794
|
+
.fieldset > legend[data-variant='legend'] + p {
|
|
795
|
+
@apply -mt-1.5;
|
|
796
|
+
}
|
|
797
|
+
|
|
897
798
|
.field-separator {
|
|
898
799
|
@apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
|
|
899
800
|
}
|
|
@@ -902,8 +803,7 @@
|
|
|
902
803
|
@apply text-muted-foreground px-2;
|
|
903
804
|
}
|
|
904
805
|
|
|
905
|
-
.field [role="alert"]
|
|
906
|
-
.field-error {
|
|
806
|
+
.field [role="alert"] {
|
|
907
807
|
@apply text-destructive text-sm;
|
|
908
808
|
}
|
|
909
809
|
|
|
@@ -916,16 +816,15 @@
|
|
|
916
816
|
.input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
|
|
917
817
|
@apply opacity-50;
|
|
918
818
|
}
|
|
919
|
-
|
|
920
819
|
.input-group > :is(input, select, [data-control]) {
|
|
921
820
|
@apply px-2.5 py-1 text-sm;
|
|
922
821
|
}
|
|
923
822
|
|
|
924
|
-
.input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
|
|
823
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
925
824
|
@apply ps-1.5;
|
|
926
825
|
}
|
|
927
826
|
|
|
928
|
-
.input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
|
|
827
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='end'], [data-align='inline-end'])) > :is(input, select, [data-control]) {
|
|
929
828
|
@apply pe-1.5;
|
|
930
829
|
}
|
|
931
830
|
|
|
@@ -938,33 +837,74 @@
|
|
|
938
837
|
@apply gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-4;
|
|
939
838
|
}
|
|
940
839
|
|
|
941
|
-
.input-group > [data-align='start'] {
|
|
840
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']) {
|
|
942
841
|
@apply ps-2;
|
|
943
842
|
}
|
|
944
843
|
|
|
945
|
-
.input-group > [data-align='end'] {
|
|
844
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']) {
|
|
946
845
|
@apply pe-2;
|
|
947
846
|
}
|
|
948
847
|
|
|
949
|
-
.input-group > [data-align='start']:has(> button) {
|
|
848
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
|
|
950
849
|
@apply -ms-1;
|
|
951
850
|
}
|
|
952
851
|
|
|
953
|
-
.input-group > [data-align='end']:has(> button) {
|
|
852
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
|
|
954
853
|
@apply -me-1;
|
|
955
854
|
}
|
|
956
855
|
|
|
957
|
-
.input-group > [data-align='start']:has(> kbd) {
|
|
856
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
|
|
958
857
|
@apply -ms-0.5;
|
|
959
858
|
}
|
|
960
859
|
|
|
961
|
-
.input-group > [data-align='end']:has(> kbd) {
|
|
860
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
|
|
962
861
|
@apply -me-0.5;
|
|
963
862
|
}
|
|
863
|
+
|
|
864
|
+
.input-group > [data-align='block-start'] {
|
|
865
|
+
@apply px-2.5 pt-2;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.input-group > [data-align='block-end'] {
|
|
869
|
+
@apply px-2.5 pb-2;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.input-group > [data-align='block-start'].border-b {
|
|
873
|
+
@apply pb-2;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.input-group > [data-align='block-end'].border-t {
|
|
877
|
+
@apply pt-2;
|
|
878
|
+
}
|
|
964
879
|
.input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
|
|
965
880
|
@apply px-2.5;
|
|
966
881
|
}
|
|
967
882
|
|
|
883
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']) {
|
|
884
|
+
@apply px-2.5 pt-2;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
888
|
+
@apply px-2.5 pb-2;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(header[data-align='start'], [data-align='block-start']) {
|
|
892
|
+
@apply pt-2;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
896
|
+
@apply pb-2;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']).border-b {
|
|
900
|
+
@apply pb-2;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']).border-t {
|
|
904
|
+
@apply pt-2;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
|
|
968
908
|
.input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
|
|
969
909
|
@apply rounded-2xl bg-muted-foreground/10 px-1.5;
|
|
970
910
|
}
|
|
@@ -999,7 +939,7 @@
|
|
|
999
939
|
@apply text-lg font-medium tracking-tight;
|
|
1000
940
|
}
|
|
1001
941
|
|
|
1002
|
-
.empty p {
|
|
942
|
+
.empty > header > p {
|
|
1003
943
|
@apply text-muted-foreground text-sm/relaxed;
|
|
1004
944
|
}
|
|
1005
945
|
|
|
@@ -1050,15 +990,15 @@
|
|
|
1050
990
|
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
1051
991
|
}
|
|
1052
992
|
|
|
1053
|
-
.item > figure:has(img) {
|
|
993
|
+
.item > figure:has(> img) {
|
|
1054
994
|
@apply size-10 overflow-hidden rounded-xl;
|
|
1055
995
|
}
|
|
1056
996
|
|
|
1057
|
-
.item[data-size='sm'] > figure:has(img) {
|
|
997
|
+
.item[data-size='sm'] > figure:has(> img) {
|
|
1058
998
|
@apply size-8;
|
|
1059
999
|
}
|
|
1060
1000
|
|
|
1061
|
-
.item[data-size='xs'] > figure:has(img) {
|
|
1001
|
+
.item[data-size='xs'] > figure:has(> img) {
|
|
1062
1002
|
@apply size-6 rounded-lg;
|
|
1063
1003
|
}
|
|
1064
1004
|
|
|
@@ -1108,16 +1048,16 @@
|
|
|
1108
1048
|
@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-lg px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
1109
1049
|
}
|
|
1110
1050
|
|
|
1111
|
-
.kbd-group {
|
|
1112
|
-
@apply gap-1;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
1051
|
/* Label */
|
|
1116
1052
|
.field > label,
|
|
1117
1053
|
.label {
|
|
1118
1054
|
@apply gap-2 text-sm leading-none font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1119
1055
|
}
|
|
1120
1056
|
|
|
1057
|
+
.field > section > label {
|
|
1058
|
+
@apply gap-2 text-sm leading-snug font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1121
1061
|
/* Sidebar */
|
|
1122
1062
|
.sidebar nav {
|
|
1123
1063
|
@apply bg-sidebar text-sidebar-foreground;
|
|
@@ -1207,6 +1147,14 @@
|
|
|
1207
1147
|
.sidebar nav ul ul > li > details > summary {
|
|
1208
1148
|
@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-3 [&>svg]:size-4;
|
|
1209
1149
|
}
|
|
1150
|
+
/* Progress */
|
|
1151
|
+
.progress {
|
|
1152
|
+
@apply bg-muted h-2 rounded-2xl;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.progress > span {
|
|
1156
|
+
@apply bg-primary;
|
|
1157
|
+
}
|
|
1210
1158
|
|
|
1211
1159
|
/* Skeleton */
|
|
1212
1160
|
.skeleton {
|