@ni/nimble-components 16.1.1 → 16.1.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.
Files changed (30) hide show
  1. package/dist/all-components-bundle.js +153 -89
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +1178 -1143
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/table/components/cell/styles.js +6 -0
  6. package/dist/esm/table/components/cell/styles.js.map +1 -1
  7. package/dist/esm/table/components/header/index.d.ts +12 -0
  8. package/dist/esm/table/components/header/index.js +16 -0
  9. package/dist/esm/table/components/header/index.js.map +1 -0
  10. package/dist/esm/table/components/header/styles.d.ts +1 -0
  11. package/dist/esm/table/components/header/styles.js +16 -0
  12. package/dist/esm/table/components/header/styles.js.map +1 -0
  13. package/dist/esm/table/components/header/template.d.ts +2 -0
  14. package/dist/esm/table/components/header/template.js +8 -0
  15. package/dist/esm/table/components/header/template.js.map +1 -0
  16. package/dist/esm/table/components/row/styles.js +11 -0
  17. package/dist/esm/table/components/row/styles.js.map +1 -1
  18. package/dist/esm/table/styles.js +2 -2
  19. package/dist/esm/table/template.js +5 -2
  20. package/dist/esm/table/template.js.map +1 -1
  21. package/dist/esm/theme-provider/design-token-comments.js +10 -1
  22. package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
  23. package/dist/esm/theme-provider/design-token-names.js +10 -1
  24. package/dist/esm/theme-provider/design-token-names.js.map +1 -1
  25. package/dist/esm/theme-provider/design-tokens.d.ts +2 -0
  26. package/dist/esm/theme-provider/design-tokens.js +3 -1
  27. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  28. package/dist/tokens-internal.scss +54 -0
  29. package/dist/tokens.scss +27 -0
  30. package/package.json +1 -1
@@ -15442,6 +15442,8 @@
15442
15442
  const Headline1Weight = "400";
15443
15443
  const ErrorLightUiFamily = "Source Sans Pro";
15444
15444
  const ErrorLightUiWeight = "400";
15445
+ const GridHeaderFamily = "Source Sans Pro";
15446
+ const GridHeaderWeight = "600";
15445
15447
  const Title2Size = "22px";
15446
15448
  const ControlLabel1Size = "11px";
15447
15449
  const BodySize = "14px";
@@ -15458,6 +15460,7 @@
15458
15460
  const LinkLightUiSize = "14px";
15459
15461
  const Headline1Size = "25px";
15460
15462
  const ErrorLightUiSize = "11px";
15463
+ const GridHeaderSize = "12.800000190734863px";
15461
15464
  const BodyLineHeight = "18px";
15462
15465
  const ControlLabel1LineHeight = "16px";
15463
15466
  const GroupLabel1LineHeight = "16px";
@@ -15559,6 +15562,14 @@
15559
15562
  headlineFontWeight: 'headline-font-weight',
15560
15563
  headlineFontLineHeight: 'headline-font-line-height',
15561
15564
  headlineFallbackFontFamily: 'headline-fallback-font-family',
15565
+ tableHeaderFont: 'table-header-font',
15566
+ tableHeaderFontColor: 'table-header-font-color',
15567
+ tableHeaderDisabledFontColor: 'table-header-disabled-font-color',
15568
+ tableHeaderFontFamily: 'table-header-font-family',
15569
+ tableHeaderFontSize: 'table-header-font-size',
15570
+ tableHeaderFontWeight: 'table-header-font-weight',
15571
+ tableHeaderFontLineHeight: 'table-header-font-line-height',
15572
+ tableHeaderFallbackFontFamily: 'table-header-fallback-font-family',
15562
15573
  titlePlus2Font: 'title-plus-2-font',
15563
15574
  titlePlus2FontColor: 'title-plus-2-font-color',
15564
15575
  titlePlus2DisabledFontColor: 'title-plus-2-disabled-font-color',
@@ -15695,14 +15706,15 @@
15695
15706
  errorTextFontSize: 'error-text-font-size',
15696
15707
  errorTextFontWeight: 'error-text-font-weight',
