@itcenteratunihelsinki/huds-lib 0.5.0 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/huds-lib.cjs.js +1 -1
- package/dist/cjs/hy-accordion-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +1 -1
- package/dist/cjs/hy-anchor-link-list.cjs.entry.js +1 -1
- package/dist/cjs/hy-badge.cjs.entry.js +1 -1
- package/dist/cjs/hy-banner.cjs.entry.js +2 -2
- package/dist/cjs/hy-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/hy-button.cjs.entry.js +1 -1
- package/dist/cjs/hy-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
- package/dist/cjs/hy-content-list-item.cjs.entry.js +9 -3
- package/dist/cjs/hy-content-list.cjs.entry.js +40 -37
- package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
- package/dist/cjs/hy-cta-button.cjs.entry.js +2 -10
- package/dist/cjs/hy-cta-link.cjs.entry.js +4 -22
- package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +2 -2
- package/dist/cjs/hy-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-group-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-group.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-list-type.cjs.entry.js +2 -2
- package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +1 -1
- package/dist/cjs/hy-footer_5.cjs.entry.js +6 -6
- package/dist/cjs/hy-general-list_2.cjs.entry.js +3 -3
- package/dist/cjs/hy-grid-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/hy-heading.cjs.entry.js +3 -3
- package/dist/cjs/hy-hero.cjs.entry.js +23 -130
- package/dist/cjs/hy-image.cjs.entry.js +1 -1
- package/dist/cjs/hy-ingress.cjs.entry.js +1 -1
- package/dist/cjs/hy-introduction.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-figure-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-figure.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-highlight-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-highlight.cjs.entry.js +2 -2
- package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +1 -1
- package/dist/cjs/hy-large-process-flow.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-list.cjs.entry.js +9 -6
- package/dist/cjs/hy-link.cjs.entry.js +2 -2
- package/dist/cjs/hy-list-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-logo-grid-item.cjs.entry.js +30 -0
- package/dist/cjs/hy-logo-grid.cjs.entry.js +5 -9
- package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/hy-main.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-language-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-language_2.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-level-container.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-main-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu.cjs.entry.js +2 -2
- package/dist/cjs/hy-opening-hours-content.cjs.entry.js +1 -1
- package/dist/cjs/hy-opening-hours.cjs.entry.js +2 -2
- package/dist/cjs/hy-pager-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-pager.cjs.entry.js +1 -1
- package/dist/cjs/hy-paragraph-text.cjs.entry.js +4 -4
- package/dist/cjs/hy-person-card.cjs.entry.js +2 -2
- package/dist/cjs/hy-process-flow-box.cjs.entry.js +2 -2
- package/dist/cjs/hy-process.cjs.entry.js +2 -2
- package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
- package/dist/cjs/hy-quote.cjs.entry.js +1 -1
- package/dist/cjs/hy-search-field.cjs.entry.js +2 -2
- package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/hy-site-header_3.cjs.entry.js +4 -4
- package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-tabs.cjs.entry.js +1 -1
- package/dist/cjs/hy-tag.cjs.entry.js +1 -1
- package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
- package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
- package/dist/cjs/hy-user-login-form.cjs.entry.js +2 -2
- package/dist/cjs/hy-video.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-250efadd.js → utils-f2f5569b.js} +14 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion-container/accordion-container.css +2 -0
- package/dist/collection/components/accordion-item/accordion-item.css +2 -0
- package/dist/collection/components/adjacent-image-text/adjacent-image-text.css +2 -0
- package/dist/collection/components/button/button.css +2 -0
- package/dist/collection/components/courses/hy-content-list/hy-content-list.css +2 -0
- package/dist/collection/components/courses/hy-content-list/hy-content-list.js +62 -36
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +10 -0
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +32 -3
- package/dist/collection/components/cta-button/cta-button.css +101 -138
- package/dist/collection/components/cta-button/cta-button.js +1 -9
- package/dist/collection/components/cta-link/cta-link.css +21 -121
- package/dist/collection/components/cta-link/cta-link.js +7 -63
- package/dist/collection/components/footer/hy-footer/hy-footer.css +2 -0
- package/dist/collection/components/footer/hy-footer-action/hy-footer-action.css +2 -0
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.css +2 -0
- package/dist/collection/components/footer/hy-footer-info/hy-footer-info.css +2 -0
- package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.css +2 -0
- package/dist/collection/components/grid-container/grid-container.css +2 -0
- package/dist/collection/components/grid-item/grid-item.css +2 -0
- package/dist/collection/components/grid-row/grid-row.css +2 -0
- package/dist/collection/components/heading/heading-fw.css +6 -75
- package/dist/collection/components/heading/heading.css +6 -75
- package/dist/collection/components/heading/heading.js +1 -1
- package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.css +2 -0
- package/dist/collection/components/hy-badge/hy-badge.css +2 -0
- package/dist/collection/components/hy-banner/hy-banner.css +2 -0
- package/dist/collection/components/hy-box/hy-box.css +2 -0
- package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.css +2 -0
- package/dist/collection/components/hy-checkbox/hy-checkbox.css +2 -0
- package/dist/collection/components/hy-collaboration/hy-collaboration.css +2 -0
- package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.css +2 -0
- package/dist/collection/components/hy-dropdown/hy-dropdown.css +2 -0
- package/dist/collection/components/hy-filter-group/hy-filter-group.css +2 -0
- package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.css +2 -0
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.css +2 -0
- package/dist/collection/components/hy-general-list/hy-general-list.css +2 -0
- package/dist/collection/components/hy-general-list-item/hy-general-list-item.css +2 -0
- package/dist/collection/components/hy-hero/hy-hero.css +129 -712
- package/dist/collection/components/hy-hero/hy-hero.js +56 -168
- package/dist/collection/components/hy-introduction/hy-introduction.css +2 -0
- package/dist/collection/components/hy-key-figure/hy-key-figure.css +2 -0
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +2 -0
- package/dist/collection/components/hy-key-highlight/hy-key-highlight.css +2 -0
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -0
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +2 -0
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +2 -0
- package/dist/collection/components/hy-link-list/hy-link-list.css +223 -14
- package/dist/collection/components/hy-link-list/hy-link-list.js +45 -7
- package/dist/collection/components/hy-list-item/hy-list-item.css +2 -0
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.css +2 -0
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +64 -0
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +3 -27
- package/dist/collection/components/hy-main/hy-main.css +2 -0
- package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.css +2 -0
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -0
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -0
- package/dist/collection/components/hy-person-card/hy-person-card.css +2 -0
- package/dist/collection/components/hy-prominent-image/hy-prominent-image.css +2 -0
- package/dist/collection/components/hy-quote/hy-quote.css +2 -0
- package/dist/collection/components/hy-search-field/hy-search-field.css +2 -0
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +2 -0
- package/dist/collection/components/hy-table-container/hy-table-container.css +2 -0
- package/dist/collection/components/hy-tabs/hy-tabs.css +2 -0
- package/dist/collection/components/hy-tabs-item/hy-tabs-item.css +2 -0
- package/dist/collection/components/hy-tag/hy-tag.css +2 -0
- package/dist/collection/components/hy-two-columns/hy-two-columns.css +2 -0
- package/dist/collection/components/hy-user-login-form/hy-user-login-form.css +2 -0
- package/dist/collection/components/hy-video/hy-video.css +2 -0
- package/dist/collection/components/image/image.css +2 -0
- package/dist/collection/components/ingress/ingress.css +2 -0
- package/dist/collection/components/link/link.css +2 -0
- package/dist/collection/components/link-box/link-box.css +2 -0
- package/dist/collection/components/link-box-list/link-box-list.css +2 -0
- package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.css +2 -0
- package/dist/collection/components/navigation/menu/menu.css +2 -0
- package/dist/collection/components/navigation/menu-item/menu-item.css +2 -0
- package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +2 -0
- package/dist/collection/components/navigation/menu-language/menu-language.css +2 -0
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.css +2 -0
- package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +2 -0
- package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +2 -0
- package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +2 -0
- package/dist/collection/components/pagination/hy-pager/hy-pager.css +2 -0
- package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.css +2 -0
- package/dist/collection/components/paragraph-text/paragraph-text-content.css +2 -0
- package/dist/collection/components/paragraph-text/paragraph-text-landing.css +2 -0
- package/dist/collection/components/paragraph-text/paragraph-text.css +7 -0
- package/dist/collection/components/paragraph-text/paragraph-text.js +1 -2
- package/dist/collection/components/process/process.css +2 -0
- package/dist/collection/components/process-flow-box/process-flow-box.css +2 -0
- package/dist/collection/components/section-container/section-container.css +2 -0
- package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +2 -0
- package/dist/collection/components/site-header/site-header.css +2 -0
- package/dist/collection/components/site-header/site-logo/site-logo.css +2 -0
- package/dist/collection/components/site-header/site-search/site-search.css +2 -0
- package/dist/collection/components/tiny-text/tiny-text.css +2 -0
- package/dist/collection/utils/utils.js +14 -0
- package/dist/esm/huds-lib.js +1 -1
- package/dist/esm/hy-accordion-container.entry.js +1 -1
- package/dist/esm/hy-accordion-item.entry.js +2 -2
- package/dist/esm/hy-adjacent-image-text.entry.js +1 -1
- package/dist/esm/hy-anchor-link-list.entry.js +1 -1
- package/dist/esm/hy-badge.entry.js +1 -1
- package/dist/esm/hy-banner.entry.js +2 -2
- package/dist/esm/hy-box.entry.js +1 -1
- package/dist/esm/hy-breadcrumbs.entry.js +2 -2
- package/dist/esm/hy-button.entry.js +1 -1
- package/dist/esm/hy-checkbox.entry.js +2 -2
- package/dist/esm/hy-collaboration.entry.js +1 -1
- package/dist/esm/hy-content-list-item.entry.js +9 -3
- package/dist/esm/hy-content-list.entry.js +40 -37
- package/dist/esm/hy-crisis-banner.entry.js +1 -1
- package/dist/esm/hy-cta-button.entry.js +2 -10
- package/dist/esm/hy-cta-link.entry.js +4 -22
- package/dist/esm/hy-desktop-menu-links.entry.js +2 -2
- package/dist/esm/hy-dropdown.entry.js +1 -1
- package/dist/esm/hy-filter-group-item.entry.js +1 -1
- package/dist/esm/hy-filter-group.entry.js +1 -1
- package/dist/esm/hy-filter-list-type.entry.js +2 -2
- package/dist/esm/hy-filter-visibility-tool.entry.js +1 -1
- package/dist/esm/hy-footer_5.entry.js +6 -6
- package/dist/esm/hy-general-list_2.entry.js +3 -3
- package/dist/esm/hy-grid-container.entry.js +1 -1
- package/dist/esm/hy-grid-item.entry.js +2 -2
- package/dist/esm/hy-grid-row.entry.js +1 -1
- package/dist/esm/hy-heading.entry.js +3 -3
- package/dist/esm/hy-hero.entry.js +23 -130
- package/dist/esm/hy-image.entry.js +1 -1
- package/dist/esm/hy-ingress.entry.js +1 -1
- package/dist/esm/hy-introduction.entry.js +2 -2
- package/dist/esm/hy-key-figure-group.entry.js +2 -2
- package/dist/esm/hy-key-figure.entry.js +2 -2
- package/dist/esm/hy-key-highlight-group.entry.js +2 -2
- package/dist/esm/hy-key-highlight.entry.js +2 -2
- package/dist/esm/hy-large-process-flow-phase.entry.js +1 -1
- package/dist/esm/hy-large-process-flow.entry.js +2 -2
- package/dist/esm/hy-link-box-list.entry.js +2 -2
- package/dist/esm/hy-link-box.entry.js +2 -2
- package/dist/esm/hy-link-list.entry.js +9 -6
- package/dist/esm/hy-link.entry.js +2 -2
- package/dist/esm/hy-list-item.entry.js +2 -2
- package/dist/esm/hy-logo-grid-item.entry.js +26 -0
- package/dist/esm/hy-logo-grid.entry.js +5 -9
- package/dist/esm/hy-main-content-wrapper.entry.js +1 -1
- package/dist/esm/hy-main.entry.js +1 -1
- package/dist/esm/hy-menu-item-sidebar.entry.js +2 -2
- package/dist/esm/hy-menu-item.entry.js +2 -2
- package/dist/esm/hy-menu-language-item.entry.js +1 -1
- package/dist/esm/hy-menu-language_2.entry.js +2 -2
- package/dist/esm/hy-menu-level-container.entry.js +2 -2
- package/dist/esm/hy-menu-main-group.entry.js +2 -2
- package/dist/esm/hy-menu-sidebar.entry.js +2 -2
- package/dist/esm/hy-menu.entry.js +2 -2
- package/dist/esm/hy-opening-hours-content.entry.js +1 -1
- package/dist/esm/hy-opening-hours.entry.js +2 -2
- package/dist/esm/hy-pager-item.entry.js +2 -2
- package/dist/esm/hy-pager.entry.js +1 -1
- package/dist/esm/hy-paragraph-text.entry.js +4 -4
- package/dist/esm/hy-person-card.entry.js +2 -2
- package/dist/esm/hy-process-flow-box.entry.js +2 -2
- package/dist/esm/hy-process.entry.js +2 -2
- package/dist/esm/hy-prominent-image.entry.js +1 -1
- package/dist/esm/hy-quote.entry.js +1 -1
- package/dist/esm/hy-search-field.entry.js +2 -2
- package/dist/esm/hy-section-container.entry.js +1 -1
- package/dist/esm/hy-shortcuts.entry.js +2 -2
- package/dist/esm/hy-site-header_3.entry.js +4 -4
- package/dist/esm/hy-table-container.entry.js +1 -1
- package/dist/esm/hy-tabs-item.entry.js +1 -1
- package/dist/esm/hy-tabs.entry.js +1 -1
- package/dist/esm/hy-tag.entry.js +1 -1
- package/dist/esm/hy-tiny-text.entry.js +1 -1
- package/dist/esm/hy-two-columns.entry.js +1 -1
- package/dist/esm/hy-user-login-form.entry.js +2 -2
- package/dist/esm/hy-video.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-8abfa3c2.js → utils-5edb511a.js} +15 -1
- package/dist/huds-lib/huds-lib.css +1 -1
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/p-031d3bf8.entry.js +1 -0
- package/dist/huds-lib/{p-4d4f7c93.entry.js → p-039f663c.entry.js} +1 -1
- package/dist/huds-lib/p-0523053d.entry.js +1 -0
- package/dist/huds-lib/p-06a18d92.entry.js +1 -0
- package/dist/huds-lib/p-0c682a0e.entry.js +1 -0
- package/dist/huds-lib/{p-94d8d10a.entry.js → p-0f50c3f9.entry.js} +1 -1
- package/dist/huds-lib/p-124131e3.entry.js +1 -0
- package/dist/huds-lib/p-1296897a.entry.js +1 -0
- package/dist/huds-lib/p-20a265d7.js +1 -0
- package/dist/huds-lib/p-23820e91.entry.js +1 -0
- package/dist/huds-lib/p-253f796c.entry.js +1 -0
- package/dist/huds-lib/p-2ae655ad.entry.js +1 -0
- package/dist/huds-lib/p-2ee57761.entry.js +1 -0
- package/dist/huds-lib/p-31ff02c7.entry.js +1 -0
- package/dist/huds-lib/{p-c3f5d0ce.entry.js → p-35bc6516.entry.js} +1 -1
- package/dist/huds-lib/p-3637543d.entry.js +1 -0
- package/dist/huds-lib/p-3663dfa6.entry.js +1 -0
- package/dist/huds-lib/p-381e756f.entry.js +1 -0
- package/dist/huds-lib/p-40da4ea2.entry.js +1 -0
- package/dist/huds-lib/p-4539ca8d.entry.js +1 -0
- package/dist/huds-lib/p-485099a1.entry.js +1 -0
- package/dist/huds-lib/p-499b6c19.entry.js +1 -0
- package/dist/huds-lib/p-4c8a98c2.entry.js +1 -0
- package/dist/huds-lib/p-57aaf7d3.entry.js +1 -0
- package/dist/huds-lib/p-57ab4e6e.entry.js +1 -0
- package/dist/huds-lib/p-5a95b265.entry.js +1 -0
- package/dist/huds-lib/p-6053432d.entry.js +1 -0
- package/dist/huds-lib/p-636002e9.entry.js +1 -0
- package/dist/huds-lib/p-665bab39.entry.js +1 -0
- package/dist/huds-lib/p-69bb03b5.entry.js +1 -0
- package/dist/huds-lib/p-69fdd152.entry.js +1 -0
- package/dist/huds-lib/p-70fcc954.entry.js +1 -0
- package/dist/huds-lib/p-711691d9.entry.js +1 -0
- package/dist/huds-lib/p-727a9714.entry.js +1 -0
- package/dist/huds-lib/p-7b16ec44.entry.js +1 -0
- package/dist/huds-lib/{p-0f8df159.entry.js → p-7b2c2481.entry.js} +1 -1
- package/dist/huds-lib/p-7d777e18.entry.js +1 -0
- package/dist/huds-lib/p-8942d01b.entry.js +1 -0
- package/dist/huds-lib/p-8d9ced03.entry.js +1 -0
- package/dist/huds-lib/p-8f8c3f99.entry.js +1 -0
- package/dist/huds-lib/p-91397c3c.entry.js +1 -0
- package/dist/huds-lib/p-98dd30e9.entry.js +1 -0
- package/dist/huds-lib/p-9b834399.entry.js +1 -0
- package/dist/huds-lib/p-9deb2733.entry.js +1 -0
- package/dist/huds-lib/p-9f108905.entry.js +1 -0
- package/dist/huds-lib/p-a2a007e9.entry.js +1 -0
- package/dist/huds-lib/p-a847e865.entry.js +1 -0
- package/dist/huds-lib/p-a8618be5.entry.js +1 -0
- package/dist/huds-lib/p-abebc2df.entry.js +1 -0
- package/dist/huds-lib/p-ad5233f6.entry.js +1 -0
- package/dist/huds-lib/p-ad8591a4.entry.js +1 -0
- package/dist/huds-lib/p-af8801e4.entry.js +1 -0
- package/dist/huds-lib/p-b4bf94bd.entry.js +1 -0
- package/dist/huds-lib/p-b542ab10.entry.js +1 -0
- package/dist/huds-lib/p-b6cc78ce.entry.js +1 -0
- package/dist/huds-lib/p-b87355aa.entry.js +1 -0
- package/dist/huds-lib/p-ba8ac70e.entry.js +1 -0
- package/dist/huds-lib/p-c0b247d8.entry.js +1 -0
- package/dist/huds-lib/p-c1c66328.entry.js +1 -0
- package/dist/huds-lib/p-c78875fd.entry.js +1 -0
- package/dist/huds-lib/p-c89d1618.entry.js +1 -0
- package/dist/huds-lib/p-c8b11427.entry.js +1 -0
- package/dist/huds-lib/p-d06af299.entry.js +1 -0
- package/dist/huds-lib/p-d38b0576.entry.js +1 -0
- package/dist/huds-lib/p-d8161ace.entry.js +1 -0
- package/dist/huds-lib/p-db4c74a2.entry.js +1 -0
- package/dist/huds-lib/p-df306531.entry.js +1 -0
- package/dist/huds-lib/p-e00b9ff1.entry.js +1 -0
- package/dist/huds-lib/p-e07cc533.entry.js +1 -0
- package/dist/huds-lib/p-e4930926.entry.js +1 -0
- package/dist/huds-lib/p-e5bf0843.entry.js +1 -0
- package/dist/huds-lib/p-ef6935c1.entry.js +1 -0
- package/dist/huds-lib/{p-ef257bde.entry.js → p-f05bdce1.entry.js} +6 -6
- package/dist/huds-lib/p-f60f8340.entry.js +1 -0
- package/dist/huds-lib/p-f6117edb.entry.js +1 -0
- package/dist/huds-lib/p-fc2f0ada.entry.js +1 -0
- package/dist/huds-lib/p-fe6eb2b6.entry.js +1 -0
- package/dist/huds-lib/p-ff55795d.entry.js +1 -0
- package/dist/types/components/courses/hy-content-list/hy-content-list.d.ts +2 -0
- package/dist/types/components/courses/hy-content-list-item/hy-content-list-item.d.ts +2 -1
- package/dist/types/components/cta-button/cta-button.d.ts +0 -1
- package/dist/types/components/cta-link/cta-link.d.ts +0 -3
- package/dist/types/components/hy-hero/hy-hero.d.ts +2 -6
- package/dist/types/components/hy-link-list/hy-link-list.d.ts +3 -0
- package/dist/types/components/hy-logo-grid/hy-logo-grid.d.ts +1 -2
- package/dist/types/components/hy-logo-grid/hy-logo-grid.item.d.ts +5 -0
- package/dist/types/components.d.ts +28 -9
- package/dist/types/utils/utils.d.ts +13 -1
- package/package.json +1 -1
- package/dist/huds-lib/p-04c0025f.entry.js +0 -1
- package/dist/huds-lib/p-073c159c.entry.js +0 -1
- package/dist/huds-lib/p-07879e63.entry.js +0 -1
- package/dist/huds-lib/p-09d51ef3.entry.js +0 -1
- package/dist/huds-lib/p-0ad985b7.entry.js +0 -1
- package/dist/huds-lib/p-133ae856.entry.js +0 -1
- package/dist/huds-lib/p-231a4ecb.entry.js +0 -1
- package/dist/huds-lib/p-234d4903.entry.js +0 -1
- package/dist/huds-lib/p-241754b9.entry.js +0 -1
- package/dist/huds-lib/p-257478e6.entry.js +0 -1
- package/dist/huds-lib/p-276d93ec.entry.js +0 -1
- package/dist/huds-lib/p-2c370ae5.entry.js +0 -1
- package/dist/huds-lib/p-3000b90a.entry.js +0 -1
- package/dist/huds-lib/p-3173b79e.entry.js +0 -1
- package/dist/huds-lib/p-31d6ddf6.entry.js +0 -1
- package/dist/huds-lib/p-334d3c51.entry.js +0 -1
- package/dist/huds-lib/p-345d3f01.entry.js +0 -1
- package/dist/huds-lib/p-3626953d.entry.js +0 -1
- package/dist/huds-lib/p-3a317b1f.entry.js +0 -1
- package/dist/huds-lib/p-3b456fd6.entry.js +0 -1
- package/dist/huds-lib/p-3dd8acb8.entry.js +0 -1
- package/dist/huds-lib/p-3de303ab.entry.js +0 -1
- package/dist/huds-lib/p-3f27e439.entry.js +0 -1
- package/dist/huds-lib/p-4080818c.entry.js +0 -1
- package/dist/huds-lib/p-47c87b1c.js +0 -1
- package/dist/huds-lib/p-4e509573.entry.js +0 -1
- package/dist/huds-lib/p-559f5267.entry.js +0 -1
- package/dist/huds-lib/p-609402fd.entry.js +0 -1
- package/dist/huds-lib/p-60ec6d2e.entry.js +0 -1
- package/dist/huds-lib/p-611fb7df.entry.js +0 -1
- package/dist/huds-lib/p-650c6e4e.entry.js +0 -1
- package/dist/huds-lib/p-6b792a8c.entry.js +0 -1
- package/dist/huds-lib/p-72db0033.entry.js +0 -1
- package/dist/huds-lib/p-7a6780e4.entry.js +0 -1
- package/dist/huds-lib/p-7c83f52e.entry.js +0 -1
- package/dist/huds-lib/p-7ede0f30.entry.js +0 -1
- package/dist/huds-lib/p-7effbe77.entry.js +0 -1
- package/dist/huds-lib/p-8319d830.entry.js +0 -1
- package/dist/huds-lib/p-90505cc3.entry.js +0 -1
- package/dist/huds-lib/p-9361deb2.entry.js +0 -1
- package/dist/huds-lib/p-97bf12b5.entry.js +0 -1
- package/dist/huds-lib/p-97d03f15.entry.js +0 -1
- package/dist/huds-lib/p-9d3a8885.entry.js +0 -1
- package/dist/huds-lib/p-a08adde3.entry.js +0 -1
- package/dist/huds-lib/p-a2f65964.entry.js +0 -1
- package/dist/huds-lib/p-a3e75fcd.entry.js +0 -1
- package/dist/huds-lib/p-a6b86c8d.entry.js +0 -1
- package/dist/huds-lib/p-a6fecd61.entry.js +0 -1
- package/dist/huds-lib/p-a79930ee.entry.js +0 -1
- package/dist/huds-lib/p-a8ec267d.entry.js +0 -1
- package/dist/huds-lib/p-afab35ab.entry.js +0 -1
- package/dist/huds-lib/p-b2d88ab1.entry.js +0 -1
- package/dist/huds-lib/p-b40af061.entry.js +0 -1
- package/dist/huds-lib/p-b4c5f23b.entry.js +0 -1
- package/dist/huds-lib/p-c1a6c019.entry.js +0 -1
- package/dist/huds-lib/p-c6c6db7a.entry.js +0 -1
- package/dist/huds-lib/p-cbb94daf.entry.js +0 -1
- package/dist/huds-lib/p-cc578c01.entry.js +0 -1
- package/dist/huds-lib/p-d1e6dc01.entry.js +0 -1
- package/dist/huds-lib/p-d4e9dad5.entry.js +0 -1
- package/dist/huds-lib/p-d53511e8.entry.js +0 -1
- package/dist/huds-lib/p-d794037a.entry.js +0 -1
- package/dist/huds-lib/p-da8e3d7b.entry.js +0 -1
- package/dist/huds-lib/p-db1cd38d.entry.js +0 -1
- package/dist/huds-lib/p-dd632aee.entry.js +0 -1
- package/dist/huds-lib/p-e4daac5b.entry.js +0 -1
- package/dist/huds-lib/p-e70d2a38.entry.js +0 -1
- package/dist/huds-lib/p-ebfda04f.entry.js +0 -1
- package/dist/huds-lib/p-ecb15145.entry.js +0 -1
- package/dist/huds-lib/p-ee7451da.entry.js +0 -1
- package/dist/huds-lib/p-f0b37b49.entry.js +0 -1
- package/dist/huds-lib/p-fa1e92fa.entry.js +0 -1
|
@@ -1,179 +1,69 @@
|
|
|
1
|
-
import { Component, Element, h, Host,
|
|
1
|
+
import { Component, Element, h, Host, Prop } from '@stencil/core';
|
|
2
2
|
import { jsonParserWorker } from '../../global/globalScript';
|
|
3
|
-
import { CtaLinkButtonVariants, HeadingSectionVariants, HeadingVarians, HeroColorVariant, HeroGroupTypeVariant, HeroTypeVariant, } from '../../utils/utils';
|
|
3
|
+
import { CtaLinkButtonVariants, HeadingSectionVariants, HeadingVarians, HeroColorVariant, HeroSizeVariant, HeroGroupTypeVariant, HeroTypeVariant, } from '../../utils/utils';
|
|
4
4
|
export class HyHero {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.heroType = HeroTypeVariant.landing;
|
|
7
7
|
this.heroGroupType = HeroGroupTypeVariant.default;
|
|
8
8
|
this.colorVariant = HeroColorVariant.blue;
|
|
9
|
+
this.sizeVariant = HeroSizeVariant.large;
|
|
9
10
|
this.disableLazy = false;
|
|
10
11
|
this.hasShortcuts = false;
|
|
11
12
|
this.isExternal = false;
|
|
12
|
-
this.headerstyle = 'common';
|
|
13
13
|
}
|
|
14
14
|
async componentWillLoad() {
|
|
15
15
|
this._sourceSet = await jsonParserWorker(this.sourceSet);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
render() {
|
|
18
|
+
let variant = CtaLinkButtonVariants.heroWhite;
|
|
19
|
+
let colorVariantValue = this.colorVariant;
|
|
20
|
+
let heroTypeValue = this.heroType;
|
|
21
|
+
if (this.heroType === 'minor_landing') {
|
|
22
|
+
colorVariantValue = HeroColorVariant.white;
|
|
23
|
+
heroTypeValue = HeroTypeVariant.landing;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
setContentDivPosition() {
|
|
27
|
-
const contentDiv = document.querySelectorAll('.hy-hero__content--container')[0];
|
|
28
|
-
if (!contentDiv)
|
|
29
|
-
return;
|
|
30
|
-
if (document.body.scrollWidth <= 1200) {
|
|
31
|
-
contentDiv.style.left = '0';
|
|
25
|
+
if (colorVariantValue === HeroColorVariant.blue) {
|
|
26
|
+
variant = CtaLinkButtonVariants.heroBlue;
|
|
32
27
|
}
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
if (!contentWrapper)
|
|
36
|
-
return;
|
|
37
|
-
if (document.body.scrollWidth >= 1441) {
|
|
38
|
-
const marginLeft = parseInt(window.getComputedStyle(contentWrapper).getPropertyValue('margin-left'));
|
|
39
|
-
if (marginLeft > 32) {
|
|
40
|
-
contentDiv.style.left = `${marginLeft}px`;
|
|
41
|
-
}
|
|
42
|
-
else if (marginLeft > 0) {
|
|
43
|
-
contentDiv.style.left = '32px';
|
|
44
|
-
}
|
|
45
|
-
else if (marginLeft == 0) {
|
|
46
|
-
contentDiv.style.left = '0px';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
contentDiv.style.left = window.getComputedStyle(contentWrapper).getPropertyValue('padding-left');
|
|
51
|
-
}
|
|
28
|
+
if (colorVariantValue === HeroColorVariant.black) {
|
|
29
|
+
variant = CtaLinkButtonVariants.heroBlack;
|
|
52
30
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (!event)
|
|
56
|
-
return;
|
|
57
|
-
this.setContentDivPosition();
|
|
58
|
-
}
|
|
59
|
-
scrollToContent(e) {
|
|
60
|
-
e.preventDefault();
|
|
61
|
-
e.stopPropagation();
|
|
62
|
-
const heroHeight = document.getElementsByClassName('hy-hero');
|
|
63
|
-
// Set here how much should the arrow scroll down.
|
|
64
|
-
const scrollAmount = heroHeight[0].offsetHeight / 2;
|
|
65
|
-
window.scrollBy({
|
|
66
|
-
top: scrollAmount,
|
|
67
|
-
left: 0,
|
|
68
|
-
behavior: 'smooth',
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
render() {
|
|
72
|
-
let variant = CtaLinkButtonVariants.onWhiteBkgd;
|
|
73
|
-
let colorVariantValue = HeroColorVariant.white;
|
|
74
|
-
// Hero on minor landing pages always uses White Background.
|
|
75
|
-
if (this.heroType !== HeroTypeVariant.minor_landing) {
|
|
76
|
-
colorVariantValue = this.colorVariant;
|
|
77
|
-
if (this.colorVariant == HeroColorVariant.black) {
|
|
78
|
-
variant = CtaLinkButtonVariants.onBlackBkgd;
|
|
79
|
-
}
|
|
80
|
-
else if (this.colorVariant == HeroColorVariant.blue) {
|
|
81
|
-
variant = CtaLinkButtonVariants.onBlueBkgd;
|
|
82
|
-
}
|
|
83
|
-
else if (this.colorVariant == HeroColorVariant.fp_white) {
|
|
84
|
-
colorVariantValue = HeroColorVariant.white;
|
|
85
|
-
}
|
|
31
|
+
if (!colorVariantValue || colorVariantValue === 'fp_white') {
|
|
32
|
+
colorVariantValue = HeroColorVariant.white;
|
|
86
33
|
}
|
|
87
|
-
let
|
|
34
|
+
let hyHeroClasses = [
|
|
88
35
|
'hy-hero',
|
|
89
|
-
`hy-hero--${
|
|
36
|
+
`hy-hero--${heroTypeValue}`,
|
|
90
37
|
`hy-hero--${this.heroGroupType}`,
|
|
91
|
-
`hy-hero__${this.headerstyle}`,
|
|
92
38
|
`hy-hero--${colorVariantValue}`,
|
|
93
|
-
|
|
94
|
-
let classHeroContainerArray = [
|
|
95
|
-
'hy-hero__container',
|
|
96
|
-
`hy-hero__container--${this.heroType}--${this.headerstyle}`,
|
|
97
|
-
`hy-hero__container--${this.heroType}`,
|
|
98
|
-
`${this.heroGroupType}`,
|
|
99
|
-
`${this.headerstyle}`,
|
|
100
|
-
`hy-hero__container--${colorVariantValue}`,
|
|
39
|
+
`hy-hero--${this.sizeVariant}`,
|
|
101
40
|
];
|
|
102
41
|
// If there is a Shortcuts block after hero, add the class 'shortcuts' to remove underline.
|
|
103
42
|
if (this.hasShortcuts) {
|
|
104
|
-
|
|
105
|
-
classHeroContainerArray.push('shortcuts');
|
|
43
|
+
hyHeroClasses.push('has-shortcuts');
|
|
106
44
|
}
|
|
107
|
-
const classAttributes = classAttributesArray.join(' ');
|
|
108
|
-
const classHeroContainer = classHeroContainerArray.join(' ');
|
|
109
|
-
const classDescription = [
|
|
110
|
-
'hy-hero__description',
|
|
111
|
-
`hy-hero__description__${this.headerstyle}`,
|
|
112
|
-
`hy-hero__description--${this.heroType}`,
|
|
113
|
-
`hy-hero__description--${colorVariantValue}`,
|
|
114
|
-
].join(' ');
|
|
115
|
-
const classContentContainer = [
|
|
116
|
-
'hy-hero__content',
|
|
117
|
-
`hy-hero__content--${this.headerstyle}`,
|
|
118
|
-
`hy-hero__content--${this.heroType}`,
|
|
119
|
-
].join(' ');
|
|
120
|
-
const classHeroTitle = [
|
|
121
|
-
'hy-hero__title',
|
|
122
|
-
`hy-hero__title--${this.heroType}`,
|
|
123
|
-
`hy-hero__title--${colorVariantValue}`,
|
|
124
|
-
].join(' ');
|
|
125
|
-
const classHeroTitleOverlay = [
|
|
126
|
-
'hy-hero__title',
|
|
127
|
-
'hy-hero__title--overlay',
|
|
128
|
-
`hy-hero__title--overlay--${colorVariantValue}`,
|
|
129
|
-
].join(' ');
|
|
130
|
-
const classHeroActions = ['hy-hero__actions', `hy-hero__actions--${this.heroType}`].join(' ');
|
|
131
|
-
const classHeroImage = ['hy-image__image', `hy-image__image--${this.heroType}`].join(' ');
|
|
132
|
-
const classHeroImageContainer = ['hy-hero__image-container', `hy-hero__image-container--${this.heroType}`].join(' ');
|
|
133
|
-
const classHeroContentContainer = [
|
|
134
|
-
'hy-hero__content-container',
|
|
135
|
-
`hy-hero__content-container--${this.heroType}`,
|
|
136
|
-
`hy-hero__content-container--${colorVariantValue}`,
|
|
137
|
-
].join(' ');
|
|
138
|
-
const classSpacerBox = [
|
|
139
|
-
'hy-hero__spacer-box',
|
|
140
|
-
`hy-hero__spacer-box--${this.heroType}`,
|
|
141
|
-
`hy-hero__spacer-box--${colorVariantValue}`,
|
|
142
|
-
].join(' ');
|
|
143
|
-
const classHeroTitleContainer = ['hy-hero__title-container', `hy-hero__title-container--${this.heroType}`].join(' ');
|
|
144
|
-
const classScrollButton = ['hy-hero__scroll-button', `${this.heroGroupType}`].join(' ');
|
|
145
45
|
const aspectRatioWidth = 16;
|
|
146
46
|
const aspectRatioHeight = 10;
|
|
147
47
|
const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
|
|
148
48
|
const aspectRatio = {
|
|
149
49
|
'--aspectRatio': `${aspect}%`,
|
|
150
50
|
};
|
|
151
|
-
|
|
152
|
-
let headingSection = HeadingSectionVariants.landingMinor;
|
|
153
|
-
if (this.heroType == HeroTypeVariant.front_page) {
|
|
154
|
-
headingSection = HeadingSectionVariants.frontPage;
|
|
155
|
-
}
|
|
156
|
-
else if (this.heroType == HeroTypeVariant.landing) {
|
|
157
|
-
headingSection = HeadingSectionVariants.landingMajor;
|
|
158
|
-
}
|
|
51
|
+
const headingSection = HeadingSectionVariants.hero;
|
|
159
52
|
return (h(Host, null,
|
|
160
|
-
h("div", { class:
|
|
161
|
-
h("div", { class:
|
|
162
|
-
h("div", { class:
|
|
53
|
+
h("div", { class: hyHeroClasses.join(' ') },
|
|
54
|
+
h("div", { class: `hy-hero__container` },
|
|
55
|
+
h("div", { class: `hy-hero__image-container`, style: aspectRatio }, this.image &&
|
|
163
56
|
(this._sourceSet ? (h("picture", null,
|
|
164
57
|
this._sourceSet.map((item) => (h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : '' }))),
|
|
165
|
-
h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class:
|
|
166
|
-
h("div", { class:
|
|
167
|
-
h("div", { class:
|
|
168
|
-
h("div", { class:
|
|
169
|
-
h("div", { class:
|
|
170
|
-
h("hy-heading", { class:
|
|
171
|
-
|
|
172
|
-
this.
|
|
173
|
-
|
|
174
|
-
h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant })))))),
|
|
175
|
-
h("button", { onClick: (e) => this.scrollToContent(e), class: classScrollButton, type: "button", "aria-label": "Scroll to content" },
|
|
176
|
-
h("hy-icon", { class: "hy-hero__scroll-icon", icon: 'hy-icon-caret-down', size: 14, "aria-hidden": "true" }))),
|
|
58
|
+
h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: `hy-image__image`, src: this.image }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.scLabel, class: `hy-image__image`, src: this.image })))),
|
|
59
|
+
h("div", { class: `hy-hero__spacer-box` }),
|
|
60
|
+
h("div", { class: `hy-hero__content-container` },
|
|
61
|
+
h("div", { class: `hy-hero__content` },
|
|
62
|
+
h("div", { class: `hy-hero__title-container` },
|
|
63
|
+
h("hy-heading", { class: `hy-hero__title`, heading: HeadingVarians.default, section: headingSection }, this.heading)),
|
|
64
|
+
this.description && h("p", { class: `hy-hero__description` }, this.description),
|
|
65
|
+
this.url && (h("div", { class: `hy-hero__actions` },
|
|
66
|
+
h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant }))))))),
|
|
177
67
|
h("hy-box", { mb: "2, 2, 1, 1" })));
|
|
178
68
|
}
|
|
179
69
|
static get is() { return "hy-hero"; }
|
|
@@ -253,6 +143,29 @@ export class HyHero {
|
|
|
253
143
|
"reflect": false,
|
|
254
144
|
"defaultValue": "HeroColorVariant.blue"
|
|
255
145
|
},
|
|
146
|
+
"sizeVariant": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "HeroSizeVariant",
|
|
151
|
+
"resolved": "HeroSizeVariant.large | HeroSizeVariant.small",
|
|
152
|
+
"references": {
|
|
153
|
+
"HeroSizeVariant": {
|
|
154
|
+
"location": "import",
|
|
155
|
+
"path": "../../utils/utils"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": ""
|
|
164
|
+
},
|
|
165
|
+
"attribute": "size-variant",
|
|
166
|
+
"reflect": false,
|
|
167
|
+
"defaultValue": "HeroSizeVariant.large"
|
|
168
|
+
},
|
|
256
169
|
"image": {
|
|
257
170
|
"type": "string",
|
|
258
171
|
"mutable": false,
|
|
@@ -409,24 +322,6 @@ export class HyHero {
|
|
|
409
322
|
"reflect": false,
|
|
410
323
|
"defaultValue": "false"
|
|
411
324
|
},
|
|
412
|
-
"headerstyle": {
|
|
413
|
-
"type": "string",
|
|
414
|
-
"mutable": false,
|
|
415
|
-
"complexType": {
|
|
416
|
-
"original": "string",
|
|
417
|
-
"resolved": "string",
|
|
418
|
-
"references": {}
|
|
419
|
-
},
|
|
420
|
-
"required": false,
|
|
421
|
-
"optional": false,
|
|
422
|
-
"docs": {
|
|
423
|
-
"tags": [],
|
|
424
|
-
"text": ""
|
|
425
|
-
},
|
|
426
|
-
"attribute": "headerstyle",
|
|
427
|
-
"reflect": false,
|
|
428
|
-
"defaultValue": "'common'"
|
|
429
|
-
},
|
|
430
325
|
"sourceSet": {
|
|
431
326
|
"type": "string",
|
|
432
327
|
"mutable": false,
|
|
@@ -450,11 +345,4 @@ export class HyHero {
|
|
|
450
345
|
}
|
|
451
346
|
}; }
|
|
452
347
|
static get elementRef() { return "el"; }
|
|
453
|
-
static get listeners() { return [{
|
|
454
|
-
"name": "resize",
|
|
455
|
-
"method": "resizeEventListener",
|
|
456
|
-
"target": "window",
|
|
457
|
-
"capture": false,
|
|
458
|
-
"passive": true
|
|
459
|
-
}]; }
|
|
460
348
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--brand-main: #0e688b;
|
|
3
|
+
--brand-main-soft: #b1e7ff;
|
|
4
|
+
--brand-main-bright: #48c5f8;
|
|
3
5
|
--brand-main-light: #107eab;
|
|
4
6
|
--brand-main-active: #005379;
|
|
5
7
|
--brand-main-dark: #003146;
|
|
@@ -58,26 +60,233 @@
|
|
|
58
60
|
display: block;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
.hy-link-list
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
.hy-link-list {
|
|
64
|
+
margin-bottom: 32px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.hy-link-list__links {
|
|
68
|
+
display: grid;
|
|
69
|
+
gap: 16px;
|
|
70
|
+
list-style: none;
|
|
68
71
|
margin: 0;
|
|
69
|
-
padding
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (min-width: 30rem) {
|
|
76
|
+
.hy-link-list__links--grid {
|
|
77
|
+
gap: 16px 24px;
|
|
78
|
+
grid-template-columns: repeat(2, 1fr);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (min-width: 60rem) {
|
|
83
|
+
.without-sidebar .hy-link-list__links--grid.col-3 {
|
|
84
|
+
gap: 16px 24px;
|
|
85
|
+
grid-template-columns: repeat(3, 1fr);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (min-width: 75.0625rem) {
|
|
90
|
+
.without-sidebar .hy-link-list__links--grid.col-3 {
|
|
91
|
+
gap: 16px 32px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (min-width: 60rem) {
|
|
96
|
+
.without-sidebar .hy-link-list__links--grid.col-4 {
|
|
97
|
+
gap: 16px 24px;
|
|
98
|
+
grid-template-columns: repeat(4, 1fr);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (min-width: 75.0625rem) {
|
|
103
|
+
.without-sidebar .hy-link-list__links--grid.col-4 {
|
|
104
|
+
gap: 16px 32px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (min-width: 75.0625rem) {
|
|
109
|
+
.with-sidebar .hy-link-list__links--grid.col-3 {
|
|
110
|
+
gap: 16px 24px;
|
|
111
|
+
grid-template-columns: repeat(3, 1fr);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@media (min-width: 1601px) {
|
|
116
|
+
.with-sidebar .hy-link-list__links--grid.col-3 {
|
|
117
|
+
gap: 16px 32px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (min-width: 75.0625rem) {
|
|
122
|
+
.with-sidebar .hy-link-list__links--grid.col-4 {
|
|
123
|
+
gap: 16px 24px;
|
|
124
|
+
grid-template-columns: repeat(4, 1fr);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (min-width: 1601px) {
|
|
129
|
+
.with-sidebar .hy-link-list__links--grid.col-4 {
|
|
130
|
+
gap: 16px 32px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.hy-link-list__title {
|
|
135
|
+
font-weight: 700;
|
|
136
|
+
font-family: var(--main-font-family);
|
|
137
|
+
margin: 0 0 32px;
|
|
138
|
+
color: var(--brand-main-nearly-black);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.is-content-page h2.hy-link-list__title {
|
|
142
|
+
font-size: 1.625rem;
|
|
143
|
+
line-height: 32px;
|
|
144
|
+
letter-spacing: -0.82px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (min-width: 30rem) {
|
|
148
|
+
.is-content-page h2.hy-link-list__title {
|
|
149
|
+
font-size: 1.875rem;
|
|
150
|
+
line-height: 36px;
|
|
151
|
+
letter-spacing: -0.6px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (min-width: 75.0625rem) {
|
|
156
|
+
.without-sidebar .is-content-page h2.hy-link-list__title {
|
|
157
|
+
font-size: 2.125rem;
|
|
158
|
+
line-height: 40px;
|
|
159
|
+
letter-spacing: -0.68px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media (min-width: 1601px) {
|
|
164
|
+
.with-sidebar .is-content-page h2.hy-link-list__title {
|
|
165
|
+
font-size: 2.125rem;
|
|
166
|
+
line-height: 40px;
|
|
167
|
+
letter-spacing: -0.68px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.is-front-page h2.hy-link-list__title, .is-landing-page h2.hy-link-list__title {
|
|
172
|
+
font-size: 1.75rem;
|
|
173
|
+
line-height: 32px;
|
|
174
|
+
letter-spacing: -0.7px;
|
|
70
175
|
text-transform: uppercase;
|
|
71
176
|
}
|
|
72
177
|
|
|
73
178
|
@media (min-width: 30rem) {
|
|
74
|
-
.hy-link-
|
|
75
|
-
font-size:
|
|
76
|
-
|
|
179
|
+
.is-front-page h2.hy-link-list__title, .is-landing-page h2.hy-link-list__title {
|
|
180
|
+
font-size: 2.125rem;
|
|
181
|
+
line-height: 40px;
|
|
182
|
+
letter-spacing: -0.85px;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@media (min-width: 75.0625rem) {
|
|
187
|
+
.without-sidebar .is-front-page h2.hy-link-list__title, .without-sidebar .is-landing-page h2.hy-link-list__title {
|
|
188
|
+
font-size: 2.625rem;
|
|
189
|
+
line-height: 48px;
|
|
190
|
+
letter-spacing: -1.05px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-width: 1601px) {
|
|
195
|
+
.with-sidebar .is-front-page h2.hy-link-list__title, .with-sidebar .is-landing-page h2.hy-link-list__title {
|
|
196
|
+
font-size: 2.625rem;
|
|
197
|
+
line-height: 48px;
|
|
198
|
+
letter-spacing: -1.05px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.hy-two-columns h2.hy-link-list__title {
|
|
203
|
+
font-size: 1.125rem;
|
|
204
|
+
line-height: 22px;
|
|
205
|
+
letter-spacing: -0.45px;
|
|
206
|
+
margin-bottom: 16px;
|
|
207
|
+
text-transform: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (min-width: 75.0625rem) {
|
|
211
|
+
.without-sidebar .hy-two-columns h2.hy-link-list__title {
|
|
212
|
+
font-size: 1.25rem;
|
|
213
|
+
line-height: 24px;
|
|
214
|
+
letter-spacing: -0.5px;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (min-width: 1601px) {
|
|
219
|
+
.with-sidebar .hy-two-columns h2.hy-link-list__title {
|
|
220
|
+
font-size: 1.25rem;
|
|
221
|
+
line-height: 24px;
|
|
222
|
+
letter-spacing: -0.5px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.is-content-page h3.hy-link-list__title {
|
|
227
|
+
font-size: 1.3125rem;
|
|
228
|
+
line-height: 28px;
|
|
229
|
+
letter-spacing: -0.42px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@media (min-width: 30rem) {
|
|
233
|
+
.is-content-page h3.hy-link-list__title {
|
|
234
|
+
font-size: 1.5625rem;
|
|
235
|
+
line-height: 32px;
|
|
236
|
+
letter-spacing: -0.5px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.is-front-page h3.hy-link-list__title, .is-landing-page h3.hy-link-list__title {
|
|
241
|
+
font-size: 1.625rem;
|
|
242
|
+
line-height: 32px;
|
|
243
|
+
letter-spacing: -0.52px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@media (min-width: 30rem) {
|
|
247
|
+
.is-front-page h3.hy-link-list__title, .is-landing-page h3.hy-link-list__title {
|
|
248
|
+
font-size: 1.875rem;
|
|
249
|
+
line-height: 36px;
|
|
250
|
+
letter-spacing: -0.6px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@media (min-width: 75.0625rem) {
|
|
255
|
+
.without-sidebar .is-front-page h3.hy-link-list__title, .without-sidebar .is-landing-page h3.hy-link-list__title {
|
|
256
|
+
font-size: 2.125rem;
|
|
257
|
+
line-height: 40px;
|
|
258
|
+
letter-spacing: -0.68px;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (min-width: 1601px) {
|
|
263
|
+
.with-sidebar .is-front-page h3.hy-link-list__title, .with-sidebar .is-landing-page h3.hy-link-list__title {
|
|
264
|
+
font-size: 2.125rem;
|
|
265
|
+
line-height: 40px;
|
|
266
|
+
letter-spacing: -0.68px;
|
|
77
267
|
}
|
|
78
268
|
}
|
|
79
269
|
|
|
80
|
-
.hy-
|
|
81
|
-
|
|
82
|
-
|
|
270
|
+
.hy-two-columns h3.hy-link-list__title {
|
|
271
|
+
font-size: 1.125rem;
|
|
272
|
+
line-height: 22px;
|
|
273
|
+
letter-spacing: -0.45px;
|
|
274
|
+
margin-bottom: 16px;
|
|
275
|
+
text-transform: none;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (min-width: 75.0625rem) {
|
|
279
|
+
.without-sidebar .hy-two-columns h3.hy-link-list__title {
|
|
280
|
+
font-size: 1.25rem;
|
|
281
|
+
line-height: 24px;
|
|
282
|
+
letter-spacing: -0.5px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (min-width: 1601px) {
|
|
287
|
+
.with-sidebar .hy-two-columns h3.hy-link-list__title {
|
|
288
|
+
font-size: 1.25rem;
|
|
289
|
+
line-height: 24px;
|
|
290
|
+
letter-spacing: -0.5px;
|
|
291
|
+
}
|
|
83
292
|
}
|
|
@@ -5,6 +5,7 @@ export class HyLinkList {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.headerstyle = 'default';
|
|
7
7
|
this.listHeading = '';
|
|
8
|
+
this.headingVariant = 'h2';
|
|
8
9
|
}
|
|
9
10
|
async componentWillLoad() {
|
|
10
11
|
this._dataItems = await jsonParserWorker(this.dataItems);
|
|
@@ -18,18 +19,20 @@ export class HyLinkList {
|
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
|
-
const classAttributes = ['hy-link-list', `hy-link-list__${this.headerstyle}`].join(' ');
|
|
22
22
|
const linkVariant = CtaLinkVariants.linkList;
|
|
23
|
+
const HeadingVariant = this.headingVariant.toLowerCase();
|
|
24
|
+
let columnType = 'col-3';
|
|
25
|
+
if (this._dataItems.length === 7 || this._dataItems.length % 4 === 0) {
|
|
26
|
+
columnType = 'col-4';
|
|
27
|
+
}
|
|
23
28
|
return [
|
|
24
|
-
h("
|
|
25
|
-
this.listHeading.length > 0 && h(
|
|
26
|
-
this._dataItems.map((
|
|
27
|
-
|
|
28
|
-
})),
|
|
29
|
+
h("section", { class: `hy-link-list hy-link-list__${this.headerstyle}` },
|
|
30
|
+
this.listHeading.length > 0 && (h(HeadingVariant, { class: 'hy-link-list__title' }, this.listHeading)),
|
|
31
|
+
h("ul", { class: `hy-link-list__links hy-link-list__links--${this.variation} ${this.variation === 'grid' ? columnType : ''}` }, this._dataItems.map(({ heading, ariaLabel, url, isExternal }) => (h("li", { class: "hy-link-list__links-item" },
|
|
32
|
+
h("hy-cta-link", { variant: linkVariant, "link-content": heading, "sc-label": ariaLabel, url: url, "is-external": isExternal })))))),
|
|
29
33
|
];
|
|
30
34
|
}
|
|
31
35
|
static get is() { return "hy-link-list"; }
|
|
32
|
-
static get encapsulation() { return "shadow"; }
|
|
33
36
|
static get originalStyleUrls() { return {
|
|
34
37
|
"$": ["hy-link-list.scss"]
|
|
35
38
|
}; }
|
|
@@ -93,6 +96,41 @@ export class HyLinkList {
|
|
|
93
96
|
"attribute": "list-heading",
|
|
94
97
|
"reflect": false,
|
|
95
98
|
"defaultValue": "''"
|
|
99
|
+
},
|
|
100
|
+
"variation": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"attribute": "variation",
|
|
115
|
+
"reflect": false
|
|
116
|
+
},
|
|
117
|
+
"headingVariant": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "string",
|
|
122
|
+
"resolved": "string",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": ""
|
|
130
|
+
},
|
|
131
|
+
"attribute": "heading-variant",
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "'h2'"
|
|
96
134
|
}
|
|
97
135
|
}; }
|
|
98
136
|
static get elementRef() { return "el"; }
|