@duetds/components 10.0.0-alpha.30 → 10.0.0-alpha.32
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 +166 -129
- package/hydrate/index.mjs +166 -129
- package/lib/cjs/{a11y-utils-D2e4DE4A.js → a11y-utils-gRNAWDsE.js} +1 -1
- package/lib/cjs/{app-globals-P2FPiN9v.js → app-globals-IqxTFC9D.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +4 -4
- package/lib/cjs/duet-banner.cjs.entry.js +16 -10
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +15 -26
- package/lib/cjs/duet-callout.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +9 -9
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
- package/lib/cjs/duet-chip.cjs.entry.js +4 -4
- package/lib/cjs/duet-choice_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
- package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -8
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +5 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +15 -9
- package/lib/cjs/duet-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-indicator.cjs.entry.js +12 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-layout.cjs.entry.js +2 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +9 -9
- package/lib/cjs/duet-multiselect.cjs.entry.js +6 -6
- package/lib/cjs/duet-nav.cjs.entry.js +2 -2
- package/lib/cjs/duet-notification_2.cjs.entry.js +13 -6
- package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
- package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
- package/lib/cjs/duet-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-phone-input.cjs.entry.js +5 -5
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +8 -8
- package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +7 -7
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +5 -5
- package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
- package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +9 -9
- package/lib/cjs/duet-slideout.cjs.entry.js +8 -8
- package/lib/cjs/duet-status-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-textarea.cjs.entry.js +50 -34
- package/lib/cjs/duet-toggle.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +4 -4
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-B_Hqvx-5.js → errorcodes.utils-CI6sFyqj.js} +1 -1
- package/lib/cjs/{focus-utils-B7QfRXd-.js → focus-utils-D6oLee8e.js} +1 -1
- package/lib/cjs/{index-B1t_Yumd.js → index-CZgR8hZO.js} +1 -1
- package/lib/cjs/{label-e--2ISFA.js → label-DLhV0DOC.js} +1 -1
- package/lib/cjs/{language-utils-Ce6b_uA3.js → language-utils-iTAyJvsm.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-C8k-6Rvc.js → slot-utils-CnfGuEKm.js} +1 -1
- package/lib/cjs/{themeable-component-DmPMm0Cz.js → themeable-component-lQsgCsDa.js} +1 -1
- package/lib/cjs/{token-utils-COKjUxmn.js → token-utils-BJtlJxnJ.js} +1 -1
- package/lib/cjs/{tokens-9aevMbB1.js → tokens-BxWzRxOl.js} +3 -3
- package/lib/cjs/{tokens.module-Bhh9B2g8.js → tokens.module-DJt2h4FX.js} +3 -3
- package/lib/collection/components/duet-badge/duet-badge.css +3 -0
- package/lib/collection/components/duet-banner/duet-banner.css +24 -4
- package/lib/collection/components/duet-banner/duet-banner.js +29 -4
- package/lib/collection/components/duet-button/duet-button.css +19 -2
- package/lib/collection/components/duet-card/duet-card.css +4 -1
- package/lib/collection/components/duet-card/duet-card.js +22 -3
- package/lib/collection/components/duet-chip/duet-chip.css +3 -0
- package/lib/collection/components/duet-choice/duet-choice.css +9 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
- package/lib/collection/components/duet-footer/duet-footer.js +1 -1
- package/lib/collection/components/duet-grid/duet-grid.js +6 -5
- package/lib/collection/components/duet-hero/duet-hero.js +30 -5
- package/lib/collection/components/duet-indicator/duet-indicator.css +4 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +35 -1
- package/lib/collection/components/duet-link/duet-link.css +29 -12
- package/lib/collection/components/duet-link/duet-link.js +3 -3
- package/lib/collection/components/duet-logo/duet-logo.css +3 -0
- package/lib/collection/components/duet-modal/duet-modal.js +2 -2
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +3 -0
- package/lib/collection/components/duet-notification/duet-notification.css +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +9 -2
- package/lib/collection/components/duet-number-input/duet-number-input.css +3 -0
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +3 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +3 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +21 -2
- package/lib/collection/components/duet-radio/duet-radio.css +6 -0
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +3 -0
- package/lib/collection/components/duet-select/duet-select.css +3 -0
- package/lib/collection/components/duet-slideout/duet-slideout.css +9 -12
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.css +5 -14
- package/lib/collection/components/duet-spinner/duet-spinner.js +13 -26
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +1 -15
- package/lib/collection/components/duet-table/duet-table.js +3 -3
- package/lib/collection/components/duet-textarea/duet-textarea.css +3 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +57 -33
- package/lib/collection/components/duet-toggle/duet-toggle.css +3 -0
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-a5ebee52.entry.js → p-086ada06.entry.js} +1 -1
- package/lib/duet/{p-67cbf570.entry.js → p-092f1ba3.entry.js} +1 -1
- package/lib/duet/{p-492d90a6.entry.js → p-0a7a967d.entry.js} +1 -1
- package/lib/duet/{p-9c452a9d.entry.js → p-0ad4c0ed.entry.js} +1 -1
- package/lib/duet/{p-414f4b06.entry.js → p-0c434757.entry.js} +1 -1
- package/lib/duet/{p-81fdf21e.entry.js → p-10dda4be.entry.js} +1 -1
- package/lib/duet/{p-ec601f3c.entry.js → p-10fcd200.entry.js} +1 -1
- package/lib/duet/{p-5c4687b0.entry.js → p-15f436de.entry.js} +1 -1
- package/lib/duet/p-1ccd58c5.entry.js +4 -0
- package/lib/duet/{p-64482bf0.entry.js → p-1db13f0b.entry.js} +1 -1
- package/lib/duet/{p-513683f8.entry.js → p-1e0686a9.entry.js} +1 -1
- package/lib/duet/{p-4457a9cc.entry.js → p-242aa821.entry.js} +1 -1
- package/lib/duet/{p-7ab7b977.entry.js → p-2444ec8f.entry.js} +1 -1
- package/lib/duet/{p-625bf656.entry.js → p-289ccd98.entry.js} +1 -1
- package/lib/duet/{p-d49e4c1a.entry.js → p-2e2c2a19.entry.js} +1 -1
- package/lib/duet/{p-0cf754a3.entry.js → p-2ecc650a.entry.js} +1 -1
- package/lib/duet/{p-ca8ad275.entry.js → p-310bb92b.entry.js} +1 -1
- package/lib/duet/{p-da90aae6.entry.js → p-34450295.entry.js} +1 -1
- package/lib/duet/{p-ac7bf279.entry.js → p-345e2183.entry.js} +1 -1
- package/lib/duet/{p-52bb0826.entry.js → p-3604860c.entry.js} +1 -1
- package/lib/duet/p-37b2ee9a.entry.js +4 -0
- package/lib/duet/p-40870281.entry.js +4 -0
- package/lib/duet/{p-64db9820.entry.js → p-40a23d13.entry.js} +1 -1
- package/lib/duet/p-4d965642.entry.js +4 -0
- package/lib/duet/p-4f06d471.entry.js +4 -0
- package/lib/duet/{p-17b2fad7.entry.js → p-4fe07ef0.entry.js} +1 -1
- package/lib/duet/p-50825938.entry.js +4 -0
- package/lib/duet/{p-bba12747.entry.js → p-53cae335.entry.js} +1 -1
- package/lib/duet/{p-87d63c67.entry.js → p-5809592e.entry.js} +1 -1
- package/lib/duet/{p-11dc2ca3.entry.js → p-598e5e73.entry.js} +1 -1
- package/lib/duet/{p-835532a3.entry.js → p-5f184ba7.entry.js} +1 -1
- package/lib/duet/p-632e7663.entry.js +4 -0
- package/lib/duet/{p-4a743428.entry.js → p-672539ed.entry.js} +1 -1
- package/lib/duet/{p-d27678ec.entry.js → p-68a068da.entry.js} +1 -1
- package/lib/duet/{p-89119c58.entry.js → p-69b51723.entry.js} +1 -1
- package/lib/duet/p-6aa7994d.entry.js +4 -0
- package/lib/duet/{p-9ff0f670.entry.js → p-6fc4b281.entry.js} +1 -1
- package/lib/duet/{p-19c8adaa.entry.js → p-739c6384.entry.js} +1 -1
- package/lib/duet/{p-3f932150.entry.js → p-764400c1.entry.js} +1 -1
- package/lib/duet/{p-6d0a6cef.entry.js → p-7e71334f.entry.js} +1 -1
- package/lib/duet/{p-bf4c10ea.entry.js → p-82dce6d4.entry.js} +1 -1
- package/lib/duet/p-8a49f99d.entry.js +4 -0
- package/lib/duet/{p-9278d908.entry.js → p-8f4d8ad8.entry.js} +1 -1
- package/lib/duet/{p-3c5f5035.entry.js → p-936fb185.entry.js} +1 -1
- package/lib/duet/{p-9fe9aaec.entry.js → p-936fdded.entry.js} +1 -1
- package/lib/duet/{p-dceb943b.entry.js → p-949677c5.entry.js} +1 -1
- package/lib/duet/{p-653a4f52.entry.js → p-962271e5.entry.js} +1 -1
- package/lib/duet/{p-ae22406a.entry.js → p-98719175.entry.js} +1 -1
- package/lib/duet/{p-cf054af5.entry.js → p-989bad93.entry.js} +1 -1
- package/lib/duet/{p-05b44a92.entry.js → p-9eac0547.entry.js} +1 -1
- package/lib/duet/{p-CZ7vOBA_.js → p-B4KFAMK0.js} +1 -1
- package/lib/duet/p-BDAqOMlM.js +4 -0
- package/lib/duet/p-BZUiUO2r.js +5 -0
- package/lib/duet/{p-Df3Doz7n.js → p-Bg75Vqqq.js} +1 -1
- package/lib/duet/{p-CcCc0HYj.js → p-BuGwN6pE.js} +1 -1
- package/lib/duet/p-CmXKRkHp.js +4 -0
- package/lib/duet/{p-Bt_DCuTi.js → p-CvYfTat-.js} +1 -1
- package/lib/duet/p-DOuLHrH5.js +4 -0
- package/lib/duet/p-DoYaLdz3.js +4 -0
- package/lib/duet/p-NibHwfQi.js +4 -0
- package/lib/duet/{p-c74cd476.entry.js → p-a04be8ca.entry.js} +1 -1
- package/lib/duet/p-a102a6aa.entry.js +4 -0
- package/lib/duet/{p-df64aa65.entry.js → p-a3b21740.entry.js} +1 -1
- package/lib/duet/{p-39e7cc4b.entry.js → p-a597acb6.entry.js} +1 -1
- package/lib/duet/{p-3e08bd06.entry.js → p-acd1befc.entry.js} +1 -1
- package/lib/duet/{p-0c4bde0e.entry.js → p-b23c29f7.entry.js} +1 -1
- package/lib/duet/{p-93d1d4cb.entry.js → p-b308c0c2.entry.js} +1 -1
- package/lib/duet/p-b57ee80f.entry.js +4 -0
- package/lib/duet/{p-a22b9c52.entry.js → p-b8741a8d.entry.js} +1 -1
- package/lib/duet/{p-b8e1621d.entry.js → p-b8de3ad9.entry.js} +1 -1
- package/lib/duet/{p-52e64670.entry.js → p-b9123cc0.entry.js} +1 -1
- package/lib/duet/p-bfbadbcb.entry.js +4 -0
- package/lib/duet/{p-4efa7172.entry.js → p-c0130fb4.entry.js} +1 -1
- package/lib/duet/{p-2f34aa4c.entry.js → p-c1a3211b.entry.js} +1 -1
- package/lib/duet/p-c211c485.entry.js +4 -0
- package/lib/duet/p-c2b71972.entry.js +4 -0
- package/lib/duet/{p-e057762a.entry.js → p-c9f7f4ae.entry.js} +1 -1
- package/lib/duet/p-cc1c4f4e.entry.js +4 -0
- package/lib/duet/p-d1ca5023.entry.js +4 -0
- package/lib/duet/{p-ea09620e.entry.js → p-d6675d5a.entry.js} +1 -1
- package/lib/duet/p-d687723c.entry.js +4 -0
- package/lib/duet/{p-9fd3fbde.entry.js → p-d7a53137.entry.js} +1 -1
- package/lib/duet/p-da4ac3b6.entry.js +4 -0
- package/lib/duet/p-da53bd51.entry.js +4 -0
- package/lib/duet/{p-11303551.entry.js → p-dd0ef23d.entry.js} +1 -1
- package/lib/duet/{p-ec7bdfaf.entry.js → p-dd2f230e.entry.js} +1 -1
- package/lib/duet/{p-2f0a1808.entry.js → p-dd6b0719.entry.js} +1 -1
- package/lib/duet/{p-52f52f3f.entry.js → p-dd95273b.entry.js} +1 -1
- package/lib/duet/{p-7d8ba1c8.entry.js → p-e1de05fd.entry.js} +1 -1
- package/lib/duet/p-e83797f5.entry.js +4 -0
- package/lib/duet/{p-c2afba51.entry.js → p-eb331c3a.entry.js} +1 -1
- package/lib/duet/{p-ba0fc0f3.entry.js → p-eb781bf8.entry.js} +1 -1
- package/lib/duet/{p-963f5510.entry.js → p-f157de7a.entry.js} +1 -1
- package/lib/duet/{p-4d4f7a6e.entry.js → p-f9ccb081.entry.js} +1 -1
- package/lib/duet/{p-25bfc839.entry.js → p-fb1c1409.entry.js} +1 -1
- package/lib/duet/p-fc4091da.entry.js +4 -0
- package/lib/duet/p-n6rJZ22e.js +4 -0
- package/lib/duet/p-piYiXb5x.js +4 -0
- package/lib/esm/{a11y-utils-CfJGGdQJ.js → a11y-utils-C8mMYav1.js} +1 -1
- package/lib/esm/{app-globals-DGW8k4EA.js → app-globals-BM9EbF8c.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +5 -5
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +4 -4
- package/lib/esm/duet-banner.entry.js +16 -10
- package/lib/esm/duet-breadcrumb.entry.js +2 -2
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +15 -26
- package/lib/esm/duet-callout.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +11 -11
- package/lib/esm/duet-card.entry.js +9 -9
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +2 -2
- package/lib/esm/duet-chip.entry.js +4 -4
- package/lib/esm/duet-choice_2.entry.js +5 -5
- package/lib/esm/duet-collapsible.entry.js +5 -5
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +3 -3
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +6 -6
- package/lib/esm/duet-divider_2.entry.js +4 -4
- package/lib/esm/duet-editable-table_3.entry.js +11 -8
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +3 -3
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +5 -5
- package/lib/esm/duet-grid_2.entry.js +7 -6
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +15 -9
- package/lib/esm/duet-icon.entry.js +4 -4
- package/lib/esm/duet-indicator.entry.js +12 -4
- package/lib/esm/duet-input_2.entry.js +7 -7
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +2 -2
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-item.entry.js +5 -5
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +9 -9
- package/lib/esm/duet-multiselect.entry.js +6 -6
- package/lib/esm/duet-nav.entry.js +2 -2
- package/lib/esm/duet-notification_2.entry.js +13 -6
- package/lib/esm/duet-number-input.entry.js +5 -5
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +2 -2
- package/lib/esm/duet-pagination_2.entry.js +16 -16
- package/lib/esm/duet-panel.entry.js +2 -2
- package/lib/esm/duet-phone-input.entry.js +5 -5
- package/lib/esm/duet-popup-menu_2.entry.js +7 -7
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +8 -8
- package/lib/esm/duet-radio_2.entry.js +4 -4
- package/lib/esm/duet-range-slider.entry.js +6 -6
- package/lib/esm/duet-scrollable_3.entry.js +7 -7
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +5 -5
- package/lib/esm/duet-shaped-image.entry.js +2 -2
- package/lib/esm/duet-share-chart-item.entry.js +1 -1
- package/lib/esm/duet-share-chart.entry.js +6 -6
- package/lib/esm/duet-show-more.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +3 -3
- package/lib/esm/duet-slideout-link.entry.js +5 -5
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm/duet-slideout-panel.entry.js +9 -9
- package/lib/esm/duet-slideout.entry.js +8 -8
- package/lib/esm/duet-status-icon.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +3 -3
- package/lib/esm/duet-textarea.entry.js +50 -34
- package/lib/esm/duet-toggle.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +2 -2
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +4 -4
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +4 -4
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-qEQnnnLR.js → errorcodes.utils-Dx5bYlis.js} +1 -1
- package/lib/esm/{focus-utils-D7bOJ91T.js → focus-utils-C9Mfpzkg.js} +1 -1
- package/lib/esm/{index-CjRTMlgs.js → index-BZUiUO2r.js} +1 -1
- package/lib/esm/{label-DI1u_MFQ.js → label-DA07U81d.js} +1 -1
- package/lib/esm/{language-utils-DMUadJDW.js → language-utils-DBHdig-k.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-DmMljwEF.js → slot-utils-CiYHolIk.js} +1 -1
- package/lib/esm/{themeable-component-CULFNCJP.js → themeable-component-CMi71I41.js} +1 -1
- package/lib/esm/{token-utils-Dw-GA7-4.js → token-utils-Dks4GBDa.js} +1 -1
- package/lib/esm/{tokens-DcQPCCbT.js → tokens-DOuLHrH5.js} +3 -3
- package/lib/esm/{tokens.module-Bh9dkusU.js → tokens.module-BDAqOMlM.js} +3 -3
- package/lib/types/components/duet-banner/duet-banner.d.ts +4 -0
- package/lib/types/components/duet-card/duet-card.d.ts +4 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +1 -1
- package/lib/types/components/duet-hero/duet-hero.d.ts +4 -0
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +8 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +5 -3
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +13 -7
- package/lib/types/components.d.ts +50 -12
- package/package.json +15 -9
- package/lib/duet/p-14b9af85.entry.js +0 -4
- package/lib/duet/p-1UeoYjt6.js +0 -4
- package/lib/duet/p-2690a420.entry.js +0 -4
- package/lib/duet/p-37bdc3b9.entry.js +0 -4
- package/lib/duet/p-450983a5.entry.js +0 -4
- package/lib/duet/p-4b4d9bdc.entry.js +0 -4
- package/lib/duet/p-51e85e15.entry.js +0 -4
- package/lib/duet/p-559a54d1.entry.js +0 -4
- package/lib/duet/p-56331c29.entry.js +0 -4
- package/lib/duet/p-5f2507ee.entry.js +0 -4
- package/lib/duet/p-638d143f.entry.js +0 -4
- package/lib/duet/p-63d75040.entry.js +0 -4
- package/lib/duet/p-80157aab.entry.js +0 -4
- package/lib/duet/p-88b2a4ab.entry.js +0 -4
- package/lib/duet/p-8a22e0f7.entry.js +0 -4
- package/lib/duet/p-9bdedc1c.entry.js +0 -4
- package/lib/duet/p-BW-c05c3.js +0 -4
- package/lib/duet/p-Bh9dkusU.js +0 -4
- package/lib/duet/p-CjRTMlgs.js +0 -5
- package/lib/duet/p-DcQPCCbT.js +0 -4
- package/lib/duet/p-DmZj36y3.js +0 -4
- package/lib/duet/p-DzEPksgg.js +0 -4
- package/lib/duet/p-a39af7a5.entry.js +0 -4
- package/lib/duet/p-a49e7633.entry.js +0 -4
- package/lib/duet/p-b17749b1.entry.js +0 -4
- package/lib/duet/p-c8c7616a.entry.js +0 -4
- package/lib/duet/p-e04410c6.entry.js +0 -4
- package/lib/duet/p-ebd27669.entry.js +0 -4
- package/lib/duet/p-qH1epSqB.js +0 -4
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
:host:last-child, :host:last-of-type {
|
|
35
35
|
margin-right: 0 !important;
|
|
36
36
|
}
|
|
37
|
+
[alignment=form-distribute] > :host:last-of-type:not(:last-child) {
|
|
38
|
+
margin-right: 8px !important;
|
|
39
|
+
}
|
|
37
40
|
@media (max-width: 35.9375em) {
|
|
38
41
|
:host {
|
|
39
42
|
width: 100%;
|
|
@@ -46,6 +49,9 @@
|
|
|
46
49
|
:host(.square):last-child, :host(.square):last-of-type {
|
|
47
50
|
margin-right: 0 !important;
|
|
48
51
|
}
|
|
52
|
+
[alignment=form-distribute] > :host(.square):last-of-type:not(:last-child) {
|
|
53
|
+
margin-right: 12px !important;
|
|
54
|
+
}
|
|
49
55
|
|
|
50
56
|
:host(.input-button) {
|
|
51
57
|
z-index: 250;
|
|
@@ -61,6 +67,10 @@
|
|
|
61
67
|
:host(.duet-x-small):last-of-type {
|
|
62
68
|
margin-right: 0 !important;
|
|
63
69
|
}
|
|
70
|
+
[alignment=form-distribute] > :host(.duet-small):last-of-type:not(:last-child),
|
|
71
|
+
[alignment=form-distribute] > :host(.duet-x-small):last-of-type:not(:last-child) {
|
|
72
|
+
margin-right: 4px !important;
|
|
73
|
+
}
|
|
64
74
|
@media (max-width: 35.9375em) {
|
|
65
75
|
:host(.duet-small),
|
|
66
76
|
:host(.duet-x-small) {
|
|
@@ -74,6 +84,9 @@
|
|
|
74
84
|
:host(.duet-x-small):last-child, :host(.duet-x-small):last-of-type {
|
|
75
85
|
margin-right: 0 !important;
|
|
76
86
|
}
|
|
87
|
+
[alignment=form-distribute] > :host(.duet-x-small):last-of-type:not(:last-child) {
|
|
88
|
+
margin-right: 2px !important;
|
|
89
|
+
}
|
|
77
90
|
|
|
78
91
|
:host(.square.duet-small),
|
|
79
92
|
:host(.square.duet-x-small) {
|
|
@@ -84,6 +97,10 @@
|
|
|
84
97
|
:host(.square.duet-x-small):last-of-type {
|
|
85
98
|
margin-right: 0 !important;
|
|
86
99
|
}
|
|
100
|
+
[alignment=form-distribute] > :host(.square.duet-small):last-of-type:not(:last-child),
|
|
101
|
+
[alignment=form-distribute] > :host(.square.duet-x-small):last-of-type:not(:last-child) {
|
|
102
|
+
margin-right: 8px !important;
|
|
103
|
+
}
|
|
87
104
|
|
|
88
105
|
:host(.duet-expand) {
|
|
89
106
|
width: 100% !important;
|
|
@@ -623,7 +640,7 @@
|
|
|
623
640
|
}
|
|
624
641
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default {
|
|
625
642
|
color: rgb(230, 23, 64) !important;
|
|
626
|
-
border-color: rgb(
|
|
643
|
+
border-color: rgb(212, 221, 226);
|
|
627
644
|
}
|
|
628
645
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default:hover {
|
|
629
646
|
outline-color: rgb(230, 23, 64);
|
|
@@ -684,7 +701,7 @@
|
|
|
684
701
|
border-color: rgb(251, 225, 209) !important;
|
|
685
702
|
}
|
|
686
703
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square {
|
|
687
|
-
border-color: rgb(
|
|
704
|
+
border-color: rgb(212, 221, 226);
|
|
688
705
|
}
|
|
689
706
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square.duet-button-negative {
|
|
690
707
|
background: rgb(230, 23, 64);
|
|
@@ -258,6 +258,9 @@
|
|
|
258
258
|
margin: 0;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
+
.duet-card-collapsed .duet-card-heading {
|
|
262
|
+
border-radius: var(--duet-card-border-radius);
|
|
263
|
+
}
|
|
261
264
|
.duet-card-image-mask + .duet-card-heading {
|
|
262
265
|
border-radius: 0;
|
|
263
266
|
}
|
|
@@ -562,5 +565,5 @@ a.duet-card:active {
|
|
|
562
565
|
color: rgb(23, 42, 59);
|
|
563
566
|
}
|
|
564
567
|
:host(.duet-theme-turva2) .duet-card.duet-theme-turva .duet-card-footer {
|
|
565
|
-
background: rgb(
|
|
568
|
+
background: rgb(245, 246, 247);
|
|
566
569
|
}
|
|
@@ -151,10 +151,10 @@ export class DuetCard {
|
|
|
151
151
|
const styles = {
|
|
152
152
|
backgroundColor: getColorByName(this.background),
|
|
153
153
|
};
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: 'd92cd6fb922f1165e1d341221ac3f5433252606c', class: {
|
|
155
155
|
"duet-m-0": this.margin === "none",
|
|
156
156
|
"duet-card-info": this.variation === "info",
|
|
157
|
-
} }, h(TagName, { key: '
|
|
157
|
+
} }, h(TagName, { key: '7f870fc5061cd48c3464bd19ecd780fbb33f3e78', href: this.url, style: styles, ref: card => (this.nativeCard = card), "aria-label": this.accessibleLabel, class: {
|
|
158
158
|
"duet-card": true,
|
|
159
159
|
[this.padding]: true,
|
|
160
160
|
[this.variation]: true,
|
|
@@ -164,7 +164,7 @@ export class DuetCard {
|
|
|
164
164
|
"duet-card-has-bg": this.background !== "gray-lightest",
|
|
165
165
|
"duet-card-has-icon": !!this.icon,
|
|
166
166
|
"duet-card-collapsed": this.collapsible && !this.open,
|
|
167
|
-
} }, this.image && (h("div", { key: '
|
|
167
|
+
} }, this.image && (h("div", { key: 'fd6822d5747d2882842c9c2392b28d8b7a2693f2', class: "duet-card-image-mask" }, h("img", { key: 'a1952cf1f82a4f8593130d9990ef27a2a982e5d8', src: this.image, class: "duet-card-image", loading: "lazy", alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" }))), (this.heading || this.hasHeadingSlot) && this.renderHeading(), h("div", { key: 'a11237f14582fad87aaab15e4dccad5c6ffd7b0b', class: "duet-card-content", id: this.cardId }, h("slot", { key: '80d250aa9dbb0f39a7683c6d2a1e1cdaca75cdd8' }), this.hasFooter && (h("div", { key: '87b27d7c69e3d5f3ab7bdb75cc76a1a11900ef0f', class: "duet-card-footer" }, h("slot", { key: '1212e0d9a33349cf68c7b667069077e02ee30197', name: "footer" })))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "duet-card"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -426,6 +426,25 @@ export class DuetCard {
|
|
|
426
426
|
"setter": false,
|
|
427
427
|
"reflect": false
|
|
428
428
|
},
|
|
429
|
+
"imageAlt": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"attribute": "image-alt",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "string",
|
|
435
|
+
"resolved": "string",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Alt attribute text for the image. If not provided, image is assigned presentation role."
|
|
443
|
+
},
|
|
444
|
+
"getter": false,
|
|
445
|
+
"setter": false,
|
|
446
|
+
"reflect": false
|
|
447
|
+
},
|
|
429
448
|
"background": {
|
|
430
449
|
"type": "string",
|
|
431
450
|
"attribute": "background",
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
:host:last-child, :host:last-of-type {
|
|
33
33
|
margin-right: 0 !important;
|
|
34
34
|
}
|
|
35
|
+
[alignment=form-distribute] > :host:last-of-type:not(:last-child) {
|
|
36
|
+
margin-right: 16px !important;
|
|
37
|
+
}
|
|
35
38
|
@media (max-width: 35.9375em) {
|
|
36
39
|
:host {
|
|
37
40
|
width: 100%;
|
|
@@ -68,6 +71,9 @@
|
|
|
68
71
|
:host(.horizontal-responsive):last-child, :host(.horizontal-responsive):last-of-type {
|
|
69
72
|
margin-right: 0 !important;
|
|
70
73
|
}
|
|
74
|
+
[alignment=form-distribute] > :host(.horizontal-responsive):last-of-type:not(:last-child) {
|
|
75
|
+
margin-right: 16px !important;
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
:host(:last-child:not(:only-child)) {
|
|
@@ -552,7 +558,7 @@ label.disabled .duet-checkmark-container {
|
|
|
552
558
|
border-color: rgb(178, 194, 205);
|
|
553
559
|
}
|
|
554
560
|
:host(.duet-theme-turva2) .duet-theme-turva .checked > .duet-choice-label {
|
|
555
|
-
background: rgb(
|
|
561
|
+
background: rgb(245, 246, 247);
|
|
556
562
|
border-color: rgb(23, 42, 59) !important;
|
|
557
563
|
}
|
|
558
564
|
:host(.duet-theme-turva2) .duet-theme-turva .checked > .duet-choice-label .duet-checkmark-container {
|
|
@@ -573,7 +579,7 @@ label.disabled .duet-checkmark-container {
|
|
|
573
579
|
border-color: rgb(23, 42, 59);
|
|
574
580
|
}
|
|
575
581
|
:host(.duet-theme-turva2) .duet-theme-turva.duet-choice-card-info {
|
|
576
|
-
background: rgb(
|
|
582
|
+
background: rgb(245, 246, 247);
|
|
577
583
|
border-color: rgb(178, 194, 205);
|
|
578
584
|
}
|
|
579
585
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-checkmark-container {
|
|
@@ -583,7 +589,7 @@ label.disabled .duet-checkmark-container {
|
|
|
583
589
|
border-color: rgb(178, 194, 205);
|
|
584
590
|
}
|
|
585
591
|
:host(.duet-theme-turva2) .duet-theme-turva.duet-choice-info-toggle[aria-expanded=true] {
|
|
586
|
-
background: rgb(
|
|
592
|
+
background: rgb(245, 246, 247);
|
|
587
593
|
border-bottom-color: transparent;
|
|
588
594
|
}
|
|
589
595
|
|
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
.duet-collapsible-heading-icon:last-child, .duet-collapsible-heading-icon:last-of-type {
|
|
155
155
|
margin-right: 0 !important;
|
|
156
156
|
}
|
|
157
|
+
[alignment=form-distribute] > .duet-collapsible-heading-icon:last-of-type:not(:last-child) {
|
|
158
|
+
margin-right: 8px !important;
|
|
159
|
+
}
|
|
157
160
|
[aria-expanded=true] .duet-collapsible-heading-icon {
|
|
158
161
|
transform: rotate(180deg);
|
|
159
162
|
}
|
|
@@ -162,7 +162,7 @@ export class DuetFooter {
|
|
|
162
162
|
: "navigation-arrow-right", "icon-right": !((_c = item.href) === null || _c === void 0 ? void 0 : _c.startsWith("tel:")) && !((_d = item.href) === null || _d === void 0 ? void 0 : _d.startsWith("mailto:")), "icon-size": ((_e = item.href) === null || _e === void 0 ? void 0 : _e.startsWith("tel:")) || ((_f = item.href) === null || _f === void 0 ? void 0 : _f.startsWith("mailto:"))
|
|
163
163
|
? "medium"
|
|
164
164
|
: "medium-small", onClick: event => this.handleItemClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label)));
|
|
165
|
-
}))))), h("slot", { key: '
|
|
165
|
+
}))))), h("slot", { key: '361a7bcbb2822507495f9ce3d2cba71c5787ad60', name: "extra" }), h("p", { key: 'd550a699008989e92c8ccb0f856f730a0f0d408a', class: "duet-footer-menu", part: "menu" }, h("span", { key: 'd0382fd0c48916c77ae76340f1797b35edb62863', class: "duet-footer-copyright" }, `${copyrightLabel} ${new Date().getFullYear()}`), h("span", { key: '085136a2a21443c434ef94fd8917616c07f764e9', class: "duet-footer-menu-links" }, this.processedMenu && (h(Fragment, { key: 'df5f48b86ef46c1bfb03cf75e55ef2e402af1479' }, this.processedMenu.map(item => (h("a", { ref: element => this.setDataAttributes(element, item), href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleMenuClick(event, item), onMouseEnter: event => this.emitDuetEvent(event, item), onTouchStart: event => this.emitDuetEvent(event, item) }, item.label, item.external && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-footer-external" }, h("duet-icon", { icon: newWindowIconSmall.svg, size: "xx-small", margin: "none", color: "currentColor" })))), h("span", { class: "duet-footer-divider", role: "presentation", "aria-hidden": "true" }, "/")))))))), h("p", { key: '475e550d7b43e8a0ddd78b4ea001c78452b783e1', class: "duet-footer-copyright duet-footer-copyright-mobile" }, `${copyrightLabel} ${new Date().getFullYear()}`))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "duet-footer"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,8 +45,8 @@ export class DuetGrid {
|
|
|
45
45
|
*/
|
|
46
46
|
this.gridTemplate = null;
|
|
47
47
|
}
|
|
48
|
-
validateAlignment(
|
|
49
|
-
if (
|
|
48
|
+
validateAlignment() {
|
|
49
|
+
if (this.alignment === "form_distribute") {
|
|
50
50
|
console.warn(`DuetGrid alignment value "form_distribute" is deprecated, replace with "form-distribute"`);
|
|
51
51
|
this.alignment = "form-distribute";
|
|
52
52
|
}
|
|
@@ -77,6 +77,7 @@ export class DuetGrid {
|
|
|
77
77
|
this.childObserver = new MutationObserver(this.updateGridItems.bind(this));
|
|
78
78
|
this.childObserver.observe(this.element, { childList: true });
|
|
79
79
|
}
|
|
80
|
+
this.validateAlignment();
|
|
80
81
|
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
81
82
|
if (this.alignment === "form-distribute") {
|
|
82
83
|
if (!Build.isServer) {
|
|
@@ -197,7 +198,7 @@ export class DuetGrid {
|
|
|
197
198
|
* Always the last one in the class.
|
|
198
199
|
*/
|
|
199
200
|
render() {
|
|
200
|
-
return (h(Host, { key: '
|
|
201
|
+
return (h(Host, { key: 'bc25c7c22f88bade50b1241086cbc3fccd94db28', class: {
|
|
201
202
|
"duet-grid": true,
|
|
202
203
|
"duet-no-stacking": !this.responsive,
|
|
203
204
|
"duet-grid-align-top": this.alignment === "top", // flex-start
|
|
@@ -224,7 +225,7 @@ export class DuetGrid {
|
|
|
224
225
|
"duet-grid-row-reverse": this.rowReverse,
|
|
225
226
|
[`duet-grid-variation-${this.gridTemplate ? "grid" : "flex"}`]: true,
|
|
226
227
|
[`duet-grid-template-${this.gridTemplate}`]: true,
|
|
227
|
-
} }, h("slot", { key: '
|
|
228
|
+
} }, h("slot", { key: 'de127117a8189fccfa81ff58be25f057afb45729' })));
|
|
228
229
|
}
|
|
229
230
|
static get is() { return "duet-grid"; }
|
|
230
231
|
static get encapsulation() { return "shadow"; }
|
|
@@ -355,7 +356,7 @@ export class DuetGrid {
|
|
|
355
356
|
},
|
|
356
357
|
"getter": false,
|
|
357
358
|
"setter": false,
|
|
358
|
-
"reflect":
|
|
359
|
+
"reflect": false,
|
|
359
360
|
"defaultValue": "\"top\""
|
|
360
361
|
},
|
|
361
362
|
"distribution": {
|
|
@@ -241,6 +241,12 @@ export class DuetHero {
|
|
|
241
241
|
backgroundSize: imageSizeIsCover ? "cover" : null,
|
|
242
242
|
backgroundPosition: imagePositionIsCenter ? "center" : null,
|
|
243
243
|
};
|
|
244
|
+
const bgImgA11yAttrs = this.image && this.imageAlt
|
|
245
|
+
? {
|
|
246
|
+
role: "img",
|
|
247
|
+
["aria-label"]: this.imageAlt,
|
|
248
|
+
}
|
|
249
|
+
: {};
|
|
244
250
|
const buttonStyles = {
|
|
245
251
|
transform: "translateX(-8px)",
|
|
246
252
|
};
|
|
@@ -277,7 +283,7 @@ export class DuetHero {
|
|
|
277
283
|
outlineColor = "color-primary-turva";
|
|
278
284
|
}
|
|
279
285
|
}
|
|
280
|
-
return (h("div", { key: '
|
|
286
|
+
return (h("div", { key: 'a872538e09667dd29910e010ec8ccc159fc15193', role: "region", class: {
|
|
281
287
|
"duet-hero": true,
|
|
282
288
|
"duet-theme-turva": this.theme === "turva",
|
|
283
289
|
"duet-has-category-icon": !!this.categoryIcon,
|
|
@@ -295,17 +301,17 @@ export class DuetHero {
|
|
|
295
301
|
"duet-hero-text-center": (this.textCenter && !this.leftAlign) || campaignOrSection,
|
|
296
302
|
"duet-hero-left-align": this.leftAlign && !campaignOrSection,
|
|
297
303
|
"duet-hero-narrow": this.layout === "narrow",
|
|
298
|
-
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '
|
|
299
|
-
this.processedBack && (h("div", { key: '
|
|
304
|
+
}, part: "duet-hero" }, campaignOrSection && this.image && (h("div", { key: '5fce1acae0804c6aa76b81868cac88f4de370591', class: "background-area" }, h("div", { key: '26bc63e00bbe21bc2529a0a6b74b73df20d529c0', class: "background-container" }, h("div", { key: '89f29c709d599b57c3b3897291587bd4a572042a', class: "background" }, h("img", { key: '6b18c9f0c48c5ce6f552a8d10e587587872307c9', class: `${imageSizeIsCover ? "cover" : ""} ${imagePositionIsCenter ? "center" : ""}`, src: this.image, alt: this.imageAlt || "", role: this.imageAlt ? null : "presentation" })), h("div", { key: 'caaa93907f9d4a2f49f7b3f16b61dbbdbcd61c7c', class: "brand-shape" })))), this.variation === "product" && this.image && (h("div", { key: '763eaabf43c0bf0d6a18c070e393a03dca0d4238', class: { "background-area": true, [this.layout]: true } }, h("div", { key: '9e62908d2cbff9a8ce2bd5434b07baf8828a9214', class: { "background-container": true, [this.layout]: true } }, h("div", { key: '68716ca1d4bbb642c486676fa44b089e03c3426c', class: { background: true, [this.layout]: true } }, h("div", { key: '36e338bcd659d3fc9a2a326f9352f24956c43256', class: { "background-mask": true, [this.layout]: true } }), this.theme !== "turva" && h("div", { key: '0dc480d5857ee243dc06ce057cc781529bcdb973', class: { "brand-shape": true, [this.layout]: true } }), h("div", { key: '2d7de37e7d6f03f9e6c0d87dbe74a809531341bf', class: { "brand-shaped-image": true, [this.layout]: true } }, h("div", { key: 'a80f4df7139b1dc0c164a6533aa742ee4a1df05e', class: { "brand-shaped-image-wrapper": true, [this.layout]: true } }, h("div", Object.assign({ key: '8507b8c3105846c34aebf25805475ceb753186e0', class: { "brand-shaped-image-bg": true, [this.layout]: true }, style: styles }, bgImgA11yAttrs)))), this.categoryIcon && (h("div", { key: '890b16f5971cfa309d72560f7e74f8d9fc319f66', class: { "brand-shaped-icon": true, [this.layout]: true } }, h("duet-icon", { key: 'b0f2677fe1a4b696c44cbe9d3439ff62f2cbce4b', class: { [this.layout]: true }, background: "none", name: this.categoryIcon, margin: "none", size: "auto", responsive: false }))))))), this.variation === "content" && this.image && (h("div", { key: '1e6981b9b8e33f2074418ccd073b295e6089e9ed', class: "background-area" }, h("div", { key: '5d80662daab0e2a82fe04cef22fd6810efcf8546', class: "background" }, h("div", { key: 'c1900e8ff166fda36b996ddbc3f440c629e9f035', class: "background-mask" }), this.theme !== "turva" && h("div", { key: '138a86337de478e6349b92624f09e7a54cb0e931', class: "brand-shape" }), h("div", { key: '2bb8747411e19ad3dd8b3ac634dd0726e4183e0d', class: "brand-shaped-image" }, h("div", { key: '5e6c1579f9e9662a700d602582d3034a818b3693', class: "brand-shaped-image-wrapper" }, h("div", Object.assign({ key: 'd7209ba3a4242b87c9d447c73a2879dfbc7d9d06', class: "brand-shaped-image-bg", style: styles }, bgImgA11yAttrs))))))), h("div", { key: '21e9a6acecfc916399a76bf19e00835d28fe7c0a', class: { "duet-hero-wrapper": true, [this.layout]: true } }, this.image && this.variation === "image" && (h("div", { key: 'da6ce766831a1d2a717fe419ec433aa1f91b03de', class: "duet-hero-image-mask" }, h("div", { key: '7cf7a7dc580dc783f9f5f50bcbf72d41b15eb378', class: "duet-hero-image-wrapper" }, h("div", Object.assign({ key: 'd4ae32f29a59ee2f6430d31a34b8958f467155d4', class: "duet-hero-image", style: styles }, bgImgA11yAttrs))))), (this.variation === "gray" || this.variation === "light" || this.variation === "minimal") &&
|
|
305
|
+
this.processedBack && (h("div", { key: '6863cbe7678662d81cf79c318cb3b75de005f314', class: "duet-hero-back" }, h("duet-button", { key: '55e2dc9e3964c7dde235ddff6a95443997c99305', 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, {
|
|
300
306
|
label: this.processedBack.label,
|
|
301
307
|
href: this.processedBack.href,
|
|
302
308
|
id: this.processedBack.id,
|
|
303
309
|
analyticsId: this.processedBack.analyticsId,
|
|
304
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '
|
|
310
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { key: '5f76b32e9c37115a665dba180113bfaf8d706e1b', class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { key: '3c5b2a7062ef0a22c8c78fc2bb5c4a0f4d5e351e', class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { key: 'ffb0037467d7a1f483b3bd21fc274ec83e790f1a', 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: 'ccd809ffdd2d4fc7ac48632759b604b647add40e', name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { key: 'bc6c130c314bf164c42fc8cb87fda199967c9237', 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: '963c8438ec6323eef745e2405dba51c660bf3437', 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: 'c3de01174e3976af162c9cd8610bc5028bf94a2a', name: "subheading" }))), this.description && (h("duet-paragraph", { key: '356d3bdf54e70df94df7588bddd1b11d4b506826', theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { key: '7368b837749d30ef0f82ab3c896bbbfc5407f797', 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: '9995622873298d66e258e9de20e03d7eed3ace16', 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: '595b3c8c2b34fe4ce259d69876c3da3a1ef0e826' })), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { key: '9b5bc347f7ae36979655a300f74943ac226f6516', 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 &&
|
|
305
311
|
this.variation !== "image" &&
|
|
306
312
|
!campaignOrSection &&
|
|
307
313
|
this.variation !== "product" &&
|
|
308
|
-
this.variation !== "content" && h("div", { key: '
|
|
314
|
+
this.variation !== "content" && h("div", Object.assign({ key: '19a6e4b9ec23150728f38a1ddca45980bbf9deb0', class: "duet-hero-image", style: styles }, bgImgA11yAttrs)), h("slot", { key: 'df6fbc1b019210185ffefc3df52dcb8c197de8f3', name: "bottom" }))));
|
|
309
315
|
}
|
|
310
316
|
static get is() { return "duet-hero"; }
|
|
311
317
|
static get encapsulation() { return "shadow"; }
|
|
@@ -851,6 +857,25 @@ export class DuetHero {
|
|
|
851
857
|
"reflect": false,
|
|
852
858
|
"defaultValue": "\"auto\""
|
|
853
859
|
},
|
|
860
|
+
"imageAlt": {
|
|
861
|
+
"type": "string",
|
|
862
|
+
"attribute": "image-alt",
|
|
863
|
+
"mutable": false,
|
|
864
|
+
"complexType": {
|
|
865
|
+
"original": "string",
|
|
866
|
+
"resolved": "string",
|
|
867
|
+
"references": {}
|
|
868
|
+
},
|
|
869
|
+
"required": false,
|
|
870
|
+
"optional": false,
|
|
871
|
+
"docs": {
|
|
872
|
+
"tags": [],
|
|
873
|
+
"text": "Alt attribute text for the image. If not provided, image is assigned presentation role."
|
|
874
|
+
},
|
|
875
|
+
"getter": false,
|
|
876
|
+
"setter": false,
|
|
877
|
+
"reflect": false
|
|
878
|
+
},
|
|
854
879
|
"variation": {
|
|
855
880
|
"type": "string",
|
|
856
881
|
"attribute": "variation",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
5
6
|
import { getLocaleString } from "../../utils/language-utils";
|
|
6
7
|
export class DuetIndicator {
|
|
7
8
|
constructor() {
|
|
@@ -32,12 +33,19 @@ export class DuetIndicator {
|
|
|
32
33
|
* only in special cases, as errors and succeses normally require a more prominent message.
|
|
33
34
|
*/
|
|
34
35
|
this.variation = "change";
|
|
36
|
+
/**
|
|
37
|
+
* Theme of the component
|
|
38
|
+
*/
|
|
39
|
+
this.theme = "";
|
|
35
40
|
this.getAccessibleLabel = () => {
|
|
36
41
|
return this.accessibleLabel || getLocaleString(this.defaultLabels[this.variation]);
|
|
37
42
|
};
|
|
38
43
|
}
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
inheritGlobalTheme(this);
|
|
46
|
+
}
|
|
39
47
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'b2f09b35f7fbb61445756df5e6df2f75bb0246ff', class: { [this.theme]: true } }, h("span", { key: '81de43cc175005dc2001d65e7e34813c1afbefca', class: { "duet-indicator": true, [`duet-indicator-${this.variation}`]: true } }), h("duet-visually-hidden", { key: 'cebd5630b42f0c4bca8497db1b2caa5326822ef5' }, this.getAccessibleLabel())));
|
|
41
49
|
}
|
|
42
50
|
static get is() { return "duet-indicator"; }
|
|
43
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,6 +105,32 @@ export class DuetIndicator {
|
|
|
97
105
|
"getter": false,
|
|
98
106
|
"setter": false,
|
|
99
107
|
"reflect": false
|
|
108
|
+
},
|
|
109
|
+
"theme": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"attribute": "theme",
|
|
112
|
+
"mutable": true,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "DuetTheme",
|
|
115
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
116
|
+
"references": {
|
|
117
|
+
"DuetTheme": {
|
|
118
|
+
"location": "import",
|
|
119
|
+
"path": "../../common-types",
|
|
120
|
+
"id": "src/common-types.d.ts::DuetTheme"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Theme of the component"
|
|
129
|
+
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "\"\""
|
|
100
134
|
}
|
|
101
135
|
};
|
|
102
136
|
}
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
:host(.duet-link-button):last-child, :host(.duet-link-button):last-of-type {
|
|
37
37
|
margin-right: 0 !important;
|
|
38
38
|
}
|
|
39
|
+
[alignment=form-distribute] > :host(.duet-link-button):last-of-type:not(:last-child) {
|
|
40
|
+
margin-right: 8px !important;
|
|
41
|
+
}
|
|
39
42
|
|
|
40
43
|
:host(.duet-m-0) {
|
|
41
44
|
margin: 0 !important;
|
|
@@ -155,6 +158,10 @@ button {
|
|
|
155
158
|
.block-center.duet-link.none {
|
|
156
159
|
padding: 0;
|
|
157
160
|
}
|
|
161
|
+
.block.duet-link:hover .duet-link-content,
|
|
162
|
+
.block-center.duet-link:hover .duet-link-content {
|
|
163
|
+
color: rgb(0, 97, 155);
|
|
164
|
+
}
|
|
158
165
|
.block .block__icon,
|
|
159
166
|
.block-center .block__icon {
|
|
160
167
|
display: flex;
|
|
@@ -430,30 +437,40 @@ button {
|
|
|
430
437
|
}
|
|
431
438
|
}
|
|
432
439
|
|
|
433
|
-
:host(.duet-theme-turva2) .duet-
|
|
440
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link {
|
|
434
441
|
color: rgb(185, 3, 41);
|
|
435
442
|
}
|
|
436
|
-
:host(.duet-theme-turva2) .duet-
|
|
443
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link:hover {
|
|
437
444
|
color: rgb(140, 0, 30);
|
|
438
445
|
}
|
|
439
|
-
:host(.duet-theme-turva2) .duet-
|
|
440
|
-
color: rgb(23, 42, 59);
|
|
441
|
-
}
|
|
442
|
-
:host(.duet-theme-turva2) .duet-link.button.duet-theme-turva,
|
|
443
|
-
:host(.duet-theme-turva2) .duet-link.list-button.duet-theme-turva {
|
|
446
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button {
|
|
444
447
|
border-color: rgb(178, 194, 205);
|
|
445
448
|
}
|
|
446
|
-
:host(.duet-theme-turva2) .duet-link.button.duet-theme-turva .duet-link-content
|
|
447
|
-
:host(.duet-theme-turva2) .duet-link.list-button.duet-theme-turva .duet-link-content {
|
|
449
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button .duet-link-content, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button .duet-link-content {
|
|
448
450
|
color: rgb(23, 42, 59);
|
|
449
451
|
}
|
|
450
|
-
:host(.duet-theme-turva2) .duet-link.button
|
|
452
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.button:hover {
|
|
451
453
|
outline-color: rgb(230, 23, 64);
|
|
452
454
|
border-color: rgb(230, 23, 64);
|
|
453
455
|
}
|
|
454
|
-
:host(.duet-theme-turva2) .duet-link.list-button
|
|
456
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover {
|
|
455
457
|
border-color: rgb(178, 194, 205);
|
|
456
458
|
}
|
|
457
|
-
:host(.duet-theme-turva2) .duet-link.list-button
|
|
459
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.list-button:hover .duet-link-content {
|
|
458
460
|
color: rgb(230, 23, 64);
|
|
461
|
+
}
|
|
462
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center {
|
|
463
|
+
color: rgb(23, 42, 59);
|
|
464
|
+
}
|
|
465
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block .duet-link-content, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center .duet-link-content {
|
|
466
|
+
color: rgb(23, 42, 59);
|
|
467
|
+
}
|
|
468
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover {
|
|
469
|
+
color: rgb(185, 3, 41);
|
|
470
|
+
}
|
|
471
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-link.block:hover .duet-link-content, :host(.duet-theme-turva2) .duet-theme-turva.duet-link.block-center:hover .duet-link-content {
|
|
472
|
+
color: rgb(185, 3, 41);
|
|
473
|
+
}
|
|
474
|
+
:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-to-link {
|
|
475
|
+
color: rgb(23, 42, 59);
|
|
459
476
|
}
|
|
@@ -152,7 +152,7 @@ export class DuetLink {
|
|
|
152
152
|
return (h(Fragment, null, h("span", { class: "duet-link-content", part: "duet-link-content" }, h("slot", null)), Build.isBrowser && (this.resolvedDownload || this.external) && this.variation === "default" && (h(Fragment, null, h("span", { class: "duet-link-icon-tail" }, "\u00A0", h("duet-icon", { icon: this.resolvedDownload ? downloadIcon.svg : newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" }))))));
|
|
153
153
|
}
|
|
154
154
|
renderBlockContent() {
|
|
155
|
-
return (h(Fragment, null, this.icon && (h("span", { class: "block__icon" }, h("duet-icon", { class: this.iconResponsive ? "icon-responsive" : "", size: "auto", name: this.icon, margin: "none", color: this.iconColor }))), h("span", { class: "block__content" }, this.renderDefaultContent()), h("span", { class: "block__chevron", part: "block-chevron" }, h("duet-icon", { class: "block__chevron-icon", icon: this.external ? newWindowIconLarge.svg : chevronIcon.svg, size: "x-small", margin: "none", color: "primary
|
|
155
|
+
return (h(Fragment, null, this.icon && (h("span", { class: "block__icon" }, h("duet-icon", { class: this.iconResponsive ? "icon-responsive" : "", size: "auto", name: this.icon, margin: "none", color: this.iconColor }))), h("span", { class: "block__content" }, this.renderDefaultContent()), h("span", { class: "block__chevron", part: "block-chevron" }, h("duet-icon", { class: "block__chevron-icon", icon: this.external ? newWindowIconLarge.svg : chevronIcon.svg, size: "x-small", margin: "none", color: "primary" }))));
|
|
156
156
|
}
|
|
157
157
|
renderButtonCardContent() {
|
|
158
158
|
const iconWrapStyle = {
|
|
@@ -181,10 +181,10 @@ export class DuetLink {
|
|
|
181
181
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
182
182
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
183
183
|
const isButton = Tag === "button";
|
|
184
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'c9771c4890b8c42dd47c1b5794a9bd1bac35e26f', class: {
|
|
185
185
|
[`duet-link-${this.variation}`]: true,
|
|
186
186
|
"duet-m-0": this.margin === "none",
|
|
187
|
-
} }, h(Tag, { key: '
|
|
187
|
+
} }, h(Tag, { key: '63c398171aaf01ce55e54040fc911587749b4d0e', href: this.url, class: {
|
|
188
188
|
"duet-link": true,
|
|
189
189
|
"duet-link-is-external": this.external,
|
|
190
190
|
"duet-link-is-download": !!this.download,
|
|
@@ -367,11 +367,11 @@ export class DuetModal {
|
|
|
367
367
|
"duet-modal-gutter-small": this.gutterSize === "small",
|
|
368
368
|
"duet-modal-gutter-medium": this.gutterSize === "medium",
|
|
369
369
|
"duet-modal-gutter-large": this.gutterSize === "large",
|
|
370
|
-
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, h("div", { key: 'eddd353009b508fe5ecd04aa866f076a064626de', class: "duet-modal-header" }, h("span", { key: '696ad960d20a5e5bf68dc9ec9da5d59773accf10', class: "duet-modal-inner-slot-top" }, h("slot", { key: '28f0677621250a3da6899f055ba374dd78a17a35', name: "top" })), this.icon && h("duet-icon", { key: '7b9e797b9f5296effdfc0beaac29be90e0310436', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (h("duet-heading", { key: 'ba31f51f36989421ecb8f741b285d7d2638f2f7a', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (h("div", { key: '2bae6fedd2f1ab7b40264c2d6c3b4f69f9627d2c', class: "duet-modal-spinner" }, h("duet-spinner", { key: 'd5f27b579909233f930b09251b7faa6fd7d35a78', size: "large", color: postfixTheme("primary", this.theme) }))), h("div", { key: '
|
|
370
|
+
}, "aria-live": this.accessibleAnnounceChanges === "heading" ? "polite" : null, "aria-atomic": this.accessibleAnnounceChanges === "heading" ? "true" : null }, h("div", { key: 'eddd353009b508fe5ecd04aa866f076a064626de', class: "duet-modal-header" }, h("span", { key: '696ad960d20a5e5bf68dc9ec9da5d59773accf10', class: "duet-modal-inner-slot-top" }, h("slot", { key: '28f0677621250a3da6899f055ba374dd78a17a35', name: "top" })), this.icon && h("duet-icon", { key: '7b9e797b9f5296effdfc0beaac29be90e0310436', name: this.icon, size: "xx-large", color: this.color || iconColor }), this.heading && (h("duet-heading", { key: 'ba31f51f36989421ecb8f741b285d7d2638f2f7a', "visual-level": (_b = this.headingVisualLevel) !== null && _b !== void 0 ? _b : this.headingLevel, level: this.headingLevel, theme: this.theme }, this.heading))), this.variation === "loader" && (h("div", { key: '2bae6fedd2f1ab7b40264c2d6c3b4f69f9627d2c', class: "duet-modal-spinner" }, h("duet-spinner", { key: 'd5f27b579909233f930b09251b7faa6fd7d35a78', size: "large", color: postfixTheme("primary", this.theme) }))), h("div", { key: 'f667634f35e5048df2ea536709e76beca9cb3a49', "aria-live": this.variation === "loader"
|
|
371
371
|
? "assertive"
|
|
372
372
|
: this.accessibleAnnounceChanges === "body"
|
|
373
373
|
? "polite"
|
|
374
|
-
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, h("slot", { key: '
|
|
374
|
+
: null, "aria-atomic": this.accessibleAnnounceChanges === "body" ? "true" : null, class: "duet-modal-inner-slot-default", ref: el => (this.slotContainerEl = el) }, h("slot", { key: 'c8523317779ddc6acd2de899022ea31535612291' })))))));
|
|
375
375
|
}
|
|
376
376
|
static get is() { return "duet-modal"; }
|
|
377
377
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
:host:last-child, :host:last-of-type {
|
|
99
99
|
margin-right: 0 !important;
|
|
100
100
|
}
|
|
101
|
+
[alignment=form-distribute] > :host:last-of-type:not(:last-child) {
|
|
102
|
+
margin-right: 16px !important;
|
|
103
|
+
}
|
|
101
104
|
@media (min-width: 36em) {
|
|
102
105
|
:host {
|
|
103
106
|
width: calc(50% - 16px - 3px);
|
|
@@ -5,6 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
import { subscribeTabbingChange, unsubscribeTabbingChange } from "../../utils/keyboard-utils";
|
|
7
7
|
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
8
|
+
import { getElementsFromDefaultSlot } from "../../utils/slot-utils";
|
|
8
9
|
export class DuetNotification {
|
|
9
10
|
constructor() {
|
|
10
11
|
/**
|
|
@@ -71,12 +72,18 @@ export class DuetNotification {
|
|
|
71
72
|
async setFocus(options) {
|
|
72
73
|
this.linkElement.focus(options);
|
|
73
74
|
}
|
|
75
|
+
getAriaLabelText() {
|
|
76
|
+
const slottedElements = getElementsFromDefaultSlot(this.element);
|
|
77
|
+
const slottedText = slottedElements.map(e => e.textContent.trim()).join(". ");
|
|
78
|
+
const indicatorText = this.highlight ? `${this.accessibleLabelUnread}. ` : "";
|
|
79
|
+
return `${indicatorText}${slottedText}${slottedText.endsWith(".") ? "" : "."} ${this.date}`;
|
|
80
|
+
}
|
|
74
81
|
render() {
|
|
75
|
-
return (h("div", { key: '
|
|
82
|
+
return (h("div", { key: '8497858acf685b75adce100af83521ea62dad249', role: "listitem", class: {
|
|
76
83
|
"duet-notification": true,
|
|
77
84
|
"duet-notification-highlight": this.highlight,
|
|
78
85
|
"duet-theme-turva": this.theme === "turva",
|
|
79
|
-
} }, h("a", { key: '
|
|
86
|
+
} }, h("a", { key: 'd055bb5cebbf8d33eb35d193d1bb1fa106c5ec49', ref: element => (this.linkElement = element), href: this.url, target: this.external ? "_blank" : "_self", "aria-label": this.getAriaLabelText() }, h("div", { key: '37b18aada4bbdcc07fbae2fb2a379e4ce499d1a2', class: "duet-notification-container" }, h("div", { key: 'd82a6a30c51dcbe9fa55d184f9475ee52824c960', class: "duet-indicator-container" }, this.highlight && (h("duet-indicator", { key: 'ba8cf675f5f79738b621bb60be60e955648f72fb', variation: "new", "accessible-label": this.accessibleLabelUnread }))), h("div", { key: '7616f1c0b61f842cb19959f8a26d972740d4983c', class: "duet-notification-content" }, h("slot", { key: '3d15bf405f3f7e6bb7b699835882720db81c60ac' })), h("div", { key: '479850eacc300888b148101759908b962db1d24a', class: "duet-notification-date" }, this.date)))));
|
|
80
87
|
}
|
|
81
88
|
static get is() { return "duet-notification"; }
|
|
82
89
|
static get encapsulation() { return "shadow"; }
|