15697
15708
  errorTextFontLineHeight: 'error-text-font-line-height',
15698
- errorTextFallbackFontFamily: 'error-text-fallback-font-family'
15709
+ errorTextFallbackFontFamily: 'error-text-fallback-font-family',
15710
+ tableRowBorderColor: 'table-row-border-color'
15699
15711
  };
15700
15712
  const prefix = 'ni-nimble';
15701
15713
  const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
15702
15714
 
15703
- const template$f = html `<slot></slot>`;
15715
+ const template$g = html `<slot></slot>`;
15704
15716
 
15705
- const styles$E = css `
15717
+ const styles$F = css `
15706
15718
  :host {
15707
15719
  display: contents;
15708
15720
  }
@@ -15758,8 +15770,8 @@
15758
15770
  ], ThemeProvider.prototype, "theme", void 0);
15759
15771
  const nimbleDesignSystemProvider = ThemeProvider.compose({
15760
15772
  baseName: 'theme-provider',
15761
- styles: styles$E,
15762
- template: template$f
15773
+ styles: styles$F,
15774
+ template: template$g
15763
15775
  });
15764
15776
  DesignSystem.getOrCreate()
15765
15777
  .withPrefix('nimble')
@@ -15789,6 +15801,7 @@
15789
15801
  const popupBoxShadowColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBoxShadowColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black75, Black85, Black85), 0.3));
15790
15802
  const popupBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBorderColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White), 0.3));
15791
15803
  DesignToken.create(styleNameFromTokenName(tokenNames.tooltipBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black85, ForestGreen));
15804
+ const tableRowBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.tableRowBorderColor)).withDefault((element) => getColorForTheme(element, Black15, Black88, ForestGreen));
15792
15805
  // Component Sizing Tokens
15793
15806
  const controlHeight = DesignToken.create(styleNameFromTokenName(tokenNames.controlHeight)).withDefault('32px');
15794
15807
  const smallPadding = DesignToken.create(styleNameFromTokenName(tokenNames.smallPadding)).withDefault('4px');
@@ -15817,6 +15830,7 @@
15817
15830
  const [buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor, buttonLabelFontFamily, buttonLabelFontWeight, buttonLabelFontSize, buttonLabelFontLineHeight, buttonLabelFallbackFontFamily] = createFontTokens(tokenNames.buttonLabelFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), ButtonLabel1Family, ButtonLabel1Weight, ButtonLabel1Size, ButtonLabel1LineHeight, 'sans-serif');
15818
15831
  const [tooltipCaptionFont, tooltipCaptionFontColor, tooltipCaptionDisabledFontColor, tooltipCaptionFontFamily, tooltipCaptionFontWeight, tooltipCaptionFontSize, tooltipCaptionFontLineHeight, tooltipCaptionFallbackFontFamily] = createFontTokens(tokenNames.tooltipCaptionFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), TooltipCaptionFamily, TooltipCaptionWeight, TooltipCaptionSize, TooltipCaptionLineHeight, 'sans-serif');
15819
15832
  const [errorTextFont, errorTextFontColor, errorTextDisabledFontColor, errorTextFontFamily, errorTextFontWeight, errorTextFontSize, errorTextFontLineHeight, errorTextFallbackFontFamily] = createFontTokens(tokenNames.errorTextFont, (element) => getFailColorForTheme(element), (element) => hexToRgbaCssColor(getFailColorForTheme(element), 0.3), ErrorLightUiFamily, ErrorLightUiWeight, ErrorLightUiSize, TooltipCaptionLineHeight, 'sans-serif');
15833
+ const [tableHeaderFont, tableHeaderFontColor, tableHeaderDisabledFontColor, tableHeaderFontFamily, tableHeaderFontWeight, tableHeaderFontSize, tableHeaderFontLineHeight, tableHeaderFallbackFontFamily] = createFontTokens(tokenNames.tableHeaderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), GridHeaderFamily, GridHeaderWeight, GridHeaderSize, TooltipCaptionLineHeight, 'sans-serif');
15820
15834
  // Font Transform Tokens
