@ni/nimble-components 17.0.3 → 17.0.5

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.
@@ -20730,18 +20730,25 @@
20730
20730
  background: ${applicationBackgroundColor};
20731
20731
  border: ${borderWidth} solid ${popupBorderColor};
20732
20732
  margin: 0;
20733
- padding: 4px;
20734
- min-width: 168px;
20733
+ min-width: 176px;
20735
20734
  width: max-content;
20736
20735
  box-shadow: ${elevation2BoxShadow};
20737
20736
  }
20737
+
20738
+ slot {
20739
+ padding: 4px;
20740
+ display: block;
20741
+ }
20742
+
20738
20743
  :host([slot='submenu']) {
20739
20744
  margin: 0 calc(${smallPadding} * 2);
20740
20745
  }
20746
+
20741
20747
  ::slotted(*) {
20742
20748
  padding-left: 8px;
20743
20749
  padding-right: 8px;
20744
20750
  }
20751
+
20745
20752
  ::slotted(hr) {
20746
20753
  box-sizing: content-box;
20747
20754
  height: 2px;
@@ -20750,6 +20757,7 @@
20750
20757
  background: ${borderColor};
20751
20758
  opacity: 0.1;
20752
20759
  }
20760
+
20753
20761
  ::slotted(header) {
20754
20762
  display: flex;
20755
20763
  font: ${groupHeaderFont};
@@ -20758,7 +20766,11 @@
20758
20766
  padding-top: ${smallPadding};
20759
20767
  padding-bottom: ${smallPadding};
20760
20768
  }
20761
- `;
20769
+ `.withBehaviors(themeBehavior(Theme.color, css `
20770
+ slot {
20771
+ background: ${hexToRgbaCssColor(White, 0.15)};
20772
+ }
20773
+ `));
20762
20774
 
20763
20775
  /**
20764
20776
  * A nimble-styled menu
@@ -25148,12 +25160,46 @@
25148
25160
  .header-row {
25149
25161
  display: flex;
25150
25162
  flex-direction: row;
25163
+ background: ${applicationBackgroundColor};
25164
+ position: relative;
25151
25165
  }
25152
25166
 
25153
25167
  .header {
25154
25168
  flex: 1;
25155
25169
  }
25156
- `;
25170
+
25171
+ .row {
25172
+ background: ${applicationBackgroundColor};
25173
+ position: relative;
25174
+ }
25175
+
25176
+ .row::before {
25177
+ content: '';
25178
+ width: 100%;
25179
+ height: 100%;
25180
+ position: absolute;
25181
+ }
25182
+
25183
+ .row:hover::before {
25184
+ background: ${fillHoverColor};
25185
+ }
25186
+ `.withBehaviors(themeBehavior(Theme.color, css `
25187
+ .header-row::before {
25188
+ content: '';
25189
+ width: 100%;
25190
+ height: 100%;
25191
+ position: absolute;
25192
+ background: ${fillHoverColor};
25193
+ }
25194
+
25195
+ .row::before {
25196
+ background: ${fillHoverColor};
25197
+ }
25198
+
25199
+ .row:hover::before {
25200
+ background: ${hexToRgbaCssColor(White, 0.15)};
25201
+ }
25202
+ `));
25157
25203
 
25158
25204
  const styles$c = css `
25159
25205
  ${display('flex')}
@@ -25161,10 +25207,10 @@
25161
25207
  :host {
25162
25208
  height: ${controlHeight};
25163
25209
  align-items: center;
25164
- background: ${applicationBackgroundColor};
25165
25210
  padding: 0px calc(${standardPadding} / 2);
25166
25211
  font: ${tableHeaderFont};
25167
25212
  color: ${tableHeaderFontColor};
25213
+ text-transform: uppercase;
25168
25214
  }
25169
25215
  `;
25170
25216
 
@@ -25193,15 +25239,10 @@
25193
25239
 
25194
25240
  :host {
25195
25241
  height: ${controlHeight};
25196
- background: ${applicationBackgroundColor};
25197
25242
  border-top: calc(2 * ${borderWidth}) solid ${tableRowBorderColor};
25198
25243
  grid-auto-flow: column;
25199
25244
  grid-auto-columns: 1fr;
25200
25245
  }
25201
-
25202
- :host(:hover) .cell {
25203
- background: ${fillHoverColor};
25204
- }
25205
25246
  `;
25206
25247
 
25207
25248
  const styles$a = css `
@@ -25360,6 +25401,7 @@
25360
25401
  ${when(x => x.columns.length > 0, html `
25361
25402
  ${repeat(x => x.tableData, html `
25362
25403
  <${DesignSystem.tagFor(TableRow)}
25404
+ class="row"
25363
25405
  :dataRecord="${x => x.record}"
25364
25406
  :columns="${(_, c) => c.parent.columns}"
25365
25407
  >