@maggioli-design-system/magma 2.0.0-beta.2 → 2.0.0-beta.5
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/README.md +46 -6
- package/dist/cjs/date-B28IitWe.js +24 -0
- package/dist/cjs/floating-controller-Cd_vNLLD.js +369 -0
- package/dist/cjs/floating-ui.dom-DflSHZIo.js +1688 -0
- package/dist/cjs/form-DTCBh5WK.js +22 -0
- package/dist/cjs/index--6wz7eWi.js +5183 -0
- package/dist/cjs/index.cjs.js +17 -0
- package/dist/cjs/keyboard-manager-C_Eaxw-C.js +52 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-CB5_Z7PE.js +816 -0
- package/dist/cjs/magma-components.cjs.js +31 -4
- package/dist/cjs/mds-accordion-item.cjs.entry.js +7 -6
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -7
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion.cjs.entry.js +17 -7
- package/dist/cjs/mds-author.cjs.entry.js +9 -4
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +5 -4
- package/dist/cjs/mds-avatar.cjs.entry.js +15 -12
- package/dist/cjs/mds-badge.cjs.entry.js +5 -4
- package/dist/cjs/mds-banner_3.cjs.entry.js +40 -36
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +3 -3
- package/dist/cjs/mds-bibliography.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +12 -20
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-group.cjs.entry.js +3 -3
- package/dist/cjs/mds-button_3.cjs.entry.js +13 -14
- package/dist/cjs/mds-calendar_2.cjs.entry.js +183 -160
- package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-header.cjs.entry.js +9 -4
- package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
- package/dist/cjs/mds-card.cjs.entry.js +6 -5
- package/dist/cjs/mds-details.cjs.entry.js +8 -6
- package/dist/cjs/mds-dropdown.cjs.entry.js +201 -55
- package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
- package/dist/cjs/mds-entity.cjs.entry.js +11 -5
- package/dist/cjs/mds-file-preview.cjs.entry.js +8 -14
- package/dist/cjs/mds-file.cjs.entry.js +8 -14
- package/dist/cjs/mds-filter-item.cjs.entry.js +6 -5
- package/dist/cjs/mds-filter.cjs.entry.js +19 -10
- package/dist/cjs/mds-header-bar.cjs.entry.js +11 -5
- package/dist/cjs/mds-header.cjs.entry.js +10 -8
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/mds-hr.cjs.entry.js +4 -3
- package/dist/cjs/mds-img.cjs.entry.js +11 -18
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range.cjs.entry.js +61 -30
- package/dist/cjs/mds-input-date.cjs.entry.js +28 -34
- package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
- package/dist/cjs/mds-input-otp.cjs.entry.js +38 -4
- package/dist/cjs/mds-input-range.cjs.entry.js +9 -7
- package/dist/cjs/mds-input-select.cjs.entry.js +11 -19
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -32
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -17
- package/dist/cjs/mds-input-upload.cjs.entry.js +45 -37
- package/dist/cjs/mds-input.cjs.entry.js +26 -32
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
- package/dist/cjs/mds-keyboard.cjs.entry.js +20 -21
- package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -3
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +7 -13
- package/dist/cjs/mds-list-item.cjs.entry.js +4 -3
- package/dist/cjs/mds-list.cjs.entry.js +2 -2
- package/dist/cjs/mds-mention.cjs.entry.js +38 -4
- package/dist/cjs/mds-modal.cjs.entry.js +150 -65
- package/dist/cjs/mds-note.cjs.entry.js +7 -15
- package/dist/cjs/mds-notification.cjs.entry.js +16 -8
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -4
- package/dist/cjs/mds-paginator.cjs.entry.js +42 -10
- package/dist/cjs/mds-policy-ai.cjs.entry.js +8 -15
- package/dist/cjs/mds-pref-animation.cjs.entry.js +10 -19
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +10 -19
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +13 -20
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +28 -16
- package/dist/cjs/mds-pref-language.cjs.entry.js +38 -28
- package/dist/cjs/mds-pref-mode.cjs.entry.js +273 -0
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +43 -0
- package/dist/cjs/mds-pref-theme.cjs.entry.js +148 -222
- package/dist/cjs/mds-pref.cjs.entry.js +41 -18
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -3
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -3
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -3
- package/dist/cjs/mds-price-table-header.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -3
- package/dist/cjs/mds-price-table.cjs.entry.js +3 -3
- package/dist/cjs/mds-progress_2.cjs.entry.js +7 -11
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +19 -20
- package/dist/cjs/mds-push-notification.cjs.entry.js +7 -6
- package/dist/cjs/mds-quote.cjs.entry.js +4 -3
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -6
- package/dist/cjs/mds-separator.cjs.entry.js +4 -3
- package/dist/cjs/mds-status-bar.cjs.entry.js +5 -4
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -17
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -5
- package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -4
- package/dist/cjs/mds-tab_2.cjs.entry.js +28 -11
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -3
- package/dist/cjs/mds-table-footer.cjs.entry.js +4 -3
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -3
- package/dist/cjs/mds-table-header.cjs.entry.js +19 -21
- package/dist/cjs/mds-table-row.cjs.entry.js +20 -21
- package/dist/cjs/mds-table.cjs.entry.js +62 -30
- package/dist/cjs/mds-text.cjs.entry.js +36 -11
- package/dist/cjs/mds-toast.cjs.entry.js +10 -5
- package/dist/cjs/mds-tooltip.cjs.entry.js +30 -21
- package/dist/cjs/mds-tree-item.cjs.entry.js +36 -14
- package/dist/cjs/mds-tree.cjs.entry.js +44 -6
- package/dist/cjs/mds-url-view.cjs.entry.js +21 -21
- package/dist/cjs/mds-usage.cjs.entry.js +5 -11
- package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -3
- package/dist/cjs/preference-eJcbLLAn.js +389 -0
- package/dist/cjs/slot-RmXfgH4P.js +69 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/date.js +9 -1
- package/dist/collection/common/floating-controller.js +180 -14
- package/dist/collection/common/form.js +18 -0
- package/dist/collection/common/keyboard-manager.js +5 -5
- package/dist/collection/common/locale.js +9 -31
- package/dist/collection/common/preference.js +102 -0
- package/dist/collection/common/slot.js +14 -1
- package/dist/collection/common/yugop/random-text.js +12 -3
- package/dist/collection/components/mds-accordion/mds-accordion.css +16 -72
- package/dist/collection/components/mds-accordion/mds-accordion.js +18 -8
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +89 -96
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -1
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -37
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +66 -44
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -1
- package/dist/collection/components/mds-author/mds-author.css +5 -1
- package/dist/collection/components/mds-author/mds-author.js +14 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +151 -129
- package/dist/collection/components/mds-avatar/mds-avatar.js +13 -10
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +30 -77
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +3 -2
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +11 -137
- package/dist/collection/components/mds-badge/mds-badge.css +197 -164
- package/dist/collection/components/mds-badge/mds-badge.js +2 -1
- package/dist/collection/components/mds-banner/mds-banner.css +174 -196
- package/dist/collection/components/mds-banner/mds-banner.js +16 -40
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +8 -26
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -82
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +11 -46
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
- package/dist/collection/components/mds-button/mds-button.css +307 -357
- package/dist/collection/components/mds-button/mds-button.js +4 -3
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +24 -34
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.css +24 -0
- package/dist/collection/components/mds-button-group/mds-button-group.js +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.css +13 -69
- package/dist/collection/components/mds-calendar/mds-calendar.js +210 -185
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
- package/dist/collection/components/mds-card/mds-card.css +18 -31
- package/dist/collection/components/mds-card/mds-card.js +8 -7
- package/dist/collection/components/mds-card-content/mds-card-content.css +1 -0
- package/dist/collection/components/mds-card-footer/mds-card-footer.css +1 -0
- package/dist/collection/components/mds-card-header/mds-card-header.css +5 -0
- package/dist/collection/components/mds-card-header/mds-card-header.js +14 -2
- package/dist/collection/components/mds-card-media/mds-card-media.css +1 -1
- package/dist/collection/components/mds-chip/mds-chip.css +350 -297
- package/dist/collection/components/mds-chip/mds-chip.js +19 -37
- package/dist/collection/components/mds-details/mds-details.css +75 -38
- package/dist/collection/components/mds-details/mds-details.js +4 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +126 -124
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +210 -62
- package/dist/collection/components/mds-emoji/asset/mia.svg +3 -3
- package/dist/collection/components/mds-emoji/mds-emoji.css +15 -179
- package/dist/collection/components/mds-emoji/mds-emoji.js +297 -177
- package/dist/collection/components/mds-entity/mds-entity.css +35 -77
- package/dist/collection/components/mds-entity/mds-entity.js +17 -3
- package/dist/collection/components/mds-file/mds-file.css +131 -95
- package/dist/collection/components/mds-file/mds-file.js +8 -36
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +313 -236
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -36
- package/dist/collection/components/mds-filter/mds-filter.css +103 -98
- package/dist/collection/components/mds-filter/mds-filter.js +16 -7
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +102 -62
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -1
- package/dist/collection/components/mds-header/mds-header.css +29 -71
- package/dist/collection/components/mds-header/mds-header.js +10 -8
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +82 -33
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -2
- package/dist/collection/components/mds-help/mds-help.css +1 -19
- package/dist/collection/components/mds-help/mds-help.js +7 -7
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +23 -118
- package/dist/collection/components/mds-hr/mds-hr.css +6 -12
- package/dist/collection/components/mds-hr/mds-hr.js +2 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -4
- package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
- package/dist/collection/components/mds-img/mds-img.css +12 -48
- package/dist/collection/components/mds-img/mds-img.js +8 -38
- package/dist/collection/components/mds-input/mds-input.css +147 -211
- package/dist/collection/components/mds-input/mds-input.js +36 -41
- package/dist/collection/components/mds-input-date/mds-input-date.css +137 -135
- package/dist/collection/components/mds-input-date/mds-input-date.js +63 -48
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +130 -100
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +81 -45
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
- package/dist/collection/components/mds-input-field/mds-input-field.css +65 -29
- package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +92 -49
- package/dist/collection/components/mds-input-range/mds-input-range.js +6 -4
- package/dist/collection/components/mds-input-select/mds-input-select.css +158 -179
- package/dist/collection/components/mds-input-select/mds-input-select.js +28 -35
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +96 -249
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -47
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +61 -38
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -1
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +113 -72
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -38
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +28 -42
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +41 -52
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +37 -125
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +17 -40
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
- package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +139 -72
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -1
- package/dist/collection/components/mds-label/mds-label.css +278 -356
- package/dist/collection/components/mds-label/mds-label.js +3 -35
- package/dist/collection/components/mds-list/mds-list.css +4 -5
- package/dist/collection/components/mds-list-item/mds-list-item.css +14 -17
- package/dist/collection/components/mds-list-item/mds-list-item.js +2 -1
- package/dist/collection/components/mds-mention/mds-mention.css +19 -10
- package/dist/collection/components/mds-mention/mds-mention.js +62 -2
- package/dist/collection/components/mds-modal/mds-modal.css +256 -155
- package/dist/collection/components/mds-modal/mds-modal.js +177 -91
- package/dist/collection/components/mds-note/mds-note.css +262 -228
- package/dist/collection/components/mds-note/mds-note.js +3 -37
- package/dist/collection/components/mds-notification/mds-notification.css +88 -114
- package/dist/collection/components/mds-notification/mds-notification.js +17 -9
- package/dist/collection/components/mds-paginator/mds-paginator.css +111 -55
- package/dist/collection/components/mds-paginator/mds-paginator.js +39 -7
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +103 -107
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -1
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +19 -16
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +4 -38
- package/dist/collection/components/mds-pref/mds-pref.js +40 -40
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +58 -9
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +7 -42
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +20 -15
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +7 -42
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +12 -7
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +10 -43
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
- package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +184 -228
- package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +69 -41
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -1
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +106 -87
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -1
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +99 -55
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -1
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +99 -48
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -1
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +9 -36
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +132 -108
- package/dist/collection/components/mds-progress/mds-progress.js +2 -1
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +17 -41
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -1
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +211 -162
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +18 -39
- package/dist/collection/components/mds-quote/mds-quote.css +11 -7
- package/dist/collection/components/mds-quote/mds-quote.js +2 -1
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
- package/dist/collection/components/mds-separator/mds-separator.css +14 -34
- package/dist/collection/components/mds-separator/mds-separator.js +2 -1
- package/dist/collection/components/mds-spinner/mds-spinner.css +32 -32
- package/dist/collection/components/mds-spinner/mds-spinner.js +2 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +31 -38
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +3 -2
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +21 -88
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +101 -163
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -35
- package/dist/collection/components/mds-tab/mds-tab.css +125 -199
- package/dist/collection/components/mds-tab/mds-tab.js +19 -4
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +85 -20
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -1
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +94 -56
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -1
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +33 -43
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +75 -1
- package/dist/collection/components/mds-table/mds-table.css +102 -126
- package/dist/collection/components/mds-table/mds-table.js +59 -28
- package/dist/collection/components/mds-table-body/mds-table-body.css +72 -49
- package/dist/collection/components/mds-table-body/mds-table-body.js +2 -1
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +79 -40
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -1
- package/dist/collection/components/mds-table-footer/mds-table-footer.css +62 -8
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -1
- package/dist/collection/components/mds-table-header/mds-table-header.css +62 -8
- package/dist/collection/components/mds-table-header/mds-table-header.js +17 -37
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +67 -17
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +2 -1
- package/dist/collection/components/mds-table-row/mds-table-row.css +92 -63
- package/dist/collection/components/mds-table-row/mds-table-row.js +38 -41
- package/dist/collection/components/mds-text/mds-text.css +25 -43
- package/dist/collection/components/mds-text/mds-text.js +23 -7
- package/dist/collection/components/mds-toast/mds-toast.css +139 -105
- package/dist/collection/components/mds-toast/mds-toast.js +13 -3
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +96 -96
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +37 -28
- package/dist/collection/components/mds-tree/mds-tree.css +22 -214
- package/dist/collection/components/mds-tree/mds-tree.js +42 -4
- package/dist/collection/components/mds-tree-item/mds-tree-item.css +193 -343
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +87 -14
- package/dist/collection/components/mds-url-view/mds-url-view.css +97 -59
- package/dist/collection/components/mds-url-view/mds-url-view.js +17 -43
- package/dist/collection/components/mds-usage/mds-usage.css +100 -97
- package/dist/collection/components/mds-usage/mds-usage.js +2 -34
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +24 -40
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +12 -2
- package/dist/collection/components/mds-zero/mds-zero.css +88 -34
- package/dist/collection/components/mds-zero/mds-zero.js +2 -1
- package/dist/collection/event-detail/theme.js +1 -0
- package/dist/collection/type/preference.js +22 -3
- package/dist/components/index.d.ts +230 -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-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.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-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 +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- 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-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.d.ts +11 -0
- package/dist/components/mds-pref-mode.js +1 -0
- package/dist/components/mds-pref-theme-item.d.ts +11 -0
- package/dist/components/mds-pref-theme-item.js +1 -0
- 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.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--8aaJX-p.js +1 -0
- package/dist/components/p-A9TZf0Ii.js +1 -0
- package/dist/components/p-B14Ci2fO.js +1 -0
- package/dist/components/p-B2A_hlV2.js +1 -0
- package/dist/components/p-B9DJLgwr.js +1 -0
- package/dist/components/p-BH3bWzRT.js +1 -0
- package/dist/components/p-BJNK4p33.js +1 -0
- package/dist/components/p-BNHXZ-JR.js +1 -0
- package/dist/components/p-BSxuG1vZ.js +1 -0
- package/dist/components/p-BTHR4xXu.js +1 -0
- package/dist/components/p-BhFTcUD0.js +3 -0
- package/dist/components/p-BouRLCYL.js +1 -0
- package/dist/components/p-Bss3F51Q.js +5 -0
- package/dist/components/p-Bt4xX5ww.js +1 -0
- package/dist/components/p-C03KYHGv.js +1 -0
- package/dist/components/p-C58NKMEE.js +1 -0
- package/dist/components/p-CACEYk42.js +1 -0
- package/dist/components/p-CBLAz3_J.js +1 -0
- package/dist/components/p-CHAGzQT-.js +1 -0
- package/dist/components/p-CVgKDZPF.js +1 -0
- package/dist/components/p-CVpjH8Un.js +1 -0
- package/dist/components/p-Caksrfcd.js +1 -0
- package/dist/components/p-CatD1iUY.js +1 -0
- package/dist/components/p-CbufYCNj.js +1 -0
- package/dist/components/p-Cehcn85x.js +1 -0
- package/dist/components/p-CsgCQiHG.js +1 -0
- package/dist/components/p-CvIFS8oA.js +1 -0
- package/dist/components/p-D3-GP4KF.js +1 -0
- package/dist/components/p-D8I1RblC.js +1 -0
- package/dist/components/p-DLE5TNTp.js +1 -0
- package/dist/components/p-DaI5QqNu.js +1 -0
- package/dist/components/p-Deh5Aia-.js +1 -0
- package/dist/components/p-Dj_oN194.js +1 -0
- package/dist/components/p-DmELzfvf.js +1 -0
- package/dist/components/p-DtxB7DYE.js +1 -0
- package/dist/components/p-KRu9I7dw.js +1 -0
- package/dist/components/p-cBZsPiMJ.js +1 -0
- package/dist/components/p-sUKtonkE.js +8 -0
- package/dist/components/p-sqRs6oj4.js +1 -0
- package/dist/components/p-wq6nWuWE.js +1 -0
- package/dist/documentation.json +1203 -1484
- package/dist/esm/date-CACEYk42.js +22 -0
- package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
- package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
- package/dist/esm/form-A9TZf0Ii.js +19 -0
- package/dist/esm/index-DIiEV39g.js +5149 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-CbJbTW_c.js +814 -0
- package/dist/esm/magma-components.js +32 -5
- package/dist/esm/mds-accordion-item.entry.js +7 -6
- package/dist/esm/mds-accordion-timer-item.entry.js +8 -7
- package/dist/esm/mds-accordion-timer.entry.js +3 -3
- package/dist/esm/mds-accordion.entry.js +17 -7
- package/dist/esm/mds-author.entry.js +9 -4
- package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
- package/dist/esm/mds-avatar-stack.entry.js +5 -4
- package/dist/esm/mds-avatar.entry.js +15 -12
- package/dist/esm/mds-badge.entry.js +5 -4
- package/dist/esm/mds-banner_3.entry.js +40 -36
- package/dist/esm/mds-benchmark-bar.entry.js +3 -3
- package/dist/esm/mds-bibliography.entry.js +2 -2
- package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
- package/dist/esm/mds-breadcrumb.entry.js +12 -20
- package/dist/esm/mds-button-dropdown.entry.js +3 -3
- package/dist/esm/mds-button-group.entry.js +3 -3
- package/dist/esm/mds-button_3.entry.js +13 -14
- package/dist/esm/mds-calendar_2.entry.js +183 -160
- package/dist/esm/mds-card-content.entry.js +2 -2
- package/dist/esm/mds-card-footer.entry.js +2 -2
- package/dist/esm/mds-card-header.entry.js +9 -4
- package/dist/esm/mds-card-media.entry.js +2 -2
- package/dist/esm/mds-card.entry.js +6 -5
- package/dist/esm/mds-details.entry.js +8 -6
- package/dist/esm/mds-dropdown.entry.js +201 -55
- package/dist/esm/mds-emoji.entry.js +301 -181
- package/dist/esm/mds-entity.entry.js +11 -5
- package/dist/esm/mds-file-preview.entry.js +8 -14
- package/dist/esm/mds-file.entry.js +8 -14
- package/dist/esm/mds-filter-item.entry.js +6 -5
- package/dist/esm/mds-filter.entry.js +19 -10
- package/dist/esm/mds-header-bar.entry.js +11 -5
- package/dist/esm/mds-header.entry.js +10 -8
- package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm/mds-hr.entry.js +4 -3
- package/dist/esm/mds-img.entry.js +11 -18
- package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
- package/dist/esm/mds-input-date-range.entry.js +61 -30
- package/dist/esm/mds-input-date.entry.js +28 -34
- package/dist/esm/mds-input-field.entry.js +42 -6
- package/dist/esm/mds-input-otp.entry.js +38 -4
- package/dist/esm/mds-input-range.entry.js +9 -7
- package/dist/esm/mds-input-select.entry.js +11 -19
- package/dist/esm/mds-input-switch_2.entry.js +19 -32
- package/dist/esm/mds-input-tip_2.entry.js +8 -17
- package/dist/esm/mds-input-upload.entry.js +45 -37
- package/dist/esm/mds-input.entry.js +26 -32
- package/dist/esm/mds-keyboard-key.entry.js +5 -14
- package/dist/esm/mds-keyboard.entry.js +20 -21
- package/dist/esm/mds-kpi-item.entry.js +12 -3
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +7 -13
- package/dist/esm/mds-list-item.entry.js +4 -3
- package/dist/esm/mds-list.entry.js +2 -2
- package/dist/esm/mds-mention.entry.js +38 -4
- package/dist/esm/mds-modal.entry.js +150 -65
- package/dist/esm/mds-note.entry.js +7 -15
- package/dist/esm/mds-notification.entry.js +16 -8
- package/dist/esm/mds-paginator-item.entry.js +5 -4
- package/dist/esm/mds-paginator.entry.js +42 -10
- package/dist/esm/mds-policy-ai.entry.js +8 -15
- package/dist/esm/mds-pref-animation.entry.js +10 -19
- package/dist/esm/mds-pref-consumption.entry.js +10 -19
- package/dist/esm/mds-pref-contrast.entry.js +13 -20
- package/dist/esm/mds-pref-language-item.entry.js +28 -16
- package/dist/esm/mds-pref-language.entry.js +38 -28
- package/dist/esm/mds-pref-mode.entry.js +271 -0
- package/dist/esm/mds-pref-theme-item.entry.js +41 -0
- package/dist/esm/mds-pref-theme.entry.js +148 -222
- package/dist/esm/mds-pref.entry.js +41 -18
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -3
- package/dist/esm/mds-price-table-features-row.entry.js +4 -3
- package/dist/esm/mds-price-table-features.entry.js +4 -3
- package/dist/esm/mds-price-table-header.entry.js +3 -3
- package/dist/esm/mds-price-table-list-item.entry.js +3 -3
- package/dist/esm/mds-price-table-list.entry.js +4 -3
- package/dist/esm/mds-price-table.entry.js +3 -3
- package/dist/esm/mds-progress_2.entry.js +7 -11
- package/dist/esm/mds-push-notification-item.entry.js +19 -20
- package/dist/esm/mds-push-notification.entry.js +7 -6
- package/dist/esm/mds-quote.entry.js +4 -3
- package/dist/esm/mds-radial-menu-item.entry.js +3 -3
- package/dist/esm/mds-radial-menu.entry.js +7 -6
- package/dist/esm/mds-separator.entry.js +4 -3
- package/dist/esm/mds-status-bar.entry.js +5 -4
- package/dist/esm/mds-stepper-bar-item.entry.js +14 -17
- package/dist/esm/mds-stepper-bar.entry.js +21 -12
- package/dist/esm/mds-tab-bar-item.entry.js +6 -5
- package/dist/esm/mds-tab-bar.entry.js +5 -4
- package/dist/esm/mds-tab_2.entry.js +28 -11
- package/dist/esm/mds-table-body.entry.js +4 -3
- package/dist/esm/mds-table-footer.entry.js +4 -3
- package/dist/esm/mds-table-header-cell.entry.js +4 -3
- package/dist/esm/mds-table-header.entry.js +19 -21
- package/dist/esm/mds-table-row.entry.js +20 -21
- package/dist/esm/mds-table.entry.js +62 -30
- package/dist/esm/mds-text.entry.js +36 -11
- package/dist/esm/mds-toast.entry.js +10 -5
- package/dist/esm/mds-tooltip.entry.js +30 -21
- package/dist/esm/mds-tree-item.entry.js +36 -14
- package/dist/esm/mds-tree.entry.js +44 -6
- package/dist/esm/mds-url-view.entry.js +21 -21
- package/dist/esm/mds-usage.entry.js +5 -11
- package/dist/esm/mds-video-wall.entry.js +8 -4
- package/dist/esm/mds-zero.entry.js +4 -3
- package/dist/esm/preference-CKerJx2M.js +385 -0
- package/dist/esm/slot-C0o_l0td.js +61 -0
- package/dist/esm-es5/date-CACEYk42.js +6 -0
- package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
- package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
- package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
- package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
- package/dist/esm-es5/index-DIiEV39g.js +371 -0
- package/dist/esm-es5/index.js +79 -1
- package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
- package/dist/esm-es5/magma-components.js +4 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
- package/dist/esm-es5/mds-accordion.entry.js +7 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +8 -1
- package/dist/esm-es5/mds-badge.entry.js +12 -1
- package/dist/esm-es5/mds-banner_3.entry.js +40 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
- package/dist/esm-es5/mds-bibliography.entry.js +14 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +42 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
- 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 +7 -1
- package/dist/esm-es5/mds-details.entry.js +4 -1
- package/dist/esm-es5/mds-dropdown.entry.js +102 -1
- package/dist/esm-es5/mds-emoji.entry.js +899 -3
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +23 -2
- package/dist/esm-es5/mds-file.entry.js +2823 -3
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +11 -1
- package/dist/esm-es5/mds-header-bar.entry.js +11 -1
- package/dist/esm-es5/mds-header.entry.js +30 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +15 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
- package/dist/esm-es5/mds-input-date.entry.js +50 -1
- package/dist/esm-es5/mds-input-field.entry.js +22 -1
- package/dist/esm-es5/mds-input-otp.entry.js +13 -1
- package/dist/esm-es5/mds-input-range.entry.js +24 -1
- package/dist/esm-es5/mds-input-select.entry.js +39 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
- package/dist/esm-es5/mds-input-upload.entry.js +63 -1
- package/dist/esm-es5/mds-input.entry.js +134 -1
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +11 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +16 -1
- package/dist/esm-es5/mds-list-item.entry.js +7 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +4 -1
- package/dist/esm-es5/mds-modal.entry.js +68 -1
- package/dist/esm-es5/mds-note.entry.js +7 -1
- package/dist/esm-es5/mds-notification.entry.js +13 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +14 -1
- package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
- package/dist/esm-es5/mds-pref-language.entry.js +15 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
- package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
- package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
- package/dist/esm-es5/mds-pref.entry.js +9 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
- 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 +7 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +32 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
- package/dist/esm-es5/mds-push-notification.entry.js +49 -1
- package/dist/esm-es5/mds-quote.entry.js +7 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +10 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +26 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
- package/dist/esm-es5/mds-table-header.entry.js +14 -1
- package/dist/esm-es5/mds-table-row.entry.js +8 -1
- package/dist/esm-es5/mds-table.entry.js +15 -1
- package/dist/esm-es5/mds-text.entry.js +27 -1
- package/dist/esm-es5/mds-toast.entry.js +15 -1
- package/dist/esm-es5/mds-tooltip.entry.js +37 -1
- package/dist/esm-es5/mds-tree-item.entry.js +16 -1
- package/dist/esm-es5/mds-tree.entry.js +20 -1
- package/dist/esm-es5/mds-url-view.entry.js +7 -1
- package/dist/esm-es5/mds-usage.entry.js +4 -1
- package/dist/esm-es5/mds-video-wall.entry.js +16 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/preference-CKerJx2M.js +58 -0
- package/dist/esm-es5/slot-C0o_l0td.js +23 -0
- package/dist/hydrate/index.js +4695 -2035
- package/dist/hydrate/index.mjs +4695 -2035
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-03be5c0c.entry.js +1 -0
- package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
- package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
- package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
- package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
- package/dist/magma-components/p-086fb3aa.entry.js +1 -0
- package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
- package/dist/magma-components/p-0a691082.entry.js +1 -0
- package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
- package/dist/magma-components/p-0af8d821.entry.js +1 -0
- package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
- package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
- package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
- package/dist/magma-components/p-10704ede.system.entry.js +4 -0
- package/dist/magma-components/p-15f63bf3.entry.js +1 -0
- package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
- package/dist/magma-components/p-1780b8ba.entry.js +1 -0
- package/dist/magma-components/p-181dfb04.entry.js +1 -0
- package/dist/magma-components/p-184720be.system.entry.js +1 -0
- package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
- package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
- package/dist/magma-components/p-1afc0452.entry.js +1 -0
- package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
- package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
- package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
- package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
- package/dist/magma-components/p-209063b6.system.entry.js +50 -0
- package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
- package/dist/magma-components/p-21891a24.entry.js +1 -0
- package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
- package/dist/magma-components/p-231505e8.entry.js +1 -0
- package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
- package/dist/magma-components/p-241dbf61.entry.js +1 -0
- package/dist/magma-components/p-25935d33.system.entry.js +1 -0
- package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
- package/dist/magma-components/p-29684655.system.entry.js +16 -0
- package/dist/magma-components/p-2b73fee6.entry.js +1 -0
- package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
- package/dist/magma-components/p-2de17848.entry.js +1 -0
- package/dist/magma-components/p-34482514.entry.js +1 -0
- package/dist/magma-components/p-34c0890e.entry.js +1 -0
- package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
- package/dist/magma-components/p-3b0c1202.entry.js +1 -0
- package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
- package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
- package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
- package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
- package/dist/magma-components/p-40563e33.entry.js +1 -0
- package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
- package/dist/magma-components/p-421a630e.entry.js +1 -0
- package/dist/magma-components/p-4297da23.system.entry.js +1 -0
- package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
- package/dist/magma-components/p-4543501c.entry.js +1 -0
- package/dist/magma-components/p-454c4774.entry.js +1 -0
- package/dist/magma-components/p-4616bc07.entry.js +1 -0
- package/dist/magma-components/p-46786d71.system.entry.js +14 -0
- package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
- package/dist/magma-components/p-481008e9.system.entry.js +13 -0
- package/dist/magma-components/p-48d37230.entry.js +1 -0
- package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
- package/dist/magma-components/p-4c8316a8.entry.js +1 -0
- package/dist/magma-components/p-4c95442e.entry.js +1 -0
- package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
- package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
- package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
- package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
- package/dist/magma-components/p-59de81ac.entry.js +1 -0
- package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
- package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
- package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
- package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
- package/dist/magma-components/p-636cc471.entry.js +1 -0
- package/dist/magma-components/p-66ce2dee.entry.js +1 -0
- package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
- package/dist/magma-components/p-6937f340.entry.js +1 -0
- package/dist/magma-components/p-69d1b815.entry.js +1 -0
- package/dist/magma-components/p-6b7e449f.entry.js +1 -0
- package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
- package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
- package/dist/magma-components/p-6ce60d59.entry.js +1 -0
- package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
- package/dist/magma-components/p-6dc27543.entry.js +1 -0
- package/dist/magma-components/p-6de37588.entry.js +1 -0
- package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
- package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
- package/dist/magma-components/p-7090184f.entry.js +1 -0
- package/dist/magma-components/p-716ad14c.entry.js +1 -0
- package/dist/magma-components/p-71804224.entry.js +1 -0
- package/dist/magma-components/p-735dc594.system.entry.js +1 -0
- package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
- package/dist/magma-components/p-74b0902a.entry.js +1 -0
- package/dist/magma-components/p-7530a2f2.entry.js +1 -0
- package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
- package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
- package/dist/magma-components/p-76ae22d6.entry.js +1 -0
- package/dist/magma-components/p-78248693.entry.js +1 -0
- package/dist/magma-components/p-78fef00a.entry.js +1 -0
- package/dist/magma-components/p-7c0d202c.entry.js +1 -0
- package/dist/magma-components/p-7d317ff0.entry.js +8 -0
- package/dist/magma-components/p-7f2e3b74.system.entry.js +2838 -0
- package/dist/magma-components/p-7fc29447.entry.js +1 -0
- package/dist/magma-components/p-8103d4d4.system.entry.js +30 -0
- package/dist/magma-components/p-81b72b6e.entry.js +1 -0
- package/dist/magma-components/p-859ab5a2.entry.js +18 -0
- package/dist/magma-components/p-896ae0ee.entry.js +1 -0
- package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
- package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
- package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
- package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
- package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
- package/dist/magma-components/p-92e1001f.entry.js +1 -0
- package/dist/magma-components/p-9378b373.system.entry.js +49 -0
- package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
- package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
- package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
- package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
- package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
- package/dist/magma-components/p-998721b9.system.entry.js +1 -0
- package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
- package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
- package/dist/magma-components/p-9be4a736.entry.js +1 -0
- package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
- package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
- package/dist/magma-components/p-9d9a947b.entry.js +18 -0
- package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
- package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
- package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
- package/dist/magma-components/p-A9TZf0Ii.js +1 -0
- package/dist/magma-components/p-BFnx_0hM.js +5 -0
- package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
- package/dist/magma-components/p-BbMKuVem.js +1 -0
- package/dist/magma-components/p-C0o_l0td.js +1 -0
- package/dist/magma-components/p-C2FHijr2.system.js +231 -0
- package/dist/magma-components/p-CACEYk42.js +1 -0
- package/dist/magma-components/p-CBam2PI8.system.js +79 -0
- package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
- package/dist/magma-components/p-CHAGzQT-.js +1 -0
- package/dist/magma-components/p-CI85vVs8.system.js +9 -0
- package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
- package/dist/magma-components/p-DB8Rm54c.js +1 -0
- package/dist/magma-components/p-DIiEV39g.js +3 -0
- package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
- package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
- package/dist/magma-components/p-KRu9I7dw.js +1 -0
- package/dist/magma-components/p-LerCJgfP.system.js +5 -0
- package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
- package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
- package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
- package/dist/magma-components/p-a3b0f586.entry.js +1 -0
- package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
- package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
- package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
- package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
- package/dist/magma-components/p-a93b2a39.entry.js +1 -0
- package/dist/magma-components/p-aa267e7b.entry.js +1 -0
- package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
- package/dist/magma-components/p-ac544ab1.entry.js +1 -0
- package/dist/magma-components/p-ace198e9.entry.js +1 -0
- package/dist/magma-components/p-ad3983b2.entry.js +1 -0
- package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
- package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
- package/dist/magma-components/p-b23a6c83.entry.js +1 -0
- package/dist/magma-components/p-b3a3578c.entry.js +1 -0
- package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
- package/dist/magma-components/p-b71e0d51.entry.js +1 -0
- package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
- package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
- package/dist/magma-components/p-ba035f90.entry.js +1 -0
- package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
- package/dist/magma-components/p-bd490a8e.entry.js +1 -0
- package/dist/magma-components/p-be198039.system.entry.js +4 -0
- package/dist/magma-components/p-be692266.system.entry.js +13 -0
- package/dist/magma-components/p-bf7168b4.entry.js +1 -0
- package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
- package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
- package/dist/magma-components/p-c4e58240.entry.js +1 -0
- package/dist/magma-components/p-c573de10.entry.js +1 -0
- package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
- package/dist/magma-components/p-c70d7159.entry.js +1 -0
- package/dist/magma-components/p-c7517884.system.entry.js +38 -0
- package/dist/magma-components/p-c9be79bd.entry.js +1 -0
- package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
- package/dist/magma-components/p-cb6a1908.entry.js +1 -0
- package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
- package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
- package/dist/magma-components/p-cd5866c8.entry.js +1 -0
- package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
- package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
- package/dist/magma-components/p-d3116844.entry.js +1 -0
- package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
- package/dist/magma-components/p-d3933a22.entry.js +1 -0
- package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
- package/dist/magma-components/p-d4a529ce.entry.js +1 -0
- package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
- package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
- package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
- package/dist/magma-components/p-d921d876.entry.js +1 -0
- package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
- package/dist/magma-components/p-ddbdce09.entry.js +1 -0
- package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
- package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
- package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
- package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
- package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
- package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
- package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
- package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
- package/dist/magma-components/p-e3e893c4.entry.js +1 -0
- package/dist/magma-components/p-e4868ade.entry.js +1 -0
- package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
- package/dist/magma-components/p-e5da7036.entry.js +1 -0
- package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
- package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
- package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
- package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
- package/dist/magma-components/p-ef8cb401.entry.js +1 -0
- package/dist/magma-components/p-efe8d359.entry.js +1 -0
- package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
- package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
- package/dist/magma-components/p-f1462410.system.entry.js +9 -0
- package/dist/magma-components/p-f23d4974.entry.js +1 -0
- package/dist/magma-components/p-f542246f.system.entry.js +1 -0
- package/dist/magma-components/p-f5c680dd.entry.js +1 -0
- package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
- package/dist/magma-components/p-f8369939.entry.js +1 -0
- package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
- package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
- package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
- package/dist/magma-components/p-ff133cbd.entry.js +1 -0
- package/dist/magma-components/p-fff44704.entry.js +1 -0
- package/dist/magma-components/p-opeIIa7t.system.js +7 -0
- package/dist/stats.json +5873 -5582
- package/dist/types/common/date.d.ts +5 -1
- package/dist/types/common/floating-controller.d.ts +59 -5
- package/dist/types/common/form.d.ts +10 -0
- package/dist/types/common/locale.d.ts +0 -5
- package/dist/types/common/preference.d.ts +54 -0
- package/dist/types/common/slot.d.ts +11 -1
- package/dist/types/common/yugop/random-text.d.ts +8 -0
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +2 -2
- package/dist/types/components/mds-author/mds-author.d.ts +2 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +2 -0
- package/dist/types/components/mds-banner/mds-banner.d.ts +4 -9
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +2 -8
- package/dist/types/components/mds-button/mds-button.d.ts +0 -1
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +33 -18
- package/dist/types/components/mds-card/mds-card.d.ts +2 -2
- package/dist/types/components/mds-card-header/mds-card-header.d.ts +2 -1
- package/dist/types/components/mds-chip/mds-chip.d.ts +0 -6
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +44 -14
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
- package/dist/types/components/mds-entity/mds-entity.d.ts +3 -2
- package/dist/types/components/mds-file/mds-file.d.ts +2 -7
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -5
- package/dist/types/components/mds-filter/mds-filter.d.ts +10 -0
- package/dist/types/components/mds-header/mds-header.d.ts +2 -2
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -1
- package/dist/types/components/mds-help/mds-help.d.ts +2 -2
- package/dist/types/components/mds-icon/mds-icon.d.ts +0 -1
- package/dist/types/components/mds-img/mds-img.d.ts +2 -7
- package/dist/types/components/mds-input/mds-input.d.ts +8 -6
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +11 -4
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +11 -3
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -4
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -5
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -7
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +5 -7
- package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
- package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +1 -7
- package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
- package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -0
- package/dist/types/components/mds-label/mds-label.d.ts +0 -5
- package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
- package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +31 -19
- package/dist/types/components/mds-modal/meta/types.d.ts +0 -1
- package/dist/types/components/mds-note/mds-note.d.ts +0 -6
- package/dist/types/components/mds-notification/mds-notification.d.ts +2 -2
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +14 -1
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +1 -7
- package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +1 -6
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +1 -6
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +1 -6
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
- package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -36
- package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +4 -8
- package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -6
- package/dist/types/components/mds-tab/mds-tab.d.ts +2 -1
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +17 -0
- package/dist/types/components/mds-table/mds-table.d.ts +10 -5
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -5
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +8 -7
- package/dist/types/components/mds-toast/mds-toast.d.ts +2 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +8 -8
- package/dist/types/components/mds-tree/mds-tree.d.ts +5 -0
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +26 -6
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -6
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -6
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
- package/dist/types/components.d.ts +437 -393
- package/dist/types/event-detail/preference.d.ts +2 -2
- package/dist/types/event-detail/theme.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/dist/types/type/preference.d.ts +16 -3
- package/loader/index.d.ts +1 -1
- package/package.json +61 -64
- package/dist/cjs/date-dnDGaLCn.js +0 -16
- package/dist/cjs/floating-controller-DA8xyqCa.js +0 -203
- package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
- package/dist/cjs/index-CNuKb6Lv.js +0 -2896
- package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
- package/dist/cjs/locale-oGW3SvGJ.js +0 -837
- package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
- package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
- package/dist/cjs/slot-CI0KpgtY.js +0 -52
- package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -38
- package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
- package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
- package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
- package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
- package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
- package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
- package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
- package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
- package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
- package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
- package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
- package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
- package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
- package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
- package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
- package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
- package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
- package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
- package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
- package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
- package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
- package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
- package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
- package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
- package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
- package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
- package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
- package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
- package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
- package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
- package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
- package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
- package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
- package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
- package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
- package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
- package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
- package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
- package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
- package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
- package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
- package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
- package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
- package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
- package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
- package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
- package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -347
- package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
- package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
- package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
- package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
- package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
- package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
- package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
- package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
- package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
- package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
- package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
- package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
- package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
- package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
- package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
- package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
- package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
- package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
- package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
- package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
- package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
- package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
- package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
- package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
- package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
- package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
- package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
- package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
- package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
- package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
- package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
- package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
- package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
- package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
- package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
- package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
- package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
- package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
- package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
- package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
- package/dist/collection/storybook/box-shadows.stories.js +0 -53
- package/dist/collection/storybook/color-scale.stories.js +0 -465
- package/dist/collection/storybook/components-preview.stories.js +0 -36
- package/dist/collection/storybook/example-page.stories.js +0 -10
- package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
- package/dist/collection/storybook/input-form.stories.js +0 -40
- package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
- package/dist/collection/test/file.js +0 -53
- package/dist/collection/test/mock.js +0 -19
- package/dist/components/date.js +0 -1
- package/dist/components/floating-controller.js +0 -1
- package/dist/components/floating-ui.dom.js +0 -1
- package/dist/components/icons-set.service.js +0 -1
- package/dist/components/keyboard-manager.js +0 -1
- package/dist/components/locale.it.js +0 -1
- package/dist/components/locale.js +0 -5
- package/dist/components/mds-avatar-stack-item2.js +0 -1
- package/dist/components/mds-avatar2.js +0 -1
- package/dist/components/mds-badge2.js +0 -1
- package/dist/components/mds-banner2.js +0 -1
- package/dist/components/mds-button2.js +0 -1
- package/dist/components/mds-calendar-cell2.js +0 -1
- package/dist/components/mds-calendar2.js +0 -1
- package/dist/components/mds-chip2.js +0 -1
- package/dist/components/mds-dropdown2.js +0 -1
- package/dist/components/mds-file-preview2.js +0 -8
- package/dist/components/mds-filter-item2.js +0 -1
- package/dist/components/mds-help2.js +0 -1
- package/dist/components/mds-icon2.js +0 -1
- package/dist/components/mds-img2.js +0 -1
- package/dist/components/mds-input-switch2.js +0 -1
- package/dist/components/mds-input-tip-item2.js +0 -1
- package/dist/components/mds-input-tip2.js +0 -1
- package/dist/components/mds-input2.js +0 -1
- package/dist/components/mds-modal2.js +0 -1
- package/dist/components/mds-paginator-item2.js +0 -1
- package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
- package/dist/components/mds-pref-theme-variant-item.js +0 -1
- package/dist/components/mds-pref-theme-variant.d.ts +0 -11
- package/dist/components/mds-pref-theme-variant.js +0 -1
- package/dist/components/mds-progress2.js +0 -1
- package/dist/components/mds-radial-progress2.js +0 -1
- package/dist/components/mds-separator2.js +0 -1
- package/dist/components/mds-spinner2.js +0 -1
- package/dist/components/mds-tab-item2.js +0 -1
- package/dist/components/mds-tab2.js +0 -1
- package/dist/components/mds-table-cell2.js +0 -1
- package/dist/components/mds-table-header-cell2.js +0 -1
- package/dist/components/mds-text2.js +0 -1
- package/dist/components/mds-tooltip2.js +0 -1
- package/dist/components/slot.js +0 -1
- package/dist/esm/date-C1oxPa_J.js +0 -14
- package/dist/esm/floating-controller-CP3-OFb9.js +0 -200
- package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
- package/dist/esm/index-CAd5312P.js +0 -2869
- package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
- package/dist/esm/locale-a4oAcjYG.js +0 -835
- package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
- package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
- package/dist/esm/slot-ttrRC6OE.js +0 -48
- package/dist/esm-es5/date-C1oxPa_J.js +0 -1
- package/dist/esm-es5/floating-controller-CP3-OFb9.js +0 -1
- package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
- package/dist/esm-es5/index-CAd5312P.js +0 -1
- package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
- package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
- package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
- package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
- package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
- package/dist/magma-components/p-00313884.entry.js +0 -1
- package/dist/magma-components/p-01dc43dd.entry.js +0 -1
- package/dist/magma-components/p-01dca5e8.entry.js +0 -1
- package/dist/magma-components/p-030d45e3.entry.js +0 -1
- package/dist/magma-components/p-0328a23e.system.entry.js +0 -1
- package/dist/magma-components/p-08c6869a.entry.js +0 -1
- package/dist/magma-components/p-09de9fc5.system.entry.js +0 -1
- package/dist/magma-components/p-0acb46c8.entry.js +0 -1
- package/dist/magma-components/p-0b10ef9f.system.entry.js +0 -1
- package/dist/magma-components/p-0b11f03b.entry.js +0 -1
- package/dist/magma-components/p-0be56202.system.entry.js +0 -1
- package/dist/magma-components/p-0de58147.entry.js +0 -1
- package/dist/magma-components/p-0e481e5c.system.entry.js +0 -1
- package/dist/magma-components/p-0f104850.system.entry.js +0 -1
- package/dist/magma-components/p-1073bf63.entry.js +0 -1
- package/dist/magma-components/p-11490a89.entry.js +0 -1
- package/dist/magma-components/p-137b0bbe.system.entry.js +0 -1
- package/dist/magma-components/p-14a98729.entry.js +0 -1
- package/dist/magma-components/p-14d858f8.system.entry.js +0 -1
- package/dist/magma-components/p-14e918de.system.entry.js +0 -1
- package/dist/magma-components/p-154ef5b9.entry.js +0 -1
- package/dist/magma-components/p-158af6e3.entry.js +0 -1
- package/dist/magma-components/p-17427d8a.system.entry.js +0 -1
- package/dist/magma-components/p-1805592d.entry.js +0 -1
- package/dist/magma-components/p-18563022.entry.js +0 -1
- package/dist/magma-components/p-19f99447.entry.js +0 -1
- package/dist/magma-components/p-1a56d383.system.entry.js +0 -1
- package/dist/magma-components/p-1bb7895a.system.entry.js +0 -1
- package/dist/magma-components/p-1ce791c1.system.entry.js +0 -1
- package/dist/magma-components/p-1da904c3.system.entry.js +0 -1
- package/dist/magma-components/p-20961bf1.entry.js +0 -1
- package/dist/magma-components/p-24a9ed63.system.entry.js +0 -1
- package/dist/magma-components/p-26b131cf.entry.js +0 -1
- package/dist/magma-components/p-28ebb626.entry.js +0 -1
- package/dist/magma-components/p-292f4566.system.entry.js +0 -1
- package/dist/magma-components/p-2a1d3680.system.entry.js +0 -1
- package/dist/magma-components/p-2ab75334.system.entry.js +0 -1
- package/dist/magma-components/p-2ccc796b.system.entry.js +0 -1
- package/dist/magma-components/p-2d9d0887.system.entry.js +0 -1
- package/dist/magma-components/p-2df01d02.system.entry.js +0 -1
- package/dist/magma-components/p-3145c7eb.entry.js +0 -1
- package/dist/magma-components/p-34018dfe.entry.js +0 -1
- package/dist/magma-components/p-35a9f1b4.system.entry.js +0 -18
- package/dist/magma-components/p-35ec8bbd.entry.js +0 -1
- package/dist/magma-components/p-370f9463.system.entry.js +0 -1
- package/dist/magma-components/p-387948c4.system.entry.js +0 -1
- package/dist/magma-components/p-3aeecbba.system.entry.js +0 -1
- package/dist/magma-components/p-3af9132f.system.entry.js +0 -1
- package/dist/magma-components/p-3bfd085f.system.entry.js +0 -1
- package/dist/magma-components/p-3c246a39.entry.js +0 -1
- package/dist/magma-components/p-3c2bf79b.entry.js +0 -1
- package/dist/magma-components/p-3ce52f3c.entry.js +0 -1
- package/dist/magma-components/p-3e5993b4.entry.js +0 -1
- package/dist/magma-components/p-3ef80cd4.system.entry.js +0 -1
- package/dist/magma-components/p-3fc3b8b4.entry.js +0 -1
- package/dist/magma-components/p-423955d1.system.entry.js +0 -1
- package/dist/magma-components/p-42f336df.system.entry.js +0 -1
- package/dist/magma-components/p-45a85712.system.entry.js +0 -1
- package/dist/magma-components/p-460cd731.system.entry.js +0 -1
- package/dist/magma-components/p-473f6954.entry.js +0 -1
- package/dist/magma-components/p-47fa0ecf.entry.js +0 -1
- package/dist/magma-components/p-4b07fe37.entry.js +0 -1
- package/dist/magma-components/p-4b884441.entry.js +0 -1
- package/dist/magma-components/p-4ba583c9.entry.js +0 -1
- package/dist/magma-components/p-4c08fe3e.entry.js +0 -1
- package/dist/magma-components/p-4f490917.entry.js +0 -1
- package/dist/magma-components/p-4f98fdba.system.entry.js +0 -1
- package/dist/magma-components/p-50553954.system.entry.js +0 -1
- package/dist/magma-components/p-523d4716.entry.js +0 -1
- package/dist/magma-components/p-52ccfafc.system.entry.js +0 -1
- package/dist/magma-components/p-52e2f903.entry.js +0 -1
- package/dist/magma-components/p-53195d95.system.entry.js +0 -1
- package/dist/magma-components/p-5488f51f.system.entry.js +0 -1
- package/dist/magma-components/p-553927f9.system.entry.js +0 -1
- package/dist/magma-components/p-55b4bbba.entry.js +0 -1
- package/dist/magma-components/p-583f5ffa.entry.js +0 -1
- package/dist/magma-components/p-59d65cff.entry.js +0 -1
- package/dist/magma-components/p-59f53701.system.entry.js +0 -1
- package/dist/magma-components/p-5b881091.entry.js +0 -1
- package/dist/magma-components/p-5c44d208.entry.js +0 -1
- package/dist/magma-components/p-5fdcd8e2.system.entry.js +0 -1
- package/dist/magma-components/p-5fe7b875.system.entry.js +0 -1
- package/dist/magma-components/p-614e7f83.system.entry.js +0 -1
- package/dist/magma-components/p-62cf9003.system.entry.js +0 -1
- package/dist/magma-components/p-63898681.entry.js +0 -1
- package/dist/magma-components/p-663a510e.entry.js +0 -1
- package/dist/magma-components/p-68f57bb1.entry.js +0 -1
- package/dist/magma-components/p-6ae4df92.system.entry.js +0 -1
- package/dist/magma-components/p-6d268a59.entry.js +0 -1
- package/dist/magma-components/p-7306b02e.system.entry.js +0 -17
- package/dist/magma-components/p-75011fed.system.entry.js +0 -9
- package/dist/magma-components/p-7595afcf.entry.js +0 -18
- package/dist/magma-components/p-77e9bd68.entry.js +0 -1
- package/dist/magma-components/p-7d836722.entry.js +0 -1
- package/dist/magma-components/p-7e037cf3.entry.js +0 -8
- package/dist/magma-components/p-8106dbfd.system.entry.js +0 -1
- package/dist/magma-components/p-82deeaa0.system.entry.js +0 -1
- package/dist/magma-components/p-83589b83.entry.js +0 -1
- package/dist/magma-components/p-83721814.entry.js +0 -18
- package/dist/magma-components/p-83de0e53.system.entry.js +0 -1
- package/dist/magma-components/p-849760e7.system.entry.js +0 -1
- package/dist/magma-components/p-85ac6e54.system.entry.js +0 -1
- package/dist/magma-components/p-87f8a213.entry.js +0 -1
- package/dist/magma-components/p-89bf698e.system.entry.js +0 -1
- package/dist/magma-components/p-89f96753.system.entry.js +0 -1
- package/dist/magma-components/p-8RYXTPXs.js +0 -1
- package/dist/magma-components/p-8b3065b4.entry.js +0 -1
- package/dist/magma-components/p-8bec8ad6.system.entry.js +0 -1
- package/dist/magma-components/p-8d76853c.system.entry.js +0 -1
- package/dist/magma-components/p-8f1ce3f1.system.entry.js +0 -1
- package/dist/magma-components/p-9021fa60.entry.js +0 -1
- package/dist/magma-components/p-90b72c1c.system.entry.js +0 -1
- package/dist/magma-components/p-90d5b6df.system.entry.js +0 -1
- package/dist/magma-components/p-913372ff.entry.js +0 -1
- package/dist/magma-components/p-94093140.system.entry.js +0 -1
- package/dist/magma-components/p-944d9b27.system.entry.js +0 -1
- package/dist/magma-components/p-94713401.entry.js +0 -1
- package/dist/magma-components/p-956b5ae6.entry.js +0 -1
- package/dist/magma-components/p-95eae04e.entry.js +0 -1
- package/dist/magma-components/p-961a2531.entry.js +0 -1
- package/dist/magma-components/p-9658cb0c.entry.js +0 -1
- package/dist/magma-components/p-96d1a168.entry.js +0 -1
- package/dist/magma-components/p-96f6a646.entry.js +0 -1
- package/dist/magma-components/p-98435b90.system.entry.js +0 -1
- package/dist/magma-components/p-988b0c7c.entry.js +0 -1
- package/dist/magma-components/p-98a05642.system.entry.js +0 -1
- package/dist/magma-components/p-99f7a1b6.system.entry.js +0 -1
- package/dist/magma-components/p-9a1940c1.system.entry.js +0 -1
- package/dist/magma-components/p-9a89bc78.system.entry.js +0 -1
- package/dist/magma-components/p-9ad586a7.system.entry.js +0 -1
- package/dist/magma-components/p-9b52918e.system.entry.js +0 -1
- package/dist/magma-components/p-9yaIBCJC.system.js +0 -1
- package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
- package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
- package/dist/magma-components/p-BudfaWhu.js +0 -1
- package/dist/magma-components/p-C1oxPa_J.js +0 -1
- package/dist/magma-components/p-CAd5312P.js +0 -2
- package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
- package/dist/magma-components/p-CxU_BeBE.js +0 -1
- package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
- package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
- package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
- package/dist/magma-components/p-a1af65e8.entry.js +0 -1
- package/dist/magma-components/p-a4oAcjYG.js +0 -5
- package/dist/magma-components/p-a5473293.system.entry.js +0 -1
- package/dist/magma-components/p-a6caafcb.system.entry.js +0 -1
- package/dist/magma-components/p-a7bd4585.entry.js +0 -1
- package/dist/magma-components/p-a88fba47.system.entry.js +0 -1
- package/dist/magma-components/p-a959ade4.entry.js +0 -1
- package/dist/magma-components/p-aa7d8972.entry.js +0 -1
- package/dist/magma-components/p-aa98652f.entry.js +0 -1
- package/dist/magma-components/p-aaeb0ee3.system.entry.js +0 -1
- package/dist/magma-components/p-ab89bf5b.system.entry.js +0 -1
- package/dist/magma-components/p-abc720e3.entry.js +0 -1
- package/dist/magma-components/p-abe87810.entry.js +0 -1
- package/dist/magma-components/p-ac80aca8.entry.js +0 -1
- package/dist/magma-components/p-acb07134.system.entry.js +0 -1
- package/dist/magma-components/p-acd4f96a.entry.js +0 -1
- package/dist/magma-components/p-af49bca2.entry.js +0 -1
- package/dist/magma-components/p-af670eaf.entry.js +0 -1
- package/dist/magma-components/p-b14a94e0.system.entry.js +0 -1
- package/dist/magma-components/p-b2bc194a.entry.js +0 -1
- package/dist/magma-components/p-b2e76c18.system.entry.js +0 -1
- package/dist/magma-components/p-b37dff80.system.entry.js +0 -1
- package/dist/magma-components/p-b3e3226e.entry.js +0 -1
- package/dist/magma-components/p-b40f1153.entry.js +0 -1
- package/dist/magma-components/p-b4709a95.entry.js +0 -1
- package/dist/magma-components/p-b5db6527.system.entry.js +0 -1
- package/dist/magma-components/p-b764defa.entry.js +0 -1
- package/dist/magma-components/p-b9b2501e.system.entry.js +0 -1
- package/dist/magma-components/p-b9b5bcdd.system.entry.js +0 -1
- package/dist/magma-components/p-ba2a0bc1.system.entry.js +0 -1
- package/dist/magma-components/p-bb4380cd.entry.js +0 -1
- package/dist/magma-components/p-bce3a8b0.system.entry.js +0 -1
- package/dist/magma-components/p-bd2998e6.system.entry.js +0 -1
- package/dist/magma-components/p-bd3dbc2d.entry.js +0 -1
- package/dist/magma-components/p-bed57abb.entry.js +0 -1
- package/dist/magma-components/p-bfed0b7a.entry.js +0 -1
- package/dist/magma-components/p-c6177cb9.system.entry.js +0 -1
- package/dist/magma-components/p-c638556c.entry.js +0 -1
- package/dist/magma-components/p-c6fa4a21.entry.js +0 -1
- package/dist/magma-components/p-c8e99385.system.entry.js +0 -1
- package/dist/magma-components/p-c9231987.entry.js +0 -1
- package/dist/magma-components/p-c9c51ba6.system.entry.js +0 -1
- package/dist/magma-components/p-cc53b30c.entry.js +0 -1
- package/dist/magma-components/p-ccc0521c.entry.js +0 -1
- package/dist/magma-components/p-cd71630e.system.entry.js +0 -1
- package/dist/magma-components/p-cd879243.system.entry.js +0 -1
- package/dist/magma-components/p-ce064d47.entry.js +0 -1
- package/dist/magma-components/p-d1eea8ca.system.entry.js +0 -1
- package/dist/magma-components/p-d2537229.system.entry.js +0 -1
- package/dist/magma-components/p-d2617a1a.entry.js +0 -1
- package/dist/magma-components/p-d41c4637.system.entry.js +0 -1
- package/dist/magma-components/p-d88f44aa.entry.js +0 -1
- package/dist/magma-components/p-dae9ae8e.system.entry.js +0 -1
- package/dist/magma-components/p-dd860de4.entry.js +0 -1
- package/dist/magma-components/p-df87e2f5.system.entry.js +0 -1
- package/dist/magma-components/p-dfe082be.system.entry.js +0 -1
- package/dist/magma-components/p-e00ba5a0.entry.js +0 -1
- package/dist/magma-components/p-e0d12fa2.system.entry.js +0 -1
- package/dist/magma-components/p-e2cd11c3.entry.js +0 -1
- package/dist/magma-components/p-e5fb3081.system.entry.js +0 -1
- package/dist/magma-components/p-e67a6452.entry.js +0 -1
- package/dist/magma-components/p-e6d8c9e3.system.entry.js +0 -1
- package/dist/magma-components/p-e71aecc1.entry.js +0 -1
- package/dist/magma-components/p-eac692ea.system.entry.js +0 -1
- package/dist/magma-components/p-ecf2e98d.system.entry.js +0 -1
- package/dist/magma-components/p-ed6d1453.system.entry.js +0 -1
- package/dist/magma-components/p-f289eb5a.entry.js +0 -1
- package/dist/magma-components/p-f3604c99.entry.js +0 -1
- package/dist/magma-components/p-f3dbca34.entry.js +0 -1
- package/dist/magma-components/p-f4b4bdf2.system.entry.js +0 -1
- package/dist/magma-components/p-f56d16f7.entry.js +0 -1
- package/dist/magma-components/p-f8014852.system.entry.js +0 -1
- package/dist/magma-components/p-f851100d.entry.js +0 -1
- package/dist/magma-components/p-f8d5adce.entry.js +0 -1
- package/dist/magma-components/p-fa427f75.system.entry.js +0 -1
- package/dist/magma-components/p-fa6a05b5.entry.js +0 -1
- package/dist/magma-components/p-fb8b0104.entry.js +0 -1
- package/dist/magma-components/p-fcf59139.system.entry.js +0 -1
- package/dist/magma-components/p-fe3d5720.system.entry.js +0 -1
- package/dist/magma-components/p-fe85ad8e.system.entry.js +0 -1
- package/dist/magma-components/p-ffae137a.entry.js +0 -1
- package/dist/magma-components/p-oCzRm29V.system.js +0 -1
- package/dist/magma-components/p-ttrRC6OE.js +0 -1
- package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
- package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -39
- package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
- package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
- package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
- package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
- package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
- package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
- package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
- package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
- package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
- package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
- package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
- package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
- package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
- package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
- package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
- package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
- package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
- package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
- package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
- package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
- package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
- package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
- package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
- package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
- package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
- package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
- package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
- package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
- package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
- package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
- package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
- package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
- package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
- package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
- package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
- package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
- package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
- package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
- package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
- package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
- package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
- package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
- package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
- package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
- package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
- package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
- package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
- package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
- package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -142
- package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
- package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
- package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
- package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
- package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
- package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
- package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
- package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
- package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
- package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
- package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
- package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
- package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
- package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
- package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
- package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
- package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
- package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
- package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
- package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
- package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
- package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
- package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
- package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
- package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
- package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
- package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
- package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
- package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
- package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
- package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
- package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
- package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
- package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
- package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
- package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
- package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
- package/dist/types/event-detail/theme-variant.d.ts +0 -5
- package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
- package/dist/types/storybook/color-scale.stories.d.ts +0 -7
- package/dist/types/storybook/components-preview.stories.d.ts +0 -33
- package/dist/types/storybook/example-page.stories.d.ts +0 -7
- package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
- package/dist/types/storybook/input-form.stories.d.ts +0 -7
- package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
- package/dist/types/test/file.d.ts +0 -35
- package/dist/types/test/mock.d.ts +0 -2
- /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
- /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
- /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
- /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
- /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
- /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
- /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
- /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
- /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
- /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
- /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
- /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
- /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
- /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
- /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
- /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
- /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
- /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
- /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
- /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
- /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
- /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
- /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
|
@@ -1,8 +1,103 @@
|
|
|
1
1
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, offset, shift, } from "@floating-ui/dom";
|
|
2
2
|
import { cssDurationToMilliseconds } from "./unit";
|
|
3
|
-
import { setAttributeIfEmpty } from "./aria";
|
|
3
|
+
import { hashRandomValue, setAttributeIfEmpty } from "./aria";
|
|
4
|
+
import { Build } from "@stencil/core";
|
|
5
|
+
/** Roles of a popup that `aria-haspopup` knows how to name: a panel that calls itself a `group` has none */
|
|
6
|
+
const HASPOPUP_ROLES = ['dialog', 'grid', 'listbox', 'menu', 'tree'];
|
|
7
|
+
/**
|
|
8
|
+
* A caller is wired only when it exposes a role that accepts the wiring: on a generic element
|
|
9
|
+
* `aria-expanded` and `aria-haspopup` are attributes ARIA does not allow (axe `aria-allowed-attr`),
|
|
10
|
+
* and a host that keeps its control inside its shadow root is generic exactly like a `div` - an
|
|
11
|
+
* `mds-tab-item` renders the tab as its inner `mds-button[role="tab"]`, an `mds-chip` puts
|
|
12
|
+
* `role="button"` on its label. Written on those hosts the attributes describe the wrapper and not
|
|
13
|
+
* the control, and inside a tablist they even make the item a child the `tab` role no longer covers
|
|
14
|
+
* (axe `aria-required-children`). Moving them onto the inner control is not an option either: an
|
|
15
|
+
* IDREF does not cross the shadow boundary.
|
|
16
|
+
*/
|
|
17
|
+
const CALLER_ROLES = ['button', 'combobox', 'link', 'menuitem', 'tab', 'treeitem'];
|
|
18
|
+
const NATIVE_CALLERS = ['A', 'BUTTON', 'INPUT', 'SELECT', 'SUMMARY', 'TEXTAREA'];
|
|
4
19
|
export class FloatingController {
|
|
5
|
-
constructor(host, arrowEl) {
|
|
20
|
+
constructor(host, arrowEl, role = 'menu') {
|
|
21
|
+
this._wired = false;
|
|
22
|
+
/** what was written on the caller, to be taken back when the target moves to another one:
|
|
23
|
+
* an attribute that was already there belongs to whoever wrote it and is none of our business */
|
|
24
|
+
this._written = [];
|
|
25
|
+
this._labelledByOurs = false;
|
|
26
|
+
/**
|
|
27
|
+
* Lets go of the caller the target no longer names. Left alone it keeps pointing at a panel
|
|
28
|
+
* that is not its own, with a state frozen on the last time it was open, and the panel keeps
|
|
29
|
+
* being labelled by it - `setAttributeIfEmpty` writes the label once and the second caller
|
|
30
|
+
* would never get it.
|
|
31
|
+
*/
|
|
32
|
+
this.unwireCaller = () => {
|
|
33
|
+
this._written.forEach((attribute) => this._caller.removeAttribute(attribute));
|
|
34
|
+
this._written = [];
|
|
35
|
+
if (this._labelledByOurs) {
|
|
36
|
+
this._host.removeAttribute('aria-labelledby');
|
|
37
|
+
this._labelledByOurs = false;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
this.writeOnCaller = (attribute, value) => {
|
|
41
|
+
if (this._caller.hasAttribute(attribute))
|
|
42
|
+
return;
|
|
43
|
+
this._caller.setAttribute(attribute, value);
|
|
44
|
+
this._written.push(attribute);
|
|
45
|
+
};
|
|
46
|
+
/** An IDREF does not cross a shadow boundary: a caller the host shares no tree with keeps the
|
|
47
|
+
* attributes that need no reference and loses the ones that do */
|
|
48
|
+
this.sameRoot = () => this._caller.getRootNode() === this._host.getRootNode();
|
|
49
|
+
this.callerAcceptsWiring = () => {
|
|
50
|
+
const role = this._caller.getAttribute('role');
|
|
51
|
+
return role !== null
|
|
52
|
+
? CALLER_ROLES.includes(role)
|
|
53
|
+
: NATIVE_CALLERS.includes(this._caller.tagName);
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Ties caller and popup to each other with real IDREFs - the wiring used to write the selector
|
|
57
|
+
* of the caller, which names no element at all, on both sides and towards the caller itself.
|
|
58
|
+
* Our own callers are waited for first: an `mds-button` writes its `role="button"` in its own
|
|
59
|
+
* `componentDidLoad`, and which of the two components loads first is not guaranteed.
|
|
60
|
+
*/
|
|
61
|
+
this.wireCaller = async () => {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
const caller = this._caller;
|
|
64
|
+
// the hydrate app has no registry to wait on (its `customElements` is null) and renders
|
|
65
|
+
// every component in one pass, so there the attributes are written on the spot - and kept
|
|
66
|
+
// by the client, `setAttributeIfEmpty` leaving a prerendered value alone
|
|
67
|
+
if (Build.isBrowser && caller.tagName.startsWith('MDS-')) {
|
|
68
|
+
await customElements.whenDefined(caller.tagName.toLowerCase());
|
|
69
|
+
await ((_b = (_a = caller).componentOnReady) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
70
|
+
}
|
|
71
|
+
// a target change while we waited has already wired another caller
|
|
72
|
+
if (caller !== this._caller)
|
|
73
|
+
return;
|
|
74
|
+
// a tooltip is not a popup its caller controls: it only describes it, and a description
|
|
75
|
+
// reaches a screen reader whatever role the caller has, generic included
|
|
76
|
+
if (this._role === 'tooltip') {
|
|
77
|
+
if (this.sameRoot()) {
|
|
78
|
+
const tipId = setAttributeIfEmpty(this._host, 'id', hashRandomValue('mds-tooltip'));
|
|
79
|
+
this.writeOnCaller('aria-describedby', tipId);
|
|
80
|
+
}
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (!this.callerAcceptsWiring())
|
|
84
|
+
return;
|
|
85
|
+
if (this.sameRoot()) {
|
|
86
|
+
const hostId = setAttributeIfEmpty(this._host, 'id', hashRandomValue('mds-dropdown'));
|
|
87
|
+
const callerId = setAttributeIfEmpty(caller, 'id', hashRandomValue('mds-dropdown-caller'));
|
|
88
|
+
this.writeOnCaller('aria-controls', hostId);
|
|
89
|
+
this._labelledByOurs = !this._host.hasAttribute('aria-labelledby');
|
|
90
|
+
setAttributeIfEmpty(this._host, 'aria-labelledby', callerId);
|
|
91
|
+
}
|
|
92
|
+
const popupRole = (_c = this._host.getAttribute('role')) !== null && _c !== void 0 ? _c : '';
|
|
93
|
+
if (HASPOPUP_ROLES.includes(popupRole)) {
|
|
94
|
+
this.writeOnCaller('aria-haspopup', popupRole);
|
|
95
|
+
}
|
|
96
|
+
if (!caller.hasAttribute('aria-expanded'))
|
|
97
|
+
this._written.push('aria-expanded');
|
|
98
|
+
this._wired = true;
|
|
99
|
+
this.syncExpanded(this._host.visible);
|
|
100
|
+
};
|
|
6
101
|
this.arrowInset = (middleware, arrowPosition) => {
|
|
7
102
|
const { arrow } = middleware;
|
|
8
103
|
const inset = { bottom: '', left: '', right: '', top: '' };
|
|
@@ -32,7 +127,7 @@ export class FloatingController {
|
|
|
32
127
|
return inset;
|
|
33
128
|
};
|
|
34
129
|
this.arrowTransform = (arrowPosition) => {
|
|
35
|
-
let transformProps = this._host.
|
|
130
|
+
let transformProps = !this._host.hideArrow && this._host.visible ? 'scale(1)' : 'scale(0)';
|
|
36
131
|
switch (arrowPosition) {
|
|
37
132
|
case 'bottom':
|
|
38
133
|
transformProps = `rotate(180deg) ${transformProps} translate(0, -100%)`;
|
|
@@ -65,6 +160,36 @@ export class FloatingController {
|
|
|
65
160
|
return { transformOrigin: 'center top' };
|
|
66
161
|
}
|
|
67
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* The pivot of the opening animation is the arrow, which the `arrow` middleware
|
|
165
|
+
* parks wherever it has to sit to keep pointing at the caller: after a shift it
|
|
166
|
+
* is nowhere near the centre of the panel. `convertToTransformOrigin` only knows
|
|
167
|
+
* the placement, so it answers `center top` for every bottom placement and the
|
|
168
|
+
* panel grows from a point that has nothing to do with the arrow - measured on a
|
|
169
|
+
* 408px panel pushed against the left edge, the two were 165px apart.
|
|
170
|
+
*/
|
|
171
|
+
this.arrowOrigin = (placement, middleware) => {
|
|
172
|
+
const { arrow: arrowData } = middleware;
|
|
173
|
+
if (!this.arrowEl || this._host.hideArrow || arrowData === undefined) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
const side = placement.split('-')[0];
|
|
177
|
+
if (arrowData.x !== null && arrowData.x !== undefined) {
|
|
178
|
+
const x = arrowData.x + this.arrowEl.offsetWidth / 2;
|
|
179
|
+
if (side === 'bottom')
|
|
180
|
+
return `${x}px top`;
|
|
181
|
+
if (side === 'top')
|
|
182
|
+
return `${x}px bottom`;
|
|
183
|
+
}
|
|
184
|
+
if (arrowData.y !== null && arrowData.y !== undefined) {
|
|
185
|
+
const y = arrowData.y + this.arrowEl.offsetHeight / 2;
|
|
186
|
+
if (side === 'right')
|
|
187
|
+
return `left ${y}px`;
|
|
188
|
+
if (side === 'left')
|
|
189
|
+
return `right ${y}px`;
|
|
190
|
+
}
|
|
191
|
+
return null;
|
|
192
|
+
};
|
|
68
193
|
this.convertToTransformOrigin = (position) => {
|
|
69
194
|
const positions = {
|
|
70
195
|
top: 'center bottom',
|
|
@@ -90,19 +215,19 @@ export class FloatingController {
|
|
|
90
215
|
if (this._host.shiftPadding) {
|
|
91
216
|
config.padding = this._host.shiftPadding;
|
|
92
217
|
}
|
|
93
|
-
if (this._host.
|
|
218
|
+
if (!this._host.disableAutoPlacement) {
|
|
94
219
|
middleware.push(autoPlacement());
|
|
95
220
|
}
|
|
96
221
|
if (this._host.offset) {
|
|
97
222
|
middleware.push(offset(this._host.offset));
|
|
98
223
|
}
|
|
99
|
-
if (
|
|
224
|
+
if (this._host.disableAutoPlacement && this._host.flip) {
|
|
100
225
|
middleware.push(flip(config));
|
|
101
226
|
}
|
|
102
|
-
if (this._host.
|
|
227
|
+
if (!this._host.disableShift) {
|
|
103
228
|
middleware.push(shift(config));
|
|
104
229
|
}
|
|
105
|
-
if (this.arrowEl && this._host.
|
|
230
|
+
if (this.arrowEl && !this._host.hideArrow) {
|
|
106
231
|
middleware.push(arrow({
|
|
107
232
|
element: this.arrowEl,
|
|
108
233
|
padding: this._host.arrowPadding,
|
|
@@ -113,12 +238,23 @@ export class FloatingController {
|
|
|
113
238
|
placement: this._host.placement,
|
|
114
239
|
strategy: this._host.strategy,
|
|
115
240
|
}).then(({ x, y, placement, middlewareData }) => {
|
|
241
|
+
var _a;
|
|
242
|
+
// The first placement must land instantly: until it happens the panel has no
|
|
243
|
+
// position at all, so animating left/top towards the caller would fly it in
|
|
244
|
+
// from the corner of the page. The mark goes on a frame LATER, because a
|
|
245
|
+
// value and the attribute that makes it transition, written in the same
|
|
246
|
+
// recalc, still animate - the frame in between is what makes the first
|
|
247
|
+
// placement a jump and every move after it a glide.
|
|
248
|
+
const firstPlacement = !this._host.hasAttribute('data-floating-placed');
|
|
116
249
|
Object.assign(this._host.style, {
|
|
117
250
|
left: `${x}px`,
|
|
118
251
|
top: `${y}px`,
|
|
119
|
-
transformOrigin: this.convertToTransformOrigin(placement),
|
|
252
|
+
transformOrigin: (_a = this.arrowOrigin(placement, middlewareData)) !== null && _a !== void 0 ? _a : this.convertToTransformOrigin(placement),
|
|
120
253
|
position: this._host.strategy,
|
|
121
254
|
});
|
|
255
|
+
if (firstPlacement) {
|
|
256
|
+
requestAnimationFrame(() => this._host.setAttribute('data-floating-placed', ''));
|
|
257
|
+
}
|
|
122
258
|
const arrowStyle = {};
|
|
123
259
|
const arrowPosition = {
|
|
124
260
|
top: 'bottom',
|
|
@@ -134,27 +270,57 @@ export class FloatingController {
|
|
|
134
270
|
}
|
|
135
271
|
});
|
|
136
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Starts positioning only once the panel has a box to measure. A closed panel is
|
|
275
|
+
* `display: none`, and Stencil reflects `visible` on its own render, so the tick
|
|
276
|
+
* that asks for the position still sees a panel of zero width: floating-ui then
|
|
277
|
+
* places a box that does not exist. On a `bottom` placement that lands it half a
|
|
278
|
+
* panel off; on `left` or `right` it lands it a whole panel off, which reads as
|
|
279
|
+
* the panel opening on the wrong side of the caller and sliding across to its
|
|
280
|
+
* place, because the correction that follows is transitioned like any other
|
|
281
|
+
* move.
|
|
282
|
+
*/
|
|
283
|
+
this.startWhenMeasurable = (attempts) => {
|
|
284
|
+
if (!this._host.visible)
|
|
285
|
+
return;
|
|
286
|
+
if (this._host.offsetWidth === 0 && attempts > 0) {
|
|
287
|
+
requestAnimationFrame(() => this.startWhenMeasurable(attempts - 1));
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition);
|
|
291
|
+
};
|
|
137
292
|
this._host = host;
|
|
138
293
|
this.arrowEl = arrowEl;
|
|
294
|
+
this._role = role;
|
|
139
295
|
}
|
|
140
296
|
updateCaller(target) {
|
|
141
297
|
var _a, _b, _c;
|
|
142
298
|
// search caller in document or rootNode of host (if target is in shadowDOM)
|
|
143
299
|
const caller = (_c = (_b = (_a = this._host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(target)) !== null && _c !== void 0 ? _c : this._host.getRootNode().querySelector(target);
|
|
144
300
|
if (!caller) {
|
|
145
|
-
|
|
301
|
+
// the target may legitimately be absent (e.g. during SSR the document
|
|
302
|
+
// only contains the component subtree being serialized)
|
|
303
|
+
console.warn(`FloatingController: target not found: ${target}`);
|
|
304
|
+
return null;
|
|
146
305
|
}
|
|
306
|
+
if (this._caller && this._caller !== caller)
|
|
307
|
+
this.unwireCaller();
|
|
147
308
|
this._caller = caller;
|
|
148
|
-
|
|
149
|
-
setAttributeIfEmpty(this.
|
|
150
|
-
|
|
151
|
-
setAttributeIfEmpty(this._host, 'aria-labelledby', target);
|
|
309
|
+
this._wired = false;
|
|
310
|
+
setAttributeIfEmpty(this._host, 'role', this._role);
|
|
311
|
+
void this.wireCaller();
|
|
152
312
|
return caller;
|
|
153
313
|
}
|
|
314
|
+
/** Whether the popup is open is state, not a default: it is rewritten at every change, so it
|
|
315
|
+
* cannot go through `setAttributeIfEmpty` */
|
|
316
|
+
syncExpanded(visible) {
|
|
317
|
+
if (this._wired)
|
|
318
|
+
this._caller.setAttribute('aria-expanded', `${visible}`);
|
|
319
|
+
}
|
|
154
320
|
updatePosition() {
|
|
155
321
|
if (this._host.visible) {
|
|
156
322
|
this.dismiss(); // to clean the old update function before update function
|
|
157
|
-
this.
|
|
323
|
+
this.startWhenMeasurable(3);
|
|
158
324
|
}
|
|
159
325
|
}
|
|
160
326
|
dismiss() {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Safe wrappers around ElementInternals methods. In Stencil's hydrate/SSR
|
|
3
|
+
* runtime (and in mock-doc spec tests) `@AttachInternals()` returns an inert
|
|
4
|
+
* proxy whose members are all `undefined`, so direct calls like
|
|
5
|
+
* `internals.setFormValue(...)` throw. Property reads (`internals.form`) are
|
|
6
|
+
* safe and don't need these wrappers.
|
|
7
|
+
*/
|
|
8
|
+
const setFormValue = (internals, value) => {
|
|
9
|
+
if (typeof (internals === null || internals === void 0 ? void 0 : internals.setFormValue) === 'function') {
|
|
10
|
+
internals.setFormValue(value);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const setValidity = (internals, flags, message, anchor) => {
|
|
14
|
+
if (typeof (internals === null || internals === void 0 ? void 0 : internals.setValidity) === 'function') {
|
|
15
|
+
internals.setValidity(flags, message, anchor);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export { setFormValue, setValidity };
|
|
@@ -30,18 +30,18 @@ export class KeyboardManager {
|
|
|
30
30
|
var _a;
|
|
31
31
|
(_a = this.elements.get(name)) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
|
|
32
32
|
};
|
|
33
|
+
// the handler goes on and comes off window by the same reference: `bind` writes a new function
|
|
34
|
+
// every time it is evaluated, so a removal that binds again names a listener window was never
|
|
35
|
+
// given, and attaching twice used to leave two of them behind
|
|
33
36
|
this.attachEscapeBehavior = (callback) => {
|
|
34
37
|
this.escapeCallback = callback;
|
|
35
38
|
if (typeof window !== 'undefined') {
|
|
36
|
-
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent
|
|
39
|
+
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent);
|
|
37
40
|
}
|
|
38
41
|
};
|
|
39
42
|
this.detachEscapeBehavior = () => {
|
|
40
|
-
this.escapeCallback = () => {
|
|
41
|
-
return;
|
|
42
|
-
};
|
|
43
43
|
if (typeof window !== 'undefined') {
|
|
44
|
-
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent
|
|
44
|
+
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent);
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
import mustache from "mustache";
|
|
2
|
+
import { preferenceStore } from "./preference";
|
|
2
3
|
export class Locale {
|
|
3
4
|
constructor(configData) {
|
|
4
5
|
this.rollbackLanguage = 'en';
|
|
5
6
|
this.set = (configData) => {
|
|
6
7
|
this.config = configData;
|
|
7
8
|
};
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (this.closestElement) {
|
|
12
|
-
if (this.closestElement.lang) {
|
|
13
|
-
this.language = this.closestElement.lang;
|
|
14
|
-
return this.language;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
this.language = this.rollbackLanguage;
|
|
18
|
-
return this.language;
|
|
19
|
-
};
|
|
20
|
-
this.update = (doc) => {
|
|
21
|
-
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
22
|
-
if (context) {
|
|
23
|
-
context.querySelectorAll('*').forEach((el) => {
|
|
24
|
-
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
25
|
-
if (el && 'updateLang' in el) {
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
-
el.updateLang();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
this.pluralize = (tag, context) => {
|
|
34
|
-
const languagePhrase = this.config[this.language]
|
|
35
|
-
? this.config[this.language][tag]
|
|
9
|
+
this.pluralize = (tag, context, language) => {
|
|
10
|
+
const languagePhrase = this.config[language]
|
|
11
|
+
? this.config[language][tag]
|
|
36
12
|
: this.config[this.rollbackLanguage][tag];
|
|
37
13
|
const phrases = [];
|
|
38
14
|
if (Array.isArray(languagePhrase)) {
|
|
@@ -57,11 +33,13 @@ export class Locale {
|
|
|
57
33
|
return mustache.render(translatePhrase, context);
|
|
58
34
|
};
|
|
59
35
|
this.get = (tag, context) => {
|
|
36
|
+
// Reading the store during render auto-subscribes the component to language changes
|
|
37
|
+
const { language } = preferenceStore.state;
|
|
60
38
|
if (context) {
|
|
61
|
-
return this.pluralize(tag, context);
|
|
39
|
+
return this.pluralize(tag, context, language);
|
|
62
40
|
}
|
|
63
|
-
return this.config[
|
|
64
|
-
? this.config[
|
|
41
|
+
return this.config[language]
|
|
42
|
+
? this.config[language][tag]
|
|
65
43
|
: this.config[this.rollbackLanguage][tag];
|
|
66
44
|
};
|
|
67
45
|
if (configData) {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createStore } from "@stencil/store";
|
|
2
|
+
// Allowed values per preference, mirroring the pref-<dim>-<value> classes the
|
|
3
|
+
// controllers publish.
|
|
4
|
+
const PREFERENCE_VALUES = {
|
|
5
|
+
animation: ['reduce', 'system', 'no-preference'],
|
|
6
|
+
consumption: ['low', 'medium', 'high'],
|
|
7
|
+
contrast: ['more', 'no-preference', 'system'],
|
|
8
|
+
// Two independent axes: the mode (light / dark / system, mds-pref-mode) and the
|
|
9
|
+
// scheme the named theme allows (mds-pref-theme). Both reflected on the host.
|
|
10
|
+
mode: ['light', 'dark', 'system'],
|
|
11
|
+
'theme-scheme': ['light', 'dark', 'all'],
|
|
12
|
+
};
|
|
13
|
+
const preferenceStore = createStore({ language: 'en' });
|
|
14
|
+
const MODE_VALUES = PREFERENCE_VALUES.mode;
|
|
15
|
+
/**
|
|
16
|
+
* Carry the v1 storage keys over to the v2 ones, once, before any controller
|
|
17
|
+
* reads them.
|
|
18
|
+
*
|
|
19
|
+
* v1 called the mode `mdsPrefTheme` and the named theme `mdsPrefThemeName`; v2
|
|
20
|
+
* calls them `mdsPrefMode` and `mdsPrefTheme`. The key `mdsPrefTheme` exists in
|
|
21
|
+
* both with a different meaning, so it has to be moved before `mds-pref-theme`
|
|
22
|
+
* reads it: a v1 `dark` read as a theme name would be applied as a theme, and
|
|
23
|
+
* the v1 mode would be lost. A mode value cannot be a theme name
|
|
24
|
+
* (`mds-pref-theme` rejects the three), which is what tells the two apart. It
|
|
25
|
+
* runs here, at module load, because the controllers load in no fixed order.
|
|
26
|
+
*/
|
|
27
|
+
const migrateLegacyPreferenceStorage = (storage) => {
|
|
28
|
+
const legacyMode = storage.getItem('mdsPrefTheme');
|
|
29
|
+
if (legacyMode !== null && MODE_VALUES.includes(legacyMode)) {
|
|
30
|
+
if (storage.getItem('mdsPrefMode') === null) {
|
|
31
|
+
storage.setItem('mdsPrefMode', legacyMode);
|
|
32
|
+
}
|
|
33
|
+
storage.removeItem('mdsPrefTheme');
|
|
34
|
+
}
|
|
35
|
+
const legacyTheme = storage.getItem('mdsPrefThemeName');
|
|
36
|
+
if (legacyTheme !== null) {
|
|
37
|
+
if (storage.getItem('mdsPrefTheme') === null) {
|
|
38
|
+
storage.setItem('mdsPrefTheme', legacyTheme);
|
|
39
|
+
}
|
|
40
|
+
storage.removeItem('mdsPrefThemeName');
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
if (typeof localStorage !== 'undefined') {
|
|
44
|
+
try {
|
|
45
|
+
migrateLegacyPreferenceStorage(localStorage);
|
|
46
|
+
}
|
|
47
|
+
catch (_a) {
|
|
48
|
+
// Storage blocked (private mode, sandboxed frame): nothing to migrate.
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const resolve = (preference) => {
|
|
52
|
+
const values = PREFERENCE_VALUES[preference];
|
|
53
|
+
const { classList } = document.documentElement;
|
|
54
|
+
return values.find((value) => classList.contains(`pref-${preference}-${value}`));
|
|
55
|
+
};
|
|
56
|
+
const resolveCornerShape = () => { var _a; return (_a = document.documentElement.getAttribute('data-corner-shape')) !== null && _a !== void 0 ? _a : undefined; };
|
|
57
|
+
// The store skips no-op assignments, so redundant syncs don't re-render consumers.
|
|
58
|
+
const syncPreferences = () => {
|
|
59
|
+
Object.keys(PREFERENCE_VALUES).forEach((preference) => {
|
|
60
|
+
preferenceStore.state[preference] = resolve(preference);
|
|
61
|
+
});
|
|
62
|
+
preferenceStore.state['corner-shape'] = resolveCornerShape();
|
|
63
|
+
};
|
|
64
|
+
const syncLanguage = () => {
|
|
65
|
+
preferenceStore.state.language = document.documentElement.lang || 'en';
|
|
66
|
+
};
|
|
67
|
+
if (typeof document !== 'undefined') {
|
|
68
|
+
syncPreferences();
|
|
69
|
+
syncLanguage();
|
|
70
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
71
|
+
new MutationObserver(syncPreferences).observe(document.documentElement, {
|
|
72
|
+
attributes: true,
|
|
73
|
+
attributeFilter: ['class', 'data-corner-shape'],
|
|
74
|
+
});
|
|
75
|
+
new MutationObserver(syncLanguage).observe(document.documentElement, {
|
|
76
|
+
attributes: true,
|
|
77
|
+
attributeFilter: ['lang'],
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Whether motion should be held back right now: the explicit `reduce` choice, or the OS
|
|
83
|
+
* preference when the choice is `system` and when no controller has published one at all.
|
|
84
|
+
*
|
|
85
|
+
* The stylesheets read the same three cases through `:host([pref-animation])`, but a
|
|
86
|
+
* stylesheet can only hold back what CSS drives. An animation written in JS - a GSAP
|
|
87
|
+
* timeline, a rAF loop, a tween of an attribute - has to ask for itself, and until it does
|
|
88
|
+
* the preference is only half kept.
|
|
89
|
+
*/
|
|
90
|
+
const prefersReducedMotion = () => {
|
|
91
|
+
const choice = preferenceStore.state.animation;
|
|
92
|
+
if (choice === 'reduce') {
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
if (choice === 'no-preference') {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
return (typeof window !== 'undefined' &&
|
|
99
|
+
typeof window.matchMedia === 'function' &&
|
|
100
|
+
window.matchMedia('(prefers-reduced-motion: reduce)').matches);
|
|
101
|
+
};
|
|
102
|
+
export { MODE_VALUES, migrateLegacyPreferenceStorage, preferenceStore, prefersReducedMotion };
|
|
@@ -34,6 +34,19 @@ const hasSlottedContent = (el, name) => {
|
|
|
34
34
|
const assignedNodes = slot.assignedNodes({ flatten: true });
|
|
35
35
|
return assignedNodes.some((node) => { var _a; return node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== ''; });
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Direct-child queries equivalent to `:scope > …` selectors. Stencil's
|
|
39
|
+
* mock-doc selector engine (spec tests and the hydrate/SSR build) cannot
|
|
40
|
+
* parse `:scope`, so host-lifecycle code must use these instead of
|
|
41
|
+
* `host.querySelector(':scope > [slot="x"]')`.
|
|
42
|
+
*/
|
|
43
|
+
const queryChildBySlot = (host, name) => {
|
|
44
|
+
var _a;
|
|
45
|
+
return (_a = Array.from(host.children).find((child) => child.getAttribute('slot') === name)) !== null && _a !== void 0 ? _a : null;
|
|
46
|
+
};
|
|
47
|
+
const queryChildrenBySlot = (host, name) => Array.from(host.children).filter((child) => child.getAttribute('slot') === name);
|
|
48
|
+
const hasChildWithSlot = (host, name) => queryChildBySlot(host, name) !== null;
|
|
49
|
+
const queryChildrenByTag = (host, tagName) => Array.from(host.children).filter((child) => child.tagName.toLowerCase() === tagName.toLowerCase());
|
|
37
50
|
/**
|
|
38
51
|
* Normalises a label-like string: trims whitespace and coerces empty/nullish
|
|
39
52
|
* values to `undefined`. Use inside `@Watch('label')` handlers when a component
|
|
@@ -71,4 +84,4 @@ const readSlottedLabel = (host) => {
|
|
|
71
84
|
const text = assigned.map((node) => { var _a; return (_a = node.textContent) !== null && _a !== void 0 ? _a : ''; }).join('');
|
|
72
85
|
return sanitizeLabel(text);
|
|
73
86
|
};
|
|
74
|
-
export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, sanitizeLabel, readSlottedLabel, };
|
|
87
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlottedContent, hasSlotted, hasChildWithSlot, queryChildBySlot, queryChildrenBySlot, queryChildrenByTag, sanitizeLabel, readSlottedLabel, };
|
|
@@ -15,10 +15,19 @@ class RandomText {
|
|
|
15
15
|
stop() {
|
|
16
16
|
cancelAnimationFrame(this.rafId);
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Every frame advances the first `stepCount` characters towards their target and leaves
|
|
20
|
+
* the rest where they are. The whole array is mapped, not a `slice` of it: a character
|
|
21
|
+
* that has not started yet is still far from its target, so it comes out as the
|
|
22
|
+
* placeholder instead of coming out as nothing. The string therefore has its final
|
|
23
|
+
* length from the very first frame, which is what keeps the box from collapsing - an
|
|
24
|
+
* output of zero characters has no line box at all, and everything around it jumps.
|
|
25
|
+
*/
|
|
18
26
|
step(randoms, stepCount, speed) {
|
|
19
27
|
const { str, charStep, minCharCode, maxCharCode, placeholderChar, onProgress, onComplete } = this;
|
|
20
|
-
const
|
|
21
|
-
|
|
28
|
+
const steppedArray = randoms.map((item, index) => {
|
|
29
|
+
if (index >= stepCount)
|
|
30
|
+
return item;
|
|
22
31
|
if (item > 0)
|
|
23
32
|
return item - 1;
|
|
24
33
|
if (item < 0)
|
|
@@ -32,7 +41,7 @@ class RandomText {
|
|
|
32
41
|
placeholderChar,
|
|
33
42
|
charStep,
|
|
34
43
|
})(steppedArray);
|
|
35
|
-
const updatedRandoms =
|
|
44
|
+
const updatedRandoms = steppedArray;
|
|
36
45
|
onProgress(output);
|
|
37
46
|
if (output !== str) {
|
|
38
47
|
this.rafId = requestAnimationFrame(() => {
|
|
@@ -14,53 +14,11 @@
|
|
|
14
14
|
* @prop --mds-accordion-padding-unselected: Sets the vertical padding of the component children mds-accordion-item when it's unselected
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@property --mds-accordion-border-color {
|
|
18
|
-
inherits: false;
|
|
19
|
-
initial-value: rgb(var(--tone-neutral-08, 107 107 107));
|
|
20
|
-
syntax: '<color>';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@property --mds-accordion-color {
|
|
24
|
-
inherits: false;
|
|
25
|
-
initial-value: rgb(var(--tone-neutral-03, 233 233 233));
|
|
26
|
-
syntax: '<color>';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@property --mds-accordion-description-color {
|
|
30
|
-
inherits: false;
|
|
31
|
-
initial-value: rgb(var(--tone-neutral-02, 244 244 244));
|
|
32
|
-
syntax: '<color>';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@property --mds-accordion-border-width {
|
|
36
|
-
inherits: false;
|
|
37
|
-
initial-value: 2px;
|
|
38
|
-
syntax: '<length>';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@property --mds-accordion-duration {
|
|
42
|
-
inherits: false;
|
|
43
|
-
initial-value: 300ms;
|
|
44
|
-
syntax: '<time>';
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@property --mds-accordion-padding-selected {
|
|
48
|
-
inherits: false;
|
|
49
|
-
initial-value: 1rem 0 2rem 0;
|
|
50
|
-
syntax: '<length>+';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@property --mds-accordion-padding-unselected {
|
|
54
|
-
inherits: false;
|
|
55
|
-
initial-value: 1rem 0;
|
|
56
|
-
syntax: '<length>+';
|
|
57
|
-
}
|
|
58
|
-
|
|
59
17
|
:host {
|
|
60
|
-
--mds-accordion-border-color: rgb(var(--
|
|
18
|
+
--mds-accordion-border-color: rgb(var(--magma-border-default, var(--magma-tint-border-default, var(--border-neutral-default, 196 196 196))));
|
|
61
19
|
--mds-accordion-border-width: 2px;
|
|
62
|
-
--mds-accordion-color: rgb(var(--
|
|
63
|
-
--mds-accordion-description-color: rgb(var(--
|
|
20
|
+
--mds-accordion-color: rgb(var(--magma-text-muted, var(--magma-tint-text-muted, var(--text-neutral-muted, 73 73 73))));
|
|
21
|
+
--mds-accordion-description-color: rgb(var(--magma-text-default, var(--magma-tint-text-default, var(--text-neutral-default, 5 5 5))));
|
|
64
22
|
--mds-accordion-duration: 300ms;
|
|
65
23
|
--mds-accordion-padding-selected: --spacing(400) 0 --spacing(800) 0;
|
|
66
24
|
--mds-accordion-padding-unselected: --spacing(400) 0;
|
|
@@ -68,38 +26,24 @@
|
|
|
68
26
|
display: grid;
|
|
69
27
|
}
|
|
70
28
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
29
|
+
/* Theme preference. The component takes its colours from semantic roles that
|
|
30
|
+
* flip per mode at :root (spec 6.1-6.3) and inherit into the shadow DOM, so it
|
|
31
|
+
* needs no per-mode dark refinement. The former dark override (a ramp step
|
|
32
|
+
* re-set to lift the colour off the old flat-black canvas) is intentionally gone. */
|
|
74
33
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host-context(:root.pref-theme-dark:not(.pref-theme-scheme-light)) {
|
|
83
|
-
--mds-accordion-border-color: rgb(var(--tone-neutral-06, 158 158 158));
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (prefers-color-scheme: dark) {
|
|
87
|
-
:host-context(:root.pref-theme-system:not(.pref-theme-scheme-light)),
|
|
88
|
-
:host-context(:root:not([data-magma-pref])) {
|
|
89
|
-
--mds-accordion-border-color: rgb(var(--tone-neutral-06, 158 158 158));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
34
|
+
/* Contrast preference. The component reflects the resolved mode from <html> onto
|
|
35
|
+
* its host as pref-contrast (see subscribePreference in @common/preference); these
|
|
36
|
+
* plain shadow selectors refine for high contrast. `more` is the explicit choice;
|
|
37
|
+
* `system` and no controller follow the OS via @media. Cross-browser, no :host-context. */
|
|
92
38
|
|
|
93
|
-
:host
|
|
94
|
-
--mds-accordion-
|
|
95
|
-
--mds-accordion-color: rgb(var(--tone-neutral-01, 255 255 255));
|
|
39
|
+
:host([pref-contrast='more']) {
|
|
40
|
+
--mds-accordion-color: rgb(var(--magma-text-default, var(--magma-tint-text-default, var(--text-neutral-default, 5 5 5))));
|
|
96
41
|
}
|
|
97
42
|
|
|
98
43
|
@media (prefers-contrast: more) {
|
|
99
|
-
:host
|
|
100
|
-
:host
|
|
101
|
-
--mds-accordion-
|
|
102
|
-
--mds-accordion-color: rgb(var(--tone-neutral-01, 255 255 255));
|
|
44
|
+
:host([pref-contrast='system']),
|
|
45
|
+
:host(:not([pref-contrast])) {
|
|
46
|
+
--mds-accordion-color: rgb(var(--magma-text-default, var(--magma-tint-text-default, var(--text-neutral-default, 5 5 5))));
|
|
103
47
|
}
|
|
104
48
|
}
|
|
105
49
|
|