15821
15835
  const groupHeaderTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.groupHeaderTextTransform)).withDefault('uppercase');
15822
15836
  // Animation Tokens
@@ -15913,7 +15927,7 @@
15913
15927
  }
15914
15928
  }
15915
15929
 
15916
- const styles$D = css `
15930
+ const styles$E = css `
15917
15931
  ${display('inline')}
15918
15932
 
15919
15933
  :host {
@@ -15996,7 +16010,7 @@
15996
16010
  `;
15997
16011
 
15998
16012
  // prettier-ignore
15999
- const template$e = (context, definition) => html `
16013
+ const template$f = (context, definition) => html `
16000
16014
  <a
16001
16015
  class="control"
16002
16016
  part="control"
@@ -16069,8 +16083,8 @@
16069
16083
  const nimbleAnchor = Anchor.compose({
16070
16084
  baseName: 'anchor',
16071
16085
  baseClass: Anchor$1,
16072
- template: template$e,
16073
- styles: styles$D,
16086
+ template: template$f,
16087
+ styles: styles$E,
16074
16088
  shadowOptions: {
16075
16089
  delegatesFocus: true
16076
16090
  }
@@ -16155,7 +16169,7 @@
16155
16169
  return new MultivaluePropertyStyleSheetBehavior('appearance', value, styles);
16156
16170
  }
16157
16171
 
16158
- const styles$C = css `
16172
+ const styles$D = css `
16159
16173
  ${display('inline-flex')}
16160
16174
 
16161
16175
  :host {
@@ -16436,8 +16450,8 @@
16436
16450
  }
16437
16451
  `));
16438
16452
 
16439
- const styles$B = css `
16440
- ${styles$C}
16453
+ const styles$C = css `
16454
+ ${styles$D}
16441
16455
  ${buttonAppearanceVariantStyles}
16442
16456
 
16443
16457
  .control {
@@ -16445,7 +16459,7 @@
16445
16459
  }
16446
16460
  `;
16447
16461
 
16448
- const template$d = (context, definition) => html `
16462
+ const template$e = (context, definition) => html `
16449
16463
  <a
16450
16464
  class="control"
16451
16465
  part="control"
@@ -16527,15 +16541,15 @@
16527
16541
  ], AnchorButton.prototype, "disabled", void 0);
16528
16542
  const nimbleAnchorButton = AnchorButton.compose({
16529
16543
  baseName: 'anchor-button',
16530
- template: template$d,
16531
- styles: styles$B,
16544
+ template: template$e,
16545
+ styles: styles$C,
16532
16546
  shadowOptions: {
16533
16547
  delegatesFocus: true
16534
16548
  }
16535
16549
  });
16536
16550
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
16537
16551
 
16538
- const styles$A = css `
16552
+ const styles$B = css `
16539
16553
  :host {
16540
16554
  contain: layout;
16541
16555
  display: block;
@@ -16559,13 +16573,13 @@
16559
16573
  baseName: 'anchored-region',
16560
16574
  baseClass: AnchoredRegion$1,
16561
16575
  template: anchoredRegionTemplate,
16562
- styles: styles$A
16576
+ styles: styles$B
16563
16577
  });
16564
16578
  DesignSystem.getOrCreate()
16565
16579
  .withPrefix('nimble')
16566
16580
  .register(nimbleAnchoredRegion());
16567
16581
 
16568
- const styles$z = css `
16582
+ const styles$A = css `
16569
16583
  ${display('inline-block')}
16570
16584
 
16571
16585
  :host {
@@ -16606,7 +16620,7 @@
16606
16620
  baseName: 'breadcrumb',
16607
16621
  baseClass: Breadcrumb$1,
16608
16622
  template: breadcrumbTemplate,
16609
- styles: styles$z
16623
+ styles: styles$A
16610
16624
  });
16611
16625
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
16612
16626
 
@@ -17212,7 +17226,7 @@
17212
17226
  data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8.033 14.026L4.9 10.866 6.277 9.53l1.744 1.81 4.562-4.507 1.307 1.363zm1.155-10.68l-1.321-1.32-2.312 2.311-2.311-2.311-1.321 1.32 2.311 2.312L1.923 7.97l1.32 1.32 2.312-2.31 2.312 2.31 1.32-1.32-2.31-2.312z"/></svg>`
