@ni/nimble-components 16.1.2 → 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.
- package/dist/all-components-bundle.js +39 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1169 -1145
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/cell/styles.js +6 -0
- package/dist/esm/table/components/cell/styles.js.map +1 -1
- package/dist/esm/table/components/header/styles.js +10 -0
- package/dist/esm/table/components/header/styles.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +11 -0
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +10 -1
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +10 -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 +3 -1
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +54 -0
- package/dist/tokens.scss +27 -0
- 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,7 +15706,8 @@
|
|
|
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}`;
|
|
@@ -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
|
|
@@ -25087,6 +25101,15 @@
|
|
|
25087
25101
|
|
|
25088
25102
|
const styles$b = css `
|
|
25089
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
|
+
}
|
|
25090
25113
|
`;
|
|
25091
25114
|
|
|
25092
25115
|
// prettier-ignore
|
|
@@ -25112,13 +25135,28 @@
|
|
|
25112
25135
|
const styles$a = css `
|
|
25113
25136
|
${display('flex')}
|
|
25114
25137
|
|
|
25138
|
+
:host {
|
|
25139
|
+
height: ${controlHeight};
|
|
25140
|
+
background: ${applicationBackgroundColor};
|
|
25141
|
+
border-top: calc(2 * ${borderWidth}) solid ${tableRowBorderColor};
|
|
25142
|
+
}
|
|
25143
|
+
|
|
25115
25144
|
.cell {
|
|
25116
25145
|
flex: 1;
|
|
25117
25146
|
}
|
|
25147
|
+
|
|
25148
|
+
:host(:hover) .cell {
|
|
25149
|
+
background: ${fillHoverColor};
|
|
25150
|
+
}
|
|
25118
25151
|
`;
|
|
25119
25152
|
|
|
25120
25153
|
const styles$9 = css `
|
|
25121
25154
|
${display('flex')}
|
|
25155
|
+
|
|
25156
|
+
:host {
|
|
25157
|
+
padding: 0px calc(${standardPadding} / 2);
|
|
25158
|
+
align-items: center;
|
|
25159
|
+
}
|
|
25122
25160
|
`;
|
|
25123
25161
|
|
|
25124
25162
|
// prettier-ignore
|