@kaizen/components 1.68.0 → 1.68.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.
@@ -37,7 +37,22 @@ pnpm kaizen-codemod src migrateWellVariantToColor
37
37
  - `removeInputEditModalMood`: Removes `InputEditModal` component prop `mood`
38
38
  - `removePopoverVariant`: Removes `Popover` component props `variant` and `customIcon`
39
39
  - `upgradeIconV1`: Migrates `*Icon` components to a new equivalent
40
- - `CaMonogramIcon` becomes `Brand`
40
+ - `CaMonogramIcon` becomes `Brand` variant `enso`
41
+ - `inheritSize` will be removed if set, if not set then `style` will be added to make it 20px (manually adjust to a `className` if you can)
41
42
  - `SpinnerIcon` becomes `LoadingSpinner`
43
+ - `aria-label` will be replaced with `accessibilityLabel` (with a fallback value of `"Loading"`)
44
+ - `role` will be removed
45
+ - `viewBox` will be removed
42
46
  - All other Icons become future `Icon`
43
47
  - **Note:** See [Icon API Specification (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-api-specification--docs) for setup instructions
48
+ - Icons previously filled may become unfilled. This is intentional as filled icons should only be for active states or selection (see [Icon Usage Guidelines (Future)](https://cultureamp.design/?path=/docs/illustrations-icon-icon-future-usage-guidelines--docs#do-use-the-appropriate-fill-for-the-icon-context-and-state))
49
+ - `role="presentational"` becomes `isPresentational`
50
+ - `role="img"` will be removed (as `aria-label` should exist)
51
+ - `aria-label` becomes `alt`
52
+ - `classNameOverride` becomes `className`
53
+ - `inheritSize` will remain - however is no longer a valid prop, therefore will have a TypeScript error and will be prefixed with a comment to manually fix the usage
54
+ - `aria-hidden` becomes `isPresentational`
55
+ - `color` becomes an inline `style` (manually adjust to a `className` if you can)
56
+ - `fontSize` will be removed
57
+ - `height` and `width` become an inline `style` (manually adjust to a `className` if you can, ideally setting `--icon-size`)
58
+ - `viewBox` will be removed
@@ -88,10 +88,10 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
88
88
  ["EngagementWhiteIcon", undefined],
89
89
  ["EqualIcon", undefined],
90
90
  ["EqualWhiteIcon", undefined],
91
- ["ExclamationIcon", { name: "error" }],
91
+ ["ExclamationIcon", { name: "error", isFilled: true }],
92
92
  ["ExclamationOctagonIcon", { name: "warning" }],
93
93
  ["ExclamationOctagonWhiteIcon", undefined],
94
- ["ExclamationWhiteIcon", { name: "error" }],
94
+ ["ExclamationWhiteIcon", { name: "error", isFilled: true }],
95
95
  ["ExperienceIcon", undefined],
96
96
  ["ExportIcon", { name: "cloud_download" }],
97
97
  ["ExportWhiteIcon", { name: "cloud_download" }],
@@ -138,8 +138,8 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
138
138
  ["IncreaseIndentIcon", { name: "format_indent_increase" }],
139
139
  ["IndicatorActiveIcon", { name: "radio_button_checked" }],
140
140
  ["IndicatorInactiveIcon", { name: "radio_button_unchecked" }],
141
- ["InformationIcon", { name: "info" }],
142
- ["InformationWhiteIcon", { name: "info" }],
141
+ ["InformationIcon", { name: "info", isFilled: true }],
142
+ ["InformationWhiteIcon", { name: "info", isFilled: true }],
143
143
  ["InsightIcon", { name: "find_in_page" }],
144
144
  ["InsightsIcon", undefined],
145
145
  ["InvisibleIcon", { name: "visibility_off" }],
@@ -180,9 +180,9 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
180
180
  ["ProcessManagerIcon", { name: "playlist_add_check" }],
181
181
  ["PromotionIcon", { name: "grade" }],
182
182
  ["PromotionWhiteIcon", undefined],
183
- ["QuestionIcon", { name: "help" }],
183
+ ["QuestionIcon", { name: "help", isFilled: true }],
184
184
  ["QuestionsIcon", undefined],
185
- ["QuestionWhiteIcon", { name: "help" }],
185
+ ["QuestionWhiteIcon", { name: "help", isFilled: true }],
186
186
  ["RedoIcon", { name: "redo" }],
187
187
  ["RefreshIcon", { name: "refresh" }],
188
188
  ["RemoveLinkIcon", { name: "link_off" }],
@@ -193,7 +193,7 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
193
193
  ["SaveIcon", undefined],
194
194
  ["SearchIcon", { name: "search" }],
195
195
  ["SearchWhiteIcon", { name: "search" }],
196
- ["SecurityTipIcon", { name: "privacy_tip" }],
196
+ ["SecurityTipIcon", { name: "privacy_tip", isFilled: true }],
197
197
  ["SendIcon", { name: "send" }],
198
198
  ["SendRtlIcon", undefined],
199
199
  ["SettingsIcon", { name: "settings" }],
@@ -209,8 +209,8 @@ const iconMap = new Map<keyof typeof OLD_ICONS, NewIconProps>([
209
209
  ["StartIcon", { name: "keyboard_tab_rtl" }],
210
210
  ["SubtractIcon", { name: "remove" }],
211
211
  ["SubtractWhiteIcon", undefined],
212
- ["SuccessIcon", { name: "check_circle" }],
213
- ["SuccessWhiteIcon", { name: "check_circle" }],
212
+ ["SuccessIcon", { name: "check_circle", isFilled: true }],
213
+ ["SuccessWhiteIcon", { name: "check_circle", isFilled: true }],
214
214
  ["SupportIcon", { name: "support" }],
215
215
  ["SurveysIcon", { name: "assignment" }],
216
216
  ["SurveysWhiteIcon", { name: "assignment" }],
package/dist/styles.css CHANGED
@@ -32,46 +32,6 @@
32
32
  }
33
33
  }
34
34
 
35
- .MenuItem-module_item__uImZI {
36
- display: block;
37
- font-family: var(--typography-paragraph-body-font-family);
38
- font-size: var(--typography-paragraph-body-font-size);
39
- letter-spacing: var(--typography-paragraph-body-letter-spacing);
40
- font-weight: var(--typography-paragraph-body-font-weight);
41
- line-height: var(--typography-paragraph-body-line-height);
42
- color: rgba(var(--color-purple-800-rgb), 0.7);
43
- padding: var(--spacing-6) var(--spacing-8);
44
- border: var(--border-focus-ring-border-width)
45
- var(--border-focus-ring-border-style) transparent;
46
- border-radius: 4px;
47
- margin-inline: var(--spacing-6);
48
- text-decoration: none;
49
- cursor: pointer;
50
- }
51
-
52
- .MenuItem-module_flexWrapper__hiXro {
53
- display: flex;
54
- gap: 0 var(--spacing-8);
55
- align-items: center;
56
- }
57
-
58
- .MenuItem-module_iconWrapper__QoZgd {
59
- flex-shrink: 0;
60
- display: flex;
61
- align-items: center;
62
- }
63
-
64
- .MenuItem-module_item__uImZI[data-focused] {
65
- background-color: var(--color-blue-100);
66
- color: var(--color-blue-500);
67
- outline: none;
68
- border-color: var(--color-blue-500);
69
- }
70
-
71
- .MenuItem-module_item__uImZI[data-disabled] {
72
- opacity: 0.3;
73
- }
74
-
75
35
  .Button-module_button__vlUCI {
76
36
  /* RESET */
77
37
  appearance: none;
@@ -308,6 +268,46 @@
308
268
  visibility: hidden;
309
269
  }
310
270
 
271
+ .MenuItem-module_item__uImZI {
272
+ display: block;
273
+ font-family: var(--typography-paragraph-body-font-family);
274
+ font-size: var(--typography-paragraph-body-font-size);
275
+ letter-spacing: var(--typography-paragraph-body-letter-spacing);
276
+ font-weight: var(--typography-paragraph-body-font-weight);
277
+ line-height: var(--typography-paragraph-body-line-height);
278
+ color: rgba(var(--color-purple-800-rgb), 0.7);
279
+ padding: var(--spacing-6) var(--spacing-8);
280
+ border: var(--border-focus-ring-border-width)
281
+ var(--border-focus-ring-border-style) transparent;
282
+ border-radius: 4px;
283
+ margin-inline: var(--spacing-6);
284
+ text-decoration: none;
285
+ cursor: pointer;
286
+ }
287
+
288
+ .MenuItem-module_flexWrapper__hiXro {
289
+ display: flex;
290
+ gap: 0 var(--spacing-8);
291
+ align-items: center;
292
+ }
293
+
294
+ .MenuItem-module_iconWrapper__QoZgd {
295
+ flex-shrink: 0;
296
+ display: flex;
297
+ align-items: center;
298
+ }
299
+
300
+ .MenuItem-module_item__uImZI[data-focused] {
301
+ background-color: var(--color-blue-100);
302
+ color: var(--color-blue-500);
303
+ outline: none;
304
+ border-color: var(--color-blue-500);
305
+ }
306
+
307
+ .MenuItem-module_item__uImZI[data-disabled] {
308
+ opacity: 0.3;
309
+ }
310
+
311
311
  .PendingContent-module_pendingContent__c4IFS {
312
312
  display: inline-flex;
313
313
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.68.0",
3
+ "version": "1.68.1",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",