@kaizen/components 2.2.1 → 2.2.3

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;
@@ -148,6 +148,7 @@
148
148
  font-family: var(--typography-heading-1-font-family);
149
149
  font-weight: var(--typography-heading-1-font-weight);
150
150
  letter-spacing: var(--typography-heading-3-letter-spacing);
151
+ overflow-wrap: normal;
151
152
  }
152
153
 
153
154
  .Avatar-module_initials__85roP.Avatar-module_longName__02zNk::before {
@@ -559,8 +560,7 @@
559
560
  }
560
561
  @layer kz-components {
561
562
  .VisuallyHidden-module_srOnly__tTjOK {
562
- clip: rect(0 0 0 0);
563
- clip-path: inset(50%);
563
+ clip-path: rect(0 0 0 0);
564
564
  height: 1px;
565
565
  overflow: hidden;
566
566
  position: absolute;
@@ -3732,8 +3732,7 @@
3732
3732
  }
3733
3733
  }
3734
3734
  .Base-module_visuallyHidden__bykhu:not(:focus, :active) {
3735
- clip: rect(0, 0, 0, 0);
3736
- clip-path: inset(50%);
3735
+ clip-path: rect(0 0 0 0);
3737
3736
  position: absolute;
3738
3737
  width: 1px;
3739
3738
  height: 1px;
@@ -3791,7 +3790,7 @@
3791
3790
  );
3792
3791
  grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
3793
3792
  padding: var(--spacing-24);
3794
- grid-column-gap: var(--spacing-32);
3793
+ column-gap: var(--spacing-32);
3795
3794
  }
3796
3795
 
3797
3796
  .EmptyState-module_illustrationContainer__2Ch-u {
@@ -3824,8 +3823,8 @@
3824
3823
  .EmptyState-module_content__dggps {
3825
3824
  grid-template-columns: 1fr;
3826
3825
  grid-template-rows: auto;
3827
- grid-column-gap: unset;
3828
- grid-row-gap: var(--spacing-24);
3826
+ column-gap: unset;
3827
+ row-gap: var(--spacing-24);
3829
3828
  padding: var(--spacing-24);
3830
3829
  }
3831
3830
 
@@ -5197,7 +5196,7 @@
5197
5196
  padding: 0;
5198
5197
  margin: -1px;
5199
5198
  overflow: hidden;
5200
- clip: rect(0, 0, 0, 0);
5199
+ clip-path: rect(0 0 0 0);
5201
5200
  border: 0;
5202
5201
  }
5203
5202
  }
@@ -8267,7 +8266,7 @@
8267
8266
  border: var(--border-solid-border-width, 2px) var(--border-solid-border-style, solid) var(--color-gray-500, #878792);
8268
8267
  background: var(--color-white, #ffffff);
8269
8268
  border-radius: var(--border-solid-border-radius, 7px);
8270
- word-wrap: break-word;
8269
+ overflow-wrap: break-word;
8271
8270
  /* stylelint-enable no-descending-specificity */
8272
8271
  }
8273
8272
  .RichTextEditor-module_editorWrapper__5q3mG:hover, .RichTextEditor-module_editorWrapper__5q3mG:focus-within {
@@ -9740,7 +9739,7 @@
9740
9739
  margin-block: 0;
9741
9740
  display: grid;
9742
9741
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
9743
- grid-gap: var(--spacing-md, 1.5rem);
9742
+ gap: var(--spacing-md, 1.5rem);
9744
9743
  }
9745
9744
  @media (max-width: 767px) {
9746
9745
  .TileGrid-module_grid__1WCNc {
@@ -10724,8 +10723,7 @@
10724
10723
  }
10725
10724
  }
10726
10725
  .TitleBlock-module_breadcrumbTextLink__ngx82 {
10727
- clip: rect(0 0 0 0);
10728
- clip-path: inset(50%);
10726
+ clip-path: rect(0 0 0 0);
10729
10727
  height: 1px;
10730
10728
  overflow: hidden;
10731
10729
  position: absolute;
@@ -10750,7 +10748,6 @@
10750
10748
  }
10751
10749
  }
10752
10750
  .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
10751
  clip-path: initial;
10755
10752
  height: initial;
10756
10753
  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.3",
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": {
@@ -95,6 +95,7 @@
95
95
  font-family: var(--typography-heading-1-font-family);
96
96
  font-weight: var(--typography-heading-1-font-weight);
97
97
  letter-spacing: var(--typography-heading-3-letter-spacing);
98
+ overflow-wrap: normal;
98
99
  }
99
100
 
100
101
  .initials.longName::before {
@@ -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;