@kaizen/components 2.3.7 → 2.5.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/cjs/index.cjs +2 -0
- package/dist/cjs/src/Content/Content.cjs +1 -1
- package/dist/cjs/src/Content/{Content.module.scss.cjs → Content.module.css.cjs} +1 -1
- package/dist/cjs/src/Divider/Divider.cjs +1 -1
- package/dist/cjs/src/Divider/Divider.module.css.cjs +10 -0
- package/dist/cjs/src/ErrorPage/ErrorPage.cjs +1 -1
- package/dist/cjs/src/ErrorPage/ErrorPage.module.css.cjs +6 -0
- package/dist/cjs/src/Heading/Heading.cjs +1 -1
- package/dist/cjs/src/Heading/Heading.module.css.cjs +22 -0
- package/dist/cjs/src/Illustration/Spot/Spot.cjs +9 -0
- package/dist/cjs/src/Label/Label.cjs +1 -1
- package/dist/cjs/src/Label/Label.module.css.cjs +16 -0
- package/dist/cjs/src/LabelledMessage/LabelledMessage.cjs +1 -1
- package/dist/cjs/src/LabelledMessage/LabelledMessage.module.css.cjs +7 -0
- package/dist/cjs/src/Notification/InlineNotification/InlineNotification.cjs +1 -1
- package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
- package/dist/cjs/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.cjs → ToastNotificationsList.module.css.cjs} +1 -1
- package/dist/cjs/src/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.cjs +1 -1
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.cjs +29 -0
- package/dist/cjs/src/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +1 -1
- package/dist/cjs/src/Select/Select.cjs +9 -7
- package/dist/cjs/src/Tag/Tag.cjs +1 -1
- package/dist/cjs/src/Tag/Tag.module.css.cjs +30 -0
- package/dist/cjs/src/Text/Text.cjs +1 -1
- package/dist/cjs/src/Text/Text.module.css.cjs +16 -0
- package/dist/cjs/src/TimeField/TimeField.cjs +6 -1
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.cjs +13 -0
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +1 -1
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.cjs +9 -0
- package/dist/cjs/src/Tooltip/OverlayArrow.cjs +1 -1
- package/dist/cjs/src/Tooltip/OverlayArrow.module.css.cjs +7 -0
- package/dist/cjs/src/Tooltip/Tooltip.cjs +1 -1
- package/dist/cjs/src/Tooltip/Tooltip.module.css.cjs +7 -0
- package/dist/cjs/src/VisuallyHidden/VisuallyHidden.cjs +1 -1
- package/dist/cjs/src/VisuallyHidden/{VisuallyHidden.module.scss.cjs → VisuallyHidden.module.css.cjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/src/Content/Content.mjs +1 -1
- package/dist/esm/src/Content/{Content.module.scss.mjs → Content.module.css.mjs} +1 -1
- package/dist/esm/src/Divider/Divider.mjs +1 -1
- package/dist/esm/src/Divider/Divider.module.css.mjs +8 -0
- package/dist/esm/src/ErrorPage/ErrorPage.mjs +1 -1
- package/dist/esm/src/ErrorPage/ErrorPage.module.css.mjs +4 -0
- package/dist/esm/src/Heading/Heading.mjs +1 -1
- package/dist/esm/src/Heading/Heading.module.css.mjs +20 -0
- package/dist/esm/src/Illustration/Spot/Spot.mjs +8 -1
- package/dist/esm/src/Label/Label.mjs +1 -1
- package/dist/esm/src/Label/Label.module.css.mjs +14 -0
- package/dist/esm/src/LabelledMessage/LabelledMessage.mjs +1 -1
- package/dist/esm/src/LabelledMessage/LabelledMessage.module.css.mjs +5 -0
- package/dist/esm/src/Notification/InlineNotification/InlineNotification.mjs +1 -1
- package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
- package/dist/esm/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss.mjs → ToastNotificationsList.module.css.mjs} +1 -1
- package/dist/esm/src/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.mjs +1 -1
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css.mjs +27 -0
- package/dist/esm/src/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +1 -1
- package/dist/esm/src/Select/Select.mjs +9 -7
- package/dist/esm/src/Tag/Tag.mjs +1 -1
- package/dist/esm/src/Tag/Tag.module.css.mjs +28 -0
- package/dist/esm/src/Text/Text.mjs +1 -1
- package/dist/esm/src/Text/Text.module.css.mjs +14 -0
- package/dist/esm/src/TimeField/TimeField.mjs +7 -2
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css.mjs +11 -0
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +1 -1
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.css.mjs +7 -0
- package/dist/esm/src/Tooltip/OverlayArrow.mjs +1 -1
- package/dist/esm/src/Tooltip/OverlayArrow.module.css.mjs +5 -0
- package/dist/esm/src/Tooltip/Tooltip.mjs +1 -1
- package/dist/esm/src/Tooltip/Tooltip.module.css.mjs +5 -0
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.mjs +1 -1
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
- package/dist/styles.css +924 -655
- package/dist/types/Illustration/Spot/Spot.d.ts +5 -0
- package/locales/ar.json +4 -0
- package/locales/bg.json +4 -0
- package/locales/cs.json +4 -0
- package/locales/cy.json +4 -0
- package/locales/da.json +4 -0
- package/locales/de.json +4 -0
- package/locales/el.json +4 -0
- package/locales/en-GB.json +4 -0
- package/locales/en.json +4 -0
- package/locales/es-419.json +4 -0
- package/locales/es.json +4 -0
- package/locales/et.json +4 -0
- package/locales/fi.json +4 -0
- package/locales/fr-CA.json +4 -0
- package/locales/fr.json +4 -0
- package/locales/he.json +4 -0
- package/locales/hi.json +4 -0
- package/locales/ht.json +4 -0
- package/locales/hu.json +4 -0
- package/locales/id.json +4 -0
- package/locales/it.json +4 -0
- package/locales/ja.json +4 -0
- package/locales/km-KH.json +4 -0
- package/locales/ko.json +4 -0
- package/locales/lt.json +4 -0
- package/locales/lv.json +4 -0
- package/locales/mi.json +4 -0
- package/locales/ms.json +4 -0
- package/locales/nb.json +4 -0
- package/locales/nl.json +4 -0
- package/locales/pl.json +4 -0
- package/locales/pt-BR.json +4 -0
- package/locales/pt.json +4 -0
- package/locales/ro.json +4 -0
- package/locales/ru.json +4 -0
- package/locales/si-LK.json +4 -0
- package/locales/sk.json +4 -0
- package/locales/sr.json +4 -0
- package/locales/sv.json +4 -0
- package/locales/th.json +4 -0
- package/locales/tl.json +4 -0
- package/locales/tr.json +4 -0
- package/locales/uk.json +4 -0
- package/locales/vi.json +4 -0
- package/locales/zh-TW.json +4 -0
- package/locales/zh.json +4 -0
- package/package.json +1 -1
- package/src/Content/Content.module.css +15 -0
- package/src/Content/Content.tsx +1 -1
- package/src/Content/_docs/Content.stories.tsx +1 -1
- package/src/Content/_variables.css +5 -0
- package/src/Divider/Divider.module.css +41 -0
- package/src/Divider/Divider.tsx +1 -1
- package/src/ErrorPage/ErrorPage.module.css +5 -0
- package/src/ErrorPage/ErrorPage.tsx +1 -1
- package/src/Heading/Heading.module.css +111 -0
- package/src/Heading/Heading.tsx +1 -1
- package/src/Illustration/Spot/Spot.tsx +6 -0
- package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +22 -0
- package/src/Label/Label.module.css +97 -0
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_docs/Label.stickersheet.stories.tsx +9 -4
- package/src/LabelledMessage/{LabelledMessage.module.scss → LabelledMessage.module.css} +1 -3
- package/src/LabelledMessage/LabelledMessage.tsx +1 -1
- package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/{ToastNotificationsList.module.scss → ToastNotificationsList.module.css} +6 -8
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +1 -1
- package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.css +392 -0
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
- package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +1 -1
- package/src/Select/Select.tsx +8 -6
- package/src/Tag/Tag.module.css +217 -0
- package/src/Tag/Tag.tsx +1 -1
- package/src/Text/Text.module.css +71 -0
- package/src/Text/Text.tsx +1 -1
- package/src/TimeField/TimeField.tsx +8 -2
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.css +141 -0
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
- package/src/ToggleSwitch/ToggleSwitchField/{ToggleSwitchField.module.scss → ToggleSwitchField.module.css} +1 -3
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +1 -1
- package/src/Tooltip/OverlayArrow.module.css +45 -0
- package/src/Tooltip/OverlayArrow.tsx +1 -1
- package/src/Tooltip/Tooltip.module.css +62 -0
- package/src/Tooltip/Tooltip.tsx +1 -1
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
- package/dist/cjs/src/Divider/Divider.module.scss.cjs +0 -10
- package/dist/cjs/src/ErrorPage/ErrorPage.module.scss.cjs +0 -6
- package/dist/cjs/src/Heading/Heading.module.scss.cjs +0 -22
- package/dist/cjs/src/Label/Label.module.scss.cjs +0 -15
- package/dist/cjs/src/LabelledMessage/LabelledMessage.module.scss.cjs +0 -7
- package/dist/cjs/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.cjs +0 -29
- package/dist/cjs/src/Tag/Tag.module.scss.cjs +0 -30
- package/dist/cjs/src/Text/Text.module.scss.cjs +0 -16
- package/dist/cjs/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.cjs +0 -13
- package/dist/cjs/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.cjs +0 -9
- package/dist/cjs/src/Tooltip/OverlayArrow.module.scss.cjs +0 -7
- package/dist/cjs/src/Tooltip/Tooltip.module.scss.cjs +0 -7
- package/dist/esm/src/Divider/Divider.module.scss.mjs +0 -8
- package/dist/esm/src/ErrorPage/ErrorPage.module.scss.mjs +0 -4
- package/dist/esm/src/Heading/Heading.module.scss.mjs +0 -20
- package/dist/esm/src/Label/Label.module.scss.mjs +0 -13
- package/dist/esm/src/LabelledMessage/LabelledMessage.module.scss.mjs +0 -5
- package/dist/esm/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss.mjs +0 -27
- package/dist/esm/src/Tag/Tag.module.scss.mjs +0 -28
- package/dist/esm/src/Text/Text.module.scss.mjs +0 -14
- package/dist/esm/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss.mjs +0 -11
- package/dist/esm/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss.mjs +0 -7
- package/dist/esm/src/Tooltip/OverlayArrow.module.scss.mjs +0 -5
- package/dist/esm/src/Tooltip/Tooltip.module.scss.mjs +0 -5
- package/dist/esm/src/VisuallyHidden/VisuallyHidden.module.scss.mjs +0 -4
- package/src/Content/Content.module.scss +0 -17
- package/src/Content/_variables.scss +0 -3
- package/src/Divider/Divider.module.scss +0 -39
- package/src/ErrorPage/ErrorPage.module.scss +0 -7
- package/src/Heading/Heading.module.scss +0 -115
- package/src/Label/Label.module.scss +0 -105
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +0 -138
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +0 -366
- package/src/Tag/Tag.module.scss +0 -215
- package/src/Text/Text.module.scss +0 -74
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -139
- package/src/Tooltip/OverlayArrow.module.scss +0 -45
- package/src/Tooltip/Tooltip.module.scss +0 -68
- /package/src/VisuallyHidden/{VisuallyHidden.module.scss → VisuallyHidden.module.css} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
/*
|
|
3
|
+
Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--dt-content-border-color: rgb(var(--color-gray-600-rgb), 0.1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wrapper {
|
|
11
|
+
width: 100%;
|
|
12
|
+
border: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
border-radius: var(--border-solid-border-radius);
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
This is here to protect against a global style in a consumer.
|
|
18
|
+
https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
|
|
19
|
+
*/
|
|
20
|
+
visibility: visible;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.content,
|
|
24
|
+
.menuSeparator {
|
|
25
|
+
border-top: 1px solid var(--dt-content-border-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.canvas {
|
|
29
|
+
border-top: 1px solid;
|
|
30
|
+
border-bottom: 1px solid;
|
|
31
|
+
border-color: var(--dt-content-border-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.reversed {
|
|
35
|
+
border-color: rgb(var(--color-white-rgb), 0.1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.menuSeparator {
|
|
39
|
+
margin: 5px 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/Divider/Divider.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type HTMLAttributes } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
-
import styles from './Divider.module.
|
|
4
|
+
import styles from './Divider.module.css'
|
|
5
5
|
|
|
6
6
|
export type DividerProps = {
|
|
7
7
|
variant: 'content' | 'canvas' | 'menuSeparator'
|
|
@@ -7,7 +7,7 @@ import { BrandMomentError } from '~components/Illustration'
|
|
|
7
7
|
import { Text } from '~components/Text'
|
|
8
8
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
9
9
|
import { useErrorMessages, type ErrorStatuses } from './hooks'
|
|
10
|
-
import styles from './ErrorPage.module.
|
|
10
|
+
import styles from './ErrorPage.module.css'
|
|
11
11
|
|
|
12
12
|
const getMailToHref = (code: ErrorStatuses): string => {
|
|
13
13
|
const supportEmail = 'support@cultureamp.com'
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@layer reset {
|
|
2
|
+
.heading {
|
|
3
|
+
margin: 0;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
.display-0 {
|
|
9
|
+
font-family: var(--typography-display-0-font-family);
|
|
10
|
+
font-weight: var(--typography-display-0-font-weight);
|
|
11
|
+
font-size: var(--typography-display-0-font-size);
|
|
12
|
+
line-height: var(--typography-display-0-line-height);
|
|
13
|
+
letter-spacing: var(--typography-display-0-letter-spacing);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.composable-header-title {
|
|
17
|
+
font-family: var(--typography-display-0-font-family); /* Tiempos */
|
|
18
|
+
font-weight: 500; /* Medium */
|
|
19
|
+
font-size: var(--typography-heading-1-font-size);
|
|
20
|
+
line-height: var(--typography-heading-1-line-height);
|
|
21
|
+
letter-spacing: var(--typography-heading-1-letter-spacing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.heading-1 {
|
|
25
|
+
font-family: var(--typography-heading-1-font-family);
|
|
26
|
+
font-weight: var(--typography-heading-1-font-weight);
|
|
27
|
+
font-size: var(--typography-heading-1-font-size);
|
|
28
|
+
line-height: var(--typography-heading-1-line-height);
|
|
29
|
+
letter-spacing: var(--typography-heading-1-letter-spacing);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.heading-2 {
|
|
33
|
+
font-family: var(--typography-heading-2-font-family);
|
|
34
|
+
font-weight: var(--typography-heading-2-font-weight);
|
|
35
|
+
font-size: var(--typography-heading-2-font-size);
|
|
36
|
+
line-height: var(--typography-heading-2-line-height);
|
|
37
|
+
letter-spacing: var(--typography-heading-2-letter-spacing);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.heading-3 {
|
|
41
|
+
font-family: var(--typography-heading-3-font-family);
|
|
42
|
+
font-weight: var(--typography-heading-3-font-weight);
|
|
43
|
+
font-size: var(--typography-heading-3-font-size);
|
|
44
|
+
line-height: var(--typography-heading-3-line-height);
|
|
45
|
+
letter-spacing: var(--typography-heading-3-letter-spacing);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.heading-4 {
|
|
49
|
+
font-family: var(--typography-heading-4-font-family);
|
|
50
|
+
font-weight: var(--typography-heading-4-font-weight);
|
|
51
|
+
font-size: var(--typography-heading-4-font-size);
|
|
52
|
+
line-height: var(--typography-heading-4-line-height);
|
|
53
|
+
letter-spacing: var(--typography-heading-4-letter-spacing);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.heading-5 {
|
|
57
|
+
font-family: var(--typography-heading-5-font-family);
|
|
58
|
+
font-weight: var(--typography-heading-5-font-weight);
|
|
59
|
+
font-size: var(--typography-heading-5-font-size);
|
|
60
|
+
line-height: var(--typography-heading-5-line-height);
|
|
61
|
+
letter-spacing: var(--typography-heading-5-letter-spacing);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.heading-6 {
|
|
65
|
+
font-family: var(--typography-heading-6-font-family);
|
|
66
|
+
font-weight: var(--typography-heading-6-font-weight);
|
|
67
|
+
font-size: var(--typography-heading-6-font-size);
|
|
68
|
+
line-height: var(--typography-heading-6-line-height);
|
|
69
|
+
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dark {
|
|
73
|
+
color: var(--color-purple-800);
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dark-reduced-opacity {
|
|
78
|
+
color: var(--color-purple-800);
|
|
79
|
+
opacity: 0.7;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.white {
|
|
83
|
+
color: var(--color-white);
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.white-reduced-opacity {
|
|
88
|
+
color: var(--color-white);
|
|
89
|
+
opacity: 0.8;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.positive {
|
|
93
|
+
&.small {
|
|
94
|
+
color: var(--color-green-600);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.large {
|
|
98
|
+
color: var(--color-green-500);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.negative {
|
|
103
|
+
&.small {
|
|
104
|
+
color: var(--color-red-600);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.large {
|
|
108
|
+
color: var(--color-red-500);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
package/src/Heading/Heading.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElement, type HTMLAttributes } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
-
import styles from './Heading.module.
|
|
4
|
+
import styles from './Heading.module.css'
|
|
5
5
|
|
|
6
6
|
const VARIANTS_24PX_OR_GREATER = ['display-0', 'heading-1', 'heading-2']
|
|
7
7
|
|
|
@@ -26,6 +26,12 @@ const createSpotIllustration =
|
|
|
26
26
|
/* prettier-ignore */ export const Positive = createSpotIllustration("moods-positive.svg")
|
|
27
27
|
/* prettier-ignore */ export const Assertive = createSpotIllustration("moods-assertive.svg")
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Template Library / PCD
|
|
31
|
+
*/
|
|
32
|
+
/* prettier-ignore */ export const PCDSurvey = createSpotIllustration("template-library-pcq-survey-full.svg")
|
|
33
|
+
/* prettier-ignore */ export const PCDPulseSurvey = createSpotIllustration("template-library-pcq-survey-pulse.svg")
|
|
34
|
+
|
|
29
35
|
/**
|
|
30
36
|
* Template Library / Engagement
|
|
31
37
|
*/
|
|
@@ -79,6 +79,8 @@ import {
|
|
|
79
79
|
NewYork,
|
|
80
80
|
Objective,
|
|
81
81
|
OneOnOne,
|
|
82
|
+
PCDPulseSurvey,
|
|
83
|
+
PCDSurvey,
|
|
82
84
|
PaperPen,
|
|
83
85
|
PartialImport,
|
|
84
86
|
PerformanceDiagnostics,
|
|
@@ -145,6 +147,17 @@ export default {
|
|
|
145
147
|
},
|
|
146
148
|
} satisfies Meta
|
|
147
149
|
|
|
150
|
+
const performanceCultureDiagnosticSpots = [
|
|
151
|
+
{
|
|
152
|
+
Component: PCDSurvey,
|
|
153
|
+
name: 'PCDSurvey',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
Component: PCDPulseSurvey,
|
|
157
|
+
name: 'PCDPulseSurvey',
|
|
158
|
+
},
|
|
159
|
+
]
|
|
160
|
+
|
|
148
161
|
const engagementSpots = [
|
|
149
162
|
{
|
|
150
163
|
Component: BenefitsSurvey,
|
|
@@ -706,6 +719,15 @@ const IllustrationExampleTile = ({
|
|
|
706
719
|
const StickerSheetTemplate: StickerSheetStory = {
|
|
707
720
|
render: () => (
|
|
708
721
|
<div className="grid gap-24">
|
|
722
|
+
<div>
|
|
723
|
+
<Heading variant="heading-3">Performance Culture Diagnostic</Heading>
|
|
724
|
+
<div className="flex flex-wrap ">
|
|
725
|
+
{performanceCultureDiagnosticSpots.map((props, i) => (
|
|
726
|
+
<IllustrationExampleTile key={`engagement-${i}`} {...props} />
|
|
727
|
+
))}
|
|
728
|
+
</div>
|
|
729
|
+
</div>
|
|
730
|
+
|
|
709
731
|
<div>
|
|
710
732
|
<Heading variant="heading-3">Engagement</Heading>
|
|
711
733
|
<div className="flex flex-wrap ">
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
:root {
|
|
3
|
+
--label-start-margin: var(--spacing-xs);
|
|
4
|
+
--dt-color-form-text-color: var(--color-purple-800);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.label {
|
|
8
|
+
--icon-vertical-align: text-bottom;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.label,
|
|
12
|
+
:global(.ideal-sans) .label {
|
|
13
|
+
/* override Murmur global styles :( */
|
|
14
|
+
opacity: inherit;
|
|
15
|
+
color: var(--dt-color-form-text-color);
|
|
16
|
+
visibility: visible;
|
|
17
|
+
width: 100%;
|
|
18
|
+
text-align: start;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.reversed {
|
|
22
|
+
color: var(--color-white);
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
color: var(--color-white);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.disabled {
|
|
34
|
+
opacity: 0.3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ///////////////////////////////////////////////////
|
|
38
|
+
//// LABEL TYPES
|
|
39
|
+
//////////////////////////////////////////////////// */
|
|
40
|
+
|
|
41
|
+
/* This is to override bootstrap styles. Remove when appropriate */
|
|
42
|
+
.text,
|
|
43
|
+
:global(.ideal-sans) .text {
|
|
44
|
+
font-family: var(--typography-heading-6-font-family);
|
|
45
|
+
font-size: var(--typography-heading-6-font-size);
|
|
46
|
+
line-height: var(--typography-heading-6-line-height);
|
|
47
|
+
letter-spacing: var(--typography-heading-6-letter-spacing);
|
|
48
|
+
font-weight: var(--typography-heading-6-font-weight);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.checkboxOrRadio,
|
|
52
|
+
.checkbox,
|
|
53
|
+
.radio,
|
|
54
|
+
:global(.ideal-sans) .checkboxOrRadio {
|
|
55
|
+
display: flex;
|
|
56
|
+
font-family: var(--typography-paragraph-body-font-family);
|
|
57
|
+
font-size: var(--typography-paragraph-body-font-size);
|
|
58
|
+
line-height: var(--typography-paragraph-body-line-height);
|
|
59
|
+
letter-spacing: var(--typography-paragraph-body-letter-spacing);
|
|
60
|
+
font-weight: var(--typography-paragraph-body-font-weight);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.toggle {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
align-items: center;
|
|
67
|
+
font-family: var(--typography-paragraph-body-font-family);
|
|
68
|
+
font-size: var(--typography-paragraph-body-font-size);
|
|
69
|
+
line-height: var(--typography-paragraph-body-line-height);
|
|
70
|
+
letter-spacing: var(--typography-paragraph-body-letter-spacing);
|
|
71
|
+
font-weight: var(--typography-paragraph-body-font-weight);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.checkbox,
|
|
75
|
+
.radio,
|
|
76
|
+
.toggle {
|
|
77
|
+
/* apply padding when label is inline with form control */
|
|
78
|
+
.prependedLabel {
|
|
79
|
+
order: -1; /* place label before the control */
|
|
80
|
+
margin-inline-end: var(--label-start-margin);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.appendedLabel {
|
|
84
|
+
margin-inline-start: var(--label-start-margin);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.prominent {
|
|
89
|
+
font-family: var(--typography-heading-4-font-family);
|
|
90
|
+
font-weight: var(--typography-heading-4-font-weight);
|
|
91
|
+
font-size: var(--typography-heading-4-font-size);
|
|
92
|
+
line-height: var(--typography-heading-4-line-height);
|
|
93
|
+
letter-spacing: var(--typography-heading-4-letter-spacing);
|
|
94
|
+
display: block;
|
|
95
|
+
margin-bottom: var(--spacing-xs);
|
|
96
|
+
}
|
|
97
|
+
}
|
package/src/Label/Label.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type LabelHTMLAttributes } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
-
import styles from './Label.module.
|
|
4
|
+
import styles from './Label.module.css'
|
|
5
5
|
|
|
6
6
|
type LabelType = 'text' | 'checkbox' | 'toggle' | 'radio'
|
|
7
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { type Meta } from '@storybook/react'
|
|
3
|
+
import { Link } from '~components/Link'
|
|
3
4
|
import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet'
|
|
4
5
|
import { Label, type LabelProps } from '../index'
|
|
5
6
|
import { BlockLabelTypes, InlineLabelTypes } from '../types'
|
|
@@ -35,12 +36,14 @@ const InlineControl = ({ labelText, ...props }: WrapperProps): JSX.Element => (
|
|
|
35
36
|
labelText={
|
|
36
37
|
<span data-sb-a11y-color-contrast-disable={props['data-sb-a11y-color-contrast-disable']}>
|
|
37
38
|
{labelText}{' '}
|
|
38
|
-
<
|
|
39
|
+
<Link
|
|
39
40
|
href="/"
|
|
41
|
+
isInline={true}
|
|
42
|
+
{...(props.reversed ? { variant: 'white' } : {})}
|
|
40
43
|
data-sb-a11y-color-contrast-disable={props['data-sb-a11y-color-contrast-disable']}
|
|
41
44
|
>
|
|
42
45
|
a
|
|
43
|
-
</
|
|
46
|
+
</Link>
|
|
44
47
|
</span>
|
|
45
48
|
}
|
|
46
49
|
>
|
|
@@ -55,12 +58,14 @@ const BlockControl = ({ labelText, ...props }: WrapperProps): JSX.Element => (
|
|
|
55
58
|
labelText={
|
|
56
59
|
<span data-sb-a11y-color-contrast-disable={props['data-sb-a11y-color-contrast-disable']}>
|
|
57
60
|
{labelText}{' '}
|
|
58
|
-
<
|
|
61
|
+
<Link
|
|
59
62
|
href="/"
|
|
63
|
+
isInline={true}
|
|
64
|
+
{...(props.reversed ? { variant: 'white' } : {})}
|
|
60
65
|
data-sb-a11y-color-contrast-disable={props['data-sb-a11y-color-contrast-disable']}
|
|
61
66
|
>
|
|
62
67
|
anchor
|
|
63
|
-
</
|
|
68
|
+
</Link>
|
|
64
69
|
</span>
|
|
65
70
|
}
|
|
66
71
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type HTMLAttributes } from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
-
import styles from './LabelledMessage.module.
|
|
4
|
+
import styles from './LabelledMessage.module.css'
|
|
5
5
|
|
|
6
6
|
export type LabelledMessageProps = {
|
|
7
7
|
label: string | React.ReactElement
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
GenericNotification,
|
|
7
7
|
type GenericNotificationVariant,
|
|
8
8
|
} from '../subcomponents/GenericNotification'
|
|
9
|
-
import styles from '../subcomponents/GenericNotification/GenericNotification.module.
|
|
9
|
+
import styles from '../subcomponents/GenericNotification/GenericNotification.module.css'
|
|
10
10
|
|
|
11
11
|
export type InlineNotificationBase = {
|
|
12
12
|
children?: React.ReactNode
|
package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { InlineNotification, type InlineNotificationProps } from '../InlineNotif
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Components/Notifications/InlineNotification',
|
|
9
9
|
parameters: {
|
|
10
|
-
chromatic: { disable: false },
|
|
10
|
+
chromatic: { disable: false, viewports: [767, 1079, 1200] },
|
|
11
11
|
controls: { disable: true },
|
|
12
12
|
a11y: {
|
|
13
13
|
// Fade-in animation has colour contrast issues.
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
|
-
@import '~@kaizen/design-tokens/sass/layout';
|
|
3
|
-
|
|
4
1
|
@layer kz-components {
|
|
5
2
|
.toastNotificationsList {
|
|
6
3
|
display: flex;
|
|
@@ -8,21 +5,22 @@
|
|
|
8
5
|
align-items: flex-end;
|
|
9
6
|
overflow: hidden;
|
|
10
7
|
padding-bottom: 0;
|
|
11
|
-
padding-top:
|
|
8
|
+
padding-top: 172px;
|
|
12
9
|
position: fixed;
|
|
13
|
-
right:
|
|
10
|
+
right: var(--spacing-md);
|
|
14
11
|
top: 0;
|
|
15
12
|
bottom: 0;
|
|
16
13
|
z-index: 1100;
|
|
17
14
|
max-width: 100%;
|
|
18
15
|
pointer-events: none;
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
/* Media queries can’t perform this calculation yet. Update when CSS supports it. */
|
|
18
|
+
@media (width <= 1079px) {
|
|
21
19
|
padding-top: 108px;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
@media (
|
|
25
|
-
left:
|
|
22
|
+
@media (width <= 767px) {
|
|
23
|
+
left: var(--spacing-md);
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
}
|
package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
2
|
import { useToastNotificationContext } from '../context/ToastNotificationContext'
|
|
3
3
|
import { ToastNotificationsMap } from './subcomponents/ToastNotificationsMap'
|
|
4
|
-
import styles from './ToastNotificationsList.module.
|
|
4
|
+
import styles from './ToastNotificationsList.module.css'
|
|
5
5
|
|
|
6
6
|
const toastNotificationListId = 'toast-notifications-list'
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Icon } from '~components/Icon'
|
|
3
|
-
import styles from '../GenericNotification/GenericNotification.module.
|
|
3
|
+
import styles from '../GenericNotification/GenericNotification.module.css'
|
|
4
4
|
|
|
5
5
|
type CancelButtonProps = {
|
|
6
6
|
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void
|