@kaizen/components 1.57.1 → 1.58.0

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.
Files changed (226) hide show
  1. package/bin/codemod.sh +39 -0
  2. package/codemods/README.md +31 -0
  3. package/codemods/__tests__/utils/index.ts +1 -0
  4. package/codemods/__tests__/utils/parseJsx.ts +11 -0
  5. package/codemods/migrateBrandMomentMoodToVariant/index.ts +21 -0
  6. package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.spec.ts +44 -0
  7. package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.ts +24 -0
  8. package/codemods/migrateCardVariantToColor/index.ts +15 -0
  9. package/codemods/migrateCardVariantToColor/transformCardVariantToColor.spec.ts +91 -0
  10. package/codemods/migrateCardVariantToColor/transformCardVariantToColor.ts +32 -0
  11. package/codemods/migrateConfirmationModalMoodsToVariant/index.ts +19 -0
  12. package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.spec.ts +110 -0
  13. package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.ts +59 -0
  14. package/codemods/migrateEmptyStateIllustrationTypeToVariant/index.ts +21 -0
  15. package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.spec.ts +74 -0
  16. package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.ts +28 -0
  17. package/codemods/migrateGlobalNotificationTypeToVariant/index.ts +19 -0
  18. package/codemods/migrateInformationTileMoodToVariant/index.ts +21 -0
  19. package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.spec.ts +84 -0
  20. package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.ts +22 -0
  21. package/codemods/migrateInlineNotificationTypeToVariant/index.ts +19 -0
  22. package/codemods/migrateMultiActionTileMoodToVariant/index.ts +21 -0
  23. package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.spec.ts +84 -0
  24. package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.ts +22 -0
  25. package/codemods/migrateNotificationTypeToVariant/index.ts +1 -0
  26. package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.spec.ts +107 -0
  27. package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.ts +28 -0
  28. package/codemods/migrateProgressBarMoodToColor/index.ts +21 -0
  29. package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.spec.ts +54 -0
  30. package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.ts +26 -0
  31. package/codemods/migrateToastNotificationTypeToVariant/index.ts +19 -0
  32. package/codemods/migrateWellVariantToColor/index.ts +15 -0
  33. package/codemods/migrateWellVariantToColor/transformWellVariantToColor.spec.ts +192 -0
  34. package/codemods/migrateWellVariantToColor/transformWellVariantToColor.ts +75 -0
  35. package/codemods/removeInputEditModalMood/index.ts +19 -0
  36. package/codemods/removeInputEditModalMood/removeInputEditModalMood.spec.ts +80 -0
  37. package/codemods/removeInputEditModalMood/removeInputEditModalMood.ts +40 -0
  38. package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.spec.ts +118 -0
  39. package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.ts +64 -0
  40. package/codemods/utils/__fixtures__/KaioComponent.tsx +6 -0
  41. package/codemods/utils/__snapshots__/transformSource.spec.ts.snap +11 -0
  42. package/codemods/utils/getPropValueText.spec.ts +75 -0
  43. package/codemods/utils/getPropValueText.ts +21 -0
  44. package/codemods/utils/getTagName.spec.ts +24 -0
  45. package/codemods/utils/getTagName.ts +32 -0
  46. package/codemods/utils/index.ts +7 -0
  47. package/codemods/utils/migrateStringProp.spec.ts +129 -0
  48. package/codemods/utils/migrateStringProp.ts +43 -0
  49. package/codemods/utils/printAst.ts +6 -0
  50. package/codemods/utils/transformComponentsInDir.ts +42 -0
  51. package/codemods/utils/transformSource.spec.ts +56 -0
  52. package/codemods/utils/transformSource.ts +25 -0
  53. package/codemods/utils/updateJsxElementWithNewProps.spec.ts +67 -0
  54. package/codemods/utils/updateJsxElementWithNewProps.ts +24 -0
  55. package/dist/cjs/BrandMoment/BrandMoment.cjs +3 -2
  56. package/dist/cjs/BrandMoment/BrandMoment.module.scss.cjs +3 -1
  57. package/dist/cjs/Card/Card.cjs +7 -6
  58. package/dist/cjs/Card/Card.module.scss.cjs +10 -2
  59. package/dist/cjs/EmptyState/EmptyState.cjs +14 -6
  60. package/dist/cjs/EmptyState/EmptyState.module.scss.cjs +3 -0
  61. package/dist/cjs/ErrorPage/ErrorPage.cjs +1 -1
  62. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +9 -5
  63. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.module.scss.cjs +6 -2
  64. package/dist/cjs/Notification/ToastNotification/ToastNotification/ToastNotification.cjs +1 -3
  65. package/dist/cjs/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.cjs +1 -3
  66. package/dist/cjs/Notification/subcomponents/GenericNotification/GenericNotification.cjs +6 -3
  67. package/dist/cjs/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +5 -3
  68. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +35 -3
  69. package/dist/cjs/ProgressBar/ProgressBar.cjs +3 -2
  70. package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs +8 -4
  71. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +7 -5
  72. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +8 -6
  73. package/dist/cjs/Well/Well.cjs +5 -4
  74. package/dist/cjs/Well/Well.module.scss.cjs +9 -1
  75. package/dist/cjs/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.cjs +6 -6
  76. package/dist/cjs/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.cjs +33 -0
  77. package/dist/cjs/__containers__/GuidanceBlock/v2/GuidanceBlock.cjs +160 -0
  78. package/dist/cjs/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.cjs +28 -0
  79. package/dist/cjs/containersV1.cjs +4 -0
  80. package/dist/cjs/containersV2.cjs +4 -0
  81. package/dist/cjs/index.cjs +2 -2
  82. package/dist/esm/BrandMoment/BrandMoment.mjs +3 -2
  83. package/dist/esm/BrandMoment/BrandMoment.module.scss.mjs +3 -1
  84. package/dist/esm/Card/Card.mjs +7 -6
  85. package/dist/esm/Card/Card.module.scss.mjs +10 -2
  86. package/dist/esm/EmptyState/EmptyState.mjs +15 -7
  87. package/dist/esm/EmptyState/EmptyState.module.scss.mjs +3 -0
  88. package/dist/esm/ErrorPage/ErrorPage.mjs +1 -1
  89. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +9 -5
  90. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.module.scss.mjs +6 -2
  91. package/dist/esm/Notification/ToastNotification/ToastNotification/ToastNotification.mjs +1 -3
  92. package/dist/esm/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs +1 -3
  93. package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +8 -5
  94. package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +5 -3
  95. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +39 -5
  96. package/dist/esm/ProgressBar/ProgressBar.mjs +3 -2
  97. package/dist/esm/ProgressBar/ProgressBar.module.scss.mjs +8 -4
  98. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +7 -5
  99. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +8 -6
  100. package/dist/esm/Well/Well.mjs +5 -4
  101. package/dist/esm/Well/Well.module.scss.mjs +9 -1
  102. package/dist/esm/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.mjs +6 -6
  103. package/dist/esm/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.mjs +31 -0
  104. package/dist/esm/__containers__/GuidanceBlock/v2/GuidanceBlock.mjs +153 -0
  105. package/dist/esm/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.mjs +26 -0
  106. package/dist/esm/containersV1.mjs +1 -0
  107. package/dist/esm/containersV2.mjs +1 -0
  108. package/dist/esm/index.mjs +1 -1
  109. package/dist/styles.css +13 -12
  110. package/dist/types/BrandMoment/BrandMoment.d.ts +19 -3
  111. package/dist/types/Card/Card.d.ts +20 -7
  112. package/dist/types/EmptyState/EmptyState.d.ts +14 -6
  113. package/dist/types/Modal/ConfirmationModal/ConfirmationModal.d.ts +25 -7
  114. package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +3 -0
  115. package/dist/types/Modal/InputEditModal/InputEditModal.d.ts +4 -1
  116. package/dist/types/Notification/GlobalNotification/GlobalNotification.d.ts +3 -3
  117. package/dist/types/Notification/InlineNotification/InlineNotification.d.ts +3 -3
  118. package/dist/types/Notification/ToastNotification/ToastNotification/ToastNotification.d.ts +5 -4
  119. package/dist/types/Notification/ToastNotification/context/ToastNotificationContext.d.ts +4 -3
  120. package/dist/types/Notification/ToastNotification/types.d.ts +3 -3
  121. package/dist/types/Notification/subcomponents/GenericNotification/GenericNotification.d.ts +24 -4
  122. package/dist/types/Notification/subcomponents/NotificationIcon/NotificationIcon.d.ts +11 -4
  123. package/dist/types/Notification/types.d.ts +2 -1
  124. package/dist/types/ProgressBar/ProgressBar.d.ts +25 -6
  125. package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +10 -3
  126. package/dist/types/Well/Well.d.ts +6 -2
  127. package/dist/types/Well/types.d.ts +4 -0
  128. package/dist/types/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.d.ts +4 -4
  129. package/dist/types/__containers__/GuidanceBlock/v2/GuidanceBlock.d.ts +59 -0
  130. package/dist/types/__containers__/GuidanceBlock/v2/index.d.ts +1 -0
  131. package/dist/types/__containers__/v1.d.ts +1 -0
  132. package/dist/types/__containers__/v2.d.ts +1 -0
  133. package/dist/types/index.d.ts +1 -1
  134. package/package.json +19 -5
  135. package/src/BrandMoment/BrandMoment.module.scss +20 -9
  136. package/src/BrandMoment/BrandMoment.tsx +26 -3
  137. package/src/BrandMoment/_docs/BrandMoment.mdx +13 -13
  138. package/src/BrandMoment/_docs/BrandMoment.stickersheet.stories.tsx +102 -0
  139. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +17 -99
  140. package/src/Card/Card.module.scss +56 -7
  141. package/src/Card/Card.tsx +35 -11
  142. package/src/Card/_docs/Card.mdx +6 -3
  143. package/src/Card/_docs/Card.stickersheet.stories.tsx +44 -39
  144. package/src/Card/_docs/Card.stories.tsx +23 -23
  145. package/src/EmptyState/EmptyState.module.scss +32 -14
  146. package/src/EmptyState/EmptyState.tsx +32 -18
  147. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +69 -121
  148. package/src/EmptyState/_docs/EmptyState.stories.tsx +6 -8
  149. package/src/ErrorPage/ErrorPage.tsx +1 -1
  150. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +100 -78
  151. package/src/Modal/ConfirmationModal/ConfirmationModal.spec.tsx +5 -5
  152. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +41 -10
  153. package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.mdx +3 -3
  154. package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.stories.tsx +11 -4
  155. package/src/Modal/ContextModal/_docs/ContextModal.stories.tsx +3 -1
  156. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +3 -0
  157. package/src/Modal/InputEditModal/InputEditModal.tsx +4 -1
  158. package/src/Modal/InputEditModal/_docs/InputEditModal.mdx +0 -13
  159. package/src/Modal/InputEditModal/_docs/InputEditModal.stories.tsx +9 -10
  160. package/src/Notification/GlobalNotification/GlobalNotification.tsx +9 -4
  161. package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +68 -58
  162. package/src/Notification/GlobalNotification/_docs/GlobalNotification.stories.tsx +10 -13
  163. package/src/Notification/InlineNotification/InlineNotification.tsx +9 -4
  164. package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +79 -44
  165. package/src/Notification/InlineNotification/_docs/InlineNotification.stories.tsx +17 -17
  166. package/src/Notification/ToastNotification/ToastNotification/ToastNotification.tsx +7 -5
  167. package/src/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.tsx +1 -2
  168. package/src/Notification/ToastNotification/_docs/ToastNotification.stickersheet.stories.tsx +12 -7
  169. package/src/Notification/ToastNotification/_docs/ToastNotification.stories.tsx +6 -1
  170. package/src/Notification/ToastNotification/context/ToastNotificationContext.tsx +7 -3
  171. package/src/Notification/ToastNotification/types.ts +8 -3
  172. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +42 -5
  173. package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +40 -6
  174. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +2 -1
  175. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +31 -5
  176. package/src/Notification/types.ts +9 -2
  177. package/src/ProgressBar/ProgressBar.module.scss +37 -25
  178. package/src/ProgressBar/ProgressBar.tsx +30 -5
  179. package/src/ProgressBar/_docs/ProgressBar.mdx +2 -3
  180. package/src/ProgressBar/_docs/ProgressBar.stickersheet.stories.tsx +95 -51
  181. package/src/ProgressBar/_docs/ProgressBar.stories.tsx +56 -25
  182. package/src/Tile/InformationTile/_docs/InformationTile.mdx +3 -2
  183. package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +57 -19
  184. package/src/Tile/InformationTile/_docs/InformationTile.stories.tsx +19 -7
  185. package/src/Tile/MultiActionTile/_docs/MultiActionTile.mdx +3 -2
  186. package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +62 -24
  187. package/src/Tile/MultiActionTile/_docs/MultiActionTile.stories.tsx +19 -7
  188. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +34 -22
  189. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +17 -8
  190. package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +57 -19
  191. package/src/Well/Well.module.scss +70 -33
  192. package/src/Well/Well.tsx +9 -3
  193. package/src/Well/_docs/Well.mdx +9 -2
  194. package/src/Well/_docs/Well.stickersheet.stories.tsx +10 -1
  195. package/src/Well/_docs/Well.stories.tsx +54 -29
  196. package/src/Well/types.ts +15 -0
  197. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +1 -1
  198. package/src/__actions__/Menu/v3/MenuItem.module.scss +1 -0
  199. package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.module.scss +2 -2
  200. package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/_docs/GuidanceBlock.mdx +2 -2
  201. package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/_docs/GuidanceBlock.stickersheet.stories.tsx +1 -1
  202. package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/_docs/GuidanceBlock.stories.tsx +1 -1
  203. package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss +356 -0
  204. package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.spec.tsx +82 -0
  205. package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.tsx +262 -0
  206. package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.mdx +38 -0
  207. package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stickersheet.stories.tsx +118 -0
  208. package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stories.tsx +152 -0
  209. package/src/__containers__/GuidanceBlock/v2/index.ts +1 -0
  210. package/src/__containers__/v1.ts +1 -0
  211. package/src/__containers__/v2.ts +1 -0
  212. package/src/index.ts +2 -1
  213. package/v1/containers/package.json +5 -0
  214. package/v2/containers/package.json +5 -0
  215. package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +0 -33
  216. package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +0 -31
  217. package/dist/types/Tile/subcomponents/GenericTile/types.d.ts +0 -2
  218. package/src/EmptyState/_docs/EmptyState.stories.module.scss +0 -15
  219. package/src/Notification/ToastNotification/ToastNotification/ToastNotification.spec.tsx +0 -33
  220. package/src/Tile/subcomponents/GenericTile/types.ts +0 -10
  221. /package/dist/types/{GuidanceBlock → __containers__/GuidanceBlock/v1}/index.d.ts +0 -0
  222. /package/dist/types/{GuidanceBlock → __containers__/GuidanceBlock/v1}/types.d.ts +0 -0
  223. /package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.spec.tsx +0 -0
  224. /package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/GuidanceBlock.tsx +0 -0
  225. /package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/index.ts +0 -0
  226. /package/src/{GuidanceBlock → __containers__/GuidanceBlock/v1}/types.ts +0 -0
