@kaizen/components 2.2.0 → 2.2.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.
Files changed (35) hide show
  1. package/codemods/utils/updateKaioImports.ts +1 -2
  2. package/dist/cjs/src/Calendar/CalendarRange/CalendarRange.cjs +4 -2
  3. package/dist/cjs/src/Calendar/CalendarRange/CalendarRange.module.scss.cjs +2 -1
  4. package/dist/cjs/src/Calendar/CalendarSingle/CalendarSingle.cjs +9 -5
  5. package/dist/cjs/src/Calendar/CalendarSingle/CalendarSingle.module.scss.cjs +2 -1
  6. package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +4 -2
  7. package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.cjs +2 -1
  8. package/dist/cjs/src/TitleBlock/subcomponents/Toolbar.cjs +1 -1
  9. package/dist/esm/src/Calendar/CalendarRange/CalendarRange.mjs +4 -2
  10. package/dist/esm/src/Calendar/CalendarRange/CalendarRange.module.scss.mjs +2 -1
  11. package/dist/esm/src/Calendar/CalendarSingle/CalendarSingle.mjs +9 -5
  12. package/dist/esm/src/Calendar/CalendarSingle/CalendarSingle.module.scss.mjs +2 -1
  13. package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +4 -2
  14. package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.mjs +2 -1
  15. package/dist/esm/src/TitleBlock/subcomponents/Toolbar.mjs +1 -1
  16. package/dist/styles.css +19 -14
  17. package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +3 -1
  18. package/package.json +24 -24
  19. package/src/Calendar/CalendarRange/CalendarRange.module.scss +4 -0
  20. package/src/Calendar/CalendarRange/CalendarRange.tsx +16 -2
  21. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +4 -0
  22. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +20 -2
  23. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +4 -0
  24. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +16 -2
  25. package/src/EmptyState/EmptyState.module.css +3 -3
  26. package/src/Icon/Icon.module.css +1 -1
  27. package/src/IconV1/_docs/icon.module.scss +1 -1
  28. package/src/Illustration/subcomponents/Base/Base.module.scss +1 -2
  29. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +1 -1
  30. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +1 -1
  31. package/src/Select/Select.tsx +1 -2
  32. package/src/Tile/TileGrid/TileGrid.module.scss +1 -1
  33. package/src/TitleBlock/TitleBlock.module.scss +1 -3
  34. package/src/TitleBlock/subcomponents/Toolbar.tsx +1 -1
  35. package/src/VisuallyHidden/VisuallyHidden.module.scss +1 -2
@@ -130,8 +130,7 @@ export const updateKaioImports =
130
130
  if (!ts.isSourceFile(rootNode)) return rootNode
131
131
 
132
132
  if (!importsToRemove && !importsToAdd) return rootNode
133
- if (importsToRemove && importsToRemove.size === 0 && importsToAdd && importsToAdd.size === 0)
134
- return rootNode
133
+ if (importsToRemove?.size === 0 && importsToAdd?.size === 0) return rootNode
135
134
 
136
135
  const { factory } = context
137
136
 
@@ -60,13 +60,15 @@ var CalendarRange = function (_a) {
60
60
  return React__default.default.createElement(Icon.Icon, {
61
61
  name: "arrow_back",
62
62
  isPresentational: true,
63
- shouldMirrorInRTL: true
63
+ shouldMirrorInRTL: true,
64
+ className: CalendarRange_module.chevronIcon
64
65
  });
65
66
  }
66
67
  return React__default.default.createElement(Icon.Icon, {
67
68
  name: "arrow_forward",
68
69
  isPresentational: true,
69
- shouldMirrorInRTL: true
70
+ shouldMirrorInRTL: true,
71
+ className: CalendarRange_module.chevronIcon
70
72
  });
71
73
  }
72
74
  },
@@ -7,6 +7,7 @@ var styles = {
7
7
  "dayRangeStart": "CalendarRange-module_dayRangeStart__TwdDT",
8
8
  "dayRangeEnd": "CalendarRange-module_dayRangeEnd__y6dEB",
9
9
  "dayRangeMiddle": "CalendarRange-module_dayRangeMiddle__SybKY",
10
- "hidden": "CalendarRange-module_hidden__D47kb"
10
+ "hidden": "CalendarRange-module_hidden__D47kb",
11
+ "chevronIcon": "CalendarRange-module_chevronIcon__ULJzd"
11
12
  };
12
13
  module.exports = styles;
