@ni/nimble-components 33.11.0 → 33.12.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.
@@ -16000,6 +16000,7 @@
16000
16000
  dividerBackgroundColor: 'divider-background-color',
16001
16001
  headerBackgroundColor: 'header-background-color',
16002
16002
  sectionBackgroundColor: 'section-background-color',
16003
+ sectionBackgroundImage: 'section-background-image',
16003
16004
  buttonFillPrimaryColor: 'button-fill-primary-color',
16004
16005
  buttonPrimaryFontColor: 'button-primary-font-color',
16005
16006
  buttonFillAccentColor: 'button-fill-accent-color',
@@ -16032,6 +16033,7 @@
16032
16033
  largePadding: 'large-padding',
16033
16034
  labelHeight: 'label-height',
16034
16035
  borderWidth: 'border-width',
16036
+ dividerWidth: 'divider-width',
16035
16037
  iconSize: 'icon-size',
16036
16038
  groupHeaderTextTransform: 'group-header-text-transform',
16037
16039
  drawerWidth: 'drawer-width',
@@ -16250,7 +16252,12 @@
16250
16252
  const applicationBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.applicationBackgroundColor)).withDefault((element) => getColorForTheme(element, White, Black85, ForestGreen));
16251
16253
  DesignToken.create(styleNameFromTokenName(tokenNames.headerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black7, Black88, ForestGreen));
16252
16254
  DesignToken.create(styleNameFromTokenName(tokenNames.sectionBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
16253
- DesignToken.create(styleNameFromTokenName(tokenNames.dividerBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
16255
+ DesignToken.create(styleNameFromTokenName(tokenNames.sectionBackgroundImage)).withDefault((element) => {
16256
+ const start = getColorForTheme(element, Black15, Black82, ForestGreen);
16257
+ const end = getColorForTheme(element, hexToRgbaCssColor(Black15, 0), hexToRgbaCssColor(Black82, 0), hexToRgbaCssColor(ForestGreen, 0));
16258
+ return `linear-gradient(${start}, ${end})`;
16259
+ });
16260
+ DesignToken.create(styleNameFromTokenName(tokenNames.dividerBackgroundColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(Black91, 0.2), hexToRgbaCssColor(Black15, 0.2), hexToRgbaCssColor(White, 0.2)));
16254
16261
  const fillSelectedColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedColor)).withDefault((element) => hexToRgbaCssColor(getFillSelectedColorForTheme(element), 0.2));
16255
16262
  const fillSelectedRgbPartialColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillSelectedRgbPartialColor)).withDefault((element) => hexToRgbPartial(getFillSelectedColorForTheme(element)));
16256
16263
  const fillHoverSelectedColor = DesignToken.create(styleNameFromTokenName(tokenNames.fillHoverSelectedColor)).withDefault((element) => hexToRgbaCssColor(getFillSelectedColorForTheme(element), 0.15));
@@ -16313,6 +16320,7 @@
16313
16320
  const largePadding = DesignToken.create(styleNameFromTokenName(tokenNames.largePadding)).withDefault('24px');
16314
16321
  DesignToken.create(styleNameFromTokenName(tokenNames.labelHeight)).withDefault('16px');
16315
16322
  const borderWidth = DesignToken.create(styleNameFromTokenName(tokenNames.borderWidth)).withDefault('1px');
16323
+ DesignToken.create(styleNameFromTokenName(tokenNames.dividerWidth)).withDefault('2px');
16316
16324
  const iconSize = DesignToken.create(styleNameFromTokenName(tokenNames.iconSize)).withDefault('16px');
16317
16325
  const drawerWidth = DesignToken.create(styleNameFromTokenName(tokenNames.drawerWidth)).withDefault('784px');
16318
16326
  const dialogSmallWidth = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallWidth)).withDefault('400px');
@@ -74761,6 +74769,10 @@ focus outline in that case.
74761
74769
  }
74762
74770
 
74763
74771
  [part='end'] {
74772
+ display: none;
74773
+ }
74774
+
74775
+ [part='end'].end {
74764
74776
  margin-left: auto;
74765
74777
  display: flex;
74766
74778
  }