17213
17227
  };
17214
17228
 
17215
- const styles$y = css `
17229
+ const styles$z = css `
17216
17230
  ${display('inline-flex')}
17217
17231
 
17218
17232
  :host {
@@ -17291,15 +17305,15 @@
17291
17305
  baseName: 'breadcrumb-item',
17292
17306
  baseClass: BreadcrumbItem$1,
17293
17307
  template: breadcrumbItemTemplate,
17294
- styles: styles$y,
17308
+ styles: styles$z,
17295
17309
  separator: forwardSlash16X16.data
17296
17310
  });
17297
17311
  DesignSystem.getOrCreate()
17298
17312
  .withPrefix('nimble')
17299
17313
  .register(nimbleBreadcrumbItem());
17300
17314
 
17301
- const styles$x = css `
17302
- ${styles$C}
17315
+ const styles$y = css `
17316
+ ${styles$D}
17303
17317
  ${buttonAppearanceVariantStyles}
17304
17318
  `;
17305
17319
 
@@ -17345,7 +17359,7 @@
17345
17359
  baseName: 'button',
17346
17360
  baseClass: Button$1,
17347
17361
  template: buttonTemplate,
17348
- styles: styles$x,
17362
+ styles: styles$y,
17349
17363
  shadowOptions: {
17350
17364
  delegatesFocus: true
17351
17365
  }
@@ -17425,7 +17439,7 @@
17425
17439
  */
17426
17440
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
17427
17441
 
17428
- const styles$w = css `
17442
+ const styles$x = css `
17429
17443
  ${display('inline-flex')}
17430
17444
 
17431
17445
  :host {
@@ -17584,14 +17598,14 @@
17584
17598
  const nimbleCardButton = CardButton.compose({
17585
17599
  baseName: 'card-button',
17586
17600
  template: buttonTemplate,
17587
- styles: styles$w,
17601
+ styles: styles$x,
17588
17602
  shadowOptions: {
17589
17603
  delegatesFocus: true
17590
17604
  }
17591
17605
  });
17592
17606
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
17593
17607
 
17594
- const styles$v = css `
17608
+ const styles$w = css `
17595
17609
  ${display('inline-flex')}
17596
17610
 
17597
17611
  :host {
@@ -17709,14 +17723,14 @@
17709
17723
  baseName: 'checkbox',
17710
17724
  baseClass: Checkbox$1,
17711
17725
  template: checkboxTemplate,
17712
- styles: styles$v,
17726
+ styles: styles$w,
17713
17727
  checkedIndicator: check16X16.data,
17714
17728
  indeterminateIndicator: minus16X16.data
17715
17729
  });
17716
17730
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
17717
17731
 
17718
- const styles$u = css `
17719
- ${styles$C}
17732
+ const styles$v = css `
17733
+ ${styles$D}
17720
17734
 
17721
17735
  .control[aria-pressed='true'] {
17722
17736
  background-color: ${fillSelectedColor};
@@ -17742,7 +17756,7 @@
17742
17756
  }
17743
17757
  `;
17744
17758
 
17745
- const template$c = (context, definition) => html `
17759
+ const template$d = (context, definition) => html `
17746
17760
  <div
17747
17761
  role="button"
17748
17762
  part="control"
@@ -17817,8 +17831,8 @@
17817
17831
  applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
