@kaizen/components 1.67.17 → 1.67.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.67.17",
3
+ "version": "1.67.19",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -7,19 +7,21 @@
7
7
  --empty-state-border-width: var(--border-width-1);
8
8
 
9
9
  display: flex;
10
- justify-content: space-around;
11
10
  width: 100%;
11
+ box-sizing: border-box;
12
+ justify-content: space-around;
12
13
  padding: calc(2% - var(--empty-state-border-width))
13
14
  calc(var(--spacing-24) - var(--empty-state-border-width));
14
15
  color: $color-purple-800;
15
16
  border: var(--empty-state-border-width) solid var(--empty-state-border-color);
16
17
  border-radius: var(--border-solid-border-radius);
17
18
  background-color: var(--empty-state-background-color);
19
+ flex-wrap: wrap;
18
20
 
19
21
  @include small {
20
22
  flex-direction: column;
21
23
  align-items: center;
22
- padding-block: calc(var(--spacing-24) - var(--empty-state-border-width));
24
+ padding: calc(var(--spacing-24) - var(--empty-state-border-width));
23
25
  }
24
26
 
25
27
  &.straightCorners {
@@ -82,29 +84,30 @@
82
84
 
83
85
  .illustrationSide,
84
86
  .textSide {
85
- display: inline-block;
87
+ display: flex;
88
+ box-sizing: border-box;
86
89
  }
87
90
 
88
91
  .illustrationSide {
89
- min-width: 224px;
90
- flex-grow: 0;
91
- flex-shrink: 1;
92
+ justify-content: center;
93
+ align-items: center;
94
+ flex: 0 1 auto;
95
+ min-width: 0;
96
+ max-width: 100%;
92
97
  margin-bottom: $spacing-md;
93
98
 
94
99
  @include small {
95
- width: 224px;
100
+ width: 100%;
101
+ max-width: 224px;
96
102
  }
97
103
 
98
104
  @include medium {
99
- display: flex;
100
105
  flex-direction: column;
101
106
  justify-content: center;
102
107
  align-items: flex-end;
103
108
  margin-bottom: 0;
104
- min-width: 40%;
105
- max-width: 50%;
106
- flex-grow: 1;
107
- box-sizing: border-box;
109
+ width: auto;
110
+ max-width: 40%;
108
111
  padding-inline-end: $spacing-md;
109
112
  }
110
113
 
@@ -128,32 +131,36 @@
128
131
  max-width: 100%;
129
132
  max-height: 366px;
130
133
  width: auto;
134
+ height: auto;
131
135
 
132
136
  // Fixes for IE11 Flexbox issues
133
137
  min-height: 196px;
134
138
 
135
139
  @include small {
136
140
  max-height: 196px;
141
+ width: 100%;
137
142
  }
138
143
  }
139
144
 
140
145
  .textSide {
141
- display: flex;
142
- flex-grow: 1;
143
- flex-shrink: 1;
146
+ flex: 1 1 auto;
147
+ min-width: 0;
148
+ max-width: 100%;
144
149
  align-items: center;
145
150
  -webkit-font-smoothing: antialiased;
146
151
 
147
152
  @include medium {
148
- flex-basis: 50%;
149
- flex-grow: 0;
153
+ flex: 0 1 50%;
150
154
  }
151
155
  }
152
156
 
153
157
  .textSideInner {
154
- flex-grow: 0;
155
- height: auto;
158
+ width: 100%;
159
+ max-width: 100%;
160
+ box-sizing: border-box;
156
161
  margin: 0 $spacing-sm;
162
+ word-wrap: break-word;
163
+ overflow-wrap: break-word;
157
164
 
158
165
  @include small {
159
166
  margin-bottom: 0;
@@ -166,6 +173,7 @@
166
173
 
167
174
  .heading {
168
175
  margin-bottom: $spacing-md;
176
+ max-width: 100%;
169
177
 
170
178
  @media (max-width: (375px)) {
171
179
  @include typography-heading-3-sm;
@@ -174,4 +182,5 @@
174
182
 
175
183
  .description {
176
184
  margin-bottom: $spacing-md;
185
+ max-width: 100%;
177
186
  }
@@ -1,27 +1,5 @@
1
- @import "~@kaizen/design-tokens/sass/shadow";
2
- @import "~@kaizen/design-tokens/sass/border";
3
- @import "~@kaizen/design-tokens/sass/layout";
4
- @import "~@kaizen/design-tokens/sass/color";
5
- @import "~@kaizen/design-tokens/sass/animation";
6
- @import "~@kaizen/design-tokens/sass/spacing";
7
- @import "../../styles/utils/responsive";
8
- @import "../../styles/utils/button-reset";
9
-
10
- @mixin guidance-block-under-480 {
11
- @media (max-width: 480px) {
12
- @content;
13
- }
14
- }
15
-
16
- $bannerPadding: $spacing-lg;
17
- $ca-banner-fade-out: opacity $animation-duration-slow ease;
18
- $ca-banner-collapse-height-delayed: margin-top $animation-duration-fast
19
- $animation-duration-slow ease;
20
- $illustration-size: 155px;
21
- $scene-illustration-size: 300px;
22
-
23
1
  .rightMargin {
24
- margin-right: $spacing-8;
2
+ margin-right: var(--spacing-8);
25
3
  }
26
4
 
27
5
  .noRightMargin {
@@ -34,30 +12,34 @@ $scene-illustration-size: 300px;
34
12
 
35
13
  .banner {
36
14
  --border-width: var(--border-width-1);
15
+ --banner-padding: var(--spacing-lg);
37
16
 
38
17
  display: flex;
39
18
  flex-direction: column;
40
- gap: $spacing-sm;
19
+ gap: var(--spacing-12);
41
20
  min-width: 320px;
42
- max-width: $layout-breakpoints-large;
21
+ max-width: var(--layout-breakpoints-large);
43
22
  border: var(--border-width) var(--border-solid-border-style);
44
- border-radius: $border-solid-border-radius;
45
- padding: calc(#{$bannerPadding} - var(--border-width));
46
- box-shadow: $shadow-small-box-shadow;
23
+ border-radius: var(--border-solid-border-radius);
24
+ padding: calc(var(--banner-padding) - var(--border-width));
25
+ box-shadow: var(--shadow-small-box-shadow);
47
26
  position: relative;
48
27
  top: -1px;
49
- transition: $ca-banner-fade-out, $ca-banner-collapse-height-delayed;
50
- color: $color-purple-800;
51
-
52
- @include ca-media-desktop {
53
- min-height: calc(12rem - calc(#{$bannerPadding} * 2));
28
+ transition:
29
+ opacity var(--animation-duration-slow) ease,
30
+ margin-top var(--animation-duration-fast) var(--animation-duration-slow)
31
+ ease;
32
+ color: var(--color-purple-800);
33
+
34
+ @media (width >= 1024px) {
35
+ min-height: calc(12rem - calc(var(--banner-padding) * 2));
54
36
  flex-direction: row;
55
- gap: $spacing-md;
37
+ gap: var(--spacing-24);
56
38
  width: auto;
57
39
  align-items: center;
58
40
  }
59
41
 
60
- @include ca-media-mobile {
42
+ @media (width >= 767px) {
61
43
  min-width: unset;
62
44
  }
63
45
  }
@@ -65,29 +47,32 @@ $scene-illustration-size: 300px;
65
47
  .illustrationWrapper {
66
48
  display: flex;
67
49
 
68
- @include ca-media-tablet {
50
+ @media (768px <= width <= 1023px) {
69
51
  text-align: center;
70
52
  justify-content: center;
71
53
  align-self: center;
72
- padding: $spacing-sm;
54
+ padding: var(--spacing-12);
73
55
  }
74
56
 
75
- @include ca-media-mobile {
57
+ @media (width <= 767px) {
76
58
  display: none;
77
59
  }
78
60
  }
79
61
 
80
62
  .illustration {
81
- width: $illustration-size;
82
- height: $illustration-size;
63
+ --illustration-size: 155px;
64
+ --scene-illustration-size: 300px;
65
+
66
+ width: var(--illustration-size);
67
+ height: var(--illustration-size);
83
68
 
84
- // This has been created to handle scene illustrations consistently until the tile component is created
69
+ /* This has been created to handle scene illustrations consistently until the tile component is created */
85
70
  .hasSceneIllustration & {
86
71
  display: flex;
87
72
  justify-content: center;
88
- max-width: $scene-illustration-size;
89
- max-height: $scene-illustration-size;
90
- width: $scene-illustration-size;
73
+ max-width: var(--scene-illustration-size);
74
+ max-height: var(--scene-illustration-size);
75
+ width: var(--scene-illustration-size);
91
76
  height: auto;
92
77
 
93
78
  figure {
@@ -110,19 +95,19 @@ $scene-illustration-size: 300px;
110
95
  align-self: center;
111
96
  max-width: 780px;
112
97
 
113
- @include ca-media-desktop {
114
- padding: 0 $spacing-sm;
98
+ @media (width >= 1024px) {
99
+ padding: 0 var(--spacing-12);
115
100
  text-align: left;
116
101
  }
117
102
 
118
- @include ca-media-mobile {
119
- margin: $spacing-sm;
103
+ @media (width <= 767px) {
104
+ margin: var(--spacing-12);
120
105
  max-width: 100%;
121
106
  }
122
107
 
123
108
  [dir="rtl"] & {
124
- @include ca-media-desktop {
125
- padding: 0 $spacing-sm;
109
+ @media (width >= 1024px) {
110
+ padding: 0 var(--spacing-12);
126
111
  text-align: right;
127
112
  }
128
113
  }
@@ -133,9 +118,9 @@ $scene-illustration-size: 300px;
133
118
  flex: 1;
134
119
  align-items: center;
135
120
  justify-content: space-between;
136
- gap: $spacing-md;
121
+ gap: var(--spacing-24);
137
122
 
138
- @include ca-media-tablet-and-under {
123
+ @media (width <= 1023px) {
139
124
  flex-direction: column;
140
125
  width: 100%;
141
126
  align-items: unset;
@@ -147,17 +132,17 @@ $scene-illustration-size: 300px;
147
132
  flex: 1 0 auto;
148
133
  justify-content: center;
149
134
  flex-direction: row-reverse;
150
- gap: $spacing-sm;
135
+ gap: var(--spacing-12);
151
136
  min-width: max-content;
152
137
 
153
- @include ca-media-tablet-and-up {
138
+ @media (width >= 768px) {
154
139
  text-align: center;
155
140
  }
156
141
 
157
- @include ca-media-mobile {
142
+ @media (width <= 767px) {
158
143
  flex-direction: column;
159
144
  width: 100%;
160
- margin-top: $spacing-xs;
145
+ margin-top: var(--spacing-6);
161
146
  }
162
147
 
163
148
  [dir="rtl"] & svg {
@@ -166,51 +151,12 @@ $scene-illustration-size: 300px;
166
151
  }
167
152
 
168
153
  .hidden {
169
- opacity: 0%;
154
+ opacity: 0;
170
155
  margin-bottom: 0;
171
156
  }
172
157
 
173
158
  .headingWrapper {
174
- margin-bottom: $spacing-md;
175
- }
176
-
177
- .cancel {
178
- @include button-reset;
179
-
180
- cursor: pointer;
181
- position: absolute;
182
- top: $spacing-sm;
183
- right: $spacing-sm;
184
- color: $color-purple-800;
185
-
186
- .icon {
187
- opacity: 70%;
188
- transition: $animation-duration-fast opacity;
189
- }
190
-
191
- &:disabled,
192
- &.disabled {
193
- .icon {
194
- opacity: 30%;
195
- }
196
- }
197
-
198
- &:not(:disabled, .disabled) {
199
- &:hover,
200
- &:focus,
201
- &.hover {
202
- .icon {
203
- opacity: 100%;
204
- }
205
- }
206
-
207
- &:active,
208
- &.active {
209
- .icon {
210
- opacity: 100%;
211
- }
212
- }
213
- }
159
+ margin-bottom: var(--spacing-24);
214
160
  }
215
161
 
216
162
  .default {
@@ -220,54 +166,54 @@ $scene-illustration-size: 300px;
220
166
 
221
167
  .positive {
222
168
  border-color: var(--color-green-500);
223
- background: $color-green-100;
169
+ background: var(--color-green-100);
224
170
  }
225
171
 
226
172
  .negative,
227
173
  .assertive {
228
174
  border-color: var(--color-red-500);
229
- background: $color-red-100;
175
+ background: var(--color-red-100);
230
176
  }
231
177
 
232
178
  .informative {
233
179
  border-color: var(--color-blue-400);
234
- background: $color-blue-100;
180
+ background: var(--color-blue-100);
235
181
  }
236
182
 
237
183
  .cautionary {
238
184
  border-color: var(--color-yellow-700);
239
- background: $color-yellow-100;
185
+ background: var(--color-yellow-100);
240
186
  }
241
187
 
242
188
  .prominent {
243
189
  border-color: var(--color-purple-400);
244
- background: $color-purple-100;
190
+ background: var(--color-purple-100);
245
191
  }
246
192
 
247
193
  .inline,
248
194
  .stacked {
249
195
  flex-flow: row wrap;
250
196
  align-items: unset;
251
- gap: $spacing-md;
197
+ gap: var(--spacing-24);
252
198
  min-width: unset;
253
199
 
254
- @include ca-media-tablet-and-under {
200
+ @media (width <= 1023px) {
255
201
  flex-direction: unset;
256
202
  }
257
203
 
258
204
  .illustrationWrapper {
259
- margin-right: $spacing-sm;
205
+ margin-right: var(--spacing-12);
260
206
 
261
207
  [dir="rtl"] & {
262
- margin-left: $spacing-sm;
208
+ margin-left: var(--spacing-12);
263
209
  margin-right: inherit;
264
210
  }
265
211
 
266
- @include ca-media-tablet {
212
+ @media (768px <= width <= 1023px) {
267
213
  padding: 0;
268
214
  }
269
215
 
270
- @include ca-media-mobile {
216
+ @media (width <= 767px) {
271
217
  display: flex;
272
218
  }
273
219
  }
@@ -281,36 +227,36 @@ $scene-illustration-size: 300px;
281
227
  max-width: unset;
282
228
  min-width: 320px;
283
229
 
284
- @include ca-media-desktop {
230
+ @media (width >= 1024px) {
285
231
  padding: 0;
286
232
  }
287
233
 
288
- @include ca-media-mobile {
234
+ @media (width <= 767px) {
289
235
  margin: 0;
290
236
  }
291
237
 
292
238
  [dir="rtl"] & {
293
239
  text-align: right;
294
240
 
295
- @include ca-media-desktop {
241
+ @media (width >= 1024px) {
296
242
  padding: 0;
297
243
  }
298
244
  }
299
245
  }
300
246
 
301
247
  .buttonContainer {
302
- padding-left: $spacing-sm;
248
+ padding-left: var(--spacing-12);
303
249
  justify-content: flex-start;
304
250
  width: unset;
305
251
  min-width: unset;
306
252
 
307
- @include ca-media-mobile {
253
+ @media (width <= 767px) {
308
254
  flex-direction: row-reverse;
309
255
  }
310
256
 
311
257
  [dir="rtl"] & {
312
258
  padding-left: 0;
313
- padding-right: $spacing-sm;
259
+ padding-right: var(--spacing-12);
314
260
  }
315
261
 
316
262
  > * {
@@ -8,7 +8,7 @@ import { Button, ButtonProps } from "~components/__actions__/v2"
8
8
  import { Icon } from "~components/__future__/Icon"
9
9
  import { Tooltip, TooltipProps } from "~components/__overlays__/Tooltip/v1"
10
10
  import { VariantType } from "./types"
11
- import styles from "./GuidanceBlock.module.scss"
11
+ import styles from "./GuidanceBlock.module.css"
12
12
 
13
13
  export type ActionProps = ButtonProps & {
14
14
  tooltip?: TooltipProps
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var styles = {
4
- "rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
5
- "noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
6
- "banner": "GuidanceBlock-module_banner__FxKcd",
7
- "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
8
- "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
9
- "illustration": "GuidanceBlock-module_illustration__sU1Vu",
10
- "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
11
- "descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
12
- "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
13
- "buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
14
- "hidden": "GuidanceBlock-module_hidden__CbgXn",
15
- "headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
16
- "cancel": "GuidanceBlock-module_cancel__UaIA-",
17
- "icon": "GuidanceBlock-module_icon__y2xz8",
18
- "disabled": "GuidanceBlock-module_disabled__Uhgsr",
19
- "hover": "GuidanceBlock-module_hover__7V9x1",
20
- "active": "GuidanceBlock-module_active__YJaZt",
21
- "default": "GuidanceBlock-module_default__Ffblg",
22
- "positive": "GuidanceBlock-module_positive__yENlT",
23
- "negative": "GuidanceBlock-module_negative__E-Jvh",
24
- "assertive": "GuidanceBlock-module_assertive__6PZlM",
25
- "informative": "GuidanceBlock-module_informative__ZUH4j",
26
- "cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
27
- "prominent": "GuidanceBlock-module_prominent__nn-r4",
28
- "inline": "GuidanceBlock-module_inline__GwOWR",
29
- "stacked": "GuidanceBlock-module_stacked__rDupX",
30
- "centerContent": "GuidanceBlock-module_centerContent__m3IhB",
31
- "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
32
- };
33
- module.exports = styles;
@@ -1,31 +0,0 @@
1
- var styles = {
2
- "rightMargin": "GuidanceBlock-module_rightMargin__-iEFa",
3
- "noRightMargin": "GuidanceBlock-module_noRightMargin__4Uy9N",
4
- "banner": "GuidanceBlock-module_banner__FxKcd",
5
- "noMaxWidth": "GuidanceBlock-module_noMaxWidth__UzHP1",
6
- "illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__AEljX",
7
- "illustration": "GuidanceBlock-module_illustration__sU1Vu",
8
- "hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__tvFRD",
9
- "descriptionContainer": "GuidanceBlock-module_descriptionContainer__aywtY",
10
- "descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__E5BcL",
11
- "buttonContainer": "GuidanceBlock-module_buttonContainer__U2Hxn",
12
- "hidden": "GuidanceBlock-module_hidden__CbgXn",
13
- "headingWrapper": "GuidanceBlock-module_headingWrapper__zgVmA",
14
- "cancel": "GuidanceBlock-module_cancel__UaIA-",
15
- "icon": "GuidanceBlock-module_icon__y2xz8",
16
- "disabled": "GuidanceBlock-module_disabled__Uhgsr",
17
- "hover": "GuidanceBlock-module_hover__7V9x1",
18
- "active": "GuidanceBlock-module_active__YJaZt",
19
- "default": "GuidanceBlock-module_default__Ffblg",
20
- "positive": "GuidanceBlock-module_positive__yENlT",
21
- "negative": "GuidanceBlock-module_negative__E-Jvh",
22
- "assertive": "GuidanceBlock-module_assertive__6PZlM",
23
- "informative": "GuidanceBlock-module_informative__ZUH4j",
24
- "cautionary": "GuidanceBlock-module_cautionary__sJ1CE",
25
- "prominent": "GuidanceBlock-module_prominent__nn-r4",
26
- "inline": "GuidanceBlock-module_inline__GwOWR",
27
- "stacked": "GuidanceBlock-module_stacked__rDupX",
28
- "centerContent": "GuidanceBlock-module_centerContent__m3IhB",
29
- "smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__oWufj"
30
- };
31
- export { styles as default };