@maggioli-design-system/magma 2.10.0 → 2.12.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 +2 -2
- package/CHANGELOG.md +59 -0
- package/README.md +14 -7
- package/agents/assets.md +1 -1
- package/agents/color.md +3 -2
- package/agents/mcp.md +5 -5
- package/agents/patterns/actions.md +4 -3
- package/agents/patterns/app-shell.md +70 -22
- package/agents/patterns/density.md +4 -3
- package/agents/patterns/previews/actions/banner.dark.webp +0 -0
- package/agents/patterns/previews/actions/banner.light.webp +0 -0
- package/agents/patterns/previews/actions/confirm.dark.webp +0 -0
- package/agents/patterns/previews/actions/confirm.light.webp +0 -0
- package/agents/patterns/previews/actions/danger-zone.dark.webp +0 -0
- package/agents/patterns/previews/actions/danger-zone.light.webp +0 -0
- package/agents/patterns/previews/actions/destructive-in-menu.dark.webp +0 -0
- package/agents/patterns/previews/actions/destructive-in-menu.light.webp +0 -0
- package/agents/patterns/previews/actions/dismiss-message.dark.webp +0 -0
- package/agents/patterns/previews/actions/dismiss-message.light.webp +0 -0
- package/agents/patterns/previews/actions/dismiss.dark.webp +0 -0
- package/agents/patterns/previews/actions/dismiss.light.webp +0 -0
- package/agents/patterns/previews/actions/more-in-menu.dark.webp +0 -0
- package/agents/patterns/previews/actions/more-in-menu.light.webp +0 -0
- package/agents/patterns/previews/actions/part-primary.dark.webp +0 -0
- package/agents/patterns/previews/actions/part-primary.light.webp +0 -0
- package/agents/patterns/previews/actions/primary.dark.webp +0 -0
- package/agents/patterns/previews/actions/primary.light.webp +0 -0
- package/agents/patterns/previews/actions/remove.dark.webp +0 -0
- package/agents/patterns/previews/actions/remove.light.webp +0 -0
- package/agents/patterns/previews/actions/secondary.dark.webp +0 -0
- package/agents/patterns/previews/actions/secondary.light.webp +0 -0
- package/agents/patterns/previews/actions/stacked.dark.webp +0 -0
- package/agents/patterns/previews/actions/stacked.light.webp +0 -0
- package/agents/patterns/previews/actions/toast.dark.webp +0 -0
- package/agents/patterns/previews/actions/toast.light.webp +0 -0
- package/agents/patterns/previews/app-shell/back-office.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/back-office.html +2 -2
- package/agents/patterns/previews/app-shell/back-office.light.webp +0 -0
- package/agents/patterns/previews/app-shell/many-sections.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/many-sections.html +1 -1
- package/agents/patterns/previews/app-shell/many-sections.light.webp +0 -0
- package/agents/patterns/previews/app-shell/public-service.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/public-service.html +2 -2
- package/agents/patterns/previews/app-shell/public-service.light.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.dark.webp +0 -0
- package/agents/patterns/previews/app-shell/section-menus.html +68 -0
- package/agents/patterns/previews/app-shell/section-menus.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/act-then-undo.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/act-then-undo.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-before-sending.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-before-sending.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first-many.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first-many.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/ask-first.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/make-reversible.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/make-reversible.light.webp +0 -0
- package/agents/patterns/previews/confirm-action/send-as-shown.dark.webp +0 -0
- package/agents/patterns/previews/confirm-action/send-as-shown.light.webp +0 -0
- package/agents/patterns/previews/empty-state/add-the-first.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/add-the-first.light.webp +0 -0
- package/agents/patterns/previews/empty-state/all-done.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/all-done.light.webp +0 -0
- package/agents/patterns/previews/empty-state/clear-filters.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/clear-filters.light.webp +0 -0
- package/agents/patterns/previews/empty-state/filled-by-others.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/filled-by-others.light.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/not-found.html +2 -2
- package/agents/patterns/previews/empty-state/not-found.light.webp +0 -0
- package/agents/patterns/previews/empty-state/one-line.dark.webp +0 -0
- package/agents/patterns/previews/empty-state/one-line.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/action-another-way.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/action-another-way.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/changed-meanwhile.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/changed-meanwhile.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/check-or-repeat.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/check-or-repeat.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/content-another-way.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/content-another-way.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/partial.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/partial.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-action.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-action.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-content.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/retry-content.light.webp +0 -0
- package/agents/patterns/previews/error-recovery/sign-in-again.dark.webp +0 -0
- package/agents/patterns/previews/error-recovery/sign-in-again.light.webp +0 -0
- package/agents/patterns/previews/item-list/documents-of-a-request.dark.webp +0 -0
- package/agents/patterns/previews/item-list/documents-of-a-request.light.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.dark.webp +0 -0
- package/agents/patterns/previews/item-list/queue-of-a-desk.light.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.dark.webp +0 -0
- package/agents/patterns/previews/item-list/requests-of-an-office.light.webp +0 -0
- package/agents/patterns/previews/item-list/requests-to-assign.dark.webp +0 -0
- package/agents/patterns/previews/item-list/requests-to-assign.light.webp +0 -0
- package/agents/patterns/previews/labels-and-values/data-of-a-contact.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/data-of-a-contact.light.webp +0 -0
- package/agents/patterns/previews/labels-and-values/payment-before-paying.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/payment-before-paying.light.webp +0 -0
- package/agents/patterns/previews/labels-and-values/what-is-sent.dark.webp +0 -0
- package/agents/patterns/previews/labels-and-values/what-is-sent.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/act-on-many.html +2 -2
- package/agents/patterns/previews/list-with-filters/act-on-many.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/find-and-open.html +2 -2
- package/agents/patterns/previews/list-with-filters/find-and-open.light.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.dark.webp +0 -0
- package/agents/patterns/previews/list-with-filters/show-new-items.html +2 -2
- package/agents/patterns/previews/list-with-filters/show-new-items.light.webp +0 -0
- package/agents/patterns/previews/loading/await-and-say.dark.webp +0 -0
- package/agents/patterns/previews/loading/await-and-say.light.webp +0 -0
- package/agents/patterns/previews/loading/await-the-control.dark.webp +0 -0
- package/agents/patterns/previews/loading/await-the-control.light.webp +0 -0
- package/agents/patterns/previews/loading/first-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/first-load.light.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.dark.webp +0 -0
- package/agents/patterns/previews/loading/keep-while-reloading.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load-measured.light.webp +0 -0
- package/agents/patterns/previews/loading/long-load.dark.webp +0 -0
- package/agents/patterns/previews/loading/long-load.light.webp +0 -0
- package/agents/patterns/previews/loading/progress-in-place.dark.webp +0 -0
- package/agents/patterns/previews/loading/progress-in-place.light.webp +0 -0
- package/agents/patterns/previews/loading/run-in-background.dark.webp +0 -0
- package/agents/patterns/previews/loading/run-in-background.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-page.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-page.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-part.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-done-in-part.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-in-place.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-failed-in-place.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-later.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-later.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-elsewhere.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-elsewhere.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-in-place.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-partial-in-place.light.webp +0 -0
- package/agents/patterns/previews/message-placement/action-taken.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/action-taken.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-deadline.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-deadline.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-failed.html +2 -2
- package/agents/patterns/previews/message-placement/app-failed.light.webp +0 -0
- package/agents/patterns/previews/message-placement/app-info.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/app-info.light.webp +0 -0
- package/agents/patterns/previews/message-placement/decision.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/decision.light.webp +0 -0
- package/agents/patterns/previews/message-placement/field-error.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-error.light.webp +0 -0
- package/agents/patterns/previews/message-placement/field-hint.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-hint.light.webp +0 -0
- package/agents/patterns/previews/message-placement/field-valid.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/field-valid.light.webp +0 -0
- package/agents/patterns/previews/message-placement/region-failed.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/region-failed.light.webp +0 -0
- package/agents/patterns/previews/message-placement/region-info.dark.webp +0 -0
- package/agents/patterns/previews/message-placement/region-info.light.webp +0 -0
- package/agents/patterns/previews/page-header/contact-being-edited.dark.webp +0 -0
- package/agents/patterns/previews/page-header/contact-being-edited.light.webp +0 -0
- package/agents/patterns/previews/page-header/members-of-a-group.dark.webp +0 -0
- package/agents/patterns/previews/page-header/members-of-a-group.light.webp +0 -0
- package/agents/patterns/previews/page-header/own-profile.dark.webp +0 -0
- package/agents/patterns/previews/page-header/own-profile.light.webp +0 -0
- package/agents/patterns/previews/page-header/request-from-the-list.dark.webp +0 -0
- package/agents/patterns/previews/page-header/request-from-the-list.light.webp +0 -0
- package/agents/patterns/previews/page-header/requests-of-an-office.dark.webp +0 -0
- package/agents/patterns/previews/page-header/requests-of-an-office.light.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/ask-for-words.html +2 -2
- package/agents/patterns/previews/record-detail/ask-for-words.light.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/edit-data.html +2 -2
- package/agents/patterns/previews/record-detail/edit-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/read-the-data.html +2 -2
- package/agents/patterns/previews/record-detail/read-the-data.light.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/record-changed.html +2 -2
- package/agents/patterns/previews/record-detail/record-changed.light.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/run-at-once.html +2 -2
- package/agents/patterns/previews/record-detail/run-at-once.light.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.dark.webp +0 -0
- package/agents/patterns/previews/record-detail/work-on-it.html +2 -2
- package/agents/patterns/previews/record-detail/work-on-it.light.webp +0 -0
- package/agents/patterns/previews/rhythm/between-containers.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-containers.light.webp +0 -0
- package/agents/patterns/previews/rhythm/between-fields.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-fields.light.webp +0 -0
- package/agents/patterns/previews/rhythm/between-groups.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-groups.light.webp +0 -0
- package/agents/patterns/previews/rhythm/between-sections.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/between-sections.light.webp +0 -0
- package/agents/patterns/previews/rhythm/content-actions.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/content-actions.light.webp +0 -0
- package/agents/patterns/previews/rhythm/inline.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/inline.light.webp +0 -0
- package/agents/patterns/previews/rhythm/inset.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/inset.light.webp +0 -0
- package/agents/patterns/previews/rhythm/label-control.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/label-control.light.webp +0 -0
- package/agents/patterns/previews/rhythm/title-content.dark.webp +0 -0
- package/agents/patterns/previews/rhythm/title-content.light.webp +0 -0
- package/agents/patterns/previews/surfaces/band.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/band.html +2 -2
- package/agents/patterns/previews/surfaces/band.light.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/canvas.html +2 -2
- package/agents/patterns/previews/surfaces/canvas.light.webp +0 -0
- package/agents/patterns/previews/surfaces/card.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/card.light.webp +0 -0
- package/agents/patterns/previews/surfaces/dialog.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/dialog.light.webp +0 -0
- package/agents/patterns/previews/surfaces/edit-actions.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/edit-actions.light.webp +0 -0
- package/agents/patterns/previews/surfaces/section.dark.webp +0 -0
- package/agents/patterns/previews/surfaces/section.light.webp +0 -0
- package/agents/patterns/previews/titles/dialog.dark.webp +0 -0
- package/agents/patterns/previews/titles/dialog.light.webp +0 -0
- package/agents/patterns/previews/titles/group.dark.webp +0 -0
- package/agents/patterns/previews/titles/group.light.webp +0 -0
- package/agents/patterns/previews/titles/page.dark.webp +0 -0
- package/agents/patterns/previews/titles/page.light.webp +0 -0
- package/agents/patterns/previews/titles/part.dark.webp +0 -0
- package/agents/patterns/previews/titles/part.light.webp +0 -0
- package/agents/patterns/previews/titles/section.dark.webp +0 -0
- package/agents/patterns/previews/titles/section.light.webp +0 -0
- package/agents/patterns/previews/widths/dialog.dark.webp +0 -0
- package/agents/patterns/previews/widths/dialog.light.webp +0 -0
- package/agents/patterns/previews/widths/field.dark.webp +0 -0
- package/agents/patterns/previews/widths/field.light.webp +0 -0
- package/agents/patterns/previews/widths/form.dark.webp +0 -0
- package/agents/patterns/previews/widths/form.light.webp +0 -0
- package/agents/patterns/previews/widths/page.dark.webp +0 -0
- package/agents/patterns/previews/widths/page.html +2 -2
- package/agents/patterns/previews/widths/page.light.webp +0 -0
- package/agents/patterns/previews/widths/reading.dark.webp +0 -0
- package/agents/patterns/previews/widths/reading.light.webp +0 -0
- package/agents/patterns/rhythm.md +2 -1
- package/agents/patterns/surfaces.md +4 -3
- package/agents/patterns/titles.md +4 -3
- package/agents/patterns/widths.md +4 -3
- package/agents/patterns.md +8 -7
- package/agents/theming.md +21 -9
- package/dist/cjs/{aria-CzO5Rp1y.js → aria-r1anAHBr.js} +12 -0
- package/dist/cjs/{floating-controller-DaFymQCT.js → floating-controller-B4YhrWm8.js} +1 -1
- package/dist/cjs/{index-Bg68W-da.js → index-Csgx951d.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-CaR39iYg.js → locale-DgMC52AD.js} +1 -1
- package/dist/cjs/magma-components.cjs.js +1 -1
- package/dist/cjs/mds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/mds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/mds-badge.cjs.entry.js +2 -2
- package/dist/cjs/mds-banner_3.cjs.entry.js +5 -5
- package/dist/cjs/mds-book.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +6 -4
- package/dist/cjs/mds-button-group.cjs.entry.js +1 -1
- package/dist/cjs/mds-button_3.cjs.entry.js +78 -16
- package/dist/cjs/mds-calendar_2.cjs.entry.js +8 -8
- package/dist/cjs/mds-card-content.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-card-media.cjs.entry.js +1 -1
- package/dist/cjs/mds-card.cjs.entry.js +2 -2
- package/dist/cjs/mds-details.cjs.entry.js +2 -2
- package/dist/cjs/mds-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/mds-emoji.cjs.entry.js +41 -12
- package/dist/cjs/mds-entity.cjs.entry.js +2 -2
- package/dist/cjs/mds-file-preview.cjs.entry.js +5 -5
- package/dist/cjs/mds-file.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter-item.cjs.entry.js +5 -5
- package/dist/cjs/mds-filter.cjs.entry.js +4 -4
- package/dist/cjs/mds-header-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +3 -3
- package/dist/cjs/mds-hr.cjs.entry.js +2 -2
- package/dist/cjs/mds-img.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date-range.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-date.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-field.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +3 -3
- package/dist/cjs/mds-input-select.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +5 -5
- package/dist/cjs/mds-input-upload.cjs.entry.js +7 -7
- package/dist/cjs/mds-input.cjs.entry.js +8 -8
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +3 -3
- package/dist/cjs/mds-keyboard.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +1 -1
- package/dist/cjs/mds-label.cjs.entry.js +3 -3
- package/dist/cjs/mds-link.cjs.entry.js +5 -5
- package/dist/cjs/mds-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +3 -3
- package/dist/cjs/mds-modal.cjs.entry.js +34 -15
- package/dist/cjs/mds-note.cjs.entry.js +4 -4
- package/dist/cjs/mds-notification.cjs.entry.js +3 -3
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator.cjs.entry.js +4 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-animation.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-language.cjs.entry.js +3 -3
- package/dist/cjs/mds-pref-mode.cjs.entry.js +22 -13
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +18 -4
- package/dist/cjs/mds-pref-theme.cjs.entry.js +42 -10
- package/dist/cjs/mds-pref.cjs.entry.js +3 -25
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-header.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-price-table-list.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table.cjs.entry.js +1 -1
- package/dist/cjs/mds-progress_2.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-push-notification.cjs.entry.js +4 -4
- package/dist/cjs/mds-quote.cjs.entry.js +2 -2
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/mds-radial-menu.cjs.entry.js +5 -5
- package/dist/cjs/mds-separator.cjs.entry.js +2 -2
- package/dist/cjs/mds-status-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +1 -1
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-tab-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-tab_2.cjs.entry.js +6 -6
- package/dist/cjs/mds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-table-row.cjs.entry.js +4 -4
- package/dist/cjs/mds-table.cjs.entry.js +4 -4
- package/dist/cjs/mds-text.cjs.entry.js +2 -2
- package/dist/cjs/mds-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/mds-toast.cjs.entry.js +3 -3
- package/dist/cjs/mds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/mds-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-tree.cjs.entry.js +1 -1
- package/dist/cjs/mds-url-view.cjs.entry.js +4 -4
- package/dist/cjs/mds-usage.cjs.entry.js +4 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +2 -2
- package/dist/cjs/mds-zero.cjs.entry.js +3 -3
- package/dist/cjs/{preference-CQQ3eb9W.js → preference-DhNxLZ4R.js} +20 -0
- package/dist/collection/common/aria.js +12 -1
- package/dist/collection/common/preference.js +19 -1
- package/dist/collection/components/mds-accordion/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-item/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer/documentation.json +1 -1
- package/dist/collection/components/mds-accordion-timer-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-accordion-timer-item/documentation.json +1 -1
- package/dist/collection/components/mds-author/AGENTS.md +1 -1
- package/dist/collection/components/mds-author/documentation.json +1 -1
- package/dist/collection/components/mds-avatar/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar/documentation.json +2 -2
- package/dist/collection/components/mds-avatar-stack/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack/documentation.json +2 -2
- package/dist/collection/components/mds-avatar-stack-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-avatar-stack-item/documentation.json +2 -2
- package/dist/collection/components/mds-badge/AGENTS.md +1 -1
- package/dist/collection/components/mds-badge/documentation.json +1 -1
- package/dist/collection/components/mds-badge/mds-badge.css +15 -10
- package/dist/collection/components/mds-banner/AGENTS.md +1 -1
- package/dist/collection/components/mds-banner/documentation.json +2 -2
- package/dist/collection/components/mds-benchmark-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-benchmark-bar/documentation.json +1 -1
- package/dist/collection/components/mds-bibliography/AGENTS.md +1 -1
- package/dist/collection/components/mds-bibliography/documentation.json +1 -1
- package/dist/collection/components/mds-book/AGENTS.md +1 -1
- package/dist/collection/components/mds-book/documentation.json +1 -1
- package/dist/collection/components/mds-breadcrumb/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb/documentation.json +2 -2
- package/dist/collection/components/mds-breadcrumb-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-breadcrumb-item/documentation.json +2 -2
- package/dist/collection/components/mds-button/AGENTS.md +9 -4
- package/dist/collection/components/mds-button/documentation.json +100 -7
- package/dist/collection/components/mds-button/examples.md +73 -0
- package/dist/collection/components/mds-button/mds-button.css +122 -14
- package/dist/collection/components/mds-button/mds-button.js +139 -13
- package/dist/collection/components/mds-button/mistakes.md +35 -0
- package/dist/collection/components/mds-button-dropdown/AGENTS.md +7 -2
- package/dist/collection/components/mds-button-dropdown/documentation.json +97 -4
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +69 -3
- package/dist/collection/components/mds-button-group/AGENTS.md +1 -1
- package/dist/collection/components/mds-button-group/documentation.json +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.js +1 -1
- package/dist/collection/components/mds-calendar/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar/documentation.json +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.js +5 -5
- package/dist/collection/components/mds-calendar-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-calendar-cell/documentation.json +2 -2
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +1 -1
- package/dist/collection/components/mds-card/AGENTS.md +1 -1
- package/dist/collection/components/mds-card/documentation.json +1 -1
- package/dist/collection/components/mds-card/mds-card.js +1 -1
- package/dist/collection/components/mds-card-content/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-content/documentation.json +1 -1
- package/dist/collection/components/mds-card-content/mds-card-content.js +1 -1
- package/dist/collection/components/mds-card-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-footer/documentation.json +1 -1
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +1 -1
- package/dist/collection/components/mds-card-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-header/documentation.json +1 -1
- package/dist/collection/components/mds-card-header/mds-card-header.js +1 -1
- package/dist/collection/components/mds-card-media/AGENTS.md +1 -1
- package/dist/collection/components/mds-card-media/documentation.json +1 -1
- package/dist/collection/components/mds-card-media/mds-card-media.js +1 -1
- package/dist/collection/components/mds-chip/AGENTS.md +1 -1
- package/dist/collection/components/mds-chip/documentation.json +2 -2
- package/dist/collection/components/mds-chip/mds-chip.css +3 -2
- package/dist/collection/components/mds-chip/mds-chip.js +1 -1
- package/dist/collection/components/mds-details/AGENTS.md +1 -1
- package/dist/collection/components/mds-details/documentation.json +1 -1
- package/dist/collection/components/mds-details/mds-details.js +1 -1
- package/dist/collection/components/mds-dropdown/AGENTS.md +1 -1
- package/dist/collection/components/mds-dropdown/documentation.json +1 -1
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +12 -14
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +2 -2
- package/dist/collection/components/mds-emoji/AGENTS.md +1 -1
- package/dist/collection/components/mds-emoji/documentation.json +1 -1
- package/dist/collection/components/mds-emoji/mds-emoji.js +1 -1
- package/dist/collection/components/mds-entity/AGENTS.md +1 -1
- package/dist/collection/components/mds-entity/documentation.json +2 -2
- package/dist/collection/components/mds-entity/mds-entity.js +1 -1
- package/dist/collection/components/mds-file/AGENTS.md +1 -1
- package/dist/collection/components/mds-file/documentation.json +1 -1
- package/dist/collection/components/mds-file/mds-file.css +3 -2
- package/dist/collection/components/mds-file/mds-file.js +1 -1
- package/dist/collection/components/mds-file-preview/AGENTS.md +1 -1
- package/dist/collection/components/mds-file-preview/documentation.json +2 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +3 -2
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +2 -2
- package/dist/collection/components/mds-filter/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter/documentation.json +1 -1
- package/dist/collection/components/mds-filter/mds-filter.css +3 -2
- package/dist/collection/components/mds-filter/mds-filter.js +1 -1
- package/dist/collection/components/mds-filter-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-filter-item/documentation.json +1 -1
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +3 -2
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +1 -1
- package/dist/collection/components/mds-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-header/documentation.json +2 -2
- package/dist/collection/components/mds-header/mds-header.css +3 -2
- package/dist/collection/components/mds-header/mds-header.js +1 -1
- package/dist/collection/components/mds-header-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-header-bar/documentation.json +2 -2
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +1 -1
- package/dist/collection/components/mds-help/AGENTS.md +1 -1
- package/dist/collection/components/mds-help/documentation.json +1 -1
- package/dist/collection/components/mds-help/mds-help.js +1 -1
- package/dist/collection/components/mds-horizontal-scroll/AGENTS.md +1 -1
- package/dist/collection/components/mds-horizontal-scroll/documentation.json +2 -2
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +1 -1
- package/dist/collection/components/mds-hr/AGENTS.md +1 -1
- package/dist/collection/components/mds-hr/documentation.json +1 -1
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/AGENTS.md +1 -1
- package/dist/collection/components/mds-icon/documentation.json +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +1 -1
- package/dist/collection/components/mds-img/AGENTS.md +1 -1
- package/dist/collection/components/mds-img/documentation.json +2 -2
- package/dist/collection/components/mds-input/AGENTS.md +1 -1
- package/dist/collection/components/mds-input/documentation.json +2 -2
- package/dist/collection/components/mds-input/mds-input.css +16 -8
- package/dist/collection/components/mds-input/mds-input.js +3 -3
- package/dist/collection/components/mds-input-date/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date/documentation.json +2 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +3 -2
- package/dist/collection/components/mds-input-date/mds-input-date.js +2 -2
- package/dist/collection/components/mds-input-date-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range/documentation.json +2 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +3 -2
- package/dist/collection/components/mds-input-date-range-preselection/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-date-range-preselection/documentation.json +2 -2
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +1 -1
- package/dist/collection/components/mds-input-field/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-field/documentation.json +1 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +1 -1
- package/dist/collection/components/mds-input-otp/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-otp/documentation.json +2 -2
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +1 -1
- package/dist/collection/components/mds-input-range/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-range/documentation.json +1 -1
- package/dist/collection/components/mds-input-range/mds-input-range.css +3 -2
- package/dist/collection/components/mds-input-range/mds-input-range.js +1 -1
- package/dist/collection/components/mds-input-select/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-select/documentation.json +1 -1
- package/dist/collection/components/mds-input-select/mds-input-select.css +15 -11
- package/dist/collection/components/mds-input-select/mds-input-select.js +2 -2
- package/dist/collection/components/mds-input-switch/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-switch/documentation.json +1 -1
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +3 -2
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +1 -1
- package/dist/collection/components/mds-input-tip/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +1 -1
- package/dist/collection/components/mds-input-tip-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-tip-item/documentation.json +1 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +2 -2
- package/dist/collection/components/mds-input-upload/AGENTS.md +1 -1
- package/dist/collection/components/mds-input-upload/documentation.json +2 -2
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +5 -5
- package/dist/collection/components/mds-keyboard/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard/documentation.json +2 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +3 -2
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +1 -1
- package/dist/collection/components/mds-keyboard-key/AGENTS.md +1 -1
- package/dist/collection/components/mds-keyboard-key/documentation.json +1 -1
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -1
- package/dist/collection/components/mds-kpi/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi/documentation.json +1 -1
- package/dist/collection/components/mds-kpi/mds-kpi.js +1 -1
- package/dist/collection/components/mds-kpi-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-kpi-item/documentation.json +1 -1
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +9 -6
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +1 -1
- package/dist/collection/components/mds-label/AGENTS.md +1 -1
- package/dist/collection/components/mds-label/documentation.json +2 -2
- package/dist/collection/components/mds-label/mds-label.css +3 -2
- package/dist/collection/components/mds-link/AGENTS.md +1 -1
- package/dist/collection/components/mds-link/documentation.json +1 -1
- package/dist/collection/components/mds-link/mds-link.js +3 -3
- package/dist/collection/components/mds-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-list/documentation.json +1 -1
- package/dist/collection/components/mds-list/mds-list.js +1 -1
- package/dist/collection/components/mds-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-list-item/mds-list-item.js +1 -1
- package/dist/collection/components/mds-mention/AGENTS.md +1 -1
- package/dist/collection/components/mds-mention/documentation.json +2 -2
- package/dist/collection/components/mds-mention/mds-mention.js +1 -1
- package/dist/collection/components/mds-modal/AGENTS.md +3 -3
- package/dist/collection/components/mds-modal/documentation.json +4 -4
- package/dist/collection/components/mds-modal/mds-modal.css +3 -2
- package/dist/collection/components/mds-modal/mds-modal.js +32 -13
- package/dist/collection/components/mds-note/AGENTS.md +1 -1
- package/dist/collection/components/mds-note/documentation.json +2 -2
- package/dist/collection/components/mds-note/mds-note.css +3 -2
- package/dist/collection/components/mds-note/mds-note.js +1 -1
- package/dist/collection/components/mds-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-notification/documentation.json +1 -1
- package/dist/collection/components/mds-notification/mds-notification.js +1 -1
- package/dist/collection/components/mds-paginator/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator/documentation.json +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.css +3 -2
- package/dist/collection/components/mds-paginator/mds-paginator.js +1 -1
- package/dist/collection/components/mds-paginator-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-paginator-item/documentation.json +1 -1
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +1 -1
- package/dist/collection/components/mds-policy-ai/AGENTS.md +1 -1
- package/dist/collection/components/mds-policy-ai/documentation.json +2 -2
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -1
- package/dist/collection/components/mds-pref/AGENTS.md +3 -3
- package/dist/collection/components/mds-pref/documentation.json +4 -9
- package/dist/collection/components/mds-pref/examples.md +1 -1
- package/dist/collection/components/mds-pref/mds-pref.js +1 -29
- package/dist/collection/components/mds-pref/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-animation/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-animation/documentation.json +2 -2
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +1 -1
- package/dist/collection/components/mds-pref-consumption/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-consumption/documentation.json +2 -2
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +1 -1
- package/dist/collection/components/mds-pref-contrast/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-contrast/documentation.json +2 -2
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +1 -1
- package/dist/collection/components/mds-pref-language/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +1 -1
- package/dist/collection/components/mds-pref-language-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-pref-language-item/documentation.json +2 -2
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +1 -1
- package/dist/collection/components/mds-pref-mode/AGENTS.md +3 -2
- package/dist/collection/components/mds-pref-mode/documentation.json +5 -5
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +2 -1
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +20 -11
- package/dist/collection/components/mds-pref-mode/mistakes.md +1 -1
- package/dist/collection/components/mds-pref-theme/AGENTS.md +7 -6
- package/dist/collection/components/mds-pref-theme/documentation.json +7 -7
- package/dist/collection/components/mds-pref-theme/examples.md +18 -21
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +43 -11
- package/dist/collection/components/mds-pref-theme/mistakes.md +15 -15
- package/dist/collection/components/mds-pref-theme-item/AGENTS.md +6 -6
- package/dist/collection/components/mds-pref-theme-item/documentation.json +9 -9
- package/dist/collection/components/mds-pref-theme-item/examples.md +18 -24
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +13 -7
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +19 -5
- package/dist/collection/components/mds-pref-theme-item/mistakes.md +14 -16
- package/dist/collection/components/mds-price-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table/documentation.json +1 -1
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +1 -1
- package/dist/collection/components/mds-price-table-features-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-cell/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +3 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +1 -1
- package/dist/collection/components/mds-price-table-features-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-features-row/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +3 -2
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +1 -1
- package/dist/collection/components/mds-price-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-header/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +3 -2
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +1 -1
- package/dist/collection/components/mds-price-table-list-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-price-table-list-item/documentation.json +1 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-progress/documentation.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +3 -2
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/components/mds-push-notification/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification/documentation.json +2 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +3 -2
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +1 -1
- package/dist/collection/components/mds-push-notification-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-push-notification-item/documentation.json +2 -2
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +2 -2
- package/dist/collection/components/mds-quote/AGENTS.md +1 -1
- package/dist/collection/components/mds-quote/documentation.json +1 -1
- package/dist/collection/components/mds-quote/mds-quote.js +1 -1
- package/dist/collection/components/mds-radial-menu/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +1 -1
- package/dist/collection/components/mds-radial-menu-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-menu-item/documentation.json +2 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/AGENTS.md +1 -1
- package/dist/collection/components/mds-radial-progress/documentation.json +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +1 -1
- package/dist/collection/components/mds-separator/AGENTS.md +1 -1
- package/dist/collection/components/mds-separator/documentation.json +1 -1
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/AGENTS.md +1 -1
- package/dist/collection/components/mds-spinner/documentation.json +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-status-bar/documentation.json +2 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +3 -2
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +1 -1
- package/dist/collection/components/mds-stepper-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-stepper-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +1 -1
- package/dist/collection/components/mds-tab/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab/documentation.json +1 -1
- package/dist/collection/components/mds-tab/mds-tab.css +3 -2
- package/dist/collection/components/mds-tab/mds-tab.js +2 -2
- package/dist/collection/components/mds-tab-bar/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +3 -2
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +1 -1
- package/dist/collection/components/mds-tab-bar-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-bar-item/documentation.json +1 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +3 -2
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +1 -1
- package/dist/collection/components/mds-tab-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tab-item/documentation.json +2 -2
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +1 -1
- package/dist/collection/components/mds-table/AGENTS.md +1 -1
- package/dist/collection/components/mds-table/documentation.json +1 -1
- package/dist/collection/components/mds-table/mds-table.css +6 -4
- package/dist/collection/components/mds-table/mds-table.js +1 -1
- package/dist/collection/components/mds-table-body/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-body/documentation.json +1 -1
- package/dist/collection/components/mds-table-body/mds-table-body.js +1 -1
- package/dist/collection/components/mds-table-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-cell/documentation.json +1 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +1 -1
- package/dist/collection/components/mds-table-footer/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-footer/documentation.json +1 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +1 -1
- package/dist/collection/components/mds-table-header/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header/documentation.json +2 -2
- package/dist/collection/components/mds-table-header/mds-table-header.js +1 -1
- package/dist/collection/components/mds-table-header-cell/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-header-cell/documentation.json +2 -2
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +1 -1
- package/dist/collection/components/mds-table-row/AGENTS.md +1 -1
- package/dist/collection/components/mds-table-row/documentation.json +1 -1
- package/dist/collection/components/mds-table-row/mds-table-row.js +2 -2
- package/dist/collection/components/mds-text/AGENTS.md +1 -1
- package/dist/collection/components/mds-text/documentation.json +1 -1
- package/dist/collection/components/mds-text/mds-text.js +1 -1
- package/dist/collection/components/mds-toast/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast/documentation.json +2 -2
- package/dist/collection/components/mds-toast/mds-toast.js +1 -1
- package/dist/collection/components/mds-toast-region/AGENTS.md +1 -1
- package/dist/collection/components/mds-toast-region/documentation.json +1 -1
- package/dist/collection/components/mds-toast-region/mds-toast-region.js +1 -1
- package/dist/collection/components/mds-tooltip/AGENTS.md +1 -1
- package/dist/collection/components/mds-tooltip/documentation.json +1 -1
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +4 -2
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +1 -1
- package/dist/collection/components/mds-tree/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree/documentation.json +1 -1
- package/dist/collection/components/mds-tree/mds-tree.js +1 -1
- package/dist/collection/components/mds-tree-item/AGENTS.md +1 -1
- package/dist/collection/components/mds-tree-item/documentation.json +2 -2
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +1 -1
- package/dist/collection/components/mds-url-view/AGENTS.md +1 -1
- package/dist/collection/components/mds-url-view/documentation.json +2 -2
- package/dist/collection/components/mds-url-view/mds-url-view.css +3 -2
- package/dist/collection/components/mds-url-view/mds-url-view.js +1 -1
- package/dist/collection/components/mds-usage/AGENTS.md +1 -1
- package/dist/collection/components/mds-usage/documentation.json +1 -1
- package/dist/collection/components/mds-usage/mds-usage.css +3 -2
- package/dist/collection/components/mds-usage/mds-usage.js +1 -1
- package/dist/collection/components/mds-video-wall/AGENTS.md +1 -1
- package/dist/collection/components/mds-video-wall/documentation.json +1 -1
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +1 -1
- package/dist/collection/components/mds-zero/AGENTS.md +1 -1
- package/dist/collection/components/mds-zero/documentation.json +1 -1
- package/dist/collection/components/mds-zero/mds-zero.css +3 -2
- package/dist/collection/components/mds-zero/mds-zero.js +1 -1
- package/dist/collection/type/button.js +3 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-book.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +5 -5
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +1 -1
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.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-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-link.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.js +1 -1
- package/dist/components/mds-pref-theme-item.js +1 -1
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast-region.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p-3rr6yzu-.js +1 -0
- package/dist/components/{p-DvDB_L_5.js → p-BBZyH3mn.js} +1 -1
- package/dist/components/{p-C7rDjrH4.js → p-BBrPpCNK.js} +1 -1
- package/dist/components/p-BE05D6Pe.js +1 -0
- package/dist/components/{p-ikNX7XDH.js → p-BI1ShBQG.js} +1 -1
- package/dist/components/p-BQSO-HFx.js +1 -0
- package/dist/components/{p-CVRN4LDc.js → p-Bbrei_yQ.js} +1 -1
- package/dist/components/{p-DhpcFZrc.js → p-BpND63Kl.js} +1 -1
- package/dist/components/{p-DqdlT4UG.js → p-BuhoBOYR.js} +1 -1
- package/dist/components/p-Bw-eI2ca.js +1 -0
- package/dist/components/{p-DTtmr_Y9.js → p-BwwiliWt.js} +1 -1
- package/dist/components/{p-COkn4Vtq.js → p-C6LU1s8K.js} +1 -1
- package/dist/components/{p-Br6-kva-.js → p-CWOW2Vna.js} +1 -1
- package/dist/components/{p-B6AFku7a.js → p-CZX6N7ce.js} +1 -1
- package/dist/components/{p-BFDRt7-n.js → p-CZwKeFQT.js} +1 -1
- package/dist/components/{p-CKnbQQUb.js → p-ClvoVgmw.js} +1 -1
- package/dist/{magma-components/p-CLhuNxYQ.js → components/p-CpuUmvdl.js} +1 -1
- package/dist/components/{p-C_Pc94vn.js → p-CrOv4KdL.js} +1 -1
- package/dist/components/{p-CZjwSwe5.js → p-CvbuCEYD.js} +2 -2
- package/dist/components/{p-D8CloC8I.js → p-DN1yF-xO.js} +1 -1
- package/dist/components/{p-4LbHmDXv.js → p-DUgCzZw9.js} +1 -1
- package/dist/components/{p-DJd8f8dz.js → p-DWOg4-dH.js} +1 -1
- package/dist/components/{p-FsctOap9.js → p-DZ4_zLTp.js} +1 -1
- package/dist/components/{p-gLo3t_qO.js → p-Do7IoDLD.js} +2 -2
- package/dist/components/{p-BiW6luA5.js → p-DrtIqOQn.js} +1 -1
- package/dist/components/p-DwKxtKwS.js +1 -0
- package/dist/components/{p-DOdUioZq.js → p-F0qhFsF0.js} +1 -1
- package/dist/components/p-J48g0t65.js +1 -0
- package/dist/components/{p-BaynxVRZ.js → p-NNPsVjnj.js} +1 -1
- package/dist/components/{p-CP5Qw9_T.js → p-UfaGafRS.js} +1 -1
- package/dist/components/{p-DdzJfsw7.js → p-Vgo7t88R.js} +1 -1
- package/dist/components/{p-D_RIY063.js → p-j5Hnbfv9.js} +1 -1
- package/dist/components/{p-DW6ie49j.js → p-k_Ly95Tj.js} +1 -1
- package/dist/components/{p-DlglisEn.js → p-lXKBo6V3.js} +1 -1
- package/dist/components/{p-DGhzWuCS.js → p-oFHbHRLX.js} +1 -1
- package/dist/documentation.json +269 -83
- package/dist/esm/{aria-Cvhn9asj.js → aria-DwKxtKwS.js} +12 -1
- package/dist/esm/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +1 -1
- package/dist/esm/magma-components.js +1 -1
- package/dist/esm/mds-accordion-item.entry.js +1 -1
- package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm/mds-accordion.entry.js +1 -1
- package/dist/esm/mds-avatar.entry.js +1 -1
- package/dist/esm/mds-badge.entry.js +2 -2
- package/dist/esm/mds-banner_3.entry.js +5 -5
- package/dist/esm/mds-book.entry.js +2 -2
- package/dist/esm/mds-breadcrumb.entry.js +2 -2
- package/dist/esm/mds-button-dropdown.entry.js +6 -4
- package/dist/esm/mds-button-group.entry.js +1 -1
- package/dist/esm/mds-button_3.entry.js +78 -16
- package/dist/esm/mds-calendar_2.entry.js +8 -8
- package/dist/esm/mds-card-content.entry.js +1 -1
- package/dist/esm/mds-card-footer.entry.js +1 -1
- package/dist/esm/mds-card-header.entry.js +1 -1
- package/dist/esm/mds-card-media.entry.js +1 -1
- package/dist/esm/mds-card.entry.js +2 -2
- package/dist/esm/mds-details.entry.js +2 -2
- package/dist/esm/mds-dropdown.entry.js +6 -6
- package/dist/esm/mds-emoji.entry.js +41 -12
- package/dist/esm/mds-entity.entry.js +2 -2
- package/dist/esm/mds-file-preview.entry.js +5 -5
- package/dist/esm/mds-file.entry.js +5 -5
- package/dist/esm/mds-filter-item.entry.js +5 -5
- package/dist/esm/mds-filter.entry.js +4 -4
- package/dist/esm/mds-header-bar.entry.js +3 -3
- package/dist/esm/mds-header.entry.js +3 -3
- package/dist/esm/mds-horizontal-scroll.entry.js +3 -3
- package/dist/esm/mds-hr.entry.js +2 -2
- package/dist/esm/mds-img.entry.js +2 -2
- package/dist/esm/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm/mds-input-date-range.entry.js +4 -4
- package/dist/esm/mds-input-date.entry.js +6 -6
- package/dist/esm/mds-input-field.entry.js +1 -1
- package/dist/esm/mds-input-otp.entry.js +3 -3
- package/dist/esm/mds-input-range.entry.js +3 -3
- package/dist/esm/mds-input-select.entry.js +6 -6
- package/dist/esm/mds-input-switch_2.entry.js +6 -6
- package/dist/esm/mds-input-tip_2.entry.js +5 -5
- package/dist/esm/mds-input-upload.entry.js +7 -7
- package/dist/esm/mds-input.entry.js +8 -8
- package/dist/esm/mds-keyboard-key.entry.js +3 -3
- package/dist/esm/mds-keyboard.entry.js +4 -4
- package/dist/esm/mds-kpi-item.entry.js +3 -3
- package/dist/esm/mds-kpi.entry.js +1 -1
- package/dist/esm/mds-label.entry.js +3 -3
- package/dist/esm/mds-link.entry.js +5 -5
- package/dist/esm/mds-list-item.entry.js +1 -1
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +3 -3
- package/dist/esm/mds-modal.entry.js +34 -15
- package/dist/esm/mds-note.entry.js +4 -4
- package/dist/esm/mds-notification.entry.js +3 -3
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator.entry.js +4 -4
- package/dist/esm/mds-policy-ai.entry.js +3 -3
- package/dist/esm/mds-pref-animation.entry.js +3 -3
- package/dist/esm/mds-pref-consumption.entry.js +3 -3
- package/dist/esm/mds-pref-contrast.entry.js +3 -3
- package/dist/esm/mds-pref-language-item.entry.js +3 -3
- package/dist/esm/mds-pref-language.entry.js +3 -3
- package/dist/esm/mds-pref-mode.entry.js +22 -13
- package/dist/esm/mds-pref-theme-item.entry.js +18 -4
- package/dist/esm/mds-pref-theme.entry.js +42 -10
- package/dist/esm/mds-pref.entry.js +3 -25
- package/dist/esm/mds-price-table-features-cell.entry.js +3 -3
- package/dist/esm/mds-price-table-features-row.entry.js +3 -3
- package/dist/esm/mds-price-table-features.entry.js +2 -2
- package/dist/esm/mds-price-table-header.entry.js +1 -1
- package/dist/esm/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm/mds-price-table-list.entry.js +3 -3
- package/dist/esm/mds-price-table.entry.js +1 -1
- package/dist/esm/mds-progress_2.entry.js +4 -4
- package/dist/esm/mds-push-notification-item.entry.js +4 -4
- package/dist/esm/mds-push-notification.entry.js +4 -4
- package/dist/esm/mds-quote.entry.js +2 -2
- package/dist/esm/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm/mds-radial-menu.entry.js +5 -5
- package/dist/esm/mds-separator.entry.js +2 -2
- package/dist/esm/mds-status-bar.entry.js +3 -3
- package/dist/esm/mds-stepper-bar-item.entry.js +3 -3
- package/dist/esm/mds-stepper-bar.entry.js +1 -1
- package/dist/esm/mds-tab-bar-item.entry.js +4 -4
- package/dist/esm/mds-tab-bar.entry.js +3 -3
- package/dist/esm/mds-tab_2.entry.js +6 -6
- package/dist/esm/mds-table-body.entry.js +2 -2
- package/dist/esm/mds-table-footer.entry.js +2 -2
- package/dist/esm/mds-table-header-cell.entry.js +2 -2
- package/dist/esm/mds-table-header.entry.js +3 -3
- package/dist/esm/mds-table-row.entry.js +4 -4
- package/dist/esm/mds-table.entry.js +4 -4
- package/dist/esm/mds-text.entry.js +2 -2
- package/dist/esm/mds-toast-region.entry.js +1 -1
- package/dist/esm/mds-toast.entry.js +3 -3
- package/dist/esm/mds-tooltip.entry.js +5 -5
- package/dist/esm/mds-tree-item.entry.js +3 -3
- package/dist/esm/mds-tree.entry.js +1 -1
- package/dist/esm/mds-url-view.entry.js +4 -4
- package/dist/esm/mds-usage.entry.js +4 -4
- package/dist/esm/mds-video-wall.entry.js +2 -2
- package/dist/esm/mds-zero.entry.js +3 -3
- package/dist/esm/{preference-C5XjgGCb.js → preference-C8foBO86.js} +19 -1
- package/dist/esm-es5/aria-DwKxtKwS.js +12 -0
- package/dist/esm-es5/{floating-controller-BVlbYYkf.js → floating-controller-xixU_s1w.js} +1 -1
- package/dist/esm-es5/{index-BJVvHlvf.js → index-DEL0bLpb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{locale-B6cOkl4I.js → locale-DhP1Ge2o.js} +18 -18
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +2 -2
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +4 -4
- package/dist/esm-es5/mds-book.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +6 -4
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +39 -17
- package/dist/esm-es5/mds-calendar_2.entry.js +4 -4
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +2 -2
- package/dist/esm-es5/mds-details.entry.js +2 -2
- package/dist/esm-es5/mds-dropdown.entry.js +13 -13
- package/dist/esm-es5/mds-emoji.entry.js +111 -109
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +7 -7
- package/dist/esm-es5/mds-file.entry.js +3 -3
- package/dist/esm-es5/mds-filter-item.entry.js +2 -2
- package/dist/esm-es5/mds-filter.entry.js +2 -2
- package/dist/esm-es5/mds-header-bar.entry.js +2 -2
- package/dist/esm-es5/mds-header.entry.js +2 -2
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +3 -3
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +3 -3
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +2 -2
- package/dist/esm-es5/mds-input-range.entry.js +2 -2
- package/dist/esm-es5/mds-input-select.entry.js +10 -10
- package/dist/esm-es5/mds-input-switch_2.entry.js +2 -2
- package/dist/esm-es5/mds-input-tip_2.entry.js +3 -3
- package/dist/esm-es5/mds-input-upload.entry.js +2 -2
- package/dist/esm-es5/mds-input.entry.js +3 -3
- package/dist/esm-es5/mds-keyboard-key.entry.js +2 -2
- package/dist/esm-es5/mds-keyboard.entry.js +2 -2
- package/dist/esm-es5/mds-kpi-item.entry.js +3 -3
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-link.entry.js +2 -2
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +2 -2
- package/dist/esm-es5/mds-modal.entry.js +23 -11
- package/dist/esm-es5/mds-note.entry.js +2 -2
- package/dist/esm-es5/mds-notification.entry.js +2 -2
- package/dist/esm-es5/mds-paginator-item.entry.js +2 -2
- package/dist/esm-es5/mds-paginator.entry.js +3 -3
- package/dist/esm-es5/mds-policy-ai.entry.js +2 -2
- package/dist/esm-es5/mds-pref-animation.entry.js +2 -2
- package/dist/esm-es5/mds-pref-consumption.entry.js +2 -2
- package/dist/esm-es5/mds-pref-contrast.entry.js +3 -3
- package/dist/esm-es5/mds-pref-language-item.entry.js +2 -2
- package/dist/esm-es5/mds-pref-language.entry.js +2 -2
- package/dist/esm-es5/mds-pref-mode.entry.js +13 -3
- package/dist/esm-es5/mds-pref-theme-item.entry.js +12 -5
- package/dist/esm-es5/mds-pref-theme.entry.js +26 -8
- package/dist/esm-es5/mds-pref.entry.js +4 -12
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +2 -2
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +2 -2
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +3 -3
- package/dist/esm-es5/mds-push-notification-item.entry.js +2 -2
- package/dist/esm-es5/mds-push-notification.entry.js +6 -6
- package/dist/esm-es5/mds-quote.entry.js +2 -2
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +4 -4
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +3 -3
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +2 -2
- package/dist/esm-es5/mds-tab-bar.entry.js +2 -2
- package/dist/esm-es5/mds-tab_2.entry.js +3 -3
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +2 -2
- package/dist/esm-es5/mds-table-header-cell.entry.js +2 -2
- package/dist/esm-es5/mds-table-header.entry.js +2 -2
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- package/dist/esm-es5/mds-table.entry.js +2 -2
- package/dist/esm-es5/mds-text.entry.js +2 -2
- package/dist/esm-es5/mds-toast-region.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +2 -2
- package/dist/esm-es5/mds-tooltip.entry.js +2 -2
- package/dist/esm-es5/mds-tree-item.entry.js +2 -2
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +2 -2
- package/dist/esm-es5/mds-usage.entry.js +3 -3
- package/dist/esm-es5/mds-video-wall.entry.js +2 -2
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/{preference-C5XjgGCb.js → preference-C8foBO86.js} +14 -4
- package/dist/hydrate/index.js +410 -231
- package/dist/hydrate/index.mjs +410 -231
- package/dist/lint/core/patterns.d.ts +56 -16
- package/dist/lint/core/patterns.js +145 -38
- package/dist/lint/mcp/tools.json +8 -8
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-0384db44.system.entry.js → p-00d2ef14.system.entry.js} +5 -5
- package/dist/magma-components/{p-ff65fc97.entry.js → p-02aed12a.entry.js} +1 -1
- package/dist/magma-components/{p-7c055074.entry.js → p-08f7a84b.entry.js} +1 -1
- package/dist/magma-components/{p-8239e526.system.entry.js → p-09a7c1de.system.entry.js} +1 -1
- package/dist/magma-components/{p-18244fd7.system.entry.js → p-0da5c696.system.entry.js} +3 -3
- package/dist/magma-components/{p-5575f198.entry.js → p-0df067b4.entry.js} +1 -1
- package/dist/magma-components/{p-b6412ddd.system.entry.js → p-0e1d239b.system.entry.js} +1 -1
- package/dist/magma-components/{p-ac161cb5.entry.js → p-0f4c2de6.entry.js} +1 -1
- package/dist/magma-components/{p-0c8f22dc.system.entry.js → p-11456781.system.entry.js} +2 -2
- package/dist/magma-components/{p-a2e3a545.entry.js → p-14de26d5.entry.js} +1 -1
- package/dist/magma-components/p-163eccbd.entry.js +1 -0
- package/dist/magma-components/{p-844bce77.entry.js → p-167ba07a.entry.js} +1 -1
- package/dist/magma-components/{p-f4fc9f29.system.entry.js → p-16bbff4e.system.entry.js} +1 -1
- package/dist/magma-components/{p-e059aaa9.entry.js → p-17249b74.entry.js} +1 -1
- package/dist/magma-components/{p-95ddc950.system.entry.js → p-188a55ac.system.entry.js} +3 -3
- package/dist/magma-components/{p-c9bd81c5.system.entry.js → p-1a53d9d0.system.entry.js} +7 -7
- package/dist/magma-components/{p-27254fbd.entry.js → p-1cc379d6.entry.js} +1 -1
- package/dist/magma-components/{p-ae9735e4.system.entry.js → p-1dc0d59c.system.entry.js} +2 -2
- package/dist/magma-components/{p-384d93dc.system.entry.js → p-1e24aafa.system.entry.js} +1 -1
- package/dist/magma-components/p-223efc32.entry.js +1 -0
- package/dist/magma-components/{p-1467ded5.system.entry.js → p-2454e4cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-18b27217.entry.js → p-24a69c45.entry.js} +1 -1
- package/dist/magma-components/{p-fae9612b.system.entry.js → p-24fb2c5c.system.entry.js} +2 -2
- package/dist/magma-components/{p-ef1bdd44.entry.js → p-259d9380.entry.js} +1 -1
- package/dist/magma-components/{p-4fc0e294.entry.js → p-26b08e33.entry.js} +1 -1
- package/dist/magma-components/{p-c35ea44d.system.entry.js → p-27a32865.system.entry.js} +2 -2
- package/dist/magma-components/{p-299dab17.entry.js → p-2940499f.entry.js} +1 -1
- package/dist/magma-components/{p-6129954d.system.entry.js → p-2a5167e3.system.entry.js} +1 -1
- package/dist/magma-components/{p-ad13ade5.system.entry.js → p-2e825656.system.entry.js} +3 -3
- package/dist/magma-components/{p-308a4ae5.system.entry.js → p-2f4a7253.system.entry.js} +1 -1
- package/dist/magma-components/{p-29dd6d94.entry.js → p-2ffa4d4a.entry.js} +1 -1
- package/dist/magma-components/{p-d360e4c5.entry.js → p-32b3ad6f.entry.js} +1 -1
- package/dist/magma-components/{p-5686da49.system.entry.js → p-33129e0c.system.entry.js} +3 -3
- package/dist/magma-components/{p-9c2b67fc.system.entry.js → p-372fa5d4.system.entry.js} +3 -3
- package/dist/magma-components/p-380adee8.system.entry.js +5 -0
- package/dist/magma-components/{p-b0749f83.system.entry.js → p-390d0672.system.entry.js} +3 -3
- package/dist/magma-components/p-397c0686.entry.js +1 -0
- package/dist/magma-components/{p-e0049e96.system.entry.js → p-3a836de8.system.entry.js} +1 -1
- package/dist/magma-components/{p-fff26731.system.entry.js → p-3ba14295.system.entry.js} +2 -2
- package/dist/magma-components/{p-741f8f45.system.entry.js → p-3bf4f012.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d56a7cd.system.entry.js → p-3c911608.system.entry.js} +3 -3
- package/dist/magma-components/{p-aac622ef.system.entry.js → p-3cf8ed46.system.entry.js} +1 -1
- package/dist/magma-components/{p-61e11cd0.system.entry.js → p-3ddae677.system.entry.js} +3 -3
- package/dist/magma-components/{p-2d2cdf0d.entry.js → p-3de37b32.entry.js} +1 -1
- package/dist/magma-components/{p-90d50492.system.entry.js → p-3f17a06f.system.entry.js} +2 -2
- package/dist/magma-components/{p-4f0153cd.entry.js → p-40c59c18.entry.js} +1 -1
- package/dist/magma-components/p-411fca2f.system.entry.js +14 -0
- package/dist/magma-components/{p-7f418ae1.entry.js → p-43c307f5.entry.js} +1 -1
- package/dist/magma-components/{p-14122f2d.entry.js → p-440d7942.entry.js} +1 -1
- package/dist/magma-components/{p-6a994dc1.entry.js → p-4541c233.entry.js} +1 -1
- package/dist/magma-components/p-45c26a24.system.entry.js +21 -0
- package/dist/magma-components/{p-948ecde4.entry.js → p-4612bc78.entry.js} +2 -2
- package/dist/magma-components/{p-be2ca282.entry.js → p-4718a71d.entry.js} +1 -1
- package/dist/magma-components/{p-8a8cad6c.system.entry.js → p-48a1871f.system.entry.js} +1 -1
- package/dist/magma-components/{p-7ee31f2e.entry.js → p-4a1f7eb5.entry.js} +1 -1
- package/dist/magma-components/{p-adab176e.system.entry.js → p-4a2ed30e.system.entry.js} +2 -2
- package/dist/magma-components/{p-efe27253.system.entry.js → p-4a9ed4f7.system.entry.js} +1 -1
- package/dist/magma-components/{p-2d199db0.system.entry.js → p-4c3b3913.system.entry.js} +2 -2
- package/dist/magma-components/p-4c955367.entry.js +1 -0
- package/dist/magma-components/p-4ebb0a9e.entry.js +1 -0
- package/dist/magma-components/{p-02b106c2.entry.js → p-4f80bf37.entry.js} +1 -1
- package/dist/magma-components/{p-a65ce11a.system.entry.js → p-527569a3.system.entry.js} +2 -2
- package/dist/magma-components/{p-0d42ac4a.entry.js → p-52cc5a93.entry.js} +1 -1
- package/dist/magma-components/{p-3139988c.system.entry.js → p-54abba52.system.entry.js} +1 -1
- package/dist/magma-components/{p-4fd0fdb8.system.entry.js → p-555ba0e0.system.entry.js} +2 -2
- package/dist/magma-components/{p-5c8f408e.entry.js → p-56cf1cab.entry.js} +1 -1
- package/dist/magma-components/{p-bba4f1f0.system.entry.js → p-5794053b.system.entry.js} +10 -10
- package/dist/magma-components/{p-57ee6e32.entry.js → p-5a754d7b.entry.js} +1 -1
- package/dist/magma-components/{p-f09f3fe1.system.entry.js → p-5c6fdabd.system.entry.js} +3 -3
- package/dist/magma-components/{p-c683cd13.entry.js → p-5ca6063a.entry.js} +1 -1
- package/dist/magma-components/{p-ac099ed6.entry.js → p-5cb581df.entry.js} +1 -1
- package/dist/magma-components/{p-445198a1.entry.js → p-5d825728.entry.js} +1 -1
- package/dist/magma-components/{p-60b21db7.entry.js → p-5dfca9f0.entry.js} +1 -1
- package/dist/magma-components/{p-f181c679.system.entry.js → p-5f20592f.system.entry.js} +1 -1
- package/dist/magma-components/p-5f38e95b.entry.js +1 -0
- package/dist/magma-components/p-5f4bec31.entry.js +1 -0
- package/dist/magma-components/p-627f5956.entry.js +1 -0
- package/dist/magma-components/{p-a9caed77.entry.js → p-6336d979.entry.js} +1 -1
- package/dist/magma-components/{p-7837856f.entry.js → p-6352c2ea.entry.js} +1 -1
- package/dist/magma-components/{p-10d52280.entry.js → p-64884d84.entry.js} +1 -1
- package/dist/magma-components/{p-98e167e8.system.entry.js → p-64f86e46.system.entry.js} +2 -2
- package/dist/magma-components/{p-9a0f8eb1.entry.js → p-65ea6fc9.entry.js} +1 -1
- package/dist/magma-components/{p-cf42d6ea.system.entry.js → p-66f7f9b1.system.entry.js} +3 -3
- package/dist/magma-components/{p-13cfc01a.entry.js → p-68b0d45a.entry.js} +1 -1
- package/dist/magma-components/{p-b61546fd.entry.js → p-6a4d44e2.entry.js} +1 -1
- package/dist/magma-components/p-6a90caf5.system.entry.js +1 -0
- package/dist/magma-components/{p-dfab370b.entry.js → p-6c4f2de0.entry.js} +1 -1
- package/dist/magma-components/{p-12be0f43.system.entry.js → p-6f90c2c9.system.entry.js} +2 -2
- package/dist/magma-components/p-70faf379.entry.js +1 -0
- package/dist/magma-components/{p-e7f717ab.entry.js → p-71d03e56.entry.js} +1 -1
- package/dist/magma-components/{p-b30b487c.system.entry.js → p-720e9291.system.entry.js} +3 -3
- package/dist/magma-components/{p-bc054ffa.system.entry.js → p-724b7fff.system.entry.js} +2 -2
- package/dist/magma-components/{p-6896786e.entry.js → p-73dc7c66.entry.js} +1 -1
- package/dist/magma-components/{p-34421ef2.system.entry.js → p-7476cf76.system.entry.js} +3 -3
- package/dist/magma-components/{p-0fc41e34.system.entry.js → p-7701a318.system.entry.js} +1 -1
- package/dist/magma-components/{p-85bf9c93.entry.js → p-77707706.entry.js} +1 -1
- package/dist/magma-components/{p-c9553777.entry.js → p-78d00f88.entry.js} +1 -1
- package/dist/magma-components/{p-4f48c171.system.entry.js → p-79085c46.system.entry.js} +1 -1
- package/dist/magma-components/{p-ccffdf0b.system.entry.js → p-793072e1.system.entry.js} +23 -11
- package/dist/magma-components/{p-b2763352.entry.js → p-79392a0a.entry.js} +1 -1
- package/dist/magma-components/{p-7ff5552f.entry.js → p-7a33ab3c.entry.js} +1 -1
- package/dist/magma-components/{p-625de2e6.system.entry.js → p-7a4e8bc0.system.entry.js} +4 -4
- package/dist/magma-components/p-7a73fd19.system.entry.js +127 -0
- package/dist/magma-components/p-7b552dbe.entry.js +1 -0
- package/dist/magma-components/{p-84aac233.entry.js → p-7c13ccb0.entry.js} +1 -1
- package/dist/magma-components/{p-d81fcbde.system.entry.js → p-7e0a8194.system.entry.js} +5 -5
- package/dist/magma-components/{p-45b19935.system.entry.js → p-7fbdf896.system.entry.js} +3 -3
- package/dist/magma-components/{p-35c170ba.system.entry.js → p-804f4794.system.entry.js} +2 -2
- package/dist/magma-components/{p-6c73689a.system.entry.js → p-840c19ee.system.entry.js} +4 -4
- package/dist/magma-components/p-848d1b42.system.entry.js +30 -0
- package/dist/magma-components/{p-81212e34.entry.js → p-86494ea9.entry.js} +1 -1
- package/dist/magma-components/p-8915347f.entry.js +1 -0
- package/dist/magma-components/{p-f493fdc3.entry.js → p-8c20ac0c.entry.js} +1 -1
- package/dist/magma-components/{p-f22b8091.entry.js → p-90c60c48.entry.js} +1 -1
- package/dist/magma-components/{p-60d6e60f.entry.js → p-90e20ad3.entry.js} +1 -1
- package/dist/magma-components/{p-797c64f4.system.entry.js → p-9228db0b.system.entry.js} +13 -3
- package/dist/magma-components/p-94548d43.entry.js +1 -0
- package/dist/magma-components/{p-9c784173.entry.js → p-95020326.entry.js} +1 -1
- package/dist/magma-components/{p-8feba226.entry.js → p-970f45df.entry.js} +1 -1
- package/dist/magma-components/{p-9303fb16.system.entry.js → p-97a501cd.system.entry.js} +2 -2
- package/dist/magma-components/{p-4e072e24.system.entry.js → p-98cc6473.system.entry.js} +30 -12
- package/dist/magma-components/p-99d2ace2.system.entry.js +5 -0
- package/dist/magma-components/{p-627c2780.entry.js → p-9aba3769.entry.js} +1 -1
- package/dist/magma-components/{p-6d009b42.system.entry.js → p-9b0b65f0.system.entry.js} +2 -2
- package/dist/magma-components/{p-f40e3918.system.entry.js → p-9b0d7f7d.system.entry.js} +2 -2
- package/dist/magma-components/{p-5d1cba9c.system.entry.js → p-9b8d15a8.system.entry.js} +1 -1
- package/dist/magma-components/{p-5931fdfc.system.entry.js → p-9e94f4a3.system.entry.js} +4 -4
- package/dist/magma-components/{p-3b578659.system.entry.js → p-9f0100f2.system.entry.js} +2 -2
- package/dist/magma-components/p-B8zYiZQY.system.js +1 -1
- package/dist/magma-components/{p-CuHZXISO.system.js → p-BHdlb7Fr.system.js} +19 -19
- package/dist/magma-components/p-BXVzhErg.system.js +12 -0
- package/dist/magma-components/{p-OafT80hV.js → p-CATyfc78.js} +2 -2
- package/dist/magma-components/{p-CZuIEo2v.system.js → p-Cbabyppz.system.js} +1 -1
- package/dist/magma-components/{p-Dx_cCOTw.js → p-CxzVgcYv.js} +1 -1
- package/dist/magma-components/{p-CxTugGM9.system.js → p-D3J9KZKy.system.js} +1 -1
- package/dist/magma-components/{p-mGgjNqBm.system.js → p-DOisMne4.system.js} +17 -7
- package/dist/magma-components/p-DwKxtKwS.js +1 -0
- package/dist/{components/p-jasGzfhE.js → magma-components/p-Dx7iOdVP.js} +1 -1
- package/dist/magma-components/{p-iX3kcwYg.js → p-DxR4rGsw.js} +1 -1
- package/dist/magma-components/{p-ecc2893d.system.entry.js → p-a112a0e2.system.entry.js} +1 -1
- package/dist/magma-components/{p-86f11a5a.entry.js → p-a2767235.entry.js} +1 -1
- package/dist/magma-components/{p-c0286dc3.system.entry.js → p-a2c3b294.system.entry.js} +6 -6
- package/dist/magma-components/{p-4669334a.system.entry.js → p-a2d4d849.system.entry.js} +2 -2
- package/dist/magma-components/{p-cfbf3a76.system.entry.js → p-a48c73b1.system.entry.js} +2 -2
- package/dist/magma-components/{p-4e8c5b68.entry.js → p-a4f53c83.entry.js} +1 -1
- package/dist/magma-components/{p-e92327a2.entry.js → p-a58e8a5c.entry.js} +1 -1
- package/dist/magma-components/{p-1a20f239.system.entry.js → p-a5ca10ae.system.entry.js} +1 -1
- package/dist/magma-components/{p-46a928c3.entry.js → p-a9a872e1.entry.js} +1 -1
- package/dist/magma-components/{p-0a0dfdf4.system.entry.js → p-a9ab9eb0.system.entry.js} +2 -2
- package/dist/magma-components/{p-72971cf7.system.entry.js → p-ab1c3fb0.system.entry.js} +1 -1
- package/dist/magma-components/{p-074d7b75.entry.js → p-ab445c2b.entry.js} +1 -1
- package/dist/magma-components/{p-45a3e7eb.entry.js → p-abe32d5b.entry.js} +1 -1
- package/dist/magma-components/{p-2e68180d.system.entry.js → p-af56e3e4.system.entry.js} +2 -2
- package/dist/magma-components/{p-ed4fd7a4.entry.js → p-b1238d48.entry.js} +1 -1
- package/dist/magma-components/{p-4748378e.system.entry.js → p-b129b127.system.entry.js} +14 -14
- package/dist/magma-components/{p-e79eb427.system.entry.js → p-b1cd3acf.system.entry.js} +2 -2
- package/dist/magma-components/{p-5aa8f150.entry.js → p-b705b805.entry.js} +1 -1
- package/dist/magma-components/{p-2111aa67.system.entry.js → p-b7d18d7a.system.entry.js} +1 -1
- package/dist/magma-components/{p-3be9b384.system.entry.js → p-b871ad36.system.entry.js} +10 -10
- package/dist/magma-components/{p-f7426a75.entry.js → p-ba871d9c.entry.js} +1 -1
- package/dist/magma-components/{p-5a8fa2d0.entry.js → p-ba95bf93.entry.js} +1 -1
- package/dist/magma-components/{p-3af8a86a.system.entry.js → p-bc054fa3.system.entry.js} +3 -3
- package/dist/magma-components/{p-05455645.system.entry.js → p-bcc6c358.system.entry.js} +2 -2
- package/dist/magma-components/{p-7c3a7521.entry.js → p-bd489df9.entry.js} +1 -1
- package/dist/magma-components/{p-60acbc5f.system.entry.js → p-c0295a0e.system.entry.js} +2 -2
- package/dist/magma-components/p-c06d8b5a.entry.js +1 -0
- package/dist/magma-components/p-c131d726.entry.js +1 -0
- package/dist/magma-components/{p-198ea5d8.entry.js → p-c49676e6.entry.js} +1 -1
- package/dist/magma-components/{p-0dcde20a.system.entry.js → p-c4c1ef48.system.entry.js} +91 -89
- package/dist/magma-components/{p-87831da2.system.entry.js → p-c54f2089.system.entry.js} +1 -1
- package/dist/magma-components/{p-8b8cd213.system.entry.js → p-c691f27e.system.entry.js} +3 -3
- package/dist/magma-components/p-c8414ee6.entry.js +1 -0
- package/dist/magma-components/{p-77001a72.entry.js → p-c8c918d2.entry.js} +5 -5
- package/dist/magma-components/{p-85376ff5.entry.js → p-c91cb63a.entry.js} +1 -1
- package/dist/magma-components/{p-9f55fa7a.system.entry.js → p-c94e7973.system.entry.js} +2 -2
- package/dist/magma-components/{p-387fa36d.system.entry.js → p-c9baa3fb.system.entry.js} +1 -1
- package/dist/magma-components/{p-b781c932.system.entry.js → p-ca4e8601.system.entry.js} +1 -1
- package/dist/magma-components/{p-445bc62a.system.entry.js → p-ca5427d4.system.entry.js} +1 -1
- package/dist/magma-components/{p-4646cdc0.system.entry.js → p-caca78ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-d85f3e5e.system.entry.js → p-caf478ff.system.entry.js} +2 -2
- package/dist/magma-components/{p-b8f4938a.entry.js → p-cb06839f.entry.js} +1 -1
- package/dist/magma-components/{p-d29c959d.entry.js → p-ce42734f.entry.js} +1 -1
- package/dist/magma-components/{p-8aa4cd10.entry.js → p-d1e4a032.entry.js} +1 -1
- package/dist/magma-components/p-d25a47fa.entry.js +1 -0
- package/dist/magma-components/{p-0d3da482.system.entry.js → p-d29b32b4.system.entry.js} +1 -1
- package/dist/magma-components/{p-1f746ad1.system.entry.js → p-d2ba5851.system.entry.js} +9 -9
- package/dist/magma-components/{p-d50d4023.entry.js → p-d365c6b6.entry.js} +1 -1
- package/dist/magma-components/{p-7a920b70.entry.js → p-d3b06151.entry.js} +1 -1
- package/dist/magma-components/{p-4cd21f19.entry.js → p-d45f65e0.entry.js} +1 -1
- package/dist/magma-components/{p-fdedc0ba.entry.js → p-d51ec950.entry.js} +1 -1
- package/dist/magma-components/{p-4606d11f.entry.js → p-d760c1fa.entry.js} +1 -1
- package/dist/magma-components/p-d785d7ee.entry.js +1 -0
- package/dist/magma-components/{p-08da465d.entry.js → p-d9092133.entry.js} +1 -1
- package/dist/magma-components/{p-03fb86a6.system.entry.js → p-dd348171.system.entry.js} +2 -2
- package/dist/magma-components/{p-dcb5f965.entry.js → p-de423b11.entry.js} +1 -1
- package/dist/magma-components/{p-97217527.system.entry.js → p-df78b7ac.system.entry.js} +1 -1
- package/dist/magma-components/{p-fba648e0.entry.js → p-e39b5e12.entry.js} +1 -1
- package/dist/magma-components/{p-99bfa07e.system.entry.js → p-eac943e5.system.entry.js} +1 -1
- package/dist/magma-components/{p-9ef0d4e5.system.entry.js → p-eb220deb.system.entry.js} +2 -2
- package/dist/magma-components/{p-fd81c4ef.system.entry.js → p-eca42fe8.system.entry.js} +2 -2
- package/dist/magma-components/{p-56a25ec6.entry.js → p-ecda3e45.entry.js} +1 -1
- package/dist/magma-components/{p-b523fabe.system.entry.js → p-f0909679.system.entry.js} +2 -2
- package/dist/magma-components/{p-8bf8e032.entry.js → p-f2649031.entry.js} +1 -1
- package/dist/magma-components/{p-30f95d10.entry.js → p-f51ed098.entry.js} +1 -1
- package/dist/magma-components/{p-11210b60.system.entry.js → p-f5bd5b64.system.entry.js} +3 -3
- package/dist/magma-components/p-f6358241.system.entry.js +19 -0
- package/dist/magma-components/{p-b0850daa.entry.js → p-f9f3ad86.entry.js} +1 -1
- package/dist/magma-components/{p-a3d09996.entry.js → p-fb4b648a.entry.js} +1 -1
- package/dist/magma-components/{p-81d2582a.entry.js → p-fd4588c5.entry.js} +1 -1
- package/dist/magma-components/{p-3b494de7.entry.js → p-fdd17ee6.entry.js} +1 -1
- package/dist/magma-components/p-fe51c0cb.system.entry.js +10 -0
- package/dist/magma-components/{p-a3156523.system.entry.js → p-ff6cf4f8.system.entry.js} +3 -3
- package/dist/magma-components/{p-4da1c089.entry.js → p-ff76c614.entry.js} +1 -1
- package/dist/{lint/mcp → mcp}/checks.js +4 -4
- package/dist/{lint/mcp → mcp}/components.js +4 -6
- package/dist/{lint/mcp → mcp}/guides.js +11 -9
- package/dist/{lint/mcp → mcp}/icons.js +21 -0
- package/dist/mcp/package.json +3 -0
- package/dist/{lint/mcp → mcp}/patterns.js +27 -18
- package/dist/{lint/mcp → mcp}/protocol.js +1 -1
- package/dist/{lint/mcp → mcp}/render-page.js +17 -0
- package/dist/{lint/mcp → mcp}/render.js +157 -48
- package/dist/{lint/mcp → mcp}/server.js +4 -4
- package/dist/{lint/mcp → mcp}/tokens.js +1 -2
- package/dist/mcp/tools.json +1374 -0
- package/dist/stats.json +2322 -2038
- package/dist/types/common/aria.d.ts +8 -1
- package/dist/types/common/preference.d.ts +13 -1
- package/dist/types/components/mds-button/mds-button.d.ts +50 -4
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +22 -2
- package/dist/types/components/mds-modal/mds-modal.d.ts +8 -1
- package/dist/types/components/mds-pref/mds-pref.d.ts +0 -9
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +16 -5
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +14 -1
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +9 -2
- package/dist/types/components.d.ts +71 -17
- package/dist/types/type/button.d.ts +2 -0
- package/package.json +15 -13
- package/dist/components/p-BwT0RJip.js +0 -1
- package/dist/components/p-COUgBzJ4.js +0 -1
- package/dist/components/p-Cvhn9asj.js +0 -1
- package/dist/components/p-G7Udw5H5.js +0 -1
- package/dist/components/p-Ic8cYsgt.js +0 -1
- package/dist/components/p-l0KS6hTQ.js +0 -1
- package/dist/esm-es5/aria-Cvhn9asj.js +0 -6
- package/dist/lint/mcp/checks.d.ts +0 -29
- package/dist/lint/mcp/cli.d.ts +0 -2
- package/dist/lint/mcp/color.d.ts +0 -12
- package/dist/lint/mcp/components.d.ts +0 -5
- package/dist/lint/mcp/context.d.ts +0 -45
- package/dist/lint/mcp/guides.d.ts +0 -3
- package/dist/lint/mcp/icons.d.ts +0 -9
- package/dist/lint/mcp/patterns.d.ts +0 -75
- package/dist/lint/mcp/protocol.d.ts +0 -77
- package/dist/lint/mcp/render-page.d.ts +0 -36
- package/dist/lint/mcp/render.d.ts +0 -109
- package/dist/lint/mcp/server.d.ts +0 -39
- package/dist/lint/mcp/tokens.d.ts +0 -37
- package/dist/magma-components/p-06691ab3.system.entry.js +0 -27
- package/dist/magma-components/p-1d8485de.system.entry.js +0 -28
- package/dist/magma-components/p-21345ecc.entry.js +0 -1
- package/dist/magma-components/p-25dcbf22.entry.js +0 -1
- package/dist/magma-components/p-34d58345.entry.js +0 -1
- package/dist/magma-components/p-37881115.system.entry.js +0 -14
- package/dist/magma-components/p-4e5b8618.system.entry.js +0 -1
- package/dist/magma-components/p-52e2b0d4.system.entry.js +0 -14
- package/dist/magma-components/p-69319301.system.entry.js +0 -10
- package/dist/magma-components/p-7b06b2f2.entry.js +0 -1
- package/dist/magma-components/p-7d61f442.entry.js +0 -1
- package/dist/magma-components/p-9e2b1a29.entry.js +0 -1
- package/dist/magma-components/p-9ed54db1.entry.js +0 -1
- package/dist/magma-components/p-Cvhn9asj.js +0 -1
- package/dist/magma-components/p-a8206d9c.entry.js +0 -1
- package/dist/magma-components/p-b464668b.system.entry.js +0 -105
- package/dist/magma-components/p-b85f56d7.entry.js +0 -1
- package/dist/magma-components/p-c7dc17f8.entry.js +0 -1
- package/dist/magma-components/p-d43e2a9a.entry.js +0 -1
- package/dist/magma-components/p-ddfb4da3.entry.js +0 -1
- package/dist/magma-components/p-e428490d.system.entry.js +0 -5
- package/dist/magma-components/p-f045b018.entry.js +0 -1
- package/dist/magma-components/p-f3708d1a.entry.js +0 -1
- package/dist/magma-components/p-f5d9f625.entry.js +0 -1
- package/dist/magma-components/p-fa387b74.system.entry.js +0 -5
- package/dist/magma-components/p-fbf563c8.entry.js +0 -1
- package/dist/magma-components/p-ff82edad.entry.js +0 -1
- package/dist/magma-components/p-sm_-_oFY.system.js +0 -6
- /package/dist/{lint/mcp → mcp}/cli.js +0 -0
- /package/dist/{lint/mcp → mcp}/color.js +0 -0
- /package/dist/{lint/mcp → mcp}/context.js +0 -0
- /package/dist/{lint/mcp → mcp}/icon.svg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as e,h as s,e as i,g as a}from"./p-CvLLN-QH.js";import{c as h}from"./p-CWk1SCJg.js";import{m as o}from"./p-XQgkfNpn.js";import{L as d}from"./p-CATyfc78.js";import{p as r}from"./p-DxR4rGsw.js";var l={darkMode:"Σκούρο",label:"Λειτουργία",lightMode:"Ανοιχτό",systemSettings:"Με βάση το λειτουργικό σύστημα"},m={darkMode:"Dark",label:"Mode",lightMode:"Light",systemSettings:"Based on operating system"},c={darkMode:"Oscura",label:"Modo",lightMode:"Clara",systemSettings:"Basado en el sistema operativo"},n={darkMode:"Scura",label:"Modalità",lightMode:"Chiara",systemSettings:"Basato sul sistema operativo"};const f=class{constructor(s){t(this,s),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.defaultMode="system",this.t=new d({el:l,en:m,es:c,it:n}),this.localStorageAlias="mdsPrefMode",this.customPropertyAlias="--magma-pref-mode",this.overlayBackgroundVisible="rgb(var(--magma-surface-default))",this.overlayBackgroundHidden="rgb(var(--magma-surface-default) / 0)",this.cssOverlayShowDuration="300",this.cssOverlayFadeoutDuration="200",this.cssOverlayZIndex="6000",this.overlayId="mds-pref-mode-overlay",this.overlayShow=!1,this.syncingFromStore=!1,this.updateCSSCustomProps=()=>{var t,e,s;if("undefined"==typeof window)return;const i=window.getComputedStyle(this.element);this.cssOverlayShowDuration=null!==(t=i.getPropertyValue("--mds-pref-mode-overlay-show-duration"))&&void 0!==t?t:"300",this.cssOverlayFadeoutDuration=null!==(e=i.getPropertyValue("--mds-pref-mode-overlay-fadeout-duration"))&&void 0!==e?e:"200",this.cssOverlayZIndex=null!==(s=i.getPropertyValue("--mds-pref-mode-overlay-z-index"))&&void 0!==s?s:"6000"},this.transition="smooth",this.modes={dark:{selector:"pref-mode-dark",label:"darkMode"},system:{selector:"pref-mode-system",label:"systemSettings"},light:{selector:"pref-mode-light",label:"lightMode"}},this.syncMode=t=>{void 0!==t&&t!==this.mode&&(this.syncingFromStore=!0,this.mode=t,this.appliedMode=t,this.syncingFromStore=!1)},this.setMode=t=>{if(t===this.appliedMode)return void(this.mode=t);const e=void 0===this.appliedMode;if(this.appliedMode=t,this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const e=document.querySelector("html");for(const t in this.modes)({}).hasOwnProperty.call(this.modes,t)&&(null==e||e.classList.remove(this.modes[t].selector));null==e||e.classList.add(this.modes[t].selector),null==e||e.style.setProperty(this.customPropertyAlias,this.mode)}r.state.mode=t,e||this.prefChangeEvent.emit({preference:"mode"})},this.isDarkMode=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.getColorScheme=t=>void 0!==t?"system"===t?this.isDarkMode()?"dark":"light":t:"system"===this.mode?this.isDarkMode()?"dark":"light":this.mode,this.instanceOverlay=()=>{null==this.overlayEl&&(this.overlayEl=document.createElement("div"),this.overlayEl.className=this.overlayId,this.overlayEl.style.inset="0",this.overlayEl.style.pointerEvents="none",this.overlayEl.style.position="fixed",this.overlayEl.style.transition=`background-color ${this.cssOverlayFadeoutDuration} ease-out`,this.overlayEl.style.zIndex=this.cssOverlayZIndex),this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden},this.attachFlashOverlayTransition=()=>{this.overlayShow=!0,this.instanceOverlay(),this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,document.body.appendChild(this.overlayEl),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),h(this.cssOverlayShowDuration))},this.attachSmoothOverlayTransition=t=>{this.overlayShow=!0,this.instanceOverlay(),document.body.appendChild(this.overlayEl),clearTimeout(this.overlaySmoothTimer),this.overlaySmoothTimer=setTimeout((()=>{this.overlayEl.style.backgroundColor=this.overlayBackgroundVisible,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.setMode(t),clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayShow=!1,this.detachOverlayTransition()}),h(this.cssOverlayFadeoutDuration))}),h(this.cssOverlayShowDuration))}),1)},this.lockedMode=()=>{var t;const e=null!==(t=this.lockedScheme)&&void 0!==t?t:r.state["theme-scheme"];return"light"===e||"dark"===e?e:void 0},this.shownMode=()=>{var t,e;return null!==(e=null!==(t=this.lockedMode())&&void 0!==t?t:this.mode)&&void 0!==e?e:this.defaultMode},this.isModeDisabled=t=>{const e=this.lockedMode();return void 0!==e&&t!==e},this.changeMode=t=>{if(void 0===this.lockedMode())if(this.getColorScheme()!==this.getColorScheme(t))switch(this.transition){case"none":default:this.setMode(t);break;case"flash":this.setMode(t),this.attachFlashOverlayTransition();break;case"smooth":this.attachSmoothOverlayTransition(t)}else this.setMode(t)},this.handleModeClick=t=>()=>{this.overlayShow||this.changeMode(t)}}componentWillLoad(){var t,e;this.setMode(null!==(e=null!==(t=this.mode)&&void 0!==t?t:localStorage.getItem(this.localStorageAlias))&&void 0!==e?e:this.defaultMode)}connectedCallback(){this.unsubscribeStore=r.onChange("mode",this.syncMode)}disconnectedCallback(){var t;null===(t=this.unsubscribeStore)||void 0===t||t.call(this)}componentDidLoad(){this.updateCSSCustomProps()}modeChanged(t,e){t===e||this.syncingFromStore||this.setMode(t)}detachOverlayTransition(){null!=this.overlayEl&&(this.overlayEl.style.backgroundColor=this.overlayBackgroundHidden,clearTimeout(this.overlayTimer),this.overlayTimer=setTimeout((()=>{this.overlayEl.remove()}),h(this.cssOverlayFadeoutDuration)))}render(){return s(i,{key:"6f568873ae9e1f78a6e9264e915f19bb2243358a","pref-contrast":r.state.contrast,"pref-mode":r.state.mode,"pref-theme-scheme":r.state["theme-scheme"]},s("mds-text",{key:"92f30eb4a3091b2ec8e5dcc9c7e218adabcd170d",class:"info",typography:"caption"},s("b",{key:"dd8ebfe50d8804e4e90d0a07732f7eb5e0b1254c"},this.t.get("label"))," ",this.t.get(this.modes[this.shownMode()].label)),s("mds-tab",{key:"585f6c432c5ff01f6d269774abf5c664e734301d",fill:!0,size:this.size},s("mds-tab-item",{key:"4ecccf98daf858f6f335cbb2fd69a92a1c1d682c",disabled:this.isModeDisabled("light"),selected:"light"===this.shownMode(),onClick:this.handleModeClick("light"),class:"item item--light",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37a.996.996 0 0 0-1.41 0a.996.996 0 0 0 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.06-1.06zm1.06-10.96a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36a.996.996 0 0 0 0-1.41a.996.996 0 0 0-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"/></svg>',title:this.t.get(this.modes.light.label)}),s("mds-tab-item",{key:"2a012877ee8651e4a9a7e50edd5d8d329a80cae8",disabled:this.isModeDisabled("system"),selected:"system"===this.shownMode(),onClick:this.handleModeClick("system"),class:"item item--system",icon:o,title:this.t.get(this.modes.system.label)}),s("mds-tab-item",{key:"737d4a800a87a26d6d11a508b44f0eecfd3a2277",disabled:this.isModeDisabled("dark"),selected:"dark"===this.shownMode(),onClick:this.handleModeClick("dark"),class:"item item--dark",icon:"dark"===this.shownMode()?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.37 5.51A7.35 7.35 0 0 0 9.1 7.5c0 4.08 3.32 7.4 7.4 7.4c.68 0 1.35-.09 1.99-.27A7.014 7.014 0 0 1 12 19c-3.86 0-7-3.14-7-7c0-2.93 1.81-5.45 4.37-6.49zM12 3a9 9 0 1 0 9 9c0-.46-.04-.92-.1-1.36a5.389 5.389 0 0 1-4.4 2.26a5.403 5.403 0 0 1-3.14-9.8c-.44-.06-.9-.1-1.36-.1z"/></svg>',title:this.t.get(this.modes.dark.label)})))}get element(){return a(this)}static get watchers(){return{mode:[{modeChanged:0}]}}};f.style="@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,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-pref-mode-overlay-fadeout-duration:var(--duration-200,.2s);--mds-pref-mode-overlay-show-duration:var(--duration-300,.3s);--mds-pref-mode-overlay-z-index:var(--magma-theme-overlay-z-index,7000);display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}.item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-06,214 163 7))}.item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-06,47 182 243))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark])) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}@media (prefers-color-scheme:dark){:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item{--mds-tab-item-default-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--light{--mds-tab-item-selected-color:rgb(var(--label-yellow-03,112 85 4))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-contrast]))) .item--dark{--mds-tab-item-selected-color:rgb(var(--label-sky-03,8 94 133))}}";export{f as mds_pref_mode}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as a,h as o,e as s,g as r}from"./p-CvLLN-QH.js";import{c as i}from"./p-CWk1SCJg.js";import{p as e}from"./p-iX3kcwYg.js";import{L as n}from"./p-OafT80hV.js";import{h as d}from"./p-AEckDMXh.js";import{c as h}from"./p-ChV9xqsO.js";var c={hide:"Απόκρυψη"},m={hide:"Hide"},v={hide:"Ocultar"},l={hide:"Nascondi"};const p=class{constructor(o){t(this,o),this.closedEvent=a(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.countdownStart=0,this.pointerInside=!1,this.focusInside=!1,this.closeReason="hide",this.t=new n({el:c,en:m,es:v,it:l}),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=d(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=i(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=d(this.hostElement,"action"),this.reloadTimeListeners(!!this.visible)}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t,a){this.updateCSSCustomProps();const o=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:o})}),this.cssDismissAnimationDuration))}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){var t;return o(s,{key:"84edbb69be60d938a5616811640351f3ae66ef0b",role:this.stacked?void 0:"status",stacked:this.stacked,"pref-animation":e.state.animation,"pref-contrast":e.state.contrast,"pref-mode":e.state.mode,"pref-theme-scheme":e.state["theme-scheme"]},o("div",{key:"743f1c41b2b5321b92ee956471b6cccdcb2f580f",class:h("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:"f75e3687332e423534b3a692dd08de8e4ca6e1d7",name:"icon"}),this.hasText&&o("mds-text",{key:"d1ab920068689022d68da2372004931381834143",typography:"caption"},o("slot",{key:"b4446668a996df739bc15bcb5bea318b89487b27"})),o("div",{key:"ea5fd8f09cd4851d0f64d319f2bacb95a4169815",class:h("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"b4abed679c52b57108f9ccf13c0f83d54fb276bb",name:"action",onSlotchange:this.onActionSlotChange})),(this.dismissible||this.deletable)&&o("mds-button",{key:"2d887b4d7f58e8b3f6fa203f427734da280c2b01","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 r(this)}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}};p.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) 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}}';export{p as mds_toast}
|
|
1
|
+
import{r as t,d as a,h as o,e as s,g as r}from"./p-CvLLN-QH.js";import{c as i}from"./p-CWk1SCJg.js";import{p as e}from"./p-DxR4rGsw.js";import{L as n}from"./p-CATyfc78.js";import{h as d}from"./p-AEckDMXh.js";import{c as h}from"./p-ChV9xqsO.js";var c={hide:"Απόκρυψη"},m={hide:"Hide"},v={hide:"Ocultar"},l={hide:"Nascondi"};const p=class{constructor(o){t(this,o),this.closedEvent=a(this,"mdsToastClose",7),this.cssDismissAnimationDuration=300,this.countdownStart=0,this.pointerInside=!1,this.focusInside=!1,this.closeReason="hide",this.t=new n({el:c,en:m,es:v,it:l}),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=d(this.hostElement,"action")}}updateCSSCustomProps(){if("undefined"==typeof window)return;const t=window.getComputedStyle(this.hostElement);this.cssDismissAnimationDuration=i(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=d(this.hostElement,"action"),this.reloadTimeListeners(!!this.visible)}componentDidLoad(){this.updateCSSCustomProps()}visibleChanged(t,a){this.updateCSSCustomProps();const o=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:o})}),this.cssDismissAnimationDuration))}durationChanged(){this.reloadTimeListeners(!!this.visible)}render(){var t;return o(s,{key:"50e06576d27e59bf4e763a72512ee051db22ab30",role:this.stacked?void 0:"status",stacked:this.stacked,"pref-animation":e.state.animation,"pref-contrast":e.state.contrast,"pref-mode":e.state.mode,"pref-theme-scheme":e.state["theme-scheme"]},o("div",{key:"f34f95870b48fbce739f49b8d08ef1eee736939a",class:h("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:"18c89ee1c7037b5a569d5e51d05303ae40777430",name:"icon"}),this.hasText&&o("mds-text",{key:"011f163f1cb41cd585168789c48070382d557830",typography:"caption"},o("slot",{key:"46fecd35b96318a456944c4941b45404ed231550"})),o("div",{key:"c738a3a5c554c9e853f2c0be1585c841a9c60696",class:h("actions",!this.hasActions&&"actions--hidden")},o("slot",{key:"ee20470298be818a0eed9a2810e0eb9b1b32be87",name:"action",onSlotchange:this.onActionSlotChange})),(this.dismissible||this.deletable)&&o("mds-button",{key:"ab3c296363c2e233050c44e1ad5504963d7291a0","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 r(this)}static get watchers(){return{visible:[{visibleChanged:0}],duration:[{durationChanged:0}]}}};p.style='@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) 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}}';export{p as mds_toast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,d as t,h as r,e,g as o}from"./p-CvLLN-QH.js";import{K as s}from"./p-CGrPq3C4.js";import{c as i}from"./p-CWk1SCJg.js";import{B as d,F as n}from"./p-CLhuNxYQ.js";import{p as h}from"./p-iX3kcwYg.js";import"./p-BaFfIZGB.js";import"./p-Cvhn9asj.js";const m=class{constructor(r){a(this,r),this.visibleEvent=t(this,"mdsDropdownVisible",7),this.hiddenEvent=t(this,"mdsDropdownHide",7),this.changedEvent=t(this,"mdsDropdownChange",7),this.km=new s,this.backdropController=new d,this.hideArrow=!1,this.arrowPadding=24,this.disableAutoPlacement=!1,this.backdrop=!1,this.flip=!1,this.interaction="click",this.offset=24,this.placement="bottom",this.disableShift=!1,this.shiftPadding=24,this.disableSmooth=!1,this.strategy="absolute",this.visible=!1,this.onClickTarget=a=>{a.stopPropagation();const t=this.visible;document.body.click(),this.visible=!t,this.visible&&this.isMenu&&0===a.detail&&this.focusEntry(0)},this.onMouseOverTarget=()=>{this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!0}),i(this.cssMouseOverDelayDuration))},this.onMouseOutTarget=()=>{clearTimeout(this.mouseoverTimer),this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!1}),i(this.cssMouseOverDelayDuration))},this.markEntries=()=>{this.isMenu&&this.entries().forEach((a=>{const t=a.getAttribute("role");null!==t&&"button"!==t||a.setAttribute("role","menuitem"),a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1")}))},this.entries=()=>{var a,t;const r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot");return this.slottedEntries(null!==(t=null==r?void 0:r.assignedElements())&&void 0!==t?t:[])},this.slottedEntries=a=>a.flatMap((a=>"SLOT"===a.tagName?this.slottedEntries(a.assignedElements()):[a])),this.focusEntry=(a,t=3)=>{const r=this.entries();if(0===r.length||!this.visible)return;const e=r[(a+r.length)%r.length];0===e.offsetWidth&&t>0?requestAnimationFrame((()=>this.focusEntry(a,t-1))):e.focus()},this.onCallerKeydown=a=>{!this.isMenu||"ArrowDown"!==a.key&&"ArrowUp"!==a.key||(a.preventDefault(),this.visible=!0,this.focusEntry("ArrowUp"===a.key?-1:0))},this.onPanelKeydown=a=>{var t;if(!this.isMenu||!this.visible)return;const r=this.entries();if(0===r.length)return;const e=r.findIndex((a=>a.contains(document.activeElement))),o=-1===e?null:e;switch(a.key){case"ArrowDown":a.preventDefault(),this.focusEntry(null===o?0:o+1);break;case"ArrowUp":a.preventDefault(),this.focusEntry(null===o?-1:o-1);break;case"Home":a.preventDefault(),this.focusEntry(0);break;case"End":a.preventDefault(),this.focusEntry(-1);break;case"Tab":this.visible=!1,null===(t=this.caller)||void 0===t||t.focus()}},this.closeFromKeyboard=()=>{var a;if(!this.visible)return;const t=this.host.contains(document.activeElement);this.visible=!1,t&&(null===(a=this.caller)||void 0===a||a.focus())},this.attachBackdrop=()=>{var a,t;const r=window.getComputedStyle(this.host);this.backdropController.attachBackdrop({duration:null===(a=r.getPropertyValue("--private-dropdown-backdrop-duration"))||void 0===a?void 0:a.trim(),zIndex:null===(t=r.getPropertyValue("--mds-dropdown-backdrop-z-index"))||void 0===t?void 0:t.trim()})},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const a=window.getComputedStyle(this.host);this.cssMouseOverDelayDuration=a.getPropertyValue("--mds-dropdown-mouseover-delay")},this.handleCloseDropdown=a=>{if("mouseleave"===a.type)return this.host.removeEventListener("mouseleave",this.handleCloseDropdown),this.caller.removeEventListener("mouseleave",this.handleCloseDropdown),void(this.visible=!1);this.host.contains(a.target)||a.target===this.caller||(this.visible=!1,document.removeEventListener("click",this.handleCloseDropdown))},this.setInteractionBehaviour=()=>{"none"!==this.interaction&&("click"===this.interaction&&(this.caller.addEventListener("click",this.onClickTarget),this.caller.addEventListener("keydown",this.onCallerKeydown)),"mouseover"===this.interaction&&(this.caller.addEventListener("mouseover",this.onMouseOverTarget),this.caller.addEventListener("mouseout",this.onMouseOutTarget),this.host.addEventListener("mouseover",this.handleCloseDropdownMouseLeave)))},this.unsetInteractionBehaviour=a=>{a.removeEventListener("click",this.onClickTarget),a.removeEventListener("keydown",this.onCallerKeydown),a.removeEventListener("mouseover",this.onMouseOverTarget),a.removeEventListener("mouseout",this.onMouseOutTarget)},this.handleCloseDropdownMouseLeave=()=>{clearTimeout(this.mouseoverTimer),this.host.removeEventListener("mouseover",this.handleCloseDropdownMouseLeave),this.host.addEventListener("mouseleave",this.handleCloseDropdown)}}hideArrowChanged(){this.floatingController.updatePosition()}arrowPaddingChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}backdropChanged(a){!1===a&&(this.backdrop=void 0),this.visible&&(a?this.attachBackdrop():this.backdropController.detachBackdrop())}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}targetChanged(){var a;if(""===(null!==(a=this.target)&&void 0!==a?a:"")||null==this.floatingController)return;const t=this.floatingController.updateCaller(this.target);t&&(this.caller&&this.caller!==t&&this.unsetInteractionBehaviour(this.caller),this.caller=t,this.markEntries(),this.setInteractionBehaviour(),this.km.addElement(this.host),this.km.attachEscapeBehavior(this.closeFromKeyboard))}visibleChanged(a){if(this.changedEvent.emit({caller:this.caller,visible:a}),this.floatingController.syncExpanded(a),a)return document.addEventListener("click",this.handleCloseDropdown),this.floatingController.updatePosition(),this.backdrop&&this.attachBackdrop(),void this.visibleEvent.emit({caller:this.caller,visible:!0});this.floatingController.dismiss(),this.backdrop&&this.backdropController.detachBackdrop(),this.hiddenEvent.emit({caller:this.caller,visible:!1})}get isMenu(){return"menu"===this.host.getAttribute("role")}componentDidLoad(){var a,t,r;const e=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".arrow");this.floatingController=new n(this.host,e),this.updateCSSCustomProps(),this.targetChanged(),null===(r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.markEntries),this.host.addEventListener("slotchange",this.markEntries),this.host.addEventListener("keydown",this.onPanelKeydown),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss(),this.backdropController.detachBackdrop(),this.km.detachEscapeBehavior()}render(){return r(e,{key:"abbf37e87c51d36e67c71aa8678b1a2fa29e81d6",style:{zIndex:`${this.zIndex}`},"pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},r("div",{key:"509d4f8188d75e390ce9608479975c5a0070ef77",class:"arrow",innerHTML:'<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n'}),r("slot",{key:"b46b9d0bbe7e1c90203b839148cb86f32ae01424"}))}get host(){return o(this)}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}}};m.style="@layer reset,vendor,theme,base,components,utilities;:host(: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-dropdown-arrow-background:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-dropdown-backdrop-duration:var(--magma-backdrop-animation-duration,.3s);--private-dropdown-backdrop-duration:var(--mds-dropdown-backdrop-duration,var(--magma-backdrop-animation-duration,.3s));--mds-dropdown-backdrop-z-index:var(--magma-backdrop-z-index,4000);--mds-dropdown-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--magma-field-fill:var(--magma-surface-default,var(--surface-neutral-default,242 242 242));--mds-dropdown-drop-shadow-color-rgb:var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5));--private-dropdown-shadow-strength:1;--mds-dropdown-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.05))) drop-shadow(0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15))) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15)));--mds-dropdown-duration:var(--duration-500,.5s);--private-dropdown-duration:var(--mds-dropdown-duration,var(--duration-500,.5s));--mds-dropdown-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-dropdown-mouseover-delay:var(--duration-500,.5s);--mds-dropdown-transform-from:scale(.9) translateY(-3%);--mds-dropdown-transform-to:scale(1) translate(0,0);--mds-dropdown-z-index:var(--magma-dropdown-z-index,5000);background-color:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:none;filter:var(--mds-dropdown-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);opacity:0;padding:calc(var(--spacing,.0025rem)*600);pointer-events:none;position:fixed;transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transition-behavior:allow-discrete;transition-duration:var(--private-dropdown-duration);transition-property:opacity,transform,display;transition-timing-function:var(--mds-dropdown-ease);z-index:var(--mds-dropdown-z-index,var(--magma-dropdown-z-index,5000))}:host([visible]:not([visible=false])){display:grid;opacity:1;pointer-events:auto;transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0))}@starting-style{:host([visible]:not([visible=false])){opacity:0;transform:scale(0)}}:host([data-floating-placed]:not([disable-smooth])),:host([data-floating-placed][disable-smooth=false]){transition-property:bottom,left,display,opacity,right,top,transform}.arrow{display:flex;fill:var(--mds-dropdown-arrow-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-400)}::slotted(*){position:relative;z-index:10}: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-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}:host([pref-mode=dark]),:host([pref-theme-scheme=dark]){--private-dropdown-shadow-strength:3}:host([pref-theme-scheme=light]){--private-dropdown-shadow-strength:1}:host([pref-contrast=more]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=more][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}@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-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]){--private-dropdown-shadow-strength:3}:host([pref-contrast=more][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=system][pref-mode=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}";export{m as mds_dropdown}
|
|
1
|
+
import{r as t,d as a,h as r,e,g as o}from"./p-CvLLN-QH.js";import{K as s}from"./p-CGrPq3C4.js";import{c as i}from"./p-CWk1SCJg.js";import{B as d,F as n}from"./p-Dx7iOdVP.js";import{p as h}from"./p-DxR4rGsw.js";import"./p-BaFfIZGB.js";import"./p-DwKxtKwS.js";const m=class{constructor(r){t(this,r),this.visibleEvent=a(this,"mdsDropdownVisible",7),this.hiddenEvent=a(this,"mdsDropdownHide",7),this.changedEvent=a(this,"mdsDropdownChange",7),this.km=new s,this.backdropController=new d,this.hideArrow=!1,this.arrowPadding=24,this.disableAutoPlacement=!1,this.backdrop=!1,this.flip=!1,this.interaction="click",this.offset=24,this.placement="bottom",this.disableShift=!1,this.shiftPadding=24,this.disableSmooth=!1,this.strategy="absolute",this.visible=!1,this.onClickTarget=t=>{t.stopPropagation();const a=this.visible;document.body.click(),this.visible=!a,this.visible&&this.isMenu&&0===t.detail&&this.focusEntry(0)},this.onMouseOverTarget=()=>{this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!0}),i(this.cssMouseOverDelayDuration))},this.onMouseOutTarget=()=>{clearTimeout(this.mouseoverTimer),this.mouseoverTimer=setTimeout((()=>{clearTimeout(this.mouseoverTimer),this.visible=!1}),i(this.cssMouseOverDelayDuration))},this.markEntries=()=>{this.isMenu&&this.entries().forEach((t=>{const a=t.getAttribute("role");null!==a&&"button"!==a||t.setAttribute("role","menuitem"),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}))},this.entries=()=>{var t,a;const r=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("slot");return this.slottedEntries(null!==(a=null==r?void 0:r.assignedElements())&&void 0!==a?a:[])},this.slottedEntries=t=>t.flatMap((t=>"SLOT"===t.tagName?this.slottedEntries(t.assignedElements()):[t])),this.focusEntry=(t,a=3)=>{const r=this.entries();if(0===r.length||!this.visible)return;const e=r[(t+r.length)%r.length];0===e.offsetWidth&&a>0?requestAnimationFrame((()=>this.focusEntry(t,a-1))):e.focus()},this.onCallerKeydown=t=>{!this.isMenu||"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),this.visible=!0,this.focusEntry("ArrowUp"===t.key?-1:0))},this.onPanelKeydown=t=>{var a;if(!this.isMenu||!this.visible)return;const r=this.entries();if(0===r.length)return;const e=r.findIndex((t=>t.contains(document.activeElement))),o=-1===e?null:e;switch(t.key){case"ArrowDown":t.preventDefault(),this.focusEntry(null===o?0:o+1);break;case"ArrowUp":t.preventDefault(),this.focusEntry(null===o?-1:o-1);break;case"Home":t.preventDefault(),this.focusEntry(0);break;case"End":t.preventDefault(),this.focusEntry(-1);break;case"Tab":this.visible=!1,null===(a=this.caller)||void 0===a||a.focus()}},this.closeFromKeyboard=()=>{var t;if(!this.visible)return;const a=this.host.contains(document.activeElement);this.visible=!1,a&&(null===(t=this.caller)||void 0===t||t.focus())},this.attachBackdrop=()=>{var t,a;const r=window.getComputedStyle(this.host);this.backdropController.attachBackdrop({duration:null===(t=r.getPropertyValue("--private-dropdown-backdrop-duration"))||void 0===t?void 0:t.trim(),zIndex:null===(a=r.getPropertyValue("--mds-dropdown-backdrop-z-index"))||void 0===a?void 0:a.trim()})},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.host);this.cssMouseOverDelayDuration=t.getPropertyValue("--mds-dropdown-mouseover-delay")},this.handleCloseDropdown=t=>{if("mouseleave"===t.type)return this.host.removeEventListener("mouseleave",this.handleCloseDropdown),this.caller.removeEventListener("mouseleave",this.handleCloseDropdown),void(this.visible=!1);this.host.contains(t.target)||t.target===this.caller||(this.visible=!1,document.removeEventListener("click",this.handleCloseDropdown))},this.setInteractionBehaviour=()=>{"none"!==this.interaction&&("click"===this.interaction&&(this.caller.addEventListener("click",this.onClickTarget),this.caller.addEventListener("keydown",this.onCallerKeydown)),"mouseover"===this.interaction&&(this.caller.addEventListener("mouseover",this.onMouseOverTarget),this.caller.addEventListener("mouseout",this.onMouseOutTarget),this.host.addEventListener("mouseover",this.handleCloseDropdownMouseLeave)))},this.unsetInteractionBehaviour=t=>{t.removeEventListener("click",this.onClickTarget),t.removeEventListener("keydown",this.onCallerKeydown),t.removeEventListener("mouseover",this.onMouseOverTarget),t.removeEventListener("mouseout",this.onMouseOutTarget)},this.handleCloseDropdownMouseLeave=()=>{clearTimeout(this.mouseoverTimer),this.host.removeEventListener("mouseover",this.handleCloseDropdownMouseLeave),this.host.addEventListener("mouseleave",this.handleCloseDropdown)}}hideArrowChanged(){this.floatingController.updatePosition()}arrowPaddingChanged(){this.floatingController.updatePosition()}disableAutoPlacementChanged(){this.floatingController.updatePosition()}backdropChanged(t){!1===t&&(this.backdrop=void 0),this.visible&&(t?this.attachBackdrop():this.backdropController.detachBackdrop())}flipChanged(){this.floatingController.updatePosition()}offsetChanged(){this.floatingController.updatePosition()}placementChanged(){this.floatingController.updatePosition()}disableShiftChanged(){this.floatingController.updatePosition()}shiftPaddingChanged(){this.floatingController.updatePosition()}strategyChanged(){this.floatingController.updatePosition()}targetChanged(){var t;if(""===(null!==(t=this.target)&&void 0!==t?t:"")||null==this.floatingController)return;const a=this.floatingController.updateCaller(this.target);a&&(this.caller&&this.caller!==a&&this.unsetInteractionBehaviour(this.caller),this.caller=a,this.markEntries(),this.setInteractionBehaviour(),this.km.addElement(this.host),this.km.attachEscapeBehavior(this.closeFromKeyboard))}visibleChanged(t){if(this.changedEvent.emit({caller:this.caller,visible:t}),this.floatingController.syncExpanded(t),t)return document.addEventListener("click",this.handleCloseDropdown),this.floatingController.updatePosition(),this.backdrop&&this.attachBackdrop(),void this.visibleEvent.emit({caller:this.caller,visible:!0});this.floatingController.dismiss(),this.backdrop&&this.backdropController.detachBackdrop(),this.hiddenEvent.emit({caller:this.caller,visible:!1})}get isMenu(){return"menu"===this.host.getAttribute("role")}componentDidLoad(){var t,a,r;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".arrow");this.floatingController=new n(this.host,e),this.updateCSSCustomProps(),this.targetChanged(),null===(r=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector("slot"))||void 0===r||r.addEventListener("slotchange",this.markEntries),this.host.addEventListener("slotchange",this.markEntries),this.host.addEventListener("keydown",this.onPanelKeydown),this.visible&&this.visibleChanged(!0)}disconnectedCallback(){this.floatingController.dismiss(),this.backdropController.detachBackdrop(),this.km.detachEscapeBehavior()}render(){return r(e,{key:"6423e4d6576fcc999717a1d420c7499962e041ad",style:{zIndex:`${this.zIndex}`},"pref-animation":h.state.animation,"pref-contrast":h.state.contrast,"pref-mode":h.state.mode,"pref-theme-scheme":h.state["theme-scheme"]},r("div",{key:"57ef2c6c957a7e82e307351208500957cfb511b5",class:"arrow",innerHTML:'<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n'}),r("slot",{key:"e7f58f7b301836d71efdeae473c42434e94f8bba"}))}get host(){return o(this)}static get watchers(){return{hideArrow:[{hideArrowChanged:0}],arrowPadding:[{arrowPaddingChanged:0}],disableAutoPlacement:[{disableAutoPlacementChanged:0}],backdrop:[{backdropChanged:0}],flip:[{flipChanged:0}],offset:[{offsetChanged:0}],placement:[{placementChanged:0}],disableShift:[{disableShiftChanged:0}],shiftPadding:[{shiftPaddingChanged:0}],strategy:[{strategyChanged:0}],target:[{targetChanged:0}],visible:[{visibleChanged:0}]}}};m.style="@layer reset,vendor,theme,base,components,utilities;:host(: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-dropdown-arrow-background:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));--mds-dropdown-backdrop-duration:var(--magma-backdrop-animation-duration,.3s);--private-dropdown-backdrop-duration:var(--mds-dropdown-backdrop-duration,var(--magma-backdrop-animation-duration,.3s));--mds-dropdown-backdrop-z-index:var(--magma-backdrop-z-index,4000);--mds-dropdown-background:rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255)));--magma-field-fill:var(--magma-surface-default,var(--surface-neutral-default,242 242 242));--mds-dropdown-drop-shadow-color-rgb:var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5));--private-dropdown-shadow-strength:1;--mds-dropdown-drop-shadow:drop-shadow(0 calc(var(--spacing,.0025rem)*250) calc(var(--spacing,.0025rem)*200) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.05))) drop-shadow(0 calc(var(--spacing,.0025rem)*100) calc(var(--spacing,.0025rem)*75) rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15))) drop-shadow(0 0 1px rgb(var(--mds-dropdown-drop-shadow-color-rgb,var(--magma-shadow-ink,var(--tone-neutral-01,5 5 5)))/calc(var(--private-dropdown-shadow-strength)*0.15)));--mds-dropdown-duration:var(--duration-500,.5s);--private-dropdown-duration:var(--mds-dropdown-duration,var(--duration-500,.5s));--mds-dropdown-ease:var(--ease-out-expo,cubic-bezier(.19,1,.22,1));--mds-dropdown-mouseover-delay:var(--duration-500,.5s);--mds-dropdown-transform-from:scale(.9) translateY(-3%);--mds-dropdown-transform-to:scale(1) translate(0,0);--mds-dropdown-z-index:var(--magma-dropdown-z-index,5000);background-color:var(--mds-dropdown-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));border-radius:var(--magma-radius-md,var(--radius-squircle-md,20px));box-sizing:border-box;corner-shape:var(--magma-corner-shape,squircle);display:none;filter:var(--mds-dropdown-drop-shadow);gap:calc(var(--spacing,.0025rem)*400);opacity:0;padding:calc(var(--spacing,.0025rem)*600);pointer-events:none;position:fixed;transform:var(--mds-dropdown-transform-from,scale(.9) translateY(-3%));transition-behavior:allow-discrete;transition-duration:var(--private-dropdown-duration);transition-property:opacity,transform,display;transition-timing-function:var(--mds-dropdown-ease);z-index:var(--mds-dropdown-z-index,var(--magma-dropdown-z-index,5000))}:host([visible]:not([visible=false])){display:grid;opacity:1;pointer-events:auto;transform:var(--mds-dropdown-transform-to,scale(1) translate(0,0))}@starting-style{:host([visible]:not([visible=false])){opacity:0;transform:scale(0)}}:host([data-floating-placed]:not([disable-smooth])),:host([data-floating-placed][disable-smooth=false]){transition-property:bottom,left,display,opacity,right,top,transform}.arrow{display:flex;fill:var(--mds-dropdown-arrow-background,rgb(var(--magma-surface-overlay,var(--surface-neutral-overlay,255 255 255))));pointer-events:none;position:fixed;top:calc(var(--spacing,.0025rem)*-400)}::slotted(*){position:relative;z-index:10}: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-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--private-dropdown-shadow-strength:3}:host([pref-contrast=more]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=more][pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-contrast=more][pref-theme-scheme=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.075)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.45))}@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-dropdown-duration:0s;--private-dropdown-backdrop-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--private-dropdown-shadow-strength:3}:host([pref-contrast=more][pref-mode=system]:not([pref-theme-scheme=light])){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}:host([pref-contrast=system][pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-contrast=system][pref-theme-scheme=dark]){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}@media (prefers-contrast:more) and (prefers-color-scheme:dark){:host([pref-contrast=system][pref-mode=system]:not([pref-theme-scheme=light])){--mds-dropdown-drop-shadow:drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.05)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3)) drop-shadow(0 0 calc(var(--spacing,.0025rem)*100) rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.3))}}";export{m as mds_dropdown}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-D9J8lbUv.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-D9J8lbUv.system.js","./p-BHdlb7Fr.system.js","./p-BoDvZoCN.system.js","./p-DOisMne4.system.js"],(function(n){"use strict";var i,e,t,r,o,a,s,l;return{setters:[function(n){i=n.r;e=n.h;t=n.e;r=n.g},function(n){o=n.K},function(n){a=n.L},function(n){s=n.N},function(n){l=n.p}],execute:function(){var c="(ανοίγει σε νέα καρτέλα)";var d={newTab:c};var u="(opens in a new tab)";var m={newTab:u};var k="(se abre en una pestaña nueva)";var f={newTab:k};var p="(si apre in una nuova scheda)";var h={newTab:p};var v=function(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(: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}.link:is(:hover,:active){--private-link-fill:2cap}:host([underline=solid]) .link{text-decoration-line:underline}:host([underline=dotted]){--mds-link-underline-thickness:calc(var(--spacing,.0025rem)*50)}:host([underline=dotted]) .link{text-decoration-line:underline;text-decoration-style:dotted}:host([tone=weak]) .link{--private-link-ink:35%}:host([tone=weak]) .link:is(:hover,:active){--private-link-ink:100%}:host([underline=marker]){--mds-link-underline-color:currentcolor;--mds-link-underline-thickness:calc(var(--spacing,.0025rem)*100)}@supports (color:color-mix(in lab,red,red)){:host([underline=marker]){--mds-link-underline-color:color-mix(in srgb,currentcolor 30%,#0000)}}:host([underline=marker][tone=weak]){--mds-link-underline-color:currentcolor}@supports (color:color-mix(in lab,red,red)){:host([underline=marker][tone=weak]){--mds-link-underline-color:color-mix(in srgb,currentcolor 20%,#0000)}}:host([underline=marker]) .link{--private-link-band:var(--mds-link-underline-thickness);text-decoration-line:none}:host([underline=marker]) .link:is(:hover,:active){--private-link-band:0px}: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-link-transition-duration:0s}:host([pref-contrast=more][tone=weak]:not([underline=marker])) .link{--private-link-ink:100%}:host([pref-contrast=more][underline=marker]) .link{text-decoration-color:initial;text-decoration-line:underline;text-decoration-thickness:calc(var(--spacing,.0025rem)*25)}:host{--mds-link-background-hover:currentcolor;--mds-link-color:rgb(var(--magma-accent-fg,var(--variant-primary-03,7 76 204)));--mds-link-icon-gap:calc(var(--spacing,.0025rem)*100);--mds-link-icon-size:calc(var(--spacing,.0025rem)*400);--mds-link-transition-duration:var(--duration-500,.5s);--mds-link-underline-color:currentcolor;--mds-link-underline-offset:calc(var(--spacing,.0025rem)*100);--mds-link-underline-thickness:calc(var(--spacing,.0025rem)*25);--private-link-transition-duration:var(--mds-link-transition-duration);display:inline}@supports (color:color-mix(in lab,red,red)){:host{--mds-link-background-hover:color-mix(in srgb,currentcolor 12%,#0000)}}:host([variant=inherit]){--mds-link-color:currentcolor}.link{--private-link-band:0px;--private-link-fill:0px;--private-link-ink:100%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));box-shadow:inset 0 calc(var(--private-link-band,0px)*-1) var(--mds-link-underline-color),inset 0 calc(var(--private-link-fill,0px)*-1) var(--mds-link-background-hover);color:var(--mds-link-color);cursor:pointer;outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));-webkit-text-decoration-color:var(--mds-link-underline-color);text-decoration-color:var(--mds-link-underline-color);transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;-webkit-text-decoration-skip:ink;-webkit-text-decoration-skip-ink:auto;text-decoration-skip-ink:auto;text-decoration-thickness:var(--mds-link-underline-thickness);text-underline-offset:var(--mds-link-underline-offset);transition-duration:var(--private-link-transition-duration);transition-property:--private-link-band,--private-link-fill,--private-link-ink,color,outline,outline-offset;transition-timing-function:var(--ease-out-quint,cubic-bezier(.23,1,.32,1)),var(--ease-out-quint,cubic-bezier(.23,1,.32,1)),var(--ease-out-quint,cubic-bezier(.23,1,.32,1)),var(--ease-out-sine,cubic-bezier(.39,.575,.565,1)),var(--ease-out-sine,cubic-bezier(.39,.575,.565,1)),var(--ease-out-sine,cubic-bezier(.39,.575,.565,1))}@supports (color:color-mix(in lab,red,red)){.link{-webkit-text-decoration-color:color-mix(in srgb,var(--mds-link-underline-color) var(--private-link-ink,100%),#0000);text-decoration-color:color-mix(in srgb,var(--mds-link-underline-color) var(--private-link-ink,100%),#0000)}}.link:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}.glue{position:relative}.glue-right{padding-inline-start:calc(var(--mds-link-icon-size) + var(--mds-link-icon-gap))}.glue-left{padding-inline-end:calc(var(--mds-link-icon-size) + var(--mds-link-icon-gap))}.icon{fill:currentColor;height:var(--mds-link-icon-size);position:absolute;top:50%;translate:0 -50%;width:var(--mds-link-icon-size)}.glue-right .icon{inset-inline-end:0}.glue-left .icon{inset-inline-start:0}.hint{border-width:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@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-link-transition-duration:0s}}@media (prefers-contrast:more){:host(:not([pref-contrast])[tone=weak]:not([underline=marker])) .link,:host([pref-contrast=system][tone=weak]:not([underline=marker])) .link{--private-link-ink:100%}:host(:not([pref-contrast])[underline=marker]) .link,:host([pref-contrast=system][underline=marker]) .link{text-decoration-color:initial;text-decoration-line:underline;text-decoration-thickness:calc(var(--spacing,.0025rem)*25)}}"};var b=n("mds_link",/** @class */function(){function n(n){var e=this;i(this,n);this.km=new o;this.t=new a({el:d,en:m,es:f,it:h});
|
|
2
2
|
/**
|
|
3
3
|
* Specifies the target of the URL, if self or blank: blank opens a new tab, without giving it
|
|
4
4
|
* access to the page (`rel="noopener noreferrer"`), and tells the assistive technology so
|
|
@@ -36,4 +36,4 @@ this.route=function(n,i){if(!s.handle(n,i))window.location.assign(n)}}
|
|
|
36
36
|
n.prototype.componentDidRender=function(){this.km.detachClickBehavior();if(this.isLink()||!this.link)return;this.km.addElement(this.link);this.km.attachClickBehavior("element",{space:true})};n.prototype.render=function(){var n=this;var i=this.isLink()?"a":"span";var r=this.opensInNewTab();var o=this.isLink()?{href:this.href,rel:r?"noopener noreferrer":undefined,target:r?"_blank":undefined}:{role:"button",tabindex:"0"};
|
|
37
37
|
// the word joiner keeps the icon on the line of the word next to it: the icon is drawn in
|
|
38
38
|
// the padding of an inline box, which the line breaks with the text
|
|
39
|
-
var a=this.icon&&e("span",{key:"
|
|
39
|
+
var a=this.icon&&e("span",{key:"c8b0f70a7e9664213fbcbe4d4761799c296ecf29",class:"glue glue-".concat(this.iconPosition==="left"?"left":"right")},"",e("mds-icon",{key:"3d2c83a4b95db00d3c9b4d76ec58fe0bdc7a6641","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}));return e(t,{key:"06f8925167258d31ae54a3b0d37a6b2a12b4d301",onClick:this.handleClick,"pref-animation":l.state.animation,"pref-contrast":l.state.contrast},e(i,Object.assign({key:"91c86cd0a0aa2af8d5077ea777b43172c452424d",class:"link",part:"link",ref:function(i){n.link=i}},o),this.iconPosition==="left"&&a,this.label||e("slot",{key:"0c9a65c01ce56955256fe5c37dc35d776462523a"}),r&&e("span",{key:"a2260dc96b33b328ebb75369fd1bebef42c15039",class:"hint"}," ".concat(this.t.get("newTab"))),this.iconPosition!=="left"&&a))};Object.defineProperty(n,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return n}());b.style=v()}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-BZP13mns.system.js","./p-
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,a;n<r;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-BZP13mns.system.js","./p-BHdlb7Fr.system.js","./p-DOisMne4.system.js","./p-pxyGaQ-P.system.js","./p-C0tqOovl.system.js","./p-BcI1w9tp.system.js"],(function(e){"use strict";var t,i,n,r,a,s,o,l,d,h,u,c,f,m,v;return{setters:[function(e){t=e.r;i=e.d;n=e.f;r=e.h;a=e.e;s=e.g;o=e.B},function(e){l=e.L},function(e){d=e.M;h=e.l;u=e.C;c=e.p},function(e){f=e.l},function(e){m=e.m},function(e){v=e.m}],execute:function(){var p=["bevel","notch","round","scoop","square","squircle"];
|
|
2
2
|
/**
|
|
3
3
|
* What a user can pick for the corner axis: a shape, or `default`.
|
|
4
4
|
*
|
|
@@ -7,7 +7,12 @@ var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.leng
|
|
|
7
7
|
* today's default removes the attribute instead of freezing that default into
|
|
8
8
|
* the consumer's markup, which would keep a later change of default from
|
|
9
9
|
* reaching anybody who never chose.
|
|
10
|
-
*/var
|
|
10
|
+
*/var b=__spreadArray(__spreadArray([],p,true),["default"],false);var g="Θέμα";var y={label:g};var S="Theme";var k={label:S};var x="Tema";var w={label:x};var C="Tema";var j={label:C};var _=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(:not(:is([hydrated],.hydrated))),:is(mds-dropdown,mds-tab,mds-tab-item,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{display:grid;gap:calc(var(--spacing,.0025rem)*400)}.menu{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.mds-pref-theme-dropdown{gap:calc(var(--spacing,.0025rem)*100);padding:calc(var(--spacing,.0025rem)*400)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--theme{cursor:pointer}.item--auto,.item--theme{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}"};
|
|
11
|
+
/**
|
|
12
|
+
* `default` is the old name of `business`, the base theme (the `themes` map of
|
|
13
|
+
* semantic.config.ts, #692): the same theme, so an item of either name stands for it. The
|
|
14
|
+
* component keeps `default` as the default of `name` until the next major makes it `business`.
|
|
15
|
+
*/var P=function(e,t){var i=function(e){return e==="default"?"business":e};return i(e)===i(t)};var A=e("mds_pref_theme",/** @class */function(){function e(e){var n=this;t(this,e);this.themeChangeEvent=i(this,"mdsPrefThemeChange",7);this.prefChangeEvent=i(this,"mdsPrefChange",7);this.showDropdown=false;this.localStorageAliasThemeName="mdsPrefTheme";this.localStorageAliasThemeScheme="mdsPrefThemeScheme";this.localStorageAliasCornerShape="mdsPrefCornerShape";this.t=new l({el:y,en:k,es:w,it:j});this.clasNameThemeNamePrefix="pref-theme-";this.previousName=null;this.customPropertyAliasThemeScheme="--magma-pref-theme-scheme";this.customPropertyAliasThemeName="--magma-pref-theme";this.schemeSet={light:"pref-theme-scheme-light",dark:"pref-theme-scheme-dark",all:"pref-theme-scheme-all"};
|
|
11
16
|
/**
|
|
12
17
|
* Specifies the theme name attribute
|
|
13
18
|
* A string representing the theme name, in lowercase kebab-case.
|
|
@@ -17,6 +22,8 @@ var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.leng
|
|
|
17
22
|
* Specifies the theme scheme which can be 'light', 'dark' or 'all'
|
|
18
23
|
* Default is 'all' which means this theme supporto both light and dark.
|
|
19
24
|
* If you set 'light' means this theme support only light mode and will be forced and shown light colors mode only.
|
|
25
|
+
* A theme whose stylesheet declares one mode (`--magma-color-modes`, from `color.modes` of its
|
|
26
|
+
* file) is applied in that mode whatever this says: the theme's own lock wins.
|
|
20
27
|
*/this.scheme="all";
|
|
21
28
|
/**
|
|
22
29
|
* The stored choice, or null when there is none or it is one the component cannot apply: an
|
|
@@ -24,24 +31,35 @@ var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.leng
|
|
|
24
31
|
*/this.storedChoice=function(e,t){var i=localStorage.getItem(e);if(i===null||t(i))return i;localStorage.removeItem(e);return null};
|
|
25
32
|
// a mode value would be taken for a v1 mode by the storage migration, and a `scheme` name
|
|
26
33
|
// would write a `pref-theme-scheme-*` class of the scheme axis
|
|
27
|
-
this.isThemeName=function(e){return e!=null&&/^[a-z]+(-[a-z]+)*$/.test(e)&&!
|
|
34
|
+
this.isThemeName=function(e){return e!=null&&/^[a-z]+(-[a-z]+)*$/.test(e)&&!d.includes(e)&&e!=="scheme"&&!e.startsWith("scheme-")};this.isScheme=function(e){return e!=null&&{}.hasOwnProperty.call(n.schemeSet,e)};this.isCornerShape=function(e){return b.includes(e)};
|
|
28
35
|
/**
|
|
29
36
|
* The text of the trigger: the label of the item for the active theme, as the open list
|
|
30
37
|
* shows it, or, when no item matches, the label an item derives from the name.
|
|
31
|
-
*/this.triggerLabel=function(){var e=Array.from(n.element.querySelectorAll("mds-pref-theme-item")).find((function(e){var t,i;return((i=(t=e.name)!==null&&t!==void 0?t:e.getAttribute("name"))!==null&&i!==void 0?i:"default"
|
|
38
|
+
*/this.triggerLabel=function(){var e=Array.from(n.element.querySelectorAll("mds-pref-theme-item")).find((function(e){var t,i;return P((i=(t=e.name)!==null&&t!==void 0?t:e.getAttribute("name"))!==null&&i!==void 0?i:"default",n.name)}));return(e===null||e===void 0?void 0:e.label)||(e===null||e===void 0?void 0:e.getAttribute("label"))||f(n.name)};this.toggleDropdown=function(){n.showDropdown=!n.showDropdown};this.hideThemeDropdownSelect=function(){n.showDropdown=false};this.changeThemeItem=function(){n.themeItems.forEach((function(e){e.selected=false}))};
|
|
32
39
|
// the items, read again when they change, mark the theme in place
|
|
33
|
-
this.checkThemeSelect=function(){n.themeItems=n.element.querySelectorAll("mds-pref-theme-item");n.themeItems.forEach((function(e){e.selected=e.name
|
|
40
|
+
this.checkThemeSelect=function(){n.themeItems=n.element.querySelectorAll("mds-pref-theme-item");n.themeItems.forEach((function(e){e.selected=P(e.name,n.name)}))};
|
|
41
|
+
/**
|
|
42
|
+
* The scheme a theme is applied with: the one mode its stylesheet declares on `<html>`
|
|
43
|
+
* (`--magma-color-modes`, printed from `color.modes` of the theme file, #1274), or else the
|
|
44
|
+
* scheme of the item or the prop. The theme's lock wins over the item's: its colours are made
|
|
45
|
+
* for that mode, and a product that keeps the theme in a file does not repeat it on every
|
|
46
|
+
* item. The declaration lives under `:root[data-theme-name]`, so the name is written first;
|
|
47
|
+
* the stylesheet of the theme has to be on the page when the theme is applied.
|
|
48
|
+
*/this.appliedSchemeOf=function(e,t){var i;if(!o.isBrowser||typeof getComputedStyle!=="function")return t;var n=document.documentElement;if(n.getAttribute("data-theme-name")!==e)n.setAttribute("data-theme-name",e);return(i=h(getComputedStyle(n).getPropertyValue(u)))!==null&&i!==void 0?i:t};this.setTheme=function(e,t){
|
|
34
49
|
// a theme the component cannot write is ignored, neither applied nor stored: it used to throw,
|
|
35
50
|
// and an unknown scheme was written as a class named `undefined` and stored (#825)
|
|
36
51
|
if(!n.isThemeName(e)){console.warn('mds-pref-theme: ignoring the invalid theme name "'.concat(e,'", a kebab-case name that is no mode or scheme name'));return}if(!n.isScheme(t)){console.warn('mds-pref-theme: ignoring the invalid scheme "'.concat(t,'", use one of: ').concat(Object.keys(n.schemeSet).join(", ")));return}n.name=e;n.scheme=t;
|
|
52
|
+
// the scheme it is applied with; the storage keeps the pick, so a theme that stops declaring
|
|
53
|
+
// a mode is not held to it by an old visit
|
|
54
|
+
var i=n.appliedSchemeOf(e,t);
|
|
37
55
|
// every render comes here (the storage is read again, so a pick made in another instance is
|
|
38
56
|
// followed): only a change is applied and announced, and the first application, the one of
|
|
39
57
|
// load, is no change. It used to emit mdsPrefChange on every render
|
|
40
|
-
var
|
|
58
|
+
var r="".concat(e,"/").concat(i);if(r===n.appliedTheme)return;var a=n.appliedTheme===undefined;n.appliedTheme=r;localStorage.setItem(n.localStorageAliasThemeName,n.name);localStorage.setItem(n.localStorageAliasThemeScheme,n.scheme);if(typeof document!=="undefined"){var s=document.querySelector("html");
|
|
41
59
|
// cleanup previeous selection
|
|
42
|
-
for(var
|
|
60
|
+
for(var o in n.schemeSet){if({}.hasOwnProperty.call(n.schemeSet,o)){s===null||s===void 0?void 0:s.classList.remove(n.schemeSet[o])}}if(n.previousName!==null&&n.previousName!==""){s===null||s===void 0?void 0:s.classList.remove(n.clasNameThemeNamePrefix+n.previousName)}
|
|
43
61
|
// set new selection
|
|
44
|
-
|
|
62
|
+
s===null||s===void 0?void 0:s.setAttribute("data-theme-name",n.name);s===null||s===void 0?void 0:s.classList.add(n.schemeSet[i]);s===null||s===void 0?void 0:s.classList.add(n.clasNameThemeNamePrefix+n.name);s===null||s===void 0?void 0:s.style.setProperty(n.customPropertyAliasThemeName,n.name);s===null||s===void 0?void 0:s.style.setProperty(n.customPropertyAliasThemeScheme,i);n.previousName=n.name}c.state["theme-scheme"]=i;if(!a){n.prefChangeEvent.emit({preference:"theme"})}};
|
|
45
63
|
/**
|
|
46
64
|
* Apply a corner choice, or do nothing at all when there is none: an unset prop
|
|
47
65
|
* with nothing in storage must leave the page exactly as the stylesheet ships
|
|
@@ -52,9 +70,9 @@ a===null||a===void 0?void 0:a.setAttribute("data-theme-name",n.name);a===null||a
|
|
|
52
70
|
* only because no CSS block defines a theme called `default`. Here the default
|
|
53
71
|
* IS a live block, so writing it would freeze today's default into the
|
|
54
72
|
* consumer's page - `default` removes the attribute instead.
|
|
55
|
-
*/this.setCornerShape=function(e){if(e===undefined||e===null){return}if(!n.isCornerShape(e)){console.warn('mds-pref-theme: ignoring the invalid corner shape "'.concat(e,'", use one of: ').concat(
|
|
73
|
+
*/this.setCornerShape=function(e){if(e===undefined||e===null){return}if(!n.isCornerShape(e)){console.warn('mds-pref-theme: ignoring the invalid corner shape "'.concat(e,'", use one of: ').concat(b.join(", ")));return}n.cornerShape=e;
|
|
56
74
|
// as for the theme: applied and announced on a change only
|
|
57
|
-
if(e===n.appliedCornerShape)return;var t=n.appliedCornerShape===undefined;n.appliedCornerShape=e;localStorage.setItem(n.localStorageAliasCornerShape,e);if(typeof document!=="undefined"){var i=document.querySelector("html");if(e==="default"){i===null||i===void 0?void 0:i.removeAttribute("data-corner-shape")}else{i===null||i===void 0?void 0:i.setAttribute("data-corner-shape",e)}}
|
|
75
|
+
if(e===n.appliedCornerShape)return;var t=n.appliedCornerShape===undefined;n.appliedCornerShape=e;localStorage.setItem(n.localStorageAliasCornerShape,e);if(typeof document!=="undefined"){var i=document.querySelector("html");if(e==="default"){i===null||i===void 0?void 0:i.removeAttribute("data-corner-shape")}else{i===null||i===void 0?void 0:i.setAttribute("data-corner-shape",e)}}c.state["corner-shape"]=e==="default"?undefined:e;if(!t){n.prefChangeEvent.emit({preference:"corner-shape"})}}}
|
|
58
76
|
/*
|
|
59
77
|
* A `name`, `scheme` or `cornerShape` set from a script is stored, as a pick is. Every render
|
|
60
78
|
* reads the storage back before the props, so that an instance follows a pick made in another
|
|
@@ -63,11 +81,11 @@ if(e===n.appliedCornerShape)return;var t=n.appliedCornerShape===undefined;n.appl
|
|
|
63
81
|
* refuse to apply is not stored.
|
|
64
82
|
*/e.prototype.handleNameChange=function(e){if(e==null||!/^[a-z]+(-[a-z]+)*$/.test(e))return;
|
|
65
83
|
// the names the render refuses too: the mode values and the ones of the scheme classes
|
|
66
|
-
if(
|
|
84
|
+
if(d.includes(e)||e==="scheme"||e.startsWith("scheme-"))return;localStorage.setItem(this.localStorageAliasThemeName,e)};e.prototype.handleSchemeChange=function(e){if(e==null||!{}.hasOwnProperty.call(this.schemeSet,e))return;localStorage.setItem(this.localStorageAliasThemeScheme,e)};e.prototype.handleCornerShapeChange=function(e){if(e==null||!b.includes(e)){return}localStorage.setItem(this.localStorageAliasCornerShape,e)};e.prototype.connectedCallback=function(){var e=this;if(!o.isBrowser)return;
|
|
67
85
|
// the trigger shows the label of an item: render again when one is renamed, relabelled
|
|
68
86
|
// (a page that switches language) or added, as the items reflect both attributes. Set up
|
|
69
87
|
// on every connection, since a move disconnects the host without loading it again
|
|
70
88
|
this.itemsObserver=new MutationObserver((function(){return n(e.element)}));this.itemsObserver.observe(this.element,{attributeFilter:["label","name"],childList:true,subtree:true})};e.prototype.componentDidLoad=function(){this.checkThemeSelect()};e.prototype.disconnectedCallback=function(){var e;(e=this.itemsObserver)===null||e===void 0?void 0:e.disconnect();this.itemsObserver=undefined};e.prototype.componentWillRender=function(){var e,t,i;this.userThemeName=this.storedChoice(this.localStorageAliasThemeName,this.isThemeName);this.userThemeScheme=this.storedChoice(this.localStorageAliasThemeScheme,this.isScheme);this.setTheme((e=this.userThemeName)!==null&&e!==void 0?e:this.name,(t=this.userThemeScheme)!==null&&t!==void 0?t:this.scheme);this.userCornerShape=this.storedChoice(this.localStorageAliasCornerShape,this.isCornerShape);this.setCornerShape((i=this.userCornerShape)!==null&&i!==void 0?i:this.cornerShape)};
|
|
71
89
|
// A pick reaches the component from any item, one added after load too: the listener sits on
|
|
72
90
|
// the host, where the event of the item bubbles, instead of on each item found on load (#826)
|
|
73
|
-
e.prototype.handleItemSelect=function(e){this.changeThemeItem();this.currentSelectedItem=e.target;this.currentSelectedItem.selected=true;var t=e.detail.name.toLowerCase();var i=e.detail.scheme.toLowerCase();this.themeChangeEvent.emit({name:t,scheme:
|
|
91
|
+
e.prototype.handleItemSelect=function(e){this.changeThemeItem();this.currentSelectedItem=e.target;this.currentSelectedItem.selected=true;var t=e.detail.name.toLowerCase();var i=e.detail.scheme.toLowerCase();var n=this.isThemeName(t)&&this.isScheme(i)?this.appliedSchemeOf(t,i):i;this.themeChangeEvent.emit({name:t,scheme:n});this.showDropdown=false;this.setTheme(t,i)};e.prototype.render=function(){return r(a,{key:"26ee0d61dcf219a09423183d07744e8c55c5cb05"},r("div",{key:"5b55c53ff22aba209b439c2d7d51c3af82895152",class:"menu"},r("mds-text",{key:"e5d36eda50c4b888377462f06f2ae8f827ce660d",class:"info",typography:"caption"},r("b",{key:"345ae8662fef033984b75c60e5d486dfab191698"},this.t.get("label"))),r("mds-tab",{key:"b9d3bdcbe035074713a0c4b3cd228b3af795001f",fill:true,size:this.size},r("mds-tab-item",{key:"808108b0564d2a9226f1d3c5d9a449c955b3ebc1",selected:true,onClick:this.toggleDropdown,expanded:this.showDropdown,id:"mds-pref-theme-nav",class:"item item--theme","icon-position":"right",icon:this.showDropdown?v:m,label:this.triggerLabel()}))),r("mds-dropdown",{key:"56773841f7f3392b5328e1df9cc42121c802654f",class:"mds-pref-theme-dropdown",target:"#mds-pref-theme-nav",interaction:"none",visible:this.showDropdown,onMdsDropdownHide:this.hideThemeDropdownSelect},r("slot",{key:"828cbb8958e701832f6abbd840b265c086c57cd5",onSlotchange:this.checkThemeSelect})))};Object.defineProperty(e.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:[{handleNameChange:0}],scheme:[{handleSchemeChange:0}],cornerShape:[{handleCornerShapeChange:0}]}},enumerable:false,configurable:true});return e}());A.style=_()}}}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-DOisMne4.system.js","./p-BeNKMPXR.system.js"],(function(e){"use strict";var t,a,r,o,i,n;return{setters:[function(e){t=e.r;a=e.h;r=e.e;o=e.g},function(e){i=e.p},function(e){n=e.o}],execute:function(){var s=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) 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-separator: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-price-table-list-separator-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))/.5);--mds-price-table-list-transition-duration:var(--duration-200,.2s);--private-price-table-list-transition-duration:var(--mds-price-table-list-transition-duration);--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:rgb(var(--label-green-10,206 247 221));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1));corner-shape:var(--magma-corner-shape,squircle);display:grid;gap:calc(var(--spacing,.0025rem)*600);padding:calc(var(--spacing,.0025rem)*600);transition-duration:var(--private-price-table-list-transition-duration);transition-property:background-color,color}.separator{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));background-color:var(--mds-price-table-list-separator-color,rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73))/.5));transition-duration:var(--private-price-table-list-transition-duration);transition-property:background-color;transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.header,.main{display:grid}.main{gap:calc(var(--spacing,.0025rem)*300)}.footer{display:grid;gap:calc(var(--spacing,.0025rem)*400)}: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-price-table-list-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])),:host([pref-theme-scheme=dark]){--mds-price-table-list-separator-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.5);background-color:rgb(var(--label-green-09,165 240 193));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){--mds-price-table-list-separator-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.5);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@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-price-table-list-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode]):not([pref-theme-scheme=light])),:host([pref-mode=system]:not([pref-theme-scheme=light])){--mds-price-table-list-separator-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.5);background-color:rgb(var(--label-green-09,165 240 193));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){--mds-price-table-list-separator-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))/.5);box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3)) inset;color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}'};var c=e("mds_price_table_list",/** @class */function(){function e(e){var a=this;t(this,e);
|
|
2
|
+
// The region of the items is rendered only with items, so no slotchange tells the list of the
|
|
3
|
+
// ones rendered after load, a page that fetches them (#826): it reads them again when its
|
|
4
|
+
// content changes. The observer stays on the host when it moves, and goes with it.
|
|
5
|
+
this.updateItems=function(){a.hasItems=a.hostElement.querySelectorAll('[slot="item"], mds-price-table-list-item').length>0}}e.prototype.componentWillLoad=function(){this.updateItems();n(this.hostElement,this.updateItems)};e.prototype.render=function(){return a(r,{key:"5d2c3cafcc7a0d7648bffcf7dbe2a98ced48e06f","pref-animation":i.state.animation,"pref-contrast":i.state.contrast,"pref-mode":i.state.mode,"pref-theme-scheme":i.state["theme-scheme"]},a("div",{key:"a8ad38ca9f2f5bbda45118fe31acdba94e6d02ba",class:"header",part:"header"},a("slot",{key:"7cd138a07997c7f2cf7d1b6181b093e3ce803617",name:"header"})),this.hasItems&&a("mds-separator",{key:"5f84ba55b90a901eaee5bfbf285e3aedc71a6994",class:"separator"}),this.hasItems&&a("div",{key:"14bdfe796276e7f7c6587e79cfb9bda431837df7",class:"main",part:"content"},a("slot",{key:"4a87204d75ce958574bb541f7aa9d8998d6a82b6",name:"item"})),a("div",{key:"c31a4e915640eb29f625cd0f7e749469bed9caf3",class:"footer",part:"footer"},a("slot",{key:"eae3c709915f990c7930e08997a95b7b2c96b6a0",name:"price"}),a("slot",{key:"d402810cac0f7efeeea5dfa8b4d92834cee5495b",name:"action"})))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());c.style=s()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as e,h as i,e as s}from"./p-CvLLN-QH.js";import{m as a}from"./p-lZldSMeV.js";import{m as n}from"./p-XQgkfNpn.js";import{L as o}from"./p-
|
|
1
|
+
import{r as t,d as e,h as i,e as s}from"./p-CvLLN-QH.js";import{m as a}from"./p-lZldSMeV.js";import{m as n}from"./p-XQgkfNpn.js";import{L as o}from"./p-CATyfc78.js";import{p as r}from"./p-DxR4rGsw.js";var m={animationDisabled:"Απενεργοποιημένο",animationEnabled:"Ενεργοποιημένο",label:"Κινηματογραφήσεις",systemSettings:"Ρυθμίσεις συστήματος"},d={animationDisabled:"Disabled",animationEnabled:"Enabled",label:"Animations",systemSettings:"System settings"},l={animationDisabled:"Deshabilitadas",animationEnabled:"Habilitadas",label:"Animaciones",systemSettings:"Sistema operativo"},h={animationDisabled:"Disabilitate",animationEnabled:"Abilitate",label:"Animazioni",systemSettings:"Sistema operativo"};const c=class{constructor(i){t(this,i),this.prefChangeEvent=e(this,"mdsPrefChange",7),this.localStorageAlias="mdsPrefAnimation",this.customPropertyAlias="--magma-pref-animation",this.defaultMode="system",this.syncingFromStore=!1,this.t=new o({el:m,en:d,es:l,it:h}),this.animation={reduce:{selector:"pref-animation-reduce",label:"animationDisabled"},system:{selector:"pref-animation-system",label:"systemSettings"},"no-preference":{selector:"pref-animation-no-preference",label:"animationEnabled"}},this.isMode=t=>null!=t&&{}.hasOwnProperty.call(this.animation,t),this.warnInvalidMode=t=>{console.warn(`mds-pref-animation: ignoring the invalid mode "${t}", use one of: ${Object.keys(this.animation).join(", ")}`)},this.syncAnimation=t=>{void 0!==t&&t!==this.mode&&(this.syncingFromStore=!0,this.mode=t,this.appliedMode=t,this.syncingFromStore=!1)},this.setAnimation=t=>{if(t===this.appliedMode)return void(this.mode=t);const e=void 0===this.appliedMode;if(this.appliedMode=t,this.mode=t,localStorage.setItem(this.localStorageAlias,this.mode),"undefined"!=typeof document){const t=document.querySelector("html");for(const e in this.animation)({}).hasOwnProperty.call(this.animation,e)&&(null==t||t.classList.remove(this.animation[e].selector));null==t||t.classList.add(this.animation[this.mode].selector),null==t||t.style.setProperty(this.customPropertyAlias,this.mode)}r.state.animation=t,e||this.prefChangeEvent.emit({preference:"animation"})},this.handleModeClick=t=>()=>{this.setAnimation(t)}}componentWillLoad(){var t;null==this.mode||this.isMode(this.mode)||this.warnInvalidMode(this.mode);const e=localStorage.getItem(this.localStorageAlias);null===e||this.isMode(e)||localStorage.removeItem(this.localStorageAlias),this.setAnimation(null!==(t=[this.mode,e].find(this.isMode))&&void 0!==t?t:this.defaultMode)}connectedCallback(){this.unsubscribeStore=r.onChange("animation",this.syncAnimation)}disconnectedCallback(){var t;null===(t=this.unsubscribeStore)||void 0===t||t.call(this)}modeChanged(t){if(!this.syncingFromStore)return this.isMode(t)?void this.setAnimation(t):(null!=t&&this.warnInvalidMode(t),void this.syncAnimation(r.state.animation))}render(){var t;return i(s,{key:"9ef3ffdf90651da1b166dc78cd5d88a7900e4d41","pref-contrast":r.state.contrast},i("mds-text",{key:"234ae36d92fdc10f20218bdc4f6e476111f8ba81",class:"info",typography:"caption"},i("b",{key:"94e541037f5e7c4d6ccccbeea80eced6b4bda57c"},this.t.get("label"))," ",this.t.get(this.animation[null!==(t=this.mode)&&void 0!==t?t:this.defaultMode].label)),i("mds-tab",{key:"59c14c119100f31a19cf37a99b56df6760720a06",fill:!0,size:this.size},i("mds-tab-item",{key:"fff1f6202e8ea5394c0cb186f15a793fb86bc5d8",selected:"reduce"===this.mode,onClick:this.handleModeClick("reduce"),class:"item item--reduce",icon:a,title:this.t.get(this.animation.reduce.label)}),i("mds-tab-item",{key:"a5bbe8634528a388db16e25d625683057fb1f685",selected:"system"===this.mode,onClick:this.handleModeClick("system"),class:"item item--system",icon:n,title:this.t.get(this.animation.system.label)}),i("mds-tab-item",{key:"84d50e014c381e10234119abed270444a53202c1",selected:"no-preference"===this.mode,onClick:this.handleModeClick("no-preference"),class:"item item--no-preference",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 2c-2.71 0-5.05 1.54-6.22 3.78a7.062 7.062 0 0 0-3 3A7.014 7.014 0 0 0 2 15c0 3.87 3.13 7 7 7c2.71 0 5.05-1.54 6.22-3.78a7.062 7.062 0 0 0 3-3A7.014 7.014 0 0 0 22 9c0-3.87-3.13-7-7-7zM9 20a5.002 5.002 0 0 1-4-8c0 3.87 3.13 7 7 7c-.84.63-1.88 1-3 1zm3-3a5.002 5.002 0 0 1-4-8c0 3.86 3.13 6.99 7 7c-.84.63-1.88 1-3 1zm4.7-3.3c-.53.19-1.1.3-1.7.3c-2.76 0-5-2.24-5-5c0-.6.11-1.17.3-1.7c.53-.19 1.1-.3 1.7-.3c2.76 0 5 2.24 5 5c0 .6-.11 1.17-.3 1.7zM19 12c0-3.86-3.13-6.99-7-7a5.002 5.002 0 0 1 7 7z"/></svg>',title:this.t.get(this.animation["no-preference"].label)})))}static get watchers(){return{mode:[{modeChanged:0}]}}};c.style="@layer reset,vendor,theme,base,components,utilities;:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host(:not(:is([hydrated],.hydrated))),:is(mds-tab,mds-tab-item,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{display:grid;gap:calc(var(--spacing,.0025rem)*200)}.item{--mds-tab-item-default-color:rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119)));flex-basis:0;flex-grow:1}.item--disabled,.item--enabled,.item--system{--mds-tab-item-selected-color:rgb(var(--magma-text-muted,var(--text-neutral-muted,73 73 73)))}:host([pref-contrast=more]) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}@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}}@media (prefers-contrast:more){:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))) .item{--mds-tab-item-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))}}";export{c as mds_pref_animation}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-D9J8lbUv.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-D9J8lbUv.system.js","./p-DOisMne4.system.js"],(function(a){"use strict";var t,i,e,r,o,n;return{setters:[function(a){t=a.r;i=a.h;e=a.e;r=a.g},function(a){o=a.K},function(a){n=a.p}],execute:function(){var s=function(){return'@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ease:initial}}}:host(:not(:is([hydrated],.hydrated))),:is(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-paginator-item-transition-duration:var(--duration-200,.2s);--private-paginator-item-transition-duration:var(--mds-paginator-item-transition-duration);--private-paginator-item-background-disabled:var(--mds-paginator-item-background-disabled,rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225))));--private-paginator-item-background-hover:var(--mds-paginator-item-background-hover,rgb(var(--magma-wash-strong,var(--tone-neutral-08,208 208 208))));--private-paginator-item-background-selected:var(--mds-paginator-item-background-selected,rgb(var(--magma-accent-emphasis-hover,var(--variant-primary-03,7 76 204))));--private-paginator-item-background:var(--mds-paginator-item-background,#0000);--private-paginator-item-color-disabled:var(--mds-paginator-item-color-disabled,rgb(var(--magma-text-disabled,var(--text-neutral-disabled,119 119 119))));--private-paginator-item-color-hover:var(--mds-paginator-item-color-hover,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--private-paginator-item-color-selected:var(--mds-paginator-item-color-selected,rgb(var(--magma-text-on-emphasis,var(--tone-neutral-seed,255 255 255))));--private-paginator-item-color:var(--mds-paginator-item-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5))));--private-paginator-item-radius:var(--mds-paginator-item-radius,var(--magma-radius-full,var(--radius-full,1000px)));--private-paginator-item-shadow-disabled:var(--mds-paginator-item-shadow-disabled,none);--private-paginator-item-shadow-hover:var(--mds-paginator-item-shadow-hover,none);--private-paginator-item-shadow-selected:var(--mds-paginator-item-shadow-selected,var(--shadow-md-sharp,0 0 1px 1px #0000000f,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f));--private-paginator-item-shadow:var(--mds-paginator-item-shadow,none);--private-paginator-item-size:var(--mds-paginator-item-size,calc(var(--spacing,.0025rem)*900));animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));align-items:center;background-color:var(--private-paginator-item-background);border-radius:var(--private-paginator-item-radius);box-shadow:var(--private-paginator-item-shadow);box-sizing:border-box;color:var(--private-paginator-item-color);cursor:pointer;display:inline-flex;flex-shrink:0;height:var(--private-paginator-item-size);justify-content:center;min-width:var(--private-paginator-item-size);padding-inline:calc(var(--spacing,.0025rem)*300);transition-duration:.2s;transition-duration:var(--private-paginator-item-transition-duration);transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-property:background-color,box-shadow,color,outline,outline-offset;transition-timing-function:ease-in-out;transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));-webkit-user-select:none;user-select:none}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){background-color:var(--private-paginator-item-background-hover);box-shadow:var(--private-paginator-item-shadow-hover);color:var(--private-paginator-item-color-hover);fill:var(--private-paginator-item-color-hover)}:host([icon]){padding:0}:host([selected]){background-color:var(--private-paginator-item-background-selected);box-shadow:var(--private-paginator-item-shadow-selected);color:var(--private-paginator-item-color-selected);fill:var(--private-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--private-paginator-item-background-disabled);box-shadow:var(--private-paginator-item-shadow-disabled);color:var(--private-paginator-item-color-disabled);fill:var(--private-paginator-item-color-disabled);pointer-events:none}.icon{fill:currentColor;padding-inline:0}: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-paginator-item-transition-duration:0s}@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-paginator-item-transition-duration:0s}}'};var d=a("mds_paginator_item",/** @class */function(){function a(a){var i=this;t(this,a);this.km=new o;
|
|
2
2
|
/**
|
|
3
3
|
* The item is a button: Enter and Space click it as the pointer does, never while it is
|
|
4
4
|
* disabled or is the selected page, which the pointer cannot click either. A disabled item
|
|
5
5
|
* leaves the tab order; the selected page stays in it, so the keyboard finds where it is.
|
|
6
6
|
*/this.syncClickBehavior=function(){if(i.disabled||i.selected){i.km.detachClickBehavior();return}i.km.attachClickBehavior("element",{space:true})}}a.prototype.componentDidLoad=function(){this.km.addElement(this.host);this.syncClickBehavior()};a.prototype.componentDidUpdate=function(){this.syncClickBehavior()};
|
|
7
7
|
// an item moved in the page is disconnected and connected again, without loading again
|
|
8
|
-
a.prototype.connectedCallback=function(){this.syncClickBehavior()};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){return i(e,{key:"
|
|
8
|
+
a.prototype.connectedCallback=function(){this.syncClickBehavior()};a.prototype.disconnectedCallback=function(){this.km.detachClickBehavior()};a.prototype.render=function(){return i(e,{key:"1c1e25118676b13db5fa50f88d5b23094b2097b9","aria-current":this.selected?"page":undefined,"aria-disabled":this.disabled?"true":undefined,role:"button",tabindex:this.disabled?undefined:"0","pref-animation":n.state.animation,"pref-mode":n.state.mode,"pref-theme-scheme":n.state["theme-scheme"]},this.icon!==undefined?i("mds-icon",{class:"icon",name:this.icon}):i("mds-text",{class:"text",typography:"caption"},i("b",null,i("slot",null))))};Object.defineProperty(a.prototype,"host",{get:function(){return r(this)},enumerable:false,configurable:true});return a}());d.style=s()}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js","./p-Cxe5TwXZ.system.js","./p-
|
|
1
|
+
System.register(["./p-BZP13mns.system.js","./p-Cxe5TwXZ.system.js","./p-BHdlb7Fr.system.js","./p-DOisMne4.system.js"],(function(t){"use strict";var r,e,a,n,s,o,d;return{setters:[function(t){r=t.r;e=t.d;a=t.h;n=t.e;s=t.g},function(t){o=t.m},function(t){d=t.L},null],execute:function(){var i="Πήγαινε πίσω";var c={back:i};var b="Go back";var u={back:b};var l="Volver atrás";var m={back:l};var f="Indietro";var v={back:f};var h=function(){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-breadcrumb-arrow-depth-color:rgb(var(--magma-text-subtle,var(--text-neutral-subtle,99 99 99)));--mds-breadcrumb-button-background-disabled:#0000;--mds-breadcrumb-button-background-hover:rgb(var(--magma-wash-soft,var(--tone-neutral-10,237 237 237)));--mds-breadcrumb-button-background-selected:rgb(var(--magma-wash-base,var(--tone-neutral-09,225 225 225)));--mds-breadcrumb-button-background:#0000;--mds-breadcrumb-button-color-hover:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));--mds-breadcrumb-button-color-selected:var(--mds-breadcrumb-button-color-current,var(--mds-breadcrumb-current-button-color,rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)))));--mds-breadcrumb-button-color:rgb(var(--magma-text-default,var(--text-neutral-default,5 5 5)));-webkit-overflow-scrolling:touch;-ms-overflow-style:none;align-items:center;display:flex;gap:0;overflow:auto;padding:calc(var(--spacing,.0025rem)*200);scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;width:100%}.back[disabled]{--mds-button-background:var(--mds-breadcrumb-button-background-disabled,#0000)}:host::-webkit-scrollbar{display:none}"};var g=t("mds_breadcrumb",/** @class */function(){function t(t){var a=this;r(this,t);this.changedEvent=e(this,"mdsBreadcrumbChange",7);this.t=new d({el:c,en:u,es:m,it:v});
|
|
2
2
|
/**
|
|
3
3
|
* Hides the back arrow button
|
|
4
4
|
*/this.hideBack=false;this.queryItems=function(){return a.element.querySelectorAll("mds-breadcrumb-item")};this.updateBackButton=function(t){var r;if(a.hideBack)return;var e=(r=a.element.shadowRoot)===null||r===void 0?void 0:r.querySelector(".back");if(t===0){e.setAttribute("disabled","");return}e.removeAttribute("disabled")};this.togglePrevious=function(){var t=a.element.querySelector("mds-breadcrumb-item[selected]");if(!t)return;var r=Array.from(a.queryItems()).indexOf(t);var e=a.queryItems();var n=0;e.forEach((function(t,e){t.selected=e===r-1;if(t.selected){n=e}}));a.updateBackButton(n);
|
|
@@ -7,4 +7,4 @@ a.onChanged(n,e[n])};this.onChanged=function(t,r){a.changedEvent.emit({id:t.toSt
|
|
|
7
7
|
// an item keeps the id its author gave it, one without gets `item-<index>`; the breadcrumb
|
|
8
8
|
// tells the items apart by element and by position, not by id. It used to overwrite every id
|
|
9
9
|
// (#827)
|
|
10
|
-
var t=this.queryItems();t.forEach((function(t,r){if(t.id==="")t.id="item-".concat(r)}));var r=this.element.querySelector("mds-breadcrumb-item[selected]");if(!r||r===t[0]){this.updateBackButton(0)}};t.prototype.activedEventHandler=function(t){var r=this.queryItems();var e=0;r.forEach((function(r,a){r.selected=r===t.target&&t.detail.selected;if(r.selected){e=a}}));this.updateBackButton(e);this.onChanged(e,t.target)};t.prototype.render=function(){return a(n,{key:"b4fa4da020f452b1edcef847e704c996fd250e89"},!this.hideBack&&a("mds-button",{key:"77ea1777687cb4338fac177075fa6dd26dbece93",title:this.t.get("back"),class:"back",tone:"text",variant:"dark",icon:
|
|
10
|
+
var t=this.queryItems();t.forEach((function(t,r){if(t.id==="")t.id="item-".concat(r)}));var r=this.element.querySelector("mds-breadcrumb-item[selected]");if(!r||r===t[0]){this.updateBackButton(0)}};t.prototype.activedEventHandler=function(t){var r=this.queryItems();var e=0;r.forEach((function(r,a){r.selected=r===t.target&&t.detail.selected;if(r.selected){e=a}}));this.updateBackButton(e);this.onChanged(e,t.target)};t.prototype.render=function(){return a(n,{key:"b4fa4da020f452b1edcef847e704c996fd250e89"},!this.hideBack&&a("mds-button",{key:"77ea1777687cb4338fac177075fa6dd26dbece93",title:this.t.get("back"),class:"back",tone:"text",variant:"dark",icon:o,onClick:this.togglePrevious}),a("slot",{key:"e7097b89671edcbf013d760aa129ccf2f753fcdc"}))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());g.style=h()}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-BZP13mns.system.js"],(function(t){"use strict";var e,n,i;return{setters:[function(t){e=t.r;n=t.h;i=t.e}],execute:function(){var o=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(: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{background-color:var(--mds-card-background);container-type:inline-size;display:block;flex-grow:1;min-width:0}.actions{align-items:center;display:flex;gap:var(--magma-rhythm-inline,12px);justify-content:flex-end}@container not (min-width:23.75rem){.actions{flex-direction:column}::slotted(*){align-self:stretch}}"};var
|
|
1
|
+
System.register(["./p-BZP13mns.system.js"],(function(t){"use strict";var e,n,i;return{setters:[function(t){e=t.r;n=t.h;i=t.e}],execute:function(){var o=function(){return"@layer reset,vendor,theme,base,components,utilities;:host(: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{background-color:var(--mds-card-background);container-type:inline-size;display:block;flex-grow:1;min-width:0}.actions{align-items:center;display:flex;gap:var(--magma-rhythm-inline,12px);justify-content:flex-end}@container not (min-width:23.75rem){.actions{flex-direction:column}::slotted(*){align-self:stretch}}"};var r=t("mds_card_footer",/** @class */function(){function t(t){e(this,t)}t.prototype.render=function(){return n(i,{key:"041084d763c19e6eb310b522e2e38ba1386c0fb1",slot:"footer"},n("div",{key:"620dfd1b91499967fbc7e85122b6d68a265b0f4b",class:"actions"},n("slot",{key:"9e3f73b0ed73ebe85efaafb2254377c21b5c5d0a"})))};return t}());r.style=o()}}}));
|