17818
17832
  const nimbleToggleButton = ToggleButton.compose({
17819
17833
  baseName: 'toggle-button',
17820
- template: template$c,
17821
- styles: styles$u,
17834
+ template: template$d,
17835
+ styles: styles$v,
17822
17836
  shadowOptions: {
17823
17837
  delegatesFocus: true
17824
17838
  }
@@ -17831,13 +17845,13 @@
17831
17845
  </div>
17832
17846
  `;
17833
17847
 
17834
- const template$b = html `
17848
+ const template$c = html `
17835
17849
  <template>
17836
17850
  <div class="icon" :innerHTML=${x => x.icon.data}></div>
17837
17851
  </template
17838
17852
  `;
17839
17853
 
17840
- const styles$t = css `
17854
+ const styles$u = css `
17841
17855
  ${display('inline-flex')}
17842
17856
 
17843
17857
  :host {
@@ -17890,8 +17904,8 @@
17890
17904
  const registerIcon = (baseName, iconClass) => {
17891
17905
  const composedIcon = iconClass.compose({
17892
17906
  baseName,
17893
- template: template$b,
17894
- styles: styles$t,
17907
+ template: template$c,
17908
+ styles: styles$u,
17895
17909
  baseClass: iconClass
17896
17910
  });
17897
17911
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -17925,7 +17939,7 @@
17925
17939
  block: 'block'
17926
17940
  };
17927
17941
 
17928
- const styles$s = css `
17942
+ const styles$t = css `
17929
17943
  ${display('inline-flex')}
17930
17944
 
17931
17945
  :host {
@@ -18153,7 +18167,7 @@
18153
18167
  }
18154
18168
  `));
18155
18169
 
18156
- const styles$r = css `
18170
+ const styles$s = css `
18157
18171
  .error-icon {
18158
18172
  display: none;
18159
18173
  }
@@ -18191,9 +18205,9 @@
18191
18205
  }
18192
18206
  `;
18193
18207
 
18194
- const styles$q = css `
18208
+ const styles$r = css `
18209
+ ${styles$t}
18195
18210
  ${styles$s}
18196
- ${styles$r}
18197
18211
 
18198
18212
  :host {
18199
18213
  --ni-private-hover-bottom-border-width: 2px;
@@ -18429,7 +18443,7 @@
18429
18443
  baseName: 'combobox',
18430
18444
  baseClass: Combobox$1,
18431
18445
  template: comboboxTemplate,
18432
- styles: styles$q,
18446
+ styles: styles$r,
18433
18447
  shadowOptions: {
18434
18448
  delegatesFocus: true
18435
18449
  },
@@ -18473,7 +18487,7 @@
18473
18487
  */
18474
18488
  const UserDismissed = Symbol('user dismissed');
18475
18489
 
18476
- const styles$p = css `
18490
+ const styles$q = css `
18477
18491
  ${display('grid')}
18478
18492
 
18479
18493
  dialog {
@@ -18589,7 +18603,7 @@
18589
18603
  }
18590
18604
  `));
18591
18605
 
18592
- const template$a = html `
18606
+ const template$b = html `
18593
18607
  <template>
18594
18608
  <dialog
18595
18609
  ${ref('dialogElement')}
@@ -18715,13 +18729,13 @@
18715
18729
  applyMixins(Dialog, ARIAGlobalStatesAndProperties);
18716
18730
  const nimbleDialog = Dialog.compose({
18717
18731
  baseName: 'dialog',
18718
- template: template$a,
18719
- styles: styles$p,
18732
+ template: template$b,
18733
+ styles: styles$q,
18720
18734
  baseClass: Dialog
18721
18735
  });
18722
18736
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
18723
18737
 
18724
- const styles$o = css `
18738
+ const styles$p = css `
18725
18739
  ${display('block')}
18726
18740
 
18727
18741
  :host {
@@ -18876,7 +18890,7 @@
18876
18890
  }
18877
18891
  `));
18878
18892
 
18879
- const template$9 = html `
18893
+ const template$a = html `
18880
18894
  <dialog
18881
18895
  ${ref('dialog')}
18882
18896
  aria-label="${x => x.ariaLabel}"
@@ -18990,8 +19004,8 @@
18990
19004
  applyMixins(Drawer, ARIAGlobalStatesAndProperties);
18991
19005
  const nimbleDrawer = Drawer.compose({
18992
19006
  baseName: 'drawer',
18993
- template: template$9,
18994
- styles: styles$o
19007
+ template: template$a,
19008
+ styles: styles$p
18995
19009
  });
18996
19010
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
18997
19011
 
@@ -20623,7 +20637,7 @@
20623
20637
  }
20624
20638
  registerIcon('icon-xmark-check', IconXmarkCheck);
20625
20639
 
20626
- const styles$n = css `
20640
+ const styles$o = css `
20627
20641
  ${display('flex')}
20628
20642
 
20629
20643
  :host {
@@ -20703,11 +20717,11 @@
20703
20717
  baseName: 'list-option',
20704
20718
  baseClass: ListboxOption,
20705
20719
  template: listboxOptionTemplate,
20706
- styles: styles$n
20720
+ styles: styles$o
20707
20721
  });