@@ -25,7 +25,9 @@ var CalendarSingle = function (_a) {
25
25
  weekStartsOn = _a.weekStartsOn,
26
26
  _b = _a.locale,
27
27
  locale$1 = _b === void 0 ? locale.enAU : _b,
28
- restProps = tslib.__rest(_a, ["id", "onMount", "classNameOverride", "selected", "defaultMonth", "weekStartsOn", "locale"]);
28
+ _c = _a.components,
29
+ components = _c === void 0 ? {} : _c,
30
+ restProps = tslib.__rest(_a, ["id", "onMount", "classNameOverride", "selected", "defaultMonth", "weekStartsOn", "locale", "components"]);
29
31
  var calendarRef = React.useRef(null);
30
32
  React.useEffect(function () {
31
33
  if (calendarRef.current) onMount === null || onMount === void 0 ? void 0 : onMount(calendarRef.current);
@@ -48,22 +50,24 @@ var CalendarSingle = function (_a) {
48
50
  defaultMonth: selectedMonth,
49
51
  weekStartsOn: isValidWeekStartsOn.isValidWeekStartsOn(weekStartsOn) ? weekStartsOn : undefined,
50
52
  classNames: classNames,
51
- components: {
53
+ components: tslib.__assign({
52
54
  Chevron: function (props) {
53
55
  if (props.orientation === 'left') {
54
56
  return React__default.default.createElement(Icon.Icon, {
55
57
  name: "arrow_back",
56
58
  isPresentational: true,
57
- shouldMirrorInRTL: true
59
+ shouldMirrorInRTL: true,
60
+ className: CalendarSingle_module.chevronIcon
58
61
  });
59
62
  }
60
63
  return React__default.default.createElement(Icon.Icon, {
61
64
  name: "arrow_forward",
62
65
  isPresentational: true,
63
- shouldMirrorInRTL: true
66
+ shouldMirrorInRTL: true,
67
+ className: CalendarSingle_module.chevronIcon
64
68
  });
65
69
  }
66
- },
70
+ }, components),
67
71
  locale: locale$1
68
72
  }, restProps)));
69
73
  };
@@ -2,6 +2,7 @@
2
2
 
3
3
  var styles = {
4
4
  "nav": "CalendarSingle-module_nav__wSVua",
5
- "navButtonNext": "CalendarSingle-module_navButtonNext__-GrZx"
5
+ "navButtonNext": "CalendarSingle-module_navButtonNext__-GrZx",
6
+ "chevronIcon": "CalendarSingle-module_chevronIcon__0PRnR"
6
7
  };
7
8
  module.exports = styles;
@@ -52,13 +52,15 @@ var LegacyCalendarRange = function (_a) {
52
52
  return React__default.default.createElement(Icon.Icon, {
53
53
  name: "arrow_back",
54
54
  isPresentational: true,
55
- shouldMirrorInRTL: true
55
+ shouldMirrorInRTL: true,
56
+ className: LegacyCalendarRange_module.chevronIcon
56
57
  });
57
58
  }
58
59
  return React__default.default.createElement(Icon.Icon, {
59
60
  name: "arrow_forward",
60
61
  isPresentational: true,
61
- shouldMirrorInRTL: true
62
+ shouldMirrorInRTL: true,
63
+ className: LegacyCalendarRange_module.chevronIcon
62
64
  });
63
65
  }
64
66
  },
@@ -4,6 +4,7 @@ var styles = {
4
4
  "nav": "LegacyCalendarRange-module_nav__DsZpy",
5
5
  "dayRangeStart": "LegacyCalendarRange-module_dayRangeStart__vRr5P",
6
6
  "dayRangeEnd": "LegacyCalendarRange-module_dayRangeEnd__PfuWy",
7
- "dayRangeMiddle": "LegacyCalendarRange-module_dayRangeMiddle__M27gR"
7
+ "dayRangeMiddle": "LegacyCalendarRange-module_dayRangeMiddle__M27gR",
8
+ "chevronIcon": "LegacyCalendarRange-module_chevronIcon__Q6pOJ"
8
9
  };
9
10
  module.exports = styles;
