basecoat-css 1.0.0-beta.3 → 1.0.0-beta.5

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 (53) hide show
  1. package/dist/base/base.css +46 -44
  2. package/dist/basecoat-base.cdn.css +249 -65
  3. package/dist/basecoat-base.cdn.min.css +1 -1
  4. package/dist/basecoat-compat.cdn.css +22 -0
  5. package/dist/basecoat-compat.cdn.min.css +1 -1
  6. package/dist/basecoat-components.css +2 -0
  7. package/dist/basecoat-luma.cdn.css +430 -80
  8. package/dist/basecoat-luma.cdn.min.css +1 -1
  9. package/dist/basecoat-lyra.cdn.css +431 -78
  10. package/dist/basecoat-lyra.cdn.min.css +1 -1
  11. package/dist/basecoat-maia.cdn.css +421 -80
  12. package/dist/basecoat-maia.cdn.min.css +1 -1
  13. package/dist/basecoat-mira.cdn.css +418 -80
  14. package/dist/basecoat-mira.cdn.min.css +1 -1
  15. package/dist/basecoat-nova.cdn.css +435 -80
  16. package/dist/basecoat-nova.cdn.min.css +1 -1
  17. package/dist/basecoat-rhea.cdn.css +440 -91
  18. package/dist/basecoat-rhea.cdn.min.css +1 -1
  19. package/dist/basecoat-sera.cdn.css +424 -78
  20. package/dist/basecoat-sera.cdn.min.css +1 -1
  21. package/dist/basecoat-vega.cdn.css +424 -79
  22. package/dist/basecoat-vega.cdn.min.css +1 -1
  23. package/dist/basecoat.cdn.css +424 -79
  24. package/dist/basecoat.cdn.min.css +1 -1
  25. package/dist/compat/legacy.css +6 -0
  26. package/dist/components/accordion.css +27 -0
  27. package/dist/components/alert.css +12 -0
  28. package/dist/components/avatar.css +6 -6
  29. package/dist/components/breadcrumb.css +30 -0
  30. package/dist/components/card.css +4 -0
  31. package/dist/components/combobox.css +23 -2
  32. package/dist/components/command.css +19 -12
  33. package/dist/components/dialog.css +30 -1
  34. package/dist/components/dropdown-menu.css +1 -1
  35. package/dist/js/accordion.js +68 -0
  36. package/dist/js/accordion.min.js +1 -0
  37. package/dist/js/all.js +199 -28
  38. package/dist/js/all.min.js +1 -1
  39. package/dist/js/combobox.js +115 -26
  40. package/dist/js/combobox.min.js +1 -1
  41. package/dist/js/command.js +3 -1
  42. package/dist/js/command.min.js +1 -1
  43. package/dist/js/dropdown-menu.js +12 -1
  44. package/dist/js/dropdown-menu.min.js +1 -1
  45. package/dist/styles/luma.css +85 -11
  46. package/dist/styles/lyra.css +81 -11
  47. package/dist/styles/maia.css +85 -11
  48. package/dist/styles/mira.css +85 -11
  49. package/dist/styles/nova.css +83 -13
  50. package/dist/styles/rhea.css +89 -15
  51. package/dist/styles/sera.css +80 -10
  52. package/dist/styles/vega.css +82 -12
  53. package/package.json +1 -1
@@ -1,5 +1,22 @@
1
- /* Button */
1
+ /* Accordion */
2
2
  @layer components {
3
+ .accordion > details {
4
+ @apply not-last:border-b;
5
+ }
6
+
7
+ .accordion > details > summary {
8
+ @apply focus-visible:ring-ring/50 focus-visible:border-ring rounded-md py-4 text-left text-sm font-medium hover:underline focus-visible:ring-3;
9
+ }
10
+
11
+ .accordion > details > summary > svg:last-child {
12
+ @apply text-muted-foreground ms-auto size-4;
13
+ }
14
+
15
+ .accordion > details > :not(summary) {
16
+ @apply pt-0 pb-4 text-sm;
17
+ }
18
+
19
+ /* Button */
3
20
  .btn {
4
21
  @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;
5
22
  }
@@ -247,7 +264,7 @@
247
264
  @apply size-10;
248
265
  }
249
266
 
250
- .avatar > span:not([data-badge]) {
267
+ .avatar > span:not(.avatar-badge) {
251
268
  @apply bg-muted text-muted-foreground rounded-[inherit];
252
269
  }
253
270
 
@@ -255,7 +272,7 @@
255
272
  @apply rounded-[inherit];
256
273
  }
257
274
 
258
- .avatar > [data-badge] {
275
+ .avatar > .avatar-badge {
259
276
  @apply bg-primary text-primary-foreground ring-background;
260
277
  }
261
278
 
@@ -301,17 +318,42 @@
301
318
  @apply text-primary underline-offset-4 hover:underline;
302
319
  }
303
320
 
