@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/s-dialog/index.js
CHANGED
|
@@ -23,8 +23,5 @@ export interface SDialogProps {
|
|
|
23
23
|
/** Whether to show the close button in the title bar */
|
|
24
24
|
showClose?: boolean;
|
|
25
25
|
}
|
|
26
|
-
/**
|
|
27
|
-
* A flexible dialog component that wraps Material-UI Dialog with enhanced form support and customization.
|
|
28
|
-
*/
|
|
29
26
|
export declare const SDialog: React.ForwardRefExoticComponent<SDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
27
|
export default SDialog;
|
|
@@ -1,36 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import { t as e } from "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { t } from "../Close-DD2G0QfM.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { Dialog as r, DialogActions as i, DialogContent as a, DialogTitle as o, IconButton as s, Stack as c, Typography as l } from "@mui/material";
|
|
6
|
+
//#region lib/s-dialog/s-dialog.tsx
|
|
7
|
+
var u = e(), d = n.forwardRef(({ title: e, content: n, actions: d, onClose: f = () => {}, open: p = !1, maxWidth: m = "sm", useForm: h = !1, onSubmit: g = () => {}, showClose: _ = !0 }, v) => {
|
|
8
|
+
let y = /* @__PURE__ */ (0, u.jsxs)(u.Fragment, { children: [n && /* @__PURE__ */ (0, u.jsx)(a, {
|
|
9
|
+
ref: v,
|
|
10
|
+
children: typeof n == "string" ? /* @__PURE__ */ (0, u.jsx)(l, {
|
|
11
|
+
color: "text.secondary",
|
|
12
|
+
variant: "body2",
|
|
13
|
+
children: n
|
|
14
|
+
}) : n
|
|
15
|
+
}), d && /* @__PURE__ */ (0, u.jsx)(i, { children: d })] });
|
|
16
|
+
return /* @__PURE__ */ (0, u.jsxs)(r, {
|
|
17
|
+
fullWidth: !0,
|
|
18
|
+
maxWidth: m,
|
|
19
|
+
onClose: f,
|
|
20
|
+
open: p,
|
|
21
|
+
children: [e && /* @__PURE__ */ (0, u.jsx)(o, { children: /* @__PURE__ */ (0, u.jsxs)(c, {
|
|
22
|
+
direction: "row",
|
|
23
|
+
spacing: 3,
|
|
24
|
+
sx: {
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "space-between"
|
|
27
|
+
},
|
|
28
|
+
children: [typeof e == "string" ? /* @__PURE__ */ (0, u.jsx)(l, {
|
|
29
|
+
variant: "h5",
|
|
30
|
+
textTransform: "capitalize",
|
|
31
|
+
children: e
|
|
32
|
+
}) : /* @__PURE__ */ (0, u.jsx)("div", { children: e }), _ && /* @__PURE__ */ (0, u.jsx)(s, {
|
|
33
|
+
onClick: f,
|
|
34
|
+
children: /* @__PURE__ */ (0, u.jsx)(t, {})
|
|
35
|
+
})]
|
|
36
|
+
}) }), h ? /* @__PURE__ */ (0, u.jsx)("form", {
|
|
37
|
+
onSubmit: g,
|
|
38
|
+
children: y
|
|
39
|
+
}) : y]
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
d.displayName = "SDialog";
|
|
43
|
+
//#endregion
|
|
44
|
+
export { d as SDialog, d as default };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
f as useDialogConfirm
|
|
6
|
-
};
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { DialogConfirmProvider as e, SDialogConfirm as t, useDialogConfirm as n } from "./s-dialog-confirm.js";
|
|
4
|
+
export { e as DialogConfirmProvider, t as default, n as useDialogConfirm };
|
|
@@ -21,9 +21,6 @@ export interface SDialogConfirmProps {
|
|
|
21
21
|
/** Whether the dialog is in loading state (disables buttons) */
|
|
22
22
|
loading?: boolean;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* A confirmation dialog component with Cancel/Confirm actions and loading state support.
|
|
26
|
-
*/
|
|
27
24
|
export declare const SDialogConfirm: {
|
|
28
25
|
({ title, content, onConfirm, onClose, open, maxWidth, showClose, loading, }: SDialogConfirmProps): React.JSX.Element;
|
|
29
26
|
displayName: string;
|
|
@@ -55,14 +52,6 @@ export interface DialogConfirmContextProps {
|
|
|
55
52
|
/** Function to set loading state */
|
|
56
53
|
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
57
54
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Provider component that manages a global confirmation dialog.
|
|
60
|
-
* This enables any component in the app to trigger confirmation dialogs
|
|
61
|
-
* without managing dialog state locally.
|
|
62
|
-
*
|
|
63
|
-
* @param children - Child components that can use the dialog context
|
|
64
|
-
* @returns JSX.Element - Provider with dialog management and rendered dialog
|
|
65
|
-
*/
|
|
66
55
|
export declare const DialogConfirmProvider: ({ children }: {
|
|
67
56
|
children: React.ReactNode;
|
|
68
57
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,76 +1,87 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import { t as e } from "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { t } from "../Typography-B_GHPkH2.js";
|
|
4
|
+
import { t as n } from "../Close-DD2G0QfM.js";
|
|
5
|
+
import { useDialog as r } from "../hooks/use-dialog.js";
|
|
6
|
+
import * as i from "react";
|
|
7
|
+
import { Button as a, Dialog as o, DialogActions as s, DialogContent as c, DialogTitle as l, IconButton as u, Stack as d } from "@mui/material";
|
|
8
|
+
//#region lib/s-dialog-confirm/s-dialog-confirm.tsx
|
|
9
|
+
var f = e(), p = ({ title: e, content: r, onConfirm: i = () => {}, onClose: p = () => {}, open: m = !1, maxWidth: h = "sm", showClose: g = !0, loading: _ = !1 }) => /* @__PURE__ */ (0, f.jsxs)(o, {
|
|
10
|
+
fullWidth: !0,
|
|
11
|
+
maxWidth: h,
|
|
12
|
+
onClose: p,
|
|
13
|
+
open: m,
|
|
14
|
+
children: [
|
|
15
|
+
e && /* @__PURE__ */ (0, f.jsx)(l, { children: /* @__PURE__ */ (0, f.jsxs)(d, {
|
|
16
|
+
direction: "row",
|
|
17
|
+
spacing: 3,
|
|
18
|
+
sx: {
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "space-between"
|
|
21
|
+
},
|
|
22
|
+
children: [typeof e == "string" ? /* @__PURE__ */ (0, f.jsx)(t, {
|
|
23
|
+
variant: "h5",
|
|
24
|
+
textTransform: "capitalize",
|
|
25
|
+
children: e
|
|
26
|
+
}) : /* @__PURE__ */ (0, f.jsx)("div", { children: e }), g && /* @__PURE__ */ (0, f.jsx)(u, {
|
|
27
|
+
onClick: p,
|
|
28
|
+
children: /* @__PURE__ */ (0, f.jsx)(n, {})
|
|
29
|
+
})]
|
|
30
|
+
}) }),
|
|
31
|
+
r && /* @__PURE__ */ (0, f.jsx)(c, { children: typeof r == "string" ? /* @__PURE__ */ (0, f.jsx)(t, {
|
|
32
|
+
color: "text.secondary",
|
|
33
|
+
variant: "body2",
|
|
34
|
+
children: r
|
|
35
|
+
}) : r }),
|
|
36
|
+
/* @__PURE__ */ (0, f.jsx)(s, { children: /* @__PURE__ */ (0, f.jsxs)(f.Fragment, { children: [/* @__PURE__ */ (0, f.jsx)(a, {
|
|
37
|
+
onClick: p,
|
|
38
|
+
variant: "outlined",
|
|
39
|
+
disabled: _,
|
|
40
|
+
children: "Cancel"
|
|
41
|
+
}), /* @__PURE__ */ (0, f.jsx)(a, {
|
|
42
|
+
onClick: i,
|
|
43
|
+
loading: _,
|
|
44
|
+
children: "Confirm"
|
|
45
|
+
})] }) })
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
p.displayName = "SDialogConfirm";
|
|
49
|
+
var m = i.createContext(null), h = ({ children: e }) => {
|
|
50
|
+
let t = r(), [n, a] = i.useState(!1), [o, s] = i.useState({
|
|
51
|
+
title: "",
|
|
52
|
+
content: "",
|
|
53
|
+
onConfirm: () => {}
|
|
54
|
+
}), c = {
|
|
55
|
+
handleOpen: i.useCallback((e) => {
|
|
56
|
+
let { title: n, content: r, onConfirm: i } = e;
|
|
57
|
+
s({
|
|
58
|
+
title: n,
|
|
59
|
+
content: r,
|
|
60
|
+
onConfirm: i
|
|
61
|
+
}), t.handleOpen();
|
|
62
|
+
}, [t]),
|
|
63
|
+
handleClose: t.handleClose,
|
|
64
|
+
open: t.open,
|
|
65
|
+
loading: n,
|
|
66
|
+
setLoading: a
|
|
67
|
+
};
|
|
68
|
+
return /* @__PURE__ */ (0, f.jsxs)(m.Provider, {
|
|
69
|
+
value: c,
|
|
70
|
+
children: [/* @__PURE__ */ (0, f.jsx)(p, {
|
|
71
|
+
open: t.open,
|
|
72
|
+
title: o.title,
|
|
73
|
+
content: o.content,
|
|
74
|
+
onClose: t.handleClose,
|
|
75
|
+
onConfirm: () => {
|
|
76
|
+
o.onConfirm();
|
|
77
|
+
},
|
|
78
|
+
loading: n
|
|
79
|
+
}), e]
|
|
80
|
+
});
|
|
81
|
+
}, g = () => {
|
|
82
|
+
let e = i.useContext(m);
|
|
83
|
+
if (!e) throw Error("useDialogConfirm must be used within a DialogConfirmProvider");
|
|
84
|
+
return e;
|
|
76
85
|
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { h as DialogConfirmProvider, p as SDialogConfirm, p as default, g as useDialogConfirm };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
o as useDialogMessage
|
|
6
|
-
};
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { DialogMessageProvider as e, SDialogMessage as t, useDialogMessage as n } from "./s-dialog-message.js";
|
|
4
|
+
export { e as DialogMessageProvider, t as default, n as useDialogMessage };
|
|
@@ -19,7 +19,6 @@ export interface SDialogMessageProps {
|
|
|
19
19
|
/** Whether to show the close button in the title bar */
|
|
20
20
|
showClose?: boolean;
|
|
21
21
|
}
|
|
22
|
-
/** A simple message dialog component for displaying informational messages that require user acknowledgment. */
|
|
23
22
|
export declare const SDialogMessage: {
|
|
24
23
|
({ title, content, onClose, onOk, open, maxWidth, showClose, }: SDialogMessageProps): React.JSX.Element;
|
|
25
24
|
displayName: string;
|
|
@@ -47,14 +46,6 @@ export interface DialogMessageContextProps {
|
|
|
47
46
|
/** Current open state of the dialog */
|
|
48
47
|
open: boolean;
|
|
49
48
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Provider component that manages a global message dialog.
|
|
52
|
-
* This enables any component in the app to display informational messages
|
|
53
|
-
* without managing dialog state locally.
|
|
54
|
-
*
|
|
55
|
-
* @param children - Child components that can use the dialog context
|
|
56
|
-
* @returns JSX.Element - Provider with dialog management and rendered dialog
|
|
57
|
-
*/
|
|
58
49
|
export declare const DialogMessageProvider: ({ children }: {
|
|
59
50
|
children: React.ReactNode;
|
|
60
51
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,67 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
import "../createTheme-CMuiGmV-.js";
|
|
2
|
+
import { t as e } from "../jsx-runtime-V-UOMaX1.js";
|
|
3
|
+
import { t } from "../Typography-B_GHPkH2.js";
|
|
4
|
+
import { t as n } from "../Close-DD2G0QfM.js";
|
|
5
|
+
import { useDialog as r } from "../hooks/use-dialog.js";
|
|
6
|
+
import * as i from "react";
|
|
7
|
+
import { Button as a, Dialog as o, DialogActions as s, DialogContent as c, DialogTitle as l, IconButton as u, Stack as d } from "@mui/material";
|
|
8
|
+
//#region lib/s-dialog-message/s-dialog-message.tsx
|
|
9
|
+
var f = e(), p = ({ title: e, content: r, onClose: i = () => {}, onOk: p = () => {}, open: m = !1, maxWidth: h = "sm", showClose: g = !0 }) => /* @__PURE__ */ (0, f.jsxs)(o, {
|
|
10
|
+
fullWidth: !0,
|
|
11
|
+
maxWidth: h,
|
|
12
|
+
onClose: i,
|
|
13
|
+
open: m,
|
|
14
|
+
children: [
|
|
15
|
+
e && /* @__PURE__ */ (0, f.jsx)(l, { children: /* @__PURE__ */ (0, f.jsxs)(d, {
|
|
16
|
+
direction: "row",
|
|
17
|
+
spacing: 3,
|
|
18
|
+
sx: {
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "space-between"
|
|
21
|
+
},
|
|
22
|
+
children: [typeof e == "string" ? /* @__PURE__ */ (0, f.jsx)(t, {
|
|
23
|
+
variant: "h5",
|
|
24
|
+
textTransform: "capitalize",
|
|
25
|
+
children: e
|
|
26
|
+
}) : /* @__PURE__ */ (0, f.jsx)("div", { children: e }), g && /* @__PURE__ */ (0, f.jsx)(u, {
|
|
27
|
+
onClick: i,
|
|
28
|
+
children: /* @__PURE__ */ (0, f.jsx)(n, {})
|
|
29
|
+
})]
|
|
30
|
+
}) }),
|
|
31
|
+
r && /* @__PURE__ */ (0, f.jsx)(c, { children: typeof r == "string" ? /* @__PURE__ */ (0, f.jsx)(t, {
|
|
32
|
+
color: "text.secondary",
|
|
33
|
+
variant: "body2",
|
|
34
|
+
children: r
|
|
35
|
+
}) : r }),
|
|
36
|
+
/* @__PURE__ */ (0, f.jsx)(s, { children: /* @__PURE__ */ (0, f.jsx)(a, {
|
|
37
|
+
onClick: p,
|
|
38
|
+
children: "Ok"
|
|
39
|
+
}) })
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
p.displayName = "SDialogMessage";
|
|
43
|
+
var m = i.createContext(null), h = ({ children: e }) => {
|
|
44
|
+
let t = r(), [n, a] = i.useState({
|
|
45
|
+
title: "",
|
|
46
|
+
content: "",
|
|
47
|
+
onOk: t.handleClose
|
|
48
|
+
}), o = {
|
|
49
|
+
handleOpen: i.useCallback((e) => {
|
|
50
|
+
let { title: n, content: r, onOk: i = t.handleClose } = e;
|
|
51
|
+
a({
|
|
52
|
+
title: n,
|
|
53
|
+
content: r,
|
|
54
|
+
onOk: i
|
|
55
|
+
}), t.handleOpen();
|
|
56
|
+
}, [t]),
|
|
57
|
+
handleClose: t.handleClose,
|
|
58
|
+
open: t.open
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ (0, f.jsxs)(m.Provider, {
|
|
61
|
+
value: o,
|
|
62
|
+
children: [/* @__PURE__ */ (0, f.jsx)(p, {
|
|
63
|
+
open: t.open,
|
|
64
|
+
title: n.title,
|
|
65
|
+
content: n.content,
|
|
66
|
+
onClose: t.handleClose,
|
|
67
|
+
onOk: n.onOk
|
|
68
|
+
}), e]
|
|
69
|
+
});
|
|
70
|
+
}, g = () => {
|
|
71
|
+
let e = i.useContext(m);
|
|
72
|
+
if (!e) throw Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
73
|
+
return e;
|
|
67
74
|
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { h as DialogMessageProvider, p as SDialogMessage, p as default, g as useDialogMessage };
|
package/dist/s-empty/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export interface SEmptyProps {
|
|
|
6
6
|
/** Custom text to display (defaults to 'No data available.') */
|
|
7
7
|
title?: string;
|
|
8
8
|
}
|
|
9
|
-
/** A simple component for displaying empty states in lists, tables, or data containers. */
|
|
10
9
|
export declare const SEmpty: {
|
|
11
10
|
({ title }: SEmptyProps): React.JSX.Element;
|
|
12
11
|
displayName: string;
|
package/dist/s-empty/s-empty.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { t as e } from "../jsx-runtime-V-UOMaX1.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Typography as t } from "@mui/material";
|
|
4
|
+
//#region lib/s-empty/s-empty.tsx
|
|
5
|
+
var n = e(), r = ({ title: e }) => /* @__PURE__ */ (0, n.jsx)(t, {
|
|
6
|
+
variant: "body2",
|
|
7
|
+
color: "text.secondary",
|
|
8
|
+
my: 3,
|
|
9
|
+
children: e ?? "No data available."
|
|
10
|
+
});
|
|
4
11
|
r.displayName = "SEmpty";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
r as default
|
|
8
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as SEmpty, r as default };
|
package/dist/s-error/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import "../jsx-runtime-V-UOMaX1.js";
|
|
2
|
+
import { SError as e } from "./s-error.js";
|
|
3
|
+
export { e as default };
|
package/dist/s-error/s-error.js
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { t as e } from "../jsx-runtime-V-UOMaX1.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Box as t, Stack as n, Typography as r } from "@mui/material";
|
|
4
|
+
//#region lib/s-error/s-error.tsx
|
|
5
|
+
var i = e(), a = () => /* @__PURE__ */ (0, i.jsxs)(n, {
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
gap: 2,
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ (0, i.jsx)(t, {
|
|
10
|
+
alt: "Internal server error",
|
|
11
|
+
component: "img",
|
|
12
|
+
src: "../assets/error.svg",
|
|
13
|
+
sx: {
|
|
14
|
+
height: "auto",
|
|
15
|
+
maxWidth: "100%",
|
|
16
|
+
width: "100px"
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ (0, i.jsx)(r, {
|
|
20
|
+
variant: "h5",
|
|
21
|
+
children: "500: Internal server error"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ (0, i.jsx)(r, {
|
|
24
|
+
variant: "body2",
|
|
25
|
+
children: "We're sorry, but we encountered an error while trying to load the content. Please try again later."
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
a.displayName = "SError";
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as SError, a as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import "../jsx-runtime-V-UOMaX1.js";
|
|
2
|
+
import { SErrorLayout as e } from "./s-error-layout.js";
|
|
3
|
+
export { e as default };
|
|
@@ -51,7 +51,6 @@ export interface SErrorLayoutProps {
|
|
|
51
51
|
/** Custom content to render instead of the button */
|
|
52
52
|
customActions?: ReactNode;
|
|
53
53
|
}
|
|
54
|
-
/** A full-screen error layout component for displaying error pages with customizable content and styling. */
|
|
55
54
|
export declare const SErrorLayout: {
|
|
56
55
|
({ imageSrc, imageAlt, title, description, buttonText, imageWidth, imageHeight, maxWidth, height, py, spacing, titleVariant, descriptionVariant, buttonVariant, buttonColor, containerSx, imageContainerSx, contentSx, titleSx, descriptionSx, buttonContainerSx, buttonProps, hideImage, customActions, }: SErrorLayoutProps): React.JSX.Element;
|
|
57
56
|
displayName: string;
|