basecoat-css 1.0.0-beta.6 → 1.0.0

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 (62) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +82 -35
  3. package/dist/base/base.css +3 -45
  4. package/dist/basecoat-base.cdn.css +226 -22
  5. package/dist/basecoat-base.cdn.min.css +1 -1
  6. package/dist/basecoat-compat.cdn.css +16 -20
  7. package/dist/basecoat-compat.cdn.min.css +1 -1
  8. package/dist/basecoat-components.css +2 -0
  9. package/dist/basecoat-luma.cdn.css +375 -91
  10. package/dist/basecoat-luma.cdn.min.css +1 -1
  11. package/dist/basecoat-lyra.cdn.css +358 -96
  12. package/dist/basecoat-lyra.cdn.min.css +1 -1
  13. package/dist/basecoat-maia.cdn.css +364 -84
  14. package/dist/basecoat-maia.cdn.min.css +1 -1
  15. package/dist/basecoat-mira.cdn.css +366 -94
  16. package/dist/basecoat-mira.cdn.min.css +1 -1
  17. package/dist/basecoat-nova.cdn.css +369 -96
  18. package/dist/basecoat-nova.cdn.min.css +1 -1
  19. package/dist/basecoat-rhea.cdn.css +376 -91
  20. package/dist/basecoat-rhea.cdn.min.css +1 -1
  21. package/dist/basecoat-sera.cdn.css +342 -71
  22. package/dist/basecoat-sera.cdn.min.css +1 -1
  23. package/dist/basecoat-vega.cdn.css +366 -92
  24. package/dist/basecoat-vega.cdn.min.css +1 -1
  25. package/dist/basecoat.cdn.css +366 -92
  26. package/dist/basecoat.cdn.min.css +1 -1
  27. package/dist/compat/legacy.css +19 -1
  28. package/dist/components/drawer.css +89 -0
  29. package/dist/components/input-group.css +1 -1
  30. package/dist/components/scrollbar.css +46 -0
  31. package/dist/components/select.css +16 -16
  32. package/dist/js/all.js +85 -0
  33. package/dist/js/all.min.js +1 -1
  34. package/dist/js/drawer.js +84 -0
  35. package/dist/js/drawer.min.js +1 -0
  36. package/dist/styles/luma.css +47 -14
  37. package/dist/styles/lyra.css +64 -14
  38. package/dist/styles/maia.css +47 -14
  39. package/dist/styles/mira.css +48 -15
  40. package/dist/styles/nova.css +64 -14
  41. package/dist/styles/rhea.css +47 -14
  42. package/dist/styles/sera.css +66 -16
  43. package/dist/styles/vega.css +64 -14
  44. package/package.json +28 -6
  45. package/templates/jinja/combobox.html.jinja +147 -0
  46. package/templates/jinja/command.html.jinja +210 -0
  47. package/templates/jinja/dialog.html.jinja +97 -0
  48. package/templates/jinja/dropdown-menu.html.jinja +130 -0
  49. package/templates/jinja/popover.html.jinja +51 -0
  50. package/templates/jinja/select.html.jinja +191 -0
  51. package/templates/jinja/sidebar.html.jinja +149 -0
  52. package/templates/jinja/tabs.html.jinja +82 -0
  53. package/templates/jinja/toast.html.jinja +139 -0
  54. package/templates/nunjucks/combobox.njk +157 -0
  55. package/templates/nunjucks/command.njk +203 -0
  56. package/templates/nunjucks/dialog.njk +92 -0
  57. package/templates/nunjucks/dropdown-menu.njk +125 -0
  58. package/templates/nunjucks/popover.njk +48 -0
  59. package/templates/nunjucks/select.njk +184 -0
  60. package/templates/nunjucks/sidebar.njk +144 -0
  61. package/templates/nunjucks/tabs.njk +39 -0
  62. package/templates/nunjucks/toast.njk +137 -0
@@ -468,51 +468,51 @@
468
468
  @apply mb-1 w-full;
469
469
  }
470
470
  /* Select */
471
- *:not(select).select > button {
471
+ .select:not(select) > button {
472
472
  @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-8 data-[size=sm]:h-7 gap-1.5 rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] border bg-transparent py-2 ps-2.5 pe-2 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
473
473
  }
474
474
 
