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
@@ -0,0 +1,429 @@
1
+ /* Legacy Basecoat class API compatibility.
2
+ This layer preserves pre-1.0 visual classes for the default Basecoat style only. */
3
+
4
+ @layer components {
5
+ .btn-primary,
6
+ .btn-secondary,
7
+ .btn-outline,
8
+ .btn-ghost,
9
+ .btn-link,
10
+ .btn-destructive,
11
+ .btn-xs,
12
+ .btn-xs-primary,
13
+ .btn-xs-secondary,
14
+ .btn-xs-outline,
15
+ .btn-xs-ghost,
16
+ .btn-xs-link,
17
+ .btn-xs-destructive,
18
+ .btn-sm,
19
+ .btn-sm-primary,
20
+ .btn-sm-secondary,
21
+ .btn-sm-outline,
22
+ .btn-sm-ghost,
23
+ .btn-sm-link,
24
+ .btn-sm-destructive,
25
+ .btn-lg,
26
+ .btn-lg-primary,
27
+ .btn-lg-secondary,
28
+ .btn-lg-outline,
29
+ .btn-lg-ghost,
30
+ .btn-lg-link,
31
+ .btn-lg-destructive,
32
+ .btn-icon,
33
+ .btn-icon-primary,
34
+ .btn-icon-secondary,
35
+ .btn-icon-outline,
36
+ .btn-icon-ghost,
37
+ .btn-icon-link,
38
+ .btn-icon-destructive,
39
+ .btn-xs-icon,
40
+ .btn-xs-icon-primary,
41
+ .btn-xs-icon-secondary,
42
+ .btn-xs-icon-outline,
43
+ .btn-xs-icon-ghost,
44
+ .btn-xs-icon-link,
45
+ .btn-xs-icon-destructive,
46
+ .btn-sm-icon,
47
+ .btn-sm-icon-primary,
48
+ .btn-sm-icon-secondary,
49
+ .btn-sm-icon-outline,
50
+ .btn-sm-icon-ghost,
51
+ .btn-sm-icon-link,
52
+ .btn-sm-icon-destructive,
53
+ .btn-lg-icon,
54
+ .btn-lg-icon-primary,
55
+ .btn-lg-icon-secondary,
56
+ .btn-lg-icon-outline,
57
+ .btn-lg-icon-ghost,
58
+ .btn-lg-icon-link,
59
+ .btn-lg-icon-destructive {
60
+ @apply inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
61
+ }
62
+ }
63
+
64
+ /* Button */
65
+ @layer components {
66
+ .btn-primary,
67
+ .btn-secondary,
68
+ .btn-outline,
69
+ .btn-ghost,
70
+ .btn-link,
71
+ .btn-destructive,
72
+ .btn-xs,
73
+ .btn-xs-primary,
74
+ .btn-xs-secondary,
75
+ .btn-xs-outline,
76
+ .btn-xs-ghost,
77
+ .btn-xs-link,
78
+ .btn-xs-destructive,
79
+ .btn-sm,
80
+ .btn-sm-primary,
81
+ .btn-sm-secondary,
82
+ .btn-sm-outline,
83
+ .btn-sm-ghost,
84
+ .btn-sm-link,
85
+ .btn-sm-destructive,
86
+ .btn-lg,
87
+ .btn-lg-primary,
88
+ .btn-lg-secondary,
89
+ .btn-lg-outline,
90
+ .btn-lg-ghost,
91
+ .btn-lg-link,
92
+ .btn-lg-destructive,
93
+ .btn-icon,
94
+ .btn-icon-primary,
95
+ .btn-icon-secondary,
96
+ .btn-icon-outline,
97
+ .btn-icon-ghost,
98
+ .btn-icon-link,
99
+ .btn-icon-destructive,
100
+ .btn-xs-icon,
101
+ .btn-xs-icon-primary,
102
+ .btn-xs-icon-secondary,
103
+ .btn-xs-icon-outline,
104
+ .btn-xs-icon-ghost,
105
+ .btn-xs-icon-link,
106
+ .btn-xs-icon-destructive,
107
+ .btn-sm-icon,
108
+ .btn-sm-icon-primary,
109
+ .btn-sm-icon-secondary,
110
+ .btn-sm-icon-outline,
111
+ .btn-sm-icon-ghost,
112
+ .btn-sm-icon-link,
113
+ .btn-sm-icon-destructive,
114
+ .btn-lg-icon,
115
+ .btn-lg-icon-primary,
116
+ .btn-lg-icon-secondary,
117
+ .btn-lg-icon-outline,
118
+ .btn-lg-icon-ghost,
119
+ .btn-lg-icon-link,
120
+ .btn-lg-icon-destructive {
121
+ @apply rounded-md 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;
122
+ }
123
+
124
+ .btn-primary,
125
+ .btn-secondary,
126
+ .btn-outline,
127
+ .btn-ghost,
128
+ .btn-link,
129
+ .btn-destructive {
130
+ @apply h-9 gap-1.5 px-2.5;
131
+ }
132
+
133
+ .btn-xs,
134
+ .btn-xs-primary,
135
+ .btn-xs-secondary,
136
+ .btn-xs-outline,
137
+ .btn-xs-ghost,
138
+ .btn-xs-link,
139
+ .btn-xs-destructive {
140
+ @apply h-6 gap-1 px-2 text-xs rounded-[min(var(--radius-md),8px)] [&_svg:not([class*='size-'])]:size-3;
141
+ }
142
+
143
+ .btn-sm,
144
+ .btn-sm-primary,
145
+ .btn-sm-secondary,
146
+ .btn-sm-outline,
147
+ .btn-sm-ghost,
148
+ .btn-sm-link,
149
+ .btn-sm-destructive {
150
+ @apply h-8 gap-1 px-2.5 rounded-[min(var(--radius-md),10px)];
151
+ }
152
+
153
+ .btn-lg,
154
+ .btn-lg-primary,
155
+ .btn-lg-secondary,
156
+ .btn-lg-outline,
157
+ .btn-lg-ghost,
158
+ .btn-lg-link,
159
+ .btn-lg-destructive {
160
+ @apply h-10 gap-1.5 px-2.5;
161
+ }
162
+
163
+ .btn-icon,
164
+ .btn-icon-primary,
165
+ .btn-icon-secondary,
166
+ .btn-icon-outline,
167
+ .btn-icon-ghost,
168
+ .btn-icon-link,
169
+ .btn-icon-destructive {
170
+ @apply size-9;
171
+ }
172
+
173
+ .btn-xs-icon,
174
+ .btn-xs-icon-primary,
175
+ .btn-xs-icon-secondary,
176
+ .btn-xs-icon-outline,
177
+ .btn-xs-icon-ghost,
178
+ .btn-xs-icon-link,
179
+ .btn-xs-icon-destructive {
180
+ @apply size-6 rounded-[min(var(--radius-md),8px)] [&_svg:not([class*='size-'])]:size-3;
181
+ }
182
+
183
+ .btn-sm-icon,
184
+ .btn-sm-icon-primary,
185
+ .btn-sm-icon-secondary,
186
+ .btn-sm-icon-outline,
187
+ .btn-sm-icon-ghost,
188
+ .btn-sm-icon-link,
189
+ .btn-sm-icon-destructive {
190
+ @apply size-8 rounded-[min(var(--radius-md),10px)];
191
+ }
192
+
193
+ .btn-lg-icon,
194
+ .btn-lg-icon-primary,
195
+ .btn-lg-icon-secondary,
196
+ .btn-lg-icon-outline,
197
+ .btn-lg-icon-ghost,
198
+ .btn-lg-icon-link,
199
+ .btn-lg-icon-destructive {
200
+ @apply size-10;
201
+ }
202
+
203
+ .btn-primary,
204
+ .btn-xs,
205
+ .btn-xs-primary,
206
+ .btn-sm,
207
+ .btn-sm-primary,
208
+ .btn-lg,
209
+ .btn-lg-primary,
210
+ .btn-icon,
211
+ .btn-icon-primary,
212
+ .btn-xs-icon,
213
+ .btn-xs-icon-primary,
214
+ .btn-sm-icon,
215
+ .btn-sm-icon-primary,
216
+ .btn-lg-icon,
217
+ .btn-lg-icon-primary {
218
+ @apply bg-primary text-primary-foreground hover:bg-primary/80;
219
+ }
220
+
221
+ .btn-secondary,
222
+ .btn-xs-secondary,
223
+ .btn-sm-secondary,
224
+ .btn-lg-secondary,
225
+ .btn-icon-secondary,
226
+ .btn-xs-icon-secondary,
227
+ .btn-sm-icon-secondary,
228
+ .btn-lg-icon-secondary {
229
+ @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;
230
+ }
231
+
232
+ .btn-outline,
233
+ .btn-xs-outline,
234
+ .btn-sm-outline,
235
+ .btn-lg-outline,
236
+ .btn-icon-outline,
237
+ .btn-xs-icon-outline,
238
+ .btn-sm-icon-outline,
239
+ .btn-lg-icon-outline {
240
+ @apply border-border bg-background shadow-xs 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;
241
+ }
242
+
243
+ .btn-ghost,
244
+ .btn-xs-ghost,
245
+ .btn-sm-ghost,
246
+ .btn-lg-ghost,
247
+ .btn-icon-ghost,
248
+ .btn-xs-icon-ghost,
249
+ .btn-sm-icon-ghost,
250
+ .btn-lg-icon-ghost {
251
+ @apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
252
+ }
253
+
254
+ .btn-link,
255
+ .btn-xs-link,
256
+ .btn-sm-link,
257
+ .btn-lg-link,
258
+ .btn-icon-link,
259
+ .btn-xs-icon-link,
260
+ .btn-sm-icon-link,
261
+ .btn-lg-icon-link {
262
+ @apply text-primary underline-offset-4 hover:underline;
263
+ }
264
+
265
+ .btn-destructive,
266
+ .btn-xs-destructive,
267
+ .btn-sm-destructive,
268
+ .btn-lg-destructive,
269
+ .btn-icon-destructive,
270
+ .btn-xs-icon-destructive,
271
+ .btn-sm-icon-destructive,
272
+ .btn-lg-icon-destructive {
273
+ @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;
274
+ }
275
+
276
+ }
277
+
278
+ /* Badge legacy aliases */
279
+ @layer components {
280
+ .badge-primary,
281
+ .badge-secondary,
282
+ .badge-destructive,
283
+ .badge-outline,
284
+ .badge-ghost,
285
+ .badge-link {
286
+ @apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
287
+ @apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3!;
288
+ }
289
+
290
+ .badge-primary {
291
+ @apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
292
+ }
293
+
294
+ .badge-secondary {
295
+ @apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
296
+ }
297
+
298
+ .badge-outline {
299
+ @apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
300
+ }
301
+
302
+ .badge-destructive {
303
+ @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;
304
+ }
305
+
306
+ .badge-ghost {
307
+ @apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
308
+ }
309
+
310
+ .badge-link {
311
+ @apply text-primary underline-offset-4 hover:underline;
312
+ }
313
+ }
314
+
315
+ /* Alert legacy aliases */
316
+ @layer components {
317
+ .alert-destructive {
318
+ @apply relative w-full;
319
+ @apply grid gap-0.5 rounded-lg 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;
320
+ @apply text-destructive bg-card;
321
+ }
322
+
323
+ .alert-destructive:has(> footer) {
324
+ @apply pe-18;
325
+ }
326
+
327
+ .alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
328
+ @apply min-h-4 font-medium;
329
+ }
330
+
331
+ .alert-destructive:has(> svg) > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
332
+ @apply col-start-2;
333
+ }
334
+
335
+ .alert-destructive > section {
336
+ @apply grid justify-items-start gap-1 text-destructive/90 text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4;
337
+
338
+ ul {
339
+ @apply list-inside list-disc;
340
+ }
341
+ }
342
+
343
+ .alert-destructive > footer {
344
+ @apply absolute top-2.5 end-3;
345
+ }
346
+ }
347
+
348
+ /* Card legacy aliases */
349
+ @layer components {
350
+ .card-sm {
351
+ @apply flex flex-col;
352
+ @apply ring-foreground/10 bg-card text-card-foreground overflow-hidden rounded-xl text-sm shadow-xs ring-1 has-[>img:first-child]:pt-0 [&>img:first-child]:rounded-t-xl [&>img:last-child]:rounded-b-xl;
353
+ @apply gap-4 py-4;
354
+
355
+ > header {
356
+ @apply @container/card-header grid auto-rows-min items-start has-[>[data-slot=card-action],>.card-action]:grid-cols-[1fr_auto] has-[>p]:grid-rows-[auto_auto];
357
+ @apply gap-1 rounded-t-xl px-4 [.border-b]:pb-4;
358
+ }
359
+
360
+ > header > :is(h2, h3, [data-title], .card-title) {
361
+ @apply text-sm leading-normal font-medium;
362
+ }
363
+
364
+ > header > :is(p, [data-description], .card-description) {
365
+ @apply text-muted-foreground text-sm;
366
+ }
367
+
368
+ > header > :is([data-slot='card-action'], .card-action) {
369
+ @apply col-start-2 row-span-2 row-start-1 self-start justify-self-end;
370
+ }
371
+
372
+ > section {
373
+ @apply px-4;
374
+ }
375
+
376
+ > footer {
377
+ @apply flex items-center rounded-b-xl px-4 [.border-t]:pt-4;
378
+ }
379
+ }
380
+ }
381
+
382
+ /* Avatar legacy aliases */
383
+ @layer components {
384
+ .avatar-sm,
385
+ .avatar-lg {
386
+ @apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
387
+ @apply rounded-full after:rounded-[inherit];
388
+ }
389
+
390
+ .avatar-sm {
391
+ @apply size-6;
392
+ }
393
+
394
+ .avatar-lg {
395
+ @apply size-10;
396
+ }
397
+
398
+ .avatar-sm > img,
399
+ .avatar-lg > img {
400
+ @apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
401
+ }
402
+
403
+ .avatar-sm > span:not([data-badge]),
404
+ .avatar-lg > span:not([data-badge]) {
405
+ @apply flex size-full items-center justify-center rounded-[inherit] bg-muted text-muted-foreground;
406
+ }
407
+
408
+ .avatar-sm > span:not([data-badge]) {
409
+ @apply text-xs;
410
+ }
411
+
412
+ .avatar-sm > [data-badge],
413
+ .avatar-lg > [data-badge] {
414
+ @apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
415
+ @apply bg-primary text-primary-foreground ring-background;
416
+ }
417
+
418
+ .avatar-sm > [data-badge] {
419
+ @apply size-2 [&>svg]:hidden;
420
+ }
421
+
422
+ .avatar-lg > [data-badge] {
423
+ @apply size-3 [&>svg]:size-2;
424
+ }
425
+
426
+ .avatar-group > :is(.avatar-sm, .avatar-lg) {
427
+ @apply ring-2 ring-background;
428
+ }
429
+ }
@@ -1,21 +1,26 @@
1
1
  /* Alert */
