@ni/spright-components 5.2.1 → 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.
@@ -26381,7 +26381,10 @@ so this becomes the fallback color for the slot */ ''}
26381
26381
 
26382
26382
  :host([disabled]) {
26383
26383
  color: ${bodyDisabledFontColor};
26384
- cursor: default;
26384
+ }
26385
+
26386
+ :host([disabled][appearance-readonly]) {
26387
+ color: ${bodyFontColor};
26385
26388
  }
26386
26389
 
26387
26390
  .label {
@@ -26394,6 +26397,10 @@ so this becomes the fallback color for the slot */ ''}
26394
26397
  color: ${controlLabelDisabledFontColor};
26395
26398
  }
26396
26399
 
26400
+ :host([disabled][appearance-readonly]) .label {
26401
+ color: ${controlLabelFontColor};
26402
+ }
26403
+
26397
26404
  .root {
26398
26405
  position: relative;
26399
26406
  display: flex;
@@ -26479,14 +26486,22 @@ so this becomes the fallback color for the slot */ ''}
26479
26486
  outline: none;
26480
26487
  }
26481
26488
 
26489
+ :host([disabled][appearance-readonly]) .control {
26490
+ cursor: text;
26491
+ }
26492
+
26482
26493
  .control::placeholder {
26483
26494
  color: ${controlLabelFontColor};
26484
26495
  }
26485
26496
 
26486
- .control[disabled]::placeholder {
26497
+ :host([disabled]) .control::placeholder {
26487
26498
  color: ${bodyDisabledFontColor};
26488
26499
  }
26489
26500
 
26501
+ :host([disabled][appearance-readonly]) .control::placeholder {
26502
+ color: ${controlLabelFontColor};
26503
+ }
26504
+
26490
26505
  .controls {
26491
26506
  display: contents;
26492
26507
  }
@@ -26648,6 +26663,7 @@ so this becomes the fallback color for the slot */ ''}
26648
26663
  constructor() {
26649
26664
  super(...arguments);
26650
26665
  this.appearance = NumberFieldAppearance.underline;
26666
+ this.appearanceReadOnly = false;
26651
26667
  }
26652
26668
  connectedCallback() {
26653
26669
  super.connectedCallback();
@@ -26658,6 +26674,9 @@ so this becomes the fallback color for the slot */ ''}
26658
26674
  __decorate([
26659
26675
  attr
26660
26676
  ], NumberField.prototype, "appearance", void 0);
26677
+ __decorate([
26678
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
26679
+ ], NumberField.prototype, "appearanceReadOnly", void 0);
26661
26680
  /**
26662
26681
  * A function that returns a number-field registration for configuring the component with a DesignSystem.
26663
26682
  *
@@ -74554,6 +74573,10 @@ focus outline in that case.
74554
74573
  color: ${bodyDisabledFontColor};
74555
74574
  }
74556
74575
 
74576
+ :host([disabled][appearance-readonly]) {
74577
+ color: ${bodyFontColor};
74578
+ }
74579
+
74557
74580
  .label {
74558
74581
  display: block;
74559
74582
  color: ${controlLabelFontColor};
@@ -74564,6 +74587,10 @@ focus outline in that case.
74564
74587
  color: ${controlLabelDisabledFontColor};
74565
74588
  }
74566
74589
 
74590
+ :host([disabled][appearance-readonly]) .label {
74591
+ color: ${controlLabelFontColor};
74592
+ }
74593
+
74567
74594
  .container {
74568
74595
  display: flex;
74569
74596
  justify-content: center;
@@ -74640,6 +74667,10 @@ focus outline in that case.
74640
74667
  border-color: rgba(${borderRgbPartialColor}, 0.1);
74641
74668
  }
74642
74669
 
74670
+ :host([disabled][appearance-readonly]) .control {
74671
+ cursor: text;
74672
+ }
74673
+
74643
74674
  :host([error-visible]) .control {
74644
74675
  border-bottom-color: ${failColor};
74645
74676
  }
@@ -74652,10 +74683,14 @@ focus outline in that case.
74652
74683
  color: ${controlLabelFontColor};
74653
74684
  }
74654
74685
 
74655
- .control[disabled]::placeholder {
74686
+ :host([disabled]) .control::placeholder {
74656
74687
  color: ${controlLabelDisabledFontColor};
74657
74688
  }
74658
74689
 
74690
+ :host([disabled][appearance-readonly]) .control::placeholder {
74691
+ color: ${controlLabelFontColor};
74692
+ }
74693
+
74659
74694
  :host([resize='both']) .control {
74660
74695
  resize: both;
74661
74696
  }
@@ -74695,6 +74730,11 @@ focus outline in that case.
74695
74730
  background-color: rgba(${borderRgbPartialColor}, 0.1);
74696
74731
  }
74697
74732
 
74733
+ :host([disabled][appearance-readonly]) .control {
74734
+ border-color: rgba(${borderRgbPartialColor}, 0.1);
74735
+ background-color: transparent;
74736
+ }
74737
+
74698
74738
  :host([error-visible][disabled]) .control {
74699
74739
  border-bottom-color: ${failColor};
74700
74740
  }
@@ -74777,6 +74817,7 @@ focus outline in that case.
74777
74817
  * HTML Attribute: appearance
74778
74818
  */
74779
74819
  this.appearance = TextAreaAppearance.outline;
74820
+ this.appearanceReadOnly = false;
74780
74821
  /**
74781
74822
  * The width of the vertical scrollbar, if displayed.
74782
74823
  * @internal
@@ -74847,6 +74888,9 @@ focus outline in that case.
74847
74888
  __decorate([
74848
74889
  attr
74849
74890
  ], TextArea.prototype, "appearance", void 0);
74891
+ __decorate([
74892
+ attr({ attribute: 'appearance-readonly', mode: 'boolean' })
74893
+ ], TextArea.prototype, "appearanceReadOnly", void 0);
74850
74894
  __decorate([
74851
74895
  observable
74852
74896
  ], TextArea.prototype, "scrollbarWidth", void 0);
@@ -75017,6 +75061,10 @@ focus outline in that case.
75017
75061
  text-overflow: clip;
75018
75062
  }
75019
75063
 
75064
+ :host([disabled][appearance-readonly]) .control {
75065
+ cursor: text;
75066
+ }
75067
+
75020
75068
  .control::placeholder {
75021
75069
  color: ${controlLabelFontColor};
75022
75070
  }