@@ -2,8 +2,23 @@ import { ReactNode, ReactElement, HTMLAttributes } from "react";
2
2
  import { SceneProps } from "../Illustration";
3
3
  import { ButtonProps } from "../__actions__/v2";
4
4
  import { OverrideClassName } from "../types/OverrideClassName";
5
- export type BrandMomentProps = {
5
+ type DeprecatedMoodProps = {
6
+ /** @deprecated Use `variant` instead */
6
7
  mood: "informative" | "positive" | "negative";
8
+ variant?: never;
9
+ };
10
+ type VariantProps = {
11
+ /**
12
+ * If you are transitioning from `mood`:
13
+ * - `informative` remains as `informative`
14
+ * - `positive` should be `success`
15
+ * - `negative` should be `warning`
16
+ */
17
+ variant: "informative" | "success" | "warning";
18
+ /** @deprecated Use `variant` instead */
19
+ mood?: never;
20
+ };
21
+ export type BrandMomentProps = {
7
22
  illustration: ReactElement<SceneProps>;
8
23
  header: ReactNode;
9
24
  body?: ReactNode;
@@ -15,12 +30,13 @@ export type BrandMomentProps = {
15
30
  body?: ReactNode;
16
31
  footer?: ReactNode;
17
32
  };
18
- } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
33
+ } & OverrideClassName<HTMLAttributes<HTMLDivElement>> & (DeprecatedMoodProps | VariantProps);
19
34
  /**
20
35
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082061589/Brand+Moment Guidance} |
21
36
  * {@link https://cultureamp.design/?path=/docs/components-brand-moment--docs Storybook}
22
37
  */
