@kaizen/components 1.4.22-canary.0 → 1.4.22-canary.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/__future__/index.d.ts +0 -2
- package/dist/__future__/index.js +1 -5
- package/dist/esm/__future__/index.js +0 -4
- package/dist/iife/Dropdown.module-4CIBZTRZ-4CIBZTRZ.scss +100 -0
- 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 +128 -40023
- package/dist/iife/index.js +496 -36
- package/package.json +4 -4
- package/dist/iife/Badge.module-5JDAQSAV.scss +0 -106
- package/dist/iife/Checkbox.module-L2DRIMTV.scss +0 -155
- package/dist/iife/CheckboxField.module-MS76TDL7.scss +0 -46
- package/dist/iife/CheckboxGroup.module-AHAPICAN.scss +0 -13
- package/dist/iife/ClearButton.module-KVNHOLVT.scss +0 -79
- package/dist/iife/Divider.module-YXIUJPD4.scss +0 -40
- package/dist/iife/FieldGroup.module-SUPERNC6.scss +0 -10
- package/dist/iife/FieldMessage.module-6CWQV65E.scss +0 -73
- package/dist/iife/FilterTriggerButton.module-LGSTEFAE.scss +0 -5
- package/dist/iife/GenericButton.module-NIOY5S5X.scss +0 -113
- package/dist/iife/Heading.module-WIR3ANFU.scss +0 -104
- package/dist/iife/Input.module-FBWZRX37.scss +0 -336
- package/dist/iife/InputRange.module-RGISUI4D.scss +0 -181
- package/dist/iife/InputSearch.module-YAL2OSZP.scss +0 -238
- package/dist/iife/Label.module-QP4J7I5H.scss +0 -118
- package/dist/iife/ListBox.module-5GNTZUCX.scss +0 -18
- package/dist/iife/ListBox.module-RXUZV2C4.scss +0 -14
- package/dist/iife/ListBoxSection.module-53ABDKRS.scss +0 -3
- package/dist/iife/ListBoxSection.module-D2PXJRKU.scss +0 -20
- package/dist/iife/LoadMoreButton.module-ANUUS5ER.scss +0 -5
- package/dist/iife/LoadingGraphic.module-URCRSF4P.scss +0 -10
- package/dist/iife/LoadingHeading.module-OV5P5QHZ.scss +0 -67
- package/dist/iife/LoadingInput.module-7NL2PX46.scss +0 -9
- package/dist/iife/LoadingParagraph.module-43NZVIEE.scss +0 -50
- package/dist/iife/LoadingSpinner.module-VMTNZETE.scss +0 -31
- package/dist/iife/MenuFooter.module-7J44RW5D.scss +0 -9
- package/dist/iife/MenuLoadingSkeleton.module-DH3I5Z2J.scss +0 -9
- package/dist/iife/MenuPopup.module-NQRYVXAG.scss +0 -27
- package/dist/iife/MultiSelectOption.module-TIZIGUVB.scss +0 -115
- package/dist/iife/NoResults.module-3FUWBVUH.scss +0 -3
- package/dist/iife/Option.module-O2QRLWHC.scss +0 -87
- package/dist/iife/Overlay.module-W7K5DWH6.scss +0 -24
- package/dist/iife/Paragraph.module-J7DMUCVE.scss +0 -71
- package/dist/iife/Radio.module-DCWPHVKW.scss +0 -99
- package/dist/iife/RadioField.module-C2XRADW5.scss +0 -50
- package/dist/iife/RadioGroup.module-PDLRO572.scss +0 -23
- package/dist/iife/RemovableFilterTrigger.module-SJ37V6UZ.scss +0 -29
- package/dist/iife/SearchField.module-2EV6HGZE.scss +0 -6
- package/dist/iife/SearchInput.module-RQEF3FWR.scss +0 -6
- package/dist/iife/SectionDivider.module-AN4OA4O3.scss +0 -3
- package/dist/iife/Select.module-WOGFQRYI.scss +0 -8
- package/dist/iife/SelectionControlButton.module-HO7BZ2UP.scss +0 -81
- package/dist/iife/Slider.module-EIBFJ2LP.scss +0 -42
- package/dist/iife/Tab.module-4S535DQG.scss +0 -105
- package/dist/iife/TabList.module-FVWF5RCV.scss +0 -11
- package/dist/iife/TabPanel.module-2YHJE4CY.scss +0 -14
- package/dist/iife/TextArea.module-JLTW3M73.scss +0 -138
- package/dist/iife/TextAreaField.module-4K35MSCT.scss +0 -20
- package/dist/iife/TextField.module-KFAPVZZK.scss +0 -49
- package/dist/iife/ToggleSwitch.module-3YDF4MLF.scss +0 -128
- package/dist/iife/ToggleSwitchField.module-BJOL7O7U.scss +0 -15
- package/dist/iife/Tooltip.module-YU7VOTNZ.scss +0 -184
- package/dist/iife/TriggerButton.module-ML4U7VQL.scss +0 -139
- package/dist/iife/TriggerButtonBase.module-QFRV6YZQ.scss +0 -14
- package/dist/iife/arrow-backward.icon-DGOZ655M.svg +0 -17
- package/dist/iife/arrow-forward.icon-MO6IWNHW.svg +0 -17
- package/dist/iife/caution-white.icon-7QPLIIHQ.svg +0 -1
- package/dist/iife/check.icon-CYCBCOVT.svg +0 -17
- package/dist/iife/chevron-down.icon-COG3GAYR.svg +0 -17
- package/dist/iife/chevron-up.icon-O5VRF5BX.svg +0 -17
- package/dist/iife/clear.icon-OD6PWTJH.svg +0 -17
- package/dist/iife/end.icon-4DQDOQVX.svg +0 -1
- package/dist/iife/exclamation-white.icon-WX7P4EOV.svg +0 -19
- package/dist/iife/loading-skeleton.module-RZXSULUO.scss +0 -26
- package/dist/iife/minus.icon-7B6G432O.svg +0 -17
- package/dist/iife/search.icon-ML7HSFID.svg +0 -17
- package/dist/iife/start.icon-JC4OAMAZ.svg +0 -1
- package/dist/iife/success.icon-QNKK4XJE.svg +0 -17
- /package/dist/iife/{Icon.module-VD7NKLAR.scss → Icon.module-VD7NKLAR-VD7NKLAR.scss} +0 -0
- /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
- /package/dist/iife/{SkipLink.module-KAZA7PAL.scss → SkipLink.module-KAZA7PAL-KAZA7PAL.scss} +0 -0
- /package/dist/iife/{VisuallyHidden.module-E5JUNEF5.scss → VisuallyHidden.module-E5JUNEF5-E5JUNEF5.scss} +0 -0
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
4
|
-
@import "~@kaizen/design-tokens/sass/typography";
|
|
5
|
-
|
|
6
|
-
.tab {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
border: 0;
|
|
10
|
-
border-top: 2px solid transparent;
|
|
11
|
-
border-left: 2px solid transparent;
|
|
12
|
-
border-right: 2px solid transparent;
|
|
13
|
-
border-top-left-radius: $border-borderless-border-radius;
|
|
14
|
-
border-top-right-radius: $border-borderless-border-radius;
|
|
15
|
-
background: $color-white;
|
|
16
|
-
white-space: nowrap;
|
|
17
|
-
text-decoration: none;
|
|
18
|
-
padding: $spacing-md $spacing-md;
|
|
19
|
-
margin: 0;
|
|
20
|
-
font-family: $typography-heading-4-font-family;
|
|
21
|
-
font-size: $typography-heading-4-font-size;
|
|
22
|
-
font-weight: $typography-heading-4-font-weight;
|
|
23
|
-
line-height: $typography-heading-4-line-height;
|
|
24
|
-
letter-spacing: $typography-heading-4-letter-spacing;
|
|
25
|
-
color: $color-purple-800;
|
|
26
|
-
|
|
27
|
-
&:not(:first-child) {
|
|
28
|
-
margin-inline-start: $spacing-xs;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:not(:disabled):hover {
|
|
32
|
-
background: $color-blue-100;
|
|
33
|
-
color: $color-blue-500;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:focus {
|
|
37
|
-
outline: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:global(.focus-visible) {
|
|
41
|
-
background: $color-blue-100;
|
|
42
|
-
color: $color-blue-500;
|
|
43
|
-
border-color: $color-blue-500;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.tab[data-selected] {
|
|
48
|
-
position: relative;
|
|
49
|
-
color: $color-blue-500;
|
|
50
|
-
|
|
51
|
-
&::before {
|
|
52
|
-
content: "";
|
|
53
|
-
display: block;
|
|
54
|
-
border-top-left-radius: 5px;
|
|
55
|
-
border-top-right-radius: 5px;
|
|
56
|
-
background-color: currentColor;
|
|
57
|
-
height: 5px;
|
|
58
|
-
width: 100%;
|
|
59
|
-
position: absolute;
|
|
60
|
-
left: 0;
|
|
61
|
-
right: 0;
|
|
62
|
-
bottom: 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.tab:disabled {
|
|
67
|
-
opacity: 0.3;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.badge {
|
|
71
|
-
margin-inline-start: $spacing-sm;
|
|
72
|
-
display: inline-flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@media (forced-colors: active) {
|
|
77
|
-
.tab {
|
|
78
|
-
border: 2px solid transparent;
|
|
79
|
-
|
|
80
|
-
&:global(.focus-visible)::after {
|
|
81
|
-
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
82
|
-
content: "";
|
|
83
|
-
position: absolute;
|
|
84
|
-
background: transparent;
|
|
85
|
-
border-radius: $border-focus-ring-border-radius;
|
|
86
|
-
border-width: $border-focus-ring-border-width;
|
|
87
|
-
border-style: $border-focus-ring-border-style;
|
|
88
|
-
border-color: transparent;
|
|
89
|
-
top: calc(-1 * #{$focus-ring-offset});
|
|
90
|
-
left: calc(-1 * #{$focus-ring-offset});
|
|
91
|
-
right: calc(-1 * #{$focus-ring-offset});
|
|
92
|
-
bottom: calc(-1 * #{$focus-ring-offset});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.tab.selected::before {
|
|
97
|
-
// High contrast also doesn't see the pseudo element created to show the active tab.
|
|
98
|
-
content: "";
|
|
99
|
-
position: absolute;
|
|
100
|
-
left: 0;
|
|
101
|
-
right: 0;
|
|
102
|
-
bottom: 0;
|
|
103
|
-
border-bottom: 2px solid transparent;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
|
|
4
|
-
.tabPanel {
|
|
5
|
-
border: 2px solid transparent;
|
|
6
|
-
|
|
7
|
-
&:focus {
|
|
8
|
-
outline: none;
|
|
9
|
-
}
|
|
10
|
-
&:global(.focus-visible) {
|
|
11
|
-
border-color: $color-blue-500;
|
|
12
|
-
border-radius: $border-focus-ring-border-radius;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
4
|
-
@import "../../variables";
|
|
5
|
-
@import "../mixins";
|
|
6
|
-
|
|
7
|
-
// Vars
|
|
8
|
-
$input-disabled-opacity: 0.3;
|
|
9
|
-
$input-disabled-border-alpha: 50%;
|
|
10
|
-
|
|
11
|
-
.wrapper {
|
|
12
|
-
position: relative;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.textarea {
|
|
16
|
-
@include form-input-reset;
|
|
17
|
-
border-radius: $border-solid-border-radius;
|
|
18
|
-
width: 100%;
|
|
19
|
-
border: $border-solid-border-width $border-solid-border-style $color-gray-500;
|
|
20
|
-
padding: $spacing-sm;
|
|
21
|
-
color: $color-purple-800-rgb;
|
|
22
|
-
display: block;
|
|
23
|
-
resize: vertical;
|
|
24
|
-
|
|
25
|
-
@include form-input-placeholder {
|
|
26
|
-
line-height: 1.5;
|
|
27
|
-
color: $dt-color-form-text-color-placeholder;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:disabled {
|
|
31
|
-
resize: none;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.textarea:focus + .focusRing {
|
|
36
|
-
$focus-ring-offset: 3px;
|
|
37
|
-
position: absolute;
|
|
38
|
-
background: transparent;
|
|
39
|
-
border-radius: $border-focus-ring-border-radius;
|
|
40
|
-
border-width: $border-focus-ring-border-width;
|
|
41
|
-
border-style: $border-focus-ring-border-style;
|
|
42
|
-
border-color: transparent;
|
|
43
|
-
top: -$focus-ring-offset;
|
|
44
|
-
left: -$focus-ring-offset;
|
|
45
|
-
right: -$focus-ring-offset;
|
|
46
|
-
bottom: -$focus-ring-offset;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.textarea.default {
|
|
51
|
-
@include form-input-focus-state {
|
|
52
|
-
background-color: $color-gray-200;
|
|
53
|
-
border-color: $color-gray-600;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:focus + .focusRing {
|
|
57
|
-
border-color: $color-blue-500;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:not(.error):not(.caution) {
|
|
61
|
-
&:disabled {
|
|
62
|
-
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.error {
|
|
67
|
-
border-color: $color-red-500;
|
|
68
|
-
|
|
69
|
-
@include form-input-focus-state {
|
|
70
|
-
border-color: $color-red-500;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.caution {
|
|
75
|
-
border-color: $color-yellow-600;
|
|
76
|
-
|
|
77
|
-
@include form-input-focus-state {
|
|
78
|
-
border-color: $color-yellow-600;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.disabled {
|
|
83
|
-
background-color: $color-white;
|
|
84
|
-
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
85
|
-
color: rgba($color-purple-800-rgb, $input-disabled-opacity);
|
|
86
|
-
|
|
87
|
-
@include form-input-placeholder {
|
|
88
|
-
opacity: $input-disabled-opacity;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Reversed (Dark Backgrounds)
|
|
94
|
-
.textarea.reversed {
|
|
95
|
-
@include form-input-focus-state {
|
|
96
|
-
background: rgba($color-white-rgb, 0.1);
|
|
97
|
-
border-color: $color-white;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
border-color: rgba($color-white-rgb, 0.65);
|
|
101
|
-
background: transparent;
|
|
102
|
-
color: $color-white;
|
|
103
|
-
|
|
104
|
-
@include form-input-placeholder {
|
|
105
|
-
line-height: 1.5;
|
|
106
|
-
color: $color-white;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:focus + .focusRing {
|
|
110
|
-
border-color: $color-blue-300;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.error {
|
|
114
|
-
border-color: $color-red-300;
|
|
115
|
-
|
|
116
|
-
@include form-input-focus-state {
|
|
117
|
-
border-color: $color-red-300;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.caution {
|
|
122
|
-
border-color: $color-yellow-400;
|
|
123
|
-
|
|
124
|
-
@include form-input-focus-state {
|
|
125
|
-
border-color: $color-yellow-400;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&.disabled {
|
|
130
|
-
background: transparent;
|
|
131
|
-
border-color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
132
|
-
color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
133
|
-
|
|
134
|
-
@include form-input-placeholder {
|
|
135
|
-
opacity: $input-disabled-opacity;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
|
|
4
|
-
$input-disabled-background: $color-gray-300;
|
|
5
|
-
$input-disabled-opacity: 0.3;
|
|
6
|
-
$input-disabled-border-alpha: 50%;
|
|
7
|
-
|
|
8
|
-
.message {
|
|
9
|
-
&.disabled {
|
|
10
|
-
opacity: $input-disabled-opacity;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.textareaLabel {
|
|
15
|
-
margin-bottom: $spacing-xs;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.textareaLabelProminent {
|
|
19
|
-
margin-bottom: 0;
|
|
20
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
-
@import "~@kaizen/component-library/styles/animation";
|
|
3
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/layout";
|
|
4
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/type";
|
|
5
|
-
@import "~@kaizen/deprecated-component-library-helpers/styles/color";
|
|
6
|
-
@import "~@kaizen/component-library/styles/utils";
|
|
7
|
-
@import "~@kaizen/component-library/styles/mixins/forms";
|
|
8
|
-
|
|
9
|
-
@mixin input-icon($color, $reversed) {
|
|
10
|
-
color: $color;
|
|
11
|
-
|
|
12
|
-
.withReversed & {
|
|
13
|
-
color: $reversed;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
$input-disabled-opacity: 0.3;
|
|
18
|
-
|
|
19
|
-
///////////////////////////////////////////////////
|
|
20
|
-
// VALIDATION STYLES
|
|
21
|
-
///////////////////////////////////////////////////
|
|
22
|
-
|
|
23
|
-
.success {
|
|
24
|
-
@include input-icon($color-green-500, $color-green-400);
|
|
25
|
-
@include ca-animation-fade(in);
|
|
26
|
-
|
|
27
|
-
&.disabled {
|
|
28
|
-
@include input-icon(
|
|
29
|
-
rgba($color-green-500-rgb, $input-disabled-opacity),
|
|
30
|
-
rgba($color-green-400-rgb, $input-disabled-opacity)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.error {
|
|
36
|
-
@include input-icon($color-red-100, $color-purple-700);
|
|
37
|
-
@include ca-animation-fade(in);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.caution {
|
|
41
|
-
@include input-icon($color-yellow-200, $color-purple-700);
|
|
42
|
-
@include ca-animation-fade(in);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.message {
|
|
46
|
-
&.disabled {
|
|
47
|
-
opacity: $input-disabled-opacity;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
4
|
-
@import "~@kaizen/design-tokens/sass/animation";
|
|
5
|
-
@import "~@kaizen/component-library/styles/mixins/forms";
|
|
6
|
-
@import "../../variables";
|
|
7
|
-
|
|
8
|
-
$animation-timing: $animation-duration-immediate
|
|
9
|
-
$animation-easing-function-linear;
|
|
10
|
-
$focus-ring-offset: 1px;
|
|
11
|
-
|
|
12
|
-
.checkbox {
|
|
13
|
-
@include form-input-visually-hidden();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.track {
|
|
17
|
-
position: relative;
|
|
18
|
-
background-color: $color-gray-400;
|
|
19
|
-
border: $border-borderless-border-width $border-borderless-border-style
|
|
20
|
-
$border-borderless-border-color;
|
|
21
|
-
border-radius: $spacing-md;
|
|
22
|
-
box-sizing: content-box;
|
|
23
|
-
width: calc((#{$spacing-md} * 1.05) * 2);
|
|
24
|
-
height: calc(#{$spacing-md} * 1.25);
|
|
25
|
-
padding: 0 calc(#{$spacing-md} * 0.15);
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
transition: background-color $animation-timing;
|
|
29
|
-
|
|
30
|
-
.checkbox:focus:not([disabled]) + &,
|
|
31
|
-
.checkbox:hover:focus:not([disabled]) + & {
|
|
32
|
-
border-color: transparent;
|
|
33
|
-
outline: 2px solid $color-blue-500;
|
|
34
|
-
outline-offset: $focus-ring-offset;
|
|
35
|
-
background-color: $color-gray-500;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (hover: hover) and (pointer: fine) {
|
|
39
|
-
.checkbox:not([disabled]) + &:hover,
|
|
40
|
-
label:hover .checkbox:not([disabled]) + & {
|
|
41
|
-
// if kz-color-iron-500-rgb-params fails, it will fallback to wisteria-500
|
|
42
|
-
// (the non-css variable token)
|
|
43
|
-
background-color: $color-purple-500;
|
|
44
|
-
background-color: $color-gray-500;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.thumb {
|
|
50
|
-
background-color: $color-white;
|
|
51
|
-
border: $border-borderless-border-width $border-borderless-border-style
|
|
52
|
-
$border-borderless-border-color;
|
|
53
|
-
box-sizing: content-box;
|
|
54
|
-
width: calc(#{$spacing-md} * 0.9);
|
|
55
|
-
height: calc(#{$spacing-md} * 0.9);
|
|
56
|
-
border-radius: $spacing-md;
|
|
57
|
-
transition: left $animation-timing, right $animation-timing;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.on {
|
|
61
|
-
.checkbox + .track {
|
|
62
|
-
border-color: $border-borderless-border-color;
|
|
63
|
-
background-color: $color-green-400;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.checkbox:focus:not([disabled]) + .track {
|
|
67
|
-
border-color: transparent;
|
|
68
|
-
background-color: $color-green-500;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.thumb {
|
|
72
|
-
position: relative;
|
|
73
|
-
right: auto;
|
|
74
|
-
left: calc(#{$spacing-md} * 1.1);
|
|
75
|
-
|
|
76
|
-
&[dir="rtl"],
|
|
77
|
-
[dir="rtl"] & {
|
|
78
|
-
right: calc(#{$spacing-md} * 1.1);
|
|
79
|
-
left: auto;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media (hover: hover) and (pointer: fine) {
|
|
84
|
-
.checkbox:not([disabled]) + .track:hover,
|
|
85
|
-
label:hover & .checkbox:not([disabled]) + .track {
|
|
86
|
-
background-color: $color-green-500;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.off {
|
|
92
|
-
.thumb {
|
|
93
|
-
position: relative;
|
|
94
|
-
right: auto;
|
|
95
|
-
left: calc(#{$spacing-md} * -0.05);
|
|
96
|
-
|
|
97
|
-
&[dir="rtl"],
|
|
98
|
-
[dir="rtl"] & {
|
|
99
|
-
right: calc(#{$spacing-md} * -0.05);
|
|
100
|
-
left: auto;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.reversed {
|
|
106
|
-
.checkbox:focus:not([disabled]) + .track,
|
|
107
|
-
.checkbox:hover:focus:not([disabled]) + .track {
|
|
108
|
-
outline-color: $color-blue-300;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.off {
|
|
112
|
-
.track {
|
|
113
|
-
background-color: rgba($color-white-rgb, 0.2);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.checkbox:focus:not([disabled]) + .track,
|
|
117
|
-
.checkbox:hover:focus:not([disabled]) + .track {
|
|
118
|
-
background-color: rgba($color-white-rgb, 0.65);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@media (hover: hover) and (pointer: fine) {
|
|
122
|
-
.checkbox:not([disabled]) + .track:hover,
|
|
123
|
-
label:hover & .checkbox:not([disabled]) + .track {
|
|
124
|
-
background-color: rgba($color-white-rgb, 0.65);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/shadow";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
4
|
-
@import "~@kaizen/design-tokens/sass/animation";
|
|
5
|
-
@import "~@kaizen/design-tokens/sass/typography";
|
|
6
|
-
@import "~@kaizen/component-library/styles/layers";
|
|
7
|
-
@import "./variables";
|
|
8
|
-
|
|
9
|
-
.tooltip {
|
|
10
|
-
position: relative; // Make this a positioned element so z-index works. (Note: Popper overrides this to absolute.)
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
z-index: $ca-z-index-tooltip;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.tooltipContent {
|
|
16
|
-
max-width: 400px;
|
|
17
|
-
padding: 0.4375rem 0.53125rem;
|
|
18
|
-
color: $color-purple-800;
|
|
19
|
-
text-align: center;
|
|
20
|
-
font-family: $typography-paragraph-body-font-family;
|
|
21
|
-
font-size: $typography-heading-6-font-size;
|
|
22
|
-
font-weight: $typography-paragraph-body-font-weight;
|
|
23
|
-
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
24
|
-
line-height: $typography-paragraph-small-line-height;
|
|
25
|
-
border-radius: $border-solid-border-radius;
|
|
26
|
-
transition: opacity $animation-duration-fast,
|
|
27
|
-
transform $animation-duration-fast;
|
|
28
|
-
box-shadow: $shadow-small-box-shadow;
|
|
29
|
-
|
|
30
|
-
&.default {
|
|
31
|
-
background-color: $color-white;
|
|
32
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
33
|
-
$color-gray-300;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.informative {
|
|
37
|
-
background-color: $color-blue-100;
|
|
38
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
39
|
-
$color-blue-300;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.positive {
|
|
43
|
-
background-color: $color-green-100;
|
|
44
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
45
|
-
$color-green-300;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.cautionary {
|
|
49
|
-
background-color: $color-yellow-100;
|
|
50
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
51
|
-
$color-yellow-300;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.highlight {
|
|
55
|
-
background-color: $color-purple-100;
|
|
56
|
-
border: $border-solid-border-width $border-solid-border-style
|
|
57
|
-
$color-purple-300;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.arrow {
|
|
62
|
-
// Ensure the arrow always sits on top of the tooltipContent
|
|
63
|
-
z-index: 1;
|
|
64
|
-
|
|
65
|
-
// This is required by popper, otherwise positioning issues will exist.
|
|
66
|
-
// https://github.com/popperjs/react-popper/issues/354#issuecomment-616540651
|
|
67
|
-
position: absolute;
|
|
68
|
-
|
|
69
|
-
[data-popper-placement^="top"] & {
|
|
70
|
-
bottom: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[data-popper-placement^="bottom"] & {
|
|
74
|
-
top: 0;
|
|
75
|
-
|
|
76
|
-
// There is a conflict with the popper arrow styling, which also
|
|
77
|
-
// adds a transform to the arrow. Hence, we need this additional
|
|
78
|
-
// wrapper, just to rotate it.
|
|
79
|
-
.arrowInner {
|
|
80
|
-
transform: rotate(180deg);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[data-popper-placement^="left"] & {
|
|
85
|
-
right: 0;
|
|
86
|
-
.arrowInner {
|
|
87
|
-
transform: rotate(270deg);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
[data-popper-placement^="right"] & {
|
|
91
|
-
left: 0;
|
|
92
|
-
.arrowInner {
|
|
93
|
-
transform: rotate(90deg);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.arrowMain::before,
|
|
99
|
-
.arrowMain::after {
|
|
100
|
-
content: "";
|
|
101
|
-
position: absolute;
|
|
102
|
-
left: 50%;
|
|
103
|
-
border-left: calc(#{$arrow-width} / 2) solid transparent;
|
|
104
|
-
border-right: calc(#{$arrow-width} / 2) solid transparent;
|
|
105
|
-
margin-left: calc(#{$arrow-width} / -2);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.arrowMain {
|
|
109
|
-
// before styles
|
|
110
|
-
&.default::before {
|
|
111
|
-
border-top: $arrow-height solid $color-gray-300;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&.informative::before {
|
|
115
|
-
border-top: $arrow-height solid $color-blue-300;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.positive::before {
|
|
119
|
-
border-top: $arrow-height solid $color-green-300;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&.highlight::before {
|
|
123
|
-
border-top: $arrow-height solid $color-purple-300;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.cautionary::before {
|
|
127
|
-
border-top: $arrow-height solid $color-yellow-300;
|
|
128
|
-
}
|
|
129
|
-
// after styles
|
|
130
|
-
&:after {
|
|
131
|
-
margin-top: -3px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.default::after {
|
|
135
|
-
border-top: $arrow-height solid white;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.informative::after {
|
|
139
|
-
border-top: $arrow-height solid $color-blue-100;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.positive::after {
|
|
143
|
-
border-top: $arrow-height solid $color-green-100;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.highlight::after {
|
|
147
|
-
border-top: $arrow-height solid $color-purple-100;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&.cautionary::after {
|
|
151
|
-
border-top: $arrow-height solid $color-yellow-100;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.arrowShadow::before {
|
|
156
|
-
border-top: 0px solid $color-gray-300;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Triangle portion is a little darker to bring out shadow
|
|
160
|
-
.arrowShadow::after {
|
|
161
|
-
border-top: $arrow-height solid rgba($color-purple-800-rgb, 0.09);
|
|
162
|
-
margin-top: 1px;
|
|
163
|
-
filter: blur(4px);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.displayInline {
|
|
167
|
-
display: inline;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.displayBlock {
|
|
171
|
-
display: block;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.displayInlineBlock {
|
|
175
|
-
display: inline-block;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.displayFlex {
|
|
179
|
-
display: flex;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.displayInlineFlex {
|
|
183
|
-
display: inline-flex;
|
|
184
|
-
}
|