basecoat-css 1.0.0-beta.5 → 1.0.0-beta.7
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.
- package/dist/basecoat-base.cdn.css +190 -1
- package/dist/basecoat-base.cdn.min.css +1 -1
- package/dist/basecoat-components.css +1 -0
- package/dist/basecoat-luma.cdn.css +310 -16
- package/dist/basecoat-luma.cdn.min.css +1 -1
- package/dist/basecoat-lyra.cdn.css +283 -15
- package/dist/basecoat-lyra.cdn.min.css +1 -1
- package/dist/basecoat-maia.cdn.css +304 -16
- package/dist/basecoat-maia.cdn.min.css +1 -1
- package/dist/basecoat-mira.cdn.css +296 -16
- package/dist/basecoat-mira.cdn.min.css +1 -1
- package/dist/basecoat-nova.cdn.css +298 -16
- package/dist/basecoat-nova.cdn.min.css +1 -1
- package/dist/basecoat-rhea.cdn.css +311 -16
- package/dist/basecoat-rhea.cdn.min.css +1 -1
- package/dist/basecoat-sera.cdn.css +292 -16
- package/dist/basecoat-sera.cdn.min.css +1 -1
- package/dist/basecoat-vega.cdn.css +299 -16
- package/dist/basecoat-vega.cdn.min.css +1 -1
- package/dist/basecoat.cdn.css +299 -16
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/components/drawer.css +89 -0
- package/dist/components/popover.css +27 -1
- package/dist/js/all.js +131 -13
- package/dist/js/all.min.js +1 -1
- package/dist/js/drawer.js +84 -0
- package/dist/js/drawer.min.js +1 -0
- package/dist/js/select.js +46 -13
- package/dist/js/select.min.js +1 -1
- package/dist/styles/luma.css +54 -5
- package/dist/styles/lyra.css +66 -4
- package/dist/styles/maia.css +54 -5
- package/dist/styles/mira.css +54 -5
- package/dist/styles/nova.css +71 -5
- package/dist/styles/rhea.css +54 -5
- package/dist/styles/sera.css +71 -5
- package/dist/styles/vega.css +71 -5
- package/package.json +3 -1
package/dist/styles/nova.css
CHANGED
|
@@ -412,11 +412,15 @@
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
.combobox [data-popover] {
|
|
415
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-lg p-
|
|
415
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-lg p-0 shadow-md ring-1 duration-100;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
.combobox [role='listbox'] {
|
|
419
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
419
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
423
|
+
@apply p-0;
|
|
420
424
|
}
|
|
421
425
|
|
|
422
426
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -433,7 +437,7 @@
|
|
|
433
437
|
|
|
434
438
|
.combobox [role='option'].active,
|
|
435
439
|
.combobox [role='option']:focus-visible {
|
|
436
|
-
@apply bg-
|
|
440
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
437
441
|
}
|
|
438
442
|
|
|
439
443
|
.combobox [role='group'] {
|
|
@@ -456,7 +460,11 @@
|
|
|
456
460
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
457
461
|
}
|
|
458
462
|
|
|
459
|
-
.combobox [data-popover] >
|
|
463
|
+
.combobox [data-popover] > .input-group {
|
|
464
|
+
@apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
460
468
|
@apply mb-1 w-full;
|
|
461
469
|
}
|
|
462
470
|
/* Select */
|
|
@@ -565,6 +573,56 @@
|
|
|
565
573
|
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
566
574
|
}
|
|
567
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
|
+
|
|
568
626
|
/* Dropdown Menu */
|
|
569
627
|
.dropdown-menu > [data-popover] {
|
|
570
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;
|
|
@@ -747,7 +805,15 @@
|
|
|
747
805
|
}
|
|
748
806
|
|
|
749
807
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
750
|
-
@apply bg-background
|
|
808
|
+
@apply bg-background rounded-full;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
812
|
+
@apply bg-foreground;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
816
|
+
@apply bg-primary-foreground;
|
|
751
817
|
}
|
|
752
818
|
|
|
753
819
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/rhea.css
CHANGED
|
@@ -424,11 +424,15 @@
|
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
.combobox [data-popover] {
|
|
427
|
-
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 rounded-2xl p-
|
|
427
|
+
@apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 gap-0 rounded-2xl p-0 shadow-lg ring-1 duration-100;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
.combobox [role='listbox'] {
|
|
431
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
431
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
435
|
+
@apply p-0;
|
|
432
436
|
}
|
|
433
437
|
|
|
434
438
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -445,7 +449,7 @@
|
|
|
445
449
|
|
|
446
450
|
.combobox [role='option'].active,
|
|
447
451
|
.combobox [role='option']:focus-visible {
|
|
448
|
-
@apply bg-
|
|
452
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
449
453
|
}
|
|
450
454
|
|
|
451
455
|
.combobox [role='group'] {
|
|
@@ -468,7 +472,11 @@
|
|
|
468
472
|
@apply -ms-0.5 size-4.5 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
469
473
|
}
|
|
470
474
|
|
|
471
|
-
.combobox [data-popover] >
|
|
475
|
+
.combobox [data-popover] > .input-group {
|
|
476
|
+
@apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/50 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
472
480
|
@apply mb-1 w-full;
|
|
473
481
|
}
|
|
474
482
|
/* Select */
|
|
@@ -581,6 +589,39 @@
|
|
|
581
589
|
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
582
590
|
}
|
|
583
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 relative 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
|
+
|
|
584
625
|
/* Dropdown Menu */
|
|
585
626
|
.dropdown-menu > [data-popover] {
|
|
586
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;
|
|
@@ -759,7 +800,15 @@
|
|
|
759
800
|
}
|
|
760
801
|
|
|
761
802
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
762
|
-
@apply bg-background
|
|
803
|
+
@apply bg-background rounded-2xl shadow-sm not-dark:bg-clip-padding;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
807
|
+
@apply bg-foreground;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
811
|
+
@apply bg-primary-foreground;
|
|
763
812
|
}
|
|
764
813
|
|
|
765
814
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/sera.css
CHANGED
|
@@ -428,11 +428,15 @@
|
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
.combobox [data-popover] {
|
|
431
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-none p-
|
|
431
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-none p-0 shadow-md ring-1 duration-100;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.combobox [role='listbox'] {
|
|
435
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto;
|
|
435
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto p-1.5;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
439
|
+
@apply p-0;
|
|
436
440
|
}
|
|
437
441
|
|
|
438
442
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -449,7 +453,7 @@
|
|
|
449
453
|
|
|
450
454
|
.combobox [role='option'].active,
|
|
451
455
|
.combobox [role='option']:focus-visible {
|
|
452
|
-
@apply bg-
|
|
456
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
453
457
|
}
|
|
454
458
|
|
|
455
459
|
.combobox [role='group'] {
|
|
@@ -472,7 +476,11 @@
|
|
|
472
476
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
473
477
|
}
|
|
474
478
|
|
|
475
|
-
.combobox [data-popover] >
|
|
479
|
+
.combobox [data-popover] > .input-group {
|
|
480
|
+
@apply m-1.5 mb-0 h-8 w-auto border-transparent border-b-input bg-transparent px-2.5 shadow-none focus-within:border-transparent focus-within:ring-0;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
476
484
|
@apply mb-1 w-full;
|
|
477
485
|
}
|
|
478
486
|
/* Select */
|
|
@@ -585,6 +593,56 @@
|
|
|
585
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;
|
|
586
594
|
}
|
|
587
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
|
+
|
|
588
646
|
/* Dropdown Menu */
|
|
589
647
|
.dropdown-menu > [data-popover] {
|
|
590
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;
|
|
@@ -763,7 +821,15 @@
|
|
|
763
821
|
}
|
|
764
822
|
|
|
765
823
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
766
|
-
@apply bg-background
|
|
824
|
+
@apply bg-background;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
828
|
+
@apply bg-foreground;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
832
|
+
@apply bg-primary-foreground;
|
|
767
833
|
}
|
|
768
834
|
|
|
769
835
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/dist/styles/vega.css
CHANGED
|
@@ -412,11 +412,15 @@
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
.combobox [data-popover] {
|
|
415
|
-
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-md p-
|
|
415
|
+
@apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-md p-0 shadow-md ring-1 duration-100;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
.combobox [role='listbox'] {
|
|
419
|
-
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
|
|
419
|
+
@apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
|
|
423
|
+
@apply p-0;
|
|
420
424
|
}
|
|
421
425
|
|
|
422
426
|
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
@@ -433,7 +437,7 @@
|
|
|
433
437
|
|
|
434
438
|
.combobox [role='option'].active,
|
|
435
439
|
.combobox [role='option']:focus-visible {
|
|
436
|
-
@apply bg-
|
|
440
|
+
@apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
|
|
437
441
|
}
|
|
438
442
|
|
|
439
443
|
.combobox [role='group'] {
|
|
@@ -456,7 +460,11 @@
|
|
|
456
460
|
@apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
|
|
457
461
|
}
|
|
458
462
|
|
|
459
|
-
.combobox [data-popover] >
|
|
463
|
+
.combobox [data-popover] > .input-group {
|
|
464
|
+
@apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.combobox [data-popover] > input[role='combobox'] {
|
|
460
468
|
@apply mb-1 w-full;
|
|
461
469
|
}
|
|
462
470
|
/* Select */
|
|
@@ -565,6 +573,56 @@
|
|
|
565
573
|
@apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
|
|
566
574
|
}
|
|
567
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
|
+
|
|
568
626
|
/* Dropdown Menu */
|
|
569
627
|
.dropdown-menu > [data-popover] {
|
|
570
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;
|
|
@@ -747,7 +805,15 @@
|
|
|
747
805
|
}
|
|
748
806
|
|
|
749
807
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
|
|
750
|
-
@apply bg-background
|
|
808
|
+
@apply bg-background rounded-full;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
|
|
812
|
+
@apply bg-foreground;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
|
|
816
|
+
@apply bg-primary-foreground;
|
|
751
817
|
}
|
|
752
818
|
|
|
753
819
|
:is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basecoat-css",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Tailwind CSS for Basecoat components",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "hunvreus",
|
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
"./command.min": "./dist/js/command.min.js",
|
|
53
53
|
"./dropdown-menu": "./dist/js/dropdown-menu.js",
|
|
54
54
|
"./dropdown-menu.min": "./dist/js/dropdown-menu.min.js",
|
|
55
|
+
"./drawer": "./dist/js/drawer.js",
|
|
56
|
+
"./drawer.min": "./dist/js/drawer.min.js",
|
|
55
57
|
"./popover": "./dist/js/popover.js",
|
|
56
58
|
"./popover.min": "./dist/js/popover.min.js",
|
|
57
59
|
"./range": "./dist/js/range.js",
|