@kaizen/components 1.4.21 → 1.4.22
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/CHANGELOG.md +8 -0
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
- package/dist/iife/__future__/index.js +915 -594
- package/dist/iife/index.js +1936 -2069
- package/package.json +32 -32
- /package/dist/iife/{Dropdown.module-4CIBZTRZ.scss → Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss} +0 -0
- /package/dist/iife/{Layout.module-MZ6JYT46.scss → Layout.module-MZ6JYT46-MZ6JYT46.scss} +0 -0
- /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
- /package/dist/iife/{Menu.module-N76N74LN.scss → Menu.module-N76N74LN-N76N74LN.scss} +0 -0
- /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
- /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
- /package/dist/iife/{Text.module-SXGFOHGJ.scss → Text.module-SXGFOHGJ-SXGFOHGJ.scss} +0 -0
- /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.4.22](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/components@1.4.21...@kaizen/components@1.4.22) (2023-03-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @kaizen/components
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.4.21](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/components@1.4.20...@kaizen/components@1.4.21) (2023-03-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @kaizen/components
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@import "~@kaizen/design-tokens/sass/animation";
|
|
2
|
+
@import "./styles";
|
|
3
|
+
|
|
4
|
+
.icon {
|
|
5
|
+
@extend %caIcon;
|
|
6
|
+
|
|
7
|
+
// Set sensible defaults for icon colours when
|
|
8
|
+
// windows high-contrast mode is enabled. These
|
|
9
|
+
// should be overridden by the consumer when the
|
|
10
|
+
// icon colour conveys information, such as mood.
|
|
11
|
+
@media screen and (-ms-high-contrast: active) {
|
|
12
|
+
color: black;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media screen and (-ms-high-contrast: white-on-black) {
|
|
16
|
+
color: white;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
20
|
+
color: black;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inheritSize {
|
|
25
|
+
@extend %caIconInheritSize;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.interactiveIconWrapper {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
.icon {
|
|
31
|
+
opacity: 0.7;
|
|
32
|
+
transition: $animation-duration-fast opacity;
|
|
33
|
+
}
|
|
34
|
+
&:disabled,
|
|
35
|
+
&.disabled {
|
|
36
|
+
.icon {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&:not(:disabled):not(.disabled) {
|
|
41
|
+
&:hover,
|
|
42
|
+
&:focus,
|
|
43
|
+
&.hover {
|
|
44
|
+
.icon {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&:active,
|
|
49
|
+
&.active {
|
|
50
|
+
.icon {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// On dark backgrounds, icons are fully opaque by default and half opacity when active.
|
|
58
|
+
// Hover and disabled states are the same.
|
|
59
|
+
.reversedInteractiveIconWrapper {
|
|
60
|
+
composes: interactiveIconWrapper;
|
|
61
|
+
.icon {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
&:not(:disabled, .disabled) {
|
|
65
|
+
&:active,
|
|
66
|
+
&.active {
|
|
67
|
+
.icon {
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|