@solostylist/ui-kit 2.0.1 → 2.0.2
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/Add-CEnTWsXs.js +6 -0
- package/dist/ArrowUpward-udL1ltj2.js +6 -0
- package/dist/Box-9oeZgA1U.js +46 -0
- package/dist/Button-DaLr1m20.js +534 -0
- package/dist/ButtonBase-DovDC6-1.js +700 -0
- package/dist/Checkbox-C-Xjbzzh.js +152 -0
- package/dist/ChevronRight-DsPfsFKB.js +6 -0
- package/dist/Close-CIYOM-Sc.js +6 -0
- package/dist/Collapse-DPUr1cbP.js +266 -0
- package/dist/ContentCopy-Hlh3azVb.js +6 -0
- package/dist/DefaultPropsProvider-ebWx4_5E.js +128 -0
- package/dist/DialogContent-b3xbJVC6.js +450 -0
- package/dist/Download-D9PkFi7a.js +6 -0
- package/dist/ExpandMore-sOgvEha9.js +6 -0
- package/dist/Favorite-BP343hjM.js +6 -0
- package/dist/FavoriteBorder-D15j9xEL.js +6 -0
- package/dist/FormControl-DwMfZCiz.js +215 -0
- package/dist/FormControlLabel-Ihga1FTB.js +173 -0
- package/dist/Grow-BQR7x52V.js +121 -0
- package/dist/IconButton-CE-4GamO.js +448 -0
- package/dist/InfoOutlined-lpvhO6P8.js +6 -0
- package/dist/List-RNcZhRdr.js +105 -0
- package/dist/Menu-CnyB4SDS.js +180 -0
- package/dist/MenuItem-Ck30dBOR.js +224 -0
- package/dist/MenuList-Cc98uWXq.js +160 -0
- package/dist/Modal-CD2EBfU8.js +702 -0
- package/dist/Paper-_3qggtBp.js +115 -0
- package/dist/Popover-BFdKSYI5.js +340 -0
- package/dist/Popper-DYNAMSDd.js +1351 -0
- package/dist/Portal-i_wgIe9-.js +49 -0
- package/dist/Remove-DDEn8ek8.js +6 -0
- package/dist/RtlProvider-B7uVJXUY.js +19 -0
- package/dist/Skeleton-iZFynl7z.js +220 -0
- package/dist/Stack-C0LGzM4c.js +158 -0
- package/dist/SwitchBase-CjWtDdmE.js +198 -0
- package/dist/Tooltip-B1sn94L0.js +448 -0
- package/dist/Typography-_P0svrkO.js +168 -0
- package/dist/UnfoldMoreRounded-CuCrdxoy.js +6 -0
- package/dist/appendOwnerState-CFQTq3pb.js +17 -0
- package/dist/assets/stripe-input.css +1 -0
- package/dist/autocomplete-BgARERpp.js +43 -0
- package/dist/avatar-XNOdbbRz.js +10 -0
- package/dist/buttonBaseClasses-B90LjsNK.js +13 -0
- package/dist/capitalize-C0baBJCm.js +5 -0
- package/dist/chainPropTypes-CkMRtDjQ.js +8 -0
- package/dist/checkbox-D1U_JKqs.js +88 -0
- package/dist/checkboxClasses-B1up2lUn.js +18 -0
- package/dist/chunk-C_CI6nMA.js +13 -0
- package/dist/clsx-DGZSe4Nt.js +16 -0
- package/dist/colorManipulator-DmUjcif3.js +129 -0
- package/dist/contains-DnqPQsQU.js +16 -0
- package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +14 -0
- package/dist/createSvgIcon-3y-gS0r1.js +155 -0
- package/dist/createTheme-xB2Em0Na.js +1869 -0
- package/dist/defaultTheme-BaGcIzCh.js +210 -0
- package/dist/elementAcceptingRef-pKEY6jPR.js +25 -0
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +19 -0
- package/dist/exactProp-C_IsucXf.js +13 -0
- package/dist/extends-DXMyyJCW.js +12 -0
- package/dist/field-label-styles-4praXMaE.js +50 -0
- package/dist/formLabelClasses-AuZHWfTs.js +18 -0
- package/dist/generateUtilityClass-PAIOm1jC.js +34 -0
- package/dist/generateUtilityClasses-DvX505Gy.js +10 -0
- package/dist/getActiveElement-BfBkhgy6.js +8 -0
- package/dist/{gradients-DSnBONEQ.js → gradients-mQAYCK0_.js} +1 -1
- package/dist/iconButtonClasses-CVVRFXRo.js +27 -0
- package/dist/inputAdornmentClasses-BbB8s-Z4.js +19 -0
- package/dist/inputBaseClasses-Ce_jjdp9.js +25 -0
- package/dist/integerPropType-CCkQD1JY.js +27 -0
- package/dist/isEventHandler-QShLXBxE.js +7 -0
- package/dist/isFocusVisible-4OIE8TST.js +11 -0
- package/dist/isLayoutSupported-Btg2X3QE.js +6 -0
- package/dist/isMuiElement-CPjhi284.js +10 -0
- package/dist/main.js +1 -1
- package/dist/mega-menu-trigger-BcOo8I5_.js +53 -0
- package/dist/memoTheme-qFyKAk7y.js +15 -0
- package/dist/mergeSlotProps-DC8r4QzS.js +45 -0
- package/dist/monthCalendarClasses-b964KRbc.js +14 -0
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +12 -0
- package/dist/outlinedInputClasses-ci1zDasn.js +17 -0
- package/dist/ownerDocument-CJjQZweZ.js +6 -0
- package/dist/ownerDocument-pYjJiXem.js +5 -0
- package/dist/ownerWindow-SSeeoqPT.js +18 -0
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-CJLuEy1m.js → palettes-B1FcGUYs.js} +163 -163
- package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +12 -0
- package/dist/prop-types-BzYPyWN7.js +516 -0
- package/dist/refType-j5S9pc_e.js +6 -0
- package/dist/resolveProps-7jIA45vn.js +30 -0
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +2 -70
- package/dist/s-accordion-1oLxQhod.js +487 -0
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-animated-gradient-text/index.d.ts +2 -0
- package/dist/s-animated-gradient-text/index.js +2 -0
- package/dist/s-animated-gradient-text/s-animated-gradient-text.d.ts +64 -0
- package/dist/s-animated-gradient-text/s-animated-gradient-text.js +93 -0
- package/dist/s-announcement-bar/index.d.ts +2 -0
- package/dist/s-announcement-bar/index.js +2 -0
- package/dist/s-announcement-bar/s-announcement-bar.d.ts +113 -0
- package/dist/s-announcement-bar/s-announcement-bar.js +275 -0
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +2 -0
- package/dist/s-carousel/s-carousel.js +2 -184
- package/dist/s-carousel-CAyAl3ka.js +1355 -0
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +2 -398
- package/dist/s-chat-input-T3gyan60.js +419 -0
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +2 -314
- package/dist/s-chat-message-NFTpNgt5.js +315 -0
- package/dist/s-checkbox/s-checkbox.js +19 -18
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +2 -174
- package/dist/s-chips-Dqq1fgz-.js +176 -0
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +2 -103
- package/dist/s-code-block-DyDtctGG.js +658 -0
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +2 -189
- package/dist/s-comment-message-DpCVBKiE.js +192 -0
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +2 -213
- package/dist/s-data-table-D4V58HFR.js +805 -0
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +2 -106
- package/dist/s-date-picker-BFIQOA8C.js +657 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +2 -108
- package/dist/s-datetime-picker-zfg7BEOW.js +3886 -0
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +2 -80
- package/dist/s-dialog-BNlXsVVP.js +123 -0
- package/dist/s-dialog-confirm/s-dialog-confirm.js +33 -32
- package/dist/s-dialog-message/s-dialog-message.js +32 -31
- package/dist/s-drawer/index.d.ts +3 -0
- package/dist/s-drawer/index.js +2 -0
- package/dist/s-drawer/s-drawer.d.ts +70 -0
- package/dist/s-drawer/s-drawer.js +2 -0
- package/dist/s-drawer-4h5ZyoM8.js +562 -0
- package/dist/s-empty/s-empty.js +14 -13
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +2 -219
- package/dist/s-file-dropzone-Cfzv1Cm8.js +422 -0
- package/dist/s-file-icon/s-file-icon.js +88 -87
- package/dist/s-flex-box/s-flex-box.js +12 -11
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +10 -9
- package/dist/s-gradient-blob-pulse/index.d.ts +2 -0
- package/dist/s-gradient-blob-pulse/index.js +2 -0
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.d.ts +62 -0
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +237 -0
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +4 -4
- package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -2
- package/dist/s-icon-button/s-icon-button.js +14 -13
- package/dist/s-image-comparison/s-image-comparison.js +31 -29
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +2 -266
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-image-viewer-CjK67-rs.js +269 -0
- package/dist/s-interactive-card/index.d.ts +3 -0
- package/dist/s-interactive-card/index.js +2 -0
- package/dist/s-interactive-card/s-interactive-card.d.ts +57 -0
- package/dist/s-interactive-card/s-interactive-card.js +152 -0
- package/dist/s-label/s-label.js +26 -25
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +2 -150
- package/dist/s-language-switcher-PaMgHWc2.js +246 -0
- package/dist/s-lazy-image/s-lazy-image.js +18 -17
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +2 -5
- package/dist/s-link-Db1aabHh.js +235 -0
- package/dist/s-list-action-item/index.d.ts +2 -0
- package/dist/s-list-action-item/index.js +2 -0
- package/dist/s-list-action-item/s-list-action-item.d.ts +89 -0
- package/dist/s-list-action-item/s-list-action-item.js +150 -0
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +2 -12
- package/dist/s-localization-provider-CeyB_SGz.js +519 -0
- package/dist/s-mega-menu/index.d.ts +3 -0
- package/dist/s-mega-menu/index.js +2 -0
- package/dist/s-mega-menu/mega-menu-panel.d.ts +38 -0
- package/dist/s-mega-menu/mega-menu-panel.js +253 -0
- package/dist/s-mega-menu/mega-menu-slots.d.ts +65 -0
- package/dist/s-mega-menu/mega-menu-slots.js +232 -0
- package/dist/s-mega-menu/mega-menu-trigger.d.ts +35 -0
- package/dist/s-mega-menu/mega-menu-trigger.js +2 -0
- package/dist/s-mega-menu/s-mega-menu.d.ts +23 -0
- package/dist/s-mega-menu/s-mega-menu.js +228 -0
- package/dist/s-mega-menu/types.d.ts +188 -0
- package/dist/s-mega-menu/types.js +0 -0
- package/dist/s-mega-menu/utils.d.ts +51 -0
- package/dist/s-mega-menu/utils.js +51 -0
- package/dist/s-mobile-dock/index.d.ts +3 -0
- package/dist/s-mobile-dock/index.js +2 -0
- package/dist/s-mobile-dock/s-mobile-dock.d.ts +96 -0
- package/dist/s-mobile-dock/s-mobile-dock.js +2 -0
- package/dist/s-mobile-dock-8F3UWAb8.js +615 -0
- package/dist/s-nav-item/index.d.ts +1 -1
- package/dist/s-nav-item/s-nav-item.d.ts +35 -16
- package/dist/s-nav-item/s-nav-item.js +56 -77
- package/dist/s-nav-items/s-nav-items.js +78 -121
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +2 -5
- package/dist/s-no-ssr-DH57_uP_.js +25 -0
- package/dist/s-number-range/index.d.ts +3 -0
- package/dist/s-number-range/index.js +2 -0
- package/dist/s-number-range/s-number-range.d.ts +109 -0
- package/dist/s-number-range/s-number-range.js +2 -0
- package/dist/s-number-range-Low5QjuD.js +253 -0
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +2 -85
- package/dist/s-pagination-s46hBifh.js +606 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-popover/index.d.ts +5 -0
- package/dist/s-popover/index.js +3 -0
- package/dist/s-popover/placement.d.ts +14 -0
- package/dist/s-popover/placement.js +65 -0
- package/dist/s-popover/s-popover-content.d.ts +22 -0
- package/dist/s-popover/s-popover-content.js +22 -0
- package/dist/s-popover/s-popover.d.ts +59 -0
- package/dist/s-popover/s-popover.js +68 -0
- package/dist/s-product-card/index.d.ts +3 -0
- package/dist/s-product-card/index.js +2 -0
- package/dist/s-product-card/s-product-card.d.ts +216 -0
- package/dist/s-product-card/s-product-card.js +502 -0
- package/dist/s-product-gallery/index.d.ts +3 -0
- package/dist/s-product-gallery/index.js +2 -0
- package/dist/s-product-gallery/s-product-gallery.d.ts +116 -0
- package/dist/s-product-gallery/s-product-gallery.js +2 -0
- package/dist/s-product-gallery-Dj9eGg5i.js +430 -0
- package/dist/s-quantity-input/s-quantity-input.js +24 -24
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +2 -272
- package/dist/s-review--Q2C0ngO.js +272 -0
- package/dist/s-scroll-reveal/s-scroll-reveal.js +8 -7
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +28 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-segmented-control/index.d.ts +3 -0
- package/dist/s-segmented-control/index.js +2 -0
- package/dist/s-segmented-control/s-segmented-control.d.ts +94 -0
- package/dist/s-segmented-control/s-segmented-control.js +302 -0
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +2 -201
- package/dist/s-select-CtVKEOZ5.js +204 -0
- package/dist/s-select-list/s-select-list.js +50 -47
- package/dist/s-skeleton/s-skeleton.js +13 -12
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +2 -89
- package/dist/s-snackbar-message-DsfJlDYd.js +810 -0
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stepper/index.d.ts +3 -0
- package/dist/s-stepper/index.js +2 -0
- package/dist/s-stepper/s-stepper.d.ts +90 -0
- package/dist/s-stepper/s-stepper.js +2 -0
- package/dist/s-stepper-BtODHVro.js +892 -0
- package/dist/s-stripe/s-stripe.js +12 -11
- package/dist/s-stripe/stripe-input.js +2 -3
- package/dist/s-swatch/index.d.ts +3 -0
- package/dist/s-swatch/index.js +2 -0
- package/dist/s-swatch/s-swatch.d.ts +235 -0
- package/dist/s-swatch/s-swatch.js +219 -0
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +2 -48
- package/dist/s-switch-BCeBoxWf.js +307 -0
- package/dist/s-tabs/s-tabs.js +50 -48
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +2 -216
- package/dist/s-text-editor/s-text-editor.js +26 -25
- package/dist/s-text-editor-toolbar-D5eQ-jCs.js +2124 -0
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +2 -52
- package/dist/s-text-field-HYyDf1Jo.js +51 -0
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -1
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +2 -265
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +2 -60
- package/dist/s-theme-switch-BFWpADh3.js +60 -0
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +2 -61
- package/dist/s-tip-jbL7vtoU.js +62 -0
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +2 -55
- package/dist/s-tool-bar/tool-bar-image-input.js +2 -148
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.d.ts +10 -6
- package/dist/s-tool-item/s-tool-item.js +29 -29
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +19 -18
- package/dist/selectClasses-CPxME5jE.js +22 -0
- package/dist/setRef-BWPyWnrr.js +6 -0
- package/dist/styled-Bog8QCl3.js +163 -0
- package/dist/svgIconClasses-1kWGzgux.js +20 -0
- package/dist/switchClasses-BtweO7PC.js +23 -0
- package/dist/theme/component-augmentation.d.ts +65 -1
- package/dist/theme/components/autocomplete.js +2 -43
- package/dist/theme/components/avatar.js +2 -9
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +2 -90
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +0 -1
- package/dist/theme/components/day-calendar.js +0 -1
- package/dist/theme/components/drawer.d.ts +1 -0
- package/dist/theme/components/drawer.js +4 -1
- package/dist/theme/components/field-label-styles.js +2 -19
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +13 -14
- package/dist/theme/components/multi-section-digital-clock-section.js +0 -1
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +0 -1
- package/dist/theme/components/pickers-arrow-switcher.js +0 -1
- package/dist/theme/components/pickers-calendar-header.js +2 -3
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/slider.js +18 -1
- package/dist/theme/components/step-connector.d.ts +0 -3
- package/dist/theme/components/step-connector.js +1 -6
- package/dist/theme/components/step-icon.d.ts +3 -12
- package/dist/theme/components/step-icon.js +3 -14
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +2 -93
- package/dist/theme/components/year-calendar.js +13 -14
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/theme-demo-components-section-C7l_2KAo.js +267 -0
- package/dist/{theme-primitives-CRfnMsNy.js → theme-primitives-CXtaMdVj.js} +109 -108
- package/dist/toggle-button-BsGb-tOr.js +104 -0
- package/dist/tool-bar-action-buttons-v1koaasr.js +54 -0
- package/dist/tool-bar-image-input-DtXTyEe1.js +148 -0
- package/dist/typographyClasses-BH_-zLwg.js +31 -0
- package/dist/unsupportedProp-whMV_uOi.js +11 -0
- package/dist/useControlled-DqNPBJNp.js +5 -0
- package/dist/useControlled-uxVKygk1.js +29 -0
- package/dist/useEnhancedEffect-DFq_FMGX.js +5 -0
- package/dist/useEnhancedEffect-dBFfkm1e.js +5 -0
- package/dist/useEventCallback-DGCsaRIu.js +5 -0
- package/dist/useEventCallback-DhCPBxRG.js +11 -0
- package/dist/useForkRef-BuNFTXxE.js +29 -0
- package/dist/useFormControl-gXwNeUM1.js +18 -0
- package/dist/useMobilePicker-CdrT935R.js +7584 -0
- package/dist/useRovingTabIndex-DPlW997R.js +242 -0
- package/dist/useSlot-BG8ReOxN.js +83 -0
- package/dist/useSlotProps-BOO3qaI9.js +16 -0
- package/dist/useTheme-BIWMbX3i.js +9 -0
- package/dist/useThemeProps-Dw9dmKyT.js +29 -0
- package/dist/useTimeout-CoK-Khfm.js +49 -0
- package/dist/utils/dayjs.js +146 -9
- package/dist/utils-Bfqbev5I.js +248 -0
- package/dist/warning-D5YhCbje.js +99 -0
- package/dist/yearCalendarClasses-D9k_KT38.js +14 -0
- package/package.json +1 -1
- package/dist/theme/components/components.d.ts +0 -2
- package/dist/theme/components/slider.d.ts +0 -34
- /package/dist/{colors-CNjL5fhq.js → colors-Bik9qOU9.js} +0 -0
- /package/dist/{s-brand-logo-CErW9Slg.js → s-brand-logo-D7Jovf5K.js} +0 -0
- /package/dist/{utils-CMeAWSRO.js → utils-DOY6v6ln.js} +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
|
|
3
|
+
import { t as n } from "../useForkRef-BuNFTXxE.js";
|
|
4
|
+
import { t as r } from "../appendOwnerState-CFQTq3pb.js";
|
|
5
|
+
import { t as i } from "../mergeSlotProps-DC8r4QzS.js";
|
|
6
|
+
import * as a from "react";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { Box as c, keyframes as l, styled as u, useThemeProps as d } from "@mui/material";
|
|
9
|
+
//#region lib/s-gradient-blob-pulse/s-gradient-blob-pulse.tsx
|
|
10
|
+
var f = "--SGradientBlobPulse-blur", p = {
|
|
11
|
+
large: {
|
|
12
|
+
blobSizes: [
|
|
13
|
+
260,
|
|
14
|
+
200,
|
|
15
|
+
140
|
|
16
|
+
],
|
|
17
|
+
blur: 40
|
|
18
|
+
},
|
|
19
|
+
medium: {
|
|
20
|
+
blobSizes: [
|
|
21
|
+
180,
|
|
22
|
+
140,
|
|
23
|
+
100
|
|
24
|
+
],
|
|
25
|
+
blur: 28
|
|
26
|
+
},
|
|
27
|
+
small: {
|
|
28
|
+
blobSizes: [
|
|
29
|
+
80,
|
|
30
|
+
60,
|
|
31
|
+
40
|
|
32
|
+
],
|
|
33
|
+
blur: 14
|
|
34
|
+
}
|
|
35
|
+
}, m = 1.3, h = {
|
|
36
|
+
balanced: {
|
|
37
|
+
colorCore: "50%",
|
|
38
|
+
colorMid: "18%",
|
|
39
|
+
fadeEnd: "64%",
|
|
40
|
+
fadeMid: "34%",
|
|
41
|
+
opacities: [
|
|
42
|
+
.48,
|
|
43
|
+
.38,
|
|
44
|
+
.32
|
|
45
|
+
],
|
|
46
|
+
sizeScale: 1
|
|
47
|
+
},
|
|
48
|
+
soft: {
|
|
49
|
+
colorCore: "34%",
|
|
50
|
+
colorMid: "10%",
|
|
51
|
+
fadeEnd: "52%",
|
|
52
|
+
fadeMid: "26%",
|
|
53
|
+
opacities: [
|
|
54
|
+
.28,
|
|
55
|
+
.22,
|
|
56
|
+
.18
|
|
57
|
+
],
|
|
58
|
+
sizeScale: 1
|
|
59
|
+
},
|
|
60
|
+
vivid: {
|
|
61
|
+
colorCore: "68%",
|
|
62
|
+
colorMid: "30%",
|
|
63
|
+
fadeEnd: "74%",
|
|
64
|
+
fadeMid: "40%",
|
|
65
|
+
opacities: [
|
|
66
|
+
.62,
|
|
67
|
+
.52,
|
|
68
|
+
.44
|
|
69
|
+
],
|
|
70
|
+
sizeScale: 1.08
|
|
71
|
+
}
|
|
72
|
+
}, g = [
|
|
73
|
+
{
|
|
74
|
+
colorDelay: 0,
|
|
75
|
+
pulseDelay: 0,
|
|
76
|
+
pulseDuration: 1
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
colorDelay: .625,
|
|
80
|
+
pulseDelay: -.1875,
|
|
81
|
+
pulseDuration: .875
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
colorDelay: 1.25,
|
|
85
|
+
pulseDelay: -.34375,
|
|
86
|
+
pulseDuration: 1.125
|
|
87
|
+
}
|
|
88
|
+
], _ = 2.5, v = [
|
|
89
|
+
l`
|
|
90
|
+
0%, 100% { transform: translate(-54%, -50%) scale(1); }
|
|
91
|
+
50% { transform: translate(-47%, -55%) scale(1.22); }
|
|
92
|
+
`,
|
|
93
|
+
l`
|
|
94
|
+
0%, 100% { transform: translate(-46%, -48%) scale(1); }
|
|
95
|
+
50% { transform: translate(-53%, -43%) scale(1.16); }
|
|
96
|
+
`,
|
|
97
|
+
l`
|
|
98
|
+
0%, 100% { transform: translate(-50%, -56%) scale(1); }
|
|
99
|
+
50% { transform: translate(-43%, -49%) scale(1.25); }
|
|
100
|
+
`
|
|
101
|
+
], y = l`
|
|
102
|
+
0%, 100% { background-image: var(--SGradientBlobPulse-gradient-1); }
|
|
103
|
+
25% { background-image: var(--SGradientBlobPulse-gradient-2); }
|
|
104
|
+
50% { background-image: var(--SGradientBlobPulse-gradient-3); }
|
|
105
|
+
75% { background-image: var(--SGradientBlobPulse-gradient-4); }
|
|
106
|
+
`, b = (e, t) => {
|
|
107
|
+
let n = (e.vars ?? e).palette, r = t.colors?.length ? t.colors : [
|
|
108
|
+
n.primary[300],
|
|
109
|
+
n.primary[600],
|
|
110
|
+
n.secondary[400],
|
|
111
|
+
n.secondary[600]
|
|
112
|
+
];
|
|
113
|
+
return [
|
|
114
|
+
r[0],
|
|
115
|
+
r[1] ?? r[0],
|
|
116
|
+
r[2] ?? r[0],
|
|
117
|
+
r[3] ?? r[0]
|
|
118
|
+
];
|
|
119
|
+
}, x = u(c, {
|
|
120
|
+
name: "SGradientBlobPulse",
|
|
121
|
+
slot: "Root",
|
|
122
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
123
|
+
})(({ ownerState: e, theme: t }) => {
|
|
124
|
+
let n = p[e.size], r = h[e.variant], i = b(t, e), a = `${Math.round(n.blobSizes[0] * m)}px`, o = i.reduce((e, t, n) => ({
|
|
125
|
+
...e,
|
|
126
|
+
[`--SGradientBlobPulse-gradient-${n + 1}`]: [
|
|
127
|
+
"radial-gradient(circle,",
|
|
128
|
+
`color-mix(in srgb, ${t} ${r.colorCore}, transparent) 0%,`,
|
|
129
|
+
`color-mix(in srgb, ${t} ${r.colorMid}, transparent) ${r.fadeMid},`,
|
|
130
|
+
`transparent ${r.fadeEnd})`
|
|
131
|
+
].join(" ")
|
|
132
|
+
}), {}), s = i.reduce((e, t, n) => ({
|
|
133
|
+
...e,
|
|
134
|
+
[`--SGradientBlobPulse-gradient-${n + 1}`]: `radial-gradient(circle, ${t} 0%, transparent ${r.fadeEnd})`
|
|
135
|
+
}), {}), c = n.blobSizes.reduce((e, t, n) => ({
|
|
136
|
+
...e,
|
|
137
|
+
[`--SGradientBlobPulse-blobSize-${n + 1}`]: `${Math.round(t * r.sizeScale)}px`
|
|
138
|
+
}), {}), l = r.opacities.reduce((e, t, n) => ({
|
|
139
|
+
...e,
|
|
140
|
+
[`--SGradientBlobPulse-opacity-${n + 1}`]: String(t)
|
|
141
|
+
}), {}), u = g.reduce((t, n, r) => ({
|
|
142
|
+
...t,
|
|
143
|
+
[`--SGradientBlobPulse-colorDelay-${r + 1}`]: `${Math.round(e.animationDuration * n.colorDelay)}ms`,
|
|
144
|
+
[`--SGradientBlobPulse-pulseDelay-${r + 1}`]: `${Math.round(e.animationDuration * n.pulseDelay)}ms`,
|
|
145
|
+
[`--SGradientBlobPulse-pulseDuration-${r + 1}`]: `${Math.round(e.animationDuration * n.pulseDuration)}ms`
|
|
146
|
+
}), {});
|
|
147
|
+
return {
|
|
148
|
+
[f]: `${n.blur}px`,
|
|
149
|
+
"--SGradientBlobPulse-colorDuration": `${Math.round(e.animationDuration * _)}ms`,
|
|
150
|
+
...o,
|
|
151
|
+
...c,
|
|
152
|
+
...l,
|
|
153
|
+
...u,
|
|
154
|
+
alignItems: "center",
|
|
155
|
+
display: "inline-flex",
|
|
156
|
+
isolation: "isolate",
|
|
157
|
+
justifyContent: "center",
|
|
158
|
+
minHeight: a,
|
|
159
|
+
minWidth: a,
|
|
160
|
+
position: "relative",
|
|
161
|
+
"@supports not (color: color-mix(in srgb, red, blue))": s
|
|
162
|
+
};
|
|
163
|
+
}), S = u(c, {
|
|
164
|
+
name: "SGradientBlobPulse",
|
|
165
|
+
slot: "Blob",
|
|
166
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
167
|
+
})(({ theme: e }) => ({
|
|
168
|
+
borderRadius: e.radius.full,
|
|
169
|
+
filter: `blur(var(${f}))`,
|
|
170
|
+
left: "50%",
|
|
171
|
+
mixBlendMode: "normal",
|
|
172
|
+
pointerEvents: "none",
|
|
173
|
+
position: "absolute",
|
|
174
|
+
top: "50%",
|
|
175
|
+
willChange: "transform",
|
|
176
|
+
zIndex: 0,
|
|
177
|
+
"@media (prefers-reduced-motion: reduce)": { animation: "none !important" },
|
|
178
|
+
...e.applyStyles("dark", { mixBlendMode: "screen" }),
|
|
179
|
+
variants: [...v.map((t, n) => ({
|
|
180
|
+
props: ({ ownerState: e }) => e.index === n,
|
|
181
|
+
style: {
|
|
182
|
+
animation: [`${t} var(--SGradientBlobPulse-pulseDuration-${n + 1}) ${e.transitions.easing.easeInOut} infinite`, `${y} var(--SGradientBlobPulse-colorDuration) linear infinite`].join(", "),
|
|
183
|
+
animationDelay: `var(--SGradientBlobPulse-pulseDelay-${n + 1}), var(--SGradientBlobPulse-colorDelay-${n + 1})`,
|
|
184
|
+
backgroundImage: `var(--SGradientBlobPulse-gradient-${n + 1})`,
|
|
185
|
+
height: `var(--SGradientBlobPulse-blobSize-${n + 1})`,
|
|
186
|
+
opacity: `var(--SGradientBlobPulse-opacity-${n + 1})`,
|
|
187
|
+
width: `var(--SGradientBlobPulse-blobSize-${n + 1})`
|
|
188
|
+
}
|
|
189
|
+
})), {
|
|
190
|
+
props: ({ ownerState: e }) => e.paused,
|
|
191
|
+
style: { animationPlayState: "paused" }
|
|
192
|
+
}]
|
|
193
|
+
})), C = u(c, {
|
|
194
|
+
name: "SGradientBlobPulse",
|
|
195
|
+
slot: "Content",
|
|
196
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
197
|
+
})({
|
|
198
|
+
position: "relative",
|
|
199
|
+
zIndex: 1
|
|
200
|
+
}), w = [
|
|
201
|
+
0,
|
|
202
|
+
1,
|
|
203
|
+
2
|
|
204
|
+
], T = a.forwardRef(function(a, c) {
|
|
205
|
+
let l = d({
|
|
206
|
+
props: a,
|
|
207
|
+
name: "SGradientBlobPulse"
|
|
208
|
+
}), { animationDuration: u = 3200, children: f, colors: p, paused: m = !1, size: h = "medium", slotProps: g, slots: _, sx: v, variant: y = "balanced", ...b } = l, T = {
|
|
209
|
+
...l,
|
|
210
|
+
animationDuration: u,
|
|
211
|
+
colors: p,
|
|
212
|
+
paused: m,
|
|
213
|
+
size: h,
|
|
214
|
+
variant: y
|
|
215
|
+
}, E = _?.root ?? x, D = _?.blob ?? S, O = _?.content ?? C, { ref: k, sx: A, ...j } = r(E, i(t(g?.root, T), b), T), M = n(k, c), N = r(O, t(g?.content, T) ?? {}, T);
|
|
216
|
+
return /* @__PURE__ */ s(E, {
|
|
217
|
+
...j,
|
|
218
|
+
ref: M,
|
|
219
|
+
sx: [...e(A), ...e(v)],
|
|
220
|
+
children: [w.map((e) => {
|
|
221
|
+
let n = {
|
|
222
|
+
...T,
|
|
223
|
+
index: e
|
|
224
|
+
};
|
|
225
|
+
return /* @__PURE__ */ o(D, {
|
|
226
|
+
...r(D, t(g?.blob, n) ?? {}, n),
|
|
227
|
+
"aria-hidden": !0
|
|
228
|
+
}, e);
|
|
229
|
+
}), /* @__PURE__ */ o(O, {
|
|
230
|
+
...N,
|
|
231
|
+
children: f
|
|
232
|
+
})]
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
T.displayName = "SGradientBlobPulse";
|
|
236
|
+
//#endregion
|
|
237
|
+
export { T as SGradientBlobPulse, T as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default, default as SGradientIcon } from './s-gradient-icon';
|
|
2
|
-
export type { AnimationEasing, CustomGradient,
|
|
2
|
+
export type { AnimationEasing, CustomGradient, GradientRole, SGradientIconDirection, SGradientIconOwnerState, SGradientIconProps, } from './s-gradient-icon';
|
|
3
3
|
export type {} from '../theme/component-augmentation';
|
|
@@ -6,7 +6,7 @@ type IconComponent = OverridableComponent<SvgIconTypeMap<object, 'svg'>> & {
|
|
|
6
6
|
muiName: string;
|
|
7
7
|
};
|
|
8
8
|
/** Gradient direction options */
|
|
9
|
-
export type
|
|
9
|
+
export type SGradientIconDirection = 'horizontal' | 'vertical' | 'diagonal' | 'radial';
|
|
10
10
|
/** Semantic gradient roles */
|
|
11
11
|
export type GradientRole = 'brand-primary' | 'brand-subtle' | 'custom';
|
|
12
12
|
/** Animation easing options */
|
|
@@ -23,7 +23,7 @@ export interface CustomGradient {
|
|
|
23
23
|
middlePosition?: number;
|
|
24
24
|
}
|
|
25
25
|
/** Props interface for SGradientIcon component */
|
|
26
|
-
export interface SGradientIconProps extends Omit<SvgIconProps, 'component'> {
|
|
26
|
+
export interface SGradientIconProps extends Omit<SvgIconProps, 'component' | 'direction'> {
|
|
27
27
|
/** Whether the icon should show the gradient fill (hover state) */
|
|
28
28
|
hovered?: boolean;
|
|
29
29
|
/** The Material-UI icon component to render with gradient effect */
|
|
@@ -37,7 +37,7 @@ export interface SGradientIconProps extends Omit<SvgIconProps, 'component'> {
|
|
|
37
37
|
/** Custom gradient colors when role is 'custom' */
|
|
38
38
|
customGradient?: CustomGradient;
|
|
39
39
|
/** Direction of the gradient (default: 'diagonal') */
|
|
40
|
-
|
|
40
|
+
direction?: SGradientIconDirection;
|
|
41
41
|
/** Animation duration in milliseconds (default: 300) */
|
|
42
42
|
animationDuration?: number;
|
|
43
43
|
/** Animation easing function (default: 'ease') */
|
|
@@ -56,7 +56,7 @@ export type SGradientIconOwnerState = SGradientIconProps & {
|
|
|
56
56
|
animationDuration: number;
|
|
57
57
|
animationEasing: AnimationEasing;
|
|
58
58
|
autoHover: boolean;
|
|
59
|
-
|
|
59
|
+
direction: SGradientIconDirection;
|
|
60
60
|
gradientRole: GradientRole;
|
|
61
61
|
hovered: boolean;
|
|
62
62
|
strokeWidth: number;
|
|
@@ -14,7 +14,7 @@ var l = o(t(({ IconComponent: e, ...t }, n) => /* @__PURE__ */ i(e, {
|
|
|
14
14
|
let u = c({
|
|
15
15
|
props: t,
|
|
16
16
|
name: "SGradientIcon"
|
|
17
|
-
}), { hovered: d = !1, IconComponent: f, sx: p, strokeWidth: m = 0, gradientRole: h = "brand-primary", customGradient: g,
|
|
17
|
+
}), { hovered: d = !1, IconComponent: f, sx: p, strokeWidth: m = 0, gradientRole: h = "brand-primary", customGradient: g, direction: _ = "diagonal", animationDuration: v = 300, animationEasing: y = "ease", autoHover: b = !1, gradientId: x, alwaysGradient: S = !1, fallbackColor: C, ...w } = u, T = s(), E = (T.vars ?? T).palette, D = n(), O = x ?? `gradient-${D}`, k = {
|
|
18
18
|
"brand-primary": {
|
|
19
19
|
start: E.primary[400],
|
|
20
20
|
end: E.primary[700]
|
|
@@ -63,7 +63,7 @@ var l = o(t(({ IconComponent: e, ...t }, n) => /* @__PURE__ */ i(e, {
|
|
|
63
63
|
animationDuration: v,
|
|
64
64
|
animationEasing: y,
|
|
65
65
|
autoHover: b,
|
|
66
|
-
|
|
66
|
+
direction: _,
|
|
67
67
|
gradientRole: h,
|
|
68
68
|
hovered: d,
|
|
69
69
|
strokeWidth: m
|
|
@@ -17,8 +17,12 @@ export interface SIconButtonSlotProps {
|
|
|
17
17
|
/** Props or an owner-state callback for the tooltip slot. */
|
|
18
18
|
tooltip?: OwnerStateSlotProps<Omit<TooltipProps, 'children' | 'title'>>;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* MUI IconButton with an optional tooltip slot. Setting `href` makes the
|
|
22
|
+
* underlying ButtonBase render an anchor, so icon-only links keep the button
|
|
23
|
+
* hit target and hover state.
|
|
24
|
+
*/
|
|
25
|
+
export interface SIconButtonProps extends Omit<IconButtonProps, 'component'>, Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'rel' | 'target'> {
|
|
22
26
|
/** Components used for internal slots. */
|
|
23
27
|
slots?: SIconButtonSlots;
|
|
24
28
|
/** Props or owner-state callbacks for internal slots. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { t as e } from "../styled-Bog8QCl3.js";
|
|
2
|
+
import { t } from "../useThemeProps-Dw9dmKyT.js";
|
|
3
|
+
import { t as n } from "../IconButton-CE-4GamO.js";
|
|
4
|
+
import { t as r } from "../appendOwnerState-CFQTq3pb.js";
|
|
5
|
+
import { t as i } from "../Tooltip-B1sn94L0.js";
|
|
6
|
+
import * as a from "react";
|
|
7
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
7
8
|
//#region lib/s-icon-button/s-icon-button.tsx
|
|
8
9
|
var s = e(n, {
|
|
9
10
|
name: "SIconButton",
|
|
@@ -22,26 +23,26 @@ var s = e(n, {
|
|
|
22
23
|
function c(e, t) {
|
|
23
24
|
return typeof e == "function" ? e(t) : e;
|
|
24
25
|
}
|
|
25
|
-
var l =
|
|
26
|
-
let
|
|
26
|
+
var l = a.forwardRef(function(e, n) {
|
|
27
|
+
let a = t({
|
|
27
28
|
props: e,
|
|
28
29
|
name: "SIconButton"
|
|
29
|
-
}), { disabled: l = !1, slotProps: u, slots: d, tooltip: f, variant: p, ...m } =
|
|
30
|
-
...
|
|
30
|
+
}), { disabled: l = !1, slotProps: u, slots: d, tooltip: f, variant: p, ...m } = a, h = {
|
|
31
|
+
...a,
|
|
31
32
|
disabled: l,
|
|
32
33
|
hasTooltip: f != null,
|
|
33
34
|
variant: p
|
|
34
|
-
}, g = d?.tooltip ??
|
|
35
|
+
}, g = d?.tooltip ?? i, _ = r(d?.tooltip, c(u?.tooltip, h) ?? {}, h), v = m["aria-label"] ?? (typeof f == "string" ? f : void 0), y = /* @__PURE__ */ o(s, {
|
|
35
36
|
...m,
|
|
36
37
|
"aria-label": v,
|
|
37
38
|
disabled: l,
|
|
38
39
|
ownerState: h,
|
|
39
40
|
ref: n
|
|
40
41
|
});
|
|
41
|
-
return f == null ? y : /* @__PURE__ */
|
|
42
|
+
return f == null ? y : /* @__PURE__ */ o(g, {
|
|
42
43
|
..._,
|
|
43
44
|
title: f,
|
|
44
|
-
children: l ? /* @__PURE__ */
|
|
45
|
+
children: l ? /* @__PURE__ */ o("span", { children: y }) : y
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
48
|
l.displayName = "SIconButton";
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../styled-Bog8QCl3.js";
|
|
2
|
+
import { t } from "../useThemeProps-Dw9dmKyT.js";
|
|
3
|
+
import { toSxArray as n } from "../utils/sx.js";
|
|
4
|
+
import { t as r } from "../useForkRef-BuNFTXxE.js";
|
|
2
5
|
import "../theme/components/action-styles.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { Box as
|
|
8
|
-
import { useControlled as l, useForkRef as u } from "@mui/material/utils";
|
|
6
|
+
import { t as i } from "../useControlled-DqNPBJNp.js";
|
|
7
|
+
import { SLazyImage as a } from "../s-lazy-image/s-lazy-image.js";
|
|
8
|
+
import * as o from "react";
|
|
9
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
|
+
import { Box as l, IconButton as u } from "@mui/material";
|
|
9
11
|
//#region lib/s-image-comparison/s-image-comparison.tsx
|
|
10
|
-
var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0, Math.min(100, e)), p =
|
|
12
|
+
var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0, Math.min(100, e)), p = e(l, {
|
|
11
13
|
name: "SImageComparison",
|
|
12
14
|
slot: "Root"
|
|
13
|
-
})({}), m =
|
|
14
|
-
let h =
|
|
15
|
-
props:
|
|
15
|
+
})({}), m = o.forwardRef((e, m) => {
|
|
16
|
+
let h = t({
|
|
17
|
+
props: e,
|
|
16
18
|
name: "SImageComparison"
|
|
17
|
-
}), { sx: g, leftImage: _, rightImage: v, altLeft: y = "Left image", altRight: b = "Right image", value: x, defaultValue: S = 50, onChange: C, onMouseDown: w, onTouchStart: T, ...E } = h, D = Array.isArray(_) ? _ : [_], O = Array.isArray(y) ? y : [y], [k, A] =
|
|
19
|
+
}), { sx: g, leftImage: _, rightImage: v, altLeft: y = "Left image", altRight: b = "Right image", value: x, defaultValue: S = 50, onChange: C, onMouseDown: w, onTouchStart: T, ...E } = h, D = Array.isArray(_) ? _ : [_], O = Array.isArray(y) ? y : [y], [k, A] = o.useState(0), j = Math.min(k, Math.max(0, D.length - 1)), [M, N] = i({
|
|
18
20
|
controlled: x,
|
|
19
21
|
default: f(S),
|
|
20
22
|
name: "SImageComparison",
|
|
21
23
|
state: "value"
|
|
22
|
-
}), P = f(M), [F, I] =
|
|
24
|
+
}), P = f(M), [F, I] = o.useState(!1), L = o.useRef(null), R = r(L, m), z = D.length > 1, B = P > 10, V = o.useCallback((e, t) => {
|
|
23
25
|
let n = f(t);
|
|
24
26
|
N(n), C?.(e, n);
|
|
25
|
-
}, [C, N]), H =
|
|
27
|
+
}, [C, N]), H = o.useCallback((e, t) => {
|
|
26
28
|
if (!L.current) return;
|
|
27
29
|
let n = L.current.getBoundingClientRect();
|
|
28
30
|
V(t, (e - n.left) / n.width * 100);
|
|
29
|
-
}, [V]), U =
|
|
31
|
+
}, [V]), U = o.useCallback((e) => {
|
|
30
32
|
F && (e.preventDefault(), H(e.clientX, e));
|
|
31
|
-
}, [H, F]), W =
|
|
33
|
+
}, [H, F]), W = o.useCallback((e) => {
|
|
32
34
|
F && e.touches[0] && H(e.touches[0].clientX, e);
|
|
33
35
|
}, [H, F]), G = (e) => {
|
|
34
36
|
"button" in e && e.button !== 0 || (I(!0), "clientX" in e ? H(e.clientX, e.nativeEvent) : e.touches[0] && H(e.touches[0].clientX, e.nativeEvent));
|
|
35
|
-
}, K =
|
|
37
|
+
}, K = o.useCallback(() => {
|
|
36
38
|
I(!1);
|
|
37
39
|
}, []), q = (e) => {
|
|
38
40
|
V(e.nativeEvent, Number(e.target.value));
|
|
@@ -72,10 +74,10 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
72
74
|
isDragging: F,
|
|
73
75
|
sliderPosition: P
|
|
74
76
|
};
|
|
75
|
-
return
|
|
77
|
+
return o.useEffect(() => {
|
|
76
78
|
let e = Math.max(0, D.length - 1);
|
|
77
79
|
A((t) => Math.min(t, e));
|
|
78
|
-
}, [D.length]),
|
|
80
|
+
}, [D.length]), o.useEffect(() => {
|
|
79
81
|
if (!F) return;
|
|
80
82
|
let e = document.body.style.cursor;
|
|
81
83
|
return document.addEventListener("mousemove", U), document.addEventListener("touchmove", W), document.addEventListener("mouseup", K), document.addEventListener("touchend", K), document.addEventListener("touchcancel", K), document.body.style.cursor = "ew-resize", () => {
|
|
@@ -86,7 +88,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
86
88
|
U,
|
|
87
89
|
W,
|
|
88
90
|
F
|
|
89
|
-
]), /* @__PURE__ */
|
|
91
|
+
]), /* @__PURE__ */ c(p, {
|
|
90
92
|
ownerState: Z,
|
|
91
93
|
ref: R,
|
|
92
94
|
sx: [{
|
|
@@ -96,12 +98,12 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
96
98
|
overflow: "hidden",
|
|
97
99
|
touchAction: "pan-y",
|
|
98
100
|
userSelect: "none"
|
|
99
|
-
}, ...
|
|
101
|
+
}, ...n(g)],
|
|
100
102
|
onMouseDown: Y,
|
|
101
103
|
onTouchStart: X,
|
|
102
104
|
...E,
|
|
103
105
|
children: [
|
|
104
|
-
/* @__PURE__ */ a
|
|
106
|
+
/* @__PURE__ */ s(a, {
|
|
105
107
|
src: v,
|
|
106
108
|
alt: b,
|
|
107
109
|
sx: {
|
|
@@ -116,7 +118,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
116
118
|
}
|
|
117
119
|
} }
|
|
118
120
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ s(l, {
|
|
120
122
|
sx: {
|
|
121
123
|
position: "absolute",
|
|
122
124
|
inset: 0,
|
|
@@ -126,7 +128,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
126
128
|
pointerEvents: "none",
|
|
127
129
|
clipPath: `polygon(0 0, ${P}% 0, ${P}% 100%, 0 100%)`
|
|
128
130
|
},
|
|
129
|
-
children: D.length > 0 ? /* @__PURE__ */ a
|
|
131
|
+
children: D.length > 0 ? /* @__PURE__ */ s(a, {
|
|
130
132
|
src: D[j],
|
|
131
133
|
alt: O[j] ?? O[0],
|
|
132
134
|
slotProps: { image: {
|
|
@@ -135,7 +137,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
135
137
|
} }
|
|
136
138
|
}) : null
|
|
137
139
|
}),
|
|
138
|
-
z && /* @__PURE__ */
|
|
140
|
+
z && /* @__PURE__ */ s(l, {
|
|
139
141
|
sx: {
|
|
140
142
|
position: "absolute",
|
|
141
143
|
left: 1,
|
|
@@ -156,7 +158,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
156
158
|
onClick: (e) => e.stopPropagation(),
|
|
157
159
|
onMouseDown: (e) => e.stopPropagation(),
|
|
158
160
|
onTouchStart: (e) => e.stopPropagation(),
|
|
159
|
-
children: D.map((e, t) => /* @__PURE__ */
|
|
161
|
+
children: D.map((e, t) => /* @__PURE__ */ s(u, {
|
|
160
162
|
"aria-label": `Show comparison image ${t + 1}`,
|
|
161
163
|
"aria-pressed": j === t,
|
|
162
164
|
tabIndex: B ? 0 : -1,
|
|
@@ -200,7 +202,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
200
202
|
}
|
|
201
203
|
}, `${e}-${t}`))
|
|
202
204
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ c(l, {
|
|
204
206
|
sx: {
|
|
205
207
|
position: "absolute",
|
|
206
208
|
top: 0,
|
|
@@ -209,7 +211,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
209
211
|
cursor: "ew-resize",
|
|
210
212
|
left: `calc(${P}% - 3px)`
|
|
211
213
|
},
|
|
212
|
-
children: [/* @__PURE__ */
|
|
214
|
+
children: [/* @__PURE__ */ s(l, {
|
|
213
215
|
className: "SImageComparison-range",
|
|
214
216
|
component: "input",
|
|
215
217
|
type: "range",
|
|
@@ -234,7 +236,7 @@ var d = "@media (pointer: coarse)", f = (e) => Number.isNaN(e) ? 50 : Math.max(0
|
|
|
234
236
|
outlineOffset: 2
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ s(l, {
|
|
238
240
|
className: "SImageComparison-divider",
|
|
239
241
|
sx: {
|
|
240
242
|
position: "absolute",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { t as e } from "../s-image-viewer-CjK67-rs.js";
|
|
2
|
+
import { DefaultMediaItem as t } from "./default-media-item.js";
|
|
3
|
+
export { t as DefaultMediaItem, e as SImageViewer, e as default };
|