@duetds/components 10.0.0-alpha.24 → 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 +348 -195
- package/hydrate/index.mjs +348 -195
- package/lib/cjs/{a11y-utils-CZnG1VYN.js → a11y-utils-BeS3x4Hg.js} +1 -1
- package/lib/cjs/{app-globals-B36JTAfq.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 +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 +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 +6 -5
- package/lib/cjs/duet-hero.cjs.entry.js +4 -4
- package/lib/cjs/duet-icon.cjs.entry.js +6 -6
- 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 +3 -3
- package/lib/cjs/duet-modal.cjs.entry.js +37 -20
- 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 +14 -9
- 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 +6 -6
- 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 +3 -3
- 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 +6 -6
- 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 +7 -7
- 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 +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 +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-C58jiu8o.js → errorcodes.utils-CwTzu57-.js} +1 -1
- package/lib/cjs/{focus-utils-tY80LFI3.js → focus-utils-Dh4b8BiX.js} +1 -1
- package/lib/cjs/{index-C1crwqC7.js → index-D3O_5Hr7.js} +5 -1
- package/lib/cjs/{label-ClSVuKQ_.js → label-8AXhdqJy.js} +1 -1
- package/lib/cjs/{language-utils-BtiS-RGS.js → language-utils-CMK9eR4Q.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-DZVD8m30.js → slot-utils-BIdgEejh.js} +1 -1
- package/lib/cjs/{themeable-component-6YQpZOSC.js → themeable-component-B3llZmjN.js} +1 -1
- package/lib/cjs/{token-utils-CHLLcMzU.js → token-utils-DsVwGXGM.js} +75 -7
- package/lib/collection/collection-manifest.json +1 -0
- 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 +14 -5
- 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.js +3 -2
- 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-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-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.js +11 -6
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- 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-b8c10f92.entry.js → p-04ce95ba.entry.js} +1 -1
- package/lib/duet/{p-6104db31.entry.js → p-05766552.entry.js} +1 -1
- package/lib/duet/{p-5816e147.entry.js → p-065f7e81.entry.js} +1 -1
- package/lib/duet/{p-f234f837.entry.js → p-06ed84cb.entry.js} +1 -1
- package/lib/duet/{p-bae186c7.entry.js → p-08ed76c2.entry.js} +1 -1
- package/lib/duet/{p-64731e35.entry.js → p-0a448068.entry.js} +1 -1
- package/lib/duet/{p-b4e2e77d.entry.js → p-0dc4fe1d.entry.js} +1 -1
- package/lib/duet/{p-688ea42b.entry.js → p-0ebeee02.entry.js} +1 -1
- package/lib/duet/{p-0e288f30.entry.js → p-106d3089.entry.js} +1 -1
- package/lib/duet/p-15593e3e.entry.js +4 -0
- package/lib/duet/{p-bb468aae.entry.js → p-2057cc55.entry.js} +1 -1
- package/lib/duet/{p-662331c7.entry.js → p-2792ec0b.entry.js} +1 -1
- package/lib/duet/p-28a998f9.entry.js +4 -0
- package/lib/duet/{p-416cbbf6.entry.js → p-2d3d11db.entry.js} +1 -1
- package/lib/duet/{p-2bc683b8.entry.js → p-2e34dd28.entry.js} +1 -1
- package/lib/duet/{p-74d7480d.entry.js → p-30ade10d.entry.js} +1 -1
- package/lib/duet/{p-58bd2e53.entry.js → p-35ac072d.entry.js} +1 -1
- package/lib/duet/p-37222c50.entry.js +4 -0
- package/lib/duet/p-39169420.entry.js +4 -0
- package/lib/duet/{p-7dceae70.entry.js → p-3dd4fbf1.entry.js} +1 -1
- package/lib/duet/{p-a2a94d9a.entry.js → p-402c8cd9.entry.js} +1 -1
- package/lib/duet/{p-908b3a74.entry.js → p-4628e002.entry.js} +1 -1
- package/lib/duet/{p-c28dc621.entry.js → p-466ef37c.entry.js} +1 -1
- package/lib/duet/{p-32ac2068.entry.js → p-4aece4f9.entry.js} +1 -1
- package/lib/duet/{p-3897c6bf.entry.js → p-4ee576a2.entry.js} +1 -1
- package/lib/duet/p-500d799b.entry.js +4 -0
- package/lib/duet/{p-1c2d8dfc.entry.js → p-5564a39c.entry.js} +1 -1
- package/lib/duet/{p-a6173e93.entry.js → p-5848a34c.entry.js} +1 -1
- package/lib/duet/{p-5f18c78a.entry.js → p-5ab64521.entry.js} +1 -1
- package/lib/duet/{p-42539282.entry.js → p-60be3836.entry.js} +1 -1
- package/lib/duet/{p-7c19dac5.entry.js → p-625347d3.entry.js} +1 -1
- package/lib/duet/{p-db110424.entry.js → p-64ebf5e9.entry.js} +1 -1
- package/lib/duet/{p-3aeaed85.entry.js → p-64f8d654.entry.js} +1 -1
- package/lib/duet/{p-3baa3eaa.entry.js → p-652eefa8.entry.js} +1 -1
- package/lib/duet/{p-3cee5337.entry.js → p-65a8dd89.entry.js} +1 -1
- package/lib/duet/{p-2ba227ae.entry.js → p-66c7af01.entry.js} +1 -1
- package/lib/duet/{p-be397530.entry.js → p-67290546.entry.js} +1 -1
- package/lib/duet/{p-abec4876.entry.js → p-693fda6b.entry.js} +1 -1
- package/lib/duet/{p-545e9dd3.entry.js → p-6a6e4d82.entry.js} +1 -1
- package/lib/duet/{p-5018b536.entry.js → p-6aa6ce7d.entry.js} +1 -1
- package/lib/duet/{p-ca626317.entry.js → p-71603edd.entry.js} +1 -1
- package/lib/duet/{p-156d2362.entry.js → p-71a6b137.entry.js} +1 -1
- package/lib/duet/{p-3d8dc9a3.entry.js → p-72c2ba6b.entry.js} +1 -1
- package/lib/duet/p-73290da8.entry.js +4 -0
- package/lib/duet/{p-f6c347b4.entry.js → p-73ce0ef8.entry.js} +1 -1
- package/lib/duet/p-767afcf4.entry.js +4 -0
- package/lib/duet/{p-f4a44d9d.entry.js → p-774cf9f5.entry.js} +1 -1
- package/lib/duet/{p-ff564afe.entry.js → p-7a9f3475.entry.js} +1 -1
- package/lib/duet/{p-6cafd585.entry.js → p-7c814d9a.entry.js} +1 -1
- package/lib/duet/{p-038b8ea1.entry.js → p-7f1fb1a9.entry.js} +1 -1
- package/lib/duet/{p-88422e6a.entry.js → p-83f6beb5.entry.js} +1 -1
- package/lib/duet/{p-f4be7b00.entry.js → p-8596c993.entry.js} +1 -1
- package/lib/duet/{p-815c955b.entry.js → p-867aab83.entry.js} +1 -1
- package/lib/duet/p-86b74914.entry.js +4 -0
- package/lib/duet/{p-f4a0f95a.entry.js → p-8ed6f7c7.entry.js} +1 -1
- package/lib/duet/{p-bf586daf.entry.js → p-94e33308.entry.js} +1 -1
- package/lib/duet/p-960f95b4.entry.js +4 -0
- package/lib/duet/{p-66861503.entry.js → p-9973c0dc.entry.js} +1 -1
- package/lib/duet/{p-8a852600.entry.js → p-9a1f29ac.entry.js} +1 -1
- package/lib/duet/{p-6f635395.entry.js → p-9fade6a0.entry.js} +1 -1
- package/lib/duet/{p-b0484b68.entry.js → p-9fff2189.entry.js} +1 -1
- package/lib/duet/{p-CsVaeVlH.js → p-B_VBeM3r.js} +1 -1
- package/lib/duet/{p-DglOA-oE.js → p-BaR6ufr4.js} +1 -1
- package/lib/duet/p-BdUQgQFn.js +4 -0
- package/lib/duet/{p-uJz71_4x.js → p-DdwVwK5C.js} +1 -1
- package/lib/duet/p-Dr2j33H2.js +4 -0
- package/lib/duet/p-DyXNfxdT.js +4 -0
- 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-b463cb8b.entry.js → p-a09c6e42.entry.js} +1 -1
- package/lib/duet/{p-41ef0467.entry.js → p-a3a2e89e.entry.js} +1 -1
- package/lib/duet/{p-da1914c5.entry.js → p-a440c5b3.entry.js} +1 -1
- package/lib/duet/{p-034efb8b.entry.js → p-a4a768bf.entry.js} +1 -1
- package/lib/duet/{p-1d5bdc66.entry.js → p-a72b8cf4.entry.js} +1 -1
- package/lib/duet/p-ab0cd4e5.entry.js +4 -0
- package/lib/duet/{p-9ef5fe85.entry.js → p-aefcd222.entry.js} +1 -1
- package/lib/duet/p-b84ac47b.entry.js +4 -0
- package/lib/duet/{p-218b0dc3.entry.js → p-ba0fcce1.entry.js} +1 -1
- package/lib/duet/p-ba2b47d3.entry.js +4 -0
- package/lib/duet/{p-90efef7f.entry.js → p-baeb1090.entry.js} +1 -1
- package/lib/duet/{p-db50a06b.entry.js → p-bcbe4d11.entry.js} +1 -1
- package/lib/duet/{p-caf145ea.entry.js → p-bf5fae27.entry.js} +1 -1
- package/lib/duet/p-c6479694.entry.js +4 -0
- package/lib/duet/{p-72ad01cb.entry.js → p-c8308bec.entry.js} +1 -1
- package/lib/duet/p-d0f3a2e6.entry.js +4 -0
- package/lib/duet/{p-e99bccef.entry.js → p-d28a8bc4.entry.js} +1 -1
- package/lib/duet/p-d2ceafd6.entry.js +4 -0
- package/lib/duet/{p-7bc24df3.entry.js → p-d96af9c9.entry.js} +1 -1
- package/lib/duet/{p-9b757818.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-08f98123.entry.js → p-effefdec.entry.js} +1 -1
- package/lib/duet/{p-4427fd7d.entry.js → p-fb3b8e0f.entry.js} +1 -1
- package/lib/esm/{a11y-utils-ehCV15cK.js → a11y-utils-CXqm1pj1.js} +1 -1
- package/lib/esm/{app-globals-BWEEyeBa.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 +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 +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 +7 -6
- package/lib/esm/duet-hero.entry.js +4 -4
- package/lib/esm/duet-icon.entry.js +7 -7
- 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 +3 -3
- package/lib/esm/duet-modal.entry.js +37 -20
- 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 +14 -9
- 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 +7 -7
- 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 +3 -3
- 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 +6 -6
- 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 +7 -7
- 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 +4 -4
- 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-DM0J2eP4.js → errorcodes.utils-Bre55Njd.js} +1 -1
- package/lib/esm/{focus-utils-BSQKWOQJ.js → focus-utils-vvgYykmM.js} +1 -1
- package/lib/esm/{index-CsVaeVlH.js → index-B_VBeM3r.js} +5 -1
- package/lib/esm/{label-J3UGBylH.js → label-l-Eza5H3.js} +1 -1
- package/lib/esm/{language-utils-B79DRNQM.js → language-utils-B7PXWqpg.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-DYWEum3Y.js → slot-utils-aDCRCdc4.js} +1 -1
- package/lib/esm/{themeable-component-CcmXnsoX.js → themeable-component-DPqozkF4.js} +1 -1
- package/lib/esm/{token-utils-orOLyKQw.js → token-utils-BGFYWQ6j.js} +76 -9
- package/lib/esm/{tokens.module-D5_4M8f7.js → tokens.module-Z0D6Gy9e.js} +1 -1
- 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 +111 -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-0b358066.entry.js +0 -4
- package/lib/duet/p-11a4fb44.entry.js +0 -4
- package/lib/duet/p-24d04bd7.entry.js +0 -4
- package/lib/duet/p-3d904355.entry.js +0 -4
- package/lib/duet/p-3e42346e.entry.js +0 -4
- package/lib/duet/p-5c2e03bf.entry.js +0 -4
- package/lib/duet/p-70757ffa.entry.js +0 -4
- package/lib/duet/p-86669a06.entry.js +0 -4
- package/lib/duet/p-933da99a.entry.js +0 -4
- package/lib/duet/p-C4JF-vDv.js +0 -4
- package/lib/duet/p-DpD8uhf3.js +0 -4
- package/lib/duet/p-DyjhCDQL.js +0 -4
- package/lib/duet/p-R41sfCqP.js +0 -4
- package/lib/duet/p-SyNakUqS.js +0 -4
- package/lib/duet/p-aad8dac7.entry.js +0 -4
- package/lib/duet/p-abda9682.entry.js +0 -4
- package/lib/duet/p-d4a03e18.entry.js +0 -4
- package/lib/duet/p-d8b7a8da.entry.js +0 -4
- package/lib/duet/p-ee3ca3a8.entry.js +0 -4
- package/lib/duet/p-ef3083e7.entry.js +0 -4
- package/lib/duet/p-f237085e.entry.js +0 -4
- package/lib/duet/p-wJIv584C.js +0 -4
- package/lib/duet/p-ymqr0QD0.js +0 -4
|
@@ -456,14 +456,14 @@
|
|
|
456
456
|
.duet-button.plain.duet-p-0 .duet-button-contents {
|
|
457
457
|
height: auto;
|
|
458
458
|
}
|
|
459
|
-
.duet-button.plain[disabled] {
|
|
459
|
+
.duet-button.plain[disabled], .duet-button.plain[disabled]:hover {
|
|
460
460
|
color: rgb(98, 121, 138) !important;
|
|
461
461
|
cursor: not-allowed;
|
|
462
462
|
background: transparent !important;
|
|
463
463
|
border-color: transparent !important;
|
|
464
464
|
}
|
|
465
|
-
.duet-theme-turva .duet-button.plain[disabled] {
|
|
466
|
-
color:
|
|
465
|
+
.duet-theme-turva .duet-button.plain[disabled], .duet-theme-turva .duet-button.plain[disabled]:hover {
|
|
466
|
+
color: rgb(113, 118, 132) !important;
|
|
467
467
|
cursor: not-allowed;
|
|
468
468
|
background: transparent !important;
|
|
469
469
|
border-color: rgb(222, 224, 228) !important;
|
|
@@ -665,9 +665,11 @@
|
|
|
665
665
|
color: rgb(255, 255, 255) !important;
|
|
666
666
|
}
|
|
667
667
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain:hover {
|
|
668
|
-
color:
|
|
668
|
+
color: #8c001e !important;
|
|
669
669
|
}
|
|
670
|
-
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled] {
|
|
670
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled], :host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled]:hover {
|
|
671
|
+
color: #5f7a8f !important;
|
|
672
|
+
background: transparent !important;
|
|
671
673
|
border-color: #fbe1d1 !important;
|
|
672
674
|
}
|
|
673
675
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square {
|
|
@@ -681,6 +683,13 @@
|
|
|
681
683
|
border-color: #e61740;
|
|
682
684
|
outline-color: #e61740;
|
|
683
685
|
}
|
|
686
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-button[disabled], :host(.duet-theme-turva2) .duet-theme-turva .duet-button[disabled]:hover, :host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button-negative [disabled], :host(.duet-theme-turva2) .duet-theme-turva .duet-button.duet-button-negative [disabled]:hover {
|
|
687
|
+
color: #7891a4 !important;
|
|
688
|
+
cursor: not-allowed;
|
|
689
|
+
background: #d4dde2 !important;
|
|
690
|
+
border-color: #d4dde2 !important;
|
|
691
|
+
outline-color: #d4dde2 !important;
|
|
692
|
+
}
|
|
684
693
|
:host(.duet-theme-turva2) .duet-theme-turva .duet-button-is-loading.default {
|
|
685
694
|
color: #e61740;
|
|
686
695
|
}
|
|
@@ -257,12 +257,12 @@ export class DuetButton {
|
|
|
257
257
|
// enforce consistency for external links
|
|
258
258
|
const icon = isExternalLink ? "action-new-window" : this.icon;
|
|
259
259
|
const iconRight = isExternalLink ? true : this.iconRight;
|
|
260
|
-
const commonChildren = (h("span", { key: '
|
|
260
|
+
const commonChildren = (h("span", { key: '4b6618222c037ec329c118f7ad247b9fd514e878', class: { "duet-button-contents": true, "icon-right": iconRight }, style: { color: getColorByName(this.color, this.theme) } }, icon && (h("span", { key: '67492c9b50231879ba232f7c6bcdadcb2d219875', "aria-hidden": "true", class: {
|
|
261
261
|
"duet-button-icon": true,
|
|
262
262
|
left: !iconRight,
|
|
263
263
|
right: iconRight,
|
|
264
264
|
[this.getButtonIconSize()]: true,
|
|
265
|
-
} }, h("duet-icon", { key: '
|
|
265
|
+
} }, h("duet-icon", { key: 'fce0630d78df187c2a7f3946ff3d262c43e5ce95', size: "auto", margin: "none", name: icon, color: "currentColor" }))), h("span", { key: '34d608211bac6921c4aec51f71a9b33e2ac2b7b0', class: "duet-button-contents-slot" }, h("slot", { key: 'b2478d851993c148be6a83a76f9f725469bc9944' }))));
|
|
266
266
|
const size = this.size == "medium" || this.size == "small" || this.size == "x-small" ? this.size : "medium";
|
|
267
267
|
const commonProps = {
|
|
268
268
|
onFocus: this.onFocus,
|
|
@@ -297,7 +297,7 @@ export class DuetButton {
|
|
|
297
297
|
"aria-details": this.accessibleDetails,
|
|
298
298
|
"aria-description": this.accessibleDescription,
|
|
299
299
|
};
|
|
300
|
-
return (h(Host, { key: '
|
|
300
|
+
return (h(Host, { key: 'c70e2d9cbe884c7b6cc3012721f01ce6d54b4555', class: {
|
|
301
301
|
"duet-m-0": this.margin === "none",
|
|
302
302
|
"duet-small": this.size === "small",
|
|
303
303
|
"duet-x-small": this.size === "x-small",
|
|
@@ -305,13 +305,13 @@ export class DuetButton {
|
|
|
305
305
|
"duet-expand": this.expand,
|
|
306
306
|
[this.variation]: true,
|
|
307
307
|
"input-button": (_b = this.variation) === null || _b === void 0 ? void 0 : _b.startsWith("input-button"),
|
|
308
|
-
} }, h("span", { key: '
|
|
308
|
+
} }, h("span", { key: 'c8be7792d2ae572befbfbe921a3ec453c073637d', onClick: this.handleClick, class: {
|
|
309
309
|
"duet-button-container": true,
|
|
310
310
|
"duet-button-is-loading": this.loading,
|
|
311
311
|
"duet-theme-turva": this.theme === "turva",
|
|
312
312
|
"duet-button-negative": this.negative || this.variation === "negative",
|
|
313
313
|
[this.variation]: true,
|
|
314
|
-
} }, this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }), commonChildren, this.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren, this.loading && h("duet-visually-hidden", null, " ", this.accessibleLabelLoading, " "))), this.loading && h("duet-spinner", { key: '
|
|
314
|
+
} }, this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }), commonChildren, this.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren, this.loading && h("duet-visually-hidden", null, " ", this.accessibleLabelLoading, " "))), this.loading && h("duet-spinner", { key: 'da956cda627d2afc5084ee69629b54ffabcb672b', color: "currentColor" })), h("slot", { key: '0ead01a475d6242c0049a259f9b9c725830d4b80', name: "proxybutton" })));
|
|
315
315
|
}
|
|
316
316
|
static get is() { return "duet-button"; }
|
|
317
317
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,11 +37,11 @@ export class DuetCallout {
|
|
|
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: 'c491469b698a73c9a411cf3f660770be81879bd7' }, h("div", { key: '4c7e1af2f3c229e617d04c0aaf1355bce04a2d6d', 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: 'eb03690c450a0d767e18bffdbce24d83e3334e65', class: "container" }, h("duet-icon", { key: '1695f3f5c59f29b3497a9df3269e791bc19095a6', 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: '6297aefa621ef90e3cb100bcfd07c798cf9b378a' }, h("slot", { key: '14186875763fbf1989d9de9cb90706be15de8508' })), this.hasAuthorSlot && (h("figcaption", { key: 'c17e4fe83fb3c067c4c91369ee6d80a2a6abf3a8', class: "author" }, h("span", { key: 'fac4c2303e1ff78e28fd1538ab43d1b19e84610f' }, "\u2014 "), h("slot", { key: '648acac653c20369d7d52a5537c43175cb4dbd5d', name: "author" })))))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "duet-callout"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,11 +33,11 @@ export class DuetCheckmark {
|
|
|
33
33
|
inheritGlobalTheme(this);
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '9a2512992413ec797c17d55d2a41908cda0e6307', class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: 'f95a151961586c89597dd2d31436deecc0cabf4d', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, h("div", { key: '42f1b50012a17910a3c1d91bac31bfc370c73abf', class: {
|
|
37
37
|
"duet-checkmark-container": true,
|
|
38
38
|
center: this.center,
|
|
39
39
|
"duet-checkmark-radio": this.type === "radio",
|
|
40
|
-
} }, this.checked && h("div", { key: '
|
|
40
|
+
} }, this.checked && h("div", { key: 'ed62491f54edf398da1c22ae672683107b6aa8bc', class: "duet-checkmark" })))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "duet-checkmark"; }
|
|
43
43
|
static get originalStyleUrls() {
|
|
@@ -174,14 +174,14 @@ export class DuetChoiceGroup {
|
|
|
174
174
|
* Always the last one in the class.
|
|
175
175
|
*/
|
|
176
176
|
render() {
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'd339b389eb4a7e9867dc0646ad760bce3e835714', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, onDuetChoiceRemove: this.onChoiceRemove, class: {
|
|
178
178
|
horizontal: this.direction === "horizontal",
|
|
179
179
|
"duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
|
|
180
180
|
"duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
|
|
181
181
|
"duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
|
|
182
182
|
"duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
|
|
183
183
|
"duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
|
|
184
|
-
} }, h("duet-fieldset", { key: '
|
|
184
|
+
} }, h("duet-fieldset", { key: '00a0c17d4dda00d8482933db51e713995820d82d', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: '3d4ef32226b7f822175c071479f2e3339fbfdf6b', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '89e8ef0c51e053463d12ed01ba61b814b28623ec', name: "tooltip" }), h("div", { key: 'a86be50bed561647750f76764f9998567360318d', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '629c8b4458323f78742eedebe2807010079ccec0' })))));
|
|
185
185
|
}
|
|
186
186
|
static get is() { return "duet-choice-group"; }
|
|
187
187
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,10 +47,10 @@ export class DuetContactCard {
|
|
|
47
47
|
render() {
|
|
48
48
|
const isTurva = this.theme === "turva";
|
|
49
49
|
const theme = isTurva ? "turva" : "default";
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'a08fac4daef7586a885d4556d27260feb027d4fb', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: 'd70cc29e06be46210e3150661f16bcf19fab27b1', class: {
|
|
51
51
|
"duet-contact-card": true,
|
|
52
52
|
"duet-theme-turva": this.theme === "turva",
|
|
53
|
-
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '
|
|
53
|
+
}, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '4cde139368ebb252e83638d0634671f2167b14a0' }, this.name && (h("duet-heading", { key: 'c91fe7f5ef066de893cfa2fb4018e9b17e5e66af', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '9ef8bdab5f11c125115cfa147428327131e6086a', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'd07bbb21d8963247655a3b172e26c9f1becc2fd2', class: "email" }, h("duet-icon", { key: 'd25b13911b29302d0eabc8f715e13ff59b473c7f', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '2765a6cbc0fb671c3cb8a37d7ac2fe578f369cfe', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: 'fcbed4d2a82ed0ee1e90665f5e42f10bfdcaf344', class: "phone" }, h("duet-icon", { key: '17233a8a4863c68255e207c23de3667437bd1177', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '0a49811728ddfd13096701fe9d33c54722554107', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: 'eb199cf8f4f83cb7ebebbfb2e791c78b6424091e', class: "call-to-action" }, h("duet-button", { key: 'c8e0d2d72d5b15a74b0d7fd79a595c6ffddf6f7e', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '5e2f0915b883c85ad3bca3f54b62347af8250749' }), h("slot", { key: '388383ea2ca2a756a28d13bdbf521cd85094526a' }))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "duet-contact-card"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,20 +71,20 @@ export class DuetFieldset {
|
|
|
71
71
|
* Always the last one in the class.
|
|
72
72
|
*/
|
|
73
73
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'c761c38f09035452c65fd2a660bc83eb9f0325a7', class: { "duet-m-0": this.margin === "none" } }, h("fieldset", { key: 'c62cd3a0354883251b153612cd9a685059205638', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
|
|
75
75
|
// NVDA and VoiceOver do not yet support aria-errormessage
|
|
76
76
|
// once they do, we can remove errors from the aria-describedby
|
|
77
77
|
// aria-errormessage={this.error ? this.errorId : null}
|
|
78
78
|
class: {
|
|
79
79
|
"duet-fieldset": true,
|
|
80
80
|
"duet-theme-turva": this.theme === "turva",
|
|
81
|
-
} }, h("legend", { key: '
|
|
81
|
+
} }, h("legend", { key: 'a67feca7ba42a9de83e3eacfa41bb9c53de0185d', id: this.labelId }, h(this.labelHeadingLevel, { key: '98598e545d1ac5d30cead1818c2831285e21fd59' }, this.label), this.caption && h("span", { key: '44d72ba880fb2ba4b2e9826389ca0b23a4c09446' }, this.caption)), h("div", { key: 'd6680f823096d1510778845d46bcf10f3070064c', class: {
|
|
82
82
|
"duet-legend-wrapper": true,
|
|
83
83
|
"duet-legend-has-caption": !!this.caption,
|
|
84
84
|
"duet-legend-has-tooltip": this.hasTooltip,
|
|
85
85
|
"duet-legend-hidden": this.labelHidden,
|
|
86
86
|
"duet-legend-compact": this.compactLabel,
|
|
87
|
-
} }, h("div", { key: '
|
|
87
|
+
} }, h("div", { key: '126ab7bb76240a4da7d9b647955a8a804875e375', class: "duet-fieldset-label" }, h("span", { key: 'ff60e083f1776471163c59d196d5a98e32279456', "aria-hidden": "true" }, this.label), h("slot", { key: '06eb238c6e9921dca17ca43ae38a1de2351af119', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { key: '5a7a0bcb4167f6ffbf89880060e05f82e032012b', class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { key: '7781c0787fe4ff082d80e9bc2e7ea2280da13d7e', theme: this.theme, margin: "none" }, this.caption)))), h("slot", { key: 'd6227947f219d39ca25e5a3ac582e4459e58d504' }), h("span", { key: 'ecf7f364237951e9bceacf067e854118b5676009', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'e7a456498d709f36eba051c5ce891f5b9b39c5fb', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "duet-fieldset"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class DuetGridItem {
|
|
|
53
53
|
* Always the last one in the class.
|
|
54
54
|
*/
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '116018aebb0122341885d5c189c49e80651a9c8d', style: {
|
|
57
57
|
"min-width": this.minWidth,
|
|
58
58
|
"max-width": this.maxWidth,
|
|
59
59
|
}, class: {
|
|
@@ -70,7 +70,7 @@ export class DuetGridItem {
|
|
|
70
70
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
71
71
|
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
72
72
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
73
|
-
} }, h("slot", { key: '
|
|
73
|
+
} }, h("slot", { key: '8f0abe7f48298866dc52e646b8d08bbeaf4ce234' })));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "duet-grid-item"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,6 +15,7 @@ import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
|
15
15
|
import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isEscapeKey, isSpaceKey, subscribeTabbingChange, unsubscribeTabbingChange, } from "../../utils/keyboard-utils";
|
|
16
16
|
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
17
17
|
import { parsePossibleJSON } from "../../utils/string-utils";
|
|
18
|
+
import { postfixTheme } from "../../utils/token-utils";
|
|
18
19
|
import { DuetHeaderDropdown } from "./duet-header-dropdown";
|
|
19
20
|
import { DuetHeaderHamburger } from "./duet-header-hamburger";
|
|
20
21
|
import { DuetHeaderIcon } from "./duet-header-icon";
|
|
@@ -516,7 +517,7 @@ export class DuetHeader {
|
|
|
516
517
|
const skipToLabel = () => this.skipToId ? (h("a", { href: this.skipToId, class: "duet-header-skip", onClick: this.handleSkipClick }, skipLabel)) : null;
|
|
517
518
|
const logo = () => (h("duet-logo", { href: this.logoHref, size: "medium", ref: el => (this.logoEl = el), language: this.language, theme: this.theme, onClick: this.handleLogoClick }));
|
|
518
519
|
const largeLogo = () => (h("duet-logo", { href: this.logoHref, size: "large", ref: el => (this.logoEl = el), language: this.language, theme: this.theme, onClick: this.handleLogoClick }));
|
|
519
|
-
const contactDropdown = () => this.contact && this.processedContactItems ? (h(DuetHeaderDropdown, { id: "duet-header-contact", label: this.contact, icon: contactDropdownIcon.svg, active: this.isContactOpen, isOpen: this.isContactOpen, badge: false, toggleRef: el => (this.contactItemsButtonEl = el), itemsRef: el => (this.contactItemsEl = el), onToggle: event => this.toggleMenu(event, "contact") }, this.processedContactItems.map(item => (h("a", { role: "menuitem", href: item.href || "#", id: item.id, onClick: event => this.handleContactClick(event, item), onKeyDown: ev => this.handleArrowKeys(ev), target: item.external ? "_blank" : "_self" }, item.label, Build.isBrowser && item.external && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-header-link-external" }, h("duet-icon", { name: "action-new-window-small", size: "xx-small", margin: "none", color:
|
|
520
|
+
const contactDropdown = () => this.contact && this.processedContactItems ? (h(DuetHeaderDropdown, { id: "duet-header-contact", label: this.contact, icon: contactDropdownIcon.svg, active: this.isContactOpen, isOpen: this.isContactOpen, badge: false, toggleRef: el => (this.contactItemsButtonEl = el), itemsRef: el => (this.contactItemsEl = el), onToggle: event => this.toggleMenu(event, "contact") }, this.processedContactItems.map(item => (h("a", { role: "menuitem", href: item.href || "#", id: item.id, onClick: event => this.handleContactClick(event, item), onKeyDown: ev => this.handleArrowKeys(ev), target: item.external ? "_blank" : "_self" }, item.label, Build.isBrowser && item.external && (h(Fragment, null, h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), h("span", { class: "duet-header-link-external" }, h("duet-icon", { name: "action-new-window-small", size: "xx-small", margin: "none", color: postfixTheme("primary", this.theme) }))))))))) : null;
|
|
520
521
|
const languageDropdown = () => this.language && this.processedLanguageItems ? (h(DuetHeaderDropdown, { id: "duet-header-language", label: this.language, icon: languageIcon.svg, accessibleText: `${changeLanguage}${this.hasLanguageChanged ? `, ${activeLanguage}` : ""}`, active: this.isLanguageOpen, isOpen: this.isLanguageOpen, badge: false, toggleRef: el => (this.languageItemsButtonEl = el), itemsRef: el => (this.languageItemsEl = el), onToggle: event => this.toggleMenu(event, "language") }, this.processedLanguageItems.map(item => (h("a", { class: { active: this.language === item.country }, "aria-selected": this.language === item.country, role: "menuitem", id: item.id, lang: item.country, href: item.href || "#", onClick: event => this.handleLanguageClick(event, item), onKeyDown: this.handleArrowKeys }, item.label))))) : null;
|
|
521
522
|
const processedUserWithLink = () => this.processedUser && this.processedUser.href ? (h("a", { href: this.processedUser.href || "#", id: this.processedUser.id, class: "duet-header-user duet-header-button", onClick: this.handleUserClick }, h(DuetHeaderIcon, { icon: userIcon.svg }), h("span", { class: "duet-header-user-label" }, this.processedUser.label))) : null;
|
|
522
523
|
const processedUserWithoutLink = () => this.processedUser && !this.processedUser.href ? (h("span", { id: this.processedUser.id, class: "duet-header-user duet-header-button duet-header-no-action" }, h(DuetHeaderIcon, { icon: userIcon.svg }), h("span", { class: "duet-header-user-label" }, this.processedUser.label))) : null;
|
|
@@ -530,7 +531,7 @@ export class DuetHeader {
|
|
|
530
531
|
"duet-theme-turva": this.theme === "turva",
|
|
531
532
|
"duet-header-back": true,
|
|
532
533
|
"duet-header-inactive": true,
|
|
533
|
-
}, part: "header" }, h("div", { class: "duet-header-top" }, skipToLabel(), h("duet-button", { url: this.processedBack.href, id: this.processedBack.id, theme: this.theme, variation: "plain", color:
|
|
534
|
+
}, part: "header" }, h("div", { class: "duet-header-top" }, skipToLabel(), h("duet-button", { url: this.processedBack.href, id: this.processedBack.id, theme: this.theme, variation: "plain", color: postfixTheme("secondary", this.theme), icon: "navigation-arrow-left", iconSize: "large", onClick: this.handleBackClick }, this.processedBack.label), logo(), h("slot", { name: "logo-utility" }))))));
|
|
534
535
|
}
|
|
535
536
|
const itemsHaveSubItems = this.processedItems && this.processedItems.some(item => item.items && item.items.length > 0);
|
|
536
537
|
const isSecondLevelActive = this.processedItems &&
|
|
@@ -144,11 +144,11 @@ export class DuetIcon {
|
|
|
144
144
|
: {};
|
|
145
145
|
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
146
146
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: '2f6837b926530cee2afc83a590aa1ccb0dfeca03', class: {
|
|
148
148
|
"duet-m-0": this.margin === "none",
|
|
149
149
|
"duet-icon-has-outline": !!this.outline,
|
|
150
150
|
"duet-icon-has-background": !!this.background,
|
|
151
|
-
} }, h("span", { key: '
|
|
151
|
+
} }, h("span", { key: '6fa86044b5f3966537f38590bd12b28b698a080b', "aria-hidden": "true", style: styles, class: {
|
|
152
152
|
"duet-icon": true,
|
|
153
153
|
"duet-theme-turva": this.theme === "turva",
|
|
154
154
|
"duet-theme-default": this.theme === "default",
|
|
@@ -157,7 +157,7 @@ export class DuetIcon {
|
|
|
157
157
|
[shapeStyle]: true,
|
|
158
158
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
159
159
|
"duet-icon-not-responsive": !this.responsive,
|
|
160
|
-
} }, h("span", { key: '
|
|
160
|
+
} }, h("span", { key: '4ba33bca7da0ccbc0f11b1b5693e7912d0a0d45d', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "duet-icon"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class DuetLabel {
|
|
|
42
42
|
if (Build.isServer) {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
const color = getColorByName(this.color);
|
|
45
|
+
const color = getColorByName(this.color, this.theme);
|
|
46
46
|
return (h(Host, { class: {
|
|
47
47
|
"duet-label": true,
|
|
48
48
|
"duet-label-small": this.size === "small",
|
|
@@ -178,12 +178,13 @@ export class DuetLink {
|
|
|
178
178
|
* Always the last one in the class.
|
|
179
179
|
*/
|
|
180
180
|
render() {
|
|
181
|
-
const Tag = !this.url ? "button" : "a";
|
|
181
|
+
const Tag = !this.url && this.variation !== "default" ? "button" : "a";
|
|
182
|
+
const role = !this.url && this.variation === "default" ? "button" : null;
|
|
182
183
|
const isButton = Tag === "button";
|
|
183
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'eae1c61afe3b8413b109313020b9757cfe7f2e42', class: {
|
|
184
185
|
[`duet-link-${this.variation}`]: true,
|
|
185
186
|
"duet-m-0": this.margin === "none",
|
|
186
|
-
} }, h(Tag, { key: '
|
|
187
|
+
} }, h(Tag, { key: '973984aeb4ef7dd331df49218b1552a4955b80c2', href: this.url, class: {
|
|
187
188
|
"duet-link": true,
|
|
188
189
|
"duet-link-is-external": this.external,
|
|
189
190
|
"duet-link-is-download": !!this.download,
|
|
@@ -194,7 +195,7 @@ export class DuetLink {
|
|
|
194
195
|
"duet-p-0": this.padding === "none",
|
|
195
196
|
[this.padding]: true,
|
|
196
197
|
[this.variation]: true,
|
|
197
|
-
}, target: this.download || !this.url ? null : this.external ? "_blank" : "_self", download: this.resolvedDownload, "aria-label": this.ariaLabel, "aria-expanded": this.accessibleExpanded != null && isButton ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null && isButton ? this.accessiblePopup.toString() : undefined, id: this.identifier, ref: el => (this.nativeLink = el), part: "duet-link", rel: this.external ? "noopener" : undefined }, this.renderContent())));
|
|
198
|
+
}, target: this.download || !this.url ? null : this.external ? "_blank" : "_self", download: this.resolvedDownload, "aria-label": this.ariaLabel, "aria-expanded": this.accessibleExpanded != null && isButton ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null && isButton ? this.accessiblePopup.toString() : undefined, id: this.identifier, ref: el => (this.nativeLink = el), part: "duet-link", rel: this.external ? "noopener" : undefined, role: role }, this.renderContent())));
|
|
198
199
|
}
|
|
199
200
|
static get is() { return "duet-link"; }
|
|
200
201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,7 +34,7 @@ export class DuetListItem {
|
|
|
34
34
|
* Always the last one in the class.
|
|
35
35
|
*/
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '47185c0399f547a7d80ac43adf617b617e33e604', class: {
|
|
38
38
|
"duet-theme-turva": this.theme === "turva",
|
|
39
39
|
"duet-no-stacking": !this.responsive,
|
|
40
40
|
"duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
|
|
@@ -42,7 +42,7 @@ export class DuetListItem {
|
|
|
42
42
|
"duet-list-item-breakpoint-medium": this.breakpoint === "medium",
|
|
43
43
|
"duet-list-item-breakpoint-large": this.breakpoint === "large",
|
|
44
44
|
"duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
|
|
45
|
-
} }, h("dt", { key: '
|
|
45
|
+
} }, h("dt", { key: '6ae3c144789f6f61efd296b660b88b180a5e0e38' }, h("slot", { key: 'c33e76c13b822b05a938e421d6eb53ef95e403f7', name: "label" })), h("dd", { key: '31bda43d4a91ec3b4a44746a0ddde2f7b91845c2' }, h("slot", { key: 'c1ce54a0b9a7dd7256a7dcf3a32bef70bb063621', name: "value" }))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "duet-list-item"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,10 +49,10 @@ export class DuetMenuBarButton {
|
|
|
49
49
|
* Always the last one in the class.
|
|
50
50
|
*/
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '5e64c2ede59d8e16972663cace2e98dffca3a060', role: "listitem", onfocus: () => this.setFocus() }, h("button", { key: '362525c4f563bd1a5ffad7b8fee029d904fb72c8', ref: button => (this.nativeButton = button), class: {
|
|
53
53
|
"duet-menu-bar-button": true,
|
|
54
54
|
"duet-theme-turva": this.theme === "turva",
|
|
55
|
-
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { key: '
|
|
55
|
+
}, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && (h("duet-icon", { key: '439d74e7bdfb1396a7c1e2940c3bcf142c3150b6', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '61a36d95ee1b2962b3f966dc99678c7e00c00692' }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "duet-menu-bar-button"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,17 +62,17 @@ export class DuetMenuBarDropdown {
|
|
|
62
62
|
* Always the last one in the class.
|
|
63
63
|
*/
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '870e7ba2d40001532dabdb4c9468b73570e1ade7', role: "listitem" }, h("div", { key: '7c60bf682acd9d11e8633f862f07391a706de817', class: {
|
|
66
66
|
"duet-menu-bar-dropdown": true,
|
|
67
67
|
"duet-theme-turva": this.theme === "turva",
|
|
68
68
|
active: this.open,
|
|
69
69
|
[`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
|
|
70
|
-
} }, h("button", { key: '
|
|
70
|
+
} }, h("button", { key: 'c0bdf57ef46ae179d3c0d6e7f45bdd7ffe10769b', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
71
71
|
active: this.open,
|
|
72
|
-
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '
|
|
72
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: 'c97e52d72933959ecbd6b9519940427735cdeccc', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { key: 'd831c0f2defb108643ac9a11f6be93f4f98a8dbc', class: "label" }, h("slot", { key: 'c396567614cd3badd2b373a1922ea907f75750a8', name: "label" }), h("duet-icon", { key: '4e8adfdf9998028a514fa386275affa9c4fe29be', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '683257ed3f02ee4cde289c0efe48af7f06fa50c5', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
73
73
|
items: true,
|
|
74
74
|
hidden: !this.open,
|
|
75
|
-
} }, h("slot", { key: '
|
|
75
|
+
} }, h("slot", { key: '281de42fd56a1c9be76c9b4218d4354032a56834' })))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "duet-menu-bar-dropdown"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js
CHANGED
|
@@ -48,11 +48,11 @@ export class DuetMenuBarDropdownLink {
|
|
|
48
48
|
* Always the last one in the class.
|
|
49
49
|
*/
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '6d31641d480353ee7f924029a31c94dc1747f1ed' }, h("a", { key: 'ea374446994ad7ea0780b8f4320247c718f08219', class: {
|
|
52
52
|
"duet-menu-bar-dropdown-link": true,
|
|
53
53
|
[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
|
|
54
54
|
"duet-theme-turva": this.theme === "turva",
|
|
55
|
-
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '
|
|
55
|
+
}, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '486173db589cdbf851d3a5dd9171990af84707bb', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("slot", { key: 'd284cabdff17ad2590e80ed02894fe87425507b0' }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "duet-menu-bar-dropdown-link"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,11 +71,11 @@ export class DuetMenuBarItem {
|
|
|
71
71
|
*/
|
|
72
72
|
render() {
|
|
73
73
|
const TagName = this.url ? "a" : "button";
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'd968cd5ac488d7cc0fea66408de412524dc88b35', role: "listitem" }, h(TagName, { key: '143da0db925d6a45f69a6defcc0d96710d395cbf', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
|
|
75
75
|
"duet-menu-bar-item": true,
|
|
76
76
|
"duet-theme-turva": this.theme === "turva",
|
|
77
77
|
active: this.active,
|
|
78
|
-
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: '
|
|
78
|
+
}, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: '22ef7c16eb08f2a24bbd902c1e702103a8319621', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '9560bccb8d749a945592866e33279c9e1686f9af' }), (this.trailingIcon || this.external) && (h("duet-icon", { key: 'c152621621d193d9d80cc0984fe36d230a2b7a63', class: {
|
|
79
79
|
"trailing-icon": !!this.trailingIcon,
|
|
80
80
|
"trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
|
|
81
81
|
"external-icon": !!this.external,
|
|
@@ -33,11 +33,11 @@ export class DuetMenuBarLink {
|
|
|
33
33
|
* Always the last one in the class.
|
|
34
34
|
*/
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'd150209d2395822ac0ba4b0d6372bdc0ba5532fd', role: "listitem" }, h("a", { key: '46070813f893e645146a7ca8ea798fa455df11e9', class: {
|
|
37
37
|
"duet-menu-bar-link": true,
|
|
38
38
|
"duet-theme-turva": this.theme === "turva",
|
|
39
39
|
active: this.active,
|
|
40
|
-
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '
|
|
40
|
+
}, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: 'bac5752b20258b49e6b3210f071578154de8d8d8', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: 'efec03fcc7a033a4f9df871a4a087d7c9a04a0e8' }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "duet-menu-bar-link"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|