20708
20722
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
20709
20723
 
20710
- const styles$m = css `
20724
+ const styles$n = css `
20711
20725
  ${display('grid')}
20712
20726
 
20713
20727
  :host {
@@ -20762,11 +20776,11 @@
20762
20776
  baseName: 'menu',
20763
20777
  baseClass: Menu$1,
20764
20778
  template: menuTemplate,
20765
- styles: styles$m
20779
+ styles: styles$n
20766
20780
  });
20767
20781
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
20768
20782
 
20769
- const styles$l = css `
20783
+ const styles$m = css `
20770
20784
  ${display('inline-block')}
20771
20785
 
20772
20786
  :host {
@@ -20785,7 +20799,7 @@
20785
20799
  `;
20786
20800
 
20787
20801
  // prettier-ignore
20788
- const template$8 = html `
20802
+ const template$9 = html `
20789
20803
  <template
20790
20804
  ?open="${x => x.open}"
20791
20805
  @focusout="${(x, c) => x.focusoutHandler(c.event)}"
@@ -20993,15 +21007,15 @@
20993
21007
  ], MenuButton.prototype, "slottedMenus", void 0);
20994
21008
  const nimbleMenuButton = MenuButton.compose({
20995
21009
  baseName: 'menu-button',
20996
- template: template$8,
20997
- styles: styles$l,
21010
+ template: template$9,
21011
+ styles: styles$m,
20998
21012
  shadowOptions: {
20999
21013
  delegatesFocus: true
21000
21014
  }
21001
21015
  });
21002
21016
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
21003
21017
 
21004
- const styles$k = css `
21018
+ const styles$l = css `
21005
21019
  ${display('grid')}
21006
21020
 
21007
21021
  :host {
@@ -21099,7 +21113,7 @@
21099
21113
  baseName: 'menu-item',
21100
21114
  baseClass: MenuItem$1,
21101
21115
  template: menuItemTemplate,
21102
- styles: styles$k,
21116
+ styles: styles$l,
21103
21117
  expandCollapseGlyph: arrowExpanderRight16X16.data
21104
21118
  });
21105
21119
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -21113,9 +21127,9 @@
21113
21127
  block: 'block'
21114
21128
  };
21115
21129
 
21116
- const styles$j = css `
21130
+ const styles$k = css `
21117
21131
  ${display('inline-block')}
21118
- ${styles$r}
21132
+ ${styles$s}
21119
21133
 
21120
21134
  :host {
21121
21135
  font: ${bodyFont};
@@ -21329,7 +21343,7 @@
21329
21343
  baseName: 'number-field',
21330
21344
  baseClass: NumberField$1,
21331
21345
  template: numberFieldTemplate,
21332
- styles: styles$j,
21346
+ styles: styles$k,
21333
21347
  shadowOptions: {
21334
21348
  delegatesFocus: true
21335
21349
  },
@@ -21370,7 +21384,7 @@
21370
21384
  });
21371
21385
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
21372
21386
 
21373
- const styles$i = css `
21387
+ const styles$j = css `
21374
21388
  ${display('inline-flex')}
21375
21389
 
21376
21390
  :host {
@@ -21470,12 +21484,12 @@
21470
21484
  baseName: 'radio',
21471
21485
  baseClass: Radio$1,
21472
21486
  template: radioTemplate,
21473
- styles: styles$i,
21487
+ styles: styles$j,
21474
21488
  checkedIndicator: circleFilled16X16.data
21475
21489
  });
21476
21490
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
21477
21491
 
21478
- const styles$h = css `
21492
+ const styles$i = css `
21479
21493
  ${display('inline-block')}
21480
21494
 
21481
21495
  .positioning-region {
@@ -21510,16 +21524,16 @@
21510
21524
  baseName: 'radio-group',
21511
21525
  baseClass: RadioGroup$1,
21512
21526
  template: radioGroupTemplate,
21513
- styles: styles$h,
21527
+ styles: styles$i,
21514
21528
  shadowOptions: {
21515
21529
  delegatesFocus: true
21516
21530
  }
21517
21531
  });
21518
21532
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadioGroup());
21519
21533
 
21520
- const styles$g = css `
21534
+ const styles$h = css `
21535
+ ${styles$t}
21521
21536
  ${styles$s}
21522
- ${styles$r}
21523
21537
 
21524
21538
  ${
21525
21539
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -21595,7 +21609,7 @@
21595
21609
  baseName: 'select',
21596
21610
  baseClass: Select$1,
21597
21611
  template: selectTemplate,
21598
- styles: styles$g,
21612
+ styles: styles$h,
21599
21613
  indicator: arrowExpanderDown16X16.data,
21600
21614
  end: html `
21601
21615
  <${DesignSystem.tagFor(IconExclamationMark)}
@@ -21607,7 +21621,7 @@
21607
21621
  });
