@solostylist/ui-kit 2.0.2 → 2.0.4
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/{gradients-mQAYCK0_.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-B1FcGUYs.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-animated-gradient-text/s-animated-gradient-text.js +18 -19
- package/dist/s-announcement-bar/s-announcement-bar.js +50 -53
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +186 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-drawer/index.js +1 -1
- package/dist/s-drawer/s-drawer.js +139 -2
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +23 -24
- package/dist/s-icon-button/s-icon-button.js +13 -14
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-interactive-card/s-interactive-card.js +39 -41
- package/dist/s-label/s-label.js +25 -26
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +145 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-list-action-item/s-list-action-item.js +38 -39
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-mega-menu/mega-menu-panel.js +132 -134
- package/dist/s-mega-menu/mega-menu-trigger.js +49 -2
- package/dist/s-mega-menu/s-mega-menu.js +80 -83
- package/dist/s-mobile-dock/index.js +1 -1
- package/dist/s-mobile-dock/s-mobile-dock.js +145 -2
- package/dist/s-nav-item/s-nav-item.js +19 -20
- package/dist/s-nav-items/s-nav-items.js +51 -52
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-number-range/index.js +1 -1
- package/dist/s-number-range/s-number-range.js +250 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-popover/s-popover-content.js +11 -12
- package/dist/s-popover/s-popover.js +22 -24
- package/dist/s-product-card/s-product-card.js +177 -180
- package/dist/s-product-gallery/index.js +1 -1
- package/dist/s-product-gallery/s-product-gallery.js +427 -2
- package/dist/s-quantity-input/s-quantity-input.js +24 -24
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-segmented-control/s-segmented-control.js +64 -68
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +12 -13
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stepper/index.js +1 -1
- package/dist/s-stepper/s-stepper.js +102 -2
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-swatch/s-swatch.js +34 -35
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +213 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/drawer.js +1 -1
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-CXtaMdVj.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +8 -3
- package/dist/Add-CEnTWsXs.js +0 -6
- package/dist/ArrowUpward-udL1ltj2.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DaLr1m20.js +0 -534
- package/dist/ButtonBase-DovDC6-1.js +0 -700
- package/dist/Checkbox-C-Xjbzzh.js +0 -152
- package/dist/ChevronRight-DsPfsFKB.js +0 -6
- package/dist/Close-CIYOM-Sc.js +0 -6
- package/dist/Collapse-DPUr1cbP.js +0 -266
- package/dist/ContentCopy-Hlh3azVb.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-b3xbJVC6.js +0 -450
- package/dist/Download-D9PkFi7a.js +0 -6
- package/dist/ExpandMore-sOgvEha9.js +0 -6
- package/dist/Favorite-BP343hjM.js +0 -6
- package/dist/FavoriteBorder-D15j9xEL.js +0 -6
- package/dist/FormControl-DwMfZCiz.js +0 -215
- package/dist/FormControlLabel-Ihga1FTB.js +0 -173
- package/dist/Grow-BQR7x52V.js +0 -121
- package/dist/IconButton-CE-4GamO.js +0 -448
- package/dist/InfoOutlined-lpvhO6P8.js +0 -6
- package/dist/List-RNcZhRdr.js +0 -105
- package/dist/Menu-CnyB4SDS.js +0 -180
- package/dist/MenuItem-Ck30dBOR.js +0 -224
- package/dist/MenuList-Cc98uWXq.js +0 -160
- package/dist/Modal-CD2EBfU8.js +0 -702
- package/dist/Paper-_3qggtBp.js +0 -115
- package/dist/Popover-BFdKSYI5.js +0 -340
- package/dist/Popper-DYNAMSDd.js +0 -1351
- package/dist/Portal-i_wgIe9-.js +0 -49
- package/dist/Remove-DDEn8ek8.js +0 -6
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-C0LGzM4c.js +0 -158
- package/dist/SwitchBase-CjWtDdmE.js +0 -198
- package/dist/Tooltip-B1sn94L0.js +0 -448
- package/dist/Typography-_P0svrkO.js +0 -168
- package/dist/UnfoldMoreRounded-CuCrdxoy.js +0 -6
- package/dist/appendOwnerState-CFQTq3pb.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-BgARERpp.js +0 -43
- package/dist/avatar-XNOdbbRz.js +0 -10
- package/dist/buttonBaseClasses-B90LjsNK.js +0 -13
- package/dist/capitalize-C0baBJCm.js +0 -5
- package/dist/chainPropTypes-CkMRtDjQ.js +0 -8
- package/dist/checkbox-D1U_JKqs.js +0 -88
- package/dist/checkboxClasses-B1up2lUn.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-DnqPQsQU.js +0 -16
- package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +0 -14
- package/dist/createSvgIcon-3y-gS0r1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-pKEY6jPR.js +0 -25
- package/dist/elementTypeAcceptingRef-xl_04Y5-.js +0 -19
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/extends-DXMyyJCW.js +0 -12
- package/dist/field-label-styles-4praXMaE.js +0 -50
- package/dist/formLabelClasses-AuZHWfTs.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/getActiveElement-BfBkhgy6.js +0 -8
- package/dist/iconButtonClasses-CVVRFXRo.js +0 -27
- package/dist/inputAdornmentClasses-BbB8s-Z4.js +0 -19
- package/dist/inputBaseClasses-Ce_jjdp9.js +0 -25
- package/dist/integerPropType-CCkQD1JY.js +0 -27
- package/dist/isEventHandler-QShLXBxE.js +0 -7
- package/dist/isFocusVisible-4OIE8TST.js +0 -11
- package/dist/isLayoutSupported-Btg2X3QE.js +0 -6
- package/dist/isMuiElement-CPjhi284.js +0 -10
- package/dist/mega-menu-trigger-BcOo8I5_.js +0 -53
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-DC8r4QzS.js +0 -45
- package/dist/monthCalendarClasses-b964KRbc.js +0 -14
- package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +0 -12
- package/dist/outlinedInputClasses-ci1zDasn.js +0 -17
- package/dist/ownerDocument-CJjQZweZ.js +0 -6
- package/dist/ownerDocument-pYjJiXem.js +0 -5
- package/dist/ownerWindow-SSeeoqPT.js +0 -18
- package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/refType-j5S9pc_e.js +0 -6
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-1oLxQhod.js +0 -487
- package/dist/s-carousel-CAyAl3ka.js +0 -1355
- package/dist/s-chat-input-T3gyan60.js +0 -419
- package/dist/s-chat-message-NFTpNgt5.js +0 -315
- package/dist/s-chips-Dqq1fgz-.js +0 -176
- package/dist/s-code-block-DyDtctGG.js +0 -658
- package/dist/s-comment-message-DpCVBKiE.js +0 -192
- package/dist/s-data-table-D4V58HFR.js +0 -805
- package/dist/s-date-picker-BFIQOA8C.js +0 -657
- package/dist/s-datetime-picker-zfg7BEOW.js +0 -3886
- package/dist/s-dialog-BNlXsVVP.js +0 -123
- package/dist/s-drawer-4h5ZyoM8.js +0 -562
- package/dist/s-file-dropzone-Cfzv1Cm8.js +0 -422
- package/dist/s-image-viewer-CjK67-rs.js +0 -269
- package/dist/s-language-switcher-PaMgHWc2.js +0 -246
- package/dist/s-link-Db1aabHh.js +0 -235
- package/dist/s-localization-provider-CeyB_SGz.js +0 -519
- package/dist/s-mobile-dock-8F3UWAb8.js +0 -615
- package/dist/s-no-ssr-DH57_uP_.js +0 -25
- package/dist/s-number-range-Low5QjuD.js +0 -253
- package/dist/s-pagination-s46hBifh.js +0 -606
- package/dist/s-product-gallery-Dj9eGg5i.js +0 -430
- package/dist/s-review--Q2C0ngO.js +0 -272
- package/dist/s-select-CtVKEOZ5.js +0 -204
- package/dist/s-snackbar-message-DsfJlDYd.js +0 -810
- package/dist/s-stepper-BtODHVro.js +0 -892
- package/dist/s-switch-BCeBoxWf.js +0 -307
- package/dist/s-text-editor-toolbar-D5eQ-jCs.js +0 -2124
- package/dist/s-text-field-HYyDf1Jo.js +0 -51
- package/dist/s-theme-switch-BFWpADh3.js +0 -60
- package/dist/s-tip-jbL7vtoU.js +0 -62
- package/dist/selectClasses-CPxME5jE.js +0 -22
- package/dist/setRef-BWPyWnrr.js +0 -6
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-1kWGzgux.js +0 -20
- package/dist/switchClasses-BtweO7PC.js +0 -23
- package/dist/theme-demo-components-section-C7l_2KAo.js +0 -267
- package/dist/toggle-button-BsGb-tOr.js +0 -104
- package/dist/tool-bar-action-buttons-v1koaasr.js +0 -54
- package/dist/tool-bar-image-input-DtXTyEe1.js +0 -148
- package/dist/typographyClasses-BH_-zLwg.js +0 -31
- package/dist/unsupportedProp-whMV_uOi.js +0 -11
- package/dist/useControlled-DqNPBJNp.js +0 -5
- package/dist/useControlled-uxVKygk1.js +0 -29
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEnhancedEffect-dBFfkm1e.js +0 -5
- package/dist/useEventCallback-DGCsaRIu.js +0 -5
- package/dist/useEventCallback-DhCPBxRG.js +0 -11
- package/dist/useForkRef-BuNFTXxE.js +0 -29
- package/dist/useFormControl-gXwNeUM1.js +0 -18
- package/dist/useMobilePicker-CdrT935R.js +0 -7584
- package/dist/useRovingTabIndex-DPlW997R.js +0 -242
- package/dist/useSlot-BG8ReOxN.js +0 -83
- package/dist/useSlotProps-BOO3qaI9.js +0 -16
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-Dw9dmKyT.js +0 -29
- package/dist/useTimeout-CoK-Khfm.js +0 -49
- package/dist/utils-Bfqbev5I.js +0 -248
- package/dist/warning-D5YhCbje.js +0 -99
- package/dist/yearCalendarClasses-D9k_KT38.js +0 -14
- /package/dist/{colors-Bik9qOU9.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-D7Jovf5K.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DOY6v6ln.js → utils-CMeAWSRO.js} +0 -0
package/dist/Paper-_3qggtBp.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-C_CI6nMA.js";
|
|
2
|
-
import { t } from "./colorManipulator-DmUjcif3.js";
|
|
3
|
-
import { t as n } from "./prop-types-BzYPyWN7.js";
|
|
4
|
-
import { r, t as i } from "./DefaultPropsProvider-ebWx4_5E.js";
|
|
5
|
-
import { n as a } from "./createTheme-xB2Em0Na.js";
|
|
6
|
-
import { t as o } from "./generateUtilityClass-PAIOm1jC.js";
|
|
7
|
-
import { t as s } from "./clsx-DGZSe4Nt.js";
|
|
8
|
-
import { t as c } from "./generateUtilityClasses-DvX505Gy.js";
|
|
9
|
-
import { t as l } from "./styled-Bog8QCl3.js";
|
|
10
|
-
import { t as u } from "./memoTheme-qFyKAk7y.js";
|
|
11
|
-
import { t as d } from "./useTheme-BIWMbX3i.js";
|
|
12
|
-
import { t as f } from "./chainPropTypes-CkMRtDjQ.js";
|
|
13
|
-
import { t as p } from "./integerPropType-CCkQD1JY.js";
|
|
14
|
-
import * as m from "react";
|
|
15
|
-
import { jsx as h } from "react/jsx-runtime";
|
|
16
|
-
//#region ../../node_modules/@mui/material/Paper/paperClasses.mjs
|
|
17
|
-
var g = /* @__PURE__ */ e(n(), 1);
|
|
18
|
-
function _(e) {
|
|
19
|
-
return o("MuiPaper", e);
|
|
20
|
-
}
|
|
21
|
-
c("MuiPaper", /* @__PURE__ */ "root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region ../../node_modules/@mui/material/Paper/Paper.mjs
|
|
24
|
-
var v = (e) => {
|
|
25
|
-
let { square: t, elevation: n, variant: i, classes: a } = e;
|
|
26
|
-
return r({ root: [
|
|
27
|
-
"root",
|
|
28
|
-
i,
|
|
29
|
-
!t && "rounded",
|
|
30
|
-
i === "elevation" && `elevation${n}`
|
|
31
|
-
] }, _, a);
|
|
32
|
-
}, y = l("div", {
|
|
33
|
-
name: "MuiPaper",
|
|
34
|
-
slot: "Root",
|
|
35
|
-
overridesResolver: (e, t) => {
|
|
36
|
-
let { ownerState: n } = e;
|
|
37
|
-
return [
|
|
38
|
-
t.root,
|
|
39
|
-
t[n.variant],
|
|
40
|
-
!n.square && t.rounded,
|
|
41
|
-
n.variant === "elevation" && t[`elevation${n.elevation}`]
|
|
42
|
-
];
|
|
43
|
-
}
|
|
44
|
-
})(u(({ theme: e }) => ({
|
|
45
|
-
backgroundColor: (e.vars || e).palette.background.paper,
|
|
46
|
-
color: (e.vars || e).palette.text.primary,
|
|
47
|
-
transition: e.transitions.create("box-shadow"),
|
|
48
|
-
variants: [
|
|
49
|
-
{
|
|
50
|
-
props: ({ ownerState: e }) => !e.square,
|
|
51
|
-
style: { borderRadius: e.shape.borderRadius }
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
props: { variant: "outlined" },
|
|
55
|
-
style: { border: `1px solid ${(e.vars || e).palette.divider}` }
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
props: { variant: "elevation" },
|
|
59
|
-
style: {
|
|
60
|
-
boxShadow: "var(--Paper-shadow)",
|
|
61
|
-
backgroundImage: "var(--Paper-overlay)"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}))), b = /* @__PURE__ */ m.forwardRef(function(e, n) {
|
|
66
|
-
let r = i({
|
|
67
|
-
props: e,
|
|
68
|
-
name: "MuiPaper"
|
|
69
|
-
}), o = d(), { className: c, component: l = "div", elevation: u = 1, square: f = !1, variant: p = "elevation", ...m } = r, g = {
|
|
70
|
-
...r,
|
|
71
|
-
component: l,
|
|
72
|
-
elevation: u,
|
|
73
|
-
square: f,
|
|
74
|
-
variant: p
|
|
75
|
-
}, _ = v(g);
|
|
76
|
-
return process.env.NODE_ENV !== "production" && o.shadows[u] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${u}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${u}]\` is defined.`].join("\n")), /* @__PURE__ */ h(y, {
|
|
77
|
-
as: l,
|
|
78
|
-
ownerState: g,
|
|
79
|
-
className: s(_.root, c),
|
|
80
|
-
ref: n,
|
|
81
|
-
...m,
|
|
82
|
-
style: {
|
|
83
|
-
...p === "elevation" && {
|
|
84
|
-
"--Paper-shadow": (o.vars || o).shadows[u],
|
|
85
|
-
...o.vars && { "--Paper-overlay": o.vars.overlays?.[u] },
|
|
86
|
-
...!o.vars && o.palette.mode === "dark" && { "--Paper-overlay": `linear-gradient(${t("#fff", a(u))}, ${t("#fff", a(u))})` }
|
|
87
|
-
},
|
|
88
|
-
...m.style
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
93
|
-
children: g.default.node,
|
|
94
|
-
classes: g.default.object,
|
|
95
|
-
className: g.default.string,
|
|
96
|
-
component: g.default.elementType,
|
|
97
|
-
elevation: f(p, (e) => {
|
|
98
|
-
let { elevation: t, variant: n } = e;
|
|
99
|
-
return t > 0 && n === "outlined" ? /* @__PURE__ */ Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
100
|
-
}),
|
|
101
|
-
square: g.default.bool,
|
|
102
|
-
style: g.default.object,
|
|
103
|
-
sx: g.default.oneOfType([
|
|
104
|
-
g.default.arrayOf(g.default.oneOfType([
|
|
105
|
-
g.default.func,
|
|
106
|
-
g.default.object,
|
|
107
|
-
g.default.bool
|
|
108
|
-
])),
|
|
109
|
-
g.default.func,
|
|
110
|
-
g.default.object
|
|
111
|
-
]),
|
|
112
|
-
variant: g.default.oneOfType([g.default.oneOf(["elevation", "outlined"]), g.default.string])
|
|
113
|
-
});
|
|
114
|
-
//#endregion
|
|
115
|
-
export { b as t };
|
package/dist/Popover-BFdKSYI5.js
DELETED
|
@@ -1,340 +0,0 @@
|
|
|
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 "./generateUtilityClass-PAIOm1jC.js";
|
|
5
|
-
import { t as a } from "./clsx-DGZSe4Nt.js";
|
|
6
|
-
import { t as o } from "./generateUtilityClasses-DvX505Gy.js";
|
|
7
|
-
import { t as s } from "./styled-Bog8QCl3.js";
|
|
8
|
-
import { t as c } from "./refType-j5S9pc_e.js";
|
|
9
|
-
import { t as l } from "./chainPropTypes-CkMRtDjQ.js";
|
|
10
|
-
import { n as u } from "./appendOwnerState-CFQTq3pb.js";
|
|
11
|
-
import { t as d } from "./useSlot-BG8ReOxN.js";
|
|
12
|
-
import { t as f } from "./Modal-CD2EBfU8.js";
|
|
13
|
-
import { n as p, t as m } from "./ownerWindow-SSeeoqPT.js";
|
|
14
|
-
import { t as h } from "./ownerDocument-pYjJiXem.js";
|
|
15
|
-
import { t as g } from "./mergeSlotProps-DC8r4QzS.js";
|
|
16
|
-
import { n as _ } from "./Portal-i_wgIe9-.js";
|
|
17
|
-
import { t as v } from "./integerPropType-CCkQD1JY.js";
|
|
18
|
-
import { t as y } from "./isLayoutSupported-Btg2X3QE.js";
|
|
19
|
-
import { t as b } from "./Grow-BQR7x52V.js";
|
|
20
|
-
import { t as x } from "./Paper-_3qggtBp.js";
|
|
21
|
-
import * as S from "react";
|
|
22
|
-
import { jsx as C } from "react/jsx-runtime";
|
|
23
|
-
//#region ../../node_modules/@mui/material/Popover/popoverClasses.mjs
|
|
24
|
-
var w = /* @__PURE__ */ e(t(), 1);
|
|
25
|
-
function T(e) {
|
|
26
|
-
return i("MuiPopover", e);
|
|
27
|
-
}
|
|
28
|
-
o("MuiPopover", ["root", "paper"]);
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/@mui/material/Popover/Popover.mjs
|
|
31
|
-
function E(e, t) {
|
|
32
|
-
let n = 0;
|
|
33
|
-
return typeof t == "number" ? n = t : t === "center" ? n = e.height / 2 : t === "bottom" && (n = e.height), n;
|
|
34
|
-
}
|
|
35
|
-
function D(e, t) {
|
|
36
|
-
let n = 0;
|
|
37
|
-
return typeof t == "number" ? n = t : t === "center" ? n = e.width / 2 : t === "right" && (n = e.width), n;
|
|
38
|
-
}
|
|
39
|
-
function O(e) {
|
|
40
|
-
return [e.horizontal, e.vertical].map((e) => typeof e == "number" ? `${e}px` : e).join(" ");
|
|
41
|
-
}
|
|
42
|
-
function k(e) {
|
|
43
|
-
return typeof e == "function" ? e() : e;
|
|
44
|
-
}
|
|
45
|
-
var A = (e) => {
|
|
46
|
-
let { classes: t } = e;
|
|
47
|
-
return n({
|
|
48
|
-
root: ["root"],
|
|
49
|
-
paper: ["paper"]
|
|
50
|
-
}, T, t);
|
|
51
|
-
}, j = s(f, {
|
|
52
|
-
name: "MuiPopover",
|
|
53
|
-
slot: "Root"
|
|
54
|
-
})({}), M = s(x, {
|
|
55
|
-
name: "MuiPopover",
|
|
56
|
-
slot: "Paper"
|
|
57
|
-
})({
|
|
58
|
-
position: "absolute",
|
|
59
|
-
overflowY: "auto",
|
|
60
|
-
overflowX: "hidden",
|
|
61
|
-
minWidth: 16,
|
|
62
|
-
minHeight: 16,
|
|
63
|
-
maxWidth: "calc(100% - 32px)",
|
|
64
|
-
maxHeight: "calc(100% - 32px)",
|
|
65
|
-
outline: 0
|
|
66
|
-
}), N = /* @__PURE__ */ S.forwardRef(function(e, t) {
|
|
67
|
-
let n = r({
|
|
68
|
-
props: e,
|
|
69
|
-
name: "MuiPopover"
|
|
70
|
-
}), { action: i, anchorEl: o, anchorOrigin: s = {
|
|
71
|
-
vertical: "top",
|
|
72
|
-
horizontal: "left"
|
|
73
|
-
}, anchorPosition: c, anchorReference: l = "anchorEl", children: f, className: _, container: v, disableAutoFocus: x = !1, elevation: w = 8, marginThreshold: T = 16, open: N, slots: P = {}, slotProps: F = {}, transformOrigin: I = {
|
|
74
|
-
vertical: "top",
|
|
75
|
-
horizontal: "left"
|
|
76
|
-
}, transitionDuration: L = "auto", disableScrollLock: R = !1, ...z } = n, B = S.useRef(), V = {
|
|
77
|
-
...n,
|
|
78
|
-
anchorOrigin: s,
|
|
79
|
-
anchorReference: l,
|
|
80
|
-
elevation: w,
|
|
81
|
-
marginThreshold: T,
|
|
82
|
-
transformOrigin: I,
|
|
83
|
-
transitionDuration: L
|
|
84
|
-
}, H = A(V), U = S.useCallback(() => {
|
|
85
|
-
if (l === "anchorPosition") return process.env.NODE_ENV !== "production" && (c || console.error("MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference=\"anchorPosition\" />.")), c;
|
|
86
|
-
let e = k(o), t = e && e.nodeType === 1 ? e : h(B.current).body, n = t.getBoundingClientRect();
|
|
87
|
-
if (process.env.NODE_ENV !== "production") {
|
|
88
|
-
let e = t.getBoundingClientRect();
|
|
89
|
-
y() && e.top === 0 && e.left === 0 && e.right === 0 && e.bottom === 0 && console.warn([
|
|
90
|
-
"MUI: The `anchorEl` prop provided to the component is invalid.",
|
|
91
|
-
"The anchor element should be part of the document layout.",
|
|
92
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
93
|
-
].join("\n"));
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
top: n.top + E(n, s.vertical),
|
|
97
|
-
left: n.left + D(n, s.horizontal)
|
|
98
|
-
};
|
|
99
|
-
}, [
|
|
100
|
-
o,
|
|
101
|
-
s.horizontal,
|
|
102
|
-
s.vertical,
|
|
103
|
-
c,
|
|
104
|
-
l
|
|
105
|
-
]), W = S.useCallback((e) => ({
|
|
106
|
-
vertical: E(e, I.vertical),
|
|
107
|
-
horizontal: D(e, I.horizontal)
|
|
108
|
-
}), [I.horizontal, I.vertical]), G = S.useCallback((e) => {
|
|
109
|
-
let t = {
|
|
110
|
-
width: e.offsetWidth,
|
|
111
|
-
height: e.offsetHeight
|
|
112
|
-
}, n = W(t);
|
|
113
|
-
if (l === "none") return {
|
|
114
|
-
top: null,
|
|
115
|
-
left: null,
|
|
116
|
-
transformOrigin: O(n)
|
|
117
|
-
};
|
|
118
|
-
let r = U(), i = r.top - n.vertical, a = r.left - n.horizontal, s = i + t.height, c = a + t.width, u = m(k(o)), d = u.innerHeight - T, f = u.innerWidth - T;
|
|
119
|
-
if (T != null && i < T) {
|
|
120
|
-
let e = i - T;
|
|
121
|
-
i -= e, n.vertical += e;
|
|
122
|
-
} else if (T != null && s > d) {
|
|
123
|
-
let e = s - d;
|
|
124
|
-
i -= e, n.vertical += e;
|
|
125
|
-
}
|
|
126
|
-
if (process.env.NODE_ENV !== "production" && t.height > d && t.height && d && console.error([
|
|
127
|
-
"MUI: The popover component is too tall.",
|
|
128
|
-
`Some part of it can not be seen on the screen (${t.height - d}px).`,
|
|
129
|
-
"Please consider adding a `max-height` to improve the user-experience."
|
|
130
|
-
].join("\n")), T != null && a < T) {
|
|
131
|
-
let e = a - T;
|
|
132
|
-
a -= e, n.horizontal += e;
|
|
133
|
-
} else if (c > f) {
|
|
134
|
-
let e = c - f;
|
|
135
|
-
a -= e, n.horizontal += e;
|
|
136
|
-
}
|
|
137
|
-
return {
|
|
138
|
-
top: `${Math.round(i)}px`,
|
|
139
|
-
left: `${Math.round(a)}px`,
|
|
140
|
-
transformOrigin: O(n)
|
|
141
|
-
};
|
|
142
|
-
}, [
|
|
143
|
-
o,
|
|
144
|
-
l,
|
|
145
|
-
U,
|
|
146
|
-
W,
|
|
147
|
-
T
|
|
148
|
-
]), [ee, K] = S.useState(N), q = S.useCallback(() => {
|
|
149
|
-
let e = B.current;
|
|
150
|
-
if (!e) return;
|
|
151
|
-
let t = G(e);
|
|
152
|
-
t.top != null && e.style.setProperty("top", t.top), t.left != null && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, K(!0);
|
|
153
|
-
}, [G]);
|
|
154
|
-
S.useEffect(() => (R && window.addEventListener("scroll", q), () => window.removeEventListener("scroll", q)), [
|
|
155
|
-
o,
|
|
156
|
-
R,
|
|
157
|
-
q
|
|
158
|
-
]);
|
|
159
|
-
let J = () => {
|
|
160
|
-
q();
|
|
161
|
-
}, Y = () => {
|
|
162
|
-
K(!1);
|
|
163
|
-
};
|
|
164
|
-
S.useEffect(() => {
|
|
165
|
-
N && q();
|
|
166
|
-
}), S.useImperativeHandle(i, () => N ? { updatePosition: () => {
|
|
167
|
-
q();
|
|
168
|
-
} } : null, [N, q]), S.useEffect(() => {
|
|
169
|
-
if (!N) return;
|
|
170
|
-
let e = p(() => {
|
|
171
|
-
q();
|
|
172
|
-
}), t = m(k(o));
|
|
173
|
-
return t.addEventListener("resize", e), () => {
|
|
174
|
-
e.clear(), t.removeEventListener("resize", e);
|
|
175
|
-
};
|
|
176
|
-
}, [
|
|
177
|
-
o,
|
|
178
|
-
N,
|
|
179
|
-
q
|
|
180
|
-
]);
|
|
181
|
-
let X = L, Z = {
|
|
182
|
-
slots: P,
|
|
183
|
-
slotProps: F
|
|
184
|
-
}, [Q, te] = d("transition", {
|
|
185
|
-
elementType: b,
|
|
186
|
-
externalForwardedProps: Z,
|
|
187
|
-
ownerState: V,
|
|
188
|
-
getSlotProps: (e) => ({
|
|
189
|
-
...e,
|
|
190
|
-
onEntering: (t, n) => {
|
|
191
|
-
e.onEntering?.(t, n), J();
|
|
192
|
-
},
|
|
193
|
-
onExited: (t) => {
|
|
194
|
-
e.onExited?.(t), Y();
|
|
195
|
-
}
|
|
196
|
-
}),
|
|
197
|
-
additionalProps: {
|
|
198
|
-
appear: !0,
|
|
199
|
-
in: N
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
L === "auto" && !Q.muiSupportAuto && (X = void 0);
|
|
203
|
-
let ne = v || (o ? h(k(o)).body : void 0), [$, { slots: re, slotProps: ie, ...ae }] = d("root", {
|
|
204
|
-
ref: t,
|
|
205
|
-
elementType: j,
|
|
206
|
-
externalForwardedProps: {
|
|
207
|
-
...Z,
|
|
208
|
-
...z
|
|
209
|
-
},
|
|
210
|
-
shouldForwardComponentProp: !0,
|
|
211
|
-
additionalProps: {
|
|
212
|
-
slots: { backdrop: P.backdrop },
|
|
213
|
-
slotProps: { backdrop: g(typeof F.backdrop == "function" ? F.backdrop(V) : F.backdrop, { invisible: !0 }) },
|
|
214
|
-
container: ne,
|
|
215
|
-
open: N
|
|
216
|
-
},
|
|
217
|
-
ownerState: V,
|
|
218
|
-
className: a(H.root, _)
|
|
219
|
-
}), [oe, se] = d("paper", {
|
|
220
|
-
ref: B,
|
|
221
|
-
className: H.paper,
|
|
222
|
-
elementType: M,
|
|
223
|
-
externalForwardedProps: Z,
|
|
224
|
-
shouldForwardComponentProp: !0,
|
|
225
|
-
additionalProps: {
|
|
226
|
-
elevation: w,
|
|
227
|
-
style: ee ? void 0 : { opacity: 0 }
|
|
228
|
-
},
|
|
229
|
-
ownerState: V
|
|
230
|
-
});
|
|
231
|
-
return /* @__PURE__ */ C($, {
|
|
232
|
-
...ae,
|
|
233
|
-
...!u($) && {
|
|
234
|
-
slots: re,
|
|
235
|
-
slotProps: ie,
|
|
236
|
-
disableAutoFocus: x,
|
|
237
|
-
disableScrollLock: R
|
|
238
|
-
},
|
|
239
|
-
children: /* @__PURE__ */ C(Q, {
|
|
240
|
-
...te,
|
|
241
|
-
timeout: X,
|
|
242
|
-
children: /* @__PURE__ */ C(oe, {
|
|
243
|
-
...se,
|
|
244
|
-
children: f
|
|
245
|
-
})
|
|
246
|
-
})
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
250
|
-
action: c,
|
|
251
|
-
anchorEl: l(w.default.oneOfType([_, w.default.func]), (e) => {
|
|
252
|
-
if (e.open && (!e.anchorReference || e.anchorReference === "anchorEl")) {
|
|
253
|
-
let t = k(e.anchorEl);
|
|
254
|
-
if (t && t.nodeType === 1) {
|
|
255
|
-
let e = t.getBoundingClientRect();
|
|
256
|
-
if (process.env.NODE_ENV !== "production" && y() && e.top === 0 && e.left === 0 && e.right === 0 && e.bottom === 0) return Error([
|
|
257
|
-
"MUI: The `anchorEl` prop provided to the component is invalid.",
|
|
258
|
-
"The anchor element should be part of the document layout.",
|
|
259
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
260
|
-
].join("\n"));
|
|
261
|
-
} else return Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));
|
|
262
|
-
}
|
|
263
|
-
return null;
|
|
264
|
-
}),
|
|
265
|
-
anchorOrigin: w.default.shape({
|
|
266
|
-
horizontal: w.default.oneOfType([w.default.oneOf([
|
|
267
|
-
"center",
|
|
268
|
-
"left",
|
|
269
|
-
"right"
|
|
270
|
-
]), w.default.number]).isRequired,
|
|
271
|
-
vertical: w.default.oneOfType([w.default.oneOf([
|
|
272
|
-
"bottom",
|
|
273
|
-
"center",
|
|
274
|
-
"top"
|
|
275
|
-
]), w.default.number]).isRequired
|
|
276
|
-
}),
|
|
277
|
-
anchorPosition: w.default.shape({
|
|
278
|
-
left: w.default.number.isRequired,
|
|
279
|
-
top: w.default.number.isRequired
|
|
280
|
-
}),
|
|
281
|
-
anchorReference: w.default.oneOf([
|
|
282
|
-
"anchorEl",
|
|
283
|
-
"anchorPosition",
|
|
284
|
-
"none"
|
|
285
|
-
]),
|
|
286
|
-
children: w.default.node,
|
|
287
|
-
classes: w.default.object,
|
|
288
|
-
className: w.default.string,
|
|
289
|
-
container: w.default.oneOfType([_, w.default.func]),
|
|
290
|
-
disableAutoFocus: w.default.bool,
|
|
291
|
-
disableScrollLock: w.default.bool,
|
|
292
|
-
elevation: v,
|
|
293
|
-
marginThreshold: w.default.number,
|
|
294
|
-
onClose: w.default.func,
|
|
295
|
-
open: w.default.bool.isRequired,
|
|
296
|
-
slotProps: w.default.shape({
|
|
297
|
-
backdrop: w.default.oneOfType([w.default.func, w.default.object]),
|
|
298
|
-
paper: w.default.oneOfType([w.default.func, w.default.object]),
|
|
299
|
-
root: w.default.oneOfType([w.default.func, w.default.object]),
|
|
300
|
-
transition: w.default.oneOfType([w.default.func, w.default.object])
|
|
301
|
-
}),
|
|
302
|
-
slots: w.default.shape({
|
|
303
|
-
backdrop: w.default.elementType,
|
|
304
|
-
paper: w.default.elementType,
|
|
305
|
-
root: w.default.elementType,
|
|
306
|
-
transition: w.default.elementType
|
|
307
|
-
}),
|
|
308
|
-
sx: w.default.oneOfType([
|
|
309
|
-
w.default.arrayOf(w.default.oneOfType([
|
|
310
|
-
w.default.func,
|
|
311
|
-
w.default.object,
|
|
312
|
-
w.default.bool
|
|
313
|
-
])),
|
|
314
|
-
w.default.func,
|
|
315
|
-
w.default.object
|
|
316
|
-
]),
|
|
317
|
-
transformOrigin: w.default.shape({
|
|
318
|
-
horizontal: w.default.oneOfType([w.default.oneOf([
|
|
319
|
-
"center",
|
|
320
|
-
"left",
|
|
321
|
-
"right"
|
|
322
|
-
]), w.default.number]).isRequired,
|
|
323
|
-
vertical: w.default.oneOfType([w.default.oneOf([
|
|
324
|
-
"bottom",
|
|
325
|
-
"center",
|
|
326
|
-
"top"
|
|
327
|
-
]), w.default.number]).isRequired
|
|
328
|
-
}),
|
|
329
|
-
transitionDuration: w.default.oneOfType([
|
|
330
|
-
w.default.oneOf(["auto"]),
|
|
331
|
-
w.default.number,
|
|
332
|
-
w.default.shape({
|
|
333
|
-
appear: w.default.number,
|
|
334
|
-
enter: w.default.number,
|
|
335
|
-
exit: w.default.number
|
|
336
|
-
})
|
|
337
|
-
])
|
|
338
|
-
});
|
|
339
|
-
//#endregion
|
|
340
|
-
export { M as n, N as t };
|