@maggioli-design-system/magma 2.0.0-beta.3 → 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 +35 -3
- 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 -28
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -17
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion.cjs.entry.js +5 -22
- 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 +8 -21
- package/dist/cjs/mds-badge.cjs.entry.js +5 -26
- package/dist/cjs/mds-banner_3.cjs.entry.js +35 -70
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
- 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 +7 -15
- 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 +10 -32
- package/dist/cjs/mds-calendar_2.cjs.entry.js +123 -102
- 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 +4 -21
- package/dist/cjs/mds-details.cjs.entry.js +8 -18
- package/dist/cjs/mds-dropdown.cjs.entry.js +184 -58
- package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
- package/dist/cjs/mds-entity.cjs.entry.js +11 -23
- package/dist/cjs/mds-file-preview.cjs.entry.js +8 -36
- package/dist/cjs/mds-file.cjs.entry.js +6 -34
- package/dist/cjs/mds-filter-item.cjs.entry.js +6 -25
- package/dist/cjs/mds-filter.cjs.entry.js +19 -32
- package/dist/cjs/mds-header-bar.cjs.entry.js +11 -27
- package/dist/cjs/mds-header.cjs.entry.js +8 -22
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/mds-hr.cjs.entry.js +4 -17
- package/dist/cjs/mds-img.cjs.entry.js +8 -16
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range.cjs.entry.js +57 -43
- package/dist/cjs/mds-input-date.cjs.entry.js +14 -44
- package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
- package/dist/cjs/mds-input-otp.cjs.entry.js +37 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +9 -29
- package/dist/cjs/mds-input-select.cjs.entry.js +11 -41
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -55
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -40
- package/dist/cjs/mds-input-upload.cjs.entry.js +34 -36
- package/dist/cjs/mds-input.cjs.entry.js +23 -52
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
- package/dist/cjs/mds-keyboard.cjs.entry.js +5 -25
- package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -25
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +7 -29
- package/dist/cjs/mds-list-item.cjs.entry.js +4 -13
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +38 -4
- package/dist/cjs/mds-modal.cjs.entry.js +54 -47
- package/dist/cjs/mds-note.cjs.entry.js +7 -35
- package/dist/cjs/mds-notification.cjs.entry.js +12 -14
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -20
- package/dist/cjs/mds-paginator.cjs.entry.js +27 -32
- package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -15
- package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -23
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -23
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +10 -24
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +27 -15
- 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 +147 -230
- package/dist/cjs/mds-pref.cjs.entry.js +40 -17
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +7 -33
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +16 -39
- package/dist/cjs/mds-push-notification.cjs.entry.js +7 -20
- package/dist/cjs/mds-quote.cjs.entry.js +4 -13
- 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 -21
- package/dist/cjs/mds-status-bar.cjs.entry.js +4 -25
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -25
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -27
- package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -26
- package/dist/cjs/mds-tab_2.cjs.entry.js +14 -47
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-footer.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-header.cjs.entry.js +19 -31
- package/dist/cjs/mds-table-row.cjs.entry.js +20 -29
- package/dist/cjs/mds-table.cjs.entry.js +60 -50
- package/dist/cjs/mds-text.cjs.entry.js +36 -21
- package/dist/cjs/mds-toast.cjs.entry.js +10 -27
- package/dist/cjs/mds-tooltip.cjs.entry.js +16 -27
- package/dist/cjs/mds-tree-item.cjs.entry.js +12 -14
- package/dist/cjs/mds-tree.cjs.entry.js +12 -6
- package/dist/cjs/mds-url-view.cjs.entry.js +21 -41
- package/dist/cjs/mds-usage.cjs.entry.js +5 -33
- package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -25
- 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 +175 -9
- 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 +83 -59
- 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 +9 -65
- package/dist/collection/components/mds-accordion/mds-accordion.js +3 -27
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +63 -81
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -31
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -26
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +50 -36
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -16
- package/dist/collection/components/mds-author/mds-author.css +4 -0
- package/dist/collection/components/mds-author/mds-author.js +14 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +125 -111
- package/dist/collection/components/mds-avatar/mds-avatar.js +6 -21
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +12 -84
- 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 +6 -24
- package/dist/collection/components/mds-badge/mds-badge.css +168 -155
- package/dist/collection/components/mds-badge/mds-badge.js +2 -31
- package/dist/collection/components/mds-banner/mds-banner.css +149 -192
- package/dist/collection/components/mds-banner/mds-banner.js +10 -58
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +6 -24
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -70
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -37
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
- package/dist/collection/components/mds-button/mds-button.css +285 -333
- package/dist/collection/components/mds-button/mds-button.js +4 -24
- 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 +13 -4
- 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 +150 -127
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
- package/dist/collection/components/mds-card/mds-card.css +11 -35
- package/dist/collection/components/mds-card/mds-card.js +2 -22
- 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 +317 -278
- package/dist/collection/components/mds-chip/mds-chip.js +19 -61
- package/dist/collection/components/mds-details/mds-details.css +52 -28
- package/dist/collection/components/mds-details/mds-details.js +4 -16
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +102 -121
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +179 -59
- 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 +25 -76
- package/dist/collection/components/mds-entity/mds-entity.js +13 -24
- package/dist/collection/components/mds-file/mds-file.css +103 -79
- package/dist/collection/components/mds-file/mds-file.js +2 -56
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +277 -218
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -62
- package/dist/collection/components/mds-filter/mds-filter.css +66 -78
- package/dist/collection/components/mds-filter/mds-filter.js +16 -33
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +73 -53
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -29
- package/dist/collection/components/mds-header/mds-header.css +15 -68
- package/dist/collection/components/mds-header/mds-header.js +5 -22
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +60 -31
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -28
- package/dist/collection/components/mds-help/mds-help.css +1 -19
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +13 -104
- package/dist/collection/components/mds-hr/mds-hr.css +6 -18
- package/dist/collection/components/mds-hr/mds-hr.js +2 -21
- 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 +5 -36
- package/dist/collection/components/mds-input/mds-input.css +120 -158
- package/dist/collection/components/mds-input/mds-input.js +33 -65
- package/dist/collection/components/mds-input-date/mds-input-date.css +107 -124
- package/dist/collection/components/mds-input-date/mds-input-date.js +49 -62
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +100 -90
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +77 -62
- 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 +33 -45
- 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 +61 -19
- package/dist/collection/components/mds-input-range/mds-input-range.js +7 -31
- package/dist/collection/components/mds-input-select/mds-input-select.css +123 -156
- package/dist/collection/components/mds-input-select/mds-input-select.js +28 -61
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +91 -250
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -63
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +45 -31
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -16
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +84 -56
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -54
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +26 -37
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +30 -51
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +32 -126
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -46
- 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 +103 -40
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -27
- package/dist/collection/components/mds-label/mds-label.css +265 -354
- package/dist/collection/components/mds-label/mds-label.js +3 -54
- package/dist/collection/components/mds-list-item/mds-list-item.css +3 -9
- package/dist/collection/components/mds-list-item/mds-list-item.js +2 -16
- 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 +71 -101
- package/dist/collection/components/mds-modal/mds-modal.js +72 -45
- package/dist/collection/components/mds-note/mds-note.css +220 -198
- package/dist/collection/components/mds-note/mds-note.js +3 -61
- package/dist/collection/components/mds-notification/mds-notification.css +55 -89
- package/dist/collection/components/mds-notification/mds-notification.js +9 -16
- package/dist/collection/components/mds-paginator/mds-paginator.css +71 -35
- package/dist/collection/components/mds-paginator/mds-paginator.js +24 -37
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +78 -96
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -24
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +9 -9
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -38
- package/dist/collection/components/mds-pref/mds-pref.js +40 -40
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +50 -6
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -47
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +12 -12
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -47
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +4 -4
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +7 -48
- 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 +183 -239
- 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 +56 -47
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -31
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +71 -67
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -31
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +66 -42
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +3 -28
- 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 +63 -25
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +3 -28
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -31
- 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 +100 -94
- package/dist/collection/components/mds-progress/mds-progress.js +2 -27
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +7 -37
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -21
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +172 -136
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +13 -60
- package/dist/collection/components/mds-quote/mds-quote.css +2 -2
- package/dist/collection/components/mds-quote/mds-quote.js +2 -16
- 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 +12 -42
- package/dist/collection/components/mds-separator/mds-separator.js +2 -26
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -9
- package/dist/collection/components/mds-spinner/mds-spinner.js +2 -16
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +13 -23
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -31
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +8 -56
- 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 +68 -120
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -44
- package/dist/collection/components/mds-tab/mds-tab.css +85 -189
- package/dist/collection/components/mds-tab/mds-tab.js +5 -27
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +54 -10
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -31
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +62 -44
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -27
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +22 -37
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +23 -22
- package/dist/collection/components/mds-table/mds-table.css +86 -130
- package/dist/collection/components/mds-table/mds-table.js +57 -52
- package/dist/collection/components/mds-table-body/mds-table-body.css +54 -40
- package/dist/collection/components/mds-table-body/mds-table-body.js +2 -16
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +62 -32
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -16
- package/dist/collection/components/mds-table-footer/mds-table-footer.css +44 -0
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -16
- package/dist/collection/components/mds-table-header/mds-table-header.css +44 -0
- package/dist/collection/components/mds-table-header/mds-table-header.js +17 -48
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +47 -7
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +3 -13
- package/dist/collection/components/mds-table-row/mds-table-row.css +67 -49
- package/dist/collection/components/mds-table-row/mds-table-row.js +19 -50
- package/dist/collection/components/mds-text/mds-text.css +18 -38
- package/dist/collection/components/mds-text/mds-text.js +23 -22
- package/dist/collection/components/mds-toast/mds-toast.css +99 -90
- package/dist/collection/components/mds-toast/mds-toast.js +8 -28
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +68 -85
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +12 -31
- package/dist/collection/components/mds-tree/mds-tree.css +20 -212
- package/dist/collection/components/mds-tree/mds-tree.js +10 -4
- package/dist/collection/components/mds-tree-item/mds-tree-item.css +146 -267
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +7 -28
- package/dist/collection/components/mds-url-view/mds-url-view.css +59 -33
- package/dist/collection/components/mds-url-view/mds-url-view.js +17 -67
- package/dist/collection/components/mds-usage/mds-usage.css +80 -95
- package/dist/collection/components/mds-usage/mds-usage.js +2 -60
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +11 -26
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +11 -2
- package/dist/collection/components/mds-zero/mds-zero.css +56 -18
- package/dist/collection/components/mds-zero/mds-zero.js +2 -31
- 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 +750 -1137
- 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 -28
- package/dist/esm/mds-accordion-timer-item.entry.js +8 -17
- package/dist/esm/mds-accordion-timer.entry.js +3 -3
- package/dist/esm/mds-accordion.entry.js +5 -22
- 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 +8 -21
- package/dist/esm/mds-badge.entry.js +5 -26
- package/dist/esm/mds-banner_3.entry.js +35 -70
- package/dist/esm/mds-benchmark-bar.entry.js +2 -2
- 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 +7 -15
- 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 +10 -32
- package/dist/esm/mds-calendar_2.entry.js +123 -102
- 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 +4 -21
- package/dist/esm/mds-details.entry.js +8 -18
- package/dist/esm/mds-dropdown.entry.js +184 -58
- package/dist/esm/mds-emoji.entry.js +301 -181
- package/dist/esm/mds-entity.entry.js +11 -23
- package/dist/esm/mds-file-preview.entry.js +8 -36
- package/dist/esm/mds-file.entry.js +6 -34
- package/dist/esm/mds-filter-item.entry.js +6 -25
- package/dist/esm/mds-filter.entry.js +19 -32
- package/dist/esm/mds-header-bar.entry.js +11 -27
- package/dist/esm/mds-header.entry.js +8 -22
- package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm/mds-hr.entry.js +4 -17
- package/dist/esm/mds-img.entry.js +8 -16
- package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
- package/dist/esm/mds-input-date-range.entry.js +57 -43
- package/dist/esm/mds-input-date.entry.js +14 -44
- package/dist/esm/mds-input-field.entry.js +42 -6
- package/dist/esm/mds-input-otp.entry.js +37 -3
- package/dist/esm/mds-input-range.entry.js +9 -29
- package/dist/esm/mds-input-select.entry.js +11 -41
- package/dist/esm/mds-input-switch_2.entry.js +19 -55
- package/dist/esm/mds-input-tip_2.entry.js +8 -40
- package/dist/esm/mds-input-upload.entry.js +34 -36
- package/dist/esm/mds-input.entry.js +23 -52
- package/dist/esm/mds-keyboard-key.entry.js +5 -14
- package/dist/esm/mds-keyboard.entry.js +5 -25
- package/dist/esm/mds-kpi-item.entry.js +12 -25
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +7 -29
- package/dist/esm/mds-list-item.entry.js +4 -13
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +38 -4
- package/dist/esm/mds-modal.entry.js +54 -47
- package/dist/esm/mds-note.entry.js +7 -35
- package/dist/esm/mds-notification.entry.js +12 -14
- package/dist/esm/mds-paginator-item.entry.js +5 -20
- package/dist/esm/mds-paginator.entry.js +27 -32
- package/dist/esm/mds-policy-ai.entry.js +5 -15
- package/dist/esm/mds-pref-animation.entry.js +7 -23
- package/dist/esm/mds-pref-consumption.entry.js +7 -23
- package/dist/esm/mds-pref-contrast.entry.js +10 -24
- package/dist/esm/mds-pref-language-item.entry.js +27 -15
- 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 +147 -230
- package/dist/esm/mds-pref.entry.js +40 -17
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -25
- package/dist/esm/mds-price-table-features-row.entry.js +4 -25
- package/dist/esm/mds-price-table-features.entry.js +4 -25
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +3 -3
- package/dist/esm/mds-price-table-list.entry.js +4 -25
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +7 -33
- package/dist/esm/mds-push-notification-item.entry.js +16 -39
- package/dist/esm/mds-push-notification.entry.js +7 -20
- package/dist/esm/mds-quote.entry.js +4 -13
- 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 -21
- package/dist/esm/mds-status-bar.entry.js +4 -25
- package/dist/esm/mds-stepper-bar-item.entry.js +14 -25
- package/dist/esm/mds-stepper-bar.entry.js +21 -12
- package/dist/esm/mds-tab-bar-item.entry.js +6 -27
- package/dist/esm/mds-tab-bar.entry.js +5 -26
- package/dist/esm/mds-tab_2.entry.js +14 -47
- package/dist/esm/mds-table-body.entry.js +4 -13
- package/dist/esm/mds-table-footer.entry.js +4 -13
- package/dist/esm/mds-table-header-cell.entry.js +4 -13
- package/dist/esm/mds-table-header.entry.js +19 -31
- package/dist/esm/mds-table-row.entry.js +20 -29
- package/dist/esm/mds-table.entry.js +60 -50
- package/dist/esm/mds-text.entry.js +36 -21
- package/dist/esm/mds-toast.entry.js +10 -27
- package/dist/esm/mds-tooltip.entry.js +16 -27
- package/dist/esm/mds-tree-item.entry.js +12 -14
- package/dist/esm/mds-tree.entry.js +12 -6
- package/dist/esm/mds-url-view.entry.js +21 -41
- package/dist/esm/mds-usage.entry.js +5 -33
- package/dist/esm/mds-video-wall.entry.js +8 -4
- package/dist/esm/mds-zero.entry.js +4 -25
- 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 +4268 -3165
- package/dist/hydrate/index.mjs +4268 -3165
- 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 +5337 -7124
- package/dist/types/common/date.d.ts +5 -1
- package/dist/types/common/floating-controller.d.ts +56 -2
- 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 +48 -16
- 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 +0 -8
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +0 -10
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +0 -4
- package/dist/types/components/mds-author/mds-author.d.ts +2 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +0 -6
- package/dist/types/components/mds-badge/mds-badge.d.ts +0 -10
- package/dist/types/components/mds-banner/mds-banner.d.ts +2 -16
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -6
- package/dist/types/components/mds-button/mds-button.d.ts +0 -7
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +27 -18
- package/dist/types/components/mds-card/mds-card.d.ts +0 -8
- 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 -15
- package/dist/types/components/mds-details/mds-details.d.ts +0 -5
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +33 -12
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
- package/dist/types/components/mds-entity/mds-entity.d.ts +3 -10
- package/dist/types/components/mds-file/mds-file.d.ts +0 -15
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -15
- package/dist/types/components/mds-filter/mds-filter.d.ts +10 -10
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -9
- package/dist/types/components/mds-header/mds-header.d.ts +0 -7
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -11
- package/dist/types/components/mds-hr/mds-hr.d.ts +0 -6
- package/dist/types/components/mds-img/mds-img.d.ts +1 -7
- package/dist/types/components/mds-input/mds-input.d.ts +7 -15
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +9 -14
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +9 -12
- 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-range/mds-input-range.d.ts +0 -10
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -14
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -11
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +0 -4
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -13
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +2 -7
- package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
- package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +0 -11
- 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 -10
- package/dist/types/components/mds-label/mds-label.d.ts +0 -12
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +0 -4
- 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 +17 -16
- package/dist/types/components/mds-note/mds-note.d.ts +0 -15
- package/dist/types/components/mds-notification/mds-notification.d.ts +0 -3
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -11
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +0 -7
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +0 -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 +0 -10
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +0 -10
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +0 -10
- 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 -45
- 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-price-table-features/mds-price-table-features.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +0 -10
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +0 -10
- package/dist/types/components/mds-progress/mds-progress.d.ts +0 -10
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +0 -6
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -17
- package/dist/types/components/mds-quote/mds-quote.d.ts +0 -4
- package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
- package/dist/types/components/mds-separator/mds-separator.d.ts +0 -8
- package/dist/types/components/mds-spinner/mds-spinner.d.ts +0 -4
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +0 -10
- 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 -9
- package/dist/types/components/mds-tab/mds-tab.d.ts +0 -9
- package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +0 -10
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +0 -10
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +5 -8
- package/dist/types/components/mds-table/mds-table.d.ts +10 -14
- package/dist/types/components/mds-table-body/mds-table-body.d.ts +0 -4
- package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +0 -4
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +0 -4
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -9
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +0 -4
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -10
- package/dist/types/components/mds-text/mds-text.d.ts +0 -4
- package/dist/types/components/mds-toast/mds-toast.d.ts +2 -11
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +0 -9
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -5
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -15
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -16
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
- package/dist/types/components/mds-zero/mds-zero.d.ts +0 -10
- package/dist/types/components.d.ts +243 -239
- 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 +58 -64
- package/dist/cjs/date-dnDGaLCn.js +0 -16
- package/dist/cjs/floating-controller-CXEVR1wX.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/preference-BdpIXWLP.js +0 -81
- package/dist/cjs/slot-CI0KpgtY.js +0 -52
- package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -39
- 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 -388
- 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/preference.js +0 -1
- package/dist/components/slot.js +0 -1
- package/dist/esm/date-C1oxPa_J.js +0 -14
- package/dist/esm/floating-controller-D5eXU5Mk.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/preference-fMwnXhio.js +0 -79
- package/dist/esm/slot-ttrRC6OE.js +0 -48
- package/dist/esm-es5/date-C1oxPa_J.js +0 -1
- package/dist/esm-es5/floating-controller-D5eXU5Mk.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/preference-fMwnXhio.js +0 -1
- package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
- package/dist/magma-components/p-0105d7c7.entry.js +0 -8
- package/dist/magma-components/p-022defe8.entry.js +0 -1
- package/dist/magma-components/p-02d858d0.entry.js +0 -1
- package/dist/magma-components/p-0607a2b3.entry.js +0 -1
- package/dist/magma-components/p-0af4d0ef.entry.js +0 -1
- package/dist/magma-components/p-0b91aae4.entry.js +0 -1
- package/dist/magma-components/p-0bb29dbd.system.entry.js +0 -1
- package/dist/magma-components/p-0c1a5df0.entry.js +0 -1
- package/dist/magma-components/p-0e986d85.entry.js +0 -18
- package/dist/magma-components/p-0ea42813.entry.js +0 -1
- package/dist/magma-components/p-0fe5aeaf.system.entry.js +0 -1
- package/dist/magma-components/p-10ddec99.system.entry.js +0 -1
- package/dist/magma-components/p-11567740.entry.js +0 -1
- package/dist/magma-components/p-116238cf.system.entry.js +0 -1
- package/dist/magma-components/p-1239667c.system.entry.js +0 -1
- package/dist/magma-components/p-1518fda3.system.entry.js +0 -1
- package/dist/magma-components/p-16c94506.system.entry.js +0 -1
- package/dist/magma-components/p-18823bfc.system.entry.js +0 -1
- package/dist/magma-components/p-188e94ef.system.entry.js +0 -1
- package/dist/magma-components/p-19446c9e.entry.js +0 -1
- package/dist/magma-components/p-1a73c7b0.system.entry.js +0 -1
- package/dist/magma-components/p-1ad03ee9.entry.js +0 -1
- package/dist/magma-components/p-1c4038f7.system.entry.js +0 -1
- package/dist/magma-components/p-2035564c.system.entry.js +0 -1
- package/dist/magma-components/p-2128ce5a.system.entry.js +0 -1
- package/dist/magma-components/p-21ee64ec.entry.js +0 -1
- package/dist/magma-components/p-224d2f55.entry.js +0 -1
- package/dist/magma-components/p-23791e85.system.entry.js +0 -1
- package/dist/magma-components/p-248c1b2c.system.entry.js +0 -1
- package/dist/magma-components/p-249b80a5.entry.js +0 -1
- package/dist/magma-components/p-262daf4f.entry.js +0 -1
- package/dist/magma-components/p-288ce251.entry.js +0 -1
- package/dist/magma-components/p-2a804b82.entry.js +0 -1
- package/dist/magma-components/p-2aff9851.system.entry.js +0 -1
- package/dist/magma-components/p-2b0667f6.system.entry.js +0 -1
- package/dist/magma-components/p-2bd03b3d.system.entry.js +0 -1
- package/dist/magma-components/p-2bfa7ed9.system.entry.js +0 -1
- package/dist/magma-components/p-2c6c80e8.entry.js +0 -1
- package/dist/magma-components/p-2e88e014.system.entry.js +0 -1
- package/dist/magma-components/p-2f5cc981.system.entry.js +0 -1
- package/dist/magma-components/p-31403b12.entry.js +0 -1
- package/dist/magma-components/p-31616d0b.entry.js +0 -1
- package/dist/magma-components/p-33b03c17.system.entry.js +0 -1
- package/dist/magma-components/p-353f30cc.system.entry.js +0 -1
- package/dist/magma-components/p-35482f9d.system.entry.js +0 -1
- package/dist/magma-components/p-35b5889a.system.entry.js +0 -1
- package/dist/magma-components/p-36d9d329.system.entry.js +0 -1
- package/dist/magma-components/p-36fd1ed7.system.entry.js +0 -1
- package/dist/magma-components/p-377c94ee.system.entry.js +0 -1
- package/dist/magma-components/p-385f395d.system.entry.js +0 -1
- package/dist/magma-components/p-39c09a42.system.entry.js +0 -1
- package/dist/magma-components/p-3_AKUQtJ.system.js +0 -1
- package/dist/magma-components/p-3c306ed0.system.entry.js +0 -1
- package/dist/magma-components/p-3de6fa18.entry.js +0 -1
- package/dist/magma-components/p-41da539f.entry.js +0 -1
- package/dist/magma-components/p-422bb9e2.system.entry.js +0 -1
- package/dist/magma-components/p-447c2d1b.entry.js +0 -1
- package/dist/magma-components/p-44e2965d.entry.js +0 -1
- package/dist/magma-components/p-46266f27.entry.js +0 -1
- package/dist/magma-components/p-4630472f.entry.js +0 -1
- package/dist/magma-components/p-4671336c.entry.js +0 -1
- package/dist/magma-components/p-4803d24f.system.entry.js +0 -1
- package/dist/magma-components/p-4a929c1c.entry.js +0 -1
- package/dist/magma-components/p-4bc7756a.system.entry.js +0 -1
- package/dist/magma-components/p-4f8ae676.system.entry.js +0 -1
- package/dist/magma-components/p-50c922ad.system.entry.js +0 -1
- package/dist/magma-components/p-50cdb70c.system.entry.js +0 -1
- package/dist/magma-components/p-52c10dbf.system.entry.js +0 -1
- package/dist/magma-components/p-52e35c13.system.entry.js +0 -1
- package/dist/magma-components/p-56a8f1d0.system.entry.js +0 -1
- package/dist/magma-components/p-5724212b.entry.js +0 -1
- package/dist/magma-components/p-5be1c273.entry.js +0 -1
- package/dist/magma-components/p-5d05fa1a.entry.js +0 -1
- package/dist/magma-components/p-5de4bf4f.entry.js +0 -1
- package/dist/magma-components/p-5e626696.entry.js +0 -1
- package/dist/magma-components/p-5f1532c0.system.entry.js +0 -1
- package/dist/magma-components/p-5fe8c814.entry.js +0 -1
- package/dist/magma-components/p-60e8812c.system.entry.js +0 -17
- package/dist/magma-components/p-611fa0a4.entry.js +0 -1
- package/dist/magma-components/p-61fefe1b.system.entry.js +0 -1
- package/dist/magma-components/p-62c9216f.system.entry.js +0 -1
- package/dist/magma-components/p-652b4e43.entry.js +0 -1
- package/dist/magma-components/p-6a92f533.entry.js +0 -1
- package/dist/magma-components/p-6b3569a0.entry.js +0 -1
- package/dist/magma-components/p-6b9175f1.system.entry.js +0 -1
- package/dist/magma-components/p-6ecfec17.entry.js +0 -1
- package/dist/magma-components/p-6ed096d3.system.entry.js +0 -1
- package/dist/magma-components/p-6ee86191.entry.js +0 -1
- package/dist/magma-components/p-70719b58.entry.js +0 -1
- package/dist/magma-components/p-70e1a436.entry.js +0 -1
- package/dist/magma-components/p-725d9e09.entry.js +0 -1
- package/dist/magma-components/p-726a76f0.entry.js +0 -1
- package/dist/magma-components/p-72d91c6f.system.entry.js +0 -1
- package/dist/magma-components/p-73926a10.entry.js +0 -1
- package/dist/magma-components/p-7499262d.system.entry.js +0 -1
- package/dist/magma-components/p-750214a3.entry.js +0 -1
- package/dist/magma-components/p-7590a160.entry.js +0 -1
- package/dist/magma-components/p-75fa7e6f.system.entry.js +0 -1
- package/dist/magma-components/p-765447d4.system.entry.js +0 -1
- package/dist/magma-components/p-76cb480d.entry.js +0 -1
- package/dist/magma-components/p-79e12ac8.entry.js +0 -1
- package/dist/magma-components/p-7b4b9b88.system.entry.js +0 -1
- package/dist/magma-components/p-7c464f28.entry.js +0 -1
- package/dist/magma-components/p-7d338f59.system.entry.js +0 -1
- package/dist/magma-components/p-81e16f90.system.entry.js +0 -1
- package/dist/magma-components/p-82c6cdb9.system.entry.js +0 -1
- package/dist/magma-components/p-83b01f8e.system.entry.js +0 -1
- package/dist/magma-components/p-8546f46f.system.entry.js +0 -1
- package/dist/magma-components/p-85a2d99d.entry.js +0 -1
- package/dist/magma-components/p-8620f425.entry.js +0 -1
- package/dist/magma-components/p-89581b08.system.entry.js +0 -1
- package/dist/magma-components/p-8964a9fe.entry.js +0 -1
- package/dist/magma-components/p-899cd759.entry.js +0 -1
- package/dist/magma-components/p-8RYXTPXs.js +0 -1
- package/dist/magma-components/p-8b2408b2.entry.js +0 -1
- package/dist/magma-components/p-8b9f6896.entry.js +0 -1
- package/dist/magma-components/p-8bde0c42.entry.js +0 -1
- package/dist/magma-components/p-8d5955ca.system.entry.js +0 -1
- package/dist/magma-components/p-91a1d3d5.entry.js +0 -1
- package/dist/magma-components/p-93538408.system.entry.js +0 -1
- package/dist/magma-components/p-94ff105b.system.entry.js +0 -1
- package/dist/magma-components/p-96f7ec63.entry.js +0 -1
- package/dist/magma-components/p-97144490.entry.js +0 -1
- package/dist/magma-components/p-999b0698.system.entry.js +0 -1
- package/dist/magma-components/p-9e533765.system.entry.js +0 -18
- 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-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-DssKRrAV.system.js +0 -1
- package/dist/magma-components/p-MSUJeuJp.js +0 -1
- package/dist/magma-components/p-a24d6d4a.system.entry.js +0 -1
- package/dist/magma-components/p-a24dadaa.system.entry.js +0 -1
- package/dist/magma-components/p-a2b84011.system.entry.js +0 -1
- package/dist/magma-components/p-a2d761d6.entry.js +0 -1
- package/dist/magma-components/p-a379adca.entry.js +0 -1
- package/dist/magma-components/p-a46f7424.system.entry.js +0 -1
- package/dist/magma-components/p-a47708f1.system.entry.js +0 -1
- package/dist/magma-components/p-a4d11055.system.entry.js +0 -1
- package/dist/magma-components/p-a4oAcjYG.js +0 -5
- package/dist/magma-components/p-a5ef9d32.entry.js +0 -18
- package/dist/magma-components/p-a6103622.entry.js +0 -1
- package/dist/magma-components/p-a6b8b861.entry.js +0 -1
- package/dist/magma-components/p-a6bdaa85.entry.js +0 -1
- package/dist/magma-components/p-a716833c.system.entry.js +0 -1
- package/dist/magma-components/p-a877906d.system.entry.js +0 -1
- package/dist/magma-components/p-a8a2d90e.system.entry.js +0 -1
- package/dist/magma-components/p-a92edada.entry.js +0 -1
- package/dist/magma-components/p-aafec5fe.entry.js +0 -1
- package/dist/magma-components/p-abce0c57.system.entry.js +0 -1
- package/dist/magma-components/p-ac2ee475.entry.js +0 -1
- package/dist/magma-components/p-ac5baffa.system.entry.js +0 -1
- package/dist/magma-components/p-ad1ad433.system.entry.js +0 -1
- package/dist/magma-components/p-ae433eb9.entry.js +0 -1
- package/dist/magma-components/p-afaef9a1.entry.js +0 -1
- package/dist/magma-components/p-b257222c.system.entry.js +0 -1
- package/dist/magma-components/p-b472ed3c.entry.js +0 -1
- package/dist/magma-components/p-b4fc19e9.entry.js +0 -1
- package/dist/magma-components/p-b53ef2c1.entry.js +0 -1
- package/dist/magma-components/p-b7dedc9f.entry.js +0 -1
- package/dist/magma-components/p-b97edfb5.entry.js +0 -1
- package/dist/magma-components/p-bc851caf.entry.js +0 -1
- package/dist/magma-components/p-bc8ef479.system.entry.js +0 -9
- package/dist/magma-components/p-bdc54840.system.entry.js +0 -1
- package/dist/magma-components/p-bf29ca5a.entry.js +0 -1
- package/dist/magma-components/p-bfc29d3b.system.entry.js +0 -1
- package/dist/magma-components/p-bff1e84c.system.entry.js +0 -1
- package/dist/magma-components/p-c01c49b6.entry.js +0 -1
- package/dist/magma-components/p-c0296d86.system.entry.js +0 -1
- package/dist/magma-components/p-c036f516.entry.js +0 -1
- package/dist/magma-components/p-c3d8aa52.entry.js +0 -1
- package/dist/magma-components/p-c4e7b103.system.entry.js +0 -1
- package/dist/magma-components/p-c7a0a746.system.entry.js +0 -1
- package/dist/magma-components/p-c92a772e.entry.js +0 -1
- package/dist/magma-components/p-ca09ab1d.system.entry.js +0 -1
- package/dist/magma-components/p-cc9212ce.system.entry.js +0 -1
- package/dist/magma-components/p-cc95225c.system.entry.js +0 -1
- package/dist/magma-components/p-cd49c455.entry.js +0 -1
- package/dist/magma-components/p-d0542487.entry.js +0 -1
- package/dist/magma-components/p-d0dfe659.entry.js +0 -1
- package/dist/magma-components/p-d0eb94ea.system.entry.js +0 -1
- package/dist/magma-components/p-d3e5c4eb.system.entry.js +0 -1
- package/dist/magma-components/p-d4295773.entry.js +0 -1
- package/dist/magma-components/p-d5700423.system.entry.js +0 -1
- package/dist/magma-components/p-d838cb1c.system.entry.js +0 -1
- package/dist/magma-components/p-d9605a5d.system.entry.js +0 -1
- package/dist/magma-components/p-daa8f835.entry.js +0 -1
- package/dist/magma-components/p-db4e2a0b.system.entry.js +0 -1
- package/dist/magma-components/p-de0dac8f.entry.js +0 -1
- package/dist/magma-components/p-de8204f9.entry.js +0 -1
- package/dist/magma-components/p-e0b841e3.entry.js +0 -1
- package/dist/magma-components/p-e35ab355.entry.js +0 -1
- package/dist/magma-components/p-e44e2652.system.entry.js +0 -1
- package/dist/magma-components/p-e48d23f4.system.entry.js +0 -1
- package/dist/magma-components/p-e570aec5.system.entry.js +0 -1
- package/dist/magma-components/p-e57698df.system.entry.js +0 -1
- package/dist/magma-components/p-e669739e.entry.js +0 -1
- package/dist/magma-components/p-e8fa7a07.entry.js +0 -1
- package/dist/magma-components/p-ea2c8dd1.entry.js +0 -1
- package/dist/magma-components/p-ea881c45.system.entry.js +0 -1
- package/dist/magma-components/p-ebfb6963.system.entry.js +0 -1
- package/dist/magma-components/p-eca8523b.system.entry.js +0 -1
- package/dist/magma-components/p-ef142420.system.entry.js +0 -1
- package/dist/magma-components/p-ef56af85.system.entry.js +0 -1
- package/dist/magma-components/p-f0762290.entry.js +0 -1
- package/dist/magma-components/p-f1832c1e.system.entry.js +0 -1
- package/dist/magma-components/p-f4b1974a.entry.js +0 -1
- package/dist/magma-components/p-f7cfc9a7.system.entry.js +0 -1
- package/dist/magma-components/p-f83a9e08.entry.js +0 -1
- package/dist/magma-components/p-f8ee5fec.system.entry.js +0 -1
- package/dist/magma-components/p-f91dab2b.entry.js +0 -1
- package/dist/magma-components/p-fMwnXhio.js +0 -1
- package/dist/magma-components/p-fa61d03c.entry.js +0 -1
- package/dist/magma-components/p-fbf423a7.system.entry.js +0 -1
- package/dist/magma-components/p-fbfb589c.entry.js +0 -1
- package/dist/magma-components/p-fc56d9ae.entry.js +0 -1
- package/dist/magma-components/p-fc862fe2.system.entry.js +0 -1
- package/dist/magma-components/p-fd574e21.entry.js +0 -1
- package/dist/magma-components/p-fd649ac2.entry.js +0 -1
- package/dist/magma-components/p-fed36619.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 -40
- 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 -156
- 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
|
@@ -0,0 +1,1680 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom positioning reference element.
|
|
3
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7
|
+
const alignments = ['start', 'end'];
|
|
8
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
9
|
+
const min = Math.min;
|
|
10
|
+
const max = Math.max;
|
|
11
|
+
const round = Math.round;
|
|
12
|
+
const floor = Math.floor;
|
|
13
|
+
const createCoords = v => ({
|
|
14
|
+
x: v,
|
|
15
|
+
y: v
|
|
16
|
+
});
|
|
17
|
+
const oppositeSideMap = {
|
|
18
|
+
left: 'right',
|
|
19
|
+
right: 'left',
|
|
20
|
+
bottom: 'top',
|
|
21
|
+
top: 'bottom'
|
|
22
|
+
};
|
|
23
|
+
function clamp(start, value, end) {
|
|
24
|
+
return max(start, min(value, end));
|
|
25
|
+
}
|
|
26
|
+
function evaluate(value, param) {
|
|
27
|
+
return typeof value === 'function' ? value(param) : value;
|
|
28
|
+
}
|
|
29
|
+
function getSide(placement) {
|
|
30
|
+
return placement.split('-')[0];
|
|
31
|
+
}
|
|
32
|
+
function getAlignment(placement) {
|
|
33
|
+
return placement.split('-')[1];
|
|
34
|
+
}
|
|
35
|
+
function getOppositeAxis(axis) {
|
|
36
|
+
return axis === 'x' ? 'y' : 'x';
|
|
37
|
+
}
|
|
38
|
+
function getAxisLength(axis) {
|
|
39
|
+
return axis === 'y' ? 'height' : 'width';
|
|
40
|
+
}
|
|
41
|
+
function getSideAxis(placement) {
|
|
42
|
+
const firstChar = placement[0];
|
|
43
|
+
return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
|
|
44
|
+
}
|
|
45
|
+
function getAlignmentAxis(placement) {
|
|
46
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
47
|
+
}
|
|
48
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
49
|
+
if (rtl === void 0) {
|
|
50
|
+
rtl = false;
|
|
51
|
+
}
|
|
52
|
+
const alignment = getAlignment(placement);
|
|
53
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
54
|
+
const length = getAxisLength(alignmentAxis);
|
|
55
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
56
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
57
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
58
|
+
}
|
|
59
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
60
|
+
}
|
|
61
|
+
function getExpandedPlacements(placement) {
|
|
62
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
63
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
64
|
+
}
|
|
65
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
66
|
+
return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
|
|
67
|
+
}
|
|
68
|
+
const lrPlacement = ['left', 'right'];
|
|
69
|
+
const rlPlacement = ['right', 'left'];
|
|
70
|
+
const tbPlacement = ['top', 'bottom'];
|
|
71
|
+
const btPlacement = ['bottom', 'top'];
|
|
72
|
+
function getSideList(side, isStart, rtl) {
|
|
73
|
+
switch (side) {
|
|
74
|
+
case 'top':
|
|
75
|
+
case 'bottom':
|
|
76
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
77
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
78
|
+
case 'left':
|
|
79
|
+
case 'right':
|
|
80
|
+
return isStart ? tbPlacement : btPlacement;
|
|
81
|
+
default:
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
86
|
+
const alignment = getAlignment(placement);
|
|
87
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
88
|
+
if (alignment) {
|
|
89
|
+
list = list.map(side => side + "-" + alignment);
|
|
90
|
+
if (flipAlignment) {
|
|
91
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return list;
|
|
95
|
+
}
|
|
96
|
+
function getOppositePlacement(placement) {
|
|
97
|
+
const side = getSide(placement);
|
|
98
|
+
return oppositeSideMap[side] + placement.slice(side.length);
|
|
99
|
+
}
|
|
100
|
+
function expandPaddingObject(padding) {
|
|
101
|
+
var _padding$top, _padding$right, _padding$bottom, _padding$left;
|
|
102
|
+
return {
|
|
103
|
+
top: (_padding$top = padding.top) != null ? _padding$top : 0,
|
|
104
|
+
right: (_padding$right = padding.right) != null ? _padding$right : 0,
|
|
105
|
+
bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
|
|
106
|
+
left: (_padding$left = padding.left) != null ? _padding$left : 0
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function getPaddingObject(padding) {
|
|
110
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
111
|
+
top: padding,
|
|
112
|
+
right: padding,
|
|
113
|
+
bottom: padding,
|
|
114
|
+
left: padding
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function rectToClientRect(rect) {
|
|
118
|
+
const {
|
|
119
|
+
x,
|
|
120
|
+
y,
|
|
121
|
+
width,
|
|
122
|
+
height
|
|
123
|
+
} = rect;
|
|
124
|
+
return {
|
|
125
|
+
width,
|
|
126
|
+
height,
|
|
127
|
+
top: y,
|
|
128
|
+
left: x,
|
|
129
|
+
right: x + width,
|
|
130
|
+
bottom: y + height,
|
|
131
|
+
x,
|
|
132
|
+
y
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
137
|
+
let {
|
|
138
|
+
reference,
|
|
139
|
+
floating
|
|
140
|
+
} = _ref;
|
|
141
|
+
const sideAxis = getSideAxis(placement);
|
|
142
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
143
|
+
const alignLength = getAxisLength(alignmentAxis);
|
|
144
|
+
const side = getSide(placement);
|
|
145
|
+
const isVertical = sideAxis === 'y';
|
|
146
|
+
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
147
|
+
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
148
|
+
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
149
|
+
let coords;
|
|
150
|
+
switch (side) {
|
|
151
|
+
case 'top':
|
|
152
|
+
coords = {
|
|
153
|
+
x: commonX,
|
|
154
|
+
y: reference.y - floating.height
|
|
155
|
+
};
|
|
156
|
+
break;
|
|
157
|
+
case 'bottom':
|
|
158
|
+
coords = {
|
|
159
|
+
x: commonX,
|
|
160
|
+
y: reference.y + reference.height
|
|
161
|
+
};
|
|
162
|
+
break;
|
|
163
|
+
case 'right':
|
|
164
|
+
coords = {
|
|
165
|
+
x: reference.x + reference.width,
|
|
166
|
+
y: commonY
|
|
167
|
+
};
|
|
168
|
+
break;
|
|
169
|
+
case 'left':
|
|
170
|
+
coords = {
|
|
171
|
+
x: reference.x - floating.width,
|
|
172
|
+
y: commonY
|
|
173
|
+
};
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
coords = {
|
|
177
|
+
x: reference.x,
|
|
178
|
+
y: reference.y
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
const alignment = getAlignment(placement);
|
|
182
|
+
if (alignment) {
|
|
183
|
+
coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
|
|
184
|
+
}
|
|
185
|
+
return coords;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
190
|
+
* element is overflowing a given clipping boundary on each side.
|
|
191
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
192
|
+
* - negative = how many pixels left before it will overflow
|
|
193
|
+
* - 0 = lies flush with the boundary
|
|
194
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
195
|
+
*/
|
|
196
|
+
async function detectOverflow(state, options) {
|
|
197
|
+
var _await$platform$isEle;
|
|
198
|
+
if (options === void 0) {
|
|
199
|
+
options = {};
|
|
200
|
+
}
|
|
201
|
+
const {
|
|
202
|
+
x,
|
|
203
|
+
y,
|
|
204
|
+
platform,
|
|
205
|
+
rects,
|
|
206
|
+
elements,
|
|
207
|
+
strategy
|
|
208
|
+
} = state;
|
|
209
|
+
const {
|
|
210
|
+
boundary = 'clippingAncestors',
|
|
211
|
+
rootBoundary = 'viewport',
|
|
212
|
+
elementContext = 'floating',
|
|
213
|
+
altBoundary = false,
|
|
214
|
+
padding = 0
|
|
215
|
+
} = evaluate(options, state);
|
|
216
|
+
const paddingObject = getPaddingObject(padding);
|
|
217
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
218
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
219
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
220
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
221
|
+
boundary,
|
|
222
|
+
rootBoundary,
|
|
223
|
+
strategy
|
|
224
|
+
}));
|
|
225
|
+
const rect = elementContext === 'floating' ? {
|
|
226
|
+
x,
|
|
227
|
+
y,
|
|
228
|
+
width: rects.floating.width,
|
|
229
|
+
height: rects.floating.height
|
|
230
|
+
} : rects.reference;
|
|
231
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
232
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
233
|
+
x: 1,
|
|
234
|
+
y: 1
|
|
235
|
+
};
|
|
236
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
237
|
+
elements,
|
|
238
|
+
rect,
|
|
239
|
+
offsetParent,
|
|
240
|
+
strategy
|
|
241
|
+
}) : rect);
|
|
242
|
+
return {
|
|
243
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
244
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
245
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
246
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
|
|
251
|
+
const MAX_RESET_COUNT = 50;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
255
|
+
* next to a given reference element.
|
|
256
|
+
*
|
|
257
|
+
* This export does not have any `platform` interface logic. You will need to
|
|
258
|
+
* write one for the platform you are using Floating UI with.
|
|
259
|
+
*/
|
|
260
|
+
const computePosition$1 = async (reference, floating, config) => {
|
|
261
|
+
const {
|
|
262
|
+
placement = 'bottom',
|
|
263
|
+
strategy = 'absolute',
|
|
264
|
+
middleware = [],
|
|
265
|
+
platform
|
|
266
|
+
} = config;
|
|
267
|
+
const platformWithDetectOverflow = platform.detectOverflow ? platform : {
|
|
268
|
+
...platform,
|
|
269
|
+
detectOverflow
|
|
270
|
+
};
|
|
271
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
272
|
+
let rects = await platform.getElementRects({
|
|
273
|
+
reference,
|
|
274
|
+
floating,
|
|
275
|
+
strategy
|
|
276
|
+
});
|
|
277
|
+
let {
|
|
278
|
+
x,
|
|
279
|
+
y
|
|
280
|
+
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
281
|
+
let statefulPlacement = placement;
|
|
282
|
+
let resetCount = 0;
|
|
283
|
+
const middlewareData = {};
|
|
284
|
+
for (let i = 0; i < middleware.length; i++) {
|
|
285
|
+
const currentMiddleware = middleware[i];
|
|
286
|
+
if (!currentMiddleware) {
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
const {
|
|
290
|
+
name,
|
|
291
|
+
fn
|
|
292
|
+
} = currentMiddleware;
|
|
293
|
+
const {
|
|
294
|
+
x: nextX,
|
|
295
|
+
y: nextY,
|
|
296
|
+
data,
|
|
297
|
+
reset
|
|
298
|
+
} = await fn({
|
|
299
|
+
x,
|
|
300
|
+
y,
|
|
301
|
+
initialPlacement: placement,
|
|
302
|
+
placement: statefulPlacement,
|
|
303
|
+
strategy,
|
|
304
|
+
middlewareData,
|
|
305
|
+
rects,
|
|
306
|
+
platform: platformWithDetectOverflow,
|
|
307
|
+
elements: {
|
|
308
|
+
reference,
|
|
309
|
+
floating
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
x = nextX != null ? nextX : x;
|
|
313
|
+
y = nextY != null ? nextY : y;
|
|
314
|
+
middlewareData[name] = {
|
|
315
|
+
...middlewareData[name],
|
|
316
|
+
...data
|
|
317
|
+
};
|
|
318
|
+
if (reset && resetCount < MAX_RESET_COUNT) {
|
|
319
|
+
resetCount++;
|
|
320
|
+
if (typeof reset === 'object') {
|
|
321
|
+
if (reset.placement) {
|
|
322
|
+
statefulPlacement = reset.placement;
|
|
323
|
+
}
|
|
324
|
+
if (reset.rects) {
|
|
325
|
+
rects = reset.rects === true ? await platform.getElementRects({
|
|
326
|
+
reference,
|
|
327
|
+
floating,
|
|
328
|
+
strategy
|
|
329
|
+
}) : reset.rects;
|
|
330
|
+
}
|
|
331
|
+
({
|
|
332
|
+
x,
|
|
333
|
+
y
|
|
334
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
335
|
+
}
|
|
336
|
+
i = -1;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
x,
|
|
341
|
+
y,
|
|
342
|
+
placement: statefulPlacement,
|
|
343
|
+
strategy,
|
|
344
|
+
middlewareData
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Provides data to position an inner element of the floating element so that it
|
|
350
|
+
* appears centered to the reference element.
|
|
351
|
+
* @see https://floating-ui.com/docs/arrow
|
|
352
|
+
*/
|
|
353
|
+
const arrow$1 = options => ({
|
|
354
|
+
name: 'arrow',
|
|
355
|
+
options,
|
|
356
|
+
async fn(state) {
|
|
357
|
+
const {
|
|
358
|
+
x,
|
|
359
|
+
y,
|
|
360
|
+
placement,
|
|
361
|
+
rects,
|
|
362
|
+
platform,
|
|
363
|
+
elements,
|
|
364
|
+
middlewareData
|
|
365
|
+
} = state;
|
|
366
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
367
|
+
const {
|
|
368
|
+
element,
|
|
369
|
+
padding = 0
|
|
370
|
+
} = evaluate(options, state) || {};
|
|
371
|
+
if (element == null) {
|
|
372
|
+
return {};
|
|
373
|
+
}
|
|
374
|
+
const paddingObject = getPaddingObject(padding);
|
|
375
|
+
const coords = {
|
|
376
|
+
x,
|
|
377
|
+
y
|
|
378
|
+
};
|
|
379
|
+
const axis = getAlignmentAxis(placement);
|
|
380
|
+
const length = getAxisLength(axis);
|
|
381
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
382
|
+
const isYAxis = axis === 'y';
|
|
383
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
384
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
385
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
386
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
387
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
388
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
389
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
390
|
+
|
|
391
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
392
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
393
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
394
|
+
}
|
|
395
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
396
|
+
|
|
397
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
398
|
+
// centered, modify the padding so that it is centered.
|
|
399
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
400
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
401
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
402
|
+
|
|
403
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
404
|
+
// point is outside the floating element's bounds.
|
|
405
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
406
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
407
|
+
const offset = clamp(minPadding, center, max);
|
|
408
|
+
|
|
409
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
410
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
411
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
|
412
|
+
// a single reset is performed when this is true.
|
|
413
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
414
|
+
const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
|
|
415
|
+
return {
|
|
416
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
417
|
+
data: {
|
|
418
|
+
[axis]: offset,
|
|
419
|
+
centerOffset: center - offset - alignmentOffset,
|
|
420
|
+
...(shouldAddOffset && {
|
|
421
|
+
alignmentOffset
|
|
422
|
+
})
|
|
423
|
+
},
|
|
424
|
+
reset: shouldAddOffset
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
430
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
431
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
432
|
+
if (alignment) {
|
|
433
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
434
|
+
}
|
|
435
|
+
return true;
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
440
|
+
* that has the most space available automatically, without needing to specify a
|
|
441
|
+
* preferred placement. Alternative to `flip`.
|
|
442
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
443
|
+
*/
|
|
444
|
+
const autoPlacement$1 = function (options) {
|
|
445
|
+
if (options === void 0) {
|
|
446
|
+
options = {};
|
|
447
|
+
}
|
|
448
|
+
return {
|
|
449
|
+
name: 'autoPlacement',
|
|
450
|
+
options,
|
|
451
|
+
async fn(state) {
|
|
452
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
453
|
+
const {
|
|
454
|
+
rects,
|
|
455
|
+
middlewareData,
|
|
456
|
+
placement,
|
|
457
|
+
platform,
|
|
458
|
+
elements
|
|
459
|
+
} = state;
|
|
460
|
+
const {
|
|
461
|
+
crossAxis = false,
|
|
462
|
+
alignment,
|
|
463
|
+
allowedPlacements = placements,
|
|
464
|
+
autoAlignment = true,
|
|
465
|
+
...detectOverflowOptions
|
|
466
|
+
} = evaluate(options, state);
|
|
467
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
468
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
469
|
+
const currentPlacement = placements$1[currentIndex];
|
|
470
|
+
if (currentPlacement == null) {
|
|
471
|
+
return {};
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// Make `computeCoords` start from the right place.
|
|
475
|
+
if (placement !== currentPlacement) {
|
|
476
|
+
return {
|
|
477
|
+
reset: {
|
|
478
|
+
placement: placements$1[0]
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
483
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
484
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
485
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
486
|
+
placement: currentPlacement,
|
|
487
|
+
overflows: currentOverflows
|
|
488
|
+
}];
|
|
489
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
|
490
|
+
|
|
491
|
+
// There are more placements to check.
|
|
492
|
+
if (nextPlacement) {
|
|
493
|
+
return {
|
|
494
|
+
data: {
|
|
495
|
+
index: currentIndex + 1,
|
|
496
|
+
overflows: allOverflows
|
|
497
|
+
},
|
|
498
|
+
reset: {
|
|
499
|
+
placement: nextPlacement
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
504
|
+
const alignment = getAlignment(d.placement);
|
|
505
|
+
return [d.placement, alignment && crossAxis ?
|
|
506
|
+
// Check along the mainAxis and main crossAxis side.
|
|
507
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
508
|
+
// Check only the mainAxis.
|
|
509
|
+
d.overflows[0], d.overflows];
|
|
510
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
511
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
512
|
+
// Aligned placements should not check their opposite crossAxis
|
|
513
|
+
// side.
|
|
514
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
515
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
516
|
+
if (resetPlacement !== placement) {
|
|
517
|
+
return {
|
|
518
|
+
data: {
|
|
519
|
+
index: currentIndex + 1,
|
|
520
|
+
overflows: allOverflows
|
|
521
|
+
},
|
|
522
|
+
reset: {
|
|
523
|
+
placement: resetPlacement
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
return {};
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
534
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
535
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
536
|
+
* @see https://floating-ui.com/docs/flip
|
|
537
|
+
*/
|
|
538
|
+
const flip$1 = function (options) {
|
|
539
|
+
if (options === void 0) {
|
|
540
|
+
options = {};
|
|
541
|
+
}
|
|
542
|
+
return {
|
|
543
|
+
name: 'flip',
|
|
544
|
+
options,
|
|
545
|
+
async fn(state) {
|
|
546
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
547
|
+
const {
|
|
548
|
+
placement,
|
|
549
|
+
middlewareData,
|
|
550
|
+
rects,
|
|
551
|
+
initialPlacement,
|
|
552
|
+
platform,
|
|
553
|
+
elements
|
|
554
|
+
} = state;
|
|
555
|
+
const {
|
|
556
|
+
mainAxis: checkMainAxis = true,
|
|
557
|
+
crossAxis: checkCrossAxis = true,
|
|
558
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
559
|
+
fallbackStrategy = 'bestFit',
|
|
560
|
+
fallbackAxisSideDirection = 'none',
|
|
561
|
+
flipAlignment = true,
|
|
562
|
+
...detectOverflowOptions
|
|
563
|
+
} = evaluate(options, state);
|
|
564
|
+
|
|
565
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
566
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
567
|
+
// work.
|
|
568
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
569
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
570
|
+
return {};
|
|
571
|
+
}
|
|
572
|
+
const side = getSide(placement);
|
|
573
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
574
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
575
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
576
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
577
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
578
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
579
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
580
|
+
}
|
|
581
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
582
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
583
|
+
const overflows = [];
|
|
584
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
585
|
+
if (checkMainAxis) {
|
|
586
|
+
overflows.push(overflow[side]);
|
|
587
|
+
}
|
|
588
|
+
if (checkCrossAxis) {
|
|
589
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
590
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
591
|
+
}
|
|
592
|
+
overflowsData = [...overflowsData, {
|
|
593
|
+
placement,
|
|
594
|
+
overflows
|
|
595
|
+
}];
|
|
596
|
+
|
|
597
|
+
// One or more sides is overflowing.
|
|
598
|
+
if (!overflows.every(side => side <= 0)) {
|
|
599
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
600
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
601
|
+
const nextPlacement = placements[nextIndex];
|
|
602
|
+
if (nextPlacement) {
|
|
603
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
604
|
+
if (!ignoreCrossAxisOverflow ||
|
|
605
|
+
// We leave the current main axis only if every placement on that axis
|
|
606
|
+
// overflows the main axis.
|
|
607
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
608
|
+
// Try next placement and re-run the lifecycle.
|
|
609
|
+
return {
|
|
610
|
+
data: {
|
|
611
|
+
index: nextIndex,
|
|
612
|
+
overflows: overflowsData
|
|
613
|
+
},
|
|
614
|
+
reset: {
|
|
615
|
+
placement: nextPlacement
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
622
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
623
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
624
|
+
|
|
625
|
+
// Otherwise fallback.
|
|
626
|
+
if (!resetPlacement) {
|
|
627
|
+
switch (fallbackStrategy) {
|
|
628
|
+
case 'bestFit':
|
|
629
|
+
{
|
|
630
|
+
var _overflowsData$filter2;
|
|
631
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
632
|
+
if (hasFallbackAxisSideDirection) {
|
|
633
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
634
|
+
return currentSideAxis === initialSideAxis ||
|
|
635
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
636
|
+
// reading directions favoring greater width.
|
|
637
|
+
currentSideAxis === 'y';
|
|
638
|
+
}
|
|
639
|
+
return true;
|
|
640
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
641
|
+
if (placement) {
|
|
642
|
+
resetPlacement = placement;
|
|
643
|
+
}
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
case 'initialPlacement':
|
|
647
|
+
resetPlacement = initialPlacement;
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if (placement !== resetPlacement) {
|
|
652
|
+
return {
|
|
653
|
+
reset: {
|
|
654
|
+
placement: resetPlacement
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return {};
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
665
|
+
|
|
666
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
667
|
+
// Derivable.
|
|
668
|
+
|
|
669
|
+
async function convertValueToCoords(state, options) {
|
|
670
|
+
const {
|
|
671
|
+
placement,
|
|
672
|
+
platform,
|
|
673
|
+
elements
|
|
674
|
+
} = state;
|
|
675
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
676
|
+
const side = getSide(placement);
|
|
677
|
+
const alignment = getAlignment(placement);
|
|
678
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
679
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
680
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
681
|
+
const rawValue = evaluate(options, state);
|
|
682
|
+
|
|
683
|
+
// eslint-disable-next-line prefer-const
|
|
684
|
+
let {
|
|
685
|
+
mainAxis,
|
|
686
|
+
crossAxis,
|
|
687
|
+
alignmentAxis
|
|
688
|
+
} = typeof rawValue === 'number' ? {
|
|
689
|
+
mainAxis: rawValue,
|
|
690
|
+
crossAxis: 0,
|
|
691
|
+
alignmentAxis: null
|
|
692
|
+
} : {
|
|
693
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
694
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
695
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
696
|
+
};
|
|
697
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
698
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
699
|
+
}
|
|
700
|
+
return isVertical ? {
|
|
701
|
+
x: crossAxis * crossAxisMulti,
|
|
702
|
+
y: mainAxis * mainAxisMulti
|
|
703
|
+
} : {
|
|
704
|
+
x: mainAxis * mainAxisMulti,
|
|
705
|
+
y: crossAxis * crossAxisMulti
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Modifies the placement by translating the floating element along the
|
|
711
|
+
* specified axes.
|
|
712
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
713
|
+
* object may be passed.
|
|
714
|
+
* @see https://floating-ui.com/docs/offset
|
|
715
|
+
*/
|
|
716
|
+
const offset$1 = function (options) {
|
|
717
|
+
if (options === void 0) {
|
|
718
|
+
options = 0;
|
|
719
|
+
}
|
|
720
|
+
return {
|
|
721
|
+
name: 'offset',
|
|
722
|
+
options,
|
|
723
|
+
async fn(state) {
|
|
724
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
725
|
+
const {
|
|
726
|
+
x,
|
|
727
|
+
y,
|
|
728
|
+
placement,
|
|
729
|
+
middlewareData
|
|
730
|
+
} = state;
|
|
731
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
732
|
+
|
|
733
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
734
|
+
// then we don't need to change the positioning coordinates.
|
|
735
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
736
|
+
return {};
|
|
737
|
+
}
|
|
738
|
+
return {
|
|
739
|
+
x: x + diffCoords.x,
|
|
740
|
+
y: y + diffCoords.y,
|
|
741
|
+
data: {
|
|
742
|
+
...diffCoords,
|
|
743
|
+
placement
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
752
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
753
|
+
* @see https://floating-ui.com/docs/shift
|
|
754
|
+
*/
|
|
755
|
+
const shift$1 = function (options) {
|
|
756
|
+
if (options === void 0) {
|
|
757
|
+
options = {};
|
|
758
|
+
}
|
|
759
|
+
return {
|
|
760
|
+
name: 'shift',
|
|
761
|
+
options,
|
|
762
|
+
async fn(state) {
|
|
763
|
+
const {
|
|
764
|
+
x,
|
|
765
|
+
y,
|
|
766
|
+
placement,
|
|
767
|
+
platform
|
|
768
|
+
} = state;
|
|
769
|
+
const {
|
|
770
|
+
mainAxis: checkMainAxis = true,
|
|
771
|
+
crossAxis: checkCrossAxis = false,
|
|
772
|
+
limiter = {
|
|
773
|
+
fn: _ref => {
|
|
774
|
+
let {
|
|
775
|
+
x,
|
|
776
|
+
y
|
|
777
|
+
} = _ref;
|
|
778
|
+
return {
|
|
779
|
+
x,
|
|
780
|
+
y
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
...detectOverflowOptions
|
|
785
|
+
} = evaluate(options, state);
|
|
786
|
+
const coords = {
|
|
787
|
+
x,
|
|
788
|
+
y
|
|
789
|
+
};
|
|
790
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
791
|
+
const crossAxis = getSideAxis(placement);
|
|
792
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
793
|
+
let mainAxisCoord = coords[mainAxis];
|
|
794
|
+
let crossAxisCoord = coords[crossAxis];
|
|
795
|
+
const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
|
|
796
|
+
if (checkMainAxis) {
|
|
797
|
+
mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
|
|
798
|
+
}
|
|
799
|
+
if (checkCrossAxis) {
|
|
800
|
+
crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
|
|
801
|
+
}
|
|
802
|
+
const limitedCoords = limiter.fn({
|
|
803
|
+
...state,
|
|
804
|
+
[mainAxis]: mainAxisCoord,
|
|
805
|
+
[crossAxis]: crossAxisCoord
|
|
806
|
+
});
|
|
807
|
+
return {
|
|
808
|
+
...limitedCoords,
|
|
809
|
+
data: {
|
|
810
|
+
x: limitedCoords.x - x,
|
|
811
|
+
y: limitedCoords.y - y,
|
|
812
|
+
enabled: {
|
|
813
|
+
[mainAxis]: checkMainAxis,
|
|
814
|
+
[crossAxis]: checkCrossAxis
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
function hasWindow() {
|
|
823
|
+
return typeof window !== 'undefined';
|
|
824
|
+
}
|
|
825
|
+
function getNodeName(node) {
|
|
826
|
+
if (isNode(node)) {
|
|
827
|
+
return (node.nodeName || '').toLowerCase();
|
|
828
|
+
}
|
|
829
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
830
|
+
// returning `#document` an infinite loop won't occur.
|
|
831
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
832
|
+
return '#document';
|
|
833
|
+
}
|
|
834
|
+
function getWindow(node) {
|
|
835
|
+
var _node$ownerDocument;
|
|
836
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
837
|
+
}
|
|
838
|
+
function getDocumentElement(node) {
|
|
839
|
+
var _ref;
|
|
840
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
841
|
+
}
|
|
842
|
+
function isNode(value) {
|
|
843
|
+
if (!hasWindow()) {
|
|
844
|
+
return false;
|
|
845
|
+
}
|
|
846
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
847
|
+
}
|
|
848
|
+
function isElement(value) {
|
|
849
|
+
if (!hasWindow()) {
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
853
|
+
}
|
|
854
|
+
function isHTMLElement(value) {
|
|
855
|
+
if (!hasWindow()) {
|
|
856
|
+
return false;
|
|
857
|
+
}
|
|
858
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
859
|
+
}
|
|
860
|
+
function isShadowRoot(value) {
|
|
861
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
862
|
+
return false;
|
|
863
|
+
}
|
|
864
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
865
|
+
}
|
|
866
|
+
function isOverflowElement(element) {
|
|
867
|
+
const {
|
|
868
|
+
overflow,
|
|
869
|
+
overflowX,
|
|
870
|
+
overflowY,
|
|
871
|
+
display
|
|
872
|
+
} = getComputedStyle(element);
|
|
873
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
|
|
874
|
+
}
|
|
875
|
+
function isTableElement(element) {
|
|
876
|
+
return /^(table|td|th)$/.test(getNodeName(element));
|
|
877
|
+
}
|
|
878
|
+
function isTopLayer(element) {
|
|
879
|
+
try {
|
|
880
|
+
if (element.matches(':popover-open')) {
|
|
881
|
+
return true;
|
|
882
|
+
}
|
|
883
|
+
} catch (_e) {
|
|
884
|
+
// no-op
|
|
885
|
+
}
|
|
886
|
+
try {
|
|
887
|
+
return element.matches(':modal');
|
|
888
|
+
} catch (_e) {
|
|
889
|
+
return false;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
|
|
893
|
+
const containRe = /paint|layout|strict|content/;
|
|
894
|
+
const isNotNone = value => !!value && value !== 'none';
|
|
895
|
+
let isWebKitValue;
|
|
896
|
+
function isContainingBlock(elementOrCss) {
|
|
897
|
+
const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
|
|
898
|
+
|
|
899
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
900
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
901
|
+
return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
|
|
902
|
+
}
|
|
903
|
+
function getContainingBlock(element) {
|
|
904
|
+
let currentNode = getParentNode(element);
|
|
905
|
+
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
906
|
+
if (isContainingBlock(currentNode)) {
|
|
907
|
+
return currentNode;
|
|
908
|
+
} else if (isTopLayer(currentNode)) {
|
|
909
|
+
return null;
|
|
910
|
+
}
|
|
911
|
+
currentNode = getParentNode(currentNode);
|
|
912
|
+
}
|
|
913
|
+
return null;
|
|
914
|
+
}
|
|
915
|
+
function isWebKit() {
|
|
916
|
+
if (isWebKitValue == null) {
|
|
917
|
+
isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
|
|
918
|
+
}
|
|
919
|
+
return isWebKitValue;
|
|
920
|
+
}
|
|
921
|
+
function isLastTraversableNode(node) {
|
|
922
|
+
return /^(html|body|#document)$/.test(getNodeName(node));
|
|
923
|
+
}
|
|
924
|
+
function getComputedStyle(element) {
|
|
925
|
+
return getWindow(element).getComputedStyle(element);
|
|
926
|
+
}
|
|
927
|
+
function getNodeScroll(element) {
|
|
928
|
+
if (isElement(element)) {
|
|
929
|
+
return {
|
|
930
|
+
scrollLeft: element.scrollLeft,
|
|
931
|
+
scrollTop: element.scrollTop
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
return {
|
|
935
|
+
scrollLeft: element.scrollX,
|
|
936
|
+
scrollTop: element.scrollY
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
function getParentNode(node) {
|
|
940
|
+
if (getNodeName(node) === 'html') {
|
|
941
|
+
return node;
|
|
942
|
+
}
|
|
943
|
+
const result =
|
|
944
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
945
|
+
node.assignedSlot ||
|
|
946
|
+
// DOM Element detected.
|
|
947
|
+
node.parentNode ||
|
|
948
|
+
// ShadowRoot detected.
|
|
949
|
+
isShadowRoot(node) && node.host ||
|
|
950
|
+
// Fallback.
|
|
951
|
+
getDocumentElement(node);
|
|
952
|
+
return isShadowRoot(result) ? result.host : result;
|
|
953
|
+
}
|
|
954
|
+
function getNearestOverflowAncestor(node) {
|
|
955
|
+
const parentNode = getParentNode(node);
|
|
956
|
+
if (isLastTraversableNode(parentNode)) {
|
|
957
|
+
return (node.ownerDocument || node).body;
|
|
958
|
+
}
|
|
959
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
960
|
+
return parentNode;
|
|
961
|
+
}
|
|
962
|
+
return getNearestOverflowAncestor(parentNode);
|
|
963
|
+
}
|
|
964
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
965
|
+
var _node$ownerDocument2;
|
|
966
|
+
if (list === void 0) {
|
|
967
|
+
list = [];
|
|
968
|
+
}
|
|
969
|
+
if (traverseIframes === void 0) {
|
|
970
|
+
traverseIframes = true;
|
|
971
|
+
}
|
|
972
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
973
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
974
|
+
const win = getWindow(scrollableAncestor);
|
|
975
|
+
if (isBody) {
|
|
976
|
+
const frameElement = getFrameElement(win);
|
|
977
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
978
|
+
} else {
|
|
979
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
function getFrameElement(win) {
|
|
983
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
function getCssDimensions(element) {
|
|
987
|
+
const css = getComputedStyle(element);
|
|
988
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
989
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
990
|
+
let width = parseFloat(css.width) || 0;
|
|
991
|
+
let height = parseFloat(css.height) || 0;
|
|
992
|
+
const hasOffset = isHTMLElement(element);
|
|
993
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
994
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
995
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
996
|
+
if (shouldFallback) {
|
|
997
|
+
width = offsetWidth;
|
|
998
|
+
height = offsetHeight;
|
|
999
|
+
}
|
|
1000
|
+
return {
|
|
1001
|
+
width,
|
|
1002
|
+
height,
|
|
1003
|
+
$: shouldFallback
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
function unwrapElement(element) {
|
|
1008
|
+
return !isElement(element) ? element.contextElement : element;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
function getScale(element) {
|
|
1012
|
+
const domElement = unwrapElement(element);
|
|
1013
|
+
if (!isHTMLElement(domElement)) {
|
|
1014
|
+
return createCoords(1);
|
|
1015
|
+
}
|
|
1016
|
+
const rect = domElement.getBoundingClientRect();
|
|
1017
|
+
const {
|
|
1018
|
+
width,
|
|
1019
|
+
height,
|
|
1020
|
+
$
|
|
1021
|
+
} = getCssDimensions(domElement);
|
|
1022
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
1023
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
1024
|
+
|
|
1025
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
1026
|
+
|
|
1027
|
+
if (!x || !Number.isFinite(x)) {
|
|
1028
|
+
x = 1;
|
|
1029
|
+
}
|
|
1030
|
+
if (!y || !Number.isFinite(y)) {
|
|
1031
|
+
y = 1;
|
|
1032
|
+
}
|
|
1033
|
+
return {
|
|
1034
|
+
x,
|
|
1035
|
+
y
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
1040
|
+
function getVisualOffsets(element) {
|
|
1041
|
+
const win = getWindow(element);
|
|
1042
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
1043
|
+
return noOffsets;
|
|
1044
|
+
}
|
|
1045
|
+
return {
|
|
1046
|
+
x: win.visualViewport.offsetLeft,
|
|
1047
|
+
y: win.visualViewport.offsetTop
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1051
|
+
if (isFixed === void 0) {
|
|
1052
|
+
isFixed = false;
|
|
1053
|
+
}
|
|
1054
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
1057
|
+
return isFixed;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1061
|
+
if (includeScale === void 0) {
|
|
1062
|
+
includeScale = false;
|
|
1063
|
+
}
|
|
1064
|
+
if (isFixedStrategy === void 0) {
|
|
1065
|
+
isFixedStrategy = false;
|
|
1066
|
+
}
|
|
1067
|
+
const clientRect = element.getBoundingClientRect();
|
|
1068
|
+
const domElement = unwrapElement(element);
|
|
1069
|
+
let scale = createCoords(1);
|
|
1070
|
+
if (includeScale) {
|
|
1071
|
+
if (offsetParent) {
|
|
1072
|
+
if (isElement(offsetParent)) {
|
|
1073
|
+
scale = getScale(offsetParent);
|
|
1074
|
+
}
|
|
1075
|
+
} else {
|
|
1076
|
+
scale = getScale(element);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1080
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1081
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1082
|
+
let width = clientRect.width / scale.x;
|
|
1083
|
+
let height = clientRect.height / scale.y;
|
|
1084
|
+
if (domElement) {
|
|
1085
|
+
const win = getWindow(domElement);
|
|
1086
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1087
|
+
let currentWin = win;
|
|
1088
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
1089
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
1090
|
+
const iframeScale = getScale(currentIFrame);
|
|
1091
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1092
|
+
const css = getComputedStyle(currentIFrame);
|
|
1093
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1094
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1095
|
+
x *= iframeScale.x;
|
|
1096
|
+
y *= iframeScale.y;
|
|
1097
|
+
width *= iframeScale.x;
|
|
1098
|
+
height *= iframeScale.y;
|
|
1099
|
+
x += left;
|
|
1100
|
+
y += top;
|
|
1101
|
+
currentWin = getWindow(currentIFrame);
|
|
1102
|
+
currentIFrame = getFrameElement(currentWin);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return rectToClientRect({
|
|
1106
|
+
width,
|
|
1107
|
+
height,
|
|
1108
|
+
x,
|
|
1109
|
+
y
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
1114
|
+
// incorrect for RTL.
|
|
1115
|
+
function getWindowScrollBarX(element, rect) {
|
|
1116
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
1117
|
+
if (!rect) {
|
|
1118
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
1119
|
+
}
|
|
1120
|
+
return rect.left + leftScroll;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
1124
|
+
if (ignoreScrollbarX === void 0) {
|
|
1125
|
+
ignoreScrollbarX = false;
|
|
1126
|
+
}
|
|
1127
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
1128
|
+
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
|
|
1129
|
+
// RTL <body> scrollbar.
|
|
1130
|
+
getWindowScrollBarX(documentElement, htmlRect));
|
|
1131
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
1132
|
+
return {
|
|
1133
|
+
x,
|
|
1134
|
+
y
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1139
|
+
let {
|
|
1140
|
+
elements,
|
|
1141
|
+
rect,
|
|
1142
|
+
offsetParent,
|
|
1143
|
+
strategy
|
|
1144
|
+
} = _ref;
|
|
1145
|
+
const isFixed = strategy === 'fixed';
|
|
1146
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1147
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
1148
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
1149
|
+
return rect;
|
|
1150
|
+
}
|
|
1151
|
+
let scroll = {
|
|
1152
|
+
scrollLeft: 0,
|
|
1153
|
+
scrollTop: 0
|
|
1154
|
+
};
|
|
1155
|
+
let scale = createCoords(1);
|
|
1156
|
+
const offsets = createCoords(0);
|
|
1157
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1158
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1159
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1160
|
+
scroll = getNodeScroll(offsetParent);
|
|
1161
|
+
}
|
|
1162
|
+
if (isHTMLElement(offsetParent)) {
|
|
1163
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1164
|
+
scale = getScale(offsetParent);
|
|
1165
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1166
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
1170
|
+
return {
|
|
1171
|
+
width: rect.width * scale.x,
|
|
1172
|
+
height: rect.height * scale.y,
|
|
1173
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
1174
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
function getClientRects(element) {
|
|
1179
|
+
return Array.from(element.getClientRects());
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
1183
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1184
|
+
function getDocumentRect(element) {
|
|
1185
|
+
const html = getDocumentElement(element);
|
|
1186
|
+
const scroll = getNodeScroll(element);
|
|
1187
|
+
const body = element.ownerDocument.body;
|
|
1188
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1189
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1190
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1191
|
+
const y = -scroll.scrollTop;
|
|
1192
|
+
if (getComputedStyle(body).direction === 'rtl') {
|
|
1193
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
1194
|
+
}
|
|
1195
|
+
return {
|
|
1196
|
+
width,
|
|
1197
|
+
height,
|
|
1198
|
+
x,
|
|
1199
|
+
y
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
function getViewportRect(element, strategy) {
|
|
1204
|
+
const win = getWindow(element);
|
|
1205
|
+
const html = getDocumentElement(element);
|
|
1206
|
+
const visualViewport = win.visualViewport;
|
|
1207
|
+
let width = html.clientWidth;
|
|
1208
|
+
let height = html.clientHeight;
|
|
1209
|
+
let x = 0;
|
|
1210
|
+
let y = 0;
|
|
1211
|
+
if (visualViewport) {
|
|
1212
|
+
width = visualViewport.width;
|
|
1213
|
+
height = visualViewport.height;
|
|
1214
|
+
const visualViewportBased = isWebKit();
|
|
1215
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1216
|
+
x = visualViewport.offsetLeft;
|
|
1217
|
+
y = visualViewport.offsetTop;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
return {
|
|
1221
|
+
width,
|
|
1222
|
+
height,
|
|
1223
|
+
x,
|
|
1224
|
+
y
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1229
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
1230
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1231
|
+
const top = clientRect.top + element.clientTop;
|
|
1232
|
+
const left = clientRect.left + element.clientLeft;
|
|
1233
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
1234
|
+
const width = element.clientWidth * scale.x;
|
|
1235
|
+
const height = element.clientHeight * scale.y;
|
|
1236
|
+
const x = left * scale.x;
|
|
1237
|
+
const y = top * scale.y;
|
|
1238
|
+
return {
|
|
1239
|
+
width,
|
|
1240
|
+
height,
|
|
1241
|
+
x,
|
|
1242
|
+
y
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1246
|
+
let rect;
|
|
1247
|
+
if (clippingAncestor === 'viewport') {
|
|
1248
|
+
rect = getViewportRect(element, strategy);
|
|
1249
|
+
} else if (clippingAncestor === 'document') {
|
|
1250
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
1251
|
+
} else if (isElement(clippingAncestor)) {
|
|
1252
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1253
|
+
} else {
|
|
1254
|
+
const visualOffsets = getVisualOffsets(element);
|
|
1255
|
+
rect = {
|
|
1256
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
1257
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
1258
|
+
width: clippingAncestor.width,
|
|
1259
|
+
height: clippingAncestor.height
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
return rectToClientRect(rect);
|
|
1263
|
+
}
|
|
1264
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
1265
|
+
const parentNode = getParentNode(element);
|
|
1266
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1267
|
+
return false;
|
|
1268
|
+
}
|
|
1269
|
+
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1273
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1274
|
+
// of the given element up the tree.
|
|
1275
|
+
function getClippingElementAncestors(element, cache) {
|
|
1276
|
+
const cachedResult = cache.get(element);
|
|
1277
|
+
if (cachedResult) {
|
|
1278
|
+
return cachedResult;
|
|
1279
|
+
}
|
|
1280
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1281
|
+
let currentContainingBlockComputedStyle = null;
|
|
1282
|
+
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
1283
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1284
|
+
|
|
1285
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1286
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1287
|
+
const computedStyle = getComputedStyle(currentNode);
|
|
1288
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1289
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1290
|
+
currentContainingBlockComputedStyle = null;
|
|
1291
|
+
}
|
|
1292
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1293
|
+
if (shouldDropCurrentNode) {
|
|
1294
|
+
// Drop non-containing blocks.
|
|
1295
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1296
|
+
} else {
|
|
1297
|
+
// Record last containing block for next iteration.
|
|
1298
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
1299
|
+
}
|
|
1300
|
+
currentNode = getParentNode(currentNode);
|
|
1301
|
+
}
|
|
1302
|
+
cache.set(element, result);
|
|
1303
|
+
return result;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
1307
|
+
// clipping ancestors.
|
|
1308
|
+
function getClippingRect(_ref) {
|
|
1309
|
+
let {
|
|
1310
|
+
element,
|
|
1311
|
+
boundary,
|
|
1312
|
+
rootBoundary,
|
|
1313
|
+
strategy
|
|
1314
|
+
} = _ref;
|
|
1315
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1316
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1317
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
1318
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1319
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1320
|
+
accRect.top = max(rect.top, accRect.top);
|
|
1321
|
+
accRect.right = min(rect.right, accRect.right);
|
|
1322
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1323
|
+
accRect.left = max(rect.left, accRect.left);
|
|
1324
|
+
return accRect;
|
|
1325
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1326
|
+
return {
|
|
1327
|
+
width: clippingRect.right - clippingRect.left,
|
|
1328
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
1329
|
+
x: clippingRect.left,
|
|
1330
|
+
y: clippingRect.top
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
function getDimensions(element) {
|
|
1335
|
+
const {
|
|
1336
|
+
width,
|
|
1337
|
+
height
|
|
1338
|
+
} = getCssDimensions(element);
|
|
1339
|
+
return {
|
|
1340
|
+
width,
|
|
1341
|
+
height
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1346
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1347
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
1348
|
+
const isFixed = strategy === 'fixed';
|
|
1349
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1350
|
+
let scroll = {
|
|
1351
|
+
scrollLeft: 0,
|
|
1352
|
+
scrollTop: 0
|
|
1353
|
+
};
|
|
1354
|
+
const offsets = createCoords(0);
|
|
1355
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1356
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1357
|
+
scroll = getNodeScroll(offsetParent);
|
|
1358
|
+
}
|
|
1359
|
+
if (isOffsetParentAnElement) {
|
|
1360
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1361
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1362
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1363
|
+
} else if (documentElement) {
|
|
1364
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1365
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1366
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1370
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
1371
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
1372
|
+
return {
|
|
1373
|
+
x,
|
|
1374
|
+
y,
|
|
1375
|
+
width: rect.width,
|
|
1376
|
+
height: rect.height
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
function isStaticPositioned(element) {
|
|
1381
|
+
return getComputedStyle(element).position === 'static';
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
1385
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1386
|
+
return null;
|
|
1387
|
+
}
|
|
1388
|
+
if (polyfill) {
|
|
1389
|
+
return polyfill(element);
|
|
1390
|
+
}
|
|
1391
|
+
let rawOffsetParent = element.offsetParent;
|
|
1392
|
+
|
|
1393
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
1394
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
1395
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
1396
|
+
// non-static.
|
|
1397
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
1398
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
1399
|
+
}
|
|
1400
|
+
return rawOffsetParent;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1404
|
+
// such as table ancestors and cross browser bugs.
|
|
1405
|
+
function getOffsetParent(element, polyfill) {
|
|
1406
|
+
const win = getWindow(element);
|
|
1407
|
+
if (isTopLayer(element)) {
|
|
1408
|
+
return win;
|
|
1409
|
+
}
|
|
1410
|
+
if (!isHTMLElement(element)) {
|
|
1411
|
+
let svgOffsetParent = getParentNode(element);
|
|
1412
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1413
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1414
|
+
return svgOffsetParent;
|
|
1415
|
+
}
|
|
1416
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1417
|
+
}
|
|
1418
|
+
return win;
|
|
1419
|
+
}
|
|
1420
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1421
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1422
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1423
|
+
}
|
|
1424
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1425
|
+
return win;
|
|
1426
|
+
}
|
|
1427
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
const getElementRects = async function (data) {
|
|
1431
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1432
|
+
const getDimensionsFn = this.getDimensions;
|
|
1433
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1434
|
+
return {
|
|
1435
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1436
|
+
floating: {
|
|
1437
|
+
x: 0,
|
|
1438
|
+
y: 0,
|
|
1439
|
+
width: floatingDimensions.width,
|
|
1440
|
+
height: floatingDimensions.height
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
function isRTL(element) {
|
|
1446
|
+
return getComputedStyle(element).direction === 'rtl';
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
const platform = {
|
|
1450
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1451
|
+
getDocumentElement,
|
|
1452
|
+
getClippingRect,
|
|
1453
|
+
getOffsetParent,
|
|
1454
|
+
getElementRects,
|
|
1455
|
+
getClientRects,
|
|
1456
|
+
getDimensions,
|
|
1457
|
+
getScale,
|
|
1458
|
+
isElement,
|
|
1459
|
+
isRTL
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
// https://samthor.au/2021/observing-dom/
|
|
1463
|
+
function observeMove(element, onMove) {
|
|
1464
|
+
let io = null;
|
|
1465
|
+
let timeoutId;
|
|
1466
|
+
const root = getDocumentElement(element);
|
|
1467
|
+
function cleanup() {
|
|
1468
|
+
var _io;
|
|
1469
|
+
clearTimeout(timeoutId);
|
|
1470
|
+
(_io = io) == null || _io.disconnect();
|
|
1471
|
+
io = null;
|
|
1472
|
+
}
|
|
1473
|
+
function refresh(skip, threshold) {
|
|
1474
|
+
if (skip === void 0) {
|
|
1475
|
+
skip = false;
|
|
1476
|
+
}
|
|
1477
|
+
if (threshold === void 0) {
|
|
1478
|
+
threshold = 1;
|
|
1479
|
+
}
|
|
1480
|
+
cleanup();
|
|
1481
|
+
const {
|
|
1482
|
+
left,
|
|
1483
|
+
top,
|
|
1484
|
+
width,
|
|
1485
|
+
height
|
|
1486
|
+
} = element.getBoundingClientRect();
|
|
1487
|
+
if (!skip) {
|
|
1488
|
+
onMove();
|
|
1489
|
+
}
|
|
1490
|
+
if (!width || !height) {
|
|
1491
|
+
return;
|
|
1492
|
+
}
|
|
1493
|
+
const insetTop = floor(top);
|
|
1494
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
1495
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
1496
|
+
const insetLeft = floor(left);
|
|
1497
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
1498
|
+
const options = {
|
|
1499
|
+
rootMargin,
|
|
1500
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
1501
|
+
};
|
|
1502
|
+
let isFirstUpdate = true;
|
|
1503
|
+
function handleObserve(entries) {
|
|
1504
|
+
const ratio = entries[0].intersectionRatio;
|
|
1505
|
+
if (ratio !== threshold) {
|
|
1506
|
+
if (!isFirstUpdate) {
|
|
1507
|
+
return refresh();
|
|
1508
|
+
}
|
|
1509
|
+
if (!ratio) {
|
|
1510
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
1511
|
+
// to prevent an infinite loop of updates.
|
|
1512
|
+
timeoutId = setTimeout(() => {
|
|
1513
|
+
refresh(false, 1e-7);
|
|
1514
|
+
}, 1000);
|
|
1515
|
+
} else {
|
|
1516
|
+
refresh(false, ratio);
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
isFirstUpdate = false;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
1523
|
+
// error.
|
|
1524
|
+
try {
|
|
1525
|
+
io = new IntersectionObserver(handleObserve, {
|
|
1526
|
+
...options,
|
|
1527
|
+
// Handle <iframe>s
|
|
1528
|
+
root: root.ownerDocument
|
|
1529
|
+
});
|
|
1530
|
+
} catch (e) {
|
|
1531
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
1532
|
+
}
|
|
1533
|
+
io.observe(element);
|
|
1534
|
+
}
|
|
1535
|
+
refresh(true);
|
|
1536
|
+
return cleanup;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Automatically updates the position of the floating element when necessary.
|
|
1541
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
1542
|
+
* visible on the screen.
|
|
1543
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
1544
|
+
* removed from the DOM or hidden from the screen.
|
|
1545
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
1546
|
+
*/
|
|
1547
|
+
function autoUpdate(reference, floating, update, options) {
|
|
1548
|
+
if (options === void 0) {
|
|
1549
|
+
options = {};
|
|
1550
|
+
}
|
|
1551
|
+
const {
|
|
1552
|
+
ancestorScroll = true,
|
|
1553
|
+
ancestorResize = true,
|
|
1554
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
1555
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
1556
|
+
animationFrame = false
|
|
1557
|
+
} = options;
|
|
1558
|
+
const referenceEl = unwrapElement(reference);
|
|
1559
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
1560
|
+
ancestors.forEach(ancestor => {
|
|
1561
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
1562
|
+
passive: true
|
|
1563
|
+
});
|
|
1564
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1565
|
+
});
|
|
1566
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1567
|
+
let reobserveFrame = -1;
|
|
1568
|
+
let resizeObserver = null;
|
|
1569
|
+
if (elementResize) {
|
|
1570
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
1571
|
+
let [firstEntry] = _ref;
|
|
1572
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
1573
|
+
// Prevent update loops when using the `size` middleware.
|
|
1574
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
1575
|
+
resizeObserver.unobserve(floating);
|
|
1576
|
+
cancelAnimationFrame(reobserveFrame);
|
|
1577
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
1578
|
+
var _resizeObserver;
|
|
1579
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
update();
|
|
1583
|
+
});
|
|
1584
|
+
if (referenceEl && !animationFrame) {
|
|
1585
|
+
resizeObserver.observe(referenceEl);
|
|
1586
|
+
}
|
|
1587
|
+
resizeObserver.observe(floating);
|
|
1588
|
+
}
|
|
1589
|
+
let frameId;
|
|
1590
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1591
|
+
if (animationFrame) {
|
|
1592
|
+
frameLoop();
|
|
1593
|
+
}
|
|
1594
|
+
function frameLoop() {
|
|
1595
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
1596
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1597
|
+
update();
|
|
1598
|
+
}
|
|
1599
|
+
prevRefRect = nextRefRect;
|
|
1600
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
1601
|
+
}
|
|
1602
|
+
update();
|
|
1603
|
+
return () => {
|
|
1604
|
+
var _resizeObserver2;
|
|
1605
|
+
ancestors.forEach(ancestor => {
|
|
1606
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1607
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1608
|
+
});
|
|
1609
|
+
cleanupIo == null || cleanupIo();
|
|
1610
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
1611
|
+
resizeObserver = null;
|
|
1612
|
+
if (animationFrame) {
|
|
1613
|
+
cancelAnimationFrame(frameId);
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Modifies the placement by translating the floating element along the
|
|
1620
|
+
* specified axes.
|
|
1621
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1622
|
+
* object may be passed.
|
|
1623
|
+
* @see https://floating-ui.com/docs/offset
|
|
1624
|
+
*/
|
|
1625
|
+
const offset = offset$1;
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
1629
|
+
* that has the most space available automatically, without needing to specify a
|
|
1630
|
+
* preferred placement. Alternative to `flip`.
|
|
1631
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
1632
|
+
*/
|
|
1633
|
+
const autoPlacement = autoPlacement$1;
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1637
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
1638
|
+
* @see https://floating-ui.com/docs/shift
|
|
1639
|
+
*/
|
|
1640
|
+
const shift = shift$1;
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1644
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
1645
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
1646
|
+
* @see https://floating-ui.com/docs/flip
|
|
1647
|
+
*/
|
|
1648
|
+
const flip = flip$1;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Provides data to position an inner element of the floating element so that it
|
|
1652
|
+
* appears centered to the reference element.
|
|
1653
|
+
* @see https://floating-ui.com/docs/arrow
|
|
1654
|
+
*/
|
|
1655
|
+
const arrow = arrow$1;
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1659
|
+
* next to a given reference element.
|
|
1660
|
+
*/
|
|
1661
|
+
const computePosition = (reference, floating, options) => {
|
|
1662
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1663
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1664
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
1665
|
+
const cache = new Map();
|
|
1666
|
+
const mergedOptions = {
|
|
1667
|
+
platform,
|
|
1668
|
+
...options
|
|
1669
|
+
};
|
|
1670
|
+
const platformWithCache = {
|
|
1671
|
+
...mergedOptions.platform,
|
|
1672
|
+
_c: cache
|
|
1673
|
+
};
|
|
1674
|
+
return computePosition$1(reference, floating, {
|
|
1675
|
+
...mergedOptions,
|
|
1676
|
+
platform: platformWithCache
|
|
1677
|
+
});
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
export { autoPlacement as a, arrow as b, computePosition as c, autoUpdate as d, flip as f, offset as o, shift as s };
|