@kaizen/components 0.0.0-canary-rollup-plugin-node-externals-v7-20240206233319 → 0.0.0-canary-remove-tailwind-from-kaio-20240305223928

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 (65) hide show
  1. package/dist/cjs/Modal/GenericModal/GenericModal.cjs +10 -1
  2. package/dist/cjs/Modal/GenericModal/GenericModal.cjs.map +1 -1
  3. package/dist/cjs/Slider/Slider.cjs +1 -1
  4. package/dist/cjs/Slider/Slider.cjs.map +1 -1
  5. package/dist/cjs/Slider/Slider.module.scss.cjs +1 -0
  6. package/dist/cjs/Slider/Slider.module.scss.cjs.map +1 -1
  7. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs +1 -1
  8. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs.map +1 -1
  9. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs +2 -1
  10. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs.map +1 -1
  11. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -1
  12. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs.map +1 -1
  13. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +1 -0
  14. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs.map +1 -1
  15. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
  16. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
  17. package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
  18. package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
  19. package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
  20. package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
  21. package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
  22. package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
  23. package/dist/cjs/index.css +6 -6
  24. package/dist/esm/Modal/GenericModal/GenericModal.mjs +11 -2
  25. package/dist/esm/Modal/GenericModal/GenericModal.mjs.map +1 -1
  26. package/dist/esm/Slider/Slider.mjs +1 -1
  27. package/dist/esm/Slider/Slider.mjs.map +1 -1
  28. package/dist/esm/Slider/Slider.module.scss.mjs +1 -0
  29. package/dist/esm/Slider/Slider.module.scss.mjs.map +1 -1
  30. package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
  31. package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs.map +1 -1
  32. package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs +2 -1
  33. package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs.map +1 -1
  34. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +1 -1
  35. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs.map +1 -1
  36. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +1 -0
  37. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs.map +1 -1
  38. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
  39. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
  40. package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
  41. package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
  42. package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
  43. package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
  44. package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
  45. package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
  46. package/dist/esm/index.css +6 -6
  47. package/dist/styles.css +1 -1
  48. package/locales/cy.json +2 -2
  49. package/package.json +37 -37
  50. package/src/BrandMoment/_docs/ExampleHeaders.scss +1 -0
  51. package/src/BrandMoment/_docs/ExampleHeaders.tsx +6 -8
  52. package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +35 -0
  53. package/src/Illustration/Scene/_docs/Scene.mdx +1 -0
  54. package/src/Modal/GenericModal/GenericModal.tsx +8 -2
  55. package/src/MultiSelect/_docs/MultiSelect.mdx +1 -3
  56. package/src/Slider/Slider.module.scss +4 -0
  57. package/src/Slider/Slider.tsx +1 -1
  58. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +6 -0
  59. package/src/Tile/MultiActionTile/MultiActionTile.tsx +1 -1
  60. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +4 -0
  61. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
  62. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
  63. package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
  64. package/src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
  65. package/src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
package/locales/cy.json CHANGED
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "kzErrorPage.400.message" : {
29
29
  "description" : "Call to action instructions for the user",
30
- "message" : "Problem wrth lwytho'r dudalen ar hyn o bryd. Ceisiwch eto neu ewch adref."
30
+ "message" : "Problem wrth lwytho'r dudalen ar hyn o bryd. Ceisiwch eto neu ewch adref."
31
31
  },
32
32
  "kzErrorPage.400.title" : {
33
33
  "description" : "Heading for page",
34
- "message" : "Problem wrth lwytho'r dudalen"
34
+ "message" : "Problem wrth lwytho'r dudalen"
35
35
  },
36
36
  "kzErrorPage.401.message" : {
37
37
  "description" : "Call to action instructions for the user",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "0.0.0-canary-rollup-plugin-node-externals-v7-20240206233319",
3
+ "version": "0.0.0-canary-remove-tailwind-from-kaio-20240305223928",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -26,33 +26,33 @@
26
26
  "styles.css"
27
27
  ],
