@ni/nimble-components 20.17.5 → 20.17.6
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 +22 -19
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +21 -18
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor-tree-item/styles.js +12 -12
- package/dist/esm/anchor-tree-item/styles.js.map +1 -1
- package/dist/esm/tree-item/styles.js +11 -8
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
|
-
import { bodyFontFamily, bodyFontWeight, bodyFontColor, borderHoverColor, borderWidth, iconSize, fillHoverColor, fillHoverSelectedColor, fillSelectedColor, bodyFontSize } from '../theme-provider/design-tokens';
|
|
3
|
+
import { bodyFontFamily, bodyFontWeight, bodyFontColor, borderHoverColor, borderWidth, iconSize, fillHoverColor, fillHoverSelectedColor, fillSelectedColor, bodyFontSize, bodyDisabledFontColor, iconColor } from '../theme-provider/design-tokens';
|
|
4
4
|
import { focusVisible } from '../utilities/style/focus';
|
|
5
5
|
import { userSelectNone } from '../utilities/style/user-select';
|
|
6
6
|
export const styles = css `
|
|
@@ -19,10 +19,15 @@ export const styles = css `
|
|
|
19
19
|
--ni-private-tree-item-nested-width: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
:host([disabled]) {
|
|
23
|
+
color: ${bodyDisabledFontColor};
|
|
24
|
+
cursor: default;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
.control {
|
|
23
28
|
display: flex;
|
|
24
29
|
text-decoration: none;
|
|
25
|
-
color:
|
|
30
|
+
color: inherit;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
.control${focusVisible} {
|
|
@@ -31,10 +36,6 @@ export const styles = css `
|
|
|
31
36
|
outline-offset: -2px;
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
:host([disabled]) .control {
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
39
|
.positioning-region {
|
|
39
40
|
display: flex;
|
|
40
41
|
position: relative;
|
|
@@ -47,6 +48,10 @@ export const styles = css `
|
|
|
47
48
|
background: ${fillHoverColor};
|
|
48
49
|
}
|
|
49
50
|
|
|
51
|
+
:host([disabled]) .positioning-region:hover {
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
:host([selected]) .positioning-region {
|
|
51
56
|
background: ${fillSelectedColor};
|
|
52
57
|
}
|
|
@@ -75,11 +80,6 @@ export const styles = css `
|
|
|
75
80
|
margin-inline-start: ${iconSize};
|
|
76
81
|
}
|
|
77
82
|
|
|
78
|
-
:host([disabled]) .content-region {
|
|
79
|
-
opacity: 0.5;
|
|
80
|
-
cursor: not-allowed;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
83
|
${
|
|
84
84
|
/* this rule keeps children without an icon text aligned with parents */ ''}
|
|
85
85
|
[part="start"] {
|
|
@@ -89,12 +89,12 @@ export const styles = css `
|
|
|
89
89
|
${ /* the start class is applied when the corresponding slot is filled */''}
|
|
90
90
|
.start {
|
|
91
91
|
display: flex;
|
|
92
|
-
fill: currentcolor;
|
|
93
92
|
margin-inline-start: ${iconSize};
|
|
94
93
|
margin-inline-end: ${iconSize};
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
slot[name='start']::slotted(*) {
|
|
97
|
+
${iconColor.cssCustomProperty}: currentcolor;
|
|
98
98
|
width: ${iconSize};
|
|
99
99
|
height: ${iconSize};
|
|
100
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/anchor-tree-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC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Q;;;;;;CAMzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { display } from '@microsoft/fast-foundation';
|
|
3
3
|
import { focusVisible } from '../utilities/style/focus';
|
|
4
|
-
import { bodyFontColor, bodyFontFamily, bodyFontSize, bodyFontWeight, borderHoverColor, fillSelectedColor, fillHoverColor, fillHoverSelectedColor, borderWidth, iconSize, mediumDelay } from '../theme-provider/design-tokens';
|
|
4
|
+
import { bodyFontColor, bodyFontFamily, bodyFontSize, bodyFontWeight, borderHoverColor, fillSelectedColor, fillHoverColor, fillHoverSelectedColor, borderWidth, iconSize, mediumDelay, bodyDisabledFontColor, iconColor } from '../theme-provider/design-tokens';
|
|
5
5
|
import { groupSelectedAttribute } from '../tree-view/types';
|
|
6
6
|
import { DirectionalStyleSheetBehavior } from '../utilities/style/direction';
|
|
7
7
|
import { userSelectNone } from '../utilities/style/user-select';
|
|
@@ -21,6 +21,11 @@ export const styles = css `
|
|
|
21
21
|
--ni-private-tree-item-nested-width: 0;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
:host([disabled]) {
|
|
25
|
+
color: ${bodyDisabledFontColor};
|
|
26
|
+
cursor: default;
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
${ /* this controls the side border */''}
|
|
25
30
|
:host([${groupSelectedAttribute}])::after {
|
|
26
31
|
background: ${borderHoverColor};
|
|
@@ -62,6 +67,10 @@ export const styles = css `
|
|
|
62
67
|
background: ${fillHoverSelectedColor};
|
|
63
68
|
}
|
|
64
69
|
|
|
70
|
+
:host([disabled]) .positioning-region:hover {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
.positioning-region::before {
|
|
66
75
|
content: '';
|
|
67
76
|
display: block;
|
|
@@ -86,11 +95,6 @@ export const styles = css `
|
|
|
86
95
|
outline: none;
|
|
87
96
|
}
|
|
88
97
|
|
|
89
|
-
:host([disabled]) .content-region {
|
|
90
|
-
opacity: 0.5;
|
|
91
|
-
cursor: not-allowed;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
98
|
.expand-collapse-button {
|
|
95
99
|
background: none;
|
|
96
100
|
border: none;
|
|
@@ -100,7 +104,6 @@ export const styles = css `
|
|
|
100
104
|
padding: 0px;
|
|
101
105
|
justify-content: center;
|
|
102
106
|
align-items: center;
|
|
103
|
-
cursor: pointer;
|
|
104
107
|
margin-left: 10px;
|
|
105
108
|
position: absolute;
|
|
106
109
|
}
|
|
@@ -123,12 +126,12 @@ export const styles = css `
|
|
|
123
126
|
/* the start class is applied when the corresponding slots is filled */ ''}
|
|
124
127
|
.start {
|
|
125
128
|
display: flex;
|
|
126
|
-
fill: currentcolor;
|
|
127
129
|
margin-inline-start: ${iconSize};
|
|
128
130
|
margin-inline-end: ${iconSize};
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
slot[name='start']::slotted(*) {
|
|
134
|
+
${iconColor.cssCustomProperty}: currentcolor;
|
|
132
135
|
width: ${iconSize};
|
|
133
136
|
height: ${iconSize};
|
|
134
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tree-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACH,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,WAAW,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tree-item/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,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BACP,QAAQ;;;;;;cAMZ,QAAQ;;;;;;;;;;UAUZ;AACE;;;;GAIG,CAAC,EACR;iCACyB,QAAQ;;;;;;CAMxC,CAAC,aAAa,CACX,IAAI,6BAA6B;AAC7B,aAAa;AACb,GAAG,CAAA;;;;2BAIgB,QAAQ;;;;;;;;;;;SAW1B;AACD,aAAa;AACb,GAAG,CAAA;;;;2BAIgB,QAAQ;;;;;;;;;;;SAW1B,CACJ,CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "20.17.
|
|
3
|
+
"version": "20.17.6",
|
|
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",
|