@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,60 @@
|
|
|
1
|
+
import { t as e } from "./useForkRef-BuNFTXxE.js";
|
|
2
|
+
import { t } from "./createSvgIcon-3y-gS0r1.js";
|
|
3
|
+
import { forwardRef as n, useCallback as r, useRef as i } from "react";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
import { flushSync as o } from "react-dom";
|
|
6
|
+
import { IconButton as s, styled as c, useColorScheme as l, useMediaQuery as u, useThemeProps as d } from "@mui/material";
|
|
7
|
+
//#region ../../node_modules/@mui/icons-material/DarkMode.mjs
|
|
8
|
+
var f = t(/* @__PURE__ */ a("path", { d: "M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1" }), "DarkMode"), p = t(/* @__PURE__ */ a("path", { d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z" }), "LightMode"), m = c(s, {
|
|
9
|
+
name: "SThemeSwitch",
|
|
10
|
+
slot: "Root"
|
|
11
|
+
})({}), h = n(function(t, n) {
|
|
12
|
+
let s = d({
|
|
13
|
+
props: t,
|
|
14
|
+
name: "SThemeSwitch"
|
|
15
|
+
}), { mode: c, onClick: h, setMode: g, "aria-label": _, ...v } = s, y = i(null), b = e(y, n), { mode: x, setMode: S, systemMode: C } = l(), w = u("(prefers-reduced-motion: reduce)"), T = c ?? x, E = (T === "system" ? C : T) === "dark", D = {
|
|
16
|
+
...s,
|
|
17
|
+
mode: T
|
|
18
|
+
}, O = r(() => {
|
|
19
|
+
let e = E ? "light" : "dark";
|
|
20
|
+
g ? g(e) : S(e);
|
|
21
|
+
}, [
|
|
22
|
+
E,
|
|
23
|
+
S,
|
|
24
|
+
g
|
|
25
|
+
]), k = r(async (e) => {
|
|
26
|
+
if (h?.(e), e.defaultPrevented) return;
|
|
27
|
+
if (w || !y.current || typeof document > "u" || !document.startViewTransition) {
|
|
28
|
+
O();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await document.startViewTransition(() => {
|
|
32
|
+
o(() => {
|
|
33
|
+
O();
|
|
34
|
+
});
|
|
35
|
+
}).ready;
|
|
36
|
+
let t = y.current;
|
|
37
|
+
if (!t) return;
|
|
38
|
+
let { top: n, left: r, width: i, height: a } = t.getBoundingClientRect(), s = r + i / 2, c = n + a / 2, l = Math.hypot(Math.max(s, window.innerWidth - s), Math.max(c, window.innerHeight - c));
|
|
39
|
+
document.documentElement.animate({ clipPath: [`circle(0px at ${s}px ${c}px)`, `circle(${l}px at ${s}px ${c}px)`] }, {
|
|
40
|
+
duration: 700,
|
|
41
|
+
easing: "ease-in-out",
|
|
42
|
+
pseudoElement: "::view-transition-new(root)"
|
|
43
|
+
});
|
|
44
|
+
}, [
|
|
45
|
+
h,
|
|
46
|
+
w,
|
|
47
|
+
O
|
|
48
|
+
]);
|
|
49
|
+
return /* @__PURE__ */ a(m, {
|
|
50
|
+
...v,
|
|
51
|
+
ref: b,
|
|
52
|
+
"aria-label": _ ?? (E ? "Switch to light mode" : "Switch to dark mode"),
|
|
53
|
+
onClick: k,
|
|
54
|
+
ownerState: D,
|
|
55
|
+
children: a(E ? p : f, {})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
h.displayName = "SThemeSwitch";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { h as t };
|
package/dist/s-tip/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../s-tip-jbL7vtoU.js";
|
|
2
2
|
export { e as STip, e as default };
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import * as r from "react";
|
|
4
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
import o from "@mui/material/Typography";
|
|
6
|
-
import s from "@mui/utils/appendOwnerState";
|
|
7
|
-
import c from "@mui/icons-material/LightbulbOutlined";
|
|
8
|
-
import l from "@mui/material/Stack";
|
|
9
|
-
//#region lib/s-tip/s-tip.tsx
|
|
10
|
-
var u = t(l, {
|
|
11
|
-
name: "STip",
|
|
12
|
-
slot: "Root",
|
|
13
|
-
shouldForwardProp: (e) => e !== "ownerState"
|
|
14
|
-
})({});
|
|
15
|
-
function d(e, t) {
|
|
16
|
-
return typeof e == "function" ? e(t) : e;
|
|
17
|
-
}
|
|
18
|
-
var f = r.forwardRef(function(t, r) {
|
|
19
|
-
let l = n({
|
|
20
|
-
props: t,
|
|
21
|
-
name: "STip"
|
|
22
|
-
}), { children: f, direction: p = "row", label: m = "Tip.", slotProps: h, slots: g, spacing: _ = 1, sx: v, ...y } = l, b = {
|
|
23
|
-
...l,
|
|
24
|
-
direction: p,
|
|
25
|
-
hasLabel: m != null,
|
|
26
|
-
spacing: _
|
|
27
|
-
}, x = g?.icon ?? c, S = g?.text ?? o, C = d(h?.icon, b), w = d(h?.text, b), T = s(g?.icon, C ?? {}, b), E = s(g?.text, w ?? {}, b);
|
|
28
|
-
return /* @__PURE__ */ a(u, {
|
|
29
|
-
...y,
|
|
30
|
-
ref: r,
|
|
31
|
-
direction: p,
|
|
32
|
-
ownerState: b,
|
|
33
|
-
spacing: _,
|
|
34
|
-
sx: [{
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
bgcolor: "background.default",
|
|
37
|
-
borderRadius: 1,
|
|
38
|
-
color: "text.primary",
|
|
39
|
-
p: 1
|
|
40
|
-
}, ...e(v)],
|
|
41
|
-
children: [/* @__PURE__ */ i(x, {
|
|
42
|
-
...T,
|
|
43
|
-
sx: [{ fontSize: 16 }, ...e(C?.sx)]
|
|
44
|
-
}), /* @__PURE__ */ a(S, {
|
|
45
|
-
...E,
|
|
46
|
-
children: [
|
|
47
|
-
m != null && /* @__PURE__ */ i(o, {
|
|
48
|
-
component: "span",
|
|
49
|
-
sx: { fontWeight: "bold" },
|
|
50
|
-
variant: "inherit",
|
|
51
|
-
children: m
|
|
52
|
-
}),
|
|
53
|
-
" ",
|
|
54
|
-
f
|
|
55
|
-
]
|
|
56
|
-
})]
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
f.displayName = "STip";
|
|
60
|
-
//#endregion
|
|
61
|
-
export { f as STip, f as default };
|
|
1
|
+
import { t as e } from "../s-tip-jbL7vtoU.js";
|
|
2
|
+
export { e as STip, e as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as e } from "./styled-Bog8QCl3.js";
|
|
2
|
+
import { t } from "./Stack-C0LGzM4c.js";
|
|
3
|
+
import { t as n } from "./useThemeProps-Dw9dmKyT.js";
|
|
4
|
+
import { toSxArray as r } from "./utils/sx.js";
|
|
5
|
+
import { t as i } from "./appendOwnerState-CFQTq3pb.js";
|
|
6
|
+
import { t as a } from "./createSvgIcon-3y-gS0r1.js";
|
|
7
|
+
import { t as o } from "./Typography-_P0svrkO.js";
|
|
8
|
+
import * as s from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
//#region ../../node_modules/@mui/icons-material/LightbulbOutlined.mjs
|
|
11
|
+
var u = a(/* @__PURE__ */ c("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1" }), "LightbulbOutlined"), d = e(t, {
|
|
12
|
+
name: "STip",
|
|
13
|
+
slot: "Root",
|
|
14
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
15
|
+
})({});
|
|
16
|
+
function f(e, t) {
|
|
17
|
+
return typeof e == "function" ? e(t) : e;
|
|
18
|
+
}
|
|
19
|
+
var p = s.forwardRef(function(e, t) {
|
|
20
|
+
let a = n({
|
|
21
|
+
props: e,
|
|
22
|
+
name: "STip"
|
|
23
|
+
}), { children: s, direction: p = "row", label: m = "Tip.", slotProps: h, slots: g, spacing: _ = 1, sx: v, ...y } = a, b = {
|
|
24
|
+
...a,
|
|
25
|
+
direction: p,
|
|
26
|
+
hasLabel: m != null,
|
|
27
|
+
spacing: _
|
|
28
|
+
}, x = g?.icon ?? u, S = g?.text ?? o, C = f(h?.icon, b), w = f(h?.text, b), T = i(g?.icon, C ?? {}, b), E = i(g?.text, w ?? {}, b);
|
|
29
|
+
return /* @__PURE__ */ l(d, {
|
|
30
|
+
...y,
|
|
31
|
+
ref: t,
|
|
32
|
+
direction: p,
|
|
33
|
+
ownerState: b,
|
|
34
|
+
spacing: _,
|
|
35
|
+
sx: [{
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
bgcolor: "background.default",
|
|
38
|
+
borderRadius: 1,
|
|
39
|
+
color: "text.primary",
|
|
40
|
+
p: 1
|
|
41
|
+
}, ...r(v)],
|
|
42
|
+
children: [/* @__PURE__ */ c(x, {
|
|
43
|
+
...T,
|
|
44
|
+
sx: [{ fontSize: 16 }, ...r(C?.sx)]
|
|
45
|
+
}), /* @__PURE__ */ l(S, {
|
|
46
|
+
...E,
|
|
47
|
+
children: [
|
|
48
|
+
m != null && /* @__PURE__ */ c(o, {
|
|
49
|
+
component: "span",
|
|
50
|
+
sx: { fontWeight: "bold" },
|
|
51
|
+
variant: "inherit",
|
|
52
|
+
children: m
|
|
53
|
+
}),
|
|
54
|
+
" ",
|
|
55
|
+
s
|
|
56
|
+
]
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
p.displayName = "STip";
|
|
61
|
+
//#endregion
|
|
62
|
+
export { p as t };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
2
|
import { tint as t } from "../theme/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import h from "@mui/
|
|
3
|
+
import { t as n } from "../appendOwnerState-CFQTq3pb.js";
|
|
4
|
+
import { t as r } from "../mergeSlotProps-DC8r4QzS.js";
|
|
5
|
+
import { t as i } from "../tool-bar-action-buttons-v1koaasr.js";
|
|
6
|
+
import { getToolBarInputValue as a, groupInputsByType as o, hasVisibleInputSection as ee, isProcessActionDisabled as te, isRequiredInputFilled as s } from "./utils.js";
|
|
7
|
+
import { ToolbarInputItem as c } from "./tool-bar-inputs.js";
|
|
8
|
+
import * as l from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { Box as f, Dialog as ne, DialogContent as re, DialogTitle as ie, Portal as p, styled as m, useThemeProps as h } from "@mui/material";
|
|
11
11
|
//#region lib/s-tool-bar/s-tool-bar.tsx
|
|
12
|
-
var g = f
|
|
12
|
+
var g = m(f, {
|
|
13
13
|
name: "SToolBar",
|
|
14
14
|
slot: "Root",
|
|
15
15
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
16
|
-
})({}), _ = f
|
|
16
|
+
})({}), _ = m(f, {
|
|
17
17
|
name: "SToolBar",
|
|
18
18
|
slot: "Toolbar",
|
|
19
19
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -21,21 +21,21 @@ var g = f(d, {
|
|
|
21
21
|
function v(e, t) {
|
|
22
22
|
return typeof e == "function" ? e(t) : e;
|
|
23
23
|
}
|
|
24
|
-
var y =
|
|
25
|
-
let b =
|
|
26
|
-
props:
|
|
24
|
+
var y = l.forwardRef(function(m, y) {
|
|
25
|
+
let b = h({
|
|
26
|
+
props: m,
|
|
27
27
|
name: "SToolBar"
|
|
28
|
-
}), { actions: x, downloadTooltip: ae = "Download", getInputDisabled: S, hideProcessButton: oe = !1, infoContent: C, infoTitle: se = "Tool Information", infoTooltip: ce = "Information", inputValues: w = {}, inputs: T = [], onDownload: le, onInputChange: E, onProcess: D, onReset: O, position: k = "bottom", processButtonDisabled: A = !1, processTooltip: j = "Process", processing: M = !1, relative: N = !1, resetTooltip: P = "Reset", slotProps: F, slots: I, sx: L, uploading: R = !1, ...z } = b, [B, V] =
|
|
28
|
+
}), { actions: x, downloadTooltip: ae = "Download", getInputDisabled: S, hideProcessButton: oe = !1, infoContent: C, infoTitle: se = "Tool Information", infoTooltip: ce = "Information", inputValues: w = {}, inputs: T = [], onDownload: le, onInputChange: E, onProcess: D, onReset: O, position: k = "bottom", processButtonDisabled: A = !1, processTooltip: j = "Process", processing: M = !1, relative: N = !1, resetTooltip: P = "Reset", slotProps: F, slots: I, sx: L, uploading: R = !1, ...z } = b, [B, V] = l.useState(!1), H = {
|
|
29
29
|
...b,
|
|
30
30
|
position: k,
|
|
31
31
|
processing: M,
|
|
32
32
|
relative: N,
|
|
33
33
|
uploading: R
|
|
34
|
-
}, U =
|
|
34
|
+
}, U = l.useCallback(() => V(!0), []), W = l.useCallback(() => V(!1), []), G = I?.toolbar ?? _, ue = I?.dialog ?? ne, de = I?.dialogTitle ?? ie, fe = I?.dialogContent ?? re, pe = v(F?.toolbar, H), me = v(F?.dialog, H), he = v(F?.dialogTitle, H), ge = v(F?.dialogContent, H), { sx: _e, ...ve } = pe ?? {}, ye = n(G, ve, H), be = n(I?.dialog, r(me, { onClose: W }), H), xe = n(I?.dialogTitle, he ?? {}, H), Se = n(I?.dialogContent, ge ?? {}, H), Ce = l.useMemo(() => T.length === 0 ? !0 : T.every((e) => s(e, a(e, w))), [T, w]), { imageInputs: K, textareaInputs: q, paramInputs: J } = l.useMemo(() => o(T), [T]), we = ee(K, J), Te = te(A, Ce, R, M), Y = l.useCallback(() => {}, []), X = l.useCallback(() => {}, []), Z = l.useCallback((e, t, n, r) => {
|
|
35
35
|
E?.(e, t, n, r);
|
|
36
|
-
}, [E]), Q =
|
|
36
|
+
}, [E]), Q = l.useCallback((e) => /* @__PURE__ */ u(c, {
|
|
37
37
|
input: e,
|
|
38
|
-
value:
|
|
38
|
+
value: a(e, w),
|
|
39
39
|
onChange: (t, n, r) => Z(t, e.key, n, r),
|
|
40
40
|
onFocus: Y,
|
|
41
41
|
onBlur: X,
|
|
@@ -46,7 +46,7 @@ var y = c.forwardRef(function(f, y) {
|
|
|
46
46
|
Z,
|
|
47
47
|
Y,
|
|
48
48
|
X
|
|
49
|
-
]), $ = /* @__PURE__ */
|
|
49
|
+
]), $ = /* @__PURE__ */ d(g, {
|
|
50
50
|
...z,
|
|
51
51
|
ownerState: H,
|
|
52
52
|
ref: y,
|
|
@@ -61,7 +61,7 @@ var y = c.forwardRef(function(f, y) {
|
|
|
61
61
|
mt: N && k === "top" ? 2 : 0,
|
|
62
62
|
mb: N && k === "bottom" ? 2 : 0
|
|
63
63
|
}, ...e(L)],
|
|
64
|
-
children: [/* @__PURE__ */
|
|
64
|
+
children: [/* @__PURE__ */ d(G, {
|
|
65
65
|
...ye,
|
|
66
66
|
sx: [(e) => ({
|
|
67
67
|
display: "flex",
|
|
@@ -79,27 +79,27 @@ var y = c.forwardRef(function(f, y) {
|
|
|
79
79
|
borderColor: (e.vars ?? e).palette.primary[400]
|
|
80
80
|
}
|
|
81
81
|
}), ...e(_e)],
|
|
82
|
-
children: [q.length > 0 && /* @__PURE__ */
|
|
82
|
+
children: [q.length > 0 && /* @__PURE__ */ u(f, {
|
|
83
83
|
sx: {
|
|
84
84
|
display: "flex",
|
|
85
85
|
flexDirection: "column",
|
|
86
86
|
gap: 2
|
|
87
87
|
},
|
|
88
88
|
children: q.map(Q)
|
|
89
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ d(f, {
|
|
90
90
|
sx: {
|
|
91
91
|
display: "flex",
|
|
92
92
|
alignItems: "center",
|
|
93
93
|
gap: .5
|
|
94
94
|
},
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ u(f, {
|
|
96
96
|
sx: {
|
|
97
97
|
display: "flex",
|
|
98
98
|
alignItems: "center",
|
|
99
99
|
gap: 2,
|
|
100
100
|
flex: 1
|
|
101
101
|
},
|
|
102
|
-
children: we && /* @__PURE__ */
|
|
102
|
+
children: we && /* @__PURE__ */ d(f, {
|
|
103
103
|
sx: {
|
|
104
104
|
display: "flex",
|
|
105
105
|
alignItems: "center",
|
|
@@ -107,7 +107,7 @@ var y = c.forwardRef(function(f, y) {
|
|
|
107
107
|
},
|
|
108
108
|
children: [K.map(Q), J.map(Q)]
|
|
109
109
|
})
|
|
110
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), /* @__PURE__ */ u(i, {
|
|
111
111
|
customActionButtons: x,
|
|
112
112
|
infoContent: C,
|
|
113
113
|
infoTooltip: ce,
|
|
@@ -122,21 +122,21 @@ var y = c.forwardRef(function(f, y) {
|
|
|
122
122
|
onProcess: D
|
|
123
123
|
})]
|
|
124
124
|
})]
|
|
125
|
-
}), C && /* @__PURE__ */
|
|
125
|
+
}), C && /* @__PURE__ */ d(ue, {
|
|
126
126
|
maxWidth: "sm",
|
|
127
127
|
fullWidth: !0,
|
|
128
128
|
...be,
|
|
129
129
|
open: B,
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ u(de, {
|
|
131
131
|
...xe,
|
|
132
132
|
children: se
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ u(fe, {
|
|
134
134
|
...Se,
|
|
135
135
|
children: C
|
|
136
136
|
})]
|
|
137
137
|
})]
|
|
138
138
|
});
|
|
139
|
-
return N ? $ : /* @__PURE__ */
|
|
139
|
+
return N ? $ : /* @__PURE__ */ u(p, { children: $ });
|
|
140
140
|
});
|
|
141
141
|
y.displayName = "SToolBar";
|
|
142
142
|
//#endregion
|
|
@@ -1,55 +1,2 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
import { AutoAwesome as r } from "@mui/icons-material";
|
|
4
|
-
import { Box as i, IconButton as a, Tooltip as o } from "@mui/material";
|
|
5
|
-
import s from "@mui/icons-material/Autorenew";
|
|
6
|
-
import c from "@mui/icons-material/Download";
|
|
7
|
-
import l from "@mui/icons-material/InfoOutlined";
|
|
8
|
-
//#region lib/s-tool-bar/tool-bar-action-buttons.tsx
|
|
9
|
-
var u = e.memo(({ customActionButtons: e, infoContent: u, infoTooltip: d, downloadTooltip: f, resetTooltip: p, processTooltip: m, hideProcessButton: h, processActionDisabled: g, onInfoOpen: _, onDownload: v, onReset: y, onProcess: b }) => /* @__PURE__ */ n(i, {
|
|
10
|
-
sx: {
|
|
11
|
-
display: "flex",
|
|
12
|
-
alignItems: "center",
|
|
13
|
-
gap: 1,
|
|
14
|
-
ml: "auto"
|
|
15
|
-
},
|
|
16
|
-
children: [
|
|
17
|
-
e,
|
|
18
|
-
u && /* @__PURE__ */ t(o, {
|
|
19
|
-
title: d,
|
|
20
|
-
children: /* @__PURE__ */ t(a, {
|
|
21
|
-
"aria-label": d,
|
|
22
|
-
onClick: _,
|
|
23
|
-
children: /* @__PURE__ */ t(l, {})
|
|
24
|
-
})
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ t(o, {
|
|
27
|
-
title: f,
|
|
28
|
-
children: /* @__PURE__ */ t(a, {
|
|
29
|
-
"aria-label": f,
|
|
30
|
-
onClick: v,
|
|
31
|
-
children: /* @__PURE__ */ t(c, {})
|
|
32
|
-
})
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ t(o, {
|
|
35
|
-
title: p,
|
|
36
|
-
children: /* @__PURE__ */ t(a, {
|
|
37
|
-
"aria-label": p,
|
|
38
|
-
onClick: y,
|
|
39
|
-
children: /* @__PURE__ */ t(s, {})
|
|
40
|
-
})
|
|
41
|
-
}),
|
|
42
|
-
!h && /* @__PURE__ */ t(o, {
|
|
43
|
-
title: m,
|
|
44
|
-
children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(a, {
|
|
45
|
-
"aria-label": m,
|
|
46
|
-
onClick: b,
|
|
47
|
-
disabled: g,
|
|
48
|
-
size: "large",
|
|
49
|
-
children: /* @__PURE__ */ t(r, { color: g ? "disabled" : "primary" })
|
|
50
|
-
}) })
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
}));
|
|
54
|
-
//#endregion
|
|
55
|
-
export { u as ToolbarActionButtons };
|
|
1
|
+
import { t as e } from "../tool-bar-action-buttons-v1koaasr.js";
|
|
2
|
+
export { e as ToolbarActionButtons };
|
|
@@ -1,148 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
|
|
4
|
-
import i, { useEffect as a } from "react";
|
|
5
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
import { Box as c, ButtonBase as l } from "@mui/material";
|
|
7
|
-
import u from "@mui/icons-material/AddPhotoAlternate";
|
|
8
|
-
import d from "@mui/icons-material/Close";
|
|
9
|
-
//#region lib/s-tool-bar/tool-bar-image-input.tsx
|
|
10
|
-
var f = i.memo(({ input: f, value: p, onChange: m, disabled: h }) => {
|
|
11
|
-
let g = i.useRef(null), [_, v] = i.useState([]), y = f.multiple ?? !1, b = f.maxImages ?? 5;
|
|
12
|
-
a(() => {
|
|
13
|
-
let e = [];
|
|
14
|
-
return v(((t) => {
|
|
15
|
-
if (!t) return [];
|
|
16
|
-
let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
|
|
17
|
-
return n.forEach((t) => {
|
|
18
|
-
if (t instanceof File) {
|
|
19
|
-
let n = URL.createObjectURL(t);
|
|
20
|
-
e.push(n);
|
|
21
|
-
let a = `file:${t.name}:${t.size}:${t.lastModified}`, o = i.get(a) ?? 0;
|
|
22
|
-
i.set(a, o + 1), r.push({
|
|
23
|
-
key: o > 0 ? `${a}:${o}` : a,
|
|
24
|
-
src: n
|
|
25
|
-
});
|
|
26
|
-
} else if (typeof t == "string") {
|
|
27
|
-
let e = `url:${t}`, n = i.get(e) ?? 0;
|
|
28
|
-
i.set(e, n + 1), r.push({
|
|
29
|
-
key: n > 0 ? `${e}:${n}` : e,
|
|
30
|
-
src: t
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}), r;
|
|
34
|
-
})(p)), () => {
|
|
35
|
-
e.forEach((e) => URL.revokeObjectURL(e));
|
|
36
|
-
};
|
|
37
|
-
}, [p]);
|
|
38
|
-
let x = (e) => {
|
|
39
|
-
let t = e.target.files;
|
|
40
|
-
if (!(!t || t.length === 0)) {
|
|
41
|
-
if (y) {
|
|
42
|
-
let r = n(p), i = Array.from(t).slice(0, b - r.length);
|
|
43
|
-
m(e, [...r, ...i], i[0]);
|
|
44
|
-
} else m(e, t[0], t[0]);
|
|
45
|
-
e.target.value = "";
|
|
46
|
-
}
|
|
47
|
-
}, S = (e, t) => {
|
|
48
|
-
if (e.stopPropagation(), y && Array.isArray(p)) {
|
|
49
|
-
let n = p.filter((e, n) => n !== t);
|
|
50
|
-
m(e, n.length > 0 ? n : null);
|
|
51
|
-
} else m(e, null);
|
|
52
|
-
}, C = () => {
|
|
53
|
-
h || y && _.length >= b || g.current?.click();
|
|
54
|
-
}, w = y && _.length < b;
|
|
55
|
-
return /* @__PURE__ */ s(c, {
|
|
56
|
-
sx: {
|
|
57
|
-
display: "flex",
|
|
58
|
-
alignItems: "center",
|
|
59
|
-
gap: .75
|
|
60
|
-
},
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ o("input", {
|
|
63
|
-
type: "file",
|
|
64
|
-
accept: "image/*",
|
|
65
|
-
...f.slotProps?.image ?? {},
|
|
66
|
-
ref: g,
|
|
67
|
-
multiple: y,
|
|
68
|
-
onChange: x,
|
|
69
|
-
disabled: h,
|
|
70
|
-
style: { display: "none" }
|
|
71
|
-
}),
|
|
72
|
-
_.map((t, n) => /* @__PURE__ */ s(c, {
|
|
73
|
-
sx: {
|
|
74
|
-
width: 50,
|
|
75
|
-
height: 50,
|
|
76
|
-
border: 1,
|
|
77
|
-
borderColor: h ? "action.disabled" : "divider",
|
|
78
|
-
borderRadius: 1,
|
|
79
|
-
display: "flex",
|
|
80
|
-
alignItems: "center",
|
|
81
|
-
justifyContent: "center",
|
|
82
|
-
cursor: h ? "not-allowed" : "default",
|
|
83
|
-
position: "relative",
|
|
84
|
-
overflow: "hidden",
|
|
85
|
-
"& .SToolBar-removeImageOverlay": { opacity: 1 },
|
|
86
|
-
"&:focus-within .SToolBar-removeImageOverlay": { opacity: 1 },
|
|
87
|
-
[e]: {
|
|
88
|
-
"& .SToolBar-removeImageOverlay": { opacity: 0 },
|
|
89
|
-
"&:hover .SToolBar-removeImageOverlay, &:focus-within .SToolBar-removeImageOverlay": { opacity: 1 }
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
children: [/* @__PURE__ */ o(c, {
|
|
93
|
-
component: "img",
|
|
94
|
-
src: t.src,
|
|
95
|
-
alt: `Preview ${n + 1}`,
|
|
96
|
-
sx: {
|
|
97
|
-
width: "100%",
|
|
98
|
-
height: "100%",
|
|
99
|
-
objectFit: "cover"
|
|
100
|
-
}
|
|
101
|
-
}), !h && /* @__PURE__ */ o(c, {
|
|
102
|
-
className: "SToolBar-removeImageOverlay",
|
|
103
|
-
sx: (e) => ({
|
|
104
|
-
position: "absolute",
|
|
105
|
-
inset: 0,
|
|
106
|
-
display: "flex",
|
|
107
|
-
alignItems: "center",
|
|
108
|
-
justifyContent: "center",
|
|
109
|
-
pointerEvents: "none",
|
|
110
|
-
transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
|
|
111
|
-
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
112
|
-
}),
|
|
113
|
-
children: /* @__PURE__ */ o(r, {
|
|
114
|
-
"aria-label": `Remove image ${n + 1}`,
|
|
115
|
-
onClick: (e) => S(e, n),
|
|
116
|
-
size: "small",
|
|
117
|
-
sx: { pointerEvents: "auto" },
|
|
118
|
-
variant: "overlay",
|
|
119
|
-
children: /* @__PURE__ */ o(d, { fontSize: "small" })
|
|
120
|
-
})
|
|
121
|
-
})]
|
|
122
|
-
}, t.key)),
|
|
123
|
-
(_.length === 0 || w) && /* @__PURE__ */ o(l, {
|
|
124
|
-
"aria-label": "Add image",
|
|
125
|
-
disabled: h,
|
|
126
|
-
onClick: C,
|
|
127
|
-
sx: (e) => ({
|
|
128
|
-
width: 50,
|
|
129
|
-
height: 50,
|
|
130
|
-
border: 1,
|
|
131
|
-
borderColor: h ? "action.disabled" : "divider",
|
|
132
|
-
borderRadius: 1,
|
|
133
|
-
color: h ? "action.disabled" : "action.active",
|
|
134
|
-
display: "flex",
|
|
135
|
-
alignItems: "center",
|
|
136
|
-
justifyContent: "center",
|
|
137
|
-
transition: e.transitions.create(["background-color", "border-color"], { duration: e.transitions.duration.shorter }),
|
|
138
|
-
"@media (hover: hover) and (pointer: fine)": { "&:hover": { bgcolor: "action.hover" } },
|
|
139
|
-
"&.Mui-focusVisible": t(e),
|
|
140
|
-
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
141
|
-
}),
|
|
142
|
-
children: /* @__PURE__ */ o(u, { sx: { fontSize: 20 } })
|
|
143
|
-
})
|
|
144
|
-
]
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
//#endregion
|
|
148
|
-
export { f as ImageInput };
|
|
1
|
+
import { t as e } from "../tool-bar-image-input-DtXTyEe1.js";
|
|
2
|
+
export { e as ImageInput };
|