@@ -19,7 +19,7 @@ var Toolbar = function (_a) {
19
19
  _b = _a.noGap,
20
20
  noGap = _b === void 0 ? false : _b,
21
21
  automationId = _a.automationId;
22
- if (!items || items && items.length === 0) {
22
+ if (!items || (items === null || items === void 0 ? void 0 : items.length) === 0) {
23
23
  return React__default.default.createElement(React__default.default.Fragment, null);
24
24
  }
25
25
  return React__default.default.createElement("div", {
@@ -53,13 +53,15 @@ const CalendarRange = /*#__PURE__*/function () {
53
53
  return /*#__PURE__*/React.createElement(Icon, {
54
54
  name: "arrow_back",
55
55
  isPresentational: true,
56
- shouldMirrorInRTL: true
56
+ shouldMirrorInRTL: true,
57
+ className: styles.chevronIcon
57
58
  });
58
59
  }
59
60
  return /*#__PURE__*/React.createElement(Icon, {
60
61
  name: "arrow_forward",
61
62
  isPresentational: true,
62
- shouldMirrorInRTL: true
63
+ shouldMirrorInRTL: true,
64
+ className: styles.chevronIcon
63
65
  });
64
66
  }
65
67
  },
@@ -5,6 +5,7 @@ var styles = {
5
5
  "dayRangeStart": "CalendarRange-module_dayRangeStart__TwdDT",
6
6
  "dayRangeEnd": "CalendarRange-module_dayRangeEnd__y6dEB",
7
7
  "dayRangeMiddle": "CalendarRange-module_dayRangeMiddle__SybKY",
8
- "hidden": "CalendarRange-module_hidden__D47kb"
8
+ "hidden": "CalendarRange-module_hidden__D47kb",
9
+ "chevronIcon": "CalendarRange-module_chevronIcon__ULJzd"
9
10
  };
10
11
  export { styles as default };
@@ -18,7 +18,9 @@ const CalendarSingle = /*#__PURE__*/function () {
18
18
  weekStartsOn = _a.weekStartsOn,
19
19
  _b = _a.locale,
20
20
  locale = _b === void 0 ? enAU : _b,
21
- restProps = __rest(_a, ["id", "onMount", "classNameOverride", "selected", "defaultMonth", "weekStartsOn", "locale"]);
21
+ _c = _a.components,
22
+ components = _c === void 0 ? {} : _c,
23
+ restProps = __rest(_a, ["id", "onMount", "classNameOverride", "selected", "defaultMonth", "weekStartsOn", "locale", "components"]);
22
24
  var calendarRef = useRef(null);
23
25
  useEffect(function () {
24
26
  if (calendarRef.current) onMount === null || onMount === void 0 ? void 0 : onMount(calendarRef.current);
@@ -41,22 +43,24 @@ const CalendarSingle = /*#__PURE__*/function () {
41
43
  defaultMonth: selectedMonth,
42
44
  weekStartsOn: isValidWeekStartsOn(weekStartsOn) ? weekStartsOn : undefined,
43
45
  classNames: classNames,
44
- components: {
46
+ components: __assign({
45
47
  Chevron: function (props) {
46
48
  if (props.orientation === 'left') {
47
49
  return /*#__PURE__*/React.createElement(Icon, {
48
50
  name: "arrow_back",
49
51
  isPresentational: true,
50
- shouldMirrorInRTL: true
52
+ shouldMirrorInRTL: true,
53
+ className: styles.chevronIcon
51
54
  });
52
55
  }
53
56
  return /*#__PURE__*/React.createElement(Icon, {
54
57
  name: "arrow_forward",
55
58
  isPresentational: true,
56
- shouldMirrorInRTL: true
59
+ shouldMirrorInRTL: true,
60
+ className: styles.chevronIcon
57
61
  });
58
62
  }
59
- },
63
+ }, components),
60
64
  locale: locale
61
65
  }, restProps)));
62
66
  };
@@ -1,5 +1,6 @@
1
1
  var styles = {
2
2
  "nav": "CalendarSingle-module_nav__wSVua",
3
- "navButtonNext": "CalendarSingle-module_navButtonNext__-GrZx"
3
+ "navButtonNext": "CalendarSingle-module_navButtonNext__-GrZx",
4
+ "chevronIcon": "CalendarSingle-module_chevronIcon__0PRnR"
4
5
  };
5
6
  export { styles as default };
@@ -45,13 +45,15 @@ const LegacyCalendarRange = /*#__PURE__*/function () {
45
45
  return /*#__PURE__*/React.createElement(Icon, {
46
46
  name: "arrow_back",
47
47
  isPresentational: true,
48
- shouldMirrorInRTL: true
48
+ shouldMirrorInRTL: true,
49
+ className: styles.chevronIcon
49
50
  });
50
51
  }
51
52
  return /*#__PURE__*/React.createElement(Icon, {
52
53
  name: "arrow_forward",
53
54
  isPresentational: true,
54
- shouldMirrorInRTL: true
55
+ shouldMirrorInRTL: true,
56
+ className: styles.chevronIcon
55
57
  });
56
58
  }
