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.
Files changed (59) hide show
  1. package/dist/base/base.css +42 -16
  2. package/dist/basecoat-base.cdn.css +495 -153
  3. package/dist/basecoat-base.cdn.min.css +2 -2
  4. package/dist/basecoat-compat.cdn.css +1066 -0
  5. package/dist/basecoat-compat.cdn.min.css +2 -0
  6. package/dist/basecoat-compat.css +1 -0
  7. package/dist/basecoat-components.css +4 -1
  8. package/dist/basecoat-luma.cdn.css +787 -341
  9. package/dist/basecoat-luma.cdn.min.css +2 -2
  10. package/dist/basecoat-lyra.cdn.css +791 -314
  11. package/dist/basecoat-lyra.cdn.min.css +2 -2
  12. package/dist/basecoat-maia.cdn.css +767 -301
  13. package/dist/basecoat-maia.cdn.min.css +2 -2
  14. package/dist/basecoat-mira.cdn.css +775 -305
  15. package/dist/basecoat-mira.cdn.min.css +2 -2
  16. package/dist/basecoat-nova.cdn.css +792 -313
  17. package/dist/basecoat-nova.cdn.min.css +2 -2
  18. package/dist/basecoat-rhea.cdn.css +793 -341
  19. package/dist/basecoat-rhea.cdn.min.css +2 -2
  20. package/dist/basecoat-sera.cdn.css +769 -308
  21. package/dist/basecoat-sera.cdn.min.css +2 -2
  22. package/dist/basecoat-vega.cdn.css +784 -316
  23. package/dist/basecoat-vega.cdn.min.css +2 -2
  24. package/dist/basecoat.cdn.css +784 -316
  25. package/dist/basecoat.cdn.min.css +2 -2
  26. package/dist/compat/legacy.css +429 -0
  27. package/dist/components/alert.css +11 -6
  28. package/dist/components/avatar.css +47 -0
  29. package/dist/components/badge.css +1 -7
  30. package/dist/components/button-group.css +7 -7
  31. package/dist/components/button.css +1 -56
  32. package/dist/components/chart.css +56 -0
  33. package/dist/components/dropdown-menu.css +9 -1
  34. package/dist/components/empty.css +1 -1
  35. package/dist/components/field.css +7 -11
  36. package/dist/components/input-group.css +30 -6
  37. package/dist/components/item.css +1 -1
  38. package/dist/components/kbd.css +0 -4
  39. package/dist/components/label.css +1 -0
  40. package/dist/components/progress.css +14 -0
  41. package/dist/js/all.js +7 -2
  42. package/dist/js/all.min.js +1 -1
  43. package/dist/js/basecoat.js +1 -0
  44. package/dist/js/basecoat.min.js +1 -1
  45. package/dist/js/chart.js +537 -0
  46. package/dist/js/chart.min.js +1 -0
  47. package/dist/js/select.js +5 -1
  48. package/dist/js/select.min.js +1 -1
  49. package/dist/js/toast.js +1 -1
  50. package/dist/js/toast.min.js +1 -1
  51. package/dist/styles/luma.css +219 -279
  52. package/dist/styles/lyra.css +228 -275
  53. package/dist/styles/maia.css +217 -277
  54. package/dist/styles/mira.css +222 -274
  55. package/dist/styles/nova.css +228 -275
  56. package/dist/styles/rhea.css +224 -276
  57. package/dist/styles/sera.css +219 -279
  58. package/dist/styles/vega.css +227 -275
  59. package/package.json +7 -1
@@ -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-none border border-transparent bg-clip-padding text-xs font-semibold uppercase tracking-widest focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-3.5;
60
5
  }
61
6
 
