@duetds/components 10.0.0-alpha.25 → 10.0.0-alpha.26
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 +259 -211
- package/hydrate/index.mjs +259 -211
- package/lib/cjs/{a11y-utils-BeS3x4Hg.js → a11y-utils-CnLnSK4z.js} +1 -1
- package/lib/cjs/{app-globals-BvljEFtV.js → app-globals-B3iie8Hv.js} +1 -1
- package/lib/cjs/{common-strings-DQ3xONmA.js → common-strings-CSqtNIxt.js} +23 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +24 -33
- package/lib/cjs/duet-badge.cjs.entry.js +16 -4
- package/lib/cjs/duet-banner.cjs.entry.js +3 -3
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
- package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +9 -9
- package/lib/cjs/duet-card.cjs.entry.js +13 -7
- 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 +35 -28
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
- 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 +19 -9
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +6 -6
- 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 +5 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-hero.cjs.entry.js +6 -6
- package/lib/cjs/duet-icon.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +5 -5
- 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 +8 -8
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +6 -6
- package/lib/cjs/duet-multiselect.cjs.entry.js +5 -5
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
- package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +4 -4
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +25 -22
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +4 -4
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +8 -6
- package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
- package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
- package/lib/cjs/duet-toggle.cjs.entry.js +4 -4
- 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 +9 -9
- 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 +4 -4
- 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 +4 -4
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-CwTzu57-.js → errorcodes.utils-BgHe-1YU.js} +1 -1
- package/lib/cjs/{focus-utils-Dh4b8BiX.js → focus-utils-CT74z9Qb.js} +1 -1
- package/lib/cjs/{index-D3O_5Hr7.js → index-C6D9Bly8.js} +1 -1
- package/lib/cjs/{label-8AXhdqJy.js → label-tyZX3oPG.js} +1 -1
- package/lib/cjs/{language-utils-CMK9eR4Q.js → language-utils-DcgSN-KH.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-BIdgEejh.js → slot-utils-ByPWwvPp.js} +1 -1
- package/lib/cjs/{themeable-component-B3llZmjN.js → themeable-component-Doq36ycm.js} +1 -1
- package/lib/collection/common-strings.js +22 -0
- package/lib/collection/components/duet-alert/duet-alert.js +21 -30
- package/lib/collection/components/duet-badge/duet-badge.js +13 -2
- 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-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-card/duet-card.js +36 -4
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +6 -27
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +24 -15
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +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-heading/duet-heading.css +1 -0
- package/lib/collection/components/duet-hero/duet-hero.css +95 -0
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- 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-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +6 -6
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +4 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- 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-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +14 -11
- package/lib/collection/components/duet-table/duet-table.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-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-9a1f29ac.entry.js → p-02ba799f.entry.js} +1 -1
- package/lib/duet/{p-6aa6ce7d.entry.js → p-066f855b.entry.js} +1 -1
- package/lib/duet/p-0864a12e.entry.js +4 -0
- package/lib/duet/{p-aefcd222.entry.js → p-0964b56d.entry.js} +1 -1
- package/lib/duet/{p-a4a768bf.entry.js → p-0e15fd30.entry.js} +1 -1
- package/lib/duet/p-0fccda7b.entry.js +4 -0
- package/lib/duet/{p-71a6b137.entry.js → p-117970c7.entry.js} +1 -1
- package/lib/duet/{p-65a8dd89.entry.js → p-148b6203.entry.js} +1 -1
- package/lib/duet/{p-e9421a0e.entry.js → p-15859eb3.entry.js} +1 -1
- package/lib/duet/{p-71603edd.entry.js → p-15a7a9be.entry.js} +1 -1
- package/lib/duet/{p-64ebf5e9.entry.js → p-16f691fd.entry.js} +1 -1
- package/lib/duet/{p-c6479694.entry.js → p-1ec554c6.entry.js} +1 -1
- package/lib/duet/{p-7a9f3475.entry.js → p-1f9c5d58.entry.js} +1 -1
- package/lib/duet/{p-5ab64521.entry.js → p-22641f21.entry.js} +1 -1
- package/lib/duet/{p-774cf9f5.entry.js → p-23475050.entry.js} +1 -1
- package/lib/duet/{p-06ed84cb.entry.js → p-288da581.entry.js} +1 -1
- package/lib/duet/{p-2e34dd28.entry.js → p-2a563d22.entry.js} +1 -1
- package/lib/duet/{p-4aece4f9.entry.js → p-2d62148e.entry.js} +1 -1
- package/lib/duet/{p-73ce0ef8.entry.js → p-2f150cd4.entry.js} +1 -1
- package/lib/duet/{p-466ef37c.entry.js → p-34706bbb.entry.js} +1 -1
- package/lib/duet/{p-9fff2189.entry.js → p-433a9f98.entry.js} +1 -1
- package/lib/duet/{p-625347d3.entry.js → p-44deeddc.entry.js} +1 -1
- package/lib/duet/{p-2057cc55.entry.js → p-4a325ef1.entry.js} +1 -1
- package/lib/duet/{p-d2ceafd6.entry.js → p-4c118ad6.entry.js} +1 -1
- package/lib/duet/{p-a440c5b3.entry.js → p-4c37165a.entry.js} +1 -1
- package/lib/duet/p-4cd019a5.entry.js +4 -0
- package/lib/duet/{p-67290546.entry.js → p-4da25e3d.entry.js} +1 -1
- package/lib/duet/{p-72c2ba6b.entry.js → p-4da439ae.entry.js} +1 -1
- package/lib/duet/{p-0dc4fe1d.entry.js → p-4fc62376.entry.js} +1 -1
- package/lib/duet/{p-ba2b47d3.entry.js → p-534180fa.entry.js} +1 -1
- package/lib/duet/p-57165bf0.entry.js +4 -0
- package/lib/duet/{p-4628e002.entry.js → p-5a6fd350.entry.js} +1 -1
- package/lib/duet/p-5bfa5e5d.entry.js +4 -0
- package/lib/duet/{p-94e33308.entry.js → p-5fdfb13d.entry.js} +1 -1
- package/lib/duet/{p-3dd4fbf1.entry.js → p-62df87ea.entry.js} +1 -1
- package/lib/duet/{p-402c8cd9.entry.js → p-66cb6021.entry.js} +1 -1
- package/lib/duet/{p-2d3d11db.entry.js → p-6b2697ad.entry.js} +1 -1
- package/lib/duet/{p-a09c6e42.entry.js → p-6dca8f77.entry.js} +1 -1
- package/lib/duet/p-6fa7de01.entry.js +4 -0
- package/lib/duet/{p-693fda6b.entry.js → p-6fdb09d1.entry.js} +1 -1
- package/lib/duet/{p-867aab83.entry.js → p-78a9b684.entry.js} +1 -1
- package/lib/duet/{p-37222c50.entry.js → p-7b849d35.entry.js} +1 -1
- package/lib/duet/{p-767afcf4.entry.js → p-7c1e8291.entry.js} +1 -1
- package/lib/duet/{p-8ed6f7c7.entry.js → p-7f0aa937.entry.js} +1 -1
- package/lib/duet/{p-7f1fb1a9.entry.js → p-804b326c.entry.js} +1 -1
- package/lib/duet/{p-bcbe4d11.entry.js → p-806121b1.entry.js} +1 -1
- package/lib/duet/p-8194b05d.entry.js +4 -0
- package/lib/duet/{p-35ac072d.entry.js → p-829482da.entry.js} +1 -1
- package/lib/duet/{p-fb3b8e0f.entry.js → p-84777c03.entry.js} +1 -1
- package/lib/duet/{p-c8308bec.entry.js → p-8625d3ce.entry.js} +1 -1
- package/lib/duet/{p-2792ec0b.entry.js → p-88216acf.entry.js} +1 -1
- package/lib/duet/{p-d0f3a2e6.entry.js → p-92b13088.entry.js} +1 -1
- package/lib/duet/{p-bf5fae27.entry.js → p-9440a479.entry.js} +1 -1
- package/lib/duet/{p-05766552.entry.js → p-98aa7ac5.entry.js} +1 -1
- package/lib/duet/{p-83f6beb5.entry.js → p-9a7382a4.entry.js} +1 -1
- package/lib/duet/{p-960f95b4.entry.js → p-9c838ec0.entry.js} +1 -1
- package/lib/duet/p-B5RO_CRT.js +4 -0
- package/lib/duet/{p-B_VBeM3r.js → p-BPFqbaxm.js} +1 -1
- package/lib/duet/p-BWvtXbhA.js +4 -0
- package/lib/duet/{p-BaR6ufr4.js → p-BkHWWyft.js} +1 -1
- package/lib/duet/{p-DdwVwK5C.js → p-C-YpEPL-.js} +1 -1
- package/lib/duet/p-C2xFZ1pZ.js +4 -0
- package/lib/duet/p-CwVyzidG.js +4 -0
- package/lib/duet/p-D5MfS1RP.js +4 -0
- package/lib/duet/p-DixsuovU.js +4 -0
- package/lib/duet/{p-DyXNfxdT.js → p-DoTAjqzf.js} +1 -1
- package/lib/duet/{p-0ebeee02.entry.js → p-a64da31d.entry.js} +1 -1
- package/lib/duet/{p-04ce95ba.entry.js → p-a704d617.entry.js} +1 -1
- package/lib/duet/{p-66c7af01.entry.js → p-a745298d.entry.js} +1 -1
- package/lib/duet/{p-a72b8cf4.entry.js → p-ad08429f.entry.js} +1 -1
- package/lib/duet/{p-15593e3e.entry.js → p-ad3d8ac8.entry.js} +1 -1
- package/lib/duet/{p-7c814d9a.entry.js → p-b1f362dc.entry.js} +1 -1
- package/lib/duet/{p-86b74914.entry.js → p-b9acaca1.entry.js} +1 -1
- package/lib/duet/{p-9973c0dc.entry.js → p-babe244b.entry.js} +1 -1
- package/lib/duet/{p-60be3836.entry.js → p-c35c9198.entry.js} +1 -1
- package/lib/duet/{p-8596c993.entry.js → p-c62aeb2e.entry.js} +1 -1
- package/lib/duet/p-c8a66d4b.entry.js +4 -0
- package/lib/duet/p-cfd5c934.entry.js +4 -0
- package/lib/duet/p-d05bbd77.entry.js +4 -0
- package/lib/duet/p-d079278e.entry.js +4 -0
- package/lib/duet/p-d110954d.entry.js +4 -0
- package/lib/duet/p-d71a366e.entry.js +4 -0
- package/lib/duet/{p-ba0fcce1.entry.js → p-d92c5cfa.entry.js} +1 -1
- package/lib/duet/{p-73290da8.entry.js → p-dbab30ea.entry.js} +1 -1
- package/lib/duet/p-dd8216e7.entry.js +4 -0
- package/lib/duet/{p-6a6e4d82.entry.js → p-e18a1599.entry.js} +1 -1
- package/lib/duet/p-e76051c3.entry.js +4 -0
- package/lib/duet/{p-5564a39c.entry.js → p-e9886226.entry.js} +1 -1
- package/lib/duet/{p-64f8d654.entry.js → p-e9becc58.entry.js} +1 -1
- package/lib/duet/{p-30ade10d.entry.js → p-ec72f3a2.entry.js} +1 -1
- package/lib/duet/{p-d96af9c9.entry.js → p-ecb4e99d.entry.js} +1 -1
- package/lib/duet/{p-ec6e097b.entry.js → p-f2ae56b2.entry.js} +1 -1
- package/lib/duet/{p-106d3089.entry.js → p-f51c072f.entry.js} +1 -1
- package/lib/duet/{p-ab0cd4e5.entry.js → p-f82079f2.entry.js} +1 -1
- package/lib/duet/{p-dee8ff90.entry.js → p-f82a2ab7.entry.js} +1 -1
- package/lib/esm/{a11y-utils-CXqm1pj1.js → a11y-utils-C6cn5C3e.js} +1 -1
- package/lib/esm/{app-globals-s-_CGo5t.js → app-globals-CcxHDwb4.js} +1 -1
- package/lib/esm/{common-strings-MxsWrBCY.js → common-strings-BWvtXbhA.js} +23 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +24 -33
- package/lib/esm/duet-badge.entry.js +16 -4
- package/lib/esm/duet-banner.entry.js +3 -3
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +5 -5
- package/lib/esm/duet-button_2.entry.js +4 -4
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +9 -9
- package/lib/esm/duet-card.entry.js +13 -7
- 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 +35 -28
- package/lib/esm/duet-collapsible.entry.js +3 -3
- 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 +19 -9
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +6 -6
- 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 +5 -5
- package/lib/esm/duet-grid_2.entry.js +4 -4
- package/lib/esm/duet-header_2.entry.js +4 -4
- package/lib/esm/duet-hero.entry.js +6 -6
- package/lib/esm/duet-icon.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +5 -5
- 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 +8 -8
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +6 -6
- package/lib/esm/duet-multiselect.entry.js +5 -5
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +5 -5
- package/lib/esm/duet-number-input.entry.js +4 -4
- package/lib/esm/duet-overlay.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +4 -4
- package/lib/esm/duet-pagination_2.entry.js +3 -3
- package/lib/esm/duet-panel.entry.js +2 -2
- package/lib/esm/duet-phone-input.entry.js +4 -4
- package/lib/esm/duet-popup-menu_2.entry.js +4 -4
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +5 -5
- package/lib/esm/duet-radio_2.entry.js +4 -4
- package/lib/esm/duet-range-slider.entry.js +4 -4
- package/lib/esm/duet-scrollable_3.entry.js +25 -22
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +4 -4
- 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 -6
- package/lib/esm/duet-show-more.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +8 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +11 -11
- package/lib/esm/duet-slideout.entry.js +5 -5
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +5 -5
- package/lib/esm/duet-toggle.entry.js +4 -4
- 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 +9 -9
- 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 +4 -4
- package/lib/esm/duet-tray.entry.js +5 -5
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +4 -4
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-Bre55Njd.js → errorcodes.utils-CEyBUBSM.js} +1 -1
- package/lib/esm/{focus-utils-vvgYykmM.js → focus-utils-BhO5oz9w.js} +1 -1
- package/lib/esm/{index-B_VBeM3r.js → index-BPFqbaxm.js} +1 -1
- package/lib/esm/{label-l-Eza5H3.js → label-BGqhM4kx.js} +1 -1
- package/lib/esm/{language-utils-B7PXWqpg.js → language-utils-CNMTW_pZ.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-aDCRCdc4.js → slot-utils-BABbKvvc.js} +1 -1
- package/lib/esm/{themeable-component-DPqozkF4.js → themeable-component-Csv1RXxf.js} +1 -1
- package/lib/types/common-strings.d.ts +2 -0
- package/lib/types/components/duet-alert/duet-alert.d.ts +5 -2
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
- package/lib/types/components/duet-card/duet-card.d.ts +6 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +0 -4
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +2 -2
- package/lib/types/components.d.ts +12 -7
- package/package.json +3 -3
- package/lib/duet/p-065f7e81.entry.js +0 -4
- package/lib/duet/p-08ed76c2.entry.js +0 -4
- package/lib/duet/p-0a448068.entry.js +0 -4
- package/lib/duet/p-28a998f9.entry.js +0 -4
- package/lib/duet/p-39169420.entry.js +0 -4
- package/lib/duet/p-4ee576a2.entry.js +0 -4
- package/lib/duet/p-500d799b.entry.js +0 -4
- package/lib/duet/p-5848a34c.entry.js +0 -4
- package/lib/duet/p-652eefa8.entry.js +0 -4
- package/lib/duet/p-9fade6a0.entry.js +0 -4
- package/lib/duet/p-BdUQgQFn.js +0 -4
- package/lib/duet/p-DzerL_yn.js +0 -4
- package/lib/duet/p-KocOARXM.js +0 -4
- package/lib/duet/p-MxsWrBCY.js +0 -4
- package/lib/duet/p-OdY4DjJa.js +0 -4
- package/lib/duet/p-T5kkooky.js +0 -4
- package/lib/duet/p-a3a2e89e.entry.js +0 -4
- package/lib/duet/p-b84ac47b.entry.js +0 -4
- package/lib/duet/p-baeb1090.entry.js +0 -4
- package/lib/duet/p-d28a8bc4.entry.js +0 -4
- package/lib/duet/p-effefdec.entry.js +0 -4
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import {
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { D as DuetStatusLabels } from './common-strings-BWvtXbhA.js';
|
|
6
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
7
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
8
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-Db8rvjPI.js';
|
|
8
|
-
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
9
|
-
import { h as hasSlot } from './slot-utils-
|
|
9
|
+
import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-CNMTW_pZ.js';
|
|
10
|
+
import { h as hasSlot } from './slot-utils-BABbKvvc.js';
|
|
10
11
|
import './string-utils-C6E9F6QT.js';
|
|
11
12
|
|
|
12
13
|
const duetAlertCss = "*,*::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;width:100%;max-height:999px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;position:relative;width: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-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:rgb(228, 241, 247);border:1px solid rgb(172, 210, 229);border-radius:12px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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-alert-wrapper.warning{color:rgb(38, 26, 4);background:rgb(255, 247, 221);border:1px solid rgb(255, 217, 120)}.duet-alert-wrapper.danger{color:rgb(89, 0, 45);background:rgb(255, 225, 231);border:1px solid rgb(252, 136, 162)}.duet-alert-wrapper.success{color:rgb(4, 38, 33);background:rgb(231, 248, 239);border:1px solid rgb(163, 229, 202)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229);border-radius:0}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 72px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-wrapper .duet-alert.duet-alert-expandable{padding-right:20px}.duet-alert-dismiss{position:absolute;top:3px;right:3px}.duet-alert-dismiss duet-button:hover{background-color:rgb(198, 225, 238);border-radius:8px}.warning .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 232, 160)}.danger .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 173, 190)}.success .duet-alert-dismiss duet-button:hover{background-color:rgb(191, 239, 218)}.duet-alert-container{display:inline-flex;align-items:flex-start;width:100%;margin:0 auto !important}.duet-alert-container .duet-alert-content{flex-grow:1;line-height:1.5}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{position:relative;top:2px;display:inline-block;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon duet-icon{width:20px;height:20px}.duet-alert-expander{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;width:calc(100% + 32px + 40px);padding:16px;padding-right:20px;padding-left:52px;margin:-16px;margin-left:-52px;font-family:inherit;color:inherit;cursor:pointer;background-color:inherit}.duet-alert-expanded .duet-alert-expander{margin-bottom:-4px}.duet-alert-expander .expanding-title{flex-grow:1;font-size:1rem;line-height:1.5;text-align:left}.duet-alert-expander duet-icon{position:relative;top:4px;transition:rotate 300ms ease}.duet-alert-expanded .duet-alert-expander duet-icon{rotate:180deg}.duet-alert-expander:hover{filter:brightness(85%)}";
|
|
@@ -18,28 +19,6 @@ const DuetAlert = class {
|
|
|
18
19
|
this.duetCloseComplete = createEvent(this, "duetCloseComplete", 7);
|
|
19
20
|
this.descriptiveId = createID("DuetAlert");
|
|
20
21
|
this.hasShowMoreSlot = false;
|
|
21
|
-
this.labels = {
|
|
22
|
-
default: {
|
|
23
|
-
fi: "Huomioithan",
|
|
24
|
-
en: "Please note",
|
|
25
|
-
sv: "Observera",
|
|
26
|
-
},
|
|
27
|
-
success: {
|
|
28
|
-
fi: "Onnistunut toiminto",
|
|
29
|
-
en: "Action completed successfully",
|
|
30
|
-
sv: "Lyckad åtgärd",
|
|
31
|
-
},
|
|
32
|
-
danger: {
|
|
33
|
-
fi: "Tärkeä varoitus",
|
|
34
|
-
en: "Important warning",
|
|
35
|
-
sv: "Viktig varning",
|
|
36
|
-
},
|
|
37
|
-
warning: {
|
|
38
|
-
fi: "Varoitus",
|
|
39
|
-
en: "Warning",
|
|
40
|
-
sv: "Varning",
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
22
|
/**
|
|
44
23
|
* Theme of the card.
|
|
45
24
|
*/
|
|
@@ -84,7 +63,10 @@ const DuetAlert = class {
|
|
|
84
63
|
*/
|
|
85
64
|
this.padding = "auto";
|
|
86
65
|
/**
|
|
87
|
-
*
|
|
66
|
+
* Status variation of the alert. "danger" and "warning" will render the alert with role "alert" (unless announcements
|
|
67
|
+
* has been set to false). Other variations will have role "status". Use "danger" only when something serious has happened
|
|
68
|
+
* or the user must take immediate action. Use "warning" for unexpected situations that are potentially harmful, but
|
|
69
|
+
* don't require immediate action.
|
|
88
70
|
*/
|
|
89
71
|
this.variation = "default";
|
|
90
72
|
/**
|
|
@@ -122,6 +104,15 @@ const DuetAlert = class {
|
|
|
122
104
|
this.handleExpandToggle = () => {
|
|
123
105
|
this.isExpanded = !this.isExpanded;
|
|
124
106
|
};
|
|
107
|
+
this.getRole = () => {
|
|
108
|
+
if (!this.announcements) {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
if (["warning", "danger"].includes(this.variation)) {
|
|
112
|
+
return "alert";
|
|
113
|
+
}
|
|
114
|
+
return "status";
|
|
115
|
+
};
|
|
125
116
|
}
|
|
126
117
|
/**
|
|
127
118
|
* Component lifecycle events.
|
|
@@ -180,18 +171,18 @@ const DuetAlert = class {
|
|
|
180
171
|
const variation = ["default", "success", "danger", "warning"].includes(this.variation)
|
|
181
172
|
? this.variation
|
|
182
173
|
: "default";
|
|
183
|
-
const variationLabel = getLocaleString(
|
|
184
|
-
return (h(Host, { key: '
|
|
174
|
+
const variationLabel = getLocaleString(DuetStatusLabels[variation]);
|
|
175
|
+
return (h(Host, { key: 'b204a657de629955d04058f3c43813aa00980c1e', class: {
|
|
185
176
|
"duet-theme-turva": this.theme === "turva",
|
|
186
177
|
"duet-alert-is-dismissed": this.isDismissed,
|
|
187
|
-
}, role: this.
|
|
178
|
+
}, role: this.getRole() }, h("div", { key: '0d573c37ae4013f7fdef0d89a7d2cfff38157b44', class: {
|
|
188
179
|
"duet-alert-wrapper": true,
|
|
189
180
|
"duet-p-0": this.padding === "none",
|
|
190
181
|
"duet-m-0": this.margin === "none",
|
|
191
182
|
[variation]: true,
|
|
192
183
|
[this.position]: true,
|
|
193
184
|
"duet-theme-turva": this.theme === "turva",
|
|
194
|
-
} }, h("div", { key: '
|
|
185
|
+
} }, h("div", { key: 'ecb946bd29811c5ee207804498810a6cd3c83889', class: {
|
|
195
186
|
"duet-alert": true,
|
|
196
187
|
"duet-alert-expandable": !!this.expandingTitle,
|
|
197
188
|
"duet-alert-expanded": this.isExpanded,
|
|
@@ -202,9 +193,9 @@ const DuetAlert = class {
|
|
|
202
193
|
"duet-m-0": this.margin === "none",
|
|
203
194
|
[variation]: true,
|
|
204
195
|
"duet-theme-turva": this.theme === "turva",
|
|
205
|
-
} }, h("div", { key: '
|
|
196
|
+
} }, h("div", { key: '88e63f17d9d316a933266a2d98be63f1cf6fa939', class: "duet-alert-container", ref: element => {
|
|
206
197
|
this.alertContainer = element;
|
|
207
|
-
}, tabindex: this.focusable ? "0" : undefined }, this.position !== "below-nav" && (h("div", { key: '
|
|
198
|
+
}, tabindex: this.focusable ? "0" : undefined }, this.position !== "below-nav" && (h("div", { key: 'd0e266b3c576ec9c2532053c292c3bfbbc9d92b0', class: "duet-alert-icon" }, (this.icon && h("duet-icon", { key: 'efa5d1133ba832aa3e88fb419b8f2b454b5536c1', size: "auto", name: this.icon, color: "currentColor" })) || (h("duet-status-icon", { key: '7e00c8f29fb7a33a041acfbd82d1c359eadaf605', strong: true, variation: variation, margin: "none", size: "auto" })))), this.position === "below-nav" && (h("div", { key: '0314c3a000a06a357a7850f6c72002df3d32a541', class: "duet-alert-icon below-nav" }, h("duet-status-icon", { key: 'aec093d7be9e0c0d8940a5e0813495f707daefc0', strong: true, variation: variation, margin: "none", size: "auto" }))), h("div", { key: '97522cbf67c23477ae71603418f85f3d1a13d3c2', class: "duet-alert-content", id: this.descriptiveId }, this.expandingTitle && (h("button", { key: '08d8a6d3b089bad3c54727907f6ba1df213a9103', "aria-expanded": this.isExpanded.toString(), "aria-controls": `${this.descriptiveId}-content`, class: "duet-alert-expander", onClick: this.handleExpandToggle }, h("span", { key: '4efe686cc2dff3077ea3efed7a52c79c3b8c090a', class: "expanding-title" }, this.expandingTitle), h("duet-icon", { key: '2da0cd85883d2e850d65e0682c391079bcce2001', name: "action-arrow-down", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, margin: "none", size: "x-small" }))), (!this.expandingTitle || this.isExpanded) && (h("div", { key: 'dd67482dc47bb4b23d8ff7fdbc7f50a09fd7f355', id: `${this.descriptiveId}-content` }, h("duet-visually-hidden", { key: '0f892f87996b79076b9c04e9d66fadbe681cf913' }, variationLabel), h("slot", { key: 'fac36116e1b9128ad398c4cf997d8c0fd3bca795' }))))), this.hasShowMoreSlot && (h("duet-show-more", { key: '10530ff533c94cb9c85eb23cae9ed3475f3567f2', margin: "none", class: "duet-alert-show-more" }, h("slot", { key: '06e77a909ef86b0ae2e83e818e88c75b8caa9969', name: "show-more" }))), this.dismissible && !this.expandingTitle && (h("div", { key: '65f541e6bf54abcfa91757571cffb18013188c39', class: "duet-alert-dismiss" }, h("duet-button", { key: 'a2e00a7f2d07d04bf388544893ddb56d332c8929', variation: "plain", accessibleLabel: this.accessibleLabel, accessibleDescribedBy: this.descriptiveId, iconSize: "medium", icon: "navigation-close", iconOnly: true, margin: "none", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, theme: this.theme, onClick: this.handleDismiss, fixed: true })))))));
|
|
208
199
|
}
|
|
209
200
|
get element() { return getElement(this); }
|
|
210
201
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import {
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { D as DuetStatusLabels } from './common-strings-BWvtXbhA.js';
|
|
6
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
7
|
+
import { g as getLocaleString } from './language-utils-CNMTW_pZ.js';
|
|
8
|
+
import './string-utils-C6E9F6QT.js';
|
|
6
9
|
|
|
7
10
|
const duetBadgeCss = "*,*::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:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;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.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fdecc9}.duet-badge.danger{background:#f7d2dc}.duet-badge.danger.duet-theme-turva{background:#f7d2dc}.duet-badge.success{background:#d6e6e1}.duet-badge.success.duet-theme-turva{background:#d6e6e1}.duet-badge.subtle{color:rgb(98, 121, 138);background:none;outline:1px solid rgb(212, 223, 229);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(113, 118, 132);background:none;outline-color:rgb(222, 224, 228)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#f9c153}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.subtle{border-color:rgb(181, 198, 208);outline-color:rgb(8, 42, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(199, 202, 207);outline-color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.default{color:#172a3b;background:#e8eaeb}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.default{color:rgb(255, 255, 255);background:#172a3b}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.subtle{outline-color:#172a3b}";
|
|
8
11
|
|
|
@@ -26,6 +29,15 @@ const DuetBadge = class {
|
|
|
26
29
|
* Controls the margin of the component.
|
|
27
30
|
*/
|
|
28
31
|
this.margin = "auto";
|
|
32
|
+
this.getVariationLabel = () => {
|
|
33
|
+
if (this.variation === "subtle") {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
const variation = ["default", "success", "danger", "warning"].includes(this.variation)
|
|
37
|
+
? this.variation
|
|
38
|
+
: "default";
|
|
39
|
+
return getLocaleString(DuetStatusLabels[variation]);
|
|
40
|
+
};
|
|
29
41
|
}
|
|
30
42
|
/**
|
|
31
43
|
* Component lifecycle events.
|
|
@@ -39,12 +51,12 @@ const DuetBadge = class {
|
|
|
39
51
|
*/
|
|
40
52
|
render() {
|
|
41
53
|
const backgroundClass = `background-${this.background}`;
|
|
42
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'b14e614dd4023904fc135cd76117c4c80a32cfc0', class: { "duet-m-0": this.margin === "none" } }, h("span", { key: '30f4bceaecb891f532f693953286c38a23c9a6a7', class: {
|
|
43
55
|
"duet-badge": true,
|
|
44
56
|
[this.variation]: true,
|
|
45
57
|
[backgroundClass]: true,
|
|
46
58
|
"duet-theme-turva": this.theme === "turva",
|
|
47
|
-
} }, h("slot", { key: '
|
|
59
|
+
} }, h("duet-visually-hidden", { key: 'e42b91566e1f09c725692fbe706fd068a7e1ac6f' }, this.getVariationLabel()), h("slot", { key: '7290ab4b6702d3f5a3f5444a8eb66f37163956f1' }))));
|
|
48
60
|
}
|
|
49
61
|
get element() { return getElement(this); }
|
|
50
62
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-
|
|
4
|
+
import { h, r as registerInstance, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
|
+
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-BABbKvvc.js';
|
|
7
7
|
import { p as parsePossibleJSON } from './string-utils-C6E9F6QT.js';
|
|
8
8
|
import { g as getColorByName, p as postfixTheme } from './token-utils-BGFYWQ6j.js';
|
|
9
9
|
import './tokens.module-Z0D6Gy9e.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
5
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-DvwKrUS6.js';
|
|
6
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
7
7
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-Db8rvjPI.js';
|
|
8
|
-
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver, g as getLocaleString } from './language-utils-
|
|
8
|
+
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver, g as getLocaleString } from './language-utils-CNMTW_pZ.js';
|
|
9
9
|
import './string-utils-C6E9F6QT.js';
|
|
10
10
|
|
|
11
11
|
var actionArrowRightSmall;
|
|
@@ -71,14 +71,14 @@ const DuetBreadcrumb = class {
|
|
|
71
71
|
*/
|
|
72
72
|
render() {
|
|
73
73
|
var _a;
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '804eec793a21db6f2174bd33b759663f3f2f07ef', role: "listitem" }, h("div", { key: '6f0a2c80da341b1b1b10a6d9ee0c010de21b97a2', class: "container" }, this.icon === "arrow-right-small-icon" && (h("duet-icon", { key: 'df6aacb1f535646f95ccf60189103eec186c993d', class: "duet-breadrumbs-arrow", size: "auto", icon: arrowRightSmallIcon.svg, margin: "none", color: "currentColor" })), h("a", { key: '0f9ffe08c57d1f91005504dd9c1c134c5d0e71d4', class: {
|
|
75
75
|
"duet-breadcrumb": true,
|
|
76
76
|
"duet-theme-turva": this.theme === "turva",
|
|
77
77
|
}, href: this.href ? this.href : undefined, "aria-label": `${!this.href ? `${getLocaleString(this.currentCrumb)} ` : ""}${(_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : this.element.innerHTML}`, role: "link" }, this.icon !== "arrow-right-small-icon" &&
|
|
78
78
|
this.icon && [
|
|
79
|
-
h("duet-icon", { key: '
|
|
80
|
-
this.hasSlottedContent && h("duet-spacer", { key: '
|
|
81
|
-
], h("slot", { key: '
|
|
79
|
+
h("duet-icon", { key: '417b6a4368e7d7913a09dccc677b32373f92938c', size: this.iconSize, name: this.icon, margin: "none", color: "currentColor" }),
|
|
80
|
+
this.hasSlottedContent && h("duet-spacer", { key: '692d70f2a385d4283478e26ad13c4bbf175387a7', size: "x-small", direction: "horizontal" }),
|
|
81
|
+
], h("slot", { key: '6dada45a29faa7791d6f2a9f60993206f314bc38' })))));
|
|
82
82
|
}
|
|
83
83
|
get element() { return getElement(this); }
|
|
84
84
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import { g as getLocaleString } from './language-utils-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
|
+
import { g as getLocaleString } from './language-utils-CNMTW_pZ.js';
|
|
7
7
|
import { g as getColorByName } from './token-utils-BGFYWQ6j.js';
|
|
8
8
|
import './string-utils-C6E9F6QT.js';
|
|
9
9
|
import './tokens.module-Z0D6Gy9e.js';
|
|
@@ -62,11 +62,11 @@ const DuetBreadcrumbs = class {
|
|
|
62
62
|
*/
|
|
63
63
|
render() {
|
|
64
64
|
const color = getColorByName(this.color);
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '7db0fc2e9f3532509bb7d962ee2df0f7fc208e23' }, h("nav", { key: '993ffd093511c3ac5127371939e00ee21c35d74c', "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
66
66
|
"duet-breadcrumbs": true,
|
|
67
67
|
"duet-theme-turva": this.theme === "turva",
|
|
68
68
|
[this.variation]: true,
|
|
69
|
-
} }, h("div", { key: '
|
|
69
|
+
} }, h("div", { key: 'ba30ff0a1a1b9c1b480e4ebf12e656b419e65e6d', class: "container" }, h("div", { key: '35577bbfaa142d6567126c7ed93d6b6ac5e9339e', role: "list", class: "list", style: { color } }, h("slot", { key: '5d755022c1fbbc72a42ccd183b8b80f5ec221691' })), h("div", { key: 'abf72274cd0f5cfd82a95829ee6d8e62ce480798', class: "bottom-border bottom-border--container" })), h("div", { key: '7c0fdac81e597120e606d4546aab7dbd51d1b8db', class: "bottom-border bottom-border--nav" }))));
|
|
70
70
|
}
|
|
71
71
|
get element() { return getElement(this); }
|
|
72
72
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import {
|
|
7
|
-
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
|
+
import { a as DuetStringsExternalDefaults, c as DuetStringsLoadingDefaults } from './common-strings-BWvtXbhA.js';
|
|
7
|
+
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-CNMTW_pZ.js';
|
|
8
8
|
import { g as getColorByName } from './token-utils-BGFYWQ6j.js';
|
|
9
9
|
import './string-utils-C6E9F6QT.js';
|
|
10
10
|
import './tokens.module-Z0D6Gy9e.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
-
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
|
+
import { h as hasSlot, c as checkNamedSlotElement } from './slot-utils-BABbKvvc.js';
|
|
7
7
|
|
|
8
8
|
const duetCalloutCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout blockquote{font-size:2.7vw;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}@media (max-width: 37.037037037rem){.duet-callout blockquote{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-callout blockquote{font-size:1.25rem}}.duet-callout .author{color:rgb(8, 42, 77)}.duet-callout.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-callout.duet-theme-turva .author,.duet-callout.duet-theme-turva blockquote{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-callout.duet-theme-turva .author,:host(.duet-theme-turva2) .duet-callout.duet-theme-turva blockquote{color:#172a3b}";
|
|
9
9
|
|
|
@@ -37,11 +37,11 @@ const DuetCallout = class {
|
|
|
37
37
|
<path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
|
|
38
38
|
</svg>
|
|
39
39
|
`;
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '1bbd077f1e57dc333649758d9fae16d4a8f3dcf4' }, h("div", { key: 'a0edfe6725fce2069235fcacda9041495e8df10b', class: {
|
|
41
41
|
"duet-callout": true,
|
|
42
42
|
"duet-theme-turva": this.theme === "turva",
|
|
43
43
|
"duet-m-0": this.margin === "none",
|
|
44
|
-
} }, h("figure", { key: '
|
|
44
|
+
} }, h("figure", { key: '21522d9a915045b0bfc17d5df3dedff371fec1fa', class: "container" }, h("duet-icon", { key: 'db8af136b296941bb57844fde916ddf7a07a9f25', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), h("blockquote", { key: 'c2df0f9763ad90dbfe1e68736550c36f2abf362a' }, h("slot", { key: '218537d8d6e19814d1e8d8f8735987142a32349a' })), this.hasAuthorSlot && (h("figcaption", { key: '662c0d8092ce4cb1bc0f5bd40982171ea36b984c', class: "author" }, h("span", { key: '2632b56978eb27cd5c2d904958327fd476af08b5' }, "\u2014 "), h("slot", { key: 'a084f8db91ac33851ec2a5ca621752d83fcfd581', name: "author" })))))));
|
|
45
45
|
}
|
|
46
46
|
get element() { return getElement(this); }
|
|
47
47
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
6
|
import { s as sanitizeString } from './string-utils-C6E9F6QT.js';
|
|
7
7
|
import { g as getColorByName } from './token-utils-BGFYWQ6j.js';
|
|
8
8
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-DvwKrUS6.js';
|
|
9
9
|
import { n as newWindowIcon } from './action-new-window-small-EH8_HdAm.js';
|
|
10
|
-
import {
|
|
11
|
-
import { g as getAccessibleLinkLabel } from './a11y-utils-
|
|
12
|
-
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-
|
|
10
|
+
import { a as DuetStringsExternalDefaults, e as DuetStringsDownloadLinkDefaults } from './common-strings-BWvtXbhA.js';
|
|
11
|
+
import { g as getAccessibleLinkLabel } from './a11y-utils-C6cn5C3e.js';
|
|
12
|
+
import { a as getLanguage, g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-CNMTW_pZ.js';
|
|
13
13
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
14
14
|
import './tokens.module-Z0D6Gy9e.js';
|
|
15
|
-
import './slot-utils-
|
|
15
|
+
import './slot-utils-BABbKvvc.js';
|
|
16
16
|
|
|
17
17
|
const duetCaptionCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:flex;flex:0 0 100%;width: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-size:1rem;font-weight:400;line-height:1.5;color:rgb(98, 121, 138);vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}:host(.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(143, 147, 158)}:host(.duet-caption-selected){color:rgb(0, 119, 179)}:host(.duet-caption-selected.duet-theme-turva){color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}:host(.duet-theme-turva2.duet-caption-selected.duet-theme-turva){color:#172a3b}";
|
|
18
18
|
|
|
@@ -59,7 +59,7 @@ const DuetCaption = class {
|
|
|
59
59
|
};
|
|
60
60
|
DuetCaption.style = duetCaptionCss;
|
|
61
61
|
|
|
62
|
-
const duetHeadingCss = "*,*::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;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width: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;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-wrap:balance;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-heading.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\";font-style:italic;font-weight:700;color:rgb(23, 28, 58)}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid rgb(212, 223, 229)}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:rgb(98, 121, 138)}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw;line-height:1.1}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h0.fixed-size{font-size:4.5rem}.duet-heading.h1{font-size:7vw;line-height:1.1}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h1.fixed-size{font-size:3rem}.duet-heading.h2{font-size:5.8vw;line-height:1.1}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h2.fixed-size{font-size:2.25rem}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h3.fixed-size{font-size:1.5rem}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h4.fixed-size{font-size:1.25rem}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h5.fixed-size{font-size:1.25rem}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}:host(.duet-theme-turva2) .duet-heading.duet-theme-turva{color:#172a3b}";
|
|
62
|
+
const duetHeadingCss = "*,*::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;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width: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;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-wrap:balance;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-heading.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\";font-style:italic;font-weight:700;color:rgb(23, 28, 58)}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid rgb(212, 223, 229)}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:rgb(98, 121, 138)}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw;line-height:1.1}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h0.fixed-size{font-size:4.5rem}.duet-heading.h1{font-size:7vw;line-height:1.1}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h1.fixed-size{font-size:3rem}.duet-heading.h2{font-size:5.8vw;line-height:1.1}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h2.fixed-size{font-size:2.25rem}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h3.fixed-size{font-size:1.5rem}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h4.fixed-size{font-size:1.25rem}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h5.fixed-size{font-size:1.25rem}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}:host(.duet-theme-turva2) .duet-heading.duet-theme-turva{font-style:normal !important;color:#172a3b}";
|
|
63
63
|
|
|
64
64
|
const DuetHeading = class {
|
|
65
65
|
constructor(hostRef) {
|
|
@@ -336,10 +336,10 @@ const DuetLink = class {
|
|
|
336
336
|
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
337
337
|
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
338
338
|
const isButton = Tag === "button";
|
|
339
|
-
return (h(Host, { key: '
|
|
339
|
+
return (h(Host, { key: 'e017bc7b1c5288daba5e0b8780b5b4e9c90645c0', class: {
|
|
340
340
|
[`duet-link-${this.variation}`]: true,
|
|
341
341
|
"duet-m-0": this.margin === "none",
|
|
342
|
-
} }, h(Tag, { key: '
|
|
342
|
+
} }, h(Tag, { key: 'eda58fb1424eb72c497e9ca0eceb9850131920ba', href: this.url, class: {
|
|
343
343
|
"duet-link": true,
|
|
344
344
|
"duet-link-is-external": this.external,
|
|
345
345
|
"duet-link-is-download": !!this.download,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
5
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-DvwKrUS6.js';
|
|
6
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
6
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
7
7
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
8
8
|
import { i as isKeyboardClick, s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-Db8rvjPI.js';
|
|
9
|
-
import { a as getElementsFromNamedSlot } from './slot-utils-
|
|
9
|
+
import { a as getElementsFromNamedSlot } from './slot-utils-BABbKvvc.js';
|
|
10
10
|
import { s as sanitizeString } from './string-utils-C6E9F6QT.js';
|
|
11
11
|
import { g as getColorByName } from './token-utils-BGFYWQ6j.js';
|
|
12
12
|
import './tokens.module-Z0D6Gy9e.js';
|
|
@@ -67,6 +67,12 @@ const DuetCard = class {
|
|
|
67
67
|
* in order to avoid nested headings.
|
|
68
68
|
*/
|
|
69
69
|
this.headingLevel = "h2";
|
|
70
|
+
/**
|
|
71
|
+
* Custom color to be used for the icon, as a design token entered in camelCase
|
|
72
|
+
* or kebab-case. Example: "color-primary". This property can also be set to
|
|
73
|
+
* "currentColor".
|
|
74
|
+
*/
|
|
75
|
+
this.iconColor = "currentColor";
|
|
70
76
|
/**
|
|
71
77
|
* Custom color to be used for the card background, as a design token entered in
|
|
72
78
|
* camelCase or kebab-case. Example: "primary".
|
|
@@ -129,7 +135,7 @@ const DuetCard = class {
|
|
|
129
135
|
const headingStyles = {
|
|
130
136
|
backgroundColor: getColorByName(this.headingBackground),
|
|
131
137
|
};
|
|
132
|
-
const headingContent = (h(Fragment, null, h("div", { class: "duet-card-heading-grid" }, this.icon && (h(Fragment, null, h("duet-icon", { class: "duet-card-icon", name: this.icon, size: "medium", margin: "none", color:
|
|
138
|
+
const headingContent = (h(Fragment, null, h("div", { class: "duet-card-heading-grid" }, this.icon && (h(Fragment, null, h("duet-icon", { class: "duet-card-icon", name: this.icon, size: "medium", margin: "none", color: this.iconColor }), h("duet-spacer", { direction: "horizontal", size: "small" }))), h("div", { class: "duet-card-heading-text" }, this.heading ? this.heading : h("slot", { name: "heading" })), this.secondaryHeading && (h(Fragment, null, h("duet-spacer", { direction: "horizontal", size: "small" }), h("div", { class: "duet-card-secondary-heading duet-card-secondary-heading--inline" }, this.secondaryHeading))), this.collapsible && (h(Fragment, null, h("duet-spacer", { direction: "horizontal", size: "small" }), h("duet-icon", { class: "duet-card-caret", icon: arrowUpIcon.svg, size: "small", margin: "none", color: "currentColor" })))), this.secondaryHeading && (h("div", { class: "duet-card-secondary-heading duet-card-secondary-heading--new-line" }, this.secondaryHeading)), h("slot", { name: "below-heading" })));
|
|
133
139
|
if (this.collapsible) {
|
|
134
140
|
const ariaLabel = (_a = getElementsFromNamedSlot(this.element, "heading")) === null || _a === void 0 ? void 0 : _a.map(e => e.textContent).join(" ");
|
|
135
141
|
return (h(HeadingTag, { style: headingStyles, class: "duet-card-heading duet-card-heading--collapsible", onClick: this.togglePanel, onKeyDown: this.handleKeyDown }, h("button", { type: "button", "aria-controls": this.cardId, "aria-expanded": this.open ? "true" : "false", "aria-label": ariaLabel }, headingContent)));
|
|
@@ -157,10 +163,10 @@ const DuetCard = class {
|
|
|
157
163
|
const styles = {
|
|
158
164
|
backgroundColor: getColorByName(this.background),
|
|
159
165
|
};
|
|
160
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: 'b229fd28e5e5058ba357db373f25c9de68dc2694', class: {
|
|
161
167
|
"duet-m-0": this.margin === "none",
|
|
162
168
|
"duet-card-info": this.variation === "info",
|
|
163
|
-
} }, h(TagName, { key: '
|
|
169
|
+
} }, h(TagName, { key: 'b80082cae6d0e4d564bc1eca68f57749b6975e0e', href: this.url, style: styles, ref: card => (this.nativeCard = card), "aria-label": this.accessibleLabel, class: {
|
|
164
170
|
"duet-card": true,
|
|
165
171
|
[this.padding]: true,
|
|
166
172
|
[this.variation]: true,
|
|
@@ -170,7 +176,7 @@ const DuetCard = class {
|
|
|
170
176
|
"duet-card-has-bg": this.background !== "gray-lightest",
|
|
171
177
|
"duet-card-has-icon": !!this.icon,
|
|
172
178
|
"duet-card-collapsed": this.collapsible && !this.open,
|
|
173
|
-
} }, this.image && (h("div", { key: '
|
|
179
|
+
} }, this.image && (h("div", { key: 'c4c9c8772d432e52fb78f2bf0a457d4a026d6b3a', class: "duet-card-image-mask" }, h("img", { key: '828ed65b312a0e50257adfa39f25307b13e7d51a', src: this.image, class: "duet-card-image", loading: "lazy", alt: "", "aria-hidden": "true" }))), (this.heading || this.hasHeadingSlot) && this.renderHeading(), h("div", { key: '081d59770bc88f9b7bd2a9b25d0bf905ea0d141b', class: "duet-card-content", id: this.cardId }, h("slot", { key: 'ad92895c2eea7a7697bd4924165656e72ee9b1da' }), this.hasFooter && (h("div", { key: '9a920473b4242e87a36032511f982b3e890df463', class: "duet-card-footer" }, h("slot", { key: '41350a63089d579579bca4454a1fcbc27a60b445', name: "footer" })))))));
|
|
174
180
|
}
|
|
175
181
|
get element() { return getElement(this); }
|
|
176
182
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
7
|
|
|
8
8
|
const duetCheckboxCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{margin-right:8px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host(:last-child:not(:only-child)){margin-bottom:0 !important}:host(.duet-m-0){margin:0 !important}.duet-label{position:relative;z-index:100;display:inline;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:400;line-height:1.5;color:rgb(8, 42, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva .duet-label{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-label span{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container{position:relative;width:100%;height:100%}.duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox+label::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:\"\";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:4px}.duet-theme-turva .duet-checkbox+label::before{border-color:rgb(23, 28, 58)}.duet-checkbox:checked+label::before{background:rgb(0, 119, 179);border:1px solid rgb(0, 119, 179)}.duet-theme-turva .duet-checkbox:checked+label::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox:focus+label::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-checkbox:focus+label::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-checkbox[aria-invalid=true]+label::before{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-checkbox+label{position:static}.duet-checkbox:checked+label::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:\"\";background:transparent url(\"data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E\") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled]{cursor:default}.duet-checkbox[disabled]+label{color:rgb(98, 121, 138)}.duet-theme-turva .duet-checkbox[disabled]+label{color:rgb(143, 147, 158)}.duet-checkbox[disabled]+label::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-checkbox[disabled]+label::before{border-color:rgb(199, 202, 207)}.duet-checkbox[disabled]:checked+label::before{background:rgb(127, 150, 165);border:1px solid rgb(127, 150, 165)}.duet-theme-turva .duet-checkbox[disabled]:checked+label::before{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}.duet-checkbox-error{margin-left:31px;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:400;line-height:1.25;color:rgb(214, 28, 82);border-radius:4px}.duet-theme-turva .duet-checkbox-error{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(214, 28, 82)}.duet-label-hidden .duet-label span,.duet-label-hidden .duet-checkbox-error span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-label{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox+label::before{border-color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-checkbox:checked+label::before{background:#172a3b;border-color:#172a3b}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
6
|
|
|
7
7
|
const duetCheckmarkCss = ".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(143, 147, 158)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(181, 198, 208) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(199, 202, 207) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(181, 198, 208) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(199, 202, 207) !important}.duet-checkmark{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}:host(.duet-theme-turva2.duet-theme-turva) .checked .duet-checkmark-container{background:#172a3b;border-color:#172a3b !important}";
|
|
8
8
|
|
|
@@ -37,11 +37,11 @@ const DuetCheckmark = class {
|
|
|
37
37
|
inheritGlobalTheme(this);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'eb316eb0a7cd696a7087ee179bcbb77ac2df7fc2', class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: '53c6629329c800e4b76f57149010e3ea1fbb5ce9', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, h("div", { key: '4c1ffda9ef4f247a850c22fa61827ee8b6063958', class: {
|
|
41
41
|
"duet-checkmark-container": true,
|
|
42
42
|
center: this.center,
|
|
43
43
|
"duet-checkmark-radio": this.type === "radio",
|
|
44
|
-
} }, this.checked && h("div", { key: '
|
|
44
|
+
} }, this.checked && h("div", { key: 'c5761342a659e414b3c7e6f3c14d79452665dcf8', class: "duet-checkmark" })))));
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
DuetCheckmark.style = duetCheckmarkCss;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
5
|
-
import { i as inheritGlobalTheme } from './themeable-component-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-BPFqbaxm.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './themeable-component-Csv1RXxf.js';
|
|
6
6
|
import { c as createID } from './create-id-Cfr_DJqU.js';
|
|
7
7
|
import { s as subscribeTabbingChange, u as unsubscribeTabbingChange, h as enableUserIsTabbing } from './keyboard-utils-Db8rvjPI.js';
|
|
8
|
-
import { g as getLocaleString } from './language-utils-
|
|
8
|
+
import { g as getLocaleString } from './language-utils-CNMTW_pZ.js';
|
|
9
9
|
import './string-utils-C6E9F6QT.js';
|
|
10
10
|
|
|
11
11
|
const duetChipCss = "*,*::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:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(199, 202, 207)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(98, 121, 138) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;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:1rem;color:rgb(8, 42, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:8px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:12px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:12px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(228, 241, 247);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(198, 225, 238)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(222, 224, 228)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 18px}.duet-chip-container.large.duet-chip-has-icon .duet-chip-icon-container{width:30px;padding-right:10px}.duet-chip-container.large .duet-chip-popup-disclosure{padding-right:6.5px;padding-left:14.5px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva{color:#172a3b !important;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva:hover{border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked{background:#fbe1d1;border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked:hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked:hover{background:#d8ae96}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-popup-open{background:#fbe1d1;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input:hover{border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-selected{border-color:#e61740}";
|