28
28
  "dependencies": {
29
- "@floating-ui/react-dom": "^2.0.5",
29
+ "@floating-ui/react-dom": "^2.0.8",
30
30
  "@headlessui/react": "<=1.5.0",
31
- "@internationalized/date": "^3.5.1",
31
+ "@internationalized/date": "^3.5.2",
32
32
  "@popperjs/core": "^2.11.8",
33
33
  "@reach/tabs": "^0.18.0",
34
- "@react-aria/button": "^3.9.1",
35
- "@react-aria/datepicker": "^3.9.1",
36
- "@react-aria/focus": "^3.16.0",
37
- "@react-aria/i18n": "^3.10.0",
38
- "@react-aria/listbox": "^3.11.3",
39
- "@react-aria/menu": "^3.12.0",
40
- "@react-aria/overlays": "^3.20.0",
41
- "@react-aria/select": "^3.14.1",
42
- "@react-aria/utils": "^3.23.0",
43
- "@react-stately/collections": "^3.10.4",
44
- "@react-stately/datepicker": "^3.9.1",
45
- "@react-stately/list": "^3.10.2",
46
- "@react-stately/menu": "^3.6.0",
47
- "@react-stately/select": "^3.6.1",
48
- "@react-types/shared": "^3.22.0",
34
+ "@react-aria/button": "^3.9.3",
35
+ "@react-aria/datepicker": "^3.9.3",
36
+ "@react-aria/focus": "^3.16.2",
37
+ "@react-aria/i18n": "^3.10.2",
38
+ "@react-aria/listbox": "^3.11.5",
39
+ "@react-aria/menu": "^3.13.1",
40
+ "@react-aria/overlays": "^3.21.1",
41
+ "@react-aria/select": "^3.14.3",
42
+ "@react-aria/utils": "^3.23.2",
43
+ "@react-stately/collections": "^3.10.5",
44
+ "@react-stately/datepicker": "^3.9.2",
45
+ "@react-stately/list": "^3.10.3",
46
+ "@react-stately/menu": "^3.6.1",
47
+ "@react-stately/select": "^3.6.2",
48
+ "@react-types/shared": "^3.22.1",
49
49
  "classnames": "^2.5.1",
50
- "date-fns": "^3.0.6",
50
+ "date-fns": "^3.3.1",
51
51
  "lodash.debounce": "^4.0.8",
52
52
  "nanobus": "^4.5.0",
53
53
  "prosemirror-commands": "^1.5.2",
54
54
  "prosemirror-history": "^1.3.2",
55
- "prosemirror-inputrules": "^1.3.0",
55
+ "prosemirror-inputrules": "^1.4.0",
56
56
  "prosemirror-keymap": "^1.2.2",
57
57
  "prosemirror-model": "^1.19.4",
58
58
  "prosemirror-schema-basic": "^1.2.2",
@@ -60,10 +60,10 @@
60
60
  "prosemirror-state": "^1.4.3",
61
61
  "prosemirror-transform": "^1.8.0",
62
62
  "prosemirror-utils": "^1.2.1-0",
63
- "prosemirror-view": "^1.32.7",
63
+ "prosemirror-view": "^1.33.1",
64
64
  "react-animate-height": "^3.2.3",
65
65
  "react-day-picker": "^8.10.0",
66
- "react-focus-lock": "^2.9.6",
66
+ "react-focus-lock": "^2.9.7",
67
67
  "react-focus-on": "^3.9.1",
68
68
  "react-media": "^1.10.0",
69
69
  "react-popper": "^2.3.0",
@@ -80,8 +80,8 @@
80
80
  },
