@duetds/components 6.9.5 → 6.9.6
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 +102 -12
- 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 +43 -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 +2 -2
- 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 +5 -2
- 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 +1 -1
- 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 +1 -1
- 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-de2e491b.js} +1 -1
- package/lib/cjs/{index-81121cf7.js → index-978ec5b0.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 +98 -0
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -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-upload/duet-upload.js +3 -0
- 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 +72 -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 +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- 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 +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- 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 +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
- 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 +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +25 -6
- 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 +20 -17
- 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-a7109746.js → p-064985f6.js} +2 -2
- package/lib/dist-custom-elements/{p-95f8531c.js → p-087e9427.js} +1 -1
- package/lib/dist-custom-elements/{p-bd0dd4e8.js → p-0a6a8f11.js} +2 -2
- package/lib/dist-custom-elements/{p-27f66954.js → p-0b141ef0.js} +2 -2
- package/lib/dist-custom-elements/{p-a4a81077.js → p-49ef7e25.js} +2 -2
- package/lib/dist-custom-elements/{p-27efb5f6.js → p-4a060f56.js} +1 -1
- package/lib/dist-custom-elements/{p-e873b671.js → p-4d0f9f83.js} +2 -2
- package/lib/dist-custom-elements/{p-20c82fbd.js → p-57bb44bf.js} +1 -1
- package/lib/dist-custom-elements/{p-e051482f.js → p-5962ecc8.js} +2 -2
- package/lib/dist-custom-elements/{p-ca210b87.js → p-5c9bf9ba.js} +3 -3
- package/lib/dist-custom-elements/{p-a81b913d.js → p-6f0966d2.js} +5 -5
- package/lib/dist-custom-elements/{p-57b9edb8.js → p-70ef0e9d.js} +5 -5
- package/lib/dist-custom-elements/{p-eb0f0871.js → p-75f47a29.js} +2 -2
- package/lib/dist-custom-elements/{p-4b87207e.js → p-8160f98e.js} +6 -6
- package/lib/dist-custom-elements/{p-68024252.js → p-890d1070.js} +9 -1
- package/lib/dist-custom-elements/{p-d6aa9453.js → p-98c77c8d.js} +3 -3
- package/lib/dist-custom-elements/{p-2ea5174d.js → p-9ed66812.js} +1 -1
- package/lib/dist-custom-elements/{p-2ff017a8.js → p-a1863bda.js} +1 -1
- package/lib/dist-custom-elements/{p-82cb614b.js → p-a27921ba.js} +1 -1
- package/lib/dist-custom-elements/{p-4c1f4126.js → p-a2fa664a.js} +1 -1
- package/lib/dist-custom-elements/{p-5808a711.js → p-a3ba0ed5.js} +1 -1
- package/lib/dist-custom-elements/{p-de83b878.js → p-a78d941c.js} +1 -1
- package/lib/dist-custom-elements/{p-111c553d.js → p-b5a87909.js} +2 -2
- package/lib/dist-custom-elements/{p-d2e453e5.js → p-c4689e7b.js} +2 -2
- package/lib/dist-custom-elements/{p-aacb3b95.js → p-c638adb2.js} +1 -1
- package/lib/dist-custom-elements/{p-0acc5ed6.js → p-cbc12626.js} +1 -1
- package/lib/dist-custom-elements/{p-7ccd5f61.js → p-d54ecc52.js} +1 -1
- package/lib/dist-custom-elements/{p-f8646bdd.js → p-d8ca2c64.js} +2 -2
- package/lib/dist-custom-elements/{p-98983cf5.js → p-db20025e.js} +8 -8
- package/lib/dist-custom-elements/{p-b385a866.js → p-f5252ae4.js} +1 -1
- package/lib/dist-custom-elements/{p-a6f793fc.js → p-f5d77e8e.js} +21 -8
- package/lib/dist-custom-elements/{p-00622251.js → p-f9c288b5.js} +4 -4
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-9711aa31.entry.js → p-01dc716d.entry.js} +1 -1
- package/lib/duet/{p-33196e22.entry.js → p-02b08c30.entry.js} +1 -1
- package/lib/duet/{p-8151dad5.system.entry.js → p-02fd20f6.system.entry.js} +1 -1
- package/lib/duet/{p-c820689f.entry.js → p-041b483b.entry.js} +1 -1
- package/lib/duet/{p-da91528a.entry.js → p-0626d8a9.entry.js} +1 -1
- package/lib/duet/{p-ac7ea81a.entry.js → p-0a317f12.entry.js} +1 -1
- package/lib/duet/{p-b5bc42d3.system.entry.js → p-0bcdec8b.system.entry.js} +1 -1
- package/lib/duet/{p-398cb719.entry.js → p-0c1051da.entry.js} +1 -1
- package/lib/duet/{p-1c667631.entry.js → p-0eb4217a.entry.js} +1 -1
- package/lib/duet/{p-59187969.entry.js → p-0ec6a000.entry.js} +1 -1
- package/lib/duet/{p-2bed99fa.system.entry.js → p-11749645.system.entry.js} +1 -1
- package/lib/duet/{p-28f4474e.system.entry.js → p-13540a69.system.entry.js} +1 -1
- package/lib/duet/{p-82e72de8.system.entry.js → p-14ab7ebe.system.entry.js} +1 -1
- package/lib/duet/{p-f7c3b41f.entry.js → p-1522db1d.entry.js} +1 -1
- package/lib/duet/{p-d54e170f.system.entry.js → p-1eccf55b.system.entry.js} +1 -1
- package/lib/duet/{p-a57d2cd7.system.entry.js → p-1eece5bf.system.entry.js} +1 -1
- package/lib/duet/{p-b6ba60c4.entry.js → p-1f66cbb6.entry.js} +1 -1
- package/lib/duet/p-22c2c6d5.system.entry.js +4 -0
- package/lib/duet/p-23ec6f02.entry.js +4 -0
- package/lib/duet/{p-0dd90f16.system.entry.js → p-26f3b159.system.entry.js} +1 -1
- package/lib/duet/{p-2fd74d57.system.entry.js → p-2b1f8599.system.entry.js} +1 -1
- package/lib/duet/{p-5b93cff5.entry.js → p-2c31977d.entry.js} +1 -1
- package/lib/duet/{p-0d8f3f8b.entry.js → p-332dc9a8.entry.js} +1 -1
- package/lib/duet/{p-6020bc32.system.entry.js → p-336c0409.system.entry.js} +1 -1
- package/lib/duet/{p-b323c9dd.entry.js → p-3429690e.entry.js} +1 -1
- package/lib/duet/{p-7454a974.system.entry.js → p-35664bb6.system.entry.js} +1 -1
- package/lib/duet/{p-c85acd95.entry.js → p-3877d445.entry.js} +1 -1
- package/lib/duet/{p-450469cd.system.entry.js → p-3d31b17b.system.entry.js} +1 -1
- package/lib/duet/{p-c76d7cab.entry.js → p-4058cee8.entry.js} +1 -1
- package/lib/duet/{p-afc5adae.entry.js → p-40b5d6b7.entry.js} +1 -1
- package/lib/duet/{p-7f8e1e3e.system.entry.js → p-420af35d.system.entry.js} +1 -1
- package/lib/duet/{p-984e12ad.entry.js → p-42e60321.entry.js} +1 -1
- package/lib/duet/p-44268138.system.js +4 -0
- package/lib/duet/p-450e63a4.system.js +4 -0
- package/lib/duet/{p-7e401d44.entry.js → p-46e061d9.entry.js} +1 -1
- package/lib/duet/{p-d398189d.entry.js → p-474bacf0.entry.js} +1 -1
- package/lib/duet/p-475d42a8.system.entry.js +4 -0
- package/lib/duet/{p-9b4096ae.entry.js → p-482497cd.entry.js} +1 -1
- package/lib/duet/{p-5e68175c.system.entry.js → p-49c7c6fb.system.entry.js} +1 -1
- package/lib/duet/{p-676730a8.system.entry.js → p-49eef496.system.entry.js} +1 -1
- package/lib/duet/p-4af2f77a.entry.js +4 -0
- package/lib/duet/{p-5e97f333.system.entry.js → p-4b457bad.system.entry.js} +1 -1
- package/lib/duet/{p-03a69a82.system.entry.js → p-4c812d78.system.entry.js} +1 -1
- package/lib/duet/{p-4e75e28e.entry.js → p-4d0d61a7.entry.js} +1 -1
- package/lib/duet/{p-50495b74.entry.js → p-4ec88753.entry.js} +1 -1
- package/lib/duet/{p-c86e5e36.system.entry.js → p-50ce994c.system.entry.js} +1 -1
- package/lib/duet/{p-6da60c3a.entry.js → p-50df271c.entry.js} +1 -1
- package/lib/duet/{p-76d453ec.system.entry.js → p-51adf63c.system.entry.js} +1 -1
- package/lib/duet/{p-ce6e2909.entry.js → p-55bdc762.entry.js} +1 -1
- package/lib/duet/{p-f3221a0e.system.entry.js → p-56f913f0.system.entry.js} +1 -1
- package/lib/duet/{p-ddd374b4.system.entry.js → p-5707ba42.system.entry.js} +1 -1
- package/lib/duet/{p-81e5dfca.system.js → p-587e1ad0.system.js} +1 -1
- package/lib/duet/{p-29864af5.system.entry.js → p-5b17dfea.system.entry.js} +1 -1
- package/lib/duet/{p-d5a9a127.entry.js → p-5cfb7c71.entry.js} +1 -1
- package/lib/duet/{p-8442ce22.entry.js → p-5da36d9e.entry.js} +1 -1
- package/lib/duet/{p-84abe886.entry.js → p-60912840.entry.js} +1 -1
- package/lib/duet/p-624d38a3.system.entry.js +4 -0
- package/lib/duet/{p-e98fe1b4.entry.js → p-628600fa.entry.js} +1 -1
- package/lib/duet/{p-8c9438d3.entry.js → p-636e5f15.entry.js} +1 -1
- package/lib/duet/{p-cce99a1d.system.entry.js → p-653eb7ce.system.entry.js} +2 -2
- package/lib/duet/{p-58fb7a22.entry.js → p-67176e9e.entry.js} +1 -1
- package/lib/duet/{p-5ee88d22.entry.js → p-673a6c11.entry.js} +1 -1
- package/lib/duet/{p-07b5abec.system.entry.js → p-6e5abb84.system.entry.js} +1 -1
- package/lib/duet/{p-3bffc1ba.system.entry.js → p-7000ce85.system.entry.js} +1 -1
- package/lib/duet/{p-e016d27b.entry.js → p-728c2f13.entry.js} +1 -1
- package/lib/duet/{p-cee25077.system.entry.js → p-7345aff9.system.entry.js} +1 -1
- package/lib/duet/p-73f9efad.js +4 -0
- package/lib/duet/{p-f3fa09d1.entry.js → p-745645b0.entry.js} +1 -1
- package/lib/duet/p-793dcfc2.js +4 -0
- package/lib/duet/{p-e9c70c19.entry.js → p-7a7ef869.entry.js} +1 -1
- package/lib/duet/{p-2743b8e3.system.entry.js → p-7ecff545.system.entry.js} +1 -1
- package/lib/duet/{p-413a3ebd.system.entry.js → p-81c05491.system.entry.js} +1 -1
- package/lib/duet/{p-576caf16.entry.js → p-825fa6d7.entry.js} +1 -1
- package/lib/duet/{p-663247df.system.entry.js → p-830be23d.system.entry.js} +1 -1
- package/lib/duet/{p-f6adb078.system.entry.js → p-83b776f5.system.entry.js} +1 -1
- package/lib/duet/{p-d38eb818.system.entry.js → p-8ab66620.system.entry.js} +2 -2
- package/lib/duet/{p-248a1e70.system.entry.js → p-8b148f79.system.entry.js} +1 -1
- package/lib/duet/{p-354090fc.entry.js → p-8d98f055.entry.js} +1 -1
- package/lib/duet/p-940f11ad.system.entry.js +4 -0
- package/lib/duet/{p-92a86be1.entry.js → p-955782ae.entry.js} +1 -1
- package/lib/duet/{p-277d8df3.system.entry.js → p-95eb41b3.system.entry.js} +1 -1
- package/lib/duet/{p-9a784d29.system.entry.js → p-9c483f1d.system.entry.js} +1 -1
- package/lib/duet/{p-b32b8786.entry.js → p-9c5001ab.entry.js} +1 -1
- package/lib/duet/{p-21241efd.system.entry.js → p-9d0b30a0.system.entry.js} +1 -1
- package/lib/duet/{p-5df2cedc.entry.js → p-9ebea289.entry.js} +1 -1
- package/lib/duet/{p-b5e831ad.system.entry.js → p-9f1699dc.system.entry.js} +1 -1
- package/lib/duet/{p-ad18ed23.system.entry.js → p-a03c4dcd.system.entry.js} +1 -1
- package/lib/duet/{p-b6e15be0.system.entry.js → p-a0876e2e.system.entry.js} +1 -1
- package/lib/duet/{p-e76b6f2f.entry.js → p-a3b22a18.entry.js} +1 -1
- package/lib/duet/{p-9a5d8dc8.system.entry.js → p-a57772d2.system.entry.js} +1 -1
- package/lib/duet/{p-35872d73.entry.js → p-a74c2dff.entry.js} +1 -1
- package/lib/duet/{p-1acbcfe5.entry.js → p-a7953c81.entry.js} +1 -1
- package/lib/duet/{p-b5813a0f.system.entry.js → p-a92d4f59.system.entry.js} +1 -1
- package/lib/duet/{p-26e5f323.system.entry.js → p-aa79548d.system.entry.js} +1 -1
- package/lib/duet/{p-a38015bf.system.entry.js → p-af932bca.system.entry.js} +1 -1
- package/lib/duet/{p-2c0520ca.system.entry.js → p-b154ecd8.system.entry.js} +1 -1
- package/lib/duet/{p-94c122ea.entry.js → p-b1ae5c07.entry.js} +1 -1
- package/lib/duet/{p-a5f307cc.entry.js → p-b651d2d1.entry.js} +1 -1
- package/lib/duet/{p-76c6eef8.entry.js → p-b672280a.entry.js} +1 -1
- package/lib/duet/{p-f31f949c.system.entry.js → p-b731849c.system.entry.js} +1 -1
- package/lib/duet/{p-0d21f532.entry.js → p-b8705a85.entry.js} +1 -1
- package/lib/duet/{p-dfa1a8cd.entry.js → p-b89cad4d.entry.js} +1 -1
- package/lib/duet/{p-d119935f.entry.js → p-bdc400cf.entry.js} +1 -1
- package/lib/duet/{p-152af7a3.system.entry.js → p-be4bb297.system.entry.js} +1 -1
- package/lib/duet/{p-68750bf4.entry.js → p-bf4ceb06.entry.js} +1 -1
- package/lib/duet/p-c03df848.entry.js +4 -0
- package/lib/duet/{p-258e74a2.system.entry.js → p-c192f269.system.entry.js} +1 -1
- package/lib/duet/{p-37aa45f3.entry.js → p-c2757db1.entry.js} +1 -1
- package/lib/duet/{p-dbc4a1f6.system.entry.js → p-c42f3a40.system.entry.js} +1 -1
- package/lib/duet/{p-76ac794f.system.entry.js → p-c6793076.system.entry.js} +1 -1
- package/lib/duet/{p-19bb927c.system.entry.js → p-c9854b35.system.entry.js} +1 -1
- package/lib/duet/{p-59efa9e0.system.entry.js → p-c9edd0bb.system.entry.js} +1 -1
- package/lib/duet/{p-bbcb7a1d.entry.js → p-ca405201.entry.js} +1 -1
- package/lib/duet/{p-7df39ae6.entry.js → p-cafb90c2.entry.js} +1 -1
- package/lib/duet/{p-7286fe0a.system.entry.js → p-cb9991a5.system.entry.js} +1 -1
- package/lib/duet/{p-540a243d.js → p-cc5a3edc.js} +1 -1
- package/lib/duet/{p-66ab4869.entry.js → p-cdea33d4.entry.js} +1 -1
- package/lib/duet/{p-dee6ebe6.system.entry.js → p-ce00f1fd.system.entry.js} +1 -1
- package/lib/duet/{p-0cd46f36.system.js → p-d0857e1f.system.js} +1 -1
- package/lib/duet/{p-230e5380.entry.js → p-d20fb807.entry.js} +1 -1
- package/lib/duet/{p-d6280581.system.entry.js → p-d24ebe03.system.entry.js} +1 -1
- package/lib/duet/{p-50dad157.entry.js → p-d5f65552.entry.js} +1 -1
- package/lib/duet/{p-920d58da.entry.js → p-d6149423.entry.js} +1 -1
- package/lib/duet/{p-95c7021f.system.entry.js → p-d656d96e.system.entry.js} +1 -1
- package/lib/duet/{p-11c9648d.system.entry.js → p-d71ba70b.system.entry.js} +1 -1
- package/lib/duet/{p-1b2cc0ed.system.entry.js → p-d82963c2.system.entry.js} +1 -1
- package/lib/duet/{p-b3693e82.system.entry.js → p-d9ef6f51.system.entry.js} +1 -1
- package/lib/duet/{p-1c1a784e.system.entry.js → p-da4c713c.system.entry.js} +1 -1
- package/lib/duet/{p-6d204f7f.entry.js → p-da5583ea.entry.js} +1 -1
- package/lib/duet/{p-3791056c.system.entry.js → p-de62f610.system.entry.js} +1 -1
- package/lib/duet/{p-7caf9f8c.entry.js → p-e078ba11.entry.js} +1 -1
- package/lib/duet/{p-5632e848.entry.js → p-e4f417fe.entry.js} +1 -1
- package/lib/duet/{p-53ec70ad.entry.js → p-e4faf457.entry.js} +1 -1
- package/lib/duet/{p-8bd0fbf8.entry.js → p-e65709fc.entry.js} +1 -1
- package/lib/duet/{p-e4e8671a.system.entry.js → p-e66936a4.system.entry.js} +1 -1
- package/lib/duet/{p-d08acf37.system.entry.js → p-e6d1e0be.system.entry.js} +1 -1
- package/lib/duet/{p-fe039b5e.entry.js → p-f2f60847.entry.js} +1 -1
- package/lib/duet/{p-bd426f15.entry.js → p-f3d588ab.entry.js} +1 -1
- package/lib/duet/{p-5ab222b7.system.entry.js → p-f6e2e71a.system.entry.js} +1 -1
- package/lib/duet/{p-e483eaf7.entry.js → p-fbc7ad71.entry.js} +1 -1
- package/lib/duet/{p-a3b02dfe.system.entry.js → p-ffbb062e.system.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 +39 -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 +2 -2
- package/lib/esm/duet-collapsible.entry.js +2 -2
- 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 +5 -2
- 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 +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +2 -2
- 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 +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +23 -5
- 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 +1 -1
- 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-b482bcb1.js} +1 -1
- package/lib/esm/{index-ccc5c541.js → index-5a68b13e.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/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 +2 -2
- 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 +1 -1
- 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-b482bcb1.js +4 -0
- package/lib/esm-es5/{index-ccc5c541.js → index-5a68b13e.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-5f4f3897.js +4 -0
- package/lib/types/components/duet-callout/duet-callout.d.ts +26 -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.d.ts +31 -0
- package/lib/types/utils/token-utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-01470001.system.entry.js +0 -4
- package/lib/duet/p-0ee30eab.system.entry.js +0 -4
- package/lib/duet/p-12fd0273.js +0 -4
- package/lib/duet/p-621e8af8.js +0 -4
- package/lib/duet/p-756f81d6.system.js +0 -4
- package/lib/duet/p-8acfaf91.system.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-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,98 @@
|
|
|
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.theme = "";
|
|
13
|
+
this.margin = "auto";
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Component lifecycle events.
|
|
17
|
+
*/
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
inheritGlobalTheme(this);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* render() function
|
|
23
|
+
* Always the last one in the class.
|
|
24
|
+
*/
|
|
25
|
+
render() {
|
|
26
|
+
const icon = `<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
27
|
+
<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"/>
|
|
28
|
+
</svg>
|
|
29
|
+
`;
|
|
30
|
+
return (h(Host, null, h("div", { class: {
|
|
31
|
+
"duet-callout": true,
|
|
32
|
+
"duet-theme-turva": this.theme === "turva",
|
|
33
|
+
"duet-m-0": this.margin === "none",
|
|
34
|
+
} }, 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" }), h("blockquote", null, h("duet-paragraph", { variation: "intro", weight: "semi-bold", margin: "none" }, h("slot", null))), h("figcaption", { class: "author" }, h("span", null, "\u2014 "), h("span", null, h("slot", { name: "author" })))))));
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "duet-callout"; }
|
|
37
|
+
static get encapsulation() { return "shadow"; }
|
|
38
|
+
static get originalStyleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["duet-callout.scss"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get styleUrls() {
|
|
44
|
+
return {
|
|
45
|
+
"$": ["duet-callout.css"]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static get properties() {
|
|
49
|
+
return {
|
|
50
|
+
"theme": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": true,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "DuetTheme",
|
|
55
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
56
|
+
"references": {
|
|
57
|
+
"DuetTheme": {
|
|
58
|
+
"location": "import",
|
|
59
|
+
"path": "../../common-types"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": "Theme of the caption."
|
|
68
|
+
},
|
|
69
|
+
"attribute": "theme",
|
|
70
|
+
"reflect": false,
|
|
71
|
+
"defaultValue": "\"\""
|
|
72
|
+
},
|
|
73
|
+
"margin": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "DuetMargin",
|
|
78
|
+
"resolved": "\"auto\" | \"none\"",
|
|
79
|
+
"references": {
|
|
80
|
+
"DuetMargin": {
|
|
81
|
+
"location": "import",
|
|
82
|
+
"path": "../../common-types"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Controls the margin of the component."
|
|
91
|
+
},
|
|
92
|
+
"attribute": "margin",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "\"auto\""
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -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
|
|
|
@@ -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() {
|
|
@@ -130,6 +130,9 @@ export class DuetUpload {
|
|
|
130
130
|
const fileItem = this.files.get(item);
|
|
131
131
|
fileItem[key] = value;
|
|
132
132
|
this.files.set(item, fileItem);
|
|
133
|
+
if (this.external && key !== "url") {
|
|
134
|
+
this.trackProgress(item, key === "uploaded");
|
|
135
|
+
}
|
|
133
136
|
}
|
|
134
137
|
catch (e) {
|
|
135
138
|
// if a users tries to update entries on a file that doesn't exist,
|
|
@@ -103,6 +103,14 @@ export function getFontSizeByName(name) {
|
|
|
103
103
|
export function getFontWeightByName(name) {
|
|
104
104
|
return getTokenByName("fontWeight", name);
|
|
105
105
|
}
|
|
106
|
+
export function rgbaColorFromRgb(color, opacity) {
|
|
107
|
+
if (!color || (opacity !== 0 && !opacity)) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
const f = color.split(",");
|
|
111
|
+
const R = parseInt(f[0].slice(4)), G = parseInt(f[1]), B = parseInt(f[2]);
|
|
112
|
+
return `rgba(${R},${G},${B},${opacity})`;
|
|
113
|
+
}
|
|
106
114
|
export function shadeRGBColor(color, percent) {
|
|
107
115
|
const f = color.split(","), t = percent < 0 ? 0 : 255, p = percent < 0 ? percent * -1 : percent;
|
|
108
116
|
let R = parseInt(f[0].slice(4)), G = parseInt(f[1]), B = parseInt(f[2]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-f9c288b5.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-70ef0e9d.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-f5252ae4.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-a1863bda.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-f5d77e8e.js';
|
|
7
7
|
|
|
8
8
|
const duetBreadcrumbCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-a1863bda.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { a as getLocaleString } from './p-076452be.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-f5d77e8e.js';
|
|
8
8
|
|
|
9
9
|
var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-6f0966d2.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DuetCallout extends Components.DuetCallout, HTMLElement {}
|
|
4
|
+
export const DuetCallout: {
|
|
5
|
+
prototype: DuetCallout;
|
|
6
|
+
new (): DuetCallout;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-a1863bda.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-f5d77e8e.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-5962ecc8.js';
|
|
8
|
+
|
|
9
|
+
const duetCalloutCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout .author{color:rgb(0, 41, 77)}.duet-callout.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-callout.duet-theme-turva .author{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}";
|
|
10
|
+
|
|
11
|
+
const DuetCallout$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
this.__attachShadow();
|
|
16
|
+
this.theme = "";
|
|
17
|
+
this.margin = "auto";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Component lifecycle events.
|
|
21
|
+
*/
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
inheritGlobalTheme(this);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* render() function
|
|
27
|
+
* Always the last one in the class.
|
|
28
|
+
*/
|
|
29
|
+
render() {
|
|
30
|
+
const icon = `<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31
|
+
<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"/>
|
|
32
|
+
</svg>
|
|
33
|
+
`;
|
|
34
|
+
return (h(Host, null, h("div", { class: {
|
|
35
|
+
"duet-callout": true,
|
|
36
|
+
"duet-theme-turva": this.theme === "turva",
|
|
37
|
+
"duet-m-0": this.margin === "none",
|
|
38
|
+
} }, 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" }), h("blockquote", null, h("duet-paragraph", { variation: "intro", weight: "semi-bold", margin: "none" }, h("slot", null))), h("figcaption", { class: "author" }, h("span", null, "\u2014 "), h("span", null, h("slot", { name: "author" })))))));
|
|
39
|
+
}
|
|
40
|
+
static get style() { return duetCalloutCss; }
|
|
41
|
+
}, [1, "duet-callout", {
|
|
42
|
+
"theme": [1025],
|
|
43
|
+
"margin": [1]
|
|
44
|
+
}]);
|
|
45
|
+
function defineCustomElement$1() {
|
|
46
|
+
if (typeof customElements === "undefined") {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const components = ["duet-callout", "duet-icon", "duet-paragraph"];
|
|
50
|
+
components.forEach(tagName => { switch (tagName) {
|
|
51
|
+
case "duet-callout":
|
|
52
|
+
if (!customElements.get(tagName)) {
|
|
53
|
+
customElements.define(tagName, DuetCallout$1);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case "duet-icon":
|
|
57
|
+
if (!customElements.get(tagName)) {
|
|
58
|
+
defineCustomElement$3();
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case "duet-paragraph":
|
|
62
|
+
if (!customElements.get(tagName)) {
|
|
63
|
+
defineCustomElement$2();
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
} });
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const DuetCallout = DuetCallout$1;
|
|
70
|
+
const defineCustomElement = defineCustomElement$1;
|
|
71
|
+
|
|
72
|
+
export { DuetCallout, defineCustomElement };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-c638adb2.js';
|
|
5
5
|
|
|
6
6
|
const DuetCaption = DuetCaption$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-a1863bda.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
8
8
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
9
|
-
import { g as getColorByName } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
9
|
+
import { g as getColorByName } from './p-890d1070.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-f5d77e8e.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-4a060f56.js';
|
|
12
12
|
|
|
13
13
|
const duetHeadingLevels = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
14
14
|
const duetBlock = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-d54ecc52.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckbox = DuetCheckbox$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-087e9427.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|