basecoat-css 1.0.0-beta.2 → 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 +779 -342
- package/dist/basecoat-luma.cdn.min.css +2 -2
- package/dist/basecoat-lyra.cdn.css +790 -322
- package/dist/basecoat-lyra.cdn.min.css +2 -2
- package/dist/basecoat-maia.cdn.css +752 -295
- package/dist/basecoat-maia.cdn.min.css +2 -2
- package/dist/basecoat-mira.cdn.css +754 -293
- package/dist/basecoat-mira.cdn.min.css +2 -2
- package/dist/basecoat-nova.cdn.css +791 -321
- package/dist/basecoat-nova.cdn.min.css +2 -2
- package/dist/basecoat-rhea.cdn.css +761 -318
- package/dist/basecoat-rhea.cdn.min.css +2 -2
- package/dist/basecoat-sera.cdn.css +754 -302
- package/dist/basecoat-sera.cdn.min.css +2 -2
- package/dist/basecoat-vega.cdn.css +783 -324
- package/dist/basecoat-vega.cdn.min.css +2 -2
- package/dist/basecoat.cdn.css +783 -324
- 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 +214 -277
- package/dist/styles/lyra.css +223 -273
- package/dist/styles/maia.css +212 -275
- package/dist/styles/mira.css +217 -272
- package/dist/styles/nova.css +223 -273
- package/dist/styles/rhea.css +219 -274
- package/dist/styles/sera.css +214 -277
- package/dist/styles/vega.css +222 -273
- package/package.json +7 -1
package/dist/styles/nova.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-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/50 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-2.5;
|
|
70
|
-
|
|
71
|
-
&:has(> [data-icon=inline-start]) {
|
|
72
|
-
@apply ps-2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:has(> [data-icon=inline-end]) {
|
|
76
|
-
@apply pe-2;
|
|
77
|
-
}
|
|
7
|
+
.btn:not([data-size]),
|
|
8
|
+
.btn[data-size='default'] {
|
|
9
|
+
@apply h-8 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
|
|
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 text-xs rounded-[min(var(--radius-md),10px)] [&_svg:not([class*='size-'])]:size-3;
|
|
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
|
-
}
|
|
12
|
+
.btn[data-size='xs'] {
|
|
13
|
+
@apply h-6 gap-1 px-2 text-xs rounded-[min(var(--radius-md),10px)] [&_svg:not([class*='size-'])]:size-3 has-[[data-icon='inline-end']]:pr-1.5 has-[[data-icon='inline-start']]:pl-1.5;
|
|
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-2.5 text-[0.8rem] rounded-[min(var(--radius-md),12px)] [&_svg:not([class*='size-'])]:size-3.5;
|
|
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
|
-
}
|
|
16
|
+
.btn[data-size='sm'] {
|
|
17
|
+
@apply h-7 gap-1 px-2.5 text-[0.8rem] rounded-[min(var(--radius-md),12px)] [&_svg:not([class*='size-'])]:size-3.5 has-[[data-icon='inline-end']]:pr-1.5 has-[[data-icon='inline-start']]:pl-1.5;
|
|
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-2.5;
|
|
124
|
-
|
|
125
|
-
&:has(> [data-icon=inline-start]) {
|
|
126
|
-
@apply ps-2;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&:has(> [data-icon=inline-end]) {
|
|
130
|
-
@apply pe-2;
|
|
131
|
-
}
|
|
20
|
+
.btn[data-size='lg'] {
|
|
21
|
+
@apply h-9 gap-1.5 px-2.5 has-[[data-icon='inline-end']]:pr-2 has-[[data-icon='inline-start']]:pl-2;
|
|
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 rounded-[min(var(--radius-md),10px)] [&_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 rounded-[min(var(--radius-md),12px)];
|
|
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:border-input dark:bg-input/30 dark:hover:bg-input/50 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
|
|
|
@@ -264,12 +81,11 @@
|
|
|
264
81
|
}
|
|
265
82
|
}
|
|
266
83
|
|
|
267
|
-
.button-group
|
|
84
|
+
.button-group > :is(span, label, output) {
|
|
268
85
|
@apply bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
|
|
269
86
|
}
|
|
270
87
|
|
|
271
|
-
.button-group > hr[role='separator']
|
|
272
|
-
.button-group-separator {
|
|
88
|
+
.button-group > hr[role='separator'] {
|
|
273
89
|
@apply bg-input;
|
|
274
90
|
}
|
|
275
91
|
|
|
@@ -381,74 +197,107 @@
|
|
|
381
197
|
}
|
|
382
198
|
|
|
383
199
|
/* Alert */
|
|
384
|
-
.alert
|
|
385
|
-
|
|
386
|
-
@apply grid gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-[>[data-action]]:relative has-[>[data-action]]:pe-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4;
|
|
200
|
+
.alert {
|
|
201
|
+
@apply grid gap-0.5 rounded-lg border px-2.5 py-2 text-start text-sm has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 [&>svg]:row-span-2 [&>svg]:translate-y-0.5 [&>svg]:text-current [&>svg:not([class*='size-'])]:size-4;
|
|
387
202
|
}
|
|
388
203
|
|
|
389
204
|
.alert {
|
|
390
205
|
@apply bg-card text-card-foreground;
|
|
391
206
|
}
|
|
392
207
|
|
|
393
|
-
.alert-destructive {
|
|
208
|
+
.alert[data-variant='destructive'] {
|
|
394
209
|
@apply text-destructive bg-card [&>svg]:text-current;
|
|
395
210
|
}
|
|
396
211
|
|
|
397
212
|
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
398
|
-
.alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
213
|
+
.alert[data-variant='destructive'] > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
399
214
|
@apply font-medium;
|
|
400
215
|
}
|
|
401
216
|
|
|
402
217
|
|
|
403
|
-
|
|
218
|
+
.alert:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
404
219
|
@apply col-start-2;
|
|
405
220
|
}
|
|
406
221
|
.alert > section {
|
|
407
222
|
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
408
223
|
}
|
|
409
224
|
|
|
410
|
-
.alert-destructive > section {
|
|
225
|
+
.alert[data-variant='destructive'] > section {
|
|
411
226
|
@apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
|
|
412
227
|
}
|
|
413
228
|
|
|
414
|
-
.alert >
|
|
415
|
-
.alert-destructive >
|
|
416
|
-
@apply
|
|
229
|
+
.alert > footer,
|
|
230
|
+
.alert[data-variant='destructive'] > footer {
|
|
231
|
+
@apply top-2 end-2;
|
|
232
|
+
}
|
|
233
|
+
/* Avatar */
|
|
234
|
+
.avatar {
|
|
235
|
+
@apply rounded-full after:rounded-[inherit];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.avatar {
|
|
239
|
+
@apply size-8;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.avatar[data-size='sm'] {
|
|
243
|
+
@apply size-6;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.avatar[data-size='lg'] {
|
|
247
|
+
@apply size-10;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.avatar > span:not([data-badge]) {
|
|
251
|
+
@apply bg-muted text-muted-foreground rounded-[inherit];
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.avatar > img {
|
|
255
|
+
@apply rounded-[inherit];
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.avatar > [data-badge] {
|
|
259
|
+
@apply bg-primary text-primary-foreground ring-background;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.avatar-group > [data-count] {
|
|
263
|
+
@apply bg-muted text-muted-foreground size-8 rounded-full text-sm [&>svg]:size-4;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
|
|
267
|
+
@apply size-6 [&>svg]:size-3;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
|
|
271
|
+
@apply size-10 [&>svg]:size-5;
|
|
417
272
|
}
|
|
418
273
|
|
|
419
274
|
/* Badge */
|
|
420
|
-
.badge
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
.badge-
|
|
425
|
-
.badge-
|
|
426
|
-
.badge-link {
|
|
427
|
-
@apply h-5 gap-1 rounded-4xl 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!;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.badge,
|
|
431
|
-
.badge-primary {
|
|
275
|
+
.badge {
|
|
276
|
+
@apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3!;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.badge:not([data-variant]),
|
|
280
|
+
.badge[data-variant='primary'] {
|
|
432
281
|
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
433
282
|
}
|
|
434
283
|
|
|
435
|
-
.badge-secondary {
|
|
284
|
+
.badge[data-variant='secondary'] {
|
|
436
285
|
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
437
286
|
}
|
|
438
287
|
|
|
439
|
-
.badge-outline {
|
|
288
|
+
.badge[data-variant='outline'] {
|
|
440
289
|
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
441
290
|
}
|
|
442
291
|
|
|
443
|
-
.badge-destructive {
|
|
292
|
+
.badge[data-variant='destructive'] {
|
|
444
293
|
@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;
|
|
445
294
|
}
|
|
446
295
|
|
|
447
|
-
.badge-ghost {
|
|
296
|
+
.badge[data-variant='ghost'] {
|
|
448
297
|
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
449
298
|
}
|
|
450
299
|
|
|
451
|
-
.badge-link {
|
|
300
|
+
.badge[data-variant='link'] {
|
|
452
301
|
@apply text-primary underline-offset-4 hover:underline;
|
|
453
302
|
}
|
|
454
303
|
|
|
@@ -542,7 +391,7 @@
|
|
|
542
391
|
|
|
543
392
|
.combobox [role='option'].active,
|
|
544
393
|
.combobox [role='option']:focus-visible {
|
|
545
|
-
@apply bg-
|
|
394
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
546
395
|
}
|
|
547
396
|
|
|
548
397
|
.combobox [role='group'] {
|
|
@@ -602,7 +451,7 @@
|
|
|
602
451
|
|
|
603
452
|
*:not(select).select [role='option'].active,
|
|
604
453
|
*:not(select).select [role='option']:focus-visible {
|
|
605
|
-
@apply bg-
|
|
454
|
+
@apply bg-muted text-foreground [&_svg]:text-foreground;
|
|
606
455
|
}
|
|
607
456
|
|
|
608
457
|
*:not(select).select [role='group'] {
|
|
@@ -656,7 +505,7 @@
|
|
|
656
505
|
}
|
|
657
506
|
|
|
658
507
|
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
|
|
659
|
-
@apply bg-
|
|
508
|
+
@apply bg-muted text-foreground;
|
|
660
509
|
}
|
|
661
510
|
|
|
662
511
|
.dropdown-menu [data-variant='destructive'] {
|
|
@@ -692,11 +541,11 @@
|
|
|
692
541
|
@apply bg-border -mx-1 my-1 h-px;
|
|
693
542
|
}
|
|
694
543
|
|
|
695
|
-
.dropdown-menu [data-shortcut] {
|
|
696
|
-
@apply text-muted-foreground text-xs tracking-widest;
|
|
544
|
+
.dropdown-menu :is([data-shortcut], kbd:last-child) {
|
|
545
|
+
@apply text-muted-foreground font-sans text-xs tracking-widest;
|
|
697
546
|
}
|
|
698
547
|
|
|
699
|
-
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
|
|
548
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
|
|
700
549
|
@apply text-accent-foreground;
|
|
701
550
|
}
|
|
702
551
|
|
|
@@ -721,15 +570,31 @@
|
|
|
721
570
|
|
|
722
571
|
/* Card */
|
|
723
572
|
.card {
|
|
724
|
-
@apply ring-foreground/10 bg-card text-card-foreground
|
|
573
|
+
@apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-xl text-sm ring-1 has-[>footer]:pb-0 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-xl [&>img:last-child]:rounded-b-xl;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.card {
|
|
577
|
+
@apply gap-4 py-4;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.card[data-size='sm'] {
|
|
581
|
+
@apply gap-3 py-3;
|
|
725
582
|
}
|
|
726
583
|
|
|
727
584
|
.card > header {
|
|
728
|
-
@apply gap-1 rounded-t-xl px-4
|
|
585
|
+
@apply gap-1 rounded-t-xl px-4 [.border-b]:pb-4;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.card[data-size='sm'] > header {
|
|
589
|
+
@apply px-3 [.border-b]:pb-3;
|
|
729
590
|
}
|
|
730
591
|
|
|
731
592
|
.card > header > :is(h2, h3, [data-title], .card-title) {
|
|
732
|
-
@apply text-base leading-snug font-medium
|
|
593
|
+
@apply text-base leading-snug font-medium;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.card[data-size='sm'] > header > :is(h2, h3, [data-title], .card-title) {
|
|
597
|
+
@apply text-sm;
|
|
733
598
|
}
|
|
734
599
|
|
|
735
600
|
.card > header > :is(p, [data-description], .card-description) {
|
|
@@ -737,11 +602,40 @@
|
|
|
737
602
|
}
|
|
738
603
|
|
|
739
604
|
.card > section {
|
|
740
|
-
@apply px-4
|
|
605
|
+
@apply px-4;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.card[data-size='sm'] > section {
|
|
609
|
+
@apply px-3;
|
|
741
610
|
}
|
|
742
611
|
|
|
743
612
|
.card > footer {
|
|
744
|
-
@apply bg-muted/50 rounded-b-xl border-t p-4
|
|
613
|
+
@apply bg-muted/50 rounded-b-xl border-t p-4;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.card[data-size='sm'] > footer {
|
|
617
|
+
@apply p-3;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/* Chart */
|
|
621
|
+
.chart {
|
|
622
|
+
--chart-bar-radius: 6px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.chart-tooltip {
|
|
626
|
+
@apply border-border/50 bg-background text-foreground gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.chart-tooltip-title {
|
|
630
|
+
@apply font-medium;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.chart-legend-item {
|
|
634
|
+
@apply text-foreground;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
638
|
+
@apply text-muted-foreground;
|
|
745
639
|
}
|
|
746
640
|
|
|
747
641
|
/* Checkbox */
|
|
@@ -820,8 +714,7 @@
|
|
|
820
714
|
@apply gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
|
|
821
715
|
}
|
|
822
716
|
|
|
823
|
-
.fieldset > legend
|
|
824
|
-
.field-legend {
|
|
717
|
+
.fieldset > legend {
|
|
825
718
|
@apply mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base;
|
|
826
719
|
}
|
|
827
720
|
|
|
@@ -830,6 +723,8 @@
|
|
|
830
723
|
@apply gap-5;
|
|
831
724
|
|
|
832
725
|
&[role='radiogroup'],
|
|
726
|
+
&:has(> .field > input[type='checkbox']:not([role='switch'])),
|
|
727
|
+
&:has(> .field > input[type='radio']),
|
|
833
728
|
&[data-slot='checkbox-group'],
|
|
834
729
|
&[data-slot='radio-group'] {
|
|
835
730
|
@apply gap-3;
|
|
@@ -842,15 +737,15 @@
|
|
|
842
737
|
}
|
|
843
738
|
|
|
844
739
|
.field {
|
|
845
|
-
@apply data-[invalid=true]:text-destructive gap-2;
|
|
740
|
+
@apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-2;
|
|
846
741
|
}
|
|
847
742
|
|
|
848
|
-
.field > section
|
|
849
|
-
.field-content {
|
|
743
|
+
.field > section {
|
|
850
744
|
@apply gap-0.5;
|
|
851
745
|
}
|
|
852
746
|
|
|
853
747
|
.field > label,
|
|
748
|
+
.field > section > label,
|
|
854
749
|
label:has(> .field) {
|
|
855
750
|
@apply has-[:checked]:bg-primary/5 has-[:checked]:border-primary/30 dark:has-[:checked]:border-primary/20 dark:has-[:checked]:bg-primary/10 gap-2 leading-snug in-data-[disabled=true]:opacity-50;
|
|
856
751
|
}
|
|
@@ -873,18 +768,25 @@
|
|
|
873
768
|
@apply p-2.5;
|
|
874
769
|
}
|
|
875
770
|
.field h2,
|
|
876
|
-
.field h3
|
|
877
|
-
.field-title {
|
|
771
|
+
.field h3 {
|
|
878
772
|
@apply gap-2 leading-snug text-sm font-medium in-data-[disabled=true]:opacity-50;
|
|
879
773
|
}
|
|
880
774
|
|
|
881
775
|
.fieldset legend + p,
|
|
882
776
|
.field > p,
|
|
883
|
-
.field section > p
|
|
884
|
-
.field-description {
|
|
777
|
+
.field section > p {
|
|
885
778
|
@apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5;
|
|
886
779
|
}
|
|
887
780
|
|
|
781
|
+
.fieldset > legend[data-variant='label'] {
|
|
782
|
+
@apply mb-0;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.fieldset > legend:not([data-variant]) + p,
|
|
786
|
+
.fieldset > legend[data-variant='legend'] + p {
|
|
787
|
+
@apply -mt-1.5;
|
|
788
|
+
}
|
|
789
|
+
|
|
888
790
|
.field-separator {
|
|
889
791
|
@apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
|
|
890
792
|
}
|
|
@@ -893,8 +795,7 @@
|
|
|
893
795
|
@apply text-muted-foreground px-2;
|
|
894
796
|
}
|
|
895
797
|
|
|
896
|
-
.field [role="alert"]
|
|
897
|
-
.field-error {
|
|
798
|
+
.field [role="alert"] {
|
|
898
799
|
@apply text-destructive text-sm;
|
|
899
800
|
}
|
|
900
801
|
|
|
@@ -905,18 +806,18 @@
|
|
|
905
806
|
|
|
906
807
|
|
|
907
808
|
.input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
|
|
908
|
-
@apply opacity-50;
|
|
809
|
+
@apply bg-input/50 opacity-50 dark:bg-input/80;
|
|
909
810
|
}
|
|
910
811
|
|
|
911
812
|
.input-group > :is(input, select, [data-control]) {
|
|
912
813
|
@apply px-2.5 py-1 text-sm;
|
|
913
814
|
}
|
|
914
815
|
|
|
915
|
-
.input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
|
|
816
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
|
|
916
817
|
@apply ps-1.5;
|
|
917
818
|
}
|
|
918
819
|
|
|
919
|
-
.input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
|
|
820
|
+
.input-group:not([data-orientation='vertical']):has(> :is([data-align='end'], [data-align='inline-end'])) > :is(input, select, [data-control]) {
|
|
920
821
|
@apply pe-1.5;
|
|
921
822
|
}
|
|
922
823
|
|
|
@@ -929,33 +830,74 @@
|
|
|
929
830
|
@apply gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-4;
|
|
930
831
|
}
|
|
931
832
|
|
|
932
|
-
.input-group > [data-align='start'] {
|
|
833
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']) {
|
|
933
834
|
@apply ps-2;
|
|
934
835
|
}
|
|
935
836
|
|
|
936
|
-
.input-group > [data-align='end'] {
|
|
837
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']) {
|
|
937
838
|
@apply pe-2;
|
|
938
839
|
}
|
|
939
840
|
|
|
940
|
-
.input-group > [data-align='start']:has(> button) {
|
|
841
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
|
|
941
842
|
@apply -ms-1;
|
|
942
843
|
}
|
|
943
844
|
|
|
944
|
-
.input-group > [data-align='end']:has(> button) {
|
|
845
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
|
|
945
846
|
@apply -me-1;
|
|
946
847
|
}
|
|
947
848
|
|
|
948
|
-
.input-group > [data-align='start']:has(> kbd) {
|
|
849
|
+
.input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
|
|
949
850
|
@apply -ms-0.5;
|
|
950
851
|
}
|
|
951
852
|
|
|
952
|
-
.input-group > [data-align='end']:has(> kbd) {
|
|
853
|
+
.input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
|
|
953
854
|
@apply -me-0.5;
|
|
954
855
|
}
|
|
856
|
+
|
|
857
|
+
.input-group > [data-align='block-start'] {
|
|
858
|
+
@apply px-2.5 pt-2;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.input-group > [data-align='block-end'] {
|
|
862
|
+
@apply px-2.5 pb-2;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.input-group > [data-align='block-start'].border-b {
|
|
866
|
+
@apply pb-2;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.input-group > [data-align='block-end'].border-t {
|
|
870
|
+
@apply pt-2;
|
|
871
|
+
}
|
|
955
872
|
.input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
|
|
956
873
|
@apply px-2.5;
|
|
957
874
|
}
|
|
958
875
|
|
|
876
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']) {
|
|
877
|
+
@apply px-2.5 pt-2;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
881
|
+
@apply px-2.5 pb-2;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(header[data-align='start'], [data-align='block-start']) {
|
|
885
|
+
@apply pt-2;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.input-group[data-orientation='vertical']:has(> input) > :is(footer[data-align='end'], [data-align='block-end']) {
|
|
889
|
+
@apply pb-2;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']).border-b {
|
|
893
|
+
@apply pb-2;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']).border-t {
|
|
897
|
+
@apply pt-2;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
|
|
959
901
|
.input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
|
|
960
902
|
@apply rounded-[calc(var(--radius)-5px)];
|
|
961
903
|
}
|
|
@@ -990,7 +932,7 @@
|
|
|
990
932
|
@apply text-sm font-medium tracking-tight;
|
|
991
933
|
}
|
|
992
934
|
|
|
993
|
-
.empty p {
|
|
935
|
+
.empty > header > p {
|
|
994
936
|
@apply text-muted-foreground text-sm/relaxed;
|
|
995
937
|
}
|
|
996
938
|
|
|
@@ -1041,15 +983,15 @@
|
|
|
1041
983
|
@apply [&_svg:not([class*='size-'])]:size-4;
|
|
1042
984
|
}
|
|
1043
985
|
|
|
1044
|
-
.item > figure:has(img) {
|
|
986
|
+
.item > figure:has(> img) {
|
|
1045
987
|
@apply size-10 overflow-hidden rounded-sm;
|
|
1046
988
|
}
|
|
1047
989
|
|
|
1048
|
-
.item[data-size='sm'] > figure:has(img) {
|
|
990
|
+
.item[data-size='sm'] > figure:has(> img) {
|
|
1049
991
|
@apply size-8;
|
|
1050
992
|
}
|
|
1051
993
|
|
|
1052
|
-
.item[data-size='xs'] > figure:has(img) {
|
|
994
|
+
.item[data-size='xs'] > figure:has(> img) {
|
|
1053
995
|
@apply size-6;
|
|
1054
996
|
}
|
|
1055
997
|
|
|
@@ -1099,16 +1041,16 @@
|
|
|
1099
1041
|
@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-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
|
|
1100
1042
|
}
|
|
1101
1043
|
|
|
1102
|
-
.kbd-group {
|
|
1103
|
-
@apply gap-1;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
1044
|
/* Label */
|
|
1107
1045
|
.field > label,
|
|
1108
1046
|
.label {
|
|
1109
1047
|
@apply gap-2 text-sm leading-none font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1110
1048
|
}
|
|
1111
1049
|
|
|
1050
|
+
.field > section > label {
|
|
1051
|
+
@apply gap-2 text-sm leading-snug font-medium in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1112
1054
|
/* Sidebar */
|
|
1113
1055
|
.sidebar nav {
|
|
1114
1056
|
@apply bg-sidebar text-sidebar-foreground;
|
|
@@ -1198,6 +1140,14 @@
|
|
|
1198
1140
|
.sidebar nav ul ul > li > details > summary {
|
|
1199
1141
|
@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-sm focus-visible:ring-2 [&>svg]:size-4;
|
|
1200
1142
|
}
|
|
1143
|
+
/* Progress */
|
|
1144
|
+
.progress {
|
|
1145
|
+
@apply bg-muted h-1 rounded-full;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.progress > span {
|
|
1149
|
+
@apply bg-primary;
|
|
1150
|
+
}
|
|
1201
1151
|
|
|
1202
1152
|
/* Skeleton */
|
|
1203
1153
|
.skeleton {
|