@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
|
@@ -1,1291 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { c as H } from "../clsx-OuTLNxxd.js";
|
|
6
|
-
import { c as N, u as I, m as D } from "../DefaultPropsProvider-DPuuPIbS.js";
|
|
7
|
-
import { g as z } from "../generateUtilityClass-BhfUaMgk.js";
|
|
8
|
-
import { g as B } from "../generateUtilityClasses-E9gROIFd.js";
|
|
9
|
-
import { s as P, r as te } from "../styled-8Y5KoVix.js";
|
|
10
|
-
import { u as ve } from "../useFormControl-CatNKXAi.js";
|
|
11
|
-
import { b as _, B as Te, r as Ce } from "../ButtonBase-D73M0QY5.js";
|
|
12
|
-
import { u as ke } from "../useControlled-D1L5tREc.js";
|
|
13
|
-
import { c as q } from "../createSvgIcon-BkbeLOhM.js";
|
|
14
|
-
import { c as Q } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
15
|
-
import { m as je } from "../mergeSlotProps-CuzBQdlp.js";
|
|
16
|
-
function we(o) {
|
|
17
|
-
return z("PrivateSwitchBase", o);
|
|
18
|
-
}
|
|
19
|
-
B("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
20
|
-
const Oe = (o) => {
|
|
21
|
-
const {
|
|
22
|
-
classes: t,
|
|
23
|
-
checked: s,
|
|
24
|
-
disabled: n,
|
|
25
|
-
edge: i
|
|
26
|
-
} = o, a = {
|
|
27
|
-
root: ["root", s && "checked", n && "disabled", i && `edge${j(i)}`],
|
|
28
|
-
input: ["input"]
|
|
29
|
-
};
|
|
30
|
-
return N(a, we, t);
|
|
31
|
-
}, Re = P(Te, {
|
|
32
|
-
name: "MuiSwitchBase"
|
|
33
|
-
})({
|
|
34
|
-
padding: 9,
|
|
35
|
-
borderRadius: "50%",
|
|
36
|
-
variants: [{
|
|
37
|
-
props: {
|
|
38
|
-
edge: "start",
|
|
39
|
-
size: "small"
|
|
40
|
-
},
|
|
41
|
-
style: {
|
|
42
|
-
marginLeft: -3
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
props: ({
|
|
46
|
-
edge: o,
|
|
47
|
-
ownerState: t
|
|
48
|
-
}) => o === "start" && t.size !== "small",
|
|
49
|
-
style: {
|
|
50
|
-
marginLeft: -12
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
props: {
|
|
54
|
-
edge: "end",
|
|
55
|
-
size: "small"
|
|
56
|
-
},
|
|
57
|
-
style: {
|
|
58
|
-
marginRight: -3
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
props: ({
|
|
62
|
-
edge: o,
|
|
63
|
-
ownerState: t
|
|
64
|
-
}) => o === "end" && t.size !== "small",
|
|
65
|
-
style: {
|
|
66
|
-
marginRight: -12
|
|
67
|
-
}
|
|
68
|
-
}]
|
|
69
|
-
}), Se = P("input", {
|
|
70
|
-
name: "MuiSwitchBase",
|
|
71
|
-
shouldForwardProp: te
|
|
72
|
-
})({
|
|
73
|
-
cursor: "inherit",
|
|
74
|
-
position: "absolute",
|
|
75
|
-
opacity: 0,
|
|
76
|
-
width: "100%",
|
|
77
|
-
height: "100%",
|
|
78
|
-
top: 0,
|
|
79
|
-
left: 0,
|
|
80
|
-
margin: 0,
|
|
81
|
-
padding: 0,
|
|
82
|
-
zIndex: 1
|
|
83
|
-
}), se = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
84
|
-
const {
|
|
85
|
-
autoFocus: n,
|
|
86
|
-
checked: i,
|
|
87
|
-
checkedIcon: a,
|
|
88
|
-
defaultChecked: c,
|
|
89
|
-
disabled: d,
|
|
90
|
-
disableFocusRipple: p = !1,
|
|
91
|
-
edge: y = !1,
|
|
92
|
-
icon: f,
|
|
93
|
-
id: v,
|
|
94
|
-
inputProps: w,
|
|
95
|
-
inputRef: h,
|
|
96
|
-
name: T,
|
|
97
|
-
onBlur: O,
|
|
98
|
-
onChange: r,
|
|
99
|
-
onFocus: x,
|
|
100
|
-
readOnly: m,
|
|
101
|
-
required: C = !1,
|
|
102
|
-
tabIndex: u,
|
|
103
|
-
type: R,
|
|
104
|
-
value: E,
|
|
105
|
-
slots: le = {},
|
|
106
|
-
slotProps: ie = {},
|
|
107
|
-
...ce
|
|
108
|
-
} = t, [J, de] = ke({
|
|
109
|
-
controlled: i,
|
|
110
|
-
default: !!c,
|
|
111
|
-
name: "SwitchBase",
|
|
112
|
-
state: "checked"
|
|
113
|
-
}), S = ve(), pe = (b) => {
|
|
114
|
-
x && x(b), S && S.onFocus && S.onFocus(b);
|
|
115
|
-
}, ue = (b) => {
|
|
116
|
-
O && O(b), S && S.onBlur && S.onBlur(b);
|
|
117
|
-
}, fe = (b) => {
|
|
118
|
-
if (b.nativeEvent.defaultPrevented || m)
|
|
119
|
-
return;
|
|
120
|
-
const k = b.target.checked;
|
|
121
|
-
de(k), r && r(b, k);
|
|
122
|
-
};
|
|
123
|
-
let F = d;
|
|
124
|
-
S && typeof F > "u" && (F = S.disabled);
|
|
125
|
-
const be = R === "checkbox" || R === "radio", V = {
|
|
126
|
-
...t,
|
|
127
|
-
checked: J,
|
|
128
|
-
disabled: F,
|
|
129
|
-
disableFocusRipple: p,
|
|
130
|
-
edge: y
|
|
131
|
-
}, G = Oe(V), K = {
|
|
132
|
-
slots: le,
|
|
133
|
-
slotProps: {
|
|
134
|
-
input: w,
|
|
135
|
-
...ie
|
|
136
|
-
}
|
|
137
|
-
}, [ge, ye] = _("root", {
|
|
138
|
-
ref: s,
|
|
139
|
-
elementType: Re,
|
|
140
|
-
className: G.root,
|
|
141
|
-
shouldForwardComponentProp: !0,
|
|
142
|
-
externalForwardedProps: {
|
|
143
|
-
...K,
|
|
144
|
-
component: "span",
|
|
145
|
-
...ce
|
|
146
|
-
},
|
|
147
|
-
getSlotProps: (b) => ({
|
|
148
|
-
...b,
|
|
149
|
-
onFocus: (k) => {
|
|
150
|
-
b.onFocus?.(k), pe(k);
|
|
151
|
-
},
|
|
152
|
-
onBlur: (k) => {
|
|
153
|
-
b.onBlur?.(k), ue(k);
|
|
154
|
-
}
|
|
155
|
-
}),
|
|
156
|
-
ownerState: V,
|
|
157
|
-
additionalProps: {
|
|
158
|
-
centerRipple: !0,
|
|
159
|
-
focusRipple: !p,
|
|
160
|
-
role: void 0,
|
|
161
|
-
tabIndex: null
|
|
162
|
-
}
|
|
163
|
-
}), [he, me] = _("input", {
|
|
164
|
-
ref: h,
|
|
165
|
-
elementType: Se,
|
|
166
|
-
className: G.input,
|
|
167
|
-
externalForwardedProps: K,
|
|
168
|
-
getSlotProps: (b) => ({
|
|
169
|
-
...b,
|
|
170
|
-
onChange: (k) => {
|
|
171
|
-
b.onChange?.(k), fe(k);
|
|
172
|
-
}
|
|
173
|
-
}),
|
|
174
|
-
ownerState: V,
|
|
175
|
-
additionalProps: {
|
|
176
|
-
autoFocus: n,
|
|
177
|
-
checked: i,
|
|
178
|
-
defaultChecked: c,
|
|
179
|
-
disabled: F,
|
|
180
|
-
id: be ? v : void 0,
|
|
181
|
-
name: T,
|
|
182
|
-
readOnly: m,
|
|
183
|
-
required: C,
|
|
184
|
-
tabIndex: u,
|
|
185
|
-
type: R,
|
|
186
|
-
...R === "checkbox" && E === void 0 ? {} : {
|
|
187
|
-
value: E
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
return /* @__PURE__ */ l.jsxs(ge, {
|
|
192
|
-
...ye,
|
|
193
|
-
children: [/* @__PURE__ */ l.jsx(he, {
|
|
194
|
-
...me
|
|
195
|
-
}), J ? a : f]
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
199
|
-
/**
|
|
200
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
201
|
-
*/
|
|
202
|
-
autoFocus: e.bool,
|
|
203
|
-
/**
|
|
204
|
-
* If `true`, the component is checked.
|
|
205
|
-
*/
|
|
206
|
-
checked: e.bool,
|
|
207
|
-
/**
|
|
208
|
-
* The icon to display when the component is checked.
|
|
209
|
-
*/
|
|
210
|
-
checkedIcon: e.node.isRequired,
|
|
211
|
-
/**
|
|
212
|
-
* Override or extend the styles applied to the component.
|
|
213
|
-
*/
|
|
214
|
-
classes: e.object,
|
|
215
|
-
/**
|
|
216
|
-
* @ignore
|
|
217
|
-
*/
|
|
218
|
-
className: e.string,
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
defaultChecked: e.bool,
|
|
223
|
-
/**
|
|
224
|
-
* If `true`, the component is disabled.
|
|
225
|
-
*/
|
|
226
|
-
disabled: e.bool,
|
|
227
|
-
/**
|
|
228
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
229
|
-
* @default false
|
|
230
|
-
*/
|
|
231
|
-
disableFocusRipple: e.bool,
|
|
232
|
-
/**
|
|
233
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
234
|
-
* side (this is often helpful for aligning the left or right
|
|
235
|
-
* side of the icon with content above or below, without ruining the border
|
|
236
|
-
* size and shape).
|
|
237
|
-
* @default false
|
|
238
|
-
*/
|
|
239
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
240
|
-
/**
|
|
241
|
-
* The icon to display when the component is unchecked.
|
|
242
|
-
*/
|
|
243
|
-
icon: e.node.isRequired,
|
|
244
|
-
/**
|
|
245
|
-
* The id of the `input` element.
|
|
246
|
-
*/
|
|
247
|
-
id: e.string,
|
|
248
|
-
/**
|
|
249
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
250
|
-
*/
|
|
251
|
-
inputProps: e.object,
|
|
252
|
-
/**
|
|
253
|
-
* Pass a ref to the `input` element.
|
|
254
|
-
*/
|
|
255
|
-
inputRef: Ce,
|
|
256
|
-
/*
|
|
257
|
-
* @ignore
|
|
258
|
-
*/
|
|
259
|
-
name: e.string,
|
|
260
|
-
/**
|
|
261
|
-
* @ignore
|
|
262
|
-
*/
|
|
263
|
-
onBlur: e.func,
|
|
264
|
-
/**
|
|
265
|
-
* Callback fired when the state is changed.
|
|
266
|
-
*
|
|
267
|
-
* @param {object} event The event source of the callback.
|
|
268
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
269
|
-
*/
|
|
270
|
-
onChange: e.func,
|
|
271
|
-
/**
|
|
272
|
-
* @ignore
|
|
273
|
-
*/
|
|
274
|
-
onFocus: e.func,
|
|
275
|
-
/**
|
|
276
|
-
* It prevents the user from changing the value of the field
|
|
277
|
-
* (not from interacting with the field).
|
|
278
|
-
*/
|
|
279
|
-
readOnly: e.bool,
|
|
280
|
-
/**
|
|
281
|
-
* If `true`, the `input` element is required.
|
|
282
|
-
*/
|
|
283
|
-
required: e.bool,
|
|
284
|
-
/**
|
|
285
|
-
* The props used for each slot inside.
|
|
286
|
-
* @default {}
|
|
287
|
-
*/
|
|
288
|
-
slotProps: e.shape({
|
|
289
|
-
input: e.oneOfType([e.func, e.object]),
|
|
290
|
-
root: e.oneOfType([e.func, e.object])
|
|
291
|
-
}),
|
|
292
|
-
/**
|
|
293
|
-
* The components used for each slot inside.
|
|
294
|
-
* @default {}
|
|
295
|
-
*/
|
|
296
|
-
slots: e.shape({
|
|
297
|
-
input: e.elementType,
|
|
298
|
-
root: e.elementType
|
|
299
|
-
}),
|
|
300
|
-
/**
|
|
301
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
302
|
-
*/
|
|
303
|
-
sx: e.object,
|
|
304
|
-
/**
|
|
305
|
-
* @ignore
|
|
306
|
-
*/
|
|
307
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
308
|
-
/**
|
|
309
|
-
* The input component prop `type`.
|
|
310
|
-
*/
|
|
311
|
-
type: e.string.isRequired,
|
|
312
|
-
/**
|
|
313
|
-
* The value of the component.
|
|
314
|
-
*/
|
|
315
|
-
value: e.any
|
|
316
|
-
});
|
|
317
|
-
const Pe = q(/* @__PURE__ */ l.jsx("path", {
|
|
318
|
-
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
319
|
-
}), "CheckBoxOutlineBlank"), Ne = q(/* @__PURE__ */ l.jsx("path", {
|
|
320
|
-
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
321
|
-
}), "CheckBox"), ze = q(/* @__PURE__ */ l.jsx("path", {
|
|
322
|
-
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
323
|
-
}), "IndeterminateCheckBox");
|
|
324
|
-
function Be(o) {
|
|
325
|
-
return z("MuiCheckbox", o);
|
|
326
|
-
}
|
|
327
|
-
const A = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Me = (o) => {
|
|
328
|
-
const {
|
|
329
|
-
classes: t,
|
|
330
|
-
indeterminate: s,
|
|
331
|
-
color: n,
|
|
332
|
-
size: i
|
|
333
|
-
} = o, a = {
|
|
334
|
-
root: ["root", s && "indeterminate", `color${j(n)}`, `size${j(i)}`]
|
|
335
|
-
}, c = N(a, Be, t);
|
|
336
|
-
return {
|
|
337
|
-
...t,
|
|
338
|
-
// forward the disabled and checked classes to the SwitchBase
|
|
339
|
-
...c
|
|
340
|
-
};
|
|
341
|
-
}, He = P(se, {
|
|
342
|
-
shouldForwardProp: (o) => te(o) || o === "classes",
|
|
343
|
-
name: "MuiCheckbox",
|
|
344
|
-
slot: "Root",
|
|
345
|
-
overridesResolver: (o, t) => {
|
|
346
|
-
const {
|
|
347
|
-
ownerState: s
|
|
348
|
-
} = o;
|
|
349
|
-
return [t.root, s.indeterminate && t.indeterminate, t[`size${j(s.size)}`], s.color !== "default" && t[`color${j(s.color)}`]];
|
|
350
|
-
}
|
|
351
|
-
})(D(({
|
|
352
|
-
theme: o
|
|
353
|
-
}) => ({
|
|
354
|
-
color: (o.vars || o).palette.text.secondary,
|
|
355
|
-
variants: [{
|
|
356
|
-
props: {
|
|
357
|
-
color: "default",
|
|
358
|
-
disableRipple: !1
|
|
359
|
-
},
|
|
360
|
-
style: {
|
|
361
|
-
"&:hover": {
|
|
362
|
-
backgroundColor: o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity)
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}, ...Object.entries(o.palette).filter(Q()).map(([t]) => ({
|
|
366
|
-
props: {
|
|
367
|
-
color: t,
|
|
368
|
-
disableRipple: !1
|
|
369
|
-
},
|
|
370
|
-
style: {
|
|
371
|
-
"&:hover": {
|
|
372
|
-
backgroundColor: o.alpha((o.vars || o).palette[t].main, (o.vars || o).palette.action.hoverOpacity)
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
})), ...Object.entries(o.palette).filter(Q()).map(([t]) => ({
|
|
376
|
-
props: {
|
|
377
|
-
color: t
|
|
378
|
-
},
|
|
379
|
-
style: {
|
|
380
|
-
[`&.${A.checked}, &.${A.indeterminate}`]: {
|
|
381
|
-
color: (o.vars || o).palette[t].main
|
|
382
|
-
},
|
|
383
|
-
[`&.${A.disabled}`]: {
|
|
384
|
-
color: (o.vars || o).palette.action.disabled
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
})), {
|
|
388
|
-
// Should be last to override other colors
|
|
389
|
-
props: {
|
|
390
|
-
disableRipple: !1
|
|
391
|
-
},
|
|
392
|
-
style: {
|
|
393
|
-
// Reset on touch devices, it doesn't add specificity
|
|
394
|
-
"&:hover": {
|
|
395
|
-
"@media (hover: none)": {
|
|
396
|
-
backgroundColor: "transparent"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}]
|
|
401
|
-
}))), Ie = /* @__PURE__ */ l.jsx(Ne, {}), $e = /* @__PURE__ */ l.jsx(Pe, {}), Ee = /* @__PURE__ */ l.jsx(ze, {}), W = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
402
|
-
const n = I({
|
|
403
|
-
props: t,
|
|
404
|
-
name: "MuiCheckbox"
|
|
405
|
-
}), {
|
|
406
|
-
checkedIcon: i = Ie,
|
|
407
|
-
color: a = "primary",
|
|
408
|
-
icon: c = $e,
|
|
409
|
-
indeterminate: d = !1,
|
|
410
|
-
indeterminateIcon: p = Ee,
|
|
411
|
-
inputProps: y,
|
|
412
|
-
size: f = "medium",
|
|
413
|
-
disableRipple: v = !1,
|
|
414
|
-
className: w,
|
|
415
|
-
slots: h = {},
|
|
416
|
-
slotProps: T = {},
|
|
417
|
-
...O
|
|
418
|
-
} = n, r = d ? p : c, x = d ? p : i, m = {
|
|
419
|
-
...n,
|
|
420
|
-
disableRipple: v,
|
|
421
|
-
color: a,
|
|
422
|
-
indeterminate: d,
|
|
423
|
-
size: f
|
|
424
|
-
}, C = Me(m), u = T.input ?? y, [R, E] = _("root", {
|
|
425
|
-
ref: s,
|
|
426
|
-
elementType: He,
|
|
427
|
-
className: H(C.root, w),
|
|
428
|
-
shouldForwardComponentProp: !0,
|
|
429
|
-
externalForwardedProps: {
|
|
430
|
-
slots: h,
|
|
431
|
-
slotProps: T,
|
|
432
|
-
...O
|
|
433
|
-
},
|
|
434
|
-
ownerState: m,
|
|
435
|
-
additionalProps: {
|
|
436
|
-
type: "checkbox",
|
|
437
|
-
icon: /* @__PURE__ */ g.cloneElement(r, {
|
|
438
|
-
fontSize: r.props.fontSize ?? f
|
|
439
|
-
}),
|
|
440
|
-
checkedIcon: /* @__PURE__ */ g.cloneElement(x, {
|
|
441
|
-
fontSize: x.props.fontSize ?? f
|
|
442
|
-
}),
|
|
443
|
-
disableRipple: v,
|
|
444
|
-
slots: h,
|
|
445
|
-
slotProps: {
|
|
446
|
-
input: je(typeof u == "function" ? u(m) : u, {
|
|
447
|
-
"data-indeterminate": d
|
|
448
|
-
})
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
return /* @__PURE__ */ l.jsx(R, {
|
|
453
|
-
...E,
|
|
454
|
-
classes: C
|
|
455
|
-
});
|
|
456
|
-
});
|
|
457
|
-
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
458
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
459
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
460
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
461
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, the component is checked.
|
|
464
|
-
*/
|
|
465
|
-
checked: e.bool,
|
|
466
|
-
/**
|
|
467
|
-
* The icon to display when the component is checked.
|
|
468
|
-
* @default <CheckBoxIcon />
|
|
469
|
-
*/
|
|
470
|
-
checkedIcon: e.node,
|
|
471
|
-
/**
|
|
472
|
-
* Override or extend the styles applied to the component.
|
|
473
|
-
*/
|
|
474
|
-
classes: e.object,
|
|
475
|
-
/**
|
|
476
|
-
* @ignore
|
|
477
|
-
*/
|
|
478
|
-
className: e.string,
|
|
479
|
-
/**
|
|
480
|
-
* The color of the component.
|
|
481
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
482
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
483
|
-
* @default 'primary'
|
|
484
|
-
*/
|
|
485
|
-
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
486
|
-
/**
|
|
487
|
-
* The default checked state. Use when the component is not controlled.
|
|
488
|
-
*/
|
|
489
|
-
defaultChecked: e.bool,
|
|
490
|
-
/**
|
|
491
|
-
* If `true`, the component is disabled.
|
|
492
|
-
* @default false
|
|
493
|
-
*/
|
|
494
|
-
disabled: e.bool,
|
|
495
|
-
/**
|
|
496
|
-
* If `true`, the ripple effect is disabled.
|
|
497
|
-
* @default false
|
|
498
|
-
*/
|
|
499
|
-
disableRipple: e.bool,
|
|
500
|
-
/**
|
|
501
|
-
* The icon to display when the component is unchecked.
|
|
502
|
-
* @default <CheckBoxOutlineBlankIcon />
|
|
503
|
-
*/
|
|
504
|
-
icon: e.node,
|
|
505
|
-
/**
|
|
506
|
-
* The id of the `input` element.
|
|
507
|
-
*/
|
|
508
|
-
id: e.string,
|
|
509
|
-
/**
|
|
510
|
-
* If `true`, the component appears indeterminate.
|
|
511
|
-
* This does not set the native input element to indeterminate due
|
|
512
|
-
* to inconsistent behavior across browsers.
|
|
513
|
-
* However, we set a `data-indeterminate` attribute on the `input`.
|
|
514
|
-
* @default false
|
|
515
|
-
*/
|
|
516
|
-
indeterminate: e.bool,
|
|
517
|
-
/**
|
|
518
|
-
* The icon to display when the component is indeterminate.
|
|
519
|
-
* @default <IndeterminateCheckBoxIcon />
|
|
520
|
-
*/
|
|
521
|
-
indeterminateIcon: e.node,
|
|
522
|
-
/**
|
|
523
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
524
|
-
* @deprecated Use `slotProps.input` 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.
|
|
525
|
-
*/
|
|
526
|
-
inputProps: e.object,
|
|
527
|
-
/**
|
|
528
|
-
* Callback fired when the state is changed.
|
|
529
|
-
*
|
|
530
|
-
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
531
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
532
|
-
*/
|
|
533
|
-
onChange: e.func,
|
|
534
|
-
/**
|
|
535
|
-
* If `true`, the `input` element is required.
|
|
536
|
-
* @default false
|
|
537
|
-
*/
|
|
538
|
-
required: e.bool,
|
|
539
|
-
/**
|
|
540
|
-
* The size of the component.
|
|
541
|
-
* `small` is equivalent to the dense checkbox styling.
|
|
542
|
-
* @default 'medium'
|
|
543
|
-
*/
|
|
544
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
545
|
-
/**
|
|
546
|
-
* The props used for each slot inside.
|
|
547
|
-
* @default {}
|
|
548
|
-
*/
|
|
549
|
-
slotProps: e.shape({
|
|
550
|
-
input: e.oneOfType([e.func, e.object]),
|
|
551
|
-
root: e.oneOfType([e.func, e.object])
|
|
552
|
-
}),
|
|
553
|
-
/**
|
|
554
|
-
* The components used for each slot inside.
|
|
555
|
-
* @default {}
|
|
556
|
-
*/
|
|
557
|
-
slots: e.shape({
|
|
558
|
-
input: e.elementType,
|
|
559
|
-
root: e.elementType
|
|
560
|
-
}),
|
|
561
|
-
/**
|
|
562
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
563
|
-
*/
|
|
564
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
565
|
-
/**
|
|
566
|
-
* The value of the component. The DOM API casts this to a string.
|
|
567
|
-
* The browser uses "on" as the default value.
|
|
568
|
-
*/
|
|
569
|
-
value: e.any
|
|
570
|
-
});
|
|
571
|
-
const L = /* @__PURE__ */ g.createContext();
|
|
572
|
-
process.env.NODE_ENV !== "production" && (L.displayName = "TableContext");
|
|
573
|
-
function Fe(o) {
|
|
574
|
-
return z("MuiTable", o);
|
|
575
|
-
}
|
|
576
|
-
B("MuiTable", ["root", "stickyHeader"]);
|
|
577
|
-
const Ue = (o) => {
|
|
578
|
-
const {
|
|
579
|
-
classes: t,
|
|
580
|
-
stickyHeader: s
|
|
581
|
-
} = o;
|
|
582
|
-
return N({
|
|
583
|
-
root: ["root", s && "stickyHeader"]
|
|
584
|
-
}, Fe, t);
|
|
585
|
-
}, De = P("table", {
|
|
586
|
-
name: "MuiTable",
|
|
587
|
-
slot: "Root",
|
|
588
|
-
overridesResolver: (o, t) => {
|
|
589
|
-
const {
|
|
590
|
-
ownerState: s
|
|
591
|
-
} = o;
|
|
592
|
-
return [t.root, s.stickyHeader && t.stickyHeader];
|
|
593
|
-
}
|
|
594
|
-
})(D(({
|
|
595
|
-
theme: o
|
|
596
|
-
}) => ({
|
|
597
|
-
display: "table",
|
|
598
|
-
width: "100%",
|
|
599
|
-
borderCollapse: "collapse",
|
|
600
|
-
borderSpacing: 0,
|
|
601
|
-
"& caption": {
|
|
602
|
-
...o.typography.body2,
|
|
603
|
-
padding: o.spacing(2),
|
|
604
|
-
color: (o.vars || o).palette.text.secondary,
|
|
605
|
-
textAlign: "left",
|
|
606
|
-
captionSide: "bottom"
|
|
607
|
-
},
|
|
608
|
-
variants: [{
|
|
609
|
-
props: ({
|
|
610
|
-
ownerState: t
|
|
611
|
-
}) => t.stickyHeader,
|
|
612
|
-
style: {
|
|
613
|
-
borderCollapse: "separate"
|
|
614
|
-
}
|
|
615
|
-
}]
|
|
616
|
-
}))), X = "table", ne = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
617
|
-
const n = I({
|
|
618
|
-
props: t,
|
|
619
|
-
name: "MuiTable"
|
|
620
|
-
}), {
|
|
621
|
-
className: i,
|
|
622
|
-
component: a = X,
|
|
623
|
-
padding: c = "normal",
|
|
624
|
-
size: d = "medium",
|
|
625
|
-
stickyHeader: p = !1,
|
|
626
|
-
...y
|
|
627
|
-
} = n, f = {
|
|
628
|
-
...n,
|
|
629
|
-
component: a,
|
|
630
|
-
padding: c,
|
|
631
|
-
size: d,
|
|
632
|
-
stickyHeader: p
|
|
633
|
-
}, v = Ue(f), w = g.useMemo(() => ({
|
|
634
|
-
padding: c,
|
|
635
|
-
size: d,
|
|
636
|
-
stickyHeader: p
|
|
637
|
-
}), [c, d, p]);
|
|
638
|
-
return /* @__PURE__ */ l.jsx(L.Provider, {
|
|
639
|
-
value: w,
|
|
640
|
-
children: /* @__PURE__ */ l.jsx(De, {
|
|
641
|
-
as: a,
|
|
642
|
-
role: a === X ? null : "table",
|
|
643
|
-
ref: s,
|
|
644
|
-
className: H(v.root, i),
|
|
645
|
-
ownerState: f,
|
|
646
|
-
...y
|
|
647
|
-
})
|
|
648
|
-
});
|
|
649
|
-
});
|
|
650
|
-
process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
651
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
652
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
653
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
654
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
655
|
-
/**
|
|
656
|
-
* The content of the table, normally `TableHead` and `TableBody`.
|
|
657
|
-
*/
|
|
658
|
-
children: e.node,
|
|
659
|
-
/**
|
|
660
|
-
* Override or extend the styles applied to the component.
|
|
661
|
-
*/
|
|
662
|
-
classes: e.object,
|
|
663
|
-
/**
|
|
664
|
-
* @ignore
|
|
665
|
-
*/
|
|
666
|
-
className: e.string,
|
|
667
|
-
/**
|
|
668
|
-
* The component used for the root node.
|
|
669
|
-
* Either a string to use a HTML element or a component.
|
|
670
|
-
*/
|
|
671
|
-
component: e.elementType,
|
|
672
|
-
/**
|
|
673
|
-
* Allows TableCells to inherit padding of the Table.
|
|
674
|
-
* @default 'normal'
|
|
675
|
-
*/
|
|
676
|
-
padding: e.oneOf(["checkbox", "none", "normal"]),
|
|
677
|
-
/**
|
|
678
|
-
* Allows TableCells to inherit size of the Table.
|
|
679
|
-
* @default 'medium'
|
|
680
|
-
*/
|
|
681
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
682
|
-
/**
|
|
683
|
-
* Set the header sticky.
|
|
684
|
-
* @default false
|
|
685
|
-
*/
|
|
686
|
-
stickyHeader: e.bool,
|
|
687
|
-
/**
|
|
688
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
689
|
-
*/
|
|
690
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
691
|
-
});
|
|
692
|
-
const $ = /* @__PURE__ */ g.createContext();
|
|
693
|
-
process.env.NODE_ENV !== "production" && ($.displayName = "Tablelvl2Context");
|
|
694
|
-
function Ve(o) {
|
|
695
|
-
return z("MuiTableBody", o);
|
|
696
|
-
}
|
|
697
|
-
B("MuiTableBody", ["root"]);
|
|
698
|
-
const Ae = (o) => {
|
|
699
|
-
const {
|
|
700
|
-
classes: t
|
|
701
|
-
} = o;
|
|
702
|
-
return N({
|
|
703
|
-
root: ["root"]
|
|
704
|
-
}, Ve, t);
|
|
705
|
-
}, _e = P("tbody", {
|
|
706
|
-
name: "MuiTableBody",
|
|
707
|
-
slot: "Root"
|
|
708
|
-
})({
|
|
709
|
-
display: "table-row-group"
|
|
710
|
-
}), We = {
|
|
711
|
-
variant: "body"
|
|
712
|
-
}, Y = "tbody", ae = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
713
|
-
const n = I({
|
|
714
|
-
props: t,
|
|
715
|
-
name: "MuiTableBody"
|
|
716
|
-
}), {
|
|
717
|
-
className: i,
|
|
718
|
-
component: a = Y,
|
|
719
|
-
...c
|
|
720
|
-
} = n, d = {
|
|
721
|
-
...n,
|
|
722
|
-
component: a
|
|
723
|
-
}, p = Ae(d);
|
|
724
|
-
return /* @__PURE__ */ l.jsx($.Provider, {
|
|
725
|
-
value: We,
|
|
726
|
-
children: /* @__PURE__ */ l.jsx(_e, {
|
|
727
|
-
className: H(p.root, i),
|
|
728
|
-
as: a,
|
|
729
|
-
ref: s,
|
|
730
|
-
role: a === Y ? null : "rowgroup",
|
|
731
|
-
ownerState: d,
|
|
732
|
-
...c
|
|
733
|
-
})
|
|
734
|
-
});
|
|
735
|
-
});
|
|
736
|
-
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
737
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
738
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
739
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
740
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
741
|
-
/**
|
|
742
|
-
* The content of the component, normally `TableRow`.
|
|
743
|
-
*/
|
|
744
|
-
children: e.node,
|
|
745
|
-
/**
|
|
746
|
-
* Override or extend the styles applied to the component.
|
|
747
|
-
*/
|
|
748
|
-
classes: e.object,
|
|
749
|
-
/**
|
|
750
|
-
* @ignore
|
|
751
|
-
*/
|
|
752
|
-
className: e.string,
|
|
753
|
-
/**
|
|
754
|
-
* The component used for the root node.
|
|
755
|
-
* Either a string to use a HTML element or a component.
|
|
756
|
-
*/
|
|
757
|
-
component: e.elementType,
|
|
758
|
-
/**
|
|
759
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
760
|
-
*/
|
|
761
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
762
|
-
});
|
|
763
|
-
function qe(o) {
|
|
764
|
-
return z("MuiTableCell", o);
|
|
765
|
-
}
|
|
766
|
-
const Le = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), Je = (o) => {
|
|
767
|
-
const {
|
|
768
|
-
classes: t,
|
|
769
|
-
variant: s,
|
|
770
|
-
align: n,
|
|
771
|
-
padding: i,
|
|
772
|
-
size: a,
|
|
773
|
-
stickyHeader: c
|
|
774
|
-
} = o, d = {
|
|
775
|
-
root: ["root", s, c && "stickyHeader", n !== "inherit" && `align${j(n)}`, i !== "normal" && `padding${j(i)}`, `size${j(a)}`]
|
|
776
|
-
};
|
|
777
|
-
return N(d, qe, t);
|
|
778
|
-
}, Ge = P("td", {
|
|
779
|
-
name: "MuiTableCell",
|
|
780
|
-
slot: "Root",
|
|
781
|
-
overridesResolver: (o, t) => {
|
|
782
|
-
const {
|
|
783
|
-
ownerState: s
|
|
784
|
-
} = o;
|
|
785
|
-
return [t.root, t[s.variant], t[`size${j(s.size)}`], s.padding !== "normal" && t[`padding${j(s.padding)}`], s.align !== "inherit" && t[`align${j(s.align)}`], s.stickyHeader && t.stickyHeader];
|
|
786
|
-
}
|
|
787
|
-
})(D(({
|
|
788
|
-
theme: o
|
|
789
|
-
}) => ({
|
|
790
|
-
...o.typography.body2,
|
|
791
|
-
display: "table-cell",
|
|
792
|
-
verticalAlign: "inherit",
|
|
793
|
-
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
794
|
-
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
|
|
795
|
-
borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
796
|
-
${o.palette.mode === "light" ? o.lighten(o.alpha(o.palette.divider, 1), 0.88) : o.darken(o.alpha(o.palette.divider, 1), 0.68)}`,
|
|
797
|
-
textAlign: "left",
|
|
798
|
-
padding: 16,
|
|
799
|
-
variants: [{
|
|
800
|
-
props: {
|
|
801
|
-
variant: "head"
|
|
802
|
-
},
|
|
803
|
-
style: {
|
|
804
|
-
color: (o.vars || o).palette.text.primary,
|
|
805
|
-
lineHeight: o.typography.pxToRem(24),
|
|
806
|
-
fontWeight: o.typography.fontWeightMedium
|
|
807
|
-
}
|
|
808
|
-
}, {
|
|
809
|
-
props: {
|
|
810
|
-
variant: "body"
|
|
811
|
-
},
|
|
812
|
-
style: {
|
|
813
|
-
color: (o.vars || o).palette.text.primary
|
|
814
|
-
}
|
|
815
|
-
}, {
|
|
816
|
-
props: {
|
|
817
|
-
variant: "footer"
|
|
818
|
-
},
|
|
819
|
-
style: {
|
|
820
|
-
color: (o.vars || o).palette.text.secondary,
|
|
821
|
-
lineHeight: o.typography.pxToRem(21),
|
|
822
|
-
fontSize: o.typography.pxToRem(12)
|
|
823
|
-
}
|
|
824
|
-
}, {
|
|
825
|
-
props: {
|
|
826
|
-
size: "small"
|
|
827
|
-
},
|
|
828
|
-
style: {
|
|
829
|
-
padding: "6px 16px",
|
|
830
|
-
[`&.${Le.paddingCheckbox}`]: {
|
|
831
|
-
width: 24,
|
|
832
|
-
// prevent the checkbox column from growing
|
|
833
|
-
padding: "0 12px 0 16px",
|
|
834
|
-
"& > *": {
|
|
835
|
-
padding: 0
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}, {
|
|
840
|
-
props: {
|
|
841
|
-
padding: "checkbox"
|
|
842
|
-
},
|
|
843
|
-
style: {
|
|
844
|
-
width: 48,
|
|
845
|
-
// prevent the checkbox column from growing
|
|
846
|
-
padding: "0 0 0 4px"
|
|
847
|
-
}
|
|
848
|
-
}, {
|
|
849
|
-
props: {
|
|
850
|
-
padding: "none"
|
|
851
|
-
},
|
|
852
|
-
style: {
|
|
853
|
-
padding: 0
|
|
854
|
-
}
|
|
855
|
-
}, {
|
|
856
|
-
props: {
|
|
857
|
-
align: "left"
|
|
858
|
-
},
|
|
859
|
-
style: {
|
|
860
|
-
textAlign: "left"
|
|
861
|
-
}
|
|
862
|
-
}, {
|
|
863
|
-
props: {
|
|
864
|
-
align: "center"
|
|
865
|
-
},
|
|
866
|
-
style: {
|
|
867
|
-
textAlign: "center"
|
|
868
|
-
}
|
|
869
|
-
}, {
|
|
870
|
-
props: {
|
|
871
|
-
align: "right"
|
|
872
|
-
},
|
|
873
|
-
style: {
|
|
874
|
-
textAlign: "right",
|
|
875
|
-
flexDirection: "row-reverse"
|
|
876
|
-
}
|
|
877
|
-
}, {
|
|
878
|
-
props: {
|
|
879
|
-
align: "justify"
|
|
880
|
-
},
|
|
881
|
-
style: {
|
|
882
|
-
textAlign: "justify"
|
|
883
|
-
}
|
|
884
|
-
}, {
|
|
885
|
-
props: ({
|
|
886
|
-
ownerState: t
|
|
887
|
-
}) => t.stickyHeader,
|
|
888
|
-
style: {
|
|
889
|
-
position: "sticky",
|
|
890
|
-
top: 0,
|
|
891
|
-
zIndex: 2,
|
|
892
|
-
backgroundColor: (o.vars || o).palette.background.default
|
|
893
|
-
}
|
|
894
|
-
}]
|
|
895
|
-
}))), M = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
896
|
-
const n = I({
|
|
897
|
-
props: t,
|
|
898
|
-
name: "MuiTableCell"
|
|
899
|
-
}), {
|
|
900
|
-
align: i = "inherit",
|
|
901
|
-
className: a,
|
|
902
|
-
component: c,
|
|
903
|
-
padding: d,
|
|
904
|
-
scope: p,
|
|
905
|
-
size: y,
|
|
906
|
-
sortDirection: f,
|
|
907
|
-
variant: v,
|
|
908
|
-
...w
|
|
909
|
-
} = n, h = g.useContext(L), T = g.useContext($), O = T && T.variant === "head";
|
|
910
|
-
let r;
|
|
911
|
-
c ? r = c : r = O ? "th" : "td";
|
|
912
|
-
let x = p;
|
|
913
|
-
r === "td" ? x = void 0 : !x && O && (x = "col");
|
|
914
|
-
const m = v || T && T.variant, C = {
|
|
915
|
-
...n,
|
|
916
|
-
align: i,
|
|
917
|
-
component: r,
|
|
918
|
-
padding: d || (h && h.padding ? h.padding : "normal"),
|
|
919
|
-
size: y || (h && h.size ? h.size : "medium"),
|
|
920
|
-
sortDirection: f,
|
|
921
|
-
stickyHeader: m === "head" && h && h.stickyHeader,
|
|
922
|
-
variant: m
|
|
923
|
-
}, u = Je(C);
|
|
924
|
-
let R = null;
|
|
925
|
-
return f && (R = f === "asc" ? "ascending" : "descending"), /* @__PURE__ */ l.jsx(Ge, {
|
|
926
|
-
as: r,
|
|
927
|
-
ref: s,
|
|
928
|
-
className: H(u.root, a),
|
|
929
|
-
"aria-sort": R,
|
|
930
|
-
scope: x,
|
|
931
|
-
ownerState: C,
|
|
932
|
-
...w
|
|
933
|
-
});
|
|
934
|
-
});
|
|
935
|
-
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
936
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
937
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
938
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
939
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
940
|
-
/**
|
|
941
|
-
* Set the text-align on the table cell content.
|
|
942
|
-
*
|
|
943
|
-
* Monetary or generally number fields **should be right aligned** as that allows
|
|
944
|
-
* you to add them up quickly in your head without having to worry about decimals.
|
|
945
|
-
* @default 'inherit'
|
|
946
|
-
*/
|
|
947
|
-
align: e.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
948
|
-
/**
|
|
949
|
-
* The content of the component.
|
|
950
|
-
*/
|
|
951
|
-
children: e.node,
|
|
952
|
-
/**
|
|
953
|
-
* Override or extend the styles applied to the component.
|
|
954
|
-
*/
|
|
955
|
-
classes: e.object,
|
|
956
|
-
/**
|
|
957
|
-
* @ignore
|
|
958
|
-
*/
|
|
959
|
-
className: e.string,
|
|
960
|
-
/**
|
|
961
|
-
* The component used for the root node.
|
|
962
|
-
* Either a string to use a HTML element or a component.
|
|
963
|
-
*/
|
|
964
|
-
component: e.elementType,
|
|
965
|
-
/**
|
|
966
|
-
* Sets the padding applied to the cell.
|
|
967
|
-
* The prop defaults to the value (`'default'`) inherited from the parent Table component.
|
|
968
|
-
*/
|
|
969
|
-
padding: e.oneOf(["checkbox", "none", "normal"]),
|
|
970
|
-
/**
|
|
971
|
-
* Set scope attribute.
|
|
972
|
-
*/
|
|
973
|
-
scope: e.string,
|
|
974
|
-
/**
|
|
975
|
-
* Specify the size of the cell.
|
|
976
|
-
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
|
|
977
|
-
*/
|
|
978
|
-
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
979
|
-
/**
|
|
980
|
-
* Set aria-sort direction.
|
|
981
|
-
*/
|
|
982
|
-
sortDirection: e.oneOf(["asc", "desc", !1]),
|
|
983
|
-
/**
|
|
984
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
985
|
-
*/
|
|
986
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
987
|
-
/**
|
|
988
|
-
* Specify the cell type.
|
|
989
|
-
* The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components.
|
|
990
|
-
*/
|
|
991
|
-
variant: e.oneOfType([e.oneOf(["body", "footer", "head"]), e.string])
|
|
992
|
-
});
|
|
993
|
-
function Ke(o) {
|
|
994
|
-
return z("MuiTableHead", o);
|
|
995
|
-
}
|
|
996
|
-
B("MuiTableHead", ["root"]);
|
|
997
|
-
const Qe = (o) => {
|
|
998
|
-
const {
|
|
999
|
-
classes: t
|
|
1000
|
-
} = o;
|
|
1001
|
-
return N({
|
|
1002
|
-
root: ["root"]
|
|
1003
|
-
}, Ke, t);
|
|
1004
|
-
}, Xe = P("thead", {
|
|
1005
|
-
name: "MuiTableHead",
|
|
1006
|
-
slot: "Root"
|
|
1007
|
-
})({
|
|
1008
|
-
display: "table-header-group"
|
|
1009
|
-
}), Ye = {
|
|
1010
|
-
variant: "head"
|
|
1011
|
-
}, Z = "thead", re = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
1012
|
-
const n = I({
|
|
1013
|
-
props: t,
|
|
1014
|
-
name: "MuiTableHead"
|
|
1015
|
-
}), {
|
|
1016
|
-
className: i,
|
|
1017
|
-
component: a = Z,
|
|
1018
|
-
...c
|
|
1019
|
-
} = n, d = {
|
|
1020
|
-
...n,
|
|
1021
|
-
component: a
|
|
1022
|
-
}, p = Qe(d);
|
|
1023
|
-
return /* @__PURE__ */ l.jsx($.Provider, {
|
|
1024
|
-
value: Ye,
|
|
1025
|
-
children: /* @__PURE__ */ l.jsx(Xe, {
|
|
1026
|
-
as: a,
|
|
1027
|
-
className: H(p.root, i),
|
|
1028
|
-
ref: s,
|
|
1029
|
-
role: a === Z ? null : "rowgroup",
|
|
1030
|
-
ownerState: d,
|
|
1031
|
-
...c
|
|
1032
|
-
})
|
|
1033
|
-
});
|
|
1034
|
-
});
|
|
1035
|
-
process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
1036
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1037
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1038
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1039
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1040
|
-
/**
|
|
1041
|
-
* The content of the component, normally `TableRow`.
|
|
1042
|
-
*/
|
|
1043
|
-
children: e.node,
|
|
1044
|
-
/**
|
|
1045
|
-
* Override or extend the styles applied to the component.
|
|
1046
|
-
*/
|
|
1047
|
-
classes: e.object,
|
|
1048
|
-
/**
|
|
1049
|
-
* @ignore
|
|
1050
|
-
*/
|
|
1051
|
-
className: e.string,
|
|
1052
|
-
/**
|
|
1053
|
-
* The component used for the root node.
|
|
1054
|
-
* Either a string to use a HTML element or a component.
|
|
1055
|
-
*/
|
|
1056
|
-
component: e.elementType,
|
|
1057
|
-
/**
|
|
1058
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1059
|
-
*/
|
|
1060
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1061
|
-
});
|
|
1062
|
-
function Ze(o) {
|
|
1063
|
-
return z("MuiTableRow", o);
|
|
1064
|
-
}
|
|
1065
|
-
const ee = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), eo = (o) => {
|
|
1066
|
-
const {
|
|
1067
|
-
classes: t,
|
|
1068
|
-
selected: s,
|
|
1069
|
-
hover: n,
|
|
1070
|
-
head: i,
|
|
1071
|
-
footer: a
|
|
1072
|
-
} = o;
|
|
1073
|
-
return N({
|
|
1074
|
-
root: ["root", s && "selected", n && "hover", i && "head", a && "footer"]
|
|
1075
|
-
}, Ze, t);
|
|
1076
|
-
}, oo = P("tr", {
|
|
1077
|
-
name: "MuiTableRow",
|
|
1078
|
-
slot: "Root",
|
|
1079
|
-
overridesResolver: (o, t) => {
|
|
1080
|
-
const {
|
|
1081
|
-
ownerState: s
|
|
1082
|
-
} = o;
|
|
1083
|
-
return [t.root, s.head && t.head, s.footer && t.footer];
|
|
1084
|
-
}
|
|
1085
|
-
})(D(({
|
|
1086
|
-
theme: o
|
|
1087
|
-
}) => ({
|
|
1088
|
-
color: "inherit",
|
|
1089
|
-
display: "table-row",
|
|
1090
|
-
verticalAlign: "middle",
|
|
1091
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1092
|
-
outline: 0,
|
|
1093
|
-
[`&.${ee.hover}:hover`]: {
|
|
1094
|
-
backgroundColor: (o.vars || o).palette.action.hover
|
|
1095
|
-
},
|
|
1096
|
-
[`&.${ee.selected}`]: {
|
|
1097
|
-
backgroundColor: o.alpha((o.vars || o).palette.primary.main, (o.vars || o).palette.action.selectedOpacity),
|
|
1098
|
-
"&:hover": {
|
|
1099
|
-
backgroundColor: o.alpha((o.vars || o).palette.primary.main, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.hoverOpacity}`)
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
}))), oe = "tr", U = /* @__PURE__ */ g.forwardRef(function(t, s) {
|
|
1103
|
-
const n = I({
|
|
1104
|
-
props: t,
|
|
1105
|
-
name: "MuiTableRow"
|
|
1106
|
-
}), {
|
|
1107
|
-
className: i,
|
|
1108
|
-
component: a = oe,
|
|
1109
|
-
hover: c = !1,
|
|
1110
|
-
selected: d = !1,
|
|
1111
|
-
...p
|
|
1112
|
-
} = n, y = g.useContext($), f = {
|
|
1113
|
-
...n,
|
|
1114
|
-
component: a,
|
|
1115
|
-
hover: c,
|
|
1116
|
-
selected: d,
|
|
1117
|
-
head: y && y.variant === "head",
|
|
1118
|
-
footer: y && y.variant === "footer"
|
|
1119
|
-
}, v = eo(f);
|
|
1120
|
-
return /* @__PURE__ */ l.jsx(oo, {
|
|
1121
|
-
as: a,
|
|
1122
|
-
ref: s,
|
|
1123
|
-
className: H(v.root, i),
|
|
1124
|
-
role: a === oe ? null : "row",
|
|
1125
|
-
ownerState: f,
|
|
1126
|
-
...p
|
|
1127
|
-
});
|
|
1128
|
-
});
|
|
1129
|
-
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
1130
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1131
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1132
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1133
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1134
|
-
/**
|
|
1135
|
-
* Should be valid `<tr>` children such as `TableCell`.
|
|
1136
|
-
*/
|
|
1137
|
-
children: e.node,
|
|
1138
|
-
/**
|
|
1139
|
-
* Override or extend the styles applied to the component.
|
|
1140
|
-
*/
|
|
1141
|
-
classes: e.object,
|
|
1142
|
-
/**
|
|
1143
|
-
* @ignore
|
|
1144
|
-
*/
|
|
1145
|
-
className: e.string,
|
|
1146
|
-
/**
|
|
1147
|
-
* The component used for the root node.
|
|
1148
|
-
* Either a string to use a HTML element or a component.
|
|
1149
|
-
*/
|
|
1150
|
-
component: e.elementType,
|
|
1151
|
-
/**
|
|
1152
|
-
* If `true`, the table row will shade on hover.
|
|
1153
|
-
* @default false
|
|
1154
|
-
*/
|
|
1155
|
-
hover: e.bool,
|
|
1156
|
-
/**
|
|
1157
|
-
* If `true`, the table row will have the selected shading.
|
|
1158
|
-
* @default false
|
|
1159
|
-
*/
|
|
1160
|
-
selected: e.bool,
|
|
1161
|
-
/**
|
|
1162
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1163
|
-
*/
|
|
1164
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1165
|
-
});
|
|
1166
|
-
const to = ({
|
|
1167
|
-
columns: o,
|
|
1168
|
-
hideHead: t,
|
|
1169
|
-
hover: s,
|
|
1170
|
-
onClick: n,
|
|
1171
|
-
onDeselectAll: i,
|
|
1172
|
-
onDeselectOne: a,
|
|
1173
|
-
onSelectOne: c,
|
|
1174
|
-
onSelectAll: d,
|
|
1175
|
-
rows: p,
|
|
1176
|
-
selectable: y,
|
|
1177
|
-
selected: f,
|
|
1178
|
-
uniqueRowId: v,
|
|
1179
|
-
...w
|
|
1180
|
-
}) => {
|
|
1181
|
-
const h = (f?.size ?? 0) > 0 && (f?.size ?? 0) < p.length, T = p.length > 0 && f?.size === p.length, O = g.useId();
|
|
1182
|
-
return /* @__PURE__ */ l.jsxs(ne, { ...w, sx: { mt: 1 }, children: [
|
|
1183
|
-
/* @__PURE__ */ l.jsx(
|
|
1184
|
-
re,
|
|
1185
|
-
{
|
|
1186
|
-
sx: {
|
|
1187
|
-
...t && {
|
|
1188
|
-
visibility: "collapse",
|
|
1189
|
-
// Hide header while preserving layout
|
|
1190
|
-
"--TableCell-borderWidth": 0
|
|
1191
|
-
}
|
|
1192
|
-
},
|
|
1193
|
-
children: /* @__PURE__ */ l.jsxs(U, { children: [
|
|
1194
|
-
y ? /* @__PURE__ */ l.jsx(
|
|
1195
|
-
M,
|
|
1196
|
-
{
|
|
1197
|
-
padding: "checkbox",
|
|
1198
|
-
sx: {
|
|
1199
|
-
width: "40px",
|
|
1200
|
-
minWidth: "40px",
|
|
1201
|
-
maxWidth: "40px",
|
|
1202
|
-
bgcolor: "action.hover",
|
|
1203
|
-
backgroundClip: "padding-box",
|
|
1204
|
-
// Ensure border renders consistently over background
|
|
1205
|
-
borderTop: "1px solid",
|
|
1206
|
-
borderColor: "divider"
|
|
1207
|
-
},
|
|
1208
|
-
children: /* @__PURE__ */ l.jsx(
|
|
1209
|
-
W,
|
|
1210
|
-
{
|
|
1211
|
-
checked: T,
|
|
1212
|
-
indeterminate: h,
|
|
1213
|
-
onChange: (r) => {
|
|
1214
|
-
T ? i?.(r) : d?.(r);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
)
|
|
1218
|
-
}
|
|
1219
|
-
) : null,
|
|
1220
|
-
o.map(
|
|
1221
|
-
(r) => /* @__PURE__ */ l.jsx(
|
|
1222
|
-
M,
|
|
1223
|
-
{
|
|
1224
|
-
sx: {
|
|
1225
|
-
// Apply fixed width if specified
|
|
1226
|
-
width: r.width,
|
|
1227
|
-
minWidth: r.width,
|
|
1228
|
-
maxWidth: r.width,
|
|
1229
|
-
// Apply text alignment if specified
|
|
1230
|
-
...r.align && { textAlign: r.align },
|
|
1231
|
-
bgcolor: "action.hover",
|
|
1232
|
-
backgroundClip: "padding-box",
|
|
1233
|
-
borderTop: "1px solid",
|
|
1234
|
-
borderColor: "divider"
|
|
1235
|
-
},
|
|
1236
|
-
children: r.hideName ? null : r.name
|
|
1237
|
-
},
|
|
1238
|
-
r.name ?? O
|
|
1239
|
-
)
|
|
1240
|
-
)
|
|
1241
|
-
] })
|
|
1242
|
-
}
|
|
1243
|
-
),
|
|
1244
|
-
/* @__PURE__ */ l.jsx(ae, { children: p.length ? p.map((r, x) => {
|
|
1245
|
-
const m = r.id ?? v?.(r), C = m ? f?.has(m) : !1;
|
|
1246
|
-
return /* @__PURE__ */ l.jsxs(
|
|
1247
|
-
U,
|
|
1248
|
-
{
|
|
1249
|
-
hover: s,
|
|
1250
|
-
selected: C,
|
|
1251
|
-
...n && {
|
|
1252
|
-
onClick: (u) => {
|
|
1253
|
-
n(u, r);
|
|
1254
|
-
}
|
|
1255
|
-
},
|
|
1256
|
-
sx: { ...n && { cursor: "pointer" } },
|
|
1257
|
-
children: [
|
|
1258
|
-
y ? /* @__PURE__ */ l.jsx(M, { padding: "checkbox", children: /* @__PURE__ */ l.jsx(
|
|
1259
|
-
W,
|
|
1260
|
-
{
|
|
1261
|
-
checked: m ? C : !1,
|
|
1262
|
-
onChange: (u) => {
|
|
1263
|
-
C ? a?.(u, r) : c?.(u, r);
|
|
1264
|
-
},
|
|
1265
|
-
onClick: (u) => {
|
|
1266
|
-
n && u.stopPropagation();
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
) }) : null,
|
|
1270
|
-
o.map(
|
|
1271
|
-
(u) => /* @__PURE__ */ l.jsx(M, {
|
|
1272
|
-
sx: { ...u.align && { textAlign: u.align } },
|
|
1273
|
-
// Use custom formatter if provided, otherwise extract field value
|
|
1274
|
-
children: u.formatter ? u.formatter(r, x) : u.field ? r[u.field] : null
|
|
1275
|
-
}, u.name)
|
|
1276
|
-
)
|
|
1277
|
-
]
|
|
1278
|
-
},
|
|
1279
|
-
m ?? x
|
|
1280
|
-
);
|
|
1281
|
-
}) : (
|
|
1282
|
-
// Empty state when no data is available
|
|
1283
|
-
/* @__PURE__ */ l.jsx(U, { children: /* @__PURE__ */ l.jsx(M, { align: "center", colSpan: o.length, children: /* @__PURE__ */ l.jsx(xe, {}) }) })
|
|
1284
|
-
) })
|
|
1285
|
-
] });
|
|
1286
|
-
};
|
|
1287
|
-
to.displayName = "SDataTable";
|
|
1288
|
-
export {
|
|
1289
|
-
to as SDataTable,
|
|
1290
|
-
to as default
|
|
1291
|
-
};
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { t as e } from "../s-data-table-B9B189jk.js";
|
|
4
|
+
export { e as SDataTable, e as default };
|