@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,104 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/typography";
|
|
3
|
-
@import "../fonts.scss";
|
|
4
|
-
|
|
5
|
-
.heading {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.display-0 {
|
|
10
|
-
font-family: $typography-display-0-font-family;
|
|
11
|
-
font-weight: $typography-display-0-font-weight;
|
|
12
|
-
font-size: $typography-display-0-font-size;
|
|
13
|
-
line-height: $typography-display-0-line-height;
|
|
14
|
-
letter-spacing: $typography-display-0-letter-spacing;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.heading-1 {
|
|
18
|
-
font-family: $typography-heading-1-font-family;
|
|
19
|
-
font-weight: $typography-heading-1-font-weight;
|
|
20
|
-
font-size: $typography-heading-1-font-size;
|
|
21
|
-
line-height: $typography-heading-1-line-height;
|
|
22
|
-
letter-spacing: $typography-heading-1-letter-spacing;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.heading-2 {
|
|
26
|
-
font-family: $typography-heading-2-font-family;
|
|
27
|
-
font-weight: $typography-heading-2-font-weight;
|
|
28
|
-
font-size: $typography-heading-2-font-size;
|
|
29
|
-
line-height: $typography-heading-2-line-height;
|
|
30
|
-
letter-spacing: $typography-heading-2-letter-spacing;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.heading-3 {
|
|
34
|
-
font-family: $typography-heading-3-font-family;
|
|
35
|
-
font-weight: $typography-heading-3-font-weight;
|
|
36
|
-
font-size: $typography-heading-3-font-size;
|
|
37
|
-
line-height: $typography-heading-3-line-height;
|
|
38
|
-
letter-spacing: $typography-heading-3-letter-spacing;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.heading-4 {
|
|
42
|
-
font-family: $typography-heading-4-font-family;
|
|
43
|
-
font-weight: $typography-heading-4-font-weight;
|
|
44
|
-
font-size: $typography-heading-4-font-size;
|
|
45
|
-
line-height: $typography-heading-4-line-height;
|
|
46
|
-
letter-spacing: $typography-heading-4-letter-spacing;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.heading-5 {
|
|
50
|
-
font-family: $typography-heading-5-font-family;
|
|
51
|
-
font-weight: $typography-heading-5-font-weight;
|
|
52
|
-
font-size: $typography-heading-5-font-size;
|
|
53
|
-
line-height: $typography-heading-5-line-height;
|
|
54
|
-
letter-spacing: $typography-heading-5-letter-spacing;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.heading-6 {
|
|
58
|
-
font-family: $typography-heading-6-font-family;
|
|
59
|
-
font-weight: $typography-heading-6-font-weight;
|
|
60
|
-
font-size: $typography-heading-6-font-size;
|
|
61
|
-
line-height: $typography-heading-6-line-height;
|
|
62
|
-
letter-spacing: $typography-heading-6-letter-spacing;
|
|
63
|
-
// override Murmur global styles :(
|
|
64
|
-
text-transform: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.dark {
|
|
68
|
-
color: $color-purple-800;
|
|
69
|
-
opacity: 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dark-reduced-opacity {
|
|
73
|
-
color: $color-purple-800;
|
|
74
|
-
opacity: 0.7;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.white {
|
|
78
|
-
color: $color-white;
|
|
79
|
-
opacity: 1;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.white-reduced-opacity {
|
|
83
|
-
color: $color-white;
|
|
84
|
-
opacity: 0.8;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.positive {
|
|
88
|
-
&.small {
|
|
89
|
-
color: $color-green-600;
|
|
90
|
-
}
|
|
91
|
-
&.large {
|
|
92
|
-
color: $color-green-500;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.negative {
|
|
97
|
-
&.small {
|
|
98
|
-
color: $color-red-600;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.large {
|
|
102
|
-
color: $color-red-500;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/border";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
4
|
-
@import "~@kaizen/component-library/styles/mixins/forms";
|
|
5
|
-
@import "../../variables";
|
|
6
|
-
@import "../mixins";
|
|
7
|
-
|
|
8
|
-
$input-height: 48px;
|
|
9
|
-
$input-base-padding-horizontal: $spacing-sm;
|
|
10
|
-
$input-icon-size: 1.25rem; // 20px
|
|
11
|
-
$input-placeholder-opacity: 0.5;
|
|
12
|
-
$input-disabled-background: $color-gray-300;
|
|
13
|
-
$input-disabled-opacity: 0.3;
|
|
14
|
-
$input-disabled-border-alpha: 50%;
|
|
15
|
-
$input-with-icon-padding: calc(
|
|
16
|
-
#{$input-icon-size} + calc(#{$spacing-md} * 0.75)
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
.wrapper {
|
|
20
|
-
position: relative;
|
|
21
|
-
|
|
22
|
-
&.hasStatus {
|
|
23
|
-
z-index: 1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
z-index: 2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:focus-within {
|
|
31
|
-
z-index: 3;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.input {
|
|
36
|
-
@include form-input-reset;
|
|
37
|
-
background-color: transparent;
|
|
38
|
-
background-clip: padding-box;
|
|
39
|
-
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
40
|
-
border-radius: $border-solid-border-radius;
|
|
41
|
-
display: block;
|
|
42
|
-
font-size: 1rem;
|
|
43
|
-
line-height: 1.5;
|
|
44
|
-
padding: 0 $input-base-padding-horizontal;
|
|
45
|
-
height: $input-height;
|
|
46
|
-
width: 100%;
|
|
47
|
-
margin-bottom: 2px;
|
|
48
|
-
|
|
49
|
-
@include form-input-placeholder {
|
|
50
|
-
opacity: 1;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:focus:not([disabled]),
|
|
54
|
-
&:hover:focus:not([disabled]) {
|
|
55
|
-
@include form-input-placeholder {
|
|
56
|
-
opacity: 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.disabled {
|
|
61
|
-
&:not(.reversed) {
|
|
62
|
-
background: $input-disabled-background;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@include form-input-placeholder {
|
|
66
|
-
color: rgba($color-purple-800-rgb, $input-disabled-opacity);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.input:focus + .focusRing {
|
|
72
|
-
$focus-ring-offset: 3px;
|
|
73
|
-
position: absolute;
|
|
74
|
-
background: transparent;
|
|
75
|
-
border-radius: $border-focus-ring-border-radius;
|
|
76
|
-
border-width: $border-focus-ring-border-width;
|
|
77
|
-
border-style: $border-focus-ring-border-style;
|
|
78
|
-
border-color: transparent;
|
|
79
|
-
top: -$focus-ring-offset;
|
|
80
|
-
left: -$focus-ring-offset;
|
|
81
|
-
right: -$focus-ring-offset;
|
|
82
|
-
bottom: -$focus-ring-offset;
|
|
83
|
-
pointer-events: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
///////////////////////////////////////////////////
|
|
87
|
-
// ICON ADORNMENT STYLES
|
|
88
|
-
///////////////////////////////////////////////////
|
|
89
|
-
|
|
90
|
-
@mixin vertically-center-icon {
|
|
91
|
-
position: absolute;
|
|
92
|
-
height: $input-icon-size;
|
|
93
|
-
top: 50%;
|
|
94
|
-
transform: translateY(-50%);
|
|
95
|
-
z-index: 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.withStartIconAdornment {
|
|
99
|
-
.startIconAdornment {
|
|
100
|
-
@include vertically-center-icon;
|
|
101
|
-
right: auto;
|
|
102
|
-
left: $spacing-sm;
|
|
103
|
-
|
|
104
|
-
&[dir="rtl"],
|
|
105
|
-
[dir="rtl"] & {
|
|
106
|
-
right: $spacing-sm;
|
|
107
|
-
left: auto;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.withDisabled {
|
|
112
|
-
.startIconAdornment {
|
|
113
|
-
opacity: $input-disabled-opacity;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.input {
|
|
118
|
-
padding-right: $input-base-padding-horizontal;
|
|
119
|
-
padding-left: $input-with-icon-padding;
|
|
120
|
-
|
|
121
|
-
&[dir="rtl"],
|
|
122
|
-
[dir="rtl"] & {
|
|
123
|
-
padding-right: $input-with-icon-padding;
|
|
124
|
-
padding-left: $input-base-padding-horizontal;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.withEndIconAdornment {
|
|
130
|
-
.endIconAdornment {
|
|
131
|
-
@include vertically-center-icon;
|
|
132
|
-
right: $spacing-sm;
|
|
133
|
-
left: auto;
|
|
134
|
-
|
|
135
|
-
&[dir="rtl"],
|
|
136
|
-
[dir="rtl"] & {
|
|
137
|
-
right: auto;
|
|
138
|
-
left: $spacing-sm;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.isDisabled {
|
|
143
|
-
.endIconAdornment {
|
|
144
|
-
opacity: $input-disabled-opacity;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.input {
|
|
149
|
-
padding-right: $input-with-icon-padding;
|
|
150
|
-
padding-left: $input-base-padding-horizontal;
|
|
151
|
-
|
|
152
|
-
&[dir="rtl"],
|
|
153
|
-
[dir="rtl"] & {
|
|
154
|
-
padding-right: $input-base-padding-horizontal;
|
|
155
|
-
padding-left: $input-with-icon-padding;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.withStartIconAdornment.withEndIconAdornment {
|
|
161
|
-
.input {
|
|
162
|
-
padding-right: $input-with-icon-padding;
|
|
163
|
-
padding-left: $input-with-icon-padding;
|
|
164
|
-
|
|
165
|
-
&[dir="rtl"],
|
|
166
|
-
[dir="rtl"] & {
|
|
167
|
-
padding-right: $input-with-icon-padding;
|
|
168
|
-
padding-left: $input-with-icon-padding;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// Default theme
|
|
174
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
175
|
-
.withStartIconAdornment {
|
|
176
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
177
|
-
.startIconAdornment {
|
|
178
|
-
color: $color-purple-800;
|
|
179
|
-
opacity: 0.5;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
183
|
-
&.withDisabled {
|
|
184
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
185
|
-
.startIconAdornment {
|
|
186
|
-
opacity: 0.3;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
191
|
-
&:hover:not(.withDisabled),
|
|
192
|
-
&:focus-within:not(.withDisabled) {
|
|
193
|
-
.startIconAdornment {
|
|
194
|
-
opacity: 0.7;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// Reversed
|
|
200
|
-
.withStartIconAdornment.withReversed {
|
|
201
|
-
.startIconAdornment {
|
|
202
|
-
color: $color-white;
|
|
203
|
-
opacity: 1;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&.withDisabled {
|
|
207
|
-
.startIconAdornment {
|
|
208
|
-
opacity: 0.3;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&:hover:not(.withDisabled),
|
|
213
|
-
&:focus-within:not(.withDisabled) {
|
|
214
|
-
.startIconAdornment {
|
|
215
|
-
opacity: 1;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
///////////////////////////////////////////////////
|
|
220
|
-
// THEMES
|
|
221
|
-
///////////////////////////////////////////////////
|
|
222
|
-
|
|
223
|
-
// Default
|
|
224
|
-
.input.default {
|
|
225
|
-
background-color: $color-white;
|
|
226
|
-
color: $color-purple-800;
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
|
|
230
|
-
@include form-input-placeholder {
|
|
231
|
-
color: $color-purple-800;
|
|
232
|
-
opacity: $input-placeholder-opacity;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
@include form-input-focus-state {
|
|
236
|
-
background-color: $color-gray-200;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&:focus + .focusRing {
|
|
240
|
-
border-color: $color-blue-500;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&.disabled {
|
|
244
|
-
background-color: $color-white;
|
|
245
|
-
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
246
|
-
color: rgba($color-purple-800-rgb, $input-disabled-opacity);
|
|
247
|
-
|
|
248
|
-
@include form-input-placeholder {
|
|
249
|
-
opacity: $input-disabled-opacity;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&:not(.error):not(.caution) {
|
|
254
|
-
border-color: $color-gray-500;
|
|
255
|
-
|
|
256
|
-
&:disabled {
|
|
257
|
-
border-color: rgba($color-gray-500-rgb, $input-disabled-opacity);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@include form-input-focus-state {
|
|
261
|
-
border-color: $color-gray-600;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&.error {
|
|
266
|
-
border-color: $color-red-500;
|
|
267
|
-
|
|
268
|
-
&.disabled {
|
|
269
|
-
border-color: rgba($color-red-500-rgb, $input-disabled-opacity);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
&.caution {
|
|
274
|
-
border-color: $color-yellow-600;
|
|
275
|
-
|
|
276
|
-
&.disabled {
|
|
277
|
-
border-color: rgba($color-yellow-600-rgb, $input-disabled-opacity);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
// Reversed (Dark Backgrounds)
|
|
283
|
-
.input.reversed {
|
|
284
|
-
background: transparent;
|
|
285
|
-
color: $color-white;
|
|
286
|
-
|
|
287
|
-
@include form-input-placeholder {
|
|
288
|
-
color: $color-white;
|
|
289
|
-
opacity: $input-placeholder-opacity;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
@include form-input-focus-state {
|
|
293
|
-
background: rgba($color-white-rgb, 0.1);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
&:focus + .focusRing {
|
|
297
|
-
border-color: $color-blue-300;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
&:not(.error):not(.caution) {
|
|
301
|
-
border-color: rgba($color-white-rgb, 0.65);
|
|
302
|
-
|
|
303
|
-
&:disabled {
|
|
304
|
-
border-color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
@include form-input-focus-state {
|
|
308
|
-
border-color: $color-white;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
&.disabled {
|
|
313
|
-
background: transparent;
|
|
314
|
-
color: rgba($color-white-rgb, $input-disabled-opacity);
|
|
315
|
-
|
|
316
|
-
@include form-input-placeholder {
|
|
317
|
-
opacity: $input-disabled-opacity;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
&.error {
|
|
322
|
-
border-color: $color-red-300;
|
|
323
|
-
|
|
324
|
-
&.disabled {
|
|
325
|
-
border-color: rgba($color-red-300-rgb, $input-disabled-opacity);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
&.caution {
|
|
330
|
-
border-color: $color-yellow-400;
|
|
331
|
-
|
|
332
|
-
&.disabled {
|
|
333
|
-
border-color: rgba($color-yellow-400-rgb, $input-disabled-opacity);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/spacing";
|
|
2
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
3
|
-
|
|
4
|
-
$thumb-color: $color-blue-500;
|
|
5
|
-
$thumb-color-hover: $color-blue-600;
|
|
6
|
-
$thumb-radius: 100%;
|
|
7
|
-
$thumb-border-width: 4px;
|
|
8
|
-
$thumb-border-color: $color-white;
|
|
9
|
-
$thumb-height: 26px;
|
|
10
|
-
$thumb-width: 26px;
|
|
11
|
-
$thumb-height-with-border: $thumb-height + ($thumb-border-width * 2);
|
|
12
|
-
$thumb-width-with-border: $thumb-width + ($thumb-border-width * 2);
|
|
13
|
-
|
|
14
|
-
// The range
|
|
15
|
-
$track-color: $color-gray-500;
|
|
16
|
-
$track-radius: 4px;
|
|
17
|
-
|
|
18
|
-
@mixin track {
|
|
19
|
-
width: auto;
|
|
20
|
-
height: 0;
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
border-top: 1px solid $track-color;
|
|
23
|
-
border-bottom: 2px solid $track-color;
|
|
24
|
-
border-radius: $track-radius;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin thumb {
|
|
28
|
-
box-sizing: content-box;
|
|
29
|
-
width: $thumb-width;
|
|
30
|
-
height: $thumb-height;
|
|
31
|
-
border: $thumb-border-width solid $thumb-border-color;
|
|
32
|
-
border-radius: $thumb-radius;
|
|
33
|
-
background: $thumb-color;
|
|
34
|
-
|
|
35
|
-
&:not(:disabled) {
|
|
36
|
-
transition: all 0.2s;
|
|
37
|
-
transition-property: background, height, width;
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
background: $thumb-color-hover;
|
|
41
|
-
width: $thumb-height + 6px;
|
|
42
|
-
height: $thumb-width + 6px;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@mixin hiddenThumb {
|
|
48
|
-
width: 0;
|
|
49
|
-
height: 0;
|
|
50
|
-
border: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
//extra input[type="range"] is required to override materialize.css in performance-ui
|
|
54
|
-
input[type="range"].ratingScaleRange {
|
|
55
|
-
all: unset;
|
|
56
|
-
appearance: none;
|
|
57
|
-
width: 100%;
|
|
58
|
-
margin: 0; //performance-ui materialize override
|
|
59
|
-
|
|
60
|
-
&.disabled {
|
|
61
|
-
opacity: 0.4;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&::-moz-focus-outer {
|
|
65
|
-
border: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:focus {
|
|
69
|
-
outline: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:global(.js-focus-visible) &:global(.focus-visible) {
|
|
73
|
-
outline: 2px solid $color-blue-500;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&::-webkit-slider-runnable-track {
|
|
77
|
-
@include track;
|
|
78
|
-
margin: $spacing-sm 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&::-moz-range-track {
|
|
82
|
-
@include track;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&::-webkit-slider-thumb {
|
|
86
|
-
@include thumb;
|
|
87
|
-
-webkit-appearance: none;
|
|
88
|
-
margin-top: ($thumb-height-with-border/2) * -1;
|
|
89
|
-
}
|
|
90
|
-
&::-moz-range-thumb {
|
|
91
|
-
@include thumb;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&.hideThumb::-webkit-slider-thumb {
|
|
95
|
-
@include hiddenThumb;
|
|
96
|
-
}
|
|
97
|
-
&.hideThumb::-moz-range-thumb {
|
|
98
|
-
@include hiddenThumb;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&::-ms-track {
|
|
102
|
-
@include track;
|
|
103
|
-
color: transparent;
|
|
104
|
-
border-width: $thumb-width 0;
|
|
105
|
-
border-color: transparent;
|
|
106
|
-
background: transparent;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&::-ms-fill-lower {
|
|
110
|
-
border: none;
|
|
111
|
-
border-radius: $track-radius * 2;
|
|
112
|
-
background: $track-color;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&::-ms-fill-upper {
|
|
116
|
-
border: none;
|
|
117
|
-
border-radius: $track-radius * 2;
|
|
118
|
-
background: $track-color;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&::-ms-thumb {
|
|
122
|
-
@include thumb;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.spokes {
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: space-between;
|
|
129
|
-
padding: 0 $thumb-width-with-border/2 $spacing-sm;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.spokes.disabled {
|
|
133
|
-
opacity: 0.4;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.spokeContainer {
|
|
137
|
-
display: flex;
|
|
138
|
-
align-items: center;
|
|
139
|
-
justify-content: center;
|
|
140
|
-
width: 1px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.spoke {
|
|
144
|
-
width: 0;
|
|
145
|
-
height: 0;
|
|
146
|
-
background: $track-color;
|
|
147
|
-
border: 2px solid $track-color;
|
|
148
|
-
border-radius: 100%;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.labelsContainer {
|
|
152
|
-
display: flex;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
width: 100%;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.sliderLabels {
|
|
158
|
-
width: 100%;
|
|
159
|
-
display: flex;
|
|
160
|
-
justify-content: space-between;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.sliderLabels.disabled {
|
|
164
|
-
opacity: 0.4;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// If the .visually-hidden class is applied to natively focusable elements
|
|
168
|
-
// (such as a, button, input, etc) they must become visible when they receive
|
|
169
|
-
// keyboard focus. Otherwise, a sighted keyboard user would have to try and
|
|
170
|
-
// figure out where their visible focus indicator had gone to.
|
|
171
|
-
.visuallyHidden:not(:focus):not(:active) {
|
|
172
|
-
clip: rect(0, 0, 0, 0);
|
|
173
|
-
clip-path: inset(50%);
|
|
174
|
-
position: absolute;
|
|
175
|
-
width: 1px;
|
|
176
|
-
height: 1px;
|
|
177
|
-
padding: 0;
|
|
178
|
-
overflow: hidden;
|
|
179
|
-
white-space: nowrap;
|
|
180
|
-
border: 0;
|
|
181
|
-
}
|