@duetds/components 6.9.5 → 6.9.7
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 +1347 -69
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-callout.cjs.entry.js +46 -0
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +5 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +16 -5
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +4 -3
- package/lib/cjs/duet-icon.cjs.entry.js +19 -8
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +23 -5
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1220 -48
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-8edb1dd0.js → focus-utils-8852d70c.js} +1 -1
- package/lib/cjs/{index-81121cf7.js → index-8baedc34.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-4bfb15d4.js → token-utils-966776e9.js} +9 -0
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-callout/duet-callout.css +51 -0
- package/lib/collection/components/duet-callout/duet-callout.js +101 -0
- package/lib/collection/components/duet-choice/duet-choice.js +3 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +10 -0
- package/lib/collection/components/duet-hero/duet-hero.js +3 -1
- package/lib/collection/components/duet-icon/duet-icon.js +60 -7
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +12 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +43 -3
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +23 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +39 -106
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +53 -49
- package/lib/collection/components/duet-upload/duet-upload.js +6 -3
- package/lib/collection/components/duet-upload/upload-item.js +8 -2
- package/lib/collection/utils/token-utils.js +8 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.d.ts +11 -0
- package/lib/dist-custom-elements/duet-callout.js +75 -0
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +8 -6
- package/lib/dist-custom-elements/duet-collapsible.js +4 -4
- package/lib/dist-custom-elements/duet-combobox.js +2 -2
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +10 -10
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +12 -11
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +8 -8
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +9 -9
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
- package/lib/dist-custom-elements/duet-slideout.js +3 -3
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar.js +26 -7
- package/lib/dist-custom-elements/duet-tab-group.js +9 -9
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +8 -8
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +31 -20
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/p-1635a5ff.js +1446 -0
- package/lib/dist-custom-elements/{p-a81b913d.js → p-1d207f70.js} +5 -5
- package/lib/dist-custom-elements/{p-bd0dd4e8.js → p-2a351223.js} +2 -2
- package/lib/dist-custom-elements/{p-00622251.js → p-369a9e6b.js} +4 -4
- package/lib/dist-custom-elements/{p-2ea5174d.js → p-3d6100be.js} +2 -2
- package/lib/dist-custom-elements/{p-e873b671.js → p-4d20fcd1.js} +2 -2
- package/lib/dist-custom-elements/{p-57b9edb8.js → p-5119f1dc.js} +5 -5
- package/lib/dist-custom-elements/{p-e051482f.js → p-5183d2cf.js} +2 -2
- package/lib/dist-custom-elements/{p-4c1f4126.js → p-53c27e8e.js} +1 -1
- package/lib/dist-custom-elements/{p-95f8531c.js → p-62683175.js} +1 -1
- package/lib/dist-custom-elements/{p-f8646bdd.js → p-649043a8.js} +2 -2
- package/lib/dist-custom-elements/{p-a6f793fc.js → p-67365843.js} +21 -8
- package/lib/dist-custom-elements/{p-de83b878.js → p-68be9a91.js} +1 -1
- package/lib/dist-custom-elements/{p-d2e453e5.js → p-783a8425.js} +2 -2
- package/lib/dist-custom-elements/{p-ca210b87.js → p-7a905f45.js} +3 -3
- package/lib/dist-custom-elements/{p-27f66954.js → p-7e395433.js} +2 -2
- package/lib/dist-custom-elements/{p-20c82fbd.js → p-87df78c6.js} +1 -1
- package/lib/dist-custom-elements/{p-68024252.js → p-890d1070.js} +9 -1
- package/lib/dist-custom-elements/{p-aacb3b95.js → p-8bad78a6.js} +1 -1
- package/lib/dist-custom-elements/{p-27efb5f6.js → p-93fab31d.js} +1 -1
- package/lib/dist-custom-elements/{p-4b87207e.js → p-99687f8f.js} +6 -6
- package/lib/dist-custom-elements/{p-0acc5ed6.js → p-9d1b018a.js} +1 -1
- package/lib/dist-custom-elements/{p-5808a711.js → p-c243ec01.js} +1 -1
- package/lib/{esm/tokens-0963dc8b.js → dist-custom-elements/p-cb9787ec.js} +1 -1
- package/lib/dist-custom-elements/{p-b385a866.js → p-cbb67f4e.js} +1 -1
- package/lib/dist-custom-elements/{p-eb0f0871.js → p-d95944c8.js} +2 -2
- package/lib/dist-custom-elements/{p-82cb614b.js → p-e080ccaa.js} +1 -1
- package/lib/dist-custom-elements/{p-a4a81077.js → p-e2a3c6fa.js} +2 -2
- package/lib/dist-custom-elements/{p-a7109746.js → p-e4e40736.js} +2 -2
- package/lib/dist-custom-elements/{p-2ff017a8.js → p-efa5255b.js} +1 -1
- package/lib/dist-custom-elements/{p-98983cf5.js → p-f0e99128.js} +8 -8
- package/lib/dist-custom-elements/{p-111c553d.js → p-f2d8763d.js} +2 -2
- package/lib/dist-custom-elements/{p-7ccd5f61.js → p-f83c1df9.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/p-01d38ac9.entry.js +4 -0
- package/lib/duet/{p-2743b8e3.system.entry.js → p-029f96ec.system.entry.js} +1 -1
- package/lib/duet/{p-398cb719.entry.js → p-03bd5373.entry.js} +1 -1
- package/lib/duet/{p-03a69a82.system.entry.js → p-04da22d7.system.entry.js} +1 -1
- package/lib/duet/{p-2c0520ca.system.entry.js → p-07d0ed0a.system.entry.js} +1 -1
- package/lib/duet/{p-0d21f532.entry.js → p-08693a37.entry.js} +1 -1
- package/lib/duet/{p-2bed99fa.system.entry.js → p-097da893.system.entry.js} +1 -1
- package/lib/duet/{p-c86e5e36.system.entry.js → p-09d4bac7.system.entry.js} +1 -1
- package/lib/duet/{p-9a784d29.system.entry.js → p-0a03a862.system.entry.js} +1 -1
- package/lib/duet/{p-da91528a.entry.js → p-0a6ff475.entry.js} +1 -1
- package/lib/duet/{p-0dd90f16.system.entry.js → p-0b752687.system.entry.js} +1 -1
- package/lib/duet/{p-ac7ea81a.entry.js → p-0cdc880e.entry.js} +1 -1
- package/lib/duet/{p-07b5abec.system.entry.js → p-0e165a4e.system.entry.js} +1 -1
- package/lib/duet/{p-6d204f7f.entry.js → p-0f80e2fc.entry.js} +1 -1
- package/lib/duet/{p-5ab222b7.system.entry.js → p-0fc1b439.system.entry.js} +1 -1
- package/lib/duet/{p-676730a8.system.entry.js → p-1028e393.system.entry.js} +1 -1
- package/lib/duet/p-106abf71.system.entry.js +4 -0
- package/lib/duet/{p-58fb7a22.entry.js → p-12afe002.entry.js} +1 -1
- package/lib/duet/{p-ddd374b4.system.entry.js → p-1396c277.system.entry.js} +1 -1
- package/lib/duet/p-151892ff.system.entry.js +4 -0
- package/lib/duet/{p-663247df.system.entry.js → p-1677ce5c.system.entry.js} +1 -1
- package/lib/duet/{p-6020bc32.system.entry.js → p-1a0b0fe9.system.entry.js} +1 -1
- package/lib/duet/p-1c0453e0.system.js +4 -0
- package/lib/duet/{p-8442ce22.entry.js → p-1c0a39db.entry.js} +1 -1
- package/lib/duet/{p-bbcb7a1d.entry.js → p-2125b071.entry.js} +1 -1
- package/lib/duet/{p-e76b6f2f.entry.js → p-2879b97d.entry.js} +1 -1
- package/lib/duet/{p-e9c70c19.entry.js → p-29b9e99e.entry.js} +1 -1
- package/lib/duet/{p-a57d2cd7.system.entry.js → p-2bc4d34e.system.entry.js} +1 -1
- package/lib/duet/p-2c68ee2d.system.entry.js +4 -0
- package/lib/duet/{p-d08acf37.system.entry.js → p-2d5be93c.system.entry.js} +1 -1
- package/lib/duet/{p-c76d7cab.entry.js → p-2d71fa26.entry.js} +1 -1
- package/lib/duet/{p-95c7021f.system.entry.js → p-32eecc8d.system.entry.js} +1 -1
- package/lib/duet/{p-ad18ed23.system.entry.js → p-344134e5.system.entry.js} +1 -1
- package/lib/duet/{p-59efa9e0.system.entry.js → p-36bca919.system.entry.js} +1 -1
- package/lib/duet/{p-b6e15be0.system.entry.js → p-3b1ff9be.system.entry.js} +1 -1
- package/lib/duet/{p-5b93cff5.entry.js → p-3c88792b.entry.js} +1 -1
- package/lib/duet/{p-28f4474e.system.entry.js → p-3d6d2012.system.entry.js} +1 -1
- package/lib/duet/{p-e016d27b.entry.js → p-3de9ea90.entry.js} +1 -1
- package/lib/duet/{p-9b4096ae.entry.js → p-3e2c87e6.entry.js} +1 -1
- package/lib/duet/{p-6da60c3a.entry.js → p-3e7b62a4.entry.js} +1 -1
- package/lib/duet/{p-cce99a1d.system.entry.js → p-401a454b.system.entry.js} +2 -2
- package/lib/duet/{p-26e5f323.system.entry.js → p-41a69e48.system.entry.js} +1 -1
- package/lib/duet/{p-450469cd.system.entry.js → p-42844e9d.system.entry.js} +1 -1
- package/lib/duet/{p-fe039b5e.entry.js → p-44f22e6b.entry.js} +1 -1
- package/lib/duet/p-450e63a4.system.js +4 -0
- package/lib/duet/{p-1c667631.entry.js → p-458dd158.entry.js} +1 -1
- package/lib/duet/{p-37aa45f3.entry.js → p-45fe4429.entry.js} +1 -1
- package/lib/duet/p-4634f44d.entry.js +4 -0
- package/lib/duet/{p-76d453ec.system.entry.js → p-466c4910.system.entry.js} +1 -1
- package/lib/duet/p-48ef2786.system.entry.js +4 -0
- package/lib/duet/{p-d119935f.entry.js → p-4a4cbba5.entry.js} +1 -1
- package/lib/duet/{p-f3fa09d1.entry.js → p-4c1fb962.entry.js} +1 -1
- package/lib/duet/{p-248a1e70.system.entry.js → p-4c7fb05f.system.entry.js} +1 -1
- package/lib/duet/{p-8c9438d3.entry.js → p-4cb43c38.entry.js} +1 -1
- package/lib/duet/p-5074accf.entry.js +4 -0
- package/lib/duet/{p-413a3ebd.system.entry.js → p-5573222d.system.entry.js} +1 -1
- package/lib/duet/{p-76c6eef8.entry.js → p-57a26a2a.entry.js} +1 -1
- package/lib/duet/{p-b5813a0f.system.entry.js → p-5c17a74a.system.entry.js} +1 -1
- package/lib/duet/{p-76ac794f.system.entry.js → p-5d15cd89.system.entry.js} +1 -1
- package/lib/duet/{p-920d58da.entry.js → p-5e6542bc.entry.js} +1 -1
- package/lib/duet/{p-dbc4a1f6.system.entry.js → p-5f7a2639.system.entry.js} +1 -1
- package/lib/duet/{p-f6adb078.system.entry.js → p-613156e6.system.entry.js} +2 -2
- package/lib/duet/{p-1c1a784e.system.entry.js → p-62a63d5b.system.entry.js} +1 -1
- package/lib/duet/{p-4e75e28e.entry.js → p-6325ae2d.entry.js} +1 -1
- package/lib/duet/p-66fbed51.entry.js +4 -0
- package/lib/duet/{p-50495b74.entry.js → p-675f844b.entry.js} +1 -1
- package/lib/duet/{p-e4e8671a.system.entry.js → p-68ee9bfa.system.entry.js} +1 -1
- package/lib/duet/{p-29864af5.system.entry.js → p-6a0f118b.system.entry.js} +1 -1
- package/lib/duet/{p-11c9648d.system.entry.js → p-6ba40ef9.system.entry.js} +1 -1
- package/lib/duet/{p-d5a9a127.entry.js → p-6dc868fd.entry.js} +1 -1
- package/lib/duet/{p-a3b02dfe.system.entry.js → p-6dcce504.system.entry.js} +1 -1
- package/lib/duet/{p-92a86be1.entry.js → p-70e49d00.entry.js} +1 -1
- package/lib/duet/p-73f9efad.js +4 -0
- package/lib/duet/p-752fb0a0.system.entry.js +4 -0
- package/lib/duet/{p-b323c9dd.entry.js → p-75316086.entry.js} +1 -1
- package/lib/duet/p-789a9af4.entry.js +4 -0
- package/lib/duet/{p-152af7a3.system.entry.js → p-79dd09a6.system.entry.js} +1 -1
- package/lib/duet/{p-576caf16.entry.js → p-79eb3572.entry.js} +1 -1
- package/lib/duet/{p-b6ba60c4.entry.js → p-7b99f674.entry.js} +1 -1
- package/lib/duet/{p-81e5dfca.system.js → p-7bab508c.system.js} +1 -1
- package/lib/duet/{p-7454a974.system.entry.js → p-7cf776fa.system.entry.js} +1 -1
- package/lib/duet/{p-7e401d44.entry.js → p-7e3e70df.entry.js} +1 -1
- package/lib/duet/{p-8151dad5.system.entry.js → p-7f94280a.system.entry.js} +1 -1
- package/lib/duet/p-7fefe439.entry.js +4 -0
- package/lib/duet/{p-5e68175c.system.entry.js → p-8349ff2d.system.entry.js} +1 -1
- package/lib/duet/{p-e483eaf7.entry.js → p-853ac360.entry.js} +1 -1
- package/lib/duet/{p-b5e831ad.system.entry.js → p-8d5edbbe.system.entry.js} +1 -1
- package/lib/duet/{p-258e74a2.system.entry.js → p-91be047f.system.entry.js} +1 -1
- package/lib/duet/{p-cee25077.system.entry.js → p-92e94229.system.entry.js} +1 -1
- package/lib/duet/{p-59187969.entry.js → p-93a2c807.entry.js} +1 -1
- package/lib/duet/{p-dee6ebe6.system.entry.js → p-97528238.system.entry.js} +1 -1
- package/lib/duet/{p-b5bc42d3.system.entry.js → p-9791ab1b.system.entry.js} +1 -1
- package/lib/duet/{p-d6280581.system.entry.js → p-97df072f.system.entry.js} +1 -1
- package/lib/duet/{p-f31f949c.system.entry.js → p-981f2443.system.entry.js} +1 -1
- package/lib/duet/{p-a38015bf.system.entry.js → p-98777ba0.system.entry.js} +1 -1
- package/lib/duet/{p-7caf9f8c.entry.js → p-991271a2.entry.js} +1 -1
- package/lib/duet/{p-82e72de8.system.entry.js → p-9916b7d2.system.entry.js} +1 -1
- package/lib/duet/{p-33196e22.entry.js → p-9c127e8f.entry.js} +1 -1
- package/lib/duet/p-9ec19751.entry.js +4 -0
- package/lib/duet/p-9f81873c.entry.js +4 -0
- package/lib/duet/{p-d38eb818.system.entry.js → p-a042bc85.system.entry.js} +1 -1
- package/lib/duet/{p-9711aa31.entry.js → p-a1a8395b.entry.js} +1 -1
- package/lib/duet/{p-7df39ae6.entry.js → p-a341e9c3.entry.js} +1 -1
- package/lib/duet/{p-35872d73.entry.js → p-a653bb02.entry.js} +1 -1
- package/lib/duet/{p-d398189d.entry.js → p-a6aba2d3.entry.js} +1 -1
- package/lib/duet/{p-e98fe1b4.entry.js → p-a903a315.entry.js} +1 -1
- package/lib/duet/{p-8078b081.system.js → p-a9a7d16c.system.js} +1 -1
- package/lib/duet/p-a9d7b38d.entry.js +4 -0
- package/lib/duet/{p-3791056c.system.entry.js → p-afcfc528.system.entry.js} +1 -1
- package/lib/duet/{p-354090fc.entry.js → p-b4ff5c09.entry.js} +1 -1
- package/lib/duet/{p-f7c3b41f.entry.js → p-b90cdb91.entry.js} +1 -1
- package/lib/duet/{p-a5f307cc.entry.js → p-bb97ab92.entry.js} +1 -1
- package/lib/duet/{p-19bb927c.system.entry.js → p-bef59086.system.entry.js} +1 -1
- package/lib/duet/{p-c820689f.entry.js → p-c39467e4.entry.js} +1 -1
- package/lib/duet/{p-53ec70ad.entry.js → p-c50233e1.entry.js} +1 -1
- package/lib/duet/{p-3bffc1ba.system.entry.js → p-c504d7cd.system.entry.js} +1 -1
- package/lib/duet/{p-bd426f15.entry.js → p-c56dd6d7.entry.js} +1 -1
- package/lib/duet/{p-b3693e82.system.entry.js → p-c6a321f1.system.entry.js} +1 -1
- package/lib/duet/{p-8bd0fbf8.entry.js → p-c94a423f.entry.js} +1 -1
- package/lib/duet/{p-c4d8cad0.js → p-cb9787ec.js} +1 -1
- package/lib/duet/{p-540a243d.js → p-cca182be.js} +1 -1
- package/lib/duet/{p-66ab4869.entry.js → p-cff8b0b3.entry.js} +1 -1
- package/lib/duet/p-d1b6fd73.system.entry.js +4 -0
- package/lib/duet/p-d3bba23f.entry.js +4 -0
- package/lib/duet/p-d4d2569e.entry.js +4 -0
- package/lib/duet/{p-7286fe0a.system.entry.js → p-d6196775.system.entry.js} +1 -1
- package/lib/duet/{p-0cd46f36.system.js → p-d7e6a4ed.system.js} +1 -1
- package/lib/duet/{p-5e97f333.system.entry.js → p-da04e483.system.entry.js} +1 -1
- package/lib/duet/{p-7f8e1e3e.system.entry.js → p-dc4b4a04.system.entry.js} +1 -1
- package/lib/duet/{p-afc5adae.entry.js → p-de82bfee.entry.js} +1 -1
- package/lib/duet/{p-b32b8786.entry.js → p-df7481e8.entry.js} +1 -1
- package/lib/duet/{p-21241efd.system.entry.js → p-e057d8c4.system.entry.js} +1 -1
- package/lib/duet/{p-230e5380.entry.js → p-e05c4a5b.entry.js} +1 -1
- package/lib/duet/{p-f3221a0e.system.entry.js → p-e0848924.system.entry.js} +1 -1
- package/lib/duet/{p-0d8f3f8b.entry.js → p-e5d2b68e.entry.js} +1 -1
- package/lib/duet/{p-9a5d8dc8.system.entry.js → p-e65bc05f.system.entry.js} +1 -1
- package/lib/duet/{p-d54e170f.system.entry.js → p-e6f92c08.system.entry.js} +1 -1
- package/lib/duet/{p-1b2cc0ed.system.entry.js → p-ed16d00b.system.entry.js} +1 -1
- package/lib/duet/{p-12fd0273.js → p-f5a74f01.js} +1 -1
- package/lib/duet/p-f5fd8e55.entry.js +4 -0
- package/lib/duet/{p-5df2cedc.entry.js → p-f691d0b6.entry.js} +1 -1
- package/lib/duet/{p-ce6e2909.entry.js → p-f7fbc435.entry.js} +1 -1
- package/lib/duet/{p-5632e848.entry.js → p-f8d91f4b.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +2 -2
- package/lib/esm/duet-callout.entry.js +42 -0
- package/lib/esm/duet-caption_4.entry.js +2 -2
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +5 -3
- package/lib/esm/duet-collapsible.entry.js +3 -3
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +16 -5
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +2 -2
- package/lib/esm/duet-hero.entry.js +4 -3
- package/lib/esm/duet-icon.entry.js +19 -8
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar.entry.js +3 -3
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +3 -3
- package/lib/esm/duet-slideout.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +24 -6
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1220 -48
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-21faee80.js → focus-utils-1e6af8c1.js} +1 -1
- package/lib/esm/{index-ccc5c541.js → index-77de1d56.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{token-utils-6e0e2653.js → token-utils-5f4f3897.js} +9 -1
- package/lib/{dist-custom-elements/p-c4d8cad0.js → esm/tokens-20d688dc.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +2 -2
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-callout.entry.js +4 -0
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +2 -2
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-1e6af8c1.js +4 -0
- package/lib/esm-es5/{index-ccc5c541.js → index-77de1d56.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-5f4f3897.js +4 -0
- package/lib/esm-es5/{tokens-0963dc8b.js → tokens-20d688dc.js} +1 -1
- package/lib/types/components/duet-callout/duet-callout.d.ts +28 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +2 -0
- package/lib/types/components/duet-icon/duet-icon.d.ts +10 -0
- package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +1 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +8 -7
- package/lib/types/components/duet-upload/duet-upload.d.ts +1 -1
- package/lib/types/components.d.ts +33 -2
- package/lib/types/utils/token-utils.d.ts +1 -0
- package/package.json +6 -5
- package/lib/dist-custom-elements/p-d6aa9453.js +0 -272
- package/lib/duet/p-01470001.system.entry.js +0 -4
- package/lib/duet/p-0ee30eab.system.entry.js +0 -4
- package/lib/duet/p-1acbcfe5.entry.js +0 -4
- package/lib/duet/p-277d8df3.system.entry.js +0 -4
- package/lib/duet/p-2fd74d57.system.entry.js +0 -4
- package/lib/duet/p-50dad157.entry.js +0 -4
- package/lib/duet/p-5ee88d22.entry.js +0 -4
- package/lib/duet/p-621e8af8.js +0 -4
- package/lib/duet/p-68750bf4.entry.js +0 -4
- package/lib/duet/p-756f81d6.system.js +0 -4
- package/lib/duet/p-84abe886.entry.js +0 -4
- package/lib/duet/p-8acfaf91.system.entry.js +0 -4
- package/lib/duet/p-94c122ea.entry.js +0 -4
- package/lib/duet/p-984e12ad.entry.js +0 -4
- package/lib/duet/p-a35708d9.entry.js +0 -4
- package/lib/duet/p-bd29e941.entry.js +0 -4
- package/lib/duet/p-c85acd95.entry.js +0 -4
- package/lib/duet/p-dfa1a8cd.entry.js +0 -4
- package/lib/duet/p-eb6c4a2a.system.js +0 -4
- package/lib/esm-es5/focus-utils-21faee80.js +0 -4
- package/lib/esm-es5/token-utils-6e0e2653.js +0 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background: transparent;
|
|
6
|
+
border: 0;
|
|
7
|
+
-moz-appearance: none;
|
|
8
|
+
-webkit-appearance: none;
|
|
9
|
+
appearance: none;
|
|
10
|
+
position: relative;
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
blockquote,
|
|
16
|
+
figure {
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.duet-callout {
|
|
21
|
+
margin-bottom: 28px !important;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
27
|
+
}
|
|
28
|
+
.duet-callout .container {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
align-items: center;
|
|
33
|
+
max-width: 688px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
.duet-callout .callout-icon {
|
|
37
|
+
width: 50px;
|
|
38
|
+
padding-bottom: 8px;
|
|
39
|
+
}
|
|
40
|
+
.duet-callout .author {
|
|
41
|
+
color: rgb(0, 41, 77);
|
|
42
|
+
}
|
|
43
|
+
.duet-callout.duet-theme-turva {
|
|
44
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
45
|
+
}
|
|
46
|
+
.duet-callout.duet-theme-turva .author {
|
|
47
|
+
color: rgb(23, 28, 58);
|
|
48
|
+
}
|
|
49
|
+
.duet-callout.duet-m-0 {
|
|
50
|
+
margin: 0 !important;
|
|
51
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
/**
|
|
7
|
+
* @slot default - Slot for text.
|
|
8
|
+
* @slot author - Slot for author information.
|
|
9
|
+
*/
|
|
10
|
+
export class DuetCallout {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.hasAuthorSlot = false;
|
|
13
|
+
this.theme = "";
|
|
14
|
+
this.margin = "auto";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Component lifecycle events.
|
|
18
|
+
*/
|
|
19
|
+
componentWillLoad() {
|
|
20
|
+
inheritGlobalTheme(this);
|
|
21
|
+
this.hasAuthorSlot = !!this.element.querySelector('[slot="author"]');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* render() function
|
|
25
|
+
* Always the last one in the class.
|
|
26
|
+
*/
|
|
27
|
+
render() {
|
|
28
|
+
const icon = `<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
29
|
+
<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"/>
|
|
30
|
+
</svg>
|
|
31
|
+
`;
|
|
32
|
+
return (h(Host, null, h("div", { class: {
|
|
33
|
+
"duet-callout": true,
|
|
34
|
+
"duet-theme-turva": this.theme === "turva",
|
|
35
|
+
"duet-m-0": this.margin === "none",
|
|
36
|
+
} }, h("figure", { class: "container" }, h("duet-icon", { 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", null, h("duet-paragraph", { variation: "intro", weight: "semi-bold", margin: "none", theme: this.theme }, h("slot", null))), this.hasAuthorSlot && (h("figcaption", { class: "author" }, h("span", null, "\u2014 "), h("span", null, h("slot", { name: "author" }))))))));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "duet-callout"; }
|
|
39
|
+
static get encapsulation() { return "shadow"; }
|
|
40
|
+
static get originalStyleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["duet-callout.scss"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get styleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["duet-callout.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get properties() {
|
|
51
|
+
return {
|
|
52
|
+
"theme": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": true,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "DuetTheme",
|
|
57
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
58
|
+
"references": {
|
|
59
|
+
"DuetTheme": {
|
|
60
|
+
"location": "import",
|
|
61
|
+
"path": "../../common-types"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "Theme of the caption."
|
|
70
|
+
},
|
|
71
|
+
"attribute": "theme",
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"defaultValue": "\"\""
|
|
74
|
+
},
|
|
75
|
+
"margin": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "DuetMargin",
|
|
80
|
+
"resolved": "\"auto\" | \"none\"",
|
|
81
|
+
"references": {
|
|
82
|
+
"DuetMargin": {
|
|
83
|
+
"location": "import",
|
|
84
|
+
"path": "../../common-types"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": "Controls the margin of the component."
|
|
93
|
+
},
|
|
94
|
+
"attribute": "margin",
|
|
95
|
+
"reflect": false,
|
|
96
|
+
"defaultValue": "\"auto\""
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get elementRef() { return "element"; }
|
|
101
|
+
}
|
|
@@ -236,6 +236,8 @@ export class DuetChoice {
|
|
|
236
236
|
* Always the last one in the class.
|
|
237
237
|
*/
|
|
238
238
|
render() {
|
|
239
|
+
const choiceGroup = this.element.closest("duet-choice-group");
|
|
240
|
+
const choiceGroupLabel = choiceGroup ? choiceGroup.label : undefined;
|
|
239
241
|
const identifier = this.identifier || this.choiceId;
|
|
240
242
|
return (h(Host, { class: {
|
|
241
243
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
@@ -254,7 +256,7 @@ export class DuetChoice {
|
|
|
254
256
|
info: this.isInfoOpen,
|
|
255
257
|
collapsible: this.collapsible,
|
|
256
258
|
"duet-p-0": this.padding === "none",
|
|
257
|
-
} }, h("input", { class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.disabled || this.groupDisabled, required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input) }), h("label", { htmlFor: identifier, class: { "duet-choice-label": true, "no-hover": this.isHovering, "has-before-text": this.hasBeforeText }, onClick: this.onClick }, this.hasBeforeText && h("slot", { name: "before-text" }), this.icon && (h("div", { class: "duet-choice-card-icon" }, h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { class: "duet-choice-card-text" }, h("div", null, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("duet-caption", { margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("slot", { name: "additional" })))), h("div", null, h("div", { class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
259
|
+
} }, h("input", { class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.disabled || this.groupDisabled, required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input) }), h("label", { htmlFor: identifier, class: { "duet-choice-label": true, "no-hover": this.isHovering, "has-before-text": this.hasBeforeText }, onClick: this.onClick }, this.hasBeforeText && h("slot", { name: "before-text" }), this.icon && (h("div", { class: "duet-choice-card-icon" }, h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { class: "duet-choice-card-text" }, choiceGroupLabel && h("duet-visually-hidden", null, choiceGroupLabel, ", "), h("div", null, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("duet-caption", { margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("slot", { name: "additional" })))), h("div", null, h("div", { class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
|
|
258
260
|
"duet-choice-info-toggle": true,
|
|
259
261
|
"duet-theme-turva": this.theme === "turva",
|
|
260
262
|
}, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.disabled || this.groupDisabled, "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, "aria-flowto": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button" }, h("duet-visually-hidden", { "aria-hidden": !this.isBlurred ? "true" : "false" }, this.accessibleLabelInfoButton), h("div", { class: "duet-choice-info-icon" }, h("duet-icon", { icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible || this.hasInfo ? (h("div", { class: this.getClassNames(), id: this.expandId }, h("span", { class: {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
border-radius: 4px;
|
|
104
104
|
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
105
105
|
}
|
|
106
|
-
:host(.user-is-tabbing.duet-
|
|
106
|
+
:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus {
|
|
107
107
|
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -1048,6 +1048,16 @@
|
|
|
1048
1048
|
width: 80%;
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
+
.duet-hero.duet-hero-content .duet-hero-text .duet-hero-pre {
|
|
1052
|
+
margin-top: 1rem;
|
|
1053
|
+
margin-bottom: 0.5rem;
|
|
1054
|
+
}
|
|
1055
|
+
@media (min-width: 62em) {
|
|
1056
|
+
.duet-hero.duet-hero-content .duet-hero-text .duet-hero-pre {
|
|
1057
|
+
margin-top: 1.5rem;
|
|
1058
|
+
margin-bottom: 0;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1051
1061
|
.duet-hero.duet-hero-content.duet-theme-turva {
|
|
1052
1062
|
background: rgb(255, 255, 255);
|
|
1053
1063
|
}
|
|
@@ -13,6 +13,7 @@ import { parsePossibleJSON } from "../../utils/string-utils";
|
|
|
13
13
|
* @slot default - This is an unamed slot for a text or extra button that is placed after any buttons (or list item)
|
|
14
14
|
* @slot badge - This is a slot for a status badge that sits next to pre-heading inside the hero component.
|
|
15
15
|
* @slot bottom - This is a slot for content under the main hero content.
|
|
16
|
+
* @slot pre-heading - This is a slot for pre-heading content inside the hero component.
|
|
16
17
|
* @slot heading - This is a slot for heading content inside the hero component.
|
|
17
18
|
* @slot subheading - This is a slot for heading content inside the hero component. Only usable with campaign, section variations.
|
|
18
19
|
*/
|
|
@@ -70,6 +71,7 @@ export class DuetHero {
|
|
|
70
71
|
*/
|
|
71
72
|
componentWillLoad() {
|
|
72
73
|
inheritGlobalTheme(this);
|
|
74
|
+
this.hasPreHeadingSlot = !!this.element.querySelector('[slot="pre-heading"]');
|
|
73
75
|
this.hasHeadingSlot = !!this.element.querySelector('[slot="heading"]');
|
|
74
76
|
this.hasSubHeadingSlot = !!this.element.querySelector('[slot="subheading"]');
|
|
75
77
|
this.refresh();
|
|
@@ -172,7 +174,7 @@ export class DuetHero {
|
|
|
172
174
|
href: this.processedBack.href,
|
|
173
175
|
id: this.processedBack.id,
|
|
174
176
|
analyticsId: this.processedBack.analyticsId,
|
|
175
|
-
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { class: { "duet-hero-text": true }, part: "duet-hero-text" }, this.preHeading && (h("duet-paragraph", { margin: "none", class: "duet-hero-pre" }, this.preHeading)), h("slot", { name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { theme: this.theme, level: this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto" }, this.heading ? this.heading : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { theme: this.theme, level: this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { name: "subheading" }))), this.description && (h("duet-paragraph", { theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), h("span", { class: "duet-hero-slot-unnamed" }, h("slot", null))), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
177
|
+
}) }, this.processedBack.label))), (this.variation === "gray" || this.variation === "minimal") && this.categoryIcon && (h("duet-icon", { class: { "duet-hero-icon": true, "duet-hero-icon-has-heading": this.preHeading !== "" }, size: "x-large", background: this.categoryIconColor, name: this.categoryIcon })), h("div", { class: { "duet-hero-text": true }, part: "duet-hero-text" }, (this.preHeading || this.hasPreHeadingSlot) && (h("duet-paragraph", { margin: "none", class: "duet-hero-pre", size: this.variation === "content" ? "small" : "medium" }, this.preHeading ? this.preHeading : h("slot", { name: "pre-heading" }))), h("slot", { name: "badge" }), (this.heading || this.hasHeadingSlot) && (h("duet-heading", { theme: this.theme, level: this.level, class: { "duet-hero-heading": true, "duet-hero-heading-has-pre": this.preHeading !== "" }, color: headingColor, visualLevel: headingVisualLevel, margin: campaignOrSection ? "none" : "auto" }, this.heading ? this.heading : h("slot", { name: "heading" }))), campaignOrSection && this.hasSubHeadingSlot && (h("duet-heading", { theme: this.theme, level: this.subHeadingLevel, class: { "duet-hero-subheading": true }, color: this.theme === "turva" ? "secondary-turva" : "secondary", visualLevel: "h2" }, h("slot", { name: "subheading" }))), this.description && (h("duet-paragraph", { theme: this.theme, color: textColor, variation: "intro" }, this.description)), (this.variation === "gray" || this.variation === "minimal") && this.processedListItems && (h("duet-list", { theme: this.theme, "label-width": "30", breakpoint: "large", mobile: this.leftAlign ? undefined : "center" }, this.processedListItems.map(item => (h("duet-list-item", null, h("span", { slot: "label" }, item.label), h("span", { slot: "value" }, item.value)))))), this.buttonLabel && (h("duet-button", { url: this.buttonUrl, icon: this.icon, iconRight: this.iconRight, iconSize: this.iconSize, variation: buttonVariation, theme: this.theme, identifier: this.buttonId, onClick: event => this.handleClick(event, this.buttonData), fixed: true }, this.buttonLabel)), h("span", { class: "duet-hero-slot-unnamed" }, h("slot", null))), (this.variation === "gray" || this.variation === "minimal") && this.processedActions && (h("div", { class: "duet-hero-links" }, this.processedActions.map(item => (h("a", { class: "duet-hero-link", href: item.href, id: item.id, target: item.external ? "_blank" : "_self", onClick: event => this.handleClick(event, item) }, h("div", { class: "duet-hero-action-icon" }, h("duet-icon", { size: "small", margin: "none", name: item.icon, color: "currentColor", outline: outlineColor })), h("span", null, item.label), item.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal), item.external && (h("div", { class: "duet-hero-action-arrow" }, h("duet-icon", { icon: newWindowIcon.svg, size: "xx-small", margin: "none", color: "currentColor" })))))))), this.image &&
|
|
176
178
|
this.variation !== "image" &&
|
|
177
179
|
!campaignOrSection &&
|
|
178
180
|
this.variation !== "product" &&
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Build, h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
-
import { getColorByName } from "../../utils/token-utils";
|
|
6
|
+
import { getColorByName, rgbaColorFromRgb } from "../../utils/token-utils";
|
|
7
7
|
import { buildIconUrl, fetchIconByUrl } from "./icon-utils";
|
|
8
8
|
export class DuetIcon {
|
|
9
9
|
constructor() {
|
|
@@ -16,6 +16,8 @@ export class DuetIcon {
|
|
|
16
16
|
this.responsive = true;
|
|
17
17
|
this.color = "";
|
|
18
18
|
this.background = "";
|
|
19
|
+
this.backgroundOpacity = 1;
|
|
20
|
+
this.backgroundRotation = 0;
|
|
19
21
|
this.size = "medium";
|
|
20
22
|
this.outline = "";
|
|
21
23
|
this.shape = "circle";
|
|
@@ -57,11 +59,20 @@ export class DuetIcon {
|
|
|
57
59
|
const color = this.color === "currentColor"
|
|
58
60
|
? "currentColor"
|
|
59
61
|
: getColorByName(this.color, this.theme) || getColorByName(this.outline, this.theme);
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
const backgroundRotationStyles = this.backgroundRotation
|
|
63
|
+
? {
|
|
64
|
+
transform: `rotate(${this.backgroundRotation}deg)`,
|
|
65
|
+
"transform-origin": "center center",
|
|
66
|
+
}
|
|
67
|
+
: {};
|
|
68
|
+
const styles = Object.assign({ color, background: rgbaColorFromRgb(getColorByName(this.background, this.theme), this.backgroundOpacity), "border-color": getColorByName(this.outline, this.theme) }, backgroundRotationStyles);
|
|
69
|
+
const iconRotationStyles = this.backgroundRotation
|
|
70
|
+
? {
|
|
71
|
+
transform: `rotate(-${this.backgroundRotation}deg)`,
|
|
72
|
+
"transform-origin": "center center",
|
|
73
|
+
}
|
|
74
|
+
: {};
|
|
75
|
+
const iconStyles = Object.assign({}, iconRotationStyles);
|
|
65
76
|
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
66
77
|
return (h(Host, { class: {
|
|
67
78
|
"duet-m-0": this.margin === "none",
|
|
@@ -77,7 +88,7 @@ export class DuetIcon {
|
|
|
77
88
|
[shapeStyle]: true,
|
|
78
89
|
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
79
90
|
"duet-icon-not-responsive": !this.responsive,
|
|
80
|
-
} }, h("span", { "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, innerHTML: this.svgContent }))));
|
|
91
|
+
} }, h("span", { "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, innerHTML: this.svgContent, style: iconStyles }))));
|
|
81
92
|
}
|
|
82
93
|
static get is() { return "duet-icon"; }
|
|
83
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -260,6 +271,48 @@ export class DuetIcon {
|
|
|
260
271
|
"reflect": false,
|
|
261
272
|
"defaultValue": "\"\""
|
|
262
273
|
},
|
|
274
|
+
"backgroundOpacity": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "number",
|
|
279
|
+
"resolved": "number",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [{
|
|
286
|
+
"name": "internal",
|
|
287
|
+
"text": "Opacity of the background. Possible value in between 0-1. For example 0.75."
|
|
288
|
+
}],
|
|
289
|
+
"text": ""
|
|
290
|
+
},
|
|
291
|
+
"attribute": "background-opacity",
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"defaultValue": "1"
|
|
294
|
+
},
|
|
295
|
+
"backgroundRotation": {
|
|
296
|
+
"type": "number",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "number",
|
|
300
|
+
"resolved": "number",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": false,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [{
|
|
307
|
+
"name": "internal",
|
|
308
|
+
"text": "Rotation of the background. Possible value in between 0-360. For example 30."
|
|
309
|
+
}],
|
|
310
|
+
"text": ""
|
|
311
|
+
},
|
|
312
|
+
"attribute": "background-rotation",
|
|
313
|
+
"reflect": false,
|
|
314
|
+
"defaultValue": "0"
|
|
315
|
+
},
|
|
263
316
|
"size": {
|
|
264
317
|
"type": "string",
|
|
265
318
|
"mutable": false,
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
align-items: center;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
background: rgb(255, 255, 255);
|
|
31
|
+
box-shadow: 0 2px 6px 0 rgba(0, 41, 77, 0.07);
|
|
32
|
+
}
|
|
33
|
+
@media (min-width: 62em) {
|
|
34
|
+
.duet-menu-bar {
|
|
35
|
+
box-shadow: 0 3px 6px 0 rgba(0, 41, 77, 0.1);
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
38
|
.duet-menu-bar .top {
|
|
33
39
|
display: none;
|
|
@@ -148,6 +154,12 @@
|
|
|
148
154
|
}
|
|
149
155
|
.duet-menu-bar.duet-theme-turva {
|
|
150
156
|
background: rgb(255, 255, 255);
|
|
157
|
+
box-shadow: 0 2px 6px 0 rgba(117, 117, 117, 0.13);
|
|
158
|
+
}
|
|
159
|
+
@media (min-width: 62em) {
|
|
160
|
+
.duet-menu-bar.duet-theme-turva {
|
|
161
|
+
box-shadow: 0 3px 6px 0 rgba(117, 117, 117, 0.15);
|
|
162
|
+
}
|
|
151
163
|
}
|
|
152
164
|
|
|
153
165
|
.center {
|
|
@@ -92,11 +92,29 @@
|
|
|
92
92
|
display: none;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
.duet-submenu-bar .
|
|
95
|
+
.duet-submenu-bar .menu-container {
|
|
96
96
|
position: absolute;
|
|
97
97
|
z-index: 399;
|
|
98
98
|
width: 100%;
|
|
99
|
-
|
|
99
|
+
}
|
|
100
|
+
.duet-submenu-bar .menu-container.hidden {
|
|
101
|
+
max-height: 0;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
visibility: hidden;
|
|
104
|
+
}
|
|
105
|
+
@media (min-width: 62em) {
|
|
106
|
+
.duet-submenu-bar .menu-container, .duet-submenu-bar .menu-container.hidden {
|
|
107
|
+
position: static;
|
|
108
|
+
z-index: auto;
|
|
109
|
+
max-height: unset;
|
|
110
|
+
overflow: visible;
|
|
111
|
+
visibility: visible;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.duet-submenu-bar .items {
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 70vh;
|
|
117
|
+
overflow-y: scroll;
|
|
100
118
|
visibility: visible;
|
|
101
119
|
background: rgb(243, 249, 252);
|
|
102
120
|
border-bottom: 1px solid rgb(207, 210, 212);
|
|
@@ -124,11 +142,22 @@
|
|
|
124
142
|
flex-direction: row;
|
|
125
143
|
align-items: center;
|
|
126
144
|
justify-content: center;
|
|
145
|
+
height: auto;
|
|
127
146
|
max-height: unset;
|
|
128
147
|
overflow: visible;
|
|
129
148
|
visibility: visible;
|
|
130
149
|
border: 0;
|
|
131
|
-
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
.duet-submenu-bar .mobile-background {
|
|
153
|
+
position: absolute;
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
background: rgba(0, 41, 77, 0.6);
|
|
157
|
+
}
|
|
158
|
+
@media (min-width: 62em) {
|
|
159
|
+
.duet-submenu-bar .mobile-background {
|
|
160
|
+
display: none;
|
|
132
161
|
}
|
|
133
162
|
}
|
|
134
163
|
.duet-submenu-bar.duet-theme-turva {
|
|
@@ -140,4 +169,15 @@
|
|
|
140
169
|
}
|
|
141
170
|
.duet-submenu-bar.duet-theme-turva .items {
|
|
142
171
|
background: rgb(245, 245, 247);
|
|
172
|
+
}
|
|
173
|
+
.duet-submenu-bar.duet-theme-turva .mobile-background {
|
|
174
|
+
background: rgba(23, 28, 58, 0.6);
|
|
175
|
+
}
|
|
176
|
+
.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow {
|
|
177
|
+
box-shadow: 0 2px 6px 0 rgba(117, 117, 117, 0.13);
|
|
178
|
+
}
|
|
179
|
+
@media (min-width: 62em) {
|
|
180
|
+
.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow {
|
|
181
|
+
box-shadow: 0 3px 6px 0 rgba(117, 117, 117, 0.15);
|
|
182
|
+
}
|
|
143
183
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { media_query_large } from "@duetds/tokens/lib/tokens.json";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
|
+
import { disableBodyScroll, enableBodyScroll } from "body-scroll-lock/lib/bodyScrollLock.es6.js";
|
|
6
7
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
8
|
export class DuetSubmenuBar {
|
|
8
9
|
constructor() {
|
|
@@ -11,15 +12,29 @@ export class DuetSubmenuBar {
|
|
|
11
12
|
this.changeAriaProperties = () => {
|
|
12
13
|
if (this.mql[0].matches) {
|
|
13
14
|
this.mobile = false;
|
|
15
|
+
enableBodyScroll(this.element);
|
|
14
16
|
}
|
|
15
17
|
else {
|
|
16
18
|
this.mobile = true;
|
|
19
|
+
if (!this.bodyScroll) {
|
|
20
|
+
disableBodyScroll(this.element, { reserveScrollBarGap: true });
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
};
|
|
19
24
|
this.onClick = () => {
|
|
20
|
-
|
|
25
|
+
const open = this.open;
|
|
26
|
+
if (!open) {
|
|
27
|
+
this.bodyScroll = false;
|
|
28
|
+
disableBodyScroll(this.element, { reserveScrollBarGap: true });
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
enableBodyScroll(this.element);
|
|
32
|
+
this.bodyScroll = true;
|
|
33
|
+
}
|
|
34
|
+
this.open = !open;
|
|
21
35
|
};
|
|
22
36
|
this.mobile = true;
|
|
37
|
+
this.bodyScroll = false;
|
|
23
38
|
this.theme = "";
|
|
24
39
|
this.open = false;
|
|
25
40
|
this.accessibleLabel = undefined;
|
|
@@ -67,10 +82,13 @@ export class DuetSubmenuBar {
|
|
|
67
82
|
render() {
|
|
68
83
|
return (h(Host, null, h("nav", { class: { "duet-submenu-bar": true, "duet-theme-turva": this.theme === "turva" }, "aria-label": this.accessibleLabel }, h("div", { class: "shadow-container", role: "presentation" }, h("div", { class: "top-shadow" })), h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
69
84
|
active: this.open,
|
|
70
|
-
}, onClick: this.onClick }, h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", {
|
|
85
|
+
}, onClick: this.onClick }, h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { class: {
|
|
86
|
+
"menu-container": true,
|
|
87
|
+
hidden: !this.open,
|
|
88
|
+
}, role: "presentation" }, h("div", { role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
|
|
71
89
|
items: true,
|
|
72
90
|
hidden: !this.open,
|
|
73
|
-
} }, h("div", { class: "list", role: this.mobile ? "presentation" : "list" }, h("slot", null))))));
|
|
91
|
+
} }, h("div", { class: "list", role: this.mobile ? "presentation" : "list" }, h("slot", null))), h("div", { class: "mobile-background" })))));
|
|
74
92
|
}
|
|
75
93
|
static get is() { return "duet-submenu-bar"; }
|
|
76
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -148,7 +166,8 @@ export class DuetSubmenuBar {
|
|
|
148
166
|
}
|
|
149
167
|
static get states() {
|
|
150
168
|
return {
|
|
151
|
-
"mobile": {}
|
|
169
|
+
"mobile": {},
|
|
170
|
+
"bodyScroll": {}
|
|
152
171
|
};
|
|
153
172
|
}
|
|
154
173
|
static get methods() {
|