@zanichelli/albe-web-components 6.10.2 → 6.11.0-cover-hero-test
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 +7 -0
- package/dist/cjs/{icons-9e555ff7.js → icons-a9849a41.js} +17 -0
- package/dist/cjs/index-e3299e0a.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/{z-app-header_2.cjs.entry.js → z-app-header_4.cjs.entry.js} +90 -3
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/collection/components/icons/icons.js +17 -0
- package/dist/collection/components/z-cover-hero/index.js +53 -10
- package/dist/collection/components/z-cover-hero/styles.css +32 -17
- package/dist/esm/{icons-85e529a3.js → icons-6cd265c6.js} +17 -0
- package/dist/esm/index-a2ca4b97.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/{z-app-header_2.entry.js → z-app-header_4.entry.js} +89 -4
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/types/beans/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button-sort/index.d.ts +0 -0
- package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
- package/dist/types/components/date-picker/utils.d.ts +0 -0
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
- package/dist/types/components/icons/icons.d.ts +34 -0
- package/dist/types/components/icons/z-icon/index.d.ts +0 -0
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
- package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
- package/dist/types/components/inputs/z-select/index.d.ts +0 -0
- package/dist/types/components/list/z-list/index.d.ts +0 -0
- package/dist/types/components/list/z-list-element/index.d.ts +0 -0
- package/dist/types/components/list/z-list-group/index.d.ts +0 -0
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
- package/dist/types/components/logo/z-logo/index.d.ts +0 -0
- package/dist/types/components/modal/z-modal/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
- package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
- package/dist/types/components/navigation/z-app-switcher/index.d.ts +0 -0
- package/dist/types/components/navigation/z-link/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
- package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
- package/dist/types/components/notification/z-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-toast-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
- package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
- package/dist/types/components/z-aria-alert/index.d.ts +0 -0
- package/dist/types/components/z-avatar/index.d.ts +0 -0
- package/dist/types/components/z-card/index.d.ts +0 -0
- package/dist/types/components/z-carousel/index.d.ts +0 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
- package/dist/types/components/z-cover-hero/index.d.ts +18 -7
- package/dist/types/components/z-divider/index.d.ts +0 -0
- package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
- package/dist/types/components/z-info-reveal/index.d.ts +0 -0
- package/dist/types/components/z-offcanvas/index.d.ts +0 -0
- package/dist/types/components/z-pagination/index.d.ts +0 -0
- package/dist/types/components/z-popover/index.d.ts +0 -0
- package/dist/types/components/z-section-title/index.d.ts +0 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-body/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-cell/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-empty-box/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-footer/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-head/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +0 -0
- package/dist/types/components/z-tag/index.d.ts +0 -0
- package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
- package/dist/types/components.d.ts +12 -4
- package/dist/types/constants/breakpoints.d.ts +0 -0
- package/dist/types/constants/icons.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/dist/web-components-library/index.esm.js +0 -0
- package/dist/web-components-library/p-5ae0c79d.entry.js +1 -0
- package/dist/web-components-library/{p-6cfed2ba.entry.js → p-7c89d75c.entry.js} +1 -1
- package/dist/web-components-library/p-bb85c467.js +1 -0
- package/dist/web-components-library/{p-933255a0.entry.js → p-be03a520.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +0 -0
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/loader/package.json +0 -0
- package/package.json +1 -1
- package/www/build/index.esm.js +0 -0
- package/www/build/p-5ae0c79d.entry.js +1 -0
- package/www/build/p-6786058a.js +1 -0
- package/www/build/{p-6cfed2ba.entry.js → p-7c89d75c.entry.js} +1 -1
- package/www/build/p-bb85c467.js +1 -0
- package/www/build/{p-933255a0.entry.js → p-be03a520.entry.js} +1 -1
- package/www/build/web-components-library.css +0 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.js +0 -0
- package/www/host.config.json +0 -0
- package/www/index.html +4 -1
- package/dist/cjs/z-button.cjs.entry.js +0 -43
- package/dist/cjs/z-cover-hero.cjs.entry.js +0 -40
- package/dist/esm/z-button.entry.js +0 -39
- package/dist/esm/z-cover-hero.entry.js +0 -36
- package/dist/web-components-library/p-1bf0b39a.entry.js +0 -1
- package/dist/web-components-library/p-d9a6a204.entry.js +0 -1
- package/dist/web-components-library/p-f402d8c3.entry.js +0 -1
- package/dist/web-components-library/p-f425f188.js +0 -1
- package/www/build/p-0a2d551d.js +0 -1
- package/www/build/p-1bf0b39a.entry.js +0 -1
- package/www/build/p-d9a6a204.entry.js +0 -1
- package/www/build/p-f402d8c3.entry.js +0 -1
- package/www/build/p-f425f188.js +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import {
|
|
2
|
+
import { b as ButtonType, B as ButtonVariant, c as ButtonSize, J as CoverHeroVariant, M as CoverHeroContentPosition } from './index-525f32e2.js';
|
|
3
|
+
import { I as ICONS } from './icons-6cd265c6.js';
|
|
3
4
|
|
|
4
|
-
const stylesCss$
|
|
5
|
+
const stylesCss$3 = ":host{--app-header-content-max-width:100%;--app-header-height:auto;--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-white);--app-header-stucked-bg:var(--color-white);--app-header-text-color:var(--gray800);--app-header-stucked-text-color:var(--gray800);display:block;color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);height:var(--app-header-height);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;justify-content:flex-start;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg)}:host(:empty) .heading-panel{padding:0}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:center}:host(:not([menu-length=\"0\"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 1.5))}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);padding:var(--space-unit) var(--grid-margin);margin:0 auto}.heading-stuck .heading-title,.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]){display:block;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.heading-stuck .heading-title>*,::slotted([slot=\"title\"]),::slotted([slot=\"stucked-title\"]){margin:0;font-family:\"IBM Plex Serif\", serif;font-size:var(--app-header-typography-3-size);font-weight:700;letter-spacing:var(--app-header-typography-3-tracking)}::slotted([slot=\"title\"]){line-height:1}::slotted([slot=\"subtitle\"]){margin:var(--space-unit) 0 0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;font-weight:500;line-height:1.2}.heading-container{position:relative;z-index:1;display:flex;max-width:100%;flex-direction:column;align-items:flex-start;justify-content:flex-start;margin-right:auto}.menu-container{display:none;flex-flow:row wrap;align-items:baseline}.menu-container ::slotted([open]){position:relative;z-index:3}.menu-container ::slotted(*:not(:last-of-type)){margin-right:calc(var(--space-unit) * 4.5)}.drawer-trigger{padding:0;border:0;margin:0 calc(var(--space-unit) * 1.5) 0 0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.drawer-container{position:fixed;z-index:100;top:var(--app-header-top-offset);left:0;width:100%;height:100%;pointer-events:none}.drawer-container .drawer-overlay{position:absolute;z-index:1;top:0;left:0;display:block;width:100%;height:100%;background:var(--gray900);opacity:0;pointer-events:none;transition:opacity 400ms ease-out}.drawer-panel{position:absolute;z-index:2;top:0;left:0;display:flex;width:375px;max-width:100%;height:100%;flex-direction:column;align-items:flex-start;padding:calc(var(--space-unit) * 2) var(--space-unit);background:var(--color-white);color:var(--gray800);pointer-events:none;transform:translate3d(-100%, 0, 0);transition:transform 400ms ease-out}.drawer-content{display:flex;overflow:auto;width:100%;flex:1 auto;flex-direction:column;padding:calc(var(--space-unit) * 0.5) var(--space-unit)}.drawer-content::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-track{background-color:transparent}.drawer-content::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.drawer-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.drawer-content ::slotted(z-menu){width:100%}.drawer-content ::slotted(z-menu:not(:last-of-type)){margin-bottom:calc(var(--space-unit) * 2.5)}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:0 0 calc(var(--space-unit) * 2.5) var(--space-unit);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}:host([drawer-open]) .drawer-container .drawer-overlay{opacity:0.7;pointer-events:all}:host([drawer-open]) .drawer-container .drawer-panel{pointer-events:all;transform:none}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu:not([open])){--color-surface05:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:\"\";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host(:not([flow=\"offcanvas\"])) .heading-subtitle{padding-left:0}:host(:not([flow=\"offcanvas\"])) .menu-container{display:flex}:host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger{display:none}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 3)}::slotted([slot=\"title\"]){font-size:var(--app-header-typography-6-size);letter-spacing:var(--app-header-typography-6-tracking)}::slotted([slot=\"subtitle\"]){margin-top:calc(var(--space-unit) * 1.5)}}@media (min-width: 1152px){:host(:not([flow=\"stack\"])) .heading-panel{flex-flow:row wrap}::slotted([slot=\"title\"]){margin-right:var(--grid-gutter);font-size:var(--app-header-typography-7-size);letter-spacing:var(--app-header-typography-7-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:calc(var(--space-unit) * 2)}.menu-container{margin-top:var(--space-unit)}}@media (min-width: 1366px){::slotted([slot=\"title\"]){font-size:var(--app-header-typography-9-size);letter-spacing:var(--app-header-typography-9-tracking)}:host(:not([flow=\"offcanvas\"],[menu-length=\"0\"])) .heading-container:not(:last-child){margin-bottom:0}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}";
|
|
5
6
|
|
|
6
7
|
const SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== "undefined";
|
|
7
8
|
const ZAppHeader = class {
|
|
@@ -125,7 +126,91 @@ const ZAppHeader = class {
|
|
|
125
126
|
"drawerOpen": ["setMenuFloatingMode"]
|
|
126
127
|
}; }
|
|
127
128
|
};
|
|
128
|
-
ZAppHeader.style = stylesCss$
|
|
129
|
+
ZAppHeader.style = stylesCss$3;
|
|
130
|
+
|
|
131
|
+
const stylesCss$2 = ".sc-z-button-h{display:inline-block;--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:0}[disabled].sc-z-button-h:not([disabled=\"false\"]){pointer-events:none}.sc-z-button-h .z-button--container.sc-z-button{display:inline-flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border-width:var(--border-size-medium);border-style:solid;border-radius:var(--border-radius);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);letter-spacing:0.3px;line-height:1;outline:none;text-decoration:none;text-transform:uppercase;white-space:nowrap}.sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button{min-width:calc(var(--space-unit) * 8);padding:0 calc(var(--space-unit) * 2)}.sc-z-button-h .z-button--container.z-button--has-text.sc-z-button z-icon.sc-z-button{--z-icon-right-margin:var(--space-unit)}[size=\"big\"].sc-z-button-h .z-button--container.sc-z-button{min-width:44px;height:44px}[size=\"small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:36px;height:36px}[size=\"x-small\"].sc-z-button-h .z-button--container.sc-z-button{min-width:32px;height:32px}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-primary01);color:var(--color-text-inverse)}@media (hover: hover){[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-hover-primary);color:var(--color-text-inverse)}}[variant=\"primary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-text-inverse)}[variant=\"primary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-disabled01);color:var(--color-disabled02)}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:var(--color-primary01);background-color:var(--color-surface01);color:var(--color-primary01)}@media (hover: hover){[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-hover-primary);background-color:var(--color-surface01);color:var(--color-hover-primary)}}[variant=\"secondary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-pressed-primary);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-pressed-primary)}[variant=\"secondary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:var(--color-disabled01);background-color:var(--color-surface01);color:var(--color-disabled02)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-primary01)}@media (hover: hover){[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:hover{border-color:var(--color-primary03);background-color:var(--color-primary03);color:var(--color-hover-primary)}}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:focus:focus-visible{border-color:var(--color-surface01);background-color:var(--color-surface01);color:var(--color-primary01)}[variant=\"tertiary\"].sc-z-button-h .z-button--container.sc-z-button:active{border-color:var(--color-surface01);background-color:var(--color-surface01);box-shadow:var(--shadow-2);color:var(--color-primary01)}[variant=\"tertiary\"][disabled].sc-z-button-h:not([disabled=\"false\"]) .z-button--container.sc-z-button{border-color:transparent;background-color:transparent;color:var(--color-disabled02)}";
|
|
132
|
+
|
|
133
|
+
const ZButton = class {
|
|
134
|
+
constructor(hostRef) {
|
|
135
|
+
registerInstance(this, hostRef);
|
|
136
|
+
/** defines a string value that labels an interactive element, used for accessibility. */
|
|
137
|
+
this.ariaLabel = "";
|
|
138
|
+
/** HTML button disabled attribute. */
|
|
139
|
+
this.disabled = false;
|
|
140
|
+
/** HTML button type attribute. */
|
|
141
|
+
this.type = ButtonType.BUTTON;
|
|
142
|
+
/** Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`. */
|
|
143
|
+
this.variant = ButtonVariant.PRIMARY;
|
|
144
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
145
|
+
this.size = ButtonSize.BIG;
|
|
146
|
+
}
|
|
147
|
+
getAttributes() {
|
|
148
|
+
return {
|
|
149
|
+
id: this.htmlid,
|
|
150
|
+
class: {
|
|
151
|
+
"z-button--container": true,
|
|
152
|
+
"z-button--has-text": !!this.hostElement.textContent.trim(),
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
if (this.href) {
|
|
158
|
+
return (h("a", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, href: this.href, target: this.target }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
|
|
159
|
+
}
|
|
160
|
+
return (h("button", Object.assign({}, this.getAttributes(), { "aria-label": this.ariaLabel, name: this.name, type: this.type, disabled: this.disabled }), this.icon && (h("z-icon", { name: this.icon, width: 16, height: 16 })), h("slot", null)));
|
|
161
|
+
}
|
|
162
|
+
get hostElement() { return getElement(this); }
|
|
163
|
+
};
|
|
164
|
+
ZButton.style = stylesCss$2;
|
|
165
|
+
|
|
166
|
+
const stylesCss$1 = ":host{--cover-hero-overlay:linear-gradient(270deg, #0000 0%, #000000e6 100%);--cover-hero-text-color:var(--color-text-inverse);display:block;overflow:hidden}:host,*{box-sizing:border-box}:host .main-container{position:relative;width:100%;align-items:baseline}:host .content-container{color:var(--cover-hero-text-color);fill:var(--cover-hero-text-color)}:host .main-container .cover-container{position:relative;width:100%;padding-top:calc(100% / (var(--cover-hero-aspect-ratio, var(--image-aspect-ratio, 16/9))));background-color:var(--gray600)}::slotted([slot=\"cover\"]){position:absolute;display:block;width:100%;height:100%;inset:0;object-fit:cover;object-position:top center}::slotted(z-info-reveal){position:absolute;z-index:1;right:var(--grid-margin);bottom:var(--grid-margin)}:host([variant=\"overlay\"]:not([preserve-aspect-ratio=\"\"],[preserve-aspect-ratio=\"true\"])) .main-container{height:100%}:host([variant=\"overlay\"]:not([preserve-aspect-ratio=\"\"],[preserve-aspect-ratio=\"true\"])) .main-container .cover-container{position:absolute;z-index:-1;height:100%;padding:0}:host([variant=\"overlay\"]) .main-container .cover-container::after{position:absolute;top:0;left:0;width:100%;height:100%;background:var(--cover-hero-overlay);content:\"\"}:host([variant=\"overlay\"]:is([preserve-aspect-ratio=\"\"],[preserve-aspect-ratio=\"true\"])) .main-container .content-container{position:absolute;inset:0}:host([variant=\"overlay\"]) .main-container .content-container{height:100%;padding:var(--grid-margin)}:host([variant=\"stacked\"]){--cover-hero-text-color:var(--color-text01)}:host([variant=\"stacked\"]) .content-container ::slotted(*){padding:var(--grid-margin) 0}";
|
|
167
|
+
|
|
168
|
+
const ZCoverHero = class {
|
|
169
|
+
constructor(hostRef) {
|
|
170
|
+
registerInstance(this, hostRef);
|
|
171
|
+
/**
|
|
172
|
+
* Cover hero variant. Can be `OVERLAY` or `STACKED`.
|
|
173
|
+
*/
|
|
174
|
+
this.variant = CoverHeroVariant.OVERLAY;
|
|
175
|
+
/**
|
|
176
|
+
* Vertical content position (for `STACKED` variant).
|
|
177
|
+
*/
|
|
178
|
+
this.contentPosition = CoverHeroContentPosition.TOP;
|
|
179
|
+
/**
|
|
180
|
+
* Whether to keep the image aspect ratio.
|
|
181
|
+
* If set to `false`, the cssprop `--cover-hero-aspect-ratio` will not affect the component's size;
|
|
182
|
+
* instead, the height of the component follows the content's one.
|
|
183
|
+
* Note: it may be necessary to set a min and/or max height to the component.
|
|
184
|
+
*/
|
|
185
|
+
this.preserveAspectRatio = true;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Store the intrinsic aspect ratio of the slotted image when loaded,
|
|
189
|
+
* to have a default when `--cover-hero-aspect-ratio` is not set.
|
|
190
|
+
* @param target The event target
|
|
191
|
+
*/
|
|
192
|
+
onImgLoad({ target }) {
|
|
193
|
+
if (target instanceof Image && target.closest("[slot=cover]")) {
|
|
194
|
+
const ratio = target.naturalWidth / target.naturalHeight;
|
|
195
|
+
this.host.style.setProperty("--image-aspect-ratio", ratio.toString());
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Template for the content.
|
|
200
|
+
*/
|
|
201
|
+
renderContent() {
|
|
202
|
+
return (h("div", { class: "content-container" }, h("slot", { name: "content" })));
|
|
203
|
+
}
|
|
204
|
+
render() {
|
|
205
|
+
return (h(Host, null, this.variant === CoverHeroVariant.STACKED &&
|
|
206
|
+
this.contentPosition === CoverHeroContentPosition.TOP &&
|
|
207
|
+
this.renderContent(), h("div", { class: "main-container" }, h("div", { class: "cover-container" }, h("slot", { name: "cover" })), h("slot", { name: "info-reveal" }), this.variant === CoverHeroVariant.OVERLAY && this.renderContent()), this.variant === CoverHeroVariant.STACKED &&
|
|
208
|
+
this.contentPosition === CoverHeroContentPosition.BOTTOM &&
|
|
209
|
+
this.renderContent()));
|
|
210
|
+
}
|
|
211
|
+
get host() { return getElement(this); }
|
|
212
|
+
};
|
|
213
|
+
ZCoverHero.style = stylesCss$1;
|
|
129
214
|
|
|
130
215
|
const stylesCss = ":host{margin-right:var(--z-icon-right-margin, 0);margin-left:var(--z-icon-left-margin, 0);line-height:0;vertical-align:middle}:host svg:not([width]){width:var(--z-icon-width, 18px)}:host svg:not([height]){height:var(--z-icon-height, 18px)}";
|
|
131
216
|
|
|
@@ -145,4 +230,4 @@ const ZIcon = class {
|
|
|
145
230
|
};
|
|
146
231
|
ZIcon.style = stylesCss;
|
|
147
232
|
|
|
148
|
-
export { ZAppHeader as z_app_header, ZIcon as z_icon };
|
|
233
|
+
export { ZAppHeader as z_app_header, ZButton as z_button, ZCoverHero as z_cover_hero, ZIcon as z_icon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
|
|
2
2
|
import { N as NavigationTabsOrientation, a as NavigationTabsSize } from './index-525f32e2.js';
|
|
3
|
-
import { I as ICONS } from './icons-
|
|
3
|
+
import { I as ICONS } from './icons-6cd265c6.js';
|
|
4
4
|
|
|
5
5
|
const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
|
|
2
2
|
import { N as NavigationTabsOrientation, a as NavigationTabsSize } from './index-525f32e2.js';
|
|
3
|
-
import { I as ICONS } from './icons-
|
|
3
|
+
import { I as ICONS } from './icons-6cd265c6.js';
|
|
4
4
|
|
|
5
5
|
const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
|
|
6
6
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -50,6 +50,7 @@ export declare const STROKE_ICONS: {
|
|
|
50
50
|
atom: string;
|
|
51
51
|
back: string;
|
|
52
52
|
"back-top": string;
|
|
53
|
+
"barrage-questions": string;
|
|
53
54
|
biology: string;
|
|
54
55
|
"black-diamond": string;
|
|
55
56
|
blockquote: string;
|
|
@@ -109,6 +110,7 @@ export declare const STROKE_ICONS: {
|
|
|
109
110
|
dictonary: string;
|
|
110
111
|
document: string;
|
|
111
112
|
download: string;
|
|
113
|
+
"drag-drop": string;
|
|
112
114
|
edit: string;
|
|
113
115
|
email: string;
|
|
114
116
|
english: string;
|
|
@@ -124,7 +126,10 @@ export declare const STROKE_ICONS: {
|
|
|
124
126
|
favorites: string;
|
|
125
127
|
feed: string;
|
|
126
128
|
"file-zip": string;
|
|
129
|
+
"fill-blanks": string;
|
|
130
|
+
"fill-choice": string;
|
|
127
131
|
"film-frames": string;
|
|
132
|
+
"find-error": string;
|
|
128
133
|
"fit-height-view": string;
|
|
129
134
|
"fit-width-view": string;
|
|
130
135
|
folder: string;
|
|
@@ -184,6 +189,7 @@ export declare const STROKE_ICONS: {
|
|
|
184
189
|
minus: string;
|
|
185
190
|
"minus-circled": string;
|
|
186
191
|
"minus-square": string;
|
|
192
|
+
"multiple-choice": string;
|
|
187
193
|
multiply: string;
|
|
188
194
|
"multiply-circled": string;
|
|
189
195
|
"multiply-square": string;
|
|
@@ -195,6 +201,7 @@ export declare const STROKE_ICONS: {
|
|
|
195
201
|
"notification-off": string;
|
|
196
202
|
"numbered-list": string;
|
|
197
203
|
"nutritional-sciences": string;
|
|
204
|
+
"open-answer": string;
|
|
198
205
|
pause: string;
|
|
199
206
|
pdf: string;
|
|
200
207
|
"pen-thickness": string;
|
|
@@ -265,6 +272,7 @@ export declare const STROKE_ICONS: {
|
|
|
265
272
|
thumbnail: string;
|
|
266
273
|
timeline: string;
|
|
267
274
|
"timer-clock": string;
|
|
275
|
+
"true-false": string;
|
|
268
276
|
"u-circle": string;
|
|
269
277
|
"u-square": string;
|
|
270
278
|
"underlined-text": string;
|
|
@@ -334,6 +342,7 @@ export declare const FILLED_ICONS: {
|
|
|
334
342
|
"atom-filled": string;
|
|
335
343
|
"back-filled": string;
|
|
336
344
|
"back-top-filled": string;
|
|
345
|
+
"barrage-questions-filled": string;
|
|
337
346
|
"biology-filled": string;
|
|
338
347
|
"black-diamond-filled": string;
|
|
339
348
|
"blockquote-filled": string;
|
|
@@ -393,6 +402,7 @@ export declare const FILLED_ICONS: {
|
|
|
393
402
|
"dictonary-filled": string;
|
|
394
403
|
"document-filled": string;
|
|
395
404
|
"download-filled": string;
|
|
405
|
+
"drag-drop-filled": string;
|
|
396
406
|
"edit-filled": string;
|
|
397
407
|
"email-filled": string;
|
|
398
408
|
"english-filled": string;
|
|
@@ -408,7 +418,10 @@ export declare const FILLED_ICONS: {
|
|
|
408
418
|
"favorites-filled": string;
|
|
409
419
|
"feed-filled": string;
|
|
410
420
|
"file-zip-filled": string;
|
|
421
|
+
"fill-blanks-filled": string;
|
|
422
|
+
"fill-choice-filled": string;
|
|
411
423
|
"film-frames-filled": string;
|
|
424
|
+
"find-error-filled": string;
|
|
412
425
|
"fit-height-view-filled": string;
|
|
413
426
|
"fitt-width-view-filled": string;
|
|
414
427
|
"folder-filled": string;
|
|
@@ -468,6 +481,7 @@ export declare const FILLED_ICONS: {
|
|
|
468
481
|
"minus-circled-filled": string;
|
|
469
482
|
"minus-filled": string;
|
|
470
483
|
"minus-square-filled": string;
|
|
484
|
+
"multiple-choice-filled": string;
|
|
471
485
|
"multiply-circled-filled": string;
|
|
472
486
|
"multiply-filled": string;
|
|
473
487
|
"multiply-square-filled": string;
|
|
@@ -479,6 +493,7 @@ export declare const FILLED_ICONS: {
|
|
|
479
493
|
"notification-off-filled": string;
|
|
480
494
|
"numbered-list-filled": string;
|
|
481
495
|
"nutritional-sciences-filled": string;
|
|
496
|
+
"open-answer-filled": string;
|
|
482
497
|
"pause-filled": string;
|
|
483
498
|
"pdf-filled": string;
|
|
484
499
|
"pen-thickness-filled": string;
|
|
@@ -549,6 +564,7 @@ export declare const FILLED_ICONS: {
|
|
|
549
564
|
"thumbnail-filled": string;
|
|
550
565
|
"timeline-filled": string;
|
|
551
566
|
"timer-clock-filled": string;
|
|
567
|
+
"true-false-filled": string;
|
|
552
568
|
"u-circle-filled": string;
|
|
553
569
|
"u-square-filled": string;
|
|
554
570
|
"underlined-text-filled": string;
|
|
@@ -586,6 +602,7 @@ export declare const BUTTON_ICONS: {
|
|
|
586
602
|
"geogebra-button": string;
|
|
587
603
|
"go-page-button": string;
|
|
588
604
|
"headphone-button": string;
|
|
605
|
+
"image-button": string;
|
|
589
606
|
"interactives-maps-button": string;
|
|
590
607
|
"lecture-button": string;
|
|
591
608
|
"link-button": string;
|
|
@@ -616,6 +633,7 @@ export declare const ICONS: {
|
|
|
616
633
|
"geogebra-button": string;
|
|
617
634
|
"go-page-button": string;
|
|
618
635
|
"headphone-button": string;
|
|
636
|
+
"image-button": string;
|
|
619
637
|
"interactives-maps-button": string;
|
|
620
638
|
"lecture-button": string;
|
|
621
639
|
"link-button": string;
|
|
@@ -676,6 +694,7 @@ export declare const ICONS: {
|
|
|
676
694
|
"atom-filled": string;
|
|
677
695
|
"back-filled": string;
|
|
678
696
|
"back-top-filled": string;
|
|
697
|
+
"barrage-questions-filled": string;
|
|
679
698
|
"biology-filled": string;
|
|
680
699
|
"black-diamond-filled": string;
|
|
681
700
|
"blockquote-filled": string;
|
|
@@ -735,6 +754,7 @@ export declare const ICONS: {
|
|
|
735
754
|
"dictonary-filled": string;
|
|
736
755
|
"document-filled": string;
|
|
737
756
|
"download-filled": string;
|
|
757
|
+
"drag-drop-filled": string;
|
|
738
758
|
"edit-filled": string;
|
|
739
759
|
"email-filled": string;
|
|
740
760
|
"english-filled": string;
|
|
@@ -750,7 +770,10 @@ export declare const ICONS: {
|
|
|
750
770
|
"favorites-filled": string;
|
|
751
771
|
"feed-filled": string;
|
|
752
772
|
"file-zip-filled": string;
|
|
773
|
+
"fill-blanks-filled": string;
|
|
774
|
+
"fill-choice-filled": string;
|
|
753
775
|
"film-frames-filled": string;
|
|
776
|
+
"find-error-filled": string;
|
|
754
777
|
"fit-height-view-filled": string;
|
|
755
778
|
"fitt-width-view-filled": string;
|
|
756
779
|
"folder-filled": string;
|
|
@@ -810,6 +833,7 @@ export declare const ICONS: {
|
|
|
810
833
|
"minus-circled-filled": string;
|
|
811
834
|
"minus-filled": string;
|
|
812
835
|
"minus-square-filled": string;
|
|
836
|
+
"multiple-choice-filled": string;
|
|
813
837
|
"multiply-circled-filled": string;
|
|
814
838
|
"multiply-filled": string;
|
|
815
839
|
"multiply-square-filled": string;
|
|
@@ -821,6 +845,7 @@ export declare const ICONS: {
|
|
|
821
845
|
"notification-off-filled": string;
|
|
822
846
|
"numbered-list-filled": string;
|
|
823
847
|
"nutritional-sciences-filled": string;
|
|
848
|
+
"open-answer-filled": string;
|
|
824
849
|
"pause-filled": string;
|
|
825
850
|
"pdf-filled": string;
|
|
826
851
|
"pen-thickness-filled": string;
|
|
@@ -891,6 +916,7 @@ export declare const ICONS: {
|
|
|
891
916
|
"thumbnail-filled": string;
|
|
892
917
|
"timeline-filled": string;
|
|
893
918
|
"timer-clock-filled": string;
|
|
919
|
+
"true-false-filled": string;
|
|
894
920
|
"u-circle-filled": string;
|
|
895
921
|
"u-square-filled": string;
|
|
896
922
|
"underlined-text-filled": string;
|
|
@@ -955,6 +981,7 @@ export declare const ICONS: {
|
|
|
955
981
|
atom: string;
|
|
956
982
|
back: string;
|
|
957
983
|
"back-top": string;
|
|
984
|
+
"barrage-questions": string;
|
|
958
985
|
biology: string;
|
|
959
986
|
"black-diamond": string;
|
|
960
987
|
blockquote: string;
|
|
@@ -1014,6 +1041,7 @@ export declare const ICONS: {
|
|
|
1014
1041
|
dictonary: string;
|
|
1015
1042
|
document: string;
|
|
1016
1043
|
download: string;
|
|
1044
|
+
"drag-drop": string;
|
|
1017
1045
|
edit: string;
|
|
1018
1046
|
email: string;
|
|
1019
1047
|
english: string;
|
|
@@ -1029,7 +1057,10 @@ export declare const ICONS: {
|
|
|
1029
1057
|
favorites: string;
|
|
1030
1058
|
feed: string;
|
|
1031
1059
|
"file-zip": string;
|
|
1060
|
+
"fill-blanks": string;
|
|
1061
|
+
"fill-choice": string;
|
|
1032
1062
|
"film-frames": string;
|
|
1063
|
+
"find-error": string;
|
|
1033
1064
|
"fit-height-view": string;
|
|
1034
1065
|
"fit-width-view": string;
|
|
1035
1066
|
folder: string;
|
|
@@ -1089,6 +1120,7 @@ export declare const ICONS: {
|
|
|
1089
1120
|
minus: string;
|
|
1090
1121
|
"minus-circled": string;
|
|
1091
1122
|
"minus-square": string;
|
|
1123
|
+
"multiple-choice": string;
|
|
1092
1124
|
multiply: string;
|
|
1093
1125
|
"multiply-circled": string;
|
|
1094
1126
|
"multiply-square": string;
|
|
@@ -1100,6 +1132,7 @@ export declare const ICONS: {
|
|
|
1100
1132
|
"notification-off": string;
|
|
1101
1133
|
"numbered-list": string;
|
|
1102
1134
|
"nutritional-sciences": string;
|
|
1135
|
+
"open-answer": string;
|
|
1103
1136
|
pause: string;
|
|
1104
1137
|
pdf: string;
|
|
1105
1138
|
"pen-thickness": string;
|
|
@@ -1170,6 +1203,7 @@ export declare const ICONS: {
|
|
|
1170
1203
|
thumbnail: string;
|
|
1171
1204
|
timeline: string;
|
|
1172
1205
|
"timer-clock": string;
|
|
1206
|
+
"true-false": string;
|
|
1173
1207
|
"u-circle": string;
|
|
1174
1208
|
"u-square": string;
|
|
1175
1209
|
"underlined-text": string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,22 +6,33 @@ import { CoverHeroVariant, CoverHeroContentPosition } from "../../beans";
|
|
|
6
6
|
* @slot cover - slot for the cover image.
|
|
7
7
|
* @slot content - slot for the content.
|
|
8
8
|
* @slot info-reveal - slot for the info reveal.
|
|
9
|
-
* @cssprop --cover-hero-
|
|
10
|
-
* @cssprop --cover-hero-min-height - min height of the cover hero content. Default: 240px.
|
|
11
|
-
* @cssprop --cover-hero-overlay - overlay color of the cover hero (CSS background property).
|
|
9
|
+
* @cssprop --cover-hero-overlay - overlay color of the cover hero (CSS `background` property). **Default**: `linear-gradient(270deg, #0000 0%, #000000e6 100%)`.
|
|
12
10
|
* @cssprop --cover-hero-text-color - color of the text.
|
|
11
|
+
* @cssprop --cover-hero-aspect-ratio - aspect ratio to use for the image. You can pass a fraction or a number representing the ratio. **Default**: the intrinsic aspect ratio of the slotted image or `16/9`.
|
|
13
12
|
*/
|
|
14
13
|
export declare class ZCoverHero {
|
|
15
|
-
|
|
14
|
+
host: HTMLZCoverHeroElement;
|
|
16
15
|
/**
|
|
17
|
-
* Cover hero variant.
|
|
18
|
-
* Can be one of "OVERLAY", "STACKED".
|
|
16
|
+
* Cover hero variant. Can be `OVERLAY` or `STACKED`.
|
|
19
17
|
*/
|
|
20
18
|
variant: CoverHeroVariant;
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
20
|
+
* Vertical content position (for `STACKED` variant).
|
|
23
21
|
*/
|
|
24
22
|
contentPosition: CoverHeroContentPosition;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to keep the image aspect ratio.
|
|
25
|
+
* If set to `false`, the cssprop `--cover-hero-aspect-ratio` will not affect the component's size;
|
|
26
|
+
* instead, the height of the component follows the content's one.
|
|
27
|
+
* Note: it may be necessary to set a min and/or max height to the component.
|
|
28
|
+
*/
|
|
29
|
+
preserveAspectRatio: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Store the intrinsic aspect ratio of the slotted image when loaded,
|
|
32
|
+
* to have a default when `--cover-hero-aspect-ratio` is not set.
|
|
33
|
+
* @param target The event target
|
|
34
|
+
*/
|
|
35
|
+
protected onImgLoad({ target }: Event): void;
|
|
25
36
|
/**
|
|
26
37
|
* Template for the content.
|
|
27
38
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|