@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,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
s.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ScrollVelocityRow as e } from "./scroll-velocity-row.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/s-scroll-velocity/s-scroll-velocity.tsx
|
|
5
|
+
var n = ({ children: n, baseVelocity: r, direction: i, sx: a, ...o }) => /* @__PURE__ */ t(e, {
|
|
6
|
+
baseVelocity: r,
|
|
7
|
+
direction: i,
|
|
8
|
+
sx: a,
|
|
9
|
+
...o,
|
|
10
|
+
children: n
|
|
11
|
+
});
|
|
12
|
+
n.displayName = "SScrollVelocity";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as SScrollVelocity, n as default };
|
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Box as
|
|
4
|
-
import { useScroll as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
) });
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Box as n } from "@mui/material";
|
|
4
|
+
import { useScroll as r, useSpring as i, useTransform as a, useVelocity as o } from "framer-motion";
|
|
5
|
+
//#region lib/s-scroll-velocity/scroll-velocity-container.tsx
|
|
6
|
+
var s = e.createContext(null);
|
|
7
|
+
function c({ children: e, sx: c, ...l }) {
|
|
8
|
+
let { scrollY: u } = r(), d = a(i(o(u), {
|
|
9
|
+
damping: 50,
|
|
10
|
+
stiffness: 400
|
|
11
|
+
}), (e) => (e < 0 ? -1 : 1) * Math.min(5, Math.abs(e) / 1e3 * 5));
|
|
12
|
+
return /* @__PURE__ */ t(s.Provider, {
|
|
13
|
+
value: d,
|
|
14
|
+
children: /* @__PURE__ */ t(n, {
|
|
15
|
+
sx: {
|
|
16
|
+
position: "relative",
|
|
17
|
+
width: "100%",
|
|
18
|
+
...c
|
|
19
|
+
},
|
|
20
|
+
...l,
|
|
21
|
+
children: e
|
|
22
|
+
})
|
|
23
|
+
});
|
|
26
24
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
h as ScrollVelocityContext,
|
|
30
|
-
v as default
|
|
31
|
-
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as ScrollVelocityContainer, c as default, s as ScrollVelocityContext };
|
|
@@ -1,122 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useContext as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ScrollVelocityContext as e } from "./scroll-velocity-container.js";
|
|
2
|
+
import { useContext as t, useEffect as n, useRef as r, useState as i } from "react";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { Box as o } from "@mui/material";
|
|
5
|
+
import { motion as s, useAnimationFrame as c, useMotionValue as l, useScroll as u, useSpring as d, useTransform as f, useVelocity as p } from "framer-motion";
|
|
6
|
+
//#region lib/s-scroll-velocity/scroll-velocity-row.tsx
|
|
7
|
+
var m = (e, t, n) => {
|
|
8
|
+
let r = t - e;
|
|
9
|
+
return ((n - e) % r + r) % r + e;
|
|
9
10
|
};
|
|
10
|
-
function
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
userSelect: "none",
|
|
82
|
-
x: N
|
|
83
|
-
},
|
|
84
|
-
children: Array.from({ length: k }).map((o, t) => /* @__PURE__ */ u.jsx(
|
|
85
|
-
E,
|
|
86
|
-
{
|
|
87
|
-
ref: t === 0 ? v : null,
|
|
88
|
-
"aria-hidden": t !== 0,
|
|
89
|
-
sx: {
|
|
90
|
-
display: "inline-flex",
|
|
91
|
-
flexShrink: 0,
|
|
92
|
-
alignItems: "center"
|
|
93
|
-
},
|
|
94
|
-
component: "div",
|
|
95
|
-
children: e
|
|
96
|
-
},
|
|
97
|
-
t
|
|
98
|
-
))
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
);
|
|
11
|
+
function h({ children: e, baseVelocity: t = 5, direction: u = 1, sx: d, velocityFactor: p, ...h }) {
|
|
12
|
+
let g = r(null), _ = r(null), [v, y] = i(1), b = l(0), x = r(u >= 0 ? 1 : -1), S = r(u >= 0 ? 1 : -1), C = l(0), w = r(!0), T = r(!0), E = r(!1);
|
|
13
|
+
n(() => {
|
|
14
|
+
let e = g.current, t = _.current;
|
|
15
|
+
if (!e || !t) return;
|
|
16
|
+
let n = () => {
|
|
17
|
+
let n = e.offsetWidth ?? 0, r = t.scrollWidth ?? 0;
|
|
18
|
+
C.set(r);
|
|
19
|
+
let i = r > 0 ? Math.max(3, Math.ceil(n / r) + 2) : 1;
|
|
20
|
+
y((e) => e === i ? e : i);
|
|
21
|
+
};
|
|
22
|
+
n();
|
|
23
|
+
let r = new ResizeObserver(n);
|
|
24
|
+
r.observe(e), r.observe(t);
|
|
25
|
+
let i = new IntersectionObserver(([e]) => {
|
|
26
|
+
w.current = e.isIntersecting;
|
|
27
|
+
});
|
|
28
|
+
i.observe(e);
|
|
29
|
+
let a = () => {
|
|
30
|
+
T.current = document.visibilityState === "visible";
|
|
31
|
+
};
|
|
32
|
+
document.addEventListener("visibilitychange", a, { passive: !0 }), a();
|
|
33
|
+
let o = window.matchMedia("(prefers-reduced-motion: reduce)"), s = () => {
|
|
34
|
+
E.current = o.matches;
|
|
35
|
+
};
|
|
36
|
+
return o.addEventListener("change", s), s(), () => {
|
|
37
|
+
r.disconnect(), i.disconnect(), document.removeEventListener("visibilitychange", a), o.removeEventListener("change", s);
|
|
38
|
+
};
|
|
39
|
+
}, [e, C]);
|
|
40
|
+
let D = f([b, C], ([e, t]) => `${-m(0, Number(t) || 1, Number(e) || 0)}px`);
|
|
41
|
+
return c((e, n) => {
|
|
42
|
+
if (!w.current || !T.current) return;
|
|
43
|
+
let r = n / 1e3, i = p.get(), a = Math.min(5, Math.abs(i)), o = E.current ? 1 : 1 + a;
|
|
44
|
+
if (a > .1) {
|
|
45
|
+
let e = i >= 0 ? 1 : -1;
|
|
46
|
+
S.current = x.current * e;
|
|
47
|
+
}
|
|
48
|
+
let s = C.get() ?? 0;
|
|
49
|
+
if (s <= 0) return;
|
|
50
|
+
let c = s * t / 100, l = S.current * c * o * r;
|
|
51
|
+
b.set(b.get() + l);
|
|
52
|
+
}), /* @__PURE__ */ a(o, {
|
|
53
|
+
ref: g,
|
|
54
|
+
sx: {
|
|
55
|
+
width: "100%",
|
|
56
|
+
overflow: "hidden",
|
|
57
|
+
whiteSpace: "nowrap",
|
|
58
|
+
...d
|
|
59
|
+
},
|
|
60
|
+
...h,
|
|
61
|
+
children: /* @__PURE__ */ a(s.div, {
|
|
62
|
+
style: {
|
|
63
|
+
display: "inline-flex",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
willChange: "transform",
|
|
66
|
+
userSelect: "none",
|
|
67
|
+
x: D
|
|
68
|
+
},
|
|
69
|
+
children: Array.from({ length: v }).map((t, n) => /* @__PURE__ */ a(o, {
|
|
70
|
+
ref: n === 0 ? _ : null,
|
|
71
|
+
"aria-hidden": n !== 0,
|
|
72
|
+
sx: {
|
|
73
|
+
display: "inline-flex",
|
|
74
|
+
flexShrink: 0,
|
|
75
|
+
alignItems: "center"
|
|
76
|
+
},
|
|
77
|
+
component: "div",
|
|
78
|
+
children: e
|
|
79
|
+
}, n))
|
|
80
|
+
})
|
|
81
|
+
});
|
|
103
82
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
83
|
+
function g(e) {
|
|
84
|
+
let { scrollY: t } = u(), n = f(d(p(t), {
|
|
85
|
+
damping: 50,
|
|
86
|
+
stiffness: 400
|
|
87
|
+
}), (e) => (e < 0 ? -1 : 1) * Math.min(5, Math.abs(e) / 1e3 * 5));
|
|
88
|
+
return /* @__PURE__ */ a(h, {
|
|
89
|
+
...e,
|
|
90
|
+
velocityFactor: n
|
|
91
|
+
});
|
|
113
92
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
|
|
93
|
+
function _(n) {
|
|
94
|
+
let r = t(e);
|
|
95
|
+
return r ? /* @__PURE__ */ a(h, {
|
|
96
|
+
...n,
|
|
97
|
+
velocityFactor: r
|
|
98
|
+
}) : /* @__PURE__ */ a(g, { ...n });
|
|
117
99
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
U as default,
|
|
121
|
-
Y as wrap
|
|
122
|
-
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { _ as ScrollVelocityRow, _ as default, m as wrap };
|
package/dist/s-select/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-select-DXbeZ0CG.js";
|
|
3
|
+
export { e as default };
|
|
@@ -1,112 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { Select as T, ListSubheader as B, TextField as D, InputAdornment as K, MenuItem as j, Box as f } from "@mui/material";
|
|
5
|
-
import { SForm as N } from "../s-form/s-form.js";
|
|
6
|
-
const R = F(/* @__PURE__ */ r.jsx("path", {
|
|
7
|
-
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
8
|
-
}), "Search"), W = E(
|
|
9
|
-
({
|
|
10
|
-
options: o = [],
|
|
11
|
-
optionLabel: y = "name",
|
|
12
|
-
optionValue: C = "id",
|
|
13
|
-
placeholder: p,
|
|
14
|
-
label: I = "",
|
|
15
|
-
error: w,
|
|
16
|
-
required: P = !1,
|
|
17
|
-
simple: V = !1,
|
|
18
|
-
htmlFor: x,
|
|
19
|
-
searchable: l = !1,
|
|
20
|
-
searchPlaceholder: b = "",
|
|
21
|
-
renderOption: g,
|
|
22
|
-
...s
|
|
23
|
-
}, L) => {
|
|
24
|
-
const m = s.value !== void 0, [O, k] = c(s.multiple ? [] : null), M = m ? s.value : O, [d, v] = c(""), [z, h] = c(!1), i = (e) => String(typeof e == "string" || typeof e == "number" ? e : e[y]), a = (e) => typeof e == "string" || typeof e == "number" ? e : e[C], S = l && d ? o.filter((e) => i(e).toLowerCase().includes(d.toLowerCase())) : o;
|
|
25
|
-
return /* @__PURE__ */ r.jsx(N, { error: w, label: I, required: P, htmlFor: x, children: /* @__PURE__ */ r.jsxs(
|
|
26
|
-
T,
|
|
27
|
-
{
|
|
28
|
-
id: x,
|
|
29
|
-
displayEmpty: !0,
|
|
30
|
-
fullWidth: !0,
|
|
31
|
-
defaultValue: "",
|
|
32
|
-
ref: L,
|
|
33
|
-
open: l ? z : void 0,
|
|
34
|
-
onOpen: l ? () => h(!0) : void 0,
|
|
35
|
-
onClose: l ? () => {
|
|
36
|
-
h(!1), v("");
|
|
37
|
-
} : void 0,
|
|
38
|
-
MenuProps: l ? {
|
|
39
|
-
autoFocus: !1,
|
|
40
|
-
PaperProps: {
|
|
41
|
-
onKeyDown: (e) => {
|
|
42
|
-
e.stopPropagation();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} : void 0,
|
|
46
|
-
renderValue: s.multiple ? (e) => {
|
|
47
|
-
const n = e;
|
|
48
|
-
return n.length === 0 ? /* @__PURE__ */ r.jsx(f, { component: "span", sx: { color: "divider" }, children: p }) : n?.map((t) => {
|
|
49
|
-
const u = o.find((A) => a(A) === a(t));
|
|
50
|
-
return u ? i(u) : "";
|
|
51
|
-
}).filter(Boolean).join(", ");
|
|
52
|
-
} : (e) => {
|
|
53
|
-
const n = e;
|
|
54
|
-
if (n == null || n === "")
|
|
55
|
-
return /* @__PURE__ */ r.jsx(f, { component: "span", sx: { color: "divider" }, children: p });
|
|
56
|
-
if (V)
|
|
57
|
-
return i(n);
|
|
58
|
-
const t = o.find((u) => a(u) === a(n));
|
|
59
|
-
return t ? i(t) : "";
|
|
60
|
-
},
|
|
61
|
-
...s,
|
|
62
|
-
value: o.length ? M ?? "" : "",
|
|
63
|
-
onChange: (e, n) => {
|
|
64
|
-
if (s.onChange)
|
|
65
|
-
s.onChange(e, n);
|
|
66
|
-
else if (!m) {
|
|
67
|
-
const t = e.target.value;
|
|
68
|
-
k(t);
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
children: [
|
|
72
|
-
l && /* @__PURE__ */ r.jsx(B, { sx: { px: 2, py: 1, position: "sticky", top: 0, bgcolor: "background.paper", zIndex: 1 }, children: /* @__PURE__ */ r.jsx(
|
|
73
|
-
D,
|
|
74
|
-
{
|
|
75
|
-
fullWidth: !0,
|
|
76
|
-
autoFocus: !0,
|
|
77
|
-
placeholder: b,
|
|
78
|
-
value: d,
|
|
79
|
-
onChange: (e) => v(e.target.value),
|
|
80
|
-
onKeyDown: (e) => {
|
|
81
|
-
e.key !== "Escape" && e.stopPropagation();
|
|
82
|
-
},
|
|
83
|
-
onClick: (e) => {
|
|
84
|
-
e.stopPropagation();
|
|
85
|
-
},
|
|
86
|
-
InputProps: {
|
|
87
|
-
startAdornment: /* @__PURE__ */ r.jsx(K, { position: "start", children: /* @__PURE__ */ r.jsx(R, { fontSize: "small" }) })
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
) }),
|
|
91
|
-
(() => {
|
|
92
|
-
const e = (n) => n.map((t, u) => /* @__PURE__ */ r.jsx(
|
|
93
|
-
j,
|
|
94
|
-
{
|
|
95
|
-
disabled: t?.disabled ?? !1,
|
|
96
|
-
value: a(t),
|
|
97
|
-
children: g ? g(t) : i(t)
|
|
98
|
-
},
|
|
99
|
-
`${a(t)}-${u}`
|
|
100
|
-
));
|
|
101
|
-
return l ? S.length > 0 ? e(S) : d ? /* @__PURE__ */ r.jsx(j, { disabled: !0, children: /* @__PURE__ */ r.jsx(f, { sx: { color: "text.secondary", textAlign: "center", width: "100%" }, children: "No results found" }) }) : e(o) : e(o);
|
|
102
|
-
})()
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
) });
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
W.displayName = "SSelect";
|
|
109
|
-
export {
|
|
110
|
-
W as SSelect,
|
|
111
|
-
W as default
|
|
112
|
-
};
|
|
1
|
+
import "../createTheme-DuS5_nJb.js";
|
|
2
|
+
import { t as e } from "../s-select-DXbeZ0CG.js";
|
|
3
|
+
export { e as SSelect, e as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { t as e } from "./createSvgIcon-KjKEsKNV.js";
|
|
2
|
+
import { SForm as t } from "./s-form/s-form.js";
|
|
3
|
+
import { forwardRef as n, useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Box as o, InputAdornment as s, ListSubheader as c, MenuItem as l, Select as u, TextField as d } from "@mui/material";
|
|
6
|
+
//#region ../../node_modules/@mui/icons-material/esm/Search.js
|
|
7
|
+
var f = e(/* @__PURE__ */ i("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14" }), "Search"), p = n(({ options: e = [], optionLabel: n = "name", optionValue: p = "id", placeholder: m, label: h = "", error: g, required: _ = !1, simple: v = !1, htmlFor: y, searchable: b = !1, searchPlaceholder: x = "", renderOption: S, ...C }, w) => {
|
|
8
|
+
let T = C.value !== void 0, [E, D] = r(C.multiple ? [] : null), O = T ? C.value : E, [k, A] = r(""), [j, M] = r(!1), N = (e) => typeof e == "string" || typeof e == "number" ? String(e) : String(e[n]), P = (e) => typeof e == "string" || typeof e == "number" ? e : e[p], F = b && k ? e.filter((e) => N(e).toLowerCase().includes(k.toLowerCase())) : e;
|
|
9
|
+
return /* @__PURE__ */ i(t, {
|
|
10
|
+
error: g,
|
|
11
|
+
label: h,
|
|
12
|
+
required: _,
|
|
13
|
+
htmlFor: y,
|
|
14
|
+
children: /* @__PURE__ */ a(u, {
|
|
15
|
+
id: y,
|
|
16
|
+
displayEmpty: !0,
|
|
17
|
+
fullWidth: !0,
|
|
18
|
+
defaultValue: "",
|
|
19
|
+
ref: w,
|
|
20
|
+
open: b ? j : void 0,
|
|
21
|
+
onOpen: b ? () => M(!0) : void 0,
|
|
22
|
+
onClose: b ? () => {
|
|
23
|
+
M(!1), A("");
|
|
24
|
+
} : void 0,
|
|
25
|
+
MenuProps: b ? {
|
|
26
|
+
autoFocus: !1,
|
|
27
|
+
PaperProps: { onKeyDown: (e) => {
|
|
28
|
+
e.stopPropagation();
|
|
29
|
+
} }
|
|
30
|
+
} : void 0,
|
|
31
|
+
renderValue: C.multiple ? (t) => {
|
|
32
|
+
let n = t;
|
|
33
|
+
return n.length === 0 ? /* @__PURE__ */ i(o, {
|
|
34
|
+
component: "span",
|
|
35
|
+
sx: { color: "divider" },
|
|
36
|
+
children: m
|
|
37
|
+
}) : n?.map((t) => {
|
|
38
|
+
let n = e.find((e) => P(e) === P(t));
|
|
39
|
+
return n ? N(n) : "";
|
|
40
|
+
}).filter(Boolean).join(", ");
|
|
41
|
+
} : (t) => {
|
|
42
|
+
let n = t;
|
|
43
|
+
if (n == null || n === "") return /* @__PURE__ */ i(o, {
|
|
44
|
+
component: "span",
|
|
45
|
+
sx: { color: "divider" },
|
|
46
|
+
children: m
|
|
47
|
+
});
|
|
48
|
+
if (v) return N(n);
|
|
49
|
+
let r = e.find((e) => P(e) === P(n));
|
|
50
|
+
return r ? N(r) : "";
|
|
51
|
+
},
|
|
52
|
+
...C,
|
|
53
|
+
value: e.length ? O ?? "" : "",
|
|
54
|
+
onChange: (e, t) => {
|
|
55
|
+
if (C.onChange) C.onChange(e, t);
|
|
56
|
+
else if (!T) {
|
|
57
|
+
let t = e.target.value;
|
|
58
|
+
D(t);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
children: [b && /* @__PURE__ */ i(c, {
|
|
62
|
+
sx: {
|
|
63
|
+
px: 2,
|
|
64
|
+
py: 1,
|
|
65
|
+
position: "sticky",
|
|
66
|
+
top: 0,
|
|
67
|
+
bgcolor: "background.paper",
|
|
68
|
+
zIndex: 1
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ i(d, {
|
|
71
|
+
fullWidth: !0,
|
|
72
|
+
autoFocus: !0,
|
|
73
|
+
placeholder: x,
|
|
74
|
+
value: k,
|
|
75
|
+
onChange: (e) => A(e.target.value),
|
|
76
|
+
onKeyDown: (e) => {
|
|
77
|
+
e.key !== "Escape" && e.stopPropagation();
|
|
78
|
+
},
|
|
79
|
+
onClick: (e) => {
|
|
80
|
+
e.stopPropagation();
|
|
81
|
+
},
|
|
82
|
+
InputProps: { startAdornment: /* @__PURE__ */ i(s, {
|
|
83
|
+
position: "start",
|
|
84
|
+
children: /* @__PURE__ */ i(f, { fontSize: "small" })
|
|
85
|
+
}) }
|
|
86
|
+
})
|
|
87
|
+
}), (() => {
|
|
88
|
+
let t = (e) => e.map((e, t) => /* @__PURE__ */ i(l, {
|
|
89
|
+
disabled: e?.disabled ?? !1,
|
|
90
|
+
value: P(e),
|
|
91
|
+
children: S ? S(e) : N(e)
|
|
92
|
+
}, `${P(e)}-${t}`));
|
|
93
|
+
return b ? F.length > 0 ? t(F) : k ? /* @__PURE__ */ i(l, {
|
|
94
|
+
disabled: !0,
|
|
95
|
+
children: /* @__PURE__ */ i(o, {
|
|
96
|
+
sx: {
|
|
97
|
+
color: "text.secondary",
|
|
98
|
+
textAlign: "center",
|
|
99
|
+
width: "100%"
|
|
100
|
+
},
|
|
101
|
+
children: "No results found"
|
|
102
|
+
})
|
|
103
|
+
}) : t(e) : t(e);
|
|
104
|
+
})()]
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
p.displayName = "SSelect";
|
|
109
|
+
//#endregion
|
|
110
|
+
export { p as t };
|
|
@@ -1,49 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(({ theme:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})), f = ({
|
|
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
|
-
f.displayName = "SSelectList";
|
|
46
|
-
export {
|
|
47
|
-
f as SSelectList,
|
|
48
|
-
f as default
|
|
49
|
-
};
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { Box as n, Collapse as r, Radio as i, Stack as a, styled as o } from "@mui/material";
|
|
4
|
+
//#region lib/s-select-list/s-select-list.tsx
|
|
5
|
+
var s = o(n, { shouldForwardProp: (e) => e !== "selected" })(({ theme: e, selected: t }) => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
alignItems: "center",
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
borderRadius: 8,
|
|
10
|
+
padding: e.spacing(1),
|
|
11
|
+
paddingLeft: e.spacing(2),
|
|
12
|
+
paddingRight: e.spacing(2),
|
|
13
|
+
border: "1px solid",
|
|
14
|
+
cursor: "pointer",
|
|
15
|
+
borderColor: t ? (e.vars ?? e).palette.primary.dark : (e.vars ?? e).palette.divider
|
|
16
|
+
})), c = ({ items: o, selectedId: c, onSelect: l, renderItem: u, renderBelow: d, showRadio: f = !0 }) => /* @__PURE__ */ e(a, {
|
|
17
|
+
spacing: 2,
|
|
18
|
+
children: o.map((a) => {
|
|
19
|
+
let o = a.id === c, p = d && o;
|
|
20
|
+
return /* @__PURE__ */ t(n, { children: [/* @__PURE__ */ t(s, {
|
|
21
|
+
selected: o,
|
|
22
|
+
onClick: () => l(a.id),
|
|
23
|
+
children: [/* @__PURE__ */ e(n, {
|
|
24
|
+
sx: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
gap: 2,
|
|
28
|
+
flex: 1,
|
|
29
|
+
borderRadius: 8
|
|
30
|
+
},
|
|
31
|
+
children: u(a, o)
|
|
32
|
+
}), f && /* @__PURE__ */ e(i, { checked: o })]
|
|
33
|
+
}), p && /* @__PURE__ */ e(r, {
|
|
34
|
+
in: o,
|
|
35
|
+
children: /* @__PURE__ */ e(n, {
|
|
36
|
+
mt: 2,
|
|
37
|
+
children: d(a)
|
|
38
|
+
})
|
|
39
|
+
})] }, a.id);
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
c.displayName = "SSelectList";
|
|
43
|
+
//#endregion
|
|
44
|
+
export { c as SSelectList, c as default };
|
package/dist/s-skeleton/index.js
CHANGED