@kaizen/components 0.0.0-canary-react-19-peer-20250303024542 → 0.0.0-canary-react-19-peer-20250303225703
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/dist/cjs/Modal/GenericModal/GenericModal.cjs +1 -4
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +1 -4
- package/dist/styles.css +8770 -8770
- package/dist/types/SplitButton/subcomponents/BaseButton/BaseButton.d.ts +1 -1
- package/package.json +4 -4
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/Modal/GenericModal/GenericModal.tsx +1 -1
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.tsx +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.tsx +1 -1
|
@@ -5,7 +5,7 @@ type ButtonAttributes = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
|
5
5
|
type AnchorButtonAttributes = AnchorAttributes & ButtonAttributes;
|
|
6
6
|
export type BaseButtonProps = {
|
|
7
7
|
label: string;
|
|
8
|
-
icon?: React.
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
9
|
isReversed?: boolean;
|
|
10
10
|
} & OverrideClassName<AnchorButtonAttributes>;
|
|
11
11
|
export declare const BaseButton: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-react-19-peer-
|
|
3
|
+
"version": "0.0.0-canary-react-19-peer-20250303225703",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@floating-ui/react-dom": "^2.1.2",
|
|
106
|
-
"@headlessui/react": "
|
|
106
|
+
"@headlessui/react": "^2.2.0",
|
|
107
107
|
"@internationalized/date": "^3.6.0",
|
|
108
108
|
"@popperjs/core": "^2.11.8",
|
|
109
109
|
"@reach/tabs": "^0.18.0",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"svgo": "^3.3.2",
|
|
186
186
|
"tslib": "^2.8.1",
|
|
187
187
|
"tsx": "^4.19.2",
|
|
188
|
-
"@kaizen/
|
|
189
|
-
"@kaizen/
|
|
188
|
+
"@kaizen/package-bundler": "2.0.4",
|
|
189
|
+
"@kaizen/design-tokens": "0.0.0-canary-react-19-peer-20250303225703"
|
|
190
190
|
},
|
|
191
191
|
"devDependenciesComments": {
|
|
192
192
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -29,7 +29,7 @@ export type AvatarGroupProps = {
|
|
|
29
29
|
avatars: AvatarList
|
|
30
30
|
} & OverrideClassName<HTMLAttributes<HTMLUListElement>>
|
|
31
31
|
|
|
32
|
-
const renderCounter = (remainingAvatars: number): JSX.Element |
|
|
32
|
+
const renderCounter = (remainingAvatars: number): JSX.Element | undefined => {
|
|
33
33
|
if (remainingAvatars <= 0) return
|
|
34
34
|
return (
|
|
35
35
|
<li
|
|
@@ -136,7 +136,7 @@ export const GenericModal = ({
|
|
|
136
136
|
afterEnter={onAfterEnterHandler}
|
|
137
137
|
afterLeave={onAfterLeaveHandler}
|
|
138
138
|
data-generic-modal-transition-wrapper
|
|
139
|
-
onClick={(e: React.MouseEvent): void => e.stopPropagation()}
|
|
139
|
+
// onClick={(e: React.MouseEvent): void => e.stopPropagation()}
|
|
140
140
|
>
|
|
141
141
|
<FocusLock
|
|
142
142
|
disabled={focusLockDisabled}
|
|
@@ -12,7 +12,7 @@ const isAnchor = (attributes: AnchorButtonAttributes): boolean =>
|
|
|
12
12
|
|
|
13
13
|
export type BaseButtonProps = {
|
|
14
14
|
label: string
|
|
15
|
-
icon?: React.
|
|
15
|
+
icon?: React.ReactNode
|
|
16
16
|
isReversed?: boolean
|
|
17
17
|
} & OverrideClassName<AnchorButtonAttributes>
|
|
18
18
|
|
package/src/Tag/Tag.tsx
CHANGED
|
@@ -71,7 +71,7 @@ export const Tag = (props: TagProps): JSX.Element => {
|
|
|
71
71
|
<div className={styles.layoutContainer}>
|
|
72
72
|
<>
|
|
73
73
|
{canShowIcon &&
|
|
74
|
-
((): JSX.Element |
|
|
74
|
+
((): JSX.Element | undefined => {
|
|
75
75
|
switch (props.variant) {
|
|
76
76
|
case 'validationPositive':
|
|
77
77
|
return (
|
|
@@ -130,7 +130,7 @@ export const GenericTile = ({
|
|
|
130
130
|
return informationProp
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
const renderBack = (): JSX.Element |
|
|
133
|
+
const renderBack = (): JSX.Element | undefined => {
|
|
134
134
|
if (!information) return
|
|
135
135
|
|
|
136
136
|
const returnButtonLabel = formatMessage({
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import { createTabletOverflowMenuItems, isReversed } from './utils'
|
|
22
22
|
import styles from './TitleBlockZen.module.scss'
|
|
23
23
|
|
|
24
|
-
const renderTag = (surveyStatus: SurveyStatus): JSX.Element |
|
|
24
|
+
const renderTag = (surveyStatus: SurveyStatus): JSX.Element | undefined => {
|
|
25
25
|
let tagVariant: React.ComponentPropsWithoutRef<typeof Tag>['variant']
|
|
26
26
|
|
|
27
27
|
if (tagVariant === 'profile') {
|