@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,152 @@
|
|
|
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 { actionHoverMedia as a, getFocusVisibleStyle as o, reducedMotionMedia as s } from "../theme/components/action-styles.js";
|
|
7
|
+
import { t as c } from "../mergeSlotProps-DC8r4QzS.js";
|
|
8
|
+
import * as l from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { Box as f, Card as p, CardActionArea as m, keyframes as h, styled as g, useThemeProps as _ } from "@mui/material";
|
|
11
|
+
//#region lib/s-interactive-card/s-interactive-card.tsx
|
|
12
|
+
var v = "55%", y = "-18deg", b = "-140%", x = h`
|
|
13
|
+
from {
|
|
14
|
+
transform: translateX(${b}) skewX(${y});
|
|
15
|
+
}
|
|
16
|
+
to {
|
|
17
|
+
transform: translateX(${"260%"}) skewX(${y});
|
|
18
|
+
}
|
|
19
|
+
`, S = (e) => ({ [a]: { "&:hover": e } }), C = (e) => ({
|
|
20
|
+
...S(e),
|
|
21
|
+
"&:has(.Mui-focusVisible)": e
|
|
22
|
+
}), w = g(p, {
|
|
23
|
+
name: "SInteractiveCard",
|
|
24
|
+
slot: "Root",
|
|
25
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
26
|
+
})(({ theme: e }) => ({
|
|
27
|
+
borderRadius: e.radius.md,
|
|
28
|
+
overflow: "hidden",
|
|
29
|
+
position: "relative",
|
|
30
|
+
transition: e.transitions.create(["border-color", "transform"], {
|
|
31
|
+
duration: e.transitions.duration.complex,
|
|
32
|
+
easing: e.transitions.easing.easeOut
|
|
33
|
+
}),
|
|
34
|
+
zIndex: 0,
|
|
35
|
+
[s]: { transition: "none" },
|
|
36
|
+
variants: [
|
|
37
|
+
{
|
|
38
|
+
props: ({ ownerState: e }) => e.interactive && !e.disabled,
|
|
39
|
+
style: C({ borderColor: (e.vars ?? e).palette.primary.main })
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
props: ({ ownerState: e }) => e.interactive && !e.disabled && !e.disableLift,
|
|
43
|
+
style: {
|
|
44
|
+
...S({ transform: `translateY(calc(${e.spacing(1.5)} * -1)) scale(1.02)` }),
|
|
45
|
+
[s]: S({ transform: "none" })
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
props: ({ ownerState: e }) => e.interactive && !e.disabled && e.sheen,
|
|
50
|
+
style: {
|
|
51
|
+
"&::after": {
|
|
52
|
+
backgroundImage: `linear-gradient(90deg, transparent, ${(e.vars ?? e).palette.whiteAlpha.light}, transparent)`,
|
|
53
|
+
content: "\"\"",
|
|
54
|
+
height: "100%",
|
|
55
|
+
insetBlockStart: 0,
|
|
56
|
+
insetInlineStart: 0,
|
|
57
|
+
pointerEvents: "none",
|
|
58
|
+
position: "absolute",
|
|
59
|
+
transform: `translateX(${b}) skewX(${y})`,
|
|
60
|
+
width: v,
|
|
61
|
+
willChange: "transform",
|
|
62
|
+
zIndex: 2
|
|
63
|
+
},
|
|
64
|
+
...S({ "&::after": { animation: `${x} ${e.transitions.duration.complex}ms ${e.transitions.easing.easeOut} forwards` } }),
|
|
65
|
+
[s]: { "&::after": { content: "none" } }
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
props: ({ ownerState: e }) => e.disabled,
|
|
70
|
+
style: {
|
|
71
|
+
borderColor: (e.vars ?? e).palette.divider,
|
|
72
|
+
boxShadow: "none"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
})), T = g(m, {
|
|
77
|
+
name: "SInteractiveCard",
|
|
78
|
+
slot: "ActionArea",
|
|
79
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
80
|
+
})(({ theme: e }) => ({
|
|
81
|
+
borderRadius: "inherit",
|
|
82
|
+
display: "block",
|
|
83
|
+
height: "100%",
|
|
84
|
+
textAlign: "inherit",
|
|
85
|
+
width: "100%",
|
|
86
|
+
"&.Mui-focusVisible": {
|
|
87
|
+
...o(e),
|
|
88
|
+
outlineOffset: -2
|
|
89
|
+
}
|
|
90
|
+
})), E = g(f, {
|
|
91
|
+
name: "SInteractiveCard",
|
|
92
|
+
slot: "Overlay",
|
|
93
|
+
shouldForwardProp: (e) => e !== "ownerState"
|
|
94
|
+
})({
|
|
95
|
+
borderRadius: "inherit",
|
|
96
|
+
inset: 0,
|
|
97
|
+
overflow: "hidden",
|
|
98
|
+
pointerEvents: "none",
|
|
99
|
+
position: "absolute",
|
|
100
|
+
zIndex: 1
|
|
101
|
+
}), D = l.forwardRef(function(a, o) {
|
|
102
|
+
let s = _({
|
|
103
|
+
props: a,
|
|
104
|
+
name: "SInteractiveCard"
|
|
105
|
+
}), { "aria-describedby": l, "aria-label": f, "aria-labelledby": p, children: m, disableLift: h = !1, disabled: g = !1, href: v, interactive: y = !0, onClick: b, overlay: x, sheen: S = !1, slotProps: C, slots: D, sx: O, ...k } = s, A = v !== void 0 || b !== void 0, j = {
|
|
106
|
+
...s,
|
|
107
|
+
clickable: A,
|
|
108
|
+
disableLift: h,
|
|
109
|
+
disabled: g,
|
|
110
|
+
interactive: y,
|
|
111
|
+
sheen: S
|
|
112
|
+
}, M = D?.root ?? w, N = D?.actionArea ?? T, P = D?.overlay ?? E, F = r((e) => {
|
|
113
|
+
if (g) {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
b?.(e);
|
|
118
|
+
}), { ref: I, sx: L, ...R } = i(M, c(t(C?.root, j), {
|
|
119
|
+
...k,
|
|
120
|
+
"aria-describedby": A ? void 0 : l,
|
|
121
|
+
"aria-label": A ? void 0 : f,
|
|
122
|
+
"aria-labelledby": A ? void 0 : p
|
|
123
|
+
}), j), z = n(I, o), B = c(t(C?.actionArea, j), {
|
|
124
|
+
"aria-describedby": l,
|
|
125
|
+
"aria-label": f,
|
|
126
|
+
"aria-labelledby": p,
|
|
127
|
+
onClick: F
|
|
128
|
+
}), V = i(N, {
|
|
129
|
+
...B,
|
|
130
|
+
component: v === void 0 ? "button" : "a",
|
|
131
|
+
disabled: g || B.disabled,
|
|
132
|
+
href: v,
|
|
133
|
+
nativeButton: v === void 0,
|
|
134
|
+
type: v === void 0 ? "button" : void 0
|
|
135
|
+
}, j), H = i(P, t(C?.overlay, j) ?? {}, j);
|
|
136
|
+
return /* @__PURE__ */ d(M, {
|
|
137
|
+
...R,
|
|
138
|
+
ref: z,
|
|
139
|
+
sx: [...e(L), ...e(O)],
|
|
140
|
+
children: [A ? /* @__PURE__ */ u(N, {
|
|
141
|
+
...V,
|
|
142
|
+
children: m
|
|
143
|
+
}) : m, x == null ? null : /* @__PURE__ */ u(P, {
|
|
144
|
+
...H,
|
|
145
|
+
"aria-hidden": !0,
|
|
146
|
+
children: x
|
|
147
|
+
})]
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
D.displayName = "SInteractiveCard";
|
|
151
|
+
//#endregion
|
|
152
|
+
export { D as SInteractiveCard, D as default };
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "../styled-Bog8QCl3.js";
|
|
2
|
-
import { t } from "../Stack-
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "../
|
|
2
|
+
import { t } from "../Stack-C0LGzM4c.js";
|
|
3
|
+
import { t as n } from "../useThemeProps-Dw9dmKyT.js";
|
|
4
|
+
import { t as r } from "../IconButton-CE-4GamO.js";
|
|
5
5
|
import { toSxArray as i } from "../utils/sx.js";
|
|
6
|
-
import { t as a } from "../appendOwnerState-
|
|
7
|
-
import { t as o } from "../Typography-
|
|
8
|
-
import { t as s } from "../InfoOutlined-
|
|
9
|
-
import { t as c } from "../Tooltip-
|
|
6
|
+
import { t as a } from "../appendOwnerState-CFQTq3pb.js";
|
|
7
|
+
import { t as o } from "../Typography-_P0svrkO.js";
|
|
8
|
+
import { t as s } from "../InfoOutlined-lpvhO6P8.js";
|
|
9
|
+
import { t as c } from "../Tooltip-B1sn94L0.js";
|
|
10
10
|
import * as l from "react";
|
|
11
11
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
12
|
//#region lib/s-label/s-label.tsx
|
|
@@ -18,7 +18,7 @@ function p(e, t) {
|
|
|
18
18
|
return typeof e == "function" ? e(t) : e;
|
|
19
19
|
}
|
|
20
20
|
var m = (e, t) => !t && !(l.isValidElement(e) && e.type === o), h = l.forwardRef(function(e, l) {
|
|
21
|
-
let h =
|
|
21
|
+
let h = n({
|
|
22
22
|
props: e,
|
|
23
23
|
name: "SLabel"
|
|
24
24
|
}), { children: g, disableLabelTypography: _ = !1, disableValueTypography: v = !1, hint: y, label: b, slotProps: x, slots: S, sx: C, ...w } = h, T = typeof y == "string" ? y.trim().length > 0 : !!y, E = {
|
|
@@ -26,7 +26,7 @@ var m = (e, t) => !t && !(l.isValidElement(e) && e.type === o), h = l.forwardRef
|
|
|
26
26
|
disableLabelTypography: _,
|
|
27
27
|
disableValueTypography: v,
|
|
28
28
|
hasHint: T
|
|
29
|
-
}, D = S?.labelRow ?? t, O = S?.label ?? o, k = S?.value ?? o, A = S?.tooltip ?? c, j = S?.hintButton ??
|
|
29
|
+
}, D = S?.labelRow ?? t, O = S?.label ?? o, k = S?.value ?? o, A = S?.tooltip ?? c, j = S?.hintButton ?? r, M = a(S?.labelRow, p(x?.labelRow, E) ?? {}, E), N = a(S?.label, p(x?.label, E) ?? {}, E), P = a(S?.value, p(x?.value, E) ?? {}, E), F = a(S?.tooltip, p(x?.tooltip, E) ?? {}, E), I = a(S?.hintButton, p(x?.hintButton, E) ?? {}, E), L = m(b, _), R = m(g, v);
|
|
30
30
|
return /* @__PURE__ */ d(f, {
|
|
31
31
|
...w,
|
|
32
32
|
ref: l,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../s-language-switcher-
|
|
1
|
+
import { n as e, r as t, t as n } from "../s-language-switcher-PaMgHWc2.js";
|
|
2
2
|
export { n as SLanguagePopover, e as SLanguageSwitcher, e as default, t as defaultLanguageOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../s-language-switcher-
|
|
1
|
+
import { n as e, r as t, t as n } from "../s-language-switcher-PaMgHWc2.js";
|
|
2
2
|
export { n as SLanguagePopover, e as SLanguageSwitcher, e as default, t as defaultLanguageOptions };
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
+
import { t } from "./prop-types-BzYPyWN7.js";
|
|
3
|
+
import { r as n, t as r } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
4
|
+
import { t as i } from "./clsx-DGZSe4Nt.js";
|
|
5
|
+
import { t as a } from "./styled-Bog8QCl3.js";
|
|
6
|
+
import { t as o } from "./useThemeProps-Dw9dmKyT.js";
|
|
7
|
+
import { t as s } from "./memoTheme-qFyKAk7y.js";
|
|
8
|
+
import { t as c } from "./mergeSlotProps-DC8r4QzS.js";
|
|
9
|
+
import { n as l } from "./List-RNcZhRdr.js";
|
|
10
|
+
import { t as u } from "./Menu-CnyB4SDS.js";
|
|
11
|
+
import { t as d } from "./Typography-_P0svrkO.js";
|
|
12
|
+
import { SIconButton as f } from "./s-icon-button/s-icon-button.js";
|
|
13
|
+
import { placementOrigins as p } from "./s-popover/placement.js";
|
|
14
|
+
import { r as m, t as h } from "./MenuItem-Ck30dBOR.js";
|
|
15
|
+
import * as g from "react";
|
|
16
|
+
import _, { createElement as v } from "react";
|
|
17
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
18
|
+
import { useTranslation as x } from "react-i18next";
|
|
19
|
+
//#region ../../node_modules/@mui/material/ListItemIcon/ListItemIcon.mjs
|
|
20
|
+
var S = /* @__PURE__ */ e(t(), 1), C = (e) => {
|
|
21
|
+
let { alignItems: t, classes: r } = e;
|
|
22
|
+
return n({ root: ["root", t === "flex-start" && "alignItemsFlexStart"] }, m, r);
|
|
23
|
+
}, w = a("div", {
|
|
24
|
+
name: "MuiListItemIcon",
|
|
25
|
+
slot: "Root",
|
|
26
|
+
overridesResolver: (e, t) => {
|
|
27
|
+
let { ownerState: n } = e;
|
|
28
|
+
return [t.root, n.alignItems === "flex-start" && t.alignItemsFlexStart];
|
|
29
|
+
}
|
|
30
|
+
})(s(({ theme: e }) => ({
|
|
31
|
+
minWidth: e.spacing(4.5),
|
|
32
|
+
color: (e.vars || e).palette.action.active,
|
|
33
|
+
flexShrink: 0,
|
|
34
|
+
display: "inline-flex",
|
|
35
|
+
variants: [{
|
|
36
|
+
props: { alignItems: "flex-start" },
|
|
37
|
+
style: { marginTop: 8 }
|
|
38
|
+
}]
|
|
39
|
+
}))), T = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
40
|
+
let n = r({
|
|
41
|
+
props: e,
|
|
42
|
+
name: "MuiListItemIcon"
|
|
43
|
+
}), { className: a, ...o } = n, s = g.useContext(l), c = {
|
|
44
|
+
...n,
|
|
45
|
+
alignItems: s.alignItems
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ y(w, {
|
|
48
|
+
className: i(C(c).root, a),
|
|
49
|
+
ownerState: c,
|
|
50
|
+
ref: t,
|
|
51
|
+
...o
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
55
|
+
children: S.default.node,
|
|
56
|
+
classes: S.default.object,
|
|
57
|
+
className: S.default.string,
|
|
58
|
+
sx: S.default.oneOfType([
|
|
59
|
+
S.default.arrayOf(S.default.oneOfType([
|
|
60
|
+
S.default.func,
|
|
61
|
+
S.default.object,
|
|
62
|
+
S.default.bool
|
|
63
|
+
])),
|
|
64
|
+
S.default.func,
|
|
65
|
+
S.default.object
|
|
66
|
+
])
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region ../../node_modules/react-country-flag/dist/react-country-flag.esm.js
|
|
70
|
+
function E() {
|
|
71
|
+
return E = Object.assign ? Object.assign.bind() : function(e) {
|
|
72
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
73
|
+
var n = arguments[t];
|
|
74
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
75
|
+
}
|
|
76
|
+
return e;
|
|
77
|
+
}, E.apply(this, arguments);
|
|
78
|
+
}
|
|
79
|
+
function D(e, t) {
|
|
80
|
+
if (e == null) return {};
|
|
81
|
+
var n = {}, r = Object.keys(e), i, a;
|
|
82
|
+
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
var O = [
|
|
86
|
+
"cdnSuffix",
|
|
87
|
+
"cdnUrl",
|
|
88
|
+
"countryCode",
|
|
89
|
+
"style",
|
|
90
|
+
"svg"
|
|
91
|
+
], k = "https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/", A = "svg", j = 127397, M = function(e) {
|
|
92
|
+
var t = e.cdnSuffix, n = t === void 0 ? A : t, r = e.cdnUrl, i = r === void 0 ? k : r, a = e.countryCode, o = e.style, s = e.svg, c = s === void 0 ? !1 : s, l = D(e, O);
|
|
93
|
+
if (typeof a != "string") return null;
|
|
94
|
+
if (c) {
|
|
95
|
+
var u = "" + i + a.toLowerCase() + "." + n;
|
|
96
|
+
return v("img", Object.assign({}, l, {
|
|
97
|
+
src: u,
|
|
98
|
+
style: E({
|
|
99
|
+
display: "inline-block",
|
|
100
|
+
width: "1em",
|
|
101
|
+
height: "1em",
|
|
102
|
+
verticalAlign: "middle"
|
|
103
|
+
}, o)
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
var d = a.toUpperCase().replace(/./g, function(e) {
|
|
107
|
+
return String.fromCodePoint(e.charCodeAt(0) + j);
|
|
108
|
+
});
|
|
109
|
+
return v("span", Object.assign({ role: "img" }, l, { style: E({
|
|
110
|
+
display: "inline-block",
|
|
111
|
+
fontSize: "1em",
|
|
112
|
+
lineHeight: "1em",
|
|
113
|
+
verticalAlign: "middle"
|
|
114
|
+
}, o) }), d);
|
|
115
|
+
}, N = 16, P = 20, F = [{
|
|
116
|
+
code: "en",
|
|
117
|
+
label: "English",
|
|
118
|
+
countryCode: "GB"
|
|
119
|
+
}, {
|
|
120
|
+
code: "vi",
|
|
121
|
+
label: "Vietnamese",
|
|
122
|
+
countryCode: "VN"
|
|
123
|
+
}], I = a(u, {
|
|
124
|
+
name: "SLanguagePopover",
|
|
125
|
+
slot: "Root"
|
|
126
|
+
})({}), L = _.forwardRef(function(e, t) {
|
|
127
|
+
let n = o({
|
|
128
|
+
props: e,
|
|
129
|
+
name: "SLanguagePopover"
|
|
130
|
+
}), { anchorOrigin: r = p["bottom-end"].anchorOrigin, currentLanguage: i, languages: a = F, menuId: s, menuLabelledBy: l, menuWidth: u = "220px", onLanguageChange: f, slotProps: m, transformOrigin: g = p["bottom-end"].transformOrigin, variant: _ = "selectedMenu", ...v } = n, x = {
|
|
131
|
+
...n,
|
|
132
|
+
anchorOrigin: r,
|
|
133
|
+
currentLanguage: i,
|
|
134
|
+
languages: a,
|
|
135
|
+
menuId: s,
|
|
136
|
+
menuLabelledBy: l,
|
|
137
|
+
menuWidth: u,
|
|
138
|
+
onLanguageChange: f,
|
|
139
|
+
open: v.open,
|
|
140
|
+
slotProps: m,
|
|
141
|
+
transformOrigin: g,
|
|
142
|
+
variant: _
|
|
143
|
+
};
|
|
144
|
+
return /* @__PURE__ */ y(I, {
|
|
145
|
+
...v,
|
|
146
|
+
ref: t,
|
|
147
|
+
anchorOrigin: r,
|
|
148
|
+
ownerState: x,
|
|
149
|
+
slotProps: {
|
|
150
|
+
...m,
|
|
151
|
+
paper: c(m?.paper, { sx: { minWidth: u } }),
|
|
152
|
+
list: c(m?.list, {
|
|
153
|
+
id: s,
|
|
154
|
+
"aria-labelledby": l
|
|
155
|
+
})
|
|
156
|
+
},
|
|
157
|
+
transformOrigin: g,
|
|
158
|
+
variant: _,
|
|
159
|
+
children: a.map((e) => /* @__PURE__ */ b(h, {
|
|
160
|
+
onClick: (t) => {
|
|
161
|
+
f?.(t, e.code);
|
|
162
|
+
},
|
|
163
|
+
selected: i === e.code,
|
|
164
|
+
children: [/* @__PURE__ */ y(T, { children: /* @__PURE__ */ y(M, {
|
|
165
|
+
alt: "",
|
|
166
|
+
"aria-hidden": "true",
|
|
167
|
+
countryCode: e.countryCode,
|
|
168
|
+
svg: !0,
|
|
169
|
+
style: {
|
|
170
|
+
width: P,
|
|
171
|
+
height: P
|
|
172
|
+
}
|
|
173
|
+
}) }), /* @__PURE__ */ y(d, {
|
|
174
|
+
variant: "subtitle2",
|
|
175
|
+
children: e.label
|
|
176
|
+
})]
|
|
177
|
+
}, e.code))
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
L.displayName = "SLanguagePopover";
|
|
181
|
+
var R = a(f, {
|
|
182
|
+
name: "SLanguageSwitcher",
|
|
183
|
+
slot: "Root"
|
|
184
|
+
})({}), z = _.forwardRef(function(e, t) {
|
|
185
|
+
let n = o({
|
|
186
|
+
props: e,
|
|
187
|
+
name: "SLanguageSwitcher"
|
|
188
|
+
}), { "aria-label": r, languages: i = F, onLanguageChange: a, currentLanguage: s, tooltip: c, buttonFlagSize: l = N, menuWidth: u = "220px", onClick: d, useI18n: f = !0, ...p } = n, m = x(), h = f ? m.t : null, g = f ? m.i18n : null, [v, S] = _.useState(null), C = _.useId(), w = _.useId(), T = p.id ?? C, E = !!v, D = s ?? g?.language ?? i[0]?.code ?? "en", O = i.find((e) => e.code === D) || i[0], k = _.useCallback((e) => {
|
|
189
|
+
d?.(e), e.defaultPrevented || S(e.currentTarget);
|
|
190
|
+
}, [d]), A = _.useCallback(() => {
|
|
191
|
+
S(null);
|
|
192
|
+
}, []), j = _.useCallback((e, t) => {
|
|
193
|
+
a ? a(e, t) : g && g.changeLanguage(t), e.defaultPrevented || A();
|
|
194
|
+
}, [
|
|
195
|
+
A,
|
|
196
|
+
g,
|
|
197
|
+
a
|
|
198
|
+
]), P = c ?? (h ? h("header:language.tooltip") : "Change language"), I = {
|
|
199
|
+
...n,
|
|
200
|
+
"aria-label": r ?? (typeof P == "string" ? P : "Change language"),
|
|
201
|
+
buttonFlagSize: l,
|
|
202
|
+
currentLanguage: D,
|
|
203
|
+
languages: i,
|
|
204
|
+
menuWidth: u,
|
|
205
|
+
onClick: d,
|
|
206
|
+
onLanguageChange: a,
|
|
207
|
+
open: E,
|
|
208
|
+
tooltip: P,
|
|
209
|
+
useI18n: f
|
|
210
|
+
};
|
|
211
|
+
return /* @__PURE__ */ b(_.Fragment, { children: [/* @__PURE__ */ y(R, {
|
|
212
|
+
...p,
|
|
213
|
+
ref: t,
|
|
214
|
+
id: T,
|
|
215
|
+
"aria-controls": E ? w : void 0,
|
|
216
|
+
"aria-expanded": E || void 0,
|
|
217
|
+
"aria-haspopup": "menu",
|
|
218
|
+
"aria-label": r ?? (typeof P == "string" ? P : "Change language"),
|
|
219
|
+
onClick: k,
|
|
220
|
+
ownerState: I,
|
|
221
|
+
tooltip: P,
|
|
222
|
+
children: /* @__PURE__ */ y(M, {
|
|
223
|
+
alt: "",
|
|
224
|
+
"aria-hidden": "true",
|
|
225
|
+
countryCode: O?.countryCode || "US",
|
|
226
|
+
svg: !0,
|
|
227
|
+
style: {
|
|
228
|
+
width: l,
|
|
229
|
+
height: l
|
|
230
|
+
}
|
|
231
|
+
})
|
|
232
|
+
}), /* @__PURE__ */ y(L, {
|
|
233
|
+
anchorEl: v,
|
|
234
|
+
menuId: w,
|
|
235
|
+
menuLabelledBy: T,
|
|
236
|
+
onClose: A,
|
|
237
|
+
open: E,
|
|
238
|
+
onLanguageChange: j,
|
|
239
|
+
languages: i,
|
|
240
|
+
currentLanguage: D,
|
|
241
|
+
menuWidth: u
|
|
242
|
+
})] });
|
|
243
|
+
});
|
|
244
|
+
z.displayName = "SLanguageSwitcher";
|
|
245
|
+
//#endregion
|
|
246
|
+
export { z as n, F as r, L as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
-
import { t } from "../useForkRef-
|
|
3
|
-
import { t as n } from "../mergeSlotProps-
|
|
2
|
+
import { t } from "../useForkRef-BuNFTXxE.js";
|
|
3
|
+
import { t as n } from "../mergeSlotProps-DC8r4QzS.js";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { Box as o, Skeleton as s, styled as c, useTheme as l, useThemeProps as u } from "@mui/material";
|
package/dist/s-link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-link-
|
|
1
|
+
import { t as e } from "../s-link-Db1aabHh.js";
|
|
2
2
|
export { e as SLink, e as default };
|
package/dist/s-link/s-link.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-link-
|
|
1
|
+
import { t as e } from "../s-link-Db1aabHh.js";
|
|
2
2
|
export { e as SLink, e as default };
|
|
@@ -9,10 +9,11 @@ import { t as c } from "./generateUtilityClasses-DvX505Gy.js";
|
|
|
9
9
|
import { t as l } from "./styled-Bog8QCl3.js";
|
|
10
10
|
import { t as u } from "./memoTheme-qFyKAk7y.js";
|
|
11
11
|
import { t as d } from "./useTheme-BIWMbX3i.js";
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
12
|
+
import { t as f } from "./elementTypeAcceptingRef-xl_04Y5-.js";
|
|
13
|
+
import { t as p } from "./isFocusVisible-4OIE8TST.js";
|
|
14
|
+
import { t as m } from "./capitalize-C0baBJCm.js";
|
|
15
|
+
import { t as h } from "./createSimplePaletteValueFilter-DFvyXHoZ.js";
|
|
16
|
+
import { t as g } from "./Typography-_P0svrkO.js";
|
|
16
17
|
import * as _ from "react";
|
|
17
18
|
import { jsx as v } from "react/jsx-runtime";
|
|
18
19
|
//#region ../../node_modules/@mui/material/Link/linkClasses.mjs
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BoxProps, ListItemButtonProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
/** Row shape: `plain` spans the full width, `inset` is inset and rounded for popover menus. */
|
|
5
|
+
export type SListActionItemVariant = 'inset' | 'plain';
|
|
6
|
+
export interface SListActionItemSlots {
|
|
7
|
+
/** Secondary text element. */
|
|
8
|
+
description?: React.ElementType;
|
|
9
|
+
/** Leading icon container. */
|
|
10
|
+
icon?: React.ElementType;
|
|
11
|
+
/** Primary label element. */
|
|
12
|
+
label?: React.ElementType;
|
|
13
|
+
/** Interactive row element. */
|
|
14
|
+
root?: React.ElementType;
|
|
15
|
+
/** Column wrapping label and description. */
|
|
16
|
+
text?: React.ElementType;
|
|
17
|
+
/** Trailing content container. */
|
|
18
|
+
trailing?: React.ElementType;
|
|
19
|
+
}
|
|
20
|
+
type OwnerStateSlotProps<Props> = MuiOwnerStateSlotProps<Props, SListActionItemOwnerState>;
|
|
21
|
+
/**
|
|
22
|
+
* Root slot props, widened with the anchor attributes the row forwards when
|
|
23
|
+
* `href` is set — `ListItemButtonProps` on its own describes a `div`.
|
|
24
|
+
*/
|
|
25
|
+
export type SListActionItemRootSlotProps = Omit<ListItemButtonProps, 'children' | 'component'> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'rel' | 'target'>;
|
|
26
|
+
export interface SListActionItemSlotProps {
|
|
27
|
+
/** Props or owner-state callback for the description slot. */
|
|
28
|
+
description?: OwnerStateSlotProps<TypographyProps>;
|
|
29
|
+
/** Props or owner-state callback for the icon slot. */
|
|
30
|
+
icon?: OwnerStateSlotProps<BoxProps>;
|
|
31
|
+
/** Props or owner-state callback for the label slot. */
|
|
32
|
+
label?: OwnerStateSlotProps<TypographyProps>;
|
|
33
|
+
/** Props or owner-state callback for the root slot. */
|
|
34
|
+
root?: OwnerStateSlotProps<SListActionItemRootSlotProps>;
|
|
35
|
+
/** Props or owner-state callback for the text column slot. */
|
|
36
|
+
text?: OwnerStateSlotProps<BoxProps>;
|
|
37
|
+
/** Props or owner-state callback for the trailing slot. */
|
|
38
|
+
trailing?: OwnerStateSlotProps<BoxProps>;
|
|
39
|
+
}
|
|
40
|
+
/** Props for a list action row with button or link semantics. */
|
|
41
|
+
export interface SListActionItemProps extends Omit<ListItemButtonProps, 'children' | 'component' | 'dense' | 'disabled' | 'onClick' | 'selected' | 'title'> {
|
|
42
|
+
/** Root element override. Defaults to `a` when `href` is set, otherwise `button`. */
|
|
43
|
+
component?: React.ElementType;
|
|
44
|
+
/** Uses compact vertical padding. */
|
|
45
|
+
dense?: boolean;
|
|
46
|
+
/** Secondary text rendered under the label. */
|
|
47
|
+
description?: React.ReactNode;
|
|
48
|
+
/** Disables activation and exposes the disabled state to assistive technology. */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** Link destination. When set, the row renders with anchor semantics. */
|
|
51
|
+
href?: string;
|
|
52
|
+
/** Leading content, usually an icon. */
|
|
53
|
+
icon?: React.ReactNode;
|
|
54
|
+
/** Primary label. */
|
|
55
|
+
label: React.ReactNode;
|
|
56
|
+
/** Called when the row is activated. Receives the original mouse event. */
|
|
57
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
58
|
+
/** Anchor relationship, forwarded when the row renders as a link. */
|
|
59
|
+
rel?: string;
|
|
60
|
+
/** Marks the row as the current selection, and sets `aria-current="page"`. */
|
|
61
|
+
selected?: boolean;
|
|
62
|
+
/** Components used for internal structural slots. */
|
|
63
|
+
slots?: SListActionItemSlots;
|
|
64
|
+
/** Props or owner-state callbacks for internal structural slots. */
|
|
65
|
+
slotProps?: SListActionItemSlotProps;
|
|
66
|
+
/** Anchor target, forwarded when the row renders as a link. */
|
|
67
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
68
|
+
/** Trailing content, e.g. a check mark or shortcut hint. */
|
|
69
|
+
trailing?: React.ReactNode;
|
|
70
|
+
/** Row shape. `inset` adds side margins and a rounded corner for popover menus. */
|
|
71
|
+
variant?: SListActionItemVariant;
|
|
72
|
+
}
|
|
73
|
+
export interface SListActionItemOwnerState extends SListActionItemProps {
|
|
74
|
+
dense: boolean;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
hasDescription: boolean;
|
|
77
|
+
selected: boolean;
|
|
78
|
+
variant: SListActionItemVariant;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A single interactive row for menus, settings lists and popovers.
|
|
82
|
+
*
|
|
83
|
+
* Semantics follow the props rather than a flag: the row is a native `button`
|
|
84
|
+
* until `href` is set, at which point it becomes an anchor. Leading `icon`,
|
|
85
|
+
* `description` and `trailing` content are optional, and every structural
|
|
86
|
+
* element is swappable through `slots` / `slotProps`.
|
|
87
|
+
*/
|
|
88
|
+
export declare const SListActionItem: React.ForwardRefExoticComponent<Omit<SListActionItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
89
|
+
export default SListActionItem;
|