basecoat-css 1.0.0-beta.2 → 1.0.0-beta.4

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