@kaizen/components 1.4.20-canary.2 → 1.4.20-canary.3469
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/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
- package/dist/iife/Icon.module-VD7NKLAR-VD7NKLAR.scss +72 -0
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +362 -494
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +365 -500
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +376 -508
- package/dist/iife/KaizenProvider/index.js +378 -510
- package/dist/iife/Layout.module-MZ6JYT46-MZ6JYT46.scss +58 -0
- package/dist/iife/Menu.module-N76N74LN-N76N74LN.scss +111 -0
- package/dist/iife/Text.module-SXGFOHGJ-SXGFOHGJ.scss +173 -0
- package/dist/iife/__future__/index.js +910 -587
- package/dist/iife/index.js +869 -539
- package/package.json +34 -34
- package/dist/styles.css +0 -98
- /package/dist/iife/{Margin.module-DJURK5K7.scss → Margin.module-DJURK5K7-DJURK5K7.scss} +0 -0
- /package/dist/iife/{Padding.module-QSNUEZBU.scss → Padding.module-QSNUEZBU-QSNUEZBU.scss} +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
+
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
+
@import "~@kaizen/deprecated-component-library-helpers/styles/color";
|
|
4
|
+
@import "../../styles/layers";
|
|
5
|
+
@import "~@kaizen/deprecated-component-library-helpers/styles/type";
|
|
6
|
+
|
|
7
|
+
$width: 248px;
|
|
8
|
+
$caButton-border-width: $border-solid-border-width;
|
|
9
|
+
$caButton-verticalPadding: calc(
|
|
10
|
+
calc(#{$ca-grid} / 2) - #{$caButton-border-width}
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
.dropdown {
|
|
14
|
+
position: relative;
|
|
15
|
+
padding: $caButton-verticalPadding
|
|
16
|
+
calc(#{$ca-grid * 1} - #{$caButton-border-width});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.buttonReset {
|
|
20
|
+
appearance: none;
|
|
21
|
+
display: inline;
|
|
22
|
+
background: transparent;
|
|
23
|
+
color: inherit;
|
|
24
|
+
font: inherit;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
border: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @TODO - this should be using Kaizen's button
|
|
32
|
+
.dropdownButton {
|
|
33
|
+
@include kz-type-inter-button-primary;
|
|
34
|
+
@include ca-inherit-baseline;
|
|
35
|
+
composes: buttonReset;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
display: flex;
|
|
38
|
+
height: 100%;
|
|
39
|
+
width: 100%;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dropdownControlAction {
|
|
45
|
+
@include kz-type-inter-button-primary;
|
|
46
|
+
@include ca-inherit-baseline;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dropdownIcon {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
width: $ca-grid;
|
|
52
|
+
height: $ca-grid;
|
|
53
|
+
padding: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dropdownIcon + .dropdownLabel {
|
|
57
|
+
margin-left: calc(#{$ca-grid} / 2 - 2px);
|
|
58
|
+
|
|
59
|
+
[dir="rtl"] & {
|
|
60
|
+
margin-left: 0;
|
|
61
|
+
margin-right: calc(#{$ca-grid} / 2 - 2px);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// If you would like the dropdown icon to only be visible when a certain area is hovered,
|
|
66
|
+
// have you hover area use (or compose) the `dropdownHoverArea` class. The label will
|
|
67
|
+
// always be visible.
|
|
68
|
+
.dropdownHoverArea {
|
|
69
|
+
.dropdownIcon {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
&.isOpen,
|
|
72
|
+
&:focus {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
&:hover .dropdownIcon {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.chevronIcon {
|
|
82
|
+
position: relative;
|
|
83
|
+
top: 4px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.menuContainer {
|
|
87
|
+
position: absolute;
|
|
88
|
+
width: $width;
|
|
89
|
+
z-index: $ca-z-index-dropdown;
|
|
90
|
+
right: 0;
|
|
91
|
+
|
|
92
|
+
[dir="rtl"] & {
|
|
93
|
+
right: auto;
|
|
94
|
+
left: 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.reversedColor {
|
|
99
|
+
color: $color-white;
|
|
100
|
+
}
|
|
@@ -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
|
+
}
|