21608
21622
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
21609
21623
 
21610
- const styles$f = css `
21624
+ const styles$g = css `
21611
21625
  ${display('inline-flex')}
21612
21626
 
21613
21627
  :host {
@@ -21751,7 +21765,7 @@
21751
21765
  }
21752
21766
  `));
21753
21767
 
21754
- const template$7 = html `
21768
+ const template$8 = html `
21755
21769
  <template role="progressbar">
21756
21770
  <div class="container">
21757
21771
  <div class="bit1"></div>
@@ -21768,12 +21782,12 @@
21768
21782
  }
21769
21783
  const nimbleSpinner = Spinner.compose({
21770
21784
  baseName: 'spinner',
21771
- template: template$7,
21772
- styles: styles$f
21785
+ template: template$8,
21786
+ styles: styles$g
21773
21787
  });
21774
21788
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
21775
21789
 
21776
- const styles$e = css `
21790
+ const styles$f = css `
21777
21791
  ${display('inline-flex')}
21778
21792
 
21779
21793
  :host {
@@ -21936,7 +21950,7 @@
21936
21950
  `));
21937
21951
 
21938
21952
  // prettier-ignore
21939
- const template$6 = html `
21953
+ const template$7 = html `
21940
21954
  <template
21941
21955
  role="switch"
21942
21956
  aria-checked="${x => x.checked}"
@@ -21980,12 +21994,12 @@
21980
21994
  const nimbleSwitch = Switch.compose({
21981
21995
  baseClass: Switch$1,
21982
21996
  baseName: 'switch',
21983
- template: template$6,
21984
- styles: styles$e
21997
+ template: template$7,
21998
+ styles: styles$f
21985
21999
  });
21986
22000
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
21987
22001
 
21988
- const styles$d = css `
22002
+ const styles$e = css `
21989
22003
  ${display('inline-flex')}
21990
22004
 
21991
22005
  :host {
@@ -22089,11 +22103,11 @@
22089
22103
  baseName: 'tab',
22090
22104
  baseClass: Tab$1,
22091
22105
  template: tabTemplate,
22092
- styles: styles$d
22106
+ styles: styles$e
22093
22107
  });
22094
22108
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
22095
22109
 
22096
- const styles$c = css `
22110
+ const styles$d = css `
22097
22111
  ${display('block')}
22098
22112
 
22099
22113
  :host {
@@ -22113,7 +22127,7 @@
22113
22127
  baseName: 'tab-panel',
22114
22128
  baseClass: TabPanel$1,
22115
22129
  template: tabPanelTemplate,
22116
- styles: styles$c
22130
+ styles: styles$d
22117
22131
  });