2
2
  @layer components {
3
- .alert,
4
- .alert-destructive {
3
+ .alert {
5
4
  @apply relative w-full;
6
5
  }
7
6
 
8
- .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
9
- .alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
7
+ .alert:has(> footer) {
8
+ @apply pe-[4.5rem];
9
+ }
10
+
11
+ .alert > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
10
12
  @apply min-h-4;
11
13
  }
12
14
 
13
- .alert > section,
14
- .alert-destructive > section {
15
+ .alert > section {
15
16
  @apply grid justify-items-start gap-1;
16
17
 
17
18
  ul {
18
19
  @apply list-inside list-disc;
19
20
  }
20
21
  }
22
+
23
+ .alert > footer {
24
+ @apply absolute;
25
+ }
21
26
  }
@@ -0,0 +1,47 @@
1
+ /* Avatar */
2
+ @layer components {
3
+ .avatar {
4
+ @apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
5
+ }
6
+
7
+ .avatar > img {
8
+ @apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
9
+ }
10
+
11
+ .avatar > span:not([data-badge]) {
12
+ @apply flex size-full items-center justify-center rounded-[inherit] text-sm;
13
+ }
14
+
15
+ .avatar[data-size='sm'] > span:not([data-badge]) {
16
+ @apply text-xs;
17
+ }
18
+
19
+ .avatar > [data-badge] {
20
+ @apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
21
+ }
22
+
23
+ .avatar[data-size='sm'] > [data-badge] {
24
+ @apply size-2 [&>svg]:hidden;
25
+ }
26
+
27
+ .avatar > [data-badge] {
28
+ @apply size-2.5 [&>svg]:size-2;
29
+ }
30
+
31
+ .avatar[data-size='lg'] > [data-badge] {
32
+ @apply size-3 [&>svg]:size-2;
33
+ }
34
+
35
+ .avatar-group {
36
+ @apply flex -space-x-2;
37
+ }
38
+
39
+ .avatar-group > .avatar,
40
+ .avatar-group > [data-count] {
41
+ @apply ring-2 ring-background;
42
+ }
43
+
44
+ .avatar-group > [data-count] {
45
+ @apply relative flex shrink-0 items-center justify-center;
46
+ }
47
+ }
@@ -1,12 +1,6 @@
1
1
  /* Badge */
2
2
  @layer components {
3
- .badge,
4
- .badge-primary,
5
- .badge-secondary,
6
- .badge-destructive,
7
- .badge-outline,
8
- .badge-ghost,
9
- .badge-link {
3
+ .badge {
10
4
  @apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
11
5
  }
12
6
  }
@@ -2,6 +2,10 @@
2
2
  @layer components {
3
3
  .button-group {
4
4
  @apply isolate inline-flex w-fit items-stretch;
5
+
6
+ &:has(> :is(.dropdown-menu, .popover, .select) > [data-popover][aria-hidden='false']) {
7
+ @apply relative z-50;
8
+ }
5
9
 
6
10
  > .input {
7
11
  @apply flex-1;
@@ -12,7 +16,7 @@
12
16
  @apply relative z-10;
13
17
  }
14
18
 
15
- > :is(hr[role='separator'], .button-group-separator) {
19
+ > hr[role='separator'] {
16
20
  @apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
17
21
  }
18
22
 
@@ -29,7 +33,7 @@
29
33
  &[data-orientation='vertical'] {
30
34
  @apply flex-col;
31
35
 
32
- > :is(hr[role='separator'], .button-group-separator) {
36
+ > hr[role='separator'] {
33
37
  @apply w-auto h-px mx-px my-0;
34
38
  }
35
39
 
@@ -44,11 +48,7 @@
44
48
  }
45
49
  }
46
50
 
47
- .button-group-text {
51
+ .button-group > :is(span, label, output) {
48
52
  @apply flex items-center [&_svg]:pointer-events-none;
49
53
  }
50
-
51
- .button-group-separator {
52
- @apply relative self-stretch shrink-0;
53
- }
54
54
  }
@@ -1,61 +1,6 @@
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 inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
60
5
  }
61
6
  }
@@ -0,0 +1,56 @@
1
+ /* Chart */
2
+ @layer components {
3
+ .chart {
4
+ @apply relative flex aspect-video w-full justify-center text-xs;
5
+ }
6
+
7
+ .chart > canvas {
8
+ @apply block size-full;
9
+ }
10
+
11
+ .chart-tooltip {
12
+ @apply pointer-events-none fixed z-50 grid min-w-32 -translate-x-1/2 translate-y-2 items-start transition-[left,top,opacity] duration-150 ease-out;
13
+ }
14
+
15
+ .chart-tooltip[hidden] {
16
+ @apply opacity-0;
17
+ }
18
+
19
+ .chart-tooltip-items {
20
+ @apply grid gap-1.5;
21
+ }
22
+
23
+ .chart-tooltip-item {
24
+ @apply flex w-full flex-wrap items-center gap-2;
25
+ }
26
+
27
+ .chart-tooltip-indicator {
28
+ @apply size-2.5 shrink-0 rounded-[2px];
29
+ background-color: var(--chart-indicator-color);
30
+ }
31
+
32
+ .chart-legend-indicator {
33
+ @apply size-2 shrink-0 rounded-[2px];
34
+ background-color: var(--chart-indicator-color);
35
+ }
36
+
37
+ .chart-tooltip-label {
38
+ @apply text-muted-foreground leading-none;
39
+ }
40
+
41
+ .chart-tooltip-value {
42
+ @apply ms-auto font-mono font-medium leading-none tabular-nums;
43
+ }
44
+
45
+ .chart-legend {
46
+ @apply flex flex-wrap items-center justify-center gap-4 pt-3;
47
+ }
48
+
49
+ .chart-legend-item {
50
+ @apply flex items-center gap-1.5 text-xs;
51
+ }
52
+
53
+ .chart-legend-item[aria-pressed='false'] {
54
+ @apply opacity-70;
55
+ }
56
+ }
@@ -24,8 +24,16 @@
24
24
  @apply border-0;
25
25
  }
26
26
 
27
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
28
+ @apply ms-auto shrink-0 text-end;
29
+ }
30
+
27
31
  .dropdown-menu [data-shortcut] {
28
- @apply ms-auto;
32
+ @apply ps-8;
33
+ }
34
+
35
+ .dropdown-menu :is(kbd:last-child, .kbd:last-child):not([data-shortcut]) {
36
+ @apply ms-8;
29
37
  }
30
38
 
31
39
  .dropdown-menu [data-indicator] {
@@ -20,7 +20,7 @@
20
20
  @apply flex w-full max-w-sm min-w-0 flex-col items-center text-balance;
21
21
  }
22
22
 
23
- .empty p {
23
+ .empty > header > p {
24
24
  @apply [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
25
25
  }
26
26
  }