475
- *:not(select).select > button > span {
475
+ .select:not(select) > button > span {
476
476
  @apply gap-1.5;
477
477
  }
478
478
 
479
- *:not(select).select > button > svg {
479
+ .select:not(select) > button > svg {
480
480
  @apply text-muted-foreground size-4;
481
481
  }
482
482
 
483
- *:not(select).select [data-popover] {
483
+ .select:not(select) [data-popover] {
484
484
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-lg p-1 shadow-md ring-1 duration-100;
485
485
  }
486
486
 
487
487
 
488
488
 
489
489
 
490
- *:not(select).select [role='listbox'] {
490
+ .select:not(select) [role='listbox'] {
491
491
  @apply scroll-py-1;
492
492
  }
493
493
 
494
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
494
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
495
495
  @apply py-6 text-center text-sm;
496
496
  }
497
497
 
498
- *:not(select).select [role='heading'] {
498
+ .select:not(select) [role='heading'] {
499
499
  @apply text-muted-foreground px-1.5 py-1 text-xs;
500
500
  }
501
501
 
502
- *:not(select).select [role='option'] {
502
+ .select:not(select) [role='option'] {
503
503
  @apply gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
504
504
  }
505
505
 
506
- *:not(select).select [role='option'].active,
507
- *:not(select).select [role='option']:focus-visible {
506
+ .select:not(select) [role='option'].active,
507
+ .select:not(select) [role='option']:focus-visible {
508
508
  @apply bg-muted text-foreground [&_svg]:text-foreground;
509
509
  }
510
510
 
511
- *:not(select).select [role='group'] {
511
+ .select:not(select) [role='group'] {
512
512
  @apply scroll-my-1 p-1;
513
513
  }
514
514
 
515
- *:not(select).select [role='separator'] {
515
+ .select:not(select) [role='separator'] {
516
516
  @apply bg-border -mx-1 my-1 h-px;
517
517
  }
518
518
 
@@ -573,6 +573,56 @@
573
573
  @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
574
574
  }
575
575
 
576
+ /* Drawer */
577
+ .drawer::backdrop {
578
+ @apply bg-black/10 backdrop-blur-xs;
579
+ }
580
+
581
+ .drawer > * {
582
+ @apply bg-popover text-popover-foreground text-sm;
583
+ }
584
+
585
+ .drawer:not([data-side]) > *,
586
+ .drawer[data-side='bottom'] > * {
587
+ @apply rounded-t-xl border-t;
588
+ }
589
+
590
+ .drawer[data-side='top'] > * {
591
+ @apply rounded-b-xl border-b;
592
+ }
593
+
594
+ .drawer[data-side='left'] > * {
595
+ @apply rounded-r-xl border-r;
596
+ }
597
+
598
+ .drawer[data-side='right'] > * {
599
+ @apply rounded-l-xl border-l;
600
+ }
601
+
602
+ .drawer > * > header {
603
+ @apply gap-0.5 p-4 text-start;
604
+ }
605
+
606
+ .drawer:not([data-side]) > * > header,
607
+ .drawer[data-side='bottom'] > * > header,
608
+ .drawer[data-side='top'] > * > header {
609
+ @apply text-center;
610
+ }
611
+
612
+ .drawer > * > footer {
613
+ @apply gap-2 p-4;
614
+ }
615
+
616
+ .drawer > * > header > h2,
617
+ .drawer > * > [data-title] {
618
+ @apply text-lg font-semibold leading-none tracking-tight;
619
+ }
620
+
621
+ .drawer > * > header > p,
622
+ .drawer > * > [data-description] {
623
+ @apply text-muted-foreground text-sm;
624
+ }
625
+
576
626
  /* Dropdown Menu */
577
627
  .dropdown-menu > [data-popover] {
578
628
  @apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100;
@@ -758,11 +808,11 @@
758
808
  @apply bg-background rounded-full;
759
809
  }
760
810
 
761
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
811
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
812
  @apply bg-foreground;
763
813
  }
764
814
 
765
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
815
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
816
  @apply bg-primary-foreground;
767
817
  }
768
818
 
@@ -480,51 +480,51 @@
480
480
  @apply mb-1 w-full;
481
481
  }
482
482
  /* Select */
483
- *:not(select).select > button {
483
+ .select:not(select) > button {
484
484
  @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 data-[size=sm]:h-7 gap-1.5 rounded-2xl border px-3 py-2 text-sm transition-[color,box-shadow] duration-200 focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
485
485
  }
486
486
 
487
- *:not(select).select > button > span {
487
+ .select:not(select) > button > span {
488
488
  @apply gap-1.5;
489
489
  }
490
490
 
491
- *:not(select).select > button > svg {
491
+ .select:not(select) > button > svg {
492
492
  @apply text-muted-foreground size-4;
493
493
  }
494
494
 
495
- *:not(select).select [data-popover] {
495
+ .select:not(select) [data-popover] {
496
496
  @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-2xl p-1 shadow-lg ring-1 duration-100;
497
497
  }
498
498
 
499
499
 
500
500
 
501
501
 
502
- *:not(select).select [role='listbox'] {
502
+ .select:not(select) [role='listbox'] {
503
503
  @apply scroll-py-1.5;
504
504
  }
505
505
 
506
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
506
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
507
507
  @apply py-6 text-center text-sm;
508
508
  }
509
509
 
510
- *:not(select).select [role='heading'] {
510
+ .select:not(select) [role='heading'] {
511
511
  @apply text-muted-foreground px-2 py-1 text-xs;
512
512
  }
513
513
 
514
- *:not(select).select [role='option'] {
514
+ .select:not(select) [role='option'] {
515
515
  @apply min-h-7 gap-2 rounded-xl py-1.5 ps-2 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
516
516
  }
517
517
 
518
- *:not(select).select [role='option'].active,
519
- *:not(select).select [role='option']:focus-visible {
518
+ .select:not(select) [role='option'].active,
519
+ .select:not(select) [role='option']:focus-visible {
520
520
  @apply bg-muted text-foreground [&_svg]:text-foreground;
521
521
  }
522
522
 
523
- *:not(select).select [role='group'] {
523
+ .select:not(select) [role='group'] {
524
524
  @apply scroll-my-1.5 p-1;
525
525
  }
526
526
 
527
- *:not(select).select [role='separator'] {
527
+ .select:not(select) [role='separator'] {
528
528
  @apply bg-border -mx-1 my-1 h-px;
529
529
  }
530
530
 
@@ -589,6 +589,39 @@
589
589
  @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
590
590
  }
591
591
 
592
+ /* Drawer */
593
+ .drawer::backdrop {
594
+ @apply bg-black/30 backdrop-blur-sm;
595
+ }
596
+
597
+ .drawer > * {
598
+ @apply before:bg-popover before:border-border bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-[min(var(--radius-4xl),24px)] before:border before:shadow-xl;
599
+ }
600
+
601
+ .drawer > * > header {
602
+ @apply gap-0.5 p-4 text-start md:gap-1.5;
603
+ }
604
+
605
+ .drawer:not([data-side]) > * > header,
606
+ .drawer[data-side='bottom'] > * > header,
607
+ .drawer[data-side='top'] > * > header {
608
+ @apply text-center;
609
+ }
610
+
611
+ .drawer > * > footer {
612
+ @apply gap-2 p-4;
613
+ }
614
+
615
+ .drawer > * > header > h2,
616
+ .drawer > * > [data-title] {
617
+ @apply text-lg font-semibold leading-none tracking-tight;
618
+ }
619
+
620
+ .drawer > * > header > p,
621
+ .drawer > * > [data-description] {
622
+ @apply text-muted-foreground text-sm;
623
+ }
624
+
592
625
  /* Dropdown Menu */
593
626
  .dropdown-menu > [data-popover] {
594
627
  @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-2xl p-1 shadow-lg ring-1 duration-100;
@@ -770,11 +803,11 @@
770
803
  @apply bg-background rounded-2xl shadow-sm not-dark:bg-clip-padding;
771
804
  }
772
805
 
773
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
806
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
774
807
  @apply bg-foreground;
775
808
  }
776
809
 
777
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
810
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
778
811
  @apply bg-primary-foreground;
779
812
  }
780
813
 
@@ -361,11 +361,11 @@
361
361
 
362
362
  /* Command */
363
363
  .command {
364
- @apply bg-popover text-popover-foreground rounded-none;
364
+ @apply bg-popover text-popover-foreground rounded-none!;
365
365
  }
366
366
 
367
367
  .command-dialog > .command {
368
- @apply bg-popover text-popover-foreground ring-foreground/10 rounded-none shadow-md ring-1 duration-100;
368
+ @apply bg-popover text-popover-foreground ring-foreground/10 rounded-none! shadow-md ring-1 duration-100;
369
369
  }
370
370
 
371
371
  .command > header {
@@ -484,51 +484,51 @@
484
484
  @apply mb-1 w-full;
485
485
  }
486
486
  /* Select */
487
- *:not(select).select > button {
487
+ .select:not(select) > button {
488
488
  @apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 data-[size=sm]:h-9 gap-1.5 rounded-none border px-0 py-2 text-sm transition-[color,border-color] [&_svg:not([class*='size-'])]:size-3.5;
489
489
  }
490
490
 
491
- *:not(select).select > button > span {
491
+ .select:not(select) > button > span {
492
492
  @apply gap-1.5;
493
493
  }
494
494
 
495
- *:not(select).select > button > svg {
495
+ .select:not(select) > button > svg {
496
496
  @apply text-muted-foreground size-3.5;
497
497
  }
498
498
 
499
- *:not(select).select [data-popover] {
499
+ .select:not(select) [data-popover] {
500
500
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-none p-1.5 shadow-md ring-1 duration-100;
501
501
  }
502
502
 
503
503
 
504
504
 
505
505
 
506
- *:not(select).select [role='listbox'] {
506
+ .select:not(select) [role='listbox'] {
507
507
  @apply scroll-py-1.5;
508
508
  }
509
509
 
510
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
510
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
511
511
  @apply py-6 text-center text-sm;
512
512
  }
513
513
 
514
- *:not(select).select [role='heading'] {
514
+ .select:not(select) [role='heading'] {
515
515
  @apply px-3 py-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase;
516
516
  }
517
517
 
518
- *:not(select).select [role='option'] {
518
+ .select:not(select) [role='option'] {
519
519
  @apply gap-2.5 rounded-none py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-3.5;
520
520
  }
521
521
 
522
- *:not(select).select [role='option'].active,
523
- *:not(select).select [role='option']:focus-visible {
522
+ .select:not(select) [role='option'].active,
523
+ .select:not(select) [role='option']:focus-visible {
524
524
  @apply bg-muted text-foreground [&_svg]:text-foreground;
525
525
  }
526
526
 
527
- *:not(select).select [role='group'] {
527
+ .select:not(select) [role='group'] {
528
528
  @apply scroll-my-1.5 p-1.5;
529
529
  }
530
530
 
531
- *:not(select).select [role='separator'] {
531
+ .select:not(select) [role='separator'] {
532
532
  @apply bg-border/50 -mx-1.5 my-1.5 h-px;
533
533
  }
534
534
 
@@ -593,6 +593,56 @@
593
593
  @apply text-muted-foreground mt-0.5 text-sm leading-relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
594
594
  }
595
595
 
596
+ /* Drawer */
597
+ .drawer::backdrop {
598
+ @apply bg-black/20 backdrop-blur-sm;
599
+ }
600
+
601
+ .drawer > * {
602
+ @apply bg-popover text-popover-foreground text-sm;
603
+ }
604
+
605
+ .drawer:not([data-side]) > *,
606
+ .drawer[data-side='bottom'] > * {
607
+ @apply rounded-none border-t;
608
+ }
609
+
610
+ .drawer[data-side='top'] > * {
611
+ @apply rounded-none border-b;
612
+ }
613
+
614
+ .drawer[data-side='left'] > * {
615
+ @apply rounded-none border-r;
616
+ }
617
+
618
+ .drawer[data-side='right'] > * {
619
+ @apply rounded-none border-l;
620
+ }
621
+
622
+ .drawer > * > header {
623
+ @apply gap-1 p-4 text-start md:gap-2;
624
+ }
625
+
626
+ .drawer:not([data-side]) > * > header,
627
+ .drawer[data-side='bottom'] > * > header,
628
+ .drawer[data-side='top'] > * > header {
629
+ @apply text-center;
630
+ }
631
+
632
+ .drawer > * > footer {
633
+ @apply gap-2 p-4;
634
+ }
635
+
636
+ .drawer > * > header > h2,
637
+ .drawer > * > [data-title] {
638
+ @apply text-lg font-semibold tracking-wider uppercase;
639
+ }
640
+
641
+ .drawer > * > header > p,
642
+ .drawer > * > [data-description] {
643
+ @apply text-muted-foreground mt-0.5 text-sm leading-relaxed;
644
+ }
645
+
596
646
  /* Dropdown Menu */
597
647
  .dropdown-menu > [data-popover] {
598
648
  @apply bg-popover text-popover-foreground ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-1.5 shadow-md ring-1 duration-100;
@@ -774,11 +824,11 @@
774
824
  @apply bg-background;
775
825
  }
776
826
 
777
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
827
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
778
828
  @apply bg-foreground;
779
829
  }
780
830
 
781
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
831
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
782
832
  @apply bg-primary-foreground;
783
833
  }
784
834
 
@@ -468,51 +468,51 @@
468
468
  @apply mb-1 w-full;
469
469
  }
470
470
  /* Select */
471
- *:not(select).select > button {
471
+ .select:not(select) > button {
472
472
  @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;
473
473
  }
474
474
 
475
- *:not(select).select > button > span {
475
+ .select:not(select) > button > span {
476
476
  @apply gap-1.5;
477
477
  }
478
478
 
479
- *:not(select).select > button > svg {
479
+ .select:not(select) > button > svg {
480
480
  @apply text-muted-foreground size-4;
481
481
  }
482
482
 
483
- *:not(select).select [data-popover] {
483
+ .select:not(select) [data-popover] {
484
484
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-md p-1 shadow-md ring-1 duration-100;
485
485
  }
486
486
 
487
487
 
488
488
 
489
489
 
490
- *:not(select).select [role='listbox'] {
490
+ .select:not(select) [role='listbox'] {
491
491
  @apply scroll-py-1;
492
492
  }
493
493
 
494
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
494
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
495
495
  @apply py-6 text-center text-sm;
496
496
  }
497
497
 
498
- *:not(select).select [role='heading'] {
498
+ .select:not(select) [role='heading'] {
499
499
  @apply text-muted-foreground px-2 py-1.5 text-xs;
500
500
  }
501
501
 
502
- *:not(select).select [role='option'] {
502
+ .select:not(select) [role='option'] {
503
503
  @apply gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
504
504
  }
505
505
 
506
- *:not(select).select [role='option'].active,
507
- *:not(select).select [role='option']:focus-visible {
506
+ .select:not(select) [role='option'].active,
507
+ .select:not(select) [role='option']:focus-visible {
508
508
  @apply bg-muted text-foreground [&_svg]:text-foreground;
509
509
  }
510
510
 
511
- *:not(select).select [role='group'] {
511
+ .select:not(select) [role='group'] {
512
512
  @apply scroll-my-1 p-1;
513
513
  }
514
514
 
515
- *:not(select).select [role='separator'] {
515
+ .select:not(select) [role='separator'] {
516
516
  @apply bg-border -mx-1 my-1 h-px;
517
517
  }
518
518
 
@@ -573,6 +573,56 @@
573
573
  @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
574
574
  }
575
575
 
576
+ /* Drawer */
577
+ .drawer::backdrop {
578
+ @apply bg-black/10 backdrop-blur-xs;
579
+ }
580
+
581
+ .drawer > * {
582
+ @apply bg-popover text-popover-foreground text-sm;
583
+ }
584
+
585
+ .drawer:not([data-side]) > *,
586
+ .drawer[data-side='bottom'] > * {
587
+ @apply rounded-t-xl border-t;
588
+ }
589
+
590
+ .drawer[data-side='top'] > * {
591
+ @apply rounded-b-xl border-b;
592
+ }
593
+
594
+ .drawer[data-side='left'] > * {
595
+ @apply rounded-r-xl border-r;
596
+ }
597
+
598
+ .drawer[data-side='right'] > * {
599
+ @apply rounded-l-xl border-l;
600
+ }
601
+
602
+ .drawer > * > header {
603
+ @apply gap-0.5 p-4 text-start md:gap-1.5;
604
+ }
605
+
606
+ .drawer:not([data-side]) > * > header,
607
+ .drawer[data-side='bottom'] > * > header,
608
+ .drawer[data-side='top'] > * > header {
609
+ @apply text-center;
610
+ }
611
+
612
+ .drawer > * > footer {
613
+ @apply gap-2 p-4;
614
+ }
615
+
616
+ .drawer > * > header > h2,
617
+ .drawer > * > [data-title] {
618
+ @apply text-lg font-semibold leading-none tracking-tight;
619
+ }
620
+
621
+ .drawer > * > header > p,
622
+ .drawer > * > [data-description] {
623
+ @apply text-muted-foreground text-sm;
624
+ }
625
+
576
626
  /* Dropdown Menu */
577
627
  .dropdown-menu > [data-popover] {
578
628
  @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;
@@ -758,11 +808,11 @@
758
808
  @apply bg-background rounded-full;
759
809
  }
760
810
 
761
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
811
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
812
  @apply bg-foreground;
763
813
  }
764
814
 
765
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
815
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
816
  @apply bg-primary-foreground;
767
817
  }
768
818
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basecoat-css",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0",
4
4
  "description": "Tailwind CSS for Basecoat components",
5
5
  "author": {
6
6
  "name": "hunvreus",
@@ -11,7 +11,8 @@
11
11
  "main": "dist/basecoat.css",
12
12
  "style": "dist/basecoat.css",
13
13
  "files": [
14
- "dist/"
14
+ "dist/",
15
+ "templates/"
15
16
  ],
16
17
  "keywords": [
17
18
  "components",
@@ -30,13 +31,12 @@
30
31
  ],
31
32
  "repository": {
32
33
  "type": "git",
33
- "url": "git+https://github.com/hunvreus/basecoat.git",
34
- "directory": "packages/css"
34
+ "url": "git+https://github.com/hunvreus/basecoat.git"
35
35
  },
36
36
  "bugs": {
37
37
  "url": "https://github.com/hunvreus/basecoat/issues"
38
38
  },
39
- "homepage": "https://basecoatui.com/installation#install-npm",
39
+ "homepage": "https://basecoatui.com/installation#npm",
40
40
  "exports": {
41
41
  ".": "./dist/basecoat.css",
42
42
  "./css": "./dist/basecoat.css",
@@ -44,6 +44,8 @@
44
44
  "./basecoat.min": "./dist/js/basecoat.min.js",
45
45
  "./all": "./dist/js/all.js",
46
46
  "./all.min": "./dist/js/all.min.js",
47
+ "./accordion": "./dist/js/accordion.js",
48
+ "./accordion.min": "./dist/js/accordion.min.js",
47
49
  "./chart": "./dist/js/chart.js",
48
50
  "./chart.min": "./dist/js/chart.min.js",
49
51
  "./combobox": "./dist/js/combobox.js",
@@ -52,6 +54,8 @@
52
54
  "./command.min": "./dist/js/command.min.js",
53
55
  "./dropdown-menu": "./dist/js/dropdown-menu.js",
54
56
  "./dropdown-menu.min": "./dist/js/dropdown-menu.min.js",
57
+ "./drawer": "./dist/js/drawer.js",
58
+ "./drawer.min": "./dist/js/drawer.min.js",
55
59
  "./popover": "./dist/js/popover.js",
56
60
  "./popover.min": "./dist/js/popover.min.js",
57
61
  "./range": "./dist/js/range.js",
@@ -112,6 +116,24 @@
112
116
  "./styles/style-luma.css": "./dist/styles/luma.css",
113
117
  "./styles/style-sera.css": "./dist/styles/sera.css",
114
118
  "./styles/style-rhea.css": "./dist/styles/rhea.css",
115
- "./styles/style-*.css": "./dist/styles/*.css"
119
+ "./styles/style-*.css": "./dist/styles/*.css",
120
+ "./templates/nunjucks/*": "./templates/nunjucks/*",
121
+ "./templates/jinja/*": "./templates/jinja/*"
122
+ },
123
+ "scripts": {
124
+ "build": "node ./scripts/build.js",
125
+ "prepack": "node ./scripts/build.js",
126
+ "docs:build": "npm run build && npm --prefix site run build",
127
+ "docs:dev": "npm --prefix site run dev",
128
+ "docs:preview": "npm run docs:build && npm --prefix site run preview",
129
+ "workers:dev": "npm run build && npm --prefix site run workers:dev",
130
+ "workers:deploy": "npm run build && npm --prefix site run workers:deploy",
131
+ "workers:preview": "npm run build && npm --prefix site run workers:preview"
132
+ },
133
+ "devDependencies": {
134
+ "@tailwindcss/cli": "^4.1.17",
135
+ "prettier": "^3.5.3",
136
+ "tailwindcss": "^4.1.17",
137
+ "terser": "^5.42.0"
116
138
  }
117
139
  }