81
81
  "devDependencies": {
82
82
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
83
- "@cultureamp/frontend-apis": "^9.2.0",
84
- "@cultureamp/i18n-react-intl": "^2.1.10",
83
+ "@cultureamp/frontend-apis": "^9.4.1",
84
+ "@cultureamp/i18n-react-intl": "^2.5.2",
85
85
  "@rollup/plugin-alias": "^5.1.0",
86
86
  "@rollup/plugin-babel": "^6.0.4",
87
87
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -90,33 +90,33 @@
90
90
  "@rollup/plugin-node-resolve": "^15.2.3",
91
91
  "@rollup/plugin-typescript": "^11.1.6",
92
92
  "@types/lodash.debounce": "^4.0.9",
93
- "@types/react-dom": "^18.2.18",
93
+ "@types/react-dom": "^18.2.19",
94
94
  "@types/react-textfit": "^1.1.4",
95
- "@types/uuid": "^9.0.7",
95
+ "@types/uuid": "^9.0.8",
96
96
  "agadoo": "^3.0.0",
97
- "autoprefixer": "^10.4.16",
97
+ "autoprefixer": "^10.4.17",
98
98
  "babel-plugin-pure-static-props": "^0.2.0",
99
99
  "concat-cli": "^4.0.0",
100
- "query-string": "^8.1.0",
101
- "react-intl": "^6.6.0",
102
- "rollup": "^4.9.5",
100
+ "query-string": "^9.0.0",
101
+ "react-intl": "^6.6.2",
102
+ "rollup": "^4.12.0",
103
103
  "rollup-plugin-dts": "^6.1.0",
104
104
  "rollup-plugin-ignore": "^1.0.10",
105
105
  "rollup-plugin-node-externals": "^7.0.1",
106
106
  "rollup-plugin-postcss": "^4.0.2",
107
- "sass": "^1.69.7",
107
+ "sass": "^1.71.1",
108
108
  "serialize-query-params": "^2.0.2",
109
109
  "svgo": "^3.2.0",
110
- "ts-jest": "^29.1.1",
110
+ "ts-jest": "^29.1.2",
111
111
  "ts-patch": "^3.1.2",
112
- "typescript-transform-paths": "^3.4.6",
113
- "@kaizen/design-tokens": "10.3.17",
114
- "@kaizen/tailwind": "1.2.3"
112
+ "typescript-transform-paths": "^3.4.7",
113
+ "@kaizen/tailwind": "1.2.4",
114
+ "@kaizen/design-tokens": "10.3.18"
115
115
  },
116
116
  "peerDependencies": {
117
- "@cultureamp/i18n-react-intl": "^2.1.10",
117
+ "@cultureamp/i18n-react-intl": "^2.5.1",
118
118
  "react": "^18.2.0",
119
- "react-intl": "^6.6.0"
119
+ "react-intl": "^6.6.2"
120
120
  },
121
121
  "scripts": {
122
122
  "build": "pnpm clean && pnpm prepublishOnly",
@@ -19,6 +19,7 @@
19
19
  flex: 0 0 50%;
20
20
  display: flex;
21
21
  justify-content: flex-end;
22
+ gap: $spacing-8;
22
23
  }
23
24
 
