@maggioli-design-system/magma 2.7.0 → 2.9.0
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/AGENTS.md +1 -1
- package/CHANGELOG.md +45 -0
- package/agents/lint.md +20 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-banner_3.cjs.entry.js +7 -6
- package/dist/cjs/mds-book.cjs.entry.js +53 -5
- package/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-emoji.cjs.entry.js +39 -9
- package/dist/cjs/mds-filter.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +1 -1
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +17 -4
- package/dist/cjs/mds-toast.cjs.entry.js +2 -2
- package/dist/collection/components/mds-accordion/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +4 -2
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +4 -2
- package/dist/collection/components/mds-author/AGENTS.md +2 -1
- package/dist/collection/components/mds-author/documentation.json +4 -2
- package/dist/collection/components/mds-avatar/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +4 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +4 -2
- package/dist/collection/components/mds-badge/AGENTS.md +2 -1
- package/dist/collection/components/mds-badge/documentation.json +4 -2
- package/dist/collection/components/mds-banner/AGENTS.md +7 -4
- package/dist/collection/components/mds-banner/antipattern.md +5 -5
- package/dist/collection/components/mds-banner/documentation.json +40 -6
- package/dist/collection/components/mds-banner/mds-banner.css +7 -10
- package/dist/collection/components/mds-banner/mds-banner.js +30 -7
- package/dist/collection/components/mds-banner/pattern.md +4 -4
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +4 -2
- package/dist/collection/components/mds-bibliography/AGENTS.md +2 -1
- package/dist/collection/components/mds-bibliography/documentation.json +4 -2
- package/dist/collection/components/mds-book/AGENTS.md +9 -4
- package/dist/collection/components/mds-book/documentation.json +46 -6
- package/dist/collection/components/mds-book/mds-book.css +91 -7
- package/dist/collection/components/mds-book/mds-book.js +79 -7
- package/dist/collection/components/mds-book/pattern.md +14 -0
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +4 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +4 -2
- package/dist/collection/components/mds-button/AGENTS.md +2 -1
- package/dist/collection/components/mds-button/documentation.json +4 -2
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-button-group/AGENTS.md +2 -1
- package/dist/collection/components/mds-button-group/documentation.json +4 -2
- package/dist/collection/components/mds-calendar/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +4 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +4 -1
- package/dist/collection/components/mds-card/AGENTS.md +2 -1
- package/dist/collection/components/mds-card/documentation.json +4 -2
- package/dist/collection/components/mds-card-content/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-content/documentation.json +4 -2
- package/dist/collection/components/mds-card-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-footer/documentation.json +4 -2
- package/dist/collection/components/mds-card-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-header/documentation.json +4 -2
- package/dist/collection/components/mds-card-media/AGENTS.md +2 -1
- package/dist/collection/components/mds-card-media/documentation.json +4 -2
- package/dist/collection/components/mds-chip/AGENTS.md +2 -1
- package/dist/collection/components/mds-chip/documentation.json +4 -2
- package/dist/collection/components/mds-details/AGENTS.md +2 -1
- package/dist/collection/components/mds-details/documentation.json +4 -2
- package/dist/collection/components/mds-dropdown/AGENTS.md +2 -1
- package/dist/collection/components/mds-dropdown/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +2 -1
- package/dist/collection/components/mds-emoji/asset/simi.svg +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +4 -2
- package/dist/collection/components/mds-emoji/mds-emoji.js +38 -8
- package/dist/collection/components/mds-entity/AGENTS.md +2 -1
- package/dist/collection/components/mds-entity/documentation.json +4 -2
- package/dist/collection/components/mds-file/AGENTS.md +2 -1
- package/dist/collection/components/mds-file/documentation.json +4 -2
- package/dist/collection/components/mds-file-preview/AGENTS.md +2 -1
- package/dist/collection/components/mds-file-preview/documentation.json +4 -2
- package/dist/collection/components/mds-filter/AGENTS.md +3 -2
- package/dist/collection/components/mds-filter/documentation.json +10 -2
- package/dist/collection/components/mds-filter/mds-filter.css +5 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-filter-item/documentation.json +4 -2
- package/dist/collection/components/mds-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-header/documentation.json +5 -3
- package/dist/collection/components/mds-header/pattern.md +3 -3
- package/dist/collection/components/mds-header-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-header-bar/documentation.json +4 -2
- package/dist/collection/components/mds-help/AGENTS.md +2 -1
- package/dist/collection/components/mds-help/documentation.json +4 -2
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +2 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +4 -2
- package/dist/collection/components/mds-hr/AGENTS.md +2 -1
- package/dist/collection/components/mds-hr/documentation.json +4 -2
- package/dist/collection/components/mds-icon/AGENTS.md +2 -1
- package/dist/collection/components/mds-icon/documentation.json +4 -2
- package/dist/collection/components/mds-img/AGENTS.md +2 -1
- package/dist/collection/components/mds-img/documentation.json +4 -2
- package/dist/collection/components/mds-input/AGENTS.md +2 -1
- package/dist/collection/components/mds-input/documentation.json +4 -2
- package/dist/collection/components/mds-input-date/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +4 -2
- package/dist/collection/components/mds-input-field/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-field/documentation.json +4 -2
- package/dist/collection/components/mds-input-otp/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-otp/documentation.json +5 -3
- package/dist/collection/components/mds-input-otp/pattern.md +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-range/documentation.json +4 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +7 -5
- package/dist/collection/components/mds-input-select/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-select/documentation.json +4 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-switch/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip/documentation.json +4 -2
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +4 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +2 -1
- package/dist/collection/components/mds-input-upload/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard/documentation.json +4 -2
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +2 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +4 -2
- package/dist/collection/components/mds-kpi/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi/documentation.json +4 -2
- package/dist/collection/components/mds-kpi-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +4 -2
- package/dist/collection/components/mds-label/AGENTS.md +2 -1
- package/dist/collection/components/mds-label/documentation.json +4 -2
- package/dist/collection/components/mds-link/AGENTS.md +2 -1
- package/dist/collection/components/mds-link/documentation.json +4 -2
- package/dist/collection/components/mds-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-list/documentation.json +4 -2
- package/dist/collection/components/mds-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-mention/AGENTS.md +2 -1
- package/dist/collection/components/mds-mention/documentation.json +4 -2
- package/dist/collection/components/mds-modal/AGENTS.md +5 -1
- package/dist/collection/components/mds-modal/documentation.json +5 -3
- package/dist/collection/components/mds-modal/mds-modal.css +136 -3
- package/dist/collection/components/mds-note/AGENTS.md +2 -1
- package/dist/collection/components/mds-note/documentation.json +4 -2
- package/dist/collection/components/mds-notification/AGENTS.md +2 -1
- package/dist/collection/components/mds-notification/documentation.json +4 -2
- package/dist/collection/components/mds-paginator/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator/documentation.json +4 -2
- package/dist/collection/components/mds-paginator-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +4 -2
- package/dist/collection/components/mds-policy-ai/AGENTS.md +2 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +4 -2
- package/dist/collection/components/mds-pref/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref/documentation.json +4 -2
- package/dist/collection/components/mds-pref-animation/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +4 -2
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +4 -2
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language/documentation.json +4 -2
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +4 -2
- package/dist/collection/components/mds-pref-mode/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-mode/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme/documentation.json +4 -2
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-pref-theme-item/documentation.json +4 -2
- package/dist/collection/components/mds-price-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +4 -2
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +4 -2
- package/dist/collection/components/mds-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-progress/documentation.json +4 -2
- package/dist/collection/components/mds-push-notification/AGENTS.md +3 -2
- package/dist/collection/components/mds-push-notification/documentation.json +6 -4
- package/dist/collection/components/mds-push-notification/pattern.md +2 -2
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +6 -3
- package/dist/collection/components/mds-push-notification-item/documentation.json +38 -5
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +1 -0
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +40 -5
- package/dist/collection/components/mds-push-notification-item/pattern.md +3 -3
- package/dist/collection/components/mds-quote/AGENTS.md +2 -1
- package/dist/collection/components/mds-quote/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +4 -2
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +4 -2
- package/dist/collection/components/mds-radial-progress/AGENTS.md +2 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +4 -2
- package/dist/collection/components/mds-separator/AGENTS.md +2 -1
- package/dist/collection/components/mds-separator/documentation.json +4 -2
- package/dist/collection/components/mds-spinner/AGENTS.md +2 -1
- package/dist/collection/components/mds-spinner/documentation.json +5 -3
- package/dist/collection/components/mds-spinner/pattern.md +9 -6
- package/dist/collection/components/mds-status-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-status-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +4 -2
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +4 -2
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +4 -2
- package/dist/collection/components/mds-tab-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tab-item/documentation.json +4 -2
- package/dist/collection/components/mds-table/AGENTS.md +2 -1
- package/dist/collection/components/mds-table/documentation.json +4 -2
- package/dist/collection/components/mds-table-body/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-body/documentation.json +4 -2
- package/dist/collection/components/mds-table-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-footer/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-footer/documentation.json +4 -2
- package/dist/collection/components/mds-table-header/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header/documentation.json +4 -2
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +2 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +4 -2
- package/dist/collection/components/mds-table-row/AGENTS.md +7 -2
- package/dist/collection/components/mds-table-row/documentation.json +11 -3
- package/dist/collection/components/mds-table-row/mds-table-row.css +1 -0
- package/dist/collection/components/mds-table-row/pattern.md +14 -1
- package/dist/collection/components/mds-text/AGENTS.md +2 -1
- package/dist/collection/components/mds-text/documentation.json +4 -2
- package/dist/collection/components/mds-toast/AGENTS.md +8 -5
- package/dist/collection/components/mds-toast/antipattern.md +2 -2
- package/dist/collection/components/mds-toast/documentation.json +40 -6
- package/dist/collection/components/mds-toast/mds-toast.js +26 -4
- package/dist/collection/components/mds-toast/pattern.md +2 -2
- package/dist/collection/components/mds-toast-region/AGENTS.md +2 -1
- package/dist/collection/components/mds-toast-region/documentation.json +5 -3
- package/dist/collection/components/mds-toast-region/pattern.md +10 -2
- package/dist/collection/components/mds-tooltip/AGENTS.md +2 -1
- package/dist/collection/components/mds-tooltip/documentation.json +4 -2
- package/dist/collection/components/mds-tree/AGENTS.md +3 -2
- package/dist/collection/components/mds-tree/documentation.json +5 -3
- package/dist/collection/components/mds-tree/pattern.md +13 -13
- package/dist/collection/components/mds-tree-item/AGENTS.md +2 -1
- package/dist/collection/components/mds-tree-item/documentation.json +4 -2
- package/dist/collection/components/mds-url-view/AGENTS.md +2 -1
- package/dist/collection/components/mds-url-view/documentation.json +4 -2
- package/dist/collection/components/mds-usage/AGENTS.md +2 -1
- package/dist/collection/components/mds-usage/documentation.json +4 -2
- package/dist/collection/components/mds-video-wall/AGENTS.md +2 -1
- package/dist/collection/components/mds-video-wall/documentation.json +4 -2
- package/dist/collection/components/mds-zero/AGENTS.md +2 -1
- package/dist/collection/components/mds-zero/documentation.json +4 -2
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-book.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-emoji.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/p-BeZGLnJJ.js +1 -0
- package/dist/components/p-Chk4rI7N.js +1 -0
- package/dist/components/{p-CNpL55c-.js → p-Cwg4vtOr.js} +1 -1
- package/dist/components/p-Dzkiu-es.js +1 -0
- package/dist/documentation.json +406 -143
- package/dist/esm/loader.js +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-banner_3.entry.js +7 -6
- package/dist/esm/mds-book.entry.js +53 -5
- package/dist/esm/mds-calendar_2.entry.js +1 -1
- package/dist/esm/mds-emoji.entry.js +39 -9
- package/dist/esm/mds-filter.entry.js +1 -1
- package/dist/esm/mds-input-range.entry.js +1 -1
- package/dist/esm/mds-modal.entry.js +1 -1
- package/dist/esm/mds-push-notification-item.entry.js +17 -4
- package/dist/esm/mds-toast.entry.js +2 -2
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +2 -2
- package/dist/esm-es5/mds-book.entry.js +33 -26
- package/dist/esm-es5/mds-calendar_2.entry.js +8 -8
- package/dist/esm-es5/mds-emoji.entry.js +40 -31
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +7 -7
- package/dist/esm-es5/mds-modal.entry.js +15 -15
- package/dist/esm-es5/mds-push-notification-item.entry.js +7 -3
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/hydrate/index.js +130 -32
- package/dist/hydrate/index.mjs +130 -32
- package/dist/lint/core/checks.d.ts +5 -0
- package/dist/lint/core/checks.js +17 -0
- package/dist/lint/core/data.d.ts +4 -1
- package/dist/lint/core/data.js +3 -1
- package/dist/lint/eslint/index.js +6 -4
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-354a5b47.entry.js → p-02b106c2.entry.js} +1 -1
- package/dist/magma-components/{p-17ccfc01.system.entry.js → p-3bc65166.system.entry.js} +55 -48
- package/dist/magma-components/p-425ca155.entry.js +1 -0
- package/dist/magma-components/p-523f0c30.system.entry.js +80 -0
- package/dist/magma-components/{p-07d35da6.entry.js → p-5306606b.entry.js} +1 -1
- package/dist/magma-components/{p-1b67b149.system.entry.js → p-798f460b.system.entry.js} +1 -1
- package/dist/magma-components/{p-e5f893f9.system.entry.js → p-7db14777.system.entry.js} +1 -1
- package/dist/magma-components/{p-e8452cce.entry.js → p-8641b7b2.entry.js} +1 -1
- package/dist/magma-components/{p-3a7c4314.system.entry.js → p-95ccf46d.system.entry.js} +4 -4
- package/dist/magma-components/p-968a2237.entry.js +1 -0
- package/dist/magma-components/p-9dd9eadd.entry.js +1 -0
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-160cd923.entry.js → p-a25327a1.entry.js} +1 -1
- package/dist/magma-components/p-a67381bf.entry.js +1 -0
- package/dist/magma-components/{p-c2c693ed.system.entry.js → p-b27cb1ac.system.entry.js} +14 -5
- package/dist/magma-components/{p-6df26141.system.entry.js → p-c0286dc3.system.entry.js} +1 -1
- package/dist/magma-components/p-c89060ec.system.entry.js +41 -0
- package/dist/magma-components/p-eb12be86.system.entry.js +24 -0
- package/dist/magma-components/p-ebeb3fff.entry.js +1 -0
- package/dist/stats.json +383 -139
- package/dist/types/components/mds-banner/mds-banner.d.ts +9 -2
- package/dist/types/components/mds-book/mds-book.d.ts +19 -2
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +1 -0
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +10 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +7 -1
- package/dist/types/components.d.ts +56 -12
- package/package.json +8 -8
- package/dist/components/p-B8hgyXdE.js +0 -1
- package/dist/components/p-CYK2Xr_v.js +0 -1
- package/dist/components/p-DbVGGhs_.js +0 -1
- package/dist/magma-components/p-14b13850.entry.js +0 -1
- package/dist/magma-components/p-386bb24e.system.entry.js +0 -41
- package/dist/magma-components/p-6d96d223.entry.js +0 -1
- package/dist/magma-components/p-79fd07e7.system.entry.js +0 -80
- package/dist/magma-components/p-7e7391fd.entry.js +0 -1
- package/dist/magma-components/p-df387755.entry.js +0 -1
- package/dist/magma-components/p-ee780f82.system.entry.js +0 -20
- package/dist/magma-components/p-f2211b1f.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as a,d as s,h as o,c as r,t as i}from"./p-TZJN-ygm.js";import{c as e}from"./p-CWk1SCJg.js";import{p as n}from"./p-CVRN4LDc.js";import{L as d}from"./p-CZjwSwe5.js";import{h as c}from"./p-DWIIDHSa.js";import{c as m}from"./p-ChV9xqsO.js";import{d as h}from"./p-M8dGB4KH.js";import{d as l}from"./p-CEw7GvM-.js";import{d as v}from"./p-DDTJwlAd.js";import{d as p}from"./p-aujz-VM9.js";var u={hide:"Απόκρυψη"},g={hide:"Hide"},b={hide:"Ocultar"},f={hide:"Nascondi"};const x=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=s(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.countdownStart=0,this.pointerInside=!1,this.focusInside=!1,this.closeReason="hide",this.t=new d({el:u,en:g,es:b,it:f}),this.stacked=!1,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.hasDuration=()=>{var t;const a=null!==(t=this.duration)&&void 0!==t?t:0;return 0!==a&&!Number.isNaN(a)},this.stopCountdown=()=>{window.clearTimeout(this.dismissTimer),this.dismissTimer=void 0},this.runCountdown=()=>{void 0!==this.remaining&&void 0===this.dismissTimer&&(this.pointerInside||this.focusInside||(this.countdownStart=Date.now(),this.dismissTimer=window.setTimeout((()=>{this.dismissTimer=void 0,this.remaining=void 0,this.hide("timeout")}),this.remaining)))},this.holdCountdown=()=>{void 0!==this.dismissTimer&&void 0!==this.remaining&&(this.stopCountdown(),this.remaining=Math.max(0,this.remaining-(Date.now()-this.countdownStart)))},this.reloadTimeListeners=t=>{"undefined"!=typeof window&&(this.stopCountdown(),this.remaining=t&&this.hasDuration()?this.duration:void 0,this.runCountdown())},this.hide=t=>{this.closeReason=t,this.visible=!1},this.onCloseClick=()=>{this.hide("close")},this.onPointerEnter=()=>{this.pointerInside=!0,this.holdCountdown()},this.onPointerLeave=()=>{this.pointerInside=!1,this.runCountdown()},this.onFocusIn=()=>{this.focusInside=!0,this.holdCountdown()},this.onFocusOut=()=>{this.focusInside=!1,this.runCountdown()},this.closeButtonVariant=()=>{switch(this.variant){case"light":return"dark";case"error":case"info":case"success":case"warning":return this.variant;default:return"light"}},this.onActionSlotChange=()=>{this.hasActions=c(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=e(t.getPropertyValue("--private-toast-transition-duration"),0)}connectedCallback(){this.stacked=null!==this.hostElement.closest("mds-toast-region")}disconnectedCallback(){window.clearTimeout(this.dismissTimer),window.clearTimeout(this.closeTimer),this.dismissTimer=void 0,this.closeTimer=void 0}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=c(this.hostElement,"action"),this.reloadTimeListeners(!!this.visible)}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t,a){this.updateCSSCustomProps();const s=this.closeReason;if(this.closeReason="hide",t||(this.pointerInside=!1,this.focusInside=!1),this.reloadTimeListeners(t),t)return window.clearTimeout(this.closeTimer),void(this.closeTimer=void 0);a&&(window.clearTimeout(this.closeTimer),this.closeTimer=window.setTimeout((()=>{this.closeTimer=void 0,this.closedEvent.emit({reason:s})}),this.cssDismissAnimationDuration))}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){var t;return o(r,{key:"78794225496c25083d6c1118325436bd6f78f920",role:this.stacked?void 0:"status",stacked:this.stacked,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},o("div",{key:"e145d6042004ece44479227bda7b71af55231e69",class:m("dialog",this.position&&"to-"+this.position,this.visible&&"dialog--visible"),onFocusin:this.onFocusIn,onFocusout:this.onFocusOut,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave},o("slot",{key:"ea4143e5d1fa9098ac2b3924a65ab18e78344a21",name:"icon"}),this.hasText&&o("mds-text",{key:"e5ccbb014439671bedc2cd9af71b82934dbb6d04",typography:"caption"},o("slot",{key:"1d0a7c60aafce454fd5e9154a730e3232ac50c41"})),o("div",{key:"6d25fc9ce5d851c23737b92748735f29659ab585",class:m("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"d8c3eadbd31c8512e5e4b1e8ceb442321bd2cb3d",name:"action",onSlotchange:this.onActionSlotChange})),this.deletable&&o("mds-button",{key:"f879cd5d161aa01092d03a265a5d0ad8484c7f8d","aria-label":this.t.get("hide"),class:"hide",icon:(null===(t=this.position)||void 0===t?void 0:t.startsWith("top"))?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8l8-8z"/></svg>',onClick:this.onCloseClick,size:"sm",tone:"text",type:"button",variant:this.closeButtonVariant()})))}get hostElement(){return this}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-duration:var(--duration-300,.3s);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,var(--duration-300,.3s));--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--mds-toast-shadow);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform,visibility;visibility:hidden;width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto;visibility:visible}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}.hide{flex-shrink:0}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));flex-shrink:0;transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,var(--duration-300)));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,var(--duration-300)));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([stacked]){inset:auto;position:relative;transition-behavior:allow-discrete;transition-duration:var(--private-toast-transition-duration);transition-property:display;z-index:auto}:host([stacked]:not([visible])),:host([stacked][visible=false]){display:none}:host([stacked]) .dialog:not(.dialog--visible){opacity:0;transform:none}@starting-style{:host([stacked]) .dialog--visible{opacity:0;transform:none}}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'}},[257,"mds-toast",{duration:[1538],visible:[1540],variant:[513],tone:[513],position:[1537],deletable:[4],hasActions:[32],stacked:[32]},void 0,{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}]),w=x,y=function(){"undefined"!=typeof customElements&&["mds-toast","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-toast":customElements.get(i(t))||customElements.define(i(t),x);break;case"mds-button":customElements.get(i(t))||h();break;case"mds-icon":customElements.get(i(t))||l();break;case"mds-spinner":customElements.get(i(t))||v();break;case"mds-text":customElements.get(i(t))||p()}}))};export{w as MdsToast,y as defineCustomElement}
|
|
1
|
+
import{p as t,H as a,d as s,h as o,c as i,t as r}from"./p-TZJN-ygm.js";import{c as e}from"./p-CWk1SCJg.js";import{p as n}from"./p-CVRN4LDc.js";import{L as d}from"./p-CZjwSwe5.js";import{h as c}from"./p-DWIIDHSa.js";import{c as m}from"./p-ChV9xqsO.js";import{d as h}from"./p-M8dGB4KH.js";import{d as l}from"./p-CEw7GvM-.js";import{d as v}from"./p-DDTJwlAd.js";import{d as p}from"./p-aujz-VM9.js";var u={hide:"Απόκρυψη"},g={hide:"Hide"},b={hide:"Ocultar"},f={hide:"Nascondi"};const x=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.closedEvent=s(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.countdownStart=0,this.pointerInside=!1,this.focusInside=!1,this.closeReason="hide",this.t=new d({el:u,en:g,es:b,it:f}),this.stacked=!1,this.duration=5e3,this.variant="light",this.tone="strong",this.position="bottom-center",this.hasDuration=()=>{var t;const a=null!==(t=this.duration)&&void 0!==t?t:0;return 0!==a&&!Number.isNaN(a)},this.stopCountdown=()=>{window.clearTimeout(this.dismissTimer),this.dismissTimer=void 0},this.runCountdown=()=>{void 0!==this.remaining&&void 0===this.dismissTimer&&(this.pointerInside||this.focusInside||(this.countdownStart=Date.now(),this.dismissTimer=window.setTimeout((()=>{this.dismissTimer=void 0,this.remaining=void 0,this.hide("timeout")}),this.remaining)))},this.holdCountdown=()=>{void 0!==this.dismissTimer&&void 0!==this.remaining&&(this.stopCountdown(),this.remaining=Math.max(0,this.remaining-(Date.now()-this.countdownStart)))},this.reloadTimeListeners=t=>{"undefined"!=typeof window&&(this.stopCountdown(),this.remaining=t&&this.hasDuration()?this.duration:void 0,this.runCountdown())},this.hide=t=>{this.closeReason=t,this.visible=!1},this.onCloseClick=()=>{this.hide("close")},this.onPointerEnter=()=>{this.pointerInside=!0,this.holdCountdown()},this.onPointerLeave=()=>{this.pointerInside=!1,this.runCountdown()},this.onFocusIn=()=>{this.focusInside=!0,this.holdCountdown()},this.onFocusOut=()=>{this.focusInside=!1,this.runCountdown()},this.closeButtonVariant=()=>{switch(this.variant){case"light":return"dark";case"error":case"info":case"success":case"warning":return this.variant;default:return"light"}},this.onActionSlotChange=()=>{this.hasActions=c(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=e(t.getPropertyValue("--private-toast-transition-duration"),0)}connectedCallback(){this.stacked=null!==this.hostElement.closest("mds-toast-region")}disconnectedCallback(){window.clearTimeout(this.dismissTimer),window.clearTimeout(this.closeTimer),this.dismissTimer=void 0,this.closeTimer=void 0}componentWillLoad(){this.hasText=""!==this.hostElement.innerHTML,this.hasActions=c(this.hostElement,"action"),this.reloadTimeListeners(!!this.visible)}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t,a){this.updateCSSCustomProps();const s=this.closeReason;if(this.closeReason="hide",t||(this.pointerInside=!1,this.focusInside=!1),this.reloadTimeListeners(t),t)return window.clearTimeout(this.closeTimer),void(this.closeTimer=void 0);a&&(window.clearTimeout(this.closeTimer),this.closeTimer=window.setTimeout((()=>{this.closeTimer=void 0,this.closedEvent.emit({reason:s})}),this.cssDismissAnimationDuration))}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){var t;return o(i,{key:"5311d740bc8ea85044462a30d426b03c1ec62cf7",role:this.stacked?void 0:"status",stacked:this.stacked,"pref-animation":n.state.animation,"pref-contrast":n.state.contrast,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},o("div",{key:"fd1c6e5c0536804c36c9823c12d40927531aada3",class:m("dialog",this.position&&"to-"+this.position,this.visible&&"dialog--visible"),onFocusin:this.onFocusIn,onFocusout:this.onFocusOut,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave},o("slot",{key:"f55e05ae884d631e4711204aacd3d1ffed71089a",name:"icon"}),this.hasText&&o("mds-text",{key:"efbb5965154a3a95bed0405f2fa0a4251154c1e2",typography:"caption"},o("slot",{key:"c5ca29ca96e8292a530f0837b59eaac856b60a76"})),o("div",{key:"225e12ba896919744898d62988ba9c32bfabf032",class:m("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"bbe444eabf9c5abb9422e23b6f6ba9699d2ad241",name:"action",onSlotchange:this.onActionSlotChange})),(this.dismissible||this.deletable)&&o("mds-button",{key:"17b77af297b6ac009564422003bc78b34557bf2a","aria-label":this.t.get("hide"),class:"hide",icon:(null===(t=this.position)||void 0===t?void 0:t.startsWith("top"))?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8l-8 8z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8l8-8z"/></svg>',onClick:this.onCloseClick,size:"sm",tone:"text",type:"button",variant:this.closeButtonVariant()})))}get hostElement(){return this}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),mds-text:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-duration:var(--duration-300,.3s);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-xl,0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a);--mds-toast-width:auto;--private-toast-transition-duration:var(--mds-toast-duration,var(--duration-300,.3s));--private-toast-transition-duration-intro:var(--duration-500,.5s);--private-toast-transition-duration-icon:var(--duration-200,.2s);color:var(--mds-toast-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));display:flex;left:0;pointer-events:none;position:fixed;right:0;z-index:var(--magma-modal-z-index,3000)}.dialog{--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));background-color:var(--mds-toast-background,rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));box-shadow:var(--mds-toast-shadow);transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));corner-shape:var(--magma-corner-shape,squircle);align-items:center;display:inline-flex;gap:calc(var(--spacing,.0025rem)*400);margin-inline:calc(var(--spacing,.0025rem)*400);max-width:100%;padding:calc(var(--spacing,.0025rem)*400);pointer-events:none;transition-duration:var(--private-toast-transition-duration);transition-property:box-shadow,background-color,color,transform,visibility;visibility:hidden;width:var(--mds-toast-width,auto)}:host([visible]:not([visible=false])) .dialog{pointer-events:auto;visibility:visible}:host([position^=top]){top:0}:host([position=top-left]){justify-content:flex-start}:host([position=top-center]){justify-content:center}:host([position=top-right]){justify-content:flex-end}:host([position^=bottom]){bottom:0}:host([position=bottom-left]){justify-content:flex-start}:host([position=bottom-center]){justify-content:center}:host([position=bottom-right]){justify-content:flex-end}.actions{display:flex;gap:calc(var(--spacing,.0025rem)*200)}.actions--hidden{display:none}.hide{flex-shrink:0}::slotted([slot=icon]){--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));fill:var(--mds-toast-icon-color,rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))));flex-shrink:0;transition-duration:var(--private-toast-transition-duration-icon);transition-property:fill;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}:host([variant=dark]),:host([variant=dark][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=dark][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-toast-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)))}:host([variant=error]),:host([variant=error][tone=strong]){--mds-toast-background:rgb(var(--magma-danger-wash-base,var(--status-error-09,255 214 211)));--mds-toast-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=error][tone=weak]){--mds-toast-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-toast-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)))}:host([variant=info]),:host([variant=info][tone=strong]){--mds-toast-background:rgb(var(--magma-info-wash-base,var(--status-info-09,193 230 246)));--mds-toast-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=info][tone=weak]){--mds-toast-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-toast-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)))}:host([variant=light]),:host([variant=light][tone=strong]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([variant=light][tone=weak]){--mds-toast-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-toast-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)))}:host([variant=success]),:host([variant=success][tone=strong]){--mds-toast-background:rgb(var(--magma-success-wash-base,var(--status-success-09,191 233 205)));--mds-toast-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=success][tone=weak]){--mds-toast-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-toast-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)))}:host([variant=warning]),:host([variant=warning][tone=strong]){--mds-toast-background:rgb(var(--magma-warning-wash-base,var(--status-warning-09,255 220 117)));--mds-toast-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-toast-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}:host([variant=warning][tone=weak]){--mds-toast-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-toast-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-toast-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-toast-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)))}.to-top-center,.to-top-left,.to-top-right{transform:translateY(calc(-100% - var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,var(--duration-300)));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-top-center.dialog--visible,.to-top-left.dialog--visible,.to-top-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}.to-bottom-center,.to-bottom-left,.to-bottom-right{transform:translateY(calc(100% + var(--spacing,.0025rem)*1200));--tw-ease:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19));transition-duration:var(--private-toast-transition-duration,var(--mds-toast-duration,var(--duration-300)));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-cubic,cubic-bezier(.55,.055,.675,.19))}.to-bottom-center.dialog--visible,.to-bottom-left.dialog--visible,.to-bottom-right.dialog--visible{transform:translateY(calc(var(--spacing,.0025rem)*400*-1));--tw-ease:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));transition-duration:var(--private-toast-transition-duration-intro,var(--duration-500));transition-property:background-color,border-color,box-shadow,color,fill,height,margin,opacity,padding,transform,visibility,width;transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1))}:host([stacked]){inset:auto;position:relative;transition-behavior:allow-discrete;transition-duration:var(--private-toast-transition-duration);transition-property:display;z-index:auto}:host([stacked]:not([visible])),:host([stacked][visible=false]){display:none}:host([stacked]) .dialog:not(.dialog--visible){opacity:0;transform:none}@starting-style{:host([stacked]) .dialog--visible{opacity:0;transform:none}}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}:host([pref-contrast=more]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}@property --tw-ease{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-toast-transition-duration:0s;--private-toast-transition-duration-intro:0s;--private-toast-transition-duration-icon:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-toast-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6))!important}}'}},[257,"mds-toast",{duration:[1538],visible:[1540],variant:[513],tone:[513],position:[1537],dismissible:[4],deletable:[4],hasActions:[32],stacked:[32]},void 0,{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}]),w=x,y=function(){"undefined"!=typeof customElements&&["mds-toast","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-toast":customElements.get(r(t))||customElements.define(r(t),x);break;case"mds-button":customElements.get(r(t))||h();break;case"mds-icon":customElements.get(r(t))||l();break;case"mds-spinner":customElements.get(r(t))||v();break;case"mds-text":customElements.get(r(t))||p()}}))};export{w as MdsToast,y as defineCustomElement}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as o,d as i,h as a,c as s,t as n}from"./p-TZJN-ygm.js";import{c as e}from"./p-ChV9xqsO.js";import{h as r}from"./p-DWIIDHSa.js";import{c as d}from"./p-CWk1SCJg.js";import{p as l}from"./p-CVRN4LDc.js";import{m}from"./p-J-ikDhyq.js";import{L as h}from"./p-CZjwSwe5.js";import{d as c}from"./p-M8dGB4KH.js";import{d as p}from"./p-CEw7GvM-.js";import{d as w}from"./p-DDTJwlAd.js";import{d as g}from"./p-aujz-VM9.js";var f={close:"Κλείσιμο"},v={close:"Close"},u={close:"Cerrar"},b={close:"Chiudi"};const y=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.openEvent=i(this,"mdsModalOpen",7),this.showEvent=i(this,"mdsModalShow",7),this.closeEvent=i(this,"mdsModalClose",7),this.hideEvent=i(this,"mdsModalHide",7),this.t=new h({el:f,en:v,es:u,it:b}),this.bodyOverflow="",this.cssTransitionDuration="500",this.openAfterRender=!1,this.touchMargin=50,this.hasBottom=!1,this.hasTop=!1,this.hasWindow=!1,this.windowHeaderHeight=0,this.windowFooterHeight=0,this.opened=!1,this.hideBackdrop=!1,this.position="center",this.animation="slide",this.overflow="auto",this.interaction="relaxed",this.updateCSSCustomProps=()=>{var t;if("undefined"==typeof window)return;const o=window.getComputedStyle(this.host);this.cssTransitionDuration=null!==(t=o.getPropertyValue("--mds-modal-transition-duration"))&&void 0!==t?t:"500"},this.stopIntroAnimationWindow=()=>{this.setContentOverflow("auto"),this.showEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.stopOutroAnimationWindow=()=>{this.hideEvent.emit(),clearTimeout(this.animationDelayTimeout)},this.disableOverflow=()=>{"undefined"!=typeof document&&(""!==document.body.style.overflow&&(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden")},this.enableOverflow=()=>{"undefined"!=typeof document&&(""!==this.bodyOverflow?document.body.style.overflow=this.bodyOverflow:document.body.style.removeProperty("overflow"))},this.setContentOverflow=t=>{this.windowContentWrapper&&(this.windowContentWrapper.style.overflow=t)},this.handleWindowTransitionEnd=t=>{"transform"===t.propertyName&&(this.opened?this.stopIntroAnimationWindow():this.stopOutroAnimationWindow())},this.animateOpenWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopIntroAnimationWindow.bind(this),d(this.cssTransitionDuration)+100)},this.animateCloseWindow=()=>{this.setContentOverflow("hidden"),clearTimeout(this.animationDelayTimeout),this.animationDelayTimeout=setTimeout(this.stopOutroAnimationWindow.bind(this),d(this.cssTransitionDuration)+100)},this.setTouchStart=t=>{this.touchStartX=t.touches[0].clientX,this.touchStartY=t.touches[0].clientY},this.setTouchEnd=t=>{if("strict"===this.interaction)return;const o=this.touchStartX-t.changedTouches[0].clientX,i=this.touchStartY-t.changedTouches[0].clientY;if(Math.abs(o)>Math.abs(i)){if("right"===this.position&&o>0)return;if("left"===this.position&&o<0)return;Math.abs(o)>Math.abs(this.touchMargin)&&(this.opened=void 0)}},this.addMobileEvents=()=>{this.windowElement.addEventListener("touchstart",this.setTouchStart),this.windowElement.addEventListener("touchend",this.setTouchEnd)},this.updateSlots=()=>{this.hasBottom=r(this.host,"bottom"),this.hasTop=r(this.host,"top"),this.hasWindow=r(this.host,"window")},this.updateWindowPaddings=()=>{var t,o,i,a;const s=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window-header"),n=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-footer"),e=null!==(i=null==s?void 0:s.offsetHeight)&&void 0!==i?i:0,r=null!==(a=null==n?void 0:n.offsetHeight)&&void 0!==a?a:0;e!==this.windowHeaderHeight&&(this.windowHeaderHeight=e),r!==this.windowFooterHeight&&(this.windowFooterHeight=r)},this.showDialog=()=>{this.dialogEl&&!this.dialogEl.open&&(this.hideBackdrop?this.dialogEl.show():this.dialogEl.showModal(),this.updateWindowPaddings())},this.closeDialog=()=>{var t;(null===(t=this.dialogEl)||void 0===t?void 0:t.open)&&this.dialogEl.close()},this.handleBackdropClick=t=>{"strict"!==this.interaction&&t.target===this.dialogEl&&(this.opened=void 0)},this.handleCancel=t=>{t.preventDefault(),"strict"!==this.interaction&&(this.opened=void 0)}}componentWillLoad(){this.updateSlots(),"auto"===this.overflow&&this.opened&&this.disableOverflow()}componentDidLoad(){var t,o;this.windowElement=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".window"),this.windowContentWrapper=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".window-content-wrapper"),this.updateWindowPaddings(),null!=this.windowElement&&(this.addMobileEvents(),this.windowElement.addEventListener("transitionend",this.handleWindowTransitionEnd)),this.updateCSSCustomProps(),this.opened&&(this.showDialog(),this.animateOpenWindow(),this.openEvent.emit())}componentDidUpdate(){this.openAfterRender&&(this.openAfterRender=!1,this.showDialog(),this.animateOpenWindow(),this.openEvent.emit()),this.updateWindowPaddings()}disconnectedCallback(){this.enableOverflow(),clearTimeout(this.animationDelayTimeout),this.windowElement&&(this.windowElement.removeEventListener("touchstart",this.setTouchStart),this.windowElement.removeEventListener("touchend",this.setTouchEnd),this.windowElement.removeEventListener("transitionend",this.handleWindowTransitionEnd)),this.enableOverflow()}handleOpenProp(t,o){if(t)return"auto"===this.overflow&&this.disableOverflow(),void(this.openAfterRender=!0);this.openAfterRender=!1,o&&(this.opened=void 0,this.closeDialog(),"auto"===this.overflow&&this.enableOverflow(),this.animateCloseWindow(),this.closeEvent.emit())}handleHideBackdropProp(t){!1===t&&(this.hideBackdrop=void 0)}async close(){this.opened=void 0}render(){return a(s,{key:"45b3fd950185be51db62a8381caf49d24ec2fa65","pref-animation":l.state.animation,"pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},a("dialog",{key:"f9d53be4fc42dd300232a4a546e0be7767756d5a","aria-label":this.accessibleName,class:"dialog",part:"dialog",ref:t=>this.dialogEl=t,onClick:t=>{this.handleBackdropClick(t)},onCancel:t=>{this.handleCancel(t)}},a("slot",{key:"bd1c2cab3c4cf3db658a72ae8da8e6e73fa09008",name:"window",onSlotchange:this.updateSlots}),!this.hasWindow&&a("div",{key:"54b538559101fe20fdad60795517b1b5d7e0e41c",class:"window",part:"window"},a("div",{key:"1b1e2a732ce6ec50cc10f4bf75abae25b1da78fd",class:e("window-header",!this.hasTop&&"window-content--empty")},a("slot",{key:"dd0cd5c7095b9f3c87097a601370dddbadd11050",name:"top",onSlotchange:this.updateSlots})),a("div",{key:"b8409013cc7351c26a1bc62f46b06c1907d845d2",class:"window-content-wrapper"},a("div",{key:"419a03164087739c60c19f1709d4abeef8ef5832",class:"window-content",style:{paddingTop:`${this.windowHeaderHeight}px`,paddingBottom:`${this.windowFooterHeight}px`}},a("slot",{key:"765333f16f0fecfc3cfa6582131e62981055f610"}))),a("div",{key:"8ef8bed4acbe89bce2a4a2ae544e1b6e0da421c5",class:e("window-footer",!this.hasBottom&&"window-content--empty")},a("slot",{key:"7940e4282ae344c8a92301f21c4cb9b75a8f6028",name:"bottom",onSlotchange:this.updateSlots}))),!this.hasWindow&&a("mds-button",{key:"52ce6a70b25d8a07b4fc5d26fbe43914c363de6e","aria-label":this.t.get("close"),class:"action-close",icon:m,variant:"light",tone:"text",size:"xl",onClick:()=>{this.opened=void 0},part:"action-close"})))}get host(){return this}static get watchers(){return{opened:[{handleOpenProp:0}],hideBackdrop:[{handleHideBackdropProp:0}]}}static get style(){return'@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),mds-button:not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-modal-custom-closed-transform:rotateX(10deg) rotateY(0) scale(1.25) translateY(10%);--mds-modal-custom-window-distance:calc(var(--spacing,.0025rem)*600);--mds-modal-overlay-color:var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0));--mds-modal-overlay-opacity:var(--magma-overlay-opacity,.5);--mds-modal-transition-duration:var(--duration-500,.5s);--mds-modal-transition-timing-function:var(--mds-modal-transition-timing-funciton,var(--ease-in-out-quint,cubic-bezier(.86,0,.07,1)));--mds-modal-window-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-modal-window-distance:0px;--mds-modal-window-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2);--mds-modal-window-overflow:auto;--mds-modal-window-radius:0;--mds-modal-window-shadow:var(--shadow-2xl,0 25px 50px -12px #00000040);--mds-modal-window-max-width:33%;--mds-modal-window-min-width:calc(var(--spacing,.0025rem)*10000);--mds-modal-z-index:var(--magma-modal-z-index,3000);--private-modal-transition-duration:var(--mds-modal-transition-duration,var(--duration-500,.5s));--private-modal-width:calc(100vw - var(--private-modal-window-close-margin));--private-modal-custom-opened-transform:translate(0);--private-modal-opened-transform:none;--private-modal-transition-window-transform:translate(0);--private-modal-window-close-margin:calc(var(--spacing,.0025rem)*2000);display:contents}.dialog{align-items:center;background-color:#0000;border:0;box-sizing:border-box;color:inherit;display:none;fill:rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255)));height:auto;inset:0;justify-content:center;margin:0;max-height:none;max-width:none;overflow:clip;padding:0;perspective:calc(var(--spacing,.0025rem)*15000);position:fixed;transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function);width:auto;z-index:var(--mds-modal-z-index,1000)}.dialog[open]{display:flex}.dialog::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0);transition-behavior:allow-discrete;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,overlay,display;transition-timing-function:var(--mds-modal-transition-timing-function)}:host([hide-backdrop]) .dialog{pointer-events:none}.action-close{--mds-button-color:rgb(var(--magma-on-backdrop,252 252 252));opacity:0;pointer-events:none;position:absolute;transition-duration:var(--private-modal-transition-duration);transition-property:background-color,bottom,color,fill,opacity,top,transform;transition-timing-function:var(--mds-modal-transition-timing-function)}.action-close::part(icon){height:calc(var(--spacing,.0025rem)*900);width:calc(var(--spacing,.0025rem)*900)}:host([position=top-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=top][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(0) scale(.5) translateY(-80%)}:host([position=top-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([position=left][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) rotate(0) scale(.5) translate(-100%)}:host([position=center][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(22deg) scale(.5) translateY(40%)}:host([position=right][animation="3d"]){--private-modal-transition-window-transform:rotateX(0) rotateY(-22deg) rotate(0) scale(.5) translate(100%)}:host([position=bottom-left][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(22deg) scale(.5) translate(-80%,80%)}:host([position=bottom][animation="3d"]){--private-modal-transition-window-transform:rotateX(22deg) rotateY(0) scale(.5) translateY(80%)}:host([position=bottom-right][animation="3d"]){--private-modal-transition-window-transform:rotateX(-22deg) rotateY(-22deg) scale(.5) translate(80%,80%)}:host([animation=custom]){--private-modal-opened-transform:var(--private-modal-custom-opened-transform);--private-modal-transition-window-transform:var(--mds-modal-custom-closed-transform,rotateX(10deg) rotateY(0) scale(1.25) translate(0,10%))}:host([position=top-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,-100%)}:host([position=top][animation=slide]){--private-modal-transition-window-transform:translateY(-100%)}:host([position=top-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,-100%)}:host([position=left][animation=slide]){--private-modal-transition-window-transform:translate(-100%)}:host([position=center][animation=slide]){--private-modal-transition-window-transform:translateY(25%)}:host([position=right][animation=slide]){--private-modal-transition-window-transform:translate(100%)}:host([position=bottom-left][animation=slide]){--private-modal-transition-window-transform:translate(-50%,100%)}:host([position=bottom][animation=slide]){--private-modal-transition-window-transform:translateY(50%)}:host([position=bottom-right][animation=slide]){--private-modal-transition-window-transform:translate(50%,100%)}.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/var(--mds-modal-overlay-opacity,var(--magma-overlay-opacity,.5)))}@starting-style{.dialog[open]::backdrop{background-color:rgb(var(--mds-modal-overlay-color,var(--magma-overlay-color,var(--magma-backdrop-color,0 0 0)))/0)}}:host ::slotted([slot=window]){margin:var(--mds-modal-custom-window-distance,calc(var(--spacing,.0025rem)*600))}.window{background-color:var(--mds-modal-window-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-modal-window-radius,0);box-shadow:var(--mds-modal-window-shadow);box-sizing:border-box;display:grid;gap:0;grid-template-columns:repeat(1,minmax(0,100%));height:var(--mds-modal-window-height);margin:var(--mds-modal-window-distance,0);max-height:var(--mds-modal-window-max-height);max-width:var(--private-modal-width);min-width:var(--mds-modal-window-min-width,calc(var(--spacing,.0025rem)*10000));overflow:var(--mds-modal-window-overflow,auto);position:relative;width:100%}.window-content--empty{display:none}.window-content-wrapper{max-height:var(--mds-modal-window-max-height);overflow:hidden}.window-footer,.window-header{box-sizing:border-box;position:absolute}.window-header{inset:0 0 auto}.window-footer{inset:auto 0 0}.dialog .window,.dialog ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform);transition-duration:var(--private-modal-transition-duration);transition-property:transform,opacity;transition-timing-function:var(--mds-modal-transition-timing-function)}.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:1;pointer-events:auto;transform:var(--private-modal-opened-transform)}@starting-style{.dialog[open] .window,.dialog[open] ::slotted([slot=window]){opacity:0;transform:var(--private-modal-transition-window-transform)}.window-content-wrapper{overflow:hidden}}:host([position=top-left]) .dialog,:host([position=top-right]) .dialog,:host([position=top]) .dialog{align-items:flex-start}:host([position=center]) .dialog,:host([position=left]) .dialog,:host([position=right]) .dialog{align-items:center}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=bottom]) .dialog{align-items:flex-end}:host([position=bottom-left]) .dialog,:host([position=left]) .dialog,:host([position=top-left]) .dialog{justify-content:flex-start}:host([position=bottom]) .dialog,:host([position=center]) .dialog,:host([position=top]) .dialog{justify-content:center}:host([position=bottom-right]) .dialog,:host([position=right]) .dialog,:host([position=top-right]) .dialog{justify-content:flex-end}:host([position=top]){--mds-modal-window-height:auto;align-items:flex-start;justify-content:center}:host([position=top]) .window{--mds-modal-window-max-width:100vw;--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--mds-modal-window-height:100%;--mds-modal-window-max-height:calc(100dvh - var(--mds-modal-window-distance,0)*2)}:host([position=top-left]){align-items:flex-start;justify-content:flex-start}:host([position=top-right]){align-items:flex-start;justify-content:flex-end}:host([position=left]){align-items:center;justify-content:flex-start}:host([position=left]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=left][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=left]:not([opened])) .action-close{transform:translate(-120%)rotate(-45deg)}:host([position=center]){align-items:center;justify-content:center}:host([position=right]){align-items:center;justify-content:flex-end}:host([position=right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=right]:not([opened])) .action-close{transform:translate(120%)rotate(45deg)}:host([position=right][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]){align-items:flex-end;justify-content:flex-start}:host([position=bottom]){--mds-modal-window-height:auto;align-items:flex-end;justify-content:center}:host([position=bottom-right]){align-items:flex-end;justify-content:flex-end}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-modal-transition-duration:0s}:host([pref-contrast=more]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}:host([pref-mode=dark]:not([pref-theme-scheme=light])) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@media (max-width:480px){:host{--mds-modal-window-min-width:0px}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--private-modal-width:100vw}:host([position=left]),:host([position=right]){--private-modal-width:calc(100% - var(--private-modal-window-close-margin))}:host([position=bottom-left]),:host([position=bottom-right]),:host([position=center]),:host([position=top-left]),:host([position=top-right]){--mds-modal-window-height:calc(100dvh - var(--private-modal-window-close-margin) - var(--mds-modal-window-distance,0)*2);--mds-modal-window-max-height:var(--mds-modal-window-height)}:host([position=bottom-left]) .dialog,:host([position=bottom-right]) .dialog,:host([position=center]) .dialog,:host([position=top-left]) .dialog,:host([position=top-right]) .dialog{align-items:flex-end}:host([position=bottom]),:host([position=top]){--mds-modal-window-max-height:calc(100dvh - var(--private-modal-window-close-margin) - var(--mds-modal-window-distance,0)*2)}:host([position=bottom-left]) .action-close,:host([position=bottom-right]) .action-close,:host([position=bottom]) .action-close,:host([position=center]) .action-close,:host([position=top-left]) .action-close,:host([position=top-right]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=top]) .action-close{bottom:calc(var(--spacing,.0025rem)*300);right:calc(var(--spacing,.0025rem)*300)}:host([position=bottom-left][opened]) .action-close,:host([position=bottom-right][opened]) .action-close,:host([position=bottom][opened]) .action-close,:host([position=center][opened]) .action-close,:host([position=top-left][opened]) .action-close,:host([position=top-right][opened]) .action-close,:host([position=top][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]:not([opened])) .action-close,:host([position=bottom-right]:not([opened])) .action-close,:host([position=bottom]:not([opened])) .action-close,:host([position=center]:not([opened])) .action-close,:host([position=top-left]:not([opened])) .action-close,:host([position=top-right]:not([opened])) .action-close{transform:translateY(-120%)rotate(45deg)}:host([position=top]:not([opened])) .action-close{transform:translateY(120%)rotate(-45deg)}}@media not all and (max-width:480px){:host([position=bottom-left]),:host([position=bottom-right]),:host([position=bottom]),:host([position=center]),:host([position=top-left]),:host([position=top-right]),:host([position=top]){--mds-modal-window-height:auto}:host([position=left]),:host([position=right]){--private-modal-width:var(--mds-modal-window-max-width,33%)}:host([position=bottom]),:host([position=center]),:host([position=top]){--private-modal-width:calc(100vw - var(--private-modal-window-close-margin)*2)}:host([position=bottom-left]) .action-close,:host([position=bottom]) .action-close,:host([position=center]) .action-close,:host([position=top-left]) .action-close,:host([position=top]) .action-close{right:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=bottom-right]) .action-close,:host([position=top-right]) .action-close{left:calc(var(--spacing,.0025rem)*300);top:calc(var(--spacing,.0025rem)*300)}:host([position=bottom-left][opened]) .action-close,:host([position=bottom-right][opened]) .action-close,:host([position=bottom][opened]) .action-close,:host([position=center][opened]) .action-close,:host([position=top-left][opened]) .action-close,:host([position=top-right][opened]) .action-close,:host([position=top][opened]) .action-close{opacity:1;pointer-events:auto}:host([position=bottom-left]:not([opened])) .action-close,:host([position=bottom]:not([opened])) .action-close,:host([position=center]:not([opened])) .action-close,:host([position=top-left]:not([opened])) .action-close,:host([position=top]:not([opened])) .action-close{transform:translateY(-120%)rotate(45deg)}:host([position=bottom-right]:not([opened])) .action-close,:host([position=top-right]:not([opened])) .action-close{transform:translateY(-120%)rotate(-45deg)}}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-modal-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-modal-window-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-2xl,0 25px 50px -12px #00000040)}}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))) .action-close{--mds-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'}},[257,"mds-modal",{accessibleName:[1,"aria-label"],opened:[1540],hideBackdrop:[1540,"hide-backdrop"],position:[1537],animation:[513],overflow:[513],interaction:[513],hasBottom:[32],hasTop:[32],hasWindow:[32],windowHeaderHeight:[32],windowFooterHeight:[32],close:[64]},void 0,{opened:[{handleOpenProp:0}],hideBackdrop:[{handleHideBackdropProp:0}]}]);function x(){"undefined"!=typeof customElements&&["mds-modal","mds-button","mds-icon","mds-spinner","mds-text"].forEach((t=>{switch(t){case"mds-modal":customElements.get(n(t))||customElements.define(n(t),y);break;case"mds-button":customElements.get(n(t))||c();break;case"mds-icon":customElements.get(n(t))||p();break;case"mds-spinner":customElements.get(n(t))||w();break;case"mds-text":customElements.get(n(t))||g()}}))}export{y as M,x as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as a,H as r,d as e,h as n,c as t,t as s}from"./p-TZJN-ygm.js";import{h as o}from"./p-DWIIDHSa.js";import{c as i}from"./p-ChV9xqsO.js";import{m as d}from"./p-J-ikDhyq.js";import{K as c}from"./p-CGrPq3C4.js";import{L as m}from"./p-CZjwSwe5.js";import{p as l}from"./p-CVRN4LDc.js";import{d as b}from"./p-M8dGB4KH.js";import{d as v}from"./p-CEw7GvM-.js";import{d as g}from"./p-DDTJwlAd.js";import{d as u}from"./p-aujz-VM9.js";var p={cancel:"Ακύρωση"},h={cancel:"Cancel"},f={cancel:"Cancelar"},x={cancel:"Annulla"};const k=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.closeEvent=e(this,"mdsBannerClose",7),this.km=new c,this.t=new m({el:p,en:h,es:f,it:x}),this.variant="primary",this.tone="weak",this.hideCockade=!1,this.ariaVariants={ai:{role:"status",live:"polite"},dark:{role:"presentation",live:void 0},error:{role:"alert",live:"assertive"},info:{role:"status",live:"polite"},light:{role:"presentation",live:void 0},primary:{role:"status",live:"polite"},success:{role:"status",live:"polite"},warning:{role:"alert",live:"assertive"}},this.isDismissible=()=>!0===this.dismissible||!0===this.deletable,this.dismissibleHandler=()=>{var a;if(this.isDismissible()){const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".close-button");return this.km.addElement(r),void this.km.attachClickBehavior()}this.km.detachClickBehavior()},this.setCloseButtonVariant=a=>{this.closeButtonVariant="dark"!==a?"light"!==a?null!=a?a:"primary":"dark":"light"},this.onActionSlotChange=()=>{this.hasActions=o(this.host,"action")},this.closeBanner=()=>{var a;this.closeEvent.emit();const r=null===(a=this.host)||void 0===a?void 0:a.closest("mds-modal");null!=r&&(r.opened=!1)}}componentWillLoad(){this.hasActions=o(this.host,"action"),this.setCloseButtonVariant(this.variant)}componentDidLoad(){this.dismissibleHandler()}componentDidUpdate(){this.dismissibleHandler()}disconnectedCallback(){this.km.detachClickBehavior()}variantHandler(a){this.setCloseButtonVariant(a)}render(){var a,r;return n(t,{key:"278c0aca520ac2bedadf5a4ca96ad238826ec7b4","aria-label":this.headline,role:this.ariaVariants[null!==(a=this.variant)&&void 0!==a?a:"primary"].role,"aria-live":this.ariaVariants[null!==(r=this.variant)&&void 0!==r?r:"primary"].live,"pref-animation":l.state.animation,"pref-contrast":l.state.contrast,"pref-mode":l.state.mode,"pref-theme-scheme":l.state["theme-scheme"]},n("div",{key:"ce53b36682f67edea4cf91fe221bdb43bcbd88cf",class:i("body",this.isDismissible()&&"body--dismissible")},this.icon&&n("mds-icon",{key:"8f54ba530b5494e757654489d1a3cbb87f5a12f4","aria-hidden":"true",class:"icon",name:this.icon}),n("div",{key:"1956316298c6b3c8fd0959f0d988b9ad9fd7382d",class:"content"},this.headline&&n("mds-text",{key:"aa0357e3334f6acb08650e59de1c0db3d0680ae0","aria-hidden":"true",class:"headline",typography:"h6"},this.headline),n("div",{key:"0477620a9fd08ba6ca1b7290020923f1cf710e4d",class:"text",part:"text"},n("slot",{key:"e85c121336d692108485e45d0a350b4b3de44806"}))),this.isDismissible()&&n("mds-button",{key:"c6a5496968f30240d2f9e092a9ee69fe0629ca1b",class:"close-button",icon:d,onClick:this.closeBanner,title:this.t.get("cancel"),variant:this.closeButtonVariant,tone:"text"})),n("div",{key:"b9076e0b13e98b2d017a09c8b0463c3a3db12c62",class:i("actions",!this.hasActions&&"actions--hidden")},n("slot",{key:"fe0bc615edc8bf1d9038703b02f070b455826cf8",name:"action",onSlotchange:this.onActionSlotChange})))}get host(){return this}static get watchers(){return{variant:[{variantHandler:0}]}}static get style(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-button,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-cockade-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-banner-cockade-distance:calc(var(--spacing,.0025rem)*600);--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-content-gap:calc(var(--spacing,.0025rem)*400);--mds-banner-headline-color:var(--mds-banner-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--mds-banner-icon-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-banner-radius:var(--magma-radius-2xl,var(--radius-squircle-2xl,40px));--mds-banner-shadow:none;--mds-banner-transition-duration:var(--duration-300,.3s);--private-banner-transition-duration:var(--mds-banner-transition-duration,var(--duration-300,.3s));--mds-banner-transition-timing-function:var(--ease-in-out-expo,cubic-bezier(1,0,0,1));background-color:var(--mds-banner-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--mds-banner-radius,var(--magma-radius-2xl,var(--radius-squircle-2xl,40px)));box-shadow:var(--mds-banner-shadow);color:var(--mds-banner-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));corner-shape:var(--magma-corner-shape,squircle);container:mds-banner/inline-size;display:grid;gap:calc(var(--spacing,.0025rem)*600);grid-template-columns:repeat(1,minmax(1px,100%));padding:calc(var(--spacing,.0025rem)*600);position:relative;transition-duration:var(--private-banner-transition-duration);transition-property:background-color,box-shadow,color;transition-timing-function:var(--mds-banner-transition-timing-function);width:100%}.body{align-items:flex-start;display:flex;gap:var(--mds-banner-content-gap,calc(var(--spacing,.0025rem)*400));justify-content:space-between}.headline{color:var(--mds-banner-headline-color,rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163))))}.content{box-sizing:border-box;flex-direction:column;flex-grow:1;justify-content:center}.actions,.content{display:flex;gap:var(--mds-banner-content-gap,calc(var(--spacing,.0025rem)*400))}.actions{flex-wrap:wrap;justify-content:flex-end}.actions--hidden{display:none}.icon{fill:var(--mds-banner-icon-color,rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204))));flex-shrink:0;transition-duration:var(--mds-banner-transition-duration,var(--duration-300,.3s));transition-property:background-color,fill;transition-timing-function:var(--mds-banner-transition-timing-function)}.text{display:grid;flex-grow:1;gap:var(--mds-banner-content-gap,calc(var(--spacing,.0025rem)*400))}@container mds-banner (max-width:300px){.body--dismissible .content:not(:has(.headline)),.body--dismissible .headline{padding-right:calc(var(--spacing,.0025rem)*800)}::slotted([slot=action]){flex-basis:100%;flex-grow:1}}:host(:not([hide-cockade])) .icon,:host([hide-cockade=false]) .icon{background-color:var(--mds-banner-cockade-background,rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231))));border-bottom-left-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));border-bottom-right-radius:var(--magma-radius-lg,var(--radius-squircle-lg,28px));margin-top:calc(-1 * var(--mds-banner-cockade-distance,calc(var(--spacing,.0025rem) * 600)));padding:calc(var(--spacing,.0025rem)*200);padding-top:var(--mds-banner-cockade-distance,calc(var(--spacing,.0025rem)*600))}@container mds-banner (max-width:300px){:host(:not([hide-cockade])) .icon,:host([hide-cockade=false]) .icon{padding-top:calc(var(--spacing,.0025rem)*200)}.body{flex-direction:column}.close-button{position:absolute;right:calc(var(--mds-banner-cockade-distance,calc(var(--spacing,.0025rem) * 600)) / 2);top:calc(var(--mds-banner-cockade-distance,calc(var(--spacing,.0025rem) * 600)) / 2)}}:host,:host([variant=primary]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-banner-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-banner-headline-color:rgb(var(--magma-accent-emphasis-active,var(--variant-primary-02,0 57 163)));--mds-banner-cockade-background:rgb(var(--magma-accent-surface,var(--variant-primary-09,220 224 231)))}:host([variant=primary]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-accent-surface-subtle,var(--variant-primary-10,236 237 240)))}:host([variant=ai]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-banner-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-banner-headline-color:rgb(var(--magma-accent-ai-emphasis-active,var(--variant-ai-02,65 11 190)));--mds-banner-cockade-background:rgb(var(--magma-accent-ai-surface,var(--variant-ai-09,229 218 253)))}:host([variant=ai]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-accent-ai-fg,var(--variant-ai-03,87 20 242)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-accent-ai-surface-subtle,var(--variant-ai-10,240 234 254)))}:host([variant=error]){--mds-banner-headline-color:rgb(var(--magma-danger-text-subtle,var(--text-error-subtle,165 33 40)));--mds-banner-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)));--mds-banner-color:rgb(var(--magma-danger-text-muted,var(--text-error-muted,132 0 11)));--mds-banner-icon-color:rgb(var(--magma-danger-text-default,var(--text-error-default,89 0 0)));--mds-banner-shadow:none;--mds-banner-cockade-background:rgb(var(--magma-danger-wash-strong,var(--status-error-08,254 198 194)))}:host([variant=error]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-danger-emphasis,var(--status-error-04,196 64 65)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-danger-wash-soft,var(--status-error-10,255 232 230)))}:host([variant=warning]){--mds-banner-headline-color:rgb(var(--magma-warning-text-subtle,var(--text-warning-subtle,113 85 0)));--mds-banner-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)));--mds-banner-color:rgb(var(--magma-warning-text-muted,var(--text-warning-muted,88 66 0)));--mds-banner-icon-color:rgb(var(--magma-warning-text-default,var(--text-warning-default,58 44 0)));--mds-banner-shadow:none;--mds-banner-cockade-background:rgb(var(--magma-warning-wash-strong,var(--status-warning-08,255 205 57)))}:host([variant=warning]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-warning-emphasis,var(--status-warning-04,142 106 0)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-warning-wash-soft,var(--status-warning-10,255 237 181)))}:host([variant=info]){--mds-banner-headline-color:rgb(var(--magma-info-text-subtle,var(--text-info-subtle,0 94 137)));--mds-banner-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)));--mds-banner-color:rgb(var(--magma-info-text-muted,var(--text-info-muted,0 71 114)));--mds-banner-icon-color:rgb(var(--magma-info-text-default,var(--text-info-default,0 45 86)));--mds-banner-shadow:none;--mds-banner-cockade-background:rgb(var(--magma-info-wash-strong,var(--status-info-08,168 219 242)))}:host([variant=info]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-info-emphasis,var(--status-info-04,0 119 164)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-info-wash-soft,var(--status-info-10,220 240 250)))}:host([variant=success]){--mds-banner-headline-color:rgb(var(--magma-success-text-subtle,var(--text-success-subtle,0 102 32)));--mds-banner-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)));--mds-banner-color:rgb(var(--magma-success-text-muted,var(--text-success-muted,0 80 7)));--mds-banner-icon-color:rgb(var(--magma-success-text-default,var(--text-success-default,0 53 0)));--mds-banner-shadow:none;--mds-banner-cockade-background:rgb(var(--magma-success-wash-strong,var(--status-success-08,165 225 186)))}:host([variant=success]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-success-wash-soft,var(--status-success-10,220 243 227)))}:host([variant=dark]){--mds-banner-background:rgb(var(--magma-surface-inverse,var(--tone-neutral-02,42 42 42)));--mds-banner-cockade-background:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255))/.15);--mds-banner-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-banner-headline-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-banner-icon-color:rgb(var(--magma-on-inverse,var(--tone-neutral-seed,255 255 255)));--mds-banner-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d)}:host([variant=dark]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-inverse-muted,var(--tone-neutral-03,73 73 73)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a)}:host([variant=light]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-banner-shadow:var(--shadow-lg-sharp,0 0 1px 1px #0000000f,0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d);--mds-banner-headline-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-cockade-background:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)))}:host([variant=light]):host([tone=weak]){--mds-banner-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--mds-banner-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-banner-icon-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));--mds-banner-shadow:var(--shadow-sm-sharp,0 0 1px 1px #0000000f,0 1px 3px 0 #0000001a);--mds-banner-cockade-background:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)))}:host([tone=box]){box-shadow:var(--shadow-box-solid-weak,#0000004d 0 2px 4px,#00000008 0 0 0 1px,#0000001a 0 7px 13px -3px,#0003 0 -3px 0 inset,#ffffff1a 0 -8px 10px inset,#ffffff26 0 -4px 0 inset)}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-banner-transition-duration:0s}:host([pref-contrast=more]){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-lg,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a)}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-banner-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){box-shadow:var(--shadow-ring-strong-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.6)),var(--shadow-lg,0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a)}}"}},[257,"mds-banner",{variant:[513],tone:[513],hideCockade:[516,"hide-cockade"],dismissible:[4],deletable:[4],headline:[1],icon:[1],closeButtonVariant:[32],hasActions:[32]},void 0,{variant:[{variantHandler:0}]}]);function w(){"undefined"!=typeof customElements&&["mds-banner","mds-button","mds-icon","mds-spinner","mds-text"].forEach((a=>{switch(a){case"mds-banner":customElements.get(s(a))||customElements.define(s(a),k);break;case"mds-button":customElements.get(s(a))||b();break;case"mds-icon":customElements.get(s(a))||v();break;case"mds-spinner":customElements.get(s(a))||g();break;case"mds-text":customElements.get(s(a))||u()}}))}export{k as M,w as d}
|