@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
package/dist/s-dialog/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../s-dialog-BNlXsVVP.js";
|
|
2
2
|
export { e as SDialog, e as default };
|
|
@@ -1,80 +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 { mergeSlotProps as s } from "@mui/material/utils";
|
|
7
|
-
import c from "@mui/utils/appendOwnerState";
|
|
8
|
-
import l from "@mui/icons-material/Close";
|
|
9
|
-
import u from "@mui/material/Stack";
|
|
10
|
-
import d from "@mui/material/Dialog";
|
|
11
|
-
import f from "@mui/material/DialogActions";
|
|
12
|
-
import p from "@mui/material/DialogContent";
|
|
13
|
-
import m from "@mui/material/DialogTitle";
|
|
14
|
-
//#region lib/s-dialog/s-dialog.tsx
|
|
15
|
-
var h = e(d, {
|
|
16
|
-
name: "SDialog",
|
|
17
|
-
slot: "Root"
|
|
18
|
-
})({});
|
|
19
|
-
function g(e, t) {
|
|
20
|
-
return typeof e == "function" ? e(t) : e;
|
|
21
|
-
}
|
|
22
|
-
var _ = r.forwardRef(function(e, d) {
|
|
23
|
-
let _ = t({
|
|
24
|
-
props: e,
|
|
25
|
-
name: "SDialog"
|
|
26
|
-
}), { actions: v, "aria-labelledby": y, children: b, closeText: x = "Close dialog", disableTypography: S = !1, fullWidth: C = !0, maxWidth: w = "sm", onCloseButtonClick: T, open: E, showCloseButton: D, slotProps: O, slots: k, title: A, ...j } = _, M = r.useId(), N = A != null, P = {
|
|
27
|
-
..._,
|
|
28
|
-
hasActions: v != null,
|
|
29
|
-
hasTitle: N
|
|
30
|
-
}, F = D ?? T != null, { actions: I = f, closeButton: ee = n, content: L = p, title: R = m, titleContent: z = o, ...B } = k ?? {}, { actions: V, closeButton: H, content: U, title: W, titleContent: G, ...K } = O ?? {}, q = c(k?.actions, g(V, P) ?? {}, P), J = c(k?.closeButton, g(H, P) ?? {}, P), Y = c(k?.content, g(U, P) ?? {}, P), X = c(k?.title, g(W, P) ?? {}, P), Z = c(k?.titleContent, g(G, P) ?? {}, P), Q = s(J, { onClick: T }), $ = X.id ?? (N ? M : void 0), te = y ?? $;
|
|
31
|
-
return /* @__PURE__ */ a(h, {
|
|
32
|
-
...j,
|
|
33
|
-
ref: d,
|
|
34
|
-
"aria-labelledby": te,
|
|
35
|
-
fullWidth: C,
|
|
36
|
-
maxWidth: w,
|
|
37
|
-
onClose: _.onClose,
|
|
38
|
-
open: E,
|
|
39
|
-
ownerState: P,
|
|
40
|
-
slots: B,
|
|
41
|
-
slotProps: K,
|
|
42
|
-
children: [
|
|
43
|
-
(N || F) && /* @__PURE__ */ i(R, {
|
|
44
|
-
...X,
|
|
45
|
-
id: $,
|
|
46
|
-
children: /* @__PURE__ */ a(u, {
|
|
47
|
-
direction: "row",
|
|
48
|
-
spacing: 3,
|
|
49
|
-
sx: {
|
|
50
|
-
alignItems: "center",
|
|
51
|
-
justifyContent: N ? "space-between" : "flex-end"
|
|
52
|
-
},
|
|
53
|
-
children: [N && typeof A == "string" && !S ? /* @__PURE__ */ i(z, {
|
|
54
|
-
variant: "h5",
|
|
55
|
-
...Z,
|
|
56
|
-
children: A
|
|
57
|
-
}) : N && /* @__PURE__ */ i("div", { children: A }), F && /* @__PURE__ */ i(ee, {
|
|
58
|
-
"aria-label": x,
|
|
59
|
-
...Q,
|
|
60
|
-
children: /* @__PURE__ */ i(l, {})
|
|
61
|
-
})]
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
b != null && /* @__PURE__ */ i(L, {
|
|
65
|
-
...Y,
|
|
66
|
-
children: typeof b == "string" ? /* @__PURE__ */ i(o, {
|
|
67
|
-
variant: "body1",
|
|
68
|
-
children: b
|
|
69
|
-
}) : b
|
|
70
|
-
}),
|
|
71
|
-
v != null && /* @__PURE__ */ i(I, {
|
|
72
|
-
...q,
|
|
73
|
-
children: v
|
|
74
|
-
})
|
|
75
|
-
]
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
_.displayName = "SDialog";
|
|
79
|
-
//#endregion
|
|
80
|
-
export { _ as SDialog, _ as default };
|
|
1
|
+
import { t as e } from "../s-dialog-BNlXsVVP.js";
|
|
2
|
+
export { e as SDialog, e as default };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
+
import { t } from "./prop-types-BzYPyWN7.js";
|
|
3
|
+
import { r as n, t as r } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
4
|
+
import { t as i } from "./clsx-DGZSe4Nt.js";
|
|
5
|
+
import { t as a } from "./styled-Bog8QCl3.js";
|
|
6
|
+
import { t as o } from "./Stack-C0LGzM4c.js";
|
|
7
|
+
import { t as s } from "./useThemeProps-Dw9dmKyT.js";
|
|
8
|
+
import { t as c } from "./IconButton-CE-4GamO.js";
|
|
9
|
+
import { t as l } from "./appendOwnerState-CFQTq3pb.js";
|
|
10
|
+
import { t as u } from "./mergeSlotProps-DC8r4QzS.js";
|
|
11
|
+
import { t as d } from "./Typography-_P0svrkO.js";
|
|
12
|
+
import { t as f } from "./Close-CIYOM-Sc.js";
|
|
13
|
+
import { a as p, i as m, n as h, r as g, t as _ } from "./DialogContent-b3xbJVC6.js";
|
|
14
|
+
import * as v from "react";
|
|
15
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
16
|
+
//#region ../../node_modules/@mui/material/DialogTitle/DialogTitle.mjs
|
|
17
|
+
var x = /* @__PURE__ */ e(t(), 1), S = (e) => {
|
|
18
|
+
let { classes: t } = e;
|
|
19
|
+
return n({ root: ["root"] }, h, t);
|
|
20
|
+
}, C = a(d, {
|
|
21
|
+
name: "MuiDialogTitle",
|
|
22
|
+
slot: "Root"
|
|
23
|
+
})({
|
|
24
|
+
padding: "16px 24px",
|
|
25
|
+
flex: "0 0 auto"
|
|
26
|
+
}), w = /* @__PURE__ */ v.forwardRef(function(e, t) {
|
|
27
|
+
let n = r({
|
|
28
|
+
props: e,
|
|
29
|
+
name: "MuiDialogTitle"
|
|
30
|
+
}), { className: a, id: o, ...s } = n, c = n, l = S(c), { titleId: u = o } = v.useContext(p);
|
|
31
|
+
return /* @__PURE__ */ y(C, {
|
|
32
|
+
component: "h2",
|
|
33
|
+
className: i(l.root, a),
|
|
34
|
+
ownerState: c,
|
|
35
|
+
ref: t,
|
|
36
|
+
variant: "h6",
|
|
37
|
+
id: o ?? u,
|
|
38
|
+
...s
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
42
|
+
children: x.default.node,
|
|
43
|
+
classes: x.default.object,
|
|
44
|
+
className: x.default.string,
|
|
45
|
+
id: x.default.string,
|
|
46
|
+
sx: x.default.oneOfType([
|
|
47
|
+
x.default.arrayOf(x.default.oneOfType([
|
|
48
|
+
x.default.func,
|
|
49
|
+
x.default.object,
|
|
50
|
+
x.default.bool
|
|
51
|
+
])),
|
|
52
|
+
x.default.func,
|
|
53
|
+
x.default.object
|
|
54
|
+
])
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region lib/s-dialog/s-dialog.tsx
|
|
58
|
+
var T = a(m, {
|
|
59
|
+
name: "SDialog",
|
|
60
|
+
slot: "Root"
|
|
61
|
+
})({});
|
|
62
|
+
function E(e, t) {
|
|
63
|
+
return typeof e == "function" ? e(t) : e;
|
|
64
|
+
}
|
|
65
|
+
var D = v.forwardRef(function(e, t) {
|
|
66
|
+
let n = s({
|
|
67
|
+
props: e,
|
|
68
|
+
name: "SDialog"
|
|
69
|
+
}), { actions: r, "aria-labelledby": i, children: a, closeText: p = "Close dialog", disableTypography: m = !1, fullWidth: h = !0, maxWidth: x = "sm", onCloseButtonClick: S, open: C, showCloseButton: D, slotProps: O, slots: k, title: A, ...ee } = n, j = v.useId(), M = A != null, N = {
|
|
70
|
+
...n,
|
|
71
|
+
hasActions: r != null,
|
|
72
|
+
hasTitle: M
|
|
73
|
+
}, P = D ?? S != null, { actions: F = g, closeButton: I = c, content: L = _, title: R = w, titleContent: z = d, ...B } = k ?? {}, { actions: V, closeButton: H, content: U, title: W, titleContent: G, ...K } = O ?? {}, q = l(k?.actions, E(V, N) ?? {}, N), J = l(k?.closeButton, E(H, N) ?? {}, N), Y = l(k?.content, E(U, N) ?? {}, N), X = l(k?.title, E(W, N) ?? {}, N), Z = l(k?.titleContent, E(G, N) ?? {}, N), Q = u(J, { onClick: S }), $ = X.id ?? (M ? j : void 0), te = i ?? $;
|
|
74
|
+
return /* @__PURE__ */ b(T, {
|
|
75
|
+
...ee,
|
|
76
|
+
ref: t,
|
|
77
|
+
"aria-labelledby": te,
|
|
78
|
+
fullWidth: h,
|
|
79
|
+
maxWidth: x,
|
|
80
|
+
onClose: n.onClose,
|
|
81
|
+
open: C,
|
|
82
|
+
ownerState: N,
|
|
83
|
+
slots: B,
|
|
84
|
+
slotProps: K,
|
|
85
|
+
children: [
|
|
86
|
+
(M || P) && /* @__PURE__ */ y(R, {
|
|
87
|
+
...X,
|
|
88
|
+
id: $,
|
|
89
|
+
children: /* @__PURE__ */ b(o, {
|
|
90
|
+
direction: "row",
|
|
91
|
+
spacing: 3,
|
|
92
|
+
sx: {
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
justifyContent: M ? "space-between" : "flex-end"
|
|
95
|
+
},
|
|
96
|
+
children: [M && typeof A == "string" && !m ? /* @__PURE__ */ y(z, {
|
|
97
|
+
variant: "h5",
|
|
98
|
+
...Z,
|
|
99
|
+
children: A
|
|
100
|
+
}) : M && /* @__PURE__ */ y("div", { children: A }), P && /* @__PURE__ */ y(I, {
|
|
101
|
+
"aria-label": p,
|
|
102
|
+
...Q,
|
|
103
|
+
children: /* @__PURE__ */ y(f, {})
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
}),
|
|
107
|
+
a != null && /* @__PURE__ */ y(L, {
|
|
108
|
+
...Y,
|
|
109
|
+
children: typeof a == "string" ? /* @__PURE__ */ y(d, {
|
|
110
|
+
variant: "body1",
|
|
111
|
+
children: a
|
|
112
|
+
}) : a
|
|
113
|
+
}),
|
|
114
|
+
r != null && /* @__PURE__ */ y(F, {
|
|
115
|
+
...q,
|
|
116
|
+
children: r
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
D.displayName = "SDialog";
|
|
122
|
+
//#endregion
|
|
123
|
+
export { D as t };
|
|
@@ -1,11 +1,12 @@
|
|
|
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 "../appendOwnerState-CFQTq3pb.js";
|
|
4
|
+
import { t as r } from "../Button-DaLr1m20.js";
|
|
5
|
+
import { t as i } from "../s-dialog-BNlXsVVP.js";
|
|
6
|
+
import * as a from "react";
|
|
7
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
8
|
//#region lib/s-dialog-confirm/s-dialog-confirm.tsx
|
|
8
|
-
var l =
|
|
9
|
+
var l = e(i, {
|
|
9
10
|
name: "SDialogConfirm",
|
|
10
11
|
slot: "Root"
|
|
11
12
|
})({});
|
|
@@ -23,29 +24,29 @@ function f(e) {
|
|
|
23
24
|
function p(e) {
|
|
24
25
|
return "defaultPrevented" in e && e.defaultPrevented === !0;
|
|
25
26
|
}
|
|
26
|
-
var m =
|
|
27
|
-
let
|
|
27
|
+
var m = a.forwardRef(function(e, i) {
|
|
28
|
+
let a = t({
|
|
28
29
|
props: e,
|
|
29
30
|
name: "SDialogConfirm"
|
|
30
|
-
}), { cancelText: p = "Cancel", children: m, confirmText: h = "Confirm", loading: g = !1, onCancel: _, onCloseButtonClick: v, onConfirm: y, showCloseButton: b, slotProps: x, slots: S, title: C, ...w } =
|
|
31
|
-
...
|
|
31
|
+
}), { cancelText: p = "Cancel", children: m, confirmText: h = "Confirm", loading: g = !1, onCancel: _, onCloseButtonClick: v, onConfirm: y, showCloseButton: b, slotProps: x, slots: S, title: C, ...w } = a, T = {
|
|
32
|
+
...a,
|
|
32
33
|
loading: g
|
|
33
|
-
}, { cancelButton: E =
|
|
34
|
+
}, { cancelButton: E = r, confirmButton: D = r, ...O } = S ?? {}, { cancelButton: k, confirmButton: A, ...j } = x ?? {}, M = u(k, T), N = u(A, T), P = {
|
|
34
35
|
...M,
|
|
35
36
|
onClick: d(M?.onClick, _)
|
|
36
37
|
}, F = {
|
|
37
38
|
...N,
|
|
38
39
|
onClick: d(N?.onClick, y)
|
|
39
|
-
}, I =
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
}, I = n(S?.cancelButton, P, T), L = n(S?.confirmButton, F, T), R = g || !!I.disabled, z = g || !!L.disabled, B = g || !!L.loading, V = v ?? _, H = f(C), U = f(m);
|
|
41
|
+
return /* @__PURE__ */ s(l, {
|
|
41
42
|
...w,
|
|
42
|
-
ref:
|
|
43
|
-
actions: /* @__PURE__ */ o
|
|
43
|
+
ref: i,
|
|
44
|
+
actions: /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(E, {
|
|
44
45
|
variant: "outlined",
|
|
45
46
|
...I,
|
|
46
47
|
disabled: R,
|
|
47
48
|
children: p
|
|
48
|
-
}), /* @__PURE__ */
|
|
49
|
+
}), /* @__PURE__ */ s(D, {
|
|
49
50
|
...L,
|
|
50
51
|
disabled: z,
|
|
51
52
|
loading: B,
|
|
@@ -63,29 +64,29 @@ var m = r.forwardRef(function(e, t) {
|
|
|
63
64
|
});
|
|
64
65
|
});
|
|
65
66
|
m.displayName = "SDialogConfirm";
|
|
66
|
-
var h =
|
|
67
|
+
var h = a.createContext(null);
|
|
67
68
|
function g({ children: e }) {
|
|
68
|
-
let [t, n] =
|
|
69
|
-
n(null),
|
|
70
|
-
}, []), u =
|
|
71
|
-
|
|
72
|
-
}, []), d =
|
|
69
|
+
let [t, n] = a.useState(null), [r, i] = a.useState(!1), o = t != null, l = a.useCallback(() => {
|
|
70
|
+
n(null), i(!1);
|
|
71
|
+
}, []), u = a.useCallback((e) => {
|
|
72
|
+
i(!1), n(e);
|
|
73
|
+
}, []), d = a.useMemo(() => ({
|
|
73
74
|
closeConfirm: l,
|
|
74
|
-
loading:
|
|
75
|
-
open:
|
|
76
|
-
setLoading:
|
|
75
|
+
loading: r,
|
|
76
|
+
open: o,
|
|
77
|
+
setLoading: i,
|
|
77
78
|
showConfirm: u
|
|
78
79
|
}), [
|
|
79
80
|
l,
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
r,
|
|
82
|
+
o,
|
|
82
83
|
u
|
|
83
84
|
]);
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ c(h.Provider, {
|
|
85
86
|
value: d,
|
|
86
|
-
children: [t && /* @__PURE__ */
|
|
87
|
+
children: [t && /* @__PURE__ */ s(m, {
|
|
87
88
|
...t,
|
|
88
|
-
loading:
|
|
89
|
+
loading: r || t.loading,
|
|
89
90
|
open: !0,
|
|
90
91
|
onCancel: (e) => {
|
|
91
92
|
t.onCancel?.(e), e.defaultPrevented || l();
|
|
@@ -100,7 +101,7 @@ function g({ children: e }) {
|
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
103
|
function _() {
|
|
103
|
-
let e =
|
|
104
|
+
let e = a.useContext(h);
|
|
104
105
|
if (!e) throw Error("useDialogConfirm must be used within a DialogConfirmProvider");
|
|
105
106
|
return e;
|
|
106
107
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { t as e } from "../styled-Bog8QCl3.js";
|
|
2
|
+
import { t } from "../useThemeProps-Dw9dmKyT.js";
|
|
3
|
+
import { resolveOwnerStateSlotProps as n } from "../utils/slots.js";
|
|
4
|
+
import { t as r } from "../appendOwnerState-CFQTq3pb.js";
|
|
5
|
+
import { t as i } from "../Button-DaLr1m20.js";
|
|
6
|
+
import { t as a } from "../s-dialog-BNlXsVVP.js";
|
|
7
|
+
import * as o from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
9
|
//#region lib/s-dialog-message/s-dialog-message.tsx
|
|
9
|
-
var l =
|
|
10
|
+
var l = e(a, {
|
|
10
11
|
name: "SDialogMessage",
|
|
11
12
|
slot: "Root"
|
|
12
13
|
})({});
|
|
@@ -18,23 +19,23 @@ function u(e, t) {
|
|
|
18
19
|
function d(e) {
|
|
19
20
|
return "defaultPrevented" in e && e.defaultPrevented === !0;
|
|
20
21
|
}
|
|
21
|
-
var f =
|
|
22
|
-
let
|
|
23
|
-
props:
|
|
22
|
+
var f = o.forwardRef(function(e, a) {
|
|
23
|
+
let o = t({
|
|
24
|
+
props: e,
|
|
24
25
|
name: "SDialogMessage"
|
|
25
|
-
}), { children:
|
|
26
|
-
...
|
|
26
|
+
}), { children: c, okText: d = "OK", onCloseButtonClick: f, onOk: p, showCloseButton: m, slotProps: h, slots: g, ..._ } = o, { okButton: v = i, ...y } = g ?? {}, { okButton: b, ...x } = h ?? {}, S = m ?? f != null, C = {
|
|
27
|
+
...o,
|
|
27
28
|
okText: d,
|
|
28
29
|
showCloseButton: S
|
|
29
|
-
}, w =
|
|
30
|
+
}, w = n(b, C), T = {
|
|
30
31
|
...w,
|
|
31
32
|
onClick: u(w?.onClick, p)
|
|
32
|
-
}, E =
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
}, E = r(g?.okButton, T, C);
|
|
34
|
+
return /* @__PURE__ */ s(l, {
|
|
34
35
|
..._,
|
|
35
36
|
ownerState: C,
|
|
36
|
-
ref:
|
|
37
|
-
actions: /* @__PURE__ */
|
|
37
|
+
ref: a,
|
|
38
|
+
actions: /* @__PURE__ */ s(v, {
|
|
38
39
|
...E,
|
|
39
40
|
children: d
|
|
40
41
|
}),
|
|
@@ -44,40 +45,40 @@ var f = i.forwardRef(function(t, n) {
|
|
|
44
45
|
showCloseButton: S,
|
|
45
46
|
slots: y,
|
|
46
47
|
slotProps: x,
|
|
47
|
-
children:
|
|
48
|
+
children: c
|
|
48
49
|
});
|
|
49
50
|
});
|
|
50
51
|
f.displayName = "SDialogMessage";
|
|
51
|
-
var p =
|
|
52
|
+
var p = o.createContext(null);
|
|
52
53
|
function m({ children: e }) {
|
|
53
|
-
let [t, n] =
|
|
54
|
-
closeMessage:
|
|
54
|
+
let [t, n] = o.useState(null), r = t != null, i = o.useCallback(() => n(null), []), a = o.useCallback((e) => n(e), []), l = o.useMemo(() => ({
|
|
55
|
+
closeMessage: i,
|
|
55
56
|
open: r,
|
|
56
|
-
showMessage:
|
|
57
|
+
showMessage: a
|
|
57
58
|
}), [
|
|
58
|
-
|
|
59
|
+
i,
|
|
59
60
|
r,
|
|
60
|
-
|
|
61
|
+
a
|
|
61
62
|
]);
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ c(p.Provider, {
|
|
63
64
|
value: l,
|
|
64
|
-
children: [t && /* @__PURE__ */
|
|
65
|
+
children: [t && /* @__PURE__ */ s(f, {
|
|
65
66
|
...t,
|
|
66
67
|
open: !0,
|
|
67
68
|
onClose: (e, n) => {
|
|
68
|
-
t.onClose?.(e, n), d(e) ||
|
|
69
|
+
t.onClose?.(e, n), d(e) || i();
|
|
69
70
|
},
|
|
70
71
|
onCloseButtonClick: (e) => {
|
|
71
|
-
t.onCloseButtonClick?.(e), e.defaultPrevented ||
|
|
72
|
+
t.onCloseButtonClick?.(e), e.defaultPrevented || i();
|
|
72
73
|
},
|
|
73
74
|
onOk: (e) => {
|
|
74
|
-
t.onOk?.(e), e.defaultPrevented ||
|
|
75
|
+
t.onOk?.(e), e.defaultPrevented || i();
|
|
75
76
|
}
|
|
76
77
|
}), e]
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
function h() {
|
|
80
|
-
let e =
|
|
81
|
+
let e = o.useContext(p);
|
|
81
82
|
if (!e) throw Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
82
83
|
return e;
|
|
83
84
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { BoxProps } from '@mui/material/Box';
|
|
2
|
+
import { DrawerProps, DrawerSlots } from '@mui/material/Drawer';
|
|
3
|
+
import { ModalProps } from '@mui/material/Modal';
|
|
4
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
5
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
6
|
+
import { ResponsiveStyleValue } from '@mui/system';
|
|
7
|
+
import { SIconButtonProps } from '../s-icon-button/s-icon-button';
|
|
8
|
+
import { SOverlayScrollbarProps } from '../s-overlay-scrollbar/s-overlay-scrollbar';
|
|
9
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/** Responsive width value, mirroring what `sx` accepts. */
|
|
12
|
+
export type SDrawerWidth = ResponsiveStyleValue<number | string>;
|
|
13
|
+
type ModalCloseEvent = Parameters<NonNullable<ModalProps['onClose']>>[0];
|
|
14
|
+
/** Why the drawer asked to close. Extends MUI's Modal reasons with the header close button. */
|
|
15
|
+
export type SDrawerCloseReason = 'backdropClick' | 'closeButtonClick' | 'escapeKeyDown';
|
|
16
|
+
/** Props for a MUI Drawer with a fixed header and an independently scrolling body. */
|
|
17
|
+
export interface SDrawerProps extends Omit<DrawerProps, 'children' | 'onClose' | 'slotProps' | 'slots' | 'title'> {
|
|
18
|
+
/** Body content; scrolls independently from the header. */
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
/** Accessible label for the close button — the injection point for translated copy. */
|
|
21
|
+
closeLabel?: string;
|
|
22
|
+
/** Content rendered beside the title, before the close button. */
|
|
23
|
+
headerActions?: React.ReactNode;
|
|
24
|
+
/** Called when the drawer requests to be closed, including from the header close button. */
|
|
25
|
+
onClose?: {
|
|
26
|
+
bivarianceHack(event: ModalCloseEvent, reason: SDrawerCloseReason): void;
|
|
27
|
+
}['bivarianceHack'];
|
|
28
|
+
/** Shows the header close button. Defaults to whether `onClose` is provided. */
|
|
29
|
+
showCloseButton?: boolean;
|
|
30
|
+
/** Components used for internal structural slots and for the MUI Drawer slots. */
|
|
31
|
+
slots?: SDrawerSlots;
|
|
32
|
+
/** Props or owner-state callbacks for internal structural slots and for the MUI Drawer slots. */
|
|
33
|
+
slotProps?: SDrawerSlotProps;
|
|
34
|
+
/** Header title content. */
|
|
35
|
+
title?: React.ReactNode;
|
|
36
|
+
/** Paper width; accepts responsive values. Defaults to `{ xs: '100vw', sm: 360 }` for side anchors and `'100%'` for top/bottom. */
|
|
37
|
+
width?: SDrawerWidth;
|
|
38
|
+
}
|
|
39
|
+
export interface SDrawerOwnerState extends Omit<SDrawerProps, 'slotProps' | 'slots'> {
|
|
40
|
+
anchor: NonNullable<DrawerProps['anchor']>;
|
|
41
|
+
closeLabel: string;
|
|
42
|
+
hasHeader: boolean;
|
|
43
|
+
hasHeaderActions: boolean;
|
|
44
|
+
hasTitle: boolean;
|
|
45
|
+
open: boolean;
|
|
46
|
+
showCloseButton: boolean;
|
|
47
|
+
}
|
|
48
|
+
type OwnerStateSlotProps<Props> = MuiOwnerStateSlotProps<Props, SDrawerOwnerState>;
|
|
49
|
+
type SDrawerRootSlotProps = Omit<DrawerProps, 'anchor' | 'children' | 'onClose' | 'open' | 'slotProps' | 'slots' | 'title' | 'variant'>;
|
|
50
|
+
export interface SDrawerSlots extends Partial<Pick<DrawerSlots, 'backdrop' | 'docked' | 'paper' | 'transition'>> {
|
|
51
|
+
/** Scrolling body wrapper. Custom component slots must consume or filter `ownerState`. */
|
|
52
|
+
body?: React.ElementType;
|
|
53
|
+
closeButton?: React.ElementType;
|
|
54
|
+
header?: React.ElementType;
|
|
55
|
+
headerActions?: React.ElementType;
|
|
56
|
+
/** Drawer wrapper, defaults to the themed MUI Drawer. */
|
|
57
|
+
root?: React.ElementType;
|
|
58
|
+
title?: React.ElementType;
|
|
59
|
+
}
|
|
60
|
+
export type SDrawerSlotProps = Omit<NonNullable<DrawerProps['slotProps']>, 'paper' | 'root'> & {
|
|
61
|
+
body?: OwnerStateSlotProps<Omit<SOverlayScrollbarProps, 'children'>>;
|
|
62
|
+
closeButton?: OwnerStateSlotProps<Omit<SIconButtonProps, 'children'>>;
|
|
63
|
+
header?: OwnerStateSlotProps<Omit<BoxProps, 'children'>>;
|
|
64
|
+
headerActions?: OwnerStateSlotProps<Omit<BoxProps, 'children'>>;
|
|
65
|
+
paper?: OwnerStateSlotProps<Omit<PaperProps, 'children'>>;
|
|
66
|
+
root?: OwnerStateSlotProps<SDrawerRootSlotProps>;
|
|
67
|
+
title?: OwnerStateSlotProps<Omit<TypographyProps, 'children'>>;
|
|
68
|
+
};
|
|
69
|
+
export declare const SDrawer: React.ForwardRefExoticComponent<Omit<SDrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export default SDrawer;
|