@kaizen/components 1.58.1 → 1.59.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/codemods/updateGuidanceBlockVariantProp/index.ts +19 -0
- package/dist/cjs/Avatar/Avatar.cjs +14 -12
- package/dist/esm/Avatar/Avatar.mjs +14 -12
- package/dist/styles.css +3 -3
- package/dist/types/Avatar/Avatar.d.ts +6 -1
- package/package.json +2 -2
- package/src/Avatar/Avatar.spec.tsx +63 -0
- package/src/Avatar/Avatar.tsx +15 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { transformComponentsInDir } from "../utils"
|
|
2
|
+
import { transformGuidanceBlockVariantProp } from "./transformGuidanceBlockVariantProp"
|
|
3
|
+
/** This is here as a script runner that updates GuidanceBlock variants to v2 variants */
|
|
4
|
+
const updateGuidanceBlockVariantProp = (): void => {
|
|
5
|
+
// eslint-disable-next-line no-console
|
|
6
|
+
console.log(" ~(-_- ~) Running GuidanceBlock transformer (~ -_-)~")
|
|
7
|
+
const targetDir = process.argv[2]
|
|
8
|
+
if (!targetDir) {
|
|
9
|
+
process.exit(1)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
transformComponentsInDir(
|
|
13
|
+
targetDir,
|
|
14
|
+
transformGuidanceBlockVariantProp,
|
|
15
|
+
"GuidanceBlock"
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
updateGuidanceBlockVariantProp()
|
|
@@ -28,12 +28,12 @@ var getMaxFontSizePixels = function (size) {
|
|
|
28
28
|
if (size === "xlarge" || size === "xxlarge") return 34;
|
|
29
29
|
return 22;
|
|
30
30
|
};
|
|
31
|
-
var fallbackIcon = function (
|
|
32
|
-
if (
|
|
31
|
+
var fallbackIcon = function (alt) {
|
|
32
|
+
if (alt) {
|
|
33
33
|
return React__default.default.createElement(UserIcon.UserIcon, {
|
|
34
34
|
inheritSize: true,
|
|
35
35
|
role: "img",
|
|
36
|
-
"aria-label":
|
|
36
|
+
"aria-label": alt
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
return React__default.default.createElement(UserIcon.UserIcon, {
|
|
@@ -41,7 +41,7 @@ var fallbackIcon = function (fullName) {
|
|
|
41
41
|
role: "presentation"
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
var renderInitials = function (fullName, size, disableInitials) {
|
|
44
|
+
var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
45
45
|
if (fullName === void 0) {
|
|
46
46
|
fullName = "";
|
|
47
47
|
}
|
|
@@ -53,9 +53,9 @@ var renderInitials = function (fullName, size, disableInitials) {
|
|
|
53
53
|
var renderFallback = disableInitials || initials === "";
|
|
54
54
|
return renderFallback ? React__default.default.createElement("span", {
|
|
55
55
|
className: Avatar_module.fallbackIcon
|
|
56
|
-
}, fallbackIcon(
|
|
56
|
+
}, fallbackIcon(alt)) : React__default.default.createElement("abbr", {
|
|
57
57
|
className: classnames__default.default(Avatar_module.initials, isLongName && Avatar_module.longName),
|
|
58
|
-
title:
|
|
58
|
+
title: alt
|
|
59
59
|
}, isLongName ?
|
|
60
60
|
// Only called if 3 or more initials, fits text width for long names
|
|
61
61
|
React__default.default.createElement(reactTextfit.Textfit, {
|
|
@@ -78,11 +78,13 @@ var Avatar = function (_a) {
|
|
|
78
78
|
isCompany = _d === void 0 ? false : _d,
|
|
79
79
|
_e = _a.isCurrentUser,
|
|
80
80
|
isCurrentUser = _e === void 0 ? true : _e,
|
|
81
|
+
_f = _a.alt,
|
|
82
|
+
alt = _f === void 0 ? fullName || "" : _f,
|
|
81
83
|
classNameOverride = _a.classNameOverride,
|
|
82
|
-
restProps = tslib.__rest(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "classNameOverride"]);
|
|
83
|
-
var
|
|
84
|
-
avatarState =
|
|
85
|
-
setAvatarState =
|
|
84
|
+
restProps = tslib.__rest(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "alt", "classNameOverride"]);
|
|
85
|
+
var _g = React.useState(avatarSrc ? "loading" : "none"),
|
|
86
|
+
avatarState = _g[0],
|
|
87
|
+
setAvatarState = _g[1];
|
|
86
88
|
var image = React.useRef(null);
|
|
87
89
|
var renderInitialAvatar = !isCompany && (avatarState === "none" || avatarState === "error");
|
|
88
90
|
React.useEffect(function () {
|
|
@@ -110,7 +112,7 @@ var Avatar = function (_a) {
|
|
|
110
112
|
src: avatarSrc,
|
|
111
113
|
onError: onImageFailure,
|
|
112
114
|
onLoad: onImageSuccess,
|
|
113
|
-
alt:
|
|
114
|
-
}), renderInitialAvatar && renderInitials(fullName, size, disableInitials));
|
|
115
|
+
alt: alt
|
|
116
|
+
}), renderInitialAvatar && renderInitials(fullName, alt, size, disableInitials));
|
|
115
117
|
};
|
|
116
118
|
exports.Avatar = Avatar;
|
|
@@ -19,12 +19,12 @@ var getMaxFontSizePixels = function (size) {
|
|
|
19
19
|
if (size === "xlarge" || size === "xxlarge") return 34;
|
|
20
20
|
return 22;
|
|
21
21
|
};
|
|
22
|
-
var fallbackIcon = function (
|
|
23
|
-
if (
|
|
22
|
+
var fallbackIcon = function (alt) {
|
|
23
|
+
if (alt) {
|
|
24
24
|
return /*#__PURE__*/React.createElement(UserIcon, {
|
|
25
25
|
inheritSize: true,
|
|
26
26
|
role: "img",
|
|
27
|
-
"aria-label":
|
|
27
|
+
"aria-label": alt
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
return /*#__PURE__*/React.createElement(UserIcon, {
|
|
@@ -32,7 +32,7 @@ var fallbackIcon = function (fullName) {
|
|
|
32
32
|
role: "presentation"
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
var renderInitials = function (fullName, size, disableInitials) {
|
|
35
|
+
var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
36
36
|
if (fullName === void 0) {
|
|
37
37
|
fullName = "";
|
|
38
38
|
}
|
|
@@ -44,9 +44,9 @@ var renderInitials = function (fullName, size, disableInitials) {
|
|
|
44
44
|
var renderFallback = disableInitials || initials === "";
|
|
45
45
|
return renderFallback ? ( /*#__PURE__*/React.createElement("span", {
|
|
46
46
|
className: styles.fallbackIcon
|
|
47
|
-
}, fallbackIcon(
|
|
47
|
+
}, fallbackIcon(alt))) : ( /*#__PURE__*/React.createElement("abbr", {
|
|
48
48
|
className: classnames(styles.initials, isLongName && styles.longName),
|
|
49
|
-
title:
|
|
49
|
+
title: alt
|
|
50
50
|
}, isLongName ? (
|
|
51
51
|
/*#__PURE__*/
|
|
52
52
|
// Only called if 3 or more initials, fits text width for long names
|
|
@@ -70,11 +70,13 @@ var Avatar = function (_a) {
|
|
|
70
70
|
isCompany = _d === void 0 ? false : _d,
|
|
71
71
|
_e = _a.isCurrentUser,
|
|
72
72
|
isCurrentUser = _e === void 0 ? true : _e,
|
|
73
|
+
_f = _a.alt,
|
|
74
|
+
alt = _f === void 0 ? fullName || "" : _f,
|
|
73
75
|
classNameOverride = _a.classNameOverride,
|
|
74
|
-
restProps = __rest(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "classNameOverride"]);
|
|
75
|
-
var
|
|
76
|
-
avatarState =
|
|
77
|
-
setAvatarState =
|
|
76
|
+
restProps = __rest(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "alt", "classNameOverride"]);
|
|
77
|
+
var _g = useState(avatarSrc ? "loading" : "none"),
|
|
78
|
+
avatarState = _g[0],
|
|
79
|
+
setAvatarState = _g[1];
|
|
78
80
|
var image = useRef(null);
|
|
79
81
|
var renderInitialAvatar = !isCompany && (avatarState === "none" || avatarState === "error");
|
|
80
82
|
useEffect(function () {
|
|
@@ -102,7 +104,7 @@ var Avatar = function (_a) {
|
|
|
102
104
|
src: avatarSrc,
|
|
103
105
|
onError: onImageFailure,
|
|
104
106
|
onLoad: onImageSuccess,
|
|
105
|
-
alt:
|
|
106
|
-
})), renderInitialAvatar && renderInitials(fullName, size, disableInitials));
|
|
107
|
+
alt: alt
|
|
108
|
+
})), renderInitialAvatar && renderInitials(fullName, alt, size, disableInitials));
|
|
107
109
|
};
|
|
108
110
|
export { Avatar };
|
package/dist/styles.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@layer tokens, normalize, reset;@layer tokens{:root{--theme-key:heart;--animation-easing-function-ease-in-out:cubic-bezier(0.455,0.03,0.515,0.955);--animation-easing-function-ease-in:cubic-bezier(0.55,0.085,0.68,0.53);--animation-easing-function-ease-out:cubic-bezier(0.25,0.46,0.45,0.94);--animation-easing-function-linear:linear;--animation-easing-function-bounce-in:cubic-bezier(0.485,0.155,0.24,1.245);--animation-easing-function-bounce-out:cubic-bezier(0.485,0.155,0.515,0.845);--animation-easing-function-bounce-in-out:cubic-bezier(0.76,-0.245,0.24,1.245);--animation-duration-instant:0ms;--animation-duration-immediate:100ms;--animation-duration-rapid:200ms;--animation-duration-fast:300ms;--animation-duration-slow:400ms;--animation-duration-deliberate:700ms;--border-solid-border-width:2px;--border-solid-border-radius:7px;--border-solid-border-style:solid;--border-solid-border-color:#e1e2ea;--border-solid-border-color-rgb:225,226,234;--border-dashed-border-width:2px;--border-dashed-border-radius:7px;--border-dashed-border-style:dashed;--border-borderless-border-width:2px;--border-borderless-border-radius:7px;--border-borderless-border-style:solid;--border-borderless-border-color:transparent;--border-borderless-border-color-rgb:0,0,0;--border-focus-ring-border-width:2px;--border-focus-ring-border-radius:10px;--border-focus-ring-border-style:solid;--border-width-1:1px;--color-purple-100:#f4edf8;--color-purple-100-rgb:244,237,248;--color-purple-200:#dfc9ea;--color-purple-200-rgb:223,201,234;--color-purple-300:#c9a5dd;--color-purple-300-rgb:201,165,221;--color-purple-400:#ae67b1;--color-purple-400-rgb:174,103,177;--color-purple-500:#844587;--color-purple-500-rgb:132,69,135;--color-purple-600:#5f3361;--color-purple-600-rgb:95,51,97;--color-purple-700:#4a234d;--color-purple-700-rgb:74,35,77;--color-purple-800:#2f2438;--color-purple-800-rgb:47,36,56;--color-blue-100:#e6f6ff;--color-blue-100-rgb:230,246,255;--color-blue-200:#bde2f5;--color-blue-200-rgb:189,226,245;--color-blue-300:#73c0e8;--color-blue-300-rgb:115,192,232;--color-blue-400:#008bd6;--color-blue-400-rgb:0,139,214;--color-blue-500:#0168b3;--color-blue-500-rgb:1,104,179;--color-blue-600:#004970;--color-blue-600-rgb:0,73,112;--color-blue-700:#003157;--color-blue-700-rgb:0,49,87;--color-green-100:#e8f8f4;--color-green-100-rgb:232,248,244;--color-green-200:#c4ede2;--color-green-200-rgb:196,237,226;--color-green-300:#8fdbc7;--color-green-300-rgb:143,219,199;--color-green-400:#5dcaad;--color-green-400-rgb:93,202,173;--color-green-500:#3f9a86;--color-green-500-rgb:63,154,134;--color-green-600:#2c7d67;--color-green-600-rgb:44,125,103;--color-green-700:#22594a;--color-green-700-rgb:34,89,74;--color-yellow-100:#fff9e4;--color-yellow-100-rgb:255,249,228;--color-yellow-200:#ffeeb3;--color-yellow-200-rgb:255,238,179;--color-yellow-300:#ffe36e;--color-yellow-300-rgb:255,227,110;--color-yellow-400:#ffca4d;--color-yellow-400-rgb:255,202,77;--color-yellow-500:#ffb600;--color-yellow-500-rgb:255,182,0;--color-yellow-600:#c68600;--color-yellow-600-rgb:198,134,0;--color-yellow-700:#876400;--color-yellow-700-rgb:135,100,0;--color-red-100:#fdeaee;--color-red-100-rgb:253,234,238;--color-red-200:#f9c2cb;--color-red-200-rgb:249,194,203;--color-red-300:#f597a8;--color-red-300-rgb:245,151,168;--color-red-400:#e0707d;--color-red-400-rgb:224,112,125;--color-red-500:#c93b55;--color-red-500-rgb:201,59,85;--color-red-600:#a82433;--color-red-600-rgb:168,36,51;--color-red-700:#6c1e20;--color-red-700-rgb:108,30,32;--color-orange-100:#fff0e8;--color-orange-100-rgb:255,240,232;--color-orange-200:#ffd1b9;--color-orange-200-rgb:255,209,185;--color-orange-300:#ffb08a;--color-orange-300-rgb:255,176,138;--color-orange-400:#ff9461;--color-orange-400-rgb:255,148,97;--color-orange-500:#e96c2f;--color-orange-500-rgb:233,108,47;--color-orange-600:#b74302;--color-orange-600-rgb:183,67,2;--color-orange-700:#903c00;--color-orange-700-rgb:144,60,0;--color-gray-100:#f9f9f9;--color-gray-100-rgb:249,249,249;--color-gray-200:#f4f4f5;--color-gray-200-rgb:244,244,245;--color-gray-300:#eaeaec;--color-gray-300-rgb:234,234,236;--color-gray-400:#cdcdd0;--color-gray-400-rgb:205,205,208;--color-gray-500:#878792;--color-gray-500-rgb:135,135,146;--color-gray-600:#524e56;--color-gray-600-rgb:82,78,86;--color-white:#fff;--color-white-rgb:255,255,255;--data-viz-favorable:#7dd5bd;--data-viz-favorable-rgb:125,213,189;--data-viz-unfavorable:#e68d97;--data-viz-unfavorable-rgb:230,141,151;--layout-content-max-width:1392px;--layout-content-max-width-with-sidebar:1080px;--layout-content-side-margin:72px;--layout-mobile-actions-drawer-height:60px;--layout-navigation-bar-height:72px;--layout-breakpoints-medium:768px;--layout-breakpoints-large:1080px;--shadow-small-box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06);--shadow-large-box-shadow:0 3px 9px 0 rgba(0,0,0,.1),0 8px 40px 0 rgba(0,0,0,.08);--spacing-0:0;--spacing-1:.0625rem;--spacing-2:.125rem;--spacing-4:.25rem;--spacing-6:.375rem;--spacing-8:.5rem;--spacing-12:.75rem;--spacing-16:1rem;--spacing-24:1.5rem;--spacing-32:2rem;--spacing-40:2.5rem;--spacing-48:3rem;--spacing-56:3.5rem;--spacing-64:4rem;--spacing-72:4.5rem;--spacing-80:5rem;--spacing-96:6rem;--spacing-112:7rem;--spacing-128:8rem;--spacing-160:10rem;--spacing-200:12.5rem;--spacing-240:15rem;--spacing-280:17.5rem;--spacing-320:20rem;--spacing-xs:0.375rem;--spacing-sm:0.75rem;--spacing-md:1.5rem;--spacing-lg:2.25rem;--spacing-xl:3rem;--spacing-xxl:3.75rem;--spacing-xxxl:4.5rem;--spacing-xxxxl:5.25rem;--spacing-xxxxxl:6rem;--typography-data-large-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-font-weight:700;--typography-data-large-font-size:5.25rem;--typography-data-large-line-height:5.25rem;--typography-data-large-letter-spacing:normal;--typography-data-large-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-units-font-weight:700;--typography-data-large-units-font-size:2.625rem;--typography-data-large-units-line-height:5.25rem;--typography-data-large-units-letter-spacing:normal;--typography-data-medium-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-font-weight:700;--typography-data-medium-font-size:3rem;--typography-data-medium-line-height:5rem;--typography-data-medium-letter-spacing:normal;--typography-data-medium-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-units-font-weight:700;--typography-data-medium-units-font-size:1.5rem;--typography-data-medium-units-line-height:5rem;--typography-data-medium-units-letter-spacing:normal;--typography-data-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-font-weight:700;--typography-data-small-font-size:1.5rem;--typography-data-small-line-height:1.5rem;--typography-data-small-letter-spacing:normal;--typography-data-small-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-units-font-weight:700;--typography-data-small-units-font-size:1.125rem;--typography-data-small-units-line-height:1.5rem;--typography-data-small-units-letter-spacing:normal;--typography-display-0-font-family:"Tiempos Headline",Georgia,serif;--typography-display-0-font-weight:800;--typography-display-0-font-size:4.5rem;--typography-display-0-line-height:5.25rem;--typography-display-0-letter-spacing:0em;--typography-heading-1-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-1-font-weight:700;--typography-heading-1-font-size:2.125rem;--typography-heading-1-line-height:2.625rem;--typography-heading-1-letter-spacing:normal;--typography-heading-2-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-2-font-weight:700;--typography-heading-2-font-size:1.75rem;--typography-heading-2-line-height:2.25rem;--typography-heading-2-letter-spacing:normal;--typography-heading-3-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-3-font-weight:700;--typography-heading-3-font-size:1.375rem;--typography-heading-3-line-height:1.875rem;--typography-heading-3-letter-spacing:normal;--typography-heading-4-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-4-font-weight:600;--typography-heading-4-font-size:1.125rem;--typography-heading-4-line-height:1.5rem;--typography-heading-4-letter-spacing:normal;--typography-heading-5-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-5-font-weight:600;--typography-heading-5-font-size:1rem;--typography-heading-5-line-height:1.5rem;--typography-heading-5-letter-spacing:normal;--typography-heading-6-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-6-font-weight:700;--typography-heading-6-font-size:0.875rem;--typography-heading-6-line-height:1.5rem;--typography-heading-6-letter-spacing:normal;--typography-paragraph-intro-lede-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-intro-lede-font-weight:400;--typography-paragraph-intro-lede-font-size:1.25rem;--typography-paragraph-intro-lede-line-height:1.875rem;--typography-paragraph-intro-lede-letter-spacing:0;--typography-paragraph-intro-lede-max-width:975px;--typography-paragraph-body-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-body-font-weight:400;--typography-paragraph-body-font-size:1rem;--typography-paragraph-body-line-height:1.5rem;--typography-paragraph-body-letter-spacing:normal;--typography-paragraph-body-max-width:780px;--typography-paragraph-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-small-font-weight:400;--typography-paragraph-small-font-size:0.875rem;--typography-paragraph-small-line-height:1.125rem;--typography-paragraph-small-letter-spacing:normal;--typography-paragraph-small-max-width:680px;--typography-paragraph-extra-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-extra-small-font-weight:400;--typography-paragraph-extra-small-font-size:0.75rem;--typography-paragraph-extra-small-line-height:1.125rem;--typography-paragraph-extra-small-letter-spacing:normal;--typography-paragraph-extra-small-max-width:600px;--typography-paragraph-bold-font-weight:600;--typography-button-primary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-primary-font-weight:700;--typography-button-primary-font-size:1.125rem;--typography-button-primary-line-height:1.5rem;--typography-button-primary-letter-spacing:normal;--typography-button-secondary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-secondary-font-weight:500;--typography-button-secondary-font-size:1rem;--typography-button-secondary-line-height:1.5rem;--typography-button-secondary-letter-spacing:normal}}@layer normalize{html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}}@layer reset{@font-face{font-family:Tiempos Headline;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff)}@font-face{font-family:Tiempos Headline;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff)}@font-face{font-family:Greycliff CF;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-light.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-regular.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-medium.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-demi-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-extra-bold.woff) format("woff")}@font-face{font-family:Inter;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff)}@font-face{font-family:Inter;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff)}@font-face{font-family:Inter;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff)}@font-face{font-family:Inter;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff)}@font-face{font-family:Inter;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff)}@font-face{font-family:Inter;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff)}@font-face{font-family:IBM Plex Mono;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff)}}@layer reset{*,:after,:before{border-color:var(--border-solid-border-color,"currentColor");border-style:solid;border-width:0}}
|
|
2
|
-
.OverlayArrow-module_overlayArrow__hoDyK{display:flex;padding:8px}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=bottom],.OverlayArrow-module_overlayArrow__hoDyK[data-placement=top]{padding:0 8px}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=left],.OverlayArrow-module_overlayArrow__hoDyK[data-placement=right]{padding:8px 0}.OverlayArrow-module_overlayArrow__hoDyK path{fill:var(--color-purple-800,#2f2438);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06))}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=right] svg{transform:rotate(90deg)}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=bottom] svg{transform:rotate(180deg)}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=left] svg{transform:rotate(270deg)}.OverlayArrow-module_overlayArrow__hoDyK.OverlayArrow-module_reversed__-WGcR path{fill:var(--color-white,#fff)}
|
|
1
|
+
@layer tokens, normalize, reset;@layer tokens{:root{--theme-key:heart;--animation-easing-function-ease-in-out:cubic-bezier(0.455,0.03,0.515,0.955);--animation-easing-function-ease-in:cubic-bezier(0.55,0.085,0.68,0.53);--animation-easing-function-ease-out:cubic-bezier(0.25,0.46,0.45,0.94);--animation-easing-function-linear:linear;--animation-easing-function-bounce-in:cubic-bezier(0.485,0.155,0.24,1.245);--animation-easing-function-bounce-out:cubic-bezier(0.485,0.155,0.515,0.845);--animation-easing-function-bounce-in-out:cubic-bezier(0.76,-0.245,0.24,1.245);--animation-duration-instant:0ms;--animation-duration-immediate:100ms;--animation-duration-rapid:200ms;--animation-duration-fast:300ms;--animation-duration-slow:400ms;--animation-duration-deliberate:700ms;--border-solid-border-width:2px;--border-solid-border-radius:7px;--border-solid-border-style:solid;--border-solid-border-color:#e1e2ea;--border-solid-border-color-rgb:225,226,234;--border-dashed-border-width:2px;--border-dashed-border-radius:7px;--border-dashed-border-style:dashed;--border-borderless-border-width:2px;--border-borderless-border-radius:7px;--border-borderless-border-style:solid;--border-borderless-border-color:transparent;--border-borderless-border-color-rgb:0,0,0;--border-focus-ring-border-width:2px;--border-focus-ring-border-radius:10px;--border-focus-ring-border-style:solid;--border-width-1:1px;--color-purple-100:#f4edf8;--color-purple-100-rgb:244,237,248;--color-purple-200:#dfc9ea;--color-purple-200-rgb:223,201,234;--color-purple-300:#c9a5dd;--color-purple-300-rgb:201,165,221;--color-purple-400:#ae67b1;--color-purple-400-rgb:174,103,177;--color-purple-500:#844587;--color-purple-500-rgb:132,69,135;--color-purple-600:#5f3361;--color-purple-600-rgb:95,51,97;--color-purple-700:#4a234d;--color-purple-700-rgb:74,35,77;--color-purple-800:#2f2438;--color-purple-800-rgb:47,36,56;--color-blue-100:#e6f6ff;--color-blue-100-rgb:230,246,255;--color-blue-200:#bde2f5;--color-blue-200-rgb:189,226,245;--color-blue-300:#73c0e8;--color-blue-300-rgb:115,192,232;--color-blue-400:#008bd6;--color-blue-400-rgb:0,139,214;--color-blue-500:#0168b3;--color-blue-500-rgb:1,104,179;--color-blue-600:#004970;--color-blue-600-rgb:0,73,112;--color-blue-700:#003157;--color-blue-700-rgb:0,49,87;--color-green-100:#e8f8f4;--color-green-100-rgb:232,248,244;--color-green-200:#c4ede2;--color-green-200-rgb:196,237,226;--color-green-300:#8fdbc7;--color-green-300-rgb:143,219,199;--color-green-400:#5dcaad;--color-green-400-rgb:93,202,173;--color-green-500:#3f9a86;--color-green-500-rgb:63,154,134;--color-green-600:#2c7d67;--color-green-600-rgb:44,125,103;--color-green-700:#22594a;--color-green-700-rgb:34,89,74;--color-yellow-100:#fff9e4;--color-yellow-100-rgb:255,249,228;--color-yellow-200:#ffeeb3;--color-yellow-200-rgb:255,238,179;--color-yellow-300:#ffe36e;--color-yellow-300-rgb:255,227,110;--color-yellow-400:#ffca4d;--color-yellow-400-rgb:255,202,77;--color-yellow-500:#ffb600;--color-yellow-500-rgb:255,182,0;--color-yellow-600:#c68600;--color-yellow-600-rgb:198,134,0;--color-yellow-700:#876400;--color-yellow-700-rgb:135,100,0;--color-red-100:#fdeaee;--color-red-100-rgb:253,234,238;--color-red-200:#f9c2cb;--color-red-200-rgb:249,194,203;--color-red-300:#f597a8;--color-red-300-rgb:245,151,168;--color-red-400:#e0707d;--color-red-400-rgb:224,112,125;--color-red-500:#c93b55;--color-red-500-rgb:201,59,85;--color-red-600:#a82433;--color-red-600-rgb:168,36,51;--color-red-700:#6c1e20;--color-red-700-rgb:108,30,32;--color-orange-100:#fff0e8;--color-orange-100-rgb:255,240,232;--color-orange-200:#ffd1b9;--color-orange-200-rgb:255,209,185;--color-orange-300:#ffb08a;--color-orange-300-rgb:255,176,138;--color-orange-400:#ff9461;--color-orange-400-rgb:255,148,97;--color-orange-500:#e96c2f;--color-orange-500-rgb:233,108,47;--color-orange-600:#b74302;--color-orange-600-rgb:183,67,2;--color-orange-700:#903c00;--color-orange-700-rgb:144,60,0;--color-gray-100:#f9f9f9;--color-gray-100-rgb:249,249,249;--color-gray-200:#f4f4f5;--color-gray-200-rgb:244,244,245;--color-gray-300:#eaeaec;--color-gray-300-rgb:234,234,236;--color-gray-400:#cdcdd0;--color-gray-400-rgb:205,205,208;--color-gray-500:#878792;--color-gray-500-rgb:135,135,146;--color-gray-600:#524e56;--color-gray-600-rgb:82,78,86;--color-white:#fff;--color-white-rgb:255,255,255;--color-black:#000;--color-black-rgb:0,0,0;--data-viz-favorable:#7dd5bd;--data-viz-favorable-rgb:125,213,189;--data-viz-unfavorable:#e68d97;--data-viz-unfavorable-rgb:230,141,151;--layout-content-max-width:1392px;--layout-content-max-width-with-sidebar:1080px;--layout-content-side-margin:72px;--layout-mobile-actions-drawer-height:60px;--layout-navigation-bar-height:72px;--layout-breakpoints-medium:768px;--layout-breakpoints-large:1080px;--shadow-small-box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06);--shadow-large-box-shadow:0 3px 9px 0 rgba(0,0,0,.1),0 8px 40px 0 rgba(0,0,0,.08);--spacing-0:0;--spacing-1:.0625rem;--spacing-2:.125rem;--spacing-4:.25rem;--spacing-6:.375rem;--spacing-8:.5rem;--spacing-12:.75rem;--spacing-16:1rem;--spacing-20:1.25rem;--spacing-24:1.5rem;--spacing-32:2rem;--spacing-40:2.5rem;--spacing-48:3rem;--spacing-56:3.5rem;--spacing-64:4rem;--spacing-72:4.5rem;--spacing-80:5rem;--spacing-96:6rem;--spacing-112:7rem;--spacing-128:8rem;--spacing-160:10rem;--spacing-200:12.5rem;--spacing-240:15rem;--spacing-280:17.5rem;--spacing-320:20rem;--spacing-xs:0.375rem;--spacing-sm:0.75rem;--spacing-md:1.5rem;--spacing-lg:2.25rem;--spacing-xl:3rem;--spacing-xxl:3.75rem;--spacing-xxxl:4.5rem;--spacing-xxxxl:5.25rem;--spacing-xxxxxl:6rem;--typography-data-large-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-font-weight:700;--typography-data-large-font-size:5.25rem;--typography-data-large-line-height:5.25rem;--typography-data-large-letter-spacing:normal;--typography-data-large-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-units-font-weight:700;--typography-data-large-units-font-size:2.625rem;--typography-data-large-units-line-height:5.25rem;--typography-data-large-units-letter-spacing:normal;--typography-data-medium-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-font-weight:700;--typography-data-medium-font-size:3rem;--typography-data-medium-line-height:5rem;--typography-data-medium-letter-spacing:normal;--typography-data-medium-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-units-font-weight:700;--typography-data-medium-units-font-size:1.5rem;--typography-data-medium-units-line-height:5rem;--typography-data-medium-units-letter-spacing:normal;--typography-data-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-font-weight:700;--typography-data-small-font-size:1.5rem;--typography-data-small-line-height:1.5rem;--typography-data-small-letter-spacing:normal;--typography-data-small-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-units-font-weight:700;--typography-data-small-units-font-size:1.125rem;--typography-data-small-units-line-height:1.5rem;--typography-data-small-units-letter-spacing:normal;--typography-display-0-font-family:"Tiempos Headline",Georgia,serif;--typography-display-0-font-weight:800;--typography-display-0-font-size:4.5rem;--typography-display-0-line-height:5.25rem;--typography-display-0-letter-spacing:0em;--typography-heading-1-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-1-font-weight:700;--typography-heading-1-font-size:2.125rem;--typography-heading-1-line-height:2.625rem;--typography-heading-1-letter-spacing:normal;--typography-heading-2-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-2-font-weight:700;--typography-heading-2-font-size:1.75rem;--typography-heading-2-line-height:2.25rem;--typography-heading-2-letter-spacing:normal;--typography-heading-3-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-3-font-weight:700;--typography-heading-3-font-size:1.375rem;--typography-heading-3-line-height:1.875rem;--typography-heading-3-letter-spacing:normal;--typography-heading-4-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-4-font-weight:600;--typography-heading-4-font-size:1.125rem;--typography-heading-4-line-height:1.5rem;--typography-heading-4-letter-spacing:normal;--typography-heading-5-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-5-font-weight:600;--typography-heading-5-font-size:1rem;--typography-heading-5-line-height:1.5rem;--typography-heading-5-letter-spacing:normal;--typography-heading-6-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-6-font-weight:700;--typography-heading-6-font-size:0.875rem;--typography-heading-6-line-height:1.5rem;--typography-heading-6-letter-spacing:normal;--typography-paragraph-intro-lede-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-intro-lede-font-weight:400;--typography-paragraph-intro-lede-font-size:1.25rem;--typography-paragraph-intro-lede-line-height:1.875rem;--typography-paragraph-intro-lede-letter-spacing:0;--typography-paragraph-intro-lede-max-width:975px;--typography-paragraph-body-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-body-font-weight:400;--typography-paragraph-body-font-size:1rem;--typography-paragraph-body-line-height:1.5rem;--typography-paragraph-body-letter-spacing:normal;--typography-paragraph-body-max-width:780px;--typography-paragraph-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-small-font-weight:400;--typography-paragraph-small-font-size:0.875rem;--typography-paragraph-small-line-height:1.125rem;--typography-paragraph-small-letter-spacing:normal;--typography-paragraph-small-max-width:680px;--typography-paragraph-extra-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-extra-small-font-weight:400;--typography-paragraph-extra-small-font-size:0.75rem;--typography-paragraph-extra-small-line-height:1.125rem;--typography-paragraph-extra-small-letter-spacing:normal;--typography-paragraph-extra-small-max-width:600px;--typography-paragraph-bold-font-weight:600;--typography-button-primary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-primary-font-weight:700;--typography-button-primary-font-size:1.125rem;--typography-button-primary-line-height:1.5rem;--typography-button-primary-letter-spacing:normal;--typography-button-secondary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-secondary-font-weight:500;--typography-button-secondary-font-size:1rem;--typography-button-secondary-line-height:1.5rem;--typography-button-secondary-letter-spacing:normal}}@layer normalize{html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}}@layer reset{@font-face{font-family:Tiempos Headline;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff)}@font-face{font-family:Tiempos Headline;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff)}@font-face{font-family:Greycliff CF;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-light.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-regular.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-medium.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-demi-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-extra-bold.woff) format("woff")}@font-face{font-family:Inter;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff)}@font-face{font-family:Inter;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff)}@font-face{font-family:Inter;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff)}@font-face{font-family:Inter;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff)}@font-face{font-family:Inter;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff)}@font-face{font-family:Inter;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff)}@font-face{font-family:IBM Plex Mono;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff)}}@layer reset{*,:after,:before{border-color:var(--border-solid-border-color,"currentColor");border-style:solid;border-width:0}}
|
|
3
2
|
.Tooltip-module_tooltip__efL1m{text-wrap:pretty;background-color:var(--color-purple-800,#2f2438);border-radius:var(--border-solid-border-radius,7px);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06));color:var(--color-white,#fff);font-family:var(--typography-paragraph-extra-small-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-extra-small-font-size,.75rem);font-weight:var(--typography-paragraph-extra-small-font-weight,400);letter-spacing:var(--typography-paragraph-extra-small-letter-spacing,normal);line-height:var(--typography-paragraph-extra-small-line-height,1.125rem);max-width:200px;padding:var(--spacing-8,.5rem) var(--spacing-12,.75rem);text-align:center;transform:translateZ(0)}.Tooltip-module_tooltip__efL1m.Tooltip-module_reversed__NnCbZ{background-color:var(--color-white,#fff);color:var(--color-purple-800,#2f2438)}.Tooltip-module_tooltip__efL1m[data-placement=top]{--origin:translateY(4px)}.Tooltip-module_tooltip__efL1m[data-placement=bottom]{--origin:translateY(-4px)}.Tooltip-module_tooltip__efL1m[data-placement=right]{--origin:translateX(-4px)}.Tooltip-module_tooltip__efL1m[data-placement=left]{--origin:translateX(4px)}.Tooltip-module_tooltip__efL1m[data-entering]{animation:Tooltip-module_slide__lFdGA var(--animation-duration-fast,.3s)}.Tooltip-module_tooltip__efL1m[data-exiting]{animation:Tooltip-module_slide__lFdGA var(--animation-duration-fast,.3s) reverse var(--animation-easing-function-ease-in,cubic-bezier(.55,.085,.68,.53))}@keyframes Tooltip-module_slide__lFdGA{0%{opacity:0;transform:var(--origin)}to{opacity:1;transform:translateY(0)}}
|
|
3
|
+
.OverlayArrow-module_overlayArrow__hoDyK{display:flex;padding:8px}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=bottom],.OverlayArrow-module_overlayArrow__hoDyK[data-placement=top]{padding:0 8px}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=left],.OverlayArrow-module_overlayArrow__hoDyK[data-placement=right]{padding:8px 0}.OverlayArrow-module_overlayArrow__hoDyK path{fill:var(--color-purple-800,#2f2438);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06))}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=right] svg{transform:rotate(90deg)}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=bottom] svg{transform:rotate(180deg)}.OverlayArrow-module_overlayArrow__hoDyK[data-placement=left] svg{transform:rotate(270deg)}.OverlayArrow-module_overlayArrow__hoDyK.OverlayArrow-module_reversed__-WGcR path{fill:var(--color-white,#fff)}
|
|
4
4
|
.Menu-module_menu__iHYqh{background-color:var(--color-white);border-radius:var(--border-solid-border-radius);box-shadow:var(--shadow-large-box-shadow);color:var(--color-purple-800);max-height:22rem;outline:none;overflow:auto;padding-block:var(--spacing-6);width:248px}.Menu-module_menu__iHYqh .react-aria-Header{font-family:var(--typography-heading-6-font-family);font-size:var(--typography-heading-6-font-size);font-weight:var(--typography-heading-6-font-weight);letter-spacing:var(--typography-heading-6-letter-spacing);line-height:var(--typography-heading-6-line-height);margin-inline:var(--spacing-6);padding:var(--spacing-6) 10px}.Menu-module_menu__iHYqh section:not(:last-of-type):after{background-color:var(--border-solid-border-color);content:"";display:block;height:1px;margin-block:var(--spacing-6);width:100%}
|
|
5
|
-
.GuidanceBlock-module_rightMargin__gIzig{margin-right:var(--spacing-8,.5rem)}.GuidanceBlock-module_noRightMargin__xtPiX{margin-right:0}.GuidanceBlock-module_banner__ng6kh.GuidanceBlock-module_noMaxWidth__V-DbD{max-width:inherit}.GuidanceBlock-module_banner__ng6kh{--border-width:var(--border-width-1);border:var(--border-width) var(--border-solid-border-style);border-radius:var(--border-solid-border-radius,7px);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06));color:var(--color-purple-800,#2f2438);display:flex;flex-direction:column;gap:var(--spacing-sm,.75rem);max-width:1080px;min-width:320px;padding:calc(var(--spacing-lg, 2.25rem) - var(--border-width));position:relative;top:-1px;transition:opacity var(--animation-duration-slow,.4s) ease,margin-top var(--animation-duration-fast,.3s) var(--animation-duration-slow,.4s) ease}@media (min-width:1024px){.GuidanceBlock-module_banner__ng6kh{align-items:center;flex-direction:row;gap:var(--spacing-md,1.5rem);min-height:calc(12rem - var(--spacing-lg, 2.25rem)*2);width:auto}}@media (max-width:767px){.GuidanceBlock-module_banner__ng6kh{min-width:unset}}.GuidanceBlock-module_illustrationWrapper__-rRYc{display:flex}@media (min-width:768px) and (max-width:1023px){.GuidanceBlock-module_illustrationWrapper__-rRYc{align-self:center;justify-content:center;padding:var(--spacing-sm,.75rem);text-align:center}}@media (max-width:767px){.GuidanceBlock-module_illustrationWrapper__-rRYc{display:none}}.GuidanceBlock-module_illustration__LpEwu{height:155px;width:155px}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu{display:flex;height:auto;justify-content:center;max-height:300px;max-width:300px;width:300px}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu figure{aspect-ratio:4/3;max-height:100%;max-width:100%}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu img{height:100%;object-fit:contain;object-position:center}.GuidanceBlock-module_descriptionContainer__N1EEi{align-self:center;flex:1;max-width:780px;text-align:center}@media (min-width:1024px){.GuidanceBlock-module_descriptionContainer__N1EEi{padding:0 var(--spacing-sm,.75rem);text-align:left}}@media (max-width:767px){.GuidanceBlock-module_descriptionContainer__N1EEi{margin:var(--spacing-sm,.75rem);max-width:100%}}@media (min-width:1024px){[dir=rtl] .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0 var(--spacing-sm,.75rem);text-align:right}}.GuidanceBlock-module_descriptionAndActions__D206m{align-items:center;display:flex;flex:1;gap:var(--spacing-md,1.5rem);justify-content:space-between}@media (max-width:1023px){.GuidanceBlock-module_descriptionAndActions__D206m{align-items:unset;flex-direction:column;width:100%}}.GuidanceBlock-module_buttonContainer__w3vEh{display:flex;flex:1 0 auto;flex-direction:row-reverse;gap:var(--spacing-sm,.75rem);justify-content:center;min-width:max-content}@media (min-width:768px){.GuidanceBlock-module_buttonContainer__w3vEh{text-align:center}}@media (max-width:767px){.GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:column;margin-top:var(--spacing-xs,.375rem);width:100%}}[dir=rtl] .GuidanceBlock-module_buttonContainer__w3vEh svg{transform:rotate(180deg)}.GuidanceBlock-module_hidden__hgakl{margin-bottom:0;opacity:0}.GuidanceBlock-module_headingWrapper__xqjf-{margin-bottom:var(--spacing-md,1.5rem)}.GuidanceBlock-module_cancel__0lcBe{appearance:none;background:transparent;border:none;color:inherit;color:var(--color-purple-800,#2f2438);cursor:pointer;display:inline;font:inherit;margin:0;padding:0;position:absolute;right:var(--spacing-sm,.75rem);top:var(--spacing-sm,.75rem)}.GuidanceBlock-module_cancel__0lcBe .GuidanceBlock-module_icon__XVKkH{opacity:70%;transition:var(--animation-duration-fast,.3s) opacity}.GuidanceBlock-module_cancel__0lcBe.GuidanceBlock-module_disabled__tbZPh .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:disabled .GuidanceBlock-module_icon__XVKkH{opacity:30%}.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh).GuidanceBlock-module_active__eJu5N .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh).GuidanceBlock-module_hover__vs7Wu .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):active .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):focus .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):hover .GuidanceBlock-module_icon__XVKkH{opacity:100%}.GuidanceBlock-module_default__W7fnR{background:var(--color-white);border-color:var(--color-gray-500)}.GuidanceBlock-module_expert-advice__uGg7D{background:var(--color-purple-100,#f4edf8);border-color:var(--color-purple-400)}.GuidanceBlock-module_inline__DC0LQ,.GuidanceBlock-module_stacked__2SSuH{align-items:unset;flex-flow:row wrap;gap:var(--spacing-md,1.5rem);min-width:unset}@media (max-width:1023px){.GuidanceBlock-module_inline__DC0LQ,.GuidanceBlock-module_stacked__2SSuH{flex-direction:unset}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{margin-right:var(--spacing-sm,.75rem)}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{margin-left:var(--spacing-sm,.75rem);margin-right:inherit}@media (min-width:768px) and (max-width:1023px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{padding:0}}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{display:flex}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionAndActions__D206m,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionAndActions__D206m{margin:auto 0}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{max-width:unset;min-width:320px;text-align:left}@media (min-width:1024px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0}}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{margin:0}}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:right}@media (min-width:1024px){[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{justify-content:flex-start;min-width:unset;padding-left:var(--spacing-sm,.75rem);width:unset}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:row-reverse}}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{padding-left:0;padding-right:var(--spacing-sm,.75rem)}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh>*,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh>*{width:unset}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_hasSceneIllustration__HxwOA,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_hasSceneIllustration__HxwOA{justify-content:center}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ{flex-direction:column}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu{width:100%}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_illustrationWrapper__-rRYc{align-self:center;margin:0 auto}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi{min-width:unset;text-align:center}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:center}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:column;justify-content:center;min-width:unset;padding:0}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:left}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:right}.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionAndActions__D206m{align-items:unset;flex-direction:column}.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{align-self:flex-start}
|
|
6
5
|
.MenuItem-module_item__DPerF{align-items:center;border:var(--border-focus-ring-border-width) var(--border-focus-ring-border-style) transparent;border-radius:4px;color:rgba(var(--color-purple-800-rgb),.7);cursor:pointer;display:flex;font-family:var(--typography-paragraph-body-font-family);font-size:var(--typography-paragraph-body-font-size);font-weight:var(--typography-paragraph-body-font-weight);gap:0 var(--spacing-8);letter-spacing:var(--typography-paragraph-body-letter-spacing);line-height:var(--typography-paragraph-body-line-height);margin-inline:var(--spacing-6);padding:var(--spacing-6) var(--spacing-8);text-decoration:none}.MenuItem-module_iconWrapper__bRdQN{align-items:center;display:flex;flex-shrink:0}.MenuItem-module_item__DPerF[data-focused]{background-color:var(--color-blue-100);border-color:var(--color-blue-500);color:var(--color-blue-500);outline:none}.MenuItem-module_item__DPerF[data-disabled]{opacity:.3}
|
|
7
6
|
.Button-module_button__QOSYH{--button-min-height-width:var(--spacing-48);--button-padding-x:calc(var(--spacing-12) - var(--border-solid-border-width));--button-padding-y:calc(var(--spacing-8) - var(--border-solid-border-width));--button-icon-size:var(--spacing-24);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;appearance:none;background:transparent;border:none;border:var(--border-solid-border-width) var(--border-solid-border-style);border-radius:var(--border-solid-border-radius);box-sizing:border-box;color:inherit;display:inline-flex;font:inherit;font-family:var(--typography-button-primary-font-family);font-size:var(--typography-button-primary-font-size);font-weight:var(--typography-button-primary-font-weight);gap:var(--spacing-8);justify-content:center;line-height:var(--typography-button-primary-line-height);margin:0;min-height:var(--button-min-height-width);min-width:var(--button-min-height-width);outline:none;padding:var(--button-padding-y) var(--button-padding-x);position:relative;text-align:left}.Button-module_button__QOSYH[data-focus-visible]:after{background:transparent;border-color:var(--color-blue-500);border-radius:var(--border-focus-ring-border-radius);border-style:var(--border-focus-ring-border-style);border-width:var(--border-focus-ring-border-width);content:"";inset:calc(var(--border-focus-ring-border-width)*2*-1 + -1px);position:absolute}.Button-module_button__QOSYH svg{height:var(--button-icon-size);width:var(--button-icon-size)}.Button-module_default__gSx3e{border-color:var(--color-gray-500);color:var(--color-purple-800)}.Button-module_default__gSx3e[data-focus-visible],.Button-module_default__gSx3e[data-hovered],.Button-module_default__gSx3e[data-pressed]{background-color:var(--color-gray-200);border-color:var(--color-purple-800)}.Button-module_default__gSx3e[data-disabled]{opacity:.3}.Button-module_default__gSx3e.Button-module_reversed__DT-Id{background-color:transparent;border-color:rgba(var(--color-white-rgb),.65);color:var(--color-white)}.Button-module_default__gSx3e.Button-module_reversed__DT-Id[data-focus-visible],.Button-module_default__gSx3e.Button-module_reversed__DT-Id[data-hovered]{background-color:rgba(var(--color-white-rgb),.1);border-color:var(--color-white)}.Button-module_default__gSx3e.Button-module_reversed__DT-Id[data-focus-visible]:after{border-color:var(--color-blue-300)}.Button-module_default__gSx3e.Button-module_reversed__DT-Id[data-disabled]:after{border-color:var(--color-gray-400)}.Button-module_small__S-t5B{--button-min-height-width:2.5rem;--button-padding-x:calc(var(--spacing-8) - var(--border-solid-border-width));--button-padding-y:calc(var(--spacing-8) - var(--border-solid-border-width));--button-icon-size:var(--spacing-16);gap:var(--spacing-8)}
|
|
8
7
|
.Focusable-module_focusableWrapper__NfuIi{display:inline-flex}
|
|
8
|
+
.GuidanceBlock-module_rightMargin__gIzig{margin-right:var(--spacing-8,.5rem)}.GuidanceBlock-module_noRightMargin__xtPiX{margin-right:0}.GuidanceBlock-module_banner__ng6kh.GuidanceBlock-module_noMaxWidth__V-DbD{max-width:inherit}.GuidanceBlock-module_banner__ng6kh{--border-width:var(--border-width-1);border:var(--border-width) var(--border-solid-border-style);border-radius:var(--border-solid-border-radius,7px);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06));color:var(--color-purple-800,#2f2438);display:flex;flex-direction:column;gap:var(--spacing-sm,.75rem);max-width:1080px;min-width:320px;padding:calc(var(--spacing-lg, 2.25rem) - var(--border-width));position:relative;top:-1px;transition:opacity var(--animation-duration-slow,.4s) ease,margin-top var(--animation-duration-fast,.3s) var(--animation-duration-slow,.4s) ease}@media (min-width:1024px){.GuidanceBlock-module_banner__ng6kh{align-items:center;flex-direction:row;gap:var(--spacing-md,1.5rem);min-height:calc(12rem - var(--spacing-lg, 2.25rem)*2);width:auto}}@media (max-width:767px){.GuidanceBlock-module_banner__ng6kh{min-width:unset}}.GuidanceBlock-module_illustrationWrapper__-rRYc{display:flex}@media (min-width:768px) and (max-width:1023px){.GuidanceBlock-module_illustrationWrapper__-rRYc{align-self:center;justify-content:center;padding:var(--spacing-sm,.75rem);text-align:center}}@media (max-width:767px){.GuidanceBlock-module_illustrationWrapper__-rRYc{display:none}}.GuidanceBlock-module_illustration__LpEwu{height:155px;width:155px}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu{display:flex;height:auto;justify-content:center;max-height:300px;max-width:300px;width:300px}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu figure{aspect-ratio:4/3;max-height:100%;max-width:100%}.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu img{height:100%;object-fit:contain;object-position:center}.GuidanceBlock-module_descriptionContainer__N1EEi{align-self:center;flex:1;max-width:780px;text-align:center}@media (min-width:1024px){.GuidanceBlock-module_descriptionContainer__N1EEi{padding:0 var(--spacing-sm,.75rem);text-align:left}}@media (max-width:767px){.GuidanceBlock-module_descriptionContainer__N1EEi{margin:var(--spacing-sm,.75rem);max-width:100%}}@media (min-width:1024px){[dir=rtl] .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0 var(--spacing-sm,.75rem);text-align:right}}.GuidanceBlock-module_descriptionAndActions__D206m{align-items:center;display:flex;flex:1;gap:var(--spacing-md,1.5rem);justify-content:space-between}@media (max-width:1023px){.GuidanceBlock-module_descriptionAndActions__D206m{align-items:unset;flex-direction:column;width:100%}}.GuidanceBlock-module_buttonContainer__w3vEh{display:flex;flex:1 0 auto;flex-direction:row-reverse;gap:var(--spacing-sm,.75rem);justify-content:center;min-width:max-content}@media (min-width:768px){.GuidanceBlock-module_buttonContainer__w3vEh{text-align:center}}@media (max-width:767px){.GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:column;margin-top:var(--spacing-xs,.375rem);width:100%}}[dir=rtl] .GuidanceBlock-module_buttonContainer__w3vEh svg{transform:rotate(180deg)}.GuidanceBlock-module_hidden__hgakl{margin-bottom:0;opacity:0}.GuidanceBlock-module_headingWrapper__xqjf-{margin-bottom:var(--spacing-md,1.5rem)}.GuidanceBlock-module_cancel__0lcBe{appearance:none;background:transparent;border:none;color:inherit;color:var(--color-purple-800,#2f2438);cursor:pointer;display:inline;font:inherit;margin:0;padding:0;position:absolute;right:var(--spacing-sm,.75rem);top:var(--spacing-sm,.75rem)}.GuidanceBlock-module_cancel__0lcBe .GuidanceBlock-module_icon__XVKkH{opacity:70%;transition:var(--animation-duration-fast,.3s) opacity}.GuidanceBlock-module_cancel__0lcBe.GuidanceBlock-module_disabled__tbZPh .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:disabled .GuidanceBlock-module_icon__XVKkH{opacity:30%}.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh).GuidanceBlock-module_active__eJu5N .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh).GuidanceBlock-module_hover__vs7Wu .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):active .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):focus .GuidanceBlock-module_icon__XVKkH,.GuidanceBlock-module_cancel__0lcBe:not(:disabled,.GuidanceBlock-module_disabled__tbZPh):hover .GuidanceBlock-module_icon__XVKkH{opacity:100%}.GuidanceBlock-module_default__W7fnR{background:var(--color-white);border-color:var(--color-gray-500)}.GuidanceBlock-module_expert-advice__uGg7D{background:var(--color-purple-100,#f4edf8);border-color:var(--color-purple-400)}.GuidanceBlock-module_inline__DC0LQ,.GuidanceBlock-module_stacked__2SSuH{align-items:unset;flex-flow:row wrap;gap:var(--spacing-md,1.5rem);min-width:unset}@media (max-width:1023px){.GuidanceBlock-module_inline__DC0LQ,.GuidanceBlock-module_stacked__2SSuH{flex-direction:unset}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{margin-right:var(--spacing-sm,.75rem)}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{margin-left:var(--spacing-sm,.75rem);margin-right:inherit}@media (min-width:768px) and (max-width:1023px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{padding:0}}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_illustrationWrapper__-rRYc{display:flex}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionAndActions__D206m,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionAndActions__D206m{margin:auto 0}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{max-width:unset;min-width:320px;text-align:left}@media (min-width:1024px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0}}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{margin:0}}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:right}@media (min-width:1024px){[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{padding:0}}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{justify-content:flex-start;min-width:unset;padding-left:var(--spacing-sm,.75rem);width:unset}@media (max-width:767px){.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:row-reverse}}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh{padding-left:0;padding-right:var(--spacing-sm,.75rem)}.GuidanceBlock-module_inline__DC0LQ .GuidanceBlock-module_buttonContainer__w3vEh>*,.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_buttonContainer__w3vEh>*{width:unset}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_hasSceneIllustration__HxwOA,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_hasSceneIllustration__HxwOA{justify-content:center}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ{flex-direction:column}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_hasSceneIllustration__HxwOA .GuidanceBlock-module_illustration__LpEwu{width:100%}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_illustrationWrapper__-rRYc,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_illustrationWrapper__-rRYc{align-self:center;margin:0 auto}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi{min-width:unset;text-align:center}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:center}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_buttonContainer__w3vEh,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ .GuidanceBlock-module_buttonContainer__w3vEh{flex-direction:column;justify-content:center;min-width:unset;padding:0}.GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi,.GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:left}[dir=rtl] .GuidanceBlock-module_inline__DC0LQ.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi,[dir=rtl] .GuidanceBlock-module_stacked__2SSuH.GuidanceBlock-module_centerContent__pS9uQ.GuidanceBlock-module_smallScreenTextAlignment__iaw5d .GuidanceBlock-module_descriptionContainer__N1EEi{text-align:right}.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionAndActions__D206m{align-items:unset;flex-direction:column}.GuidanceBlock-module_stacked__2SSuH .GuidanceBlock-module_descriptionContainer__N1EEi{align-self:flex-start}
|
|
9
9
|
.SVG-module_icon__8J5Ev{display:inline-block;height:20px;width:20px}.SVG-module_icon__8J5Ev>use{pointer-events:none}@media screen and (-ms-high-contrast:active){.SVG-module_icon__8J5Ev{color:#000}}@media screen and (-ms-high-contrast:white-on-black){.SVG-module_icon__8J5Ev{color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.SVG-module_icon__8J5Ev{color:#000}}.SVG-module_inheritSize__Q8iam{display:block;height:inherit;width:inherit}
|
|
10
10
|
.Avatar-module_wrapper__LY2q2{align-items:center;background:var(--color-gray-300,#eaeaec);border-radius:100%;box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.Avatar-module_wrapper__LY2q2:not(.Avatar-module_small__PeksS){border:3px solid var(--color-white,#fff);box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06))}.Avatar-module_wrapper__LY2q2.Avatar-module_personal__2U7--{background:var(--color-orange-100,#fff0e8)}.Avatar-module_wrapper__LY2q2.Avatar-module_otherUser__b-drl{background:var(--color-gray-300,#eaeaec)}.Avatar-module_wrapper__LY2q2.Avatar-module_company__2qtJE{background:var(--color-white,#fff);border:0;border-radius:var(--border-solid-border-radius,7px);padding:6px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS{height:1.25rem;width:1.25rem}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS.Avatar-module_company__2qtJE{padding:0}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8{height:3rem;width:3rem}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_large__qiNWs{height:4.5rem;width:4.5rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xlarge__Vx4IG{height:6rem;width:6rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xxlarge__oOoGq{height:7.75rem;width:7.75rem}.Avatar-module_wrapper__LY2q2 .Avatar-module_initials__VDY2Q{speak-as:spell-out;border-bottom:none;text-decoration:none}.Avatar-module_avatarImage__FuULy{height:100%;object-fit:cover;width:100%}.Avatar-module_loading__i9V-D .Avatar-module_avatarImage__FuULy{display:none}.Avatar-module_companyAvatarImage__7rlfG{border-radius:4px;box-sizing:border-box;object-fit:contain}.Avatar-module_fallbackIcon__MPWxq{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);width:28px}.Avatar-module_xxlarge__oOoGq .Avatar-module_fallbackIcon__MPWxq{width:75px}.Avatar-module_xlarge__Vx4IG .Avatar-module_fallbackIcon__MPWxq{width:60px}.Avatar-module_large__qiNWs .Avatar-module_fallbackIcon__MPWxq{width:35px}.Avatar-module_medium__Vy3V8 .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:25px}.Avatar-module_small__PeksS .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:10px}.Avatar-module_initials__VDY2Q{box-sizing:border-box;color:var(--color-purple-800,#2f2438);font-family:var(--typography-heading-1-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:22px;font-weight:var(--typography-heading-1-font-weight,700);letter-spacing:var(--typography-heading-3-letter-spacing,normal);padding-left:5px;padding-right:5px;text-align:center;width:100%}.Avatar-module_initials__VDY2Q:not(.Avatar-module_longName__31Yuf):before{content:"";display:block;margin-top:-.001em}.Avatar-module_xlarge__Vx4IG .Avatar-module_initials__VDY2Q,.Avatar-module_xxlarge__oOoGq .Avatar-module_initials__VDY2Q{font-size:34px;letter-spacing:var(--typography-heading-1-letter-spacing,normal)}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{font-size:16px}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q,.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-weight:var(--typography-heading-5-font-weight,600);letter-spacing:var(--typography-heading-5-letter-spacing,normal)}.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-size:8px}
|
|
11
11
|
.AvatarGroup-module_AvatarGroup__bdL0o{display:inline-flex;list-style:none;margin:0;padding:0}.AvatarGroup-module_AvatarCounter__PKFzl{align-items:center;background:var(--color-gray-300,#eaeaec);border:3px solid var(--color-white,#fff);border-radius:100%;box-shadow:var(--shadow-small-box-shadow,0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06));box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}[dir=rtl] .AvatarGroup-module_AvatarCounter__PKFzl{direction:ltr}.AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-.625rem}.AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarCounter__PKFzl{border:none;box-shadow:none;font-family:var(--typography-heading-5-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:.5rem;font-weight:var(--typography-heading-5-font-weight,600);height:1.25rem;letter-spacing:var(--typography-heading-5-letter-spacing,normal);width:1.25rem}.AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-1.5rem}.AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarCounter__PKFzl{font-family:var(--typography-heading-5-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-heading-5-font-size,1rem);font-weight:var(--typography-heading-5-font-weight,600);height:3rem;letter-spacing:var(--typography-heading-5-letter-spacing,normal);width:3rem}.AvatarGroup-module_large__HN9Yy .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-2.25rem}.AvatarGroup-module_large__HN9Yy .AvatarGroup-module_AvatarCounter__PKFzl{font-family:var(--typography-heading-3-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-heading-3-font-size,1.375rem);font-weight:var(--typography-heading-3-font-weight,700);height:4.5rem;letter-spacing:var(--typography-heading-3-letter-spacing,normal);width:4.5rem}
|
|
@@ -25,6 +25,11 @@ type BaseAvatarProps = {
|
|
|
25
25
|
* Renders Company Avatar variant - If true `fullName` and `avatarSrc` will be strictly typed.
|
|
26
26
|
*/
|
|
27
27
|
isCompany?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Control of the alt property on the img (or title when initials are rendered)
|
|
30
|
+
* Defaults to the fullName if provided, otherwise an empty string
|
|
31
|
+
*/
|
|
32
|
+
alt?: string;
|
|
28
33
|
} & OverrideClassName<HTMLAttributes<HTMLSpanElement>>;
|
|
29
34
|
export type GenericAvatarProps = BaseAvatarProps & {
|
|
30
35
|
isCompany?: false;
|
|
@@ -46,5 +51,5 @@ export type AvatarProps = GenericAvatarProps | CompanyAvatarProps;
|
|
|
46
51
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3064857475/Avatar Guidance} |
|
|
47
52
|
* {@link https://cultureamp.design/?path=/docs/components-avatar-avatar--docs Storybook}
|
|
48
53
|
*/
|
|
49
|
-
export declare const Avatar: ({ fullName, size, avatarSrc, disableInitials, isCompany, isCurrentUser, classNameOverride, ...restProps }: AvatarProps) => JSX.Element;
|
|
54
|
+
export declare const Avatar: ({ fullName, size, avatarSrc, disableInitials, isCompany, isCurrentUser, alt, classNameOverride, ...restProps }: AvatarProps) => JSX.Element;
|
|
50
55
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.0",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"ts-jest": "^29.2.4",
|
|
107
107
|
"tslib": "^2.6.3",
|
|
108
108
|
"tsx": "^4.17.0",
|
|
109
|
-
"@kaizen/design-tokens": "10.5.
|
|
109
|
+
"@kaizen/design-tokens": "10.5.3",
|
|
110
110
|
"@kaizen/package-bundler": "1.1.4"
|
|
111
111
|
},
|
|
112
112
|
"devDependenciesComments": {
|
|
@@ -23,4 +23,67 @@ describe("<Avatar />", () => {
|
|
|
23
23
|
expect(screen.getByText("JWAVLN")).toBeInTheDocument()
|
|
24
24
|
})
|
|
25
25
|
})
|
|
26
|
+
|
|
27
|
+
describe("alt text", () => {
|
|
28
|
+
describe("providing alt text, overriding fullName", () => {
|
|
29
|
+
it("uses alt prop over full name when using initials", () => {
|
|
30
|
+
render(<Avatar fullName="Jane Doe" alt="alt override" />)
|
|
31
|
+
expect(screen.getByTitle("alt override")).toBeInTheDocument()
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
it("uses alt prop over full name when using fallback img", () => {
|
|
35
|
+
render(
|
|
36
|
+
<Avatar fullName="Jane Doe" alt="alt override" disableInitials />
|
|
37
|
+
)
|
|
38
|
+
expect(screen.getByRole("img")).toHaveAccessibleName("alt override")
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("uses alt prop over full name when supplying an img", () => {
|
|
42
|
+
render(
|
|
43
|
+
<Avatar
|
|
44
|
+
fullName="Jane Doe"
|
|
45
|
+
alt="alt override"
|
|
46
|
+
avatarSrc="https://www.cultureampcom-preview-1.usw2.wp-dev-us.cultureamp-cdn.com/assets/slices/main/assets/public/media/chapters-card-1@2x.05e547444387f29f14df0b82634bf2b6.png"
|
|
47
|
+
/>
|
|
48
|
+
)
|
|
49
|
+
expect(screen.getByRole("img")).toHaveAccessibleName("alt override")
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
describe("providing fullName, no alt prop", () => {
|
|
54
|
+
it("uses the fullName when using initials", () => {
|
|
55
|
+
render(<Avatar fullName="Jane Doe" />)
|
|
56
|
+
expect(screen.getByTitle("Jane Doe")).toBeInTheDocument()
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
it("uses the fullName when using fallback img", () => {
|
|
60
|
+
render(<Avatar fullName="Jane Doe" disableInitials />)
|
|
61
|
+
expect(screen.getByRole("img")).toHaveAccessibleName("Jane Doe")
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it("uses alt prop over full name when supplying an img", () => {
|
|
65
|
+
render(
|
|
66
|
+
<Avatar
|
|
67
|
+
fullName="Jane Doe"
|
|
68
|
+
avatarSrc="https://www.cultureampcom-preview-1.usw2.wp-dev-us.cultureamp-cdn.com/assets/slices/main/assets/public/media/chapters-card-1@2x.05e547444387f29f14df0b82634bf2b6.png"
|
|
69
|
+
/>
|
|
70
|
+
)
|
|
71
|
+
expect(screen.getByRole("img")).toHaveAccessibleName("Jane Doe")
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
describe("not providing fullName or alt text", () => {
|
|
76
|
+
it("makes the img presentational on the fallback img", () => {
|
|
77
|
+
render(<Avatar />)
|
|
78
|
+
expect(screen.queryByRole("img")).not.toBeInTheDocument()
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("has blank alt text when img provided", () => {
|
|
82
|
+
render(
|
|
83
|
+
<Avatar avatarSrc="https://www.cultureampcom-preview-1.usw2.wp-dev-us.cultureamp-cdn.com/assets/slices/main/assets/public/media/chapters-card-1@2x.05e547444387f29f14df0b82634bf2b6.png" />
|
|
84
|
+
)
|
|
85
|
+
expect(screen.queryByRole("img")).not.toBeInTheDocument()
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
})
|
|
26
89
|
})
|
package/src/Avatar/Avatar.tsx
CHANGED
|
@@ -31,6 +31,11 @@ type BaseAvatarProps = {
|
|
|
31
31
|
* Renders Company Avatar variant - If true `fullName` and `avatarSrc` will be strictly typed.
|
|
32
32
|
*/
|
|
33
33
|
isCompany?: boolean
|
|
34
|
+
/**
|
|
35
|
+
* Control of the alt property on the img (or title when initials are rendered)
|
|
36
|
+
* Defaults to the fullName if provided, otherwise an empty string
|
|
37
|
+
*/
|
|
38
|
+
alt?: string
|
|
34
39
|
} & OverrideClassName<HTMLAttributes<HTMLSpanElement>>
|
|
35
40
|
|
|
36
41
|
export type GenericAvatarProps = BaseAvatarProps & {
|
|
@@ -71,9 +76,9 @@ const getMaxFontSizePixels: (size: AvatarSizes) => number = size => {
|
|
|
71
76
|
return 22
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
const fallbackIcon = (
|
|
75
|
-
if (
|
|
76
|
-
return <UserIcon inheritSize role="img" aria-label={
|
|
79
|
+
const fallbackIcon = (alt: string): JSX.Element => {
|
|
80
|
+
if (alt) {
|
|
81
|
+
return <UserIcon inheritSize role="img" aria-label={alt} />
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
return <UserIcon inheritSize role="presentation" />
|
|
@@ -81,6 +86,7 @@ const fallbackIcon = (fullName: string): JSX.Element => {
|
|
|
81
86
|
|
|
82
87
|
const renderInitials = (
|
|
83
88
|
fullName = "",
|
|
89
|
+
alt: string,
|
|
84
90
|
size: AvatarSizes,
|
|
85
91
|
disableInitials = false
|
|
86
92
|
): JSX.Element => {
|
|
@@ -89,11 +95,11 @@ const renderInitials = (
|
|
|
89
95
|
const renderFallback = disableInitials || initials === ""
|
|
90
96
|
|
|
91
97
|
return renderFallback ? (
|
|
92
|
-
<span className={styles.fallbackIcon}>{fallbackIcon(
|
|
98
|
+
<span className={styles.fallbackIcon}>{fallbackIcon(alt)}</span>
|
|
93
99
|
) : (
|
|
94
100
|
<abbr
|
|
95
101
|
className={classnames(styles.initials, isLongName && styles.longName)}
|
|
96
|
-
title={
|
|
102
|
+
title={alt}
|
|
97
103
|
>
|
|
98
104
|
{isLongName ? (
|
|
99
105
|
// Only called if 3 or more initials, fits text width for long names
|
|
@@ -118,6 +124,7 @@ export const Avatar = ({
|
|
|
118
124
|
disableInitials = false,
|
|
119
125
|
isCompany = false,
|
|
120
126
|
isCurrentUser = true,
|
|
127
|
+
alt = fullName || "",
|
|
121
128
|
classNameOverride,
|
|
122
129
|
...restProps
|
|
123
130
|
}: AvatarProps): JSX.Element => {
|
|
@@ -167,10 +174,11 @@ export const Avatar = ({
|
|
|
167
174
|
src={avatarSrc}
|
|
168
175
|
onError={onImageFailure}
|
|
169
176
|
onLoad={onImageSuccess}
|
|
170
|
-
alt={
|
|
177
|
+
alt={alt}
|
|
171
178
|
/>
|
|
172
179
|
)}
|
|
173
|
-
{renderInitialAvatar &&
|
|
180
|
+
{renderInitialAvatar &&
|
|
181
|
+
renderInitials(fullName, alt, size, disableInitials)}
|
|
174
182
|
</span>
|
|
175
183
|
)
|
|
176
184
|
}
|