@kaizen/components 1.67.1 → 1.67.2
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/cjs/TextField/TextField.cjs +2 -2
- package/dist/cjs/TextField/TextField.module.scss.cjs +4 -6
- package/dist/esm/TextField/TextField.mjs +2 -2
- package/dist/esm/TextField/TextField.module.scss.mjs +4 -6
- package/dist/styles.css +245 -458
- package/package.json +3 -3
- package/src/Avatar/Avatar.module.scss +4 -4
- package/src/Checkbox/Checkbox/Checkbox.module.scss +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +9 -10
- package/src/GuidanceBlock/GuidanceBlock.module.scss +4 -5
- package/src/Input/InputRange/InputRange.module.scss +4 -4
- package/src/Input/InputSearch/InputSearch.module.scss +21 -21
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +7 -8
- package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
- package/src/Modal/GenericModal/GenericModal.module.scss +8 -8
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
- package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +7 -8
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +2 -2
- package/src/Select/Select.module.scss +7 -7
- package/src/Table/Table.module.scss +11 -7
- package/src/TextArea/TextArea.module.scss +4 -4
- package/src/TextField/TextField.module.scss +10 -36
- package/src/TextField/TextField.tsx +2 -4
- package/src/TextField/_docs/TextField.stickersheet.stories.tsx +9 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -8
- package/src/TitleBlockZen/TitleBlockZen.module.scss +14 -21
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +2 -2
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.67.
|
|
3
|
+
"version": "1.67.2",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"svgo": "^3.3.2",
|
|
120
120
|
"tslib": "^2.7.0",
|
|
121
121
|
"tsx": "^4.19.1",
|
|
122
|
-
"@kaizen/
|
|
123
|
-
"@kaizen/
|
|
122
|
+
"@kaizen/design-tokens": "10.8.0",
|
|
123
|
+
"@kaizen/package-bundler": "1.1.7"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"@cultureamp/i18n-react-intl": "^2.5.9",
|
|
@@ -10,11 +10,11 @@ $dt-color-checkbox-background-color-checked: $color-gray-500;
|
|
|
10
10
|
|
|
11
11
|
// override bootstrap styles
|
|
12
12
|
.checkbox.checkbox {
|
|
13
|
-
@include form-input-visually-hidden;
|
|
14
|
-
|
|
15
13
|
width: $checkbox-size;
|
|
16
14
|
height: $checkbox-size;
|
|
17
15
|
margin: 0;
|
|
16
|
+
|
|
17
|
+
@include form-input-visually-hidden;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.checkbox:disabled {
|
|
@@ -11,17 +11,20 @@ $focus-ring-offset: 1px;
|
|
|
11
11
|
|
|
12
12
|
-webkit-font-smoothing: antialiased;
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
font-family: $typography-button-secondary-font-family;
|
|
15
|
-
font-weight: $typography-button-secondary-font-weight;
|
|
16
|
-
font-size: $typography-button-secondary-font-size;
|
|
17
|
-
line-height: $typography-button-secondary-line-height;
|
|
18
|
-
letter-spacing: $typography-button-secondary-letter-spacing;
|
|
19
14
|
position: relative;
|
|
20
|
-
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: $spacing-xs;
|
|
21
18
|
border: $border-solid-border-width $border-solid-border-style;
|
|
22
19
|
border-color: $border-borderless-border-color;
|
|
23
20
|
border-radius: $border-solid-border-radius;
|
|
24
21
|
padding: $spacing-4 $spacing-8;
|
|
22
|
+
font-weight: $typography-button-secondary-font-weight;
|
|
23
|
+
font-family: $typography-button-secondary-font-family;
|
|
24
|
+
font-size: $typography-button-secondary-font-size;
|
|
25
|
+
line-height: $typography-button-secondary-line-height;
|
|
26
|
+
letter-spacing: $typography-button-secondary-letter-spacing;
|
|
27
|
+
color: $color-blue-500;
|
|
25
28
|
|
|
26
29
|
&:focus {
|
|
27
30
|
outline: none;
|
|
@@ -48,10 +51,6 @@ $focus-ring-offset: 1px;
|
|
|
48
51
|
inset: calc(-1 * #{$focus-ring-offset});
|
|
49
52
|
}
|
|
50
53
|
|
|
51
|
-
display: inline-flex;
|
|
52
|
-
gap: $spacing-xs;
|
|
53
|
-
align-items: center;
|
|
54
|
-
|
|
55
54
|
// TODO: copied from Calendar button since the design is not settled
|
|
56
55
|
&.isDisabled {
|
|
57
56
|
pointer-events: none;
|
|
@@ -178,6 +178,10 @@ $scene-illustration-size: 300px;
|
|
|
178
178
|
@include button-reset;
|
|
179
179
|
|
|
180
180
|
cursor: pointer;
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: $spacing-sm;
|
|
183
|
+
right: $spacing-sm;
|
|
184
|
+
color: $color-purple-800;
|
|
181
185
|
|
|
182
186
|
.icon {
|
|
183
187
|
opacity: 70%;
|
|
@@ -207,11 +211,6 @@ $scene-illustration-size: 300px;
|
|
|
207
211
|
}
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
|
-
|
|
211
|
-
position: absolute;
|
|
212
|
-
top: $spacing-sm;
|
|
213
|
-
right: $spacing-sm;
|
|
214
|
-
color: $color-purple-800;
|
|
215
214
|
}
|
|
216
215
|
|
|
217
216
|
.default {
|
|
@@ -74,9 +74,9 @@ input[type="range"].ratingScaleRange {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&::-webkit-slider-runnable-track {
|
|
77
|
-
@include track;
|
|
78
|
-
|
|
79
77
|
margin: $spacing-sm 0;
|
|
78
|
+
|
|
79
|
+
@include track;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&::-moz-range-track {
|
|
@@ -84,10 +84,10 @@ input[type="range"].ratingScaleRange {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&::-webkit-slider-thumb {
|
|
87
|
-
@include thumb;
|
|
88
|
-
|
|
89
87
|
-webkit-appearance: none;
|
|
90
88
|
margin-top: calc((#{$thumb-height-with-border}/ 2) * -1);
|
|
89
|
+
|
|
90
|
+
@include thumb;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&::-moz-range-thumb {
|
|
@@ -29,10 +29,6 @@ $classname--input: '.input[type="search"]';
|
|
|
29
29
|
#{$classname--input} {
|
|
30
30
|
@include form-input-reset;
|
|
31
31
|
|
|
32
|
-
@include form-input-placeholder {
|
|
33
|
-
opacity: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
32
|
display: flex;
|
|
37
33
|
align-items: center;
|
|
38
34
|
height: $input-height;
|
|
@@ -44,6 +40,10 @@ $classname--input: '.input[type="search"]';
|
|
|
44
40
|
font-size: 1rem;
|
|
45
41
|
line-height: 1.5;
|
|
46
42
|
|
|
43
|
+
@include form-input-placeholder {
|
|
44
|
+
opacity: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
47
|
&::-webkit-search-cancel-button {
|
|
48
48
|
-webkit-appearance: none;
|
|
49
49
|
}
|
|
@@ -113,14 +113,14 @@ $classname--input: '.input[type="search"]';
|
|
|
113
113
|
// Default
|
|
114
114
|
.default {
|
|
115
115
|
#{$classname--input} {
|
|
116
|
+
border-color: $color-gray-500;
|
|
117
|
+
background-color: $color-white;
|
|
118
|
+
color: $color-purple-800;
|
|
119
|
+
|
|
116
120
|
@include form-input-placeholder {
|
|
117
121
|
color: $color-purple-800;
|
|
118
122
|
opacity: $input-placeholder-opacity--default;
|
|
119
123
|
}
|
|
120
|
-
|
|
121
|
-
border-color: $color-gray-500;
|
|
122
|
-
background-color: $color-white;
|
|
123
|
-
color: $color-purple-800;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.focusRing {
|
|
@@ -135,12 +135,12 @@ $classname--input: '.input[type="search"]';
|
|
|
135
135
|
&:hover,
|
|
136
136
|
&:focus-within {
|
|
137
137
|
#{$classname--input} {
|
|
138
|
+
border-color: $color-gray-600;
|
|
139
|
+
background-color: $color-gray-200;
|
|
140
|
+
|
|
138
141
|
@include form-input-placeholder {
|
|
139
142
|
opacity: 100%;
|
|
140
143
|
}
|
|
141
|
-
|
|
142
|
-
border-color: $color-gray-600;
|
|
143
|
-
background-color: $color-gray-200;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.startIconAdornment {
|
|
@@ -152,14 +152,14 @@ $classname--input: '.input[type="search"]';
|
|
|
152
152
|
// Secondary
|
|
153
153
|
.secondary {
|
|
154
154
|
#{$classname--input} {
|
|
155
|
+
border-color: transparent;
|
|
156
|
+
background-color: $color-gray-200;
|
|
157
|
+
color: $color-purple-800;
|
|
158
|
+
|
|
155
159
|
@include form-input-placeholder {
|
|
156
160
|
color: $color-purple-800;
|
|
157
161
|
opacity: $input-placeholder-opacity--default;
|
|
158
162
|
}
|
|
159
|
-
|
|
160
|
-
border-color: transparent;
|
|
161
|
-
background-color: $color-gray-200;
|
|
162
|
-
color: $color-purple-800;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.focusRing {
|
|
@@ -174,12 +174,12 @@ $classname--input: '.input[type="search"]';
|
|
|
174
174
|
&:hover,
|
|
175
175
|
&:focus-within {
|
|
176
176
|
#{$classname--input} {
|
|
177
|
+
border-color: transparent;
|
|
178
|
+
background-color: $color-gray-300;
|
|
179
|
+
|
|
177
180
|
@include form-input-placeholder {
|
|
178
181
|
opacity: 100%;
|
|
179
182
|
}
|
|
180
|
-
|
|
181
|
-
border-color: transparent;
|
|
182
|
-
background-color: $color-gray-300;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.startIconAdornment {
|
|
@@ -191,13 +191,13 @@ $classname--input: '.input[type="search"]';
|
|
|
191
191
|
// Reversed
|
|
192
192
|
.reversed {
|
|
193
193
|
#{$classname--input} {
|
|
194
|
+
background: rgba($color-white-rgb, 0.1);
|
|
195
|
+
color: $color-white;
|
|
196
|
+
|
|
194
197
|
@include form-input-placeholder {
|
|
195
198
|
color: $color-white;
|
|
196
199
|
opacity: $input-placeholder-opacity--reversed;
|
|
197
200
|
}
|
|
198
|
-
|
|
199
|
-
background: rgba($color-white-rgb, 0.1);
|
|
200
|
-
color: $color-white;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.focusRing {
|
|
@@ -170,6 +170,13 @@ $blue-fifth: $color-blue-500;
|
|
|
170
170
|
.likertItem {
|
|
171
171
|
margin-right: 2px;
|
|
172
172
|
margin-left: 2px;
|
|
173
|
+
font-size: 1px;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
padding: 0;
|
|
176
|
+
overflow-x: visible;
|
|
177
|
+
display: inline-block;
|
|
178
|
+
width: 18.5%; // 5 columns
|
|
179
|
+
position: relative;
|
|
173
180
|
|
|
174
181
|
&[dir="rtl"],
|
|
175
182
|
[dir="rtl"] & {
|
|
@@ -184,14 +191,6 @@ $blue-fifth: $color-blue-500;
|
|
|
184
191
|
|
|
185
192
|
@include fill($block-height);
|
|
186
193
|
|
|
187
|
-
font-size: 1px;
|
|
188
|
-
line-height: 1;
|
|
189
|
-
padding: 0;
|
|
190
|
-
overflow-x: visible;
|
|
191
|
-
display: inline-block;
|
|
192
|
-
width: 18.5%; // 5 columns
|
|
193
|
-
position: relative;
|
|
194
|
-
|
|
195
194
|
&:first-child {
|
|
196
195
|
margin-right: 2px;
|
|
197
196
|
margin-left: 0;
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.animatingEnter & {
|
|
17
|
-
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
18
|
-
|
|
19
17
|
animation-duration: $ca-duration-fast;
|
|
20
18
|
animation-fill-mode: forwards;
|
|
21
19
|
animation-timing-function: $ca-bounce-in;
|
|
20
|
+
|
|
21
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.animatingLeave & {
|
|
25
|
-
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
26
|
-
|
|
27
25
|
animation-duration: $ca-duration-rapid;
|
|
28
26
|
animation-fill-mode: forwards;
|
|
29
27
|
animation-timing-function: $ca-bounce-out;
|
|
28
|
+
|
|
29
|
+
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.backdropLayer {
|
|
17
|
-
@include ca-position($start: 0, $end: 0, $top: 0, $bottom: 0);
|
|
18
|
-
|
|
19
17
|
position: fixed;
|
|
20
18
|
background-color: #000;
|
|
21
19
|
opacity: 50%;
|
|
22
20
|
z-index: $ca-z-index-modal-backdrop;
|
|
23
|
-
}
|
|
24
21
|
|
|
25
|
-
.scrollLayer {
|
|
26
22
|
@include ca-position($start: 0, $end: 0, $top: 0, $bottom: 0);
|
|
23
|
+
}
|
|
27
24
|
|
|
25
|
+
.scrollLayer {
|
|
28
26
|
position: fixed;
|
|
29
27
|
display: flex;
|
|
30
28
|
align-items: center;
|
|
31
29
|
z-index: $ca-z-index-modal;
|
|
32
30
|
overflow-y: auto;
|
|
31
|
+
|
|
32
|
+
@include ca-position($start: 0, $end: 0, $top: 0, $bottom: 0);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.modalLayer {
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
[data-modal] {
|
|
87
|
-
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
88
|
-
|
|
89
87
|
animation-duration: $ca-duration-fast;
|
|
90
88
|
animation-fill-mode: forwards;
|
|
91
89
|
animation-timing-function: $ca-bounce-in;
|
|
90
|
+
|
|
91
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -104,11 +104,11 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
[data-modal] {
|
|
107
|
-
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
108
|
-
|
|
109
107
|
animation-duration: $ca-duration-rapid;
|
|
110
108
|
animation-fill-mode: forwards;
|
|
111
109
|
animation-timing-function: $ca-bounce-out;
|
|
110
|
+
|
|
111
|
+
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
max-width: 600px;
|
|
11
11
|
|
|
12
12
|
.animatingEnter & {
|
|
13
|
-
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
14
|
-
|
|
15
13
|
animation-duration: $ca-duration-fast;
|
|
16
14
|
animation-fill-mode: forwards;
|
|
17
15
|
animation-timing-function: $ca-bounce-in;
|
|
16
|
+
|
|
17
|
+
@include ca-animation(fade($from: 0, $to: 1), zoom($from: 0.5, $to: 1));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.animatingLeave & {
|
|
21
|
-
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
22
|
-
|
|
23
21
|
animation-duration: $ca-duration-rapid;
|
|
24
22
|
animation-fill-mode: forwards;
|
|
25
23
|
animation-timing-function: $ca-bounce-out;
|
|
24
|
+
|
|
25
|
+
@include ca-animation(fade($from: 1, $to: 0), zoom($from: 1, $to: 0.5));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -282,13 +282,16 @@ $notification-slide-right: transform 300ms ease-out;
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
%ca-notification__cancel {
|
|
285
|
+
cursor: pointer;
|
|
285
286
|
appearance: none;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
font: inherit;
|
|
287
|
+
transition: none;
|
|
288
|
+
transform: none;
|
|
289
289
|
margin: 0;
|
|
290
290
|
padding: 0;
|
|
291
|
-
|
|
291
|
+
border: none;
|
|
292
|
+
background: transparent;
|
|
293
|
+
font: inherit;
|
|
294
|
+
color: $color-purple-800;
|
|
292
295
|
|
|
293
296
|
.icon {
|
|
294
297
|
opacity: 70%;
|
|
@@ -319,10 +322,6 @@ $notification-slide-right: transform 300ms ease-out;
|
|
|
319
322
|
}
|
|
320
323
|
}
|
|
321
324
|
|
|
322
|
-
cursor: pointer;
|
|
323
|
-
color: $color-purple-800;
|
|
324
|
-
transform: none;
|
|
325
|
-
|
|
326
325
|
&:active {
|
|
327
326
|
transform: translateY(1px);
|
|
328
327
|
}
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
@import "../mixins";
|
|
7
7
|
|
|
8
8
|
.editor > :global(.ProseMirror) {
|
|
9
|
-
@include content-styles;
|
|
10
|
-
|
|
11
9
|
border-radius: $border-solid-border-radius;
|
|
12
10
|
padding: $spacing-sm calc(#{$spacing-xs} * 3);
|
|
13
11
|
position: relative;
|
|
@@ -15,6 +13,8 @@
|
|
|
15
13
|
background-color $animation-duration-immediate,
|
|
16
14
|
border-color $animation-duration-immediate;
|
|
17
15
|
|
|
16
|
+
@include content-styles;
|
|
17
|
+
|
|
18
18
|
&:hover,
|
|
19
19
|
&:focus-visible {
|
|
20
20
|
border-color: $color-gray-600;
|
|
@@ -47,15 +47,15 @@ $focus-border-color: $color-blue-500;
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.control {
|
|
50
|
-
&.disabled {
|
|
51
|
-
opacity: 30%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
50
|
min-height: $input-height;
|
|
55
51
|
border: $border-solid-border-width $border-solid-border-style
|
|
56
52
|
$color-gray-500;
|
|
57
53
|
border-radius: $border-solid-border-radius;
|
|
58
54
|
|
|
55
|
+
&.disabled {
|
|
56
|
+
opacity: 30%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
59
|
&:hover {
|
|
60
60
|
border-color: $color-gray-600;
|
|
61
61
|
background-color: $color-gray-100;
|
|
@@ -148,12 +148,12 @@ $focus-border-color: $color-blue-500;
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.selectedOption {
|
|
151
|
+
font-weight: $typography-paragraph-bold-font-weight;
|
|
152
|
+
color: $color-blue-500;
|
|
153
|
+
|
|
151
154
|
&:not(.focusedOption) {
|
|
152
155
|
background-color: transparent;
|
|
153
156
|
}
|
|
154
|
-
|
|
155
|
-
font-weight: $typography-paragraph-bold-font-weight;
|
|
156
|
-
color: $color-blue-500;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.disabledOption {
|
|
@@ -14,7 +14,9 @@ $row-height-data-variant: 48px;
|
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
color: $color-purple-800;
|
|
16
16
|
display: block;
|
|
17
|
+
}
|
|
17
18
|
|
|
19
|
+
@mixin anchor-reset-pseudo-states {
|
|
18
20
|
&:hover,
|
|
19
21
|
&:active,
|
|
20
22
|
&:focus {
|
|
@@ -94,6 +96,8 @@ $row-height-data-variant: 48px;
|
|
|
94
96
|
// Ensures that the 100% doesn't go outside of the `headerRowCell` width
|
|
95
97
|
box-sizing: border-box;
|
|
96
98
|
|
|
99
|
+
@include anchor-reset-pseudo-states;
|
|
100
|
+
|
|
97
101
|
&:focus-visible {
|
|
98
102
|
outline: none;
|
|
99
103
|
position: relative;
|
|
@@ -161,8 +165,12 @@ $row-height-data-variant: 48px;
|
|
|
161
165
|
|
|
162
166
|
.card {
|
|
163
167
|
@include button-reset;
|
|
168
|
+
// These css properties are required for when the rows are anchor elements
|
|
169
|
+
@include anchor-reset;
|
|
164
170
|
|
|
165
|
-
|
|
171
|
+
// This is an optical hack to stop the card shadow from overlapping over
|
|
172
|
+
// the proceeding cards
|
|
173
|
+
box-shadow: 0 4px 6px rgba(53, 55, 74, 0.04);
|
|
166
174
|
border: solid 1px rgba($color-purple-700-rgb, 0.1);
|
|
167
175
|
transition:
|
|
168
176
|
box-shadow $animation-duration-rapid,
|
|
@@ -170,13 +178,9 @@ $row-height-data-variant: 48px;
|
|
|
170
178
|
margin $animation-duration-rapid,
|
|
171
179
|
padding $animation-duration-rapid,
|
|
172
180
|
width $animation-duration-rapid;
|
|
181
|
+
background: $color-white;
|
|
173
182
|
|
|
174
|
-
|
|
175
|
-
// the proceeding cards
|
|
176
|
-
box-shadow: 0 4px 6px rgba(53, 55, 74, 0.04);
|
|
177
|
-
|
|
178
|
-
// These css properties are required for when the rows are anchor elements
|
|
179
|
-
@include anchor-reset;
|
|
183
|
+
@include anchor-reset-pseudo-states;
|
|
180
184
|
|
|
181
185
|
&:not(:first-child) {
|
|
182
186
|
margin-top: -1px;
|
|
@@ -91,15 +91,15 @@ $input-disabled-border-alpha: 50%;
|
|
|
91
91
|
|
|
92
92
|
// Reversed (Dark Backgrounds)
|
|
93
93
|
.textarea.reversed {
|
|
94
|
+
border-color: rgba($color-white-rgb, 0.65);
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: $color-white;
|
|
97
|
+
|
|
94
98
|
@include form-input-focus-state {
|
|
95
99
|
background: rgba($color-white-rgb, 0.1);
|
|
96
100
|
border-color: $color-white;
|
|
97
101
|
}
|
|
98
102
|
|
|
99
|
-
border-color: rgba($color-white-rgb, 0.65);
|
|
100
|
-
background: transparent;
|
|
101
|
-
color: $color-white;
|
|
102
|
-
|
|
103
103
|
@include form-input-placeholder {
|
|
104
104
|
line-height: 1.5;
|
|
105
105
|
color: $color-white;
|
|
@@ -1,49 +1,23 @@
|
|
|
1
|
-
@import "~@kaizen/design-tokens/sass/color";
|
|
2
1
|
@import "../../styles/utils/animation";
|
|
3
|
-
@import "../../styles/utils/legacy/layout";
|
|
4
|
-
@import "../../styles/utils/legacy/type";
|
|
5
|
-
|
|
6
|
-
@mixin input-icon($color, $reversed) {
|
|
7
|
-
color: $color;
|
|
8
|
-
|
|
9
|
-
.withReversed & {
|
|
10
|
-
color: $reversed;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
2
|
|
|
14
3
|
.input {
|
|
15
|
-
margin-top:
|
|
4
|
+
margin-top: var(--spacing-6);
|
|
16
5
|
}
|
|
17
6
|
|
|
18
|
-
|
|
7
|
+
.icon {
|
|
8
|
+
color: var(--textfield-icon-color);
|
|
19
9
|
|
|
20
|
-
///////////////////////////////////////////////////
|
|
21
|
-
// VALIDATION STYLES
|
|
22
|
-
///////////////////////////////////////////////////
|
|
23
|
-
.success {
|
|
24
|
-
@include input-icon($color-green-500, $color-green-400);
|
|
25
10
|
@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
11
|
}
|
|
34
12
|
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
@include ca-animation-fade(in);
|
|
38
|
-
}
|
|
13
|
+
.success {
|
|
14
|
+
--textfield-icon-color: var(--color-green-500);
|
|
39
15
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
16
|
+
.reversed & {
|
|
17
|
+
--textfield-icon-color: var(--color-green-400);
|
|
18
|
+
}
|
|
43
19
|
}
|
|
44
20
|
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
opacity: $input-disabled-opacity;
|
|
48
|
-
}
|
|
21
|
+
.disabled {
|
|
22
|
+
opacity: 0.3;
|
|
49
23
|
}
|
|
@@ -62,10 +62,7 @@ export const TextField = ({
|
|
|
62
62
|
id={`${id}-field-group`}
|
|
63
63
|
data-testid={`${id}-field-group`}
|
|
64
64
|
inline={inline}
|
|
65
|
-
classNameOverride={classnames(
|
|
66
|
-
styles.withLabel,
|
|
67
|
-
disabled && styles.withDisabled
|
|
68
|
-
)}
|
|
65
|
+
classNameOverride={classnames(reversed && styles.reversed)}
|
|
69
66
|
>
|
|
70
67
|
<Label
|
|
71
68
|
id={`${id}-field-label`}
|
|
@@ -88,6 +85,7 @@ export const TextField = ({
|
|
|
88
85
|
status === "success" && (
|
|
89
86
|
<div
|
|
90
87
|
className={classnames(
|
|
88
|
+
styles.icon,
|
|
91
89
|
styles.success,
|
|
92
90
|
disabled && styles.disabled
|
|
93
91
|
)}
|
|
@@ -34,7 +34,7 @@ const StickerSheetTemplate: StickerSheetStory = {
|
|
|
34
34
|
render: ({ isReversed }) => (
|
|
35
35
|
<StickerSheet isReversed={isReversed}>
|
|
36
36
|
<StickerSheet.Header
|
|
37
|
-
headings={["Default", "Hover", "Active", "Focus"]}
|
|
37
|
+
headings={["Default", "Hover", "Active", "Focus", "Disabled"]}
|
|
38
38
|
hasVerticalHeadings
|
|
39
39
|
/>
|
|
40
40
|
<StickerSheet.Body>
|
|
@@ -71,6 +71,14 @@ const StickerSheetTemplate: StickerSheetStory = {
|
|
|
71
71
|
validationMessage="A valid question"
|
|
72
72
|
data-sb-pseudo-styles="focus"
|
|
73
73
|
/>
|
|
74
|
+
<TextFieldExampleGroup
|
|
75
|
+
reversed={isReversed}
|
|
76
|
+
labelText="TextField"
|
|
77
|
+
description="A short description"
|
|
78
|
+
status={status}
|
|
79
|
+
validationMessage="A valid question"
|
|
80
|
+
disabled
|
|
81
|
+
/>
|
|
74
82
|
</StickerSheet.Row>
|
|
75
83
|
))}
|
|
76
84
|
</StickerSheet.Body>
|
|
@@ -13,19 +13,18 @@ $tilePaddingTop: $spacing-xl;
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.tile {
|
|
16
|
+
position: relative;
|
|
16
17
|
width: $tileWidth;
|
|
17
|
-
|
|
18
|
-
[data-tile-grid] & {
|
|
19
|
-
width: auto;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
height: $tileHeight;
|
|
23
|
-
position: relative;
|
|
24
|
-
box-shadow: $shadow-small-box-shadow;
|
|
25
|
-
background-color: $color-white;
|
|
26
19
|
transition: transform $ca-duration-slow $ca-default;
|
|
27
20
|
transform-style: preserve-3d;
|
|
21
|
+
box-shadow: $shadow-small-box-shadow;
|
|
28
22
|
border-radius: 7px;
|
|
23
|
+
background-color: $color-white;
|
|
24
|
+
|
|
25
|
+
[data-tile-grid] & {
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
29
28
|
|
|
30
29
|
@include ca-media-mobile {
|
|
31
30
|
width: 100%;
|