@ni/nimble-components 18.12.3 → 18.12.4
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 +72 -57
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1730 -1715
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/group-row/styles.js +29 -7
- package/dist/esm/table/components/group-row/styles.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +45 -4
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/styles.js +7 -47
- package/dist/esm/table/styles.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { White } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
|
|
4
|
+
import { applicationBackgroundColor, borderWidth, controlHeight, controlSlimHeight, fillHoverColor, mediumDelay, smallPadding, standardPadding } from '../../../theme-provider/design-tokens';
|
|
5
|
+
import { Theme } from '../../../theme-provider/types';
|
|
6
|
+
import { hexToRgbaCssColor } from '../../../utilities/style/colors';
|
|
7
|
+
import { themeBehavior } from '../../../utilities/style/theme';
|
|
4
8
|
export const styles = css `
|
|
5
9
|
${display('flex')}
|
|
6
10
|
|
|
7
11
|
:host {
|
|
8
12
|
align-items: center;
|
|
9
13
|
height: calc(${controlHeight} + 2 * ${borderWidth});
|
|
10
|
-
border-top: calc(2 * ${borderWidth}) solid ${
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:host(:hover) {
|
|
14
|
-
background: ${fillHoverColor};
|
|
14
|
+
border-top: calc(2 * ${borderWidth}) solid ${applicationBackgroundColor};
|
|
15
|
+
box-sizing: border-box;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
:host([expanded]) .animating,
|
|
@@ -19,6 +20,19 @@ export const styles = css `
|
|
|
19
20
|
transition: ${mediumDelay} ease-in-out;
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
:host::before {
|
|
24
|
+
content: '';
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: ${controlHeight};
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
bottom: 0px;
|
|
29
|
+
position: absolute;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host(:hover)::before {
|
|
33
|
+
background-color: ${fillHoverColor};
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
.expand-collapse-button {
|
|
23
37
|
margin-left: calc(
|
|
24
38
|
${smallPadding} * 2 + ${standardPadding} * 2 *
|
|
@@ -72,5 +86,13 @@ export const styles = css `
|
|
|
72
86
|
.selection-checkbox::part(label) {
|
|
73
87
|
padding-left: 0px;
|
|
74
88
|
}
|
|
75
|
-
|
|
89
|
+
`.withBehaviors(themeBehavior(Theme.color, css `
|
|
90
|
+
:host(:hover)::before {
|
|
91
|
+
background-color: ${hexToRgbaCssColor(White, 0.05)};
|
|
92
|
+
}
|
|
93
|
+
`), themeBehavior(Theme.dark, css `
|
|
94
|
+
:host(:hover)::before {
|
|
95
|
+
background-color: ${hexToRgbaCssColor(White, 0.1)};
|
|
96
|
+
}
|
|
97
|
+
`));
|
|
76
98
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/group-row/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,eAAe,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/group-row/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,eAAe,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;uBAIE,aAAa,UAAU,WAAW;+BAC1B,WAAW,WAAW,0BAA0B;;;;;;sBAMzD,WAAW;;;;;;kBAMf,aAAa;;;;;;;4BAOH,cAAc;;;;;cAK5B,YAAY,UAAU,eAAe;;;iBAGlC,iBAAiB;kBAChB,iBAAiB;;;;;;;;;;;;;;;;;6BAiBN,eAAe;;;;;;;;;;;;;;;;;;;;;;;;uBAwBrB,eAAe;;;;;;CAMrC,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;oCAEyB,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC;;SAEzD,CACJ,EACD,aAAa,CACT,KAAK,CAAC,IAAI,EACV,GAAG,CAAA;;oCAEyB,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC;;SAExD,CACJ,CACJ,CAAC"}
|
|
@@ -1,14 +1,43 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import {
|
|
3
|
+
import { White } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
|
|
4
|
+
import { applicationBackgroundColor, borderWidth, controlHeight, fillHoverColor, fillHoverSelectedColor, fillSelectedColor, standardPadding } from '../../../theme-provider/design-tokens';
|
|
5
|
+
import { Theme } from '../../../theme-provider/types';
|
|
6
|
+
import { hexToRgbaCssColor } from '../../../utilities/style/colors';
|
|
7
|
+
import { themeBehavior } from '../../../utilities/style/theme';
|
|
4
8
|
export const styles = css `
|
|
5
9
|
${display('flex')}
|
|
6
10
|
|
|
7
11
|
:host {
|
|
8
|
-
height: calc(${controlHeight} + 2 * ${borderWidth});
|
|
9
|
-
border-top: calc(2 * ${borderWidth}) solid ${tableRowBorderColor};
|
|
10
12
|
width: fit-content;
|
|
11
13
|
min-width: 100%;
|
|
14
|
+
background-color: ${applicationBackgroundColor};
|
|
15
|
+
height: calc(${controlHeight} + 2 * ${borderWidth});
|
|
16
|
+
border-top: calc(2 * ${borderWidth}) solid transparent;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
background-clip: padding-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host::before {
|
|
22
|
+
content: '';
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: ${controlHeight};
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
bottom: 0px;
|
|
28
|
+
position: absolute;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([selectable]:not([selected]):hover)::before {
|
|
32
|
+
background-color: ${fillHoverColor};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([selected])::before {
|
|
36
|
+
background-color: ${fillSelectedColor};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([selected]:hover)::before {
|
|
40
|
+
background-color: ${fillHoverSelectedColor};
|
|
12
41
|
}
|
|
13
42
|
|
|
14
43
|
.checkbox-container {
|
|
@@ -46,5 +75,17 @@ export const styles = css `
|
|
|
46
75
|
:host([selected]) nimble-table-cell {
|
|
47
76
|
--ni-private-table-cell-action-menu-display: block;
|
|
48
77
|
}
|
|
49
|
-
|
|
78
|
+
`.withBehaviors(themeBehavior(Theme.color, css `
|
|
79
|
+
:host([selectable]:not([selected]):hover)::before {
|
|
80
|
+
background-color: ${hexToRgbaCssColor(White, 0.05)};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([selected])::before {
|
|
84
|
+
background-color: ${hexToRgbaCssColor(White, 0.25)};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([selected]:hover)::before {
|
|
88
|
+
background-color: ${hexToRgbaCssColor(White, 0.2)};
|
|
89
|
+
}
|
|
90
|
+
`));
|
|
50
91
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/row/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACH,WAAW,EACX,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/table/components/row/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;;4BAKO,0BAA0B;uBAC/B,aAAa,UAAU,WAAW;+BAC1B,WAAW;;;;;;;;kBAQxB,aAAa;;;;;;;;4BAQH,cAAc;;;;4BAId,iBAAiB;;;;4BAIjB,sBAAsB;;;;;;;;uBAQ3B,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrC,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;oCAEyB,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC;;;;oCAI9B,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC;;;;oCAI9B,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC;;SAExD,CACJ,CACJ,CAAC"}
|
package/dist/esm/table/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
3
|
import { White } from '@ni/nimble-tokens/dist/styledictionary/js/tokens';
|
|
4
|
-
import { applicationBackgroundColor, bodyFont, bodyFontColor,
|
|
4
|
+
import { applicationBackgroundColor, bodyFont, bodyFontColor, standardPadding, tableRowBorderColor } from '../theme-provider/design-tokens';
|
|
5
5
|
import { Theme } from '../theme-provider/types';
|
|
6
6
|
import { hexToRgbaCssColor } from '../utilities/style/colors';
|
|
7
7
|
import { themeBehavior } from '../utilities/style/theme';
|
|
@@ -40,6 +40,7 @@ export const styles = css `
|
|
|
40
40
|
width: 100%;
|
|
41
41
|
position: relative;
|
|
42
42
|
top: var(--ni-private-table-row-container-top);
|
|
43
|
+
background-color: ${tableRowBorderColor};
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
.header-container {
|
|
@@ -82,61 +83,20 @@ export const styles = css `
|
|
|
82
83
|
padding-left: 0px;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
.row {
|
|
86
|
-
background: ${applicationBackgroundColor};
|
|
86
|
+
.group-row {
|
|
87
87
|
position: relative;
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.row::before {
|
|
92
|
-
content: '';
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: 100%;
|
|
95
|
-
position: absolute;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host([selection-mode='single']) .row:hover::before,
|
|
100
|
-
:host([selection-mode='multiple']) .row:hover::before {
|
|
101
|
-
background: ${fillHoverColor};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host([selection-mode='single']) .row[selected]::before,
|
|
105
|
-
:host([selection-mode='multiple']) .row[selected]::before {
|
|
106
|
-
background: ${fillSelectedColor};
|
|
107
88
|
}
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
background: ${fillHoverSelectedColor};
|
|
90
|
+
.row {
|
|
91
|
+
position: relative;
|
|
112
92
|
}
|
|
113
93
|
`.withBehaviors(themeBehavior(Theme.color, css `
|
|
114
|
-
.
|
|
94
|
+
.table-row-container::before {
|
|
115
95
|
content: '';
|
|
116
96
|
width: 100%;
|
|
117
97
|
height: 100%;
|
|
98
|
+
background-color: ${hexToRgbaCssColor(White, 0.1)};
|
|
118
99
|
position: absolute;
|
|
119
|
-
background: ${fillHoverColor};
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.row::before {
|
|
124
|
-
background: ${fillHoverColor};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
:host([selection-mode='single']) .row:hover::before,
|
|
128
|
-
:host([selection-mode='multiple']) .row:hover::before {
|
|
129
|
-
background: ${hexToRgbaCssColor(White, 0.15)};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
:host([selection-mode='single']) .row[selected]::before,
|
|
133
|
-
:host([selection-mode='multiple']) .row[selected]::before {
|
|
134
|
-
background: ${hexToRgbaCssColor(White, 0.25)};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:host([selection-mode='single']) .row[selected]:hover::before,
|
|
138
|
-
:host([selection-mode='multiple']) .row[selected]:hover::before {
|
|
139
|
-
background: ${hexToRgbaCssColor(White, 0.2)};
|
|
140
100
|
}
|
|
141
101
|
`));
|
|
142
102
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/table/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,QAAQ,EACR,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/table/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,QAAQ,EACR,aAAa,EACb,eAAe,EACf,mBAAmB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,MAAM,CAAC;;;;;;;;;;;gBAWL,QAAQ;iBACP,aAAa;;;;;;;;;;;;;;;;;;;;;;4BAsBF,mBAAmB;;;;;;;;;;sBAUzB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;uBA0BzB,eAAe;;;;;;;;;;;;;;CAcrC,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;;;;oCAKyB,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC;;;SAGxD,CACJ,CACJ,CAAC"}
|
|
@@ -48,7 +48,7 @@ export const iconColor = DesignToken.create(styleNameFromTokenName(tokenNames.ic
|
|
|
48
48
|
export const modalBackdropColor = DesignToken.create(styleNameFromTokenName(tokenNames.modalBackdropColor)).withDefault((element) => getModalBackdropForTheme(element));
|
|
49
49
|
export const popupBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBorderColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White), 0.3));
|
|
50
50
|
export const tooltipBackgroundColor = DesignToken.create(styleNameFromTokenName(tokenNames.tooltipBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black85, ForestGreen));
|
|
51
|
-
export const tableRowBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.tableRowBorderColor)).withDefault((element) => getColorForTheme(element, Black15,
|
|
51
|
+
export const tableRowBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.tableRowBorderColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
|
|
52
52
|
// Component Sizing Tokens
|
|
53
53
|
export const controlHeight = DesignToken.create(styleNameFromTokenName(tokenNames.controlHeight)).withDefault('32px');
|
|
54
54
|
export const controlSlimHeight = DesignToken.create(styleNameFromTokenName(tokenNames.controlSlimHeight)).withDefault('24px');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "18.12.
|
|
3
|
+
"version": "18.12.4",
|
|
4
4
|
"description": "Styled web components for the NI Nimble Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run generate-icons && npm run build-components && npm run bundle-components && npm run generate-scss && npm run build-storybook",
|