22118
22132
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
22119
22133
 
@@ -25065,7 +25079,7 @@
25065
25079
  });
25066
25080
  }
25067
25081
 
25068
- const styles$b = css `
25082
+ const styles$c = css `
25069
25083
  ${display('flex')}
25070
25084
 
25071
25085
  .table-container {
@@ -25075,26 +25089,74 @@
25075
25089
  color: ${bodyFontColor};
25076
25090
  }
25077
25091
 
25078
- .table-header {
25092
+ .header-row {
25079
25093
  display: flex;
25080
25094
  flex-direction: row;
25081
25095
  }
25082
25096
 
25083
- .table-cell {
25097
+ .header {
25084
25098
  flex: 1;
25085
25099
  }
25086
25100
  `;
25087
25101
 
25102
+ const styles$b = css `
25103
+ ${display('flex')}
25104
+
25105
+ :host {
25106
+ height: ${controlHeight};
25107
+ align-items: center;
25108
+ background: ${applicationBackgroundColor};
25109
+ padding: 0px calc(${standardPadding} / 2);
25110
+ font: ${tableHeaderFont};
25111
+ color: ${tableHeaderFontColor};
25112
+ }
25113
+ `;
25114
+
25115
+ // prettier-ignore
25116
+ const template$6 = html `
25117
+ <template role="columnheader">
25118
+ <slot></slot>
25119
+ </template>
25120
+ `;
25121
+
25122
+ /**
25123
+ * A styled header that is used within the nimble-table.
25124
+ * @internal
25125
+ */
25126
+ class TableHeader extends FoundationElement {
25127
+ }
25128
+ const nimbleTableHeader = TableHeader.compose({
25129
+ baseName: 'table-header',
25130
+ template: template$6,
25131
+ styles: styles$b
25132
+ });
25133
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
25134
+
25088
25135
  const styles$a = css `
25089
25136
  ${display('flex')}
25090
25137
 
25138
+ :host {
25139
+ height: ${controlHeight};
25140
+ background: ${applicationBackgroundColor};
25141
+ border-top: calc(2 * ${borderWidth}) solid ${tableRowBorderColor};
25142
+ }
25143
+
25091
25144
  .cell {
25092
25145
  flex: 1;
25093
25146
  }
25147
+
25148
+ :host(:hover) .cell {
25149
+ background: ${fillHoverColor};
25150
+ }
25094
25151
  `;
25095
25152
 
25096
25153
  const styles$9 = css `
25097
25154
  ${display('flex')}
25155
+
25156
+ :host {
25157
+ padding: 0px calc(${standardPadding} / 2);
25158
+ align-items: center;
25159
+ }
25098
25160
  `;
25099
25161
 
25100
25162
  // prettier-ignore
@@ -25166,9 +25228,11 @@
25166
25228
  <template role="table">
25167
25229
  <div class="table-container">
25168
25230
  <div role="rowgroup">
25169
- <div class="table-header" role="row">
25231
+ <div class="header-row" role="row">
25170
25232
  ${repeat(x => x.columnHeaders, html `
25171
- <span class="table-cell" role="columnheader">${x => x}</span>
25233
+ <${DesignSystem.tagFor(TableHeader)} class="header">
25234
+ ${x => x}
25235
+ </${DesignSystem.tagFor(TableHeader)}>
25172
25236
  `)}
25173
25237
  </div>
25174
25238
  </div>
@@ -25269,7 +25333,7 @@
25269
25333
  const nimbleTable = Table.compose({
25270
25334
  baseName: 'table',
25271
25335
  template: template$3,
25272
- styles: styles$b
25336
+ styles: styles$c
25273
25337
  });
25274
25338
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
25275
25339
 
@@ -25513,7 +25577,7 @@
25513
25577
 
25514
25578
  const styles$5 = css `
25515
25579
  ${display('inline-block')}
25516
- ${styles$r}
25580
+ ${styles$s}
25517
25581
 
25518
25582
  :host {
25519
25583
  font: ${bodyFont};