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

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.
@@ -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-3xl p-1.5 shadow-lg ring-1 duration-100;
427
+ @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 max-h-72 gap-0 rounded-3xl 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.5 overflow-y-auto;
431
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto p-1.5;
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-muted text-foreground [&_svg]:text-foreground;
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-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
469
473
  }
470
474
 
471
- .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
475
+ .combobox [data-popover] > .input-group {
476
+ @apply m-1.5 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 */
@@ -759,7 +767,15 @@
759
767
  }
760
768
 
761
769
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
762
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full shadow-sm not-dark:bg-clip-padding;
770
+ @apply bg-background rounded-full shadow-sm not-dark:bg-clip-padding;
771
+ }
772
+
773
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
774
+ @apply bg-foreground;
775
+ }
776
+
777
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
778
+ @apply bg-primary-foreground;
763
779
  }
764
780
 
765
781
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -412,7 +412,7 @@
412
412
  }
413
413
 
414
414
  .combobox [data-popover] {
415
- @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-none shadow-md ring-1 duration-100;
415
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-none p-0 shadow-md ring-1 duration-100;
416
416
  }
417
417
 
418
418
  .combobox [role='listbox'] {
@@ -433,7 +433,7 @@
433
433
 
434
434
  .combobox [role='option'].active,
435
435
  .combobox [role='option']:focus-visible {
436
- @apply bg-muted text-foreground [&_svg]:text-foreground;
436
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
437
437
  }
438
438
 
439
439
  .combobox [role='separator'] {
@@ -452,7 +452,11 @@
452
452
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
453
453
  }
454
454
 
455
- .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
455
+ .combobox [data-popover] > .input-group {
456
+ @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;
457
+ }
458
+
459
+ .combobox [data-popover] > input[role='combobox'] {
456
460
  @apply mb-1 w-full;
457
461
  }
458
462
  /* Select */
@@ -743,7 +747,15 @@
743
747
  }
744
748
 
745
749
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
746
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
750
+ @apply bg-background rounded-full;
751
+ }
752
+
753
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
754
+ @apply bg-foreground;
755
+ }
756
+
757
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
758
+ @apply bg-primary-foreground;
747
759
  }
748
760
 
749
761
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -416,11 +416,15 @@
416
416
  }
417
417
 
418
418
  .combobox [data-popover] {
419
- @apply bg-popover text-popover-foreground ring-foreground/5 max-h-72 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
419
+ @apply bg-popover text-popover-foreground ring-foreground/5 max-h-72 gap-0 rounded-2xl p-0 shadow-2xl ring-1 duration-100;
420
420
  }
421
421
 
422
422
  .combobox [role='listbox'] {
423
- @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
423
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
424
+ }
425
+
426
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
427
+ @apply p-0;
424
428
  }
425
429
 
426
430
  .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
@@ -437,7 +441,7 @@
437
441
 
438
442
  .combobox [role='option'].active,
439
443
  .combobox [role='option']:focus-visible {
440
- @apply bg-muted text-foreground [&_svg]:text-foreground;
444
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
441
445
  }
442
446
 
443
447
  .combobox [role='group'] {
@@ -460,7 +464,11 @@
460
464
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
461
465
  }
462
466
 
463
- .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
467
+ .combobox [data-popover] > .input-group {
468
+ @apply m-1 mb-0 h-9 w-auto border-none bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
469
+ }
470
+
471
+ .combobox [data-popover] > input[role='combobox'] {
464
472
  @apply mb-1 w-full;
465
473
  }
466
474
  /* Select */
@@ -747,7 +755,15 @@
747
755
  }
748
756
 
749
757
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
750
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
758
+ @apply bg-background rounded-full;
759
+ }
760
+
761
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
+ @apply bg-foreground;
763
+ }
764
+
765
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
+ @apply bg-primary-foreground;
751
767
  }
752
768
 
753
769
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -416,11 +416,15 @@
416
416
  }
417
417
 