57
59
  },
@@ -2,6 +2,7 @@ var styles = {
2
2
  "nav": "LegacyCalendarRange-module_nav__DsZpy",
3
3
  "dayRangeStart": "LegacyCalendarRange-module_dayRangeStart__vRr5P",
4
4
  "dayRangeEnd": "LegacyCalendarRange-module_dayRangeEnd__PfuWy",
5
- "dayRangeMiddle": "LegacyCalendarRange-module_dayRangeMiddle__M27gR"
5
+ "dayRangeMiddle": "LegacyCalendarRange-module_dayRangeMiddle__M27gR",
6
+ "chevronIcon": "LegacyCalendarRange-module_chevronIcon__Q6pOJ"
6
7
  };
7
8
  export { styles as default };
@@ -11,7 +11,7 @@ const Toolbar = /*#__PURE__*/function () {
11
11
  _b = _a.noGap,
12
12
  noGap = _b === void 0 ? false : _b,
13
13
  automationId = _a.automationId;
14
- if (!items || items && items.length === 0) {
14
+ if (!items || (items === null || items === void 0 ? void 0 : items.length) === 0) {
15
15
  return /*#__PURE__*/React.createElement(React.Fragment, null);
16
16
  }
17
17
  return /*#__PURE__*/React.createElement("div", {
package/dist/styles.css CHANGED
@@ -12,7 +12,7 @@
12
12
  text-transform: none;
13
13
  display: inline-block;
14
14
  white-space: nowrap;
15
- word-wrap: normal;
15
+ overflow-wrap: normal;
16
16
  direction: ltr;
17
17
  font-feature-settings: 'liga';
18
18
  -webkit-font-smoothing: antialiased;
@@ -559,8 +559,7 @@
559
559
  }
560
560
  @layer kz-components {
561
561
  .VisuallyHidden-module_srOnly__tTjOK {
562
- clip: rect(0 0 0 0);
563
- clip-path: inset(50%);
562
+ clip-path: rect(0 0 0 0);
564
563
  height: 1px;
565
564
  overflow: hidden;
566
565
  position: absolute;
@@ -2081,6 +2080,9 @@
2081
2080
  .CalendarSingle-module_navButtonNext__-GrZx {
2082
2081
  inset-inline-end: 0;
2083
2082
  }
2083
+ .CalendarSingle-module_chevronIcon__0PRnR {
2084
+ pointer-events: none;
2085
+ }
2084
2086
  }
2085
2087
  /** THIS IS AN AUTOGENERATED FILE **/
2086
2088
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -2133,6 +2135,9 @@
2133
2135
  .CalendarRange-module_hidden__D47kb {
2134
2136
  background-color: transparent;
2135
2137
  }
2138
+ .CalendarRange-module_chevronIcon__ULJzd {
2139
+ pointer-events: none;
2140
+ }
2136
2141
  }
2137
2142
  @layer kz-components {
2138
2143
  @property --gradient-angle {
@@ -3529,6 +3534,9 @@
3529
3534
  .LegacyCalendarRange-module_dayRangeMiddle__M27gR [class*=_button_] {
3530
3535
  color: var(--color-blue-500, #0168b3);
3531
3536
  }
3537
+ .LegacyCalendarRange-module_chevronIcon__Q6pOJ {
3538
+ pointer-events: none;
3539
+ }
3532
3540
  }
3533
3541
  /** THIS IS AN AUTOGENERATED FILE **/
3534
3542
  /** THIS IS AN AUTOGENERATED FILE **/
@@ -3723,8 +3731,7 @@
3723
3731
  }
3724
3732
  }
3725
3733
  .Base-module_visuallyHidden__bykhu:not(:focus, :active) {
3726
- clip: rect(0, 0, 0, 0);
3727
- clip-path: inset(50%);
3734
+ clip-path: rect(0 0 0 0);
3728
3735
  position: absolute;
3729
3736
  width: 1px;
3730
3737
  height: 1px;
@@ -3782,7 +3789,7 @@
3782
3789
  );
3783
3790
  grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
3784
3791
  padding: var(--spacing-24);
3785
- grid-column-gap: var(--spacing-32);
3792
+ column-gap: var(--spacing-32);
3786
3793
  }
3787
3794
 
3788
3795
  .EmptyState-module_illustrationContainer__2Ch-u {
@@ -3815,8 +3822,8 @@
3815
3822
  .EmptyState-module_content__dggps {
3816
3823
  grid-template-columns: 1fr;
3817
3824
  grid-template-rows: auto;
3818
- grid-column-gap: unset;
3819
- grid-row-gap: var(--spacing-24);
3825
+ column-gap: unset;
3826
+ row-gap: var(--spacing-24);
3820
3827
  padding: var(--spacing-24);
3821
3828
  }
3822
3829
 
@@ -5188,7 +5195,7 @@
5188
5195
  padding: 0;
5189
5196
  margin: -1px;
5190
5197
  overflow: hidden;
5191
- clip: rect(0, 0, 0, 0);
5198
+ clip-path: rect(0 0 0 0);
5192
5199
  border: 0;
5193
5200
  }
5194
5201
  }
@@ -8258,7 +8265,7 @@
8258
8265
  border: var(--border-solid-border-width, 2px) var(--border-solid-border-style, solid) var(--color-gray-500, #878792);
8259
8266
  background: var(--color-white, #ffffff);
8260
8267
  border-radius: var(--border-solid-border-radius, 7px);
8261
- word-wrap: break-word;
8268
+ overflow-wrap: break-word;
8262
8269
  /* stylelint-enable no-descending-specificity */
8263
8270
  }
8264
8271
  .RichTextEditor-module_editorWrapper__5q3mG:hover, .RichTextEditor-module_editorWrapper__5q3mG:focus-within {
@@ -9731,7 +9738,7 @@
9731
9738
  margin-block: 0;
9732
9739
  display: grid;
9733
9740
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
9734
- grid-gap: var(--spacing-md, 1.5rem);
9741
+ gap: var(--spacing-md, 1.5rem);
9735
9742
  }
9736
9743
  @media (max-width: 767px) {
9737
9744
  .TileGrid-module_grid__1WCNc {
@@ -10715,8 +10722,7 @@
10715
10722
  }
10716
10723
  }
10717
10724
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10718
- clip: rect(0 0 0 0);
10719
- clip-path: inset(50%);
10725
+ clip-path: rect(0 0 0 0);
10720
10726
  height: 1px;
10721
10727
  overflow: hidden;
10722
10728
  position: absolute;
@@ -10741,7 +10747,6 @@
10741
10747
  }
10742
10748
  }
