@kaizen/components 1.56.1 → 1.57.1
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/Card/Card.module.scss.cjs +1 -0
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +6 -5
- package/dist/cjs/Collapsible/Collapsible/Collapsible.module.scss.cjs +1 -2
- package/dist/cjs/EmptyState/EmptyState.cjs +1 -1
- package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +2 -1
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.module.scss.cjs +1 -2
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +1 -1
- package/dist/cjs/Well/Well.module.scss.cjs +1 -1
- package/dist/esm/Card/Card.module.scss.mjs +1 -0
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +6 -5
- package/dist/esm/Collapsible/Collapsible/Collapsible.module.scss.mjs +1 -2
- package/dist/esm/EmptyState/EmptyState.mjs +2 -2
- package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +2 -1
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.module.scss.mjs +1 -2
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +1 -1
- package/dist/esm/Well/Well.module.scss.mjs +1 -1
- package/dist/styles.css +21 -21
- package/package.json +3 -3
- package/src/Card/Card.module.scss +12 -1
- package/src/Card/_docs/Card.stickersheet.stories.tsx +0 -7
- package/src/Collapsible/Collapsible/Collapsible.module.scss +27 -31
- package/src/Collapsible/Collapsible/Collapsible.tsx +2 -4
- package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +4 -1
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +2 -0
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stickersheet.stories.tsx +8 -1
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +2 -1
- package/src/EmptyState/EmptyState.module.scss +23 -21
- package/src/EmptyState/EmptyState.tsx +1 -2
- package/src/FieldMessage/FieldMessage.module.scss +1 -1
- package/src/GuidanceBlock/GuidanceBlock.module.scss +16 -9
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +9 -23
- package/src/Modal/GenericModal/GenericModal.module.scss +14 -0
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +0 -15
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.mdx +1 -1
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +2 -2
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stories.tsx +1 -1
- package/src/Notification/InlineNotification/_docs/InlineNotification.mdx +2 -2
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +2 -2
- package/src/Notification/InlineNotification/_docs/InlineNotification.stories.tsx +1 -1
- package/src/Notification/ToastNotification/_docs/ToastNotification.mdx +2 -2
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +4 -4
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +24 -67
- package/src/Popover/Popover.module.scss +21 -11
- package/src/Tag/Tag.module.scss +1 -1
- package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +3 -3
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +2 -2
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +10 -4
- package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +2 -2
- package/src/Well/Well.module.scss +12 -14
- package/src/__overlays__/Tooltip/v1/Tooltip.module.scss +13 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.57.1",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"ts-jest": "^29.2.3",
|
|
101
101
|
"tslib": "^2.6.3",
|
|
102
102
|
"tsx": "^4.16.2",
|
|
103
|
-
"@kaizen/
|
|
104
|
-
"@kaizen/
|
|
103
|
+
"@kaizen/package-bundler": "1.1.3",
|
|
104
|
+
"@kaizen/design-tokens": "10.5.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependenciesComments": {
|
|
107
107
|
"postcss": "Installed in root",
|
|
@@ -4,32 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
.wrapper {
|
|
6
6
|
color: $color-purple-800;
|
|
7
|
-
|
|
7
|
+
border: var(--border-width-1) solid;
|
|
8
8
|
border-radius: $border-borderless-border-radius;
|
|
9
9
|
box-shadow: $shadow-small-box-shadow;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.default {
|
|
13
|
+
border-color: var(--color-gray-500);
|
|
14
|
+
background-color: var(--color-white);
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
.informative {
|
|
18
|
+
border-color: var(--color-blue-400);
|
|
13
19
|
background-color: $color-blue-100;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.positive {
|
|
23
|
+
border-color: var(--color-green-500);
|
|
17
24
|
background-color: $color-green-100;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
27
|
.cautionary {
|
|
28
|
+
border-color: var(--color-yellow-700);
|
|
21
29
|
background-color: $color-yellow-100;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
.destructive {
|
|
33
|
+
border-color: var(--color-red-500);
|
|
25
34
|
background-color: $color-red-100;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
.assertive {
|
|
38
|
+
border-color: var(--color-orange-600);
|
|
29
39
|
background-color: $color-orange-100;
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
.highlight {
|
|
43
|
+
border-color: var(--color-purple-400);
|
|
33
44
|
background-color: $color-purple-100;
|
|
34
45
|
}
|
|
35
46
|
|
|
@@ -63,13 +63,6 @@ export const StickerSheetDefault: StickerSheetStory = {
|
|
|
63
63
|
name: "Sticker Sheet (Default)",
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export const StickerSheetReversed: StickerSheetStory = {
|
|
67
|
-
...StickerSheetTemplate,
|
|
68
|
-
name: "Sticker Sheet (Reversed)",
|
|
69
|
-
parameters: { backgrounds: { default: "Purple 700" } },
|
|
70
|
-
args: { isReversed: true },
|
|
71
|
-
}
|
|
72
|
-
|
|
73
66
|
export const StickerSheetRTL: StickerSheetStory = {
|
|
74
67
|
...StickerSheetTemplate,
|
|
75
68
|
name: "Sticker Sheet (RTL)",
|
|
@@ -5,59 +5,48 @@
|
|
|
5
5
|
@import "~@kaizen/design-tokens/sass/animation";
|
|
6
6
|
|
|
7
7
|
$heading-active-color: $color-gray-200;
|
|
8
|
-
$
|
|
8
|
+
$divider-color: rgba($color-gray-600-rgb, 0.2);
|
|
9
|
+
$container-border-width: var(--border-width-1);
|
|
10
|
+
|
|
11
|
+
// We need a full border radius on this container element, then have classes
|
|
12
|
+
// beneath to toggle nested borders off and on for different use cases.
|
|
13
|
+
.container {
|
|
14
|
+
background-color: $color-white;
|
|
15
|
+
box-shadow: $shadow-small-box-shadow;
|
|
16
|
+
border: $container-border-width var(--border-solid-border-style)
|
|
17
|
+
var(--color-gray-500);
|
|
18
|
+
border-radius: $border-borderless-border-radius;
|
|
19
|
+
}
|
|
9
20
|
|
|
10
21
|
.header {
|
|
11
22
|
display: flex;
|
|
12
23
|
align-items: center;
|
|
13
|
-
text-align:
|
|
24
|
+
text-align: start;
|
|
14
25
|
background-color: $color-white;
|
|
15
26
|
border: none;
|
|
27
|
+
border-radius: var(--border-borderless-border-radius);
|
|
16
28
|
transition: background-color $animation-duration-rapid;
|
|
17
|
-
padding:
|
|
29
|
+
padding-block: calc(var(--spacing-12) - #{$container-border-width});
|
|
30
|
+
padding-inline: var(--spacing-24) var(--spacing-12);
|
|
18
31
|
|
|
19
32
|
&:hover {
|
|
20
33
|
background-color: $heading-active-color;
|
|
21
34
|
}
|
|
22
35
|
|
|
23
|
-
[dir="rtl"] & {
|
|
24
|
-
text-align: right;
|
|
25
|
-
padding-left: $spacing-sm;
|
|
26
|
-
padding-right: $spacing-md;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
36
|
// Round the bottom corners of the header so when the container is open, the
|
|
30
37
|
// header background is not rounded on the corners and flush with the content beneath.
|
|
31
|
-
|
|
38
|
+
&.open {
|
|
32
39
|
border-bottom-left-radius: 0;
|
|
33
40
|
border-bottom-right-radius: 0;
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
43
|
|
|
37
|
-
// We need a full border radius on this container element, then have classes
|
|
38
|
-
// beneath to toggle nested borders off and on for different use cases.
|
|
39
|
-
.container {
|
|
40
|
-
background-color: $color-white;
|
|
41
|
-
box-shadow: $shadow-small-box-shadow;
|
|
42
|
-
border-radius: $border-borderless-border-radius;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.single {
|
|
46
|
-
.header {
|
|
47
|
-
border-radius: $border-borderless-border-radius;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
44
|
.separated {
|
|
52
45
|
& + .separated {
|
|
53
46
|
margin-top: calc(#{$spacing-md} * 0.3);
|
|
54
47
|
margin-right: 0;
|
|
55
48
|
margin-left: 0;
|
|
56
49
|
}
|
|
57
|
-
|
|
58
|
-
.header {
|
|
59
|
-
border-radius: $border-borderless-border-radius;
|
|
60
|
-
}
|
|
61
50
|
}
|
|
62
51
|
|
|
63
52
|
// When a collapsible group is rendered, we need the first group to have a rounded
|
|
@@ -65,17 +54,24 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
|
|
|
65
54
|
// is open we remove the rounded edge as the content sits beneath and needs to be straight.
|
|
66
55
|
.groupItem {
|
|
67
56
|
& + .groupItem {
|
|
68
|
-
border-top: 1px $border-solid-border-style $
|
|
57
|
+
border-top: 1px $border-solid-border-style $divider-color;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.header {
|
|
61
|
+
border-radius: 0;
|
|
62
|
+
padding-block: var(--spacing-12);
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
&:first-of-type > .header {
|
|
72
66
|
border-top-left-radius: $border-borderless-border-radius;
|
|
73
67
|
border-top-right-radius: $border-borderless-border-radius;
|
|
68
|
+
padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
|
|
74
69
|
}
|
|
75
70
|
|
|
76
71
|
&:last-of-type > .header:not(.open) {
|
|
77
72
|
border-bottom-left-radius: $border-borderless-border-radius;
|
|
78
73
|
border-bottom-right-radius: $border-borderless-border-radius;
|
|
74
|
+
padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
|
|
@@ -93,7 +89,7 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
|
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
.clearVariant {
|
|
96
|
-
border-bottom: 1px $border-solid-border-style $
|
|
92
|
+
border-bottom: 1px $border-solid-border-style $divider-color;
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
.sticky {
|
|
@@ -103,7 +99,7 @@ $border-color: rgba($color-gray-600-rgb, 0.2);
|
|
|
103
99
|
}
|
|
104
100
|
|
|
105
101
|
.section {
|
|
106
|
-
padding:
|
|
102
|
+
padding: var(--spacing-24);
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
.noPadding {
|
|
@@ -46,7 +46,7 @@ export const Collapsible = ({
|
|
|
46
46
|
sticky,
|
|
47
47
|
noSectionPadding,
|
|
48
48
|
onToggle,
|
|
49
|
-
variant,
|
|
49
|
+
variant = "default",
|
|
50
50
|
lazyLoad,
|
|
51
51
|
controlled,
|
|
52
52
|
classNameOverride,
|
|
@@ -81,9 +81,7 @@ export const Collapsible = ({
|
|
|
81
81
|
classNameOverride,
|
|
82
82
|
isContainer && styles.container,
|
|
83
83
|
group && !separated && styles.groupItem,
|
|
84
|
-
separated && styles.separated
|
|
85
|
-
isOpen && styles.open,
|
|
86
|
-
!group && styles.single
|
|
84
|
+
separated && styles.separated
|
|
87
85
|
)}
|
|
88
86
|
data-testid={`collapsible-container-${id}`}
|
|
89
87
|
{...restProps} // `title` is missing because it is used for the header; requires breaking change to fix
|
|
@@ -33,9 +33,12 @@ const StickerSheetTemplate: StickerSheetStory = {
|
|
|
33
33
|
render: () => (
|
|
34
34
|
<StickerSheet>
|
|
35
35
|
<StickerSheet.Body>
|
|
36
|
-
<StickerSheet.Row rowTitle="
|
|
36
|
+
<StickerSheet.Row rowTitle="Open">
|
|
37
37
|
<CollapsibleWrapped title="Collapsible" />
|
|
38
38
|
</StickerSheet.Row>
|
|
39
|
+
<StickerSheet.Row rowTitle="Closed">
|
|
40
|
+
<CollapsibleWrapped title="Closed" open={false} />
|
|
41
|
+
</StickerSheet.Row>
|
|
39
42
|
<StickerSheet.Row rowTitle="noSectionPadding">
|
|
40
43
|
<CollapsibleWrapped title="No Padding" noSectionPadding />
|
|
41
44
|
</StickerSheet.Row>
|
|
@@ -46,9 +46,16 @@ const StickerSheetTemplate: StickerSheetStory = {
|
|
|
46
46
|
render: ({ isReversed }) => (
|
|
47
47
|
<StickerSheet isReversed={isReversed}>
|
|
48
48
|
<StickerSheet.Body>
|
|
49
|
-
<StickerSheet.Row rowTitle="
|
|
49
|
+
<StickerSheet.Row rowTitle="Open">
|
|
50
50
|
<CollapsibleGroupWrapped />
|
|
51
51
|
</StickerSheet.Row>
|
|
52
|
+
<StickerSheet.Row rowTitle="Closed">
|
|
53
|
+
<CollapsibleGroup>
|
|
54
|
+
<CollapsibleWrapped open={false} />
|
|
55
|
+
<CollapsibleWrapped open={false} />
|
|
56
|
+
<CollapsibleWrapped open={false} />
|
|
57
|
+
</CollapsibleGroup>
|
|
58
|
+
</StickerSheet.Row>
|
|
52
59
|
<StickerSheet.Row rowTitle="noSectionPadding">
|
|
53
60
|
<CollapsibleGroupWrapped noSectionPadding />
|
|
54
61
|
</StickerSheet.Row>
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
.expertAdviceContainer {
|
|
6
6
|
background-color: $color-purple-100;
|
|
7
|
-
border:
|
|
7
|
+
border: var(--border-width-1) var(--border-solid-border-style)
|
|
8
|
+
var(--color-purple-400);
|
|
8
9
|
box-shadow: none;
|
|
9
10
|
color: $color-purple-800;
|
|
10
11
|
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
@import "./mixins";
|
|
5
5
|
|
|
6
6
|
.container {
|
|
7
|
+
--border-width: var(--border-width-1);
|
|
8
|
+
|
|
7
9
|
display: flex;
|
|
8
10
|
justify-content: space-around;
|
|
9
11
|
width: 100%;
|
|
10
|
-
padding: 2%
|
|
12
|
+
padding: calc(2% - var(--border-width))
|
|
13
|
+
calc(var(--spacing-24) - var(--border-width));
|
|
11
14
|
color: $color-purple-800;
|
|
12
|
-
border:
|
|
13
|
-
$border-borderless-border-color-id;
|
|
15
|
+
border: var(--border-width) var(--border-solid-border-style);
|
|
14
16
|
border-radius: $border-solid-border-radius;
|
|
15
17
|
|
|
16
18
|
@include small {
|
|
17
19
|
flex-direction: column;
|
|
18
20
|
align-items: center;
|
|
19
|
-
padding-
|
|
20
|
-
padding-bottom: $spacing-md;
|
|
21
|
+
padding-block: calc(var(--spacing-24) - var(--border-width));
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
&.straightCorners {
|
|
@@ -38,26 +39,27 @@
|
|
|
38
39
|
padding-bottom: $spacing-md;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
42
|
+
}
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
&.negative {
|
|
47
|
-
background-color: $color-red-100;
|
|
48
|
-
}
|
|
44
|
+
.positive {
|
|
45
|
+
border-color: var(--color-green-500);
|
|
46
|
+
background-color: $color-green-100;
|
|
47
|
+
}
|
|
49
48
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
.negative,
|
|
50
|
+
.action {
|
|
51
|
+
border-color: var(--color-red-500);
|
|
52
|
+
background-color: $color-red-100;
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
.neutral {
|
|
56
|
+
border-color: var(--color-purple-400);
|
|
57
|
+
background-color: $color-purple-100;
|
|
58
|
+
}
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
.informative {
|
|
61
|
+
border-color: var(--color-blue-400);
|
|
62
|
+
background-color: $color-blue-100;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.illustrationSide,
|
|
@@ -3,7 +3,6 @@ import classnames from "classnames"
|
|
|
3
3
|
import { HeadingProps, Heading } from "~components/Heading"
|
|
4
4
|
import {
|
|
5
5
|
AnimatedSceneProps,
|
|
6
|
-
EmptyStatesAction,
|
|
7
6
|
EmptyStatesInformative,
|
|
8
7
|
EmptyStatesNegative,
|
|
9
8
|
EmptyStatesNeutral,
|
|
@@ -21,7 +20,7 @@ const ILLUSTRATIONS: Record<
|
|
|
21
20
|
neutral: EmptyStatesNeutral,
|
|
22
21
|
negative: EmptyStatesNegative,
|
|
23
22
|
informative: EmptyStatesInformative,
|
|
24
|
-
action:
|
|
23
|
+
action: EmptyStatesNegative,
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
type IllustrationType =
|
|
@@ -33,16 +33,16 @@ $scene-illustration-size: 300px;
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.banner {
|
|
36
|
+
--border-width: var(--border-width-1);
|
|
37
|
+
|
|
36
38
|
display: flex;
|
|
37
39
|
flex-direction: column;
|
|
38
40
|
gap: $spacing-sm;
|
|
39
|
-
background: $color-white;
|
|
40
41
|
min-width: 320px;
|
|
41
42
|
max-width: $layout-breakpoints-large;
|
|
42
|
-
border:
|
|
43
|
-
$border-borderless-border-color;
|
|
43
|
+
border: var(--border-width) var(--border-solid-border-style);
|
|
44
44
|
border-radius: $border-solid-border-radius;
|
|
45
|
-
padding: $bannerPadding;
|
|
45
|
+
padding: calc(#{$bannerPadding} - var(--border-width));
|
|
46
46
|
box-shadow: $shadow-small-box-shadow;
|
|
47
47
|
position: relative;
|
|
48
48
|
top: -1px;
|
|
@@ -214,27 +214,34 @@ $scene-illustration-size: 300px;
|
|
|
214
214
|
color: $color-purple-800;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
+
.default {
|
|
218
|
+
border-color: var(--color-gray-500);
|
|
219
|
+
background: var(--color-white);
|
|
220
|
+
}
|
|
221
|
+
|
|
217
222
|
.positive {
|
|
223
|
+
border-color: var(--color-green-500);
|
|
218
224
|
background: $color-green-100;
|
|
219
225
|
}
|
|
220
226
|
|
|
221
|
-
.negative
|
|
227
|
+
.negative,
|
|
228
|
+
.assertive {
|
|
229
|
+
border-color: var(--color-red-500);
|
|
222
230
|
background: $color-red-100;
|
|
223
231
|
}
|
|
224
232
|
|
|
225
233
|
.informative {
|
|
234
|
+
border-color: var(--color-blue-400);
|
|
226
235
|
background: $color-blue-100;
|
|
227
236
|
}
|
|
228
237
|
|
|
229
238
|
.cautionary {
|
|
239
|
+
border-color: var(--color-yellow-700);
|
|
230
240
|
background: $color-yellow-100;
|
|
231
241
|
}
|
|
232
242
|
|
|
233
|
-
.assertive {
|
|
234
|
-
background: $color-orange-100;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
243
|
.prominent {
|
|
244
|
+
border-color: var(--color-purple-400);
|
|
238
245
|
background: $color-purple-100;
|
|
239
246
|
}
|
|
240
247
|
|
|
@@ -46,35 +46,24 @@ $dt-assertive-header-background: $color-orange-100;
|
|
|
46
46
|
.positiveHeader {
|
|
47
47
|
background-color: $dt-positive-header-background;
|
|
48
48
|
|
|
49
|
-
.spotIcon
|
|
50
|
-
.svgIcon > svg {
|
|
49
|
+
.spotIcon {
|
|
51
50
|
color: $color-green-500;
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
.assertiveHeader {
|
|
56
|
-
background-color: $dt-assertive-header-background;
|
|
57
|
-
|
|
58
|
-
.spotIcon,
|
|
59
|
-
.svgIcon > svg {
|
|
60
|
-
color: $color-orange-500;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
54
|
.informativeHeader {
|
|
65
55
|
background-color: $dt-informative-header-background;
|
|
66
56
|
|
|
67
|
-
.spotIcon
|
|
68
|
-
.svgIcon > svg {
|
|
57
|
+
.spotIcon {
|
|
69
58
|
color: $color-blue-500;
|
|
70
59
|
}
|
|
71
60
|
}
|
|
72
61
|
|
|
73
|
-
.negativeHeader
|
|
62
|
+
.negativeHeader,
|
|
63
|
+
.assertiveHeader {
|
|
74
64
|
background-color: $dt-negative-header-background;
|
|
75
65
|
|
|
76
|
-
.spotIcon
|
|
77
|
-
.svgIcon > svg {
|
|
66
|
+
.spotIcon {
|
|
78
67
|
color: $color-red-500;
|
|
79
68
|
}
|
|
80
69
|
}
|
|
@@ -82,9 +71,8 @@ $dt-assertive-header-background: $color-orange-100;
|
|
|
82
71
|
.cautionaryHeader {
|
|
83
72
|
background-color: $dt-cautionary-header-background;
|
|
84
73
|
|
|
85
|
-
.spotIcon
|
|
86
|
-
|
|
87
|
-
color: $color-yellow-500;
|
|
74
|
+
.spotIcon {
|
|
75
|
+
color: var(--color-yellow-700);
|
|
88
76
|
}
|
|
89
77
|
}
|
|
90
78
|
|
|
@@ -105,8 +93,7 @@ $dt-assertive-header-background: $color-orange-100;
|
|
|
105
93
|
}
|
|
106
94
|
}
|
|
107
95
|
|
|
108
|
-
.spotIcon
|
|
109
|
-
.svgIcon > svg {
|
|
96
|
+
.spotIcon {
|
|
110
97
|
width: 30px;
|
|
111
98
|
height: 30px;
|
|
112
99
|
|
|
@@ -138,8 +125,7 @@ $dt-assertive-header-background: $color-orange-100;
|
|
|
138
125
|
}
|
|
139
126
|
}
|
|
140
127
|
|
|
141
|
-
.spotIcon
|
|
142
|
-
.svgIcon > svg {
|
|
128
|
+
.spotIcon {
|
|
143
129
|
width: 155px;
|
|
144
130
|
height: 155px;
|
|
145
131
|
margin: 0 auto;
|
|
@@ -54,6 +54,20 @@
|
|
|
54
54
|
@include ca-media-tablet-and-up {
|
|
55
55
|
width: 100%;
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
// wrap the modal container with a focus ring when the title has focus
|
|
59
|
+
// don't copy this over on the rebuild
|
|
60
|
+
// rather than putting the focus on the title, put it on the role=dialog element itself
|
|
61
|
+
&:has(:global([class*="modalLabel"]):focus-visible)::after {
|
|
62
|
+
content: "";
|
|
63
|
+
position: absolute;
|
|
64
|
+
background: transparent;
|
|
65
|
+
border-radius: $border-focus-ring-border-radius;
|
|
66
|
+
border-width: $border-focus-ring-border-width;
|
|
67
|
+
border-style: $border-focus-ring-border-style;
|
|
68
|
+
border-color: $color-blue-300;
|
|
69
|
+
inset: -4px;
|
|
70
|
+
}
|
|
57
71
|
}
|
|
58
72
|
|
|
59
73
|
// WAITING FOR TEXTFIELD
|
package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss
CHANGED
|
@@ -12,8 +12,6 @@ $ca-breakpoint-small-mobile: 375px;
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.modalLabel {
|
|
15
|
-
position: relative;
|
|
16
|
-
|
|
17
15
|
// TODO - Remove below styles for Heading once responsive styling has been added to the Heading Component
|
|
18
16
|
h2 {
|
|
19
17
|
@media (max-width: $layout-breakpoints-medium) {
|
|
@@ -35,17 +33,4 @@ $ca-breakpoint-small-mobile: 375px;
|
|
|
35
33
|
&:focus {
|
|
36
34
|
outline: none;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
&:focus-visible::after {
|
|
40
|
-
$focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
|
|
41
|
-
|
|
42
|
-
content: "";
|
|
43
|
-
position: absolute;
|
|
44
|
-
background: transparent;
|
|
45
|
-
border-radius: $border-focus-ring-border-radius;
|
|
46
|
-
border-width: $border-focus-ring-border-width;
|
|
47
|
-
border-style: $border-focus-ring-border-style;
|
|
48
|
-
border-color: $color-blue-500;
|
|
49
|
-
inset: calc(-1 * #{$focus-ring-offset});
|
|
50
|
-
}
|
|
51
36
|
}
|
|
@@ -2,7 +2,7 @@ import { Canvas, Controls, Meta, Description} from "@storybook/blocks"
|
|
|
2
2
|
import { KAIOInstallation, ResourceLinks } from "~storybook/components"
|
|
3
3
|
import * as GlobalNotificationExamples from "./GlobalNotification.stories"
|
|
4
4
|
|
|
5
|
-
<Meta
|
|
5
|
+
<Meta of={GlobalNotificationExamples} />
|
|
6
6
|
|
|
7
7
|
# GlobalNotification
|
|
8
8
|
|
package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../GlobalNotification"
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
title: "Components/Notifications/
|
|
13
|
+
title: "Components/Notifications/GlobalNotification",
|
|
14
14
|
parameters: {
|
|
15
15
|
chromatic: { disable: false },
|
|
16
16
|
controls: { disable: true },
|
|
@@ -85,7 +85,7 @@ const VARIANTS_PROPS: Array<{
|
|
|
85
85
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
86
86
|
render: ({ isReversed }) => (
|
|
87
87
|
<>
|
|
88
|
-
<StickerSheet heading="
|
|
88
|
+
<StickerSheet heading="GlobalNotification" isReversed={isReversed}>
|
|
89
89
|
<StickerSheet.Body>
|
|
90
90
|
{VARIANTS_PROPS.map(({ title, props }) => (
|
|
91
91
|
<StickerSheet.Row key={title} rowTitle={title}>
|
|
@@ -2,9 +2,9 @@ import { Canvas, Controls, Meta, Description} from "@storybook/blocks"
|
|
|
2
2
|
import { KAIOInstallation, ResourceLinks } from "~storybook/components"
|
|
3
3
|
import * as InlineNotificationExamples from "./InlineNotification.stories"
|
|
4
4
|
|
|
5
|
-
<Meta
|
|
5
|
+
<Meta of={InlineNotificationExamples} />
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# InlineNotification
|
|
8
8
|
|
|
9
9
|
<ResourceLinks
|
|
10
10
|
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/InlineNotification"
|
package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "../InlineNotification"
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
|
-
title: "Components/Notifications/
|
|
13
|
+
title: "Components/Notifications/InlineNotification",
|
|
14
14
|
parameters: {
|
|
15
15
|
chromatic: { disable: false },
|
|
16
16
|
controls: { disable: true },
|
|
@@ -160,7 +160,7 @@ const VARIANTS_PROPS: Array<{
|
|
|
160
160
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
161
161
|
render: ({ isReversed }) => (
|
|
162
162
|
<>
|
|
163
|
-
<StickerSheet heading="
|
|
163
|
+
<StickerSheet heading="InlineNotification" isReversed={isReversed}>
|
|
164
164
|
<StickerSheet.Body>
|
|
165
165
|
{VARIANTS_PROPS.map(({ title, props }) => (
|
|
166
166
|
<StickerSheet.Row key={title} rowTitle={title}>
|
|
@@ -16,7 +16,7 @@ const DEFAULT_PROPS: Partial<InlineNotificationProps> = {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const meta = {
|
|
19
|
-
title: "Components/Notifications/
|
|
19
|
+
title: "Components/Notifications/InlineNotification",
|
|
20
20
|
component: InlineNotification,
|
|
21
21
|
args: {
|
|
22
22
|
...DEFAULT_PROPS,
|
|
@@ -2,9 +2,9 @@ import { Canvas, Controls, Meta } from "@storybook/blocks"
|
|
|
2
2
|
import { ResourceLinks, KAIOInstallation, LinkTo } from "~storybook/components"
|
|
3
3
|
import * as ToastNotificationStories from "./ToastNotification.stories"
|
|
4
4
|
|
|
5
|
-
<Meta
|
|
5
|
+
<Meta of={ToastNotificationStories} />
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# ToastNotification
|
|
8
8
|
|
|
9
9
|
<ResourceLinks
|
|
10
10
|
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Notification/ToastNotification"
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
align-items: center;
|
|
34
34
|
justify-content: center;
|
|
35
35
|
|
|
36
|
-
&:focus
|
|
36
|
+
&:focus,
|
|
37
|
+
&:focus-visible {
|
|
37
38
|
outline: none;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
&:focus-visible::after {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
$focus-ring-offset: 6px;
|
|
42
|
+
$focus-ring-offset: var(--spacing-2);
|
|
44
43
|
|
|
44
|
+
content: "";
|
|
45
45
|
pointer-events: none;
|
|
46
46
|
position: absolute;
|
|
47
47
|
background: transparent;
|