62
- .btn,
63
- .btn-primary,
64
- .btn-secondary,
65
- .btn-outline,
66
- .btn-ghost,
67
- .btn-link,
68
- .btn-destructive {
69
- @apply h-10 gap-1.5 px-6;
70
-
71
- &:has(> [data-icon=inline-start]) {
72
- @apply ps-4;
73
- }
74
-
75
- &:has(> [data-icon=inline-end]) {
76
- @apply pe-4;
77
- }
7
+ .btn:not([data-size]),
8
+ .btn[data-size='default'] {
9
+ @apply h-10 gap-1.5 px-6 has-[[data-icon='inline-end']]:pr-4 has-[[data-icon='inline-start']]:pl-4;
78
10
  }
79
11
 
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-7 gap-1 px-3 [&_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-7 gap-1 px-3 [&_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
- .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-9 gap-1 px-4;
106
-
107
- &:has(> [data-icon=inline-start]) {
108
- @apply ps-3;
109
- }
110
-
111
- &:has(> [data-icon=inline-end]) {
112
- @apply pe-3;
113
- }
16
+ .btn[data-size='sm'] {
17
+ @apply h-9 gap-1 px-4 has-[[data-icon='inline-end']]:pr-3 has-[[data-icon='inline-start']]:pl-3;
114
18
  }
115
19
 
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-11 gap-1.5 px-8;
124
-
125
- &:has(> [data-icon=inline-start]) {
126
- @apply ps-5;
127
- }
128
-
129
- &:has(> [data-icon=inline-end]) {
130
- @apply pe-5;
131
- }
20
+ .btn[data-size='lg'] {
21
+ @apply h-11 gap-1.5 px-8 has-[[data-icon='inline-end']]:pr-5 has-[[data-icon='inline-start']]:pl-5;
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-10;
142
26
  }
143
27
 
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 {
28
+ .btn[data-size='icon-xs'] {
151
29
  @apply size-7 [&_svg:not([class*='size-'])]:size-3;
152
30
  }
153
31
 
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 {
32
+ .btn[data-size='icon-sm'] {
161
33
  @apply size-9;
162
34
  }
163
35
 
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 {
36
+ .btn[data-size='icon-lg'] {
171
37
  @apply size-11;
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-transparent hover:bg-muted hover:text-foreground 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 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
 
@@ -254,14 +71,14 @@
254
71
  }
255
72
  }
256
73
 
257
- .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)),
258
- .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)) {
74
+ .button-group:has(> .btn[data-variant='outline']),
75
+ .button-group:has(> .select > button.btn[data-variant='outline']) {
259
76
  > .input,
260
77
  > .select > button {
261
78
  @apply border-border focus-visible:border-ring;
262
79
  }
263
80
 
264
- > .button-group-text {
81
+ > :is(span, label, output) {
265
82
  @apply border-border;
266
83
  }
267
84
  }
@@ -280,12 +97,11 @@
280
97
  }
281
98
  }
282
99
 
283
- .button-group-text {
100
+ .button-group > :is(span, label, output) {
284
101
  @apply gap-2 border border-transparent border-b-input bg-transparent px-2.5 text-xs font-semibold uppercase [&_svg:not([class*='size-'])]:size-3.5;
285
102
  }
286
103
 
287
- .button-group > hr[role='separator'],
288
- .button-group-separator {
104
+ .button-group > hr[role='separator'] {
289
105
  @apply bg-input;
290
106
  }
291
107
 
@@ -397,71 +213,107 @@
397
213
  }
398
214
 
399
215
  /* Alert */
400
- .alert,
401
- .alert-destructive {
402
- @apply grid gap-1 bg-background 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 relative after:-inset-y-px after:-start-px after:w-0.5 after:absolute;
216
+ .alert {
217
+ @apply grid gap-1 bg-background 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 relative after:-inset-y-px after:-start-px after:w-0.5 after:absolute;
403
218
  }
404
219
 
405
220
  .alert {
406
221
  @apply bg-card text-card-foreground after:bg-foreground;
407
222
  }
408
223
 
409
- .alert-destructive {
410
- @apply text-destructive bg-card [&>section]:text-destructive/90 [&>svg]:text-current after:bg-destructive;
224
+ .alert[data-variant='destructive'] {
225
+ @apply text-destructive bg-card [&>svg]:text-current after:bg-destructive;
411
226
  }
412
227
 
413
228
  .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
414
- .alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
229
+ .alert[data-variant='destructive'] > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
415
230
  @apply font-semibold text-sm;
416
231
  }
417
232
 
418
233
 
419
- :is(.alert, .alert-destructive):has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
234
+ .alert:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
420
235
  @apply col-start-2;
421
236
  }
422
- .alert > section,
423
- .alert-destructive > section {
237
+ .alert > section {
424
238
  @apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
425
239
  }
426
240
 
427
- .alert > [data-action],
428
- .alert-destructive > [data-action] {
429
- @apply absolute top-2.5 end-3;
241
+ .alert[data-variant='destructive'] > section {
242
+ @apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
243
+ }
244
+
245
+ .alert > footer,
246
+ .alert[data-variant='destructive'] > footer {
247
+ @apply top-2.5 end-3;
248
+ }
249
+ /* Avatar */
250
+ .avatar {
251
+ @apply rounded-full after:rounded-[inherit];
252
+ }
253
+
254
+ .avatar {
255
+ @apply size-8;
256
+ }
257
+
258
+ .avatar[data-size='sm'] {
259
+ @apply size-6;
260
+ }
261
+
262
+ .avatar[data-size='lg'] {
263
+ @apply size-10;
264
+ }
265
+
266
+ .avatar > span:not([data-badge]) {
267
+ @apply bg-muted text-muted-foreground rounded-[inherit];
268
+ }
269
+
270
+ .avatar > img {
271
+ @apply rounded-[inherit];
272
+ }
273
+
274
+ .avatar > [data-badge] {
275
+ @apply bg-primary text-primary-foreground ring-background;
276
+ }
277
+
278
+ .avatar-group > [data-count] {
279
+ @apply bg-muted text-muted-foreground size-8 rounded-full text-sm [&>svg]:size-4;
280
+ }
281
+
282
+ .avatar-group:has(> .avatar[data-size='sm']) > [data-count] {
283
+ @apply size-6 [&>svg]:size-3;
284
+ }
285
+
286
+ .avatar-group:has(> .avatar[data-size='lg']) > [data-count] {
287
+ @apply size-10 [&>svg]:size-5;
430
288
  }
431
289
 
432
290
  /* Badge */
433
- .badge,
434
- .badge-primary,
435
- .badge-secondary,
436
- .badge-destructive,
437
- .badge-outline,
438
- .badge-ghost,
439
- .badge-link {
440
- @apply gap-1.5 rounded-none border-0 bg-transparent px-0 py-0 text-[0.625rem] font-semibold uppercase tracking-widest transition-colors has-data-[icon=inline-end]:pe-0 has-data-[icon=inline-start]:ps-0 [&>svg]:size-3!;
441
- }
442
-
443
- .badge,
444
- .badge-primary {
291
+ .badge {
292
+ @apply gap-1.5 rounded-none border-0 bg-transparent px-0 py-0 text-[0.625rem] font-semibold uppercase tracking-widest transition-colors [&>svg]:size-3!;
293
+ }
294
+
295
+ .badge:not([data-variant]),
296
+ .badge[data-variant='primary'] {
445
297
  @apply text-foreground [a]:hover:text-foreground/70;
446
298
  }
447
299
 
448
- .badge-secondary {
300
+ .badge[data-variant='secondary'] {
449
301
  @apply text-muted-foreground [a]:hover:text-foreground;
450
302
  }
451
303
 
452
- .badge-outline {
304
+ .badge[data-variant='outline'] {
453
305
  @apply text-foreground [a]:hover:text-foreground/70;
454
306
  }
455
307
 
456
- .badge-destructive {
308
+ .badge[data-variant='destructive'] {
457
309
  @apply text-destructive [a]:hover:text-destructive/70 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
458
310
  }
459
311
 
460
- .badge-ghost {
312
+ .badge[data-variant='ghost'] {
461
313
  @apply text-muted-foreground hover:text-foreground;
462
314
  }
463
315
 
464
- .badge-link {
316
+ .badge[data-variant='link'] {
465
317
  @apply text-foreground underline-offset-4 hover:underline;
466
318
  }
467
319
 
@@ -555,7 +407,7 @@
555
407
 
556
408
  .combobox [role='option'].active,
557
409
  .combobox [role='option']:focus-visible {
558
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
410
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
559
411
  }
560
412
 
561
413
  .combobox [role='group'] {
@@ -615,7 +467,7 @@
615
467
 
616
468
  *:not(select).select [role='option'].active,
617
469
  *:not(select).select [role='option']:focus-visible {
618
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
470
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
619
471
  }
620
472
 
621
473
  *:not(select).select [role='group'] {
@@ -673,7 +525,7 @@
673
525
  }
674
526
 
675
527
  .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
676
- @apply bg-accent text-accent-foreground;
528
+ @apply bg-muted text-foreground;
677
529
  }
678
530
 
679
531
  .dropdown-menu [data-variant='destructive'] {
@@ -709,11 +561,11 @@
709
561
  @apply bg-border/50 -mx-1.5 my-1.5 h-px;
710
562
  }
711
563
 
712
- .dropdown-menu [data-shortcut] {
713
- @apply text-muted-foreground text-xs tracking-widest;
564
+ .dropdown-menu :is([data-shortcut], kbd:last-child) {
565
+ @apply text-muted-foreground font-sans text-xs tracking-widest;
714
566
  }
715
567
 
716
- .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) [data-shortcut] {
568
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
717
569
  @apply text-accent-foreground;
718
570
  }
719
571
 
@@ -738,11 +590,23 @@
738
590
 
739
591
  /* Card */
740
592
  .card {
741
- @apply bg-card text-card-foreground ring-foreground/5 gap-8 overflow-hidden py-8 text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-5 data-[size=sm]:py-5 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
593
+ @apply bg-card text-card-foreground ring-foreground/5 overflow-hidden text-sm shadow-sm ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-none [&>img:last-child]:rounded-none;
594
+ }
595
+
596
+ .card {
597
+ @apply gap-8 py-8;
598
+ }
599
+
600
+ .card[data-size='sm'] {
601
+ @apply gap-5 py-5;
742
602
  }
743
603
 
744
604
  .card > header {
745
- @apply gap-1.5 rounded-none px-8 in-data-[size=sm]:px-5 [.border-b]:pb-8 in-data-[size=sm]:[.border-b]:pb-5;
605
+ @apply gap-1.5 rounded-none px-8 [.border-b]:pb-8;
606
+ }
607
+
608
+ .card[data-size='sm'] > header {
609
+ @apply px-5 [.border-b]:pb-5;
746
610
  }
747
611
 
748
612
  .card > header > :is(h2, h3, [data-title], .card-title) {
@@ -754,11 +618,40 @@
754
618
  }
755
619
 
756
620
  .card > section {
757
- @apply px-8 in-data-[size=sm]:px-5;
621
+ @apply px-8;
622
+ }
623
+
624
+ .card[data-size='sm'] > section {
625
+ @apply px-5;
758
626
  }
759
627
 
760
628
  .card > footer {
761
- @apply px-8 in-data-[size=sm]:px-5 [.border-t]:pt-8 in-data-[size=sm]:[.border-t]:pt-5;
629
+ @apply px-8 [.border-t]:pt-8;
630
+ }
631
+
632
+ .card[data-size='sm'] > footer {
633
+ @apply px-5 [.border-t]:pt-5;
634
+ }
635
+
636
+ /* Chart */
637
+ .chart {
638
+ --chart-bar-radius: 0;
639
+ }
640
+
641
+ .chart-tooltip {
642
+ @apply border-border/50 bg-background text-foreground gap-1.5 rounded-none border px-2.5 py-1.5 text-xs shadow-xl;
643
+ }
644
+
645
+ .chart-tooltip-title {
646
+ @apply font-medium;
647
+ }
648
+
649
+ .chart-legend-item {
650
+ @apply text-foreground;
651
+ }
652
+
653
+ .chart-legend-item[aria-pressed='false'] {
654
+ @apply text-muted-foreground;
762
655
  }
763
656
 
764
657
  /* Checkbox */
@@ -841,8 +734,7 @@
841
734
  @apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
842
735
  }
843
736
 
844
- .fieldset > legend,
845
- .field-legend {
737
+ .fieldset > legend {
846
738
  @apply mb-3 font-semibold uppercase data-[variant=label]:text-xs data-[variant=legend]:text-xs;
847
739
  }
848
740
 
@@ -851,6 +743,8 @@
851
743
  @apply gap-10;
852
744
 
853
745
  &[role='radiogroup'],
746
+ &:has(> .field > input[type='checkbox']:not([role='switch'])),
747
+ &:has(> .field > input[type='radio']),
854
748
  &[data-slot='checkbox-group'],
855
749
  &[data-slot='radio-group'] {
856
750
  @apply gap-3;
@@ -863,15 +757,15 @@
863
757
  }
864
758
 
865
759
  .field {
866
- @apply data-[invalid=true]:text-destructive gap-3;
760
+ @apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-3;
867
761
  }
868
762
 
869
- .field > section,
870
- .field-content {
763
+ .field > section {
871
764
  @apply gap-1;
872
765
  }
873
766
 
874
767
  .field > label,
768
+ .field > section > label,
875
769
  label:has(> .field) {
876
770
  @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 in-data-[disabled=true]:opacity-50 leading-relaxed;
877
771
  }
@@ -894,18 +788,25 @@
894
788
  @apply p-4;
895
789
  }
896
790
  .field h2,
897
- .field h3,
898
- .field-title {
791
+ .field h3 {
899
792
  @apply gap-2 in-data-[disabled=true]:opacity-50 leading-normal font-semibold uppercase text-xs;
900
793
  }
901
794
 
902
795
  .fieldset legend + p,
903
796
  .field > p,
904
- .field section > p,
905
- .field-description {
797
+ .field section > p {
906
798
  @apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 normal-case tracking-normal;
907
799
  }
908
800
 
801
+ .fieldset > legend[data-variant='label'] {
802
+ @apply mb-0;
803
+ }
804
+
805
+ .fieldset > legend:not([data-variant]) + p,
806
+ .fieldset > legend[data-variant='legend'] + p {
807
+ @apply -mt-1.5;
808
+ }
809
+
909
810
  .field-separator {
910
811
  @apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
911
812
  }
@@ -914,8 +815,7 @@
914
815
  @apply text-muted-foreground px-2;
915
816
  }
916
817
 
917
- .field [role="alert"],
918
- .field-error {
818
+ .field [role="alert"] {
919
819
  @apply text-destructive text-sm;
920
820
  }
921
821
 
@@ -928,16 +828,15 @@
928
828
  .input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
929
829
  @apply opacity-50;
930
830
  }
931
-
932
831
  .input-group > :is(input, select, [data-control]) {
933
832
  @apply px-0 py-1 text-sm;
934
833
  }
935
834
 
936
- .input-group:not([data-orientation='vertical']):has(> [data-align='start']) > :is(input, select, [data-control]) {
835
+ .input-group:not([data-orientation='vertical']):has(> :is([data-align='start'], [data-align='inline-start'])) > :is(input, select, [data-control]) {
937
836
  @apply ps-2;
938
837
  }
939
838
 
940
- .input-group:not([data-orientation='vertical']):has(> [data-align='end']) > :is(input, select, [data-control]) {
839
+ .input-group:not([data-orientation='vertical']):has(> :is([data-align='end'], [data-align='inline-end'])) > :is(input, select, [data-control]) {
941
840
  @apply pe-2;
942
841
  }
943
842
 
@@ -950,25 +849,58 @@
950
849
  @apply gap-2 py-2 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-3.5;
951
850
  }
952
851
 
953
- .input-group > [data-align='start']:has(> button) {
852
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
954
853
  @apply -ms-1;
955
854
  }
956
855
 
957
- .input-group > [data-align='end']:has(> button) {
856
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
958
857
  @apply -me-1;
959
858
  }
960
859
 
961
- .input-group > [data-align='start']:has(> kbd) {
860
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
962
861
  @apply -ms-0.5;
963
862
  }
964
863
 
965
- .input-group > [data-align='end']:has(> kbd) {
864
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
966
865
  @apply -me-0.5;
967
866
  }
968
867
  .input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
969
868
  @apply px-0;
970
869
  }
971
870
 
871
+ .input-group > [data-align='block-start'] {
872
+ @apply px-0 pt-2;
873
+ }
874
+
875
+ .input-group > [data-align='block-end'] {
876
+ @apply px-0 pb-2;
877
+ }
878
+
879
+ .input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']) {
880
+ @apply px-0 pt-3;
881
+ }
882
+
883
+ .input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']) {
884
+ @apply px-0 pb-3;
885
+ }
886
+
887
+ .input-group[data-orientation='vertical']:has(> input) > :is(header[data-align='start'], [data-align='block-start']) {
888
+ @apply pt-3.5;
889
+ }
890
+
891
+ .input-group[data-orientation='vertical']:has(> input) > :is(footer[data-align='end'], [data-align='block-end']) {
892
+ @apply pb-3.5;
893
+ }
894
+
895
+ .input-group[data-orientation='vertical'] > :is(header[data-align='start'], [data-align='block-start']).border-b {
896
+ @apply pb-3.5;
897
+ }
898
+
899
+ .input-group[data-orientation='vertical'] > :is(footer[data-align='end'], [data-align='block-end']).border-t {
900
+ @apply pt-3.5;
901
+ }
902
+
903
+
972
904
  .input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
973
905
  @apply rounded-none bg-muted-foreground/10 px-1.5;
974
906
  }
@@ -1003,7 +935,7 @@
1003
935
  @apply text-lg font-semibold tracking-wider uppercase;
1004
936
  }
1005
937
 
1006
- .empty p {
938
+ .empty > header > p {
1007
939
  @apply text-muted-foreground mt-0.5 text-sm/relaxed;
1008
940
  }
1009
941
 
@@ -1054,15 +986,15 @@
1054
986
  @apply [&_svg:not([class*='size-'])]:size-4;
1055
987
  }
1056
988
 
1057
- .item > figure:has(img) {
989
+ .item > figure:has(> img) {
1058
990
  @apply size-10 overflow-hidden rounded-none;
1059
991
  }
1060
992
 
1061
- .item[data-size='sm'] > figure:has(img) {
993
+ .item[data-size='sm'] > figure:has(> img) {
1062
994
  @apply size-8;
1063
995
  }
1064
996
 
1065
- .item[data-size='xs'] > figure:has(img) {
997
+ .item[data-size='xs'] > figure:has(> img) {
1066
998
  @apply size-6 rounded-none;
1067
999
  }
1068
1000
 
@@ -1112,20 +1044,20 @@
1112
1044
  @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-none px-1.5 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3;
1113
1045
  }
1114
1046
 
1115
- .kbd-group {
1116
- @apply gap-1;
1117
- }
1118
-
1119
1047
  /* Label */
1120
1048
  .field > label,
1121
1049
  .label {
1122
1050
  @apply gap-2 font-semibold leading-relaxed in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 uppercase text-xs tracking-wide;
1123
1051
  }
1124
1052
 
1125
- :is(.field > label, .label):has(input[type='checkbox']),
1126
- :is(.field > label, .label):has(input[type='radio']),
1127
- :is(.field > label, .label):has(input[role='switch']),
1128
- :is(input[type='checkbox'], input[type='radio'], input[role='switch']) + :is(.field > label, .label) {
1053
+ .field > section > label {
1054
+ @apply gap-2 font-semibold leading-relaxed in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 uppercase text-xs tracking-wide;
1055
+ }
1056
+
1057
+ :is(.field > label, .field > section > label, .label):has(input[type='checkbox']),
1058
+ :is(.field > label, .field > section > label, .label):has(input[type='radio']),
1059
+ :is(.field > label, .field > section > label, .label):has(input[role='switch']),
1060
+ :is(input[type='checkbox'], input[type='radio'], input[role='switch']) + :is(.field > label, .field > section > label, .label) {
1129
1061
  @apply text-sm font-normal normal-case tracking-normal;
1130
1062
  }
1131
1063
 
@@ -1218,6 +1150,14 @@
1218
1150
  .sidebar nav ul ul > li > details > summary {
1219
1151
  @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-none px-3 text-sm focus-visible:ring-2 [&>svg]:size-3.5;
1220
1152
  }
1153
+ /* Progress */
1154
+ .progress {
1155
+ @apply bg-muted h-0.5 rounded-none;
1156
+ }
1157
+
1158
+ .progress > span {
1159
+ @apply bg-primary;
1160
+ }
1221
1161
 
1222
1162
  /* Skeleton */
1223
1163
  .skeleton {