@solostylist/ui-kit 2.0.0 → 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-COc9VdNg.js → Add-CEnTWsXs.js} +1 -1
- package/dist/{ArrowUpward-D88i2k4q.js → ArrowUpward-udL1ltj2.js} +1 -1
- package/dist/{Button-DgIFcM44.js → Button-DaLr1m20.js} +5 -5
- package/dist/{ButtonBase-DxKtpFYs.js → ButtonBase-DovDC6-1.js} +224 -271
- package/dist/{Checkbox-BoZu9z2l.js → Checkbox-C-Xjbzzh.js} +7 -7
- package/dist/{ChevronRight-BxsM4W78.js → ChevronRight-DsPfsFKB.js} +1 -1
- package/dist/{Close-o4HFfK0I.js → Close-CIYOM-Sc.js} +1 -1
- package/dist/{Collapse-zgIFP5Sj.js → Collapse-DPUr1cbP.js} +46 -46
- package/dist/{ContentCopy-5unyTYXy.js → ContentCopy-Hlh3azVb.js} +1 -1
- package/dist/{DialogContent-CAry6lVf.js → DialogContent-b3xbJVC6.js} +5 -5
- package/dist/{Download-DtvoRwpl.js → Download-D9PkFi7a.js} +1 -1
- package/dist/{ExpandMore-Ba5bg6s-.js → ExpandMore-sOgvEha9.js} +1 -1
- package/dist/{Favorite-B_GsElm0.js → Favorite-BP343hjM.js} +1 -1
- package/dist/FavoriteBorder-D15j9xEL.js +6 -0
- package/dist/{FormControl-BxmM9UP6.js → FormControl-DwMfZCiz.js} +46 -52
- package/dist/{FormControlLabel-DzgppcC_.js → FormControlLabel-Ihga1FTB.js} +5 -5
- package/dist/{Grow-zRRuwUl-.js → Grow-BQR7x52V.js} +20 -20
- package/dist/{elementAcceptingRef-DhkNAkFH.js → IconButton-CE-4GamO.js} +87 -111
- package/dist/{InfoOutlined-VC7X46pc.js → InfoOutlined-lpvhO6P8.js} +1 -1
- package/dist/{List-CnGIAXAS.js → List-RNcZhRdr.js} +26 -24
- package/dist/Menu-CnyB4SDS.js +180 -0
- package/dist/{MenuItem-rXJfQzDC.js → MenuItem-Ck30dBOR.js} +15 -14
- package/dist/MenuList-Cc98uWXq.js +160 -0
- package/dist/{Modal-jAiibALV.js → Modal-CD2EBfU8.js} +116 -121
- package/dist/{Paper-ixxCeml9.js → Paper-_3qggtBp.js} +2 -2
- package/dist/Popover-BFdKSYI5.js +340 -0
- package/dist/{Popper-CVYyMS3c.js → Popper-DYNAMSDd.js} +62 -61
- package/dist/{Portal-AnyvFRC4.js → Portal-i_wgIe9-.js} +13 -17
- package/dist/Remove-DDEn8ek8.js +6 -0
- package/dist/{Stack-UMc4dV4G.js → Stack-C0LGzM4c.js} +1 -1
- package/dist/{SwitchBase-D7zqrstO.js → SwitchBase-CjWtDdmE.js} +5 -5
- package/dist/{Tooltip-DbCd6rgF.js → Tooltip-B1sn94L0.js} +161 -160
- package/dist/{Typography-yXjc7kVP.js → Typography-_P0svrkO.js} +3 -3
- package/dist/{UnfoldMoreRounded-DsN0HVDV.js → UnfoldMoreRounded-CuCrdxoy.js} +1 -1
- package/dist/{autocomplete-B_4y84Ba.js → autocomplete-BgARERpp.js} +1 -1
- package/dist/{avatar-BHuZu3DN.js → avatar-XNOdbbRz.js} +1 -1
- package/dist/chainPropTypes-CkMRtDjQ.js +8 -0
- package/dist/{checkbox-BKMZEVU5.js → checkbox-D1U_JKqs.js} +3 -3
- package/dist/{createSvgIcon-B0SZlJF1.js → createSvgIcon-3y-gS0r1.js} +3 -3
- package/dist/elementAcceptingRef-pKEY6jPR.js +25 -0
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +19 -0
- package/dist/{objectWithoutPropertiesLoose-Cpds-4w8.js → extends-DXMyyJCW.js} +1 -12
- package/dist/{field-label-styles-BOyhp6gw.js → field-label-styles-4praXMaE.js} +1 -1
- package/dist/getActiveElement-BfBkhgy6.js +8 -0
- package/dist/{gradients-90SYkAC0.js → gradients-mQAYCK0_.js} +1 -1
- 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/{mergeSlotProps-xl1-PgWL.js → mergeSlotProps-DC8r4QzS.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +12 -0
- package/dist/{outlinedInputClasses-DECY98u0.js → outlinedInputClasses-ci1zDasn.js} +1 -1
- 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-Dw3PEYF5.js → palettes-B1FcGUYs.js} +2 -2
- package/dist/refType-j5S9pc_e.js +6 -0
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-B8nlrdFc.js → s-accordion-1oLxQhod.js} +23 -23
- package/dist/s-action-overlay/s-action-overlay.js +1 -1
- 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 +1 -1
- package/dist/s-blur-text/s-blur-text.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/{s-carousel-Dnjke4JQ.js → s-carousel-CAyAl3ka.js} +7 -5
- package/dist/s-category-card/s-category-card.js +1 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DCS0mJE4.js → s-chat-input-T3gyan60.js} +8 -8
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-9oollJJq.js → s-chat-message-NFTpNgt5.js} +4 -4
- package/dist/s-checkbox/s-checkbox.js +5 -5
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-WqGdqHW9.js → s-chips-Dqq1fgz-.js} +5 -5
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-DzGoGg5e.js → s-code-block-DyDtctGG.js} +2 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-C6kfgRjv.js → s-comment-message-DpCVBKiE.js} +53 -52
- package/dist/s-copyable-text/s-copyable-text.js +2 -2
- package/dist/s-countdown/s-count-box.js +1 -1
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-B1TGVupB.js → s-data-table-D4V58HFR.js} +16 -16
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- 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 +1 -1
- package/dist/{s-datetime-picker-ByzW44E0.js → s-datetime-picker-zfg7BEOW.js} +623 -615
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/{s-dialog-BLiyjLkx.js → s-dialog-BNlXsVVP.js} +10 -10
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.js +4 -4
- 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 +2 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-CVQpYRdY.js → s-file-dropzone-Cfzv1Cm8.js} +16 -16
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-form/s-form.js +2 -2
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +1 -1
- 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 +8 -8
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +1 -1
- package/dist/s-image-viewer/s-image-viewer.js +1 -1
- package/dist/s-image-viewer/use-image-viewer-navigation.js +1 -1
- package/dist/{s-image-viewer-DNIEYdtL.js → s-image-viewer-CjK67-rs.js} +5 -5
- 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 +9 -9
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/s-language-switcher-PaMgHWc2.js +246 -0
- package/dist/s-lazy-image/s-lazy-image.js +2 -2
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +1 -1
- package/dist/{s-link-CAMTGfd9.js → s-link-Db1aabHh.js} +5 -4
- 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 +1 -1
- package/dist/{s-localization-provider-Xw3NO2uP.js → s-localization-provider-CeyB_SGz.js} +2 -2
- 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/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +124 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- 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 +1 -1
- package/dist/{s-pagination-Dt8Pk5Tp.js → s-pagination-s46hBifh.js} +33 -33
- package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
- 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/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-DSXXtWlL.js → s-review--Q2C0ngO.js} +4 -4
- package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
- 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 +2 -2
- package/dist/s-scroll-velocity/scroll-velocity-row.js +1 -1
- 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 +1 -1
- package/dist/{s-select-dwY2DYa9.js → s-select-CtVKEOZ5.js} +3 -3
- package/dist/s-select-list/s-select-list.js +5 -5
- package/dist/s-skeleton/s-skeleton.js +10 -10
- package/dist/s-snackbar-message/index.js +1 -1
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/{s-snackbar-message-3Z6VySlB.js → s-snackbar-message-DsfJlDYd.js} +98 -96
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +1 -1
- package/dist/s-status-illustration/s-status-illustration.js +1 -1
- 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 +2 -2
- package/dist/s-stripe/stripe-input.js +1 -1
- 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 +1 -1
- package/dist/{s-switch-B8bZAzLh.js → s-switch-BCeBoxWf.js} +18 -18
- package/dist/s-tabs/s-tabs.js +4 -4
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/{s-text-editor-toolbar-D-XgFQix.js → s-text-editor-toolbar-D5eQ-jCs.js} +708 -705
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-BM4qk0mf.js → s-text-field-HYyDf1Jo.js} +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
- package/dist/s-text-truncation/s-text-truncation.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.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 +1 -1
- 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 +1 -1
- package/dist/{s-theme-switch-BLMz1_m2.js → s-theme-switch-BFWpADh3.js} +2 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-ty41ePQm.js → s-tip-jbL7vtoU.js} +5 -5
- package/dist/s-tool-bar/s-tool-bar.js +3 -3
- package/dist/s-tool-bar/tool-bar-action-buttons.js +1 -1
- package/dist/s-tool-bar/tool-bar-image-input.js +1 -1
- package/dist/s-tool-bar/tool-bar-inputs.js +3 -3
- package/dist/s-tool-item/s-tool-item.d.ts +10 -6
- package/dist/s-tool-item/s-tool-item.js +13 -13
- package/dist/s-two-pane-layout/s-two-pane-layout.js +1 -1
- package/dist/s-zoom-image/s-zoom-image.js +2 -2
- package/dist/setRef-BWPyWnrr.js +6 -0
- package/dist/theme/component-augmentation.d.ts +65 -1
- package/dist/theme/components/autocomplete.js +1 -1
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/card.js +1 -1
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.js +4 -4
- 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 +1 -1
- 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 +3 -3
- package/dist/theme/components/month-calendar.js +2 -2
- package/dist/theme/components/outlined-input.js +2 -2
- package/dist/theme/components/pickers-calendar-header.js +2 -2
- package/dist/theme/components/select.js +2 -2
- 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 +1 -1
- package/dist/theme/components/year-calendar.js +2 -2
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-demo-components-section-gtIYRngY.js → theme-demo-components-section-C7l_2KAo.js} +4 -4
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CXtaMdVj.js} +2 -2
- package/dist/{toggle-button-Cxi5CfXC.js → toggle-button-BsGb-tOr.js} +1 -1
- package/dist/{tool-bar-action-buttons-Dt-pV3GA.js → tool-bar-action-buttons-v1koaasr.js} +3 -3
- package/dist/{tool-bar-image-input-BXlll_hV.js → tool-bar-image-input-DtXTyEe1.js} +2 -2
- package/dist/unsupportedProp-whMV_uOi.js +11 -0
- package/dist/{useControlled-BeB0W_Ui.js → useControlled-DqNPBJNp.js} +1 -1
- package/dist/useEventCallback-DGCsaRIu.js +5 -0
- package/dist/{useEventCallback-CVqMfiG_.js → useEventCallback-DhCPBxRG.js} +1 -4
- package/dist/{useMobilePicker-C4UQFvkj.js → useMobilePicker-CdrT935R.js} +2176 -2172
- package/dist/useRovingTabIndex-DPlW997R.js +242 -0
- package/dist/{useSlot-iIu8ek6E.js → useSlot-BG8ReOxN.js} +3 -3
- package/dist/{isLayoutSupported-Ceir7nyK.js → useSlotProps-BOO3qaI9.js} +4 -9
- package/dist/useThemeProps-Dw9dmKyT.js +29 -0
- package/dist/useTimeout-CoK-Khfm.js +49 -0
- package/dist/{utils-oJyTAkZY.js → utils-Bfqbev5I.js} +45 -11
- package/dist/{warning-CNkSZkq6.js → warning-D5YhCbje.js} +3 -2
- package/package.json +1 -1
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/theme/components/components.d.ts +0 -2
- package/dist/theme/components/slider.d.ts +0 -34
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- /package/dist/{appendOwnerState-CELpvdMz.js → appendOwnerState-CFQTq3pb.js} +0 -0
- /package/dist/{buttonBaseClasses-BvBqFLb_.js → buttonBaseClasses-B90LjsNK.js} +0 -0
- /package/dist/{capitalize-CccCFNpQ.js → capitalize-C0baBJCm.js} +0 -0
- /package/dist/{checkboxClasses-CEsqS4sc.js → checkboxClasses-B1up2lUn.js} +0 -0
- /package/dist/{colors-DKqWMRgW.js → colors-Bik9qOU9.js} +0 -0
- /package/dist/{contains-WOhYaq1E.js → contains-DnqPQsQU.js} +0 -0
- /package/dist/{createSimplePaletteValueFilter-C1gWywW_.js → createSimplePaletteValueFilter-DFvyXHoZ.js} +0 -0
- /package/dist/{formLabelClasses-B0Fa-86T.js → formLabelClasses-AuZHWfTs.js} +0 -0
- /package/dist/{iconButtonClasses-CkciZuIe.js → iconButtonClasses-CVVRFXRo.js} +0 -0
- /package/dist/{inputAdornmentClasses-D5yYK5bM.js → inputAdornmentClasses-BbB8s-Z4.js} +0 -0
- /package/dist/{inputBaseClasses-DuWQGq8Z.js → inputBaseClasses-Ce_jjdp9.js} +0 -0
- /package/dist/{integerPropType-Disnft4a.js → integerPropType-CCkQD1JY.js} +0 -0
- /package/dist/{isEventHandler-8dPdzK9U.js → isEventHandler-QShLXBxE.js} +0 -0
- /package/dist/{monthCalendarClasses-BYVHyEfI.js → monthCalendarClasses-b964KRbc.js} +0 -0
- /package/dist/{pickersCalendarHeaderClasses-CIj0gBye.js → pickersCalendarHeaderClasses-BAiPN_oY.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-D7Jovf5K.js} +0 -0
- /package/dist/{s-no-ssr-D8tPdDfh.js → s-no-ssr-DH57_uP_.js} +0 -0
- /package/dist/{selectClasses-DoUlWfzV.js → selectClasses-CPxME5jE.js} +0 -0
- /package/dist/{svgIconClasses-C8D4AsMj.js → svgIconClasses-1kWGzgux.js} +0 -0
- /package/dist/{switchClasses-eiq1bkQN.js → switchClasses-BtweO7PC.js} +0 -0
- /package/dist/{typographyClasses-BLM3NmYd.js → typographyClasses-BH_-zLwg.js} +0 -0
- /package/dist/{useControlled-C4QJnpiR.js → useControlled-uxVKygk1.js} +0 -0
- /package/dist/{useEnhancedEffect-Bc3gBClC.js → useEnhancedEffect-dBFfkm1e.js} +0 -0
- /package/dist/{useForkRef-CKneCEtr.js → useForkRef-BuNFTXxE.js} +0 -0
- /package/dist/{useFormControl-iWLrn7Ek.js → useFormControl-gXwNeUM1.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-DOY6v6ln.js} +0 -0
- /package/dist/{yearCalendarClasses-CuAQumpz.js → yearCalendarClasses-D9k_KT38.js} +0 -0
|
@@ -1,87 +1,66 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
|
|
3
|
+
import { t as n } from "../useForkRef-BuNFTXxE.js";
|
|
4
|
+
import { t as r } from "../appendOwnerState-CFQTq3pb.js";
|
|
5
|
+
import { actionHoverMedia as i } from "../theme/components/action-styles.js";
|
|
6
|
+
import { t as a } from "../mergeSlotProps-DC8r4QzS.js";
|
|
7
|
+
import { SListActionItem as o } from "../s-list-action-item/s-list-action-item.js";
|
|
8
|
+
import * as s from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { styled as u, useThemeProps as d } from "@mui/material";
|
|
6
11
|
//#region lib/s-nav-item/s-nav-item.tsx
|
|
7
|
-
var
|
|
12
|
+
var f = u("li", {
|
|
8
13
|
name: "SNavItem",
|
|
9
14
|
slot: "Root"
|
|
10
|
-
})({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
})({
|
|
16
|
+
display: "block",
|
|
17
|
+
userSelect: "none"
|
|
18
|
+
}), p = u(o, {
|
|
19
|
+
name: "SNavItem",
|
|
20
|
+
slot: "Item",
|
|
21
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
22
|
+
})(({ theme: e }) => ({
|
|
23
|
+
borderRadius: e.radius.md,
|
|
24
|
+
color: (e.vars ?? e).palette.text.secondary,
|
|
25
|
+
padding: e.spacing(1.5),
|
|
26
|
+
"&.Mui-selected": { color: (e.vars ?? e).palette.text.primary },
|
|
27
|
+
[i]: { "&:hover": { color: (e.vars ?? e).palette.text.primary } }
|
|
28
|
+
})), m = s.forwardRef(function(i, o) {
|
|
29
|
+
let s = d({
|
|
30
|
+
props: i,
|
|
17
31
|
name: "SNavItem"
|
|
18
|
-
}), {
|
|
19
|
-
...
|
|
32
|
+
}), { children: u, disabled: m = !1, href: h, icon: g, label: _, onClick: v, selected: y = !1, slotProps: b, slots: x, sx: S, trailing: C, ...w } = s, T = {
|
|
33
|
+
...s,
|
|
20
34
|
disabled: m,
|
|
21
35
|
selected: y
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"&.Mui-selected": { color: "text.primary" },
|
|
49
|
-
"&.Mui-disabled": { cursor: "not-allowed" },
|
|
50
|
-
"@media (hover: hover) and (pointer: fine)": { "&:hover": { color: "text.primary" } }
|
|
51
|
-
}, ...e(R)],
|
|
52
|
-
children: [/* @__PURE__ */ i(a, {
|
|
53
|
-
sx: {
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
display: "flex",
|
|
56
|
-
gap: 1,
|
|
57
|
-
minWidth: 0
|
|
58
|
-
},
|
|
59
|
-
children: [g == null ? null : /* @__PURE__ */ r(E, {
|
|
60
|
-
component: "span",
|
|
61
|
-
...V,
|
|
62
|
-
sx: [{
|
|
63
|
-
alignItems: "center",
|
|
64
|
-
display: "flex",
|
|
65
|
-
justifyContent: "center"
|
|
66
|
-
}, ...e(B)],
|
|
67
|
-
children: g
|
|
68
|
-
}), /* @__PURE__ */ r(D, {
|
|
69
|
-
component: "span",
|
|
70
|
-
...F,
|
|
71
|
-
children: v
|
|
72
|
-
})]
|
|
73
|
-
}), p == null ? null : /* @__PURE__ */ r(O, {
|
|
74
|
-
component: "span",
|
|
75
|
-
...U,
|
|
76
|
-
sx: [{
|
|
77
|
-
alignItems: "center",
|
|
78
|
-
display: "flex"
|
|
79
|
-
}, ...e(H)],
|
|
80
|
-
children: p
|
|
81
|
-
})]
|
|
82
|
-
})
|
|
36
|
+
}, E = x?.root ?? f, D = x?.item ?? p, { ref: O, sx: k, ...A } = r(E, a(t(b?.root, T), w), T), j = n(O, o), M = r(D, a(t(b?.item, T), {
|
|
37
|
+
disabled: m,
|
|
38
|
+
href: h,
|
|
39
|
+
icon: g,
|
|
40
|
+
onClick: v,
|
|
41
|
+
selected: y,
|
|
42
|
+
slots: {
|
|
43
|
+
icon: x?.icon,
|
|
44
|
+
label: x?.label,
|
|
45
|
+
trailing: x?.trailing
|
|
46
|
+
},
|
|
47
|
+
slotProps: {
|
|
48
|
+
icon: b?.icon,
|
|
49
|
+
label: b?.label,
|
|
50
|
+
trailing: b?.trailing
|
|
51
|
+
},
|
|
52
|
+
trailing: C
|
|
53
|
+
}), T);
|
|
54
|
+
return /* @__PURE__ */ l(E, {
|
|
55
|
+
...A,
|
|
56
|
+
ref: j,
|
|
57
|
+
sx: [...e(k), ...e(S)],
|
|
58
|
+
children: [/* @__PURE__ */ c(D, {
|
|
59
|
+
...M,
|
|
60
|
+
label: _
|
|
61
|
+
}), u]
|
|
83
62
|
});
|
|
84
63
|
});
|
|
85
|
-
|
|
64
|
+
m.displayName = "SNavItem";
|
|
86
65
|
//#endregion
|
|
87
|
-
export {
|
|
66
|
+
export { m as SNavItem, m as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { SNavGroupItem as e, SNavItems as t } from "./s-nav-items.js";
|
|
2
|
+
export { e as SNavGroupItem, t as SNavItems, t as default };
|
|
@@ -1,2 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../Box-9oeZgA1U.js";
|
|
2
|
+
import { t } from "../styled-Bog8QCl3.js";
|
|
3
|
+
import { t as n } from "../Stack-C0LGzM4c.js";
|
|
4
|
+
import { t as r } from "../useThemeProps-Dw9dmKyT.js";
|
|
5
|
+
import { toSxArray as i } from "../utils/sx.js";
|
|
6
|
+
import { reducedMotionMedia as a } from "../theme/components/action-styles.js";
|
|
7
|
+
import { t as o } from "../ExpandMore-sOgvEha9.js";
|
|
8
|
+
import { SNavItem as s } from "../s-nav-item/s-nav-item.js";
|
|
9
|
+
import { t as c } from "../Collapse-DPUr1cbP.js";
|
|
10
|
+
import * as l from "react";
|
|
11
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
12
|
+
//#region lib/s-nav-items/s-nav-items.tsx
|
|
13
|
+
var d = t(l.forwardRef(function(e, t) {
|
|
14
|
+
return /* @__PURE__ */ u(n, {
|
|
15
|
+
component: "ul",
|
|
16
|
+
...e,
|
|
17
|
+
ref: t
|
|
18
|
+
});
|
|
19
|
+
}), {
|
|
20
|
+
name: "SNavItems",
|
|
21
|
+
slot: "Root"
|
|
22
|
+
})({});
|
|
23
|
+
function f(e, t) {
|
|
24
|
+
return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? f(e.items, t) : !1);
|
|
25
|
+
}
|
|
26
|
+
function p(e, t) {
|
|
27
|
+
return !!(e.href && (t === e.href || t.startsWith(e.href + "/")));
|
|
28
|
+
}
|
|
29
|
+
function m(e, t) {
|
|
30
|
+
let n = e.items ?? [];
|
|
31
|
+
return {
|
|
32
|
+
active: p(e, t),
|
|
33
|
+
childActive: n.length > 0 && f(n, t)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function h({ item: t, pathname: n, depth: r, linkComponent: i }) {
|
|
37
|
+
let d = !!(t.items && t.items.length > 0), { active: f, childActive: p } = m(t, n), [h, _] = l.useState(t.defaultOpen ?? p);
|
|
38
|
+
if (l.useEffect(() => {
|
|
39
|
+
p && _(!0);
|
|
40
|
+
}, [p]), !d) return /* @__PURE__ */ u(s, {
|
|
41
|
+
disabled: t.disabled,
|
|
42
|
+
href: t.href,
|
|
43
|
+
icon: t.icon ? t.icon(f) : null,
|
|
44
|
+
label: t.title,
|
|
45
|
+
selected: f,
|
|
46
|
+
slotProps: { item: {
|
|
47
|
+
component: t.component ?? i,
|
|
48
|
+
rel: t.rel,
|
|
49
|
+
target: t.target,
|
|
50
|
+
sx: r > 0 ? { pl: `${(r - 1) * 12 + 12}px` } : void 0
|
|
51
|
+
} }
|
|
52
|
+
});
|
|
53
|
+
let v = f || p;
|
|
54
|
+
return /* @__PURE__ */ u(s, {
|
|
55
|
+
disabled: t.disabled,
|
|
56
|
+
icon: t.icon ? t.icon(v) : null,
|
|
57
|
+
label: t.title,
|
|
58
|
+
onClick: () => _((e) => !e),
|
|
59
|
+
selected: v,
|
|
60
|
+
slotProps: {
|
|
61
|
+
item: {
|
|
62
|
+
"aria-current": void 0,
|
|
63
|
+
"aria-expanded": h,
|
|
64
|
+
sx: { pl: r > 0 ? `${r * 12 + 12}px` : "12px" }
|
|
65
|
+
},
|
|
66
|
+
trailing: { sx: {
|
|
67
|
+
transform: h ? "rotate(0deg)" : "rotate(-90deg)",
|
|
68
|
+
transition: (e) => e.transitions.create("transform", { duration: e.transitions.duration.shorter }),
|
|
69
|
+
[a]: { transition: "none" }
|
|
70
|
+
} }
|
|
71
|
+
},
|
|
72
|
+
trailing: /* @__PURE__ */ u(o, {}),
|
|
73
|
+
children: /* @__PURE__ */ u(c, {
|
|
74
|
+
in: h,
|
|
75
|
+
timeout: 200,
|
|
76
|
+
unmountOnExit: !0,
|
|
77
|
+
children: /* @__PURE__ */ u(e, {
|
|
78
|
+
sx: {
|
|
79
|
+
ml: r > 0 ? `${r * 16 + 12}px` : "12px",
|
|
80
|
+
mt: 1,
|
|
81
|
+
mb: 1,
|
|
82
|
+
pl: 1
|
|
83
|
+
},
|
|
84
|
+
children: /* @__PURE__ */ u(g, {
|
|
85
|
+
items: t.items,
|
|
86
|
+
pathname: n,
|
|
87
|
+
depth: r + 1,
|
|
88
|
+
linkComponent: i
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
h.displayName = "SNavGroupItem";
|
|
95
|
+
var g = l.forwardRef(function(e, t) {
|
|
96
|
+
let n = r({
|
|
97
|
+
props: e,
|
|
98
|
+
name: "SNavItems"
|
|
99
|
+
}), { depth: a = 0, items: o, linkComponent: s, pathname: c = "", sx: l, ...f } = n, p = {
|
|
100
|
+
...n,
|
|
101
|
+
depth: a,
|
|
102
|
+
pathname: c
|
|
103
|
+
};
|
|
104
|
+
return /* @__PURE__ */ u(d, {
|
|
105
|
+
spacing: 1,
|
|
106
|
+
...f,
|
|
107
|
+
ref: t,
|
|
108
|
+
ownerState: p,
|
|
109
|
+
sx: [{
|
|
110
|
+
listStyle: "none",
|
|
111
|
+
m: 0,
|
|
112
|
+
p: 0
|
|
113
|
+
}, ...i(l)],
|
|
114
|
+
children: o.map((e) => /* @__PURE__ */ u(h, {
|
|
115
|
+
item: e,
|
|
116
|
+
pathname: c,
|
|
117
|
+
depth: a,
|
|
118
|
+
linkComponent: s
|
|
119
|
+
}, e.key))
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
g.displayName = "SNavItems";
|
|
123
|
+
//#endregion
|
|
124
|
+
export { h as SNavGroupItem, g as SNavItems, g as default };
|
package/dist/s-no-ssr/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-no-ssr-
|
|
1
|
+
import { t as e } from "../s-no-ssr-DH57_uP_.js";
|
|
2
2
|
export { e as SNoSsr, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-no-ssr-
|
|
1
|
+
import { t as e } from "../s-no-ssr-DH57_uP_.js";
|
|
2
2
|
export { e as SNoSsr, e as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default, default as SNumberRange } from './s-number-range';
|
|
2
|
+
export type { SNumberRangeColor, SNumberRangeOwnerState, SNumberRangeProps, SNumberRangeSize, SNumberRangeSlotProps, SNumberRangeSlots, SNumberRangeValue, } from './s-number-range';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { BoxProps, SliderProps, SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { STextFieldProps } from '../s-text-field';
|
|
3
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
/** Inclusive `[minimum, maximum]` pair emitted by the control. */
|
|
6
|
+
export type SNumberRangeValue = readonly [number, number];
|
|
7
|
+
/** Density of the slider and the two numeric inputs. */
|
|
8
|
+
export type SNumberRangeSize = 'small' | 'medium';
|
|
9
|
+
/** Theme color shared by the slider and the focus state of both inputs. */
|
|
10
|
+
export type SNumberRangeColor = NonNullable<SliderProps['color']>;
|
|
11
|
+
type SNumberRangeFieldsetProps = Omit<React.ComponentPropsWithoutRef<'fieldset'>, 'children' | 'color' | 'defaultValue' | 'onChange' | 'value'> & {
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
};
|
|
14
|
+
type SNumberRangeLegendProps = Omit<React.ComponentPropsWithoutRef<'legend'>, 'children'> & {
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
};
|
|
17
|
+
export interface SNumberRangeSlots {
|
|
18
|
+
/** Row wrapping the two numeric inputs and the separator. */
|
|
19
|
+
inputs?: React.ElementType;
|
|
20
|
+
/** Optional group label rendered as the fieldset legend. */
|
|
21
|
+
label?: React.ElementType;
|
|
22
|
+
/** Numeric input bound to `value[1]`. */
|
|
23
|
+
maxInput?: React.ElementType;
|
|
24
|
+
/** Numeric input bound to `value[0]`. */
|
|
25
|
+
minInput?: React.ElementType;
|
|
26
|
+
/** Outer fieldset. */
|
|
27
|
+
root?: React.ElementType;
|
|
28
|
+
/** Element rendered between the two numeric inputs. */
|
|
29
|
+
separator?: React.ElementType;
|
|
30
|
+
/** Dual-thumb range slider. */
|
|
31
|
+
slider?: React.ElementType;
|
|
32
|
+
}
|
|
33
|
+
export interface SNumberRangeSlotProps {
|
|
34
|
+
/** Props or owner-state callback for the inputs row. */
|
|
35
|
+
inputs?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SNumberRangeOwnerState>;
|
|
36
|
+
/** Props or owner-state callback for the group label. */
|
|
37
|
+
label?: MuiOwnerStateSlotProps<SNumberRangeLegendProps, SNumberRangeOwnerState>;
|
|
38
|
+
/** Props or owner-state callback for the maximum input. */
|
|
39
|
+
maxInput?: MuiOwnerStateSlotProps<Omit<STextFieldProps, 'color' | 'defaultValue' | 'disabled' | 'error' | 'size' | 'type' | 'value'>, SNumberRangeOwnerState>;
|
|
40
|
+
/** Props or owner-state callback for the minimum input. */
|
|
41
|
+
minInput?: MuiOwnerStateSlotProps<Omit<STextFieldProps, 'color' | 'defaultValue' | 'disabled' | 'error' | 'size' | 'type' | 'value'>, SNumberRangeOwnerState>;
|
|
42
|
+
/** Props or owner-state callback for the root slot. */
|
|
43
|
+
root?: MuiOwnerStateSlotProps<Omit<SNumberRangeFieldsetProps, 'disabled'>, SNumberRangeOwnerState>;
|
|
44
|
+
/** Props or owner-state callback for the separator slot. */
|
|
45
|
+
separator?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SNumberRangeOwnerState>;
|
|
46
|
+
/** Props or owner-state callback for the slider slot. */
|
|
47
|
+
slider?: MuiOwnerStateSlotProps<Omit<SliderProps, 'color' | 'defaultValue' | 'disableSwap' | 'disabled' | 'getAriaLabel' | 'getAriaValueText' | 'max' | 'min' | 'onChange' | 'onChangeCommitted' | 'size' | 'step' | 'value'>, SNumberRangeOwnerState>;
|
|
48
|
+
}
|
|
49
|
+
/** Props for a dual-thumb numeric range with synchronized min/max text inputs. */
|
|
50
|
+
export interface SNumberRangeProps extends SNumberRangeFieldsetProps {
|
|
51
|
+
/** Theme color shared by the slider and the focus state of both inputs. */
|
|
52
|
+
color?: SNumberRangeColor;
|
|
53
|
+
/** Initial range when the control is uncontrolled. Defaults to `[min, max]`. */
|
|
54
|
+
defaultValue?: SNumberRangeValue;
|
|
55
|
+
/** Disables the slider and both inputs. */
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
/** Accessible text formatter for each slider thumb. */
|
|
58
|
+
getAriaValueText?: SliderProps['getAriaValueText'];
|
|
59
|
+
/** Helper text shown while a typed draft is empty, out of range, or inverted. */
|
|
60
|
+
invalidRangeText?: React.ReactNode;
|
|
61
|
+
/** Optional visible label for the whole range group. */
|
|
62
|
+
label?: React.ReactNode;
|
|
63
|
+
/** Upper bound of the range. */
|
|
64
|
+
max?: number;
|
|
65
|
+
/** Accessible name of the upper thumb and the maximum input. */
|
|
66
|
+
maxLabel?: string;
|
|
67
|
+
/** Lower bound of the range. */
|
|
68
|
+
min?: number;
|
|
69
|
+
/** Accessible name of the lower thumb and the minimum input. */
|
|
70
|
+
minLabel?: string;
|
|
71
|
+
/** Called for every valid change while dragging or typing. */
|
|
72
|
+
onChange?: (event: Event | React.SyntheticEvent, value: SNumberRangeValue) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Called once the interaction settles: on slider release and when an input is
|
|
75
|
+
* blurred or committed with Enter. Use this as the persist/apply signal.
|
|
76
|
+
*/
|
|
77
|
+
onChangeCommitted?: (event: Event | React.SyntheticEvent, value: SNumberRangeValue) => void;
|
|
78
|
+
/** Content rendered between the two numeric inputs. */
|
|
79
|
+
separator?: React.ReactNode;
|
|
80
|
+
/** Density of the slider and the two numeric inputs. */
|
|
81
|
+
size?: SNumberRangeSize;
|
|
82
|
+
/** Props or owner-state callbacks for internal structural slots. */
|
|
83
|
+
slotProps?: SNumberRangeSlotProps;
|
|
84
|
+
/** Components used for internal structural slots. */
|
|
85
|
+
slots?: SNumberRangeSlots;
|
|
86
|
+
/** Granularity passed to the slider and both native number inputs. */
|
|
87
|
+
step?: number;
|
|
88
|
+
/** Controlled range. */
|
|
89
|
+
value?: SNumberRangeValue;
|
|
90
|
+
/** Formats the visual value label rendered above each slider thumb. */
|
|
91
|
+
valueLabelFormat?: SliderProps['valueLabelFormat'];
|
|
92
|
+
}
|
|
93
|
+
export interface SNumberRangeOwnerState extends SNumberRangeProps {
|
|
94
|
+
color: SNumberRangeColor;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
/** True when either numeric input renders a visible field label above the box. */
|
|
97
|
+
hasInputLabel: boolean;
|
|
98
|
+
max: number;
|
|
99
|
+
/** True while the maximum input holds an invalid draft. */
|
|
100
|
+
maxInvalid: boolean;
|
|
101
|
+
min: number;
|
|
102
|
+
/** True while the minimum input holds an invalid draft. */
|
|
103
|
+
minInvalid: boolean;
|
|
104
|
+
size: SNumberRangeSize;
|
|
105
|
+
step: number;
|
|
106
|
+
value: SNumberRangeValue;
|
|
107
|
+
}
|
|
108
|
+
export declare const SNumberRange: React.ForwardRefExoticComponent<SNumberRangeProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
109
|
+
export default SNumberRange;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { t as e } from "./generateUtilityClasses-DvX505Gy.js";
|
|
2
|
+
import { toSxArray as t } from "./utils/sx.js";
|
|
3
|
+
import { resolveOwnerStateSlotProps as n } from "./utils/slots.js";
|
|
4
|
+
import { t as r } from "./useForkRef-BuNFTXxE.js";
|
|
5
|
+
import { t as i } from "./useEventCallback-DGCsaRIu.js";
|
|
6
|
+
import { t as a } from "./appendOwnerState-CFQTq3pb.js";
|
|
7
|
+
import { t as o } from "./useControlled-DqNPBJNp.js";
|
|
8
|
+
import { t as s } from "./mergeSlotProps-DC8r4QzS.js";
|
|
9
|
+
import { t as c } from "./s-text-field-HYyDf1Jo.js";
|
|
10
|
+
import * as l from "react";
|
|
11
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { Box as f, Slider as p, styled as m, useThemeProps as ee } from "@mui/material";
|
|
13
|
+
//#region ../../node_modules/@mui/material/Slider/sliderClasses.mjs
|
|
14
|
+
var h = e("MuiSlider", /* @__PURE__ */ "root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.track.trackInverted.trackFalse.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical".split(".")), g = (e, t, n) => Math.min(Math.max(e, t), n), _ = (e, t, n) => {
|
|
15
|
+
let r = g(e[0], t, n), i = g(e[1], t, n);
|
|
16
|
+
return r <= i ? [r, i] : [i, r];
|
|
17
|
+
}, v = (e) => {
|
|
18
|
+
if (e.trim() === "") return null;
|
|
19
|
+
let t = Number(e);
|
|
20
|
+
return Number.isFinite(t) ? t : null;
|
|
21
|
+
}, y = (e) => e != null && e !== !1 && e !== "", b = (e, t, n, r) => e >= n && e <= r && t >= n && t <= r && e <= t, te = (e, t, n) => {
|
|
22
|
+
if (!Number.isFinite(e) || !Number.isFinite(t) || e >= t) throw RangeError("SNumberRange: `min` and `max` must be finite numbers and `min` must be less than `max`.");
|
|
23
|
+
if (!Number.isFinite(n) || n <= 0) throw RangeError("SNumberRange: `step` must be a finite number greater than 0.");
|
|
24
|
+
}, ne = m("fieldset", {
|
|
25
|
+
name: "SNumberRange",
|
|
26
|
+
slot: "Root",
|
|
27
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
28
|
+
})(({ theme: e }) => ({
|
|
29
|
+
border: 0,
|
|
30
|
+
display: "flex",
|
|
31
|
+
flexDirection: "column",
|
|
32
|
+
gap: e.spacing(1),
|
|
33
|
+
margin: 0,
|
|
34
|
+
minWidth: 0,
|
|
35
|
+
padding: 0,
|
|
36
|
+
width: "100%"
|
|
37
|
+
})), re = m("legend", {
|
|
38
|
+
name: "SNumberRange",
|
|
39
|
+
slot: "Label",
|
|
40
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
41
|
+
})(({ theme: e }) => ({
|
|
42
|
+
...e.typography.body2,
|
|
43
|
+
color: (e.vars ?? e).palette.text.primary,
|
|
44
|
+
fontWeight: 600,
|
|
45
|
+
margin: 0,
|
|
46
|
+
padding: 0
|
|
47
|
+
})), ie = m(p, {
|
|
48
|
+
name: "SNumberRange",
|
|
49
|
+
slot: "Slider",
|
|
50
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
51
|
+
})(({ theme: e, ownerState: t }) => {
|
|
52
|
+
let n = t.size === "small";
|
|
53
|
+
return {
|
|
54
|
+
color: (e.vars ?? e).palette[t.color].main,
|
|
55
|
+
height: n ? 2 : 3,
|
|
56
|
+
padding: e.spacing(n ? 1 : 1.5, 0),
|
|
57
|
+
[`& .${h.rail}`]: {
|
|
58
|
+
backgroundColor: (e.vars ?? e).palette.action.selected,
|
|
59
|
+
opacity: 1
|
|
60
|
+
},
|
|
61
|
+
[`& .${h.track}`]: { border: 0 },
|
|
62
|
+
[`& .${h.thumb}`]: {
|
|
63
|
+
border: `2px solid ${(e.vars ?? e).palette.background.paper}`,
|
|
64
|
+
boxShadow: `0 0 0 1px ${(e.vars ?? e).palette[t.color].main}`,
|
|
65
|
+
height: n ? 14 : 18,
|
|
66
|
+
width: n ? 14 : 18,
|
|
67
|
+
[`&:hover, &.${h.focusVisible}`]: { boxShadow: `0 0 0 6px ${(e.vars ?? e).palette.action.selected}` }
|
|
68
|
+
},
|
|
69
|
+
[`& .${h.mark}`]: {
|
|
70
|
+
backgroundColor: (e.vars ?? e).palette[t.color].main,
|
|
71
|
+
borderRadius: e.radius.sm,
|
|
72
|
+
height: n ? 8 : 10,
|
|
73
|
+
opacity: 1,
|
|
74
|
+
width: n ? 3 : 4
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}), ae = m(f, {
|
|
78
|
+
name: "SNumberRange",
|
|
79
|
+
slot: "Inputs",
|
|
80
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
81
|
+
})(({ theme: e }) => ({
|
|
82
|
+
alignItems: "flex-start",
|
|
83
|
+
display: "flex",
|
|
84
|
+
gap: e.spacing(1)
|
|
85
|
+
})), oe = m(c, {
|
|
86
|
+
name: "SNumberRange",
|
|
87
|
+
slot: "MinInput",
|
|
88
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
89
|
+
})({
|
|
90
|
+
flex: "1 1 0",
|
|
91
|
+
minWidth: 0
|
|
92
|
+
}), se = m(c, {
|
|
93
|
+
name: "SNumberRange",
|
|
94
|
+
slot: "MaxInput",
|
|
95
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
96
|
+
})({
|
|
97
|
+
flex: "1 1 0",
|
|
98
|
+
minWidth: 0
|
|
99
|
+
}), ce = m(f, {
|
|
100
|
+
name: "SNumberRange",
|
|
101
|
+
slot: "Separator",
|
|
102
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
103
|
+
})(({ theme: e, ownerState: t }) => ({
|
|
104
|
+
alignItems: "center",
|
|
105
|
+
color: (e.vars ?? e).palette.text.secondary,
|
|
106
|
+
display: "inline-flex",
|
|
107
|
+
flex: "0 0 auto",
|
|
108
|
+
height: t.size === "small" ? 36 : 40,
|
|
109
|
+
marginTop: t.hasInputLabel ? "1.4375em" : 0,
|
|
110
|
+
paddingInline: e.spacing(.5),
|
|
111
|
+
userSelect: "none"
|
|
112
|
+
})), x = l.forwardRef(function(e, c) {
|
|
113
|
+
let f = ee({
|
|
114
|
+
props: e,
|
|
115
|
+
name: "SNumberRange"
|
|
116
|
+
}), { color: p = "primary", defaultValue: m, disabled: h = !1, getAriaValueText: x, invalidRangeText: le = "Enter a value inside the allowed range", label: S, max: C = 100, maxLabel: w = "Maximum", min: T = 0, minLabel: E = "Minimum", onChange: ue, onChangeCommitted: D, separator: de = "–", size: O = "medium", slotProps: k, slots: A, step: j = 1, sx: fe, value: pe, valueLabelFormat: M, ...me } = f;
|
|
117
|
+
te(T, C, j);
|
|
118
|
+
let [he, ge] = o({
|
|
119
|
+
controlled: pe,
|
|
120
|
+
default: m ?? [T, C],
|
|
121
|
+
name: "SNumberRange",
|
|
122
|
+
state: "value"
|
|
123
|
+
}), [_e, N] = l.useState(null), P = _(he, T, C), ve = P[0], ye = P[1], F = _e ?? [String(P[0]), String(P[1])], I = v(F[0]), L = v(F[1]), be = I !== null && L !== null && b(I, L, T, C), R = I === null || I < T || I > C || L !== null && I > L, z = L === null || L < T || L > C || I !== null && L < I;
|
|
124
|
+
l.useEffect(() => {
|
|
125
|
+
N(null);
|
|
126
|
+
}, [
|
|
127
|
+
C,
|
|
128
|
+
T,
|
|
129
|
+
ye,
|
|
130
|
+
ve
|
|
131
|
+
]);
|
|
132
|
+
let B = {
|
|
133
|
+
...f,
|
|
134
|
+
color: p,
|
|
135
|
+
disabled: h,
|
|
136
|
+
hasInputLabel: !1,
|
|
137
|
+
max: C,
|
|
138
|
+
maxInvalid: z,
|
|
139
|
+
min: T,
|
|
140
|
+
minInvalid: R,
|
|
141
|
+
size: O,
|
|
142
|
+
step: j,
|
|
143
|
+
value: P
|
|
144
|
+
}, V = n(k?.minInput, B), H = n(k?.maxInput, B), U = {
|
|
145
|
+
...B,
|
|
146
|
+
hasInputLabel: y(V?.label) || y(H?.label)
|
|
147
|
+
}, W = i((e, t) => {
|
|
148
|
+
let n = _(t, T, C);
|
|
149
|
+
return n[0] === P[0] && n[1] === P[1] ? n : (ge(n), ue?.(e, n), n);
|
|
150
|
+
}), xe = i((e, t) => {
|
|
151
|
+
Array.isArray(t) && (N(null), W(e, [t[0], t[1]]));
|
|
152
|
+
}), Se = i((e, t) => {
|
|
153
|
+
Array.isArray(t) && D?.(e, _([t[0], t[1]], T, C));
|
|
154
|
+
}), Ce = (e) => (t) => {
|
|
155
|
+
if (t.defaultPrevented) return;
|
|
156
|
+
let n = t.target.value, r = e === 0 ? [n, F[1]] : [F[0], n];
|
|
157
|
+
N(r);
|
|
158
|
+
let i = v(r[0]), a = v(r[1]);
|
|
159
|
+
i !== null && a !== null && b(i, a, T, C) && (N(null), W(t, [i, a]));
|
|
160
|
+
}, we = (e) => (t) => {
|
|
161
|
+
if (t.defaultPrevented) return;
|
|
162
|
+
let n = v(F[e]), r = n === null ? P : e === 0 ? [g(n, T, P[1]), P[1]] : [P[0], g(n, P[0], C)];
|
|
163
|
+
N(null);
|
|
164
|
+
let i = W(t, r);
|
|
165
|
+
D?.(t, i);
|
|
166
|
+
}, Te = (e) => {
|
|
167
|
+
if (e.defaultPrevented) return;
|
|
168
|
+
let t = e.target;
|
|
169
|
+
if (t.tagName === "INPUT") {
|
|
170
|
+
if (e.key === "Escape") {
|
|
171
|
+
e.preventDefault(), N(null);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
e.key === "Enter" && (e.preventDefault(), t.blur());
|
|
175
|
+
}
|
|
176
|
+
}, G = A?.root ?? ne, K = A?.label ?? re, q = A?.slider ?? ie, J = A?.inputs ?? ae, Y = A?.minInput ?? oe, X = A?.maxInput ?? se, Z = A?.separator ?? ce, { ref: Ee, sx: De, ...Oe } = a(G, s(n(k?.root, U), {
|
|
177
|
+
"aria-disabled": h || void 0,
|
|
178
|
+
...me
|
|
179
|
+
}), U), ke = r(Ee, c), Ae = a(K, n(k?.label, U) ?? {}, U), je = a(q, {
|
|
180
|
+
...s(n(k?.slider, U), { valueLabelDisplay: "auto" }),
|
|
181
|
+
color: p,
|
|
182
|
+
disableSwap: !0,
|
|
183
|
+
disabled: h,
|
|
184
|
+
getAriaLabel: (e) => e === 0 ? E : w,
|
|
185
|
+
getAriaValueText: x,
|
|
186
|
+
max: C,
|
|
187
|
+
min: T,
|
|
188
|
+
size: O,
|
|
189
|
+
step: j,
|
|
190
|
+
...M !== void 0 && { valueLabelFormat: M }
|
|
191
|
+
}, U), Q = a(J, n(k?.inputs, U) ?? {}, U), Me = a(Z, {
|
|
192
|
+
"aria-hidden": !0,
|
|
193
|
+
component: "span",
|
|
194
|
+
...n(k?.separator, U) ?? {}
|
|
195
|
+
}, U), $ = (e) => {
|
|
196
|
+
let { slotProps: t, ...n } = (e === 0 ? V : H) ?? {}, r = s(t?.htmlInput, { "aria-label": e === 0 ? E : w }), i = s({
|
|
197
|
+
inputMode: "decimal",
|
|
198
|
+
max: C,
|
|
199
|
+
min: T,
|
|
200
|
+
step: j
|
|
201
|
+
}, r), o = s(n, {
|
|
202
|
+
helperText: (e === 0 ? R : !R && z) ? le : void 0,
|
|
203
|
+
onBlur: we(e),
|
|
204
|
+
onChange: Ce(e),
|
|
205
|
+
onKeyDown: Te
|
|
206
|
+
});
|
|
207
|
+
return a(e === 0 ? Y : X, {
|
|
208
|
+
...o,
|
|
209
|
+
color: p,
|
|
210
|
+
disabled: h,
|
|
211
|
+
error: e === 0 ? R : z,
|
|
212
|
+
size: O,
|
|
213
|
+
slotProps: {
|
|
214
|
+
...t,
|
|
215
|
+
htmlInput: i
|
|
216
|
+
},
|
|
217
|
+
type: "number",
|
|
218
|
+
value: F[e]
|
|
219
|
+
}, U);
|
|
220
|
+
}, Ne = $(0), Pe = $(1);
|
|
221
|
+
return /* @__PURE__ */ d(G, {
|
|
222
|
+
...Oe,
|
|
223
|
+
ref: ke,
|
|
224
|
+
sx: [...t(fe), ...t(De)],
|
|
225
|
+
"data-invalid": be ? void 0 : "",
|
|
226
|
+
children: [
|
|
227
|
+
S != null && /* @__PURE__ */ u(K, {
|
|
228
|
+
...Ae,
|
|
229
|
+
children: S
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ u(q, {
|
|
232
|
+
...je,
|
|
233
|
+
onChange: xe,
|
|
234
|
+
onChangeCommitted: Se,
|
|
235
|
+
value: [P[0], P[1]]
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ d(J, {
|
|
238
|
+
...Q,
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ u(Y, { ...Ne }),
|
|
241
|
+
/* @__PURE__ */ u(Z, {
|
|
242
|
+
...Me,
|
|
243
|
+
children: de
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ u(X, { ...Pe })
|
|
246
|
+
]
|
|
247
|
+
})
|
|
248
|
+
]
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
x.displayName = "SNumberRange";
|
|
252
|
+
//#endregion
|
|
253
|
+
export { x as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-pagination-
|
|
1
|
+
import { t as e } from "../s-pagination-s46hBifh.js";
|
|
2
2
|
export { e as SPagination, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-pagination-
|
|
1
|
+
import { t as e } from "../s-pagination-s46hBifh.js";
|
|
2
2
|
export { e as SPagination, e as default };
|