@ni/nimble-components 31.3.0 → 32.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.
@@ -16053,6 +16053,7 @@
16053
16053
  const ForestGreen = "#074023";
16054
16054
  const DigitalGreenLight = "#009b65";
16055
16055
  const DigitalGreenLight10 = "#e6f5f0";
16056
+ const DigitalGreenLight30 = "#b3e1d1";
16056
16057
  const NiSky = "#3cb4e7";
16057
16058
  const BannerFail100DarkUi = "#d63434";
16058
16059
  const Warning100LightUi = "#ff4b00";
@@ -16061,6 +16062,7 @@
16061
16062
  const DigitalGreenDark110 = "#00613f";
16062
16063
  const PowerGreen = "#32eb96";
16063
16064
  const PowerGreen10 = "#364941";
16065
+ const PowerGreen30 = "#356d54";
16064
16066
  const Black22 = "#e6e6e6";
16065
16067
  const Black82 = "#434445";
16066
16068
  const NiHoneyLight = "#ffe76b";
@@ -16216,6 +16218,7 @@
16216
16218
  spinnerSmallHeight: 'spinner-small-height',
16217
16219
  spinnerMediumHeight: 'spinner-medium-height',
16218
16220
  spinnerLargeHeight: 'spinner-large-height',
16221
+ tableFitRowsHeight: 'table-fit-rows-height',
16219
16222
  smallDelay: 'small-delay',
16220
16223
  mediumDelay: 'medium-delay',
16221
16224
  largeDelay: 'large-delay',
@@ -16678,7 +16681,7 @@
16678
16681
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventStaticFontColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110, White, White));
16679
16682
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventDynamicFontColor)).withDefault((element) => getColorForTheme(element, White, White, White));
16680
16683
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventTransientFontColor)).withDefault((element) => getColorForTheme(element, White, White, White));
16681
- DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverStaticColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(DigitalGreenLight, 0.3), hexToRgbaCssColor(PowerGreen, 0.3), hexToRgbaCssColor(PowerGreen, 0.3)));
16684
+ DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverStaticColor)).withDefault((element) => getColorForTheme(element, DigitalGreenLight30, PowerGreen30, PowerGreen30));
16682
16685
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverDynamicColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110, DigitalGreenDark105, DigitalGreenDark105));
16683
16686
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverTransientColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110, DigitalGreenDark105, DigitalGreenDark105));
16684
16687
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarRowBackgroundSelectedColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(DigitalGreenLight, 0.2), hexToRgbaCssColor(PowerGreen, 0.2), hexToRgbaCssColor(PowerGreen, 0.2)));
@@ -16708,6 +16711,9 @@
16708
16711
  const spinnerSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.spinnerSmallHeight)).withDefault('16px');
16709
16712
  DesignToken.create(styleNameFromTokenName(tokenNames.spinnerMediumHeight)).withDefault('32px');
16710
16713
  DesignToken.create(styleNameFromTokenName(tokenNames.spinnerLargeHeight)).withDefault('64px');
16714
+ // The token gets a default value of the table's default height (480px)
16715
+ // but is given a calculated value in the table styles.
16716
+ const tableFitRowsHeight = DesignToken.create(styleNameFromTokenName(tokenNames.tableFitRowsHeight)).withDefault('480px');
16711
16717
  // Drop Shadow Tokens
16712
16718
  DesignToken.create(styleNameFromTokenName(tokenNames.elevation1BoxShadow)).withDefault((element) => `0px 1px 4px ${hexToRgbaCssColor(getColorForTheme(element, Black, Black, Black), 0.16)}`);
16713
16719
  const elevation2BoxShadow = DesignToken.create(styleNameFromTokenName(tokenNames.elevation2BoxShadow)).withDefault((element) => `0px 2px 4px ${hexToRgbaCssColor(getColorForTheme(element, Black, Black, Black), 0.16)}`);
@@ -65615,6 +65621,15 @@ img.ProseMirror-separator {
65615
65621
 
65616
65622
  :host {
65617
65623
  height: 480px;
65624
+ ${tableFitRowsHeight.cssCustomProperty}: calc(var(--ni-private-table-scroll-height) + ${controlHeight});
65625
+ ${
65626
+ /**
65627
+ * Set a default maximum height for the table of 40.5 rows plus the header row so
65628
+ * that clients don't accidentally create a table that tries to render too many rows at once.
65629
+ * If needed, the max-height can be overridden by the client, but setting a default ensures
65630
+ * that the max-height is considered if a larger one is needed rather than being overlooked.
65631
+ */ ''}
65632
+ max-height: calc(${controlHeight} + (40.5 * (2 * ${borderWidth} + ${controlHeight})));
65618
65633
  --ni-private-column-divider-width: 2px;
65619
65634
  --ni-private-column-divider-padding: 3px;
65620
65635
  }
@@ -66941,11 +66956,11 @@ focus outline in that case.
66941
66956
  aria-multiselectable="${x => x.ariaMultiSelectable}"
66942
66957
  ${children$1({ property: 'childItems', filter: elements() })}
66943
66958
  >
66959
+ <style>:host{ --ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px; }</style>
66944
66960
  <div class="table-container ${x => (x.windowShiftKeyDown ? 'disable-select' : '')}"
66945
66961
  style="
66946
66962
  --ni-private-table-scroll-x: -${x => x.scrollX}px;
66947
66963
  --ni-private-table-header-container-margin-right: ${x => x.virtualizer.headerContainerMarginRight}px;
66948
- --ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px;
66949
66964
  --ni-private-table-row-container-top: ${x => x.virtualizer.rowContainerYOffset}px;
66950
66965
  --ni-private-table-row-grid-columns: ${x => (x.rowGridColumns ? x.rowGridColumns : '')};
66951
66966
  --ni-private-table-cursor-override: ${x => (x.layoutManager.isColumnBeingSized ? 'col-resize' : 'default')};