@ni/nimble-components 33.11.1 → 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.
- package/dist/all-components-bundle.js +9 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4505 -4503
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +2 -0
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.d.ts +1 -1
- package/dist/esm/theme-provider/design-token-names.js +4 -1
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +2 -0
- package/dist/esm/theme-provider/design-tokens.js +7 -1
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +12 -0
- package/dist/tokens.scss +6 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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');
|