@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.
- package/codemods/utils/updateKaioImports.ts +1 -2
- package/dist/cjs/src/TitleBlock/subcomponents/Toolbar.cjs +1 -1
- package/dist/esm/src/TitleBlock/subcomponents/Toolbar.mjs +1 -1
- package/dist/styles.css +10 -14
- package/package.json +24 -24
- package/src/EmptyState/EmptyState.module.css +3 -3
- package/src/Icon/Icon.module.css +1 -1
- package/src/IconV1/_docs/icon.module.scss +1 -1
- package/src/Illustration/subcomponents/Base/Base.module.scss +1 -2
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +1 -1
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +1 -1
- package/src/Select/Select.tsx +1 -2
- package/src/Tile/TileGrid/TileGrid.module.scss +1 -1
- package/src/TitleBlock/TitleBlock.module.scss +1 -3
- package/src/TitleBlock/subcomponents/Toolbar.tsx +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
3828
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
81
|
-
"@headlessui/react": "^2.2.
|
|
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.
|
|
107
|
-
"prosemirror-inputrules": "^1.5.
|
|
106
|
+
"prosemirror-history": "^1.5.0",
|
|
107
|
+
"prosemirror-inputrules": "^1.5.1",
|
|
108
108
|
"prosemirror-keymap": "^1.2.3",
|
|
109
|
-
"prosemirror-model": "^1.25.
|
|
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.
|
|
113
|
-
"prosemirror-transform": "^1.10.
|
|
112
|
+
"prosemirror-state": "^1.4.4",
|
|
113
|
+
"prosemirror-transform": "^1.10.5",
|
|
114
114
|
"prosemirror-utils": "^1.2.2",
|
|
115
|
-
"prosemirror-view": "^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.
|
|
127
|
-
"uuid": "^
|
|
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.
|
|
135
|
-
"@cultureamp/package-bundler": "^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": "^
|
|
142
|
-
"autoprefixer": "^10.4.
|
|
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.
|
|
151
|
+
"postcss-preset-env": "^10.4.0",
|
|
152
152
|
"postcss-scss": "^4.0.9",
|
|
153
|
-
"query-string": "^9.
|
|
154
|
-
"react": "^19.
|
|
155
|
-
"react-dom": "^19.
|
|
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.
|
|
158
|
-
"rollup": "^4.
|
|
157
|
+
"react-intl": "^7.1.14",
|
|
158
|
+
"rollup": "^4.53.3",
|
|
159
159
|
"sass": "1.79.6",
|
|
160
|
-
"serialize-query-params": "^2.0.
|
|
161
|
-
"svgo": "^
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
83
|
-
|
|
82
|
+
column-gap: unset;
|
|
83
|
+
row-gap: var(--spacing-24);
|
|
84
84
|
padding: var(--spacing-24);
|
|
85
85
|
}
|
|
86
86
|
|
package/src/Icon/Icon.module.css
CHANGED
|
@@ -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
|
|
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;
|
package/src/Select/Select.tsx
CHANGED
|
@@ -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
|
-
|
|
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;
|