@solostylist/ui-kit 1.0.202 → 1.0.204
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/dist/ArrowUpward-KYbUu0UZ.js +5 -0
- package/dist/Box-a5uPlxYL.js +47 -0
- package/dist/ButtonBase-CyZX7c8K.js +802 -0
- package/dist/ChevronLeft-Djq7TyZX.js +5 -0
- package/dist/ChevronRight-BgWjUtu8.js +5 -0
- package/dist/Close-DD2G0QfM.js +5 -0
- package/dist/ContentCopy-D1OlBB-D.js +6 -0
- package/dist/DefaultPropsProvider-CFaP_bh_.js +157 -0
- package/dist/Download-DDt8mUQX.js +5 -0
- package/dist/ExpandMore-3GurpYw-.js +5 -0
- package/dist/Favorite-gVQqn0Cm.js +5 -0
- package/dist/Menu-BB3Khkc0.js +1662 -0
- package/dist/MenuItem-CjPW2J-w.js +213 -0
- package/dist/Paper-COr98fp-.js +329 -0
- package/dist/Select-B9880Uge.js +2545 -0
- package/dist/Stack-BJ4hQFAK.js +158 -0
- package/dist/Typography-B_GHPkH2.js +187 -0
- package/dist/assets/s-carousel.css +1 -1
- package/dist/assets/s-overlay-scrollbar.css +10 -1
- package/dist/assets/stripe-input.css +1 -1
- package/dist/avatar-boNnyODN.js +9 -0
- package/dist/buttonBaseClasses-DqKyadLa.js +13 -0
- package/dist/checkbox-CajxsIFH.js +57 -0
- package/dist/chunk-BQCxAhux.js +23 -0
- package/dist/createSimplePaletteValueFilter-1V26n1YK.js +14 -0
- package/dist/createSvgIcon-Bs2KOQvq.js +153 -0
- package/dist/createTheme-CMuiGmV-.js +2430 -0
- package/dist/defaultTheme-C7Su92B_.js +5 -0
- package/dist/entries/carousel.js +4 -4
- package/dist/entries/chat.js +4 -4
- package/dist/entries/code.js +4 -4
- package/dist/entries/core.js +57 -122
- package/dist/entries/dates.js +8 -12
- package/dist/entries/dropzone.js +4 -4
- package/dist/entries/editor.js +3 -4
- package/dist/entries/gallery.js +8 -13
- package/dist/entries/i18n.js +4 -7
- package/dist/entries/motion.js +15 -27
- package/dist/entries/scrollbar.js +3 -4
- package/dist/entries/stripe.js +7 -10
- package/dist/extendSxProp-DC0zdi8T.js +29 -0
- package/dist/generateUtilityClass-DdqZpZoW.js +34 -0
- package/dist/generateUtilityClasses-i3-S3IQr.js +10 -0
- package/dist/hooks/index.js +5 -11
- package/dist/hooks/use-count-down.js +85 -76
- package/dist/hooks/use-dialog.js +21 -18
- package/dist/hooks/use-is-passed-position.js +20 -20
- package/dist/hooks/use-popover.js +18 -18
- package/dist/hooks/use-scroll-animation.js +74 -56
- package/dist/iconButtonClasses-BggbSXxO.js +27 -0
- package/dist/identifier-_S1f0Pg2.js +190 -0
- package/dist/jsx-runtime-V-UOMaX1.js +180 -0
- package/dist/main.js +104 -196
- package/dist/mergeSlotProps-DKt8V_TK.js +48 -0
- package/dist/objectWithoutPropertiesLoose-Dn-p_OIo.js +23 -0
- package/dist/outlinedInputClasses-5cvWh4bu.js +43 -0
- package/dist/resolveProps-BfzHOpig.js +30 -0
- package/dist/s-accordion/index.js +4 -4
- package/dist/s-accordion/s-accordion.d.ts +0 -5
- package/dist/s-accordion/s-accordion.js +4 -949
- package/dist/s-accordion-Dt3fbZNh.js +712 -0
- package/dist/s-action-overlay/index.js +3 -4
- package/dist/s-action-overlay/s-action-overlay.d.ts +0 -4
- package/dist/s-action-overlay/s-action-overlay.js +108 -109
- package/dist/s-autocomplete/index.js +3 -4
- package/dist/s-autocomplete/s-autocomplete.d.ts +0 -5
- package/dist/s-autocomplete/s-autocomplete.js +25 -31
- package/dist/s-avatar/index.js +3 -4
- package/dist/s-avatar/s-avatar.d.ts +0 -4
- package/dist/s-avatar/s-avatar.js +32 -22
- package/dist/s-blur-text/index.js +3 -4
- package/dist/s-blur-text/s-blur-text.d.ts +0 -3
- package/dist/s-blur-text/s-blur-text.js +67 -81
- package/dist/s-breadcrumbs/index.js +3 -3
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +0 -3
- package/dist/s-breadcrumbs/s-breadcrumbs.js +49 -44
- package/dist/s-button/index.js +3 -4
- package/dist/s-button/s-button.d.ts +0 -3
- package/dist/s-button/s-button.js +11 -9
- package/dist/s-carousel/index.js +4 -4
- package/dist/s-carousel/s-carousel.d.ts +0 -3
- package/dist/s-carousel/s-carousel.js +4 -2478
- package/dist/s-carousel-B3VUHzx3.js +2294 -0
- package/dist/s-category-card/index.js +2 -3
- package/dist/s-category-card/s-category-card.d.ts +0 -3
- package/dist/s-category-card/s-category-card.js +70 -105
- package/dist/s-chat-input/index.js +4 -4
- package/dist/s-chat-input/s-chat-input.d.ts +0 -3
- package/dist/s-chat-input/s-chat-input.js +4 -319
- package/dist/s-chat-input-j_4JZfmI.js +283 -0
- package/dist/s-chat-message/index.js +4 -4
- package/dist/s-chat-message/s-chat-message.d.ts +0 -3
- package/dist/s-chat-message/s-chat-message.js +4 -283
- package/dist/s-chat-message-DQk5XWSJ.js +281 -0
- package/dist/s-checkbox/index.js +3 -4
- package/dist/s-checkbox/s-checkbox.d.ts +0 -3
- package/dist/s-checkbox/s-checkbox.js +27 -17
- package/dist/s-chip/index.js +3 -4
- package/dist/s-chip/s-chip.d.ts +0 -3
- package/dist/s-chip/s-chip.js +10 -8
- package/dist/s-chips/index.js +3 -4
- package/dist/s-chips/s-chips.d.ts +0 -1
- package/dist/s-chips/s-chips.js +91 -86
- package/dist/s-code-block/index.js +4 -4
- package/dist/s-code-block/s-code-block.d.ts +0 -3
- package/dist/s-code-block/s-code-block.js +4 -1052
- package/dist/s-code-block-BxdWmtRX.js +608 -0
- package/dist/s-comment-message/index.js +4 -4
- package/dist/s-comment-message/s-comment-message.d.ts +0 -3
- package/dist/s-comment-message/s-comment-message.js +4 -123
- package/dist/s-comment-message-D3XTOm1L.js +195 -0
- package/dist/s-copyable-text/index.js +4 -4
- package/dist/s-copyable-text/s-copyable-text.d.ts +0 -3
- package/dist/s-copyable-text/s-copyable-text.js +50 -54
- package/dist/s-countdown/index.js +4 -5
- package/dist/s-countdown/s-count-box.d.ts +0 -3
- package/dist/s-countdown/s-count-box.js +102 -106
- package/dist/s-countdown/s-count-down.d.ts +0 -3
- package/dist/s-countdown/s-count-down.js +101 -109
- package/dist/s-data-table/index.js +4 -4
- package/dist/s-data-table/s-data-table.d.ts +0 -3
- package/dist/s-data-table/s-data-table.js +4 -1291
- package/dist/s-data-table-B9B189jk.js +893 -0
- package/dist/s-date-picker/index.js +4 -4
- package/dist/s-date-picker/s-date-picker.d.ts +0 -3
- package/dist/s-date-picker/s-date-picker.js +4 -1521
- package/dist/s-date-picker-CH4q-Bfx.js +581 -0
- package/dist/s-datetime-picker/index.js +4 -4
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +0 -3
- package/dist/s-datetime-picker/s-datetime-picker.js +4 -5180
- package/dist/s-datetime-picker-dviksz3-.js +3808 -0
- package/dist/s-dialog/index.js +3 -3
- package/dist/s-dialog/s-dialog.d.ts +0 -3
- package/dist/s-dialog/s-dialog.js +44 -36
- package/dist/s-dialog-confirm/index.js +4 -6
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +0 -11
- package/dist/s-dialog-confirm/s-dialog-confirm.js +86 -75
- package/dist/s-dialog-message/index.js +4 -6
- package/dist/s-dialog-message/s-dialog-message.d.ts +0 -9
- package/dist/s-dialog-message/s-dialog-message.js +75 -66
- package/dist/s-empty/index.js +2 -3
- package/dist/s-empty/s-empty.d.ts +0 -1
- package/dist/s-empty/s-empty.js +12 -7
- package/dist/s-error/index.js +3 -4
- package/dist/s-error/s-error.d.ts +0 -1
- package/dist/s-error/s-error.js +31 -20
- package/dist/s-error-layout/index.js +3 -4
- package/dist/s-error-layout/s-error-layout.d.ts +0 -1
- package/dist/s-error-layout/s-error-layout.js +78 -56
- package/dist/s-file-dropzone/index.js +4 -4
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +0 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -124
- package/dist/s-file-dropzone-DYiYlcY8.js +134 -0
- package/dist/s-file-icon/index.js +4 -4
- package/dist/s-file-icon/s-file-icon.d.ts +0 -1
- package/dist/s-file-icon/s-file-icon.js +327 -272
- package/dist/s-flex-box/index.js +4 -4
- package/dist/s-flex-box/s-flex-box.d.ts +0 -3
- package/dist/s-flex-box/s-flex-box.js +11 -7
- package/dist/s-form/index.js +3 -4
- package/dist/s-form/s-form.d.ts +0 -1
- package/dist/s-form/s-form.js +23 -15
- package/dist/s-gallery/index.js +4 -5
- package/dist/s-gallery/s-gallery.d.ts +0 -19
- package/dist/s-gallery/s-gallery.js +310 -346
- package/dist/s-glow-button/index.js +4 -4
- package/dist/s-glow-button/s-glow-button.js +30 -43
- package/dist/s-gradient-icon/index.js +3 -4
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +0 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +124 -79
- package/dist/s-i18n-provider/index.js +3 -4
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +0 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +23 -26
- package/dist/s-icon-button/index.js +3 -4
- package/dist/s-icon-button/s-icon-button.d.ts +0 -3
- package/dist/s-icon-button/s-icon-button.js +11 -8
- package/dist/s-image-comparison/index.js +4 -4
- package/dist/s-image-comparison/s-image-comparison.js +169 -206
- package/dist/s-image-modal/index.js +4 -5
- package/dist/s-image-modal/s-image-modal.d.ts +0 -4
- package/dist/s-image-modal/s-image-modal.js +396 -387
- package/dist/s-item-not-found/index.js +2 -3
- package/dist/s-item-not-found/s-item-not-found.d.ts +0 -3
- package/dist/s-item-not-found/s-item-not-found.js +240 -262
- package/dist/s-label/index.js +4 -4
- package/dist/s-label/s-label.d.ts +0 -3
- package/dist/s-label/s-label.js +4 -17
- package/dist/s-label-g_Qac9jO.js +30 -0
- package/dist/s-language-switcher/index.js +4 -6
- package/dist/s-language-switcher/s-language-switcher.d.ts +0 -3
- package/dist/s-language-switcher/s-language-switcher.js +4 -252
- package/dist/s-language-switcher-DhcrqHJt.js +198 -0
- package/dist/s-lazy-image/index.js +3 -4
- package/dist/s-lazy-image/s-lazy-image.js +41 -56
- package/dist/s-link/index.js +3 -4
- package/dist/s-link/s-link.d.ts +0 -3
- package/dist/s-link/s-link.js +30 -37
- package/dist/s-localization-provider/index.js +4 -4
- package/dist/s-localization-provider/s-localization-provider.d.ts +0 -1
- package/dist/s-localization-provider/s-localization-provider.js +4 -562
- package/dist/s-localization-provider-BpoHpRVl.js +537 -0
- package/dist/s-moving-border/index.js +2 -3
- package/dist/s-moving-border/s-moving-border.d.ts +0 -3
- package/dist/s-moving-border/s-moving-border.js +117 -131
- package/dist/s-multi-select/index.js +4 -4
- package/dist/s-multi-select/s-multi-select.d.ts +0 -1
- package/dist/s-multi-select/s-multi-select.js +4 -82
- package/dist/s-multi-select-CUsIS9dm.js +64 -0
- package/dist/s-no-ssr/index.js +3 -4
- package/dist/s-no-ssr/s-no-ssr.d.ts +0 -1
- package/dist/s-no-ssr/s-no-ssr.js +14 -15
- package/dist/s-overlay-scrollbar/index.js +3 -4
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +0 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +34 -37
- package/dist/s-pagination/index.js +3 -4
- package/dist/s-pagination/s-pagination.d.ts +0 -3
- package/dist/s-pagination/s-pagination.js +31 -14
- package/dist/s-pixel-reveal/index.js +4 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +0 -3
- package/dist/s-pixel-reveal/s-pixel-reveal.js +138 -156
- package/dist/s-radial-pulse-animate/index.js +4 -4
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +0 -3
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +80 -122
- package/dist/s-rating/index.js +2 -3
- package/dist/s-rating/s-rating.d.ts +0 -3
- package/dist/s-rating/s-rating.js +11 -9
- package/dist/s-review/index.js +4 -4
- package/dist/s-review/s-review.d.ts +0 -3
- package/dist/s-review/s-review.js +4 -160
- package/dist/s-review-C1E6ASin.js +241 -0
- package/dist/s-scroll-reveal/index.js +3 -4
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +0 -3
- package/dist/s-scroll-reveal/s-scroll-reveal.js +68 -64
- package/dist/s-scroll-to-top/index.js +4 -4
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +0 -3
- package/dist/s-scroll-to-top/s-scroll-to-top.js +45 -44
- package/dist/s-scroll-velocity/index.js +5 -8
- package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +0 -6
- package/dist/s-scroll-velocity/s-scroll-velocity.js +14 -8
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +0 -7
- package/dist/s-scroll-velocity/scroll-velocity-container.js +25 -30
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +0 -4
- package/dist/s-scroll-velocity/scroll-velocity-row.js +97 -118
- package/dist/s-select/index.js +4 -4
- package/dist/s-select/s-select.d.ts +0 -3
- package/dist/s-select/s-select.js +4 -112
- package/dist/s-select-CmsTrYmx.js +110 -0
- package/dist/s-select-list/index.js +3 -4
- package/dist/s-select-list/s-select-list.d.ts +0 -3
- package/dist/s-select-list/s-select-list.js +44 -49
- package/dist/s-skeleton/index.js +3 -4
- package/dist/s-skeleton/s-skeleton.d.ts +0 -3
- package/dist/s-skeleton/s-skeleton.js +69 -35
- package/dist/s-snackbar-message/index.js +3 -6
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +0 -6
- package/dist/s-snackbar-message/s-snackbar-message.js +48 -61
- package/dist/s-spotlight-cursor/index.js +3 -4
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +0 -3
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +58 -61
- package/dist/s-stripe/index.js +7 -10
- package/dist/s-stripe/s-stripe-cvc.d.ts +0 -1
- package/dist/s-stripe/s-stripe-cvc.js +15 -10
- package/dist/s-stripe/s-stripe-expiry.d.ts +0 -1
- package/dist/s-stripe/s-stripe-expiry.js +15 -10
- package/dist/s-stripe/s-stripe-number.d.ts +0 -1
- package/dist/s-stripe/s-stripe-number.js +13 -8
- package/dist/s-stripe/s-stripe.d.ts +0 -1
- package/dist/s-stripe/s-stripe.js +31 -37
- package/dist/s-stripe/stripe-input.js +57 -81
- package/dist/s-switch/index.js +2 -3
- package/dist/s-switch/s-switch.d.ts +0 -4
- package/dist/s-switch/s-switch.js +27 -17
- package/dist/s-tabs/index.js +5 -8
- package/dist/s-tabs/s-tab-panel.d.ts +0 -3
- package/dist/s-tabs/s-tab-panel.js +23 -29
- package/dist/s-tabs/s-tab.js +10 -7
- package/dist/s-tabs/s-tabs.d.ts +0 -3
- package/dist/s-tabs/s-tabs.js +39 -35
- package/dist/s-text-editor/index.js +4 -5
- package/dist/s-text-editor/s-text-editor-toolbar.d.ts +0 -29
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -207
- package/dist/s-text-editor/s-text-editor.d.ts +0 -3
- package/dist/s-text-editor/s-text-editor.js +74 -80
- package/dist/s-text-editor-toolbar-DC-dnSBG.js +177 -0
- package/dist/s-text-field/index.js +4 -4
- package/dist/s-text-field/s-text-field.d.ts +0 -3
- package/dist/s-text-field/s-text-field.js +4 -49
- package/dist/s-text-field-C2WdBxNO.js +41 -0
- package/dist/s-text-shimmer/index.js +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +0 -3
- package/dist/s-text-shimmer/s-text-shimmer.js +31 -32
- package/dist/s-text-truncation/index.js +2 -3
- package/dist/s-text-truncation/s-text-truncation.d.ts +0 -4
- package/dist/s-text-truncation/s-text-truncation.js +79 -81
- package/dist/s-theme-demo/index.js +4 -4
- package/dist/s-theme-demo/s-theme-demo.js +4 -380
- package/dist/s-theme-demo-ChEG6wog.js +828 -0
- package/dist/s-theme-provider/index.js +4 -4
- package/dist/s-theme-provider/s-theme-provider.d.ts +0 -1
- package/dist/s-theme-provider/s-theme-provider.js +35 -50
- package/dist/s-theme-switch/index.js +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +4 -41
- package/dist/s-theme-switch-uXRVJIf_.js +37 -0
- package/dist/s-tip/index.js +4 -4
- package/dist/s-tip/s-tip.d.ts +0 -3
- package/dist/s-tip/s-tip.js +4 -34
- package/dist/s-tip-oiH-79gR.js +34 -0
- package/dist/s-tool-bar/index.js +4 -4
- package/dist/s-tool-bar/s-tool-bar.d.ts +0 -4
- package/dist/s-tool-bar/s-tool-bar.js +4 -478
- package/dist/s-tool-bar-CM-cxOkI.js +404 -0
- package/dist/s-two-pane-layout/index.js +3 -3
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +0 -3
- package/dist/s-two-pane-layout/s-two-pane-layout.js +101 -100
- package/dist/s-typewriter-text/index.js +3 -4
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +0 -3
- package/dist/s-typewriter-text/s-typewriter-text.js +39 -45
- package/dist/s-zoom-image/index.js +2 -3
- package/dist/s-zoom-image/s-zoom-image.d.ts +0 -3
- package/dist/s-zoom-image/s-zoom-image.js +62 -88
- package/dist/select-CjaxyZK_.js +11 -0
- package/dist/styled-CjUxhIJh.js +168 -0
- package/dist/svgIconClasses-DOmb6RsS.js +20 -0
- package/dist/tabClasses-DoD3-n6K.js +21 -0
- package/dist/theme/components/accordion-details.js +7 -8
- package/dist/theme/components/accordion-summary.js +12 -17
- package/dist/theme/components/accordion.js +24 -32
- package/dist/theme/components/alert.js +45 -72
- package/dist/theme/components/app-bar.js +12 -18
- package/dist/theme/components/autocomplete.js +19 -30
- package/dist/theme/components/avatar.js +4 -13
- package/dist/theme/components/backdrop.js +13 -12
- package/dist/theme/components/button-base.js +12 -14
- package/dist/theme/components/button.js +92 -138
- package/dist/theme/components/card-actions.js +4 -10
- package/dist/theme/components/card-content.js +4 -11
- package/dist/theme/components/card-header.js +4 -10
- package/dist/theme/components/card.js +23 -35
- package/dist/theme/components/checkbox.js +4 -65
- package/dist/theme/components/chip.js +67 -106
- package/dist/theme/components/components.js +113 -111
- package/dist/theme/components/container.js +4 -6
- package/dist/theme/components/dialog-actions.js +4 -10
- package/dist/theme/components/dialog.js +11 -17
- package/dist/theme/components/drawer.js +4 -10
- package/dist/theme/components/form-control.js +4 -10
- package/dist/theme/components/form-label.js +7 -11
- package/dist/theme/components/icon-button.js +82 -132
- package/dist/theme/components/icon.js +9 -21
- package/dist/theme/components/input-adornment.js +7 -13
- package/dist/theme/components/input-base.js +10 -16
- package/dist/theme/components/linear-progress.js +11 -16
- package/dist/theme/components/link.js +31 -37
- package/dist/theme/components/list-item-button.js +27 -44
- package/dist/theme/components/list-item-icon.js +4 -10
- package/dist/theme/components/list-item-text.js +14 -16
- package/dist/theme/components/list-item.js +12 -20
- package/dist/theme/components/list-subheader.js +10 -14
- package/dist/theme/components/list.js +9 -13
- package/dist/theme/components/menu-item.js +7 -8
- package/dist/theme/components/menu.js +20 -22
- package/dist/theme/components/outlined-input.js +41 -64
- package/dist/theme/components/pagination-item.js +8 -18
- package/dist/theme/components/paper.js +4 -8
- package/dist/theme/components/popover.js +11 -13
- package/dist/theme/components/rating.js +4 -8
- package/dist/theme/components/select.js +4 -13
- package/dist/theme/components/skeleton.js +4 -10
- package/dist/theme/components/slider.js +4 -8
- package/dist/theme/components/step-connector.js +9 -13
- package/dist/theme/components/step-icon.js +39 -46
- package/dist/theme/components/step-label.js +7 -13
- package/dist/theme/components/svg-icon.js +20 -37
- package/dist/theme/components/tab.js +20 -34
- package/dist/theme/components/table-cell.js +4 -10
- package/dist/theme/components/table-pagination.js +14 -18
- package/dist/theme/components/tabs.js +20 -24
- package/dist/theme/components/toggle-button-group.js +3 -23
- package/dist/theme/components/toggle-button.js +3 -21
- package/dist/theme/components/tooltip.js +23 -23
- package/dist/theme/theme-primitives.js +3 -410
- package/dist/theme-primitives-Csxbv-2Y.js +398 -0
- package/dist/toggle-button-CAcYep44.js +26 -0
- package/dist/toggle-button-group-BCHnFS_B.js +28 -0
- package/dist/typographyClasses-YJ-sLvHS.js +32 -0
- package/dist/useControlled-DZKvfhNx.js +32 -0
- package/dist/useEnhancedEffect-C_B_y6Db.js +5 -0
- package/dist/useFormControl-y5Pput5X.js +11 -0
- package/dist/useMobilePicker-CVsWEjX5.js +10635 -0
- package/dist/useTheme-B8aCSYJ4.js +34 -0
- package/dist/useThemeProps-CeO0wKq2.js +19 -0
- package/dist/utils/dayjs.js +161 -113
- package/dist/utils/index.js +3 -11
- package/dist/utils/logger.js +45 -46
- package/dist/utils-Cj6R-BZe.js +72 -0
- package/dist/warning-Bc_24lbr.js +110 -0
- package/package.json +29 -29
- package/dist/ArrowUpward-D8eqD-si.js +0 -8
- package/dist/Box-BkXoTbe8.js +0 -62
- package/dist/ButtonBase-D73M0QY5.js +0 -1099
- package/dist/ChevronLeft-BmgmPHp9.js +0 -8
- package/dist/ChevronRight-DbWSr8yz.js +0 -8
- package/dist/Close-lHCUMitI.js +0 -8
- package/dist/ContentCopy-D4SuJd86.js +0 -11
- package/dist/DefaultPropsProvider-DPuuPIbS.js +0 -64
- package/dist/Download-BoRQUwCf.js +0 -8
- package/dist/ExpandMore-C7yRQv1-.js +0 -8
- package/dist/Favorite-Bz_HcMgN.js +0 -8
- package/dist/Menu-GVFDMHCN.js +0 -2441
- package/dist/MenuItem-2wG8I2HO.js +0 -269
- package/dist/Paper-CR019bki.js +0 -553
- package/dist/Select-D2l9rDWL.js +0 -3966
- package/dist/Stack-Dfjnuorw.js +0 -174
- package/dist/Typography-PcmlIqm1.js +0 -253
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
- package/dist/buttonBaseClasses-jtnoTmPn.js +0 -10
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createSvgIcon-BkbeLOhM.js +0 -242
- package/dist/createTheme-DgoJyWM-.js +0 -2929
- package/dist/defaultTheme-CulFxfLR.js +0 -5
- package/dist/extendSxProp-BJEIxcAx.js +0 -36
- package/dist/generateUtilityClass-BhfUaMgk.js +0 -35
- package/dist/generateUtilityClasses-E9gROIFd.js +0 -10
- package/dist/iconButtonClasses-BMfIhNTh.js +0 -10
- package/dist/identifier-BKLqN993.js +0 -4
- package/dist/index-D3G5Rwl-.js +0 -211
- package/dist/index-DtGYsHSv.js +0 -94
- package/dist/jsx-runtime-tc70JA_2.js +0 -264
- package/dist/mergeSlotProps-CuzBQdlp.js +0 -62
- package/dist/objectWithoutPropertiesLoose-DiWPeE4c.js +0 -22
- package/dist/outlinedInputClasses-DnwW3ujt.js +0 -19
- package/dist/resolveProps-BDH0VJjn.js +0 -39
- package/dist/styled-8Y5KoVix.js +0 -203
- package/dist/svgIconClasses-C6auqaBA.js +0 -10
- package/dist/tabClasses-DFvXsFrN.js +0 -10
- package/dist/typographyClasses-jmoWZuXc.js +0 -10
- package/dist/useControlled-D1L5tREc.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useMobilePicker-B-bNHHXB.js +0 -13498
- package/dist/useTheme-CWPkv7g3.js +0 -18
- package/dist/useThemeProps-XYgXGzjS.js +0 -27
- package/dist/utils-D1UMIV0b.js +0 -40
- package/dist/warning-Ba-7BBAN.js +0 -135
package/dist/Menu-GVFDMHCN.js
DELETED
|
@@ -1,2441 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import { P as e, k as ze } from "./createTheme-DgoJyWM-.js";
|
|
3
|
-
import { c as ee } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { j as A } from "./jsx-runtime-tc70JA_2.js";
|
|
5
|
-
import { s as q, r as ct } from "./styled-8Y5KoVix.js";
|
|
6
|
-
import { g as le } from "./generateUtilityClass-BhfUaMgk.js";
|
|
7
|
-
import { g as ue } from "./generateUtilityClasses-E9gROIFd.js";
|
|
8
|
-
import { f as lt, m as ut, u as J, g as pt, c as Me, a as dt, b as z, d as De, h as ft, i as mt, r as ht, e as bt } from "./ButtonBase-D73M0QY5.js";
|
|
9
|
-
import { u as pe, c as de, m as gt } from "./DefaultPropsProvider-DPuuPIbS.js";
|
|
10
|
-
import { T as qe, u as We, g as be, r as Ge, P as yt, i as Et } from "./Paper-CR019bki.js";
|
|
11
|
-
import { m as Tt } from "./mergeSlotProps-CuzBQdlp.js";
|
|
12
|
-
import * as Pt from "react-dom";
|
|
13
|
-
import { u as ke } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
14
|
-
function Le(...t) {
|
|
15
|
-
return t.reduce((n, o) => o == null ? n : function(...a) {
|
|
16
|
-
n.apply(this, a), o.apply(this, a);
|
|
17
|
-
}, () => {
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const vt = "exact-prop: ";
|
|
21
|
-
function Ye(t) {
|
|
22
|
-
return process.env.NODE_ENV === "production" ? t : {
|
|
23
|
-
...t,
|
|
24
|
-
[vt]: (n) => {
|
|
25
|
-
const o = Object.keys(n).filter((r) => !t.hasOwnProperty(r));
|
|
26
|
-
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
const xt = /* @__PURE__ */ l.createContext();
|
|
31
|
-
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
32
|
-
const Rt = () => l.useContext(xt) ?? !1;
|
|
33
|
-
function Ot(t, n = 166) {
|
|
34
|
-
let o;
|
|
35
|
-
function r(...a) {
|
|
36
|
-
const s = () => {
|
|
37
|
-
t.apply(this, a);
|
|
38
|
-
};
|
|
39
|
-
clearTimeout(o), o = setTimeout(s, n);
|
|
40
|
-
}
|
|
41
|
-
return r.clear = () => {
|
|
42
|
-
clearTimeout(o);
|
|
43
|
-
}, r;
|
|
44
|
-
}
|
|
45
|
-
function _(t) {
|
|
46
|
-
return t && t.ownerDocument || document;
|
|
47
|
-
}
|
|
48
|
-
function X(t) {
|
|
49
|
-
return _(t).defaultView || window;
|
|
50
|
-
}
|
|
51
|
-
function Ae(t, n) {
|
|
52
|
-
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
53
|
-
}
|
|
54
|
-
function ce(t, n, o, r, a) {
|
|
55
|
-
if (process.env.NODE_ENV === "production")
|
|
56
|
-
return null;
|
|
57
|
-
const s = t[n], i = a || n;
|
|
58
|
-
return s == null ? null : s && s.nodeType !== 1 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
59
|
-
}
|
|
60
|
-
function wt(t) {
|
|
61
|
-
const {
|
|
62
|
-
elementType: n,
|
|
63
|
-
externalSlotProps: o,
|
|
64
|
-
ownerState: r,
|
|
65
|
-
skipResolvingSlotProps: a = !1,
|
|
66
|
-
...s
|
|
67
|
-
} = t, i = a ? {} : lt(o, r), {
|
|
68
|
-
props: c,
|
|
69
|
-
internalRef: d
|
|
70
|
-
} = ut({
|
|
71
|
-
...s,
|
|
72
|
-
externalSlotProps: i
|
|
73
|
-
}), T = J(d, i?.ref, t.additionalProps?.ref);
|
|
74
|
-
return pt(n, {
|
|
75
|
-
...c,
|
|
76
|
-
ref: T
|
|
77
|
-
}, r);
|
|
78
|
-
}
|
|
79
|
-
const Xe = /* @__PURE__ */ l.createContext({});
|
|
80
|
-
process.env.NODE_ENV !== "production" && (Xe.displayName = "ListContext");
|
|
81
|
-
function Nt(t) {
|
|
82
|
-
return le("MuiList", t);
|
|
83
|
-
}
|
|
84
|
-
ue("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
85
|
-
const kt = (t) => {
|
|
86
|
-
const {
|
|
87
|
-
classes: n,
|
|
88
|
-
disablePadding: o,
|
|
89
|
-
dense: r,
|
|
90
|
-
subheader: a
|
|
91
|
-
} = t;
|
|
92
|
-
return de({
|
|
93
|
-
root: ["root", !o && "padding", r && "dense", a && "subheader"]
|
|
94
|
-
}, Nt, n);
|
|
95
|
-
}, Ct = q("ul", {
|
|
96
|
-
name: "MuiList",
|
|
97
|
-
slot: "Root",
|
|
98
|
-
overridesResolver: (t, n) => {
|
|
99
|
-
const {
|
|
100
|
-
ownerState: o
|
|
101
|
-
} = t;
|
|
102
|
-
return [n.root, !o.disablePadding && n.padding, o.dense && n.dense, o.subheader && n.subheader];
|
|
103
|
-
}
|
|
104
|
-
})({
|
|
105
|
-
listStyle: "none",
|
|
106
|
-
margin: 0,
|
|
107
|
-
padding: 0,
|
|
108
|
-
position: "relative",
|
|
109
|
-
variants: [{
|
|
110
|
-
props: ({
|
|
111
|
-
ownerState: t
|
|
112
|
-
}) => !t.disablePadding,
|
|
113
|
-
style: {
|
|
114
|
-
paddingTop: 8,
|
|
115
|
-
paddingBottom: 8
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
props: ({
|
|
119
|
-
ownerState: t
|
|
120
|
-
}) => t.subheader,
|
|
121
|
-
style: {
|
|
122
|
-
paddingTop: 0
|
|
123
|
-
}
|
|
124
|
-
}]
|
|
125
|
-
}), Je = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
126
|
-
const r = pe({
|
|
127
|
-
props: n,
|
|
128
|
-
name: "MuiList"
|
|
129
|
-
}), {
|
|
130
|
-
children: a,
|
|
131
|
-
className: s,
|
|
132
|
-
component: i = "ul",
|
|
133
|
-
dense: c = !1,
|
|
134
|
-
disablePadding: d = !1,
|
|
135
|
-
subheader: T,
|
|
136
|
-
...O
|
|
137
|
-
} = r, x = l.useMemo(() => ({
|
|
138
|
-
dense: c
|
|
139
|
-
}), [c]), C = {
|
|
140
|
-
...r,
|
|
141
|
-
component: i,
|
|
142
|
-
dense: c,
|
|
143
|
-
disablePadding: d
|
|
144
|
-
}, h = kt(C);
|
|
145
|
-
return /* @__PURE__ */ A.jsx(Xe.Provider, {
|
|
146
|
-
value: x,
|
|
147
|
-
children: /* @__PURE__ */ A.jsxs(Ct, {
|
|
148
|
-
as: i,
|
|
149
|
-
className: ee(h.root, s),
|
|
150
|
-
ref: o,
|
|
151
|
-
ownerState: C,
|
|
152
|
-
...O,
|
|
153
|
-
children: [T, a]
|
|
154
|
-
})
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
158
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
159
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
160
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
161
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
162
|
-
/**
|
|
163
|
-
* The content of the component.
|
|
164
|
-
*/
|
|
165
|
-
children: e.node,
|
|
166
|
-
/**
|
|
167
|
-
* Override or extend the styles applied to the component.
|
|
168
|
-
*/
|
|
169
|
-
classes: e.object,
|
|
170
|
-
/**
|
|
171
|
-
* @ignore
|
|
172
|
-
*/
|
|
173
|
-
className: e.string,
|
|
174
|
-
/**
|
|
175
|
-
* The component used for the root node.
|
|
176
|
-
* Either a string to use a HTML element or a component.
|
|
177
|
-
*/
|
|
178
|
-
component: e.elementType,
|
|
179
|
-
/**
|
|
180
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
181
|
-
* the list and list items.
|
|
182
|
-
* The prop is available to descendant components as the `dense` context.
|
|
183
|
-
* @default false
|
|
184
|
-
*/
|
|
185
|
-
dense: e.bool,
|
|
186
|
-
/**
|
|
187
|
-
* If `true`, vertical padding is removed from the list.
|
|
188
|
-
* @default false
|
|
189
|
-
*/
|
|
190
|
-
disablePadding: e.bool,
|
|
191
|
-
/**
|
|
192
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
193
|
-
*/
|
|
194
|
-
subheader: e.node,
|
|
195
|
-
/**
|
|
196
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
197
|
-
*/
|
|
198
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
199
|
-
});
|
|
200
|
-
function se(t) {
|
|
201
|
-
let n = t.activeElement;
|
|
202
|
-
for (; n?.shadowRoot?.activeElement != null; )
|
|
203
|
-
n = n.shadowRoot.activeElement;
|
|
204
|
-
return n;
|
|
205
|
-
}
|
|
206
|
-
function Qe(t = window) {
|
|
207
|
-
const n = t.document.documentElement.clientWidth;
|
|
208
|
-
return t.innerWidth - n;
|
|
209
|
-
}
|
|
210
|
-
function Oe(t, n, o) {
|
|
211
|
-
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
|
|
212
|
-
}
|
|
213
|
-
function He(t, n, o) {
|
|
214
|
-
return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
|
|
215
|
-
}
|
|
216
|
-
function Ze(t, n) {
|
|
217
|
-
if (n === void 0)
|
|
218
|
-
return !0;
|
|
219
|
-
let o = t.innerText;
|
|
220
|
-
return o === void 0 && (o = t.textContent), o = o.trim().toLowerCase(), o.length === 0 ? !1 : n.repeating ? o[0] === n.keys[0] : o.startsWith(n.keys.join(""));
|
|
221
|
-
}
|
|
222
|
-
function re(t, n, o, r, a, s) {
|
|
223
|
-
let i = !1, c = a(t, n, n ? o : !1);
|
|
224
|
-
for (; c; ) {
|
|
225
|
-
if (c === t.firstChild) {
|
|
226
|
-
if (i)
|
|
227
|
-
return !1;
|
|
228
|
-
i = !0;
|
|
229
|
-
}
|
|
230
|
-
const d = r ? !1 : c.disabled || c.getAttribute("aria-disabled") === "true";
|
|
231
|
-
if (!c.hasAttribute("tabindex") || !Ze(c, s) || d)
|
|
232
|
-
c = a(t, c, o);
|
|
233
|
-
else
|
|
234
|
-
return c.focus(), !0;
|
|
235
|
-
}
|
|
236
|
-
return !1;
|
|
237
|
-
}
|
|
238
|
-
const et = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
239
|
-
const {
|
|
240
|
-
// private
|
|
241
|
-
// eslint-disable-next-line react/prop-types
|
|
242
|
-
actions: r,
|
|
243
|
-
autoFocus: a = !1,
|
|
244
|
-
autoFocusItem: s = !1,
|
|
245
|
-
children: i,
|
|
246
|
-
className: c,
|
|
247
|
-
disabledItemsFocusable: d = !1,
|
|
248
|
-
disableListWrap: T = !1,
|
|
249
|
-
onKeyDown: O,
|
|
250
|
-
variant: x = "selectedMenu",
|
|
251
|
-
...C
|
|
252
|
-
} = n, h = l.useRef(null), b = l.useRef({
|
|
253
|
-
keys: [],
|
|
254
|
-
repeating: !0,
|
|
255
|
-
previousKeyMatched: !0,
|
|
256
|
-
lastTime: null
|
|
257
|
-
});
|
|
258
|
-
ke(() => {
|
|
259
|
-
a && h.current.focus();
|
|
260
|
-
}, [a]), l.useImperativeHandle(r, () => ({
|
|
261
|
-
adjustStyleForScrollbar: (u, {
|
|
262
|
-
direction: p
|
|
263
|
-
}) => {
|
|
264
|
-
const g = !h.current.style.width;
|
|
265
|
-
if (u.clientHeight < h.current.clientHeight && g) {
|
|
266
|
-
const k = `${Qe(X(u))}px`;
|
|
267
|
-
h.current.style[p === "rtl" ? "paddingLeft" : "paddingRight"] = k, h.current.style.width = `calc(100% + ${k})`;
|
|
268
|
-
}
|
|
269
|
-
return h.current;
|
|
270
|
-
}
|
|
271
|
-
}), []);
|
|
272
|
-
const F = (u) => {
|
|
273
|
-
const p = h.current, g = u.key;
|
|
274
|
-
if (u.ctrlKey || u.metaKey || u.altKey) {
|
|
275
|
-
O && O(u);
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
const P = se(_(p));
|
|
279
|
-
if (g === "ArrowDown")
|
|
280
|
-
u.preventDefault(), re(p, P, T, d, Oe);
|
|
281
|
-
else if (g === "ArrowUp")
|
|
282
|
-
u.preventDefault(), re(p, P, T, d, He);
|
|
283
|
-
else if (g === "Home")
|
|
284
|
-
u.preventDefault(), re(p, null, T, d, Oe);
|
|
285
|
-
else if (g === "End")
|
|
286
|
-
u.preventDefault(), re(p, null, T, d, He);
|
|
287
|
-
else if (g.length === 1) {
|
|
288
|
-
const E = b.current, w = g.toLowerCase(), H = performance.now();
|
|
289
|
-
E.keys.length > 0 && (H - E.lastTime > 500 ? (E.keys = [], E.repeating = !0, E.previousKeyMatched = !0) : E.repeating && w !== E.keys[0] && (E.repeating = !1)), E.lastTime = H, E.keys.push(w);
|
|
290
|
-
const D = P && !E.repeating && Ze(P, E);
|
|
291
|
-
E.previousKeyMatched && (D || re(p, P, !1, d, Oe, E)) ? u.preventDefault() : E.previousKeyMatched = !1;
|
|
292
|
-
}
|
|
293
|
-
O && O(u);
|
|
294
|
-
}, M = J(h, o);
|
|
295
|
-
let y = -1;
|
|
296
|
-
l.Children.forEach(i, (u, p) => {
|
|
297
|
-
if (!/* @__PURE__ */ l.isValidElement(u)) {
|
|
298
|
-
y === p && (y += 1, y >= i.length && (y = -1));
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
process.env.NODE_ENV !== "production" && ze.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
302
|
-
`)), u.props.disabled || (x === "selectedMenu" && u.props.selected || y === -1) && (y = p), y === p && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (y += 1, y >= i.length && (y = -1));
|
|
303
|
-
});
|
|
304
|
-
const R = l.Children.map(i, (u, p) => {
|
|
305
|
-
if (p === y) {
|
|
306
|
-
const g = {};
|
|
307
|
-
return s && (g.autoFocus = !0), u.props.tabIndex === void 0 && x === "selectedMenu" && (g.tabIndex = 0), /* @__PURE__ */ l.cloneElement(u, g);
|
|
308
|
-
}
|
|
309
|
-
return u;
|
|
310
|
-
});
|
|
311
|
-
return /* @__PURE__ */ A.jsx(Je, {
|
|
312
|
-
role: "menu",
|
|
313
|
-
ref: M,
|
|
314
|
-
className: c,
|
|
315
|
-
onKeyDown: F,
|
|
316
|
-
tabIndex: a ? 0 : -1,
|
|
317
|
-
...C,
|
|
318
|
-
children: R
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
322
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
323
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
324
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
325
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
326
|
-
/**
|
|
327
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
328
|
-
* @default false
|
|
329
|
-
*/
|
|
330
|
-
autoFocus: e.bool,
|
|
331
|
-
/**
|
|
332
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
333
|
-
* if `variant="selectedMenu"`.
|
|
334
|
-
* @default false
|
|
335
|
-
*/
|
|
336
|
-
autoFocusItem: e.bool,
|
|
337
|
-
/**
|
|
338
|
-
* MenuList contents, normally `MenuItem`s.
|
|
339
|
-
*/
|
|
340
|
-
children: e.node,
|
|
341
|
-
/**
|
|
342
|
-
* @ignore
|
|
343
|
-
*/
|
|
344
|
-
className: e.string,
|
|
345
|
-
/**
|
|
346
|
-
* If `true`, will allow focus on disabled items.
|
|
347
|
-
* @default false
|
|
348
|
-
*/
|
|
349
|
-
disabledItemsFocusable: e.bool,
|
|
350
|
-
/**
|
|
351
|
-
* If `true`, the menu items will not wrap focus.
|
|
352
|
-
* @default false
|
|
353
|
-
*/
|
|
354
|
-
disableListWrap: e.bool,
|
|
355
|
-
/**
|
|
356
|
-
* @ignore
|
|
357
|
-
*/
|
|
358
|
-
onKeyDown: e.func,
|
|
359
|
-
/**
|
|
360
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
361
|
-
* and the vertical alignment relative to the anchor element.
|
|
362
|
-
* @default 'selectedMenu'
|
|
363
|
-
*/
|
|
364
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
365
|
-
});
|
|
366
|
-
function tt() {
|
|
367
|
-
return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) || // TODO(v9): Remove the test environment check
|
|
368
|
-
// eslint-disable-next-line mui/consistent-production-guard
|
|
369
|
-
process.env.NODE_ENV === "test");
|
|
370
|
-
}
|
|
371
|
-
function Mt(t) {
|
|
372
|
-
const {
|
|
373
|
-
prototype: n = {}
|
|
374
|
-
} = t;
|
|
375
|
-
return !!n.isReactComponent;
|
|
376
|
-
}
|
|
377
|
-
function nt(t, n, o, r, a) {
|
|
378
|
-
const s = t[n], i = a || n;
|
|
379
|
-
if (s == null || // When server-side rendering React doesn't warn either.
|
|
380
|
-
// This is not an accurate check for SSR.
|
|
381
|
-
// This is only in place for Emotion compat.
|
|
382
|
-
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
383
|
-
typeof window > "u")
|
|
384
|
-
return null;
|
|
385
|
-
let c;
|
|
386
|
-
const d = s.type;
|
|
387
|
-
return typeof d == "function" && !Mt(d) && (c = "Did you accidentally use a plain function component for an element instead?"), c !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
388
|
-
}
|
|
389
|
-
const fe = Me(e.element, nt);
|
|
390
|
-
fe.isRequired = Me(e.element.isRequired, nt);
|
|
391
|
-
function Te(t) {
|
|
392
|
-
return parseInt(l.version, 10) >= 19 ? t?.props?.ref || null : t?.ref || null;
|
|
393
|
-
}
|
|
394
|
-
function Ce(t) {
|
|
395
|
-
return `scale(${t}, ${t ** 2})`;
|
|
396
|
-
}
|
|
397
|
-
const St = {
|
|
398
|
-
entering: {
|
|
399
|
-
opacity: 1,
|
|
400
|
-
transform: Ce(1)
|
|
401
|
-
},
|
|
402
|
-
entered: {
|
|
403
|
-
opacity: 1,
|
|
404
|
-
transform: "none"
|
|
405
|
-
}
|
|
406
|
-
}, we = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), ge = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
407
|
-
const {
|
|
408
|
-
addEndListener: r,
|
|
409
|
-
appear: a = !0,
|
|
410
|
-
children: s,
|
|
411
|
-
easing: i,
|
|
412
|
-
in: c,
|
|
413
|
-
onEnter: d,
|
|
414
|
-
onEntered: T,
|
|
415
|
-
onEntering: O,
|
|
416
|
-
onExit: x,
|
|
417
|
-
onExited: C,
|
|
418
|
-
onExiting: h,
|
|
419
|
-
style: b,
|
|
420
|
-
timeout: F = "auto",
|
|
421
|
-
// eslint-disable-next-line react/prop-types
|
|
422
|
-
TransitionComponent: M = qe,
|
|
423
|
-
...y
|
|
424
|
-
} = n, R = dt(), u = l.useRef(), p = We(), g = l.useRef(null), k = J(g, Te(s), o), P = (f) => (m) => {
|
|
425
|
-
if (f) {
|
|
426
|
-
const L = g.current;
|
|
427
|
-
m === void 0 ? f(L) : f(L, m);
|
|
428
|
-
}
|
|
429
|
-
}, E = P(O), w = P((f, m) => {
|
|
430
|
-
Ge(f);
|
|
431
|
-
const {
|
|
432
|
-
duration: L,
|
|
433
|
-
delay: K,
|
|
434
|
-
easing: v
|
|
435
|
-
} = be({
|
|
436
|
-
style: b,
|
|
437
|
-
timeout: F,
|
|
438
|
-
easing: i
|
|
439
|
-
}, {
|
|
440
|
-
mode: "enter"
|
|
441
|
-
});
|
|
442
|
-
let I;
|
|
443
|
-
F === "auto" ? (I = p.transitions.getAutoHeightDuration(f.clientHeight), u.current = I) : I = L, f.style.transition = [p.transitions.create("opacity", {
|
|
444
|
-
duration: I,
|
|
445
|
-
delay: K
|
|
446
|
-
}), p.transitions.create("transform", {
|
|
447
|
-
duration: we ? I : I * 0.666,
|
|
448
|
-
delay: K,
|
|
449
|
-
easing: v
|
|
450
|
-
})].join(","), d && d(f, m);
|
|
451
|
-
}), H = P(T), D = P(h), B = P((f) => {
|
|
452
|
-
const {
|
|
453
|
-
duration: m,
|
|
454
|
-
delay: L,
|
|
455
|
-
easing: K
|
|
456
|
-
} = be({
|
|
457
|
-
style: b,
|
|
458
|
-
timeout: F,
|
|
459
|
-
easing: i
|
|
460
|
-
}, {
|
|
461
|
-
mode: "exit"
|
|
462
|
-
});
|
|
463
|
-
let v;
|
|
464
|
-
F === "auto" ? (v = p.transitions.getAutoHeightDuration(f.clientHeight), u.current = v) : v = m, f.style.transition = [p.transitions.create("opacity", {
|
|
465
|
-
duration: v,
|
|
466
|
-
delay: L
|
|
467
|
-
}), p.transitions.create("transform", {
|
|
468
|
-
duration: we ? v : v * 0.666,
|
|
469
|
-
delay: we ? L : L || v * 0.333,
|
|
470
|
-
easing: K
|
|
471
|
-
})].join(","), f.style.opacity = 0, f.style.transform = Ce(0.75), x && x(f);
|
|
472
|
-
}), $ = P(C), S = (f) => {
|
|
473
|
-
F === "auto" && R.start(u.current || 0, f), r && r(g.current, f);
|
|
474
|
-
};
|
|
475
|
-
return /* @__PURE__ */ A.jsx(M, {
|
|
476
|
-
appear: a,
|
|
477
|
-
in: c,
|
|
478
|
-
nodeRef: g,
|
|
479
|
-
onEnter: w,
|
|
480
|
-
onEntered: H,
|
|
481
|
-
onEntering: E,
|
|
482
|
-
onExit: B,
|
|
483
|
-
onExited: $,
|
|
484
|
-
onExiting: D,
|
|
485
|
-
addEndListener: S,
|
|
486
|
-
timeout: F === "auto" ? null : F,
|
|
487
|
-
...y,
|
|
488
|
-
children: (f, {
|
|
489
|
-
ownerState: m,
|
|
490
|
-
...L
|
|
491
|
-
}) => /* @__PURE__ */ l.cloneElement(s, {
|
|
492
|
-
style: {
|
|
493
|
-
opacity: 0,
|
|
494
|
-
transform: Ce(0.75),
|
|
495
|
-
visibility: f === "exited" && !c ? "hidden" : void 0,
|
|
496
|
-
...St[f],
|
|
497
|
-
...b,
|
|
498
|
-
...s.props.style
|
|
499
|
-
},
|
|
500
|
-
ref: k,
|
|
501
|
-
...L
|
|
502
|
-
})
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
506
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
507
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
508
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
509
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
510
|
-
/**
|
|
511
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
512
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
513
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
514
|
-
*/
|
|
515
|
-
addEndListener: e.func,
|
|
516
|
-
/**
|
|
517
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
518
|
-
* Set this to `false` to disable this behavior.
|
|
519
|
-
* @default true
|
|
520
|
-
*/
|
|
521
|
-
appear: e.bool,
|
|
522
|
-
/**
|
|
523
|
-
* A single child content element.
|
|
524
|
-
*/
|
|
525
|
-
children: fe.isRequired,
|
|
526
|
-
/**
|
|
527
|
-
* The transition timing function.
|
|
528
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
529
|
-
*/
|
|
530
|
-
easing: e.oneOfType([e.shape({
|
|
531
|
-
enter: e.string,
|
|
532
|
-
exit: e.string
|
|
533
|
-
}), e.string]),
|
|
534
|
-
/**
|
|
535
|
-
* If `true`, the component will transition in.
|
|
536
|
-
*/
|
|
537
|
-
in: e.bool,
|
|
538
|
-
/**
|
|
539
|
-
* @ignore
|
|
540
|
-
*/
|
|
541
|
-
onEnter: e.func,
|
|
542
|
-
/**
|
|
543
|
-
* @ignore
|
|
544
|
-
*/
|
|
545
|
-
onEntered: e.func,
|
|
546
|
-
/**
|
|
547
|
-
* @ignore
|
|
548
|
-
*/
|
|
549
|
-
onEntering: e.func,
|
|
550
|
-
/**
|
|
551
|
-
* @ignore
|
|
552
|
-
*/
|
|
553
|
-
onExit: e.func,
|
|
554
|
-
/**
|
|
555
|
-
* @ignore
|
|
556
|
-
*/
|
|
557
|
-
onExited: e.func,
|
|
558
|
-
/**
|
|
559
|
-
* @ignore
|
|
560
|
-
*/
|
|
561
|
-
onExiting: e.func,
|
|
562
|
-
/**
|
|
563
|
-
* @ignore
|
|
564
|
-
*/
|
|
565
|
-
style: e.object,
|
|
566
|
-
/**
|
|
567
|
-
* The duration for the transition, in milliseconds.
|
|
568
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
569
|
-
*
|
|
570
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
571
|
-
* @default 'auto'
|
|
572
|
-
*/
|
|
573
|
-
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
574
|
-
appear: e.number,
|
|
575
|
-
enter: e.number,
|
|
576
|
-
exit: e.number
|
|
577
|
-
})])
|
|
578
|
-
});
|
|
579
|
-
ge && (ge.muiSupportAuto = !0);
|
|
580
|
-
function jt(t) {
|
|
581
|
-
const n = _(t);
|
|
582
|
-
return n.body === t ? X(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
583
|
-
}
|
|
584
|
-
function ae(t, n) {
|
|
585
|
-
n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
|
|
586
|
-
}
|
|
587
|
-
function Be(t) {
|
|
588
|
-
return parseFloat(X(t).getComputedStyle(t).paddingRight) || 0;
|
|
589
|
-
}
|
|
590
|
-
function Ft(t) {
|
|
591
|
-
const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), r = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
592
|
-
return o || r;
|
|
593
|
-
}
|
|
594
|
-
function Ve(t, n, o, r, a) {
|
|
595
|
-
const s = [n, o, ...r];
|
|
596
|
-
[].forEach.call(t.children, (i) => {
|
|
597
|
-
const c = !s.includes(i), d = !Ft(i);
|
|
598
|
-
c && d && ae(i, a);
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
function Ne(t, n) {
|
|
602
|
-
let o = -1;
|
|
603
|
-
return t.some((r, a) => n(r) ? (o = a, !0) : !1), o;
|
|
604
|
-
}
|
|
605
|
-
function It(t, n) {
|
|
606
|
-
const o = [], r = t.container;
|
|
607
|
-
if (!n.disableScrollLock) {
|
|
608
|
-
if (jt(r)) {
|
|
609
|
-
const i = Qe(X(r));
|
|
610
|
-
o.push({
|
|
611
|
-
value: r.style.paddingRight,
|
|
612
|
-
property: "padding-right",
|
|
613
|
-
el: r
|
|
614
|
-
}), r.style.paddingRight = `${Be(r) + i}px`;
|
|
615
|
-
const c = _(r).querySelectorAll(".mui-fixed");
|
|
616
|
-
[].forEach.call(c, (d) => {
|
|
617
|
-
o.push({
|
|
618
|
-
value: d.style.paddingRight,
|
|
619
|
-
property: "padding-right",
|
|
620
|
-
el: d
|
|
621
|
-
}), d.style.paddingRight = `${Be(d) + i}px`;
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
let s;
|
|
625
|
-
if (r.parentNode instanceof DocumentFragment)
|
|
626
|
-
s = _(r).body;
|
|
627
|
-
else {
|
|
628
|
-
const i = r.parentElement, c = X(r);
|
|
629
|
-
s = i?.nodeName === "HTML" && c.getComputedStyle(i).overflowY === "scroll" ? i : r;
|
|
630
|
-
}
|
|
631
|
-
o.push({
|
|
632
|
-
value: s.style.overflow,
|
|
633
|
-
property: "overflow",
|
|
634
|
-
el: s
|
|
635
|
-
}, {
|
|
636
|
-
value: s.style.overflowX,
|
|
637
|
-
property: "overflow-x",
|
|
638
|
-
el: s
|
|
639
|
-
}, {
|
|
640
|
-
value: s.style.overflowY,
|
|
641
|
-
property: "overflow-y",
|
|
642
|
-
el: s
|
|
643
|
-
}), s.style.overflow = "hidden";
|
|
644
|
-
}
|
|
645
|
-
return () => {
|
|
646
|
-
o.forEach(({
|
|
647
|
-
value: s,
|
|
648
|
-
el: i,
|
|
649
|
-
property: c
|
|
650
|
-
}) => {
|
|
651
|
-
s ? i.style.setProperty(c, s) : i.style.removeProperty(c);
|
|
652
|
-
});
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
function Dt(t) {
|
|
656
|
-
const n = [];
|
|
657
|
-
return [].forEach.call(t.children, (o) => {
|
|
658
|
-
o.getAttribute("aria-hidden") === "true" && n.push(o);
|
|
659
|
-
}), n;
|
|
660
|
-
}
|
|
661
|
-
class Lt {
|
|
662
|
-
constructor() {
|
|
663
|
-
this.modals = [], this.containers = [];
|
|
664
|
-
}
|
|
665
|
-
add(n, o) {
|
|
666
|
-
let r = this.modals.indexOf(n);
|
|
667
|
-
if (r !== -1)
|
|
668
|
-
return r;
|
|
669
|
-
r = this.modals.length, this.modals.push(n), n.modalRef && ae(n.modalRef, !1);
|
|
670
|
-
const a = Dt(o);
|
|
671
|
-
Ve(o, n.mount, n.modalRef, a, !0);
|
|
672
|
-
const s = Ne(this.containers, (i) => i.container === o);
|
|
673
|
-
return s !== -1 ? (this.containers[s].modals.push(n), r) : (this.containers.push({
|
|
674
|
-
modals: [n],
|
|
675
|
-
container: o,
|
|
676
|
-
restore: null,
|
|
677
|
-
hiddenSiblings: a
|
|
678
|
-
}), r);
|
|
679
|
-
}
|
|
680
|
-
mount(n, o) {
|
|
681
|
-
const r = Ne(this.containers, (s) => s.modals.includes(n)), a = this.containers[r];
|
|
682
|
-
a.restore || (a.restore = It(a, o));
|
|
683
|
-
}
|
|
684
|
-
remove(n, o = !0) {
|
|
685
|
-
const r = this.modals.indexOf(n);
|
|
686
|
-
if (r === -1)
|
|
687
|
-
return r;
|
|
688
|
-
const a = Ne(this.containers, (i) => i.modals.includes(n)), s = this.containers[a];
|
|
689
|
-
if (s.modals.splice(s.modals.indexOf(n), 1), this.modals.splice(r, 1), s.modals.length === 0)
|
|
690
|
-
s.restore && s.restore(), n.modalRef && ae(n.modalRef, o), Ve(s.container, n.mount, n.modalRef, s.hiddenSiblings, !1), this.containers.splice(a, 1);
|
|
691
|
-
else {
|
|
692
|
-
const i = s.modals[s.modals.length - 1];
|
|
693
|
-
i.modalRef && ae(i.modalRef, !1);
|
|
694
|
-
}
|
|
695
|
-
return r;
|
|
696
|
-
}
|
|
697
|
-
isTopModal(n) {
|
|
698
|
-
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
const At = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
702
|
-
function Ht(t) {
|
|
703
|
-
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
704
|
-
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
705
|
-
}
|
|
706
|
-
function Bt(t) {
|
|
707
|
-
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
708
|
-
return !1;
|
|
709
|
-
const n = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
710
|
-
let o = n(`[name="${t.name}"]:checked`);
|
|
711
|
-
return o || (o = n(`[name="${t.name}"]`)), o !== t;
|
|
712
|
-
}
|
|
713
|
-
function Vt(t) {
|
|
714
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || Bt(t));
|
|
715
|
-
}
|
|
716
|
-
function $t(t) {
|
|
717
|
-
const n = [], o = [];
|
|
718
|
-
return Array.from(t.querySelectorAll(At)).forEach((r, a) => {
|
|
719
|
-
const s = Ht(r);
|
|
720
|
-
s === -1 || !Vt(r) || (s === 0 ? n.push(r) : o.push({
|
|
721
|
-
documentOrder: a,
|
|
722
|
-
tabIndex: s,
|
|
723
|
-
node: r
|
|
724
|
-
}));
|
|
725
|
-
}), o.sort((r, a) => r.tabIndex === a.tabIndex ? r.documentOrder - a.documentOrder : r.tabIndex - a.tabIndex).map((r) => r.node).concat(n);
|
|
726
|
-
}
|
|
727
|
-
function Kt() {
|
|
728
|
-
return !0;
|
|
729
|
-
}
|
|
730
|
-
function ye(t) {
|
|
731
|
-
const {
|
|
732
|
-
children: n,
|
|
733
|
-
disableAutoFocus: o = !1,
|
|
734
|
-
disableEnforceFocus: r = !1,
|
|
735
|
-
disableRestoreFocus: a = !1,
|
|
736
|
-
getTabbable: s = $t,
|
|
737
|
-
isEnabled: i = Kt,
|
|
738
|
-
open: c
|
|
739
|
-
} = t, d = l.useRef(!1), T = l.useRef(null), O = l.useRef(null), x = l.useRef(null), C = l.useRef(null), h = l.useRef(!1), b = l.useRef(null), F = J(Te(n), b), M = l.useRef(null);
|
|
740
|
-
l.useEffect(() => {
|
|
741
|
-
!c || !b.current || (h.current = !o);
|
|
742
|
-
}, [o, c]), l.useEffect(() => {
|
|
743
|
-
if (!c || !b.current)
|
|
744
|
-
return;
|
|
745
|
-
const u = _(b.current), p = se(u);
|
|
746
|
-
return b.current.contains(p) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
747
|
-
`)), b.current.setAttribute("tabIndex", "-1")), h.current && b.current.focus()), () => {
|
|
748
|
-
a || (x.current && x.current.focus && (d.current = !0, x.current.focus()), x.current = null);
|
|
749
|
-
};
|
|
750
|
-
}, [c]), l.useEffect(() => {
|
|
751
|
-
if (!c || !b.current)
|
|
752
|
-
return;
|
|
753
|
-
const u = _(b.current), p = (P) => {
|
|
754
|
-
if (M.current = P, r || !i() || P.key !== "Tab")
|
|
755
|
-
return;
|
|
756
|
-
se(u) === b.current && P.shiftKey && (d.current = !0, O.current && O.current.focus());
|
|
757
|
-
}, g = () => {
|
|
758
|
-
const P = b.current;
|
|
759
|
-
if (P === null)
|
|
760
|
-
return;
|
|
761
|
-
const E = se(u);
|
|
762
|
-
if (!u.hasFocus() || !i() || d.current) {
|
|
763
|
-
d.current = !1;
|
|
764
|
-
return;
|
|
765
|
-
}
|
|
766
|
-
if (P.contains(E) || r && E !== T.current && E !== O.current)
|
|
767
|
-
return;
|
|
768
|
-
if (E !== C.current)
|
|
769
|
-
C.current = null;
|
|
770
|
-
else if (C.current !== null)
|
|
771
|
-
return;
|
|
772
|
-
if (!h.current)
|
|
773
|
-
return;
|
|
774
|
-
let w = [];
|
|
775
|
-
if ((E === T.current || E === O.current) && (w = s(b.current)), w.length > 0) {
|
|
776
|
-
const H = !!(M.current?.shiftKey && M.current?.key === "Tab"), D = w[0], B = w[w.length - 1];
|
|
777
|
-
typeof D != "string" && typeof B != "string" && (H ? B.focus() : D.focus());
|
|
778
|
-
} else
|
|
779
|
-
P.focus();
|
|
780
|
-
};
|
|
781
|
-
u.addEventListener("focusin", g), u.addEventListener("keydown", p, !0);
|
|
782
|
-
const k = setInterval(() => {
|
|
783
|
-
const P = se(u);
|
|
784
|
-
P && P.tagName === "BODY" && g();
|
|
785
|
-
}, 50);
|
|
786
|
-
return () => {
|
|
787
|
-
clearInterval(k), u.removeEventListener("focusin", g), u.removeEventListener("keydown", p, !0);
|
|
788
|
-
};
|
|
789
|
-
}, [o, r, a, i, c, s]);
|
|
790
|
-
const y = (u) => {
|
|
791
|
-
x.current === null && (x.current = u.relatedTarget), h.current = !0, C.current = u.target;
|
|
792
|
-
const p = n.props.onFocus;
|
|
793
|
-
p && p(u);
|
|
794
|
-
}, R = (u) => {
|
|
795
|
-
x.current === null && (x.current = u.relatedTarget), h.current = !0;
|
|
796
|
-
};
|
|
797
|
-
return /* @__PURE__ */ A.jsxs(l.Fragment, {
|
|
798
|
-
children: [/* @__PURE__ */ A.jsx("div", {
|
|
799
|
-
tabIndex: c ? 0 : -1,
|
|
800
|
-
onFocus: R,
|
|
801
|
-
ref: T,
|
|
802
|
-
"data-testid": "sentinelStart"
|
|
803
|
-
}), /* @__PURE__ */ l.cloneElement(n, {
|
|
804
|
-
ref: F,
|
|
805
|
-
onFocus: y
|
|
806
|
-
}), /* @__PURE__ */ A.jsx("div", {
|
|
807
|
-
tabIndex: c ? 0 : -1,
|
|
808
|
-
onFocus: R,
|
|
809
|
-
ref: O,
|
|
810
|
-
"data-testid": "sentinelEnd"
|
|
811
|
-
})]
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
815
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
816
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
817
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
818
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
819
|
-
/**
|
|
820
|
-
* A single child content element.
|
|
821
|
-
*/
|
|
822
|
-
children: fe,
|
|
823
|
-
/**
|
|
824
|
-
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
825
|
-
* replace it to the last focused element when it closes.
|
|
826
|
-
* This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
|
|
827
|
-
*
|
|
828
|
-
* Generally this should never be set to `true` as it makes the focus trap less
|
|
829
|
-
* accessible to assistive technologies, like screen readers.
|
|
830
|
-
* @default false
|
|
831
|
-
*/
|
|
832
|
-
disableAutoFocus: e.bool,
|
|
833
|
-
/**
|
|
834
|
-
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
|
835
|
-
*
|
|
836
|
-
* Generally this should never be set to `true` as it makes the focus trap less
|
|
837
|
-
* accessible to assistive technologies, like screen readers.
|
|
838
|
-
* @default false
|
|
839
|
-
*/
|
|
840
|
-
disableEnforceFocus: e.bool,
|
|
841
|
-
/**
|
|
842
|
-
* If `true`, the focus trap will not restore focus to previously focused element once
|
|
843
|
-
* focus trap is hidden or unmounted.
|
|
844
|
-
* @default false
|
|
845
|
-
*/
|
|
846
|
-
disableRestoreFocus: e.bool,
|
|
847
|
-
/**
|
|
848
|
-
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
|
849
|
-
* For instance, you can provide the "tabbable" npm dependency.
|
|
850
|
-
* @param {HTMLElement} root
|
|
851
|
-
*/
|
|
852
|
-
getTabbable: e.func,
|
|
853
|
-
/**
|
|
854
|
-
* This prop extends the `open` prop.
|
|
855
|
-
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
856
|
-
* This prop should be memoized.
|
|
857
|
-
* It can be used to support multiple focus trap mounted at the same time.
|
|
858
|
-
* @default function defaultIsEnabled(): boolean {
|
|
859
|
-
* return true;
|
|
860
|
-
* }
|
|
861
|
-
*/
|
|
862
|
-
isEnabled: e.func,
|
|
863
|
-
/**
|
|
864
|
-
* If `true`, focus is locked.
|
|
865
|
-
*/
|
|
866
|
-
open: e.bool.isRequired
|
|
867
|
-
});
|
|
868
|
-
process.env.NODE_ENV !== "production" && (ye.propTypes = Ye(ye.propTypes));
|
|
869
|
-
function Ut(t) {
|
|
870
|
-
return typeof t == "function" ? t() : t;
|
|
871
|
-
}
|
|
872
|
-
const Ee = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
873
|
-
const {
|
|
874
|
-
children: r,
|
|
875
|
-
container: a,
|
|
876
|
-
disablePortal: s = !1
|
|
877
|
-
} = n, [i, c] = l.useState(null), d = J(/* @__PURE__ */ l.isValidElement(r) ? Te(r) : null, o);
|
|
878
|
-
if (ke(() => {
|
|
879
|
-
s || c(Ut(a) || document.body);
|
|
880
|
-
}, [a, s]), ke(() => {
|
|
881
|
-
if (i && !s)
|
|
882
|
-
return Ae(o, i), () => {
|
|
883
|
-
Ae(o, null);
|
|
884
|
-
};
|
|
885
|
-
}, [o, i, s]), s) {
|
|
886
|
-
if (/* @__PURE__ */ l.isValidElement(r)) {
|
|
887
|
-
const T = {
|
|
888
|
-
ref: d
|
|
889
|
-
};
|
|
890
|
-
return /* @__PURE__ */ l.cloneElement(r, T);
|
|
891
|
-
}
|
|
892
|
-
return r;
|
|
893
|
-
}
|
|
894
|
-
return i && /* @__PURE__ */ Pt.createPortal(r, i);
|
|
895
|
-
});
|
|
896
|
-
process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
897
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
898
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
899
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
900
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
901
|
-
/**
|
|
902
|
-
* The children to render into the `container`.
|
|
903
|
-
*/
|
|
904
|
-
children: e.node,
|
|
905
|
-
/**
|
|
906
|
-
* An HTML element or function that returns one.
|
|
907
|
-
* The `container` will have the portal children appended to it.
|
|
908
|
-
*
|
|
909
|
-
* You can also provide a callback, which is called in a React layout effect.
|
|
910
|
-
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
911
|
-
*
|
|
912
|
-
* By default, it uses the body of the top-level document object,
|
|
913
|
-
* so it's simply `document.body` most of the time.
|
|
914
|
-
*/
|
|
915
|
-
container: e.oneOfType([ce, e.func]),
|
|
916
|
-
/**
|
|
917
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
918
|
-
* @default false
|
|
919
|
-
*/
|
|
920
|
-
disablePortal: e.bool
|
|
921
|
-
});
|
|
922
|
-
process.env.NODE_ENV !== "production" && (Ee.propTypes = Ye(Ee.propTypes));
|
|
923
|
-
const _t = {
|
|
924
|
-
entering: {
|
|
925
|
-
opacity: 1
|
|
926
|
-
},
|
|
927
|
-
entered: {
|
|
928
|
-
opacity: 1
|
|
929
|
-
}
|
|
930
|
-
}, ot = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
931
|
-
const r = We(), a = {
|
|
932
|
-
enter: r.transitions.duration.enteringScreen,
|
|
933
|
-
exit: r.transitions.duration.leavingScreen
|
|
934
|
-
}, {
|
|
935
|
-
addEndListener: s,
|
|
936
|
-
appear: i = !0,
|
|
937
|
-
children: c,
|
|
938
|
-
easing: d,
|
|
939
|
-
in: T,
|
|
940
|
-
onEnter: O,
|
|
941
|
-
onEntered: x,
|
|
942
|
-
onEntering: C,
|
|
943
|
-
onExit: h,
|
|
944
|
-
onExited: b,
|
|
945
|
-
onExiting: F,
|
|
946
|
-
style: M,
|
|
947
|
-
timeout: y = a,
|
|
948
|
-
// eslint-disable-next-line react/prop-types
|
|
949
|
-
TransitionComponent: R = qe,
|
|
950
|
-
...u
|
|
951
|
-
} = n, p = l.useRef(null), g = J(p, Te(c), o), k = (S) => (f) => {
|
|
952
|
-
if (S) {
|
|
953
|
-
const m = p.current;
|
|
954
|
-
f === void 0 ? S(m) : S(m, f);
|
|
955
|
-
}
|
|
956
|
-
}, P = k(C), E = k((S, f) => {
|
|
957
|
-
Ge(S);
|
|
958
|
-
const m = be({
|
|
959
|
-
style: M,
|
|
960
|
-
timeout: y,
|
|
961
|
-
easing: d
|
|
962
|
-
}, {
|
|
963
|
-
mode: "enter"
|
|
964
|
-
});
|
|
965
|
-
S.style.webkitTransition = r.transitions.create("opacity", m), S.style.transition = r.transitions.create("opacity", m), O && O(S, f);
|
|
966
|
-
}), w = k(x), H = k(F), D = k((S) => {
|
|
967
|
-
const f = be({
|
|
968
|
-
style: M,
|
|
969
|
-
timeout: y,
|
|
970
|
-
easing: d
|
|
971
|
-
}, {
|
|
972
|
-
mode: "exit"
|
|
973
|
-
});
|
|
974
|
-
S.style.webkitTransition = r.transitions.create("opacity", f), S.style.transition = r.transitions.create("opacity", f), h && h(S);
|
|
975
|
-
}), B = k(b), $ = (S) => {
|
|
976
|
-
s && s(p.current, S);
|
|
977
|
-
};
|
|
978
|
-
return /* @__PURE__ */ A.jsx(R, {
|
|
979
|
-
appear: i,
|
|
980
|
-
in: T,
|
|
981
|
-
nodeRef: p,
|
|
982
|
-
onEnter: E,
|
|
983
|
-
onEntered: w,
|
|
984
|
-
onEntering: P,
|
|
985
|
-
onExit: D,
|
|
986
|
-
onExited: B,
|
|
987
|
-
onExiting: H,
|
|
988
|
-
addEndListener: $,
|
|
989
|
-
timeout: y,
|
|
990
|
-
...u,
|
|
991
|
-
children: (S, {
|
|
992
|
-
ownerState: f,
|
|
993
|
-
...m
|
|
994
|
-
}) => /* @__PURE__ */ l.cloneElement(c, {
|
|
995
|
-
style: {
|
|
996
|
-
opacity: 0,
|
|
997
|
-
visibility: S === "exited" && !T ? "hidden" : void 0,
|
|
998
|
-
..._t[S],
|
|
999
|
-
...M,
|
|
1000
|
-
...c.props.style
|
|
1001
|
-
},
|
|
1002
|
-
ref: g,
|
|
1003
|
-
...m
|
|
1004
|
-
})
|
|
1005
|
-
});
|
|
1006
|
-
});
|
|
1007
|
-
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1008
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1009
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1010
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1011
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1012
|
-
/**
|
|
1013
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
1014
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
1015
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
1016
|
-
*/
|
|
1017
|
-
addEndListener: e.func,
|
|
1018
|
-
/**
|
|
1019
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
1020
|
-
* Set this to `false` to disable this behavior.
|
|
1021
|
-
* @default true
|
|
1022
|
-
*/
|
|
1023
|
-
appear: e.bool,
|
|
1024
|
-
/**
|
|
1025
|
-
* A single child content element.
|
|
1026
|
-
*/
|
|
1027
|
-
children: fe.isRequired,
|
|
1028
|
-
/**
|
|
1029
|
-
* The transition timing function.
|
|
1030
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
1031
|
-
*/
|
|
1032
|
-
easing: e.oneOfType([e.shape({
|
|
1033
|
-
enter: e.string,
|
|
1034
|
-
exit: e.string
|
|
1035
|
-
}), e.string]),
|
|
1036
|
-
/**
|
|
1037
|
-
* If `true`, the component will transition in.
|
|
1038
|
-
*/
|
|
1039
|
-
in: e.bool,
|
|
1040
|
-
/**
|
|
1041
|
-
* @ignore
|
|
1042
|
-
*/
|
|
1043
|
-
onEnter: e.func,
|
|
1044
|
-
/**
|
|
1045
|
-
* @ignore
|
|
1046
|
-
*/
|
|
1047
|
-
onEntered: e.func,
|
|
1048
|
-
/**
|
|
1049
|
-
* @ignore
|
|
1050
|
-
*/
|
|
1051
|
-
onEntering: e.func,
|
|
1052
|
-
/**
|
|
1053
|
-
* @ignore
|
|
1054
|
-
*/
|
|
1055
|
-
onExit: e.func,
|
|
1056
|
-
/**
|
|
1057
|
-
* @ignore
|
|
1058
|
-
*/
|
|
1059
|
-
onExited: e.func,
|
|
1060
|
-
/**
|
|
1061
|
-
* @ignore
|
|
1062
|
-
*/
|
|
1063
|
-
onExiting: e.func,
|
|
1064
|
-
/**
|
|
1065
|
-
* @ignore
|
|
1066
|
-
*/
|
|
1067
|
-
style: e.object,
|
|
1068
|
-
/**
|
|
1069
|
-
* The duration for the transition, in milliseconds.
|
|
1070
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1071
|
-
* @default {
|
|
1072
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
1073
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
1074
|
-
* }
|
|
1075
|
-
*/
|
|
1076
|
-
timeout: e.oneOfType([e.number, e.shape({
|
|
1077
|
-
appear: e.number,
|
|
1078
|
-
enter: e.number,
|
|
1079
|
-
exit: e.number
|
|
1080
|
-
})])
|
|
1081
|
-
});
|
|
1082
|
-
function zt(t) {
|
|
1083
|
-
return le("MuiBackdrop", t);
|
|
1084
|
-
}
|
|
1085
|
-
ue("MuiBackdrop", ["root", "invisible"]);
|
|
1086
|
-
const qt = (t) => {
|
|
1087
|
-
const {
|
|
1088
|
-
classes: n,
|
|
1089
|
-
invisible: o
|
|
1090
|
-
} = t;
|
|
1091
|
-
return de({
|
|
1092
|
-
root: ["root", o && "invisible"]
|
|
1093
|
-
}, zt, n);
|
|
1094
|
-
}, Wt = q("div", {
|
|
1095
|
-
name: "MuiBackdrop",
|
|
1096
|
-
slot: "Root",
|
|
1097
|
-
overridesResolver: (t, n) => {
|
|
1098
|
-
const {
|
|
1099
|
-
ownerState: o
|
|
1100
|
-
} = t;
|
|
1101
|
-
return [n.root, o.invisible && n.invisible];
|
|
1102
|
-
}
|
|
1103
|
-
})({
|
|
1104
|
-
position: "fixed",
|
|
1105
|
-
display: "flex",
|
|
1106
|
-
alignItems: "center",
|
|
1107
|
-
justifyContent: "center",
|
|
1108
|
-
right: 0,
|
|
1109
|
-
bottom: 0,
|
|
1110
|
-
top: 0,
|
|
1111
|
-
left: 0,
|
|
1112
|
-
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
1113
|
-
WebkitTapHighlightColor: "transparent",
|
|
1114
|
-
variants: [{
|
|
1115
|
-
props: {
|
|
1116
|
-
invisible: !0
|
|
1117
|
-
},
|
|
1118
|
-
style: {
|
|
1119
|
-
backgroundColor: "transparent"
|
|
1120
|
-
}
|
|
1121
|
-
}]
|
|
1122
|
-
}), rt = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1123
|
-
const r = pe({
|
|
1124
|
-
props: n,
|
|
1125
|
-
name: "MuiBackdrop"
|
|
1126
|
-
}), {
|
|
1127
|
-
children: a,
|
|
1128
|
-
className: s,
|
|
1129
|
-
component: i = "div",
|
|
1130
|
-
invisible: c = !1,
|
|
1131
|
-
open: d,
|
|
1132
|
-
components: T = {},
|
|
1133
|
-
componentsProps: O = {},
|
|
1134
|
-
slotProps: x = {},
|
|
1135
|
-
slots: C = {},
|
|
1136
|
-
TransitionComponent: h,
|
|
1137
|
-
transitionDuration: b,
|
|
1138
|
-
...F
|
|
1139
|
-
} = r, M = {
|
|
1140
|
-
...r,
|
|
1141
|
-
component: i,
|
|
1142
|
-
invisible: c
|
|
1143
|
-
}, y = qt(M), R = {
|
|
1144
|
-
transition: h,
|
|
1145
|
-
root: T.Root,
|
|
1146
|
-
...C
|
|
1147
|
-
}, u = {
|
|
1148
|
-
...O,
|
|
1149
|
-
...x
|
|
1150
|
-
}, p = {
|
|
1151
|
-
component: i,
|
|
1152
|
-
slots: R,
|
|
1153
|
-
slotProps: u
|
|
1154
|
-
}, [g, k] = z("root", {
|
|
1155
|
-
elementType: Wt,
|
|
1156
|
-
externalForwardedProps: p,
|
|
1157
|
-
className: ee(y.root, s),
|
|
1158
|
-
ownerState: M
|
|
1159
|
-
}), [P, E] = z("transition", {
|
|
1160
|
-
elementType: ot,
|
|
1161
|
-
externalForwardedProps: p,
|
|
1162
|
-
ownerState: M
|
|
1163
|
-
});
|
|
1164
|
-
return /* @__PURE__ */ A.jsx(P, {
|
|
1165
|
-
in: d,
|
|
1166
|
-
timeout: b,
|
|
1167
|
-
...F,
|
|
1168
|
-
...E,
|
|
1169
|
-
children: /* @__PURE__ */ A.jsx(g, {
|
|
1170
|
-
"aria-hidden": !0,
|
|
1171
|
-
...k,
|
|
1172
|
-
ref: o,
|
|
1173
|
-
children: a
|
|
1174
|
-
})
|
|
1175
|
-
});
|
|
1176
|
-
});
|
|
1177
|
-
process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
1178
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1179
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1180
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1181
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1182
|
-
/**
|
|
1183
|
-
* The content of the component.
|
|
1184
|
-
*/
|
|
1185
|
-
children: e.node,
|
|
1186
|
-
/**
|
|
1187
|
-
* Override or extend the styles applied to the component.
|
|
1188
|
-
*/
|
|
1189
|
-
classes: e.object,
|
|
1190
|
-
/**
|
|
1191
|
-
* @ignore
|
|
1192
|
-
*/
|
|
1193
|
-
className: e.string,
|
|
1194
|
-
/**
|
|
1195
|
-
* The component used for the root node.
|
|
1196
|
-
* Either a string to use a HTML element or a component.
|
|
1197
|
-
*/
|
|
1198
|
-
component: e.elementType,
|
|
1199
|
-
/**
|
|
1200
|
-
* The components used for each slot inside.
|
|
1201
|
-
*
|
|
1202
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1203
|
-
*
|
|
1204
|
-
* @default {}
|
|
1205
|
-
*/
|
|
1206
|
-
components: e.shape({
|
|
1207
|
-
Root: e.elementType
|
|
1208
|
-
}),
|
|
1209
|
-
/**
|
|
1210
|
-
* The extra props for the slot components.
|
|
1211
|
-
* You can override the existing props or add new ones.
|
|
1212
|
-
*
|
|
1213
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1214
|
-
*
|
|
1215
|
-
* @default {}
|
|
1216
|
-
*/
|
|
1217
|
-
componentsProps: e.shape({
|
|
1218
|
-
root: e.object
|
|
1219
|
-
}),
|
|
1220
|
-
/**
|
|
1221
|
-
* If `true`, the backdrop is invisible.
|
|
1222
|
-
* It can be used when rendering a popover or a custom select component.
|
|
1223
|
-
* @default false
|
|
1224
|
-
*/
|
|
1225
|
-
invisible: e.bool,
|
|
1226
|
-
/**
|
|
1227
|
-
* If `true`, the component is shown.
|
|
1228
|
-
*/
|
|
1229
|
-
open: e.bool.isRequired,
|
|
1230
|
-
/**
|
|
1231
|
-
* The props used for each slot inside.
|
|
1232
|
-
* @default {}
|
|
1233
|
-
*/
|
|
1234
|
-
slotProps: e.shape({
|
|
1235
|
-
root: e.oneOfType([e.func, e.object]),
|
|
1236
|
-
transition: e.oneOfType([e.func, e.object])
|
|
1237
|
-
}),
|
|
1238
|
-
/**
|
|
1239
|
-
* The components used for each slot inside.
|
|
1240
|
-
* @default {}
|
|
1241
|
-
*/
|
|
1242
|
-
slots: e.shape({
|
|
1243
|
-
root: e.elementType,
|
|
1244
|
-
transition: e.elementType
|
|
1245
|
-
}),
|
|
1246
|
-
/**
|
|
1247
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1248
|
-
*/
|
|
1249
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1250
|
-
/**
|
|
1251
|
-
* The component used for the transition.
|
|
1252
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1253
|
-
* @default Fade
|
|
1254
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1255
|
-
*/
|
|
1256
|
-
TransitionComponent: e.elementType,
|
|
1257
|
-
/**
|
|
1258
|
-
* The duration for the transition, in milliseconds.
|
|
1259
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1260
|
-
*/
|
|
1261
|
-
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
1262
|
-
appear: e.number,
|
|
1263
|
-
enter: e.number,
|
|
1264
|
-
exit: e.number
|
|
1265
|
-
})])
|
|
1266
|
-
});
|
|
1267
|
-
function Gt(t) {
|
|
1268
|
-
return typeof t == "function" ? t() : t;
|
|
1269
|
-
}
|
|
1270
|
-
function Yt(t) {
|
|
1271
|
-
return t ? t.props.hasOwnProperty("in") : !1;
|
|
1272
|
-
}
|
|
1273
|
-
const $e = () => {
|
|
1274
|
-
}, he = new Lt();
|
|
1275
|
-
function Xt(t) {
|
|
1276
|
-
const {
|
|
1277
|
-
container: n,
|
|
1278
|
-
disableEscapeKeyDown: o = !1,
|
|
1279
|
-
disableScrollLock: r = !1,
|
|
1280
|
-
closeAfterTransition: a = !1,
|
|
1281
|
-
onTransitionEnter: s,
|
|
1282
|
-
onTransitionExited: i,
|
|
1283
|
-
children: c,
|
|
1284
|
-
onClose: d,
|
|
1285
|
-
open: T,
|
|
1286
|
-
rootRef: O
|
|
1287
|
-
} = t, x = l.useRef({}), C = l.useRef(null), h = l.useRef(null), b = J(h, O), [F, M] = l.useState(!T), y = Yt(c);
|
|
1288
|
-
let R = !0;
|
|
1289
|
-
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
|
|
1290
|
-
const u = () => _(C.current), p = () => (x.current.modalRef = h.current, x.current.mount = C.current, x.current), g = () => {
|
|
1291
|
-
he.mount(p(), {
|
|
1292
|
-
disableScrollLock: r
|
|
1293
|
-
}), h.current && (h.current.scrollTop = 0);
|
|
1294
|
-
}, k = De(() => {
|
|
1295
|
-
const f = Gt(n) || u().body;
|
|
1296
|
-
he.add(p(), f), h.current && g();
|
|
1297
|
-
}), P = () => he.isTopModal(p()), E = De((f) => {
|
|
1298
|
-
C.current = f, f && (T && P() ? g() : h.current && ae(h.current, R));
|
|
1299
|
-
}), w = l.useCallback(() => {
|
|
1300
|
-
he.remove(p(), R);
|
|
1301
|
-
}, [R]);
|
|
1302
|
-
l.useEffect(() => () => {
|
|
1303
|
-
w();
|
|
1304
|
-
}, [w]), l.useEffect(() => {
|
|
1305
|
-
T ? k() : (!y || !a) && w();
|
|
1306
|
-
}, [T, w, y, a, k]);
|
|
1307
|
-
const H = (f) => (m) => {
|
|
1308
|
-
f.onKeyDown?.(m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
|
|
1309
|
-
!P()) && (o || (m.stopPropagation(), d && d(m, "escapeKeyDown")));
|
|
1310
|
-
}, D = (f) => (m) => {
|
|
1311
|
-
f.onClick?.(m), m.target === m.currentTarget && d && d(m, "backdropClick");
|
|
1312
|
-
};
|
|
1313
|
-
return {
|
|
1314
|
-
getRootProps: (f = {}) => {
|
|
1315
|
-
const m = ft(t);
|
|
1316
|
-
delete m.onTransitionEnter, delete m.onTransitionExited;
|
|
1317
|
-
const L = {
|
|
1318
|
-
...m,
|
|
1319
|
-
...f
|
|
1320
|
-
};
|
|
1321
|
-
return {
|
|
1322
|
-
/*
|
|
1323
|
-
* Marking an element with the role presentation indicates to assistive technology
|
|
1324
|
-
* that this element should be ignored; it exists to support the web application and
|
|
1325
|
-
* is not meant for humans to interact with directly.
|
|
1326
|
-
* https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
|
|
1327
|
-
*/
|
|
1328
|
-
role: "presentation",
|
|
1329
|
-
...L,
|
|
1330
|
-
onKeyDown: H(L),
|
|
1331
|
-
ref: b
|
|
1332
|
-
};
|
|
1333
|
-
},
|
|
1334
|
-
getBackdropProps: (f = {}) => {
|
|
1335
|
-
const m = f;
|
|
1336
|
-
return {
|
|
1337
|
-
"aria-hidden": !0,
|
|
1338
|
-
...m,
|
|
1339
|
-
onClick: D(m),
|
|
1340
|
-
open: T
|
|
1341
|
-
};
|
|
1342
|
-
},
|
|
1343
|
-
getTransitionProps: () => {
|
|
1344
|
-
const f = () => {
|
|
1345
|
-
M(!1), s && s();
|
|
1346
|
-
}, m = () => {
|
|
1347
|
-
M(!0), i && i(), a && w();
|
|
1348
|
-
};
|
|
1349
|
-
return {
|
|
1350
|
-
onEnter: Le(f, c?.props.onEnter ?? $e),
|
|
1351
|
-
onExited: Le(m, c?.props.onExited ?? $e)
|
|
1352
|
-
};
|
|
1353
|
-
},
|
|
1354
|
-
rootRef: b,
|
|
1355
|
-
portalRef: E,
|
|
1356
|
-
isTopModal: P,
|
|
1357
|
-
exited: F,
|
|
1358
|
-
hasTransition: y
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
|
-
function Jt(t) {
|
|
1362
|
-
return le("MuiModal", t);
|
|
1363
|
-
}
|
|
1364
|
-
ue("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1365
|
-
const Qt = (t) => {
|
|
1366
|
-
const {
|
|
1367
|
-
open: n,
|
|
1368
|
-
exited: o,
|
|
1369
|
-
classes: r
|
|
1370
|
-
} = t;
|
|
1371
|
-
return de({
|
|
1372
|
-
root: ["root", !n && o && "hidden"],
|
|
1373
|
-
backdrop: ["backdrop"]
|
|
1374
|
-
}, Jt, r);
|
|
1375
|
-
}, Zt = q("div", {
|
|
1376
|
-
name: "MuiModal",
|
|
1377
|
-
slot: "Root",
|
|
1378
|
-
overridesResolver: (t, n) => {
|
|
1379
|
-
const {
|
|
1380
|
-
ownerState: o
|
|
1381
|
-
} = t;
|
|
1382
|
-
return [n.root, !o.open && o.exited && n.hidden];
|
|
1383
|
-
}
|
|
1384
|
-
})(gt(({
|
|
1385
|
-
theme: t
|
|
1386
|
-
}) => ({
|
|
1387
|
-
position: "fixed",
|
|
1388
|
-
zIndex: (t.vars || t).zIndex.modal,
|
|
1389
|
-
right: 0,
|
|
1390
|
-
bottom: 0,
|
|
1391
|
-
top: 0,
|
|
1392
|
-
left: 0,
|
|
1393
|
-
variants: [{
|
|
1394
|
-
props: ({
|
|
1395
|
-
ownerState: n
|
|
1396
|
-
}) => !n.open && n.exited,
|
|
1397
|
-
style: {
|
|
1398
|
-
visibility: "hidden"
|
|
1399
|
-
}
|
|
1400
|
-
}]
|
|
1401
|
-
}))), en = q(rt, {
|
|
1402
|
-
name: "MuiModal",
|
|
1403
|
-
slot: "Backdrop"
|
|
1404
|
-
})({
|
|
1405
|
-
zIndex: -1
|
|
1406
|
-
}), st = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1407
|
-
const r = pe({
|
|
1408
|
-
name: "MuiModal",
|
|
1409
|
-
props: n
|
|
1410
|
-
}), {
|
|
1411
|
-
BackdropComponent: a = en,
|
|
1412
|
-
BackdropProps: s,
|
|
1413
|
-
classes: i,
|
|
1414
|
-
className: c,
|
|
1415
|
-
closeAfterTransition: d = !1,
|
|
1416
|
-
children: T,
|
|
1417
|
-
container: O,
|
|
1418
|
-
component: x,
|
|
1419
|
-
components: C = {},
|
|
1420
|
-
componentsProps: h = {},
|
|
1421
|
-
disableAutoFocus: b = !1,
|
|
1422
|
-
disableEnforceFocus: F = !1,
|
|
1423
|
-
disableEscapeKeyDown: M = !1,
|
|
1424
|
-
disablePortal: y = !1,
|
|
1425
|
-
disableRestoreFocus: R = !1,
|
|
1426
|
-
disableScrollLock: u = !1,
|
|
1427
|
-
hideBackdrop: p = !1,
|
|
1428
|
-
keepMounted: g = !1,
|
|
1429
|
-
onClose: k,
|
|
1430
|
-
onTransitionEnter: P,
|
|
1431
|
-
onTransitionExited: E,
|
|
1432
|
-
open: w,
|
|
1433
|
-
slotProps: H = {},
|
|
1434
|
-
slots: D = {},
|
|
1435
|
-
// eslint-disable-next-line react/prop-types
|
|
1436
|
-
theme: B,
|
|
1437
|
-
...$
|
|
1438
|
-
} = r, S = {
|
|
1439
|
-
...r,
|
|
1440
|
-
closeAfterTransition: d,
|
|
1441
|
-
disableAutoFocus: b,
|
|
1442
|
-
disableEnforceFocus: F,
|
|
1443
|
-
disableEscapeKeyDown: M,
|
|
1444
|
-
disablePortal: y,
|
|
1445
|
-
disableRestoreFocus: R,
|
|
1446
|
-
disableScrollLock: u,
|
|
1447
|
-
hideBackdrop: p,
|
|
1448
|
-
keepMounted: g
|
|
1449
|
-
}, {
|
|
1450
|
-
getRootProps: f,
|
|
1451
|
-
getBackdropProps: m,
|
|
1452
|
-
getTransitionProps: L,
|
|
1453
|
-
portalRef: K,
|
|
1454
|
-
isTopModal: v,
|
|
1455
|
-
exited: I,
|
|
1456
|
-
hasTransition: te
|
|
1457
|
-
} = Xt({
|
|
1458
|
-
...S,
|
|
1459
|
-
rootRef: o
|
|
1460
|
-
}), W = {
|
|
1461
|
-
...S,
|
|
1462
|
-
exited: I
|
|
1463
|
-
}, ne = Qt(W), G = {};
|
|
1464
|
-
if (T.props.tabIndex === void 0 && (G.tabIndex = "-1"), te) {
|
|
1465
|
-
const {
|
|
1466
|
-
onEnter: N,
|
|
1467
|
-
onExited: j
|
|
1468
|
-
} = L();
|
|
1469
|
-
G.onEnter = N, G.onExited = j;
|
|
1470
|
-
}
|
|
1471
|
-
const me = {
|
|
1472
|
-
slots: {
|
|
1473
|
-
root: C.Root,
|
|
1474
|
-
backdrop: C.Backdrop,
|
|
1475
|
-
...D
|
|
1476
|
-
},
|
|
1477
|
-
slotProps: {
|
|
1478
|
-
...h,
|
|
1479
|
-
...H
|
|
1480
|
-
}
|
|
1481
|
-
}, [Pe, ve] = z("root", {
|
|
1482
|
-
ref: o,
|
|
1483
|
-
elementType: Zt,
|
|
1484
|
-
externalForwardedProps: {
|
|
1485
|
-
...me,
|
|
1486
|
-
...$,
|
|
1487
|
-
component: x
|
|
1488
|
-
},
|
|
1489
|
-
getSlotProps: f,
|
|
1490
|
-
ownerState: W,
|
|
1491
|
-
className: ee(c, ne?.root, !W.open && W.exited && ne?.hidden)
|
|
1492
|
-
}), [xe, Re] = z("backdrop", {
|
|
1493
|
-
ref: s?.ref,
|
|
1494
|
-
elementType: a,
|
|
1495
|
-
externalForwardedProps: me,
|
|
1496
|
-
shouldForwardComponentProp: !0,
|
|
1497
|
-
additionalProps: s,
|
|
1498
|
-
getSlotProps: (N) => m({
|
|
1499
|
-
...N,
|
|
1500
|
-
onClick: (j) => {
|
|
1501
|
-
N?.onClick && N.onClick(j);
|
|
1502
|
-
}
|
|
1503
|
-
}),
|
|
1504
|
-
className: ee(s?.className, ne?.backdrop),
|
|
1505
|
-
ownerState: W
|
|
1506
|
-
});
|
|
1507
|
-
return !g && !w && (!te || I) ? null : /* @__PURE__ */ A.jsx(Ee, {
|
|
1508
|
-
ref: K,
|
|
1509
|
-
container: O,
|
|
1510
|
-
disablePortal: y,
|
|
1511
|
-
children: /* @__PURE__ */ A.jsxs(Pe, {
|
|
1512
|
-
...ve,
|
|
1513
|
-
children: [!p && a ? /* @__PURE__ */ A.jsx(xe, {
|
|
1514
|
-
...Re
|
|
1515
|
-
}) : null, /* @__PURE__ */ A.jsx(ye, {
|
|
1516
|
-
disableEnforceFocus: F,
|
|
1517
|
-
disableAutoFocus: b,
|
|
1518
|
-
disableRestoreFocus: R,
|
|
1519
|
-
isEnabled: v,
|
|
1520
|
-
open: w,
|
|
1521
|
-
children: /* @__PURE__ */ l.cloneElement(T, G)
|
|
1522
|
-
})]
|
|
1523
|
-
})
|
|
1524
|
-
});
|
|
1525
|
-
});
|
|
1526
|
-
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
1527
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1528
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1529
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1530
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1531
|
-
/**
|
|
1532
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
1533
|
-
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
1534
|
-
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
1535
|
-
* @default styled(Backdrop, {
|
|
1536
|
-
* name: 'MuiModal',
|
|
1537
|
-
* slot: 'Backdrop',
|
|
1538
|
-
* })({
|
|
1539
|
-
* zIndex: -1,
|
|
1540
|
-
* })
|
|
1541
|
-
*/
|
|
1542
|
-
BackdropComponent: e.elementType,
|
|
1543
|
-
/**
|
|
1544
|
-
* Props applied to the [`Backdrop`](https://mui.com/material-ui/api/backdrop/) element.
|
|
1545
|
-
* @deprecated Use `slotProps.backdrop` instead.
|
|
1546
|
-
*/
|
|
1547
|
-
BackdropProps: e.object,
|
|
1548
|
-
/**
|
|
1549
|
-
* A single child content element.
|
|
1550
|
-
*/
|
|
1551
|
-
children: fe.isRequired,
|
|
1552
|
-
/**
|
|
1553
|
-
* Override or extend the styles applied to the component.
|
|
1554
|
-
*/
|
|
1555
|
-
classes: e.object,
|
|
1556
|
-
/**
|
|
1557
|
-
* @ignore
|
|
1558
|
-
*/
|
|
1559
|
-
className: e.string,
|
|
1560
|
-
/**
|
|
1561
|
-
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
1562
|
-
* @default false
|
|
1563
|
-
*/
|
|
1564
|
-
closeAfterTransition: e.bool,
|
|
1565
|
-
/**
|
|
1566
|
-
* The component used for the root node.
|
|
1567
|
-
* Either a string to use a HTML element or a component.
|
|
1568
|
-
*/
|
|
1569
|
-
component: e.elementType,
|
|
1570
|
-
/**
|
|
1571
|
-
* The components used for each slot inside.
|
|
1572
|
-
*
|
|
1573
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1574
|
-
*
|
|
1575
|
-
* @default {}
|
|
1576
|
-
*/
|
|
1577
|
-
components: e.shape({
|
|
1578
|
-
Backdrop: e.elementType,
|
|
1579
|
-
Root: e.elementType
|
|
1580
|
-
}),
|
|
1581
|
-
/**
|
|
1582
|
-
* The extra props for the slot components.
|
|
1583
|
-
* You can override the existing props or add new ones.
|
|
1584
|
-
*
|
|
1585
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1586
|
-
*
|
|
1587
|
-
* @default {}
|
|
1588
|
-
*/
|
|
1589
|
-
componentsProps: e.shape({
|
|
1590
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
1591
|
-
root: e.oneOfType([e.func, e.object])
|
|
1592
|
-
}),
|
|
1593
|
-
/**
|
|
1594
|
-
* An HTML element or function that returns one.
|
|
1595
|
-
* The `container` will have the portal children appended to it.
|
|
1596
|
-
*
|
|
1597
|
-
* You can also provide a callback, which is called in a React layout effect.
|
|
1598
|
-
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
1599
|
-
*
|
|
1600
|
-
* By default, it uses the body of the top-level document object,
|
|
1601
|
-
* so it's simply `document.body` most of the time.
|
|
1602
|
-
*/
|
|
1603
|
-
container: e.oneOfType([ce, e.func]),
|
|
1604
|
-
/**
|
|
1605
|
-
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1606
|
-
* replace it to the last focused element when it closes.
|
|
1607
|
-
* This also works correctly with any modal children that have the `disableAutoFocus` prop.
|
|
1608
|
-
*
|
|
1609
|
-
* Generally this should never be set to `true` as it makes the modal less
|
|
1610
|
-
* accessible to assistive technologies, like screen readers.
|
|
1611
|
-
* @default false
|
|
1612
|
-
*/
|
|
1613
|
-
disableAutoFocus: e.bool,
|
|
1614
|
-
/**
|
|
1615
|
-
* If `true`, the modal will not prevent focus from leaving the modal while open.
|
|
1616
|
-
*
|
|
1617
|
-
* Generally this should never be set to `true` as it makes the modal less
|
|
1618
|
-
* accessible to assistive technologies, like screen readers.
|
|
1619
|
-
* @default false
|
|
1620
|
-
*/
|
|
1621
|
-
disableEnforceFocus: e.bool,
|
|
1622
|
-
/**
|
|
1623
|
-
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
1624
|
-
* @default false
|
|
1625
|
-
*/
|
|
1626
|
-
disableEscapeKeyDown: e.bool,
|
|
1627
|
-
/**
|
|
1628
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1629
|
-
* @default false
|
|
1630
|
-
*/
|
|
1631
|
-
disablePortal: e.bool,
|
|
1632
|
-
/**
|
|
1633
|
-
* If `true`, the modal will not restore focus to previously focused element once
|
|
1634
|
-
* modal is hidden or unmounted.
|
|
1635
|
-
* @default false
|
|
1636
|
-
*/
|
|
1637
|
-
disableRestoreFocus: e.bool,
|
|
1638
|
-
/**
|
|
1639
|
-
* Disable the scroll lock behavior.
|
|
1640
|
-
* @default false
|
|
1641
|
-
*/
|
|
1642
|
-
disableScrollLock: e.bool,
|
|
1643
|
-
/**
|
|
1644
|
-
* If `true`, the backdrop is not rendered.
|
|
1645
|
-
* @default false
|
|
1646
|
-
*/
|
|
1647
|
-
hideBackdrop: e.bool,
|
|
1648
|
-
/**
|
|
1649
|
-
* Always keep the children in the DOM.
|
|
1650
|
-
* This prop can be useful in SEO situation or
|
|
1651
|
-
* when you want to maximize the responsiveness of the Modal.
|
|
1652
|
-
* @default false
|
|
1653
|
-
*/
|
|
1654
|
-
keepMounted: e.bool,
|
|
1655
|
-
/**
|
|
1656
|
-
* Callback fired when the component requests to be closed.
|
|
1657
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
1658
|
-
*
|
|
1659
|
-
* @param {object} event The event source of the callback.
|
|
1660
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
1661
|
-
*/
|
|
1662
|
-
onClose: e.func,
|
|
1663
|
-
/**
|
|
1664
|
-
* A function called when a transition enters.
|
|
1665
|
-
*/
|
|
1666
|
-
onTransitionEnter: e.func,
|
|
1667
|
-
/**
|
|
1668
|
-
* A function called when a transition has exited.
|
|
1669
|
-
*/
|
|
1670
|
-
onTransitionExited: e.func,
|
|
1671
|
-
/**
|
|
1672
|
-
* If `true`, the component is shown.
|
|
1673
|
-
*/
|
|
1674
|
-
open: e.bool.isRequired,
|
|
1675
|
-
/**
|
|
1676
|
-
* The props used for each slot inside the Modal.
|
|
1677
|
-
* @default {}
|
|
1678
|
-
*/
|
|
1679
|
-
slotProps: e.shape({
|
|
1680
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
1681
|
-
root: e.oneOfType([e.func, e.object])
|
|
1682
|
-
}),
|
|
1683
|
-
/**
|
|
1684
|
-
* The components used for each slot inside the Modal.
|
|
1685
|
-
* Either a string to use a HTML element or a component.
|
|
1686
|
-
* @default {}
|
|
1687
|
-
*/
|
|
1688
|
-
slots: e.shape({
|
|
1689
|
-
backdrop: e.elementType,
|
|
1690
|
-
root: e.elementType
|
|
1691
|
-
}),
|
|
1692
|
-
/**
|
|
1693
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1694
|
-
*/
|
|
1695
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1696
|
-
});
|
|
1697
|
-
function tn(t) {
|
|
1698
|
-
return le("MuiPopover", t);
|
|
1699
|
-
}
|
|
1700
|
-
ue("MuiPopover", ["root", "paper"]);
|
|
1701
|
-
function Ke(t, n) {
|
|
1702
|
-
let o = 0;
|
|
1703
|
-
return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
|
|
1704
|
-
}
|
|
1705
|
-
function Ue(t, n) {
|
|
1706
|
-
let o = 0;
|
|
1707
|
-
return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
|
|
1708
|
-
}
|
|
1709
|
-
function _e(t) {
|
|
1710
|
-
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
1711
|
-
}
|
|
1712
|
-
function ie(t) {
|
|
1713
|
-
return typeof t == "function" ? t() : t;
|
|
1714
|
-
}
|
|
1715
|
-
const nn = (t) => {
|
|
1716
|
-
const {
|
|
1717
|
-
classes: n
|
|
1718
|
-
} = t;
|
|
1719
|
-
return de({
|
|
1720
|
-
root: ["root"],
|
|
1721
|
-
paper: ["paper"]
|
|
1722
|
-
}, tn, n);
|
|
1723
|
-
}, on = q(st, {
|
|
1724
|
-
name: "MuiPopover",
|
|
1725
|
-
slot: "Root"
|
|
1726
|
-
})({}), it = q(yt, {
|
|
1727
|
-
name: "MuiPopover",
|
|
1728
|
-
slot: "Paper"
|
|
1729
|
-
})({
|
|
1730
|
-
position: "absolute",
|
|
1731
|
-
overflowY: "auto",
|
|
1732
|
-
overflowX: "hidden",
|
|
1733
|
-
// So we see the popover when it's empty.
|
|
1734
|
-
// It's most likely on issue on userland.
|
|
1735
|
-
minWidth: 16,
|
|
1736
|
-
minHeight: 16,
|
|
1737
|
-
maxWidth: "calc(100% - 32px)",
|
|
1738
|
-
maxHeight: "calc(100% - 32px)",
|
|
1739
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1740
|
-
outline: 0
|
|
1741
|
-
}), at = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
1742
|
-
const r = pe({
|
|
1743
|
-
props: n,
|
|
1744
|
-
name: "MuiPopover"
|
|
1745
|
-
}), {
|
|
1746
|
-
action: a,
|
|
1747
|
-
anchorEl: s,
|
|
1748
|
-
anchorOrigin: i = {
|
|
1749
|
-
vertical: "top",
|
|
1750
|
-
horizontal: "left"
|
|
1751
|
-
},
|
|
1752
|
-
anchorPosition: c,
|
|
1753
|
-
anchorReference: d = "anchorEl",
|
|
1754
|
-
children: T,
|
|
1755
|
-
className: O,
|
|
1756
|
-
container: x,
|
|
1757
|
-
elevation: C = 8,
|
|
1758
|
-
marginThreshold: h = 16,
|
|
1759
|
-
open: b,
|
|
1760
|
-
PaperProps: F = {},
|
|
1761
|
-
// TODO: remove in v7
|
|
1762
|
-
slots: M = {},
|
|
1763
|
-
slotProps: y = {},
|
|
1764
|
-
transformOrigin: R = {
|
|
1765
|
-
vertical: "top",
|
|
1766
|
-
horizontal: "left"
|
|
1767
|
-
},
|
|
1768
|
-
TransitionComponent: u,
|
|
1769
|
-
// TODO: remove in v7
|
|
1770
|
-
transitionDuration: p = "auto",
|
|
1771
|
-
TransitionProps: g = {},
|
|
1772
|
-
// TODO: remove in v7
|
|
1773
|
-
disableScrollLock: k = !1,
|
|
1774
|
-
...P
|
|
1775
|
-
} = r, E = l.useRef(), w = {
|
|
1776
|
-
...r,
|
|
1777
|
-
anchorOrigin: i,
|
|
1778
|
-
anchorReference: d,
|
|
1779
|
-
elevation: C,
|
|
1780
|
-
marginThreshold: h,
|
|
1781
|
-
transformOrigin: R,
|
|
1782
|
-
TransitionComponent: u,
|
|
1783
|
-
transitionDuration: p,
|
|
1784
|
-
TransitionProps: g
|
|
1785
|
-
}, H = nn(w), D = l.useCallback(() => {
|
|
1786
|
-
if (d === "anchorPosition")
|
|
1787
|
-
return process.env.NODE_ENV !== "production" && (c || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), c;
|
|
1788
|
-
const N = ie(s), j = N && N.nodeType === 1 ? N : _(E.current).body, V = j.getBoundingClientRect();
|
|
1789
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1790
|
-
const Y = j.getBoundingClientRect();
|
|
1791
|
-
tt() && Y.top === 0 && Y.left === 0 && Y.right === 0 && Y.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1792
|
-
`));
|
|
1793
|
-
}
|
|
1794
|
-
return {
|
|
1795
|
-
top: V.top + Ke(V, i.vertical),
|
|
1796
|
-
left: V.left + Ue(V, i.horizontal)
|
|
1797
|
-
};
|
|
1798
|
-
}, [s, i.horizontal, i.vertical, c, d]), B = l.useCallback((N) => ({
|
|
1799
|
-
vertical: Ke(N, R.vertical),
|
|
1800
|
-
horizontal: Ue(N, R.horizontal)
|
|
1801
|
-
}), [R.horizontal, R.vertical]), $ = l.useCallback((N) => {
|
|
1802
|
-
const j = {
|
|
1803
|
-
width: N.offsetWidth,
|
|
1804
|
-
height: N.offsetHeight
|
|
1805
|
-
}, V = B(j);
|
|
1806
|
-
if (d === "none")
|
|
1807
|
-
return {
|
|
1808
|
-
top: null,
|
|
1809
|
-
left: null,
|
|
1810
|
-
transformOrigin: _e(V)
|
|
1811
|
-
};
|
|
1812
|
-
const Y = D();
|
|
1813
|
-
let Q = Y.top - V.vertical, Z = Y.left - V.horizontal;
|
|
1814
|
-
const Se = Q + j.height, je = Z + j.width, Fe = X(ie(s)), oe = Fe.innerHeight - h, Ie = Fe.innerWidth - h;
|
|
1815
|
-
if (h !== null && Q < h) {
|
|
1816
|
-
const U = Q - h;
|
|
1817
|
-
Q -= U, V.vertical += U;
|
|
1818
|
-
} else if (h !== null && Se > oe) {
|
|
1819
|
-
const U = Se - oe;
|
|
1820
|
-
Q -= U, V.vertical += U;
|
|
1821
|
-
}
|
|
1822
|
-
if (process.env.NODE_ENV !== "production" && j.height > oe && j.height && oe && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${j.height - oe}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
1823
|
-
`)), h !== null && Z < h) {
|
|
1824
|
-
const U = Z - h;
|
|
1825
|
-
Z -= U, V.horizontal += U;
|
|
1826
|
-
} else if (je > Ie) {
|
|
1827
|
-
const U = je - Ie;
|
|
1828
|
-
Z -= U, V.horizontal += U;
|
|
1829
|
-
}
|
|
1830
|
-
return {
|
|
1831
|
-
top: `${Math.round(Q)}px`,
|
|
1832
|
-
left: `${Math.round(Z)}px`,
|
|
1833
|
-
transformOrigin: _e(V)
|
|
1834
|
-
};
|
|
1835
|
-
}, [s, d, D, B, h]), [S, f] = l.useState(b), m = l.useCallback(() => {
|
|
1836
|
-
const N = E.current;
|
|
1837
|
-
if (!N)
|
|
1838
|
-
return;
|
|
1839
|
-
const j = $(N);
|
|
1840
|
-
j.top !== null && N.style.setProperty("top", j.top), j.left !== null && (N.style.left = j.left), N.style.transformOrigin = j.transformOrigin, f(!0);
|
|
1841
|
-
}, [$]);
|
|
1842
|
-
l.useEffect(() => (k && window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), [s, k, m]);
|
|
1843
|
-
const L = () => {
|
|
1844
|
-
m();
|
|
1845
|
-
}, K = () => {
|
|
1846
|
-
f(!1);
|
|
1847
|
-
};
|
|
1848
|
-
l.useEffect(() => {
|
|
1849
|
-
b && m();
|
|
1850
|
-
}), l.useImperativeHandle(a, () => b ? {
|
|
1851
|
-
updatePosition: () => {
|
|
1852
|
-
m();
|
|
1853
|
-
}
|
|
1854
|
-
} : null, [b, m]), l.useEffect(() => {
|
|
1855
|
-
if (!b)
|
|
1856
|
-
return;
|
|
1857
|
-
const N = Ot(() => {
|
|
1858
|
-
m();
|
|
1859
|
-
}), j = X(ie(s));
|
|
1860
|
-
return j.addEventListener("resize", N), () => {
|
|
1861
|
-
N.clear(), j.removeEventListener("resize", N);
|
|
1862
|
-
};
|
|
1863
|
-
}, [s, b, m]);
|
|
1864
|
-
let v = p;
|
|
1865
|
-
const I = {
|
|
1866
|
-
slots: {
|
|
1867
|
-
transition: u,
|
|
1868
|
-
...M
|
|
1869
|
-
},
|
|
1870
|
-
slotProps: {
|
|
1871
|
-
transition: g,
|
|
1872
|
-
paper: F,
|
|
1873
|
-
...y
|
|
1874
|
-
}
|
|
1875
|
-
}, [te, W] = z("transition", {
|
|
1876
|
-
elementType: ge,
|
|
1877
|
-
externalForwardedProps: I,
|
|
1878
|
-
ownerState: w,
|
|
1879
|
-
getSlotProps: (N) => ({
|
|
1880
|
-
...N,
|
|
1881
|
-
onEntering: (j, V) => {
|
|
1882
|
-
N.onEntering?.(j, V), L();
|
|
1883
|
-
},
|
|
1884
|
-
onExited: (j) => {
|
|
1885
|
-
N.onExited?.(j), K();
|
|
1886
|
-
}
|
|
1887
|
-
}),
|
|
1888
|
-
additionalProps: {
|
|
1889
|
-
appear: !0,
|
|
1890
|
-
in: b
|
|
1891
|
-
}
|
|
1892
|
-
});
|
|
1893
|
-
p === "auto" && !te.muiSupportAuto && (v = void 0);
|
|
1894
|
-
const ne = x || (s ? _(ie(s)).body : void 0), [G, {
|
|
1895
|
-
slots: me,
|
|
1896
|
-
slotProps: Pe,
|
|
1897
|
-
...ve
|
|
1898
|
-
}] = z("root", {
|
|
1899
|
-
ref: o,
|
|
1900
|
-
elementType: on,
|
|
1901
|
-
externalForwardedProps: {
|
|
1902
|
-
...I,
|
|
1903
|
-
...P
|
|
1904
|
-
},
|
|
1905
|
-
shouldForwardComponentProp: !0,
|
|
1906
|
-
additionalProps: {
|
|
1907
|
-
slots: {
|
|
1908
|
-
backdrop: M.backdrop
|
|
1909
|
-
},
|
|
1910
|
-
slotProps: {
|
|
1911
|
-
backdrop: Tt(typeof y.backdrop == "function" ? y.backdrop(w) : y.backdrop, {
|
|
1912
|
-
invisible: !0
|
|
1913
|
-
})
|
|
1914
|
-
},
|
|
1915
|
-
container: ne,
|
|
1916
|
-
open: b
|
|
1917
|
-
},
|
|
1918
|
-
ownerState: w,
|
|
1919
|
-
className: ee(H.root, O)
|
|
1920
|
-
}), [xe, Re] = z("paper", {
|
|
1921
|
-
ref: E,
|
|
1922
|
-
className: H.paper,
|
|
1923
|
-
elementType: it,
|
|
1924
|
-
externalForwardedProps: I,
|
|
1925
|
-
shouldForwardComponentProp: !0,
|
|
1926
|
-
additionalProps: {
|
|
1927
|
-
elevation: C,
|
|
1928
|
-
style: S ? void 0 : {
|
|
1929
|
-
opacity: 0
|
|
1930
|
-
}
|
|
1931
|
-
},
|
|
1932
|
-
ownerState: w
|
|
1933
|
-
});
|
|
1934
|
-
return /* @__PURE__ */ A.jsx(G, {
|
|
1935
|
-
...ve,
|
|
1936
|
-
...!mt(G) && {
|
|
1937
|
-
slots: me,
|
|
1938
|
-
slotProps: Pe,
|
|
1939
|
-
disableScrollLock: k
|
|
1940
|
-
},
|
|
1941
|
-
children: /* @__PURE__ */ A.jsx(te, {
|
|
1942
|
-
...W,
|
|
1943
|
-
timeout: v,
|
|
1944
|
-
children: /* @__PURE__ */ A.jsx(xe, {
|
|
1945
|
-
...Re,
|
|
1946
|
-
children: T
|
|
1947
|
-
})
|
|
1948
|
-
})
|
|
1949
|
-
});
|
|
1950
|
-
});
|
|
1951
|
-
process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
1952
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1953
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1954
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1955
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1956
|
-
/**
|
|
1957
|
-
* A ref for imperative actions.
|
|
1958
|
-
* It currently only supports updatePosition() action.
|
|
1959
|
-
*/
|
|
1960
|
-
action: ht,
|
|
1961
|
-
/**
|
|
1962
|
-
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
1963
|
-
* or a function that returns either.
|
|
1964
|
-
* It's used to set the position of the popover.
|
|
1965
|
-
*/
|
|
1966
|
-
anchorEl: Me(e.oneOfType([ce, e.func]), (t) => {
|
|
1967
|
-
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
1968
|
-
const n = ie(t.anchorEl);
|
|
1969
|
-
if (n && n.nodeType === 1) {
|
|
1970
|
-
const o = n.getBoundingClientRect();
|
|
1971
|
-
if (process.env.NODE_ENV !== "production" && tt() && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
1972
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1973
|
-
`));
|
|
1974
|
-
} else
|
|
1975
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${n}\` instead.`].join(`
|
|
1976
|
-
`));
|
|
1977
|
-
}
|
|
1978
|
-
return null;
|
|
1979
|
-
}),
|
|
1980
|
-
/**
|
|
1981
|
-
* This is the point on the anchor where the popover's
|
|
1982
|
-
* `anchorEl` will attach to. This is not used when the
|
|
1983
|
-
* anchorReference is 'anchorPosition'.
|
|
1984
|
-
*
|
|
1985
|
-
* Options:
|
|
1986
|
-
* vertical: [top, center, bottom];
|
|
1987
|
-
* horizontal: [left, center, right].
|
|
1988
|
-
* @default {
|
|
1989
|
-
* vertical: 'top',
|
|
1990
|
-
* horizontal: 'left',
|
|
1991
|
-
* }
|
|
1992
|
-
*/
|
|
1993
|
-
anchorOrigin: e.shape({
|
|
1994
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
1995
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
1996
|
-
}),
|
|
1997
|
-
/**
|
|
1998
|
-
* This is the position that may be used to set the position of the popover.
|
|
1999
|
-
* The coordinates are relative to the application's client area.
|
|
2000
|
-
*/
|
|
2001
|
-
anchorPosition: e.shape({
|
|
2002
|
-
left: e.number.isRequired,
|
|
2003
|
-
top: e.number.isRequired
|
|
2004
|
-
}),
|
|
2005
|
-
/**
|
|
2006
|
-
* This determines which anchor prop to refer to when setting
|
|
2007
|
-
* the position of the popover.
|
|
2008
|
-
* @default 'anchorEl'
|
|
2009
|
-
*/
|
|
2010
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
2011
|
-
/**
|
|
2012
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
2013
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2014
|
-
* @default styled(Backdrop, {
|
|
2015
|
-
* name: 'MuiModal',
|
|
2016
|
-
* slot: 'Backdrop',
|
|
2017
|
-
* overridesResolver: (props, styles) => {
|
|
2018
|
-
* return styles.backdrop;
|
|
2019
|
-
* },
|
|
2020
|
-
* })({
|
|
2021
|
-
* zIndex: -1,
|
|
2022
|
-
* })
|
|
2023
|
-
*/
|
|
2024
|
-
BackdropComponent: e.elementType,
|
|
2025
|
-
/**
|
|
2026
|
-
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
2027
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2028
|
-
*/
|
|
2029
|
-
BackdropProps: e.object,
|
|
2030
|
-
/**
|
|
2031
|
-
* The content of the component.
|
|
2032
|
-
*/
|
|
2033
|
-
children: e.node,
|
|
2034
|
-
/**
|
|
2035
|
-
* Override or extend the styles applied to the component.
|
|
2036
|
-
*/
|
|
2037
|
-
classes: e.object,
|
|
2038
|
-
/**
|
|
2039
|
-
* @ignore
|
|
2040
|
-
*/
|
|
2041
|
-
className: e.string,
|
|
2042
|
-
/**
|
|
2043
|
-
* An HTML element, component instance, or function that returns either.
|
|
2044
|
-
* The `container` will passed to the Modal component.
|
|
2045
|
-
*
|
|
2046
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
2047
|
-
* so it's simply `document.body` most of the time.
|
|
2048
|
-
*/
|
|
2049
|
-
container: e.oneOfType([ce, e.func]),
|
|
2050
|
-
/**
|
|
2051
|
-
* Disable the scroll lock behavior.
|
|
2052
|
-
* @default false
|
|
2053
|
-
*/
|
|
2054
|
-
disableScrollLock: e.bool,
|
|
2055
|
-
/**
|
|
2056
|
-
* The elevation of the popover.
|
|
2057
|
-
* @default 8
|
|
2058
|
-
*/
|
|
2059
|
-
elevation: Et,
|
|
2060
|
-
/**
|
|
2061
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
2062
|
-
* If null, the popover will not be constrained by the window.
|
|
2063
|
-
* @default 16
|
|
2064
|
-
*/
|
|
2065
|
-
marginThreshold: e.number,
|
|
2066
|
-
/**
|
|
2067
|
-
* Callback fired when the component requests to be closed.
|
|
2068
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
2069
|
-
*/
|
|
2070
|
-
onClose: e.func,
|
|
2071
|
-
/**
|
|
2072
|
-
* If `true`, the component is shown.
|
|
2073
|
-
*/
|
|
2074
|
-
open: e.bool.isRequired,
|
|
2075
|
-
/**
|
|
2076
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
2077
|
-
*
|
|
2078
|
-
* This prop is an alias for `slotProps.paper` and will be overridden by it if both are used.
|
|
2079
|
-
* @deprecated Use `slotProps.paper` instead.
|
|
2080
|
-
*
|
|
2081
|
-
* @default {}
|
|
2082
|
-
*/
|
|
2083
|
-
PaperProps: e.shape({
|
|
2084
|
-
component: bt
|
|
2085
|
-
}),
|
|
2086
|
-
/**
|
|
2087
|
-
* The props used for each slot inside.
|
|
2088
|
-
* @default {}
|
|
2089
|
-
*/
|
|
2090
|
-
slotProps: e.shape({
|
|
2091
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
2092
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
2093
|
-
root: e.oneOfType([e.func, e.object]),
|
|
2094
|
-
transition: e.oneOfType([e.func, e.object])
|
|
2095
|
-
}),
|
|
2096
|
-
/**
|
|
2097
|
-
* The components used for each slot inside.
|
|
2098
|
-
* @default {}
|
|
2099
|
-
*/
|
|
2100
|
-
slots: e.shape({
|
|
2101
|
-
backdrop: e.elementType,
|
|
2102
|
-
paper: e.elementType,
|
|
2103
|
-
root: e.elementType,
|
|
2104
|
-
transition: e.elementType
|
|
2105
|
-
}),
|
|
2106
|
-
/**
|
|
2107
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2108
|
-
*/
|
|
2109
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2110
|
-
/**
|
|
2111
|
-
* This is the point on the popover which
|
|
2112
|
-
* will attach to the anchor's origin.
|
|
2113
|
-
*
|
|
2114
|
-
* Options:
|
|
2115
|
-
* vertical: [top, center, bottom, x(px)];
|
|
2116
|
-
* horizontal: [left, center, right, x(px)].
|
|
2117
|
-
* @default {
|
|
2118
|
-
* vertical: 'top',
|
|
2119
|
-
* horizontal: 'left',
|
|
2120
|
-
* }
|
|
2121
|
-
*/
|
|
2122
|
-
transformOrigin: e.shape({
|
|
2123
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
2124
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
2125
|
-
}),
|
|
2126
|
-
/**
|
|
2127
|
-
* The component used for the transition.
|
|
2128
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
2129
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2130
|
-
* @default Grow
|
|
2131
|
-
*/
|
|
2132
|
-
TransitionComponent: e.elementType,
|
|
2133
|
-
/**
|
|
2134
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
2135
|
-
* @default 'auto'
|
|
2136
|
-
*/
|
|
2137
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
2138
|
-
appear: e.number,
|
|
2139
|
-
enter: e.number,
|
|
2140
|
-
exit: e.number
|
|
2141
|
-
})]),
|
|
2142
|
-
/**
|
|
2143
|
-
* Props applied to the transition element.
|
|
2144
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
2145
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2146
|
-
* @default {}
|
|
2147
|
-
*/
|
|
2148
|
-
TransitionProps: e.object
|
|
2149
|
-
});
|
|
2150
|
-
function rn(t) {
|
|
2151
|
-
return le("MuiMenu", t);
|
|
2152
|
-
}
|
|
2153
|
-
ue("MuiMenu", ["root", "paper", "list"]);
|
|
2154
|
-
const sn = {
|
|
2155
|
-
vertical: "top",
|
|
2156
|
-
horizontal: "right"
|
|
2157
|
-
}, an = {
|
|
2158
|
-
vertical: "top",
|
|
2159
|
-
horizontal: "left"
|
|
2160
|
-
}, cn = (t) => {
|
|
2161
|
-
const {
|
|
2162
|
-
classes: n
|
|
2163
|
-
} = t;
|
|
2164
|
-
return de({
|
|
2165
|
-
root: ["root"],
|
|
2166
|
-
paper: ["paper"],
|
|
2167
|
-
list: ["list"]
|
|
2168
|
-
}, rn, n);
|
|
2169
|
-
}, ln = q(at, {
|
|
2170
|
-
shouldForwardProp: (t) => ct(t) || t === "classes",
|
|
2171
|
-
name: "MuiMenu",
|
|
2172
|
-
slot: "Root"
|
|
2173
|
-
})({}), un = q(it, {
|
|
2174
|
-
name: "MuiMenu",
|
|
2175
|
-
slot: "Paper"
|
|
2176
|
-
})({
|
|
2177
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
2178
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
2179
|
-
// the menu.
|
|
2180
|
-
maxHeight: "calc(100% - 96px)",
|
|
2181
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
2182
|
-
WebkitOverflowScrolling: "touch"
|
|
2183
|
-
}), pn = q(et, {
|
|
2184
|
-
name: "MuiMenu",
|
|
2185
|
-
slot: "List"
|
|
2186
|
-
})({
|
|
2187
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2188
|
-
outline: 0
|
|
2189
|
-
}), dn = /* @__PURE__ */ l.forwardRef(function(n, o) {
|
|
2190
|
-
const r = pe({
|
|
2191
|
-
props: n,
|
|
2192
|
-
name: "MuiMenu"
|
|
2193
|
-
}), {
|
|
2194
|
-
autoFocus: a = !0,
|
|
2195
|
-
children: s,
|
|
2196
|
-
className: i,
|
|
2197
|
-
disableAutoFocusItem: c = !1,
|
|
2198
|
-
MenuListProps: d = {},
|
|
2199
|
-
onClose: T,
|
|
2200
|
-
open: O,
|
|
2201
|
-
PaperProps: x = {},
|
|
2202
|
-
PopoverClasses: C,
|
|
2203
|
-
transitionDuration: h = "auto",
|
|
2204
|
-
TransitionProps: {
|
|
2205
|
-
onEntering: b,
|
|
2206
|
-
...F
|
|
2207
|
-
} = {},
|
|
2208
|
-
variant: M = "selectedMenu",
|
|
2209
|
-
slots: y = {},
|
|
2210
|
-
slotProps: R = {},
|
|
2211
|
-
...u
|
|
2212
|
-
} = r, p = Rt(), g = {
|
|
2213
|
-
...r,
|
|
2214
|
-
autoFocus: a,
|
|
2215
|
-
disableAutoFocusItem: c,
|
|
2216
|
-
MenuListProps: d,
|
|
2217
|
-
onEntering: b,
|
|
2218
|
-
PaperProps: x,
|
|
2219
|
-
transitionDuration: h,
|
|
2220
|
-
TransitionProps: F,
|
|
2221
|
-
variant: M
|
|
2222
|
-
}, k = cn(g), P = a && !c && O, E = l.useRef(null), w = (v, I) => {
|
|
2223
|
-
E.current && E.current.adjustStyleForScrollbar(v, {
|
|
2224
|
-
direction: p ? "rtl" : "ltr"
|
|
2225
|
-
}), b && b(v, I);
|
|
2226
|
-
}, H = (v) => {
|
|
2227
|
-
v.key === "Tab" && (v.preventDefault(), T && T(v, "tabKeyDown"));
|
|
2228
|
-
};
|
|
2229
|
-
let D = -1;
|
|
2230
|
-
l.Children.map(s, (v, I) => {
|
|
2231
|
-
/* @__PURE__ */ l.isValidElement(v) && (process.env.NODE_ENV !== "production" && ze.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2232
|
-
`)), v.props.disabled || (M === "selectedMenu" && v.props.selected || D === -1) && (D = I));
|
|
2233
|
-
});
|
|
2234
|
-
const B = {
|
|
2235
|
-
slots: y,
|
|
2236
|
-
slotProps: {
|
|
2237
|
-
list: d,
|
|
2238
|
-
transition: F,
|
|
2239
|
-
paper: x,
|
|
2240
|
-
...R
|
|
2241
|
-
}
|
|
2242
|
-
}, $ = wt({
|
|
2243
|
-
elementType: y.root,
|
|
2244
|
-
externalSlotProps: R.root,
|
|
2245
|
-
ownerState: g,
|
|
2246
|
-
className: [k.root, i]
|
|
2247
|
-
}), [S, f] = z("paper", {
|
|
2248
|
-
className: k.paper,
|
|
2249
|
-
elementType: un,
|
|
2250
|
-
externalForwardedProps: B,
|
|
2251
|
-
shouldForwardComponentProp: !0,
|
|
2252
|
-
ownerState: g
|
|
2253
|
-
}), [m, L] = z("list", {
|
|
2254
|
-
className: ee(k.list, d.className),
|
|
2255
|
-
elementType: pn,
|
|
2256
|
-
shouldForwardComponentProp: !0,
|
|
2257
|
-
externalForwardedProps: B,
|
|
2258
|
-
getSlotProps: (v) => ({
|
|
2259
|
-
...v,
|
|
2260
|
-
onKeyDown: (I) => {
|
|
2261
|
-
H(I), v.onKeyDown?.(I);
|
|
2262
|
-
}
|
|
2263
|
-
}),
|
|
2264
|
-
ownerState: g
|
|
2265
|
-
}), K = typeof B.slotProps.transition == "function" ? B.slotProps.transition(g) : B.slotProps.transition;
|
|
2266
|
-
return /* @__PURE__ */ A.jsx(ln, {
|
|
2267
|
-
onClose: T,
|
|
2268
|
-
anchorOrigin: {
|
|
2269
|
-
vertical: "bottom",
|
|
2270
|
-
horizontal: p ? "right" : "left"
|
|
2271
|
-
},
|
|
2272
|
-
transformOrigin: p ? sn : an,
|
|
2273
|
-
slots: {
|
|
2274
|
-
root: y.root,
|
|
2275
|
-
paper: S,
|
|
2276
|
-
backdrop: y.backdrop,
|
|
2277
|
-
...y.transition && {
|
|
2278
|
-
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
2279
|
-
transition: y.transition
|
|
2280
|
-
}
|
|
2281
|
-
},
|
|
2282
|
-
slotProps: {
|
|
2283
|
-
root: $,
|
|
2284
|
-
paper: f,
|
|
2285
|
-
backdrop: typeof R.backdrop == "function" ? R.backdrop(g) : R.backdrop,
|
|
2286
|
-
transition: {
|
|
2287
|
-
...K,
|
|
2288
|
-
onEntering: (...v) => {
|
|
2289
|
-
w(...v), K?.onEntering?.(...v);
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
},
|
|
2293
|
-
open: O,
|
|
2294
|
-
ref: o,
|
|
2295
|
-
transitionDuration: h,
|
|
2296
|
-
ownerState: g,
|
|
2297
|
-
...u,
|
|
2298
|
-
classes: C,
|
|
2299
|
-
children: /* @__PURE__ */ A.jsx(m, {
|
|
2300
|
-
actions: E,
|
|
2301
|
-
autoFocus: a && (D === -1 || c),
|
|
2302
|
-
autoFocusItem: P,
|
|
2303
|
-
variant: M,
|
|
2304
|
-
...L,
|
|
2305
|
-
children: s
|
|
2306
|
-
})
|
|
2307
|
-
});
|
|
2308
|
-
});
|
|
2309
|
-
process.env.NODE_ENV !== "production" && (dn.propTypes = {
|
|
2310
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2311
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2312
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
2313
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
2314
|
-
/**
|
|
2315
|
-
* An HTML element, or a function that returns one.
|
|
2316
|
-
* It's used to set the position of the menu.
|
|
2317
|
-
*/
|
|
2318
|
-
anchorEl: e.oneOfType([ce, e.func]),
|
|
2319
|
-
/**
|
|
2320
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
2321
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
2322
|
-
* on the parent modal container. This has severe accessibility implications
|
|
2323
|
-
* and should only be considered if you manage focus otherwise.
|
|
2324
|
-
* @default true
|
|
2325
|
-
*/
|
|
2326
|
-
autoFocus: e.bool,
|
|
2327
|
-
/**
|
|
2328
|
-
* Menu contents, normally `MenuItem`s.
|
|
2329
|
-
*/
|
|
2330
|
-
children: e.node,
|
|
2331
|
-
/**
|
|
2332
|
-
* Override or extend the styles applied to the component.
|
|
2333
|
-
*/
|
|
2334
|
-
classes: e.object,
|
|
2335
|
-
/**
|
|
2336
|
-
* @ignore
|
|
2337
|
-
*/
|
|
2338
|
-
className: e.string,
|
|
2339
|
-
/**
|
|
2340
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
2341
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
2342
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
2343
|
-
* accessibility implications.
|
|
2344
|
-
* @default false
|
|
2345
|
-
*/
|
|
2346
|
-
disableAutoFocusItem: e.bool,
|
|
2347
|
-
/**
|
|
2348
|
-
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
2349
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2350
|
-
* @default {}
|
|
2351
|
-
*/
|
|
2352
|
-
MenuListProps: e.object,
|
|
2353
|
-
/**
|
|
2354
|
-
* Callback fired when the component requests to be closed.
|
|
2355
|
-
*
|
|
2356
|
-
* @param {object} event The event source of the callback.
|
|
2357
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
2358
|
-
*/
|
|
2359
|
-
onClose: e.func,
|
|
2360
|
-
/**
|
|
2361
|
-
* If `true`, the component is shown.
|
|
2362
|
-
*/
|
|
2363
|
-
open: e.bool.isRequired,
|
|
2364
|
-
/**
|
|
2365
|
-
* @ignore
|
|
2366
|
-
*/
|
|
2367
|
-
PaperProps: e.object,
|
|
2368
|
-
/**
|
|
2369
|
-
* `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
|
|
2370
|
-
*/
|
|
2371
|
-
PopoverClasses: e.object,
|
|
2372
|
-
/**
|
|
2373
|
-
* The props used for each slot inside.
|
|
2374
|
-
* @default {}
|
|
2375
|
-
*/
|
|
2376
|
-
slotProps: e.shape({
|
|
2377
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
2378
|
-
list: e.oneOfType([e.func, e.object]),
|
|
2379
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
2380
|
-
root: e.oneOfType([e.func, e.object]),
|
|
2381
|
-
transition: e.oneOfType([e.func, e.object])
|
|
2382
|
-
}),
|
|
2383
|
-
/**
|
|
2384
|
-
* The components used for each slot inside.
|
|
2385
|
-
* @default {}
|
|
2386
|
-
*/
|
|
2387
|
-
slots: e.shape({
|
|
2388
|
-
backdrop: e.elementType,
|
|
2389
|
-
list: e.elementType,
|
|
2390
|
-
paper: e.elementType,
|
|
2391
|
-
root: e.elementType,
|
|
2392
|
-
transition: e.elementType
|
|
2393
|
-
}),
|
|
2394
|
-
/**
|
|
2395
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2396
|
-
*/
|
|
2397
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
2398
|
-
/**
|
|
2399
|
-
* The length of the transition in `ms`, or 'auto'
|
|
2400
|
-
* @default 'auto'
|
|
2401
|
-
*/
|
|
2402
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
2403
|
-
appear: e.number,
|
|
2404
|
-
enter: e.number,
|
|
2405
|
-
exit: e.number
|
|
2406
|
-
})]),
|
|
2407
|
-
/**
|
|
2408
|
-
* Props applied to the transition element.
|
|
2409
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
2410
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2411
|
-
* @default {}
|
|
2412
|
-
*/
|
|
2413
|
-
TransitionProps: e.object,
|
|
2414
|
-
/**
|
|
2415
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
2416
|
-
* @default 'selectedMenu'
|
|
2417
|
-
*/
|
|
2418
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2419
|
-
});
|
|
2420
|
-
export {
|
|
2421
|
-
rt as B,
|
|
2422
|
-
ot as F,
|
|
2423
|
-
ge as G,
|
|
2424
|
-
ce as H,
|
|
2425
|
-
Xe as L,
|
|
2426
|
-
dn as M,
|
|
2427
|
-
at as P,
|
|
2428
|
-
_ as a,
|
|
2429
|
-
wt as b,
|
|
2430
|
-
se as c,
|
|
2431
|
-
Ot as d,
|
|
2432
|
-
et as e,
|
|
2433
|
-
Ee as f,
|
|
2434
|
-
Te as g,
|
|
2435
|
-
ye as h,
|
|
2436
|
-
tt as i,
|
|
2437
|
-
Je as j,
|
|
2438
|
-
st as k,
|
|
2439
|
-
X as o,
|
|
2440
|
-
Rt as u
|
|
2441
|
-
};
|