321
+ /* Breadcrumb */
322
+ .breadcrumb > ol {
323
+ @apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
324
+ }
325
+
326
+ .breadcrumb li {
327
+ @apply gap-1.5;
328
+ }
329
+
330
+ .breadcrumb a {
331
+ @apply transition-colors hover:text-foreground;
332
+ }
333
+
334
+ .breadcrumb [aria-current='page'] {
335
+ @apply font-normal text-foreground;
336
+ }
337
+
338
+ .breadcrumb li[aria-hidden='true'] > svg {
339
+ @apply size-3.5;
340
+ }
341
+
342
+ .breadcrumb li > span[aria-hidden='true'] {
343
+ @apply size-5 [&>svg]:size-4;
344
+ }
345
+
304
346
  /* Command */
305
347
  .command {
306
- @apply bg-popover text-popover-foreground rounded-xl p-1;
348
+ @apply bg-popover text-popover-foreground rounded-xl! p-1;
307
349
  }
308
350
 
309
- .command-dialog > * {
310
- @apply rounded-xl p-0;
351
+ .command-dialog > .command {
352
+ @apply bg-popover text-popover-foreground ring-foreground/10 rounded-xl! ring-1 duration-100;
311
353
  }
312
354
 
313
355
  .command > header {
314
- @apply m-1 mb-0 h-8 gap-2 rounded-lg border border-input/30 bg-input/30 px-2;
356
+ @apply m-1 mb-0 h-8 gap-0 rounded-lg border border-input/30 bg-input/30 px-2;
315
357
  }
316
358
 
317
359
  .command > header svg {
@@ -319,7 +361,7 @@
319
361
  }
320
362
 
321
363
  .command > header input {
322
- @apply h-full text-sm placeholder:text-muted-foreground;
364
+ @apply ps-1.5 text-sm placeholder:text-muted-foreground;
323
365
  }
324
366
 
325
367
  .command [role='menu'] {
@@ -343,11 +385,11 @@
343
385
  }
344
386
 
345
387
  .command [role='menuitem'] {
346
- @apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4;
388
+ @apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 in-[.command-dialog]:rounded-lg;
347
389
  }
348
390
 
349
391
  .command [role='menuitem'].active {
350
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
392
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
351
393
  }
352
394
 
353
395
  .command [data-shortcut] {
@@ -413,6 +455,10 @@
413
455
  .combobox-chip-remove {
414
456
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
415
457
  }
458
+
459
+ .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
460
+ @apply mb-1 w-full;
461
+ }
416
462
  /* Select */
417
463
  *:not(select).select > button {
418
464
  @apply border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 data-[size=sm]:h-8 gap-1.5 rounded-md border bg-transparent py-2 ps-2.5 pe-2 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
@@ -465,10 +511,15 @@
465
511
 
466
512
  /* Dialog */
467
513
  .dialog::backdrop,
514
+ .alert-dialog::backdrop,
468
515
  .command-dialog::backdrop {
469
516
  @apply bg-black/10 backdrop-blur-xs duration-100;
470
517
  }
471
518
 
519
+ .alert-dialog > * {
520
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-xl p-6 ring-1 duration-100 sm:max-w-lg;
521
+ }
522
+
472
523
  .dialog > * {
473
524
  @apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md;
474
525
  }
@@ -481,6 +532,15 @@
481
532
  @apply gap-2;
482
533
  }
483
534
 
535
+ .alert-dialog > * > header {
536
+ @apply gap-x-6 gap-y-1.5;
537
+ }
538
+
539
+ .alert-dialog > * > header > figure {
540
+ @apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md [&>svg:not([class*='size-'])]:size-8;
541
+ }
542
+
543
+ .alert-dialog > * > footer,
484
544
  .dialog > * > footer {
485
545
  @apply gap-2;
486
546
  }
@@ -490,11 +550,21 @@
490
550
  @apply leading-none font-medium;
491
551
  }
492
552
 
553
+ .alert-dialog > * > header > h2,
554
+ .alert-dialog > * > [data-title] {
555
+ @apply text-lg font-medium;
556
+ }
557
+
493
558
  .dialog > * > header > p,
494
559
  .dialog > * > [data-description] {
495
560
  @apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
496
561
  }
497
562
 
563
+ .alert-dialog > * > header > p,
564
+ .alert-dialog > * > [data-description] {
565
+ @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
566
+ }
567
+
498
568
  /* Dropdown Menu */
499
569
  .dropdown-menu > [data-popover] {
500
570
  @apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100;
@@ -541,11 +611,11 @@
541
611
  @apply bg-border -mx-1 my-1 h-px;
542
612
  }
543
613
 
544
- .dropdown-menu :is([data-shortcut], kbd:last-child) {
614
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
545
615
  @apply text-muted-foreground font-sans text-xs tracking-widest;
546
616
  }
547
617
 
548
- .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
618
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
549
619
  @apply text-accent-foreground;
550
620
  }
551
621
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basecoat-css",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Tailwind CSS for Basecoat components",
5
5
  "author": {
6
6
  "name": "hunvreus",