@duetds/components 10.0.0-alpha.23 → 10.0.0-alpha.25
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 +414 -261
- package/hydrate/index.mjs +414 -261
- package/lib/cjs/{a11y-utils-aMJTxbM9.js → a11y-utils-BeS3x4Hg.js} +1 -1
- package/lib/cjs/{app-globals-DN9e0v8L.js → app-globals-BvljEFtV.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
- 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 +7 -7
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
- package/lib/cjs/duet-button_2.cjs.entry.js +12 -12
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +13 -12
- package/lib/cjs/duet-card.cjs.entry.js +4 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +3 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
- package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
- 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 +9 -9
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +54 -12
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- 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 +4 -4
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
- 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 +10 -42
- package/lib/cjs/duet-modal.cjs.entry.js +37 -20
- package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-number-input.cjs.entry.js +14 -9
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -17
- package/lib/cjs/duet-panel.cjs.entry.js +53 -0
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +16 -16
- 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 +7 -7
- package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
- 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 +12 -12
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +6 -6
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
- 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 +8 -8
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- package/lib/cjs/duet-tray.cjs.entry.js +5 -5
- 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-CSxc4txc.js → errorcodes.utils-CwTzu57-.js} +1 -1
- package/lib/cjs/{focus-utils-R3gIGr8k.js → focus-utils-Dh4b8BiX.js} +1 -1
- package/lib/cjs/{index-cypK_uRu.js → index-D3O_5Hr7.js} +5 -1
- package/lib/cjs/{label-61f_b8fi.js → label-8AXhdqJy.js} +1 -1
- package/lib/cjs/{language-utils-DIDyCgUk.js → language-utils-CMK9eR4Q.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-BC5Q3UDm.js → slot-utils-BIdgEejh.js} +1 -1
- package/lib/cjs/{themeable-component-BWW4XmUY.js → themeable-component-B3llZmjN.js} +14 -2
- package/lib/cjs/{token-utils-CHLLcMzU.js → token-utils-DsVwGXGM.js} +75 -7
- package/lib/cjs/{tokens-DYbf8HFV.js → tokens-D7zqZKjQ.js} +0 -1
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/common/themeable-component.js +13 -1
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +1 -0
- package/lib/collection/components/duet-banner/duet-banner.js +3 -3
- 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 +19 -4
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.css +3 -0
- package/lib/collection/components/duet-header/duet-header.js +3 -2
- package/lib/collection/components/duet-icon/duet-icon.css +5 -0
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-label/duet-label.js +1 -1
- package/lib/collection/components/duet-link/duet-link.js +5 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.css +8 -0
- package/lib/collection/components/duet-logo/duet-logo.js +74 -5
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +91 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +27 -39
- 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 +96 -15
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- 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 +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.js +11 -6
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +12 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-panel/duet-panel.css +98 -0
- package/lib/collection/components/duet-panel/duet-panel.js +234 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- 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.js +3 -3
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- 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 +5 -5
- 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 +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- 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 +1 -1
- 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 +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- 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 +4 -4
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
- package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
- 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.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- 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 +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/token-utils.js +59 -7
- package/lib/collection/utils/turva2-color-tokens.js +42 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-2de0e6b5.entry.js → p-04ce95ba.entry.js} +1 -1
- package/lib/duet/{p-eafab2a1.entry.js → p-05766552.entry.js} +1 -1
- package/lib/duet/{p-3ea842ba.entry.js → p-065f7e81.entry.js} +1 -1
- package/lib/duet/{p-95dd811d.entry.js → p-06ed84cb.entry.js} +1 -1
- package/lib/duet/{p-625a23c2.entry.js → p-08ed76c2.entry.js} +1 -1
- package/lib/duet/{p-f3d5e40a.entry.js → p-0a448068.entry.js} +1 -1
- package/lib/duet/{p-44786477.entry.js → p-0dc4fe1d.entry.js} +1 -1
- package/lib/duet/{p-626e92a9.entry.js → p-0ebeee02.entry.js} +1 -1
- package/lib/duet/{p-9b9031cf.entry.js → p-106d3089.entry.js} +1 -1
- package/lib/duet/{p-32352972.entry.js → p-15593e3e.entry.js} +1 -1
- package/lib/duet/{p-54b978c0.entry.js → p-2057cc55.entry.js} +1 -1
- package/lib/duet/{p-061f484f.entry.js → p-2792ec0b.entry.js} +1 -1
- package/lib/duet/p-28a998f9.entry.js +4 -0
- package/lib/duet/{p-8057c9e5.entry.js → p-2d3d11db.entry.js} +1 -1
- package/lib/duet/{p-9d5be586.entry.js → p-2e34dd28.entry.js} +1 -1
- package/lib/duet/{p-f7782ce5.entry.js → p-30ade10d.entry.js} +1 -1
- package/lib/duet/{p-d5270614.entry.js → p-35ac072d.entry.js} +1 -1
- package/lib/duet/{p-70fd5cb5.entry.js → p-37222c50.entry.js} +1 -1
- package/lib/duet/{p-80f567c7.entry.js → p-39169420.entry.js} +1 -1
- package/lib/duet/{p-a544dcb2.entry.js → p-3dd4fbf1.entry.js} +1 -1
- package/lib/duet/{p-8ae3ba95.entry.js → p-402c8cd9.entry.js} +1 -1
- package/lib/duet/{p-2b2be1ce.entry.js → p-4628e002.entry.js} +1 -1
- package/lib/duet/{p-07cd31d4.entry.js → p-466ef37c.entry.js} +1 -1
- package/lib/duet/{p-f2e88086.entry.js → p-4aece4f9.entry.js} +1 -1
- package/lib/duet/{p-1b4e4213.entry.js → p-4ee576a2.entry.js} +1 -1
- package/lib/duet/p-500d799b.entry.js +4 -0
- package/lib/duet/{p-e8bf81e8.entry.js → p-5564a39c.entry.js} +1 -1
- package/lib/duet/p-5848a34c.entry.js +4 -0
- package/lib/duet/{p-1662ddb0.entry.js → p-5ab64521.entry.js} +1 -1
- package/lib/duet/{p-b3547427.entry.js → p-60be3836.entry.js} +1 -1
- package/lib/duet/p-625347d3.entry.js +4 -0
- package/lib/duet/{p-779380f8.entry.js → p-64ebf5e9.entry.js} +1 -1
- package/lib/duet/{p-48bcf197.entry.js → p-64f8d654.entry.js} +1 -1
- package/lib/duet/{p-73f38d13.entry.js → p-652eefa8.entry.js} +1 -1
- package/lib/duet/{p-85ddf215.entry.js → p-65a8dd89.entry.js} +1 -1
- package/lib/duet/{p-05cb3ef2.entry.js → p-66c7af01.entry.js} +1 -1
- package/lib/duet/{p-e8668d1a.entry.js → p-67290546.entry.js} +1 -1
- package/lib/duet/p-693fda6b.entry.js +4 -0
- package/lib/duet/{p-6fa05aeb.entry.js → p-6a6e4d82.entry.js} +1 -1
- package/lib/duet/{p-5c749aae.entry.js → p-6aa6ce7d.entry.js} +1 -1
- package/lib/duet/{p-e6a5676c.entry.js → p-71603edd.entry.js} +1 -1
- package/lib/duet/{p-c0721ad9.entry.js → p-71a6b137.entry.js} +1 -1
- package/lib/duet/{p-a40fbcac.entry.js → p-72c2ba6b.entry.js} +1 -1
- package/lib/duet/p-73290da8.entry.js +4 -0
- package/lib/duet/{p-2c2a8a28.entry.js → p-73ce0ef8.entry.js} +1 -1
- package/lib/duet/p-767afcf4.entry.js +4 -0
- package/lib/duet/{p-7ac87fc1.entry.js → p-774cf9f5.entry.js} +1 -1
- package/lib/duet/{p-89e9badf.entry.js → p-7a9f3475.entry.js} +1 -1
- package/lib/duet/{p-61da8d25.entry.js → p-7c814d9a.entry.js} +1 -1
- package/lib/duet/{p-1cc69291.entry.js → p-7f1fb1a9.entry.js} +1 -1
- package/lib/duet/{p-d154fb42.entry.js → p-83f6beb5.entry.js} +1 -1
- package/lib/duet/{p-5b2e8342.entry.js → p-8596c993.entry.js} +1 -1
- package/lib/duet/{p-e72e498d.entry.js → p-867aab83.entry.js} +1 -1
- package/lib/duet/{p-a854a83c.entry.js → p-86b74914.entry.js} +1 -1
- package/lib/duet/{p-11b6b71d.entry.js → p-8ed6f7c7.entry.js} +1 -1
- package/lib/duet/{p-b5cdfd48.entry.js → p-94e33308.entry.js} +1 -1
- package/lib/duet/p-960f95b4.entry.js +4 -0
- package/lib/duet/{p-5f437262.entry.js → p-9973c0dc.entry.js} +1 -1
- package/lib/duet/{p-e89f59fe.entry.js → p-9a1f29ac.entry.js} +1 -1
- package/lib/duet/{p-e3c9a33a.entry.js → p-9fade6a0.entry.js} +1 -1
- package/lib/duet/{p-0710ad83.entry.js → p-9fff2189.entry.js} +1 -1
- package/lib/duet/{p-CUNSbdt4.js → p-B_VBeM3r.js} +1 -1
- package/lib/duet/{p-B_RHZ7jo.js → p-BaR6ufr4.js} +1 -1
- package/lib/duet/p-BdUQgQFn.js +4 -0
- package/lib/duet/p-DdwVwK5C.js +4 -0
- package/lib/duet/p-Dr2j33H2.js +4 -0
- package/lib/duet/{p-Dvk6bntS.js → p-DxV3RbmM.js} +1 -1
- package/lib/duet/{p-fwfCVW-k.js → p-DyXNfxdT.js} +1 -1
- package/lib/duet/p-DzerL_yn.js +4 -0
- package/lib/duet/p-KocOARXM.js +4 -0
- package/lib/duet/p-OdY4DjJa.js +4 -0
- package/lib/duet/p-T5kkooky.js +4 -0
- package/lib/duet/{p-D5_4M8f7.js → p-Z0D6Gy9e.js} +1 -1
- package/lib/duet/{p-bd6f7e7b.entry.js → p-a09c6e42.entry.js} +1 -1
- package/lib/duet/{p-5956c71f.entry.js → p-a3a2e89e.entry.js} +1 -1
- package/lib/duet/{p-a94d6219.entry.js → p-a440c5b3.entry.js} +1 -1
- package/lib/duet/{p-835874ed.entry.js → p-a4a768bf.entry.js} +1 -1
- package/lib/duet/{p-e1715e1f.entry.js → p-a72b8cf4.entry.js} +1 -1
- package/lib/duet/{p-24f39c08.entry.js → p-ab0cd4e5.entry.js} +1 -1
- package/lib/duet/{p-a9353027.entry.js → p-aefcd222.entry.js} +1 -1
- package/lib/duet/p-b84ac47b.entry.js +4 -0
- package/lib/duet/{p-7cfcd244.entry.js → p-ba0fcce1.entry.js} +1 -1
- package/lib/duet/p-ba2b47d3.entry.js +4 -0
- package/lib/duet/{p-3d266d49.entry.js → p-baeb1090.entry.js} +1 -1
- package/lib/duet/{p-828a4e8b.entry.js → p-bcbe4d11.entry.js} +1 -1
- package/lib/duet/{p-fcb87d86.entry.js → p-bf5fae27.entry.js} +1 -1
- package/lib/duet/p-c6479694.entry.js +4 -0
- package/lib/duet/{p-c037858f.entry.js → p-c8308bec.entry.js} +1 -1
- package/lib/duet/p-d0f3a2e6.entry.js +4 -0
- package/lib/duet/{p-d29c6c90.entry.js → p-d28a8bc4.entry.js} +1 -1
- package/lib/duet/p-d2ceafd6.entry.js +4 -0
- package/lib/duet/{p-26ef0a2c.entry.js → p-d96af9c9.entry.js} +1 -1
- package/lib/duet/{p-a930cc2b.entry.js → p-dee8ff90.entry.js} +1 -1
- package/lib/duet/p-e9421a0e.entry.js +4 -0
- package/lib/duet/p-ec6e097b.entry.js +4 -0
- package/lib/duet/{p-b52c9aed.entry.js → p-effefdec.entry.js} +1 -1
- package/lib/duet/{p-9d16f09d.entry.js → p-fb3b8e0f.entry.js} +1 -1
- package/lib/esm/{a11y-utils-Do8wJ0uc.js → a11y-utils-CXqm1pj1.js} +1 -1
- package/lib/esm/{app-globals-CM7s1rys.js → app-globals-s-_CGo5t.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 +8 -8
- 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 +13 -13
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +14 -13
- package/lib/esm/duet-card.entry.js +5 -5
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +3 -3
- package/lib/esm/duet-choice_2.entry.js +6 -6
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +4 -4
- package/lib/esm/duet-contact-card.entry.js +5 -5
- 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 +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +10 -10
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +4 -4
- package/lib/esm/duet-grid_2.entry.js +4 -4
- package/lib/esm/duet-header_2.entry.js +55 -13
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +8 -8
- package/lib/esm/duet-input_2.entry.js +8 -8
- package/lib/esm/duet-layout.entry.js +2 -2
- package/lib/esm/duet-list_2.entry.js +4 -4
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
- 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 +10 -42
- package/lib/esm/duet-modal.entry.js +37 -20
- package/lib/esm/duet-multiselect.entry.js +10 -10
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +7 -7
- package/lib/esm/duet-number-input.entry.js +14 -9
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +5 -5
- package/lib/esm/duet-pagination_2.entry.js +18 -18
- package/lib/esm/duet-panel.entry.js +51 -0
- package/lib/esm/duet-phone-input.entry.js +4 -4
- 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 +7 -7
- package/lib/esm/duet-radio_2.entry.js +7 -7
- package/lib/esm/duet-range-slider.entry.js +7 -7
- package/lib/esm/duet-scrollable_3.entry.js +17 -17
- 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 +5 -5
- 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 +11 -11
- package/lib/esm/duet-status-icon.entry.js +4 -4
- package/lib/esm/duet-step_2.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +6 -6
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
- 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 +8 -8
- package/lib/esm/duet-tooltip.entry.js +5 -5
- package/lib/esm/duet-tray.entry.js +6 -6
- 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-jdmUflM5.js → errorcodes.utils-Bre55Njd.js} +1 -1
- package/lib/esm/{focus-utils-Fb4Hjq5k.js → focus-utils-vvgYykmM.js} +1 -1
- package/lib/esm/{index-CUNSbdt4.js → index-B_VBeM3r.js} +5 -1
- package/lib/esm/{label-CSouuUKb.js → label-l-Eza5H3.js} +1 -1
- package/lib/esm/{language-utils-fAqNRSrI.js → language-utils-B7PXWqpg.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-CgXzS75x.js → slot-utils-aDCRCdc4.js} +1 -1
- package/lib/esm/{themeable-component-EVqsr6Ut.js → themeable-component-DPqozkF4.js} +14 -2
- package/lib/esm/{token-utils-orOLyKQw.js → token-utils-BGFYWQ6j.js} +76 -9
- package/lib/esm/{tokens-Dvk6bntS.js → tokens-DxV3RbmM.js} +1 -1
- package/lib/esm/{tokens.module-D5_4M8f7.js → tokens.module-Z0D6Gy9e.js} +1 -1
- package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
- package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +3 -1
- package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
- package/lib/types/components.d.ts +123 -4
- package/lib/types/utils/token-utils.d.ts +4 -0
- package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
- package/package.json +3 -3
- package/lib/duet/p-2354e2c1.entry.js +0 -4
- package/lib/duet/p-50Jw5Ir2.js +0 -4
- package/lib/duet/p-5432f24c.entry.js +0 -4
- package/lib/duet/p-710ae64d.entry.js +0 -4
- package/lib/duet/p-7a9e6423.entry.js +0 -4
- package/lib/duet/p-7c4f010e.entry.js +0 -4
- package/lib/duet/p-88773ebf.entry.js +0 -4
- package/lib/duet/p-89e6b8d0.entry.js +0 -4
- package/lib/duet/p-9d501c34.entry.js +0 -4
- package/lib/duet/p-BI7G8d3Z.js +0 -4
- package/lib/duet/p-Be6-farU.js +0 -4
- package/lib/duet/p-CF5Kkdym.js +0 -4
- package/lib/duet/p-DyjhCDQL.js +0 -4
- package/lib/duet/p-M3ljdQX1.js +0 -4
- package/lib/duet/p-b2c2a24e.entry.js +0 -4
- package/lib/duet/p-b314a75a.entry.js +0 -4
- package/lib/duet/p-b4569b01.entry.js +0 -4
- package/lib/duet/p-d2e1cef2.entry.js +0 -4
- package/lib/duet/p-e89e940b.entry.js +0 -4
- package/lib/duet/p-ekdrapBY.js +0 -4
- package/lib/duet/p-fc319c57.entry.js +0 -4
|
@@ -78,7 +78,8 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
|
|
|
78
78
|
*/
|
|
79
79
|
accessibleLiveDefaults: DuetLangObject | string;
|
|
80
80
|
/**
|
|
81
|
-
* Format of message used to announce current amount when switching between amounts.
|
|
81
|
+
* Format of message used to announce current amount when switching between amounts. Note that the default has "euros"
|
|
82
|
+
* so if you use another unit is is essential you set this attribute to reflect that unit.
|
|
82
83
|
* The string {current} is replaced with the current amount.
|
|
83
84
|
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
84
85
|
*/
|
|
@@ -235,6 +236,7 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
|
|
|
235
236
|
private setValue;
|
|
236
237
|
private add;
|
|
237
238
|
private subtract;
|
|
239
|
+
private getUnitString;
|
|
238
240
|
private formatAnnouncement;
|
|
239
241
|
/**
|
|
240
242
|
* render() function
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DuetMargin, DuetTheme } from "../../common-types";
|
|
2
|
+
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
|
+
type DuetPanelPalette = "default" | "accent";
|
|
4
|
+
type DuetPanelPaletteVariation = "primary" | "secondary";
|
|
5
|
+
export type DuetPanelVariation = "" | `${DuetPanelPalette}` | `${DuetPanelPaletteVariation}` | `${DuetPanelPalette}-${DuetPanelPaletteVariation}` | `${DuetPanelPaletteVariation}-${DuetPanelPalette}`;
|
|
6
|
+
export declare class DuetPanel implements ThemeableComponent {
|
|
7
|
+
element: HTMLElement;
|
|
8
|
+
/**
|
|
9
|
+
* Theme of the panel.
|
|
10
|
+
*/
|
|
11
|
+
theme: DuetTheme;
|
|
12
|
+
/**
|
|
13
|
+
* Controls the padding of the component. Padding is automatically responsive.
|
|
14
|
+
*/
|
|
15
|
+
padding: "small" | "medium" | "large";
|
|
16
|
+
/**
|
|
17
|
+
* The color variation of the panel. Combination of palette ("default", "accent") and palette variation ("primary",
|
|
18
|
+
* "secondary"). You can ommit "default" and "primary" - they are the defaults.
|
|
19
|
+
*/
|
|
20
|
+
variation: DuetPanelVariation;
|
|
21
|
+
/**
|
|
22
|
+
* Controls the margin of the component.
|
|
23
|
+
*/
|
|
24
|
+
margin: DuetMargin;
|
|
25
|
+
/**
|
|
26
|
+
* Set this attribute to draw a border around the panel.
|
|
27
|
+
*/
|
|
28
|
+
border: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Adds accessible label for the panel that is only shown for screen readers.
|
|
31
|
+
*/
|
|
32
|
+
accessibleLabel: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates the id of a component that labels the panel.
|
|
35
|
+
*/
|
|
36
|
+
accessibleLabelledBy: string;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates the id of a component that describes the panel.
|
|
39
|
+
*/
|
|
40
|
+
accessibleDescribedBy: string;
|
|
41
|
+
/**
|
|
42
|
+
* Component lifecycle events.
|
|
43
|
+
*/
|
|
44
|
+
componentWillLoad(): void;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -38,15 +38,16 @@ import { DuetListLabelWidth, DuetListMobileAlignment, DuetListVariation } from "
|
|
|
38
38
|
import { DuetLogoSize } from "./components/duet-logo/duet-logo";
|
|
39
39
|
import { DuetMenuBarChangeEvent } from "./components/duet-menu-bar/duet-menu-bar";
|
|
40
40
|
import { DuetModalCloseEvent, DuetModalSize, DuetModalVariation } from "./components/duet-modal/duet-modal";
|
|
41
|
+
import { FocusableComponent, OpenerComponent } from "./common";
|
|
41
42
|
import { DuetMultiselectEvent, DuetMultiselectItem, DuetMultiselectItemGroup } from "./components/duet-multiselect/duet-multiselect";
|
|
42
43
|
import { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
|
|
43
44
|
import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
|
|
44
45
|
import { OverlayDisplayDevice } from "./components/duet-overlay/duet-overlay";
|
|
45
46
|
import { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
|
|
47
|
+
import { DuetPanelVariation } from "./components/duet-panel/duet-panel";
|
|
46
48
|
import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
|
|
47
49
|
import { Country } from "./data/countries";
|
|
48
50
|
import { DuetPhoneInputEvent } from "./components/duet-phone-input/duet-phone-input";
|
|
49
|
-
import { FocusableComponent, OpenerComponent } from "./common";
|
|
50
51
|
import { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
|
|
51
52
|
import { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
|
|
52
53
|
import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
|
|
@@ -103,15 +104,16 @@ export { DuetListLabelWidth, DuetListMobileAlignment, DuetListVariation } from "
|
|
|
103
104
|
export { DuetLogoSize } from "./components/duet-logo/duet-logo";
|
|
104
105
|
export { DuetMenuBarChangeEvent } from "./components/duet-menu-bar/duet-menu-bar";
|
|
105
106
|
export { DuetModalCloseEvent, DuetModalSize, DuetModalVariation } from "./components/duet-modal/duet-modal";
|
|
107
|
+
export { FocusableComponent, OpenerComponent } from "./common";
|
|
106
108
|
export { DuetMultiselectEvent, DuetMultiselectItem, DuetMultiselectItemGroup } from "./components/duet-multiselect/duet-multiselect";
|
|
107
109
|
export { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
|
|
108
110
|
export { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
|
|
109
111
|
export { OverlayDisplayDevice } from "./components/duet-overlay/duet-overlay";
|
|
110
112
|
export { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
|
|
113
|
+
export { DuetPanelVariation } from "./components/duet-panel/duet-panel";
|
|
111
114
|
export { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
|
|
112
115
|
export { Country } from "./data/countries";
|
|
113
116
|
export { DuetPhoneInputEvent } from "./components/duet-phone-input/duet-phone-input";
|
|
114
|
-
export { FocusableComponent, OpenerComponent } from "./common";
|
|
115
117
|
export { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
|
|
116
118
|
export { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
|
|
117
119
|
export { DuetRadioEvent } from "./components/duet-radio/duet-radio";
|
|
@@ -2698,6 +2700,10 @@ export namespace Components {
|
|
|
2698
2700
|
* @default "auto"
|
|
2699
2701
|
*/
|
|
2700
2702
|
"margin": DuetMargin;
|
|
2703
|
+
/**
|
|
2704
|
+
* @default false
|
|
2705
|
+
*/
|
|
2706
|
+
"onlySymbol": boolean;
|
|
2701
2707
|
/**
|
|
2702
2708
|
* Sets focus on the specified `duet-logo`. Use this method instead of the global `logo.focus()`.
|
|
2703
2709
|
*/
|
|
@@ -2738,6 +2744,10 @@ export namespace Components {
|
|
|
2738
2744
|
* Logo href.
|
|
2739
2745
|
*/
|
|
2740
2746
|
"logoHref": string;
|
|
2747
|
+
/**
|
|
2748
|
+
* Additional information text to show next to the logo. Show only when the center slot is empty.
|
|
2749
|
+
*/
|
|
2750
|
+
"logoInfoText": string;
|
|
2741
2751
|
/**
|
|
2742
2752
|
* Logo link accessible label.
|
|
2743
2753
|
*/
|
|
@@ -2943,6 +2953,10 @@ export namespace Components {
|
|
|
2943
2953
|
"theme": DuetTheme;
|
|
2944
2954
|
}
|
|
2945
2955
|
interface DuetModal {
|
|
2956
|
+
/**
|
|
2957
|
+
* Makes either the entire modal ("all"), headign and body content ("heading"), or just its body content ("body") an aria-live region, so that changes are announced by the screen readers. Do not use with loader variation, as it handles aria-live separately.
|
|
2958
|
+
*/
|
|
2959
|
+
"accessibleAnnounceChanges": "all" | "heading" | "body";
|
|
2946
2960
|
/**
|
|
2947
2961
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
|
|
2948
2962
|
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
@@ -2996,6 +3010,14 @@ export namespace Components {
|
|
|
2996
3010
|
* @default ""
|
|
2997
3011
|
*/
|
|
2998
3012
|
"color": DuetColor;
|
|
3013
|
+
/**
|
|
3014
|
+
* Set focus on the close button of the modal.
|
|
3015
|
+
*/
|
|
3016
|
+
"focusCloseButton": () => Promise<void>;
|
|
3017
|
+
/**
|
|
3018
|
+
* Where to move focus when the modal is closed, either set the element dirctly with JS or give the id of the element as a string. Use empty string to disable focus moving on close - do this if after closing there is another element that automatically gets the focus or you handle focusing manually.
|
|
3019
|
+
*/
|
|
3020
|
+
"focusElementOnClose": FocusableComponent | HTMLElement | string;
|
|
2999
3021
|
/**
|
|
3000
3022
|
* Size of the modal window's padding.
|
|
3001
3023
|
* @default "medium"
|
|
@@ -3311,7 +3333,7 @@ export namespace Components {
|
|
|
3311
3333
|
*/
|
|
3312
3334
|
"accessibleLabelledBy": string;
|
|
3313
3335
|
/**
|
|
3314
|
-
* Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
|
|
3336
|
+
* Format of message used to announce current amount when switching between amounts. Note that the default has "euros" so if you use another unit is is essential you set this attribute to reflect that unit. The string {current} is replaced with the current amount.
|
|
3315
3337
|
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
3316
3338
|
*/
|
|
3317
3339
|
"accessibleLive": string;
|
|
@@ -3598,6 +3620,44 @@ export namespace Components {
|
|
|
3598
3620
|
*/
|
|
3599
3621
|
"visibleItems": number;
|
|
3600
3622
|
}
|
|
3623
|
+
interface DuetPanel {
|
|
3624
|
+
/**
|
|
3625
|
+
* Indicates the id of a component that describes the panel.
|
|
3626
|
+
*/
|
|
3627
|
+
"accessibleDescribedBy": string;
|
|
3628
|
+
/**
|
|
3629
|
+
* Adds accessible label for the panel that is only shown for screen readers.
|
|
3630
|
+
*/
|
|
3631
|
+
"accessibleLabel": string;
|
|
3632
|
+
/**
|
|
3633
|
+
* Indicates the id of a component that labels the panel.
|
|
3634
|
+
*/
|
|
3635
|
+
"accessibleLabelledBy": string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Set this attribute to draw a border around the panel.
|
|
3638
|
+
*/
|
|
3639
|
+
"border": boolean;
|
|
3640
|
+
/**
|
|
3641
|
+
* Controls the margin of the component.
|
|
3642
|
+
* @default "auto"
|
|
3643
|
+
*/
|
|
3644
|
+
"margin": DuetMargin;
|
|
3645
|
+
/**
|
|
3646
|
+
* Controls the padding of the component. Padding is automatically responsive.
|
|
3647
|
+
* @default "medium"
|
|
3648
|
+
*/
|
|
3649
|
+
"padding": "small" | "medium" | "large";
|
|
3650
|
+
/**
|
|
3651
|
+
* Theme of the panel.
|
|
3652
|
+
* @default ""
|
|
3653
|
+
*/
|
|
3654
|
+
"theme": DuetTheme;
|
|
3655
|
+
/**
|
|
3656
|
+
* The color variation of the panel. Combination of palette ("default", "accent") and palette variation ("primary", "secondary"). You can ommit "default" and "primary" - they are the defaults.
|
|
3657
|
+
* @default ""
|
|
3658
|
+
*/
|
|
3659
|
+
"variation": DuetPanelVariation;
|
|
3660
|
+
}
|
|
3601
3661
|
interface DuetParagraph {
|
|
3602
3662
|
/**
|
|
3603
3663
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
@@ -7017,6 +7077,12 @@ declare global {
|
|
|
7017
7077
|
prototype: HTMLDuetPaginationElement;
|
|
7018
7078
|
new (): HTMLDuetPaginationElement;
|
|
7019
7079
|
};
|
|
7080
|
+
interface HTMLDuetPanelElement extends Components.DuetPanel, HTMLStencilElement {
|
|
7081
|
+
}
|
|
7082
|
+
var HTMLDuetPanelElement: {
|
|
7083
|
+
prototype: HTMLDuetPanelElement;
|
|
7084
|
+
new (): HTMLDuetPanelElement;
|
|
7085
|
+
};
|
|
7020
7086
|
interface HTMLDuetParagraphElement extends Components.DuetParagraph, HTMLStencilElement {
|
|
7021
7087
|
}
|
|
7022
7088
|
var HTMLDuetParagraphElement: {
|
|
@@ -7572,6 +7638,7 @@ declare global {
|
|
|
7572
7638
|
"duet-overlay": HTMLDuetOverlayElement;
|
|
7573
7639
|
"duet-page-heading": HTMLDuetPageHeadingElement;
|
|
7574
7640
|
"duet-pagination": HTMLDuetPaginationElement;
|
|
7641
|
+
"duet-panel": HTMLDuetPanelElement;
|
|
7575
7642
|
"duet-paragraph": HTMLDuetParagraphElement;
|
|
7576
7643
|
"duet-phone-input": HTMLDuetPhoneInputElement;
|
|
7577
7644
|
"duet-popup-menu": HTMLDuetPopupMenuElement;
|
|
@@ -10280,6 +10347,10 @@ declare namespace LocalJSX {
|
|
|
10280
10347
|
* Logo href.
|
|
10281
10348
|
*/
|
|
10282
10349
|
"logoHref"?: string;
|
|
10350
|
+
/**
|
|
10351
|
+
* Additional information text to show next to the logo. Show only when the center slot is empty.
|
|
10352
|
+
*/
|
|
10353
|
+
"logoInfoText"?: string;
|
|
10283
10354
|
/**
|
|
10284
10355
|
* Logo link accessible label.
|
|
10285
10356
|
*/
|
|
@@ -10477,6 +10548,10 @@ declare namespace LocalJSX {
|
|
|
10477
10548
|
"theme"?: DuetTheme;
|
|
10478
10549
|
}
|
|
10479
10550
|
interface DuetModal {
|
|
10551
|
+
/**
|
|
10552
|
+
* Makes either the entire modal ("all"), headign and body content ("heading"), or just its body content ("body") an aria-live region, so that changes are announced by the screen readers. Do not use with loader variation, as it handles aria-live separately.
|
|
10553
|
+
*/
|
|
10554
|
+
"accessibleAnnounceChanges"?: "all" | "heading" | "body";
|
|
10480
10555
|
/**
|
|
10481
10556
|
* Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
|
|
10482
10557
|
* @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
|
|
@@ -10524,6 +10599,10 @@ declare namespace LocalJSX {
|
|
|
10524
10599
|
* @default ""
|
|
10525
10600
|
*/
|
|
10526
10601
|
"color"?: DuetColor;
|
|
10602
|
+
/**
|
|
10603
|
+
* Where to move focus when the modal is closed, either set the element dirctly with JS or give the id of the element as a string. Use empty string to disable focus moving on close - do this if after closing there is another element that automatically gets the focus or you handle focusing manually.
|
|
10604
|
+
*/
|
|
10605
|
+
"focusElementOnClose"?: FocusableComponent | HTMLElement | string;
|
|
10527
10606
|
/**
|
|
10528
10607
|
* Size of the modal window's padding.
|
|
10529
10608
|
* @default "medium"
|
|
@@ -10827,7 +10906,7 @@ declare namespace LocalJSX {
|
|
|
10827
10906
|
*/
|
|
10828
10907
|
"accessibleLabelledBy"?: string;
|
|
10829
10908
|
/**
|
|
10830
|
-
* Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
|
|
10909
|
+
* Format of message used to announce current amount when switching between amounts. Note that the default has "euros" so if you use another unit is is essential you set this attribute to reflect that unit. The string {current} is replaced with the current amount.
|
|
10831
10910
|
* @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
|
|
10832
10911
|
*/
|
|
10833
10912
|
"accessibleLive"?: string;
|
|
@@ -11126,6 +11205,44 @@ declare namespace LocalJSX {
|
|
|
11126
11205
|
*/
|
|
11127
11206
|
"visibleItems"?: number;
|
|
11128
11207
|
}
|
|
11208
|
+
interface DuetPanel {
|
|
11209
|
+
/**
|
|
11210
|
+
* Indicates the id of a component that describes the panel.
|
|
11211
|
+
*/
|
|
11212
|
+
"accessibleDescribedBy"?: string;
|
|
11213
|
+
/**
|
|
11214
|
+
* Adds accessible label for the panel that is only shown for screen readers.
|
|
11215
|
+
*/
|
|
11216
|
+
"accessibleLabel"?: string;
|
|
11217
|
+
/**
|
|
11218
|
+
* Indicates the id of a component that labels the panel.
|
|
11219
|
+
*/
|
|
11220
|
+
"accessibleLabelledBy"?: string;
|
|
11221
|
+
/**
|
|
11222
|
+
* Set this attribute to draw a border around the panel.
|
|
11223
|
+
*/
|
|
11224
|
+
"border"?: boolean;
|
|
11225
|
+
/**
|
|
11226
|
+
* Controls the margin of the component.
|
|
11227
|
+
* @default "auto"
|
|
11228
|
+
*/
|
|
11229
|
+
"margin"?: DuetMargin;
|
|
11230
|
+
/**
|
|
11231
|
+
* Controls the padding of the component. Padding is automatically responsive.
|
|
11232
|
+
* @default "medium"
|
|
11233
|
+
*/
|
|
11234
|
+
"padding"?: "small" | "medium" | "large";
|
|
11235
|
+
/**
|
|
11236
|
+
* Theme of the panel.
|
|
11237
|
+
* @default ""
|
|
11238
|
+
*/
|
|
11239
|
+
"theme"?: DuetTheme;
|
|
11240
|
+
/**
|
|
11241
|
+
* The color variation of the panel. Combination of palette ("default", "accent") and palette variation ("primary", "secondary"). You can ommit "default" and "primary" - they are the defaults.
|
|
11242
|
+
* @default ""
|
|
11243
|
+
*/
|
|
11244
|
+
"variation"?: DuetPanelVariation;
|
|
11245
|
+
}
|
|
11129
11246
|
interface DuetParagraph {
|
|
11130
11247
|
/**
|
|
11131
11248
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
@@ -13811,6 +13928,7 @@ declare namespace LocalJSX {
|
|
|
13811
13928
|
"duet-overlay": DuetOverlay;
|
|
13812
13929
|
"duet-page-heading": DuetPageHeading;
|
|
13813
13930
|
"duet-pagination": DuetPagination;
|
|
13931
|
+
"duet-panel": DuetPanel;
|
|
13814
13932
|
"duet-paragraph": DuetParagraph;
|
|
13815
13933
|
"duet-phone-input": DuetPhoneInput;
|
|
13816
13934
|
"duet-popup-menu": DuetPopupMenu;
|
|
@@ -13921,6 +14039,7 @@ declare module "@stencil/core" {
|
|
|
13921
14039
|
"duet-overlay": LocalJSX.DuetOverlay & JSXBase.HTMLAttributes<HTMLDuetOverlayElement>;
|
|
13922
14040
|
"duet-page-heading": LocalJSX.DuetPageHeading & JSXBase.HTMLAttributes<HTMLDuetPageHeadingElement>;
|
|
13923
14041
|
"duet-pagination": LocalJSX.DuetPagination & JSXBase.HTMLAttributes<HTMLDuetPaginationElement>;
|
|
14042
|
+
"duet-panel": LocalJSX.DuetPanel & JSXBase.HTMLAttributes<HTMLDuetPanelElement>;
|
|
13924
14043
|
"duet-paragraph": LocalJSX.DuetParagraph & JSXBase.HTMLAttributes<HTMLDuetParagraphElement>;
|
|
13925
14044
|
"duet-phone-input": LocalJSX.DuetPhoneInput & JSXBase.HTMLAttributes<HTMLDuetPhoneInputElement>;
|
|
13926
14045
|
"duet-popup-menu": LocalJSX.DuetPopupMenu & JSXBase.HTMLAttributes<HTMLDuetPopupMenuElement>;
|
|
@@ -5,6 +5,10 @@ export declare function capitalize(str?: string): string;
|
|
|
5
5
|
export declare function camelize(str?: string): string;
|
|
6
6
|
export declare function getTheme(theme?: DuetTheme): DuetTheme;
|
|
7
7
|
export declare function capitalizeFirstLetter(string: any): any;
|
|
8
|
+
/**
|
|
9
|
+
* Add "-turva" to color names (or "Turva" to camelCase color names)
|
|
10
|
+
*/
|
|
11
|
+
export declare function postfixTheme(name: string, theme: DuetTheme): string;
|
|
8
12
|
export declare function getColorByName(name: string, theme?: DuetTheme): string | undefined;
|
|
9
13
|
export declare function convertToColorName(name?: string, theme?: DuetTheme): string;
|
|
10
14
|
export declare function getFontSizeByName(name: string): string | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const turva2ColorTokens: {
|
|
2
|
+
"color-turva2-red-00": string;
|
|
3
|
+
"color-turva2-red-50": string;
|
|
4
|
+
"color-turva2-red-100": string;
|
|
5
|
+
"color-turva2-red-200": string;
|
|
6
|
+
"color-turva2-red-300": string;
|
|
7
|
+
"color-turva2-red-400": string;
|
|
8
|
+
"color-turva2-red-500": string;
|
|
9
|
+
"color-turva2-red-600": string;
|
|
10
|
+
"color-turva2-red-700": string;
|
|
11
|
+
"color-turva2-red-800": string;
|
|
12
|
+
"color-turva2-red-900": string;
|
|
13
|
+
"color-turva2-red-1000": string;
|
|
14
|
+
"color-turva2-gray-00": string;
|
|
15
|
+
"color-turva2-gray-50": string;
|
|
16
|
+
"color-turva2-gray-100": string;
|
|
17
|
+
"color-turva2-gray-200": string;
|
|
18
|
+
"color-turva2-gray-300": string;
|
|
19
|
+
"color-turva2-gray-400": string;
|
|
20
|
+
"color-turva2-gray-500": string;
|
|
21
|
+
"color-turva2-gray-600": string;
|
|
22
|
+
"color-turva2-gray-700": string;
|
|
23
|
+
"color-turva2-gray-800": string;
|
|
24
|
+
"color-turva2-gray-900": string;
|
|
25
|
+
"color-turva2-gray-1000": string;
|
|
26
|
+
"color-turva-nude-00": string;
|
|
27
|
+
"color-turva-nude-50": string;
|
|
28
|
+
"color-turva-nude-100": string;
|
|
29
|
+
"color-turva-nude-200": string;
|
|
30
|
+
"color-turva-nude-300": string;
|
|
31
|
+
"color-turva-nude-400": string;
|
|
32
|
+
"color-turva-nude-500": string;
|
|
33
|
+
"color-turva-nude-600": string;
|
|
34
|
+
"color-turva-nude-700": string;
|
|
35
|
+
"color-turva-nude-800": string;
|
|
36
|
+
"color-turva-nude-900": string;
|
|
37
|
+
"color-turva-nude-1000": string;
|
|
38
|
+
};
|
|
39
|
+
export default turva2ColorTokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.25",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@duetds/fonts": "3.0.51",
|
|
65
|
-
"@duetds/icons": "4.2.
|
|
66
|
-
"@duetds/tokens": "4.0.
|
|
65
|
+
"@duetds/icons": "4.2.4",
|
|
66
|
+
"@duetds/tokens": "4.0.105",
|
|
67
67
|
"@percy/cli": "1.30.1",
|
|
68
68
|
"@rollup/plugin-replace": "5.0.2",
|
|
69
69
|
"@stencil/core": "4.36.3",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as d}from"./p-CUNSbdt4.js";const r=class{constructor(t){e(this,t),this.value=0}render(){return t(a,{key:"4ba5a4ae29d40c6f06f4baabeff0b2d421d2fe32"},t("div",{key:"2f001235b3069b2e77312156802aca83583f72d7",hidden:!0},t("slot",{key:"023986d23e42609f106de5b4e16d9bc59c30d605"})))}get element(){return d(this)}};export{r as duet_share_chart_item}
|
package/lib/duet/p-50Jw5Ir2.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as a,g as d}from"./p-CUNSbdt4.js";import{d as i,e as o}from"./p-B1B-PPrh.js";import{i as s}from"./p-BI7G8d3Z.js";import{a as l}from"./p-MxsWrBCY.js";import{f as r}from"./p-ekdrapBY.js";import{a as n}from"./p-Db8rvjPI.js";import{a as m,g as u,c as h,d as p}from"./p-B_RHZ7jo.js";import{h as c}from"./p-Be6-farU.js";import{T as g}from"./p-CooAqTCj.js";import"./p-C6E9F6QT.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport.isActive?(this.teleport.observeDeletion(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])):this.teleport.activate()}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"ec3d40550fa55963fb7593d76847c9cd88ce7d7f",class:"duet-modal-close"},a("duet-button",{key:"ba63577c49f70ce5a0afb069c611cc71889a1ecc",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"45ef05dd96f31c9f905e06a7fd39458e896342ec",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"fae07b0b15aa32b393f28bcb70a2807b67d9afc1","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"c3afda30fb6503e4f9f2a6bdfd61b5ffadf33b98",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"ed730970e831d8b6d399da50b2b7e27fb686b12c",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"f2ee177793bd6df80606fa4ed029cc1df3cc581c"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"f5a12b8a53096e75656c8d7fd879055d26da43a4",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"7580715861362da09389b987b5e40c5460c9d833",class:"duet-modal-header"},a("span",{key:"da33874c652058416c832a1b28219bba3113fff1",class:"duet-modal-inner-slot-top"},a("slot",{key:"5ac1de4f0ead45d55a72603d465eeff16519a059",name:"top"})),this.icon&&a("duet-icon",{key:"9c44461274fde27a1b0a58c4c18a31c49821959c",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"b9cfb51b630ec505e221b51ff98b47f87fe84ae8","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"205e11c6fd001742285c628707cb7758a238b65d",class:"duet-modal-spinner"},a("duet-spinner",{key:"ce31836f38e2524b6748993ce45e1c4aed3e55f4",size:"large",color:"primary"})),a("div",{key:"458d7617638b4ce61afe259a1a0f2d3eb6dca38c",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"6e85fec665aa51db0ee3ce5726e833cd798709f5"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';export{b as duet_modal}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as s,H as o,g as a}from"./p-CUNSbdt4.js";import{i}from"./p-BI7G8d3Z.js";import{c as r}from"./p-Cfr_DJqU.js";import{i as n}from"./p-Db8rvjPI.js";import{a as h,g as c,c as l,d}from"./p-B_RHZ7jo.js";import"./p-C6E9F6QT.js";const m=class{constructor(s){e(this,s),this.duetToggle=t(this,"duetToggle",7),this.contentId=r("DuetShowMore"),this.buttonId=r("DuetShowMoreButton"),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=c(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=c(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=c(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=c(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1,this.handleKeyDown=e=>{n(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const t=!this.open;this.open=t,t?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=t}),500)):this.buttonAriaOpen=t,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})}}componentWillLoad(){i(this),this.buttonAriaOpen=this.open}connectedCallback(){l(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){d(this)}render(){return s(o,{key:"c72a4a66bcedd71aaa4de71227da44163b6691c7"},s("div",{key:"7f229c8848525ff7c081ee34fa1044f837c1079f",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},s("div",{key:"6f3aca5e04f4862578d92be1cfafc31de40a8742",ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"-1":""},s("div",{key:"e3d983d64cb3cce593c8af76bcb73a3cbe79202f",class:{"slotted-content":!0}},s("slot",{key:"a0070a27d8774d45a112c969d7302e1d82327500"}))),s("duet-button",{key:"faf518247c7d13158e51c77a5e044882942642f6",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.isSafariBrowser?this.open:null,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},s("span",{key:"e0d03636ec1022c28fead58cb4807d371f0e9b62"},this.open?this.showLessLabel:this.showMoreLabel))))}get element(){return a(this)}};m.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-theme-turva2) .duet-show-more.duet-theme-turva{color:#172a3b}';export{m as duet_show_more}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as a,g as i}from"./p-CUNSbdt4.js";import{n as r}from"./p-vVCYtBMj.js";import{D as o}from"./p-MxsWrBCY.js";import{i as s}from"./p-BI7G8d3Z.js";import{g as n}from"./p-M3ljdQX1.js";import{a as u}from"./p-Db8rvjPI.js";import{g as b,c as m,d}from"./p-B_RHZ7jo.js";import"./p-DvwKrUS6.js";import"./p-Be6-farU.js";import"./p-C6E9F6QT.js";const c=class{constructor(t){e(this,t),this.theme="",this.active=!1,this.leadingIcon=void 0,this.trailingIcon=void 0,this.accessiblePopup="false",this.accessibleLabelExternalDefaults=o,this.accessibleLabelExternal=b(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){s(this)}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){d(this)}handleEscape(e){if(u(e)){const e=this.element.closest("duet-submenu-bar");e.open=!1,e.setFocus()}}async setFocus(e){setTimeout((()=>this.itemElement.focus(e)),200)}render(){const e=this.url?"link":"button";return t(a,{key:"af1f7e0173b01ce4a424fd3a4e2046cb97cebb29",role:"listitem"},t(this.url?"a":"button",{key:"90ecc87e3554d17b542b524ae37f84d5b200b289",target:this.url?this.external?"_blank":"_self":null,ref:e=>this.itemElement=e,class:{"duet-submenu-bar-item":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.url,onKeyUp:e=>this.handleEscape(e),"aria-current":this.active?"true":"false","aria-label":this.url&&n(this)||this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,role:e,rel:this.external?"noopener":void 0},this.leadingIcon&&t("duet-icon",{key:"2ee4d9d2bdcc49a6815855c90da639bab3ae0447",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),t("div",{key:"ca64d159776bfc730ac79adaa537fa1a6ff49ff2",class:"label"},t("span",{key:"fa0e2a2005f20429288677bfe7607498387b2d81",class:"label-text"},t("slot",{key:"28bead2467fae4092918a95c59a68e2708ae377f"})),(this.trailingIcon||this.external)&&t("duet-icon",{key:"3a8d61e7967f7877461a38e6820d9eac656b6baf",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":"action-arrow-down-small"===this.trailingIcon,"external-icon":!!this.external,rotate:"action-arrow-down-small"===this.trailingIcon&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?r.title:"",margin:"none",size:"auto",color:"currentColor"}))))}get element(){return i(this)}};c.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1.25;color:rgb(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .external-icon{width:10px;height:10px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(228, 241, 247)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(126, 2, 35)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}:host(.duet-theme-turva2) .duet-submenu-bar-item.duet-theme-turva{color:#172a3b}:host(.duet-theme-turva2) .duet-submenu-bar-item.active.duet-theme-turva{color:#e61740}:host(.duet-theme-turva2) .duet-submenu-bar-item.duet-theme-turva.active .label::after{background:#e61740}:host(.duet-theme-turva2) .duet-submenu-bar-item.duet-theme-turva.active::after{background:#e61740}:host(.duet-theme-turva2) .duet-submenu-bar-item.duet-theme-turva:hover{color:#172a3b;background:#fbe1d1}:host(.duet-theme-turva2) .duet-submenu-bar-item.duet-theme-turva:hover.active{color:#e61740}';export{c as duet_submenu_bar_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as a,H as o,g as t}from"./p-CUNSbdt4.js";import{i as r}from"./p-BI7G8d3Z.js";import{h as i,c as d}from"./p-Be6-farU.js";import{g as n}from"./p-DyjhCDQL.js";import"./p-D5_4M8f7.js";const s=class{constructor(a){e(this,a),this.theme="",this.margin="auto",this.backgroundColor="",this.textColor="secondary",this.image="",this.headingLevel="h3"}componentWillLoad(){r(this),this.hasPreHeadingSlot=i(this.element,"pre-heading"),this.hasHeadingSlot=i(this.element,"heading"),this.hasDescriptionSlot=i(this.element,"description"),this.hasActionSlot=i(this.element,"action"),d(this.element,"heading","span"),d(this.element,"description","span")}async setFocus(e){this.url&&this.aOrDivElement&&this.aOrDivElement.focus(e)}render(){const e=n(this.backgroundColor,this.theme);return a(o,{key:"3a5662e6386cd667e1d45e2cab994aa5bd1b773a",class:{"duet-m-0":"none"===this.margin}},a("aside",{key:"5728664532e387b3f7efcf2218d1e67d44dd1b10",class:{"duet-promo-card":!0,"duet-theme-turva":"turva"===this.theme,"no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:{backgroundColor:e||"none"}},a(this.url?"a":"div",{key:"e480b0256b7a089d4303a5a6fa78fb525a4b2ae0",href:this.url,class:"content-wrapper",ref:e=>this.aOrDivElement=e},a("img",{key:"473b0bdfd6ae90a68ae7a04e0addc3fb402f8171",class:"image",src:this.image,alt:"",role:"presentation"}),a("div",{key:"a542187fb985500d24aaa324f6a7c9269697d6e7",class:"content"},this.hasPreHeadingSlot&&a("div",{key:"7a24d8d814e13f3be34cfaee6eb1bbbf645231ba",class:"pre-heading"},a("slot",{key:"dd4c3e0b6cac6b110eca89c23dcaeb8baeb50d7b",name:"pre-heading"})),this.hasHeadingSlot&&a("div",{key:"0e4074478c99a3887522e209a85da659a324d286",class:"heading"},a("duet-heading",{key:"a2e8a5c15c81c90385609ff4ddbc2fb5742ed515",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},a("span",{key:"8b593e2814d241d19936d9e6ba2007f177ea9396"},a("slot",{key:"cf167b6e704d037c49c4b3b2a7c1c29296e95ab7",name:"heading"})))),this.hasDescriptionSlot&&a("div",{key:"719fe7ab4c0782ea29bbe56c25dc8abdb850ecbe",class:"description"},a("duet-paragraph",{key:"afe3a70bc62b79e86debb6b1a8666e7977072621",theme:this.theme,margin:"none",color:this.textColor},a("span",{key:"a07701bd187bfc012874cf3c4db5efb4b43dc89f"},a("slot",{key:"1624a69fcacc0e7139c666a92cc27ae945531186",name:"description"})))),this.hasActionSlot&&a("div",{key:"23eb8e15458d40820d6cb0db31b93dc7939b5335",class:"action"},a("slot",{key:"d66fd22007273332d4d3f6757662e8316a477f3f",name:"action"}))))))}get element(){return t(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';export{s as duet_promo_card}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as t,h as i,H as a,g as n}from"./p-CUNSbdt4.js";import{a as o,b as s}from"./p-Dvk6bntS.js";import{i as r}from"./p-BI7G8d3Z.js";import{a as h}from"./p-B_RHZ7jo.js";import"./p-C6E9F6QT.js";const d=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.theme="",this.language=h(),this.logo=!0,this.hideOnScroll=!1,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.changeLogoSize=()=>{this.checkCenterSlot(),this.logoSize=this.mql[1].matches&&this.centerSlotUsed?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})}}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){r(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}this.checkCenterSlot()}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(a,{key:"349581a9e41fcb410d37770ed09d2311de7d38a5"},i("nav",{key:"96ed53773cd355d673a2b3977b40286d67985810",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"93a3b7f680dfc2f998274c56a380e29332b24f90",class:"top"}),i("div",{key:"a8d14b711a83aee7ea63fa39f5be9d6d61929a37",class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"306ad41f64eaecd20cc98bbe2b9d490912c6820c"},i("duet-logo",{key:"5a91055e192e1214c7bd921c2ff300510594c47b",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),i("div",{key:"7fea1e39256f5847358f2533607ac26f53fc35d3",class:"list center",role:"list"},i("div",{key:"4c953fc8762eadafb6e4a41534676021e4fb0675",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"ee961cf16f11a62fdef74f7ab57cf4bf653ba8ab",name:"center"}),i("div",{key:"1f66cfd1c1fea5f9c1764ff8b3a697c0459a653b",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"3d7cb50a008c1ce893a3ad504b186dbb3965a130",class:"list right",role:"list"},i("slot",{key:"7ff47fae8ea6f7d49fcfe5e53d43491994741f26",name:"right"}))),i("div",{key:"8bc982c15ce030ae88966fe1646914b6bf295960",class:"bottom"})))}get element(){return n(this)}};d.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}';export{d as duet_menu_bar}
|