@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
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../styled-Bog8QCl3.js";
|
|
2
|
+
import { t } from "../useThemeProps-Dw9dmKyT.js";
|
|
3
|
+
import { t as n } from "../s-text-field-HYyDf1Jo.js";
|
|
4
|
+
import r from "./stripe-input.js";
|
|
4
5
|
import * as i from "react";
|
|
5
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
7
|
//#region lib/s-stripe/s-stripe.tsx
|
|
7
|
-
var o = n
|
|
8
|
+
var o = e(n, {
|
|
8
9
|
name: "StripeTextField",
|
|
9
10
|
slot: "Root",
|
|
10
11
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
@@ -16,7 +17,7 @@ function s(...e) {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
var c = i.forwardRef((e, n) => {
|
|
19
|
-
let i =
|
|
20
|
+
let i = t({
|
|
20
21
|
props: e,
|
|
21
22
|
name: "StripeTextField"
|
|
22
23
|
}), { disabled: c = !1, error: l = !1, helperText: u, inputProps: d, labelErrorMessage: f, onChange: p, onReady: m, slotProps: h, stripeElement: g, ..._ } = i, v = {
|
|
@@ -27,16 +28,16 @@ var c = i.forwardRef((e, n) => {
|
|
|
27
28
|
...typeof h?.inputLabel == "function" ? h.inputLabel(e) : h?.inputLabel,
|
|
28
29
|
shrink: !0
|
|
29
30
|
}), b = (e) => {
|
|
30
|
-
let
|
|
31
|
+
let t = typeof h?.input == "function" ? h.input(e) : h?.input, n = t?.inputProps ?? {}, i = {
|
|
31
32
|
...d,
|
|
32
|
-
...
|
|
33
|
+
...n,
|
|
33
34
|
component: g,
|
|
34
|
-
onChange: s(p, d?.onChange,
|
|
35
|
-
onReady: s(m, d?.onReady,
|
|
35
|
+
onChange: s(p, d?.onChange, n.onChange),
|
|
36
|
+
onReady: s(m, d?.onReady, n.onReady)
|
|
36
37
|
};
|
|
37
38
|
return {
|
|
38
|
-
...
|
|
39
|
-
inputComponent:
|
|
39
|
+
...t,
|
|
40
|
+
inputComponent: r,
|
|
40
41
|
inputProps: i
|
|
41
42
|
};
|
|
42
43
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../theme-primitives-
|
|
1
|
+
import { t as e } from "../theme-primitives-CXtaMdVj.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
5
|
-
//#region lib/s-stripe/stripe-input.tsx
|
|
4
|
+
import '../assets/stripe-input.css';//#region lib/s-stripe/stripe-input.tsx
|
|
6
5
|
function r(e) {
|
|
7
6
|
let t = e.match(/^hsl\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*\)$/i);
|
|
8
7
|
if (!t) return e;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default, default as SSwatch } from './s-swatch';
|
|
2
|
+
export type { SSwatchAccessibleNameProps, SSwatchBaseProps, SSwatchOwnerState, SSwatchProps, SSwatchShape, SSwatchSize, SSwatchSlotProps, SSwatchSlots, SSwatchVisualProps, } from './s-swatch';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { BoxProps, ButtonBaseProps } from '@mui/material';
|
|
2
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
/** Named swatch sizes, or an explicit pixel edge length. */
|
|
5
|
+
export type SSwatchSize = 'small' | 'medium' | 'large' | number;
|
|
6
|
+
/** Outline geometry of the swatch. */
|
|
7
|
+
export type SSwatchShape = 'square' | 'circle';
|
|
8
|
+
export interface SSwatchSlots {
|
|
9
|
+
/** Image element rendered inside the swatch when `image` is set. */
|
|
10
|
+
image?: React.ElementType;
|
|
11
|
+
/** Selection marker rendered when `selected` is true. */
|
|
12
|
+
indicator?: React.ElementType;
|
|
13
|
+
/** Interactive `ButtonBase` wrapper. */
|
|
14
|
+
root?: React.ElementType;
|
|
15
|
+
/** Diagonal line rendered when `unavailable` is true. */
|
|
16
|
+
strikethrough?: React.ElementType;
|
|
17
|
+
/** Element carrying the color fill or the image background. */
|
|
18
|
+
swatch?: React.ElementType;
|
|
19
|
+
}
|
|
20
|
+
export interface SSwatchSlotProps {
|
|
21
|
+
/** Props or owner-state callback for the image slot. */
|
|
22
|
+
image?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSwatchOwnerState>;
|
|
23
|
+
/** Props or owner-state callback for the indicator slot. */
|
|
24
|
+
indicator?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSwatchOwnerState>;
|
|
25
|
+
/** Props or owner-state callback for the root slot. */
|
|
26
|
+
root?: MuiOwnerStateSlotProps<Omit<ButtonBaseProps, 'children'>, SSwatchOwnerState>;
|
|
27
|
+
/** Props or owner-state callback for the strikethrough slot. */
|
|
28
|
+
strikethrough?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSwatchOwnerState>;
|
|
29
|
+
/** Props or owner-state callback for the swatch slot. */
|
|
30
|
+
swatch?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSwatchOwnerState>;
|
|
31
|
+
}
|
|
32
|
+
/** Visual data accepted by SSwatch. A secondary color always requires a primary color. */
|
|
33
|
+
export type SSwatchVisualProps = {
|
|
34
|
+
/**
|
|
35
|
+
* Fill of the swatch. This is consumer data (an arbitrary CSS color), so it is
|
|
36
|
+
* passed straight through — every ring, marker and strike around it is themed.
|
|
37
|
+
*/
|
|
38
|
+
color: string;
|
|
39
|
+
/** Optional second fill rendered across the same diagonal as the unavailable strike. */
|
|
40
|
+
colorSecondary?: string;
|
|
41
|
+
/** Optional image URL rendered over `color`, which remains as its visual fallback. */
|
|
42
|
+
image?: string;
|
|
43
|
+
} | {
|
|
44
|
+
color?: never;
|
|
45
|
+
colorSecondary?: never;
|
|
46
|
+
/** Image URL rendered as the swatch fill. */
|
|
47
|
+
image: string;
|
|
48
|
+
};
|
|
49
|
+
/** Accessible-name sources accepted by an interactive SSwatch. */
|
|
50
|
+
export type SSwatchAccessibleNameProps = {
|
|
51
|
+
/** Explicit accessible name. */
|
|
52
|
+
'aria-label': string;
|
|
53
|
+
'aria-labelledby'?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
value?: string;
|
|
56
|
+
} | {
|
|
57
|
+
'aria-label'?: string;
|
|
58
|
+
/** ID of an element that provides the accessible name. */
|
|
59
|
+
'aria-labelledby': string;
|
|
60
|
+
label?: string;
|
|
61
|
+
value?: string;
|
|
62
|
+
} | {
|
|
63
|
+
'aria-label'?: string;
|
|
64
|
+
'aria-labelledby'?: string;
|
|
65
|
+
/** Human-readable swatch name used as its accessible name. */
|
|
66
|
+
label: string;
|
|
67
|
+
value?: string;
|
|
68
|
+
} | {
|
|
69
|
+
'aria-label'?: string;
|
|
70
|
+
'aria-labelledby'?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
/** Human-readable option value used as the accessible name when `label` is omitted. */
|
|
73
|
+
value: string;
|
|
74
|
+
};
|
|
75
|
+
/** Shared behavioral props for a selectable swatch built on MUI ButtonBase. */
|
|
76
|
+
export interface SSwatchBaseProps extends Omit<ButtonBaseProps, 'aria-label' | 'aria-labelledby' | 'children' | 'color' | 'value'> {
|
|
77
|
+
/**
|
|
78
|
+
* Whether the swatch is an interactive option. Set to `false` for a
|
|
79
|
+
* presentational swatch; its root then fits the visual and has no button,
|
|
80
|
+
* ripple, focus, or pressed semantics.
|
|
81
|
+
*/
|
|
82
|
+
interactive?: boolean;
|
|
83
|
+
/** Marks the swatch as the current selection. */
|
|
84
|
+
selected?: boolean;
|
|
85
|
+
/** Outline geometry of the swatch. */
|
|
86
|
+
shape?: SSwatchShape;
|
|
87
|
+
/** Named size, or an explicit pixel edge length. */
|
|
88
|
+
size?: SSwatchSize;
|
|
89
|
+
/** Props or owner-state callbacks for internal structural slots. */
|
|
90
|
+
slotProps?: SSwatchSlotProps;
|
|
91
|
+
/** Components used for internal structural slots. */
|
|
92
|
+
slots?: SSwatchSlots;
|
|
93
|
+
/**
|
|
94
|
+
* Out-of-stock treatment: the swatch stays operable but is struck through and
|
|
95
|
+
* dimmed by a scrim, which is visually distinct from `disabled`.
|
|
96
|
+
*/
|
|
97
|
+
unavailable?: boolean;
|
|
98
|
+
/** Appended to the accessible name while `unavailable` is true. */
|
|
99
|
+
unavailableText?: string;
|
|
100
|
+
}
|
|
101
|
+
/** Props for a selectable color or image swatch built on MUI ButtonBase. */
|
|
102
|
+
export type SSwatchProps = SSwatchAccessibleNameProps & SSwatchBaseProps & SSwatchVisualProps;
|
|
103
|
+
export type SSwatchOwnerState = SSwatchProps & {
|
|
104
|
+
/** Root size for fine pointers. */
|
|
105
|
+
controlSize: number;
|
|
106
|
+
/** Root size for coarse pointers. */
|
|
107
|
+
coarseControlSize: number;
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
interactive: boolean;
|
|
110
|
+
selected: boolean;
|
|
111
|
+
shape: SSwatchShape;
|
|
112
|
+
size: SSwatchSize;
|
|
113
|
+
/** `size` resolved to pixels. */
|
|
114
|
+
swatchSize: number;
|
|
115
|
+
unavailable: boolean;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Themeable color or image option built on MUI ButtonBase. Every swatch requires
|
|
119
|
+
* both a visual (`color` or `image`) and an accessible name (`label`,
|
|
120
|
+
* `aria-label`, `aria-labelledby`, or a human-readable `value`).
|
|
121
|
+
*
|
|
122
|
+
* Interactive swatches reserve an internal pointer target appropriate to the
|
|
123
|
+
* current input modality. Presentational swatches (`interactive={false}`) fit
|
|
124
|
+
* their visual exactly and do not render button semantics.
|
|
125
|
+
*/
|
|
126
|
+
export declare const SSwatch: React.ForwardRefExoticComponent<(Omit<{
|
|
127
|
+
/** Explicit accessible name. */
|
|
128
|
+
'aria-label': string;
|
|
129
|
+
'aria-labelledby'?: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
value?: string;
|
|
132
|
+
} & SSwatchBaseProps & {
|
|
133
|
+
/**
|
|
134
|
+
* Fill of the swatch. This is consumer data (an arbitrary CSS color), so it is
|
|
135
|
+
* passed straight through — every ring, marker and strike around it is themed.
|
|
136
|
+
*/
|
|
137
|
+
color: string;
|
|
138
|
+
/** Optional second fill rendered across the same diagonal as the unavailable strike. */
|
|
139
|
+
colorSecondary?: string;
|
|
140
|
+
/** Optional image URL rendered over `color`, which remains as its visual fallback. */
|
|
141
|
+
image?: string;
|
|
142
|
+
}, "ref"> | Omit<{
|
|
143
|
+
/** Explicit accessible name. */
|
|
144
|
+
'aria-label': string;
|
|
145
|
+
'aria-labelledby'?: string;
|
|
146
|
+
label?: string;
|
|
147
|
+
value?: string;
|
|
148
|
+
} & SSwatchBaseProps & {
|
|
149
|
+
color?: never;
|
|
150
|
+
colorSecondary?: never;
|
|
151
|
+
/** Image URL rendered as the swatch fill. */
|
|
152
|
+
image: string;
|
|
153
|
+
}, "ref"> | Omit<{
|
|
154
|
+
'aria-label'?: string;
|
|
155
|
+
/** ID of an element that provides the accessible name. */
|
|
156
|
+
'aria-labelledby': string;
|
|
157
|
+
label?: string;
|
|
158
|
+
value?: string;
|
|
159
|
+
} & SSwatchBaseProps & {
|
|
160
|
+
/**
|
|
161
|
+
* Fill of the swatch. This is consumer data (an arbitrary CSS color), so it is
|
|
162
|
+
* passed straight through — every ring, marker and strike around it is themed.
|
|
163
|
+
*/
|
|
164
|
+
color: string;
|
|
165
|
+
/** Optional second fill rendered across the same diagonal as the unavailable strike. */
|
|
166
|
+
colorSecondary?: string;
|
|
167
|
+
/** Optional image URL rendered over `color`, which remains as its visual fallback. */
|
|
168
|
+
image?: string;
|
|
169
|
+
}, "ref"> | Omit<{
|
|
170
|
+
'aria-label'?: string;
|
|
171
|
+
/** ID of an element that provides the accessible name. */
|
|
172
|
+
'aria-labelledby': string;
|
|
173
|
+
label?: string;
|
|
174
|
+
value?: string;
|
|
175
|
+
} & SSwatchBaseProps & {
|
|
176
|
+
color?: never;
|
|
177
|
+
colorSecondary?: never;
|
|
178
|
+
/** Image URL rendered as the swatch fill. */
|
|
179
|
+
image: string;
|
|
180
|
+
}, "ref"> | Omit<{
|
|
181
|
+
'aria-label'?: string;
|
|
182
|
+
'aria-labelledby'?: string;
|
|
183
|
+
/** Human-readable swatch name used as its accessible name. */
|
|
184
|
+
label: string;
|
|
185
|
+
value?: string;
|
|
186
|
+
} & SSwatchBaseProps & {
|
|
187
|
+
/**
|
|
188
|
+
* Fill of the swatch. This is consumer data (an arbitrary CSS color), so it is
|
|
189
|
+
* passed straight through — every ring, marker and strike around it is themed.
|
|
190
|
+
*/
|
|
191
|
+
color: string;
|
|
192
|
+
/** Optional second fill rendered across the same diagonal as the unavailable strike. */
|
|
193
|
+
colorSecondary?: string;
|
|
194
|
+
/** Optional image URL rendered over `color`, which remains as its visual fallback. */
|
|
195
|
+
image?: string;
|
|
196
|
+
}, "ref"> | Omit<{
|
|
197
|
+
'aria-label'?: string;
|
|
198
|
+
'aria-labelledby'?: string;
|
|
199
|
+
/** Human-readable swatch name used as its accessible name. */
|
|
200
|
+
label: string;
|
|
201
|
+
value?: string;
|
|
202
|
+
} & SSwatchBaseProps & {
|
|
203
|
+
color?: never;
|
|
204
|
+
colorSecondary?: never;
|
|
205
|
+
/** Image URL rendered as the swatch fill. */
|
|
206
|
+
image: string;
|
|
207
|
+
}, "ref"> | Omit<{
|
|
208
|
+
'aria-label'?: string;
|
|
209
|
+
'aria-labelledby'?: string;
|
|
210
|
+
label?: string;
|
|
211
|
+
/** Human-readable option value used as the accessible name when `label` is omitted. */
|
|
212
|
+
value: string;
|
|
213
|
+
} & SSwatchBaseProps & {
|
|
214
|
+
/**
|
|
215
|
+
* Fill of the swatch. This is consumer data (an arbitrary CSS color), so it is
|
|
216
|
+
* passed straight through — every ring, marker and strike around it is themed.
|
|
217
|
+
*/
|
|
218
|
+
color: string;
|
|
219
|
+
/** Optional second fill rendered across the same diagonal as the unavailable strike. */
|
|
220
|
+
colorSecondary?: string;
|
|
221
|
+
/** Optional image URL rendered over `color`, which remains as its visual fallback. */
|
|
222
|
+
image?: string;
|
|
223
|
+
}, "ref"> | Omit<{
|
|
224
|
+
'aria-label'?: string;
|
|
225
|
+
'aria-labelledby'?: string;
|
|
226
|
+
label?: string;
|
|
227
|
+
/** Human-readable option value used as the accessible name when `label` is omitted. */
|
|
228
|
+
value: string;
|
|
229
|
+
} & SSwatchBaseProps & {
|
|
230
|
+
color?: never;
|
|
231
|
+
colorSecondary?: never;
|
|
232
|
+
/** Image URL rendered as the swatch fill. */
|
|
233
|
+
image: string;
|
|
234
|
+
}, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
235
|
+
export default SSwatch;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { resolveOwnerStateSlotProps as e } from "../utils/slots.js";
|
|
2
|
+
import { t } from "../useForkRef-BuNFTXxE.js";
|
|
3
|
+
import { t as n } from "../appendOwnerState-CFQTq3pb.js";
|
|
4
|
+
import { getFocusVisibleStyle as r } from "../theme/components/action-styles.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, ButtonBase as l, styled as u, useThemeProps as d } from "@mui/material";
|
|
9
|
+
//#region lib/s-swatch/s-swatch.tsx
|
|
10
|
+
var f = {
|
|
11
|
+
small: 22,
|
|
12
|
+
medium: 32,
|
|
13
|
+
large: 44
|
|
14
|
+
}, p = 24, m = 44, h = "@media (pointer: coarse)", g = 45, _ = (e) => Math.max(1, typeof e == "number" ? e : f[e]), v = ({ ownerState: e, theme: t }) => ({
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
backgroundColor: "transparent",
|
|
17
|
+
borderRadius: t.radius.sm,
|
|
18
|
+
boxSizing: "border-box",
|
|
19
|
+
cursor: e.interactive ? "pointer" : "default",
|
|
20
|
+
display: "inline-flex",
|
|
21
|
+
flex: `0 0 ${e.controlSize}px`,
|
|
22
|
+
height: e.controlSize,
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
padding: 0,
|
|
25
|
+
position: "relative",
|
|
26
|
+
transition: t.transitions.create("opacity", { duration: t.transitions.duration.shorter }),
|
|
27
|
+
width: e.controlSize,
|
|
28
|
+
...e.interactive ? {
|
|
29
|
+
"& .MuiTouchRipple-root": {
|
|
30
|
+
borderRadius: "inherit",
|
|
31
|
+
height: e.swatchSize,
|
|
32
|
+
inset: "50% auto auto 50%",
|
|
33
|
+
transform: "translate(-50%, -50%)",
|
|
34
|
+
width: e.swatchSize,
|
|
35
|
+
zIndex: 1
|
|
36
|
+
},
|
|
37
|
+
"&.Mui-focusVisible::after": {
|
|
38
|
+
...r(t),
|
|
39
|
+
borderRadius: "inherit",
|
|
40
|
+
content: "\"\"",
|
|
41
|
+
height: e.swatchSize,
|
|
42
|
+
left: "50%",
|
|
43
|
+
pointerEvents: "none",
|
|
44
|
+
position: "absolute",
|
|
45
|
+
top: "50%",
|
|
46
|
+
transform: "translate(-50%, -50%)",
|
|
47
|
+
width: e.swatchSize,
|
|
48
|
+
zIndex: 4
|
|
49
|
+
},
|
|
50
|
+
"&.Mui-disabled": { cursor: "not-allowed" },
|
|
51
|
+
[h]: {
|
|
52
|
+
flex: `0 0 ${e.coarseControlSize}px`,
|
|
53
|
+
height: e.coarseControlSize,
|
|
54
|
+
width: e.coarseControlSize
|
|
55
|
+
}
|
|
56
|
+
} : void 0,
|
|
57
|
+
variants: [{
|
|
58
|
+
props: ({ ownerState: e }) => e.shape === "circle",
|
|
59
|
+
style: { borderRadius: t.radius.full }
|
|
60
|
+
}, {
|
|
61
|
+
props: ({ ownerState: e }) => e.disabled,
|
|
62
|
+
style: { opacity: (t.vars ?? t).palette.action.disabledOpacity }
|
|
63
|
+
}],
|
|
64
|
+
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
65
|
+
}), y = u(l, {
|
|
66
|
+
name: "SSwatch",
|
|
67
|
+
slot: "Root",
|
|
68
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
69
|
+
})(v), b = u(c, {
|
|
70
|
+
name: "SSwatch",
|
|
71
|
+
slot: "Root",
|
|
72
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
73
|
+
})(v), x = u(c, {
|
|
74
|
+
name: "SSwatch",
|
|
75
|
+
slot: "Swatch",
|
|
76
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
77
|
+
})(({ ownerState: e, theme: t }) => ({
|
|
78
|
+
backgroundColor: (t.vars ?? t).palette.background.paper,
|
|
79
|
+
backgroundPosition: "center",
|
|
80
|
+
backgroundSize: "cover",
|
|
81
|
+
borderRadius: "inherit",
|
|
82
|
+
boxShadow: `inset 0 0 0 1px ${(t.vars ?? t).palette.divider}`,
|
|
83
|
+
boxSizing: "border-box",
|
|
84
|
+
flex: "0 0 auto",
|
|
85
|
+
height: e.swatchSize,
|
|
86
|
+
overflow: "hidden",
|
|
87
|
+
position: "relative",
|
|
88
|
+
transition: t.transitions.create(["box-shadow", "filter"], { duration: t.transitions.duration.shorter }),
|
|
89
|
+
width: e.swatchSize,
|
|
90
|
+
zIndex: 0,
|
|
91
|
+
variants: [
|
|
92
|
+
{
|
|
93
|
+
props: ({ ownerState: e }) => e.shape === "circle",
|
|
94
|
+
style: { borderRadius: t.radius.full }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
props: ({ ownerState: e }) => e.selected,
|
|
98
|
+
style: { boxShadow: `inset 0 0 0 2px ${(t.vars ?? t).palette.primary.main}` }
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
props: ({ ownerState: e }) => e.unavailable,
|
|
102
|
+
style: {
|
|
103
|
+
filter: "saturate(0.72)",
|
|
104
|
+
"&::after": {
|
|
105
|
+
backgroundColor: (t.vars ?? t).palette.action.disabledBackground,
|
|
106
|
+
borderRadius: "inherit",
|
|
107
|
+
content: "\"\"",
|
|
108
|
+
inset: 0,
|
|
109
|
+
position: "absolute",
|
|
110
|
+
zIndex: 1
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"@media (prefers-reduced-motion: reduce)": { transition: "none" }
|
|
116
|
+
})), S = u(c, {
|
|
117
|
+
name: "SSwatch",
|
|
118
|
+
slot: "Image",
|
|
119
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
120
|
+
})({
|
|
121
|
+
borderRadius: "inherit",
|
|
122
|
+
display: "block",
|
|
123
|
+
height: "100%",
|
|
124
|
+
inset: 0,
|
|
125
|
+
objectFit: "cover",
|
|
126
|
+
objectPosition: "center",
|
|
127
|
+
position: "absolute",
|
|
128
|
+
width: "100%"
|
|
129
|
+
}), C = u(c, {
|
|
130
|
+
name: "SSwatch",
|
|
131
|
+
slot: "Indicator",
|
|
132
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
133
|
+
})(({ ownerState: e, theme: t }) => ({
|
|
134
|
+
backgroundColor: (t.vars ?? t).palette.primary.main,
|
|
135
|
+
borderRadius: t.radius.full,
|
|
136
|
+
boxShadow: `0 0 0 2px ${(t.vars ?? t).palette.background.paper}`,
|
|
137
|
+
height: Math.max(6, Math.round(e.swatchSize * .3)),
|
|
138
|
+
left: "50%",
|
|
139
|
+
pointerEvents: "none",
|
|
140
|
+
position: "absolute",
|
|
141
|
+
top: "50%",
|
|
142
|
+
transform: "translate(-50%, -50%)",
|
|
143
|
+
width: Math.max(6, Math.round(e.swatchSize * .3)),
|
|
144
|
+
zIndex: 3
|
|
145
|
+
})), w = u(c, {
|
|
146
|
+
name: "SSwatch",
|
|
147
|
+
slot: "Strikethrough",
|
|
148
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
149
|
+
})(({ ownerState: e, theme: t }) => ({
|
|
150
|
+
backgroundColor: (t.vars ?? t).palette.background.paper,
|
|
151
|
+
boxShadow: `0 0 0 1px ${(t.vars ?? t).palette.text.primary}`,
|
|
152
|
+
height: Math.max(1, Math.round(e.swatchSize / 18)),
|
|
153
|
+
left: "50%",
|
|
154
|
+
pointerEvents: "none",
|
|
155
|
+
position: "absolute",
|
|
156
|
+
top: "50%",
|
|
157
|
+
transform: `translate(-50%, -50%) rotate(-${g}deg)`,
|
|
158
|
+
transformOrigin: "center",
|
|
159
|
+
width: "141.421%",
|
|
160
|
+
zIndex: 2
|
|
161
|
+
})), T = a.forwardRef(function(r, a) {
|
|
162
|
+
let c = d({
|
|
163
|
+
props: r,
|
|
164
|
+
name: "SSwatch"
|
|
165
|
+
}), { "aria-label": l, "aria-labelledby": u, color: f, colorSecondary: h, disabled: v = !1, image: T, interactive: E = !0, label: D, selected: O = !1, shape: k = "square", size: A = "medium", slotProps: j, slots: M, unavailable: N = !1, unavailableText: P = "Unavailable", value: F, ...I } = c, L = _(A), R = E ? Math.max(L, p) : L, z = {
|
|
166
|
+
...c,
|
|
167
|
+
coarseControlSize: E ? Math.max(L, m) : L,
|
|
168
|
+
controlSize: R,
|
|
169
|
+
disabled: v,
|
|
170
|
+
interactive: E,
|
|
171
|
+
selected: O,
|
|
172
|
+
shape: k,
|
|
173
|
+
size: A,
|
|
174
|
+
swatchSize: L,
|
|
175
|
+
unavailable: N
|
|
176
|
+
}, B = M?.root ?? (E ? y : b), V = M?.swatch ?? x, H = M?.image ?? S, U = M?.indicator ?? C, W = M?.strikethrough ?? w, G = [l ?? D ?? F, N ? P : void 0].filter(Boolean).join(", "), { ref: K, ...q } = n(B, i(e(j?.root, z), E ? {
|
|
177
|
+
...I,
|
|
178
|
+
"aria-label": u ? void 0 : G || void 0,
|
|
179
|
+
"aria-labelledby": u,
|
|
180
|
+
"aria-pressed": O,
|
|
181
|
+
disabled: v
|
|
182
|
+
} : {
|
|
183
|
+
component: "span",
|
|
184
|
+
role: "img",
|
|
185
|
+
...I,
|
|
186
|
+
"aria-label": u ? void 0 : G || void 0,
|
|
187
|
+
"aria-labelledby": u
|
|
188
|
+
}), z), J = t(K, a), { style: Y, ...X } = e(j?.swatch, z) ?? {}, Z = n(V, X, z), Q = n(H, e(j?.image, z) ?? {}, z), $ = n(U, e(j?.indicator, z) ?? {}, z), ee = n(W, e(j?.strikethrough, z) ?? {}, z);
|
|
189
|
+
return /* @__PURE__ */ s(B, {
|
|
190
|
+
...q,
|
|
191
|
+
ref: J,
|
|
192
|
+
children: [/* @__PURE__ */ s(V, {
|
|
193
|
+
component: "span",
|
|
194
|
+
...Z,
|
|
195
|
+
style: {
|
|
196
|
+
backgroundColor: f,
|
|
197
|
+
backgroundImage: h ? `linear-gradient(${180 - g}deg, ${f} 0 50%, ${h} 50% 100%)` : void 0,
|
|
198
|
+
...Y
|
|
199
|
+
},
|
|
200
|
+
children: [T ? /* @__PURE__ */ o(H, {
|
|
201
|
+
alt: "",
|
|
202
|
+
component: "img",
|
|
203
|
+
...Q,
|
|
204
|
+
src: T
|
|
205
|
+
}) : null, N ? /* @__PURE__ */ o(W, {
|
|
206
|
+
"aria-hidden": !0,
|
|
207
|
+
component: "span",
|
|
208
|
+
...ee
|
|
209
|
+
}) : null]
|
|
210
|
+
}), O ? /* @__PURE__ */ o(U, {
|
|
211
|
+
"aria-hidden": !0,
|
|
212
|
+
component: "span",
|
|
213
|
+
...$
|
|
214
|
+
}) : null]
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
T.displayName = "SSwatch";
|
|
218
|
+
//#endregion
|
|
219
|
+
export { T as SSwatch, T as default };
|
package/dist/s-switch/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../s-switch-BCeBoxWf.js";
|
|
2
2
|
export { e as SSwitch, e as default };
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import * as r from "react";
|
|
4
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
import a from "@mui/utils/appendOwnerState";
|
|
6
|
-
import o, { formControlLabelClasses as s } from "@mui/material/FormControlLabel";
|
|
7
|
-
//#region lib/s-switch/s-switch.tsx
|
|
8
|
-
var c = e(o, {
|
|
9
|
-
name: "SSwitch",
|
|
10
|
-
slot: "Root",
|
|
11
|
-
shouldForwardProp: (e) => e !== "ownerState"
|
|
12
|
-
})(({ theme: e }) => ({
|
|
13
|
-
display: "flex",
|
|
14
|
-
justifyContent: "space-between",
|
|
15
|
-
margin: 0,
|
|
16
|
-
userSelect: "none",
|
|
17
|
-
[`&&.${s.disabled}`]: { cursor: "not-allowed" },
|
|
18
|
-
[`&& .${s.label}.${s.disabled}`]: { color: (e.vars ?? e).palette.text.disabled }
|
|
19
|
-
}));
|
|
20
|
-
function l(e, t) {
|
|
21
|
-
return typeof e == "function" ? e(t) : e;
|
|
22
|
-
}
|
|
23
|
-
var u = r.forwardRef(function(e, r) {
|
|
24
|
-
let o = t({
|
|
25
|
-
props: e,
|
|
26
|
-
name: "SSwitch"
|
|
27
|
-
}), { disabled: s = !1, label: u, labelPlacement: d = "start", required: f = !1, slotProps: p, slots: m, ...h } = o, g = {
|
|
28
|
-
...o,
|
|
29
|
-
disabled: s,
|
|
30
|
-
labelPlacement: d,
|
|
31
|
-
required: f
|
|
32
|
-
}, _ = m?.control ?? n, v = l(p?.control, g), y = a(m?.control, v ?? {}, g);
|
|
33
|
-
return /* @__PURE__ */ i(c, {
|
|
34
|
-
...h,
|
|
35
|
-
control: /* @__PURE__ */ i(_, { ...y }),
|
|
36
|
-
disabled: s,
|
|
37
|
-
label: u,
|
|
38
|
-
labelPlacement: d,
|
|
39
|
-
ownerState: g,
|
|
40
|
-
ref: r,
|
|
41
|
-
required: f,
|
|
42
|
-
slots: m?.typography ? { typography: m.typography } : void 0,
|
|
43
|
-
slotProps: p?.typography ? { typography: p.typography } : void 0
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
u.displayName = "SSwitch";
|
|
47
|
-
//#endregion
|
|
48
|
-
export { u as SSwitch, u as default };
|
|
1
|
+
import { t as e } from "../s-switch-BCeBoxWf.js";
|
|
2
|
+
export { e as SSwitch, e as default };
|