@ni/nimble-components 8.0.1 → 8.1.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.
@@ -18129,6 +18129,7 @@
18129
18129
  TextFieldAppearance["Underline"] = "underline";
18130
18130
  TextFieldAppearance["Outline"] = "outline";
18131
18131
  TextFieldAppearance["Block"] = "block";
18132
+ TextFieldAppearance["Frameless"] = "frameless";
18132
18133
  })(TextFieldAppearance || (TextFieldAppearance = {}));
18133
18134
 
18134
18135
  const styles$4 = css `
@@ -18185,11 +18186,8 @@
18185
18186
  border-bottom-color: ${failColor};
18186
18187
  }
18187
18188
 
18188
- :host([readonly]:not([disabled])) .root {
18189
- border: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.1);
18190
- padding: 0px;
18191
- padding-bottom: 1px;
18192
- background-color: transparent;
18189
+ :host([readonly]) .root {
18190
+ border-color: rgba(${borderRgbPartialColor}, 0.1);
18193
18191
  }
18194
18192
 
18195
18193
  :host([disabled]) .root {
@@ -18203,6 +18201,10 @@
18203
18201
  border-bottom-color: ${borderHoverColor};
18204
18202
  }
18205
18203
 
18204
+ :host([readonly]) .root:hover {
18205
+ --ni-private-bottom-border-width: 1px;
18206
+ }
18207
+
18206
18208
  :host([disabled]) .root:hover {
18207
18209
  --ni-private-bottom-border-width: 1px;
18208
18210
  }
@@ -18302,10 +18304,6 @@
18302
18304
  white-space: nowrap;
18303
18305
  }
18304
18306
 
18305
- :host(.invalid[readonly]:not([disabled])) .errortext {
18306
- top: calc(${controlHeight} - ${borderWidth});
18307
- }
18308
-
18309
18307
  :host(.invalid) .error-text:empty {
18310
18308
  display: none;
18311
18309
  }
@@ -18329,6 +18327,14 @@
18329
18327
  padding-left: ${borderWidth};
18330
18328
  padding-right: ${borderWidth};
18331
18329
  }
18330
+
18331
+ :host([disabled]) .root {
18332
+ border-color: rgba(${borderRgbPartialColor}, 0.1);
18333
+ }
18334
+
18335
+ :host([disabled]) .root:hover {
18336
+ --ni-private-bottom-border-width: 1px;
18337
+ }
18332
18338
  `), appearanceBehavior(TextFieldAppearance.Block, css `
18333
18339
  .root {
18334
18340
  background-color: rgba(${borderRgbPartialColor}, 0.1);
@@ -18358,6 +18364,11 @@
18358
18364
  );
18359
18365
  }
18360
18366
 
18367
+ :host([readonly]) .root {
18368
+ background-color: rgba(${borderRgbPartialColor}, 0.07);
18369
+ border-color: transparent;
18370
+ }
18371
+
18361
18372
  :host([disabled]) .root {
18362
18373
  background-color: rgba(${borderRgbPartialColor}, 0.07);
18363
18374
  }
@@ -18379,6 +18390,21 @@
18379
18390
  :host(.invalid) .errortext {
18380
18391
  top: calc(${controlHeight} - ${borderWidth});
18381
18392
  }
18393
+ `), appearanceBehavior(TextFieldAppearance.Frameless, css `
18394
+ .root {
18395
+ --ni-private-bottom-border-width: 0px;
18396
+ padding-top: ${borderWidth};
18397
+ padding-left: ${borderWidth};
18398
+ padding-right: ${borderWidth};
18399
+ }
18400
+
18401
+ :host([readonly]) .root {
18402
+ border-color: transparent;
18403
+ }
18404
+
18405
+ .root:hover {
18406
+ --ni-private-bottom-border-width: 0px;
18407
+ }
18382
18408
  `), themeBehavior(css `
18383
18409
  ${'' /* Light theme */}
18384
18410
  .control::-ms-reveal {