@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
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
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 { getFocusVisibleStyle as i, reducedMotionMedia as a } from "../theme/components/action-styles.js";
|
|
6
|
+
import { n as o } from "../svgIconClasses-1kWGzgux.js";
|
|
7
|
+
import { t as s } from "../mergeSlotProps-DC8r4QzS.js";
|
|
8
|
+
import * as c from "react";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { Box as d, ListItemButton as f, Typography as p, styled as m, useThemeProps as h } from "@mui/material";
|
|
11
|
+
//#region lib/s-list-action-item/s-list-action-item.tsx
|
|
12
|
+
var g = 44, _ = 36, v = m(f, {
|
|
13
|
+
name: "SListActionItem",
|
|
14
|
+
slot: "Root",
|
|
15
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
16
|
+
})(({ theme: e }) => ({
|
|
17
|
+
color: (e.vars ?? e).palette.text.primary,
|
|
18
|
+
gap: e.spacing(1),
|
|
19
|
+
minHeight: g,
|
|
20
|
+
transition: e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter }),
|
|
21
|
+
width: "100%",
|
|
22
|
+
[`&&& .${o.root}`]: { color: "inherit" },
|
|
23
|
+
"&.Mui-focusVisible": {
|
|
24
|
+
...i(e),
|
|
25
|
+
outlineOffset: -2
|
|
26
|
+
},
|
|
27
|
+
[a]: { transition: "none" },
|
|
28
|
+
variants: [{
|
|
29
|
+
props: ({ ownerState: e }) => e.variant === "inset",
|
|
30
|
+
style: {
|
|
31
|
+
borderRadius: e.radius.md,
|
|
32
|
+
marginInline: e.spacing(.75),
|
|
33
|
+
width: "auto"
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
props: ({ ownerState: e }) => e.dense,
|
|
37
|
+
style: {
|
|
38
|
+
minHeight: _,
|
|
39
|
+
paddingBlock: e.spacing(.5)
|
|
40
|
+
}
|
|
41
|
+
}]
|
|
42
|
+
})), y = m(d, {
|
|
43
|
+
name: "SListActionItem",
|
|
44
|
+
slot: "Icon",
|
|
45
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
46
|
+
})({
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
color: "inherit",
|
|
49
|
+
display: "flex",
|
|
50
|
+
flexShrink: 0,
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
minWidth: 0
|
|
53
|
+
}), b = m(d, {
|
|
54
|
+
name: "SListActionItem",
|
|
55
|
+
slot: "Text",
|
|
56
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
57
|
+
})(({ theme: e }) => ({
|
|
58
|
+
display: "flex",
|
|
59
|
+
flex: 1,
|
|
60
|
+
flexDirection: "column",
|
|
61
|
+
minWidth: 0,
|
|
62
|
+
variants: [{
|
|
63
|
+
props: ({ ownerState: e }) => e.hasDescription,
|
|
64
|
+
style: { gap: e.spacing(.25) }
|
|
65
|
+
}]
|
|
66
|
+
})), x = m(p, {
|
|
67
|
+
name: "SListActionItem",
|
|
68
|
+
slot: "Label",
|
|
69
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
70
|
+
})({
|
|
71
|
+
display: "block",
|
|
72
|
+
minWidth: 0,
|
|
73
|
+
overflow: "hidden",
|
|
74
|
+
textOverflow: "ellipsis"
|
|
75
|
+
}), S = m(p, {
|
|
76
|
+
name: "SListActionItem",
|
|
77
|
+
slot: "Description",
|
|
78
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
79
|
+
})(({ theme: e }) => ({
|
|
80
|
+
color: (e.vars ?? e).palette.text.secondary,
|
|
81
|
+
display: "block",
|
|
82
|
+
minWidth: 0,
|
|
83
|
+
overflow: "hidden",
|
|
84
|
+
textOverflow: "ellipsis"
|
|
85
|
+
})), C = m(d, {
|
|
86
|
+
name: "SListActionItem",
|
|
87
|
+
slot: "Trailing",
|
|
88
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
89
|
+
})(({ theme: e }) => ({
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
color: (e.vars ?? e).palette.text.secondary,
|
|
92
|
+
display: "flex",
|
|
93
|
+
flexShrink: 0,
|
|
94
|
+
marginInlineStart: "auto"
|
|
95
|
+
})), w = c.forwardRef(function(i, a) {
|
|
96
|
+
let o = h({
|
|
97
|
+
props: i,
|
|
98
|
+
name: "SListActionItem"
|
|
99
|
+
}), { "aria-current": c, component: d, dense: f = !1, description: p, disabled: m = !1, href: g, icon: _, label: w, selected: T = !1, slotProps: E, slots: D, sx: O, trailing: k, variant: A = "plain", ...j } = o, M = {
|
|
100
|
+
...o,
|
|
101
|
+
dense: f,
|
|
102
|
+
disabled: m,
|
|
103
|
+
hasDescription: p != null,
|
|
104
|
+
selected: T,
|
|
105
|
+
variant: A
|
|
106
|
+
}, N = D?.root ?? v, P = D?.icon ?? y, F = D?.text ?? b, I = D?.label ?? x, L = D?.description ?? S, R = D?.trailing ?? C, z = d ?? (g ? "a" : "button"), B = T ? "page" : void 0, V = "aria-current" in o ? c : B, { ref: H, sx: U, ...W } = r(N, s(t(E?.root, M), {
|
|
107
|
+
...j,
|
|
108
|
+
"aria-current": V,
|
|
109
|
+
dense: f,
|
|
110
|
+
disabled: m,
|
|
111
|
+
href: m ? void 0 : g,
|
|
112
|
+
selected: T
|
|
113
|
+
}), M), G = n(H, a), K = r(P, s(t(E?.icon, M), { component: "span" }), M), q = r(F, s(t(E?.text, M), { component: "span" }), M), J = r(I, s(t(E?.label, M), {
|
|
114
|
+
component: "span",
|
|
115
|
+
variant: "body1"
|
|
116
|
+
}), M), Y = r(L, s(t(E?.description, M), {
|
|
117
|
+
component: "span",
|
|
118
|
+
variant: "body2"
|
|
119
|
+
}), M), X = r(R, s(t(E?.trailing, M), { component: "span" }), M);
|
|
120
|
+
return /* @__PURE__ */ u(N, {
|
|
121
|
+
...W,
|
|
122
|
+
ref: G,
|
|
123
|
+
component: z,
|
|
124
|
+
nativeButton: z === "button",
|
|
125
|
+
sx: [...e(U), ...e(O)],
|
|
126
|
+
children: [
|
|
127
|
+
_ == null ? null : /* @__PURE__ */ l(P, {
|
|
128
|
+
...K,
|
|
129
|
+
children: _
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ u(F, {
|
|
132
|
+
...q,
|
|
133
|
+
children: [/* @__PURE__ */ l(I, {
|
|
134
|
+
...J,
|
|
135
|
+
children: w
|
|
136
|
+
}), p == null ? null : /* @__PURE__ */ l(L, {
|
|
137
|
+
...Y,
|
|
138
|
+
children: p
|
|
139
|
+
})]
|
|
140
|
+
}),
|
|
141
|
+
k == null ? null : /* @__PURE__ */ l(R, {
|
|
142
|
+
...X,
|
|
143
|
+
children: k
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
w.displayName = "SListActionItem";
|
|
149
|
+
//#endregion
|
|
150
|
+
export { w as SListActionItem, w as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-localization-provider-
|
|
1
|
+
import { t as e } from "../s-localization-provider-CeyB_SGz.js";
|
|
2
2
|
export { e as SLocalizationProvider, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-localization-provider-
|
|
1
|
+
import { t as e } from "../s-localization-provider-CeyB_SGz.js";
|
|
2
2
|
export { e as SLocalizationProvider, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { n } from "./
|
|
3
|
-
import { i as r, n as i, t as a } from "./warning-
|
|
2
|
+
import { t as n } from "./extends-DXMyyJCW.js";
|
|
3
|
+
import { i as r, n as i, t as a } from "./warning-D5YhCbje.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
6
6
|
import s from "dayjs";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default, default as SMegaMenu } from './s-mega-menu';
|
|
2
|
+
export type { SMegaMenuChangeReason, SMegaMenuItem, SMegaMenuItemBase, SMegaMenuItemState, SMegaMenuLayout, SMegaMenuOwnerState, SMegaMenuPanelState, SMegaMenuProps, SMegaMenuResolvedLayout, SMegaMenuSide, SMegaMenuSlotProps, SMegaMenuSlots, SMegaMenuTriggerState, } from './types';
|
|
3
|
+
export type {} from '../theme/component-augmentation';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SMegaMenuChangeReason, SMegaMenuItem, SMegaMenuItemState, SMegaMenuOwnerState, SMegaMenuSlotProps, SMegaMenuSlots } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** Everything the recursive panel renderers need from the owning `SMegaMenu`. */
|
|
4
|
+
export interface MegaMenuRenderContext<T = unknown> {
|
|
5
|
+
/** Closes the whole menu, optionally returning focus to the open trigger. */
|
|
6
|
+
closeMenu: (options: {
|
|
7
|
+
event: Event | React.SyntheticEvent | null;
|
|
8
|
+
focusTrigger?: boolean;
|
|
9
|
+
reason: SMegaMenuChangeReason;
|
|
10
|
+
}) => void;
|
|
11
|
+
/** Resolves the active state of an entry. */
|
|
12
|
+
getIsActive: (item: SMegaMenuItem<T>) => boolean;
|
|
13
|
+
/** Keeps submenu content mounted while closed. */
|
|
14
|
+
keepMounted: boolean;
|
|
15
|
+
/** Default element used for entries that have an `href`. */
|
|
16
|
+
linkComponent?: React.ElementType;
|
|
17
|
+
/** Owner state shared by every slot. */
|
|
18
|
+
ownerState: SMegaMenuOwnerState<T>;
|
|
19
|
+
/** Renders the content of a row. */
|
|
20
|
+
renderItem?: (item: SMegaMenuItem<T>, state: SMegaMenuItemState<T>) => React.ReactNode;
|
|
21
|
+
slotProps?: SMegaMenuSlotProps<T>;
|
|
22
|
+
slots?: SMegaMenuSlots;
|
|
23
|
+
}
|
|
24
|
+
interface PanelContentProps<T> {
|
|
25
|
+
/** Closes the flyout submenu this panel lives in, if any. */
|
|
26
|
+
closeParent?: () => void;
|
|
27
|
+
ctx: MegaMenuRenderContext<T>;
|
|
28
|
+
depth: number;
|
|
29
|
+
items: SMegaMenuItem<T>[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Panel body for one level of the tree.
|
|
33
|
+
*
|
|
34
|
+
* Recursion happens here: a `list` layout renders branch rows that mount another
|
|
35
|
+
* `MegaMenuPanelContent` inside their flyout submenu.
|
|
36
|
+
*/
|
|
37
|
+
export declare function MegaMenuPanelContent<T>({ closeParent, ctx, depth, items, }: Readonly<PanelContentProps<T>>): React.JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
|
|
3
|
+
import { t as n } from "../useForkRef-BuNFTXxE.js";
|
|
4
|
+
import { t as r } from "../useEventCallback-DGCsaRIu.js";
|
|
5
|
+
import { t as i } from "../appendOwnerState-CFQTq3pb.js";
|
|
6
|
+
import { t as a } from "../mergeSlotProps-DC8r4QzS.js";
|
|
7
|
+
import { t as o } from "../ChevronRight-DsPfsFKB.js";
|
|
8
|
+
import { LIST_ATTRIBUTE as s, NODE_ATTRIBUTE as c, PANEL_ATTRIBUTE as l, ROW_ATTRIBUTE as u, focusAdjacentList as d, focusRowByOffset as f, getFirstRow as p, getSiblingRows as m, hasNestedChildren as h, resolveLayout as g, resolveSubmenuSide as _ } from "./utils.js";
|
|
9
|
+
import { SMegaMenuColumn as v, SMegaMenuHeading as y, SMegaMenuItemRoot as b, SMegaMenuPanel as x, SMegaMenuSubmenu as S, SMegaMenuSubmenuNode as C } from "./mega-menu-slots.js";
|
|
10
|
+
import * as w from "react";
|
|
11
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
12
|
+
//#region lib/s-mega-menu/mega-menu-panel.tsx
|
|
13
|
+
function D(e, t, n) {
|
|
14
|
+
return {
|
|
15
|
+
...e.ownerState,
|
|
16
|
+
active: e.getIsActive(t),
|
|
17
|
+
hasChildren: !!t.children?.length,
|
|
18
|
+
item: t,
|
|
19
|
+
...n
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function O({ closeParent: e, ctx: s, depth: c, item: l, onOpenSubmenu: p, onRowClick: h, open: g = !1, resolvedLayout: _, rowRef: v, side: y = "right", submenuId: x, triggerId: S }) {
|
|
23
|
+
let C = D(s, l, {
|
|
24
|
+
depth: c,
|
|
25
|
+
heading: !1,
|
|
26
|
+
open: g,
|
|
27
|
+
resolvedLayout: _,
|
|
28
|
+
side: y
|
|
29
|
+
}), w = s.slots?.item ?? b, E = C.hasChildren, O = r((t) => {
|
|
30
|
+
let n = t.currentTarget;
|
|
31
|
+
switch (t.key) {
|
|
32
|
+
case "ArrowDown":
|
|
33
|
+
t.preventDefault(), f(m(n), n, 1);
|
|
34
|
+
break;
|
|
35
|
+
case "ArrowUp":
|
|
36
|
+
t.preventDefault(), f(m(n), n, -1);
|
|
37
|
+
break;
|
|
38
|
+
case "Home":
|
|
39
|
+
t.preventDefault(), m(n)[0]?.focus();
|
|
40
|
+
break;
|
|
41
|
+
case "End": {
|
|
42
|
+
t.preventDefault();
|
|
43
|
+
let e = m(n);
|
|
44
|
+
e[e.length - 1]?.focus();
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
case "ArrowRight":
|
|
48
|
+
t.preventDefault(), p ? p() : d(n, 1);
|
|
49
|
+
break;
|
|
50
|
+
case "ArrowLeft":
|
|
51
|
+
t.preventDefault(), e ? e() : d(n, -1) || s.closeMenu({
|
|
52
|
+
event: t,
|
|
53
|
+
focusTrigger: !0,
|
|
54
|
+
reason: "triggerKeyDown"
|
|
55
|
+
});
|
|
56
|
+
break;
|
|
57
|
+
case "Escape":
|
|
58
|
+
t.preventDefault(), s.closeMenu({
|
|
59
|
+
event: t,
|
|
60
|
+
focusTrigger: !0,
|
|
61
|
+
reason: "escapeKeyDown"
|
|
62
|
+
});
|
|
63
|
+
break;
|
|
64
|
+
default: break;
|
|
65
|
+
}
|
|
66
|
+
}), k = E ? void 0 : l.component ?? (l.href ? s.linkComponent : void 0), A = E ? void 0 : l.href, { slotProps: j, ...M } = t(s.slotProps?.item, C) ?? {}, { ref: N, ...P } = i(w, a(M, {
|
|
67
|
+
[u]: "",
|
|
68
|
+
"aria-controls": E ? x : void 0,
|
|
69
|
+
"aria-current": C.active && A ? "page" : void 0,
|
|
70
|
+
"aria-expanded": E ? g : void 0,
|
|
71
|
+
component: k,
|
|
72
|
+
description: l.description,
|
|
73
|
+
disabled: l.disabled,
|
|
74
|
+
href: A,
|
|
75
|
+
icon: l.icon,
|
|
76
|
+
onClick: h,
|
|
77
|
+
onKeyDown: O,
|
|
78
|
+
rel: A ? l.rel : void 0,
|
|
79
|
+
selected: C.active,
|
|
80
|
+
slotProps: {
|
|
81
|
+
...j,
|
|
82
|
+
label: a(j?.label, { variant: c === 0 ? "body1" : "body2" }),
|
|
83
|
+
trailing: a(j?.trailing, { sx: { color: "inherit" } })
|
|
84
|
+
},
|
|
85
|
+
target: A ? l.target : void 0,
|
|
86
|
+
trailing: E ? /* @__PURE__ */ T(o, { fontSize: "small" }) : void 0,
|
|
87
|
+
id: S,
|
|
88
|
+
variant: _ === "columns" ? "plain" : "inset"
|
|
89
|
+
}), C), F = n(N, v);
|
|
90
|
+
return /* @__PURE__ */ T(w, {
|
|
91
|
+
...P,
|
|
92
|
+
ref: F,
|
|
93
|
+
label: s.renderItem ? s.renderItem(l, C) : l.label
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function k({ closeParent: o, ctx: s, depth: l, item: u, onSubmenuOpenChange: d, open: f = !1, resolvedLayout: m }) {
|
|
97
|
+
let h = w.useRef(null), g = w.useRef(null), v = w.useRef(null), y = w.useRef(void 0), b = w.useRef(!1), [x, k] = w.useState("right"), A = w.useId(), M = `${A}-submenu`, N = `${A}-trigger`, P = u.children ?? [], F = w.useCallback(() => {
|
|
98
|
+
y.current &&= (clearTimeout(y.current), void 0);
|
|
99
|
+
}, []);
|
|
100
|
+
w.useEffect(() => F, [F]);
|
|
101
|
+
let I = r(() => {
|
|
102
|
+
k(_(h.current, g.current));
|
|
103
|
+
});
|
|
104
|
+
w.useLayoutEffect(() => {
|
|
105
|
+
f && (I(), b.current && (b.current = !1, p(g.current)?.focus()));
|
|
106
|
+
}, [f, I]);
|
|
107
|
+
let L = r(() => {
|
|
108
|
+
F(), !u.disabled && (I(), d?.(!0));
|
|
109
|
+
}), R = r(() => {
|
|
110
|
+
F(), y.current = setTimeout(() => d?.(!1), s.ownerState.closeDelay);
|
|
111
|
+
}), z = r((e) => {
|
|
112
|
+
F(), d?.(!1), e && v.current?.focus();
|
|
113
|
+
}), B = r(() => {
|
|
114
|
+
if (f) {
|
|
115
|
+
p(g.current)?.focus();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
b.current = !0, L();
|
|
119
|
+
}), V = r(() => {
|
|
120
|
+
if (!f) {
|
|
121
|
+
L();
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
z(!1);
|
|
125
|
+
}), H = D(s, u, {
|
|
126
|
+
depth: l,
|
|
127
|
+
heading: !1,
|
|
128
|
+
open: f,
|
|
129
|
+
resolvedLayout: m,
|
|
130
|
+
side: x
|
|
131
|
+
}), U = s.slots?.submenuNode ?? C, W = s.slots?.submenu ?? S, G = r((e) => {
|
|
132
|
+
let t = e.relatedTarget;
|
|
133
|
+
!t || e.currentTarget.contains(t) || z(!1);
|
|
134
|
+
}), { ref: K, ...q } = i(U, a(t(s.slotProps?.submenuNode, H), {
|
|
135
|
+
[c]: "",
|
|
136
|
+
"data-side": x,
|
|
137
|
+
onBlurCapture: G,
|
|
138
|
+
onFocus: I,
|
|
139
|
+
onPointerEnter: (e) => {
|
|
140
|
+
!u.disabled && e.pointerType !== "touch" && L();
|
|
141
|
+
},
|
|
142
|
+
onPointerLeave: (e) => {
|
|
143
|
+
e.pointerType !== "touch" && R();
|
|
144
|
+
}
|
|
145
|
+
}), H), J = n(K, h), { ref: Y, sx: X, ...Z } = i(W, a(t(s.slotProps?.submenu, H), {
|
|
146
|
+
"aria-hidden": f ? void 0 : !0,
|
|
147
|
+
"aria-labelledby": N,
|
|
148
|
+
id: M,
|
|
149
|
+
role: "region"
|
|
150
|
+
}), H), Q = n(Y, g);
|
|
151
|
+
return /* @__PURE__ */ E(U, {
|
|
152
|
+
...q,
|
|
153
|
+
ref: J,
|
|
154
|
+
children: [/* @__PURE__ */ T(O, {
|
|
155
|
+
closeParent: o,
|
|
156
|
+
ctx: s,
|
|
157
|
+
depth: l,
|
|
158
|
+
item: u,
|
|
159
|
+
onOpenSubmenu: B,
|
|
160
|
+
onRowClick: V,
|
|
161
|
+
open: f,
|
|
162
|
+
resolvedLayout: m,
|
|
163
|
+
rowRef: v,
|
|
164
|
+
side: x,
|
|
165
|
+
submenuId: M,
|
|
166
|
+
triggerId: N
|
|
167
|
+
}), /* @__PURE__ */ T(W, {
|
|
168
|
+
...Z,
|
|
169
|
+
ref: Q,
|
|
170
|
+
sx: [...e(X)],
|
|
171
|
+
children: f || s.keepMounted ? /* @__PURE__ */ T(j, {
|
|
172
|
+
closeParent: () => z(!0),
|
|
173
|
+
ctx: s,
|
|
174
|
+
depth: l + 1,
|
|
175
|
+
items: P
|
|
176
|
+
}) : null
|
|
177
|
+
})]
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function A({ closeParent: e, ctx: n, depth: r, item: o }) {
|
|
181
|
+
let c = D(n, o, {
|
|
182
|
+
depth: r,
|
|
183
|
+
heading: !0,
|
|
184
|
+
open: !1,
|
|
185
|
+
resolvedLayout: "columns",
|
|
186
|
+
side: "right"
|
|
187
|
+
}), l = `${w.useId()}-heading`, u = n.slots?.column ?? v, d = n.slots?.heading ?? y, f = i(u, a(t(n.slotProps?.column, c), {
|
|
188
|
+
[s]: "",
|
|
189
|
+
"aria-labelledby": l
|
|
190
|
+
}), c), p = i(d, a(t(n.slotProps?.heading, c), {
|
|
191
|
+
component: "h3",
|
|
192
|
+
id: l
|
|
193
|
+
}), c);
|
|
194
|
+
return /* @__PURE__ */ E(u, {
|
|
195
|
+
...f,
|
|
196
|
+
children: [/* @__PURE__ */ T(d, {
|
|
197
|
+
...p,
|
|
198
|
+
children: n.renderItem ? n.renderItem(o, c) : o.label
|
|
199
|
+
}), (o.children ?? []).map((t) => /* @__PURE__ */ T(O, {
|
|
200
|
+
closeParent: e,
|
|
201
|
+
ctx: n,
|
|
202
|
+
depth: r + 1,
|
|
203
|
+
item: t,
|
|
204
|
+
onRowClick: (e) => n.closeMenu({
|
|
205
|
+
event: e,
|
|
206
|
+
reason: "itemClick"
|
|
207
|
+
}),
|
|
208
|
+
resolvedLayout: "columns"
|
|
209
|
+
}, t.id))]
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function j({ closeParent: n, ctx: r, depth: o, items: c }) {
|
|
213
|
+
let u = g(c, r.ownerState.layout), [d, f] = w.useState(null), p = u === "columns" || !h(c), m = {
|
|
214
|
+
...r.ownerState,
|
|
215
|
+
depth: o,
|
|
216
|
+
resolvedLayout: u,
|
|
217
|
+
scrollable: p
|
|
218
|
+
}, _ = r.slots?.panel ?? x, { sx: v, ...y } = i(_, a(t(r.slotProps?.panel, m), {
|
|
219
|
+
[l]: "",
|
|
220
|
+
...u === "list" ? { [s]: "" } : {}
|
|
221
|
+
}), m);
|
|
222
|
+
return /* @__PURE__ */ T(_, {
|
|
223
|
+
...y,
|
|
224
|
+
sx: [...e(v)],
|
|
225
|
+
children: u === "columns" ? c.map((e) => /* @__PURE__ */ T(A, {
|
|
226
|
+
closeParent: n,
|
|
227
|
+
ctx: r,
|
|
228
|
+
depth: o,
|
|
229
|
+
item: e,
|
|
230
|
+
resolvedLayout: u
|
|
231
|
+
}, e.id)) : c.map((e) => e.children?.length ? /* @__PURE__ */ T(k, {
|
|
232
|
+
closeParent: n,
|
|
233
|
+
ctx: r,
|
|
234
|
+
depth: o,
|
|
235
|
+
item: e,
|
|
236
|
+
onSubmenuOpenChange: (t) => f((n) => t ? e.id : n === e.id ? null : n),
|
|
237
|
+
open: d === e.id,
|
|
238
|
+
resolvedLayout: u
|
|
239
|
+
}, e.id) : /* @__PURE__ */ T(O, {
|
|
240
|
+
closeParent: n,
|
|
241
|
+
ctx: r,
|
|
242
|
+
depth: o,
|
|
243
|
+
item: e,
|
|
244
|
+
onRowClick: (e) => r.closeMenu({
|
|
245
|
+
event: e,
|
|
246
|
+
reason: "itemClick"
|
|
247
|
+
}),
|
|
248
|
+
resolvedLayout: u
|
|
249
|
+
}, e.id))
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
export { j as MegaMenuPanelContent };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SMegaMenuItemState, SMegaMenuOwnerState, SMegaMenuPanelState, SMegaMenuTriggerState } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Navigation root. Semantic `nav` markup is fixed by the default slot; consumers
|
|
4
|
+
* can replace the slot when their application needs a custom navigation root.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SMegaMenuRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
7
|
+
ownerState: SMegaMenuOwnerState;
|
|
8
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
9
|
+
/**
|
|
10
|
+
* Top-level trigger.
|
|
11
|
+
*
|
|
12
|
+
* While its panel is open an invisible `::after` bridge extends past the bottom
|
|
13
|
+
* edge so the pointer never leaves a hoverable element on its way down to the
|
|
14
|
+
* panel surface. See the close-intent explanation in `s-mega-menu.tsx`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SMegaMenuTrigger: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material').ButtonBaseOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "className" | "style" | "classes" | "children" | "sx" | "disabled" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
17
|
+
ownerState: SMegaMenuTriggerState;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
/** Chevron rendered by the default trigger content, rotated while the panel is open. */
|
|
20
|
+
export declare const SMegaMenuTriggerArrow: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
21
|
+
ownerState: SMegaMenuTriggerState;
|
|
22
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
23
|
+
/**
|
|
24
|
+
* Popover hosting the top-level panel.
|
|
25
|
+
*
|
|
26
|
+
* `pointerEvents: 'none'` on the popover root plus `pointerEvents: 'auto'` on the
|
|
27
|
+
* surface keeps the page underneath interactive — the non-modal pattern
|
|
28
|
+
* documented in the SPopover `hover-preview` example. Without it the modal root
|
|
29
|
+
* would swallow every pointer event outside the surface.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SMegaMenuPopover: import('@emotion/styled').StyledComponent<Omit<import('../s-popover').SPopoverProps, "ref"> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
32
|
+
ownerState?: SMegaMenuOwnerState;
|
|
33
|
+
}, {}, {}>;
|
|
34
|
+
/** Content container inside a panel surface. Also used for every flyout submenu. */
|
|
35
|
+
export declare const SMegaMenuPanel: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
36
|
+
ownerState: SMegaMenuPanelState;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
/** Column wrapper in the `columns` layout. */
|
|
39
|
+
export declare const SMegaMenuColumn: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
40
|
+
ownerState: SMegaMenuItemState;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
/** Non-interactive label of one column group. */
|
|
43
|
+
export declare const SMegaMenuHeading: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
44
|
+
ownerState: SMegaMenuItemState;
|
|
45
|
+
}, {}, {}>;
|
|
46
|
+
/** Panel row. */
|
|
47
|
+
export declare const SMegaMenuItemRoot: import('@emotion/styled').StyledComponent<Omit<import('../s-list-action-item').SListActionItemProps, "ref"> & import('react').RefAttributes<HTMLElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
48
|
+
ownerState: SMegaMenuItemState;
|
|
49
|
+
}, {}, {}>;
|
|
50
|
+
/**
|
|
51
|
+
* Positioned wrapper around a row plus its flyout submenu.
|
|
52
|
+
*
|
|
53
|
+
* While open, an invisible `::after` bridge spans the horizontal gap between the
|
|
54
|
+
* row and the submenu, flipped to the other side when collision detection moved
|
|
55
|
+
* the submenu left. Because the submenu is a DOM descendant of this wrapper, the
|
|
56
|
+
* pointer never leaves the wrapper on its way across — `pointerleave` simply
|
|
57
|
+
* does not fire.
|
|
58
|
+
*/
|
|
59
|
+
export declare const SMegaMenuSubmenuNode: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
60
|
+
ownerState: SMegaMenuItemState;
|
|
61
|
+
}, {}, {}>;
|
|
62
|
+
/** Flyout submenu surface rendered next to a nested row. */
|
|
63
|
+
export declare const SMegaMenuSubmenu: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
64
|
+
ownerState: SMegaMenuItemState;
|
|
65
|
+
}, {}, {}>;
|