@ni/nimble-components 19.5.0 → 19.6.1
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 +148 -62
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1079 -1008
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/checkbox/styles.js +2 -2
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/icons/all-icons.d.ts +1 -0
- package/dist/esm/icons/all-icons.js +1 -0
- package/dist/esm/icons/all-icons.js.map +1 -1
- package/dist/esm/icons/clock-exclamation.d.ts +13 -0
- package/dist/esm/icons/clock-exclamation.js +16 -0
- package/dist/esm/icons/clock-exclamation.js.map +1 -0
- package/dist/esm/patterns/button/styles.js +66 -50
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/tab/styles.js +2 -2
- package/dist/esm/patterns/tab/styles.js.map +1 -1
- package/dist/esm/radio/styles.js +2 -2
- package/dist/esm/radio/styles.js.map +1 -1
- package/dist/esm/src/icons/all-icons.d.ts +1 -0
- package/dist/esm/src/icons/clock-exclamation.d.ts +13 -0
- package/dist/esm/switch/styles.js +2 -2
- package/dist/esm/switch/styles.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.js +2 -2
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/esm/toggle-button/styles.js +59 -5
- package/dist/esm/toggle-button/styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
import { focusVisible } from '../utilities/style/focus';
|
|
3
|
-
import { fillSelectedColor } from '../theme-provider/design-tokens';
|
|
3
|
+
import { borderHoverColor, borderWidth, fillSelectedColor, smallDelay } from '../theme-provider/design-tokens';
|
|
4
4
|
import { styles as buttonStyles } from '../patterns/button/styles';
|
|
5
5
|
export const styles = css `
|
|
6
6
|
${buttonStyles}
|
|
@@ -8,24 +8,78 @@ export const styles = css `
|
|
|
8
8
|
.control[aria-pressed='true'] {
|
|
9
9
|
background-color: ${fillSelectedColor};
|
|
10
10
|
border-color: ${fillSelectedColor};
|
|
11
|
+
position: relative;
|
|
12
|
+
transition: box-shadow ${smallDelay} ease-in-out,
|
|
13
|
+
border-color ${smallDelay} ease-in-out,
|
|
14
|
+
background-size ${smallDelay} ease-in-out;
|
|
15
|
+
background-size: 100% 100%;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
background-position: center;
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
.control[aria-pressed='true']:hover {
|
|
14
|
-
|
|
21
|
+
border-color: ${borderHoverColor};
|
|
22
|
+
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
23
|
+
background-image: linear-gradient(
|
|
24
|
+
${fillSelectedColor},
|
|
25
|
+
${fillSelectedColor}
|
|
26
|
+
);
|
|
27
|
+
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
.control[aria-pressed='true']${focusVisible} {
|
|
18
|
-
background-color:
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
border-color: ${borderHoverColor};
|
|
33
|
+
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
34
|
+
background-image: linear-gradient(
|
|
35
|
+
${fillSelectedColor},
|
|
36
|
+
${fillSelectedColor}
|
|
37
|
+
);
|
|
38
|
+
background-size: calc(100% - 4px) calc(100% - 4px);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.control[aria-pressed='true']:active {
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
background-image: linear-gradient(
|
|
44
|
+
${fillSelectedColor},
|
|
45
|
+
${fillSelectedColor}
|
|
46
|
+
);
|
|
47
|
+
background-size: calc(100% - 2px) calc(100% - 2px);
|
|
19
48
|
}
|
|
20
49
|
|
|
21
50
|
:host([disabled]) .control[aria-pressed='true'] {
|
|
22
|
-
background-color: ${fillSelectedColor};
|
|
23
51
|
border-color: ${fillSelectedColor};
|
|
52
|
+
background-color: ${fillSelectedColor};
|
|
53
|
+
background-image: none;
|
|
24
54
|
}
|
|
25
55
|
|
|
26
56
|
:host([disabled]) .control[aria-pressed='true']:hover {
|
|
27
|
-
background-color: ${fillSelectedColor};
|
|
28
57
|
border-color: ${fillSelectedColor};
|
|
58
|
+
background-color: ${fillSelectedColor};
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.control[aria-pressed='true']::before {
|
|
63
|
+
content: '';
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
outline: 0px solid transparent;
|
|
70
|
+
outline: none;
|
|
71
|
+
background-clip: content-box;
|
|
72
|
+
transition: outline ${smallDelay} ease-in-out;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.control[aria-pressed='true']${focusVisible}::before {
|
|
76
|
+
outline: ${borderWidth} solid ${borderHoverColor};
|
|
77
|
+
outline-offset: -3px;
|
|
78
|
+
color: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.control[aria-pressed='true']:active::before {
|
|
82
|
+
outline: none;
|
|
29
83
|
}
|
|
30
84
|
`;
|
|
31
85
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/toggle-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/toggle-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACb,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,YAAY;;;4BAGU,iBAAiB;wBACrB,iBAAiB;;iCAER,UAAU;2BAChB,UAAU;8BACP,UAAU;;;;;;;wBAOhB,gBAAgB;kCACN,WAAW,IAAI,gBAAgB;;cAEnD,iBAAiB;cACjB,iBAAiB;;;;;mCAKI,YAAY;;wBAEvB,gBAAgB;kCACN,WAAW,IAAI,gBAAgB;;cAEnD,iBAAiB;cACjB,iBAAiB;;;;;;;;cAQjB,iBAAiB;cACjB,iBAAiB;;;;;;wBAMP,iBAAiB;4BACb,iBAAiB;;;;;wBAKrB,iBAAiB;4BACb,iBAAiB;;;;;;;;;;;;;;8BAcf,UAAU;;;mCAGL,YAAY;mBAC5B,WAAW,UAAU,gBAAgB;;;;;;;;CAQvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-components",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.1",
|
|
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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@microsoft/fast-element": "^1.10.1",
|
|
62
62
|
"@microsoft/fast-foundation": "^2.47.1-0",
|
|
63
63
|
"@microsoft/fast-web-utilities": "^6.0.0",
|
|
64
|
-
"@ni/nimble-tokens": "^6.1
|
|
64
|
+
"@ni/nimble-tokens": "^6.2.1",
|
|
65
65
|
"@tanstack/table-core": "^8.7.0",
|
|
66
66
|
"@tanstack/virtual-core": "^3.0.0-beta.44",
|
|
67
67
|
"@types/d3-array": "^3.0.4",
|