418
418
  .combobox [data-popover] {
419
- @apply bg-popover text-popover-foreground ring-foreground/10 dark:bg-popover max-h-72 rounded-lg p-1 shadow-md ring-1 duration-100;
419
+ @apply bg-popover text-popover-foreground ring-foreground/10 dark:bg-popover max-h-72 gap-0 rounded-lg p-0 shadow-md ring-1 duration-100;
420
420
  }
421
421
 
422
422
  .combobox [role='listbox'] {
423
- @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
423
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
424
+ }
425
+
426
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
427
+ @apply p-0;
424
428
  }
425
429
 
426
430
  .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
@@ -437,7 +441,7 @@
437
441
 
438
442
  .combobox [role='option'].active,
439
443
  .combobox [role='option']:focus-visible {
440
- @apply bg-muted text-foreground [&_svg]:text-foreground;
444
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
441
445
  }
442
446
 
443
447
  .combobox [role='group'] {
@@ -460,7 +464,11 @@
460
464
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3;
461
465
  }
462
466
 
463
- .combobox [data-popover] > :is(input[role='combobox'], .input-group) {
467
+ .combobox [data-popover] > .input-group {
468
+ @apply m-1 mb-0 h-7 w-auto border-none bg-input/20 shadow-none focus-within:border-inherit focus-within:ring-0;
469
+ }
470
+
471
+ .combobox [data-popover] > input[role='combobox'] {
464
472
  @apply mb-1 w-full;
465
473
  }
466
474
  /* Select */
@@ -751,7 +759,15 @@
751
759
  }
752
760
 
753
761
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
754
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
762
+ @apply bg-background rounded-full;
763
+ }
764
+
765
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
766
+ @apply bg-foreground;
767
+ }
768
+
769
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
770
+ @apply bg-primary-foreground;
755
771
  }
756
772
 
757
773
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -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-1 shadow-md ring-1 duration-100;
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-muted text-foreground [&_svg]:text-foreground;
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] > :is(input[role='combobox'], .input-group) {
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 */
@@ -747,7 +755,15 @@
747
755
  }
748
756
 
749
757
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
750
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
758
+ @apply bg-background rounded-full;
759
+ }
760
+
761
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
+ @apply bg-foreground;
763
+ }
764
+
765
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
+ @apply bg-primary-foreground;
751
767
  }
752
768
 
753
769
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -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-1 shadow-lg ring-1 duration-100;
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-muted text-foreground [&_svg]:text-foreground;
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] > :is(input[role='combobox'], .input-group) {
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 */
@@ -759,7 +767,15 @@
759
767
  }
760
768
 
761
769
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
762
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-2xl shadow-sm not-dark:bg-clip-padding;
770
+ @apply bg-background rounded-2xl shadow-sm not-dark:bg-clip-padding;
771
+ }
772
+
773
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
774
+ @apply bg-foreground;
775
+ }
776
+
777
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
778
+ @apply bg-primary-foreground;
763
779
  }
764
780
 
765
781
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -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-1.5 shadow-md ring-1 duration-100;
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-muted text-foreground [&_svg]:text-foreground;
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] > :is(input[role='combobox'], .input-group) {
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 */
@@ -763,7 +771,15 @@
763
771
  }
764
772
 
765
773
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
766
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground;
774
+ @apply bg-background;
775
+ }
776
+
777
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
778
+ @apply bg-foreground;
779
+ }
780
+
781
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
782
+ @apply bg-primary-foreground;
767
783
  }
768
784
 
769
785
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -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-1 shadow-md ring-1 duration-100;
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-muted text-foreground [&_svg]:text-foreground;
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] > :is(input[role='combobox'], .input-group) {
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 */
@@ -747,7 +755,15 @@
747
755
  }
748
756
 
749
757
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
750
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
758
+ @apply bg-background rounded-full;
759
+ }
760
+
761
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
+ @apply bg-foreground;
763
+ }
764
+
765
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
+ @apply bg-primary-foreground;
751
767
  }
752
768
 
753
769
  :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.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Tailwind CSS for Basecoat components",
5
5
  "author": {
6
6
  "name": "hunvreus",