@duetds/components 10.4.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +686 -318
- package/hydrate/index.mjs +686 -318
- package/lib/cjs/{a11y-utils-BXDHn_nL.js → a11y-utils-CgWjS7yq.js} +1 -1
- package/lib/cjs/{app-globals-Bs3-XKhd.js → app-globals-D68ciWsb.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +29 -6
- package/lib/cjs/duet-banner.cjs.entry.js +15 -16
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +13 -13
- package/lib/cjs/duet-card.cjs.entry.js +21 -10
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +29 -16
- package/lib/cjs/duet-choice_2.cjs.entry.js +20 -22
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +6 -7
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -7
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +128 -14
- package/lib/cjs/duet-divider_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +17 -17
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +9 -9
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +22 -21
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +132 -23
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +15 -15
- package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-number-input.cjs.entry.js +14 -12
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +20 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +20 -21
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +23 -6
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +20 -8
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -10
- package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +18 -18
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
- package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +20 -14
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +14 -12
- package/lib/cjs/duet-tooltip.cjs.entry.js +25 -8
- package/lib/cjs/duet-tray.cjs.entry.js +7 -7
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-W6UQ3hgy.js → errorcodes.utils-C0tQ3k6Z.js} +1 -1
- package/lib/cjs/{focus-utils-KTKpjKRi.js → focus-utils-tCoGOO7d.js} +1 -1
- package/lib/cjs/{index-C7Yvi8y8.js → index-BeiMjjVl.js} +9 -9
- package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
- package/lib/cjs/{label-DZ63Z3SI.js → label-Cu4DNShe.js} +1 -1
- package/lib/cjs/{language-utils-BsevPDrN.js → language-utils-B3NubUDr.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/picture-utils-D_HVgfq5.js +15 -0
- package/lib/cjs/{slot-utils-DIDW777s.js → slot-utils-Dny6EJ_G.js} +1 -1
- package/lib/cjs/{themeable-component-hQ83w5_A.js → themeable-component-Csdvrnsd.js} +1 -1
- package/lib/cjs/{token-utils-DY3-olMV.js → token-utils-ZISdNshf.js} +1 -1
- package/lib/cjs/{tokens.module-CTbvyezn.js → tokens.module-CGRpZaa1.js} +2 -1
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-badge/duet-badge.css +66 -5
- package/lib/collection/components/duet-badge/duet-badge.js +49 -2
- package/lib/collection/components/duet-banner/duet-banner.css +12 -0
- package/lib/collection/components/duet-banner/duet-banner.js +30 -5
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +5 -0
- package/lib/collection/components/duet-button/duet-button.js +8 -8
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.css +3 -0
- package/lib/collection/components/duet-card/duet-card.js +43 -7
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +54 -21
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +12 -12
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +6 -8
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +38 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -2
- package/lib/collection/components/duet-date-picker/date-utils.js +7 -0
- package/lib/collection/components/duet-date-picker/disallowed-days.js +23 -0
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +103 -10
- package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
- package/lib/collection/components/duet-divider/duet-divider.js +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +7 -7
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +5 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +2 -2
- package/lib/collection/components/duet-footer/duet-footer.js +11 -11
- package/lib/collection/components/duet-grid/duet-grid.js +5 -5
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +5 -0
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +3 -3
- package/lib/collection/components/duet-hero/duet-hero.css +92 -14
- package/lib/collection/components/duet-hero/duet-hero.js +47 -21
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +38 -3
- package/lib/collection/components/duet-input/duet-input.js +213 -27
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +6 -6
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +4 -4
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +11 -11
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +4 -4
- package/lib/collection/components/duet-number-input/duet-number-input.js +14 -13
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +20 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +58 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +14 -15
- package/lib/collection/components/duet-panel/duet-panel.js +3 -3
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +42 -5
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +4 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +39 -2
- package/lib/collection/components/duet-radio/duet-radio.js +6 -9
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +10 -10
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +9 -9
- package/lib/collection/components/duet-table/duet-table-styles.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
- package/lib/collection/components/duet-toggle/duet-toggle.js +4 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +18 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +25 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +48 -5
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/keyboard-utils.js +1 -0
- package/lib/collection/utils/math.utils.js +1 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-054c334d.entry.js +4 -0
- package/lib/duet/{p-81332db1.entry.js → p-0e10e36b.entry.js} +1 -1
- package/lib/duet/{p-428db44b.entry.js → p-12d7fdf6.entry.js} +1 -1
- package/lib/duet/{p-494755d0.entry.js → p-1579bdf5.entry.js} +1 -1
- package/lib/duet/{p-e8bd6dab.entry.js → p-174935bc.entry.js} +1 -1
- package/lib/duet/p-1d7a9425.entry.js +4 -0
- package/lib/duet/{p-2e413951.entry.js → p-20066df8.entry.js} +1 -1
- package/lib/duet/{p-6988c81c.entry.js → p-20c8226c.entry.js} +1 -1
- package/lib/duet/{p-1ee400e7.entry.js → p-210bc161.entry.js} +1 -1
- package/lib/duet/{p-fea479fd.entry.js → p-244bfbf9.entry.js} +1 -1
- package/lib/duet/{p-adecab91.entry.js → p-264688ae.entry.js} +1 -1
- package/lib/duet/{p-1dcbbd67.entry.js → p-2bf78fe4.entry.js} +1 -1
- package/lib/duet/{p-1bdef0e0.entry.js → p-2e44c6b8.entry.js} +1 -1
- package/lib/duet/{p-3c26d300.entry.js → p-304a9a55.entry.js} +1 -1
- package/lib/duet/{p-a63327c3.entry.js → p-30d8a1e4.entry.js} +1 -1
- package/lib/duet/p-3445529c.entry.js +4 -0
- package/lib/duet/{p-1666aeaf.entry.js → p-3533d6ee.entry.js} +1 -1
- package/lib/duet/{p-87bb797c.entry.js → p-374b48f6.entry.js} +1 -1
- package/lib/duet/{p-bcced6eb.entry.js → p-3b9d7f6a.entry.js} +1 -1
- package/lib/duet/{p-dc87f3f4.entry.js → p-3def9480.entry.js} +1 -1
- package/lib/duet/p-3fbe466a.entry.js +4 -0
- package/lib/duet/{p-12e4e9b6.entry.js → p-407d4e5a.entry.js} +1 -1
- package/lib/duet/p-41230630.entry.js +4 -0
- package/lib/duet/p-44e53564.entry.js +4 -0
- package/lib/duet/p-46287d85.entry.js +4 -0
- package/lib/duet/p-48e77341.entry.js +4 -0
- package/lib/duet/{p-fbce84d5.entry.js → p-4a041c60.entry.js} +1 -1
- package/lib/duet/p-4a251661.entry.js +4 -0
- package/lib/duet/p-4a4e5bb5.entry.js +4 -0
- package/lib/duet/{p-184d53a7.entry.js → p-4acdc586.entry.js} +1 -1
- package/lib/duet/{p-afd7d87a.entry.js → p-4b07ce36.entry.js} +1 -1
- package/lib/duet/{p-c71f6942.entry.js → p-4cee693b.entry.js} +1 -1
- package/lib/duet/{p-01f3e30c.entry.js → p-4e1c2676.entry.js} +1 -1
- package/lib/duet/{p-d181c624.entry.js → p-4e5532c8.entry.js} +1 -1
- package/lib/duet/{p-3bd45b5b.entry.js → p-512d18c8.entry.js} +1 -1
- package/lib/duet/p-555e0c78.entry.js +4 -0
- package/lib/duet/{p-13b7f4e0.entry.js → p-5b322a86.entry.js} +1 -1
- package/lib/duet/p-5f72134e.entry.js +4 -0
- package/lib/duet/{p-f210e405.entry.js → p-61abccd4.entry.js} +1 -1
- package/lib/duet/p-6a11ba26.entry.js +4 -0
- package/lib/duet/p-6bd78205.entry.js +4 -0
- package/lib/duet/p-6c239923.entry.js +4 -0
- package/lib/duet/{p-7a5066b8.entry.js → p-6ce82324.entry.js} +1 -1
- package/lib/duet/{p-526fa31c.entry.js → p-6d1d1199.entry.js} +1 -1
- package/lib/duet/p-81c5d3e3.entry.js +4 -0
- package/lib/duet/{p-f652a9c7.entry.js → p-829bccb7.entry.js} +1 -1
- package/lib/duet/p-83dcbb64.entry.js +4 -0
- package/lib/duet/{p-a4a1b8e3.entry.js → p-84f8bee8.entry.js} +1 -1
- package/lib/duet/{p-07c4b435.entry.js → p-8927ccc1.entry.js} +1 -1
- package/lib/duet/{p-2d43de54.entry.js → p-8bdcfd1f.entry.js} +1 -1
- package/lib/duet/{p-b64b3e2f.entry.js → p-8fbcea55.entry.js} +1 -1
- package/lib/duet/{p-84420fbf.entry.js → p-914ee7ac.entry.js} +1 -1
- package/lib/duet/{p-7a668cee.entry.js → p-95bb2a8d.entry.js} +1 -1
- package/lib/duet/{p-4c5a8ed3.entry.js → p-985213bb.entry.js} +1 -1
- package/lib/duet/{p-d2c91ed0.entry.js → p-9889218e.entry.js} +1 -1
- package/lib/duet/{p-c1d4542d.entry.js → p-9b2731b9.entry.js} +1 -1
- package/lib/duet/{p-46300680.entry.js → p-9b448008.entry.js} +1 -1
- package/lib/duet/p-9c41f1d5.entry.js +4 -0
- package/lib/duet/p-BDgGHTHh.js +4 -0
- package/lib/duet/p-BZev46O8.js +4 -0
- package/lib/duet/p-BaefVzkx.js +4 -0
- package/lib/duet/p-CcoGR9T9.js +4 -0
- package/lib/duet/{p-BW3SZS4F.js → p-CyfEm8iD.js} +1 -1
- package/lib/duet/p-D3450NfA.js +5 -0
- package/lib/duet/{p-DWIjWGAD.js → p-D9N9LBeD.js} +1 -1
- package/lib/duet/{p-2HU78SJ-.js → p-DI7IXBXp.js} +1 -1
- package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
- package/lib/duet/p-Dk60lC7n.js +4 -0
- package/lib/duet/p-JFwTD5kM.js +4 -0
- package/lib/duet/{p-D2EBd3cT.js → p-KbNgo0QF.js} +1 -1
- package/lib/duet/p-a01f3141.entry.js +4 -0
- package/lib/duet/p-a49b5d93.entry.js +4 -0
- package/lib/duet/p-a6dbe893.entry.js +4 -0
- package/lib/duet/{p-a690a165.entry.js → p-aa1256f9.entry.js} +1 -1
- package/lib/duet/{p-9d8027aa.entry.js → p-aa7e4c81.entry.js} +1 -1
- package/lib/duet/{p-d2c04a7e.entry.js → p-ac4fc44c.entry.js} +1 -1
- package/lib/duet/{p-376f9d06.entry.js → p-ae382e2e.entry.js} +1 -1
- package/lib/duet/p-bc41d13d.entry.js +4 -0
- package/lib/duet/{p-5dde8fbb.entry.js → p-c54ecb23.entry.js} +1 -1
- package/lib/duet/{p-5ffc4081.entry.js → p-d72dee5d.entry.js} +1 -1
- package/lib/duet/{p-2168e431.entry.js → p-d7abb7fa.entry.js} +1 -1
- package/lib/duet/{p-3648404d.entry.js → p-dbb9e1d4.entry.js} +1 -1
- package/lib/duet/{p-b3ec9b98.entry.js → p-e40d9c21.entry.js} +1 -1
- package/lib/duet/p-e43df9c2.entry.js +4 -0
- package/lib/duet/{p-14d4a45a.entry.js → p-e442943d.entry.js} +1 -1
- package/lib/duet/p-eb7bc989.entry.js +4 -0
- package/lib/duet/{p-3361387d.entry.js → p-ec1d2e0a.entry.js} +1 -1
- package/lib/duet/p-edcdf0b7.entry.js +4 -0
- package/lib/duet/{p-d0a54e6d.entry.js → p-ee369233.entry.js} +1 -1
- package/lib/duet/{p-816caa58.entry.js → p-f297f8f2.entry.js} +1 -1
- package/lib/duet/{p-0453edd0.entry.js → p-f30c3cfe.entry.js} +1 -1
- package/lib/duet/{p-0395eb34.entry.js → p-f4538e9d.entry.js} +1 -1
- package/lib/duet/{p-1ed82a27.entry.js → p-f4de7ac0.entry.js} +1 -1
- package/lib/duet/{p-4d39941c.entry.js → p-f8d640ba.entry.js} +1 -1
- package/lib/duet/{p-61b6962a.entry.js → p-f9db8670.entry.js} +1 -1
- package/lib/duet/p-fc1a18f8.entry.js +4 -0
- package/lib/duet/{p-dfd55180.entry.js → p-fc2be136.entry.js} +1 -1
- package/lib/duet/p-fdc4a97c.entry.js +4 -0
- package/lib/duet/p-kkZE1C6Z.js +4 -0
- package/lib/esm/{a11y-utils-sgAajRY0.js → a11y-utils--wwGTL0T.js} +1 -1
- package/lib/esm/{app-globals-NNQmI_gc.js → app-globals-Diuuep9d.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +6 -6
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +29 -6
- package/lib/esm/duet-banner.entry.js +15 -16
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +9 -9
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +13 -13
- package/lib/esm/duet-card.entry.js +22 -11
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +29 -16
- package/lib/esm/duet-choice_2.entry.js +20 -22
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +6 -7
- package/lib/esm/duet-contact-card.entry.js +17 -7
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +128 -14
- package/lib/esm/duet-divider_2.entry.js +6 -6
- package/lib/esm/duet-editable-table_3.entry.js +17 -17
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +9 -9
- package/lib/esm/duet-grid_2.entry.js +7 -7
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +22 -21
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +132 -23
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-menu-bar-item.entry.js +7 -7
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +15 -15
- package/lib/esm/duet-multiselect.entry.js +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +10 -10
- package/lib/esm/duet-number-input.entry.js +14 -12
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +20 -5
- package/lib/esm/duet-pagination_2.entry.js +20 -21
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +23 -6
- package/lib/esm/duet-popup-menu_2.entry.js +10 -10
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +20 -8
- package/lib/esm/duet-radio_2.entry.js +7 -10
- package/lib/esm/duet-range-slider.entry.js +8 -8
- package/lib/esm/duet-scrollable_3.entry.js +18 -18
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +9 -9
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +8 -8
- package/lib/esm/duet-show-more.entry.js +6 -6
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +7 -7
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +20 -14
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +9 -9
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +14 -12
- package/lib/esm/duet-tooltip.entry.js +26 -9
- package/lib/esm/duet-tray.entry.js +7 -7
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-CqW0-HM8.js → errorcodes.utils-S_WrUPeV.js} +1 -1
- package/lib/esm/{focus-utils-Dokkd7xz.js → focus-utils-C4oaajGr.js} +1 -1
- package/lib/esm/{index-Cwhi6_oZ.js → index-D3450NfA.js} +9 -9
- package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
- package/lib/esm/{label-CyQlly6Z.js → label-C1HF2o4Y.js} +1 -1
- package/lib/esm/{language-utils-LZh-sc2s.js → language-utils-D4WVl8Ph.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/picture-utils-MSeJTkDk.js +13 -0
- package/lib/esm/{slot-utils-CEZnAp61.js → slot-utils-Dxcjtmp3.js} +1 -1
- package/lib/esm/{themeable-component-D_FVcjsD.js → themeable-component-QHdUfcat.js} +1 -1
- package/lib/esm/{token-utils-B0KAgyj_.js → token-utils-BILzD7LX.js} +1 -1
- package/lib/esm/{tokens.module-DEzE2U5T.js → tokens.module-kkZE1C6Z.js} +1 -1
- package/lib/types/components/duet-badge/duet-badge.d.ts +14 -0
- package/lib/types/components/duet-banner/duet-banner.d.ts +5 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +5 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +16 -9
- package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
- package/lib/types/components/duet-date-picker/date-picker-month.d.ts +3 -0
- package/lib/types/components/duet-date-picker/date-utils.d.ts +4 -0
- package/lib/types/components/duet-date-picker/disallowed-days.d.ts +9 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +14 -0
- package/lib/types/components/duet-date-picker/finnish-bank-holidays.d.ts +11 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
- package/lib/types/components/duet-input/duet-input.d.ts +42 -3
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -1
- package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +10 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +7 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +6 -0
- package/lib/types/components/duet-radio/duet-radio.d.ts +0 -1
- package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +1 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +6 -0
- package/lib/types/components.d.ts +183 -20
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/lib/types/utils/math.utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p--fmK3qPb.js +0 -4
- package/lib/duet/p-07aa40df.entry.js +0 -4
- package/lib/duet/p-0eb0e582.entry.js +0 -4
- package/lib/duet/p-104ddbf2.entry.js +0 -4
- package/lib/duet/p-1705b6cf.entry.js +0 -4
- package/lib/duet/p-4420973e.entry.js +0 -4
- package/lib/duet/p-455e8ebe.entry.js +0 -4
- package/lib/duet/p-4f7b0699.entry.js +0 -4
- package/lib/duet/p-58496fb1.entry.js +0 -4
- package/lib/duet/p-58a70b3d.entry.js +0 -4
- package/lib/duet/p-592a6542.entry.js +0 -4
- package/lib/duet/p-5c8c691b.entry.js +0 -4
- package/lib/duet/p-73ed0008.entry.js +0 -4
- package/lib/duet/p-7a2ca711.entry.js +0 -4
- package/lib/duet/p-7e640c8e.entry.js +0 -4
- package/lib/duet/p-7eaa1fb5.entry.js +0 -4
- package/lib/duet/p-870dc953.entry.js +0 -4
- package/lib/duet/p-Chf7ZRmW.js +0 -4
- package/lib/duet/p-CtBx3Trd.js +0 -4
- package/lib/duet/p-Cwhi6_oZ.js +0 -5
- package/lib/duet/p-DCDM41Ef.js +0 -4
- package/lib/duet/p-DEzE2U5T.js +0 -4
- package/lib/duet/p-Db8rvjPI.js +0 -4
- package/lib/duet/p-a4db8c29.entry.js +0 -4
- package/lib/duet/p-a7bb038a.entry.js +0 -4
- package/lib/duet/p-af9c8169.entry.js +0 -4
- package/lib/duet/p-c7851c15.entry.js +0 -4
- package/lib/duet/p-cbd1069e.entry.js +0 -4
- package/lib/duet/p-cd4f52a9.entry.js +0 -4
- package/lib/duet/p-d3dac8af.entry.js +0 -4
- package/lib/duet/p-e9ed96cf.entry.js +0 -4
- package/lib/duet/p-eab349f2.entry.js +0 -4
- package/lib/duet/p-eebf150c.entry.js +0 -4
- package/lib/duet/p-f600e215.entry.js +0 -4
|
@@ -6,6 +6,7 @@ import { h } from "@stencil/core";
|
|
|
6
6
|
import { DuetStringsExternalDefaults } from "../../common-strings";
|
|
7
7
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
8
8
|
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
9
|
+
import { DuetPicture } from "../../utils/picture-utils";
|
|
9
10
|
import { checkNamedSlotElement, getElementsFromNamedSlot, hasSlot } from "../../utils/slot-utils";
|
|
10
11
|
import { parsePossibleJSON } from "../../utils/string-utils";
|
|
11
12
|
/**
|
|
@@ -237,17 +238,17 @@ export class DuetHero {
|
|
|
237
238
|
const campaignOrSection = this.variation === "campaign" || this.variation === "section";
|
|
238
239
|
const imageSizeIsCover = this.imageSize === "cover";
|
|
239
240
|
const imagePositionIsCenter = this.imagePosition === "center";
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
role: "
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
241
|
+
const imageClass = `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`.trim();
|
|
242
|
+
const getPictureSource = (className) => ({
|
|
243
|
+
img: {
|
|
244
|
+
src: this.image,
|
|
245
|
+
alt: this.imageAlt || "",
|
|
246
|
+
loading: "lazy",
|
|
247
|
+
class: className || "",
|
|
248
|
+
role: this.imageAlt ? undefined : "presentation",
|
|
249
|
+
},
|
|
250
|
+
sources: parsePossibleJSON(this.sources),
|
|
251
|
+
});
|
|
251
252
|
const buttonStyles = {
|
|
252
253
|
transform: "translateX(-8px)",
|
|
253
254
|
};
|
|
@@ -284,7 +285,7 @@ export class DuetHero {
|
|
|
284
285
|
outlineColor = "color-primary-turva";
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
|
-
return (h("div", { key: '
|
|
288
|
+
return (h("div", { key: 'ff8e73f82eb8aad28667e16e49d362f57fcd3b74', role: "region", class: {
|
|
288
289
|
"duet-hero": true,
|
|
289
290
|
"duet-theme-turva": this.theme === "turva",
|
|
290
291
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -302,17 +303,17 @@ export class DuetHero {
|
|
|
302
303
|
"duet-hero-text-center": this.variation !== "product" && ((this.textCenter && !this.leftAlign) || campaignOrSection),
|
|
303
304
|
"duet-hero-left-align": this.variation === "product" || (this.leftAlign && !campaignOrSection),
|
|
304
305
|
"duet-hero-narrow": this.layout === "narrow",
|
|
305
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '
|
|
306
|
-
this.processedBack && (h("div", { key: '
|
|
306
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '7c6eaf498e1c5f42601f4c77a59d04f4e11c3787', class: "background-area" }, h("div", { key: 'a1cac74e5f880d8d7dd2d8f2fde6a6989769cbe2', class: "background-container" }, h("div", { key: 'f7819b590a7d01d66cb3ec2daa6667cc6a066993', class: "background" }, h(DuetPicture, Object.assign({ key: '554157cf62913f6fcbead29527d23678e952ce9e' }, getPictureSource(imageClass)))), h("div", { key: 'cd6031dacba217d040ad59474be4af621a76e463', class: "brand-shape" })))), this.variation === "product" && this.image && (h("div", { key: '08bbfc431301d26e2dee3c4e5bf2437c6bbe8052', class: { "background-area": true, [this.layout]: true } }, h("div", { key: '2458dfef535c7278b6b703001e66d9fedef43aac', class: { "background-container": true, [this.layout]: true } }, h("div", { key: '57b5c3ddecbc91ef48071c8050eaaa82599d1822', class: { background: true, [this.layout]: true } }, h("div", { key: 'b84d8bb2ebcabf13dc9c258513423327021dbd83', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && h("div", { key: '1f899edfda9e0b827c28f83b286b8fde47a1079f', class: { "brand-shape": true, [this.layout]: true } }), h("div", { key: '67b34ed24606ef237036bf322d644e993415bf8f', class: { "brand-shaped-image": true, [this.layout]: true } }, h("div", { key: '95e326d93e23f615c90b18c61e7a30e30c84ebb1', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, h("div", { key: 'add5e271482d65053646ae3f6ff4c413a8e114c3', class: { "brand-shaped-image-bg": true, [this.layout]: true } }, h(DuetPicture, Object.assign({ key: '00d4e688381f2758688008ce19e872ede3452cbc' }, getPictureSource()))))), this.categoryIcon && (h("div", { key: 'a5651e24522d86a6b0d1d870a5d700fad9db74ba', class: { "brand-shaped-icon": true, [this.layout]: true } }, h("duet-icon", { key: '0b35409d56e5842de0100f52e54f99561e777404', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (h("div", { key: '0fa8f2031fe9a05cbfae9f1df5b73afbe156e840', class: "background-area" }, h("div", { key: '2fb9fe1b29056b9e257f8e8079f2872c2ae4ef93', class: "background" }, h("div", { key: 'd4d20034ae7773baf2fdd1551b83711cc2b0b781', class: "background-mask" }), this.theme !== "turva" && h("div", { key: '5ccc852b8b469c952800bac5c02489fc60ee8433', class: "brand-shape" }), h("div", { key: '73d5610a1e0ca8331908ce011976b86d62fbe60e', class: "brand-shaped-image" }, h("div", { key: '84079f98df920d86c3f6257f97d470ff1ff10d2b', class: "brand-shaped-image-wrapper" }, h("div", { key: 'a5d34d656f4d4f208d6dda010fb9c2236559d1e0', class: "brand-shaped-image-bg" }, h(DuetPicture, Object.assign({ key: '900a632f43c338d491fa7bd2104b51c27b9ec814' }, getPictureSource())))))))), h("div", { key: '62a03b483feb3ed3639d3754515456b058161877', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (h("div", { key: 'ba372654336abc15cfa19bf95e32eb2c629bacfc', class: "duet-hero-image-mask" }, h("div", { key: '258446935eb244a6cef5559d64bc3c486bf46643', class: "duet-hero-image-wrapper" }, h("div", { key: '726d6c0f7fd9915f813b5f7e57a9fd093a7640d2', class: "duet-hero-image" }, h(DuetPicture, Object.assign({ key: 'e1a272326833f3eea3209265b7c17d4f581812dc' }, getPictureSource(imageClass))))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
307
|
+
this.processedBack && (h("div", { key: 'bed23c4fdf4e2c6869bd519aaefe2fb95231eb76', class: "duet-hero-back" }, h("duet-button", { key: 'efa5d21d8bd40aa5dcca5aec05b7ddb883898cbf', style: buttonStyles, variation: "plain", icon: "action-arrow-left-small", theme: this.theme, iconSize: "small", color: buttonColor, padding: "none", margin: "none", fixed: true, url: this.processedBack.href, identifier: this.processedBack.id, onClick: event => this.handleClick(event, {
|
|
307
308
|
label: this.processedBack.label,
|
|
308
309
|
href: this.processedBack.href,
|
|
309
310
|
id: this.processedBack.id,
|
|
310
311
|
analyticsId: this.processedBack.analyticsId,
|
|
311
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '
|
|
312
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '7de90656859d63499f3b160c2a39619cd4a0a9db', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { key: '73b543bd71d7e1f2936a2753a255d1ac1339f99c', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { key: 'd0150811990feac24531dc5e173a93ec3a482418', margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium", "aria-hidden": "true" }, this.preHeading ? (this.preHeading) : (h("span", null, h("slot", { name: "pre-heading" }))))), h("slot", { key: '041cf2cfcba43317f1e0041d40b00bfd68bb6202', name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { key: '7f662d3f98757953d04cb29640a7284e7ddcb64b', theme: this.theme, level: this.hasHeadingSlotNative ? "div" : this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto", accessibleLabel: this.getAccessibleHeading() }, this.heading ? this.heading : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { key: '1c02aada316e7b8f8699b79d1128476cdde75ae6', theme: this.theme, level: this.hasSubHeadingSlotNative ? "div" : this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { key: '34c786a2833cbeb54018fa83b543ab7c55ecd5ff', name: "subheading" }))), this.description && (h("duet-paragraph", { key: '28a82b3619a9418271f1dd4f25d10366fde9f753', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { key: '4508f7e305d64e5bf7b39f5340efe8b2ab9d12be', theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { key: '3fb36dbf926c3331c6d757bc32208f26424f7e9c', url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), h("slot", { key: '85fd506d92b185ddbb57c134298164422a6c682d' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { key: '9230b5c71616b04e276724e18592d946f7e4ad5d', class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
312
313
|
this.variation !== "image" &&
|
|
313
314
|
!campaignOrSection &&
|
|
314
315
|
this.variation !== "product" &&
|
|
315
|
-
this.variation !== "content" && h("div",
|
|
316
|
+
this.variation !== "content" && (h("div", { key: 'cfe495f2a5bedb9bd622b3a001533a299477f12d', class: "duet-hero-image" }, h(DuetPicture, Object.assign({ key: '26f3df199d16a059b273c5e8dc568c71ac637d05' }, getPictureSource(imageClass))))), h("slot", { key: 'f8680df361205e9c4f2868f71022e736097002b1', name: "bottom" }))));
|
|
316
317
|
}
|
|
317
318
|
static get is() { return "duet-hero"; }
|
|
318
319
|
static get encapsulation() { return "shadow"; }
|
|
@@ -502,7 +503,7 @@ export class DuetHero {
|
|
|
502
503
|
"references": {
|
|
503
504
|
"DuetHeroIconSize": {
|
|
504
505
|
"location": "local",
|
|
505
|
-
"path": "/Users/
|
|
506
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-hero/duet-hero.tsx",
|
|
506
507
|
"id": "src/components/duet-hero/duet-hero.tsx::DuetHeroIconSize"
|
|
507
508
|
}
|
|
508
509
|
}
|
|
@@ -744,7 +745,7 @@ export class DuetHero {
|
|
|
744
745
|
"references": {
|
|
745
746
|
"DuetHeroButtonData": {
|
|
746
747
|
"location": "local",
|
|
747
|
-
"path": "/Users/
|
|
748
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-hero/duet-hero.tsx",
|
|
748
749
|
"id": "src/components/duet-hero/duet-hero.tsx::DuetHeroButtonData"
|
|
749
750
|
}
|
|
750
751
|
}
|
|
@@ -877,6 +878,31 @@ export class DuetHero {
|
|
|
877
878
|
"setter": false,
|
|
878
879
|
"reflect": false
|
|
879
880
|
},
|
|
881
|
+
"sources": {
|
|
882
|
+
"type": "string",
|
|
883
|
+
"attribute": "sources",
|
|
884
|
+
"mutable": false,
|
|
885
|
+
"complexType": {
|
|
886
|
+
"original": "DuetSource[] | string",
|
|
887
|
+
"resolved": "DuetSource[] | string",
|
|
888
|
+
"references": {
|
|
889
|
+
"DuetSource": {
|
|
890
|
+
"location": "import",
|
|
891
|
+
"path": "../../utils/picture-utils",
|
|
892
|
+
"id": "src/utils/picture-utils.tsx::DuetSource"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"required": false,
|
|
897
|
+
"optional": false,
|
|
898
|
+
"docs": {
|
|
899
|
+
"tags": [],
|
|
900
|
+
"text": "Array of sources for responsive images. Sources have the properties of <source> element."
|
|
901
|
+
},
|
|
902
|
+
"getter": false,
|
|
903
|
+
"setter": false,
|
|
904
|
+
"reflect": false
|
|
905
|
+
},
|
|
880
906
|
"variation": {
|
|
881
907
|
"type": "string",
|
|
882
908
|
"attribute": "variation",
|
|
@@ -887,7 +913,7 @@ export class DuetHero {
|
|
|
887
913
|
"references": {
|
|
888
914
|
"DuetHeroVariation": {
|
|
889
915
|
"location": "local",
|
|
890
|
-
"path": "/Users/
|
|
916
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-hero/duet-hero.tsx",
|
|
891
917
|
"id": "src/components/duet-hero/duet-hero.tsx::DuetHeroVariation"
|
|
892
918
|
}
|
|
893
919
|
}
|
|
@@ -1006,7 +1032,7 @@ export class DuetHero {
|
|
|
1006
1032
|
"references": {
|
|
1007
1033
|
"DuetHeroClickEvent": {
|
|
1008
1034
|
"location": "local",
|
|
1009
|
-
"path": "/Users/
|
|
1035
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-hero/duet-hero.tsx",
|
|
1010
1036
|
"id": "src/components/duet-hero/duet-hero.tsx::DuetHeroClickEvent"
|
|
1011
1037
|
}
|
|
1012
1038
|
}
|
|
@@ -1027,7 +1053,7 @@ export class DuetHero {
|
|
|
1027
1053
|
"references": {
|
|
1028
1054
|
"DuetHeroAnalyticsEvent": {
|
|
1029
1055
|
"location": "local",
|
|
1030
|
-
"path": "/Users/
|
|
1056
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-hero/duet-hero.tsx",
|
|
1031
1057
|
"id": "src/components/duet-hero/duet-hero.tsx::DuetHeroAnalyticsEvent"
|
|
1032
1058
|
}
|
|
1033
1059
|
}
|
|
@@ -144,11 +144,11 @@ export class DuetIcon {
|
|
|
144
144
|
: {};
|
|
145
145
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
146
146
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: 'ac454937867acd98e1552f998f09cecb7b6db6f6', class: {
|
|
148
148
|
"duet-m-0": this.margin === "none",
|
|
149
149
|
"duet-icon-has-outline": !!this.outline,
|
|
150
150
|
"duet-icon-has-background": !!this.background,
|
|
151
|
-
} }, h("span", { key: '
|
|
151
|
+
} }, h("span", { key: '61bd9c9b857bd54bfa18b71035af646ddfc8b490', "aria-hidden": "true", style: styles, class: {
|
|
152
152
|
"duet-icon": true,
|
|
153
153
|
"duet-theme-turva": this.theme === "turva",
|
|
154
154
|
"duet-theme-default": this.theme === "default",
|
|
@@ -157,7 +157,7 @@ export class DuetIcon {
|
|
|
157
157
|
[shapeStyle]: true,
|
|
158
158
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
159
159
|
"duet-icon-not-responsive": !this.responsive,
|
|
160
|
-
} }, h("span", { key: '
|
|
160
|
+
} }, h("span", { key: '513e30e9f69a6661e54b5f2a0989eaf14887f533', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "duet-icon"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,11 +45,11 @@ export class DuetIndicator {
|
|
|
45
45
|
inheritGlobalTheme(this);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '329e985ec026dde828ee0e4f896bbbf68054a4ce' }, h("span", { key: '688c53ea00e20e7c2aa612ed6cdaede9a83655f9', class: {
|
|
49
49
|
"duet-indicator": true,
|
|
50
50
|
[`duet-indicator-${this.variation}`]: true,
|
|
51
51
|
"duet-theme-turva": this.theme === "turva",
|
|
52
|
-
} }), h("duet-visually-hidden", { key: '
|
|
52
|
+
} }), h("duet-visually-hidden", { key: '37a42c32af9d6d46946d30239592a4794e16de93' }, this.getAccessibleLabel())));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "duet-indicator"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class DuetIndicator {
|
|
|
75
75
|
"references": {
|
|
76
76
|
"IndicatorVariation": {
|
|
77
77
|
"location": "local",
|
|
78
|
-
"path": "/Users/
|
|
78
|
+
"path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-indicator/duet-indicator.tsx",
|
|
79
79
|
"id": "src/components/duet-indicator/duet-indicator.tsx::IndicatorVariation"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -525,27 +525,35 @@ duet-caption:not(:last-of-type) {
|
|
|
525
525
|
border-color: rgb(214, 28, 82) !important;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
+
.duet-input-container.has-adornment.has-focus .duet-input-relative,
|
|
528
529
|
.duet-input-container.has-chips.has-focus .duet-input-relative {
|
|
529
530
|
outline: 2px solid;
|
|
530
531
|
outline-color: rgb(0, 119, 179) !important;
|
|
531
532
|
outline-offset: -1px;
|
|
532
533
|
}
|
|
533
|
-
.duet-theme-turva .duet-input-container.has-
|
|
534
|
+
.duet-theme-turva .duet-input-container.has-adornment.has-focus .duet-input-relative, .duet-input-container.has-adornment.has-focus .duet-input-relative.duet-theme-turva,
|
|
535
|
+
.duet-theme-turva .duet-input-container.has-chips.has-focus .duet-input-relative,
|
|
536
|
+
.duet-input-container.has-chips.has-focus .duet-input-relative.duet-theme-turva {
|
|
534
537
|
outline-color: rgb(23, 42, 59) !important;
|
|
535
538
|
}
|
|
539
|
+
.duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative,
|
|
536
540
|
.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative {
|
|
537
541
|
outline: 2px solid;
|
|
538
542
|
outline-color: rgb(127, 150, 165) !important;
|
|
539
543
|
outline-offset: -1px;
|
|
540
544
|
}
|
|
541
|
-
.duet-theme-turva .duet-input-container.has-
|
|
545
|
+
.duet-theme-turva .duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative, .duet-input-container.has-adornment:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva,
|
|
546
|
+
.duet-theme-turva .duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative,
|
|
547
|
+
.duet-input-container.has-chips:hover:not(:disabled):not(.has-focus) .duet-input-relative.duet-theme-turva {
|
|
542
548
|
outline-color: rgb(120, 145, 164) !important;
|
|
543
549
|
}
|
|
550
|
+
.duet-input-container.has-adornment.has-error .duet-input-relative,
|
|
544
551
|
.duet-input-container.has-chips.has-error .duet-input-relative {
|
|
545
552
|
outline-offset: -1px;
|
|
546
553
|
background-color: rgb(255, 240, 243) !important;
|
|
547
554
|
border-color: rgb(214, 28, 82) !important;
|
|
548
555
|
}
|
|
556
|
+
.duet-input-container.has-adornment.has-error.has-focus .duet-input-relative,
|
|
549
557
|
.duet-input-container.has-chips.has-error.has-focus .duet-input-relative {
|
|
550
558
|
outline-offset: -1px;
|
|
551
559
|
background-color: rgb(255, 240, 243) !important;
|
|
@@ -554,6 +562,7 @@ duet-caption:not(:last-of-type) {
|
|
|
554
562
|
outline-color: rgb(214, 28, 82) !important;
|
|
555
563
|
background: rgb(255, 255, 255) !important;
|
|
556
564
|
}
|
|
565
|
+
.duet-input-container.has-adornment.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative,
|
|
557
566
|
.duet-input-container.has-chips.has-error:hover:not(:disabled):not(.has-focus) .duet-input-relative {
|
|
558
567
|
outline-offset: -1px;
|
|
559
568
|
background-color: rgb(255, 240, 243) !important;
|
|
@@ -561,6 +570,7 @@ duet-caption:not(:last-of-type) {
|
|
|
561
570
|
outline-width: 2px;
|
|
562
571
|
outline-color: rgb(214, 28, 82) !important;
|
|
563
572
|
}
|
|
573
|
+
.duet-input-container.has-adornment .duet-input-relative,
|
|
564
574
|
.duet-input-container.has-chips .duet-input-relative {
|
|
565
575
|
display: flex;
|
|
566
576
|
flex-direction: row;
|
|
@@ -574,6 +584,7 @@ duet-caption:not(:last-of-type) {
|
|
|
574
584
|
border-radius: 4px;
|
|
575
585
|
transition: border 150ms ease;
|
|
576
586
|
}
|
|
587
|
+
.duet-input-container.has-adornment .duet-input-relative .duet-input,
|
|
577
588
|
.duet-input-container.has-chips .duet-input-relative .duet-input {
|
|
578
589
|
flex-grow: 1;
|
|
579
590
|
flex-basis: 4rem;
|
|
@@ -581,11 +592,35 @@ duet-caption:not(:last-of-type) {
|
|
|
581
592
|
margin-left: 12px !important;
|
|
582
593
|
border-width: 0 !important;
|
|
583
594
|
}
|
|
584
|
-
.duet-input-container.has-
|
|
595
|
+
.duet-input-container.has-adornment .duet-input-relative .duet-input:focus, .duet-input-container.has-adornment .duet-input-relative .duet-input:hover,
|
|
596
|
+
.duet-input-container.has-chips .duet-input-relative .duet-input:focus,
|
|
597
|
+
.duet-input-container.has-chips .duet-input-relative .duet-input:hover {
|
|
585
598
|
outline: none !important;
|
|
586
599
|
border-width: 0 !important;
|
|
587
600
|
}
|
|
588
601
|
|
|
602
|
+
.duet-input-container.has-adornment .duet-input-relative .duet-input {
|
|
603
|
+
padding: 12px 14px !important;
|
|
604
|
+
margin: initial !important;
|
|
605
|
+
}
|
|
606
|
+
.duet-input-container.has-adornment .duet-input-relative .input-adornment {
|
|
607
|
+
color: rgb(98, 121, 138);
|
|
608
|
+
}
|
|
609
|
+
.duet-input-container.has-adornment .duet-input-relative .input-adornment.prefix {
|
|
610
|
+
padding-left: 14px;
|
|
611
|
+
}
|
|
612
|
+
.duet-input-container.has-adornment .duet-input-relative .input-adornment.suffix {
|
|
613
|
+
padding-right: 14px;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.duet-input-container.has-prefix .duet-input-relative .duet-input {
|
|
617
|
+
padding-left: 8px !important;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.duet-input-container.has-suffix .duet-input-relative .duet-input {
|
|
621
|
+
padding-right: 8px !important;
|
|
622
|
+
}
|
|
623
|
+
|
|
589
624
|
.duet-theme-turva .duet-input-icon {
|
|
590
625
|
color: rgb(23, 42, 59);
|
|
591
626
|
}
|