@kaizen/components 3.3.3 → 3.3.4
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/migrateGuidanceBlockActionsToActionsSlot/transformActionsToActionsSlot.ts +1 -2
- package/package.json +12 -12
- package/src/AvatarGroup/AvatarGroup.tsx +1 -2
- package/src/Card/Card.tsx +1 -8
- package/src/DatePicker/DatePicker.tsx +1 -8
- package/src/Filter/FilterSelect/FilterSelect.tsx +1 -6
- package/src/Heading/Heading.tsx +2 -17
- package/src/Menu/MenuHeader.tsx +3 -3
- package/src/RichTextEditor/types.ts +2 -26
- package/src/SingleSelect/types.ts +2 -4
- package/src/Text/Text.tsx +2 -17
- package/src/TitleBlock/types.ts +1 -2
- package/src/__alpha__/SingleSelect/types.ts +1 -2
|
@@ -20,8 +20,7 @@ export const transformActionsToActionsSlot = (
|
|
|
20
20
|
let arrowIconWasAdded = false
|
|
21
21
|
|
|
22
22
|
const primaryAction = node.properties.find((prop) => prop?.name?.getText() === 'primary') as
|
|
23
|
-
|
|
24
|
-
| undefined
|
|
23
|
+
ts.PropertyAssignment | undefined
|
|
25
24
|
|
|
26
25
|
const secondaryAction = node.properties.find(
|
|
27
26
|
(prop) => prop?.name?.getText() === 'secondary',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -106,13 +106,13 @@
|
|
|
106
106
|
"prosemirror-history": "^1.5.0",
|
|
107
107
|
"prosemirror-inputrules": "^1.5.1",
|
|
108
108
|
"prosemirror-keymap": "^1.2.3",
|
|
109
|
-
"prosemirror-model": "^1.25.
|
|
109
|
+
"prosemirror-model": "^1.25.10",
|
|
110
110
|
"prosemirror-schema-basic": "^1.2.4",
|
|
111
111
|
"prosemirror-schema-list": "^1.5.1",
|
|
112
112
|
"prosemirror-state": "^1.4.4",
|
|
113
113
|
"prosemirror-transform": "^1.12.0",
|
|
114
114
|
"prosemirror-utils": "^1.2.2",
|
|
115
|
-
"prosemirror-view": "^1.
|
|
115
|
+
"prosemirror-view": "^1.42.0",
|
|
116
116
|
"react-animate-height": "^3.2.4",
|
|
117
117
|
"react-aria": "^3.41.1",
|
|
118
118
|
"react-aria-components": "^1.10.1",
|
|
@@ -123,14 +123,14 @@
|
|
|
123
123
|
"react-select": "^5.10.2",
|
|
124
124
|
"react-textfit": "^1.1.1",
|
|
125
125
|
"use-debounce": "^10.1.1",
|
|
126
|
-
"uuid": "^14.0.
|
|
126
|
+
"uuid": "^14.0.1"
|
|
127
127
|
},
|
|
128
128
|
"dependenciesComments": {
|
|
129
129
|
"react-day-picker": "Version locked until a11y gets fixed (https://github.com/gpbl/react-day-picker/pull/1708)"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@cultureamp/frontend-apis": "13.3.0",
|
|
133
|
-
"@cultureamp/i18n-react-intl": "^4.1
|
|
133
|
+
"@cultureamp/i18n-react-intl": "^4.2.1",
|
|
134
134
|
"@cultureamp/package-bundler": "^4.0.1",
|
|
135
135
|
"@svgr/rollup": "^8.1.0",
|
|
136
136
|
"cssnano": "^7.1.9",
|
|
@@ -140,30 +140,30 @@
|
|
|
140
140
|
"@types/react-highlight": "^0.12.8",
|
|
141
141
|
"@types/react-textfit": "^1.1.4",
|
|
142
142
|
"@types/uuid": "^11.0.0",
|
|
143
|
-
"autoprefixer": "^10.5.
|
|
143
|
+
"autoprefixer": "^10.5.2",
|
|
144
144
|
"concat-cli": "^4.0.0",
|
|
145
145
|
"identity-obj-proxy": "^3.0.0",
|
|
146
146
|
"jest-axe": "^10.0.0",
|
|
147
147
|
"lodash.isempty": "^4.4.0",
|
|
148
148
|
"normalize.css": "^8.0.1",
|
|
149
|
-
"postcss": "^8.5.
|
|
149
|
+
"postcss": "^8.5.16",
|
|
150
150
|
"postcss-cli": "^11.0.1",
|
|
151
151
|
"postcss-import": "^16.1.1",
|
|
152
|
-
"postcss-preset-env": "^11.3.
|
|
152
|
+
"postcss-preset-env": "^11.3.2",
|
|
153
153
|
"postcss-scss": "^4.0.9",
|
|
154
|
-
"query-string": "^9.4.
|
|
154
|
+
"query-string": "^9.4.1",
|
|
155
155
|
"react": "^19.2.7",
|
|
156
156
|
"react-dom": "^19.2.7",
|
|
157
157
|
"react-highlight": "^0.15.0",
|
|
158
|
-
"react-intl": "^10.1.
|
|
158
|
+
"react-intl": "^10.1.15",
|
|
159
159
|
"rollup": "^4.62.2",
|
|
160
160
|
"sass": "1.79.6",
|
|
161
161
|
"serialize-query-params": "^2.0.4",
|
|
162
162
|
"svgo": "^4.0.1",
|
|
163
163
|
"ts-patch": "^3.3.0",
|
|
164
164
|
"tslib": "^2.8.1",
|
|
165
|
-
"tsx": "^4.
|
|
166
|
-
"@kaizen/design-tokens": "11.0.
|
|
165
|
+
"tsx": "^4.23.0",
|
|
166
|
+
"@kaizen/design-tokens": "11.0.13"
|
|
167
167
|
},
|
|
168
168
|
"devDependenciesComments": {
|
|
169
169
|
"sass": "Prevent deprecation warnings introduced in 1.80 as we plan to move away from sass",
|
|
@@ -5,8 +5,7 @@ import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
|
5
5
|
import styles from './AvatarGroup.module.css'
|
|
6
6
|
|
|
7
7
|
export type AvatarGroupAvatarProps =
|
|
8
|
-
| Omit<
|
|
9
|
-
| Omit<CompanyAvatarProps, 'size'>
|
|
8
|
+
Omit<GenericAvatarProps, 'size'> | Omit<CompanyAvatarProps, 'size'>
|
|
10
9
|
|
|
11
10
|
export type AvatarGroupSize = 'small' | 'medium' | 'large'
|
|
12
11
|
export type AvatarList = [AvatarGroupAvatarProps, ...AvatarGroupAvatarProps[]]
|
package/src/Card/Card.tsx
CHANGED
|
@@ -6,14 +6,7 @@ import sharedAiStyles from '../../styles/utils/AIMoment.module.css'
|
|
|
6
6
|
import styles from './Card.module.css'
|
|
7
7
|
|
|
8
8
|
export type CardColors =
|
|
9
|
-
| '
|
|
10
|
-
| 'green'
|
|
11
|
-
| 'gray'
|
|
12
|
-
| 'orange'
|
|
13
|
-
| 'purple'
|
|
14
|
-
| 'red'
|
|
15
|
-
| 'white'
|
|
16
|
-
| 'yellow'
|
|
9
|
+
'blue' | 'green' | 'gray' | 'orange' | 'purple' | 'red' | 'white' | 'yellow'
|
|
17
10
|
|
|
18
11
|
export type CardProps = {
|
|
19
12
|
children?: React.ReactNode
|
|
@@ -25,14 +25,7 @@ import { getLocale, type DatePickerSupportedLocales } from './utils/getLocale'
|
|
|
25
25
|
import { validateDate } from './utils/validateDate'
|
|
26
26
|
|
|
27
27
|
type OmittedDateInputFieldProps =
|
|
28
|
-
| '
|
|
29
|
-
| 'onFocus'
|
|
30
|
-
| 'onChange'
|
|
31
|
-
| 'onBlur'
|
|
32
|
-
| 'onButtonClick'
|
|
33
|
-
| 'value'
|
|
34
|
-
| 'locale'
|
|
35
|
-
| 'id'
|
|
28
|
+
'onClick' | 'onFocus' | 'onChange' | 'onBlur' | 'onButtonClick' | 'value' | 'locale' | 'id'
|
|
36
29
|
|
|
37
30
|
export type DatePickerProps = {
|
|
38
31
|
id?: string
|
|
@@ -20,12 +20,7 @@ import { type SingleSelectItem, type SingleSelectOption } from './types'
|
|
|
20
20
|
import styles from './FilterSelect.module.css'
|
|
21
21
|
|
|
22
22
|
type OmittedAriaSelectProps =
|
|
23
|
-
| '
|
|
24
|
-
| 'children'
|
|
25
|
-
| 'isOpen'
|
|
26
|
-
| 'onOpenChange'
|
|
27
|
-
| 'defaultOpen'
|
|
28
|
-
| 'items'
|
|
23
|
+
'label' | 'children' | 'isOpen' | 'onOpenChange' | 'defaultOpen' | 'items'
|
|
29
24
|
|
|
30
25
|
export type FilterSelectProps<Option extends SingleSelectOption = SingleSelectOption> = {
|
|
31
26
|
isOpen: boolean
|
package/src/Heading/Heading.tsx
CHANGED
|
@@ -16,25 +16,10 @@ export type HeadingVariants =
|
|
|
16
16
|
| 'heading-6'
|
|
17
17
|
|
|
18
18
|
export type AllowedHeadingTags =
|
|
19
|
-
| '
|
|
20
|
-
| 'p'
|
|
21
|
-
| 'div'
|
|
22
|
-
| 'span'
|
|
23
|
-
| 'h1'
|
|
24
|
-
| 'h2'
|
|
25
|
-
| 'h3'
|
|
26
|
-
| 'h4'
|
|
27
|
-
| 'h5'
|
|
28
|
-
| 'h6'
|
|
29
|
-
| 'label'
|
|
19
|
+
'pre' | 'p' | 'div' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label'
|
|
30
20
|
|
|
31
21
|
export type AllowedHeadingColors =
|
|
32
|
-
| 'dark'
|
|
33
|
-
| 'dark-reduced-opacity'
|
|
34
|
-
| 'white'
|
|
35
|
-
| 'white-reduced-opacity'
|
|
36
|
-
| 'positive'
|
|
37
|
-
| 'negative'
|
|
22
|
+
'dark' | 'dark-reduced-opacity' | 'white' | 'white-reduced-opacity' | 'positive' | 'negative'
|
|
38
23
|
|
|
39
24
|
export type HeadingProps = {
|
|
40
25
|
children: React.ReactNode
|
package/src/Menu/MenuHeader.tsx
CHANGED
|
@@ -6,7 +6,7 @@ export type MenuHeaderProps = { children: ReactNode }
|
|
|
6
6
|
/**
|
|
7
7
|
* A <header> element, used to title a MenuSection
|
|
8
8
|
*/
|
|
9
|
-
export const MenuHeader = forwardRef<HTMLDivElement, MenuHeaderProps>(
|
|
10
|
-
|
|
11
|
-
)
|
|
9
|
+
export const MenuHeader = forwardRef<HTMLDivElement, MenuHeaderProps>((props, ref): JSX.Element => (
|
|
10
|
+
<Header ref={ref} {...props} />
|
|
11
|
+
))
|
|
12
12
|
MenuHeader.displayName = 'MenuHeader'
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
export type ToolbarControlTypes =
|
|
2
|
-
| '
|
|
3
|
-
| 'italic'
|
|
4
|
-
| 'underline'
|
|
5
|
-
| 'orderedList'
|
|
6
|
-
| 'bulletList'
|
|
7
|
-
| 'link'
|
|
2
|
+
'bold' | 'italic' | 'underline' | 'orderedList' | 'bulletList' | 'link'
|
|
8
3
|
|
|
9
4
|
export type ToolbarItems = {
|
|
10
5
|
name: ToolbarControlTypes
|
|
@@ -17,23 +12,4 @@ export type ToolbarItems = {
|
|
|
17
12
|
export type EditorContentArray = Record<string, any>[]
|
|
18
13
|
|
|
19
14
|
export type EditorRows =
|
|
20
|
-
|
|
|
21
|
-
| 2
|
|
22
|
-
| 3
|
|
23
|
-
| 4
|
|
24
|
-
| 5
|
|
25
|
-
| 6
|
|
26
|
-
| 7
|
|
27
|
-
| 8
|
|
28
|
-
| 9
|
|
29
|
-
| 10
|
|
30
|
-
| 11
|
|
31
|
-
| 12
|
|
32
|
-
| 13
|
|
33
|
-
| 14
|
|
34
|
-
| 15
|
|
35
|
-
| 16
|
|
36
|
-
| 17
|
|
37
|
-
| 18
|
|
38
|
-
| 19
|
|
39
|
-
| 20
|
|
15
|
+
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20
|
|
@@ -13,8 +13,7 @@ export type SingleSelectOptionGroup<Option extends SingleSelectOption> = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type SingleSelectItem<Option extends SingleSelectOption = SingleSelectOption> =
|
|
16
|
-
| Option
|
|
17
|
-
| SingleSelectOptionGroup<Option>
|
|
16
|
+
Option | SingleSelectOptionGroup<Option>
|
|
18
17
|
|
|
19
18
|
export type SingleSelectOptionNode<Option extends SingleSelectOption = SingleSelectOption> =
|
|
20
19
|
Node<Option> & {
|
|
@@ -30,5 +29,4 @@ export type SingleSelectOptionGroupNode<Option extends SingleSelectOption = Sing
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export type SingleSelectItemNode<Option extends SingleSelectOption = SingleSelectOption> =
|
|
33
|
-
|
|
|
34
|
-
| SingleSelectOptionGroupNode<Option>
|
|
32
|
+
SingleSelectOptionNode<Option> | SingleSelectOptionGroupNode<Option>
|
package/src/Text/Text.tsx
CHANGED
|
@@ -6,25 +6,10 @@ import styles from './Text.module.css'
|
|
|
6
6
|
export type TextVariants = 'intro-lede' | 'body' | 'small' | 'extra-small'
|
|
7
7
|
|
|
8
8
|
export type AllowedTextTags =
|
|
9
|
-
| '
|
|
10
|
-
| 'p'
|
|
11
|
-
| 'div'
|
|
12
|
-
| 'span'
|
|
13
|
-
| 'h1'
|
|
14
|
-
| 'h2'
|
|
15
|
-
| 'h3'
|
|
16
|
-
| 'h4'
|
|
17
|
-
| 'h5'
|
|
18
|
-
| 'h6'
|
|
19
|
-
| 'label'
|
|
9
|
+
'pre' | 'p' | 'div' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label'
|
|
20
10
|
|
|
21
11
|
export type AllowedTextColors =
|
|
22
|
-
| 'dark'
|
|
23
|
-
| 'dark-reduced-opacity'
|
|
24
|
-
| 'white'
|
|
25
|
-
| 'white-reduced-opacity'
|
|
26
|
-
| 'positive'
|
|
27
|
-
| 'negative'
|
|
12
|
+
'dark' | 'dark-reduced-opacity' | 'white' | 'white-reduced-opacity' | 'positive' | 'negative'
|
|
28
13
|
|
|
29
14
|
export interface TextProps extends OverrideClassName<HTMLAttributes<HTMLElement>> {
|
|
30
15
|
children: React.ReactNode
|
package/src/TitleBlock/types.ts
CHANGED
|
@@ -144,8 +144,7 @@ export type TitleBlockSelectProps = React.ComponentProps<typeof Select>
|
|
|
144
144
|
export type TitleBlockDistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never
|
|
145
145
|
|
|
146
146
|
export type TitleBlockAvatarProps =
|
|
147
|
-
| Omit<
|
|
148
|
-
| Omit<CompanyAvatarProps, 'size'>
|
|
147
|
+
Omit<GenericAvatarProps, 'size'> | Omit<CompanyAvatarProps, 'size'>
|
|
149
148
|
|
|
150
149
|
export type DefaultActionProps = TitleBlockButtonProps | TitleBlockCustomButtonProps
|
|
151
150
|
|
|
@@ -51,8 +51,7 @@ export type ComboBoxProps<T extends SelectItem> = Omit<
|
|
|
51
51
|
SelectBaseProps
|
|
52
52
|
|
|
53
53
|
export type SingleSelectProps<T extends SelectItem> =
|
|
54
|
-
|
|
55
|
-
| (SelectProps<T> & { isComboBox?: false })
|
|
54
|
+
(ComboBoxProps<T> & { isComboBox?: true }) | (SelectProps<T> & { isComboBox?: false })
|
|
56
55
|
|
|
57
56
|
// Trigger
|
|
58
57
|
export type SelectTriggerProps = {
|