@kaizen/components 2.2.1 → 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.
@@ -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
 
@@ -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", {
@@ -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;
@@ -3732,8 +3731,7 @@
3732
3731
  }
3733
3732
  }
3734
3733
  .Base-module_visuallyHidden__bykhu:not(:focus, :active) {
3735
- clip: rect(0, 0, 0, 0);
3736
- clip-path: inset(50%);
3734
+ clip-path: rect(0 0 0 0);
3737
3735
  position: absolute;
3738
3736
  width: 1px;
3739
3737
  height: 1px;
@@ -3791,7 +3789,7 @@
3791
3789
  );
3792
3790
  grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
3793
3791
  padding: var(--spacing-24);
3794
- grid-column-gap: var(--spacing-32);
3792
+ column-gap: var(--spacing-32);
3795
3793
  }
3796
3794
 
3797
3795
  .EmptyState-module_illustrationContainer__2Ch-u {
@@ -3824,8 +3822,8 @@
3824
3822
  .EmptyState-module_content__dggps {
3825
3823
  grid-template-columns: 1fr;
3826
3824
  grid-template-rows: auto;
3827
- grid-column-gap: unset;
3828
- grid-row-gap: var(--spacing-24);
3825
+ column-gap: unset;
3826
+ row-gap: var(--spacing-24);
3829
3827
  padding: var(--spacing-24);
3830
3828
  }
3831
3829
 
@@ -5197,7 +5195,7 @@
5197
5195
  padding: 0;
5198
5196
  margin: -1px;
5199
5197
  overflow: hidden;
5200
- clip: rect(0, 0, 0, 0);
5198
+ clip-path: rect(0 0 0 0);
5201
5199
  border: 0;
5202
5200
  }
5203
5201
  }
@@ -8267,7 +8265,7 @@
8267
8265
  border: var(--border-solid-border-width, 2px) var(--border-solid-border-style, solid) var(--color-gray-500, #878792);
8268
8266
  background: var(--color-white, #ffffff);
8269
8267
  border-radius: var(--border-solid-border-radius, 7px);
8270
- word-wrap: break-word;
8268
+ overflow-wrap: break-word;
8271
8269
  /* stylelint-enable no-descending-specificity */
8272
8270
  }
8273
8271
  .RichTextEditor-module_editorWrapper__5q3mG:hover, .RichTextEditor-module_editorWrapper__5q3mG:focus-within {
@@ -9740,7 +9738,7 @@
9740
9738
  margin-block: 0;
9741
9739
  display: grid;
9742
9740
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
9743
- grid-gap: var(--spacing-md, 1.5rem);
9741
+ gap: var(--spacing-md, 1.5rem);
9744
9742
  }
9745
9743
  @media (max-width: 767px) {
9746
9744
  .TileGrid-module_grid__1WCNc {
@@ -10724,8 +10722,7 @@
10724
10722
  }
10725
10723
  }
10726
10724
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10727
- clip: rect(0 0 0 0);
10728
- clip-path: inset(50%);
10725
+ clip-path: rect(0 0 0 0);
10729
10726
  height: 1px;
10730
10727
  overflow: hidden;
10731
10728
  position: absolute;
@@ -10750,7 +10747,6 @@
10750
10747
  }
10751
10748
  }
10752
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 {
10753
- clip: initial;
10754
10750
  clip-path: initial;
10755
10751
  height: initial;
10756
10752
  overflow: initial;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaizen/components",
3
- "version": "2.2.1",
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": {
@@ -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;