@ni/nimble-components 33.5.0 → 33.6.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.
@@ -20581,6 +20581,10 @@ so this becomes the fallback color for the slot */ ''}
20581
20581
  color: ${controlLabelDisabledFontColor};
20582
20582
  }
20583
20583
 
20584
+ :host([disabled][appearance-readonly]) .label {
20585
+ color: ${controlLabelFontColor};
20586
+ }
20587
+
20584
20588
  .control {
20585
20589
  align-items: center;
20586
20590
  cursor: pointer;
@@ -20602,6 +20606,11 @@ so this becomes the fallback color for the slot */ ''}
20602
20606
  border-color: rgba(${borderRgbPartialColor}, 0.1);
20603
20607
  }
20604
20608
 
20609
+ :host([disabled][appearance-readonly]) .control {
20610
+ color: ${bodyFontColor};
20611
+ border-color: rgba(${borderRgbPartialColor}, 0.3);
20612
+ }
20613
+
20605
20614
  :host([error-visible]) .control,
20606
20615
  :host([error-visible][open]) .control,
20607
20616
  :host([error-visible][disabled]) .control {
@@ -20623,8 +20632,11 @@ so this becomes the fallback color for the slot */ ''}
20623
20632
  padding-left: ${mediumPadding};
20624
20633
  }
20625
20634
 
20626
- .selected-value[disabled]::placeholder {
20627
- color: ${bodyDisabledFontColor};
20635
+ :host([disabled][appearance-readonly]) .selected-value {
20636
+ cursor: text;
20637
+ user-select: text;
20638
+ -webkit-user-select: text;
20639
+ padding-right: ${smallPadding};
20628
20640
  }
20629
20641
 
20630
20642
  .indicator {
@@ -20636,6 +20648,10 @@ so this becomes the fallback color for the slot */ ''}
20636
20648
  align-items: center;
20637
20649
  }
20638
20650
 
20651
+ :host([disabled][appearance-readonly]) .indicator {
20652
+ display: none;
20653
+ }
20654
+
20639
20655
  .indicator slot[name='indicator'] svg {
20640
20656
  width: ${iconSize};
20641
20657
  height: ${iconSize};
@@ -20737,10 +20753,6 @@ so this becomes the fallback color for the slot */ ''}
20737
20753
  border-bottom-width: ${borderWidth};
20738
20754
  padding-bottom: 0;
20739
20755
  }
20740
-
20741
- :host([disabled]) .control {
20742
- border-color: rgba(${borderRgbPartialColor}, 0.1);
20743
- }
20744
20756
  `), appearanceBehavior(DropdownAppearance.outline, css `
20745
20757
  .control {
20746
20758
  border-width: ${borderWidth};
@@ -20805,12 +20817,6 @@ so this becomes the fallback color for the slot */ ''}
20805
20817
  );
20806
20818
  }
20807
20819
 
20808
- :host([disabled]) *,
20809
- :host([disabled]) {
20810
- ${userSelectNone}
20811
- color: ${bodyDisabledFontColor};
20812
- }
20813
-
20814
20820
  .control {
20815
20821
  bottom-border-width: var(--ni-private-bottom-border-width);
20816
20822
  }
@@ -20837,6 +20843,18 @@ so this becomes the fallback color for the slot */ ''}
20837
20843
  outline: none;
20838
20844
  }
20839
20845
 
20846
+ .selected-value::placeholder {
20847
+ color: ${placeholderFontColor};
20848
+ }
20849
+
20850
+ :host([disabled]) .selected-value::placeholder {
20851
+ color: ${bodyDisabledFontColor};
20852
+ }
20853
+
20854
+ :host([disabled][appearance-readonly]) .selected-value::placeholder {
20855
+ color: ${placeholderFontColor};
20856
+ }
20857
+
20840
20858
  [part='indicator'] {
20841
20859
  display: none;
20842
20860
  }
@@ -20847,6 +20865,10 @@ so this becomes the fallback color for the slot */ ''}
20847
20865
  padding-right: ${smallPadding};
20848
20866
  }
20849
20867
 
20868
+ :host([disabled][appearance-readonly]) .end-slot-container {
20869
+ display: none;
20870
+ }
20871
+
20850
20872
  .separator {
20851
20873
  display: inline;
20852
20874
  width: 2px;
@@ -21039,6 +21061,7 @@ so this becomes the fallback color for the slot */ ''}
21039
21061
  constructor() {
21040
21062
  super(...arguments);
21041
21063
  this.appearance = DropdownAppearance.underline;
21064
+ this.appearanceReadOnly = false;
21042
21065
  /**
21043
21066
  * The open attribute.
21044
21067
  */
@@ -21634,6 +21657,9 @@ so this becomes the fallback color for the slot */ ''}
21634
21657
  __decorate([
21635
21658
  attr
21636
21659
  ], Combobox.prototype, "appearance", void 0);
21660
+ __decorate([
21661
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
21662
+ ], Combobox.prototype, "appearanceReadOnly", void 0);
21637
21663
  __decorate([
21638
21664
  attr({ attribute: 'autocomplete', mode: 'fromView' })
21639
21665
  ], Combobox.prototype, "autocomplete", void 0);
@@ -60686,6 +60712,10 @@ img.ProseMirror-separator {
60686
60712
  color: ${bodyDisabledFontColor};
60687
60713
  }
60688
60714
 
60715
+ :host([disabled][appearance-readonly]) .selected-value.placeholder {
60716
+ color: ${placeholderFontColor};
60717
+ }
60718
+
60689
60719
  .selected-value {
60690
60720
  order: 1;
60691
60721
  }
@@ -61237,6 +61267,7 @@ img.ProseMirror-separator {
61237
61267
  constructor() {
61238
61268
  super(...arguments);
61239
61269
  this.appearance = DropdownAppearance.underline;
61270
+ this.appearanceReadOnly = false;
61240
61271
  this.filterMode = FilterMode.none;
61241
61272
  this.clearable = false;
61242
61273
  this.loadingVisible = false;
@@ -62222,6 +62253,9 @@ img.ProseMirror-separator {
62222
62253
  __decorate([
62223
62254
  attr
62224
62255
  ], Select.prototype, "appearance", void 0);
62256
+ __decorate([
62257
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
62258
+ ], Select.prototype, "appearanceReadOnly", void 0);
62225
62259
  __decorate([
62226
62260
  attr({ attribute: 'position' })
62227
62261
  ], Select.prototype, "positionAttribute", void 0);