@baloise/ds-core 20.0.0-next.7 → 20.0.0-next.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/components/ds-accordion.js +1 -1
- package/components/ds-alert-container.js +1 -1
- package/components/ds-app.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button-group.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-actions.js +1 -1
- package/components/ds-card-content.js +1 -1
- package/components/ds-card-subtitle.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel.js +1 -1
- package/components/ds-checkbox-group.js +1 -1
- package/components/ds-close.js +1 -1
- package/components/ds-content.js +1 -1
- package/components/ds-data-item.js +1 -1
- package/components/ds-date.js +1 -1
- package/components/ds-drawer.js +1 -1
- package/components/ds-file-upload.js +1 -1
- package/components/ds-footer.js +1 -1
- package/components/ds-heading.js +1 -1
- package/components/ds-hint.js +1 -1
- package/components/ds-icon.js +1 -1
- package/components/ds-input-slider.js +1 -1
- package/components/ds-input.js +1 -1
- package/components/ds-item.js +1 -1
- package/components/ds-modal.js +1 -1
- package/components/ds-navbar.js +1 -1
- package/components/ds-notification.js +1 -1
- package/components/ds-number-input.js +1 -1
- package/components/ds-pagination.js +1 -1
- package/components/ds-popup.js +1 -1
- package/components/ds-radio-group.js +1 -1
- package/components/ds-segment.js +1 -1
- package/components/ds-select.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-spinner.js +1 -1
- package/components/ds-stack.js +1 -1
- package/components/ds-step.js +1 -1
- package/components/ds-steps.js +1 -1
- package/components/ds-tabs.js +1 -1
- package/components/ds-tag.js +1 -1
- package/components/ds-textarea.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/index.js +1 -1
- package/components/{p-DenZRIeA.js → p-BXJT6RzI.js} +1 -1
- package/components/p-BdLq-Ecc.js +4 -0
- package/components/{p-DSeYzuO7.js → p-BmKEBYP4.js} +1 -1
- package/components/p-BoWAkGY5.js +4 -0
- package/components/{p-DYTOWDAA.js → p-CTbJFS-e.js} +1 -1
- package/components/{p-VsWv65bD.js → p-CaMOovXn.js} +1 -1
- package/components/p-Ce8PV2ZO.js +4 -0
- package/components/p-CmBtAxar.js +4 -0
- package/components/p-D8gpyiFZ.js +4 -0
- package/components/{p-ng5ZzTOj.js → p-DBX_haol.js} +1 -1
- package/components/{p-ABj0eATe.js → p-DPbhygsR.js} +1 -1
- package/components/{p-BwwAKEvn.js → p-DZzsZ_YH.js} +1 -1
- package/components/p-DbUsvqrz.js +4 -0
- package/components/p-Dbqy6lZU.js +5 -0
- package/components/{p-D9YYP2SG.js → p-fS80bKHo.js} +1 -1
- package/components/{p-D5zw5ezD.js → p-hPpcXLRP.js} +1 -1
- package/components/p-o0H7eIVX.js +5 -0
- package/components/p-std0LSH2.js +4 -0
- package/components/p-u5aa74vh.js +2 -1
- package/components/p-wud2RGEy.js +4 -0
- package/dist/cjs/{breakpoints.decorator-DY5iYsA5.js → breakpoints.decorator-DbttiLa9.js} +1 -1
- package/dist/cjs/{breakpoints.subject-CzhLlIwN.js → breakpoints.subject-CNyiZaBe.js} +3 -3
- package/dist/cjs/{button.interfaces-CqlUGR-N.js → button.interfaces-BKyK0H_f.js} +0 -1
- package/dist/cjs/{config.decorator-C64wi-MA.js → config.decorator-bU7c6ybP.js} +1 -1
- package/dist/cjs/{config.utils-BhWbrVRz.js → config.utils-BhJig3l5.js} +1 -1
- package/dist/cjs/{create-validator-decorator-Ctd288ve.js → create-validator-decorator-CiRieHJL.js} +1 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{device-CIliLOe9.js → device-DM1GXL99.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
- package/dist/cjs/ds-alert-container.cjs.entry.js +13 -17
- package/dist/cjs/ds-app.cjs.entry.js +35 -8
- package/dist/cjs/ds-badge.cjs.entry.js +20 -39
- package/dist/cjs/ds-button-group.cjs.entry.js +7 -7
- package/dist/cjs/ds-button_2.cjs.entry.js +20 -20
- package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +10 -14
- package/dist/cjs/ds-card-title.cjs.entry.js +8 -14
- package/dist/cjs/ds-card.cjs.entry.js +7 -7
- package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +22 -15
- package/dist/cjs/ds-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/ds-content_2.cjs.entry.js +18 -68
- package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
- package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
- package/dist/cjs/ds-data.cjs.entry.js +4 -4
- package/dist/cjs/ds-date.cjs.entry.js +18 -12
- package/dist/cjs/ds-divider_2.cjs.entry.js +12 -12
- package/dist/cjs/ds-drawer_2.cjs.entry.js +9 -9
- package/dist/cjs/ds-file-upload.cjs.entry.js +18 -11
- package/dist/cjs/ds-footer.cjs.entry.js +7 -7
- package/dist/cjs/ds-heading.cjs.entry.js +21 -37
- package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint.cjs.entry.js +11 -11
- package/dist/cjs/ds-icon_2.cjs.entry.js +19 -23
- package/dist/cjs/ds-input-slider.cjs.entry.js +21 -14
- package/dist/cjs/ds-input.cjs.entry.js +20 -11
- package/dist/cjs/ds-item.cjs.entry.js +7 -7
- package/dist/cjs/ds-label.cjs.entry.js +8 -8
- package/dist/cjs/ds-list.cjs.entry.js +4 -4
- package/dist/cjs/ds-modal-body.cjs.entry.js +2 -2
- package/dist/cjs/ds-modal-header.cjs.entry.js +2 -2
- package/dist/cjs/ds-modal.cjs.entry.js +7 -7
- package/dist/cjs/ds-navbar.cjs.entry.js +14 -14
- package/dist/cjs/ds-notification.cjs.entry.js +16 -22
- package/dist/cjs/ds-number-input.cjs.entry.js +20 -11
- package/dist/cjs/ds-pagination.cjs.entry.js +12 -12
- package/dist/cjs/ds-progress-bar.cjs.entry.js +12 -12
- package/dist/cjs/ds-radio-group.cjs.entry.js +21 -14
- package/dist/cjs/ds-radio.cjs.entry.js +7 -7
- package/dist/cjs/ds-segment-item.cjs.entry.js +4 -4
- package/dist/cjs/ds-segment.cjs.entry.js +21 -15
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +4 -4
- package/dist/cjs/ds-select-option.cjs.entry.js +4 -4
- package/dist/cjs/ds-select.cjs.entry.js +18 -13
- package/dist/cjs/ds-shape.cjs.entry.js +4 -4
- package/dist/cjs/ds-snackbar.cjs.entry.js +36 -24
- package/dist/cjs/ds-step-panel.cjs.entry.js +5 -5
- package/dist/cjs/ds-step.cjs.entry.js +5 -5
- package/dist/cjs/ds-steps.cjs.entry.js +7 -14
- package/dist/cjs/ds-tab-panel.cjs.entry.js +5 -5
- package/dist/cjs/ds-tab.cjs.entry.js +5 -5
- package/dist/cjs/ds-tabs.cjs.entry.js +8 -8
- package/dist/cjs/ds-tag-group.cjs.entry.js +2 -2
- package/dist/cjs/ds-tag.cjs.entry.js +7 -7
- package/dist/cjs/ds-text.cjs.entry.js +6 -6
- package/dist/cjs/ds-textarea.cjs.entry.js +19 -10
- package/dist/cjs/ds-toast.cjs.entry.js +32 -20
- package/dist/cjs/ds-toggle.cjs.entry.js +5 -5
- package/dist/cjs/ds-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/{field.util-g9nhtuZH.js → field.util-C7hgA41e.js} +32 -2
- package/dist/cjs/{focus-BUszBnbl.js → focus-CHzvkERd.js} +1 -1
- package/dist/cjs/{form-control-B4Qf8fg-.js → form-control-CmRONWa7.js} +1 -1
- package/dist/cjs/{has-value-rj502MLA.js → has-value-3s9rhB3K.js} +1 -1
- package/dist/cjs/{heading.interfaces-B5NJ2yjL.js → heading.interfaces-CAc5LNKb.js} +2 -3
- package/dist/cjs/{index-CqInh7Vc.js → index-DD7qcaNz.js} +75 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{listener-1PZJDuOW.js → listener-CAzIWSXQ.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BotLfpAZ.js → one-of-xdIxH9e7.js} +1 -1
- package/dist/cjs/{required-BAhZ8oRM.js → required-Dh6TQNa1.js} +1 -1
- package/dist/cjs/{resize.decorator-Sqefy8ta.js → resize.decorator-C53-TjuS.js} +2 -2
- package/dist/cjs/{scroll--5tnvpG1.js → scroll-BOeiw1-E.js} +1 -1
- package/dist/cjs/{svg-D9RbiR8R.js → svg-B9eUbG7a.js} +96 -33
- package/dist/cjs/{tslib.es6-BIB10hMZ.js → tslib.es6-DMgN1vwG.js} +1 -1
- package/dist/cjs/{type-Br_NbeTX.js → type-BcP2cAG-.js} +1 -1
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/alert/alert-container.interfaces.js +1 -1
- package/dist/collection/components/alert/alert-container.js +9 -14
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.js +22 -10
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.js +20 -8
- package/dist/collection/components/app/app.js +30 -3
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/badge/badge.interfaces.js +3 -3
- package/dist/collection/components/badge/badge.js +20 -42
- package/dist/collection/components/button/button.interfaces.js +0 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card-subtitle/card-subtitle.js +6 -11
- package/dist/collection/components/card/card-title/card-title.js +4 -11
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +16 -7
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +1 -0
- package/dist/collection/components/close/close.host.css +1 -1
- package/dist/collection/components/close/close.interfaces.js +1 -1
- package/dist/collection/components/close/close.js +14 -16
- package/dist/collection/components/content/content.host.css +1 -1
- package/dist/collection/components/content/content.interfaces.js +2 -3
- package/dist/collection/components/content/content.js +21 -60
- package/dist/collection/components/date/date.js +12 -4
- package/dist/collection/components/date/test/date.visual.play.js +1 -0
- package/dist/collection/components/file-upload/file-upload.js +13 -4
- package/dist/collection/components/file-upload/test/file-upload.visual.play.js +10 -1
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/heading/heading.interfaces.js +2 -3
- package/dist/collection/components/heading/heading.js +25 -45
- package/dist/collection/components/input/field.util.js +1 -1
- package/dist/collection/components/input/input.js +14 -3
- package/dist/collection/components/input/test/input.visual.play.js +2 -1
- package/dist/collection/components/input-slider/input-slider.js +17 -8
- package/dist/collection/components/input-slider/test/input-slider.visual.play.js +1 -0
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.interfaces.js +1 -2
- package/dist/collection/components/notification/notification.js +11 -17
- package/dist/collection/components/number-input/number-input.js +13 -2
- package/dist/collection/components/number-input/test/number-input.visual.play.js +1 -1
- package/dist/collection/components/radio/radio-group/radio-group.js +16 -7
- package/dist/collection/components/radio/test/radio.visual.play.js +1 -0
- package/dist/collection/components/segment/segment/segment.js +15 -7
- package/dist/collection/components/segment/test/segment.visual.play.js +1 -0
- package/dist/collection/components/select/select.host.css +1 -1
- package/dist/collection/components/select/select.js +11 -4
- package/dist/collection/components/select/test/select.visual.play.js +2 -2
- package/dist/collection/components/spinner/spinner.host.css +1 -1
- package/dist/collection/components/spinner/spinner.interfaces.js +1 -1
- package/dist/collection/components/spinner/spinner.js +12 -16
- package/dist/collection/components/stack/stack.host.css +1 -1
- package/dist/collection/components/stack/stack.interfaces.js +1 -2
- package/dist/collection/components/stack/stack.js +13 -33
- package/dist/collection/components/steps/steps/steps.js +1 -8
- package/dist/collection/components/steps/test/steps.component.play.js +29 -1
- package/dist/collection/components/tag/tag.host.css +1 -1
- package/dist/collection/components/textarea/test/textarea.visual.play.js +2 -2
- package/dist/collection/components/textarea/textarea.js +13 -2
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/collection/global/global.js +2 -0
- package/dist/collection/global/token-preview.js +75 -0
- package/dist/collection/global/token-preview.types.js +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/invalid-text-slot.js +31 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-b4738dc266.entry.js → p-001b20140b.entry.js} +1 -1
- package/dist/design-system/p-0c031d8d90.entry.js +4 -0
- package/dist/design-system/p-0c18812daa.entry.js +4 -0
- package/dist/design-system/p-14e27a87da.entry.js +4 -0
- package/dist/design-system/{p-564ee4d78f.entry.js → p-19e0638e5c.entry.js} +1 -1
- package/dist/design-system/{p-ee76bf354e.entry.js → p-1dc3406415.entry.js} +1 -1
- package/dist/design-system/{p-3d2539929c.entry.js → p-200a0ea72c.entry.js} +1 -1
- package/dist/design-system/{p-ce67cbbed5.entry.js → p-2516721737.entry.js} +1 -1
- package/dist/design-system/{p-24c85e99f5.entry.js → p-2a67e9b4eb.entry.js} +1 -1
- package/dist/design-system/p-2cc9740eb6.entry.js +4 -0
- package/dist/design-system/p-37295c3a5d.entry.js +4 -0
- package/dist/design-system/{p-b44641ec28.entry.js → p-3d1f15112e.entry.js} +1 -1
- package/dist/design-system/p-3de8e2b6c9.entry.js +4 -0
- package/dist/design-system/{p-0bf3d4d939.entry.js → p-4042b35fee.entry.js} +1 -1
- package/dist/design-system/{p-00e6b1b780.entry.js → p-40b3d4d0f9.entry.js} +1 -1
- package/dist/design-system/{p-5f1a8be21c.entry.js → p-45af50a69f.entry.js} +1 -1
- package/dist/design-system/p-4df80c06f8.entry.js +4 -0
- package/dist/design-system/p-4f12c6449d.entry.js +4 -0
- package/dist/design-system/p-4f95f06b86.entry.js +4 -0
- package/dist/design-system/p-573457cd4b.entry.js +4 -0
- package/dist/design-system/{p-2eb6067210.entry.js → p-662983c8bd.entry.js} +1 -1
- package/dist/design-system/{p-32e156bc72.entry.js → p-68693c06a1.entry.js} +1 -1
- package/dist/design-system/{p-9f9364d7df.entry.js → p-69784a200e.entry.js} +1 -1
- package/dist/design-system/{p-ChSKXFK5.js → p-6Iq8BM7N.js} +1 -1
- package/dist/design-system/{p-a42ecb68a0.entry.js → p-6ba71ce374.entry.js} +1 -1
- package/dist/design-system/{p-5ded2b6438.entry.js → p-72c08ce551.entry.js} +1 -1
- package/dist/design-system/p-72fe1ab876.entry.js +4 -0
- package/dist/design-system/p-73b26207bf.entry.js +4 -0
- package/dist/design-system/{p-b8669a617c.entry.js → p-7576fb01bf.entry.js} +1 -1
- package/dist/design-system/p-819d71abe1.entry.js +4 -0
- package/dist/design-system/{p-6c60833550.entry.js → p-88682a66d5.entry.js} +1 -1
- package/dist/design-system/{p-ab8bee7022.entry.js → p-8a7c2f5b0a.entry.js} +1 -1
- package/dist/design-system/{p-5d4a5d0b61.entry.js → p-8bfcfd7b07.entry.js} +1 -1
- package/dist/design-system/p-936673f9f9.entry.js +4 -0
- package/dist/design-system/{p-f7be5b6114.entry.js → p-9537ebc880.entry.js} +1 -1
- package/dist/design-system/{p-3e3a6799d6.entry.js → p-96d37205c9.entry.js} +1 -1
- package/dist/design-system/{p-4bfc094a03.entry.js → p-97ad0e648a.entry.js} +1 -1
- package/dist/design-system/p-9e0f190f06.entry.js +4 -0
- package/dist/design-system/{p-adc58b2821.entry.js → p-9f746ea4e3.entry.js} +1 -1
- package/dist/design-system/{p-DJBD4skP.js → p-B2dqoehY.js} +2 -2
- package/dist/design-system/p-B9ddSbbe.js +4 -0
- package/dist/design-system/p-BDcIydUK.js +4 -0
- package/dist/design-system/p-BdLq-Ecc.js +4 -0
- package/dist/design-system/{p-Dk0GEN2t.js → p-BjaiDrCD.js} +1 -1
- package/dist/design-system/{p-DoHCSvjl.js → p-BnJgNfen.js} +1 -1
- package/dist/design-system/{p-DOvdnojj.js → p-Bnpwi9iD.js} +1 -1
- package/dist/design-system/p-C6AmBSV7.js +4 -0
- package/dist/design-system/{p-Chgme2NJ.js → p-CBGYLNZZ.js} +1 -1
- package/dist/design-system/{p-1A9jKraP.js → p-CR2JnhVY.js} +1 -1
- package/dist/design-system/{p-CfgwSore.js → p-ClSAXeZN.js} +1 -1
- package/dist/design-system/p-D-_px2sY.js +5 -0
- package/dist/design-system/p-DNQg2PVW.js +4 -0
- package/dist/design-system/p-DQGbRzw_.js +4 -0
- package/dist/design-system/{p-x2KazRjl.js → p-DWdcUUdS.js} +1 -1
- package/dist/design-system/{p-C5Rtikeh.js → p-DuKlHFAK.js} +1 -1
- package/dist/design-system/{p-B-v2Wm-V.js → p-MUUOiuTm.js} +2 -2
- package/dist/design-system/p-_Ywzmi-B.js +4 -0
- package/dist/design-system/{p-Y0rKqVvm.js → p-_rk5qARQ.js} +1 -1
- package/dist/design-system/{p-44981aaf8d.entry.js → p-a343b84e8a.entry.js} +1 -1
- package/dist/design-system/p-a3ed278181.entry.js +4 -0
- package/dist/design-system/{p-CrYAd3JT.js → p-aPnyJLhr.js} +1 -1
- package/dist/design-system/{p-fa613cd0d1.entry.js → p-abcc8edf7e.entry.js} +1 -1
- package/dist/design-system/{p-3d675c6507.entry.js → p-ac55e3783c.entry.js} +1 -1
- package/dist/design-system/{p-3e43fa2bc6.entry.js → p-ac7f3f89be.entry.js} +1 -1
- package/dist/design-system/{p-1b1e3ad99c.entry.js → p-ae8753bf2a.entry.js} +1 -1
- package/dist/design-system/{p-d3a80b8422.entry.js → p-afea3755c2.entry.js} +1 -1
- package/dist/design-system/{p-0ea6cdd218.entry.js → p-bd31b396d8.entry.js} +1 -1
- package/dist/design-system/p-bd740897a1.entry.js +4 -0
- package/dist/design-system/p-bec54c38fc.entry.js +4 -0
- package/dist/design-system/{p-1750b3c4f1.entry.js → p-bf03129378.entry.js} +1 -1
- package/dist/design-system/{p-85bf3794f9.entry.js → p-bfd0557b47.entry.js} +1 -1
- package/dist/design-system/{p-7246bfb9a0.entry.js → p-c07aa25e4d.entry.js} +1 -1
- package/dist/design-system/p-c19c74c2b1.entry.js +4 -0
- package/dist/design-system/p-c8f95bd01a.entry.js +4 -0
- package/dist/design-system/{p-a782c877ea.entry.js → p-d5d7700fd3.entry.js} +1 -1
- package/dist/design-system/p-d727654ec3.entry.js +4 -0
- package/dist/design-system/{p-aa3aee2591.entry.js → p-dadd7a84bc.entry.js} +1 -1
- package/dist/design-system/p-dd5e815ef3.entry.js +4 -0
- package/dist/design-system/p-e16572468e.entry.js +4 -0
- package/dist/design-system/{p-8a9d617f75.entry.js → p-e23b6d59c0.entry.js} +1 -1
- package/dist/design-system/p-e94b66c13e.entry.js +4 -0
- package/dist/design-system/{p-78112e7b35.entry.js → p-ec3f2ded29.entry.js} +1 -1
- package/dist/design-system/{p-2b038255c5.entry.js → p-ed3f364d1f.entry.js} +1 -1
- package/dist/design-system/{p-599a693db3.entry.js → p-eedaf7fe85.entry.js} +1 -1
- package/dist/design-system/p-ef1bf78788.entry.js +4 -0
- package/dist/design-system/p-f7787fca37.entry.js +4 -0
- package/dist/design-system/{p-dbd3d3b3d3.entry.js → p-fd868dc1f5.entry.js} +1 -1
- package/dist/esm/{breakpoints.decorator-D9M4v98c.js → breakpoints.decorator-CIweMjJQ.js} +1 -1
- package/dist/esm/{breakpoints.subject-DHZ7TzYV.js → breakpoints.subject-CUVOWezN.js} +3 -3
- package/dist/esm/{button.interfaces-BPGfTrrM.js → button.interfaces-C6AmBSV7.js} +0 -1
- package/dist/esm/{config.decorator-CRYVBTkX.js → config.decorator-CyvsD1EY.js} +1 -1
- package/dist/esm/{config.utils-CR4Xudpz.js → config.utils-Db2OSTX3.js} +1 -1
- package/dist/esm/{create-validator-decorator-fUav5byo.js → create-validator-decorator-g9TfAa1g.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{device-CapioAfe.js → device-CtidwsPr.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +9 -9
- package/dist/esm/ds-alert-container.entry.js +13 -17
- package/dist/esm/ds-app.entry.js +35 -8
- package/dist/esm/ds-badge.entry.js +20 -39
- package/dist/esm/ds-button-group.entry.js +7 -7
- package/dist/esm/ds-button_2.entry.js +20 -20
- package/dist/esm/ds-card-actions.entry.js +4 -4
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +5 -5
- package/dist/esm/ds-card-subtitle.entry.js +10 -14
- package/dist/esm/ds-card-title.entry.js +8 -14
- package/dist/esm/ds-card.entry.js +7 -7
- package/dist/esm/ds-carousel-item.entry.js +6 -6
- package/dist/esm/ds-carousel.entry.js +8 -8
- package/dist/esm/ds-checkbox-group.entry.js +22 -15
- package/dist/esm/ds-checkbox.entry.js +7 -7
- package/dist/esm/ds-content_2.entry.js +18 -68
- package/dist/esm/ds-data-item.entry.js +6 -6
- package/dist/esm/ds-data-label.entry.js +4 -4
- package/dist/esm/ds-data-value.entry.js +2 -2
- package/dist/esm/ds-data.entry.js +4 -4
- package/dist/esm/ds-date.entry.js +18 -12
- package/dist/esm/ds-divider_2.entry.js +12 -12
- package/dist/esm/ds-drawer_2.entry.js +9 -9
- package/dist/esm/ds-file-upload.entry.js +18 -11
- package/dist/esm/ds-footer.entry.js +7 -7
- package/dist/esm/ds-heading.entry.js +21 -37
- package/dist/esm/ds-hint-text.entry.js +2 -2
- package/dist/esm/ds-hint-title.entry.js +2 -2
- package/dist/esm/ds-hint.entry.js +11 -11
- package/dist/esm/ds-icon_2.entry.js +19 -23
- package/dist/esm/ds-input-slider.entry.js +21 -14
- package/dist/esm/ds-input.entry.js +20 -11
- package/dist/esm/ds-item.entry.js +7 -7
- package/dist/esm/ds-label.entry.js +8 -8
- package/dist/esm/ds-list.entry.js +4 -4
- package/dist/esm/ds-modal-body.entry.js +2 -2
- package/dist/esm/ds-modal-header.entry.js +2 -2
- package/dist/esm/ds-modal.entry.js +7 -7
- package/dist/esm/ds-navbar.entry.js +14 -14
- package/dist/esm/ds-notification.entry.js +16 -22
- package/dist/esm/ds-number-input.entry.js +20 -11
- package/dist/esm/ds-pagination.entry.js +12 -12
- package/dist/esm/ds-progress-bar.entry.js +12 -12
- package/dist/esm/ds-radio-group.entry.js +21 -14
- package/dist/esm/ds-radio.entry.js +7 -7
- package/dist/esm/ds-segment-item.entry.js +4 -4
- package/dist/esm/ds-segment.entry.js +21 -15
- package/dist/esm/ds-select-optgroup.entry.js +4 -4
- package/dist/esm/ds-select-option.entry.js +4 -4
- package/dist/esm/ds-select.entry.js +18 -13
- package/dist/esm/ds-shape.entry.js +4 -4
- package/dist/esm/ds-snackbar.entry.js +36 -24
- package/dist/esm/ds-step-panel.entry.js +5 -5
- package/dist/esm/ds-step.entry.js +5 -5
- package/dist/esm/ds-steps.entry.js +7 -14
- package/dist/esm/ds-tab-panel.entry.js +5 -5
- package/dist/esm/ds-tab.entry.js +5 -5
- package/dist/esm/ds-tabs.entry.js +8 -8
- package/dist/esm/ds-tag-group.entry.js +2 -2
- package/dist/esm/ds-tag.entry.js +7 -7
- package/dist/esm/ds-text.entry.js +6 -6
- package/dist/esm/ds-textarea.entry.js +19 -10
- package/dist/esm/ds-toast.entry.js +32 -20
- package/dist/esm/ds-toggle.entry.js +5 -5
- package/dist/esm/ds-tooltip.entry.js +4 -4
- package/dist/esm/{field.util-neIQBS-h.js → field.util-Dl02gvlr.js} +32 -3
- package/dist/esm/{focus-6OAqvfus.js → focus-C1_jVoAm.js} +1 -1
- package/dist/esm/{form-control-DhinyMa9.js → form-control-BAP86QSm.js} +1 -1
- package/dist/esm/{has-value-Dmsj8ZQw.js → has-value-CADjf9QZ.js} +1 -1
- package/dist/esm/{heading.interfaces-Ceu7FIWM.js → heading.interfaces-BdLq-Ecc.js} +2 -3
- package/dist/esm/{index-B-v2Wm-V.js → index-MUUOiuTm.js} +75 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/{listener-DIZDQOuO.js → listener-DiVrGAqj.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-CjRvS2Tk.js → one-of-rLykP5eX.js} +1 -1
- package/dist/esm/{required-Dtml5IID.js → required-BsfIY-qW.js} +1 -1
- package/dist/esm/{resize.decorator-eogZBBk6.js → resize.decorator-BNy5tJCt.js} +2 -2
- package/dist/esm/{scroll-v2MaEkiZ.js → scroll-D4cC-Fsr.js} +1 -1
- package/dist/esm/{svg-B8KVoKrH.js → svg-D-_px2sY.js} +96 -33
- package/dist/esm/{tslib.es6-n47B6oUi.js → tslib.es6-C7vR-gMn.js} +1 -1
- package/dist/esm/{type-7qEQcw90.js → type-Bqge296W.js} +1 -1
- package/dist/types/components/alert/alert-container.d.ts +5 -6
- package/dist/types/components/alert/alert-container.interfaces.d.ts +1 -1
- package/dist/types/components/alert/snackbar/snackbar.d.ts +10 -6
- package/dist/types/components/alert/toast/toast.d.ts +8 -4
- package/dist/types/components/app/app.d.ts +23 -0
- package/dist/types/components/badge/badge.d.ts +12 -4
- package/dist/types/components/badge/badge.interfaces.d.ts +3 -3
- package/dist/types/components/button/button.interfaces.d.ts +1 -1
- package/dist/types/components/card/card-subtitle/card-subtitle.d.ts +1 -1
- package/dist/types/components/card/card-title/card-title.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +4 -0
- package/dist/types/components/close/close.d.ts +14 -2
- package/dist/types/components/close/close.interfaces.d.ts +1 -1
- package/dist/types/components/content/content.d.ts +6 -6
- package/dist/types/components/content/content.interfaces.d.ts +3 -3
- package/dist/types/components/date/date.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +3 -0
- package/dist/types/components/heading/heading.d.ts +10 -10
- package/dist/types/components/heading/heading.interfaces.d.ts +3 -3
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/input-slider/input-slider.d.ts +4 -1
- package/dist/types/components/notification/notification.d.ts +5 -5
- package/dist/types/components/notification/notification.interfaces.d.ts +2 -2
- package/dist/types/components/number-input/number-input.d.ts +4 -0
- package/dist/types/components/radio/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/segment/segment/segment.d.ts +3 -0
- package/dist/types/components/select/select.d.ts +3 -0
- package/dist/types/components/spinner/spinner.d.ts +8 -7
- package/dist/types/components/spinner/spinner.interfaces.d.ts +1 -1
- package/dist/types/components/stack/stack.d.ts +3 -3
- package/dist/types/components/stack/stack.interfaces.d.ts +2 -2
- package/dist/types/components/textarea/textarea.d.ts +4 -0
- package/dist/types/components.d.ts +29 -74
- package/dist/types/global/token-preview.d.ts +8 -0
- package/dist/types/global/token-preview.types.d.ts +20 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/invalid-text-slot.d.ts +9 -0
- package/docs/cem.json +100 -92
- package/docs/components.json +1246 -1409
- package/docs/html.html-data.json +1 -1
- package/docs/visual-pages.json +51 -0
- package/package.json +29 -6
- package/sbom.cdx.json +35379 -17251
- package/components/p--EKmxaBS.js +0 -4
- package/components/p-CA7G72wZ.js +0 -4
- package/components/p-CWDuQL1i.js +0 -4
- package/components/p-Ceu7FIWM.js +0 -4
- package/components/p-DQBzmbR6.js +0 -4
- package/components/p-DY0y8uLL.js +0 -4
- package/components/p-Du7QOHtz.js +0 -5
- package/components/p-FBQaJyH0.js +0 -4
- package/components/p-gz0Nxl39.js +0 -4
- package/components/p-qaSW94OG.js +0 -4
- package/dist/design-system/p-0f2a87fa39.entry.js +0 -4
- package/dist/design-system/p-138be1f0cc.entry.js +0 -4
- package/dist/design-system/p-16b03e0b02.entry.js +0 -4
- package/dist/design-system/p-2bb98dfa2f.entry.js +0 -4
- package/dist/design-system/p-3824068ae7.entry.js +0 -4
- package/dist/design-system/p-3aa3841834.entry.js +0 -4
- package/dist/design-system/p-4284d6d646.entry.js +0 -4
- package/dist/design-system/p-4b2a59576c.entry.js +0 -4
- package/dist/design-system/p-53d9a40010.entry.js +0 -4
- package/dist/design-system/p-5a6c6959fa.entry.js +0 -4
- package/dist/design-system/p-5f28436626.entry.js +0 -4
- package/dist/design-system/p-77e7a6a068.entry.js +0 -4
- package/dist/design-system/p-7ebdd14afc.entry.js +0 -4
- package/dist/design-system/p-7f42c18249.entry.js +0 -4
- package/dist/design-system/p-908e7b073a.entry.js +0 -4
- package/dist/design-system/p-B8KVoKrH.js +0 -5
- package/dist/design-system/p-BPGfTrrM.js +0 -4
- package/dist/design-system/p-Ceu7FIWM.js +0 -4
- package/dist/design-system/p-DYPX3A8m.js +0 -4
- package/dist/design-system/p-DiUgZKWs.js +0 -4
- package/dist/design-system/p-DkhJaoXg.js +0 -4
- package/dist/design-system/p-DypNSUAh.js +0 -4
- package/dist/design-system/p-Z0zrglhd.js +0 -4
- package/dist/design-system/p-a8df8f067b.entry.js +0 -4
- package/dist/design-system/p-aa3c0ff536.entry.js +0 -4
- package/dist/design-system/p-b390490b0d.entry.js +0 -4
- package/dist/design-system/p-b851a43fff.entry.js +0 -4
- package/dist/design-system/p-b8f626bf28.entry.js +0 -4
- package/dist/design-system/p-bd543e1baf.entry.js +0 -4
- package/dist/design-system/p-d4d9205dda.entry.js +0 -4
- package/dist/design-system/p-e0b2d6e296.entry.js +0 -4
- package/dist/design-system/p-e94ee7391c.entry.js +0 -4
- package/dist/design-system/p-faf75173db.entry.js +0 -4
- package/dist/design-system/p-fff38e1ca7.entry.js +0 -4
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var type = require('./type-
|
|
9
|
-
var required = require('./required-
|
|
10
|
-
require('./create-validator-decorator-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
|
+
var type = require('./type-BcP2cAG-.js');
|
|
9
|
+
var required = require('./required-Dh6TQNa1.js');
|
|
10
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
11
11
|
|
|
12
12
|
const tabHostCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}span,a{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;-ms-flex:1;flex:1;position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;min-height:2.5rem;gap:.5rem;padding:var(--_tabs-tab-padding);background:none;border:none;cursor:pointer;text-decoration:none;color:var(--_tabs-tab-color);font-family:var(--_tabs-tab-font-family);font-size:var(--_tabs-tab-font-size);font-weight:var(--_tabs-tab-font-weight);outline:none;white-space:nowrap;-webkit-transition:color 120ms ease;transition:color 120ms ease}span::after,a::after{content:"";position:absolute;bottom:calc(-1*var(--_tabs-indicator-height));left:0;right:0;height:2px;border-radius:9999px;background-color:rgba(0,0,0,0);-webkit-transition:background-color 120ms ease;transition:background-color 120ms ease}@media (hover: hover)and (pointer: fine){span:hover,a:hover{color:var(--_tabs-tab-color-hover)}span:hover::after,a:hover::after{background-color:var(--_tabs-tab-indicator-color-idle)}}span:active,a:active{color:var(--_tabs-tab-color-active)}span:active::after,a:active::after{background-color:var(--_tabs-tab-indicator-color-idle)}:host(:focus-visible:not(:active)){border-radius:var(--_tabs-tab-radius)}@media (hover: hover)and (pointer: fine){:host(:focus-visible:not(:active)){-webkit-box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_tabs-tab-color-focus) 0 0 0 5px !important;box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_tabs-tab-color-focus) 0 0 0 5px !important}}span.is-selected,a.is-selected{color:var(--_tabs-tab-color-selected);font-weight:var(--_tabs-tab-font-weight-selected)}span ::slotted(ds-badge.is-sm),a ::slotted(ds-badge.is-sm){position:absolute;top:calc(var(--_tabs-tab-badge-size));right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}span ::slotted(ds-icon.is-filled:not(.is-auto)),a ::slotted(ds-icon.is-filled:not(.is-auto)){--mod-icon-color:currentColor}:host(.is-fullwidth) span{width:100%;-ms-flex-pack:center;justify-content:center}:host(.is-vertical) span,:host(.is-vertical) a{white-space:normal;-ms-flex-pack:start;justify-content:flex-start;text-align:left}:host(.is-vertical) span::after,:host(.is-vertical) a::after{top:0;bottom:0;left:calc(-1*var(--_tabs-indicator-height));right:auto;width:var(--_tabs-indicator-height);height:auto}:host(.is-inverted) span.is-selected,:host(.is-inverted) a.is-selected{font-family:var(--ds-alias-text-family-heading);font-weight:var(--_tabs-tab-font-weight-selected)}:host(.is-navigation){position:relative;display:-ms-inline-flexbox;display:inline-flex}:host(.is-navigation)::after{content:"";position:absolute;bottom:calc(-1*var(--_tabs-indicator-height));left:0;right:0;height:2px;border-radius:9999px;background-color:rgba(0,0,0,0);-webkit-transition:background-color 120ms ease;transition:background-color 120ms ease}:host(.is-navigation.is-selected)::after{background-color:var(--_tabs-tab-border-color-selected)}:host(.is-navigation) ::slotted(a){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;min-height:2.5rem;gap:.5rem;padding:var(--_tabs-tab-padding);color:var(--_tabs-tab-color);font-family:var(--_tabs-tab-font-family);font-size:var(--_tabs-tab-font-size);font-weight:var(--_tabs-tab-font-weight);text-decoration:none;white-space:nowrap;-webkit-transition:color 120ms ease;transition:color 120ms ease;--mod-icon-color:currentColor}:host(.is-navigation) ::slotted(a:focus-visible:not(:active)){border-radius:var(--_tabs-tab-radius)}@media (hover: hover)and (pointer: fine){:host(.is-navigation) ::slotted(a:focus-visible:not(:active)){-webkit-box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_tabs-tab-color-focus) 0 0 0 5px !important;box-shadow:var(--ds-alias-interaction-focus-color-border) 0 0 0 2px,var(--_tabs-tab-color-focus) 0 0 0 5px !important}}:host(.is-navigation.is-selected) ::slotted(a),:host(.is-navigation) ::slotted([aria-current]){color:var(--_tabs-tab-color-selected);font-weight:var(--_tabs-tab-font-weight-selected)}:host(.is-navigation.is-inverted.is-selected) ::slotted(a),:host(.is-navigation.is-inverted) ::slotted([aria-current]){font-family:var(--ds-alias-text-family-heading);font-weight:var(--_tabs-tab-font-weight-selected)}:host(.is-navigation.is-vertical)::after{top:0;bottom:0;left:calc(-1*var(--_tabs-indicator-height));right:auto;width:2px;height:auto}`;
|
|
13
13
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var formControl = require('./form-control-
|
|
9
|
-
var oneOf = require('./one-of-
|
|
10
|
-
var type = require('./type-
|
|
11
|
-
var config_decorator = require('./config.decorator-
|
|
12
|
-
require('./create-validator-decorator-
|
|
13
|
-
require('./config.utils-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
|
+
var formControl = require('./form-control-CmRONWa7.js');
|
|
9
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
10
|
+
var type = require('./type-BcP2cAG-.js');
|
|
11
|
+
var config_decorator = require('./config.decorator-bU7c6ybP.js');
|
|
12
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
13
|
+
require('./config.utils-BhJig3l5.js');
|
|
14
14
|
|
|
15
15
|
const TABS_COLORS = ['', 'purple', 'green', 'red', 'yellow'];
|
|
16
16
|
const TABS_VERTICAL_COL_SIZES = [
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
8
|
|
|
9
9
|
const tagGroupHostCss = () => `:host{--_tags-m:var(--tags-m, var(--mod-tags-m, 0));--_tags-my:var(--tags-my, var(--mod-tags-my));--_tags-mx:var(--tags-mx, var(--mod-tags-mx));--_tags-ml:var(--tags-ml, var(--mod-tags-ml));--_tags-mr:var(--tags-mr, var(--mod-tags-mr));--_tags-mt:var(--tags-mt, var(--mod-tags-mt));--_tags-mb:var(--tags-mb, var(--mod-tags-mb));margin:var(--_tags-m);margin-inline:var(--_tags-mx);margin-block:var(--_tags-my);margin-left:var(--_tags-ml);margin-right:var(--_tags-mr);margin-top:var(--_tags-mt);margin-bottom:var(--_tags-mb);--_tags-gap:var(--tags-gap, var(--mod-tags-gap, 0.25rem));--_tags-display:var(--tags-display, var(--mod-tags-display, inline-flex));display:var(--_tags-display);gap:var(--_tags-gap);vertical-align:middle}`;
|
|
10
10
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
8
|
var attributes = require('./attributes-D57TMQsY.js');
|
|
9
|
-
var hasValue = require('./has-value-
|
|
9
|
+
var hasValue = require('./has-value-3s9rhB3K.js');
|
|
10
10
|
var tShirt = require('./t-shirt-AyhbnEdJ.js');
|
|
11
|
-
var type = require('./type-
|
|
12
|
-
var oneOf = require('./one-of-
|
|
13
|
-
require('./create-validator-decorator-
|
|
11
|
+
var type = require('./type-BcP2cAG-.js');
|
|
12
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
13
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
14
14
|
|
|
15
15
|
const TAG_COLORS = [
|
|
16
16
|
'primary',
|
|
@@ -37,7 +37,7 @@ const TAG_SHAPES = ['square', 'pill', ''];
|
|
|
37
37
|
const TAG_SIZES = ['sm', 'md', 'lg', 'small', 'medium', 'large', ''];
|
|
38
38
|
const TAG_PLACEMENTS = ['left', 'center', 'right', ''];
|
|
39
39
|
|
|
40
|
-
const tagHostCss = () => `:host{--_tag-position:var(--tag-position, var(--mod-tag-position, static));--_tag-top:var(--tag-top, var(--mod-tag-top));--_tag-right:var(--tag-right, var(--mod-tag-right));--_tag-bottom:var(--tag-bottom, var(--mod-tag-bottom));--_tag-left:var(--tag-left, var(--mod-tag-left));position:var(--_tag-position);top:var(--_tag-top);right:var(--_tag-right);bottom:var(--_tag-bottom);left:var(--_tag-left);--_tag-m:var(--tag-m, var(--mod-tag-m, 0));--_tag-my:var(--tag-my, var(--mod-tag-my));--_tag-mx:var(--tag-mx, var(--mod-tag-mx));--_tag-ml:var(--tag-ml, var(--mod-tag-ml));--_tag-mr:var(--tag-mr, var(--mod-tag-mr));--_tag-mt:var(--tag-mt, var(--mod-tag-mt));--_tag-mb:var(--tag-mb, var(--mod-tag-mb));margin:var(--_tag-m);margin-inline:var(--_tag-mx);margin-block:var(--_tag-my);margin-left:var(--_tag-ml);margin-right:var(--_tag-mr);margin-top:var(--_tag-mt);margin-bottom:var(--_tag-mb);--_tag-min-height:var(--tag-min-height, var(--mod-tag-min-height, 2rem));--_tag-gap:var(--tag-gap, var(--mod-tag-gap, 0.25rem));--_tag-px:var(--tag-px, var(--mod-tag-px, var(--ds-tag-space-padding-x-base)));--_tag-py:var(--tag-py, var(--mod-tag-py, var(--ds-tag-space-padding-y-base)));--_tag-radius:var(--tag-radius, var(--mod-tag-radius, var(--ds-tag-radius-base)));--_tag-color:var(--tag-color, var(--mod-tag-color, var(--ds-tag-
|
|
40
|
+
const tagHostCss = () => `:host{--_tag-position:var(--tag-position, var(--mod-tag-position, static));--_tag-top:var(--tag-top, var(--mod-tag-top));--_tag-right:var(--tag-right, var(--mod-tag-right));--_tag-bottom:var(--tag-bottom, var(--mod-tag-bottom));--_tag-left:var(--tag-left, var(--mod-tag-left));position:var(--_tag-position);top:var(--_tag-top);right:var(--_tag-right);bottom:var(--_tag-bottom);left:var(--_tag-left);--_tag-m:var(--tag-m, var(--mod-tag-m, 0));--_tag-my:var(--tag-my, var(--mod-tag-my));--_tag-mx:var(--tag-mx, var(--mod-tag-mx));--_tag-ml:var(--tag-ml, var(--mod-tag-ml));--_tag-mr:var(--tag-mr, var(--mod-tag-mr));--_tag-mt:var(--tag-mt, var(--mod-tag-mt));--_tag-mb:var(--tag-mb, var(--mod-tag-mb));margin:var(--_tag-m);margin-inline:var(--_tag-mx);margin-block:var(--_tag-my);margin-left:var(--_tag-ml);margin-right:var(--_tag-mr);margin-top:var(--_tag-mt);margin-bottom:var(--_tag-mb);--_tag-min-height:var(--tag-min-height, var(--mod-tag-min-height, 2rem));--_tag-gap:var(--tag-gap, var(--mod-tag-gap, 0.25rem));--_tag-px:var(--tag-px, var(--mod-tag-px, var(--ds-tag-space-padding-x-base)));--_tag-py:var(--tag-py, var(--mod-tag-py, var(--ds-tag-space-padding-y-base)));--_tag-radius:var(--tag-radius, var(--mod-tag-radius, var(--ds-tag-radius-base)));--_tag-color:var(--tag-color, var(--mod-tag-color, var(--ds-tag-base-color-text-base)));--_tag-bg:var(--tag-bg, var(--mod-tag-bg, var(--ds-tag-base-color-bg-base)));--_tag-line-height:var(--tag-line-height, var(--mod-tag-line-height, 1));--_tag-font-family:var(--tag-font-family, var(--mod-tag-font-family, var(--ds-tag-font-family)));--_tag-font-size:var(--tag-font-size, var(--mod-tag-font-size, var(--ds-tag-font-size-base)));--_tag-font-weight:var(--tag-font-weight, var(--mod-tag-font-weight, var(--ds-tag-font-weight-base)));--_tag-close-mr:var(--tag-close-mr, var(--mod-tag-close-mr, -0.25rem))}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;vertical-align:bottom;-webkit-box-sizing:border-box;box-sizing:border-box;gap:var(--_tag-gap);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-height:var(--_tag-min-height);padding-block:var(--_tag-py);padding-inline:var(--_tag-px);border-radius:var(--_tag-radius);color:var(--_tag-color);background-color:var(--_tag-bg);font-family:var(--_tag-font-family);line-height:var(--_tag-line-height);font-size:var(--_tag-font-size);font-weight:var(--_tag-font-weight)}:host>.close,:host>ds-close{--close-mr:var(--_tag-close-mr)}:host>ds-icon{--icon-size:0.875rem}:host::part(label){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;vertical-align:middle;gap:var(--_tag-gap)}:host(.is-primary){--icon-color:var(--ds-tag-primary-color-text-base);--mod-tag-color:var(--ds-tag-primary-color-text-base);--mod-tag-bg:var(--ds-tag-primary-color-bg-base)}:host(.is-grey){--icon-color:var(--ds-tag-grey-color-text-base);--mod-tag-color:var(--ds-tag-grey-color-text-base);--mod-tag-bg:var(--ds-tag-grey-color-bg-base)}:host(.is-success){--icon-color:var(--ds-tag-success-color-text-base);--mod-tag-color:var(--ds-tag-success-color-text-base);--mod-tag-bg:var(--ds-tag-success-color-bg-base)}:host(.is-info){--icon-color:var(--ds-tag-info-color-text-base);--mod-tag-color:var(--ds-tag-info-color-text-base);--mod-tag-bg:var(--ds-tag-info-color-bg-base)}:host(.is-warning){--icon-color:var(--ds-tag-warning-color-text-base);--mod-tag-color:var(--ds-tag-warning-color-text-base);--mod-tag-bg:var(--ds-tag-warning-color-bg-base)}:host(.is-danger){--icon-color:var(--ds-tag-danger-color-text-base);--mod-tag-color:var(--ds-tag-danger-color-text-base);--mod-tag-bg:var(--ds-tag-danger-color-bg-base)}:host(.is-purple){--icon-color:var(--ds-tag-purple-color-text-base);--mod-tag-color:var(--ds-tag-purple-color-text-base);--mod-tag-bg:var(--ds-tag-purple-color-bg-base)}:host(.is-red){--icon-color:var(--ds-tag-red-color-text-base);--mod-tag-color:var(--ds-tag-red-color-text-base);--mod-tag-bg:var(--ds-tag-red-color-bg-base)}:host(.is-yellow){--icon-color:var(--ds-tag-yellow-color-text-base);--mod-tag-color:var(--ds-tag-yellow-color-text-base);--mod-tag-bg:var(--ds-tag-yellow-color-bg-base)}:host(.is-green){--icon-color:var(--ds-tag-green-color-text-base);--mod-tag-color:var(--ds-tag-green-color-text-base);--mod-tag-bg:var(--ds-tag-green-color-bg-base)}:host(.is-purple-dark){--icon-color:var(--ds-tag-purple-dark-color-text-base);--mod-tag-color:var(--ds-tag-purple-dark-color-text-base);--mod-tag-bg:var(--ds-tag-purple-dark-color-bg-base)}:host(.is-red-dark){--icon-color:var(--ds-tag-red-dark-color-text-base);--mod-tag-color:var(--ds-tag-red-dark-color-text-base);--mod-tag-bg:var(--ds-tag-red-dark-color-bg-base)}:host(.is-yellow-dark){--icon-color:var(--ds-tag-yellow-dark-color-text-base);--mod-tag-color:var(--ds-tag-yellow-dark-color-text-base);--mod-tag-bg:var(--ds-tag-yellow-dark-color-bg-base)}:host(.is-green-dark){--icon-color:var(--ds-tag-green-dark-color-text-base);--mod-tag-color:var(--ds-tag-green-dark-color-text-base);--mod-tag-bg:var(--ds-tag-green-dark-color-bg-base)}:host(.is-purple-light){--icon-color:var(--ds-tag-purple-light-color-text-base);--mod-tag-color:var(--ds-tag-purple-light-color-text-base);--mod-tag-bg:var(--ds-tag-purple-light-color-bg-base)}:host(.is-red-light){--icon-color:var(--ds-tag-red-light-color-text-base);--mod-tag-color:var(--ds-tag-red-light-color-text-base);--mod-tag-bg:var(--ds-tag-red-light-color-bg-base)}:host(.is-yellow-light){--icon-color:var(--ds-tag-yellow-light-color-text-base);--mod-tag-color:var(--ds-tag-yellow-light-color-text-base);--mod-tag-bg:var(--ds-tag-yellow-light-color-bg-base)}:host(.is-green-light){--icon-color:var(--ds-tag-green-light-color-text-base);--mod-tag-color:var(--ds-tag-green-light-color-text-base);--mod-tag-bg:var(--ds-tag-green-light-color-bg-base)}:host(.is-primary){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-grey){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-info){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-success){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-danger){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-purple-dark){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-red-dark){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-yellow-dark){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-green-dark){--close-color-icon:var(--ds-close-inverted-icon-color-base);--close-color-background-hover:var(--ds-close-inverted-color-background-hover);--close-color-background-active:var(--ds-close-inverted-color-background-active);--close-color-focus:var(--ds-alias-interaction-focus-color-inverted)}:host(.is-square){--mod-tag-radius:var(--ds-tag-radius-square)}:host(.is-pill){--mod-tag-radius:var(--ds-tag-radius-pill)}:host(.is-sm){--mod-tag-min-height:1.5rem;--mod-tag-py:var(--ds-tag-space-padding-y-sm);--mod-tag-px:var(--ds-tag-space-padding-x-sm);--mod-tag-font-size:var(--ds-tag-font-size-sm);--mod-tag-font-weight:var(--ds-tag-font-weight-sm)}:host(.is-sm)>.close,:host(.is-sm)>ds-close{--close-padding:0.25rem;--close-size-icon:10px}:host(.is-md){--mod-tag-min-height:2.5rem;--mod-tag-py:var(--ds-tag-space-padding-y-md);--mod-tag-px:var(--ds-tag-space-padding-x-md);--mod-tag-font-size:var(--ds-tag-font-size-md);--mod-tag-font-weight:var(--ds-tag-font-weight-md)}:host(.is-lg){--mod-tag-min-height:3rem;--mod-tag-py:var(--ds-tag-space-padding-y-lg);--mod-tag-px:var(--ds-tag-space-padding-x-lg);--mod-tag-font-size:var(--ds-tag-font-size-lg);--mod-tag-font-weight:var(--ds-tag-font-weight-lg)}:host{display:-ms-inline-flexbox;display:inline-flex}`;
|
|
41
41
|
|
|
42
42
|
const Tag = class {
|
|
43
43
|
constructor(hostRef) {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var hasValue = require('./has-value-
|
|
9
|
-
var oneOf = require('./one-of-
|
|
10
|
-
var type = require('./type-
|
|
11
|
-
require('./create-validator-decorator-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
|
+
var hasValue = require('./has-value-3s9rhB3K.js');
|
|
9
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
10
|
+
var type = require('./type-BcP2cAG-.js');
|
|
11
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
12
12
|
|
|
13
13
|
const TEXT_ALIGNS = ['', 'left', 'right', 'center', 'justify'];
|
|
14
14
|
const TEXT_SIZES = [
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
8
|
var attributes = require('./attributes-D57TMQsY.js');
|
|
9
|
-
var formControl = require('./form-control-
|
|
10
|
-
var field_util = require('./field.util-
|
|
9
|
+
var formControl = require('./form-control-CmRONWa7.js');
|
|
10
|
+
var field_util = require('./field.util-C7hgA41e.js');
|
|
11
11
|
var input_interfaces = require('./input.interfaces-YapUUaRx.js');
|
|
12
|
-
var type = require('./type-
|
|
13
|
-
var oneOf = require('./one-of-
|
|
14
|
-
var config_decorator = require('./config.decorator-
|
|
12
|
+
var type = require('./type-BcP2cAG-.js');
|
|
13
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
14
|
+
var config_decorator = require('./config.decorator-bU7c6ybP.js');
|
|
15
15
|
require('./aria-C3Tx6AHY.js');
|
|
16
16
|
require('./label.i18n-C00ZY0P9.js');
|
|
17
|
-
require('./create-validator-decorator-
|
|
18
|
-
require('./config.utils-
|
|
17
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
18
|
+
require('./config.utils-BhJig3l5.js');
|
|
19
19
|
|
|
20
20
|
const TEXTAREA_WRAPS = ['', 'hard', 'soft', 'off'];
|
|
21
21
|
|
|
@@ -41,6 +41,7 @@ const Textarea = class {
|
|
|
41
41
|
this.inheritedAttributes = {};
|
|
42
42
|
this.control = new formControl.FormControl(this);
|
|
43
43
|
this.focused = false;
|
|
44
|
+
this.hasInvalidTextSlotContent = false;
|
|
44
45
|
this.language = index.defaultConfig.language;
|
|
45
46
|
this.region = index.defaultConfig.region;
|
|
46
47
|
/**
|
|
@@ -149,6 +150,13 @@ const Textarea = class {
|
|
|
149
150
|
connectedCallback() {
|
|
150
151
|
this.debounceChanged();
|
|
151
152
|
this.control.connectedCallback();
|
|
153
|
+
this.disconnectInvalidTextSlotWatcher = field_util.watchInvalidTextSlot(this.el, hasContent => {
|
|
154
|
+
this.hasInvalidTextSlotContent = hasContent;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
disconnectedCallback() {
|
|
158
|
+
var _a;
|
|
159
|
+
(_a = this.disconnectInvalidTextSlotWatcher) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
152
160
|
}
|
|
153
161
|
componentWillLoad() {
|
|
154
162
|
this.inheritedAttributes = attributes.inheritAttributes(this.el, ['aria-label', 'tabindex', 'title', 'data-hj-allow']);
|
|
@@ -201,7 +209,8 @@ const Textarea = class {
|
|
|
201
209
|
* ------------------------------------------------------
|
|
202
210
|
*/
|
|
203
211
|
render() {
|
|
204
|
-
|
|
212
|
+
const isInvalid = this.invalid || this.hasInvalidTextSlotContent;
|
|
213
|
+
return (index.h(field_util.Field, { key: '49d0b6396fe85413e395b50d5e09efca92db51f8', inputId: 'textarea', disabled: this.disabled, color: this.color, invalid: isInvalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language }, index.h("textarea", Object.assign({ key: '0a963e803a8e9341869b3b25336c092d8f25b65e', id: "textarea", part: "textarea", name: this.name, ref: el => (this.control.nativeEl = el), "aria-describedby": "description", "aria-invalid": isInvalid ? 'true' : 'false', disabled: this.disabled, autoCapitalize: this.autocapitalize, autocomplete: this.autocomplete, autofocus: this.autofocus, minLength: this.minLength, maxLength: this.maxLength, placeholder: this.placeholder || '', readonly: this.readonly, required: this.required, inputMode: this.inputmode, cols: this.cols, rows: this.rows, wrap: this.wrap ? this.wrap : undefined, onClick: ev => this.handleClick(ev), onFocus: ev => this.handleFocus(ev), onBlur: ev => this.handleBlur(ev), onInput: ev => this.handleInput(ev), onKeyPress: ev => this.dsKeyPress.emit(ev) }, this.inheritedAttributes))));
|
|
205
214
|
}
|
|
206
215
|
static get formAssociated() { return true; }
|
|
207
216
|
get el() { return index.getElement(this); }
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var formControl = require('./form-control-
|
|
9
|
-
var hasValue = require('./has-value-
|
|
10
|
-
var svg = require('./svg-
|
|
11
|
-
var oneOf = require('./one-of-
|
|
12
|
-
var type = require('./type-
|
|
13
|
-
var required = require('./required-
|
|
14
|
-
var config_decorator = require('./config.decorator-
|
|
15
|
-
require('./create-validator-decorator-
|
|
16
|
-
require('./config.utils-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
|
+
var formControl = require('./form-control-CmRONWa7.js');
|
|
9
|
+
var hasValue = require('./has-value-3s9rhB3K.js');
|
|
10
|
+
var svg = require('./svg-B9eUbG7a.js');
|
|
11
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
12
|
+
var type = require('./type-BcP2cAG-.js');
|
|
13
|
+
var required = require('./required-Dh6TQNa1.js');
|
|
14
|
+
var config_decorator = require('./config.decorator-bU7c6ybP.js');
|
|
15
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
16
|
+
require('./config.utils-BhJig3l5.js');
|
|
17
17
|
|
|
18
18
|
const TOAST_COLORS = ['base', 'info', 'success', 'warning', 'danger'];
|
|
19
19
|
const TOAST_TARGETS = ['_blank', '_parent', '_self', '_top'];
|
|
20
20
|
|
|
21
|
-
const toastHostCss = () => `:host{--_toast-position:var(--toast-position, var(--mod-toast-position, static));--_toast-top:var(--toast-top, var(--mod-toast-top));--_toast-right:var(--toast-right, var(--mod-toast-right));--_toast-bottom:var(--toast-bottom, var(--mod-toast-bottom));--_toast-left:var(--toast-left, var(--mod-toast-left));position:var(--_toast-position);top:var(--_toast-top);right:var(--_toast-right);bottom:var(--_toast-bottom);left:var(--_toast-left);--_toast-m:var(--toast-m, var(--mod-toast-m, 0));--_toast-my:var(--toast-my, var(--mod-toast-my));--_toast-mx:var(--toast-mx, var(--mod-toast-mx));--_toast-ml:var(--toast-ml, var(--mod-toast-ml));--_toast-mr:var(--toast-mr, var(--mod-toast-mr));--_toast-mt:var(--toast-mt, var(--mod-toast-mt));--_toast-mb:var(--toast-mb, var(--mod-toast-mb));margin:var(--_toast-m);margin-inline:var(--_toast-mx);margin-block:var(--_toast-my);margin-left:var(--_toast-ml);margin-right:var(--_toast-mr);margin-top:var(--_toast-mt);margin-bottom:var(--_toast-mb);--_toast-shadow:var(--toast-shadow, var(--mod-toast-shadow, var(--ds-alias-shadow-box-base)));--_toast-radius:var(--toast-radius, var(--mod-toast-radius, var(--ds-toast-radius)));--_toast-bg:var(--toast-bg, var(--mod-toast-bg, var(--ds-toast-
|
|
21
|
+
const toastHostCss = () => `:host{--_toast-position:var(--toast-position, var(--mod-toast-position, static));--_toast-top:var(--toast-top, var(--mod-toast-top));--_toast-right:var(--toast-right, var(--mod-toast-right));--_toast-bottom:var(--toast-bottom, var(--mod-toast-bottom));--_toast-left:var(--toast-left, var(--mod-toast-left));position:var(--_toast-position);top:var(--_toast-top);right:var(--_toast-right);bottom:var(--_toast-bottom);left:var(--_toast-left);--_toast-m:var(--toast-m, var(--mod-toast-m, 0));--_toast-my:var(--toast-my, var(--mod-toast-my));--_toast-mx:var(--toast-mx, var(--mod-toast-mx));--_toast-ml:var(--toast-ml, var(--mod-toast-ml));--_toast-mr:var(--toast-mr, var(--mod-toast-mr));--_toast-mt:var(--toast-mt, var(--mod-toast-mt));--_toast-mb:var(--toast-mb, var(--mod-toast-mb));margin:var(--_toast-m);margin-inline:var(--_toast-mx);margin-block:var(--_toast-my);margin-left:var(--_toast-ml);margin-right:var(--_toast-mr);margin-top:var(--_toast-mt);margin-bottom:var(--_toast-mb);--_toast-shadow:var(--toast-shadow, var(--mod-toast-shadow, var(--ds-alias-shadow-box-base)));--_toast-radius:var(--toast-radius, var(--mod-toast-radius, var(--ds-toast-radius)));--_toast-bg:var(--toast-bg, var(--mod-toast-bg, var(--ds-toast-primary-color-background-base)));--_toast-color:var(--toast-color, var(--mod-toast-color, var(--ds-toast-primary-color-text-base)));--_toast-icon-color:var(--toast-icon-color, var(--mod-toast-icon-color, var(--ds-toast-primary-color-icon-base)));--_toast-progress-duration:var(--toast-progress-duration, var(--mod-toast-progress-duration, 0));--_toast-progress-bar-bg:var(--toast-progress-bar-bg, var(--mod-toast-progress-bar-bg, var(--ds-toast-primary-color-progress-bar-base)));--_toast-progress-bg:var(--toast-progress-bg, var(--mod-toast-progress-bg, var(--ds-toast-primary-color-progress-background-base)));--_toast-heading-font-family:var(--toast-heading-font-family, var(--mod-toast-heading-font-family, var(--ds-alias-text-family-heading)));--_toast-heading-font-weight:var(--toast-heading-font-weight, var(--mod-toast-heading-font-weight, var(--ds-alias-text-weight-bold)));--_toast-heading-font-size:var(--toast-heading-font-size, var(--mod-toast-heading-font-size, var(--ds-alias-text-size-base-device)));--_toast-heading-line-height:var(--toast-heading-line-height, var(--mod-toast-heading-line-height, var(--ds-alias-text-line-height-heading)));--_toast-content-font-family:var(--toast-content-font-family, var(--mod-toast-content-font-family, var(--ds-alias-text-family-body)));--_toast-content-font-weight:var(--toast-content-font-weight, var(--mod-toast-content-font-weight, inherit));--_toast-content-font-size:var(--toast-content-font-size, var(--mod-toast-content-font-size, var(--ds-alias-text-size-sm-device)));--_toast-content-line-height:var(--toast-content-line-height, var(--mod-toast-content-line-height, var(--ds-alias-text-line-height-body)));--_toast-gap:var(--toast-gap, var(--mod-toast-gap, 0.125rem));--_toast-p:var(--toast-p, var(--mod-toast-p, 1rem));--_toast-animation-start-opacity:var(--toast-animation-start-opacity, var(--mod-toast-animation-start-opacity, 1));--_toast-animation-start-transform:var(--toast-animation-start-transform, var(--mod-toast-animation-start-transform, none));--_toast-animation-transition:var(--toast-animation-transition, var(--mod-toast-animation-transition, none));--_toast-animation-end-opacity:var(--toast-animation-end-opacity, var(--mod-toast-animation-end-opacity, 1));--_toast-animation-end-transform:var(--toast-animation-end-transform, var(--mod-toast-animation-end-transform, none))}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;user-drag:none}@media print{:host{display:none !important}}:host{opacity:var(--_toast-animation-start-opacity);-webkit-transform:var(--_toast-animation-start-transform);transform:var(--_toast-animation-start-transform);-ms-flex:1;flex:1;position:relative;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;color:var(--_toast-color);background:var(--_toast-bg);border-radius:var(--_toast-radius);-webkit-box-shadow:var(--_toast-shadow);box-shadow:var(--_toast-shadow);padding:var(--_toast-p);-webkit-column-gap:calc(var(--_toast-gap)*4);-moz-column-gap:calc(var(--_toast-gap)*4);column-gap:calc(var(--_toast-gap)*4);row-gap:var(--_toast-gap);-ms-flex-align:center;align-items:center;width:100%}:host ds-icon:not([name]){--icon-color:null;--icon-size:var(--ds-icon-size-lg)}:host #icon{grid-area:icon}:host #content{margin:0 !important;grid-area:content;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host #content>strong,:host #content>b,:host #content>h2{font-family:var(--_toast-heading-font-family);font-weight:var(--_toast-heading-font-weight);line-height:var(--_toast-heading-line-height);font-size:var(--_toast-heading-font-size);margin:0 !important}:host #content,:host #content>span,:host #content>p{font-family:var(--_toast-content-font-family);font-size:var(--_toast-content-font-size);font-weight:var(--_toast-content-font-weight);line-height:var(--_toast-content-line-height)}:host ds-button,:host .button{--button-mt:0;grid-area:action;align-self:center}:host .close,:host ds-close{grid-area:close;align-self:center}:host{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon content"}:host(.is-closable:not(.is-action)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content close"}:host(.is-action:not(.is-closable)){grid-template-columns:auto 1fr auto;grid-template-areas:"icon content action"}:host(.is-action.is-closable){grid-template-columns:auto 1fr auto auto;grid-template-areas:"icon content action close"}:host(.is-ready){-webkit-transition:var(--_toast-animation-transition);transition:var(--_toast-animation-transition)}:host(.is-visible){opacity:var(--_toast-animation-end-opacity);-webkit-transform:var(--_toast-animation-end-transform);transform:var(--_toast-animation-end-transform)}:host(.has-progress-bar)::before{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:100%;content:"";background-color:var(--_toast-progress-bg);border-bottom-left-radius:var(--_toast-radius);border-bottom-right-radius:var(--_toast-radius)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);-webkit-animation:progress var(--_toast-progress-duration) linear forwards;animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-info){--mod-toast-color:var(--ds-toast-info-color-text-base);--mod-toast-border-color:var(--ds-toast-info-color-border-base);--mod-toast-bg:var(--ds-toast-info-color-background-base);--mod-toast-icon-color:var(--ds-toast-info-color-icon-base);--mod-toast-progress-bar-bg:var(--ds-toast-info-color-progress-bar-base);--mod-toast-progress-bg:var(--ds-toast-info-color-progress-background-base)}:host(.is-success){--mod-toast-color:var(--ds-toast-success-color-text-base);--mod-toast-border-color:var(--ds-toast-success-color-border-base);--mod-toast-bg:var(--ds-toast-success-color-background-base);--mod-toast-icon-color:var(--ds-toast-success-color-icon-base);--mod-toast-progress-bar-bg:var(--ds-toast-success-color-progress-bar-base);--mod-toast-progress-bg:var(--ds-toast-success-color-progress-background-base)}:host(.is-warning){--mod-toast-color:var(--ds-toast-warning-color-text-base);--mod-toast-border-color:var(--ds-toast-warning-color-border-base);--mod-toast-bg:var(--ds-toast-warning-color-background-base);--mod-toast-icon-color:var(--ds-toast-warning-color-icon-base);--mod-toast-progress-bar-bg:var(--ds-toast-warning-color-progress-bar-base);--mod-toast-progress-bg:var(--ds-toast-warning-color-progress-background-base)}:host(.is-danger){--mod-toast-color:var(--ds-toast-danger-color-text-base);--mod-toast-border-color:var(--ds-toast-danger-color-border-base);--mod-toast-bg:var(--ds-toast-danger-color-background-base);--mod-toast-icon-color:var(--ds-toast-danger-color-icon-base);--mod-toast-progress-bar-bg:var(--ds-toast-danger-color-progress-bar-base);--mod-toast-progress-bg:var(--ds-toast-danger-color-progress-background-base)}:host(.has-progress-bar)::after{display:block;position:absolute;bottom:0;left:0;height:.25rem;width:16px;content:"";background-color:var(--_toast-progress-bar-bg);border-bottom-left-radius:var(--_toast-radius);-webkit-animation:progress var(--_toast-progress-duration) linear forwards;animation:progress var(--_toast-progress-duration) linear forwards}:host(.is-paused)::after{-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes progress{0%{width:0}99%{width:99%}100%{width:100%;border-bottom-right-radius:var(--_toast-radius)}}@keyframes progress{0%{width:0}99%{width:99%}100%{width:100%;border-bottom-right-radius:var(--_toast-radius)}}`;
|
|
22
22
|
|
|
23
23
|
const Toast = class {
|
|
24
24
|
constructor(hostRef) {
|
|
@@ -31,6 +31,10 @@ const Toast = class {
|
|
|
31
31
|
this.animated = false;
|
|
32
32
|
this.didLoad = false;
|
|
33
33
|
this.didPause = false;
|
|
34
|
+
/**
|
|
35
|
+
* PUBLIC PROPERTY API
|
|
36
|
+
* ─────────────────────────────────────────────────────
|
|
37
|
+
*/
|
|
34
38
|
/**
|
|
35
39
|
* Defines the color of the element
|
|
36
40
|
* Color type primary is deprecated, please use info instead.
|
|
@@ -89,7 +93,7 @@ const Toast = class {
|
|
|
89
93
|
this.actionHandler = () => void 0;
|
|
90
94
|
/**
|
|
91
95
|
* PRIVATE METHODS
|
|
92
|
-
*
|
|
96
|
+
* ─────────────────────────────────────────────────────
|
|
93
97
|
*/
|
|
94
98
|
this.generateSvgContent = () => {
|
|
95
99
|
if (hasValue.hasValue(this.svg)) {
|
|
@@ -122,7 +126,7 @@ const Toast = class {
|
|
|
122
126
|
}
|
|
123
127
|
/**
|
|
124
128
|
* LIFECYCLE
|
|
125
|
-
*
|
|
129
|
+
* ─────────────────────────────────────────────────────
|
|
126
130
|
*/
|
|
127
131
|
componentDidLoad() {
|
|
128
132
|
index.raf(() => {
|
|
@@ -132,7 +136,7 @@ const Toast = class {
|
|
|
132
136
|
}
|
|
133
137
|
/**
|
|
134
138
|
* PUBLIC METHODS
|
|
135
|
-
*
|
|
139
|
+
* ─────────────────────────────────────────────────────
|
|
136
140
|
*/
|
|
137
141
|
/**
|
|
138
142
|
* Closes this notification
|
|
@@ -149,7 +153,7 @@ const Toast = class {
|
|
|
149
153
|
}
|
|
150
154
|
/**
|
|
151
155
|
* RENDER
|
|
152
|
-
*
|
|
156
|
+
* ─────────────────────────────────────────────────────
|
|
153
157
|
*/
|
|
154
158
|
render() {
|
|
155
159
|
const iconName = this.generateIconName();
|
|
@@ -161,7 +165,7 @@ const Toast = class {
|
|
|
161
165
|
'--toast-progress-duration': `${this.duration}ms`,
|
|
162
166
|
}
|
|
163
167
|
: {};
|
|
164
|
-
return (index.h(index.Host, { key: '
|
|
168
|
+
return (index.h(index.Host, { key: 'd4ca47796b7b5927412383a15311e794ae217be4', role: "alert", "aria-live": "assertive", "aria-atomic": "true", class: {
|
|
165
169
|
[`is-ready`]: this.didLoad,
|
|
166
170
|
[`is-paused`]: this.didPause,
|
|
167
171
|
[`is-visible`]: this.visible,
|
|
@@ -175,7 +179,7 @@ const Toast = class {
|
|
|
175
179
|
}, onMouseLeave: () => {
|
|
176
180
|
this.didPause = false;
|
|
177
181
|
this.dsDidResume.emit();
|
|
178
|
-
} }, !hasValue.hasValue(svgContent) && (index.h("ds-icon", { key: '
|
|
182
|
+
} }, !hasValue.hasValue(svgContent) && (index.h("ds-icon", { key: '69dad798037879665cfcac7c2c4c5202e59398ff', id: "icon", part: "icon", name: iconName || this.color === 'warning'
|
|
179
183
|
? 'alert'
|
|
180
184
|
: this.color === 'danger'
|
|
181
185
|
? 'alert'
|
|
@@ -187,11 +191,11 @@ const Toast = class {
|
|
|
187
191
|
? 'triangle'
|
|
188
192
|
: this.color === 'danger' || this.color === 'success' || this.color === 'info'
|
|
189
193
|
? 'circle'
|
|
190
|
-
: undefined })), hasValue.hasValue(svgContent) && index.h("ds-icon", { key: '
|
|
194
|
+
: undefined })), hasValue.hasValue(svgContent) && index.h("ds-icon", { key: 'a6ba300bdb84ba361450bb08059293a6a533de37', id: "icon", part: "icon", svg: svgContent }), index.h("span", { key: '0c1dcbd34ccd9e8d4f5fa8abf575c8de78af23ca', part: "content", id: "content" }, this.heading && index.h("h2", { key: 'e0f1f64c75f147c46ffbc7fcd38df70b79d1788d', part: "heading" }, this.heading), index.h("span", { key: 'b61f2943532f86a484ab688253a8e7a04327c00b', part: "message" }, this.message, index.h("slot", { key: 'e9924f719790067a6e2bdb136b18dec3841f04ae' }))), hasValue.hasValue(this.action) && (index.h("ds-button", { key: 'ba37a92ae3638e6304ddca76b9793003455e79eb', id: "action", color: "primary", size: "sm", part: "button", icon: this.actionIcon, target: this.actionTarget, href: this.actionHref, onClick: ev => {
|
|
191
195
|
formControl.stopEventBubbling(ev);
|
|
192
196
|
this.dsActionClick.emit(ev);
|
|
193
197
|
this.actionHandler(this.alertId);
|
|
194
|
-
} }, this.action)), this.closable && (index.h("ds-close", { key: '
|
|
198
|
+
} }, this.action)), this.closable && (index.h("ds-close", { key: '1b2978686c359bb6b6cf6f9e40bd8a693b8480cd', part: "close", onClick: ev => {
|
|
195
199
|
formControl.stopEventBubbling(ev);
|
|
196
200
|
this.close();
|
|
197
201
|
} }))));
|
|
@@ -246,6 +250,14 @@ tslib_es6.__decorate([
|
|
|
246
250
|
type.Type('string'),
|
|
247
251
|
tslib_es6.__metadata("design:type", String)
|
|
248
252
|
], Toast.prototype, "actionHref", void 0);
|
|
253
|
+
tslib_es6.__decorate([
|
|
254
|
+
type.Type('string'),
|
|
255
|
+
tslib_es6.__metadata("design:type", String)
|
|
256
|
+
], Toast.prototype, "alertId", void 0);
|
|
257
|
+
tslib_es6.__decorate([
|
|
258
|
+
type.Type('boolean'),
|
|
259
|
+
tslib_es6.__metadata("design:type", Boolean)
|
|
260
|
+
], Toast.prototype, "visible", void 0);
|
|
249
261
|
tslib_es6.__decorate([
|
|
250
262
|
config_decorator.ListenToConfig(),
|
|
251
263
|
tslib_es6.__metadata("design:type", Function),
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
8
|
var attributes = require('./attributes-D57TMQsY.js');
|
|
9
|
-
var type = require('./type-
|
|
10
|
-
var oneOf = require('./one-of-
|
|
11
|
-
require('./create-validator-decorator-
|
|
9
|
+
var type = require('./type-BcP2cAG-.js');
|
|
10
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
11
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
12
12
|
|
|
13
13
|
const TOGGLE_GROUP_COLUMNS = [1, 2, 3, 4];
|
|
14
14
|
const TOGGLE_TILE_COLORS = ['', 'purple', 'green', 'yellow', 'red'];
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-DMgN1vwG.js');
|
|
8
8
|
var floatingUi_dom = require('./floating-ui.dom-Cu3dZdFD.js');
|
|
9
|
-
var oneOf = require('./one-of-
|
|
10
|
-
require('./create-validator-decorator-
|
|
9
|
+
var oneOf = require('./one-of-xdIxH9e7.js');
|
|
10
|
+
require('./create-validator-decorator-CiRieHJL.js');
|
|
11
11
|
|
|
12
12
|
const TOOLTIP_PLACEMENTS = ['top', 'right', 'bottom', 'left'];
|
|
13
13
|
|
|
@@ -3,17 +3,47 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DD7qcaNz.js');
|
|
7
7
|
var aria = require('./aria-C3Tx6AHY.js');
|
|
8
8
|
var label_i18n = require('./label.i18n-C00ZY0P9.js');
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Watches the host's `slot="invalid-text"` light-DOM child for content, calling
|
|
12
|
+
* `onChange` whenever "has non-empty content" flips. Covers both the node being
|
|
13
|
+
* added/removed/replaced and its text being mutated in place (e.g. AEM writing a
|
|
14
|
+
* validation message into an otherwise-empty node it owns).
|
|
15
|
+
*
|
|
16
|
+
* Returns a disconnect function to call from `disconnectedCallback`.
|
|
17
|
+
*/
|
|
18
|
+
function watchInvalidTextSlot(el, onChange) {
|
|
19
|
+
let contentObserver;
|
|
20
|
+
const check = () => {
|
|
21
|
+
var _a;
|
|
22
|
+
const slotted = el.querySelector(':scope > [slot="invalid-text"]');
|
|
23
|
+
onChange(!!slotted && ((_a = slotted.textContent) !== null && _a !== void 0 ? _a : '').trim().length > 0);
|
|
24
|
+
contentObserver === null || contentObserver === void 0 ? void 0 : contentObserver.disconnect();
|
|
25
|
+
if (slotted) {
|
|
26
|
+
contentObserver = new MutationObserver(check);
|
|
27
|
+
contentObserver.observe(slotted, { childList: true, characterData: true, subtree: true });
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const hostObserver = new MutationObserver(check);
|
|
31
|
+
hostObserver.observe(el, { childList: true });
|
|
32
|
+
check();
|
|
33
|
+
return () => {
|
|
34
|
+
hostObserver.disconnect();
|
|
35
|
+
contentObserver === null || contentObserver === void 0 ? void 0 : contentObserver.disconnect();
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
10
39
|
const Field = (props, children) => {
|
|
11
40
|
var _a;
|
|
12
41
|
const inputId = (_a = props.inputId) !== null && _a !== void 0 ? _a : 'input';
|
|
13
42
|
const role = props.role === 'fieldset' ? 'group' : undefined;
|
|
14
43
|
const RoleTag = props.role === 'fieldset' ? 'fieldset' : 'div';
|
|
15
44
|
return (index.h(index.Host, { class: Object.assign({ 'ds-field ': true, 'is-disabled': !!props.disabled, 'is-danger': props.color === 'danger' || !!props.invalid, 'is-success': props.color === 'success' && !props.invalid, 'is-warning': props.color === 'warning' && !props.invalid }, props.cssClasses) }, index.h(RoleTag, { id: "inner", part: "inner", role: role, "aria-disabled": aria.ariaBooleanToString(props.disabled), "aria-invalid": aria.ariaBooleanToString(props.invalid), "aria-labelledby": "label", "aria-describedby": "description", onClick: (ev) => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, ev); } }, props.label &&
|
|
16
|
-
(props.role === 'fieldset' ? (index.h("legend", { part: "label", id: "label" }, index.h("slot", { name: "label" }, props.label), !props.required && index.h("span", null, label_i18n.I18nDsLabel[props.language].optional || ''))) : (index.h("label", { htmlFor: inputId, part: "label", id: "label" }, index.h("slot", { name: "label" }, props.label), !props.required && index.h("span", null, label_i18n.I18nDsLabel[props.language].optional || '')))), index.h("div", { id: "container", part: "control" }, index.h("slot", { name: "start" }), children, index.h("slot", { name: "end" }), props.loading === true && (index.h("ds-spinner", { small: true, variation: "circle", color: props.disabled ? 'white' : 'blue' }))), props.label && (index.h("span", { id: "description", part: "description", role: props.invalid && props.invalidText ? 'alert' : undefined }, props.invalid && props.invalidText && index.h("ds-icon", { name: "alert" }), index.h("slot", { name: "
|
|
45
|
+
(props.role === 'fieldset' ? (index.h("legend", { part: "label", id: "label" }, index.h("slot", { name: "label" }, props.label), !props.required && index.h("span", null, label_i18n.I18nDsLabel[props.language].optional || ''))) : (index.h("label", { htmlFor: inputId, part: "label", id: "label" }, index.h("slot", { name: "label" }, props.label), !props.required && index.h("span", null, label_i18n.I18nDsLabel[props.language].optional || '')))), index.h("div", { id: "container", part: "control" }, index.h("slot", { name: "start" }), children, index.h("slot", { name: "end" }), props.loading === true && (index.h("ds-spinner", { small: true, variation: "circle", color: props.disabled ? 'white' : 'blue' }))), props.label && (index.h("span", { id: "description", part: "description", role: props.invalid && props.invalidText ? 'alert' : undefined }, props.invalid && props.invalidText && index.h("ds-icon", { name: "alert" }), props.invalid ? (index.h("slot", { name: "invalid-text" }, props.invalidText || props.description)) : (index.h("slot", { name: "description" }, props.description)))))));
|
|
17
46
|
};
|
|
18
47
|
|
|
19
48
|
exports.Field = Field;
|
|
49
|
+
exports.watchInvalidTextSlot = watchInvalidTextSlot;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var createValidatorDecorator = require('./create-validator-decorator-
|
|
6
|
+
var createValidatorDecorator = require('./create-validator-decorator-CiRieHJL.js');
|
|
7
7
|
|
|
8
8
|
function hasValue(value) {
|
|
9
9
|
return !createValidatorDecorator.isValueEmpty(value);
|
|
@@ -19,12 +19,11 @@ const HEADING_VISUAL_LEVELS = [
|
|
|
19
19
|
'lg',
|
|
20
20
|
'md',
|
|
21
21
|
'base',
|
|
22
|
-
'',
|
|
23
22
|
];
|
|
24
|
-
const HEADING_COLORS = ['primary', 'info', 'success', 'warning', 'danger', 'blue', 'white'
|
|
23
|
+
const HEADING_COLORS = ['primary', 'info', 'success', 'warning', 'danger', 'blue', 'white'];
|
|
25
24
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'span', 'p'];
|
|
26
25
|
const HEADING_LEVELS = ['display', 'display-2', 'h1', 'h2', 'h3', 'h4', 'h5', 'span', 'p', ''];
|
|
27
|
-
const HEADING_SPACES = ['none', 'bottom', 'top', 'all'
|
|
26
|
+
const HEADING_SPACES = ['none', 'bottom', 'top', 'all'];
|
|
28
27
|
|
|
29
28
|
exports.HEADING_COLORS = HEADING_COLORS;
|
|
30
29
|
exports.HEADING_LEVELS = HEADING_LEVELS;
|
|
@@ -373,7 +373,7 @@ const runHighPrioritizedTask = (callback) => {
|
|
|
373
373
|
};
|
|
374
374
|
|
|
375
375
|
// generated by .build/version.js
|
|
376
|
-
const VERSION = '20.0.0-next.
|
|
376
|
+
const VERSION = '20.0.0-next.9';
|
|
377
377
|
|
|
378
378
|
const DS_ANIMATION_KEY = 'ds-animated';
|
|
379
379
|
const DS_CONFIG_META_NAME = 'design-system-config';
|
|
@@ -965,8 +965,82 @@ const generateHydrateForCustomElementsOutput = (cmpTags = []) => {
|
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
967
|
|
|
968
|
+
/**
|
|
969
|
+
* Live token preview: applies token changes posted by an embedding parent window (Toky's live
|
|
970
|
+
* preview sidebar) directly to `document.documentElement.style`, so a component's rendered
|
|
971
|
+
* output reflects in-progress token edits without a rebuild. No-ops outside an iframe, so it
|
|
972
|
+
* never activates during normal component consumption or Playwright visual-regression runs.
|
|
973
|
+
* No origin allowlist yet - MVP is localhost-only (see packages/core/CONTEXT.md).
|
|
974
|
+
*/
|
|
975
|
+
const initializeTokenPreview = (win = window) => {
|
|
976
|
+
if (win.parent === win) {
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
const appliedProperties = new Set();
|
|
980
|
+
const injectedBrandStylesheets = new Set();
|
|
981
|
+
const applyTokens = (tokens) => {
|
|
982
|
+
for (const { name, value } of tokens) {
|
|
983
|
+
if (value === null) {
|
|
984
|
+
win.document.documentElement.style.removeProperty(name);
|
|
985
|
+
appliedProperties.delete(name);
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
win.document.documentElement.style.setProperty(name, value);
|
|
989
|
+
appliedProperties.add(name);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
const applyBrand = (brand) => {
|
|
994
|
+
if (!brand || brand === 'Base') {
|
|
995
|
+
delete win.document.documentElement.dataset['theme'];
|
|
996
|
+
return;
|
|
997
|
+
}
|
|
998
|
+
const href = `/assets/tokens/${brand.toLowerCase()}.tokens.css`;
|
|
999
|
+
if (!injectedBrandStylesheets.has(href)) {
|
|
1000
|
+
const link = win.document.createElement('link');
|
|
1001
|
+
link.rel = 'stylesheet';
|
|
1002
|
+
link.href = href;
|
|
1003
|
+
win.document.head.appendChild(link);
|
|
1004
|
+
injectedBrandStylesheets.add(href);
|
|
1005
|
+
}
|
|
1006
|
+
// packages/tokens emits the brand stylesheet's selector lowercased (config.brand.ts:
|
|
1007
|
+
// `[data-theme="${mode.toLowerCase()}"]`) - matching that here is what makes the injected
|
|
1008
|
+
// stylesheet above actually apply.
|
|
1009
|
+
win.document.documentElement.dataset['theme'] = brand.toLowerCase();
|
|
1010
|
+
};
|
|
1011
|
+
const reset = () => {
|
|
1012
|
+
for (const name of appliedProperties) {
|
|
1013
|
+
win.document.documentElement.style.removeProperty(name);
|
|
1014
|
+
}
|
|
1015
|
+
appliedProperties.clear();
|
|
1016
|
+
delete win.document.documentElement.dataset['theme'];
|
|
1017
|
+
};
|
|
1018
|
+
win.addEventListener('message', (event) => {
|
|
1019
|
+
if (event.source !== win.parent) {
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
const message = event.data;
|
|
1023
|
+
if (!message || message.source !== 'ds-token-preview') {
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
switch (message.type) {
|
|
1027
|
+
case 'set-tokens':
|
|
1028
|
+
applyTokens(message.tokens);
|
|
1029
|
+
break;
|
|
1030
|
+
case 'set-brand':
|
|
1031
|
+
applyBrand(message.brand);
|
|
1032
|
+
break;
|
|
1033
|
+
case 'reset':
|
|
1034
|
+
reset();
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
win.parent.postMessage({ source: 'ds-token-preview', type: 'ready' }, '*');
|
|
1039
|
+
};
|
|
1040
|
+
|
|
968
1041
|
function global () {
|
|
969
1042
|
initializeDesignSystem();
|
|
1043
|
+
initializeTokenPreview();
|
|
970
1044
|
}
|
|
971
1045
|
|
|
972
1046
|
const appGlobalScript = global || (() => {});
|