23
38
  export declare const BrandMoment: {
24
- ({ mood, illustration, header, body, primaryAction, secondaryAction, text, classNameOverride, ...restProps }: BrandMomentProps): JSX.Element;
39
+ ({ mood, variant, illustration, header, body, primaryAction, secondaryAction, text, classNameOverride, ...restProps }: BrandMomentProps): JSX.Element;
25
40
  displayName: string;
26
41
  };
42
+ export {};
@@ -1,26 +1,39 @@
1
1
  import React, { HTMLAttributes } from "react";
2
2
  import { OverrideClassName } from "../types/OverrideClassName";
3
3
  export type CardVariants = "default" | "informative" | "positive" | "cautionary" | "destructive" | "assertive" | "highlight";
4
- export type CardProps = OverrideClassName<HTMLAttributes<HTMLElement>> & {
4
+ export type CardColors = "blue" | "green" | "gray" | "orange" | "purple" | "red" | "white" | "yellow";
5
+ export type CardProps = {
5
6
  children?: React.ReactNode;
6
7
  /**
7
8
  * HTML elements that are allowed on Card.
8
9
  */
9
10
  tag?: "div" | "article" | "header" | "main" | "section" | "li";
10
- /**
11
- * determines the card background colour on the card. It should match to the type of content being conveyed.
12
- */
13
- variant?: CardVariants;
14
11
  /**
15
12
  * Adds a larger box shadow to to the card container.
16
13
  */
17
14
  isElevated?: boolean;
18
- };
15
+ /**
16
+ * If you are transitioning from `variant`:
17
+ * - `assertive` should be `orange`
18
+ * - `cautionary` should be `yellow`
19
+ * - `default` should be `white` OR you can remove the prop
20
+ * - `destructive` should be `red`
21
+ * - `highlight` should be `purple`
22
+ * - `informative` should be `blue`
23
+ * - `positive` should be `green`
24
+ * @default white
25
+ */
26
+ color?: CardColors;
27
+ /**
28
+ * @deprecated Please use color instead
29
+ */
30
+ variant?: CardVariants;
31
+ } & OverrideClassName<Omit<HTMLAttributes<HTMLElement>, "color">>;
19
32
  /**
20
33
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082094938/Card Guidance} |
21
34
  * {@link https://cultureamp.design/?path=/story/components-card--docs Storybook}
22
35
  */
