@ni/nimble-components 8.6.3 → 9.0.2

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.
@@ -16077,8 +16077,7 @@
16077
16077
  position: relative;
16078
16078
  top: 0px;
16079
16079
  bottom: 0px;
16080
- display: grid;
16081
- grid-template-rows: max-content auto max-content;
16080
+ display: flex;
16082
16081
  flex-direction: column;
16083
16082
  box-sizing: border-box;
16084
16083
  border-radius: 0px;
@@ -16115,20 +16114,21 @@
16115
16114
 
16116
16115
  ::slotted(header) {
16117
16116
  padding: ${standardPadding};
16117
+ flex: none;
16118
16118
  font: ${titlePlus1Font};
16119
16119
  }
16120
16120
 
16121
16121
  ::slotted(section) {
16122
16122
  padding: ${standardPadding};
16123
- grid-row: 2;
16123
+ flex: auto;
16124
16124
  overflow-y: auto;
16125
16125
  }
16126
16126
 
16127
16127
  ::slotted(footer) {
16128
16128
  padding: ${standardPadding};
16129
+ flex: none;
16129
16130
  display: flex;
16130
16131
  justify-content: flex-end;
16131
- grid-row: 3;
16132
16132
  border-top: ${borderWidth} solid ${popupBorderColor};
16133
16133
  }
16134
16134
  `;
@@ -18056,6 +18056,9 @@
18056
18056
  width: max-content;
18057
18057
  box-shadow: 0px 2px 3px ${popupBoxShadowColor};
18058
18058
  }
18059
+ :host([slot='submenu']) {
18060
+ margin: 0 calc(${smallPadding} * 2);
18061
+ }
18059
18062
  ::slotted(*) {
18060
18063
  padding-left: 8px;
18061
18064
  padding-right: 8px;
@@ -18063,7 +18066,7 @@
18063
18066
  ::slotted(hr) {
18064
18067
  box-sizing: content-box;
18065
18068
  height: 2px;
18066
- margin: 4px;
18069
+ margin: ${smallPadding};
18067
18070
  border: none;
18068
18071
  background: ${borderColor};
18069
18072
  opacity: 0.1;
@@ -18073,8 +18076,8 @@
18073
18076
  font: ${groupHeaderFont};
18074
18077
  color: ${groupHeaderFontColor};
18075
18078
  text-transform: ${groupHeaderTextTransform};
18076
- padding-top: 4px;
18077
- padding-bottom: 4px;
18079
+ padding-top: ${smallPadding};
18080
+ padding-bottom: ${smallPadding};
18078
18081
  }
18079
18082
  `;
18080
18083
 
@@ -18108,7 +18111,8 @@
18108
18111
  overflow: visible;
18109
18112
  box-sizing: border-box;
18110
18113
  height: ${controlHeight};
18111
- grid-template-columns: 0px 1fr;
18114
+ grid-template-columns: 1fr;
18115
+ column-gap: 8px;
18112
18116
  grid-template-rows: 1fr;
18113
18117
  justify-items: start;
18114
18118
  align-items: center;
@@ -18125,10 +18129,13 @@
18125
18129
  outline: 2px solid ${borderHoverColor};
18126
18130
  outline-offset: -2px;
18127
18131
  }
18132
+ :host([expanded]) {
18133
+ background: ${fillHoverColor};
18134
+ }
18128
18135
  :host(:hover) {
18129
18136
  background: ${fillHoverColor};
18130
18137
  }
18131
- :host(:active) {
18138
+ :host(:active:not([expanded])) {
18132
18139
  background: ${fillSelectedColor};
18133
18140
  }
18134
18141
  :host([disabled]) {
@@ -18139,9 +18146,14 @@
18139
18146
  :host([disabled]:hover) {
18140
18147
  background: transparent;
18141
18148
  }
18149
+ :host(.indent-0[aria-haspopup='menu']) {
18150
+ grid-template-columns: 1fr ${iconSize};
18151
+ }
18142
18152
  :host(.indent-1) {
18143
18153
  grid-template-columns: ${iconSize} 1fr;
18144
- column-gap: 8px;
18154
+ }
18155
+ :host(.indent-1[aria-haspopup='menu']) {
18156
+ grid-template-columns: ${iconSize} 1fr ${iconSize};
18145
18157
  }
18146
18158
  [part='start'] {
18147
18159
  display: contents;
@@ -18157,6 +18169,18 @@
18157
18169
  :host(.indent-1) .content {
18158
18170
  grid-column: 2;
18159
18171
  }
18172
+ .expand-collapse-glyph-container {
18173
+ grid-row: 1;
18174
+ fill: currentcolor;
18175
+ width: ${iconSize};
18176
+ height: ${iconSize};
18177
+ }
18178
+ :host(.indent-0) .expand-collapse-glyph-container {
18179
+ grid-column: 2;
18180
+ }
18181
+ :host(.indent-1) .expand-collapse-glyph-container {
18182
+ grid-column: 3;
18183
+ }
18160
18184
  `;
18161
18185
 
18162
18186
  /**
@@ -18177,7 +18201,8 @@
18177
18201
  baseName: 'menu-item',
18178
18202
  baseClass: MenuItem$1,
18179
18203
  template: menuItemTemplate,
18180
- styles: styles$d
18204
+ styles: styles$d,
18205
+ expandCollapseGlyph: arrowExpanderRight16X16.data
18181
18206
  });
18182
18207
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
18183
18208
 
@@ -19228,6 +19253,14 @@
19228
19253
  outline: none;
19229
19254
  }
19230
19255
 
19256
+ .control:disabled {
19257
+ ${
19258
+ /* There's an issue with the input element where the ellipsized
19259
+ overflowed text is blank when scrolled into view, so just clip instead.
19260
+ See https://webcompat.com/issues/104481 */ ''}
19261
+ text-overflow: clip;
19262
+ }
19263
+
19231
19264
  .control::selection {
19232
19265
  color: ${controlLabelFontColor};
19233
19266
  background: rgba(${fillSelectedRgbPartialColor}, 0.3);