@kaizen/components 1.63.1 → 1.64.0
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/styles.css +30 -30
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +3 -0
- package/dist/types/Notification/InlineNotification/InlineNotification.d.ts +3 -3
- package/package.json +3 -3
- package/src/GuidanceBlock/GuidanceBlock.tsx +3 -0
- package/src/Notification/InlineNotification/InlineNotification.tsx +4 -3
package/dist/styles.css
CHANGED
|
@@ -27,36 +27,6 @@
|
|
|
27
27
|
.OverlayArrow-module_overlayArrow__hoDyK.OverlayArrow-module_reversed__-WGcR path {
|
|
28
28
|
fill: var(--color-white, #ffffff);
|
|
29
29
|
}
|
|
30
|
-
.Menu-module_menu__iHYqh {
|
|
31
|
-
background-color: var(--color-white);
|
|
32
|
-
color: var(--color-purple-800);
|
|
33
|
-
width: 248px;
|
|
34
|
-
max-height: 22rem;
|
|
35
|
-
overflow: auto;
|
|
36
|
-
padding-block: var(--spacing-6);
|
|
37
|
-
outline: none;
|
|
38
|
-
border-radius: var(--border-solid-border-radius);
|
|
39
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.Menu-module_menu__iHYqh .react-aria-Header {
|
|
43
|
-
font-family: var(--typography-heading-6-font-family);
|
|
44
|
-
font-size: var(--typography-heading-6-font-size);
|
|
45
|
-
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
46
|
-
font-weight: var(--typography-heading-6-font-weight);
|
|
47
|
-
line-height: var(--typography-heading-6-line-height);
|
|
48
|
-
padding: var(--spacing-6) 10px;
|
|
49
|
-
margin-inline: var(--spacing-6);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.Menu-module_menu__iHYqh section:not(:last-of-type)::after {
|
|
53
|
-
width: 100%;
|
|
54
|
-
height: 1px;
|
|
55
|
-
background-color: var(--border-solid-border-color);
|
|
56
|
-
content: "";
|
|
57
|
-
display: block;
|
|
58
|
-
margin-block: var(--spacing-6);
|
|
59
|
-
}
|
|
60
30
|
.MenuItem-module_item__DPerF {
|
|
61
31
|
font-family: var(--typography-paragraph-body-font-family);
|
|
62
32
|
font-size: var(--typography-paragraph-body-font-size);
|
|
@@ -91,6 +61,36 @@
|
|
|
91
61
|
.MenuItem-module_item__DPerF[data-disabled] {
|
|
92
62
|
opacity: 0.3;
|
|
93
63
|
}
|
|
64
|
+
.Menu-module_menu__iHYqh {
|
|
65
|
+
background-color: var(--color-white);
|
|
66
|
+
color: var(--color-purple-800);
|
|
67
|
+
width: 248px;
|
|
68
|
+
max-height: 22rem;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
padding-block: var(--spacing-6);
|
|
71
|
+
outline: none;
|
|
72
|
+
border-radius: var(--border-solid-border-radius);
|
|
73
|
+
box-shadow: var(--shadow-large-box-shadow);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Menu-module_menu__iHYqh .react-aria-Header {
|
|
77
|
+
font-family: var(--typography-heading-6-font-family);
|
|
78
|
+
font-size: var(--typography-heading-6-font-size);
|
|
79
|
+
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
80
|
+
font-weight: var(--typography-heading-6-font-weight);
|
|
81
|
+
line-height: var(--typography-heading-6-line-height);
|
|
82
|
+
padding: var(--spacing-6) 10px;
|
|
83
|
+
margin-inline: var(--spacing-6);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Menu-module_menu__iHYqh section:not(:last-of-type)::after {
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 1px;
|
|
89
|
+
background-color: var(--border-solid-border-color);
|
|
90
|
+
content: "";
|
|
91
|
+
display: block;
|
|
92
|
+
margin-block: var(--spacing-6);
|
|
93
|
+
}
|
|
94
94
|
.Button-module_button__QOSYH {
|
|
95
95
|
--button-min-height-width: var(--spacing-48);
|
|
96
96
|
--button-padding-x: calc(
|
|
@@ -6,6 +6,9 @@ import { TooltipProps } from "../__overlays__/Tooltip/v1";
|
|
|
6
6
|
import { VariantType } from "./types";
|
|
7
7
|
export type ActionProps = ButtonProps & {
|
|
8
8
|
tooltip?: TooltipProps;
|
|
9
|
+
"aria-label"?: string;
|
|
10
|
+
"aria-labelledby"?: string;
|
|
11
|
+
"aria-describedby"?: string;
|
|
9
12
|
};
|
|
10
13
|
type LayoutType = "default" | "inline" | "stacked";
|
|
11
14
|
type IllustrationType = "spot" | "scene";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
2
|
import { HeadingProps } from "../../Heading";
|
|
3
3
|
import { OverrideClassName } from "../../types/OverrideClassName";
|
|
4
4
|
import { GenericNotificationType, GenericNotificationVariant } from "../subcomponents/GenericNotification";
|
|
5
|
-
export type InlineNotificationBase =
|
|
5
|
+
export type InlineNotificationBase = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
/** @default false */
|
|
8
8
|
persistent?: boolean;
|
|
@@ -13,7 +13,7 @@ export type InlineNotificationBase = OverrideClassName<{
|
|
|
13
13
|
forceMultiline?: boolean;
|
|
14
14
|
headingProps?: HeadingProps;
|
|
15
15
|
isSubtle?: boolean;
|
|
16
|
-
}>;
|
|
16
|
+
} & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "style">;
|
|
17
17
|
export type InlineNotificationProps = InlineNotificationBase & (GenericNotificationType | GenericNotificationVariant);
|
|
18
18
|
/**
|
|
19
19
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093392/Inline+Notification Guidance} |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.64.0",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
"svgo": "^3.3.2",
|
|
121
121
|
"tslib": "^2.6.3",
|
|
122
122
|
"tsx": "^4.17.0",
|
|
123
|
-
"@kaizen/
|
|
124
|
-
"@kaizen/
|
|
123
|
+
"@kaizen/package-bundler": "1.1.5",
|
|
124
|
+
"@kaizen/design-tokens": "10.6.1"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"@cultureamp/i18n-react-intl": "^2.5.9",
|
|
@@ -12,6 +12,9 @@ import styles from "./GuidanceBlock.module.scss"
|
|
|
12
12
|
|
|
13
13
|
export type ActionProps = ButtonProps & {
|
|
14
14
|
tooltip?: TooltipProps
|
|
15
|
+
"aria-label"?: string
|
|
16
|
+
"aria-labelledby"?: string
|
|
17
|
+
"aria-describedby"?: string
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
type LayoutType = "default" | "inline" | "stacked"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react"
|
|
1
|
+
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { HeadingProps } from "~components/Heading"
|
|
4
4
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../subcomponents/GenericNotification"
|
|
10
10
|
import styles from "../subcomponents/GenericNotification/GenericNotification.module.scss"
|
|
11
11
|
|
|
12
|
-
export type InlineNotificationBase =
|
|
12
|
+
export type InlineNotificationBase = {
|
|
13
13
|
children?: React.ReactNode
|
|
14
14
|
/** @default false */
|
|
15
15
|
persistent?: boolean
|
|
@@ -20,7 +20,8 @@ export type InlineNotificationBase = OverrideClassName<{
|
|
|
20
20
|
forceMultiline?: boolean
|
|
21
21
|
headingProps?: HeadingProps
|
|
22
22
|
isSubtle?: boolean
|
|
23
|
-
}>
|
|
23
|
+
} & Omit<OverrideClassName<HTMLAttributes<HTMLDivElement>>, "style">
|
|
24
|
+
// Omitted `style` above because GenericNotification has its own `style` prop
|
|
24
25
|
|
|
25
26
|
export type InlineNotificationProps = InlineNotificationBase &
|
|
26
27
|
(GenericNotificationType | GenericNotificationVariant)
|