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.
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 +779 -342
  9. package/dist/basecoat-luma.cdn.min.css +2 -2
  10. package/dist/basecoat-lyra.cdn.css +790 -322
  11. package/dist/basecoat-lyra.cdn.min.css +2 -2
  12. package/dist/basecoat-maia.cdn.css +752 -295
  13. package/dist/basecoat-maia.cdn.min.css +2 -2
  14. package/dist/basecoat-mira.cdn.css +754 -293
  15. package/dist/basecoat-mira.cdn.min.css +2 -2
  16. package/dist/basecoat-nova.cdn.css +791 -321
  17. package/dist/basecoat-nova.cdn.min.css +2 -2
  18. package/dist/basecoat-rhea.cdn.css +761 -318
  19. package/dist/basecoat-rhea.cdn.min.css +2 -2
  20. package/dist/basecoat-sera.cdn.css +754 -302
  21. package/dist/basecoat-sera.cdn.min.css +2 -2
  22. package/dist/basecoat-vega.cdn.css +783 -324
  23. package/dist/basecoat-vega.cdn.min.css +2 -2
  24. package/dist/basecoat.cdn.css +783 -324
  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 +214 -277
  52. package/dist/styles/lyra.css +223 -273
  53. package/dist/styles/maia.css +212 -275
  54. package/dist/styles/mira.css +217 -272
  55. package/dist/styles/nova.css +223 -273
  56. package/dist/styles/rhea.css +219 -274
  57. package/dist/styles/sera.css +214 -277
  58. package/dist/styles/vega.css +222 -273
  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,74 +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 {
224
+ .alert[data-variant='destructive'] {
410
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
237
  .alert > section {
423
238
  @apply text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
424
239
  }
425
240
 
426
- .alert-destructive > section {
241
+ .alert[data-variant='destructive'] > section {
427
242
  @apply text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
428
243
  }
429
244
 
430
- .alert > [data-action],
431
- .alert-destructive > [data-action] {
432
- @apply absolute top-2.5 end-3;
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;
433
288
  }
434
289
 
435
290
  /* Badge */
436
- .badge,
437
- .badge-primary,
438
- .badge-secondary,
439
- .badge-destructive,
440
- .badge-outline,
441
- .badge-ghost,
442
- .badge-link {
443
- @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!;
444
- }
445
-
446
- .badge,
447
- .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'] {
448
297
  @apply text-foreground [a]:hover:text-foreground/70;
449
298
  }
450
299
 
451
- .badge-secondary {
300
+ .badge[data-variant='secondary'] {
452
301
  @apply text-muted-foreground [a]:hover:text-foreground;
453
302
  }
454
303
 
455
- .badge-outline {
304
+ .badge[data-variant='outline'] {
456
305
  @apply text-foreground [a]:hover:text-foreground/70;
457
306
  }
458
307
 
459
- .badge-destructive {
308
+ .badge[data-variant='destructive'] {
460
309
  @apply text-destructive [a]:hover:text-destructive/70 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40;
461
310
  }
462
311
 
463
- .badge-ghost {
312
+ .badge[data-variant='ghost'] {
464
313
  @apply text-muted-foreground hover:text-foreground;
465
314
  }
466
315
 
467
- .badge-link {
316
+ .badge[data-variant='link'] {
468
317
  @apply text-foreground underline-offset-4 hover:underline;
469
318
  }
470
319
 
@@ -558,7 +407,7 @@
558
407
 
559
408
  .combobox [role='option'].active,
560
409
  .combobox [role='option']:focus-visible {
561
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
410
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
562
411
  }
563
412
 
564
413
  .combobox [role='group'] {
@@ -618,7 +467,7 @@
618
467
 
619
468
  *:not(select).select [role='option'].active,
620
469
  *:not(select).select [role='option']:focus-visible {
621
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
470
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
622
471
  }
623
472
 
624
473
  *:not(select).select [role='group'] {
@@ -676,7 +525,7 @@
676
525
  }
677
526
 
678
527
  .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']).active {
679
- @apply bg-accent text-accent-foreground;
528
+ @apply bg-muted text-foreground;
680
529
  }
681
530
 
682
531
  .dropdown-menu [data-variant='destructive'] {
@@ -712,11 +561,11 @@
712
561
  @apply bg-border/50 -mx-1.5 my-1.5 h-px;
713
562
  }
714
563
 
715
- .dropdown-menu [data-shortcut] {
716
- @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;
717
566
  }
718
567
 
719
- .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) {
720
569
  @apply text-accent-foreground;
721
570
  }
722
571
 
@@ -741,11 +590,23 @@
741
590
 
742
591
  /* Card */
743
592
  .card {
744
- @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;
745
602
  }
746
603
 
747
604
  .card > header {
748
- @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;
749
610
  }
750
611
 
751
612
  .card > header > :is(h2, h3, [data-title], .card-title) {
@@ -757,11 +618,40 @@
757
618
  }
758
619
 
759
620
  .card > section {
760
- @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;
761
626
  }
762
627
 
763
628
  .card > footer {
764
- @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;
765
655
  }
766
656
 
767
657
  /* Checkbox */
@@ -844,8 +734,7 @@
844
734
  @apply gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3;
845
735
  }
846
736
 
847
- .fieldset > legend,
848
- .field-legend {
737
+ .fieldset > legend {
849
738
  @apply mb-3 font-semibold uppercase data-[variant=label]:text-xs data-[variant=legend]:text-xs;
850
739
  }
851
740
 
@@ -854,6 +743,8 @@
854
743
  @apply gap-10;
855
744
 
856
745
  &[role='radiogroup'],
746
+ &:has(> .field > input[type='checkbox']:not([role='switch'])),
747
+ &:has(> .field > input[type='radio']),
857
748
  &[data-slot='checkbox-group'],
858
749
  &[data-slot='radio-group'] {
859
750
  @apply gap-3;
@@ -866,15 +757,15 @@
866
757
  }
867
758
 
868
759
  .field {
869
- @apply data-[invalid=true]:text-destructive gap-3;
760
+ @apply data-invalid:text-destructive data-[invalid=true]:text-destructive gap-3;
870
761
  }
871
762
 
872
- .field > section,
873
- .field-content {
763
+ .field > section {
874
764
  @apply gap-1;
875
765
  }
876
766
 
877
767
  .field > label,
768
+ .field > section > label,
878
769
  label:has(> .field) {
879
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;
880
771
  }
@@ -897,18 +788,25 @@
897
788
  @apply p-4;
898
789
  }
899
790
  .field h2,
900
- .field h3,
901
- .field-title {
791
+ .field h3 {
902
792
  @apply gap-2 in-data-[disabled=true]:opacity-50 leading-normal font-semibold uppercase text-xs;
903
793
  }
904
794
 
905
795
  .fieldset legend + p,
906
796
  .field > p,
907
- .field section > p,
908
- .field-description {
797
+ .field section > p {
909
798
  @apply text-muted-foreground text-start text-sm [[data-variant=legend]+&]:-mt-1.5 normal-case tracking-normal;
910
799
  }
911
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
+
912
810
  .field-separator {
913
811
  @apply -my-2 h-5 text-sm in-data-[variant=outline]:-mb-2;
914
812
  }
@@ -917,8 +815,7 @@
917
815
  @apply text-muted-foreground px-2;
918
816
  }
919
817
 
920
- .field [role="alert"],
921
- .field-error {
818
+ .field [role="alert"] {
922
819
  @apply text-destructive text-sm;
923
820
  }
924
821
 
@@ -931,16 +828,15 @@
931
828
  .input-group:has(> :is(input, textarea, select, [data-control]):disabled) {
932
829
  @apply opacity-50;
933
830
  }
934
-
935
831
  .input-group > :is(input, select, [data-control]) {
936
832
  @apply px-0 py-1 text-sm;
937
833
  }
938
834
 
939
- .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]) {
940
836
  @apply ps-2;
941
837
  }
942
838
 
943
- .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]) {
944
840
  @apply pe-2;
945
841
  }
946
842
 
@@ -953,25 +849,58 @@
953
849
  @apply gap-2 py-2 text-sm font-medium text-muted-foreground select-none [&>svg:not([class*='size-'])]:size-3.5;
954
850
  }
955
851
 
956
- .input-group > [data-align='start']:has(> button) {
852
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> button) {
957
853
  @apply -ms-1;
958
854
  }
959
855
 
960
- .input-group > [data-align='end']:has(> button) {
856
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> button) {
961
857
  @apply -me-1;
962
858
  }
963
859
 
964
- .input-group > [data-align='start']:has(> kbd) {
860
+ .input-group > :is([data-align='start'], [data-align='inline-start']):has(> kbd) {
965
861
  @apply -ms-0.5;
966
862
  }
967
863
 
968
- .input-group > [data-align='end']:has(> kbd) {
864
+ .input-group > :is([data-align='end'], [data-align='inline-end']):has(> kbd) {
969
865
  @apply -me-0.5;
970
866
  }
971
867
  .input-group[data-orientation='vertical'] > :is(header, footer, [role='group'], [data-align]) {
972
868
  @apply px-0;
973
869
  }
974
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
+
975
904
  .input-group > :is(kbd, span > kbd, [role='group'] > kbd, header > kbd, footer > kbd) {
976
905
  @apply rounded-none bg-muted-foreground/10 px-1.5;
977
906
  }
@@ -1006,7 +935,7 @@
1006
935
  @apply text-lg font-semibold tracking-wider uppercase;
1007
936
  }
1008
937
 
1009
- .empty p {
938
+ .empty > header > p {
1010
939
  @apply text-muted-foreground mt-0.5 text-sm/relaxed;
1011
940
  }
1012
941
 
@@ -1057,15 +986,15 @@
1057
986
  @apply [&_svg:not([class*='size-'])]:size-4;
1058
987
  }
1059
988
 
1060
- .item > figure:has(img) {
989
+ .item > figure:has(> img) {
1061
990
  @apply size-10 overflow-hidden rounded-none;
1062
991
  }
1063
992
 
1064
- .item[data-size='sm'] > figure:has(img) {
993
+ .item[data-size='sm'] > figure:has(> img) {
1065
994
  @apply size-8;
1066
995
  }
1067
996
 
1068
- .item[data-size='xs'] > figure:has(img) {
997
+ .item[data-size='xs'] > figure:has(> img) {
1069
998
  @apply size-6 rounded-none;
1070
999
  }
1071
1000
 
@@ -1115,20 +1044,20 @@
1115
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;
1116
1045
  }
1117
1046
 
1118
- .kbd-group {
1119
- @apply gap-1;
1120
- }
1121
-
1122
1047
  /* Label */
1123
1048
  .field > label,
1124
1049
  .label {
1125
1050
  @apply gap-2 font-semibold leading-relaxed in-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 uppercase text-xs tracking-wide;
1126
1051
  }
1127
1052
 
1128
- :is(.field > label, .label):has(input[type='checkbox']),
1129
- :is(.field > label, .label):has(input[type='radio']),
1130
- :is(.field > label, .label):has(input[role='switch']),
1131
- :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) {
1132
1061
  @apply text-sm font-normal normal-case tracking-normal;
1133
1062
  }
1134
1063
 
@@ -1221,6 +1150,14 @@
1221
1150
  .sidebar nav ul ul > li > details > summary {
1222
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;
1223
1152
  }
1153
+ /* Progress */
1154
+ .progress {
1155
+ @apply bg-muted h-0.5 rounded-none;
1156
+ }
1157
+
1158
+ .progress > span {
1159
+ @apply bg-primary;
1160
+ }
1224
1161
 
1225
1162
  /* Skeleton */
1226
1163
  .skeleton {