10743
10749
  .TitleBlock-module_breadcrumbTextLink__ngx82:hover, .TitleBlock-module_breadcrumbTextLink__ngx82:focus, .TitleBlock-module_breadcrumb__lVNKz:hover .TitleBlock-module_breadcrumbTextLink__ngx82, .TitleBlock-module_breadcrumb__lVNKz:focus .TitleBlock-module_breadcrumbTextLink__ngx82 {
10744
- clip: initial;
10745
10750
  clip-path: initial;
10746
10751
  height: initial;
10747
10752
  overflow: initial;
@@ -4,8 +4,10 @@ export type CalendarSingleElement = HTMLDivElement;
4
4
  export type CalendarSingleProps = {
5
5
  id?: string;
6
6
  onMount?: (calendarElement: CalendarSingleElement) => void;
7
+ /** Exposes the react-day-picker component prop. Please be aware, consumers using this will have to guarentee functions as expected */
8
+ components?: PropsBase['components'];
7
9
  } & OverrideClassName<Omit<PropsSingle & Omit<PropsBase, 'mode'>, 'mode'>>;
8
10
  export declare const CalendarSingle: {
9
- ({ id, onMount, classNameOverride, selected, defaultMonth, weekStartsOn, locale, ...restProps }: CalendarSingleProps): JSX.Element;
11
+ ({ id, onMount, classNameOverride, selected, defaultMonth, weekStartsOn, locale, components, ...restProps }: CalendarSingleProps): JSX.Element;
10
12
  displayName: string;
11
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -77,8 +77,8 @@
77
77
  "kaizen-codemod": "./bin/codemod.sh"
78
78
  },
79
79
  "dependencies": {
80
- "@floating-ui/react-dom": "^2.1.5",
81
- "@headlessui/react": "^2.2.7",
80
+ "@floating-ui/react-dom": "^2.1.6",
81
+ "@headlessui/react": "^2.2.9",
82
82
  "@internationalized/date": "^3.8.2",
83
83
  "@popperjs/core": "^2.11.8",
84
84
  "@reach/tabs": "^0.18.0",
@@ -103,16 +103,16 @@
103
103
  "lodash.debounce": "^4.0.8",
104
104
  "nanobus": "^4.5.0",
105
105
  "prosemirror-commands": "^1.7.1",
106
- "prosemirror-history": "^1.4.1",
107
- "prosemirror-inputrules": "^1.5.0",
106
+ "prosemirror-history": "^1.5.0",
107
+ "prosemirror-inputrules": "^1.5.1",
108
108
  "prosemirror-keymap": "^1.2.3",
109
- "prosemirror-model": "^1.25.2",
109
+ "prosemirror-model": "^1.25.4",
110
110
  "prosemirror-schema-basic": "^1.2.4",
111
111
  "prosemirror-schema-list": "^1.5.1",
112
- "prosemirror-state": "^1.4.3",
113
- "prosemirror-transform": "^1.10.4",
112
+ "prosemirror-state": "^1.4.4",
113
+ "prosemirror-transform": "^1.10.5",
114
114
  "prosemirror-utils": "^1.2.2",
115
- "prosemirror-view": "^1.40.1",
115
+ "prosemirror-view": "^1.41.3",
116
116
  "react-animate-height": "^3.2.3",
117
117
  "react-aria": "^3.41.1",
118
118
  "react-aria-components": "^1.10.1",
@@ -123,23 +123,23 @@
123
123
  "react-select": "^5.10.2",
124
124
  "react-textfit": "^1.1.1",
125
125
  "resize-observer-polyfill": "^1.5.1",
126
- "use-debounce": "^10.0.5",
127
- "uuid": "^11.1.0"
126
+ "use-debounce": "^10.0.6",
127
+ "uuid": "^13.0.0"
128
128
  },
129
129
  "dependenciesComments": {
130
130
  "react-day-picker": "Version locked until a11y gets fixed (https://github.com/gpbl/react-day-picker/pull/1708)"
131
131
  },
132
132
  "devDependencies": {
133
133
  "@cultureamp/frontend-apis": "13.3.0",
134
- "@cultureamp/i18n-react-intl": "^2.12.2",
135
- "@cultureamp/package-bundler": "^2.3.2",
134
+ "@cultureamp/i18n-react-intl": "^2.15.0",
135
+ "@cultureamp/package-bundler": "^2.4.4",
136
136
  "@testing-library/dom": "^10.4.1",
137
137
  "@types/jest-axe": "^3.5.9",
138
138
  "@types/lodash.debounce": "^4.0.9",
139
139
  "@types/react-highlight": "^0.12.8",
140
140
  "@types/react-textfit": "^1.1.4",
141
- "@types/uuid": "^10.0.0",
142
- "autoprefixer": "^10.4.21",
141
+ "@types/uuid": "^11.0.0",
142
+ "autoprefixer": "^10.4.22",
143
143
  "concat-cli": "^4.0.0",
144
144
  "identity-obj-proxy": "^3.0.0",
145
145
  "jest-axe": "^10.0.0",
@@ -148,20 +148,20 @@
148
148
  "postcss": "^8.5.6",
149
149
  "postcss-cli": "^11.0.1",
150
150
  "postcss-import": "^16.1.1",
151
- "postcss-preset-env": "^10.2.4",
151
+ "postcss-preset-env": "^10.4.0",
152
152
  "postcss-scss": "^4.0.9",
153
- "query-string": "^9.2.2",
154
- "react": "^19.1.0",
155
- "react-dom": "^19.1.0",
153
+ "query-string": "^9.3.1",
154
+ "react": "^19.2.0",
155
+ "react-dom": "^19.2.0",
156
156
  "react-highlight": "^0.15.0",
157
- "react-intl": "^7.1.11",
158
- "rollup": "^4.46.2",
157
+ "react-intl": "^7.1.14",
158
+ "rollup": "^4.53.3",
159
159
  "sass": "1.79.6",
160
- "serialize-query-params": "^2.0.2",
161
- "svgo": "^3.3.2",
160
+ "serialize-query-params": "^2.0.4",
161
+ "svgo": "^4.0.0",
162
162
  "ts-patch": "^3.3.0",
163
163
  "tslib": "^2.8.1",
164
- "tsx": "^4.20.3",
164
+ "tsx": "^4.20.6",
165
165
  "@kaizen/design-tokens": "11.0.0"
166
166
  },
167
167
  "devDependenciesComments": {
@@ -65,4 +65,8 @@
65
65
  .hidden {
66
66
  background-color: transparent;
67
67
  }
68
+
69
+ .chevronIcon {
70
+ pointer-events: none;
71
+ }
68
72
  }
@@ -57,10 +57,24 @@ export const CalendarRange = ({
57
57
  components={{
58
58
  Chevron: (props) => {
59
59
  if (props.orientation === 'left') {
60
- return <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
60
+ return (
61
+ <Icon
62
+ name="arrow_back"
63
+ isPresentational
64
+ shouldMirrorInRTL
65
+ className={styles.chevronIcon}
66
+ />
67
+ )
61
68
  }
62
69
 
63
- return <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
70
+ return (
71
+ <Icon
72
+ name="arrow_forward"
73
+ isPresentational
74
+ shouldMirrorInRTL
75
+ className={styles.chevronIcon}
76
+ />
77
+ )
64
78
  },
65
79
  }}
66
80
  numberOfMonths={numberOfMonths}
@@ -13,4 +13,8 @@
13
13
  .navButtonNext {
14
14
  inset-inline-end: 0;
15
15
  }
16
+
17
+ .chevronIcon {
18
+ pointer-events: none;
19
+ }
16
20
  }
@@ -12,6 +12,8 @@ export type CalendarSingleElement = HTMLDivElement
12
12
  export type CalendarSingleProps = {
13
13
  id?: string
14
14
  onMount?: (calendarElement: CalendarSingleElement) => void
15
+ /** Exposes the react-day-picker component prop. Please be aware, consumers using this will have to guarentee functions as expected */
16
+ components?: PropsBase['components']
15
17
  } & OverrideClassName<Omit<PropsSingle & Omit<PropsBase, 'mode'>, 'mode'>>
16
18
 
17
19
  export const CalendarSingle = ({
@@ -22,6 +24,7 @@ export const CalendarSingle = ({
22
24
  defaultMonth,
23
25
  weekStartsOn,
24
26
  locale = enAU,
27
+ components = {},
25
28
  ...restProps
26
29
  }: CalendarSingleProps): JSX.Element => {
27
30
  const calendarRef = useRef<CalendarSingleElement>(null)
@@ -52,11 +55,26 @@ export const CalendarSingle = ({
52
55
  components={{
53
56
  Chevron: (props) => {
54
57
  if (props.orientation === 'left') {
55
- return <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
58
+ return (
59
+ <Icon
60
+ name="arrow_back"
61
+ isPresentational
62
+ shouldMirrorInRTL
63
+ className={styles.chevronIcon}
64
+ />
65
+ )
56
66
  }
57
67
 
58
- return <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
68
+ return (
69
+ <Icon
70
+ name="arrow_forward"
71
+ isPresentational
72
+ shouldMirrorInRTL
73
+ className={styles.chevronIcon}
74
+ />
75
+ )
59
76
  },
77
+ ...components,
60
78
  }}
61
79
  locale={locale}
62
80
  {...restProps}
@@ -24,4 +24,8 @@
24
24
  color: $color-blue-500;
25
25
  }
26
26
  }
27
+
28
+ .chevronIcon {
29
+ pointer-events: none;
30
+ }
27
31
  }
@@ -60,10 +60,24 @@ export const LegacyCalendarRange = ({
60
60
  components={{
61
61
  Chevron: (props) => {
62
62
  if (props.orientation === 'left') {
63
- return <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
63
+ return (
64
+ <Icon
65
+ name="arrow_back"
66
+ isPresentational
67
+ shouldMirrorInRTL
68
+ className={styles.chevronIcon}
69
+ />
70
+ )
64
71
  }
65
72
 
66
- return <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
73
+ return (
74
+ <Icon
75
+ name="arrow_forward"
76
+ isPresentational
77
+ shouldMirrorInRTL
78
+ className={styles.chevronIcon}
79
+ />
80
+ )
67
81
  },
68
82
  }}
69
83
  locale={locale}
@@ -46,7 +46,7 @@
46
46
  );
47
47
  grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
48
48
  padding: var(--spacing-24);
49
- grid-column-gap: var(--spacing-32);
49
+ column-gap: var(--spacing-32);
50
50
  }
51
51
 
52
52
  .illustrationContainer {
@@ -79,8 +79,8 @@
79
79
  .content {
80
80
  grid-template-columns: 1fr;
81
81
  grid-template-rows: auto;
82
- grid-column-gap: unset;
83
- grid-row-gap: var(--spacing-24);
82
+ column-gap: unset;
83
+ row-gap: var(--spacing-24);
84
84
  padding: var(--spacing-24);
85
85
  }
86
86
 
@@ -11,7 +11,7 @@
11
11
  text-transform: none;
12
12
  display: inline-block;
13
13
  white-space: nowrap;
14
- word-wrap: normal;
14
+ overflow-wrap: normal;
15
15
  direction: ltr;
16
16
  font-feature-settings: 'liga';
17
17
  -webkit-font-smoothing: antialiased;
@@ -5,7 +5,7 @@
5
5
  display: grid;
6
6
  grid-template-columns: repeat(6, 150px);
7
7
  grid-template-rows: min-content;
8
- grid-gap: var(--spacing-8);
8
+ gap: var(--spacing-8);
9
9
  margin: 0;
10
10
  padding: 0;
11
11
  list-style: none;
@@ -114,8 +114,7 @@
114
114
  // keyboard focus. Otherwise, a sighted keyboard user would have to try and
115
115
  // figure out where their visible focus indicator had gone to.
116
116
  .visuallyHidden:not(:focus, :active) {
117
- clip: rect(0, 0, 0, 0);
118
- clip-path: inset(50%);
117
+ clip-path: rect(0 0 0 0);
119
118
  position: absolute;
120
119
  width: 1px;
121
120
  height: 1px;
@@ -360,7 +360,7 @@ $notification-slide-right: transform 300ms ease-out;
360
360
  padding: 0;
361
361
  margin: -1px;
362
362
  overflow: hidden;
363
- clip: rect(0, 0, 0, 0);
363
+ clip-path: rect(0 0 0 0);
364
364
  border: 0;
365
365
  }
366
366
  }
@@ -61,7 +61,7 @@
61
61
  border: $border-solid-border-width $border-solid-border-style $color-gray-500;
62
62
  background: $color-white;
63
63
  border-radius: $border-solid-border-radius;
64
- word-wrap: break-word;
64
+ overflow-wrap: break-word;
65
65
 
66
66
  &:hover,
67
67
  &:focus-within {
@@ -120,8 +120,7 @@ export const Select = React.forwardRef<any, SelectProps>(
120
120
  Select.displayName = 'Select'
121
121
 
122
122
  interface AsyncProps
123
- extends ReactAsyncSelectProps<any, boolean, any>,
124
- ReactSelectProps<any, boolean, any> {}
123
+ extends ReactAsyncSelectProps<any, boolean, any>, ReactSelectProps<any, boolean, any> {}
125
124
 
126
125
  export const AsyncSelect = React.forwardRef(
127
126
  ({ className: propsClassName, placeholder, ...props }: AsyncProps, ref: React.Ref<any>) => (
@@ -11,7 +11,7 @@
11
11
  // the more we shave off the width here,
12
12
  // the less the tiles will grow when they lose one from the row
13
13
  grid-template-columns: repeat(auto-fill, minmax($tileWidth - 40px, 1fr));
14
- grid-gap: $spacing-md;
14
+ gap: $spacing-md;
15
15
 
16
16
  @include ca-media-mobile {
17
17
  grid-template-columns: repeat(2, minmax(226px, $tileHeight));
@@ -577,8 +577,7 @@
577
577
  }
578
578
 
579
579
  @mixin visually-hidden {
580
- clip: rect(0 0 0 0);
581
- clip-path: inset(50%);
580
+ clip-path: rect(0 0 0 0);
582
581
  height: 1px;
583
582
  overflow: hidden;
584
583
  position: absolute;
@@ -587,7 +586,6 @@
587
586
  }
588
587
 
589
588
  @mixin visually-hidden-reset {
590
- clip: initial;
591
589
  clip-path: initial;
592
590
  height: initial;
593
591
  overflow: initial;
@@ -18,7 +18,7 @@ type ToolbarProps = {
18
18
  }
19
19
 
20
20
  export const Toolbar = ({ items, noGap = false, automationId }: ToolbarProps): JSX.Element => {
21
- if (!items || (items && items.length === 0)) {
21
+ if (!items || items?.length === 0) {
22
22
  return <></>
23
23
  }
24
24
  return (
@@ -1,7 +1,6 @@
1
1
  @layer kz-components {
2
2
  .srOnly {
3
- clip: rect(0 0 0 0);
4
- clip-path: inset(50%);
3
+ clip-path: rect(0 0 0 0);
5
4
  height: 1px;
6
5
  overflow: hidden;
7
6
  position: absolute;