23
36
  export declare const Card: {
24
- ({ children, tag, variant, isElevated, classNameOverride, ...props }: CardProps): JSX.Element;
37
+ ({ children, tag, variant, color, isElevated, classNameOverride, ...props }: CardProps): JSX.Element;
25
38
  displayName: string;
26
39
  };
@@ -2,13 +2,22 @@ import React, { HTMLAttributes } from "react";
2
2
  import { HeadingProps } from "../Heading";
3
3
  import { AnimatedSceneProps } from "../Illustration";
4
4
  import { OverrideClassName } from "../types/OverrideClassName";
5
- type IllustrationType = "positive" | "neutral" | "negative" | "informative" | "action";
6
- type LayoutContextType = "sidebarAndContent" | "contentOnly";
7
5
  export type EmptyStateProps = {
8
6
  children?: React.ReactNode;
9
7
  id?: string;
10
- illustrationType?: IllustrationType;
11
- layoutContext?: LayoutContextType;
8
+ /** @deprecated Use `variant` instead */
9
+ illustrationType?: "positive" | "informative" | "negative" | "action" | "neutral";
10
+ /**
11
+ * If you are transitioning from `illustrationType`:
12
+ * - `positive` should be `success`
13
+ * - `informative` remains as `informative`
14
+ * - `negative` should be `warning`
15
+ * - `action` should be `warning`
16
+ * - `neutral` should be `expert-advice`
17
+ * @default informative
18
+ */
19
+ variant?: "success" | "warning" | "informative" | "expert-advice";
20
+ layoutContext?: "sidebarAndContent" | "contentOnly";
12
21
  bodyText: string | React.ReactNode;
13
22
  straightCorners?: boolean;
14
23
  headingProps?: HeadingProps;
@@ -18,7 +27,6 @@ export type EmptyStateProps = {
18
27
  * {@link https://cultureamp.design/?path=/docs/components-empty-state--docs Storybook}
19
28
  */
20
29
  export declare const EmptyState: {
21
- ({ children, id, illustrationType, layoutContext, headingProps, bodyText, straightCorners, isAnimated, loop, classNameOverride, ...props }: EmptyStateProps): JSX.Element;
30
+ ({ children, id, illustrationType, variant, layoutContext, headingProps, bodyText, straightCorners, isAnimated, loop, classNameOverride, ...props }: EmptyStateProps): JSX.Element;
22
31
  displayName: string;
23
32
  };
24
- export {};
@@ -1,15 +1,13 @@
1
1
  import React, { HTMLAttributes } from "react";
2
- export type ConfirmationModalProps = {
2
+ type Mood = "positive" | "informative" | "negative" | "cautionary" | "assertive";
3
+ type Variant = "success" | "informative" | "warning" | "cautionary";
4
+ type BaseConfirmationModalProps = {
3
5
  isOpen: boolean;
4
6
  unpadded?: boolean;
5
7
  /**
6
8
  * To display the Prominent variation of the modal types
7
9
  */
8
10
  isProminent?: boolean;
9
- /**
10
- * Defines the modal type or mood
11
- */
12
- mood: Mood;
13
11
  title: string;
14
12
  onConfirm?: () => void;
15
13
  onDismiss: () => void;
@@ -29,13 +27,33 @@ export type ConfirmationModalProps = {
29
27
  automationId?: string;
30
28
  children: React.ReactNode;
31
29
  } & HTMLAttributes<HTMLDivElement>;
32
- type Mood = "positive" | "informative" | "negative" | "cautionary" | "assertive";
30
+ type ConfirmationModalMoods = {
31
+ /**
32
+ * @deprecated Please use `variant` instead
33
+ */
34
+ mood: Mood;
35
+ variant?: never;
36
+ };
37
+ type ConfirmationModalVariants = {
38
+ /**
39
+ * @deprecated Please use `variant` instead
40
+ */
41
+ mood?: never;
42
+ /**
43
+ * If you are transitioning from Moods:
44
+ * - `positive` should be `success`
45
+ * - `negative` should be `warning`
46
+ * - `assertive` should be `cautionary`
47
+ */
48
+ variant: Variant;
49
+ };
50
+ export type ConfirmationModalProps = BaseConfirmationModalProps & (ConfirmationModalMoods | ConfirmationModalVariants);
33
51
  /**
34
52
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093114/Modal Guidance} |
35
53
  * {@link https://cultureamp.design/?path=/docs/components-modals-confirmationmodal--docs Storybook}
36
54
  */
37
55
  export declare const ConfirmationModal: {
38
- ({ isOpen, isProminent, unpadded, mood, title, onConfirm, onAfterLeave, onAfterEnter, confirmLabel, dismissLabel, confirmWorking, onDismiss: propsOnDismiss, children, ...props }: ConfirmationModalProps): JSX.Element;
56
+ ({ isOpen, isProminent, unpadded, mood, variant, title, onConfirm, onAfterLeave, onAfterEnter, confirmLabel, dismissLabel, confirmWorking, onDismiss: propsOnDismiss, children, ...props }: ConfirmationModalProps): JSX.Element;
39
57
  displayName: string;
40
58
  };
41
59
  export {};
@@ -12,6 +12,9 @@ export type ModalFooterProps = {
12
12
  variant?: ActionsVariantProps;
13
13
  unpadded?: boolean;
14
14
  actions: ButtonProps[];
15
+ /**
16
+ * @deprecated we are no longer supporting different appearances for ModalFooter, instead there will only be a single default appearance set by the Button.
17
+ */
15
18
  appearance?: "primary" | "destructive";
16
19
  /**
17
20
  * @deprecated Please use data-testid
@@ -2,7 +2,10 @@ import React, { HTMLAttributes } from "react";
2
2
  export type InputEditModalProps = {
3
3
  isOpen: boolean;
4
4
  unpadded?: boolean;
5
- mood: "positive" | "destructive";
5
+ /**
6
+ * @deprecated we are no longer supporting different moods for InputModal, instead there will only be a single default variant set by the component.
7
+ */
8
+ mood?: "positive" | "destructive";
6
9
  title: string;
7
10
  onSubmit: () => void;
8
11
  onSecondaryAction?: () => void;
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
- import { NotificationType } from "../types";
3
2
  import { OverrideClassName } from "../../types/OverrideClassName";
4
- export type GlobalNotificationProps = OverrideClassName<{
5
- type: NotificationType;
3
+ import { GenericNotificationType, GenericNotificationVariant } from "../subcomponents/GenericNotification";
4
+ export type GlobalNotificationBase = OverrideClassName<{
6
5
  children: React.ReactNode;
7
6
  onHide?: () => void;
8
7
  persistent?: boolean;
9
8
  }>;
9
+ export type GlobalNotificationProps = GlobalNotificationBase & (GenericNotificationType | GenericNotificationVariant);
10
10
  /**
11
11
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060757/Global+Notification Guidance} |
12
12
  * {@link https://cultureamp.design/?path=/docs/components-notifications-global-notification--docs Storybook}
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
2
  import { HeadingProps } from "../../Heading";
3
3
  import { OverrideClassName } from "../../types/OverrideClassName";
4
- import { NotificationType } from "../types";
5
- export type InlineNotificationProps = OverrideClassName<{
6
- type: NotificationType;
4
+ import { GenericNotificationType, GenericNotificationVariant } from "../subcomponents/GenericNotification";
5
+ export type InlineNotificationBase = OverrideClassName<{
7
6
  children?: React.ReactNode;
8
7
  /** @default false */
9
8
  persistent?: boolean;
@@ -15,6 +14,7 @@ export type InlineNotificationProps = OverrideClassName<{
15
14
  headingProps?: HeadingProps;
16
15
  isSubtle?: boolean;
17
16
  }>;
17
+ export type InlineNotificationProps = InlineNotificationBase & (GenericNotificationType | GenericNotificationVariant);
18
18
  /**
19
19
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093392/Inline+Notification Guidance} |
20
20
  * {@link https://cultureamp.design/storybook/?path=/docs/components-notifications-inline-notification--docs Storybook}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- import { ToastNotificationObj } from "../types";
3
- export type ToastNotificationProps = Omit<ToastNotificationObj, "id" | "message" | "persistent"> & {
2
+ import { GenericNotificationType, GenericNotificationVariant } from "../../subcomponents/GenericNotification";
3
+ import { ToastNotificationObjBase } from "../types";
4
+ export type ToastNotificationProps = Omit<ToastNotificationObjBase, "id" | "message" | "persistent"> & {
4
5
  children: React.ReactNode;
5
6
  id?: string;
6
7
  /**
@@ -9,8 +10,8 @@ export type ToastNotificationProps = Omit<ToastNotificationObj, "id" | "message"
9
10
  * @default false
10
11
  */
11
12
  hideCloseIcon?: boolean;
12
- };
13
+ } & (GenericNotificationType | GenericNotificationVariant);
13
14
  export declare const ToastNotification: {
14
- ({ id: propsId, hideCloseIcon, type, title, onHide, children, ...restProps }: ToastNotificationProps): null;
15
+ ({ id: propsId, hideCloseIcon, title, onHide, children, ...restProps }: ToastNotificationProps): null;
15
16
  displayName: string;
16
17
  };
@@ -1,8 +1,9 @@
1
1
  import React from "react";
2
- import { ToastNotificationObj } from "../types";
3
- type ToastNotificationObjOptionalId = Omit<ToastNotificationObj, "id"> & {
2
+ import { GenericNotificationType, GenericNotificationVariant } from "../../subcomponents/GenericNotification";
3
+ import { ToastNotificationObj, ToastNotificationObjBase } from "../types";
4
+ type ToastNotificationObjOptionalId = Omit<ToastNotificationObjBase, "id"> & {
4
5
  id?: string;
5
- };
6
+ } & (GenericNotificationType | GenericNotificationVariant);
6
7
  export type ToastNotificationContextValue = {
7
8
  notifications: ToastNotificationObj[];
8
9
  addToastNotification: (notification: ToastNotificationObjOptionalId) => void;
@@ -1,8 +1,7 @@
1
1
  import { DataAttributes } from "../../types/DataAttributes";
2
- import { NotificationType } from "../types";
3
- export type ToastNotificationObj = {
2
+ import { GenericNotificationType, GenericNotificationVariant } from "../subcomponents/GenericNotification";
3
+ export type ToastNotificationObjBase = {
4
4
  id: string;
5
- type: NotificationType;
6
5
  title: string;
7
6
  message: React.ReactNode;
8
7
  onHide?: () => void;
@@ -12,3 +11,4 @@ export type ToastNotificationObj = {
12
11
  */
13
12
  persistent?: boolean;
14
13
  } & DataAttributes;
14
+ export type ToastNotificationObj = ToastNotificationObjBase & (GenericNotificationType | GenericNotificationVariant);
@@ -1,9 +1,8 @@
1
1
  import React, { HTMLAttributes } from "react";
2
2
  import { HeadingProps } from "../../../Heading";
3
- import { NotificationType } from "../../types";
3
+ import { NotificationType, NotificationVariant } from "../../types";
4
4
  import { OverrideClassName } from "../../../types/OverrideClassName";
5
- export type GenericNotificationProps = {
6
- type: NotificationType;
5
+ type GenericNotificationBase = {
7
6
  style: "global" | "inline" | "toast";
8
7
  children?: React.ReactNode;
9
8
  title?: string;
@@ -13,7 +12,28 @@ export type GenericNotificationProps = {
13
12
  forceMultiline?: boolean;
14
13
  headingProps?: HeadingProps;
15
14
  } & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "style">;
15
+ export type GenericNotificationType = {
16
+ /**
17
+ * @deprecated Please use `variant` instead
18
+ */
19
+ type: NotificationType;
20
+ variant?: never;
21
+ };
22
+ export type GenericNotificationVariant = {
23
+ /**
24
+ * @deprecated Please use `variant` instead
25
+ */
26
+ type?: never;
27
+ /**
28
+ * If you are transitioning from `type`:
29
+ * - `positive` should be `success`
30
+ * - `negative` should be `warning`
31
+ */
32
+ variant: NotificationVariant;
33
+ };
34
+ export type GenericNotificationProps = GenericNotificationBase & (GenericNotificationType | GenericNotificationVariant);
16
35
  export declare const GenericNotification: {
17
- ({ type, style, children, title, persistent, onHide, noBottomMargin, forceMultiline, headingProps, classNameOverride, ...restProps }: GenericNotificationProps): JSX.Element | null;
36
+ ({ type, variant, style, children, title, persistent, onHide, noBottomMargin, forceMultiline, headingProps, classNameOverride, ...restProps }: GenericNotificationProps): JSX.Element | null;
18
37
  displayName: string;
19
38
  };
39
+ export {};
@@ -1,8 +1,15 @@
1
- import { NotificationType } from "../../types";
2
- export type NotificationIconProps = {
1
+ import { NotificationType, NotificationVariant } from "../../types";
2
+ export type NotificationIconTypeProps = {
3
3
  type: NotificationType;
4
4
  };
5
- export declare const NotificationIcon: {
6
- ({ type, }: NotificationIconProps): JSX.Element;
5
+ export declare const NotificationIconType: {
6
+ ({ type, }: NotificationIconTypeProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export type NotificationIconVariantProps = {
10
+ variant: NotificationVariant;
11
+ };
12
+ export declare const NotificationIconVariant: {
13
+ ({ variant, }: NotificationIconVariantProps): JSX.Element;
7
14
  displayName: string;
8
15
  };
@@ -1 +1,2 @@
1
- export type NotificationType = "positive" | "informative" | "cautionary" | "negative" | "security";
1
+ export type NotificationType = "cautionary" | "informative" | "negative" | "positive" | "security";
2
+ export type NotificationVariant = "cautionary" | "informative" | "success" | "security" | "warning";
@@ -1,24 +1,43 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  import { OverrideClassName } from "../types/OverrideClassName";
3
- export type ProgressBarProps = {
3
+ export type ProgressBarMood = {
4
+ /**
5
+ * @deprecated Use `color` prop instead
6
+ */
7
+ mood: "positive" | "informative" | "negative" | "cautionary";
8
+ color?: never;
9
+ };
10
+ export type ProgressBarColor = {
11
+ /**
12
+ * @deprecated Use `color` prop instead
13
+ */
14
+ mood?: never;
15
+ /**
16
+ * If transitioning from `mood`:
17
+ * - `cautionary` -> `yellow`
18
+ * - `informative` -> `blue`
19
+ * - `negative` -> `red`
20
+ * - `positive` -> `green`
21
+ */
22
+ color: "blue" | "green" | "red" | "yellow";
23
+ };
24
+ export type ProgressBarBaseProps = {
4
25
  /** A value that represents completed progress */
5
26
  value: number;
6
27
  /** A value that sets the maximum progress that can be achieved */
7
28
  max: number;
8
29
  /** Adds an animated state to indicate loading progress */
9
30
  isAnimating: boolean;
10
- mood: Mood;
11
31
  subtext?: string;
12
32
  label?: string;
13
33
  isReversed: boolean;
14
- } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
15
- type Mood = "positive" | "informative" | "negative" | "cautionary";
34
+ } & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, "color">>;
35
+ export type ProgressBarProps = ProgressBarBaseProps & (ProgressBarMood | ProgressBarColor);
16
36
  /**
17
37
  * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896891/Progress+Bar Guidance} |
18
38
  * {@link https://cultureamp.design/?path=/docs/components-progress-bar--docs Storybook}
19
39
  */
20
40
  export declare const ProgressBar: {
21
- ({ value, max, isAnimating, mood, subtext, label, classNameOverride, isReversed, ...restProps }: ProgressBarProps): JSX.Element;
41
+ ({ value, max, isAnimating, mood, color, subtext, label, classNameOverride, isReversed, ...restProps }: ProgressBarProps): JSX.Element;
22
42
  displayName: string;
23
43
  };
24
- export {};
@@ -2,7 +2,6 @@ import React, { HTMLAttributes } from "react";
2
2
  import { AllowedHeadingTags } from "../../../Heading";
3
3
  import { GenericButtonProps } from "../../../__actions__/Button/v1/GenericButton";
4
4
  import { OverrideClassName } from "../../../types/OverrideClassName";
5
- import { Moods } from "./types";
6
5
  export type TileAction = {
7
6
  label: string;
8
7
  onClick?: GenericButtonProps["onClick"];
@@ -25,10 +24,18 @@ export type GenericTileProps = {
25
24
  titleTag?: AllowedHeadingTags;
26
25
  metadata?: string;
27
26
  information?: TileInformation | React.ReactNode;
28
- mood?: Moods;
27
+ /** @deprecated Use `variant` instead */
28
+ mood?: "positive" | "informative" | "cautionary" | "assertive" | "negative" | "prominent";
29
+ /**
30
+ * If you are transitioning from `mood`:
31
+ * - `prominent` should be `expert-advice`
32
+ * - all else should be `default`
33
+ * @default default
34
+ */
35
+ variant?: "default" | "expert-advice";
29
36
  footer: React.ReactNode;
30
37
  } & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, "title">>;
31
38
  export declare const GenericTile: {
32
- ({ children, title, titleTag, metadata, information, mood, footer, classNameOverride, ...restProps }: GenericTileProps): JSX.Element;
39
+ ({ children, title, titleTag, metadata, information, mood, variant, footer, classNameOverride, ...restProps }: GenericTileProps): JSX.Element;
33
40
  displayName: string;
34
41
  };
@@ -1,9 +1,13 @@
1
1
  import React, { HTMLAttributes } from "react";
2
2
  import { OverrideClassName } from "../types/OverrideClassName";
3
- import { WellBorderStyleType, WellVariantType } from "./types";
3
+ import { WellBorderStyleType, WellVariantType, WellColors } from "./types";
4
4
  export type WellProps = {
5
5
  children?: React.ReactNode;
6
+ /** @deprecated This will not fallback to `default` variant. `default` can be used but must be explicitly passed to the Well component. It is recommended to use `color` prop and `gray` value if you need a gray background. */
6
7
  variant?: WellVariantType;
8
+ /** @default `white` */
9
+ color?: WellColors;
10
+ /** @default `solid` */
7
11
  borderStyle?: WellBorderStyleType;
8
12
  noMargin?: boolean;
9
13
  } & OverrideClassName<HTMLAttributes<HTMLDivElement>>;
@@ -12,6 +16,6 @@ export type WellProps = {
12
16
  * {@link https://cultureamp.design/?path=/docs/components-well--docs Storybook}
13
17
  */
14
18
  export declare const Well: {
15
- ({ children, variant, borderStyle, noMargin, classNameOverride, ...restProps }: WellProps): JSX.Element;
19
+ ({ children, variant, color, borderStyle, noMargin, classNameOverride, ...restProps }: WellProps): JSX.Element;
16
20
  displayName: string;
17
21
  };
@@ -1,4 +1,8 @@
1
+ /** @deprecated */
1
2
  export declare const variantTypes: readonly ["positive", "negative", "informative", "cautionary", "default", "assertive", "prominent"];
3
+ /** @deprecated use `WellColors` and `color` prop instead */
2
4
  export type WellVariantType = (typeof variantTypes)[number];
5
+ export declare const wellColors: readonly ["white", "gray", "blue", "yellow", "orange", "red", "green", "purple"];
6
+ export type WellColors = (typeof wellColors)[number];
3
7
  export declare const borderStyleTypes: readonly ["solid", "dashed", "none"];
4
8
  export type WellBorderStyleType = (typeof borderStyleTypes)[number];
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- import { HeadingProps } from "../Heading";
3
- import { SceneProps, SpotProps } from "../Illustration";
4
- import { ButtonProps } from "../__actions__/v2";
5
- import { TooltipProps } from "../__overlays__/Tooltip/v1";
2
+ import { HeadingProps } from "../../../Heading";
3
+ import { SceneProps, SpotProps } from "../../../Illustration";
4
+ import { ButtonProps } from "../../../__actions__/v2";
5
+ import { TooltipProps } from "../../../__overlays__/Tooltip/v1";
6
6
  import { VariantType } from "./types";
7
7
  export type ActionProps = ButtonProps & {
8
8
  tooltip?: TooltipProps;
@@ -0,0 +1,59 @@
1
+ import React from "react";
2
+ import { HeadingProps } from "../../../Heading";
3
+ import { SceneProps, SpotProps } from "../../../Illustration";
4
+ import { ButtonProps } from "../../../__actions__/v2";
5
+ import { TooltipProps } from "../../../__overlays__/Tooltip/v1";
6
+ export type ActionProps = ButtonProps & {
7
+ tooltip?: TooltipProps;
8
+ };
9
+ type LayoutType = "default" | "inline" | "stacked";
10
+ type IllustrationType = "spot" | "scene";
11
+ type TextAlignment = "center" | "left";
12
+ type GuidanceBlockActions = {
13
+ primary: ActionProps;
14
+ secondary?: ActionProps;
15
+ dismiss?: {
16
+ onClick: () => void;
17
+ };
18
+ };
19
+ type BaseGuidanceBlockProps = {
20
+ layout?: LayoutType;
21
+ illustration: React.ReactElement<SpotProps | SceneProps>;
22
+ illustrationType?: IllustrationType;
23
+ smallScreenTextAlignment?: TextAlignment;
24
+ actions?: GuidanceBlockActions;
25
+ secondaryDismiss?: boolean;
26
+ /**
27
+ * If you are migrating from the KAIO v1:
28
+ * - `prominent` is now `expert-advice`
29
+ * - All other variants are removed in favour of `default`
30
+ */
31
+ variant?: "default" | "expert-advice";
32
+ withActionButtonArrow?: boolean;
33
+ noMaxWidth?: boolean;
34
+ };
35
+ type GuidanceBlockWithText = {
36
+ text: {
37
+ title: string;
38
+ titleTag?: HeadingProps["tag"];
39
+ description: string | React.ReactNode;
40
+ };
41
+ } & BaseGuidanceBlockProps;
42
+ type GuidanceBlockPropsWithContent = {
43
+ content: React.ReactElement;
44
+ } & BaseGuidanceBlockProps;
45
+ export type GuidanceBlockProps = GuidanceBlockWithText | GuidanceBlockPropsWithContent;
46
+ export type GuidanceBlockState = {
47
+ hidden: boolean;
48
+ removed: boolean;
49
+ mediaQueryLayout: string;
50
+ };
51
+ /**
52
+ * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093807/Guidance+Block Guidance} |
53
+ * {@link https://cultureamp.design/?path=/docs/components-guidanceblock--docs Storybook}
54
+ */
55
+ export declare const GuidanceBlock: {
56
+ ({ layout, variant, withActionButtonArrow, noMaxWidth, illustrationType, smallScreenTextAlignment, actions, illustration, secondaryDismiss, ...restProps }: GuidanceBlockProps): JSX.Element;
57
+ displayName: string;
58
+ };
59
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./GuidanceBlock";
@@ -0,0 +1 @@
1
+ export * from "./GuidanceBlock/v1";
@@ -0,0 +1 @@
1
+ export * from "./GuidanceBlock/v2";
@@ -20,7 +20,6 @@ export * from "./ErrorPage";
20
20
  export * from "./FieldGroup";
21
21
  export * from "./FieldMessage";
22
22
  export * from "./Filter";
23
- export * from "./GuidanceBlock";
24
23
  export * from "./Heading";
25
24
  export * from "./Icon";
26
25
  export * from "./Illustration";
@@ -61,3 +60,4 @@ export * from "./Workflow";
61
60
  export * from "./__overlays__/Tooltip/v1";
62
61
  export * from "./__actions__/Menu/v1";
63
62
  export * from "./__actions__/Button/v1";
63
+ export * from "./__containers__/GuidanceBlock/v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "1.57.1",
3
+ "version": "1.58.0",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -13,6 +13,8 @@
13
13
  "url": "git+https://github.com/cultureamp/kaizen-design-system.git"
14
14
  },
15
15
  "files": [
16
+ "bin",
17
+ "codemods",
16
18
  "future",
17
19
  "v1",
18
20
  "v2",
@@ -28,6 +30,9 @@
28
30
  "sideEffects": [
29
31
  "styles.css"
30
32
  ],
33
+ "bin": {
34
+ "kaizen-codemod": "./bin/codemod.sh"
35
+ },
31
36
  "dependencies": {
32
37
  "@floating-ui/react-dom": "^2.1.1",
33
38
  "@headlessui/react": "<=1.5.0",
@@ -76,6 +81,7 @@
76
81
  "react-textfit": "^1.1.1",
77
82
  "resize-observer-polyfill": "^1.5.1",
78
83
  "use-debounce": "^10.0.1",
84
+ "tsx": "^4.16.2",
79
85
  "uuid": "^10.0.0",
80
86
  "@kaizen/hosted-assets": "2.0.3"
81
87
  },
@@ -99,9 +105,8 @@
99
105
  "svgo": "^3.3.2",
100
106
  "ts-jest": "^29.2.3",
101
107
  "tslib": "^2.6.3",
102
- "tsx": "^4.16.2",
103
- "@kaizen/package-bundler": "1.1.3",
104
- "@kaizen/design-tokens": "10.5.1"
108
+ "@kaizen/design-tokens": "10.5.1",
109
+ "@kaizen/package-bundler": "1.1.3"
105
110
  },
106
111
  "devDependenciesComments": {
107
112
  "postcss": "Installed in root",
@@ -111,7 +116,16 @@
111
116
  "peerDependencies": {
112
117
  "@cultureamp/i18n-react-intl": "^2.5.9",
113
118
  "react": "^18.3.1",
114
- "react-intl": "^6.6.8"
119
+ "react-intl": "^6.6.8",
120
+ "typescript": "^5.5.4"
121
+ },
122
+ "peerDependenciesComments": {
123
+ "typescript": "Used for codemods"
124
+ },
125
+ "peerDependenciesMeta": {
126
+ "typescript": {
127
+ "optional": true
128
+ }
115
129
  },
116
130
  "scripts": {
117
131
  "clean": "rm -rf dist",