@zanichelli/albe-web-components 16.4.0-rc-2 → 16.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/{index-1bcf6013.js → index-22bdf239.js} +2 -2
- package/dist/cjs/index-22bdf239.js.map +1 -0
- package/dist/cjs/{index-59c3bcbe.js → index-6726b7d2.js} +2 -2
- package/dist/cjs/{index-59c3bcbe.js.map → index-6726b7d2.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +24 -3
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -10
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-th.cjs.entry.js +1 -1
- package/dist/cjs/z-tr.cjs.entry.js +2 -2
- package/dist/collection/beans/index.js.map +1 -1
- package/dist/collection/components/css-components/z-fab/index.stories.js.map +1 -1
- package/dist/collection/components/css-components/z-link/index.stories.js.map +1 -1
- package/dist/collection/components/date-picker/utils.js.map +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -1
- package/dist/collection/components/date-picker/z-date-picker/index.stories.js.map +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -1
- package/dist/collection/components/date-picker/z-range-picker/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -1
- package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js.map +1 -1
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file/index.stories.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.stories.js.map +1 -1
- package/dist/collection/components/index.js.map +1 -1
- package/dist/collection/components/list/z-list/index.js.map +1 -1
- package/dist/collection/components/list/z-list/index.stories.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.js.map +1 -1
- package/dist/collection/components/list/z-list-element/index.stories.js.map +1 -1
- package/dist/collection/components/list/z-list-group/index.js.map +1 -1
- package/dist/collection/components/list/z-list-group/index.stories.js.map +1 -1
- package/dist/collection/components/table/cells/z-td/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-th/index.js.map +1 -1
- package/dist/collection/components/table/cells/z-th/styles.css +1 -1
- package/dist/collection/components/table/z-table/index.js.map +1 -1
- package/dist/collection/components/table/z-table/index.stories.js.map +1 -1
- package/dist/collection/components/table/z-tbody/index.js.map +1 -1
- package/dist/collection/components/table/z-tfoot/index.js.map +1 -1
- package/dist/collection/components/table/z-thead/index.js.map +1 -1
- package/dist/collection/components/table/z-tr/index.js.map +1 -1
- package/dist/collection/components/z-accordion/index.js.map +1 -1
- package/dist/collection/components/z-accordion/index.stories.js.map +1 -1
- package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
- package/dist/collection/components/z-anchor-navigation/index.stories.js.map +1 -1
- package/dist/collection/components/z-app-header/index.js.map +1 -1
- package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
- package/dist/collection/components/z-aria-alert/index.js.map +1 -1
- package/dist/collection/components/z-aria-alert/index.stories.js.map +1 -1
- package/dist/collection/components/z-avatar/index.js.map +1 -1
- package/dist/collection/components/z-avatar/index.stories.js.map +1 -1
- package/dist/collection/components/z-book-card/index.js.map +1 -1
- package/dist/collection/components/z-book-card/index.stories.js.map +1 -1
- package/dist/collection/components/z-breadcrumb/index.js.map +1 -1
- package/dist/collection/components/z-breadcrumb/index.stories.js.map +1 -1
- package/dist/collection/components/z-button/index.js.map +1 -1
- package/dist/collection/components/z-button/index.stories.js.map +1 -1
- package/dist/collection/components/z-button-sort/index.js.map +1 -1
- package/dist/collection/components/z-button-sort/index.stories.js.map +1 -1
- package/dist/collection/components/z-card/index.js.map +1 -1
- package/dist/collection/components/z-card/index.stories.js.map +1 -1
- package/dist/collection/components/z-carousel/index.js.map +1 -1
- package/dist/collection/components/z-carousel/index.stories.js.map +1 -1
- package/dist/collection/components/z-chip/index.js.map +1 -1
- package/dist/collection/components/z-chip/index.stories.js.map +1 -1
- package/dist/collection/components/z-combobox/index.js.map +1 -1
- package/dist/collection/components/z-combobox/index.stories.js.map +1 -1
- package/dist/collection/components/z-cover-hero/index.js.map +1 -1
- package/dist/collection/components/z-cover-hero/index.stories.js.map +1 -1
- package/dist/collection/components/z-divider/index.js.map +1 -1
- package/dist/collection/components/z-divider/index.stories.js.map +1 -1
- package/dist/collection/components/z-ghost-loading/index.js.map +1 -1
- package/dist/collection/components/z-ghost-loading/index.stories.js.map +1 -1
- package/dist/collection/components/z-icon/index.js.map +1 -1
- package/dist/collection/components/z-icon/index.stories.js.map +1 -1
- package/dist/collection/components/z-info-box/index.js.map +1 -1
- package/dist/collection/components/z-info-box/index.stories.js.map +1 -1
- package/dist/collection/components/z-info-reveal/index.js.map +1 -1
- package/dist/collection/components/z-info-reveal/index.stories.js.map +1 -1
- package/dist/collection/components/z-input/index.js.map +1 -1
- package/dist/collection/components/z-input/index.stories.js.map +1 -1
- package/dist/collection/components/z-input-message/index.js.map +1 -1
- package/dist/collection/components/z-input-message/index.stories.js.map +1 -1
- package/dist/collection/components/z-logo/index.js.map +1 -1
- package/dist/collection/components/z-logo/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu/index.js.map +1 -1
- package/dist/collection/components/z-menu/index.stories.js.map +1 -1
- package/dist/collection/components/z-menu/styles.css +1 -0
- package/dist/collection/components/z-menu-section/index.js.map +1 -1
- package/dist/collection/components/z-menu-section/index.stories.js.map +1 -1
- package/dist/collection/components/z-modal/index.js +4 -10
- package/dist/collection/components/z-modal/index.js.map +1 -1
- package/dist/collection/components/z-modal/index.stories.js.map +1 -1
- package/dist/collection/components/z-navigation-tabs/index.js.map +1 -1
- package/dist/collection/components/z-navigation-tabs/index.stories.js.map +1 -1
- package/dist/collection/components/z-notification/index.js.map +1 -1
- package/dist/collection/components/z-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-offcanvas/index.js +27 -3
- package/dist/collection/components/z-offcanvas/index.js.map +1 -1
- package/dist/collection/components/z-offcanvas/index.stories.js +12 -46
- package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -1
- package/dist/collection/components/z-offcanvas/styles.css +10 -15
- package/dist/collection/components/z-pagination/index.js.map +1 -1
- package/dist/collection/components/z-pagination/index.stories.js.map +1 -1
- package/dist/collection/components/z-panel-elem/index.js.map +1 -1
- package/dist/collection/components/z-panel-elem/index.stories.js.map +1 -1
- package/dist/collection/components/z-popover/index.js.map +1 -1
- package/dist/collection/components/z-popover/index.stories.js.map +1 -1
- package/dist/collection/components/z-searchbar/index.js.map +1 -1
- package/dist/collection/components/z-searchbar/index.stories.js.map +1 -1
- package/dist/collection/components/z-section-title/index.js.map +1 -1
- package/dist/collection/components/z-section-title/index.stories.js.map +1 -1
- package/dist/collection/components/z-select/index.js.map +1 -1
- package/dist/collection/components/z-select/index.stories.js.map +1 -1
- package/dist/collection/components/z-skip-to-content/index.js.map +1 -1
- package/dist/collection/components/z-skip-to-content/index.stories.js.map +1 -1
- package/dist/collection/components/z-stepper/index.js.map +1 -1
- package/dist/collection/components/z-stepper/index.stories.js.map +1 -1
- package/dist/collection/components/z-stepper-item/index.js.map +1 -1
- package/dist/collection/components/z-stepper-item/index.stories.js.map +1 -1
- package/dist/collection/components/z-tag/index.js.map +1 -1
- package/dist/collection/components/z-tag/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-toast-notification-list/index.js.map +1 -1
- package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -1
- package/dist/collection/components/z-toggle-button/index.js.map +1 -1
- package/dist/collection/components/z-toggle-button/index.stories.js.map +1 -1
- package/dist/collection/components/z-toggle-switch/index.js.map +1 -1
- package/dist/collection/components/z-toggle-switch/index.stories.js.map +1 -1
- package/dist/collection/components/z-tooltip/index.js.map +1 -1
- package/dist/collection/components/z-tooltip/index.stories.js.map +1 -1
- package/dist/collection/components/z-visually-hidden/index.js.map +1 -1
- package/dist/collection/components/z-visually-hidden/index.stories.js.map +1 -1
- package/dist/collection/constants/breakpoints.js.map +1 -1
- package/dist/collection/constants/icons.js.map +1 -1
- package/dist/collection/constants/iconset.js +12 -0
- package/dist/collection/constants/iconset.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -1
- package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -1
- package/dist/collection/utils/storybook-utils.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/iconset.js +12 -0
- package/dist/components/iconset.js.map +1 -1
- package/dist/components/index15.js +4 -10
- package/dist/components/index15.js.map +1 -1
- package/dist/components/index21.js +13 -4
- package/dist/components/index21.js.map +1 -1
- package/dist/components/z-menu.js +1 -1
- package/dist/components/z-menu.js.map +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-th.js.map +1 -1
- package/dist/docs/grid/index.stories.js +54 -0
- package/dist/docs/grid/index.stories.js.map +1 -0
- package/dist/docs/iconset/index.stories.js +32 -0
- package/dist/docs/iconset/index.stories.js.map +1 -0
- package/dist/docs/themes/index.stories.js +90 -0
- package/dist/docs/themes/index.stories.js.map +1 -0
- package/dist/docs/typography/index.stories.js +186 -0
- package/dist/docs/typography/index.stories.js.map +1 -0
- package/dist/esm/{index-fcf764b5.js → index-681cc2b7.js} +2 -2
- package/dist/esm/index-681cc2b7.js.map +1 -0
- package/dist/esm/{index-2b5c2515.js → index-7b64c875.js} +2 -2
- package/dist/esm/{index-2b5c2515.js.map → index-7b64c875.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +24 -3
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +4 -10
- package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-menu.entry.js.map +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-th.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +2 -2
- package/dist/types/components/z-modal/index.d.ts +0 -1
- package/dist/types/components/z-offcanvas/index.d.ts +5 -0
- package/dist/types/components/z-offcanvas/index.stories.d.ts +4 -6
- package/dist/types/components.d.ts +2 -2
- package/dist/types/constants/iconset.d.ts +24 -0
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/grid/index.stories.d.ts +9 -0
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/iconset/index.stories.d.ts +11 -0
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/themes/index.stories.d.ts +27 -0
- package/dist/types/home/runner/work/design-system/design-system/.stencil/docs/typography/index.stories.d.ts +96 -0
- package/dist/web-components-library/{p-6531d14a.entry.js → p-0c489c4b.entry.js} +2 -2
- package/dist/web-components-library/p-11df2c0a.entry.js +2 -0
- package/dist/web-components-library/p-11df2c0a.entry.js.map +1 -0
- package/dist/web-components-library/{p-cce46031.js → p-13366542.js} +2 -2
- package/dist/web-components-library/p-456f984f.js +2 -0
- package/dist/web-components-library/p-456f984f.js.map +1 -0
- package/dist/web-components-library/p-6b791915.entry.js +2 -0
- package/dist/web-components-library/p-8d443cac.entry.js +2 -0
- package/dist/web-components-library/p-b20bfb34.entry.js +2 -0
- package/dist/web-components-library/p-b20bfb34.entry.js.map +1 -0
- package/dist/web-components-library/p-ceb4403d.entry.js +2 -0
- package/dist/web-components-library/p-ceb4403d.entry.js.map +1 -0
- package/dist/web-components-library/web-components-library.css +529 -28
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/{p-6531d14a.entry.js → p-0c489c4b.entry.js} +2 -2
- package/www/build/p-11df2c0a.entry.js +2 -0
- package/www/build/p-11df2c0a.entry.js.map +1 -0
- package/www/build/{p-cce46031.js → p-13366542.js} +2 -2
- package/www/build/p-1fcf4111.js +2 -0
- package/www/build/p-456f984f.js +2 -0
- package/www/build/p-456f984f.js.map +1 -0
- package/www/build/p-6b791915.entry.js +2 -0
- package/www/build/p-8d443cac.entry.js +2 -0
- package/www/build/p-b20bfb34.entry.js +2 -0
- package/www/build/p-b20bfb34.entry.js.map +1 -0
- package/www/build/p-ceb4403d.entry.js +2 -0
- package/www/build/p-ceb4403d.entry.js.map +1 -0
- package/www/build/{p-ae0a33a2.css → p-d9dbe303.css} +529 -28
- package/www/build/web-components-library.css +529 -28
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/index-1bcf6013.js.map +0 -1
- package/dist/esm/index-fcf764b5.js.map +0 -1
- package/dist/web-components-library/p-0c813477.entry.js +0 -2
- package/dist/web-components-library/p-0c813477.entry.js.map +0 -1
- package/dist/web-components-library/p-26ac8973.entry.js +0 -2
- package/dist/web-components-library/p-26ac8973.entry.js.map +0 -1
- package/dist/web-components-library/p-47bf778e.js +0 -2
- package/dist/web-components-library/p-47bf778e.js.map +0 -1
- package/dist/web-components-library/p-67896876.entry.js +0 -2
- package/dist/web-components-library/p-822a2097.entry.js +0 -2
- package/dist/web-components-library/p-b72a4b5e.entry.js +0 -2
- package/dist/web-components-library/p-b72a4b5e.entry.js.map +0 -1
- package/www/build/p-0c813477.entry.js +0 -2
- package/www/build/p-0c813477.entry.js.map +0 -1
- package/www/build/p-26ac8973.entry.js +0 -2
- package/www/build/p-26ac8973.entry.js.map +0 -1
- package/www/build/p-47bf778e.js +0 -2
- package/www/build/p-47bf778e.js.map +0 -1
- package/www/build/p-67896876.entry.js +0 -2
- package/www/build/p-822a2097.entry.js +0 -2
- package/www/build/p-88640e60.js +0 -2
- package/www/build/p-b72a4b5e.entry.js +0 -2
- package/www/build/p-b72a4b5e.entry.js.map +0 -1
- /package/dist/web-components-library/{p-6531d14a.entry.js.map → p-0c489c4b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-cce46031.js.map → p-13366542.js.map} +0 -0
- /package/dist/web-components-library/{p-67896876.entry.js.map → p-6b791915.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-822a2097.entry.js.map → p-8d443cac.entry.js.map} +0 -0
- /package/www/build/{p-6531d14a.entry.js.map → p-0c489c4b.entry.js.map} +0 -0
- /package/www/build/{p-cce46031.js.map → p-13366542.js.map} +0 -0
- /package/www/build/{p-67896876.entry.js.map → p-6b791915.entry.js.map} +0 -0
- /package/www/build/{p-822a2097.entry.js.map → p-8d443cac.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,a as s,g as o}from"./p-75c4a726.js";import{g as n}from"./p-1c24255c.js";import{a}from"./p-90908f36.js";import"./p-5145a606.js";const h=':host,::slotted(*),*{box-sizing:border-box;outline:none}:host{position:relative;display:inline-flex;height:fit-content;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{position:relative;display:flex;width:100%;align-items:center;padding:0;border:0;border-bottom:var(--border-size-large) solid transparent;margin:0;background:transparent;border-radius:0;color:inherit;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-visible,div.menu-label:focus-within{box-shadow:var(--shadow-focus-primary)}:host(:is([active],[open])) .menu-label ::slotted(*),.menu-label:focus-visible ::slotted(*),div.menu-label:focus-within ::slotted(*){color:var(--color-primary01);font-weight:var(--font-bd)}:host([vertical-context]) .menu-label{padding:var(--space-unit) 0;border-width:var(--border-size-small);border-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label,.menu-label:hover,.menu-label:focus-visible,div.menu-label:focus-within{border-color:var(--color-secondary01)}:host([vertical-context]:is([active],[open])) .menu-label::after,:host([vertical-context]) .menu-label:hover::after,:host([vertical-context]) .menu-label:focus-visible::after,:host([vertical-context]) div.menu-label:focus-within::after{position:absolute;bottom:0;left:0;width:100%;height:var(--border-size-large);background-color:var(--color-secondary01);content:""}:host([vertical-context]) .menu-label ::slotted(*){padding:0}.menu-label ::slotted(*){display:inline-flex;width:100%;min-width:fit-content;padding-bottom:2px;margin:0;appearance:none;color:var(--z-menu-label-color, var(--color-default-text));font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:inherit;line-height:1.5;white-space:nowrap}.menu-label z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:var(--color-default-icon)}::slotted([data-text]:not([slot]))::after{height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text]:not([slot]))::after{display:none}}::slotted([data-text]:not([slot])){display:inline-flex;flex-direction:column}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]:not([vertical-context])) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:0 calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot="header"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot="header"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot="item"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.items>::slotted([slot="item"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot="item"]:not(z-menu-section)){padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface03)}:host(:not([vertical-context])) .items>::slotted([slot="item"]:last-child){border-bottom:0}.items>::slotted([slot="item"]:hover),.items>::slotted([slot="item"]:focus:focus-visible),.items>::slotted([slot="item"]:active){border-color:var(--color-secondary01);font-weight:var(--font-bd)}';const r=h;const l=t=>(t===null||t===void 0?void 0:t.tagName)==="Z-MENU-SECTION";const c=class{get focusableItem(){return this.items.find((t=>l(t)?t.htmlTabindex===0:t.tabIndex===0))}toggle(){if(!this.hasContent){return}this.open=!this.open}onLabelSlotChange(t){const i=t.target.assignedElements()[0];i.dataset.text=i===null||i===void 0?void 0:i.textContent;this.setLabelA11yAttrs()}reflow(t=false){if(!this.floating){return}if(this.content&&this.hasContent){const{style:t}=this.content;const{left:i}=this.host.getBoundingClientRect();const e=getComputedStyle(this.content).width;const s=e?parseFloat(e.replace("px","")):375;const o=30;t.left=`${Math.min(window.innerWidth-i-s-o,0)}px`}if(t){this.raf=requestAnimationFrame(this.reflow.bind(this,t))}}checkContent(){this.hasHeader=!!this.host.querySelectorAll("[slot=header]").length;this.hasContent=!!this.host.querySelectorAll("[slot=item]").length||this.hasHeader}setItemTabindex(t,i){if(l(t)){t.htmlTabindex=i}else{t.tabIndex=i}}setItemsA11yAttrs(){this.items.forEach(((t,i)=>{const e=i===0?0:-1;this.setItemTabindex(t,e);if(!l(t)){t.setAttribute("role","menuitem")}}))}onItemsChange(){this.checkContent();this.items=Array.from(this.host.children).filter((({slot:t})=>t==="item"));this.setItemsA11yAttrs();this.items.forEach((t=>{if(!l(t)){t.dataset.text=t.textContent}}))}moveFocus(t,i){if(l(t)){t.setFocus()}else{t.tabIndex=0;setTimeout((()=>{t.focus()}),100)}if(!i){return}this.setItemTabindex(i,-1)}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===n.ENTER||t.key===n.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.moveFocus(this.items[0])}return}if(!this.verticalContext){return}if(t.key===n.ARROW_RIGHT&&!this.open){t.preventDefault();t.stopPropagation();this.open=true;this.moveFocus(this.items[0])}}async setFocus(){this.htmlTabindex=0;const t=this.hasContent?this.labelButton:this.host.firstElementChild;t.focus()}async focusLastItem(){const t=this.items[this.items.length-1];if(l(t)&&t.open){t.focusLastItem();return}this.moveFocus(t)}onOpenChanged(){if(!this.open){cancelAnimationFrame(this.raf);this.closed.emit();this.items.forEach((t=>{if(l(t)&&t.open){t.open=false}}));return}this.setItemsA11yAttrs();this.opened.emit();if(this.floating){this.reflow(true)}}setLabelA11yAttrs(){if(this.hasContent&&this.labelButton){this.labelButton.tabIndex=this.htmlTabindex;return}const t=this.host.firstElementChild;t.role="menuitem";t.tabIndex=this.htmlTabindex}onItemClick(t){const i=this.items.find((i=>a(i,t.target)));if(i){this.items.forEach((t=>{if(t===i){return}if(l(t)){t.htmlTabindex=-1}else{t.tabIndex=-1}}))}}onKeyDown(t){var i;if(!this.hasContent){return}switch(t.key){case n.ESC:if(!this.open){break}t.stopPropagation();t.preventDefault();this.open=false;this.setFocus();break;case n.ARROW_DOWN:{if(document.activeElement===this.host){if(this.verticalContext&&!this.open){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[0]);break}const i=this.items.indexOf(this.focusableItem);if(this.verticalContext&&i===this.items.length-1){this.setItemTabindex(this.items[i],-1);this.htmlTabindex=0;break}t.stopPropagation();t.preventDefault();const e=this.items[i+1];this.moveFocus(e!==null&&e!==void 0?e:this.items[0],this.focusableItem);break}case n.ARROW_UP:{if(document.activeElement===this.host){if(this.verticalContext){break}t.stopPropagation();t.preventDefault();if(!this.open){this.open=true}this.moveFocus(this.items[this.items.length-1],this.focusableItem);break}t.stopPropagation();t.preventDefault();const e=this.items.indexOf(this.focusableItem);if(e===0&&this.verticalContext){this.setItemTabindex(this.focusableItem,-1);this.setFocus();break}const s=(i=this.items[e-1])!==null&&i!==void 0?i:this.items[this.items.length-1];if(l(s)&&s.open){this.setItemTabindex(this.focusableItem,-1);s.focusLastItem();break}this.moveFocus(s,this.focusableItem);break}case n.ARROW_LEFT:if(!this.open||!this.verticalContext){break}t.preventDefault();t.stopPropagation();this.open=false;this.setFocus()}}constructor(e){t(this,e);this.opened=i(this,"opened",7);this.closed=i(this,"closed",7);this.items=[];this.active=undefined;this.floating=true;this.open=false;this.verticalContext=false;this.htmlTabindex=-1;this.hasHeader=undefined;this.hasContent=undefined;this.toggle=this.toggle.bind(this);this.checkContent=this.checkContent.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this)}componentWillLoad(){this.setLabelA11yAttrs();this.onItemsChange()}render(){if(!this.hasContent){return e("div",{class:"menu-label"},e("slot",{onSlotchange:this.onLabelSlotChange}))}return e(s,null,e("button",{ref:t=>this.labelButton=t,class:"menu-label","aria-expanded":`${!!this.open}`,"aria-haspopup":`${this.hasContent}`,"aria-label":this.open?"Chiudi menù":"Apri menù",role:"menuitem",tabIndex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},e("slot",{onSlotchange:this.onLabelSlotChange}),e("z-icon",{name:this.open?"chevron-up":"chevron-down"})),e("div",{class:"content",ref:t=>this.content=t},this.hasHeader&&e("header",{class:"header"},e("slot",{name:"header",onSlotchange:this.checkContent})),e("div",{class:"items",role:"menu"},e("slot",{name:"item",onSlotchange:this.onItemsChange}))))}get host(){return o(this)}static get watchers(){return{open:["onOpenChanged"],htmlTabindex:["setLabelA11yAttrs"]}}};c.style=r;export{c as z_menu};
|
|
2
|
+
//# sourceMappingURL=p-ceb4403d.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesCss","ZMenuStyle0","isZMenuSection","el","tagName","ZMenu","focusableItem","this","items","find","item","htmlTabindex","tabIndex","toggle","hasContent","open","onLabelSlotChange","ev","labelElement","target","assignedElements","dataset","text","textContent","setLabelA11yAttrs","reflow","live","floating","content","style","left","host","getBoundingClientRect","widthPx","getComputedStyle","width","parseFloat","replace","safeScrollbarSpace","Math","min","window","innerWidth","raf","requestAnimationFrame","bind","checkContent","hasHeader","querySelectorAll","length","setItemTabindex","setItemsA11yAttrs","forEach","index","tabindex","setAttribute","onItemsChange","Array","from","children","filter","slot","moveFocus","receiver","current","setFocus","setTimeout","focus","onLabelClick","onLabelKeydown","key","KeyboardCode","ENTER","SPACE","preventDefault","stopPropagation","verticalContext","ARROW_RIGHT","label","labelButton","firstElementChild","focusLastItem","lastItem","onOpenChanged","cancelAnimationFrame","closed","emit","opened","slottedLabel","role","onItemClick","clickedItem","containsElement","onKeyDown","ESC","ARROW_DOWN","document","activeElement","currentIndex","indexOf","ARROW_UP","_a","ARROW_LEFT","constructor","hostRef","componentWillLoad","render","h","class","onSlotchange","Host","ref","onClick","name"],"sources":["src/components/z-menu/styles.css?tag=z-menu&encapsulation=shadow","src/components/z-menu/index.tsx"],"sourcesContent":[":host,\n::slotted(*),\n* {\n box-sizing: border-box;\n outline: none;\n}\n\n:host {\n --z-menu-label-color: ;\n\n position: relative;\n display: inline-flex;\n height: fit-content;\n flex-direction: column;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.menu-label {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n padding: 0;\n border: 0;\n border-bottom: var(--border-size-large) solid transparent;\n margin: 0;\n background: transparent;\n border-radius: 0;\n color: inherit;\n text-align: left;\n}\n\nbutton.menu-label {\n cursor: pointer;\n}\n\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n box-shadow: var(--shadow-focus-primary);\n}\n\n:host(:is([active], [open])) .menu-label ::slotted(*),\n.menu-label:focus-visible ::slotted(*),\ndiv.menu-label:focus-within ::slotted(*) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n\n:host([vertical-context]) .menu-label {\n padding: var(--space-unit) 0;\n border-width: var(--border-size-small);\n border-color: var(--color-surface03);\n}\n\n:host(:is([active], [open])) .menu-label,\n.menu-label:hover,\n.menu-label:focus-visible,\ndiv.menu-label:focus-within {\n border-color: var(--color-secondary01);\n}\n\n:host([vertical-context]:is([active], [open])) .menu-label::after,\n:host([vertical-context]) .menu-label:hover::after,\n:host([vertical-context]) .menu-label:focus-visible::after,\n:host([vertical-context]) div.menu-label:focus-within::after {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--border-size-large);\n background-color: var(--color-secondary01);\n content: \"\";\n}\n\n:host([vertical-context]) .menu-label ::slotted(*) {\n padding: 0;\n}\n\n.menu-label ::slotted(*) {\n display: inline-flex;\n width: 100%;\n min-width: fit-content;\n padding-bottom: 2px;\n margin: 0;\n appearance: none;\n color: var(--z-menu-label-color, var(--color-default-text));\n font-family: var(--font-family-sans);\n font-size: var(--font-size-3);\n font-weight: inherit;\n line-height: 1.5;\n white-space: nowrap;\n}\n\n.menu-label z-icon {\n margin-left: calc(var(--space-unit) * 1.5);\n fill: var(--color-default-icon);\n}\n\n/* Prevents layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text]:not([slot]))::after {\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text]:not([slot]))::after {\n display: none;\n }\n}\n\n::slotted([data-text]:not([slot])) {\n display: inline-flex;\n flex-direction: column;\n}\n\n.content {\n background: var(--color-surface01);\n}\n\n:host(:not([open])) .content {\n display: none;\n}\n\n:host([floating]:not([vertical-context])) .content {\n position: absolute;\n top: 100%;\n left: 0;\n width: 375px;\n min-width: 100%;\n max-width: 100vw;\n padding: 0 calc(var(--space-unit) * 2);\n box-shadow: var(--shadow-2);\n}\n\n:host(:not([floating])) .content {\n width: 100%;\n}\n\n.header {\n display: flex;\n align-items: center;\n padding: var(--space-unit) 0 calc(var(--space-unit) * 2);\n}\n\n.header ::slotted(img[slot=\"header\"]) {\n width: calc(var(--space-unit) * 11.25);\n height: auto;\n object-fit: contain;\n}\n\n.header ::slotted([slot=\"header\"]:not(:first-child)) {\n margin: auto 0;\n margin-left: calc(var(--space-unit) * 2.5);\n font-size: var(--font-size-3);\n font-weight: var(--font-sb);\n line-height: 1.5;\n}\n\n.items {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n background: inherit;\n}\n\n.items > ::slotted([slot=\"item\"]) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.items > ::slotted([slot=\"item\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.items > ::slotted([slot=\"item\"]:not(z-menu-section)) {\n padding: var(--space-unit) 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n}\n\n:host(:not([vertical-context])) .items > ::slotted([slot=\"item\"]:last-child) {\n border-bottom: 0;\n}\n\n.items > ::slotted([slot=\"item\"]:hover),\n.items > ::slotted([slot=\"item\"]:focus:focus-visible),\n.items > ::slotted([slot=\"item\"]:active) {\n border-color: var(--color-secondary01);\n font-weight: var(--font-bd);\n}\n","import {Component, Element, Event, EventEmitter, Host, Listen, Method, Prop, State, Watch, h} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\nimport {containsElement} from \"../../utils/utils\";\n\nconst isZMenuSection = (el: HTMLElement | HTMLZMenuSectionElement): el is HTMLZMenuSectionElement =>\n el?.tagName === \"Z-MENU-SECTION\";\n\n/**\n * @slot - Menu label\n * @slot header - Header to display as the first entry of the open menu.\n * @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Set the `active` HTML attribute on the element to highlight it. Use `z-menu-section` for submenus.\n * @cssprop --z-menu-label-color - Color of the label's text.\n */\n@Component({\n tag: \"z-menu\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenu {\n @Element() host: HTMLZMenuElement;\n\n /** Flag to set the active status of the menu. */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Flag to set the display mode of the list.\n * If true, the list will be absolutely positioned under the menu label,\n * stacked beneath it otherwise.\n */\n @Prop({reflect: true})\n floating? = true;\n\n /** The opening state of the menu. */\n @Prop({mutable: true, reflect: true})\n open = false;\n\n /**\n * Tells the component that it's placed in a vertical context with other `ZMenu`s (usually in the ZAppHeader's offcanvas).\n * A small border is placed under it as a separator from other elements.\n */\n @Prop({reflect: true})\n verticalContext = false;\n\n /**\n * Tabindex value to set on the menu label.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZAppHeader).\n */\n @Prop()\n htmlTabindex = -1;\n\n @State()\n hasHeader: boolean;\n\n @State()\n hasContent: boolean;\n\n /** The menu has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The menu has been closed. */\n @Event()\n closed: EventEmitter;\n\n private labelButton: HTMLButtonElement;\n\n private content: HTMLElement;\n\n private items: (HTMLElement | HTMLZMenuSectionElement)[] = [];\n\n /** Animation frame request id. */\n private raf: number;\n\n private get focusableItem(): HTMLZMenuSectionElement | HTMLElement | null {\n return this.items.find((item) => (isZMenuSection(item) ? item.htmlTabindex === 0 : item.tabIndex === 0));\n }\n\n private toggle(): void {\n if (!this.hasContent) {\n return;\n }\n\n this.open = !this.open;\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n this.setLabelA11yAttrs();\n }\n\n /**\n * Correctly set position of the floating menu in order to prevent overflow.\n * @param live Should run the method on every refresh frame.\n */\n private reflow(live = false): void {\n if (!this.floating) {\n return;\n }\n\n if (this.content && this.hasContent) {\n const {style} = this.content;\n const {left} = this.host.getBoundingClientRect();\n const widthPx = getComputedStyle(this.content).width;\n const width = widthPx ? parseFloat(widthPx.replace(\"px\", \"\")) : 375;\n const safeScrollbarSpace = 30;\n style.left = `${Math.min(window.innerWidth - left - width - safeScrollbarSpace, 0)}px`;\n }\n if (live) {\n this.raf = requestAnimationFrame(this.reflow.bind(this, live));\n }\n }\n\n /**\n * Check if some content slot is set.\n */\n private checkContent(): void {\n this.hasHeader = !!this.host.querySelectorAll(\"[slot=header]\").length;\n this.hasContent = !!this.host.querySelectorAll(\"[slot=item]\").length || this.hasHeader;\n }\n\n private setItemTabindex(item: HTMLElement | HTMLZMenuSectionElement, tabIndex: number): void {\n if (isZMenuSection(item)) {\n item.htmlTabindex = tabIndex;\n } else {\n item.tabIndex = tabIndex;\n }\n }\n\n /**\n * Set `menuitem` role to all menu items (ZMenuSection items already have it).\n * Set -1 to the tabindex of the items and 0 to the first one.\n */\n private setItemsA11yAttrs(): void {\n this.items.forEach((item, index) => {\n const tabindex = index === 0 ? 0 : -1;\n this.setItemTabindex(item, tabindex);\n if (!isZMenuSection(item)) {\n item.setAttribute(\"role\", \"menuitem\");\n }\n });\n }\n\n private onItemsChange(): void {\n this.checkContent();\n this.items = Array.from(this.host.children).filter(({slot}) => slot === \"item\") as HTMLElement[];\n this.setItemsA11yAttrs();\n this.items.forEach((item) => {\n if (!isZMenuSection(item)) {\n item.dataset.text = item.textContent;\n }\n });\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n * If the receiver is a ZMenuSection and it's open, focus its first focusable item.\n */\n private moveFocus(\n receiver: HTMLElement | HTMLZMenuSectionElement,\n current?: HTMLElement | HTMLZMenuSectionElement\n ): void {\n if (isZMenuSection(receiver)) {\n receiver.setFocus();\n } else {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n }\n if (!current) {\n return;\n }\n\n this.setItemTabindex(current, -1);\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.moveFocus(this.items[0]);\n }\n\n return;\n }\n\n if (!this.verticalContext) {\n return;\n }\n\n if (ev.key === KeyboardCode.ARROW_RIGHT && !this.open) {\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.moveFocus(this.items[0]);\n }\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n const label = this.hasContent ? this.labelButton : (this.host.firstElementChild as HTMLElement);\n label.focus();\n }\n\n /**\n * Focus the last item.\n */\n @Method()\n async focusLastItem(): Promise<void> {\n const lastItem = this.items[this.items.length - 1];\n if (isZMenuSection(lastItem) && lastItem.open) {\n lastItem.focusLastItem();\n\n return;\n }\n\n this.moveFocus(lastItem);\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n if (!this.open) {\n cancelAnimationFrame(this.raf);\n this.closed.emit();\n this.items.forEach((item) => {\n if (isZMenuSection(item) && item.open) {\n item.open = false;\n }\n });\n\n return;\n }\n\n this.setItemsA11yAttrs();\n this.opened.emit();\n if (this.floating) {\n this.reflow(true);\n }\n }\n\n @Watch(\"htmlTabindex\")\n setLabelA11yAttrs(): void {\n if (this.hasContent && this.labelButton) {\n this.labelButton.tabIndex = this.htmlTabindex;\n\n return;\n }\n\n const slottedLabel = this.host.firstElementChild as HTMLElement;\n slottedLabel.role = \"menuitem\";\n slottedLabel.tabIndex = this.htmlTabindex;\n }\n\n /**\n * Set tabindex to -1 to all siblings of the clicked item.\n */\n @Listen(\"click\", {target: \"document\"})\n onItemClick(ev: MouseEvent): void {\n const clickedItem = this.items.find((item) => containsElement(item, ev.target as HTMLElement));\n if (clickedItem) {\n this.items.forEach((item) => {\n if (item === clickedItem) {\n return;\n }\n\n if (isZMenuSection(item)) {\n item.htmlTabindex = -1;\n } else {\n item.tabIndex = -1;\n }\n });\n }\n }\n\n @Listen(\"keydown\")\n onKeyDown(ev: KeyboardEvent): void {\n if (!this.hasContent) {\n return;\n }\n\n switch (ev.key) {\n case KeyboardCode.ESC:\n if (!this.open) {\n break;\n }\n ev.stopPropagation();\n ev.preventDefault();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (document.activeElement === this.host) {\n if (this.verticalContext && !this.open) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[0]);\n break;\n }\n\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (this.verticalContext && currentIndex === this.items.length - 1) {\n // navigation is going to leave this menu. restore tabindex to the label and let the parent handle it\n this.setItemTabindex(this.items[currentIndex], -1);\n this.htmlTabindex = 0;\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const receiver = this.items[currentIndex + 1];\n // if the last item is already focused, navigate to the first one\n this.moveFocus(receiver ?? this.items[0], this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (document.activeElement === this.host) {\n if (this.verticalContext) {\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n // open the menu and focus the last item\n if (!this.open) {\n this.open = true;\n }\n this.moveFocus(this.items[this.items.length - 1], this.focusableItem);\n break;\n }\n\n ev.stopPropagation();\n ev.preventDefault();\n const currentIndex = this.items.indexOf(this.focusableItem);\n if (currentIndex === 0 && this.verticalContext) {\n this.setItemTabindex(this.focusableItem, -1);\n this.setFocus();\n break;\n }\n\n const receiver = this.items[currentIndex - 1] ?? this.items[this.items.length - 1];\n // if the receiver is a ZMenuSection and it's open, focus its last item\n if (isZMenuSection(receiver) && receiver.open) {\n this.setItemTabindex(this.focusableItem, -1);\n receiver.focusLastItem();\n break;\n }\n\n this.moveFocus(receiver, this.focusableItem);\n break;\n }\n case KeyboardCode.ARROW_LEFT:\n if (!this.open || !this.verticalContext) {\n break;\n }\n\n // close the menu and focus the label\n ev.preventDefault();\n ev.stopPropagation();\n this.open = false;\n this.setFocus();\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.checkContent = this.checkContent.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n }\n\n componentWillLoad(): void {\n this.setLabelA11yAttrs();\n this.onItemsChange();\n }\n\n render(): HTMLDivElement | HTMLZMenuElement {\n if (!this.hasContent) {\n return (\n <div class=\"menu-label\">\n <slot onSlotchange={this.onLabelSlotChange} />\n </div>\n );\n }\n\n return (\n <Host>\n <button\n ref={(el) => (this.labelButton = el)}\n class=\"menu-label\"\n aria-expanded={`${!!this.open}`}\n aria-haspopup={`${this.hasContent}`}\n aria-label={this.open ? \"Chiudi menù\" : \"Apri menù\"}\n role=\"menuitem\"\n tabIndex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />\n </button>\n\n <div\n class=\"content\"\n ref={(el) => (this.content = el)}\n >\n {this.hasHeader && (\n <header class=\"header\">\n <slot\n name=\"header\"\n onSlotchange={this.checkContent}\n />\n </header>\n )}\n\n <div\n class=\"items\"\n role=\"menu\"\n >\n <slot\n name=\"item\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"2JAAA,MAAMA,EAAY,wnHAClB,MAAAC,EAAeD,ECGf,MAAME,EAAkBC,IACtBA,IAAE,MAAFA,SAAE,SAAFA,EAAIC,WAAY,iB,MAaLC,EAAK,MAwDhB,iBAAYC,GACV,OAAOC,KAAKC,MAAMC,MAAMC,GAAUR,EAAeQ,GAAQA,EAAKC,eAAiB,EAAID,EAAKE,WAAa,G,CAG/F,MAAAC,GACN,IAAKN,KAAKO,WAAY,CACpB,M,CAGFP,KAAKQ,MAAQR,KAAKQ,I,CAOZ,iBAAAC,CAAkBC,GACxB,MAAMC,EAAgBD,EAAGE,OAA2BC,mBAAmB,GACvEF,EAAaG,QAAQC,KAAOJ,IAA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AoBT,KAAKS,kBAAkB6B,KAAKtC,MACrDA,KAAK6D,aAAe7D,KAAK6D,aAAavB,KAAKtC,MAC3CA,KAAKiD,cAAgBjD,KAAKiD,cAAcX,KAAKtC,MAC7CA,KAAK8D,eAAiB9D,KAAK8D,eAAexB,KAAKtC,K,CAGjD,iBAAAkG,GACElG,KAAKiB,oBACLjB,KAAKiD,e,CAGP,MAAAkD,GACE,IAAKnG,KAAKO,WAAY,CACpB,OACE6F,EAAA,OAAKC,MAAM,cACTD,EAAA,QAAME,aAActG,KAAKS,oB,CAK/B,OACE2F,EAACG,EAAI,KACHH,EAAA,UACEI,IAAM5G,GAAQI,KAAKwE,YAAc5E,EACjCyG,MAAM,aAAY,gBACH,KAAKrG,KAAKQ,OAAM,gBAChB,GAAGR,KAAKO,aAAY,aACvBP,KAAKQ,KAAO,cAAgB,YACxC0E,KAAK,WACL7E,SAAUL,KAAKI,aACfqG,QAASzG,KAAK6D,aACdyB,UAAWtF,KAAK8D,gBAEhBsC,EAAA,QAAME,aAActG,KAAKS,oBACzB2F,EAAA,UAAQM,KAAM1G,KAAKQ,KAAO,aAAe,kBAG3C4F,EAAA,OACEC,MAAM,UACNG,IAAM5G,GAAQI,KAAKqB,QAAUzB,GAE5BI,KAAKwC,WACJ4D,EAAA,UAAQC,MAAM,UACZD,EAAA,QACEM,KAAK,SACLJ,aAActG,KAAKuC,gBAKzB6D,EAAA,OACEC,MAAM,QACNnB,KAAK,QAELkB,EAAA,QACEM,KAAK,OACLJ,aAActG,KAAKiD,kB","ignoreList":[]}
|
|
@@ -167,41 +167,31 @@
|
|
|
167
167
|
--font-size-15: 4.75rem; /* 76px */
|
|
168
168
|
--font-size-16: 5.25rem; /* 84px */
|
|
169
169
|
--font-size-17: 5.75rem; /* 92px */
|
|
170
|
+
|
|
171
|
+
/* cssprops to use with `font` shorthand property */
|
|
172
|
+
--section-title-1: var(--font-sb) var(--font-size-11) / 0.9166 var(--font-family-serif);
|
|
173
|
+
--section-title-2: var(--font-sb) var(--font-size-10) / 1.1904 var(--font-family-serif);
|
|
174
|
+
--section-title-3: var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);
|
|
175
|
+
--section-title-4: var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);
|
|
176
|
+
--section-title-5: var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);
|
|
177
|
+
--section-title-6: var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif);
|
|
170
178
|
}
|
|
171
179
|
|
|
172
180
|
/* Typography classes */
|
|
173
181
|
.heading-1,
|
|
174
182
|
.heading-1-sb,
|
|
175
183
|
.heading-1-lt {
|
|
176
|
-
font-size: var(--font-size-
|
|
184
|
+
font-size: var(--font-size-7);
|
|
177
185
|
font-weight: var(--font-rg);
|
|
178
|
-
|
|
179
|
-
line-height: 1.25;
|
|
186
|
+
line-height: 1.28;
|
|
180
187
|
}
|
|
181
188
|
|
|
182
189
|
.heading-2,
|
|
183
190
|
.heading-2-sb,
|
|
184
191
|
.heading-2-lt {
|
|
185
|
-
font-size: var(--font-size-
|
|
192
|
+
font-size: var(--font-size-6);
|
|
186
193
|
font-weight: var(--font-rg);
|
|
187
|
-
|
|
188
|
-
line-height: 1.28;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@media (max-width: 1151px) {
|
|
192
|
-
.heading-1,
|
|
193
|
-
.heading-1-sb,
|
|
194
|
-
.heading-1-lt {
|
|
195
|
-
font-size: var(--font-size-7);
|
|
196
|
-
line-height: 1.28;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.heading-2,
|
|
200
|
-
.heading-2-sb,
|
|
201
|
-
.heading-2-lt {
|
|
202
|
-
font-size: var(--font-size-6);
|
|
203
|
-
line-height: 1.333;
|
|
204
|
-
}
|
|
194
|
+
line-height: 1.333;
|
|
205
195
|
}
|
|
206
196
|
|
|
207
197
|
.heading-3,
|
|
@@ -209,7 +199,6 @@
|
|
|
209
199
|
.heading-3-lt {
|
|
210
200
|
font-size: var(--font-size-6);
|
|
211
201
|
font-weight: var(--font-rg);
|
|
212
|
-
letter-spacing: 0;
|
|
213
202
|
line-height: 1.333;
|
|
214
203
|
}
|
|
215
204
|
|
|
@@ -218,7 +207,6 @@
|
|
|
218
207
|
.heading-4-lt {
|
|
219
208
|
font-size: var(--font-size-5);
|
|
220
209
|
font-weight: var(--font-rg);
|
|
221
|
-
letter-spacing: 0;
|
|
222
210
|
line-height: 1.4;
|
|
223
211
|
}
|
|
224
212
|
|
|
@@ -226,7 +214,6 @@
|
|
|
226
214
|
.body-1-sb {
|
|
227
215
|
font-size: var(--font-size-5);
|
|
228
216
|
font-weight: var(--font-rg);
|
|
229
|
-
letter-spacing: 0;
|
|
230
217
|
line-height: 1.4;
|
|
231
218
|
}
|
|
232
219
|
|
|
@@ -234,7 +221,6 @@
|
|
|
234
221
|
.body-2-sb {
|
|
235
222
|
font-size: var(--font-size-4);
|
|
236
223
|
font-weight: var(--font-rg);
|
|
237
|
-
letter-spacing: 0;
|
|
238
224
|
line-height: 1.5;
|
|
239
225
|
}
|
|
240
226
|
|
|
@@ -242,7 +228,6 @@
|
|
|
242
228
|
.body-3-sb {
|
|
243
229
|
font-size: var(--font-size-3);
|
|
244
230
|
font-weight: var(--font-rg);
|
|
245
|
-
letter-spacing: 0;
|
|
246
231
|
line-height: 1.5;
|
|
247
232
|
}
|
|
248
233
|
|
|
@@ -266,7 +251,6 @@
|
|
|
266
251
|
.interactive-1-sb {
|
|
267
252
|
font-size: var(--font-size-3);
|
|
268
253
|
font-weight: var(--font-rg);
|
|
269
|
-
letter-spacing: 0;
|
|
270
254
|
line-height: 1.5;
|
|
271
255
|
}
|
|
272
256
|
|
|
@@ -295,6 +279,523 @@
|
|
|
295
279
|
line-height: 1.333;
|
|
296
280
|
}
|
|
297
281
|
|
|
282
|
+
/* section title */
|
|
283
|
+
.section-title-1 {
|
|
284
|
+
font: var(--section-title-1);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.section-title-2 {
|
|
288
|
+
font: var(--section-title-2);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.section-title-3 {
|
|
292
|
+
font: var(--section-title-3);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.section-title-4 {
|
|
296
|
+
font: var(--section-title-4);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.section-title-5 {
|
|
300
|
+
font: var(--section-title-5);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.section-title-6 {
|
|
304
|
+
font: var(--section-title-6);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* heading-1/2 for desktop and wide viewports */
|
|
308
|
+
@media (min-width: 1152px) {
|
|
309
|
+
.heading-1,
|
|
310
|
+
.heading-1-sb,
|
|
311
|
+
.heading-1-lt {
|
|
312
|
+
font-size: var(--font-size-8);
|
|
313
|
+
font-weight: var(--font-rg);
|
|
314
|
+
line-height: 1.25;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.heading-2,
|
|
318
|
+
.heading-2-sb,
|
|
319
|
+
.heading-2-lt {
|
|
320
|
+
font-size: var(--font-size-7);
|
|
321
|
+
font-weight: var(--font-rg);
|
|
322
|
+
line-height: 1.28;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* viewport classes */
|
|
327
|
+
@media (max-width: 767px) {
|
|
328
|
+
.mobile-heading-1,
|
|
329
|
+
.mobile-heading-1-sb,
|
|
330
|
+
.mobile-heading-1-lt {
|
|
331
|
+
font-size: var(--font-size-7);
|
|
332
|
+
font-weight: var(--font-rg);
|
|
333
|
+
line-height: 1.28;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.mobile-heading-2,
|
|
337
|
+
.mobile-heading-2-sb,
|
|
338
|
+
.mobile-heading-2-lt {
|
|
339
|
+
font-size: var(--font-size-6);
|
|
340
|
+
font-weight: var(--font-rg);
|
|
341
|
+
line-height: 1.333;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.mobile-heading-3,
|
|
345
|
+
.mobile-heading-3-sb,
|
|
346
|
+
.mobile-heading-3-lt {
|
|
347
|
+
font-size: var(--font-size-6);
|
|
348
|
+
font-weight: var(--font-rg);
|
|
349
|
+
line-height: 1.333;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mobile-heading-4,
|
|
353
|
+
.mobile-heading-4-sb,
|
|
354
|
+
.mobile-heading-4-lt {
|
|
355
|
+
font-size: var(--font-size-5);
|
|
356
|
+
font-weight: var(--font-rg);
|
|
357
|
+
line-height: 1.4;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.mobile-body-1,
|
|
361
|
+
.mobile-body-1-sb {
|
|
362
|
+
font-size: var(--font-size-5);
|
|
363
|
+
font-weight: var(--font-rg);
|
|
364
|
+
line-height: 1.4;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.mobile-body-2,
|
|
368
|
+
.mobile-body-2-sb {
|
|
369
|
+
font-size: var(--font-size-4);
|
|
370
|
+
font-weight: var(--font-rg);
|
|
371
|
+
line-height: 1.5;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.mobile-body-3,
|
|
375
|
+
.mobile-body-3-sb {
|
|
376
|
+
font-size: var(--font-size-3);
|
|
377
|
+
font-weight: var(--font-rg);
|
|
378
|
+
line-height: 1.5;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.mobile-body-4,
|
|
382
|
+
.mobile-body-4-sb {
|
|
383
|
+
font-size: var(--font-size-2);
|
|
384
|
+
font-weight: var(--font-rg);
|
|
385
|
+
letter-spacing: 0.16px;
|
|
386
|
+
line-height: 1.4;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.mobile-body-5,
|
|
390
|
+
.mobile-body-5-sb {
|
|
391
|
+
font-size: var(--font-size-1);
|
|
392
|
+
font-weight: var(--font-rg);
|
|
393
|
+
letter-spacing: 0.32px;
|
|
394
|
+
line-height: 1.333;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.mobile-interactive-1,
|
|
398
|
+
.mobile-interactive-1-sb {
|
|
399
|
+
font-size: var(--font-size-3);
|
|
400
|
+
font-weight: var(--font-rg);
|
|
401
|
+
line-height: 1.5;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.mobile-interactive-2,
|
|
405
|
+
.mobile-interactive-2-sb {
|
|
406
|
+
font-size: var(--font-size-2);
|
|
407
|
+
font-weight: var(--font-rg);
|
|
408
|
+
letter-spacing: 0.16px;
|
|
409
|
+
line-height: 1.4;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.mobile-interactive-3,
|
|
413
|
+
.mobile-interactive-3-sb {
|
|
414
|
+
font-size: var(--font-size-1);
|
|
415
|
+
font-weight: var(--font-rg);
|
|
416
|
+
letter-spacing: 0.32px;
|
|
417
|
+
line-height: 1.333;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.mobile-section-title-1 {
|
|
421
|
+
font: var(--section-title-1);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.mobile-section-title-2 {
|
|
425
|
+
font: var(--section-title-2);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.mobile-section-title-3 {
|
|
429
|
+
font: var(--section-title-3);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.mobile-section-title-4 {
|
|
433
|
+
font: var(--section-title-4);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.mobile-section-title-5 {
|
|
437
|
+
font: var(--section-title-5);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.mobile-section-title-6 {
|
|
441
|
+
font: var(--section-title-6);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@media (min-width: 768px) and (max-width: 1151px) {
|
|
446
|
+
.tablet-heading-1,
|
|
447
|
+
.tablet-heading-1-sb,
|
|
448
|
+
.tablet-heading-1-lt {
|
|
449
|
+
font-size: var(--font-size-7);
|
|
450
|
+
font-weight: var(--font-rg);
|
|
451
|
+
line-height: 1.28;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.tablet-heading-2,
|
|
455
|
+
.tablet-heading-2-sb,
|
|
456
|
+
.tablet-heading-2-lt {
|
|
457
|
+
font-size: var(--font-size-6);
|
|
458
|
+
font-weight: var(--font-rg);
|
|
459
|
+
line-height: 1.333;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.tablet-heading-3,
|
|
463
|
+
.tablet-heading-3-sb,
|
|
464
|
+
.tablet-heading-3-lt {
|
|
465
|
+
font-size: var(--font-size-6);
|
|
466
|
+
font-weight: var(--font-rg);
|
|
467
|
+
line-height: 1.333;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.tablet-heading-4,
|
|
471
|
+
.tablet-heading-4-sb,
|
|
472
|
+
.tablet-heading-4-lt {
|
|
473
|
+
font-size: var(--font-size-5);
|
|
474
|
+
font-weight: var(--font-rg);
|
|
475
|
+
line-height: 1.4;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.tablet-body-1,
|
|
479
|
+
.tablet-body-1-sb {
|
|
480
|
+
font-size: var(--font-size-5);
|
|
481
|
+
font-weight: var(--font-rg);
|
|
482
|
+
line-height: 1.4;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.tablet-body-2,
|
|
486
|
+
.tablet-body-2-sb {
|
|
487
|
+
font-size: var(--font-size-4);
|
|
488
|
+
font-weight: var(--font-rg);
|
|
489
|
+
line-height: 1.5;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.tablet-body-3,
|
|
493
|
+
.tablet-body-3-sb {
|
|
494
|
+
font-size: var(--font-size-3);
|
|
495
|
+
font-weight: var(--font-rg);
|
|
496
|
+
line-height: 1.5;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.tablet-body-4,
|
|
500
|
+
.tablet-body-4-sb {
|
|
501
|
+
font-size: var(--font-size-2);
|
|
502
|
+
font-weight: var(--font-rg);
|
|
503
|
+
letter-spacing: 0.16px;
|
|
504
|
+
line-height: 1.4;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.tablet-body-5,
|
|
508
|
+
.tablet-body-5-sb {
|
|
509
|
+
font-size: var(--font-size-1);
|
|
510
|
+
font-weight: var(--font-rg);
|
|
511
|
+
letter-spacing: 0.32px;
|
|
512
|
+
line-height: 1.333;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.tablet-interactive-1,
|
|
516
|
+
.tablet-interactive-1-sb {
|
|
517
|
+
font-size: var(--font-size-3);
|
|
518
|
+
font-weight: var(--font-rg);
|
|
519
|
+
line-height: 1.5;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.tablet-interactive-2,
|
|
523
|
+
.tablet-interactive-2-sb {
|
|
524
|
+
font-size: var(--font-size-2);
|
|
525
|
+
font-weight: var(--font-rg);
|
|
526
|
+
letter-spacing: 0.16px;
|
|
527
|
+
line-height: 1.4;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.tablet-interactive-3,
|
|
531
|
+
.tablet-interactive-3-sb {
|
|
532
|
+
font-size: var(--font-size-1);
|
|
533
|
+
font-weight: var(--font-rg);
|
|
534
|
+
letter-spacing: 0.32px;
|
|
535
|
+
line-height: 1.333;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.tablet-section-title-1 {
|
|
539
|
+
font: var(--section-title-1);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.tablet-section-title-2 {
|
|
543
|
+
font: var(--section-title-2);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.tablet-section-title-3 {
|
|
547
|
+
font: var(--section-title-3);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.tablet-section-title-4 {
|
|
551
|
+
font: var(--section-title-4);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.tablet-section-title-5 {
|
|
555
|
+
font: var(--section-title-5);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.tablet-section-title-6 {
|
|
559
|
+
font: var(--section-title-6);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
@media (min-width: 1152px) and (max-width: 1365px) {
|
|
564
|
+
.desktop-heading-1,
|
|
565
|
+
.desktop-heading-1-sb,
|
|
566
|
+
.desktop-heading-1-lt {
|
|
567
|
+
font-size: var(--font-size-8);
|
|
568
|
+
font-weight: var(--font-rg);
|
|
569
|
+
line-height: 1.25;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.desktop-heading-2,
|
|
573
|
+
.desktop-heading-2-sb,
|
|
574
|
+
.desktop-heading-2-lt {
|
|
575
|
+
font-size: var(--font-size-7);
|
|
576
|
+
font-weight: var(--font-rg);
|
|
577
|
+
line-height: 1.28;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.desktop-heading-3,
|
|
581
|
+
.desktop-heading-3-sb,
|
|
582
|
+
.desktop-heading-3-lt {
|
|
583
|
+
font-size: var(--font-size-6);
|
|
584
|
+
font-weight: var(--font-rg);
|
|
585
|
+
line-height: 1.333;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.desktop-heading-4,
|
|
589
|
+
.desktop-heading-4-sb,
|
|
590
|
+
.desktop-heading-4-lt {
|
|
591
|
+
font-size: var(--font-size-5);
|
|
592
|
+
font-weight: var(--font-rg);
|
|
593
|
+
line-height: 1.4;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.desktop-body-1,
|
|
597
|
+
.desktop-body-1-sb {
|
|
598
|
+
font-size: var(--font-size-5);
|
|
599
|
+
font-weight: var(--font-rg);
|
|
600
|
+
line-height: 1.4;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.desktop-body-2,
|
|
604
|
+
.desktop-body-2-sb {
|
|
605
|
+
font-size: var(--font-size-4);
|
|
606
|
+
font-weight: var(--font-rg);
|
|
607
|
+
line-height: 1.5;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.desktop-body-3,
|
|
611
|
+
.desktop-body-3-sb {
|
|
612
|
+
font-size: var(--font-size-3);
|
|
613
|
+
font-weight: var(--font-rg);
|
|
614
|
+
line-height: 1.5;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.desktop-body-4,
|
|
618
|
+
.desktop-body-4-sb {
|
|
619
|
+
font-size: var(--font-size-2);
|
|
620
|
+
font-weight: var(--font-rg);
|
|
621
|
+
letter-spacing: 0.16px;
|
|
622
|
+
line-height: 1.4;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.desktop-body-5,
|
|
626
|
+
.desktop-body-5-sb {
|
|
627
|
+
font-size: var(--font-size-1);
|
|
628
|
+
font-weight: var(--font-rg);
|
|
629
|
+
letter-spacing: 0.32px;
|
|
630
|
+
line-height: 1.333;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.desktop-interactive-1,
|
|
634
|
+
.desktop-interactive-1-sb {
|
|
635
|
+
font-size: var(--font-size-3);
|
|
636
|
+
font-weight: var(--font-rg);
|
|
637
|
+
line-height: 1.5;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.desktop-interactive-2,
|
|
641
|
+
.desktop-interactive-2-sb {
|
|
642
|
+
font-size: var(--font-size-2);
|
|
643
|
+
font-weight: var(--font-rg);
|
|
644
|
+
letter-spacing: 0.16px;
|
|
645
|
+
line-height: 1.4;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.desktop-interactive-3,
|
|
649
|
+
.desktop-interactive-3-sb {
|
|
650
|
+
font-size: var(--font-size-1);
|
|
651
|
+
font-weight: var(--font-rg);
|
|
652
|
+
letter-spacing: 0.32px;
|
|
653
|
+
line-height: 1.333;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.desktop-section-title-1 {
|
|
657
|
+
font: var(--section-title-1);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.desktop-section-title-2 {
|
|
661
|
+
font: var(--section-title-2);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.desktop-section-title-3 {
|
|
665
|
+
font: var(--section-title-3);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.desktop-section-title-4 {
|
|
669
|
+
font: var(--section-title-4);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.desktop-section-title-5 {
|
|
673
|
+
font: var(--section-title-5);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.desktop-section-title-6 {
|
|
677
|
+
font: var(--section-title-6);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
@media (min-width: 1366px) {
|
|
682
|
+
.wide-heading-1,
|
|
683
|
+
.wide-heading-1-sb,
|
|
684
|
+
.wide-heading-1-lt {
|
|
685
|
+
font-size: var(--font-size-8);
|
|
686
|
+
font-weight: var(--font-rg);
|
|
687
|
+
line-height: 1.25;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.wide-heading-2,
|
|
691
|
+
.wide-heading-2-sb,
|
|
692
|
+
.wide-heading-2-lt {
|
|
693
|
+
font-size: var(--font-size-7);
|
|
694
|
+
font-weight: var(--font-rg);
|
|
695
|
+
line-height: 1.28;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.wide-heading-3,
|
|
699
|
+
.wide-heading-3-sb,
|
|
700
|
+
.wide-heading-3-lt {
|
|
701
|
+
font-size: var(--font-size-6);
|
|
702
|
+
font-weight: var(--font-rg);
|
|
703
|
+
line-height: 1.333;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.wide-heading-4,
|
|
707
|
+
.wide-heading-4-sb,
|
|
708
|
+
.wide-heading-4-lt {
|
|
709
|
+
font-size: var(--font-size-5);
|
|
710
|
+
font-weight: var(--font-rg);
|
|
711
|
+
line-height: 1.4;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.wide-body-1,
|
|
715
|
+
.wide-body-1-sb {
|
|
716
|
+
font-size: var(--font-size-5);
|
|
717
|
+
font-weight: var(--font-rg);
|
|
718
|
+
line-height: 1.4;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.wide-body-2,
|
|
722
|
+
.wide-body-2-sb {
|
|
723
|
+
font-size: var(--font-size-4);
|
|
724
|
+
font-weight: var(--font-rg);
|
|
725
|
+
line-height: 1.5;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.wide-body-3,
|
|
729
|
+
.wide-body-3-sb {
|
|
730
|
+
font-size: var(--font-size-3);
|
|
731
|
+
font-weight: var(--font-rg);
|
|
732
|
+
line-height: 1.5;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.wide-body-4,
|
|
736
|
+
.wide-body-4-sb {
|
|
737
|
+
font-size: var(--font-size-2);
|
|
738
|
+
font-weight: var(--font-rg);
|
|
739
|
+
letter-spacing: 0.16px;
|
|
740
|
+
line-height: 1.4;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.wide-body-5,
|
|
744
|
+
.wide-body-5-sb {
|
|
745
|
+
font-size: var(--font-size-1);
|
|
746
|
+
font-weight: var(--font-rg);
|
|
747
|
+
letter-spacing: 0.32px;
|
|
748
|
+
line-height: 1.333;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.wide-interactive-1,
|
|
752
|
+
.wide-interactive-1-sb {
|
|
753
|
+
font-size: var(--font-size-3);
|
|
754
|
+
font-weight: var(--font-rg);
|
|
755
|
+
line-height: 1.5;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.wide-interactive-2,
|
|
759
|
+
.wide-interactive-2-sb {
|
|
760
|
+
font-size: var(--font-size-2);
|
|
761
|
+
font-weight: var(--font-rg);
|
|
762
|
+
letter-spacing: 0.16px;
|
|
763
|
+
line-height: 1.4;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.wide-interactive-3,
|
|
767
|
+
.wide-interactive-3-sb {
|
|
768
|
+
font-size: var(--font-size-1);
|
|
769
|
+
font-weight: var(--font-rg);
|
|
770
|
+
letter-spacing: 0.32px;
|
|
771
|
+
line-height: 1.333;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.wide-section-title-1 {
|
|
775
|
+
font: var(--section-title-1);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.wide-section-title-2 {
|
|
779
|
+
font: var(--section-title-2);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.wide-section-title-3 {
|
|
783
|
+
font: var(--section-title-3);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.wide-section-title-4 {
|
|
787
|
+
font: var(--section-title-4);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.wide-section-title-5 {
|
|
791
|
+
font: var(--section-title-5);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.wide-section-title-6 {
|
|
795
|
+
font: var(--section-title-6);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
298
799
|
/* font-weight variants */
|
|
299
800
|
.heading-1-lt,
|
|
300
801
|
.heading-2-lt,
|