24
25
  .logoLink {
@@ -15,14 +15,12 @@ export const MinimalBasic = (): JSX.Element => (
15
15
  </a>
16
16
  </div>
17
17
  <div className={styles.headerRight}>
18
- <div className="mr-8">
19
- <Button
20
- href="#"
21
- label="Exit"
22
- icon={<CloseIcon role="presentation" />}
23
- secondary
24
- />
25
- </div>
18
+ <Button
19
+ href="#"
20
+ label="Exit"
21
+ icon={<CloseIcon role="presentation" />}
22
+ secondary
23
+ />
26
24
  <div className={styles.logoContainer}>
27
25
  <img src={assetUrl("brand/enso-default.svg")} alt="Culture Amp" />
28
26
  </div>
@@ -0,0 +1,35 @@
1
+ import { Controls, Meta, Canvas } from "@storybook/blocks"
2
+ import { ResourceLinks, KAIOInstallation, NoClipCanvas } from "~storybook/components"
3
+ import * as FilterMultiSelectStories from "./FilterMultiSelect.stories"
4
+
5
+ <Meta of={FilterMultiSelectStories} />
6
+
7
+ # Filter Bar
8
+
9
+ <ResourceLinks
10
+ sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/FilterMultiSelect"
11
+ className="!mb-8"
12
+ />
13
+
14
+ <KAIOInstallation exportNames="FilterMultiSelect" />
15
+
16
+ ## API
17
+
18
+ <NoClipCanvas of={FilterMultiSelectStories.Playground} />
19
+ <Controls of={FilterMultiSelectStories.Playground} />
20
+
21
+ ## Examples
22
+
23
+ The FilterMultiSelect is a component relies heavily on consumer implemntation. It is recommended that you use the below as a starting point, and ensure you follow best a11y practices.
24
+
25
+ ### With sections
26
+
27
+ <Canvas of={FilterMultiSelectStories.WithSections} />
28
+
29
+ ### With section headers
30
+
31
+ <Canvas of={FilterMultiSelectStories.WithSectionHeaders} />
32
+
33
+ ### Async
34
+
35
+ <Canvas of={FilterMultiSelectStories.Async} />
@@ -14,6 +14,7 @@ import * as SceneStories from "./Scene.stories"
14
14
 
15
15
 
16
16
  <KAIOInstallation
17
+ exportNames="BrandMomentPositiveOutro"
17
18
  />
18
19
 
19
20
  ## Overview
@@ -1,4 +1,4 @@
1
- import React, { useId, useState } from "react"
1
+ import React, { useEffect, useId, useState } from "react"
2
2
  import { createPortal } from "react-dom"
3
3
  import { Transition } from "@headlessui/react"
4
4
  import FocusLock from "react-focus-lock"
@@ -102,7 +102,7 @@ export const GenericModal = ({
102
102
  }
103
103
  }
104
104
 
105
- const onAfterLeaveHandler = (): void => {
105
+ const cleanUpAfterClose = (): void => {
106
106
  document.documentElement.classList.remove(
107
107
  styles.unscrollable,
108
108
  styles.pseudoScrollbar
@@ -111,7 +111,13 @@ export const GenericModal = ({
111
111
  if (onEscapeKeyup) {
112
112
  document.removeEventListener("keyup", onEscapeKeyup)
113
113
  }
114
+ }
114
115
 
116
+ /* Ensure sure add-on styles (e.g. unscrollable) and key event is cleaned up when the modal is unmounted*/
117
+ useEffect(() => () => cleanUpAfterClose(), [])
118
+
119
+ const onAfterLeaveHandler = (): void => {
120
+ cleanUpAfterClose()
115
121
  propsOnAfterLeave?.()
116
122
  }
117
123
 
@@ -1,5 +1,5 @@
1
1
  import { Canvas, Controls, Meta } from "@storybook/blocks"
2
- import { ResourceLinks, KAIOInstallation, SbReleaseNotification} from "~storybook/components"
2
+ import { ResourceLinks, KAIOInstallation } from "~storybook/components"
3
3
  import * as MultiSelectStories from "./MultiSelect.stories"
4
4
 
5
5
  <Meta of={MultiSelectStories} />
@@ -12,8 +12,6 @@ import * as MultiSelectStories from "./MultiSelect.stories"
12
12
  className="!mb-8"
13
13
  />
14
14
 
15
- <SbReleaseNotification />
16
-
17
15
  <KAIOInstallation exportNames="MultiSelect" />
18
16
 
19
17
  ## Overview
@@ -11,6 +11,10 @@
11
11
  margin-bottom: $spacing-sm;
12
12
  }
13
13
 
14
+ .label {
15
+ margin-bottom: $spacing-4;
16
+ }
17
+
14
18
  @media (min-width: $layout-breakpoints-medium) {
15
19
  .labelInline {
16
20
  &.wrapper {
@@ -42,7 +42,7 @@ export const Slider = ({
42
42
  )}
43
43
  >
44
44
  <div className={styles.labelWrapper}>
45
- <div className="mb-4">
45
+ <div className={styles.label}>
46
46
  <Label
47
47
  htmlFor={id}
48
48
  labelText={labelText}
@@ -1,3 +1,9 @@
1
+ @import "~@kaizen/design-tokens/sass/spacing";
2
+
1
3
  .actions {
2
4
  display: flex;
3
5
  }
6
+
7
+ .secondaryAction {
8
+ margin-inline-end: $spacing-8;
9
+ }
@@ -18,7 +18,7 @@ const renderActions = (
18
18
  ): JSX.Element => (
19
19
  <div className={styles.actions}>
20
20
  {secondaryAction && (
21
- <div className="mr-8">
21
+ <div className={styles.secondaryAction}>
22
22
  <Action action={secondaryAction} secondary />
23
23
  </div>
24
24
  )}
@@ -37,6 +37,10 @@ $tilePaddingTop: $spacing-xl;
37
37
  }
38
38
  }
39
39
 
40
+ .titleMeta {
41
+ padding-top: $spacing-4;
42
+ }
43
+
40
44
  .face {
41
45
  position: absolute;
42
46
  background-color: $color-white;
@@ -57,7 +57,7 @@ export const GenericTile = ({
57
57
  {title}
58
58
  </Heading>
59
59
  {metadata && (
60
- <div className="pt-4">
60
+ <div className={styles.titleMeta}>
61
61
  <Text variant="small" color="dark-reduced-opacity">
62
62
  {metadata}
63
63
  </Text>
@@ -6,6 +6,7 @@ import {
6
6
  SuccessIcon,
7
7
  } from "~components/Icon"
8
8
  import { Text } from "~components/Text"
9
+ import { VisuallyHidden } from "~components/VisuallyHidden"
9
10
  import styles from "./ProgressStepper.module.scss"
10
11
 
11
12
  export type ProgressStepperProps = {
@@ -93,10 +94,10 @@ export const ProgressStepper = ({
93
94
  aria-current={isCurrentStep}
94
95
  >
95
96
  <div className={styles.stepContent}>
96
- <span className="sr-only">
97
+ <VisuallyHidden>
97
98
  {/* will need to be translated */}
98
99
  {accessibleName}
99
- </span>
100
+ </VisuallyHidden>
100
101
  <Text
101
102
  classNameOverride={styles.stepName}
102
103
  variant="small"
@@ -1,6 +1,7 @@
1
1
  import React, { HTMLAttributes } from "react"
2
2
  import { Heading } from "~components/Heading"
3
3
  import { Tag, DefaultTagProps } from "~components/Tag"
4
+ import { VisuallyHidden } from "~components/VisuallyHidden"
4
5
  import { OverrideClassName } from "~types/OverrideClassName"
5
6
  import styles from "./Titles.module.scss"
6
7
 
@@ -36,7 +37,7 @@ export const Titles = ({
36
37
  color="dark-reduced-opacity"
37
38
  >
38
39
  {workflowName}
39
- <span className="sr-only">:</span>
40
+ <VisuallyHidden>:</VisuallyHidden>
40
41
  </Heading>
41
42
  <span>{stepName}</span>
42
43
  </Heading>
@@ -6,6 +6,7 @@ import {
6
6
  SuccessIcon,
7
7
  } from "~components/Icon"
8
8
  import { Text } from "~components/Text"
9
+ import { VisuallyHidden } from "~components/VisuallyHidden"
9
10
  import styles from "./ProgressStepper.module.scss"
10
11
 
11
12
  export type Step = {
@@ -104,10 +105,10 @@ export const ProgressStepper = ({
104
105
  aria-current={isCurrentStep}
105
106
  >
106
107
  <div className={styles.stepContent}>
107
- <span className="sr-only">
108
+ <VisuallyHidden>
108
109
  {/* will need to be translated */}
109
110
  {accessibleName}
110
- </span>
111
+ </VisuallyHidden>
111
112
  <Text
112
113
  classNameOverride={styles.stepName}
113
114
  variant="small"
@@ -1,6 +1,7 @@
1
1
  import React, { HTMLAttributes } from "react"
2
2
  import { Heading } from "~components/Heading"
3
3
  import { Tag, DefaultTagProps } from "~components/Tag"
4
+ import { VisuallyHidden } from "~components/VisuallyHidden"
4
5
  import { OverrideClassName } from "~types/OverrideClassName"
5
6
  import styles from "./Titles.module.scss"
6
7
 
@@ -36,7 +37,7 @@ export const Titles = ({
36
37
  color="dark-reduced-opacity"
37
38
  >
38
39
  {workflowName}
39
- <span className="sr-only">:</span>
40
+ <VisuallyHidden>:</VisuallyHidden>
40
41
  </Heading>
41
42
  <span>{stepName}</span>
42
43
  </Heading>