@ni/spright-components 5.2.2 → 5.2.3

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.
@@ -74573,6 +74573,10 @@ focus outline in that case.
74573
74573
  color: ${bodyDisabledFontColor};
74574
74574
  }
74575
74575
 
74576
+ :host([disabled][appearance-readonly]) {
74577
+ color: ${bodyFontColor};
74578
+ }
74579
+
74576
74580
  .label {
74577
74581
  display: block;
74578
74582
  color: ${controlLabelFontColor};
@@ -74583,6 +74587,10 @@ focus outline in that case.
74583
74587
  color: ${controlLabelDisabledFontColor};
74584
74588
  }
74585
74589
 
74590
+ :host([disabled][appearance-readonly]) .label {
74591
+ color: ${controlLabelFontColor};
74592
+ }
74593
+
74586
74594
  .container {
74587
74595
  display: flex;
74588
74596
  justify-content: center;
@@ -74659,6 +74667,10 @@ focus outline in that case.
74659
74667
  border-color: rgba(${borderRgbPartialColor}, 0.1);
74660
74668
  }
74661
74669
 
74670
+ :host([disabled][appearance-readonly]) .control {
74671
+ cursor: text;
74672
+ }
74673
+
74662
74674
  :host([error-visible]) .control {
74663
74675
  border-bottom-color: ${failColor};
74664
74676
  }
@@ -74671,10 +74683,14 @@ focus outline in that case.
74671
74683
  color: ${controlLabelFontColor};
74672
74684
  }
74673
74685
 
74674
- .control[disabled]::placeholder {
74686
+ :host([disabled]) .control::placeholder {
74675
74687
  color: ${controlLabelDisabledFontColor};
74676
74688
  }
74677
74689
 
74690
+ :host([disabled][appearance-readonly]) .control::placeholder {
74691
+ color: ${controlLabelFontColor};
74692
+ }
74693
+
74678
74694
  :host([resize='both']) .control {
74679
74695
  resize: both;
74680
74696
  }
@@ -74714,6 +74730,11 @@ focus outline in that case.
74714
74730
  background-color: rgba(${borderRgbPartialColor}, 0.1);
74715
74731
  }
74716
74732
 
74733
+ :host([disabled][appearance-readonly]) .control {
74734
+ border-color: rgba(${borderRgbPartialColor}, 0.1);
74735
+ background-color: transparent;
74736
+ }
74737
+
74717
74738
  :host([error-visible][disabled]) .control {
74718
74739
  border-bottom-color: ${failColor};
74719
74740
  }
@@ -74796,6 +74817,7 @@ focus outline in that case.
74796
74817
  * HTML Attribute: appearance
74797
74818
  */
74798
74819
  this.appearance = TextAreaAppearance.outline;
74820
+ this.appearanceReadOnly = false;
74799
74821
  /**
74800
74822
  * The width of the vertical scrollbar, if displayed.
74801
74823
  * @internal
@@ -74866,6 +74888,9 @@ focus outline in that case.
74866
74888
  __decorate([
74867
74889
  attr
74868
74890
  ], TextArea.prototype, "appearance", void 0);
74891
+ __decorate([
74892
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
74893
+ ], TextArea.prototype, "appearanceReadOnly", void 0);
74869
74894
  __decorate([
74870
74895
  observable
74871
74896
  ], TextArea.prototype, "scrollbarWidth", void 0);