@wwtdev/bsds-css 3.0.0-rc.43 → 3.0.0-rc.44

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.
@@ -3751,6 +3751,7 @@ label:where(.bs-label) {
3751
3751
  .bs-option {
3752
3752
  padding: var(--bs-space-1) var(--bs-space-2);
3753
3753
  color: var(--bs-ink-base);
3754
+ --description-color: var(--bs-ink-light);
3754
3755
  cursor: pointer;
3755
3756
  border-left: 4px solid transparent;
3756
3757
  border-right: 4px solid transparent;
@@ -3768,12 +3769,14 @@ label:where(.bs-label) {
3768
3769
  /* Don't disable via pointer-events, so tooltips still work in a disabled menu item. */
3769
3770
  .bs-option:where([aria-disabled="true"]) {
3770
3771
  color: var(--bs-ink-disabled);
3772
+ --description-color: var(--bs-ink-disabled);
3771
3773
  cursor: default;
3772
3774
  }
3773
3775
  /* -- SELECTED -- */
3774
- .bs-option:where(:not([aria-disabled="true"])):hover,
3775
- .bs-dropdown-list:where(:not([aria-multiselectable="true"])) :where(.bs-option[aria-selected="true"]) {
3776
+ .bs-option:where(:not([aria-disabled="true"], [data-negative="true"])):hover,
3777
+ .bs-option:where(:not([data-multiple="true"])[aria-selected="true"]) {
3776
3778
  color: var(--bs-ink-primary);
3779
+ --description-color: var(--bs-ink-primary);
3777
3780
  background: var(--bs-bg-medium-to-light);
3778
3781
  border-left-color: var(--bs-ink-primary);
3779
3782
  }
@@ -3786,16 +3789,62 @@ label:where(.bs-label) {
3786
3789
  .bs-option:where([data-active="true"]) {
3787
3790
  box-shadow: inset 0 0 0 2px var(--bs-primary-base);
3788
3791
  }
3789
- /* -- HJ TODO: Variants (this is just quick junk for multiple w/checkbox) -- */
3790
- .bs-dropdown-list:where([aria-multiselectable="true"]) :where(.bs-option) {
3792
+ /* -- NEGATIVE -- */
3793
+ .bs-option:where([data-negative="true"]:hover),
3794
+ .bs-option:where(:not([data-multiple="true"])[data-negative="true"][aria-selected="true"]) {
3795
+ color: var(--bs-ink-negative);
3796
+ background: var(--bs-negative-highlight);
3797
+ border-left-color: var(--bs-negative-base);
3798
+ --description-color: var(--bs-ink-negative);
3799
+ }
3800
+ .bs-option:where([data-negative="true"][aria-selected="true"]) :where(.bs-checkbox):before {
3801
+ --fill-bg-color: var(--bs-negative-base);
3802
+ }
3803
+ .bs-option:where([data-negative="true"][data-active="true"]) {
3804
+ box-shadow: inset 0 0 0 2px var(--bs-negative-base);
3805
+ }
3806
+ /* -- MULTIPLE -- */
3807
+ .bs-option:where([data-multiple="true"]) {
3791
3808
  display: grid;
3792
3809
  grid-template-columns: auto 1fr;
3793
3810
  align-items: start;
3794
3811
  gap: var(--bs-space-2);
3795
3812
  }
3796
- .bs-dropdown-list:where([aria-multiselectable="true"]) :where(.bs-option) :where(.bs-checkbox) {
3813
+ .bs-option:where([data-multiple="true"]) :where(.bs-checkbox) {
3797
3814
  margin-top: var(--bs-space-1);
3798
3815
  }
3816
+ /* -- VARIANTS -- */
3817
+ .bs-option-grid:where([data-icon-col="true"]) {
3818
+ display: grid;
3819
+ grid-template:
3820
+ "icon label"
3821
+ ". description"
3822
+ / auto 1fr;
3823
+ grid-column-gap: var(--bs-space-2);
3824
+ }
3825
+ .bs-option-grid:where(:not([data-icon-col="true"])) {
3826
+ display: grid;
3827
+ grid-template:
3828
+ "label"
3829
+ "description";
3830
+ }
3831
+ .bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(1)) {
3832
+ grid-area: icon;
3833
+ align-self: center;
3834
+ max-width: 1.5rem;
3835
+ max-height: 1.5rem;
3836
+ }
3837
+ .bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(2)),
3838
+ .bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(1)) {
3839
+ grid-area: label;
3840
+ }
3841
+ .bs-option-grid:where([data-icon-col="true"]) :where(:nth-child(3)),
3842
+ .bs-option-grid:where(:not([data-icon-col="true"])) :where(:nth-child(2)) {
3843
+ grid-area: description;
3844
+ font-size: var(--bs-text-xs);
3845
+ padding-top: 0.125rem;
3846
+ color: var(--description-color);
3847
+ }
3799
3848
  .bs-overlay {
3800
3849
  -webkit-backdrop-filter: blur(4px);
3801
3850
  backdrop-filter: blur(4px);