@solostylist/ui-kit 1.0.203 → 1.0.205
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-CDLbIMHR.js +6 -0
- package/dist/Box-CCxGQYgC.js +46 -0
- package/dist/ButtonBase-BpUvp8ep.js +801 -0
- package/dist/ChevronLeft-C7DUyLoc.js +6 -0
- package/dist/ChevronRight-VFk57Tte.js +6 -0
- package/dist/Close-OtVsJy75.js +6 -0
- package/dist/ContentCopy-DHDP4d6g.js +6 -0
- package/dist/DefaultPropsProvider-DpRXvTbj.js +157 -0
- package/dist/Download-Bbx6BZUJ.js +6 -0
- package/dist/ExpandMore-BTC1yHzp.js +6 -0
- package/dist/Favorite-mcH9KX-m.js +6 -0
- package/dist/Menu-Dhh4e9H1.js +1662 -0
- package/dist/MenuItem-aaIy8lan.js +213 -0
- package/dist/Paper--8Q3qCqb.js +329 -0
- package/dist/Select-B5RvkbDO.js +2545 -0
- package/dist/Stack-D-aoKnaS.js +158 -0
- package/dist/Typography-CswuXQLF.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-BVV8tT0K.js +10 -0
- package/dist/buttonBaseClasses-CzfJbQi5.js +13 -0
- package/dist/checkbox-Dd2nIREk.js +57 -0
- package/dist/chunk-efA98nb6.js +13 -0
- package/dist/createSimplePaletteValueFilter-dAWZ3p3z.js +14 -0
- package/dist/createSvgIcon-KjKEsKNV.js +153 -0
- package/dist/createTheme-DuS5_nJb.js +2430 -0
- package/dist/defaultTheme-DBynruYK.js +5 -0
- package/dist/entries/carousel.js +3 -4
- package/dist/entries/chat.js +3 -4
- package/dist/entries/code.js +3 -4
- package/dist/entries/core.js +56 -122
- package/dist/entries/dates.js +7 -12
- package/dist/entries/dropzone.js +3 -4
- package/dist/entries/editor.js +2 -4
- package/dist/entries/gallery.js +7 -13
- package/dist/entries/i18n.js +3 -7
- package/dist/entries/motion.js +14 -27
- package/dist/entries/scrollbar.js +2 -4
- package/dist/entries/stripe.js +6 -10
- package/dist/extendSxProp-YPyfzlEb.js +29 -0
- package/dist/generateUtilityClass-DdqZpZoW.js +34 -0
- package/dist/generateUtilityClasses-BMwEKe3O.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-ApDUTw5e.js +27 -0
- package/dist/identifier-_S1f0Pg2.js +190 -0
- package/dist/main.js +103 -196
- package/dist/mergeSlotProps-BG-pTgpj.js +48 -0
- package/dist/objectWithoutPropertiesLoose-BdL2_POW.js +23 -0
- package/dist/outlinedInputClasses-bgmdcolQ.js +43 -0
- package/dist/resolveProps-CcZ6Bxlf.js +30 -0
- package/dist/s-accordion/index.js +3 -4
- package/dist/s-accordion/s-accordion.js +3 -949
- package/dist/s-accordion-Da1IZflX.js +712 -0
- package/dist/s-action-overlay/index.js +2 -4
- package/dist/s-action-overlay/s-action-overlay.js +108 -109
- package/dist/s-autocomplete/index.js +2 -4
- package/dist/s-autocomplete/s-autocomplete.js +25 -31
- package/dist/s-avatar/index.js +2 -4
- package/dist/s-avatar/s-avatar.js +32 -22
- package/dist/s-blur-text/index.js +2 -4
- package/dist/s-blur-text/s-blur-text.js +67 -81
- package/dist/s-breadcrumbs/index.js +2 -3
- package/dist/s-breadcrumbs/s-breadcrumbs.js +49 -44
- package/dist/s-button/index.js +2 -4
- package/dist/s-button/s-button.js +11 -9
- package/dist/s-carousel/index.js +3 -4
- package/dist/s-carousel/s-carousel.js +3 -2480
- package/dist/s-carousel-BoDg9pKU.js +125 -0
- package/dist/s-category-card/index.js +1 -3
- package/dist/s-category-card/s-category-card.js +70 -105
- package/dist/s-chat-input/index.js +3 -4
- package/dist/s-chat-input/s-chat-input.js +3 -319
- package/dist/s-chat-input-v_XIZVGk.js +283 -0
- package/dist/s-chat-message/index.js +3 -4
- package/dist/s-chat-message/s-chat-message.js +3 -283
- package/dist/s-chat-message-CWtxsicj.js +281 -0
- package/dist/s-checkbox/index.js +2 -4
- package/dist/s-checkbox/s-checkbox.js +27 -17
- package/dist/s-chip/index.js +2 -4
- package/dist/s-chip/s-chip.js +11 -9
- package/dist/s-chips/index.js +2 -4
- package/dist/s-chips/s-chips.js +91 -86
- package/dist/s-code-block/index.js +3 -4
- package/dist/s-code-block/s-code-block.js +3 -1052
- package/dist/s-code-block-BqYdR0Em.js +608 -0
- package/dist/s-comment-message/index.js +3 -4
- package/dist/s-comment-message/s-comment-message.js +3 -123
- package/dist/s-comment-message-DDAHdQqY.js +195 -0
- package/dist/s-copyable-text/index.js +3 -4
- package/dist/s-copyable-text/s-copyable-text.js +50 -54
- package/dist/s-countdown/index.js +3 -5
- package/dist/s-countdown/s-count-box.js +102 -106
- package/dist/s-countdown/s-count-down.js +101 -109
- package/dist/s-data-table/index.js +3 -4
- package/dist/s-data-table/s-data-table.js +3 -1291
- package/dist/s-data-table-BjqqIsFX.js +893 -0
- package/dist/s-date-picker/index.js +3 -4
- package/dist/s-date-picker/s-date-picker.js +3 -1521
- package/dist/s-date-picker-BYqxsjPU.js +581 -0
- package/dist/s-datetime-picker/index.js +3 -4
- package/dist/s-datetime-picker/s-datetime-picker.js +3 -5180
- package/dist/s-datetime-picker-BtwGoxL3.js +3808 -0
- package/dist/s-dialog/index.js +2 -3
- package/dist/s-dialog/s-dialog.js +44 -36
- package/dist/s-dialog-confirm/index.js +3 -6
- package/dist/s-dialog-confirm/s-dialog-confirm.js +85 -74
- package/dist/s-dialog-message/index.js +3 -6
- package/dist/s-dialog-message/s-dialog-message.js +75 -66
- package/dist/s-empty/index.js +1 -3
- package/dist/s-empty/s-empty.js +13 -8
- package/dist/s-error/index.js +2 -4
- package/dist/s-error/s-error.js +31 -20
- package/dist/s-error-layout/index.js +2 -4
- package/dist/s-error-layout/s-error-layout.js +78 -56
- package/dist/s-file-dropzone/index.js +3 -4
- package/dist/s-file-dropzone/s-file-dropzone.js +3 -124
- package/dist/s-file-dropzone-BJBNFC_b.js +134 -0
- package/dist/s-file-icon/index.js +3 -4
- package/dist/s-file-icon/s-file-icon.js +327 -272
- package/dist/s-flex-box/index.js +3 -4
- package/dist/s-flex-box/s-flex-box.js +12 -8
- package/dist/s-form/index.js +2 -4
- package/dist/s-form/s-form.js +23 -15
- package/dist/s-gallery/index.js +3 -5
- package/dist/s-gallery/s-gallery.js +310 -346
- package/dist/s-glow-button/index.js +3 -4
- package/dist/s-glow-button/s-glow-button.js +29 -42
- package/dist/s-gradient-icon/index.js +2 -4
- package/dist/s-gradient-icon/s-gradient-icon.js +124 -79
- package/dist/s-i18n-provider/index.js +2 -4
- package/dist/s-i18n-provider/s-i18n-provider.js +23 -27
- package/dist/s-icon-button/index.js +2 -4
- package/dist/s-icon-button/s-icon-button.js +11 -8
- package/dist/s-image-comparison/index.js +3 -4
- package/dist/s-image-comparison/s-image-comparison.js +169 -207
- package/dist/s-image-modal/index.js +3 -5
- package/dist/s-image-modal/s-image-modal.js +396 -387
- package/dist/s-item-not-found/index.js +1 -3
- package/dist/s-item-not-found/s-item-not-found.js +240 -262
- package/dist/s-label/index.js +3 -4
- package/dist/s-label/s-label.js +3 -17
- package/dist/s-label-Bt4vQGGN.js +30 -0
- package/dist/s-language-switcher/index.js +3 -6
- package/dist/s-language-switcher/s-language-switcher.js +3 -252
- package/dist/s-language-switcher-BJP1r1la.js +198 -0
- package/dist/s-lazy-image/index.js +2 -4
- package/dist/s-lazy-image/s-lazy-image.js +41 -56
- package/dist/s-link/index.js +2 -4
- package/dist/s-link/s-link.js +30 -37
- package/dist/s-localization-provider/index.js +3 -4
- package/dist/s-localization-provider/s-localization-provider.js +3 -562
- package/dist/s-localization-provider-CeOR72Ti.js +537 -0
- package/dist/s-moving-border/index.js +1 -3
- package/dist/s-moving-border/s-moving-border.js +117 -131
- package/dist/s-multi-select/index.js +3 -4
- package/dist/s-multi-select/s-multi-select.js +3 -82
- package/dist/s-multi-select-xKP4heeG.js +64 -0
- package/dist/s-no-ssr/index.js +2 -4
- package/dist/s-no-ssr/s-no-ssr.js +13 -14
- package/dist/s-overlay-scrollbar/index.js +2 -4
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +34 -37
- package/dist/s-pagination/index.js +2 -4
- package/dist/s-pagination/s-pagination.js +32 -15
- package/dist/s-pixel-reveal/index.js +3 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.js +138 -156
- package/dist/s-radial-pulse-animate/index.js +3 -4
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +80 -122
- package/dist/s-rating/index.js +1 -3
- package/dist/s-rating/s-rating.js +11 -9
- package/dist/s-review/index.js +3 -4
- package/dist/s-review/s-review.js +3 -160
- package/dist/s-review-DOBlCEU2.js +241 -0
- package/dist/s-scroll-reveal/index.js +2 -4
- package/dist/s-scroll-reveal/s-scroll-reveal.js +68 -64
- package/dist/s-scroll-to-top/index.js +3 -4
- package/dist/s-scroll-to-top/s-scroll-to-top.js +45 -44
- package/dist/s-scroll-velocity/index.js +4 -8
- package/dist/s-scroll-velocity/s-scroll-velocity.js +14 -8
- package/dist/s-scroll-velocity/scroll-velocity-container.js +25 -30
- package/dist/s-scroll-velocity/scroll-velocity-row.js +97 -118
- package/dist/s-select/index.js +3 -4
- package/dist/s-select/s-select.js +3 -112
- package/dist/s-select-DXbeZ0CG.js +110 -0
- package/dist/s-select-list/index.js +2 -4
- package/dist/s-select-list/s-select-list.js +44 -49
- package/dist/s-skeleton/index.js +2 -4
- package/dist/s-skeleton/s-skeleton.js +69 -35
- package/dist/s-snackbar-message/index.js +2 -6
- package/dist/s-snackbar-message/s-snackbar-message.js +48 -61
- package/dist/s-spotlight-cursor/index.js +2 -4
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +58 -61
- package/dist/s-stripe/index.js +6 -10
- package/dist/s-stripe/s-stripe-cvc.js +14 -10
- package/dist/s-stripe/s-stripe-expiry.js +14 -10
- package/dist/s-stripe/s-stripe-number.js +14 -10
- package/dist/s-stripe/s-stripe.js +31 -37
- package/dist/s-stripe/stripe-input.js +57 -81
- package/dist/s-switch/index.js +1 -3
- package/dist/s-switch/s-switch.js +27 -17
- package/dist/s-tabs/index.js +4 -8
- package/dist/s-tabs/s-tab-panel.js +23 -29
- package/dist/s-tabs/s-tab.js +11 -8
- package/dist/s-tabs/s-tabs.js +39 -35
- package/dist/s-text-editor/index.js +3 -5
- package/dist/s-text-editor/s-text-editor-toolbar.js +3 -207
- package/dist/s-text-editor/s-text-editor.js +75 -81
- package/dist/s-text-editor-toolbar-BDDttdIt.js +177 -0
- package/dist/s-text-field/index.js +3 -4
- package/dist/s-text-field/s-text-field.js +3 -49
- package/dist/s-text-field-ni42E-1x.js +41 -0
- package/dist/s-text-shimmer/index.js +3 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +31 -32
- package/dist/s-text-truncation/index.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +79 -81
- package/dist/s-theme-demo/index.js +3 -4
- package/dist/s-theme-demo/s-theme-demo.js +3 -380
- package/dist/s-theme-demo-B4pz6fse.js +828 -0
- package/dist/s-theme-provider/index.js +3 -4
- package/dist/s-theme-provider/s-theme-provider.js +35 -50
- package/dist/s-theme-switch/index.js +3 -4
- package/dist/s-theme-switch/s-theme-switch.js +3 -41
- package/dist/s-theme-switch-CCEdponC.js +37 -0
- package/dist/s-tip/index.js +3 -4
- package/dist/s-tip/s-tip.js +3 -34
- package/dist/s-tip-CG51Q6oR.js +34 -0
- package/dist/s-tool-bar/index.js +3 -4
- package/dist/s-tool-bar/s-tool-bar.js +3 -478
- package/dist/s-tool-bar-C2lZhhJm.js +404 -0
- package/dist/s-two-pane-layout/index.js +2 -3
- package/dist/s-two-pane-layout/s-two-pane-layout.js +102 -101
- package/dist/s-typewriter-text/index.js +2 -4
- package/dist/s-typewriter-text/s-typewriter-text.js +39 -45
- package/dist/s-zoom-image/index.js +1 -3
- package/dist/s-zoom-image/s-zoom-image.js +62 -88
- package/dist/select-D9KH9LAz.js +11 -0
- package/dist/styled-Dz7rwAje.js +168 -0
- package/dist/svgIconClasses-CygVMw0E.js +20 -0
- package/dist/tabClasses-CIRFQ-PB.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 +3 -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 +3 -65
- package/dist/theme/components/chip.js +67 -106
- package/dist/theme/components/components.js +112 -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 +3 -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-BG66N-x4.js +398 -0
- package/dist/toggle-button-BI6z89CX.js +26 -0
- package/dist/toggle-button-group-Dzzh9mXv.js +28 -0
- package/dist/typographyClasses-C0nDz5e6.js +32 -0
- package/dist/useControlled-CvWtMQJF.js +32 -0
- package/dist/useEnhancedEffect-NLLl34XR.js +5 -0
- package/dist/useFormControl-ngLNi8dL.js +11 -0
- package/dist/useMobilePicker-DdH0AzNe.js +10635 -0
- package/dist/useTheme-BES_k_99.js +34 -0
- package/dist/useThemeProps-CJRFdjVv.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-Cu16ybRR.js +72 -0
- package/dist/warning-D7iWhOZI.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,160 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { SAvatar as Q } from "../s-avatar/s-avatar.js";
|
|
5
|
-
import { SImageModal as X } from "../s-image-modal/s-image-modal.js";
|
|
6
|
-
import Z from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
-
import { SRating as _ } from "../s-rating/s-rating.js";
|
|
8
|
-
import { SSkeleton as n } from "../s-skeleton/s-skeleton.js";
|
|
9
|
-
import { c as T } from "../createSvgIcon-BkbeLOhM.js";
|
|
10
|
-
import { g as ee } from "../utils-D1UMIV0b.js";
|
|
11
|
-
const te = T(/* @__PURE__ */ e.jsx("path", {
|
|
12
|
-
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"
|
|
13
|
-
}), "ThumbDown"), se = T(/* @__PURE__ */ e.jsx("path", {
|
|
14
|
-
d: "M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"
|
|
15
|
-
}), "ThumbUp"), ie = ({
|
|
16
|
-
id: k,
|
|
17
|
-
userName: m,
|
|
18
|
-
userAvatar: R,
|
|
19
|
-
rating: L,
|
|
20
|
-
reviewContent: $,
|
|
21
|
-
datetime: z,
|
|
22
|
-
images: x,
|
|
23
|
-
userHelpfulVote: d = null,
|
|
24
|
-
helpfulYes: H = 0,
|
|
25
|
-
helpfulNo: V = 0,
|
|
26
|
-
onHelpfulVote: v,
|
|
27
|
-
showHelpfulSection: D = !0,
|
|
28
|
-
avatarSize: p = 48,
|
|
29
|
-
maxRating: E = 5,
|
|
30
|
-
readOnly: O = !0,
|
|
31
|
-
showDivider: w = !0,
|
|
32
|
-
loading: U = !1,
|
|
33
|
-
sx: y = {}
|
|
34
|
-
}) => {
|
|
35
|
-
const W = K(), I = k ?? W, [B, g] = h(H), [N, j] = h(V), [l, f] = h(d), [Y, b] = h(!1), [A, u] = h(null), C = (s) => {
|
|
36
|
-
let i = null;
|
|
37
|
-
l === s ? (s === "yes" ? g((t) => Math.max(0, t - 1)) : j((t) => Math.max(0, t - 1)), f(null)) : (l === "yes" ? g((t) => Math.max(0, t - 1)) : l === "no" && j((t) => Math.max(0, t - 1)), s === "yes" ? g((t) => t + 1) : j((t) => t + 1), f(s), i = s), v && v(I, i);
|
|
38
|
-
}, c = x?.map((s, i) => ({
|
|
39
|
-
id: `review-${I}-image-${i}`,
|
|
40
|
-
type: "image",
|
|
41
|
-
url: s,
|
|
42
|
-
title: `Review image ${i + 1}`,
|
|
43
|
-
desc: `Image ${i + 1} from ${m}'s review`
|
|
44
|
-
})) ?? [], F = (s) => {
|
|
45
|
-
const i = c[s];
|
|
46
|
-
i && (u(i), b(!0));
|
|
47
|
-
}, q = () => {
|
|
48
|
-
b(!1), u(null);
|
|
49
|
-
}, G = (s) => {
|
|
50
|
-
u(s);
|
|
51
|
-
}, J = ee(z);
|
|
52
|
-
return P(() => {
|
|
53
|
-
f(d);
|
|
54
|
-
}, [d]), U ? /* @__PURE__ */ e.jsxs(a, { sx: { py: 2, ...y }, children: [
|
|
55
|
-
/* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
56
|
-
/* @__PURE__ */ e.jsx(n, { component: "rounded-avatar", width: p, height: p }),
|
|
57
|
-
/* @__PURE__ */ e.jsxs(a, { sx: { flex: 1 }, children: [
|
|
58
|
-
/* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
59
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: 120, height: 20 }),
|
|
60
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: 80, height: 16 })
|
|
61
|
-
] }),
|
|
62
|
-
/* @__PURE__ */ e.jsx(a, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(n, { variant: "text", width: 100, height: 20 }) }),
|
|
63
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
|
|
64
|
-
/* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
|
|
65
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: 140, height: 16, sx: { mr: 2 } }),
|
|
66
|
-
/* @__PURE__ */ e.jsx(n, { component: "icon-button" }),
|
|
67
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: 20, height: 16 }),
|
|
68
|
-
/* @__PURE__ */ e.jsx(n, { component: "icon-button" }),
|
|
69
|
-
/* @__PURE__ */ e.jsx(n, { variant: "text", width: 20, height: 16 })
|
|
70
|
-
] })
|
|
71
|
-
] })
|
|
72
|
-
] }),
|
|
73
|
-
w && /* @__PURE__ */ e.jsx(M, { sx: { mt: 2 } })
|
|
74
|
-
] }) : /* @__PURE__ */ e.jsxs(a, { sx: { py: 2, ...y }, children: [
|
|
75
|
-
/* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
76
|
-
/* @__PURE__ */ e.jsx(Q, { avatar: R, name: m, size: p }),
|
|
77
|
-
/* @__PURE__ */ e.jsxs(a, { sx: { flex: 1 }, children: [
|
|
78
|
-
/* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
79
|
-
/* @__PURE__ */ e.jsx(r, { variant: "subtitle2", fontWeight: "600", children: m }),
|
|
80
|
-
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(r, { variant: "caption", children: J }) })
|
|
81
|
-
] }),
|
|
82
|
-
/* @__PURE__ */ e.jsx(a, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(_, { value: L, max: E, readOnly: O }) }),
|
|
83
|
-
/* @__PURE__ */ e.jsx(r, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: $ }),
|
|
84
|
-
x && x.length > 0 && /* @__PURE__ */ e.jsx(o, { direction: "row", spacing: 1, sx: { mb: 2, flexWrap: "wrap", gap: 1 }, children: x.map((s, i) => /* @__PURE__ */ e.jsx(
|
|
85
|
-
Z,
|
|
86
|
-
{
|
|
87
|
-
src: s,
|
|
88
|
-
alt: `Review image ${i + 1}`,
|
|
89
|
-
width: 80,
|
|
90
|
-
height: 80,
|
|
91
|
-
variant: "rounded",
|
|
92
|
-
style: {
|
|
93
|
-
objectFit: "cover",
|
|
94
|
-
cursor: "pointer"
|
|
95
|
-
},
|
|
96
|
-
onClick: () => F(i),
|
|
97
|
-
onMouseEnter: (t) => {
|
|
98
|
-
t.currentTarget.style.opacity = "0.8";
|
|
99
|
-
},
|
|
100
|
-
onMouseLeave: (t) => {
|
|
101
|
-
t.currentTarget.style.opacity = "1";
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
i
|
|
105
|
-
)) }),
|
|
106
|
-
D && /* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
|
|
107
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption", sx: { mr: 2 }, children: "Was this review helpful?" }),
|
|
108
|
-
/* @__PURE__ */ e.jsx(
|
|
109
|
-
S,
|
|
110
|
-
{
|
|
111
|
-
onClick: () => C("yes"),
|
|
112
|
-
sx: {
|
|
113
|
-
color: l === "yes" ? "primary.main" : "text.secondary",
|
|
114
|
-
"&:hover": {
|
|
115
|
-
backgroundColor: "action.hover"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
children: /* @__PURE__ */ e.jsx(se, { fontSize: "small" })
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: B }),
|
|
122
|
-
/* @__PURE__ */ e.jsx(
|
|
123
|
-
S,
|
|
124
|
-
{
|
|
125
|
-
onClick: () => C("no"),
|
|
126
|
-
sx: {
|
|
127
|
-
color: l === "no" ? "error.main" : "text.secondary",
|
|
128
|
-
ml: 1,
|
|
129
|
-
"&:hover": {
|
|
130
|
-
backgroundColor: "action.hover"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
children: /* @__PURE__ */ e.jsx(te, { fontSize: "small" })
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ e.jsx(r, { variant: "caption", children: N })
|
|
137
|
-
] })
|
|
138
|
-
] })
|
|
139
|
-
] }),
|
|
140
|
-
w && /* @__PURE__ */ e.jsx(M, { sx: { mt: 2 } }),
|
|
141
|
-
/* @__PURE__ */ e.jsx(
|
|
142
|
-
X,
|
|
143
|
-
{
|
|
144
|
-
isOpen: Y,
|
|
145
|
-
onClose: q,
|
|
146
|
-
selectedItem: A,
|
|
147
|
-
onItemChange: G,
|
|
148
|
-
mediaItems: c,
|
|
149
|
-
showNavigation: c.length > 1,
|
|
150
|
-
showThumbnailDock: c.length > 1,
|
|
151
|
-
showCounter: c.length > 1
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
] });
|
|
155
|
-
};
|
|
156
|
-
ie.displayName = "SReview";
|
|
157
|
-
export {
|
|
158
|
-
ie as SReview,
|
|
159
|
-
ie as default
|
|
160
|
-
};
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-review-DOBlCEU2.js";
|
|
3
|
+
export { e as SReview, e as default };
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { t as e } from "./createSvgIcon-KjKEsKNV.js";
|
|
2
|
+
import t from "./s-lazy-image/s-lazy-image.js";
|
|
3
|
+
import { SAvatar as n } from "./s-avatar/s-avatar.js";
|
|
4
|
+
import { i as r } from "./utils-Cu16ybRR.js";
|
|
5
|
+
import { SImageModal as i } from "./s-image-modal/s-image-modal.js";
|
|
6
|
+
import { SSkeleton as a } from "./s-skeleton/s-skeleton.js";
|
|
7
|
+
import { SRating as o } from "./s-rating/s-rating.js";
|
|
8
|
+
import { useEffect as s, useId as c, useState as l } from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { Box as f, Divider as p, IconButton as m, Stack as h, Typography as g } from "@mui/material";
|
|
11
|
+
//#region ../../node_modules/@mui/icons-material/esm/ThumbDown.js
|
|
12
|
+
var _ = e(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z" }), "ThumbDown"), v = e(/* @__PURE__ */ u("path", { d: "M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z" }), "ThumbUp"), y = ({ id: e, userName: y, userAvatar: b, rating: x, reviewContent: S, datetime: C, images: w, userHelpfulVote: T = null, helpfulYes: E = 0, helpfulNo: D = 0, onHelpfulVote: O, showHelpfulSection: k = !0, avatarSize: A = 48, maxRating: j = 5, readOnly: M = !0, showDivider: N = !0, loading: P = !1, sx: F = {} }) => {
|
|
13
|
+
let I = c(), L = e ?? I, [R, z] = l(E), [B, V] = l(D), [H, U] = l(T), [W, G] = l(!1), [K, q] = l(null), J = (e) => {
|
|
14
|
+
let t = null;
|
|
15
|
+
H === e ? (e === "yes" ? z((e) => Math.max(0, e - 1)) : V((e) => Math.max(0, e - 1)), U(null)) : (H === "yes" ? z((e) => Math.max(0, e - 1)) : H === "no" && V((e) => Math.max(0, e - 1)), e === "yes" ? z((e) => e + 1) : V((e) => e + 1), U(e), t = e), O && O(L, t);
|
|
16
|
+
}, Y = w?.map((e, t) => ({
|
|
17
|
+
id: `review-${L}-image-${t}`,
|
|
18
|
+
type: "image",
|
|
19
|
+
url: e,
|
|
20
|
+
title: `Review image ${t + 1}`,
|
|
21
|
+
desc: `Image ${t + 1} from ${y}'s review`
|
|
22
|
+
})) ?? [], X = (e) => {
|
|
23
|
+
let t = Y[e];
|
|
24
|
+
t && (q(t), G(!0));
|
|
25
|
+
}, Z = () => {
|
|
26
|
+
G(!1), q(null);
|
|
27
|
+
}, Q = (e) => {
|
|
28
|
+
q(e);
|
|
29
|
+
}, $ = r(C);
|
|
30
|
+
return s(() => {
|
|
31
|
+
U(T);
|
|
32
|
+
}, [T]), P ? /* @__PURE__ */ d(f, {
|
|
33
|
+
sx: {
|
|
34
|
+
py: 2,
|
|
35
|
+
...F
|
|
36
|
+
},
|
|
37
|
+
children: [/* @__PURE__ */ d(h, {
|
|
38
|
+
direction: "row",
|
|
39
|
+
spacing: 2,
|
|
40
|
+
alignItems: "flex-start",
|
|
41
|
+
children: [/* @__PURE__ */ u(a, {
|
|
42
|
+
component: "rounded-avatar",
|
|
43
|
+
width: A,
|
|
44
|
+
height: A
|
|
45
|
+
}), /* @__PURE__ */ d(f, {
|
|
46
|
+
sx: { flex: 1 },
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ d(h, {
|
|
49
|
+
direction: "row",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
spacing: 2,
|
|
52
|
+
mb: 1,
|
|
53
|
+
children: [/* @__PURE__ */ u(a, {
|
|
54
|
+
variant: "text",
|
|
55
|
+
width: 120,
|
|
56
|
+
height: 20
|
|
57
|
+
}), /* @__PURE__ */ u(a, {
|
|
58
|
+
variant: "text",
|
|
59
|
+
width: 80,
|
|
60
|
+
height: 16
|
|
61
|
+
})]
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ u(f, {
|
|
64
|
+
sx: { mb: 1 },
|
|
65
|
+
children: /* @__PURE__ */ u(a, {
|
|
66
|
+
variant: "text",
|
|
67
|
+
width: 100,
|
|
68
|
+
height: 20
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ u(a, {
|
|
72
|
+
variant: "text",
|
|
73
|
+
width: "100%",
|
|
74
|
+
height: 16,
|
|
75
|
+
sx: { mb: .5 }
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ d(h, {
|
|
78
|
+
direction: "row",
|
|
79
|
+
spacing: 1,
|
|
80
|
+
sx: {
|
|
81
|
+
display: "inline-flex",
|
|
82
|
+
alignItems: "center"
|
|
83
|
+
},
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ u(a, {
|
|
86
|
+
variant: "text",
|
|
87
|
+
width: 140,
|
|
88
|
+
height: 16,
|
|
89
|
+
sx: { mr: 2 }
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ u(a, { component: "icon-button" }),
|
|
92
|
+
/* @__PURE__ */ u(a, {
|
|
93
|
+
variant: "text",
|
|
94
|
+
width: 20,
|
|
95
|
+
height: 16
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ u(a, { component: "icon-button" }),
|
|
98
|
+
/* @__PURE__ */ u(a, {
|
|
99
|
+
variant: "text",
|
|
100
|
+
width: 20,
|
|
101
|
+
height: 16
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})]
|
|
107
|
+
}), N && /* @__PURE__ */ u(p, { sx: { mt: 2 } })]
|
|
108
|
+
}) : /* @__PURE__ */ d(f, {
|
|
109
|
+
sx: {
|
|
110
|
+
py: 2,
|
|
111
|
+
...F
|
|
112
|
+
},
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ d(h, {
|
|
115
|
+
direction: "row",
|
|
116
|
+
spacing: 2,
|
|
117
|
+
alignItems: "flex-start",
|
|
118
|
+
children: [/* @__PURE__ */ u(n, {
|
|
119
|
+
avatar: b,
|
|
120
|
+
name: y,
|
|
121
|
+
size: A
|
|
122
|
+
}), /* @__PURE__ */ d(f, {
|
|
123
|
+
sx: { flex: 1 },
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ d(h, {
|
|
126
|
+
direction: "row",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
spacing: 2,
|
|
129
|
+
mb: 1,
|
|
130
|
+
children: [/* @__PURE__ */ u(g, {
|
|
131
|
+
variant: "subtitle2",
|
|
132
|
+
fontWeight: "600",
|
|
133
|
+
children: y
|
|
134
|
+
}), /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, {
|
|
135
|
+
variant: "caption",
|
|
136
|
+
children: $
|
|
137
|
+
}) })]
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ u(f, {
|
|
140
|
+
sx: { mb: 1 },
|
|
141
|
+
children: /* @__PURE__ */ u(o, {
|
|
142
|
+
value: x,
|
|
143
|
+
max: j,
|
|
144
|
+
readOnly: M
|
|
145
|
+
})
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ u(g, {
|
|
148
|
+
variant: "body2",
|
|
149
|
+
sx: {
|
|
150
|
+
mb: 2,
|
|
151
|
+
lineHeight: 1.6
|
|
152
|
+
},
|
|
153
|
+
children: S
|
|
154
|
+
}),
|
|
155
|
+
w && w.length > 0 && /* @__PURE__ */ u(h, {
|
|
156
|
+
direction: "row",
|
|
157
|
+
spacing: 1,
|
|
158
|
+
sx: {
|
|
159
|
+
mb: 2,
|
|
160
|
+
flexWrap: "wrap",
|
|
161
|
+
gap: 1
|
|
162
|
+
},
|
|
163
|
+
children: w.map((e, n) => /* @__PURE__ */ u(t, {
|
|
164
|
+
src: e,
|
|
165
|
+
alt: `Review image ${n + 1}`,
|
|
166
|
+
width: 80,
|
|
167
|
+
height: 80,
|
|
168
|
+
variant: "rounded",
|
|
169
|
+
style: {
|
|
170
|
+
objectFit: "cover",
|
|
171
|
+
cursor: "pointer"
|
|
172
|
+
},
|
|
173
|
+
onClick: () => X(n),
|
|
174
|
+
onMouseEnter: (e) => {
|
|
175
|
+
e.currentTarget.style.opacity = "0.8";
|
|
176
|
+
},
|
|
177
|
+
onMouseLeave: (e) => {
|
|
178
|
+
e.currentTarget.style.opacity = "1";
|
|
179
|
+
}
|
|
180
|
+
}, n))
|
|
181
|
+
}),
|
|
182
|
+
k && /* @__PURE__ */ d(h, {
|
|
183
|
+
direction: "row",
|
|
184
|
+
spacing: 1,
|
|
185
|
+
sx: {
|
|
186
|
+
display: "inline-flex",
|
|
187
|
+
alignItems: "center"
|
|
188
|
+
},
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ u(g, {
|
|
191
|
+
variant: "caption",
|
|
192
|
+
sx: { mr: 2 },
|
|
193
|
+
children: "Was this review helpful?"
|
|
194
|
+
}),
|
|
195
|
+
/* @__PURE__ */ u(m, {
|
|
196
|
+
onClick: () => J("yes"),
|
|
197
|
+
sx: {
|
|
198
|
+
color: H === "yes" ? "primary.main" : "text.secondary",
|
|
199
|
+
"&:hover": { backgroundColor: "action.hover" }
|
|
200
|
+
},
|
|
201
|
+
children: /* @__PURE__ */ u(v, { fontSize: "small" })
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ u(g, {
|
|
204
|
+
variant: "caption",
|
|
205
|
+
children: R
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ u(m, {
|
|
208
|
+
onClick: () => J("no"),
|
|
209
|
+
sx: {
|
|
210
|
+
color: H === "no" ? "error.main" : "text.secondary",
|
|
211
|
+
ml: 1,
|
|
212
|
+
"&:hover": { backgroundColor: "action.hover" }
|
|
213
|
+
},
|
|
214
|
+
children: /* @__PURE__ */ u(_, { fontSize: "small" })
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ u(g, {
|
|
217
|
+
variant: "caption",
|
|
218
|
+
children: B
|
|
219
|
+
})
|
|
220
|
+
]
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
})]
|
|
224
|
+
}),
|
|
225
|
+
N && /* @__PURE__ */ u(p, { sx: { mt: 2 } }),
|
|
226
|
+
/* @__PURE__ */ u(i, {
|
|
227
|
+
isOpen: W,
|
|
228
|
+
onClose: Z,
|
|
229
|
+
selectedItem: K,
|
|
230
|
+
onItemChange: Q,
|
|
231
|
+
mediaItems: Y,
|
|
232
|
+
showNavigation: Y.length > 1,
|
|
233
|
+
showThumbnailDock: Y.length > 1,
|
|
234
|
+
showCounter: Y.length > 1
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
y.displayName = "SReview";
|
|
240
|
+
//#endregion
|
|
241
|
+
export { y as t };
|
|
@@ -1,65 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
import { useScrollAnimation as e } from "../hooks/use-scroll-animation.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Box as r } from "@mui/material";
|
|
5
|
+
import { motion as i } from "framer-motion";
|
|
6
|
+
//#region lib/s-scroll-reveal/s-scroll-reveal.tsx
|
|
7
|
+
var a = ({ children: a, duration: o = .6, ease: s = "easeOut", threshold: c, rootMargin: l, delay: u, direction: d, distance: f, scale: p = !0, rotate: m = !1, stagger: h = !0, staggerDelay: g = .1, sx: _, ...v }) => {
|
|
8
|
+
let { ref: y, animate: b, initialPosition: x, finalPosition: S } = e({
|
|
9
|
+
threshold: c,
|
|
10
|
+
rootMargin: l,
|
|
11
|
+
delay: u,
|
|
12
|
+
direction: d,
|
|
13
|
+
distance: f
|
|
14
|
+
}), C = p ? {
|
|
15
|
+
...x,
|
|
16
|
+
scale: .85
|
|
17
|
+
} : x, w = p ? {
|
|
18
|
+
...S,
|
|
19
|
+
scale: 1
|
|
20
|
+
} : S, T = m ? {
|
|
21
|
+
...C,
|
|
22
|
+
rotate: -2
|
|
23
|
+
} : C, E = m ? {
|
|
24
|
+
...w,
|
|
25
|
+
rotate: 0
|
|
26
|
+
} : w, D = {
|
|
27
|
+
hidden: { opacity: 0 },
|
|
28
|
+
visible: {
|
|
29
|
+
opacity: 1,
|
|
30
|
+
transition: {
|
|
31
|
+
staggerChildren: h ? g : 0,
|
|
32
|
+
delayChildren: u ? u / 1e3 : 0
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, O = {
|
|
36
|
+
hidden: T,
|
|
37
|
+
visible: E
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ n(r, {
|
|
40
|
+
sx: {
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
..._
|
|
43
|
+
},
|
|
44
|
+
...v,
|
|
45
|
+
children: /* @__PURE__ */ n(r, {
|
|
46
|
+
component: i.div,
|
|
47
|
+
ref: y,
|
|
48
|
+
variants: h ? D : void 0,
|
|
49
|
+
initial: h ? "hidden" : T,
|
|
50
|
+
animate: b ? h ? "visible" : E : h ? "hidden" : T,
|
|
51
|
+
transition: {
|
|
52
|
+
duration: o,
|
|
53
|
+
ease: s,
|
|
54
|
+
type: "spring",
|
|
55
|
+
stiffness: 80,
|
|
56
|
+
damping: 20,
|
|
57
|
+
mass: .8
|
|
58
|
+
},
|
|
59
|
+
children: h ? t.Children.toArray(a).map((e, t) => /* @__PURE__ */ n(r, {
|
|
60
|
+
component: i.div,
|
|
61
|
+
variants: O,
|
|
62
|
+
children: e
|
|
63
|
+
}, t)) : a
|
|
64
|
+
})
|
|
65
|
+
});
|
|
65
66
|
};
|
|
67
|
+
a.displayName = "SScrollReveal";
|
|
68
|
+
//#endregion
|
|
69
|
+
export { a as SScrollReveal, a as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { SScrollToTop as e } from "./s-scroll-to-top.js";
|
|
3
|
+
export { e as default };
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../Box-CCxGQYgC.js";
|
|
3
|
+
import { t } from "../styled-Dz7rwAje.js";
|
|
4
|
+
import { t as n } from "../ArrowUpward-CDLbIMHR.js";
|
|
5
|
+
import { useIsPassedPosition as r } from "../hooks/use-is-passed-position.js";
|
|
6
|
+
import i from "react";
|
|
7
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
8
|
+
//#region lib/s-scroll-to-top/s-scroll-to-top.tsx
|
|
9
|
+
var o = t(e)({
|
|
10
|
+
position: "fixed",
|
|
11
|
+
bottom: 20,
|
|
12
|
+
right: 20,
|
|
13
|
+
zIndex: 100,
|
|
14
|
+
display: "flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
borderRadius: "50%",
|
|
18
|
+
width: 40,
|
|
19
|
+
height: 40,
|
|
20
|
+
backgroundColor: "background.paper",
|
|
21
|
+
cursor: "pointer",
|
|
22
|
+
transition: "all 0.3s ease",
|
|
23
|
+
"&:hover": { transform: "scale(1.1)" }
|
|
24
|
+
}), s = i.memo(({ onClick: e, scrollElementId: t, threshold: i = 100, icon: s, sx: c }) => {
|
|
25
|
+
let l = r(t ?? window, i), u = () => {
|
|
26
|
+
e ? e() : t ? document.getElementById(t)?.scrollTo({
|
|
27
|
+
top: 0,
|
|
28
|
+
behavior: "smooth"
|
|
29
|
+
}) : window.scrollTo({
|
|
30
|
+
top: 0,
|
|
31
|
+
behavior: "smooth"
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ a(o, {
|
|
35
|
+
sx: {
|
|
36
|
+
opacity: l ? 1 : 0,
|
|
37
|
+
visibility: l ? "visible" : "hidden",
|
|
38
|
+
...c
|
|
39
|
+
},
|
|
40
|
+
onClick: u,
|
|
41
|
+
children: s ?? /* @__PURE__ */ a(n, {})
|
|
42
|
+
});
|
|
40
43
|
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
h as default
|
|
45
|
-
};
|
|
44
|
+
s.displayName = "SScrollToTop";
|
|
45
|
+
//#endregion
|
|
46
|
+
export { s as SScrollToTop, s as default };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
t as ScrollVelocityContainer,
|
|
6
|
-
f as ScrollVelocityRow,
|
|
7
|
-
r as default
|
|
8
|
-
};
|
|
1
|
+
import { ScrollVelocityContainer as e } from "./scroll-velocity-container.js";
|
|
2
|
+
import { ScrollVelocityRow as t } from "./scroll-velocity-row.js";
|
|
3
|
+
import { SScrollVelocity as n } from "./s-scroll-velocity.js";
|
|
4
|
+
export { e as ScrollVelocityContainer, t as ScrollVelocityRow, n as default };
|