@duetds/components 6.9.7 → 6.9.9
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 +103 -21
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +5 -2
- package/lib/cjs/duet-banner.cjs.entry.js +58 -0
- 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 +1 -1
- package/lib/cjs/duet-callout.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +34 -21
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- 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 +1 -1
- 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-8852d70c.js → focus-utils-fa983dd9.js} +1 -1
- package/lib/cjs/{index-8baedc34.js → index-6458021e.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/collection-manifest.json +1 -0
- package/lib/collection/components/duet-badge/duet-badge.css +30 -0
- package/lib/collection/components/duet-badge/duet-badge.js +25 -1
- package/lib/collection/components/duet-banner/duet-banner.css +238 -0
- package/lib/collection/components/duet-banner/duet-banner.js +282 -0
- package/lib/collection/components/duet-upload/duet-upload.css +2 -1
- package/lib/collection/components/duet-upload/duet-upload.js +29 -16
- package/lib/collection/components/duet-upload/upload-item.js +1 -1
- package/lib/collection/components/duet-upload/upload-validators.js +2 -2
- 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-banner.d.ts +11 -0
- package/lib/dist-custom-elements/duet-banner.js +106 -0
- 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.js +3 -3
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +2 -2
- 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 +2 -2
- 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 +50 -37
- 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-c243ec01.js → p-03a771e5.js} +1 -1
- package/lib/dist-custom-elements/{p-cbb67f4e.js → p-03fac45c.js} +6 -2
- package/lib/dist-custom-elements/{p-783a8425.js → p-05a05595.js} +2 -2
- package/lib/dist-custom-elements/{p-e4e40736.js → p-0a69e3b3.js} +2 -2
- package/lib/dist-custom-elements/{p-4d20fcd1.js → p-0cb56bb9.js} +1 -1
- package/lib/dist-custom-elements/{p-5119f1dc.js → p-1c96efe4.js} +5 -5
- package/lib/dist-custom-elements/{p-1d207f70.js → p-2016d4b6.js} +4 -4
- package/lib/dist-custom-elements/{p-f2d8763d.js → p-28a2867d.js} +2 -2
- package/lib/dist-custom-elements/{p-f83c1df9.js → p-2f00315d.js} +1 -1
- package/lib/dist-custom-elements/{p-99687f8f.js → p-33febd8f.js} +6 -6
- package/lib/dist-custom-elements/{p-e080ccaa.js → p-41292d2c.js} +1 -1
- package/lib/dist-custom-elements/{p-e2a3c6fa.js → p-5a47bc96.js} +2 -2
- package/lib/dist-custom-elements/{p-d95944c8.js → p-5b5d17f3.js} +1 -1
- package/lib/dist-custom-elements/{p-369a9e6b.js → p-5ead396d.js} +3 -3
- package/lib/dist-custom-elements/{p-1635a5ff.js → p-64a956b4.js} +3 -3
- package/lib/dist-custom-elements/{p-7e395433.js → p-6b78d508.js} +1 -1
- package/lib/dist-custom-elements/{p-68be9a91.js → p-6ff98382.js} +1 -1
- package/lib/dist-custom-elements/{p-93fab31d.js → p-7dd80f67.js} +1 -1
- package/lib/dist-custom-elements/{p-5183d2cf.js → p-82c0eb06.js} +1 -1
- package/lib/dist-custom-elements/{p-649043a8.js → p-8602f0db.js} +2 -2
- package/lib/dist-custom-elements/{p-8bad78a6.js → p-87d2c0ec.js} +1 -1
- package/lib/dist-custom-elements/{p-62683175.js → p-89f3161e.js} +1 -1
- package/lib/dist-custom-elements/{p-87df78c6.js → p-91b3be02.js} +1 -1
- package/lib/dist-custom-elements/{p-2a351223.js → p-92a019ee.js} +1 -1
- package/lib/dist-custom-elements/{p-53c27e8e.js → p-c378c210.js} +1 -1
- package/lib/dist-custom-elements/{p-efa5255b.js → p-c743a945.js} +1 -1
- package/lib/dist-custom-elements/{p-7a905f45.js → p-ca2e89f9.js} +3 -3
- package/lib/dist-custom-elements/{p-67365843.js → p-ce8cf9ec.js} +1 -1
- package/lib/dist-custom-elements/{p-3d6100be.js → p-dcffecc4.js} +1 -1
- package/lib/dist-custom-elements/{p-9d1b018a.js → p-f75ab0c6.js} +1 -1
- package/lib/dist-custom-elements/{p-f0e99128.js → p-fa15f186.js} +8 -8
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-75316086.entry.js → p-01717a41.entry.js} +1 -1
- package/lib/duet/{p-c50233e1.entry.js → p-02c4a268.entry.js} +1 -1
- package/lib/duet/{p-e6f92c08.system.entry.js → p-05facbba.system.entry.js} +1 -1
- package/lib/duet/{p-981f2443.system.entry.js → p-07cd43dd.system.entry.js} +1 -1
- package/lib/duet/{p-d1b6fd73.system.entry.js → p-07dc92fb.system.entry.js} +1 -1
- package/lib/duet/p-098d8b8a.entry.js +4 -0
- package/lib/duet/{p-991271a2.entry.js → p-09a14ff5.entry.js} +1 -1
- package/lib/duet/{p-7f94280a.system.entry.js → p-0befd44d.system.entry.js} +1 -1
- package/lib/duet/{p-93a2c807.entry.js → p-0f35e1d3.entry.js} +1 -1
- package/lib/duet/{p-5e6542bc.entry.js → p-0fef3886.entry.js} +1 -1
- package/lib/duet/{p-2879b97d.entry.js → p-11315361.entry.js} +1 -1
- package/lib/duet/{p-1028e393.system.entry.js → p-11cd9794.system.entry.js} +1 -1
- package/lib/duet/{p-4cb43c38.entry.js → p-137eac42.entry.js} +1 -1
- package/lib/duet/{p-07d0ed0a.system.entry.js → p-1a066cc4.system.entry.js} +1 -1
- package/lib/duet/{p-42844e9d.system.entry.js → p-1a5f720a.system.entry.js} +1 -1
- package/lib/duet/{p-f5fd8e55.entry.js → p-1b2b7dff.entry.js} +1 -1
- package/lib/duet/{p-a341e9c3.entry.js → p-1e1c669f.entry.js} +1 -1
- package/lib/duet/{p-36bca919.system.entry.js → p-1f6604b6.system.entry.js} +1 -1
- package/lib/duet/{p-675f844b.entry.js → p-207e6b86.entry.js} +1 -1
- package/lib/duet/{p-9f81873c.entry.js → p-223ddc9e.entry.js} +1 -1
- package/lib/duet/p-2cf26ac0.entry.js +4 -0
- package/lib/duet/{p-b90cdb91.entry.js → p-2f52c5c4.entry.js} +1 -1
- package/lib/duet/{p-2d71fa26.entry.js → p-3004c42c.entry.js} +1 -1
- package/lib/duet/{p-0a6ff475.entry.js → p-3210abe1.entry.js} +1 -1
- package/lib/duet/{p-12afe002.entry.js → p-33795872.entry.js} +1 -1
- package/lib/duet/{p-458dd158.entry.js → p-33e2e7fb.entry.js} +1 -1
- package/lib/duet/{p-4a4cbba5.entry.js → p-37c7cf28.entry.js} +1 -1
- package/lib/duet/{p-bef59086.system.entry.js → p-39881509.system.entry.js} +1 -1
- package/lib/duet/{p-a042bc85.system.entry.js → p-3d2ff3f6.system.entry.js} +2 -2
- package/lib/duet/{p-d6196775.system.entry.js → p-3f7eb02a.system.entry.js} +1 -1
- package/lib/duet/{p-97df072f.system.entry.js → p-3fafab99.system.entry.js} +1 -1
- package/lib/duet/{p-853ac360.entry.js → p-40832454.entry.js} +1 -1
- package/lib/duet/{p-752fb0a0.system.entry.js → p-408c3116.system.entry.js} +1 -1
- package/lib/duet/{p-c94a423f.entry.js → p-44853a8f.entry.js} +1 -1
- package/lib/duet/{p-401a454b.system.entry.js → p-45b5eb38.system.entry.js} +1 -1
- package/lib/duet/{p-a9d7b38d.entry.js → p-4a8f88cd.entry.js} +1 -1
- package/lib/duet/{p-68ee9bfa.system.entry.js → p-4c13b341.system.entry.js} +1 -1
- package/lib/duet/{p-2125b071.entry.js → p-4fd6be33.entry.js} +1 -1
- package/lib/duet/{p-d4d2569e.entry.js → p-50086422.entry.js} +1 -1
- package/lib/duet/{p-7fefe439.entry.js → p-553810c1.entry.js} +1 -1
- package/lib/duet/{p-c56dd6d7.entry.js → p-55d93288.entry.js} +1 -1
- package/lib/duet/{p-98777ba0.system.entry.js → p-59c24c1d.system.entry.js} +1 -1
- package/lib/duet/{p-344134e5.system.entry.js → p-59d5ce79.system.entry.js} +1 -1
- package/lib/duet/p-5c932b27.entry.js +4 -0
- package/lib/duet/{p-45fe4429.entry.js → p-5d8d2ad9.entry.js} +1 -1
- package/lib/duet/p-5ec46b22.system.entry.js +4 -0
- package/lib/duet/{p-1a0b0fe9.system.entry.js → p-5ec6c209.system.entry.js} +1 -1
- package/lib/duet/{p-e5d2b68e.entry.js → p-64451781.entry.js} +1 -1
- package/lib/duet/{p-a6aba2d3.entry.js → p-675d2789.entry.js} +1 -1
- package/lib/duet/{p-1396c277.system.entry.js → p-677e25e4.system.entry.js} +1 -1
- package/lib/duet/p-67f9d03d.entry.js +4 -0
- package/lib/duet/{p-0fc1b439.system.entry.js → p-69af241b.system.entry.js} +1 -1
- package/lib/duet/{p-cca182be.js → p-6a5197de.js} +1 -1
- package/lib/duet/p-6a912ecd.entry.js +4 -0
- package/lib/duet/{p-0e165a4e.system.entry.js → p-70296f0d.system.entry.js} +1 -1
- package/lib/duet/p-70813bbd.entry.js +4 -0
- package/lib/duet/{p-91be047f.system.entry.js → p-723cfa6b.system.entry.js} +1 -1
- package/lib/duet/{p-03bd5373.entry.js → p-738d8474.entry.js} +1 -1
- package/lib/duet/{p-466c4910.system.entry.js → p-7513fd0c.system.entry.js} +1 -1
- package/lib/duet/{p-7e3e70df.entry.js → p-7585b32b.entry.js} +1 -1
- package/lib/duet/{p-de82bfee.entry.js → p-7979217a.entry.js} +1 -1
- package/lib/duet/{p-097da893.system.entry.js → p-79cdfdac.system.entry.js} +1 -1
- package/lib/duet/{p-5573222d.system.entry.js → p-7d6f73b0.system.entry.js} +1 -1
- package/lib/duet/{p-3e7b62a4.entry.js → p-8461814e.entry.js} +1 -1
- package/lib/duet/{p-0f80e2fc.entry.js → p-847ef90d.entry.js} +1 -1
- package/lib/duet/{p-09d4bac7.system.entry.js → p-85172888.system.entry.js} +1 -1
- package/lib/duet/{p-e0848924.system.entry.js → p-858a8c64.system.entry.js} +1 -1
- package/lib/duet/{p-62a63d5b.system.entry.js → p-8608217b.system.entry.js} +1 -1
- package/lib/duet/{p-106abf71.system.entry.js → p-86d94665.system.entry.js} +1 -1
- package/lib/duet/{p-e05c4a5b.entry.js → p-8764cdb4.entry.js} +1 -1
- package/lib/duet/{p-3de9ea90.entry.js → p-8959a0c0.entry.js} +1 -1
- package/lib/duet/{p-41a69e48.system.entry.js → p-898bc783.system.entry.js} +1 -1
- package/lib/duet/{p-a1a8395b.entry.js → p-8aafd4a7.entry.js} +1 -1
- package/lib/duet/{p-bb97ab92.entry.js → p-8bfb274a.entry.js} +1 -1
- package/lib/duet/{p-92e94229.system.entry.js → p-8dcbf05c.system.entry.js} +1 -1
- package/lib/duet/{p-4c1fb962.entry.js → p-8e562cf5.entry.js} +1 -1
- package/lib/duet/{p-79dd09a6.system.entry.js → p-8f689ce6.system.entry.js} +1 -1
- package/lib/duet/{p-c504d7cd.system.entry.js → p-930685a4.system.entry.js} +1 -1
- package/lib/duet/{p-9916b7d2.system.entry.js → p-934ced59.system.entry.js} +1 -1
- package/lib/duet/{p-2bc4d34e.system.entry.js → p-938f359e.system.entry.js} +1 -1
- package/lib/duet/p-95e8df59.system.entry.js +4 -0
- package/lib/duet/{p-b4ff5c09.entry.js → p-962195fb.entry.js} +1 -1
- package/lib/duet/{p-70e49d00.entry.js → p-9710c3f7.entry.js} +1 -1
- package/lib/duet/{p-66fbed51.entry.js → p-9a1ecf90.entry.js} +1 -1
- package/lib/duet/{p-48ef2786.system.entry.js → p-9bdfa86b.system.entry.js} +2 -2
- package/lib/duet/{p-6dc868fd.entry.js → p-a19b6ccf.entry.js} +1 -1
- package/lib/duet/{p-32eecc8d.system.entry.js → p-a1b05275.system.entry.js} +1 -1
- package/lib/duet/{p-2d5be93c.system.entry.js → p-a2227d28.system.entry.js} +1 -1
- package/lib/duet/{p-f5a74f01.js → p-a49a5097.js} +1 -1
- package/lib/duet/{p-6a0f118b.system.entry.js → p-a4de801d.system.entry.js} +1 -1
- package/lib/duet/{p-0b752687.system.entry.js → p-abeb3b84.system.entry.js} +1 -1
- package/lib/duet/{p-cff8b0b3.entry.js → p-af4ac5be.entry.js} +1 -1
- package/lib/duet/{p-3e2c87e6.entry.js → p-af87553c.entry.js} +1 -1
- package/lib/duet/{p-a653bb02.entry.js → p-afe7ce51.entry.js} +1 -1
- package/lib/duet/{p-6325ae2d.entry.js → p-b080376a.entry.js} +1 -1
- package/lib/duet/{p-3b1ff9be.system.entry.js → p-b0fcda06.system.entry.js} +1 -1
- package/lib/duet/{p-da04e483.system.entry.js → p-b2626ec8.system.entry.js} +1 -1
- package/lib/duet/{p-7cf776fa.system.entry.js → p-b5d900d3.system.entry.js} +1 -1
- package/lib/duet/{p-e057d8c4.system.entry.js → p-b66695ef.system.entry.js} +1 -1
- package/lib/duet/{p-79eb3572.entry.js → p-b719e4cb.entry.js} +1 -1
- package/lib/duet/{p-1677ce5c.system.entry.js → p-b82d0fdb.system.entry.js} +1 -1
- package/lib/duet/{p-3c88792b.entry.js → p-b8bcc305.entry.js} +1 -1
- package/lib/duet/{p-ed16d00b.system.entry.js → p-bd1849d6.system.entry.js} +1 -1
- package/lib/duet/{p-8349ff2d.system.entry.js → p-bf455575.system.entry.js} +1 -1
- package/lib/duet/{p-9c127e8f.entry.js → p-c04c6248.entry.js} +1 -1
- package/lib/duet/{p-8d5edbbe.system.entry.js → p-c09bbafd.system.entry.js} +1 -1
- package/lib/duet/{p-a903a315.entry.js → p-c2bb41f9.entry.js} +1 -1
- package/lib/duet/{p-04da22d7.system.entry.js → p-c3d22035.system.entry.js} +1 -1
- package/lib/duet/{p-dc4b4a04.system.entry.js → p-c5114bba.system.entry.js} +1 -1
- package/lib/duet/{p-08693a37.entry.js → p-c733066c.entry.js} +1 -1
- package/lib/duet/{p-9791ab1b.system.entry.js → p-c7ad00f4.system.entry.js} +1 -1
- package/lib/duet/{p-e65bc05f.system.entry.js → p-c7c6b436.system.entry.js} +1 -1
- package/lib/duet/{p-1c0a39db.entry.js → p-c8ba04d5.entry.js} +1 -1
- package/lib/duet/{p-29b9e99e.entry.js → p-cec4aeeb.entry.js} +1 -1
- package/lib/duet/{p-57a26a2a.entry.js → p-d1ed830b.entry.js} +1 -1
- package/lib/duet/{p-2c68ee2d.system.entry.js → p-d5e6a304.system.entry.js} +1 -1
- package/lib/duet/{p-613156e6.system.entry.js → p-d845a37f.system.entry.js} +1 -1
- package/lib/duet/{p-5d15cd89.system.entry.js → p-d85a7192.system.entry.js} +1 -1
- package/lib/duet/{p-afcfc528.system.entry.js → p-dc811a3d.system.entry.js} +1 -1
- package/lib/duet/{p-f691d0b6.entry.js → p-deb0bb9c.entry.js} +1 -1
- package/lib/duet/{p-9ec19751.entry.js → p-df68b590.entry.js} +1 -1
- package/lib/duet/{p-df7481e8.entry.js → p-e1284442.entry.js} +1 -1
- package/lib/duet/{p-4c7fb05f.system.entry.js → p-e2cd279a.system.entry.js} +1 -1
- package/lib/duet/{p-029f96ec.system.entry.js → p-e46fa9a5.system.entry.js} +1 -1
- package/lib/duet/{p-97528238.system.entry.js → p-eb8a72f4.system.entry.js} +1 -1
- package/lib/duet/p-ebc26c88.system.js +4 -0
- package/lib/duet/{p-7bab508c.system.js → p-ec3e32a8.system.js} +1 -1
- package/lib/duet/{p-c6a321f1.system.entry.js → p-ec943cac.system.entry.js} +1 -1
- package/lib/duet/{p-5c17a74a.system.entry.js → p-ed2e78a7.system.entry.js} +1 -1
- package/lib/duet/{p-7b99f674.entry.js → p-ed758b6d.entry.js} +1 -1
- package/lib/duet/{p-6dcce504.system.entry.js → p-ee9b7edd.system.entry.js} +1 -1
- package/lib/duet/{p-f8d91f4b.entry.js → p-f1e68813.entry.js} +1 -1
- package/lib/duet/{p-6ba40ef9.system.entry.js → p-f36d48e8.system.entry.js} +1 -1
- package/lib/duet/{p-0a03a862.system.entry.js → p-f3e40435.system.entry.js} +1 -1
- package/lib/duet/{p-44f22e6b.entry.js → p-f42965e7.entry.js} +1 -1
- package/lib/duet/{p-d7e6a4ed.system.js → p-f4b68f29.system.js} +1 -1
- package/lib/duet/{p-789a9af4.entry.js → p-f6cff5e9.entry.js} +1 -1
- package/lib/duet/{p-0cdc880e.entry.js → p-f893eaf3.entry.js} +1 -1
- package/lib/duet/{p-f7fbc435.entry.js → p-f960017b.entry.js} +1 -1
- package/lib/duet/{p-3d6d2012.system.entry.js → p-fc5b6b43.system.entry.js} +1 -1
- package/lib/duet/{p-5f7a2639.system.entry.js → p-fcb0872f.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +5 -2
- package/lib/esm/duet-banner.entry.js +54 -0
- 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 +1 -1
- package/lib/esm/duet-callout.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +34 -21
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- 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 +1 -1
- 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-1e6af8c1.js → focus-utils-9f1c7598.js} +1 -1
- package/lib/esm/{index-77de1d56.js → index-73ee1942.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- 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-banner.entry.js +4 -0
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
- 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-9f1c7598.js +4 -0
- package/lib/esm-es5/{index-77de1d56.js → index-73ee1942.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-badge/duet-badge.d.ts +6 -1
- package/lib/types/components/duet-banner/duet-banner.d.ts +57 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +1 -0
- package/lib/types/components.d.ts +105 -2
- package/package.json +5 -5
- package/lib/duet/p-01d38ac9.entry.js +0 -4
- package/lib/duet/p-151892ff.system.entry.js +0 -4
- package/lib/duet/p-1c0453e0.system.js +0 -4
- package/lib/duet/p-4634f44d.entry.js +0 -4
- package/lib/duet/p-5074accf.entry.js +0 -4
- package/lib/duet/p-c39467e4.entry.js +0 -4
- package/lib/duet/p-d3bba23f.entry.js +0 -4
- package/lib/esm-es5/focus-utils-1e6af8c1.js +0 -4
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"./components/duet-tooltip/duet-tooltip.js",
|
|
48
48
|
"./components/duet-upload/duet-upload.js",
|
|
49
49
|
"./components/duet-badge/duet-badge.js",
|
|
50
|
+
"./components/duet-banner/duet-banner.js",
|
|
50
51
|
"./components/duet-breadcrumbs/duet-breadcrumb.js",
|
|
51
52
|
"./components/duet-breadcrumbs/duet-breadcrumbs.js",
|
|
52
53
|
"./components/duet-callout/duet-callout.js",
|
|
@@ -79,4 +79,34 @@
|
|
|
79
79
|
}
|
|
80
80
|
.duet-badge.success.duet-theme-turva {
|
|
81
81
|
background: #e6f3ed;
|
|
82
|
+
}
|
|
83
|
+
.duet-badge.background-strong.default {
|
|
84
|
+
color: rgb(255, 255, 255);
|
|
85
|
+
background: rgb(0, 119, 179);
|
|
86
|
+
}
|
|
87
|
+
.duet-badge.background-strong.default.duet-theme-turva {
|
|
88
|
+
color: rgb(255, 255, 255);
|
|
89
|
+
background: rgb(23, 28, 58);
|
|
90
|
+
}
|
|
91
|
+
.duet-badge.background-strong.warning {
|
|
92
|
+
background: rgb(247, 178, 40);
|
|
93
|
+
}
|
|
94
|
+
.duet-badge.background-strong.warning.duet-theme-turva {
|
|
95
|
+
background: rgb(250, 164, 15);
|
|
96
|
+
}
|
|
97
|
+
.duet-badge.background-strong.danger {
|
|
98
|
+
color: rgb(255, 255, 255);
|
|
99
|
+
background: rgb(222, 35, 98);
|
|
100
|
+
}
|
|
101
|
+
.duet-badge.background-strong.danger.duet-theme-turva {
|
|
102
|
+
color: rgb(255, 255, 255);
|
|
103
|
+
background: rgb(224, 42, 13);
|
|
104
|
+
}
|
|
105
|
+
.duet-badge.background-strong.success {
|
|
106
|
+
color: rgb(255, 255, 255);
|
|
107
|
+
background: rgb(0, 135, 90);
|
|
108
|
+
}
|
|
109
|
+
.duet-badge.background-strong.success.duet-theme-turva {
|
|
110
|
+
color: rgb(255, 255, 255);
|
|
111
|
+
background: rgb(8, 135, 78);
|
|
82
112
|
}
|
|
@@ -7,6 +7,7 @@ export class DuetBadge {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
this.theme = "";
|
|
9
9
|
this.variation = "default";
|
|
10
|
+
this.background = "normal";
|
|
10
11
|
this.margin = "auto";
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
@@ -20,9 +21,11 @@ export class DuetBadge {
|
|
|
20
21
|
* Always the last one of the class.
|
|
21
22
|
*/
|
|
22
23
|
render() {
|
|
24
|
+
const backgroundClass = `background-${this.background}`;
|
|
23
25
|
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("div", { class: {
|
|
24
26
|
"duet-badge": true,
|
|
25
27
|
[this.variation]: true,
|
|
28
|
+
[backgroundClass]: true,
|
|
26
29
|
"duet-theme-turva": this.theme === "turva",
|
|
27
30
|
} }, h("slot", null))));
|
|
28
31
|
}
|
|
@@ -80,12 +83,33 @@ export class DuetBadge {
|
|
|
80
83
|
"optional": false,
|
|
81
84
|
"docs": {
|
|
82
85
|
"tags": [],
|
|
83
|
-
"text": "Style variation of the
|
|
86
|
+
"text": "Style variation of the badge."
|
|
84
87
|
},
|
|
85
88
|
"attribute": "variation",
|
|
86
89
|
"reflect": false,
|
|
87
90
|
"defaultValue": "\"default\""
|
|
88
91
|
},
|
|
92
|
+
"background": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "\"normal\" | \"strong\"",
|
|
97
|
+
"resolved": "\"normal\" | \"strong\"",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [{
|
|
104
|
+
"name": "default",
|
|
105
|
+
"text": "\"normal\""
|
|
106
|
+
}],
|
|
107
|
+
"text": "Variation of the background. \"strong\" results in a more prominent background color."
|
|
108
|
+
},
|
|
109
|
+
"attribute": "background",
|
|
110
|
+
"reflect": false,
|
|
111
|
+
"defaultValue": "\"normal\""
|
|
112
|
+
},
|
|
89
113
|
"margin": {
|
|
90
114
|
"type": "string",
|
|
91
115
|
"mutable": false,
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
margin-right: 4px !important;
|
|
24
|
+
margin-bottom: 2px !important;
|
|
25
|
+
display: block;
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
28
|
+
:host:last-child, :host:last-of-type {
|
|
29
|
+
margin-right: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host(.duet-m-0) {
|
|
33
|
+
margin: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.duet-banner {
|
|
37
|
+
display: grid;
|
|
38
|
+
width: 100%;
|
|
39
|
+
width: 100%;
|
|
40
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
41
|
+
font-style: normal;
|
|
42
|
+
text-align: left;
|
|
43
|
+
border-radius: 24px;
|
|
44
|
+
}
|
|
45
|
+
.duet-banner.duet-p-0 {
|
|
46
|
+
padding: 0 !important;
|
|
47
|
+
}
|
|
48
|
+
.duet-banner.duet-m-0 {
|
|
49
|
+
margin: 0 !important;
|
|
50
|
+
}
|
|
51
|
+
.duet-banner .visual {
|
|
52
|
+
position: relative;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
border-top-left-radius: 24px;
|
|
55
|
+
border-top-right-radius: 24px;
|
|
56
|
+
}
|
|
57
|
+
.duet-banner .visual .image-container {
|
|
58
|
+
position: relative;
|
|
59
|
+
width: 400px;
|
|
60
|
+
height: 400px;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
border-radius: 20%;
|
|
63
|
+
transform: rotate(7deg);
|
|
64
|
+
}
|
|
65
|
+
.duet-banner .visual .image {
|
|
66
|
+
position: relative;
|
|
67
|
+
top: 20px;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
transform: rotate(-7deg);
|
|
71
|
+
object-fit: cover;
|
|
72
|
+
}
|
|
73
|
+
.duet-banner .visual .icon {
|
|
74
|
+
position: absolute;
|
|
75
|
+
}
|
|
76
|
+
.duet-banner .content {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 8px;
|
|
80
|
+
padding: 0 20px 36px;
|
|
81
|
+
}
|
|
82
|
+
.duet-banner.small {
|
|
83
|
+
grid-template-rows: 335px 1fr;
|
|
84
|
+
max-width: 335px;
|
|
85
|
+
}
|
|
86
|
+
.duet-banner.small .visual {
|
|
87
|
+
border-top-left-radius: 24px;
|
|
88
|
+
border-top-right-radius: 24px;
|
|
89
|
+
}
|
|
90
|
+
.duet-banner.small .visual .image-container {
|
|
91
|
+
top: -130px;
|
|
92
|
+
left: -40px;
|
|
93
|
+
}
|
|
94
|
+
.duet-banner.small .visual .icon {
|
|
95
|
+
bottom: 30px;
|
|
96
|
+
left: 15px;
|
|
97
|
+
}
|
|
98
|
+
.duet-banner.large {
|
|
99
|
+
grid-template-rows: none;
|
|
100
|
+
grid-template-columns: 50% 50%;
|
|
101
|
+
min-width: 900px;
|
|
102
|
+
max-width: 1112px;
|
|
103
|
+
height: 320px;
|
|
104
|
+
max-height: none;
|
|
105
|
+
}
|
|
106
|
+
.duet-banner.large .visual {
|
|
107
|
+
border-top-left-radius: 24px;
|
|
108
|
+
border-bottom-left-radius: 24px;
|
|
109
|
+
}
|
|
110
|
+
.duet-banner.large .visual .image-container {
|
|
111
|
+
top: -30px;
|
|
112
|
+
left: -30px;
|
|
113
|
+
}
|
|
114
|
+
.duet-banner.large .visual .image {
|
|
115
|
+
top: -15px;
|
|
116
|
+
left: 30px;
|
|
117
|
+
}
|
|
118
|
+
.duet-banner.large .visual .icon {
|
|
119
|
+
top: 40px;
|
|
120
|
+
bottom: auto;
|
|
121
|
+
left: 335px;
|
|
122
|
+
}
|
|
123
|
+
.duet-banner.large .content {
|
|
124
|
+
align-items: flex-start;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
padding: 0 72px 0 0;
|
|
127
|
+
}
|
|
128
|
+
.duet-banner.auto {
|
|
129
|
+
grid-template-rows: 335px 1fr;
|
|
130
|
+
max-width: 335px;
|
|
131
|
+
}
|
|
132
|
+
.duet-banner.auto .visual {
|
|
133
|
+
border-top-left-radius: 24px;
|
|
134
|
+
border-top-right-radius: 24px;
|
|
135
|
+
}
|
|
136
|
+
.duet-banner.auto .visual .image-container {
|
|
137
|
+
top: -130px;
|
|
138
|
+
left: -40px;
|
|
139
|
+
}
|
|
140
|
+
.duet-banner.auto .visual .icon {
|
|
141
|
+
bottom: 30px;
|
|
142
|
+
left: 15px;
|
|
143
|
+
}
|
|
144
|
+
@media (min-width: 62em) {
|
|
145
|
+
.duet-banner.auto {
|
|
146
|
+
grid-template-rows: none;
|
|
147
|
+
grid-template-columns: 50% 50%;
|
|
148
|
+
min-width: 900px;
|
|
149
|
+
max-width: 1112px;
|
|
150
|
+
height: 320px;
|
|
151
|
+
max-height: none;
|
|
152
|
+
}
|
|
153
|
+
.duet-banner.auto .visual {
|
|
154
|
+
border-top-left-radius: 24px;
|
|
155
|
+
border-bottom-left-radius: 24px;
|
|
156
|
+
}
|
|
157
|
+
.duet-banner.auto .visual .image-container {
|
|
158
|
+
top: -30px;
|
|
159
|
+
left: -30px;
|
|
160
|
+
}
|
|
161
|
+
.duet-banner.auto .visual .image {
|
|
162
|
+
top: -15px;
|
|
163
|
+
left: 30px;
|
|
164
|
+
}
|
|
165
|
+
.duet-banner.auto .visual .icon {
|
|
166
|
+
top: 40px;
|
|
167
|
+
bottom: auto;
|
|
168
|
+
left: 335px;
|
|
169
|
+
}
|
|
170
|
+
.duet-banner.auto .content {
|
|
171
|
+
align-items: flex-start;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
padding: 0 72px 0 0;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
.duet-banner.duet-theme-turva {
|
|
177
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
178
|
+
}
|
|
179
|
+
.duet-banner.duet-theme-turva .visual .image-container {
|
|
180
|
+
width: 526px;
|
|
181
|
+
height: 456px;
|
|
182
|
+
transform: none;
|
|
183
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");
|
|
184
|
+
-webkit-mask-repeat: no-repeat;
|
|
185
|
+
mask-image: url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");
|
|
186
|
+
mask-repeat: no-repeat;
|
|
187
|
+
}
|
|
188
|
+
.duet-banner.duet-theme-turva .visual .image {
|
|
189
|
+
transform: none;
|
|
190
|
+
}
|
|
191
|
+
.duet-banner.duet-theme-turva.small .visual .image-container {
|
|
192
|
+
top: -164px;
|
|
193
|
+
left: -147px;
|
|
194
|
+
}
|
|
195
|
+
.duet-banner.duet-theme-turva.small .visual .image {
|
|
196
|
+
top: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
}
|
|
199
|
+
.duet-banner.duet-theme-turva.small .visual .icon {
|
|
200
|
+
bottom: 15px;
|
|
201
|
+
}
|
|
202
|
+
.duet-banner.duet-theme-turva.large .visual .image-container {
|
|
203
|
+
top: -54.923px;
|
|
204
|
+
left: -147px;
|
|
205
|
+
}
|
|
206
|
+
.duet-banner.duet-theme-turva.large .visual .image {
|
|
207
|
+
top: 0;
|
|
208
|
+
left: 0;
|
|
209
|
+
}
|
|
210
|
+
.duet-banner.duet-theme-turva.large .visual .icon {
|
|
211
|
+
bottom: auto;
|
|
212
|
+
left: 295px;
|
|
213
|
+
}
|
|
214
|
+
.duet-banner.duet-theme-turva.auto .visual .image-container {
|
|
215
|
+
top: -164px;
|
|
216
|
+
left: -147px;
|
|
217
|
+
}
|
|
218
|
+
.duet-banner.duet-theme-turva.auto .visual .image {
|
|
219
|
+
top: 0;
|
|
220
|
+
left: 0;
|
|
221
|
+
}
|
|
222
|
+
.duet-banner.duet-theme-turva.auto .visual .icon {
|
|
223
|
+
bottom: 15px;
|
|
224
|
+
}
|
|
225
|
+
@media (min-width: 62em) {
|
|
226
|
+
.duet-banner.duet-theme-turva.auto .visual .image-container {
|
|
227
|
+
top: -54.923px;
|
|
228
|
+
left: -147px;
|
|
229
|
+
}
|
|
230
|
+
.duet-banner.duet-theme-turva.auto .visual .image {
|
|
231
|
+
top: 0;
|
|
232
|
+
left: 0;
|
|
233
|
+
}
|
|
234
|
+
.duet-banner.duet-theme-turva.auto .visual .icon {
|
|
235
|
+
bottom: auto;
|
|
236
|
+
left: 295px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { getColorByName } from "../../utils/token-utils";
|
|
7
|
+
export class DuetBanner {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.theme = "";
|
|
10
|
+
this.margin = "auto";
|
|
11
|
+
this.backgroundColor = "primary-lighter";
|
|
12
|
+
this.iconColor = "gray-lightest";
|
|
13
|
+
this.iconBackgroundColor = "primary";
|
|
14
|
+
this.textColor = "secondary";
|
|
15
|
+
this.size = "auto";
|
|
16
|
+
this.image = "";
|
|
17
|
+
this.icon = "";
|
|
18
|
+
this.headingLevel = "h2";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Component lifecycle events.
|
|
22
|
+
*/
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
inheritGlobalTheme(this);
|
|
25
|
+
this.hasHeadingSlot = !!this.element.querySelector('[slot="heading"]');
|
|
26
|
+
this.hasDescriptionSlot = !!this.element.querySelector('[slot="description"]');
|
|
27
|
+
this.hasActionSlot = !!this.element.querySelector('[slot="action"]');
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* render() function
|
|
31
|
+
* Always the last one of the class.
|
|
32
|
+
*/
|
|
33
|
+
render() {
|
|
34
|
+
const backgroundColorTemp = this.theme === "turva" && this.backgroundColor === "primary-lighter" ? "gray-light" : this.backgroundColor;
|
|
35
|
+
const backgroundColor = getColorByName(backgroundColorTemp, this.theme);
|
|
36
|
+
const bannerStyles = {
|
|
37
|
+
backgroundColor,
|
|
38
|
+
};
|
|
39
|
+
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("aside", { class: {
|
|
40
|
+
"duet-banner": true,
|
|
41
|
+
"duet-theme-turva": this.theme === "turva",
|
|
42
|
+
[this.size]: true,
|
|
43
|
+
}, style: bannerStyles }, h("div", { class: "visual" }, h("div", { class: "image-container" }, h("img", { class: "image", src: this.image, alt: "", role: "presentation" })), this.icon && (h("duet-icon", { theme: this.theme, class: "icon", name: this.icon, shape: "brand", size: "xx-large", color: this.iconColor, background: this.iconBackgroundColor, "background-rotation": "7", "background-opacity": "0.85", margin: "none" }))), h("div", { class: "content" }, this.hasHeadingSlot && (h("div", { class: "heading" }, h("duet-heading", { theme: this.theme, level: this.headingLevel, "visual-level": "h2", margin: "none", color: this.textColor }, h("slot", { name: "heading" })))), this.hasDescriptionSlot && (h("div", { class: "description" }, h("duet-paragraph", { theme: this.theme, margin: "none", color: this.textColor }, h("slot", { name: "description" })))), this.hasActionSlot && (h("div", { class: "action" }, h("duet-spacer", { direction: "vertical", size: "medium" }), h("slot", { name: "action" })))))));
|
|
44
|
+
}
|
|
45
|
+
static get is() { return "duet-banner"; }
|
|
46
|
+
static get encapsulation() { return "shadow"; }
|
|
47
|
+
static get originalStyleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["duet-banner.scss"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get styleUrls() {
|
|
53
|
+
return {
|
|
54
|
+
"$": ["duet-banner.css"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
"theme": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": true,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "DuetTheme",
|
|
64
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
65
|
+
"references": {
|
|
66
|
+
"DuetTheme": {
|
|
67
|
+
"location": "import",
|
|
68
|
+
"path": "../../common-types"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Theme."
|
|
77
|
+
},
|
|
78
|
+
"attribute": "theme",
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"defaultValue": "\"\""
|
|
81
|
+
},
|
|
82
|
+
"margin": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DuetMargin",
|
|
87
|
+
"resolved": "\"auto\" | \"none\"",
|
|
88
|
+
"references": {
|
|
89
|
+
"DuetMargin": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "../../common-types"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": "Controls the margin of the component."
|
|
100
|
+
},
|
|
101
|
+
"attribute": "margin",
|
|
102
|
+
"reflect": false,
|
|
103
|
+
"defaultValue": "\"auto\""
|
|
104
|
+
},
|
|
105
|
+
"backgroundColor": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "DuetColor",
|
|
110
|
+
"resolved": "string",
|
|
111
|
+
"references": {
|
|
112
|
+
"DuetColor": {
|
|
113
|
+
"location": "import",
|
|
114
|
+
"path": "../../common-types"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Background color."
|
|
123
|
+
},
|
|
124
|
+
"attribute": "background-color",
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"defaultValue": "\"primary-lighter\""
|
|
127
|
+
},
|
|
128
|
+
"iconColor": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "DuetColor",
|
|
133
|
+
"resolved": "string",
|
|
134
|
+
"references": {
|
|
135
|
+
"DuetColor": {
|
|
136
|
+
"location": "import",
|
|
137
|
+
"path": "../../common-types"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Icon color."
|
|
146
|
+
},
|
|
147
|
+
"attribute": "icon-color",
|
|
148
|
+
"reflect": false,
|
|
149
|
+
"defaultValue": "\"gray-lightest\""
|
|
150
|
+
},
|
|
151
|
+
"iconBackgroundColor": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "DuetColor",
|
|
156
|
+
"resolved": "string",
|
|
157
|
+
"references": {
|
|
158
|
+
"DuetColor": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "../../common-types"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": false,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": "Icon background color."
|
|
169
|
+
},
|
|
170
|
+
"attribute": "icon-background-color",
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"defaultValue": "\"primary\""
|
|
173
|
+
},
|
|
174
|
+
"textColor": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "DuetColor",
|
|
179
|
+
"resolved": "string",
|
|
180
|
+
"references": {
|
|
181
|
+
"DuetColor": {
|
|
182
|
+
"location": "import",
|
|
183
|
+
"path": "../../common-types"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": false,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": "Text color."
|
|
192
|
+
},
|
|
193
|
+
"attribute": "text-color",
|
|
194
|
+
"reflect": false,
|
|
195
|
+
"defaultValue": "\"secondary\""
|
|
196
|
+
},
|
|
197
|
+
"size": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"mutable": false,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "\"auto\" | \"small\" | \"large\"",
|
|
202
|
+
"resolved": "\"auto\" | \"large\" | \"small\"",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": false,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Size."
|
|
210
|
+
},
|
|
211
|
+
"attribute": "size",
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"defaultValue": "\"auto\""
|
|
214
|
+
},
|
|
215
|
+
"image": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"mutable": false,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "string",
|
|
220
|
+
"resolved": "string",
|
|
221
|
+
"references": {}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": false,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": "Image. Example image is 512x341;"
|
|
228
|
+
},
|
|
229
|
+
"attribute": "image",
|
|
230
|
+
"reflect": false,
|
|
231
|
+
"defaultValue": "\"\""
|
|
232
|
+
},
|
|
233
|
+
"icon": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "DuetIconName",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {
|
|
240
|
+
"DuetIconName": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "../../common-types"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Icon."
|
|
251
|
+
},
|
|
252
|
+
"attribute": "icon",
|
|
253
|
+
"reflect": false,
|
|
254
|
+
"defaultValue": "\"\""
|
|
255
|
+
},
|
|
256
|
+
"headingLevel": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"mutable": false,
|
|
259
|
+
"complexType": {
|
|
260
|
+
"original": "DuetHeadingLevel",
|
|
261
|
+
"resolved": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
|
|
262
|
+
"references": {
|
|
263
|
+
"DuetHeadingLevel": {
|
|
264
|
+
"location": "import",
|
|
265
|
+
"path": "../../common-types"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "The actual heading level used in the HTML markup."
|
|
274
|
+
},
|
|
275
|
+
"attribute": "heading-level",
|
|
276
|
+
"reflect": false,
|
|
277
|
+
"defaultValue": "\"h2\""
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
static get elementRef() { return "element"; }
|
|
282
|
+
}
|