@solostylist/ui-kit 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Add-CEnTWsXs.js +6 -0
- package/dist/ArrowUpward-udL1ltj2.js +6 -0
- package/dist/Box-9oeZgA1U.js +46 -0
- package/dist/Button-DaLr1m20.js +534 -0
- package/dist/ButtonBase-DovDC6-1.js +700 -0
- package/dist/Checkbox-C-Xjbzzh.js +152 -0
- package/dist/ChevronRight-DsPfsFKB.js +6 -0
- package/dist/Close-CIYOM-Sc.js +6 -0
- package/dist/Collapse-DPUr1cbP.js +266 -0
- package/dist/ContentCopy-Hlh3azVb.js +6 -0
- package/dist/DefaultPropsProvider-ebWx4_5E.js +128 -0
- package/dist/DialogContent-b3xbJVC6.js +450 -0
- package/dist/Download-D9PkFi7a.js +6 -0
- package/dist/ExpandMore-sOgvEha9.js +6 -0
- package/dist/Favorite-BP343hjM.js +6 -0
- package/dist/FavoriteBorder-D15j9xEL.js +6 -0
- package/dist/FormControl-DwMfZCiz.js +215 -0
- package/dist/FormControlLabel-Ihga1FTB.js +173 -0
- package/dist/Grow-BQR7x52V.js +121 -0
- package/dist/IconButton-CE-4GamO.js +448 -0
- package/dist/InfoOutlined-lpvhO6P8.js +6 -0
- package/dist/List-RNcZhRdr.js +105 -0
- package/dist/Menu-CnyB4SDS.js +180 -0
- package/dist/MenuItem-Ck30dBOR.js +224 -0
- package/dist/MenuList-Cc98uWXq.js +160 -0
- package/dist/Modal-CD2EBfU8.js +702 -0
- package/dist/Paper-_3qggtBp.js +115 -0
- package/dist/Popover-BFdKSYI5.js +340 -0
- package/dist/Popper-DYNAMSDd.js +1351 -0
- package/dist/Portal-i_wgIe9-.js +49 -0
- package/dist/Remove-DDEn8ek8.js +6 -0
- package/dist/RtlProvider-B7uVJXUY.js +19 -0
- package/dist/Skeleton-iZFynl7z.js +220 -0
- package/dist/Stack-C0LGzM4c.js +158 -0
- package/dist/SwitchBase-CjWtDdmE.js +198 -0
- package/dist/Tooltip-B1sn94L0.js +448 -0
- package/dist/Typography-_P0svrkO.js +168 -0
- package/dist/UnfoldMoreRounded-CuCrdxoy.js +6 -0
- package/dist/appendOwnerState-CFQTq3pb.js +17 -0
- package/dist/assets/stripe-input.css +1 -0
- package/dist/autocomplete-BgARERpp.js +43 -0
- package/dist/avatar-XNOdbbRz.js +10 -0
- package/dist/buttonBaseClasses-B90LjsNK.js +13 -0
- package/dist/capitalize-C0baBJCm.js +5 -0
- package/dist/chainPropTypes-CkMRtDjQ.js +8 -0
- package/dist/checkbox-D1U_JKqs.js +88 -0
- package/dist/checkboxClasses-B1up2lUn.js +18 -0
- package/dist/chunk-C_CI6nMA.js +13 -0
- package/dist/clsx-DGZSe4Nt.js +16 -0
- package/dist/colorManipulator-DmUjcif3.js +129 -0
- package/dist/contains-DnqPQsQU.js +16 -0
- package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +14 -0
- package/dist/createSvgIcon-3y-gS0r1.js +155 -0
- package/dist/createTheme-xB2Em0Na.js +1869 -0
- package/dist/defaultTheme-BaGcIzCh.js +210 -0
- package/dist/elementAcceptingRef-pKEY6jPR.js +25 -0
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +19 -0
- package/dist/exactProp-C_IsucXf.js +13 -0
- package/dist/extends-DXMyyJCW.js +12 -0
- package/dist/field-label-styles-4praXMaE.js +50 -0
- package/dist/formLabelClasses-AuZHWfTs.js +18 -0
- package/dist/generateUtilityClass-PAIOm1jC.js +34 -0
- package/dist/generateUtilityClasses-DvX505Gy.js +10 -0
- package/dist/getActiveElement-BfBkhgy6.js +8 -0
- package/dist/{gradients-DSnBONEQ.js → gradients-mQAYCK0_.js} +1 -1
- package/dist/iconButtonClasses-CVVRFXRo.js +27 -0
- package/dist/inputAdornmentClasses-BbB8s-Z4.js +19 -0
- package/dist/inputBaseClasses-Ce_jjdp9.js +25 -0
- package/dist/integerPropType-CCkQD1JY.js +27 -0
- package/dist/isEventHandler-QShLXBxE.js +7 -0
- package/dist/isFocusVisible-4OIE8TST.js +11 -0
- package/dist/isLayoutSupported-Btg2X3QE.js +6 -0
- package/dist/isMuiElement-CPjhi284.js +10 -0
- package/dist/main.js +1 -1
- package/dist/mega-menu-trigger-BcOo8I5_.js +53 -0
- package/dist/memoTheme-qFyKAk7y.js +15 -0
- package/dist/mergeSlotProps-DC8r4QzS.js +45 -0
- package/dist/monthCalendarClasses-b964KRbc.js +14 -0
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +12 -0
- package/dist/outlinedInputClasses-ci1zDasn.js +17 -0
- package/dist/ownerDocument-CJjQZweZ.js +6 -0
- package/dist/ownerDocument-pYjJiXem.js +5 -0
- package/dist/ownerWindow-SSeeoqPT.js +18 -0
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-CJLuEy1m.js → palettes-B1FcGUYs.js} +163 -163
- package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +12 -0
- package/dist/prop-types-BzYPyWN7.js +516 -0
- package/dist/refType-j5S9pc_e.js +6 -0
- package/dist/resolveProps-7jIA45vn.js +30 -0
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +2 -70
- package/dist/s-accordion-1oLxQhod.js +487 -0
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-animated-gradient-text/index.d.ts +2 -0
- package/dist/s-animated-gradient-text/index.js +2 -0
- package/dist/s-animated-gradient-text/s-animated-gradient-text.d.ts +64 -0
- package/dist/s-animated-gradient-text/s-animated-gradient-text.js +93 -0
- package/dist/s-announcement-bar/index.d.ts +2 -0
- package/dist/s-announcement-bar/index.js +2 -0
- package/dist/s-announcement-bar/s-announcement-bar.d.ts +113 -0
- package/dist/s-announcement-bar/s-announcement-bar.js +275 -0
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +2 -0
- package/dist/s-carousel/s-carousel.js +2 -184
- package/dist/s-carousel-CAyAl3ka.js +1355 -0
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +2 -398
- package/dist/s-chat-input-T3gyan60.js +419 -0
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +2 -314
- package/dist/s-chat-message-NFTpNgt5.js +315 -0
- package/dist/s-checkbox/s-checkbox.js +19 -18
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +2 -174
- package/dist/s-chips-Dqq1fgz-.js +176 -0
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +2 -103
- package/dist/s-code-block-DyDtctGG.js +658 -0
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +2 -189
- package/dist/s-comment-message-DpCVBKiE.js +192 -0
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +2 -213
- package/dist/s-data-table-D4V58HFR.js +805 -0
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +2 -106
- package/dist/s-date-picker-BFIQOA8C.js +657 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +2 -108
- package/dist/s-datetime-picker-zfg7BEOW.js +3886 -0
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +2 -80
- package/dist/s-dialog-BNlXsVVP.js +123 -0
- package/dist/s-dialog-confirm/s-dialog-confirm.js +33 -32
- package/dist/s-dialog-message/s-dialog-message.js +32 -31
- package/dist/s-drawer/index.d.ts +3 -0
- package/dist/s-drawer/index.js +2 -0
- package/dist/s-drawer/s-drawer.d.ts +70 -0
- package/dist/s-drawer/s-drawer.js +2 -0
- package/dist/s-drawer-4h5ZyoM8.js +562 -0
- package/dist/s-empty/s-empty.js +14 -13
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +2 -219
- package/dist/s-file-dropzone-Cfzv1Cm8.js +422 -0
- package/dist/s-file-icon/s-file-icon.js +88 -87
- package/dist/s-flex-box/s-flex-box.js +12 -11
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +10 -9
- package/dist/s-gradient-blob-pulse/index.d.ts +2 -0
- package/dist/s-gradient-blob-pulse/index.js +2 -0
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.d.ts +62 -0
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +237 -0
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +4 -4
- package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -2
- package/dist/s-icon-button/s-icon-button.js +14 -13
- package/dist/s-image-comparison/s-image-comparison.js +31 -29
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +2 -266
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-image-viewer-CjK67-rs.js +269 -0
- package/dist/s-interactive-card/index.d.ts +3 -0
- package/dist/s-interactive-card/index.js +2 -0
- package/dist/s-interactive-card/s-interactive-card.d.ts +57 -0
- package/dist/s-interactive-card/s-interactive-card.js +152 -0
- package/dist/s-label/s-label.js +26 -25
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +2 -150
- package/dist/s-language-switcher-PaMgHWc2.js +246 -0
- package/dist/s-lazy-image/s-lazy-image.js +18 -17
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +2 -5
- package/dist/s-link-Db1aabHh.js +235 -0
- package/dist/s-list-action-item/index.d.ts +2 -0
- package/dist/s-list-action-item/index.js +2 -0
- package/dist/s-list-action-item/s-list-action-item.d.ts +89 -0
- package/dist/s-list-action-item/s-list-action-item.js +150 -0
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +2 -12
- package/dist/s-localization-provider-CeyB_SGz.js +519 -0
- package/dist/s-mega-menu/index.d.ts +3 -0
- package/dist/s-mega-menu/index.js +2 -0
- package/dist/s-mega-menu/mega-menu-panel.d.ts +38 -0
- package/dist/s-mega-menu/mega-menu-panel.js +253 -0
- package/dist/s-mega-menu/mega-menu-slots.d.ts +65 -0
- package/dist/s-mega-menu/mega-menu-slots.js +232 -0
- package/dist/s-mega-menu/mega-menu-trigger.d.ts +35 -0
- package/dist/s-mega-menu/mega-menu-trigger.js +2 -0
- package/dist/s-mega-menu/s-mega-menu.d.ts +23 -0
- package/dist/s-mega-menu/s-mega-menu.js +228 -0
- package/dist/s-mega-menu/types.d.ts +188 -0
- package/dist/s-mega-menu/types.js +0 -0
- package/dist/s-mega-menu/utils.d.ts +51 -0
- package/dist/s-mega-menu/utils.js +51 -0
- package/dist/s-mobile-dock/index.d.ts +3 -0
- package/dist/s-mobile-dock/index.js +2 -0
- package/dist/s-mobile-dock/s-mobile-dock.d.ts +96 -0
- package/dist/s-mobile-dock/s-mobile-dock.js +2 -0
- package/dist/s-mobile-dock-8F3UWAb8.js +615 -0
- package/dist/s-nav-item/index.d.ts +1 -1
- package/dist/s-nav-item/s-nav-item.d.ts +35 -16
- package/dist/s-nav-item/s-nav-item.js +56 -77
- package/dist/s-nav-items/s-nav-items.js +78 -121
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +2 -5
- package/dist/s-no-ssr-DH57_uP_.js +25 -0
- package/dist/s-number-range/index.d.ts +3 -0
- package/dist/s-number-range/index.js +2 -0
- package/dist/s-number-range/s-number-range.d.ts +109 -0
- package/dist/s-number-range/s-number-range.js +2 -0
- package/dist/s-number-range-Low5QjuD.js +253 -0
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +2 -85
- package/dist/s-pagination-s46hBifh.js +606 -0
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-popover/index.d.ts +5 -0
- package/dist/s-popover/index.js +3 -0
- package/dist/s-popover/placement.d.ts +14 -0
- package/dist/s-popover/placement.js +65 -0
- package/dist/s-popover/s-popover-content.d.ts +22 -0
- package/dist/s-popover/s-popover-content.js +22 -0
- package/dist/s-popover/s-popover.d.ts +59 -0
- package/dist/s-popover/s-popover.js +68 -0
- package/dist/s-product-card/index.d.ts +3 -0
- package/dist/s-product-card/index.js +2 -0
- package/dist/s-product-card/s-product-card.d.ts +216 -0
- package/dist/s-product-card/s-product-card.js +502 -0
- package/dist/s-product-gallery/index.d.ts +3 -0
- package/dist/s-product-gallery/index.js +2 -0
- package/dist/s-product-gallery/s-product-gallery.d.ts +116 -0
- package/dist/s-product-gallery/s-product-gallery.js +2 -0
- package/dist/s-product-gallery-Dj9eGg5i.js +430 -0
- package/dist/s-quantity-input/s-quantity-input.js +24 -24
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +2 -272
- package/dist/s-review--Q2C0ngO.js +272 -0
- package/dist/s-scroll-reveal/s-scroll-reveal.js +8 -7
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +28 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-segmented-control/index.d.ts +3 -0
- package/dist/s-segmented-control/index.js +2 -0
- package/dist/s-segmented-control/s-segmented-control.d.ts +94 -0
- package/dist/s-segmented-control/s-segmented-control.js +302 -0
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +2 -201
- package/dist/s-select-CtVKEOZ5.js +204 -0
- package/dist/s-select-list/s-select-list.js +50 -47
- package/dist/s-skeleton/s-skeleton.js +13 -12
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +2 -89
- package/dist/s-snackbar-message-DsfJlDYd.js +810 -0
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stepper/index.d.ts +3 -0
- package/dist/s-stepper/index.js +2 -0
- package/dist/s-stepper/s-stepper.d.ts +90 -0
- package/dist/s-stepper/s-stepper.js +2 -0
- package/dist/s-stepper-BtODHVro.js +892 -0
- package/dist/s-stripe/s-stripe.js +12 -11
- package/dist/s-stripe/stripe-input.js +2 -3
- package/dist/s-swatch/index.d.ts +3 -0
- package/dist/s-swatch/index.js +2 -0
- package/dist/s-swatch/s-swatch.d.ts +235 -0
- package/dist/s-swatch/s-swatch.js +219 -0
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +2 -48
- package/dist/s-switch-BCeBoxWf.js +307 -0
- package/dist/s-tabs/s-tabs.js +50 -48
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +2 -216
- package/dist/s-text-editor/s-text-editor.js +26 -25
- package/dist/s-text-editor-toolbar-D5eQ-jCs.js +2124 -0
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +2 -52
- package/dist/s-text-field-HYyDf1Jo.js +51 -0
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -1
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +2 -265
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +2 -60
- package/dist/s-theme-switch-BFWpADh3.js +60 -0
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +2 -61
- package/dist/s-tip-jbL7vtoU.js +62 -0
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +2 -55
- package/dist/s-tool-bar/tool-bar-image-input.js +2 -148
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.d.ts +10 -6
- package/dist/s-tool-item/s-tool-item.js +29 -29
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +19 -18
- package/dist/selectClasses-CPxME5jE.js +22 -0
- package/dist/setRef-BWPyWnrr.js +6 -0
- package/dist/styled-Bog8QCl3.js +163 -0
- package/dist/svgIconClasses-1kWGzgux.js +20 -0
- package/dist/switchClasses-BtweO7PC.js +23 -0
- package/dist/theme/component-augmentation.d.ts +65 -1
- package/dist/theme/components/autocomplete.js +2 -43
- package/dist/theme/components/avatar.js +2 -9
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +2 -90
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +0 -1
- package/dist/theme/components/day-calendar.js +0 -1
- package/dist/theme/components/drawer.d.ts +1 -0
- package/dist/theme/components/drawer.js +4 -1
- package/dist/theme/components/field-label-styles.js +2 -19
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +13 -14
- package/dist/theme/components/multi-section-digital-clock-section.js +0 -1
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +0 -1
- package/dist/theme/components/pickers-arrow-switcher.js +0 -1
- package/dist/theme/components/pickers-calendar-header.js +2 -3
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/slider.js +18 -1
- package/dist/theme/components/step-connector.d.ts +0 -3
- package/dist/theme/components/step-connector.js +1 -6
- package/dist/theme/components/step-icon.d.ts +3 -12
- package/dist/theme/components/step-icon.js +3 -14
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +2 -93
- package/dist/theme/components/year-calendar.js +13 -14
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/theme-demo-components-section-C7l_2KAo.js +267 -0
- package/dist/{theme-primitives-CRfnMsNy.js → theme-primitives-CXtaMdVj.js} +109 -108
- package/dist/toggle-button-BsGb-tOr.js +104 -0
- package/dist/tool-bar-action-buttons-v1koaasr.js +54 -0
- package/dist/tool-bar-image-input-DtXTyEe1.js +148 -0
- package/dist/typographyClasses-BH_-zLwg.js +31 -0
- package/dist/unsupportedProp-whMV_uOi.js +11 -0
- package/dist/useControlled-DqNPBJNp.js +5 -0
- package/dist/useControlled-uxVKygk1.js +29 -0
- package/dist/useEnhancedEffect-DFq_FMGX.js +5 -0
- package/dist/useEnhancedEffect-dBFfkm1e.js +5 -0
- package/dist/useEventCallback-DGCsaRIu.js +5 -0
- package/dist/useEventCallback-DhCPBxRG.js +11 -0
- package/dist/useForkRef-BuNFTXxE.js +29 -0
- package/dist/useFormControl-gXwNeUM1.js +18 -0
- package/dist/useMobilePicker-CdrT935R.js +7584 -0
- package/dist/useRovingTabIndex-DPlW997R.js +242 -0
- package/dist/useSlot-BG8ReOxN.js +83 -0
- package/dist/useSlotProps-BOO3qaI9.js +16 -0
- package/dist/useTheme-BIWMbX3i.js +9 -0
- package/dist/useThemeProps-Dw9dmKyT.js +29 -0
- package/dist/useTimeout-CoK-Khfm.js +49 -0
- package/dist/utils/dayjs.js +146 -9
- package/dist/utils-Bfqbev5I.js +248 -0
- package/dist/warning-D5YhCbje.js +99 -0
- package/dist/yearCalendarClasses-D9k_KT38.js +14 -0
- package/package.json +1 -1
- package/dist/theme/components/components.d.ts +0 -2
- package/dist/theme/components/slider.d.ts +0 -34
- /package/dist/{colors-CNjL5fhq.js → colors-Bik9qOU9.js} +0 -0
- /package/dist/{s-brand-logo-CErW9Slg.js → s-brand-logo-D7Jovf5K.js} +0 -0
- /package/dist/{utils-CMeAWSRO.js → utils-DOY6v6ln.js} +0 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
+
import { t } from "./prop-types-BzYPyWN7.js";
|
|
3
|
+
import { r as n, t as r } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
4
|
+
import { g as i } from "./createTheme-xB2Em0Na.js";
|
|
5
|
+
import { t as a } from "./generateUtilityClass-PAIOm1jC.js";
|
|
6
|
+
import { t as o } from "./clsx-DGZSe4Nt.js";
|
|
7
|
+
import { t as s } from "./Box-9oeZgA1U.js";
|
|
8
|
+
import { t as c } from "./generateUtilityClasses-DvX505Gy.js";
|
|
9
|
+
import { t as l } from "./styled-Bog8QCl3.js";
|
|
10
|
+
import { t as u } from "./useThemeProps-Dw9dmKyT.js";
|
|
11
|
+
import { t as d } from "./memoTheme-qFyKAk7y.js";
|
|
12
|
+
import { resolveOwnerStateSlotProps as f } from "./utils/slots.js";
|
|
13
|
+
import { t as p } from "./useForkRef-BuNFTXxE.js";
|
|
14
|
+
import { t as m } from "./useEventCallback-DGCsaRIu.js";
|
|
15
|
+
import { t as h } from "./ButtonBase-DovDC6-1.js";
|
|
16
|
+
import { t as g } from "./appendOwnerState-CFQTq3pb.js";
|
|
17
|
+
import { t as _ } from "./useSlot-BG8ReOxN.js";
|
|
18
|
+
import { actionHoverMedia as v, getFocusVisibleStyle as y, reducedMotionMedia as b } from "./theme/components/action-styles.js";
|
|
19
|
+
import { t as x } from "./capitalize-C0baBJCm.js";
|
|
20
|
+
import { t as S } from "./createSimplePaletteValueFilter-DFvyXHoZ.js";
|
|
21
|
+
import { t as C } from "./unsupportedProp-whMV_uOi.js";
|
|
22
|
+
import { t as w } from "./useControlled-DqNPBJNp.js";
|
|
23
|
+
import { t as T } from "./mergeSlotProps-DC8r4QzS.js";
|
|
24
|
+
import * as E from "react";
|
|
25
|
+
import { createElement as D } from "react";
|
|
26
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
27
|
+
import { visuallyHidden as A } from "@mui/utils";
|
|
28
|
+
//#region ../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.mjs
|
|
29
|
+
function j(e) {
|
|
30
|
+
let t = E.useRef({});
|
|
31
|
+
return E.useEffect(() => {
|
|
32
|
+
t.current = e;
|
|
33
|
+
}), t.current;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/@mui/material/Badge/useBadge.mjs
|
|
37
|
+
var M = /* @__PURE__ */ e(t(), 1);
|
|
38
|
+
function N(e) {
|
|
39
|
+
let { badgeContent: t, invisible: n = !1, max: r = 99, showZero: i = !1 } = e, a = j({
|
|
40
|
+
badgeContent: t,
|
|
41
|
+
max: r
|
|
42
|
+
}), o = n;
|
|
43
|
+
n === !1 && t === 0 && !i && (o = !0);
|
|
44
|
+
let { badgeContent: s, max: c = r } = o ? a : e, l = s && Number(s) > c ? `${c}+` : s;
|
|
45
|
+
return {
|
|
46
|
+
badgeContent: s,
|
|
47
|
+
invisible: o,
|
|
48
|
+
max: c,
|
|
49
|
+
displayValue: l
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/@mui/material/Badge/badgeClasses.mjs
|
|
54
|
+
function P(e) {
|
|
55
|
+
return a("MuiBadge", e);
|
|
56
|
+
}
|
|
57
|
+
var F = c("MuiBadge", [
|
|
58
|
+
"root",
|
|
59
|
+
"badge",
|
|
60
|
+
"dot",
|
|
61
|
+
"standard",
|
|
62
|
+
"anchorOriginTopRight",
|
|
63
|
+
"anchorOriginBottomRight",
|
|
64
|
+
"anchorOriginTopLeft",
|
|
65
|
+
"anchorOriginBottomLeft",
|
|
66
|
+
"invisible",
|
|
67
|
+
"colorError",
|
|
68
|
+
"colorInfo",
|
|
69
|
+
"colorPrimary",
|
|
70
|
+
"colorSecondary",
|
|
71
|
+
"colorSuccess",
|
|
72
|
+
"colorWarning",
|
|
73
|
+
"overlapRectangular",
|
|
74
|
+
"overlapCircular",
|
|
75
|
+
"anchorOriginTopLeftCircular",
|
|
76
|
+
"anchorOriginTopLeftRectangular",
|
|
77
|
+
"anchorOriginTopRightCircular",
|
|
78
|
+
"anchorOriginTopRightRectangular",
|
|
79
|
+
"anchorOriginBottomLeftCircular",
|
|
80
|
+
"anchorOriginBottomLeftRectangular",
|
|
81
|
+
"anchorOriginBottomRightCircular",
|
|
82
|
+
"anchorOriginBottomRightRectangular"
|
|
83
|
+
]), I = 10, L = 4, R = (e) => {
|
|
84
|
+
let { color: t, anchorOrigin: r, invisible: i, overlap: a, variant: o, classes: s = {} } = e;
|
|
85
|
+
return n({
|
|
86
|
+
root: ["root"],
|
|
87
|
+
badge: [
|
|
88
|
+
"badge",
|
|
89
|
+
o,
|
|
90
|
+
i && "invisible",
|
|
91
|
+
`anchorOrigin${x(r.vertical)}${x(r.horizontal)}`,
|
|
92
|
+
`anchorOrigin${x(r.vertical)}${x(r.horizontal)}${x(a)}`,
|
|
93
|
+
`overlap${x(a)}`,
|
|
94
|
+
t !== "default" && `color${x(t)}`
|
|
95
|
+
]
|
|
96
|
+
}, P, s);
|
|
97
|
+
}, ee = l("span", {
|
|
98
|
+
name: "MuiBadge",
|
|
99
|
+
slot: "Root"
|
|
100
|
+
})({
|
|
101
|
+
position: "relative",
|
|
102
|
+
display: "inline-flex",
|
|
103
|
+
verticalAlign: "middle",
|
|
104
|
+
flexShrink: 0
|
|
105
|
+
}), z = l("span", {
|
|
106
|
+
name: "MuiBadge",
|
|
107
|
+
slot: "Badge",
|
|
108
|
+
overridesResolver: (e, t) => {
|
|
109
|
+
let { ownerState: n } = e;
|
|
110
|
+
return [
|
|
111
|
+
t.badge,
|
|
112
|
+
t[n.variant],
|
|
113
|
+
t[`anchorOrigin${x(n.anchorOrigin.vertical)}${x(n.anchorOrigin.horizontal)}${x(n.overlap)}`],
|
|
114
|
+
n.color !== "default" && t[`color${x(n.color)}`],
|
|
115
|
+
n.invisible && t.invisible
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
})(d(({ theme: e }) => ({
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexDirection: "row",
|
|
121
|
+
flexWrap: "wrap",
|
|
122
|
+
justifyContent: "center",
|
|
123
|
+
alignContent: "center",
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
position: "absolute",
|
|
126
|
+
boxSizing: "border-box",
|
|
127
|
+
fontFamily: e.typography.fontFamily,
|
|
128
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
129
|
+
fontSize: e.typography.pxToRem(12),
|
|
130
|
+
minWidth: I * 2,
|
|
131
|
+
lineHeight: 1,
|
|
132
|
+
padding: "0 6px",
|
|
133
|
+
height: I * 2,
|
|
134
|
+
borderRadius: I,
|
|
135
|
+
zIndex: 1,
|
|
136
|
+
"@media (forced-colors: active)": { border: "1px solid ButtonBorder" },
|
|
137
|
+
transition: e.transitions.create("transform", {
|
|
138
|
+
easing: e.transitions.easing.easeInOut,
|
|
139
|
+
duration: e.transitions.duration.enteringScreen
|
|
140
|
+
}),
|
|
141
|
+
variants: [
|
|
142
|
+
...Object.entries(e.palette).filter(S(["contrastText"])).map(([t]) => ({
|
|
143
|
+
props: { color: t },
|
|
144
|
+
style: {
|
|
145
|
+
backgroundColor: (e.vars || e).palette[t].main,
|
|
146
|
+
color: (e.vars || e).palette[t].contrastText
|
|
147
|
+
}
|
|
148
|
+
})),
|
|
149
|
+
{
|
|
150
|
+
props: { variant: "dot" },
|
|
151
|
+
style: {
|
|
152
|
+
borderRadius: L,
|
|
153
|
+
height: L * 2,
|
|
154
|
+
minWidth: L * 2,
|
|
155
|
+
padding: 0
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
props: { invisible: !0 },
|
|
160
|
+
style: { transition: e.transitions.create("transform", {
|
|
161
|
+
easing: e.transitions.easing.easeInOut,
|
|
162
|
+
duration: e.transitions.duration.leavingScreen
|
|
163
|
+
}) }
|
|
164
|
+
},
|
|
165
|
+
{ style: ({ ownerState: e }) => {
|
|
166
|
+
let { vertical: t, horizontal: n } = e.anchorOrigin, r = e.overlap === "circular" ? "14%" : 0;
|
|
167
|
+
return {
|
|
168
|
+
"--Badge-translateX": n === "right" ? "50%" : "-50%",
|
|
169
|
+
"--Badge-translateY": t === "top" ? "-50%" : "50%",
|
|
170
|
+
top: t === "top" ? r : "initial",
|
|
171
|
+
bottom: t === "bottom" ? r : "initial",
|
|
172
|
+
right: n === "right" ? r : "initial",
|
|
173
|
+
left: n === "left" ? r : "initial",
|
|
174
|
+
transform: "scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",
|
|
175
|
+
transformOrigin: `${n === "right" ? "100%" : "0%"} ${t === "top" ? "0%" : "100%"}`,
|
|
176
|
+
[`&.${F.invisible}`]: { transform: "scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))" }
|
|
177
|
+
};
|
|
178
|
+
} }
|
|
179
|
+
]
|
|
180
|
+
})));
|
|
181
|
+
function B(e) {
|
|
182
|
+
return {
|
|
183
|
+
vertical: e?.vertical ?? "top",
|
|
184
|
+
horizontal: e?.horizontal ?? "right"
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
var V = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
|
188
|
+
let n = r({
|
|
189
|
+
props: e,
|
|
190
|
+
name: "MuiBadge"
|
|
191
|
+
}), { anchorOrigin: i, className: a, classes: s, component: c, children: l, overlap: u = "rectangular", color: d = "default", invisible: f = !1, max: p = 99, badgeContent: m, slots: h, slotProps: g, showZero: v = !1, variant: y = "standard", ...b } = n, { badgeContent: x, invisible: S, max: C, displayValue: w } = N({
|
|
192
|
+
max: p,
|
|
193
|
+
invisible: f,
|
|
194
|
+
badgeContent: m,
|
|
195
|
+
showZero: v
|
|
196
|
+
}), T = j({
|
|
197
|
+
anchorOrigin: B(i),
|
|
198
|
+
color: d,
|
|
199
|
+
overlap: u,
|
|
200
|
+
variant: y,
|
|
201
|
+
badgeContent: m
|
|
202
|
+
}), E = S || x == null && y !== "dot", { color: D = d, overlap: A = u, anchorOrigin: M, variant: P = y } = E ? T : n, F = B(M), I = P === "dot" ? void 0 : w, L = {
|
|
203
|
+
...n,
|
|
204
|
+
badgeContent: x,
|
|
205
|
+
invisible: E,
|
|
206
|
+
max: C,
|
|
207
|
+
displayValue: I,
|
|
208
|
+
showZero: v,
|
|
209
|
+
anchorOrigin: F,
|
|
210
|
+
color: D,
|
|
211
|
+
overlap: A,
|
|
212
|
+
variant: P
|
|
213
|
+
}, V = R(L), H = {
|
|
214
|
+
slots: h,
|
|
215
|
+
slotProps: g
|
|
216
|
+
}, [U, W] = _("root", {
|
|
217
|
+
elementType: ee,
|
|
218
|
+
externalForwardedProps: {
|
|
219
|
+
...H,
|
|
220
|
+
...b
|
|
221
|
+
},
|
|
222
|
+
ownerState: L,
|
|
223
|
+
className: o(V.root, a),
|
|
224
|
+
ref: t,
|
|
225
|
+
additionalProps: { as: c }
|
|
226
|
+
}), [G, K] = _("badge", {
|
|
227
|
+
elementType: z,
|
|
228
|
+
externalForwardedProps: H,
|
|
229
|
+
ownerState: L,
|
|
230
|
+
className: V.badge
|
|
231
|
+
});
|
|
232
|
+
return /* @__PURE__ */ k(U, {
|
|
233
|
+
...W,
|
|
234
|
+
children: [l, /* @__PURE__ */ O(G, {
|
|
235
|
+
...K,
|
|
236
|
+
children: I
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
241
|
+
anchorOrigin: M.default.shape({
|
|
242
|
+
horizontal: M.default.oneOf(["left", "right"]),
|
|
243
|
+
vertical: M.default.oneOf(["bottom", "top"])
|
|
244
|
+
}),
|
|
245
|
+
badgeContent: M.default.node,
|
|
246
|
+
children: M.default.node,
|
|
247
|
+
classes: M.default.object,
|
|
248
|
+
className: M.default.string,
|
|
249
|
+
color: M.default.oneOfType([M.default.oneOf([
|
|
250
|
+
"default",
|
|
251
|
+
"primary",
|
|
252
|
+
"secondary",
|
|
253
|
+
"error",
|
|
254
|
+
"info",
|
|
255
|
+
"success",
|
|
256
|
+
"warning"
|
|
257
|
+
]), M.default.string]),
|
|
258
|
+
component: M.default.elementType,
|
|
259
|
+
invisible: M.default.bool,
|
|
260
|
+
max: M.default.number,
|
|
261
|
+
overlap: M.default.oneOf(["circular", "rectangular"]),
|
|
262
|
+
showZero: M.default.bool,
|
|
263
|
+
slotProps: M.default.shape({
|
|
264
|
+
badge: M.default.oneOfType([M.default.func, M.default.object]),
|
|
265
|
+
root: M.default.oneOfType([M.default.func, M.default.object])
|
|
266
|
+
}),
|
|
267
|
+
slots: M.default.shape({
|
|
268
|
+
badge: M.default.elementType,
|
|
269
|
+
root: M.default.elementType
|
|
270
|
+
}),
|
|
271
|
+
sx: M.default.oneOfType([
|
|
272
|
+
M.default.arrayOf(M.default.oneOfType([
|
|
273
|
+
M.default.func,
|
|
274
|
+
M.default.object,
|
|
275
|
+
M.default.bool
|
|
276
|
+
])),
|
|
277
|
+
M.default.func,
|
|
278
|
+
M.default.object
|
|
279
|
+
]),
|
|
280
|
+
variant: M.default.oneOfType([M.default.oneOf(["dot", "standard"]), M.default.string])
|
|
281
|
+
});
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region ../../node_modules/@mui/material/BottomNavigation/bottomNavigationClasses.mjs
|
|
284
|
+
var H = i();
|
|
285
|
+
function U(e) {
|
|
286
|
+
return a("MuiBottomNavigation", e);
|
|
287
|
+
}
|
|
288
|
+
c("MuiBottomNavigation", ["root"]);
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region ../../node_modules/@mui/material/BottomNavigation/BottomNavigation.mjs
|
|
291
|
+
var W = (e) => {
|
|
292
|
+
let { classes: t } = e;
|
|
293
|
+
return n({ root: ["root"] }, U, t);
|
|
294
|
+
}, G = l("div", {
|
|
295
|
+
name: "MuiBottomNavigation",
|
|
296
|
+
slot: "Root"
|
|
297
|
+
})(d(({ theme: e }) => ({
|
|
298
|
+
display: "flex",
|
|
299
|
+
justifyContent: "center",
|
|
300
|
+
height: 56,
|
|
301
|
+
backgroundColor: (e.vars || e).palette.background.paper
|
|
302
|
+
}))), K = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
|
303
|
+
let n = r({
|
|
304
|
+
props: e,
|
|
305
|
+
name: "MuiBottomNavigation"
|
|
306
|
+
}), { children: i, className: a, component: s = "div", onChange: c, showLabels: l = !1, value: u, ...d } = n, f = {
|
|
307
|
+
...n,
|
|
308
|
+
component: s,
|
|
309
|
+
showLabels: l
|
|
310
|
+
};
|
|
311
|
+
return /* @__PURE__ */ O(G, {
|
|
312
|
+
as: s,
|
|
313
|
+
className: o(W(f).root, a),
|
|
314
|
+
ref: t,
|
|
315
|
+
ownerState: f,
|
|
316
|
+
...d,
|
|
317
|
+
children: E.Children.map(i, (e, t) => {
|
|
318
|
+
if (!/* @__PURE__ */ E.isValidElement(e)) return null;
|
|
319
|
+
process.env.NODE_ENV !== "production" && (0, H.isFragment)(e) && console.error(["MUI: The BottomNavigation component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n"));
|
|
320
|
+
let n = e.props.value === void 0 ? t : e.props.value;
|
|
321
|
+
return /* @__PURE__ */ E.cloneElement(e, {
|
|
322
|
+
selected: n === u,
|
|
323
|
+
showLabel: e.props.showLabel === void 0 ? l : e.props.showLabel,
|
|
324
|
+
value: n,
|
|
325
|
+
onChange: c
|
|
326
|
+
});
|
|
327
|
+
})
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
331
|
+
children: M.default.node,
|
|
332
|
+
classes: M.default.object,
|
|
333
|
+
className: M.default.string,
|
|
334
|
+
component: M.default.elementType,
|
|
335
|
+
onChange: M.default.func,
|
|
336
|
+
showLabels: M.default.bool,
|
|
337
|
+
sx: M.default.oneOfType([
|
|
338
|
+
M.default.arrayOf(M.default.oneOfType([
|
|
339
|
+
M.default.func,
|
|
340
|
+
M.default.object,
|
|
341
|
+
M.default.bool
|
|
342
|
+
])),
|
|
343
|
+
M.default.func,
|
|
344
|
+
M.default.object
|
|
345
|
+
]),
|
|
346
|
+
value: M.default.any
|
|
347
|
+
});
|
|
348
|
+
//#endregion
|
|
349
|
+
//#region ../../node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses.mjs
|
|
350
|
+
function q(e) {
|
|
351
|
+
return a("MuiBottomNavigationAction", e);
|
|
352
|
+
}
|
|
353
|
+
var J = c("MuiBottomNavigationAction", [
|
|
354
|
+
"root",
|
|
355
|
+
"iconOnly",
|
|
356
|
+
"selected",
|
|
357
|
+
"label"
|
|
358
|
+
]), Y = (e) => {
|
|
359
|
+
let { classes: t, showLabel: r, selected: i } = e;
|
|
360
|
+
return n({
|
|
361
|
+
root: [
|
|
362
|
+
"root",
|
|
363
|
+
!r && !i && "iconOnly",
|
|
364
|
+
i && "selected"
|
|
365
|
+
],
|
|
366
|
+
label: [
|
|
367
|
+
"label",
|
|
368
|
+
!r && !i && "iconOnly",
|
|
369
|
+
i && "selected"
|
|
370
|
+
]
|
|
371
|
+
}, q, t);
|
|
372
|
+
}, X = l(h, {
|
|
373
|
+
name: "MuiBottomNavigationAction",
|
|
374
|
+
slot: "Root",
|
|
375
|
+
overridesResolver: (e, t) => {
|
|
376
|
+
let { ownerState: n } = e;
|
|
377
|
+
return [t.root, !n.showLabel && !n.selected && t.iconOnly];
|
|
378
|
+
}
|
|
379
|
+
})(d(({ theme: e }) => ({
|
|
380
|
+
transition: e.transitions.create(["color", "padding-top"], { duration: e.transitions.duration.short }),
|
|
381
|
+
padding: "0px 12px",
|
|
382
|
+
minWidth: 80,
|
|
383
|
+
maxWidth: 168,
|
|
384
|
+
color: (e.vars || e).palette.text.secondary,
|
|
385
|
+
flexDirection: "column",
|
|
386
|
+
flex: "1",
|
|
387
|
+
[`&.${J.selected}`]: { color: (e.vars || e).palette.primary.main },
|
|
388
|
+
variants: [{
|
|
389
|
+
props: ({ showLabel: e, selected: t }) => !e && !t,
|
|
390
|
+
style: { paddingTop: 14 }
|
|
391
|
+
}, {
|
|
392
|
+
props: ({ showLabel: e, selected: t, label: n }) => !e && !t && !n,
|
|
393
|
+
style: { paddingTop: 0 }
|
|
394
|
+
}]
|
|
395
|
+
}))), te = l("span", {
|
|
396
|
+
name: "MuiBottomNavigationAction",
|
|
397
|
+
slot: "Label"
|
|
398
|
+
})(d(({ theme: e }) => ({
|
|
399
|
+
fontFamily: e.typography.fontFamily,
|
|
400
|
+
fontSize: e.typography.pxToRem(12),
|
|
401
|
+
opacity: 1,
|
|
402
|
+
transition: "font-size 0.2s, opacity 0.2s",
|
|
403
|
+
transitionDelay: "0.1s",
|
|
404
|
+
[`&.${J.selected}`]: { fontSize: e.typography.pxToRem(14) },
|
|
405
|
+
variants: [{
|
|
406
|
+
props: ({ showLabel: e, selected: t }) => !e && !t,
|
|
407
|
+
style: {
|
|
408
|
+
opacity: 0,
|
|
409
|
+
transitionDelay: "0s"
|
|
410
|
+
}
|
|
411
|
+
}]
|
|
412
|
+
}))), Z = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
|
413
|
+
let n = r({
|
|
414
|
+
props: e,
|
|
415
|
+
name: "MuiBottomNavigationAction"
|
|
416
|
+
}), { className: i, icon: a, label: s, onChange: c, onClick: l, selected: u, showLabel: d, value: f, slots: p = {}, slotProps: m = {}, ...h } = n, g = n, v = Y(g), y = (e) => {
|
|
417
|
+
c && c(e, f), l && l(e);
|
|
418
|
+
}, b = {
|
|
419
|
+
slots: p,
|
|
420
|
+
slotProps: m
|
|
421
|
+
}, [x, S] = _("root", {
|
|
422
|
+
elementType: X,
|
|
423
|
+
externalForwardedProps: {
|
|
424
|
+
...b,
|
|
425
|
+
...h
|
|
426
|
+
},
|
|
427
|
+
shouldForwardComponentProp: !0,
|
|
428
|
+
ownerState: g,
|
|
429
|
+
ref: t,
|
|
430
|
+
className: o(v.root, i),
|
|
431
|
+
additionalProps: {
|
|
432
|
+
internalNativeButton: !0,
|
|
433
|
+
focusRipple: !0
|
|
434
|
+
},
|
|
435
|
+
getSlotProps: (e) => ({
|
|
436
|
+
...e,
|
|
437
|
+
onClick: (t) => {
|
|
438
|
+
e.onClick?.(t), y(t);
|
|
439
|
+
}
|
|
440
|
+
})
|
|
441
|
+
}), [C, w] = _("label", {
|
|
442
|
+
elementType: te,
|
|
443
|
+
externalForwardedProps: b,
|
|
444
|
+
ownerState: g,
|
|
445
|
+
className: v.label
|
|
446
|
+
});
|
|
447
|
+
return /* @__PURE__ */ k(x, {
|
|
448
|
+
...S,
|
|
449
|
+
children: [a, /* @__PURE__ */ O(C, {
|
|
450
|
+
...w,
|
|
451
|
+
children: s
|
|
452
|
+
})]
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
456
|
+
children: C,
|
|
457
|
+
classes: M.default.object,
|
|
458
|
+
className: M.default.string,
|
|
459
|
+
icon: M.default.node,
|
|
460
|
+
label: M.default.node,
|
|
461
|
+
onChange: M.default.func,
|
|
462
|
+
onClick: M.default.func,
|
|
463
|
+
showLabel: M.default.bool,
|
|
464
|
+
slotProps: M.default.shape({
|
|
465
|
+
label: M.default.oneOfType([M.default.func, M.default.object]),
|
|
466
|
+
root: M.default.oneOfType([M.default.func, M.default.object])
|
|
467
|
+
}),
|
|
468
|
+
slots: M.default.shape({
|
|
469
|
+
label: M.default.elementType,
|
|
470
|
+
root: M.default.elementType
|
|
471
|
+
}),
|
|
472
|
+
sx: M.default.oneOfType([
|
|
473
|
+
M.default.arrayOf(M.default.oneOfType([
|
|
474
|
+
M.default.func,
|
|
475
|
+
M.default.object,
|
|
476
|
+
M.default.bool
|
|
477
|
+
])),
|
|
478
|
+
M.default.func,
|
|
479
|
+
M.default.object
|
|
480
|
+
]),
|
|
481
|
+
value: M.default.any
|
|
482
|
+
});
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region lib/s-mobile-dock/s-mobile-dock.tsx
|
|
485
|
+
var ne = 416, Q = 44, re = l(K, {
|
|
486
|
+
name: "SMobileDock",
|
|
487
|
+
slot: "Root",
|
|
488
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
489
|
+
})(({ theme: e }) => ({
|
|
490
|
+
backgroundColor: (e.vars ?? e).palette.background.paper,
|
|
491
|
+
border: `1px solid ${(e.vars ?? e).palette.divider}`,
|
|
492
|
+
borderRadius: e.radius.full,
|
|
493
|
+
boxShadow: e.shadows[8],
|
|
494
|
+
gap: e.spacing(.5),
|
|
495
|
+
height: "auto",
|
|
496
|
+
justifyContent: "space-around",
|
|
497
|
+
marginInline: "auto",
|
|
498
|
+
maxWidth: `calc(100% - ${e.spacing(3)})`,
|
|
499
|
+
padding: e.spacing(.75),
|
|
500
|
+
paddingBottom: `calc(${e.spacing(.75)} + env(safe-area-inset-bottom))`,
|
|
501
|
+
width: ne
|
|
502
|
+
})), ie = l(Z, {
|
|
503
|
+
name: "SMobileDock",
|
|
504
|
+
slot: "Action"
|
|
505
|
+
})(({ theme: e, ownerState: t }) => ({
|
|
506
|
+
borderRadius: e.radius.full,
|
|
507
|
+
color: (e.vars ?? e).palette.text.secondary,
|
|
508
|
+
gap: e.spacing(.5),
|
|
509
|
+
minHeight: Q,
|
|
510
|
+
minWidth: Q,
|
|
511
|
+
padding: e.spacing(.75, 1),
|
|
512
|
+
transition: e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter }),
|
|
513
|
+
[`& .${J.label}`]: {
|
|
514
|
+
fontSize: e.typography.body2.fontSize,
|
|
515
|
+
lineHeight: e.typography.body2.lineHeight,
|
|
516
|
+
[`&.${J.selected}`]: { fontSize: e.typography.body2.fontSize },
|
|
517
|
+
...t.labelVisibility === "never" && A
|
|
518
|
+
},
|
|
519
|
+
[`&.${J.selected}`]: {
|
|
520
|
+
backgroundColor: e.alpha((e.vars ?? e).palette.primary.main, (e.vars ?? e).palette.action.selectedOpacity),
|
|
521
|
+
color: (e.vars ?? e).palette.primary.main
|
|
522
|
+
},
|
|
523
|
+
"&.Mui-disabled": { color: (e.vars ?? e).palette.action.disabled },
|
|
524
|
+
[`&.${J.selected}.Mui-disabled`]: { backgroundColor: (e.vars ?? e).palette.action.disabledBackground },
|
|
525
|
+
"&.Mui-focusVisible": y(e),
|
|
526
|
+
[v]: {
|
|
527
|
+
"&:hover": {
|
|
528
|
+
backgroundColor: (e.vars ?? e).palette.action.hover,
|
|
529
|
+
color: (e.vars ?? e).palette.text.primary
|
|
530
|
+
},
|
|
531
|
+
[`&.${J.selected}:hover`]: {
|
|
532
|
+
backgroundColor: e.alpha((e.vars ?? e).palette.primary.main, Math.min(e.palette.action.selectedOpacity + e.palette.action.hoverOpacity, 1)),
|
|
533
|
+
color: (e.vars ?? e).palette.primary.main
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
[b]: { transition: "none" }
|
|
537
|
+
})), ae = l(s, {
|
|
538
|
+
name: "SMobileDock",
|
|
539
|
+
slot: "Icon"
|
|
540
|
+
})({
|
|
541
|
+
alignItems: "center",
|
|
542
|
+
display: "flex",
|
|
543
|
+
justifyContent: "center"
|
|
544
|
+
}), oe = l(V, {
|
|
545
|
+
name: "SMobileDock",
|
|
546
|
+
slot: "Badge"
|
|
547
|
+
})({}), se = l("span", {
|
|
548
|
+
name: "SMobileDock",
|
|
549
|
+
slot: "Label"
|
|
550
|
+
})({});
|
|
551
|
+
function ce(e, t) {
|
|
552
|
+
let n = u({
|
|
553
|
+
props: e,
|
|
554
|
+
name: "SMobileDock"
|
|
555
|
+
}), { defaultValue: r, items: i, labelVisibility: a = "always", linkComponent: o, onChange: s, slotProps: c, slots: l, value: d, ...h } = n, [_, v] = w({
|
|
556
|
+
controlled: d,
|
|
557
|
+
default: r ?? null,
|
|
558
|
+
name: "SMobileDock",
|
|
559
|
+
state: "value"
|
|
560
|
+
}), y = {
|
|
561
|
+
...n,
|
|
562
|
+
labelVisibility: a,
|
|
563
|
+
value: _
|
|
564
|
+
}, b = l?.root ?? re, x = l?.action ?? ie, S = l?.icon ?? ae, C = l?.badge ?? oe, E = l?.label ?? se, k = m((e, t) => {
|
|
565
|
+
v(t), s?.(e, t);
|
|
566
|
+
}), { ref: A, ...j } = g(b, T(f(c?.root, y), {
|
|
567
|
+
...h,
|
|
568
|
+
onChange: k,
|
|
569
|
+
showLabels: !0,
|
|
570
|
+
value: _
|
|
571
|
+
}), y), M = p(t, A);
|
|
572
|
+
return /* @__PURE__ */ O(b, {
|
|
573
|
+
...j,
|
|
574
|
+
ref: M,
|
|
575
|
+
component: "nav",
|
|
576
|
+
children: i.map((e) => {
|
|
577
|
+
let t = e.value === _, n = {
|
|
578
|
+
...y,
|
|
579
|
+
item: e,
|
|
580
|
+
selected: t
|
|
581
|
+
}, r = e.component ?? (e.href == null ? "button" : o ?? "a"), i = g(x, T(f(c?.action, n), {
|
|
582
|
+
"aria-current": t ? "page" : void 0,
|
|
583
|
+
"aria-label": e.ariaLabel,
|
|
584
|
+
component: r,
|
|
585
|
+
disabled: e.disabled,
|
|
586
|
+
href: e.disabled ? void 0 : e.href,
|
|
587
|
+
nativeButton: r === "button",
|
|
588
|
+
onClick: e.onClick,
|
|
589
|
+
rel: e.rel,
|
|
590
|
+
target: e.target
|
|
591
|
+
}), n), a = g(S, f(c?.icon, n) ?? {}, n), s = g(C, f(c?.badge, n) ?? {}, n), l = g(E, f(c?.label, n) ?? {}, n);
|
|
592
|
+
return /* @__PURE__ */ D(x, {
|
|
593
|
+
...i,
|
|
594
|
+
key: e.value,
|
|
595
|
+
icon: /* @__PURE__ */ O(S, {
|
|
596
|
+
...a,
|
|
597
|
+
children: e.badge == null ? e.icon : /* @__PURE__ */ O(C, {
|
|
598
|
+
badgeContent: e.badge,
|
|
599
|
+
color: "error",
|
|
600
|
+
...s,
|
|
601
|
+
children: e.icon
|
|
602
|
+
})
|
|
603
|
+
}),
|
|
604
|
+
label: e.label,
|
|
605
|
+
slotProps: { label: l },
|
|
606
|
+
slots: { label: E },
|
|
607
|
+
value: e.value
|
|
608
|
+
});
|
|
609
|
+
})
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
var $ = E.forwardRef(ce);
|
|
613
|
+
$.displayName = "SMobileDock";
|
|
614
|
+
//#endregion
|
|
615
|
+
export { $ as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SNavItem, type SNavItemOwnerState, type
|
|
1
|
+
export { SNavItem, type SNavItemOwnerState, type SNavItemProps, type SNavItemRowProps, type SNavItemSlotProps, type SNavItemSlots, } from './s-nav-item';
|
|
2
2
|
export { default } from './s-nav-item';
|
|
3
3
|
export type {} from '../theme/component-augmentation';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BoxProps,
|
|
1
|
+
import { BoxProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { SListActionItemProps } from '../s-list-action-item/s-list-action-item';
|
|
2
3
|
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
export interface SNavItemOwnerState extends SNavItemProps {
|
|
@@ -6,39 +7,57 @@ export interface SNavItemOwnerState extends SNavItemProps {
|
|
|
6
7
|
selected: boolean;
|
|
7
8
|
}
|
|
8
9
|
type OwnerStateSlotProps<Props> = MuiOwnerStateSlotProps<Props, SNavItemOwnerState>;
|
|
10
|
+
/** Row props, mirroring the primitive the nav item is built on. */
|
|
11
|
+
export type SNavItemRowProps = Omit<SListActionItemProps, 'label'>;
|
|
9
12
|
export interface SNavItemSlots {
|
|
10
|
-
|
|
11
|
-
button?: React.ElementType;
|
|
13
|
+
/** Leading icon container. */
|
|
12
14
|
icon?: React.ElementType;
|
|
13
|
-
|
|
15
|
+
/** Interactive row element. */
|
|
16
|
+
item?: React.ElementType;
|
|
17
|
+
/** Primary label element. */
|
|
18
|
+
label?: React.ElementType;
|
|
19
|
+
/** List item element wrapping the row. */
|
|
20
|
+
root?: React.ElementType;
|
|
21
|
+
/** Trailing content container. */
|
|
22
|
+
trailing?: React.ElementType;
|
|
14
23
|
}
|
|
15
|
-
export type SNavItemButtonProps = ListItemButtonProps & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'rel' | 'target'>;
|
|
16
24
|
export interface SNavItemSlotProps {
|
|
17
|
-
|
|
18
|
-
button?: OwnerStateSlotProps<SNavItemButtonProps>;
|
|
25
|
+
/** Props or owner-state callback for the icon slot. */
|
|
19
26
|
icon?: OwnerStateSlotProps<BoxProps>;
|
|
20
|
-
|
|
27
|
+
/** Props or owner-state callback for the row slot. */
|
|
28
|
+
item?: OwnerStateSlotProps<SNavItemRowProps>;
|
|
29
|
+
/** Props or owner-state callback for the label slot. */
|
|
30
|
+
label?: OwnerStateSlotProps<TypographyProps>;
|
|
31
|
+
/** Props or owner-state callback for the list item slot. */
|
|
32
|
+
root?: OwnerStateSlotProps<BoxProps<'li'>>;
|
|
33
|
+
/** Props or owner-state callback for the trailing slot. */
|
|
34
|
+
trailing?: OwnerStateSlotProps<BoxProps>;
|
|
21
35
|
}
|
|
22
|
-
/** Props for a semantic list item
|
|
36
|
+
/** Props for a semantic list item wrapping a navigation row. */
|
|
23
37
|
export interface SNavItemProps extends Omit<BoxProps<'li'>, 'children' | 'component' | 'onClick'> {
|
|
24
|
-
/**
|
|
25
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Content rendered under the row, inside the same list item — used for
|
|
40
|
+
* collapsible submenus. The row itself is described by the other props.
|
|
41
|
+
*/
|
|
42
|
+
children?: React.ReactNode;
|
|
26
43
|
/** Disables the navigation action. */
|
|
27
44
|
disabled?: boolean;
|
|
28
|
-
/** Link destination. When provided, the
|
|
45
|
+
/** Link destination. When provided, the row renders as an anchor by default. */
|
|
29
46
|
href?: string;
|
|
30
47
|
/** Optional leading icon. */
|
|
31
48
|
icon?: React.ReactNode;
|
|
32
|
-
/** Called when the item is activated. */
|
|
33
|
-
onClick?: ListItemButtonProps['onClick'];
|
|
34
49
|
/** Visible primary label. */
|
|
35
|
-
|
|
36
|
-
/**
|
|
50
|
+
label: React.ReactNode;
|
|
51
|
+
/** Called when the row is activated. */
|
|
52
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
53
|
+
/** Marks the row as the current navigation target. */
|
|
37
54
|
selected?: boolean;
|
|
38
55
|
/** Components used for internal structural slots. */
|
|
39
56
|
slots?: SNavItemSlots;
|
|
40
57
|
/** Props or owner-state callbacks for internal structural slots. */
|
|
41
58
|
slotProps?: SNavItemSlotProps;
|
|
59
|
+
/** Optional trailing content, e.g. a count chip or an expand indicator. */
|
|
60
|
+
trailing?: React.ReactNode;
|
|
42
61
|
}
|
|
43
62
|
export declare const SNavItem: React.ForwardRefExoticComponent<Omit<SNavItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
44
63
|
export default SNavItem;
|