@kaizen/components 0.0.0-canary-02-tb-scroll-20260127032210 → 0.0.0-canary-tb-avatar-clipped-20260129044951
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/src/TitleBlock/TitleBlock.cjs +1 -1
- package/dist/esm/src/TitleBlock/TitleBlock.mjs +1 -1
- package/dist/styles.css +9 -12
- package/package.json +1 -1
- package/src/TitleBlock/TitleBlock.module.scss +7 -9
- package/src/TitleBlock/TitleBlock.tsx +4 -1
- package/src/TitleBlock/_docs/TitleBlock.stories.tsx +248 -5
|
@@ -284,7 +284,7 @@ var TitleBlock = function (_a) {
|
|
|
284
284
|
sectionTitleAutomationId: sectionTitleAutomationId,
|
|
285
285
|
sectionTitleDescription: sectionTitleDescription,
|
|
286
286
|
sectionTitleDescriptionAutomationId: sectionTitleDescriptionAutomationId
|
|
287
|
-
}) : defaultRenderSectionTitle(sectionTitle, sectionTitleDescription, variant, sectionTitleAutomationId, sectionTitleDescriptionAutomationId))), renderNavigationTabs(navigationTabs, collapseNavigationArea, title), (secondaryActions !== null && secondaryActions !== void 0 ? secondaryActions : secondaryOverflowMenuItems) && React__default.default.createElement(SecondaryActions.SecondaryActions, {
|
|
287
|
+
}) : defaultRenderSectionTitle(sectionTitle, sectionTitleDescription, variant, sectionTitleAutomationId, sectionTitleDescriptionAutomationId))), !sectionTitle && !sectionTitleDescription && !renderSectionTitle && renderNavigationTabs(navigationTabs, collapseNavigationArea, title), (secondaryActions !== null && secondaryActions !== void 0 ? secondaryActions : secondaryOverflowMenuItems) && React__default.default.createElement(SecondaryActions.SecondaryActions, {
|
|
288
288
|
secondaryActions: secondaryActions,
|
|
289
289
|
secondaryOverflowMenuItems: secondaryOverflowMenuItems,
|
|
290
290
|
reversed: utils.isReversed(variant)
|
|
@@ -276,7 +276,7 @@ const TitleBlock = /*#__PURE__*/function () {
|
|
|
276
276
|
sectionTitleAutomationId: sectionTitleAutomationId,
|
|
277
277
|
sectionTitleDescription: sectionTitleDescription,
|
|
278
278
|
sectionTitleDescriptionAutomationId: sectionTitleDescriptionAutomationId
|
|
279
|
-
}) : defaultRenderSectionTitle(sectionTitle, sectionTitleDescription, variant, sectionTitleAutomationId, sectionTitleDescriptionAutomationId)))), renderNavigationTabs(navigationTabs, collapseNavigationArea, title), (secondaryActions !== null && secondaryActions !== void 0 ? secondaryActions : secondaryOverflowMenuItems) && (/*#__PURE__*/React.createElement(SecondaryActions, {
|
|
279
|
+
}) : defaultRenderSectionTitle(sectionTitle, sectionTitleDescription, variant, sectionTitleAutomationId, sectionTitleDescriptionAutomationId)))), !sectionTitle && !sectionTitleDescription && !renderSectionTitle && renderNavigationTabs(navigationTabs, collapseNavigationArea, title), (secondaryActions !== null && secondaryActions !== void 0 ? secondaryActions : secondaryOverflowMenuItems) && (/*#__PURE__*/React.createElement(SecondaryActions, {
|
|
280
280
|
secondaryActions: secondaryActions,
|
|
281
281
|
secondaryOverflowMenuItems: secondaryOverflowMenuItems,
|
|
282
282
|
reversed: isReversed(variant)
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer tokens, normalize, reset, kz-components;@layer tokens{:root{--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:500;--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:600;--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:600;--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:600;--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:500;--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{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;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;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{appearance:auto}[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]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:auto;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}html{container-type:inline-size}body,html{height:100vh}body{overflow:auto}}
|
|
1
|
+
@layer tokens, normalize, reset, kz-components;@layer tokens{:root{--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:500;--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:600;--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:600;--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:600;--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:500;--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{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;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;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{appearance:auto}[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]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:auto;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}body{container-type:inline-size;min-height:100vh}}
|
|
2
2
|
@layer kz-components {
|
|
3
3
|
/*
|
|
4
4
|
* This is taken from the Material Symbols CDN
|
|
@@ -10058,11 +10058,6 @@
|
|
|
10058
10058
|
width: 100%;
|
|
10059
10059
|
justify-content: center;
|
|
10060
10060
|
}
|
|
10061
|
-
@container (max-width: calc(768px - 1px)) {
|
|
10062
|
-
.TitleBlock-module_rowBelowSeparator__H4E63 {
|
|
10063
|
-
height: 3.75rem;
|
|
10064
|
-
}
|
|
10065
|
-
}
|
|
10066
10061
|
.TitleBlock-module_lightVariant__1EeLV .TitleBlock-module_titleRow__Ifqiu {
|
|
10067
10062
|
background-color: var(--color-white, #ffffff);
|
|
10068
10063
|
margin-bottom: 0.063rem;
|
|
@@ -10098,11 +10093,6 @@
|
|
|
10098
10093
|
margin-inline: 24px;
|
|
10099
10094
|
}
|
|
10100
10095
|
}
|
|
10101
|
-
@container (max-width: calc(768px - 1px)) {
|
|
10102
|
-
.TitleBlock-module_rowBelowSeparatorInner__3gNec {
|
|
10103
|
-
height: 3.75rem;
|
|
10104
|
-
}
|
|
10105
|
-
}
|
|
10106
10096
|
.TitleBlock-module_titleRowInnerContent__NhTHV {
|
|
10107
10097
|
box-sizing: border-box;
|
|
10108
10098
|
position: relative;
|
|
@@ -10258,7 +10248,6 @@
|
|
|
10258
10248
|
display: none;
|
|
10259
10249
|
align-self: self-start;
|
|
10260
10250
|
box-sizing: border-box;
|
|
10261
|
-
overflow: hidden;
|
|
10262
10251
|
height: 3rem;
|
|
10263
10252
|
width: 3rem;
|
|
10264
10253
|
margin-inline-end: calc(1.5rem / 2);
|
|
@@ -10268,6 +10257,7 @@
|
|
|
10268
10257
|
max-width: 100%;
|
|
10269
10258
|
}
|
|
10270
10259
|
.TitleBlock-module_avatar__mEjJ8.TitleBlock-module_withBorder__D8Mz2 {
|
|
10260
|
+
overflow: hidden;
|
|
10271
10261
|
border: 3px solid var(--color-white, #ffffff);
|
|
10272
10262
|
border-radius: 50%;
|
|
10273
10263
|
}
|
|
@@ -10338,14 +10328,21 @@
|
|
|
10338
10328
|
.TitleBlock-module_sectionTitleContainer__LrDPV {
|
|
10339
10329
|
display: flex;
|
|
10340
10330
|
align-items: center;
|
|
10331
|
+
padding-block: 9px;
|
|
10341
10332
|
padding-inline-end: 8px;
|
|
10342
10333
|
}
|
|
10334
|
+
@container (min-width: 1080px) {
|
|
10335
|
+
.TitleBlock-module_sectionTitleContainer__LrDPV {
|
|
10336
|
+
padding-block: 17px;
|
|
10337
|
+
}
|
|
10338
|
+
}
|
|
10343
10339
|
.TitleBlock-module_sectionTitle__b8daw {
|
|
10344
10340
|
display: block;
|
|
10345
10341
|
}
|
|
10346
10342
|
.TitleBlock-module_sectionTitleInner__nJfOP {
|
|
10347
10343
|
display: flex;
|
|
10348
10344
|
flex-direction: column;
|
|
10345
|
+
row-gap: 4px;
|
|
10349
10346
|
}
|
|
10350
10347
|
@container (min-width: 1080px) {
|
|
10351
10348
|
.TitleBlock-module_sectionTitleInner__nJfOP {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-tb-avatar-clipped-20260129044951",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -61,10 +61,6 @@
|
|
|
61
61
|
display: flex;
|
|
62
62
|
width: 100%;
|
|
63
63
|
justify-content: center;
|
|
64
|
-
|
|
65
|
-
@include title-block-small {
|
|
66
|
-
height: $tab-container-height-small;
|
|
67
|
-
}
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
.lightVariant .titleRow {
|
|
@@ -112,10 +108,6 @@
|
|
|
112
108
|
.rowBelowSeparatorInner {
|
|
113
109
|
@extend %titleBlockInner;
|
|
114
110
|
@extend %rowBelowSeparatorInnerMarginOverride;
|
|
115
|
-
|
|
116
|
-
@include title-block-small {
|
|
117
|
-
height: $tab-container-height-small;
|
|
118
|
-
}
|
|
119
111
|
}
|
|
120
112
|
|
|
121
113
|
.titleRowInnerContent {
|
|
@@ -285,7 +277,6 @@
|
|
|
285
277
|
display: none;
|
|
286
278
|
align-self: self-start;
|
|
287
279
|
box-sizing: border-box;
|
|
288
|
-
overflow: hidden;
|
|
289
280
|
height: $ca-grid * 2;
|
|
290
281
|
width: $ca-grid * 2;
|
|
291
282
|
|
|
@@ -296,6 +287,7 @@
|
|
|
296
287
|
}
|
|
297
288
|
|
|
298
289
|
&.withBorder {
|
|
290
|
+
overflow: hidden;
|
|
299
291
|
border: 3px solid $color-white;
|
|
300
292
|
border-radius: 50%;
|
|
301
293
|
}
|
|
@@ -367,7 +359,12 @@
|
|
|
367
359
|
.sectionTitleContainer {
|
|
368
360
|
display: flex;
|
|
369
361
|
align-items: center;
|
|
362
|
+
padding-block: 9px;
|
|
370
363
|
padding-inline-end: 8px; // 20 take 12 result in 8 extra padding needed in section versus tabs UI
|
|
364
|
+
|
|
365
|
+
@include title-block-min-container-1080 {
|
|
366
|
+
padding-block: 17px;
|
|
367
|
+
}
|
|
371
368
|
}
|
|
372
369
|
|
|
373
370
|
.sectionTitle {
|
|
@@ -377,6 +374,7 @@
|
|
|
377
374
|
.sectionTitleInner {
|
|
378
375
|
display: flex;
|
|
379
376
|
flex-direction: column;
|
|
377
|
+
row-gap: 4px;
|
|
380
378
|
|
|
381
379
|
@include title-block-min-container-1080 {
|
|
382
380
|
flex-direction: row;
|
|
@@ -376,7 +376,10 @@ export const TitleBlock = ({
|
|
|
376
376
|
</div>
|
|
377
377
|
</div>
|
|
378
378
|
)}
|
|
379
|
-
{
|
|
379
|
+
{!sectionTitle &&
|
|
380
|
+
!sectionTitleDescription &&
|
|
381
|
+
!renderSectionTitle &&
|
|
382
|
+
renderNavigationTabs(navigationTabs, collapseNavigationArea, title)}
|
|
380
383
|
{(secondaryActions ?? secondaryOverflowMenuItems) && (
|
|
381
384
|
<SecondaryActions
|
|
382
385
|
secondaryActions={secondaryActions}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { type Meta, type StoryObj } from '@storybook/react'
|
|
3
3
|
import { expect, waitFor, within } from '@storybook/test'
|
|
4
|
+
import { Heading } from 'react-aria-components'
|
|
4
5
|
import { Icon } from '~components/Icon'
|
|
5
6
|
import { assetUrl } from '~components/utils/hostedAssets'
|
|
6
7
|
import { StickerSheet } from '~storybook/components/StickerSheet'
|
|
@@ -253,18 +254,18 @@ export const StickerSheetVariants: Story = {
|
|
|
253
254
|
]}
|
|
254
255
|
/>
|
|
255
256
|
</StickerSheet.Row>
|
|
256
|
-
<StickerSheet.Row header="Education (
|
|
257
|
+
<StickerSheet.Row header="Education (Blue background)">
|
|
257
258
|
<TitleBlock
|
|
258
259
|
variant="education"
|
|
259
260
|
title="Education Variant"
|
|
260
|
-
subtitle="This is the education variant with
|
|
261
|
+
subtitle="This is the education variant with blue background"
|
|
261
262
|
breadcrumb={{
|
|
262
263
|
path: '#',
|
|
263
264
|
text: 'Back to courses',
|
|
264
265
|
}}
|
|
265
266
|
navigationTabs={[
|
|
266
|
-
<NavigationTab key="1" text="Lessons" href="#" active />,
|
|
267
|
-
<NavigationTab key="2" text="Assignments" href="#" />,
|
|
267
|
+
<NavigationTab key="1" variant="education" text="Lessons" href="#" active />,
|
|
268
|
+
<NavigationTab key="2" variant="education" text="Assignments" href="#" />,
|
|
268
269
|
]}
|
|
269
270
|
/>
|
|
270
271
|
</StickerSheet.Row>
|
|
@@ -301,6 +302,192 @@ export const StickerSheetVariants: Story = {
|
|
|
301
302
|
</StickerSheet>
|
|
302
303
|
),
|
|
303
304
|
}
|
|
305
|
+
export const StickerSheetDefaultAvatar: Story = {
|
|
306
|
+
name: 'Sticker Sheet (DefaultAvatar)',
|
|
307
|
+
render: () => (
|
|
308
|
+
<StickerSheet title="TitleBlock Variants">
|
|
309
|
+
<StickerSheet.Row header="Default (Purple background)">
|
|
310
|
+
<TitleBlock title="Default Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
311
|
+
</StickerSheet.Row>
|
|
312
|
+
<StickerSheet.Row header="Education (Blue background)">
|
|
313
|
+
<TitleBlock
|
|
314
|
+
variant="education"
|
|
315
|
+
title="Education Variant"
|
|
316
|
+
avatar={{ fullName: 'Blanca Wheeler' }}
|
|
317
|
+
/>
|
|
318
|
+
</StickerSheet.Row>
|
|
319
|
+
<StickerSheet.Row header="Admin (White background)">
|
|
320
|
+
<TitleBlock variant="admin" title="Admin Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
321
|
+
</StickerSheet.Row>
|
|
322
|
+
<StickerSheet.Row header="Light (White background)">
|
|
323
|
+
<TitleBlock variant="light" title="Light Variant" avatar={{ fullName: 'Blanca Wheeler' }} />
|
|
324
|
+
</StickerSheet.Row>
|
|
325
|
+
</StickerSheet>
|
|
326
|
+
),
|
|
327
|
+
}
|
|
328
|
+
export const StickerSheetVariantsWithSection: Story = {
|
|
329
|
+
name: 'Sticker Sheet (Variants With Section)',
|
|
330
|
+
render: () => (
|
|
331
|
+
<StickerSheet title="TitleBlock Variants">
|
|
332
|
+
<StickerSheet.Row header="Default (Purple background)">
|
|
333
|
+
<TitleBlock
|
|
334
|
+
title="Default Variant"
|
|
335
|
+
subtitle="This is the default purple variant with white text"
|
|
336
|
+
sectionTitle="Section title"
|
|
337
|
+
sectionTitleDescription="Description of section can go here"
|
|
338
|
+
navigationTabs={undefined}
|
|
339
|
+
surveyStatus={undefined}
|
|
340
|
+
/>
|
|
341
|
+
</StickerSheet.Row>
|
|
342
|
+
<StickerSheet.Row header="Education (Blue background)">
|
|
343
|
+
<TitleBlock
|
|
344
|
+
variant="education"
|
|
345
|
+
title="Education Variant"
|
|
346
|
+
subtitle="This is the education variant with blue background"
|
|
347
|
+
sectionTitle="Section title"
|
|
348
|
+
sectionTitleDescription="Description of section can go here"
|
|
349
|
+
navigationTabs={undefined}
|
|
350
|
+
surveyStatus={undefined}
|
|
351
|
+
/>
|
|
352
|
+
</StickerSheet.Row>
|
|
353
|
+
<StickerSheet.Row header="Admin (White background)">
|
|
354
|
+
<TitleBlock
|
|
355
|
+
variant="admin"
|
|
356
|
+
title="Admin Variant"
|
|
357
|
+
subtitle="This is the admin variant with white background"
|
|
358
|
+
sectionTitle="Section title"
|
|
359
|
+
sectionTitleDescription="Description of section can go here"
|
|
360
|
+
navigationTabs={undefined}
|
|
361
|
+
surveyStatus={undefined}
|
|
362
|
+
/>
|
|
363
|
+
</StickerSheet.Row>
|
|
364
|
+
<StickerSheet.Row header="Light (White background)">
|
|
365
|
+
<TitleBlock
|
|
366
|
+
variant="light"
|
|
367
|
+
title="Light Variant"
|
|
368
|
+
subtitle="This is the light variant with clean white background"
|
|
369
|
+
sectionTitle="Section title"
|
|
370
|
+
sectionTitleDescription="Description of section can go here"
|
|
371
|
+
navigationTabs={undefined}
|
|
372
|
+
surveyStatus={undefined}
|
|
373
|
+
/>
|
|
374
|
+
</StickerSheet.Row>
|
|
375
|
+
</StickerSheet>
|
|
376
|
+
),
|
|
377
|
+
}
|
|
378
|
+
export const StickerSheetVariantsWithSectionTitleOnly: Story = {
|
|
379
|
+
name: 'Sticker Sheet (Section Title Only)',
|
|
380
|
+
render: () => (
|
|
381
|
+
<StickerSheet title="TitleBlock Variants">
|
|
382
|
+
<StickerSheet.Row header="Default (Purple background)">
|
|
383
|
+
<TitleBlock
|
|
384
|
+
title="Default Variant"
|
|
385
|
+
subtitle="This is the default purple variant with white text"
|
|
386
|
+
sectionTitle="Section title"
|
|
387
|
+
sectionTitleDescription={undefined}
|
|
388
|
+
navigationTabs={undefined}
|
|
389
|
+
surveyStatus={undefined}
|
|
390
|
+
secondaryActions={undefined}
|
|
391
|
+
secondaryOverflowMenuItems={undefined}
|
|
392
|
+
primaryAction={undefined}
|
|
393
|
+
defaultAction={undefined}
|
|
394
|
+
/>
|
|
395
|
+
</StickerSheet.Row>
|
|
396
|
+
<StickerSheet.Row header="Education (Blue background)">
|
|
397
|
+
<TitleBlock
|
|
398
|
+
variant="education"
|
|
399
|
+
title="Education Variant"
|
|
400
|
+
subtitle="This is the education variant with blue background"
|
|
401
|
+
sectionTitle="Section title"
|
|
402
|
+
sectionTitleDescription={undefined}
|
|
403
|
+
navigationTabs={undefined}
|
|
404
|
+
surveyStatus={undefined}
|
|
405
|
+
secondaryActions={undefined}
|
|
406
|
+
secondaryOverflowMenuItems={undefined}
|
|
407
|
+
primaryAction={undefined}
|
|
408
|
+
defaultAction={undefined}
|
|
409
|
+
/>
|
|
410
|
+
</StickerSheet.Row>
|
|
411
|
+
<StickerSheet.Row header="Admin (White background)">
|
|
412
|
+
<TitleBlock
|
|
413
|
+
variant="admin"
|
|
414
|
+
title="Admin Variant"
|
|
415
|
+
subtitle="This is the admin variant with white background"
|
|
416
|
+
sectionTitle="Section title"
|
|
417
|
+
sectionTitleDescription={undefined}
|
|
418
|
+
navigationTabs={undefined}
|
|
419
|
+
surveyStatus={undefined}
|
|
420
|
+
secondaryActions={undefined}
|
|
421
|
+
secondaryOverflowMenuItems={undefined}
|
|
422
|
+
primaryAction={undefined}
|
|
423
|
+
defaultAction={undefined}
|
|
424
|
+
/>
|
|
425
|
+
</StickerSheet.Row>
|
|
426
|
+
<StickerSheet.Row header="Light (White background)">
|
|
427
|
+
<TitleBlock
|
|
428
|
+
variant="light"
|
|
429
|
+
title="Light Variant"
|
|
430
|
+
subtitle="This is the light variant with clean white background"
|
|
431
|
+
sectionTitle="Section title"
|
|
432
|
+
sectionTitleDescription={undefined}
|
|
433
|
+
navigationTabs={undefined}
|
|
434
|
+
surveyStatus={undefined}
|
|
435
|
+
secondaryActions={undefined}
|
|
436
|
+
secondaryOverflowMenuItems={undefined}
|
|
437
|
+
primaryAction={undefined}
|
|
438
|
+
defaultAction={undefined}
|
|
439
|
+
/>
|
|
440
|
+
</StickerSheet.Row>
|
|
441
|
+
</StickerSheet>
|
|
442
|
+
),
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export const StickerSheetVariantsWithCollapseNavigationAreaWhenPossible: Story = {
|
|
446
|
+
name: 'Sticker Sheet (Variants WithCollapseNavigationAreaWhenPossible)',
|
|
447
|
+
render: () => (
|
|
448
|
+
<StickerSheet title="TitleBlock Variants">
|
|
449
|
+
<StickerSheet.Row header="Default">
|
|
450
|
+
<TitleBlock
|
|
451
|
+
title="Default Variant"
|
|
452
|
+
subtitle={undefined}
|
|
453
|
+
breadcrumb={undefined}
|
|
454
|
+
navigationTabs={undefined}
|
|
455
|
+
collapseNavigationAreaWhenPossible={true}
|
|
456
|
+
/>
|
|
457
|
+
</StickerSheet.Row>
|
|
458
|
+
<StickerSheet.Row header="Education">
|
|
459
|
+
<TitleBlock
|
|
460
|
+
variant="education"
|
|
461
|
+
title="Education Variant"
|
|
462
|
+
subtitle={undefined}
|
|
463
|
+
breadcrumb={undefined}
|
|
464
|
+
navigationTabs={undefined}
|
|
465
|
+
collapseNavigationAreaWhenPossible={true}
|
|
466
|
+
/>
|
|
467
|
+
</StickerSheet.Row>
|
|
468
|
+
<StickerSheet.Row header="Admin">
|
|
469
|
+
<TitleBlock
|
|
470
|
+
variant="admin"
|
|
471
|
+
title="Admin Variant"
|
|
472
|
+
subtitle={undefined}
|
|
473
|
+
breadcrumb={undefined}
|
|
474
|
+
navigationTabs={undefined}
|
|
475
|
+
collapseNavigationAreaWhenPossible={true}
|
|
476
|
+
/>
|
|
477
|
+
</StickerSheet.Row>
|
|
478
|
+
<StickerSheet.Row header="Light">
|
|
479
|
+
<TitleBlock
|
|
480
|
+
variant="light"
|
|
481
|
+
title="Light Variant"
|
|
482
|
+
subtitle={undefined}
|
|
483
|
+
breadcrumb={undefined}
|
|
484
|
+
navigationTabs={undefined}
|
|
485
|
+
collapseNavigationAreaWhenPossible={true}
|
|
486
|
+
/>
|
|
487
|
+
</StickerSheet.Row>
|
|
488
|
+
</StickerSheet>
|
|
489
|
+
),
|
|
490
|
+
}
|
|
304
491
|
|
|
305
492
|
export const StickerSheetBreadcrumbs: Story = {
|
|
306
493
|
name: 'Sticker Sheet (Breadcrumb)',
|
|
@@ -442,10 +629,66 @@ export const WithSection: Story = {
|
|
|
442
629
|
},
|
|
443
630
|
args: {
|
|
444
631
|
title: 'A extra long title with over thirty characters so it truncates in a mobile viewport',
|
|
445
|
-
variant: 'light',
|
|
446
632
|
sectionTitle: 'Section title',
|
|
447
633
|
sectionTitleDescription: 'Description of section can go here',
|
|
448
634
|
navigationTabs: undefined,
|
|
449
635
|
surveyStatus: undefined,
|
|
450
636
|
},
|
|
451
637
|
}
|
|
638
|
+
export const WithCustomSectionTitleOnly: Story = {
|
|
639
|
+
parameters: {
|
|
640
|
+
viewport: viewports,
|
|
641
|
+
chromatic: chromaticViewports,
|
|
642
|
+
},
|
|
643
|
+
args: {
|
|
644
|
+
title: 'Page title',
|
|
645
|
+
renderSectionTitle: () => (
|
|
646
|
+
<div>
|
|
647
|
+
<Heading className="m-0">Custom Section Title</Heading>
|
|
648
|
+
</div>
|
|
649
|
+
),
|
|
650
|
+
navigationTabs: undefined,
|
|
651
|
+
surveyStatus: undefined,
|
|
652
|
+
secondaryActions: undefined,
|
|
653
|
+
secondaryOverflowMenuItems: undefined,
|
|
654
|
+
primaryAction: undefined,
|
|
655
|
+
defaultAction: undefined,
|
|
656
|
+
},
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export const WithTitleCollapseNavigationAreaWhenPossible: Story = {
|
|
660
|
+
parameters: {
|
|
661
|
+
viewport: viewports,
|
|
662
|
+
chromatic: chromaticViewports,
|
|
663
|
+
},
|
|
664
|
+
args: {
|
|
665
|
+
title: 'Page title',
|
|
666
|
+
navigationTabs: undefined,
|
|
667
|
+
surveyStatus: undefined,
|
|
668
|
+
primaryAction: undefined,
|
|
669
|
+
defaultAction: undefined,
|
|
670
|
+
secondaryActions: undefined,
|
|
671
|
+
secondaryOverflowMenuItems: undefined,
|
|
672
|
+
breadcrumb: undefined,
|
|
673
|
+
avatar: undefined,
|
|
674
|
+
collapseNavigationAreaWhenPossible: true,
|
|
675
|
+
},
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export const WithOnlySecondaryActions: Story = {
|
|
679
|
+
parameters: {
|
|
680
|
+
viewport: viewports,
|
|
681
|
+
chromatic: chromaticViewports,
|
|
682
|
+
},
|
|
683
|
+
args: {
|
|
684
|
+
title: 'Page title',
|
|
685
|
+
navigationTabs: undefined,
|
|
686
|
+
surveyStatus: undefined,
|
|
687
|
+
primaryAction: undefined,
|
|
688
|
+
defaultAction: undefined,
|
|
689
|
+
sectionTitle: undefined,
|
|
690
|
+
sectionTitleDescription: undefined,
|
|
691
|
+
breadcrumb: undefined,
|
|
692
|
+
avatar: undefined,
|
|
693
|
+
},
|
|
694
|
+
}
|