@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740498210
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/Backdrop-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-DdA12b-5.js} +79 -82
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-DbRInJ2-.js} +8 -8
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/ButtonBase-C2rhY3j-.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-DzpmdR6N.js} +334 -334
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/CardContent-u1MKaFvP.js +226 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-BI77q7eR.js} +26 -27
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/Chip-6-zATjcr.js +521 -0
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CDa_qU1a.js} +19 -20
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/CloseRounded-DQWTEbNz.cjs +1 -0
- package/dist/CloseRounded-DTpqUeWr.js +8 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-BTTLIBm9.js} +3110 -3600
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/DefaultPropsProvider-BcmyIf2H.js +303 -0
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-SYCCu1VD.js} +13 -13
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-_yayDwkI.js} +30 -30
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-KO-E6nU8.js → Divider-Doy31VS6.js} +8 -8
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-DjkS3S9h.js} +130 -133
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DPD-iBAX.js} +46 -43
- package/dist/{IconButton-CekuyD4r.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-GzDm1zf_.js} +17 -17
- package/dist/{InputBase-BJy3wwFB.js → InputBase-CF5oNEfh.js} +216 -211
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-CnahHTmK.js} +49 -50
- package/dist/Menu-C-R0FVOB.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-DzBX10ev.js} +56 -57
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-DQQ-p2ie.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-B8JRJWm0.js} +99 -98
- package/dist/Modal-D8lS9C1l.cjs +2 -0
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-CbgkVQVx.js} +8 -8
- package/dist/{Popper-DFZ_gRev.js → Popper-1-DDNRPD.js} +241 -243
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-T-1Qk77D.js} +34 -39
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/Radio-BxMxeQa-.js +567 -0
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/RadioGroup-BLrD8_Lp.js +190 -0
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DmssuG5M.js → Select-B6mYfJPA.js} +419 -402
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/Switch-BOpqo-TS.js +329 -0
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-BAjfatYA.js} +35 -36
- package/dist/{Tabs-CYbeTnJk.js → Tabs-CrWcC5nJ.js} +299 -301
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-Cri5Gxa7.js → TextField-CAmc1Qpg.js} +31 -30
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/ToggleButtonGroup-ekxVeQCc.js +10461 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-BvVFPsVR.js} +32 -33
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-CE8fQQ8B.js} +15 -16
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +117 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.es.js +348 -294
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-CCejzj0C.js} +49 -48
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-DN9F43tq.js} +3 -3
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-DFv-GFt5.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/identifier-D58rA1gM.js +3267 -0
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-CwvpOCso.js → index-BGS2uu2L.js} +29 -29
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-ClXCinr6.js} +22 -22
- package/dist/index-DwHI-aa0.js +45 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-0QnU-fDT.js} +7 -7
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-SrEVp7Pm.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-B31YQlzb.js +0 -45
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as b, I as f, G as x,
|
|
3
|
-
import {
|
|
4
|
-
import { m as F } from "./memoTheme-
|
|
5
|
-
import { b as $ } from "./Menu-
|
|
2
|
+
import { H as b, I as f, G as x, n as d, P as t } from "./identifier-D58rA1gM.js";
|
|
3
|
+
import { u as S, s as U, c as P, r as E } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
4
|
+
import { m as F } from "./memoTheme-DyiN-Awd.js";
|
|
5
|
+
import { b as $ } from "./Menu-DzBX10ev.js";
|
|
6
6
|
import { jsx as M } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
8
|
-
import { u as j } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { d as O } from "./dividerClasses-
|
|
7
|
+
import { u as G } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
8
|
+
import { u as j } from "./useForkRef-C_4o__cU.js";
|
|
9
|
+
import { B as D } from "./ButtonBase-DzpmdR6N.js";
|
|
10
|
+
import { d as O } from "./dividerClasses-DN9F43tq.js";
|
|
11
11
|
function te(e) {
|
|
12
|
-
return
|
|
12
|
+
return f("MuiListItemIcon", e);
|
|
13
13
|
}
|
|
14
|
-
const T =
|
|
14
|
+
const T = b("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
15
15
|
function se(e) {
|
|
16
|
-
return
|
|
16
|
+
return f("MuiListItemText", e);
|
|
17
17
|
}
|
|
18
|
-
const k =
|
|
18
|
+
const k = b("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
19
19
|
function H(e) {
|
|
20
|
-
return
|
|
20
|
+
return f("MuiMenuItem", e);
|
|
21
21
|
}
|
|
22
|
-
const i =
|
|
22
|
+
const i = b("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), z = (e, s) => {
|
|
23
23
|
const {
|
|
24
24
|
ownerState: o
|
|
25
25
|
} = e;
|
|
@@ -32,15 +32,15 @@ const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
32
32
|
disableGutters: l,
|
|
33
33
|
selected: p,
|
|
34
34
|
classes: n
|
|
35
|
-
} = e, r =
|
|
35
|
+
} = e, r = P({
|
|
36
36
|
root: ["root", o && "dense", s && "disabled", !l && "gutters", a && "divider", p && "selected"]
|
|
37
37
|
}, H, n);
|
|
38
38
|
return {
|
|
39
39
|
...n,
|
|
40
40
|
...r
|
|
41
41
|
};
|
|
42
|
-
}, W =
|
|
43
|
-
shouldForwardProp: (e) =>
|
|
42
|
+
}, W = U(D, {
|
|
43
|
+
shouldForwardProp: (e) => E(e) || e === "classes",
|
|
44
44
|
name: "MuiMenuItem",
|
|
45
45
|
slot: "Root",
|
|
46
46
|
overridesResolver: z
|
|
@@ -143,7 +143,7 @@ const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
143
143
|
}
|
|
144
144
|
}]
|
|
145
145
|
}))), q = /* @__PURE__ */ c.forwardRef(function(s, o) {
|
|
146
|
-
const a =
|
|
146
|
+
const a = S({
|
|
147
147
|
props: s,
|
|
148
148
|
name: "MuiMenuItem"
|
|
149
149
|
}), {
|
|
@@ -161,7 +161,7 @@ const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
161
161
|
dense: n || v.dense || !1,
|
|
162
162
|
disableGutters: r
|
|
163
163
|
}), [v.dense, n, r]), u = c.useRef(null);
|
|
164
|
-
|
|
164
|
+
G(() => {
|
|
165
165
|
l && (u.current ? u.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
166
166
|
}, [l]);
|
|
167
167
|
const V = {
|
|
@@ -169,7 +169,7 @@ const i = f("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
169
169
|
dense: I.dense,
|
|
170
170
|
divider: g,
|
|
171
171
|
disableGutters: r
|
|
172
|
-
}, m = _(a), B =
|
|
172
|
+
}, m = _(a), B = j(u, o);
|
|
173
173
|
let C;
|
|
174
174
|
return a.disabled || (C = y !== void 0 ? y : -1), /* @__PURE__ */ M($.Provider, {
|
|
175
175
|
value: I,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as n, H as
|
|
3
|
-
import { m as
|
|
2
|
+
import { P as n, H as he, I as ge, G as Z } from "./identifier-D58rA1gM.js";
|
|
3
|
+
import { m as Ee } from "./memoTheme-DyiN-Awd.js";
|
|
4
4
|
import { o as z } from "./ownerWindow-niciwP7I.js";
|
|
5
5
|
import { o as A } from "./ownerDocument-CUrv0DIK.js";
|
|
6
6
|
import { u as Y } from "./useForkRef-C_4o__cU.js";
|
|
7
7
|
import { u as ee } from "./useEventCallback-BAQJJ3ye.js";
|
|
8
|
-
import { e as Ee } from "./mergeSlotProps-tUJEcwVu.js";
|
|
9
8
|
import { c as te } from "./createChainedFunction-C0nujS3O.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { e as xe, P as ke, H as
|
|
15
|
-
import { g as
|
|
16
|
-
|
|
9
|
+
import { e as Te } from "./resolveComponentProps-0QnU-fDT.js";
|
|
10
|
+
import { u as oe } from "./useSlot-CZNcsPv1.js";
|
|
11
|
+
import { jsxs as ie, jsx as j } from "react/jsx-runtime";
|
|
12
|
+
import { u as ye, s as ce, c as Re } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
13
|
+
import { e as xe, P as ke, H as ve } from "./Portal-T-1Qk77D.js";
|
|
14
|
+
import { g as Pe, e as ae } from "./utils-SrEVp7Pm.js";
|
|
15
|
+
import { B as Ie } from "./Backdrop-DdA12b-5.js";
|
|
16
|
+
function Ne(e = window) {
|
|
17
17
|
const t = e.document.documentElement.clientWidth;
|
|
18
18
|
return e.innerWidth - t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ce(e) {
|
|
21
21
|
const t = A(e);
|
|
22
22
|
return t.body === e ? z(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
23
23
|
}
|
|
@@ -27,14 +27,14 @@ function K(e, t) {
|
|
|
27
27
|
function ne(e) {
|
|
28
28
|
return parseInt(z(e).getComputedStyle(e).paddingRight, 10) || 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Se(e) {
|
|
31
31
|
const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
32
32
|
return s || o;
|
|
33
33
|
}
|
|
34
34
|
function re(e, t, s, o, i) {
|
|
35
35
|
const r = [t, s, ...o];
|
|
36
36
|
[].forEach.call(e.children, (c) => {
|
|
37
|
-
const a = !r.includes(c), m = !
|
|
37
|
+
const a = !r.includes(c), m = !Se(c);
|
|
38
38
|
a && m && K(c, i);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -42,11 +42,11 @@ function $(e, t) {
|
|
|
42
42
|
let s = -1;
|
|
43
43
|
return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Fe(e, t) {
|
|
46
46
|
const s = [], o = e.container;
|
|
47
47
|
if (!t.disableScrollLock) {
|
|
48
|
-
if (
|
|
49
|
-
const c =
|
|
48
|
+
if (Ce(o)) {
|
|
49
|
+
const c = Ne(z(o));
|
|
50
50
|
s.push({
|
|
51
51
|
value: o.style.paddingRight,
|
|
52
52
|
property: "padding-right",
|
|
@@ -92,13 +92,13 @@ function Se(e, t) {
|
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Me(e) {
|
|
96
96
|
const t = [];
|
|
97
97
|
return [].forEach.call(e.children, (s) => {
|
|
98
98
|
s.getAttribute("aria-hidden") === "true" && t.push(s);
|
|
99
99
|
}), t;
|
|
100
100
|
}
|
|
101
|
-
class
|
|
101
|
+
class Oe {
|
|
102
102
|
constructor() {
|
|
103
103
|
this.modals = [], this.containers = [];
|
|
104
104
|
}
|
|
@@ -107,7 +107,7 @@ class Me {
|
|
|
107
107
|
if (o !== -1)
|
|
108
108
|
return o;
|
|
109
109
|
o = this.modals.length, this.modals.push(t), t.modalRef && K(t.modalRef, !1);
|
|
110
|
-
const i =
|
|
110
|
+
const i = Me(s);
|
|
111
111
|
re(s, t.mount, t.modalRef, i, !0);
|
|
112
112
|
const r = $(this.containers, (c) => c.container === s);
|
|
113
113
|
return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
|
|
@@ -119,7 +119,7 @@ class Me {
|
|
|
119
119
|
}
|
|
120
120
|
mount(t, s) {
|
|
121
121
|
const o = $(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
|
|
122
|
-
i.restore || (i.restore =
|
|
122
|
+
i.restore || (i.restore = Fe(i, s));
|
|
123
123
|
}
|
|
124
124
|
remove(t, s = !0) {
|
|
125
125
|
const o = this.modals.indexOf(t);
|
|
@@ -138,33 +138,33 @@ class Me {
|
|
|
138
138
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
141
|
+
const we = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
142
|
+
function Ae(e) {
|
|
143
143
|
const t = parseInt(e.getAttribute("tabindex") || "", 10);
|
|
144
144
|
return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function De(e) {
|
|
147
147
|
if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
|
|
148
148
|
return !1;
|
|
149
149
|
const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
|
150
150
|
let s = t(`[name="${e.name}"]:checked`);
|
|
151
151
|
return s || (s = t(`[name="${e.name}"]`)), s !== e;
|
|
152
152
|
}
|
|
153
|
-
function De(e) {
|
|
154
|
-
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Ae(e));
|
|
155
|
-
}
|
|
156
153
|
function Be(e) {
|
|
154
|
+
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || De(e));
|
|
155
|
+
}
|
|
156
|
+
function Le(e) {
|
|
157
157
|
const t = [], s = [];
|
|
158
|
-
return Array.from(e.querySelectorAll(
|
|
159
|
-
const r =
|
|
160
|
-
r === -1 || !
|
|
158
|
+
return Array.from(e.querySelectorAll(we)).forEach((o, i) => {
|
|
159
|
+
const r = Ae(o);
|
|
160
|
+
r === -1 || !Be(o) || (r === 0 ? t.push(o) : s.push({
|
|
161
161
|
documentOrder: i,
|
|
162
162
|
tabIndex: r,
|
|
163
163
|
node: o
|
|
164
164
|
}));
|
|
165
165
|
}), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function je() {
|
|
168
168
|
return !0;
|
|
169
169
|
}
|
|
170
170
|
function V(e) {
|
|
@@ -173,10 +173,10 @@ function V(e) {
|
|
|
173
173
|
disableAutoFocus: s = !1,
|
|
174
174
|
disableEnforceFocus: o = !1,
|
|
175
175
|
disableRestoreFocus: i = !1,
|
|
176
|
-
getTabbable: r =
|
|
177
|
-
isEnabled: c =
|
|
176
|
+
getTabbable: r = Le,
|
|
177
|
+
isEnabled: c = je,
|
|
178
178
|
open: a
|
|
179
|
-
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(
|
|
179
|
+
} = e, m = u.useRef(!1), E = u.useRef(null), k = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), w = Y(Pe(t), p), N = u.useRef(null);
|
|
180
180
|
u.useEffect(() => {
|
|
181
181
|
!a || !p.current || (b.current = !s);
|
|
182
182
|
}, [s, a]), u.useEffect(() => {
|
|
@@ -192,8 +192,8 @@ function V(e) {
|
|
|
192
192
|
return;
|
|
193
193
|
const l = A(p.current), g = (T) => {
|
|
194
194
|
N.current = T, !(o || !c() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (m.current = !0, k.current && k.current.focus());
|
|
195
|
-
},
|
|
196
|
-
var
|
|
195
|
+
}, v = () => {
|
|
196
|
+
var P, M;
|
|
197
197
|
const T = p.current;
|
|
198
198
|
if (T === null)
|
|
199
199
|
return;
|
|
@@ -211,17 +211,17 @@ function V(e) {
|
|
|
211
211
|
return;
|
|
212
212
|
let S = [];
|
|
213
213
|
if ((l.activeElement === E.current || l.activeElement === k.current) && (S = r(p.current)), S.length > 0) {
|
|
214
|
-
const D = !!((
|
|
214
|
+
const D = !!((P = N.current) != null && P.shiftKey && ((M = N.current) == null ? void 0 : M.key) === "Tab"), B = S[0], U = S[S.length - 1];
|
|
215
215
|
typeof B != "string" && typeof U != "string" && (D ? U.focus() : B.focus());
|
|
216
216
|
} else
|
|
217
217
|
T.focus();
|
|
218
218
|
};
|
|
219
|
-
l.addEventListener("focusin",
|
|
219
|
+
l.addEventListener("focusin", v), l.addEventListener("keydown", g, !0);
|
|
220
220
|
const F = setInterval(() => {
|
|
221
|
-
l.activeElement && l.activeElement.tagName === "BODY" &&
|
|
221
|
+
l.activeElement && l.activeElement.tagName === "BODY" && v();
|
|
222
222
|
}, 50);
|
|
223
223
|
return () => {
|
|
224
|
-
clearInterval(F), l.removeEventListener("focusin",
|
|
224
|
+
clearInterval(F), l.removeEventListener("focusin", v), l.removeEventListener("keydown", g, !0);
|
|
225
225
|
};
|
|
226
226
|
}, [s, o, i, c, a, r]);
|
|
227
227
|
const C = (l) => {
|
|
@@ -231,7 +231,7 @@ function V(e) {
|
|
|
231
231
|
}, R = (l) => {
|
|
232
232
|
h.current === null && (h.current = l.relatedTarget), b.current = !0;
|
|
233
233
|
};
|
|
234
|
-
return /* @__PURE__ */
|
|
234
|
+
return /* @__PURE__ */ ie(u.Fragment, {
|
|
235
235
|
children: [/* @__PURE__ */ j("div", {
|
|
236
236
|
tabIndex: a ? 0 : -1,
|
|
237
237
|
onFocus: R,
|
|
@@ -256,7 +256,7 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
256
256
|
/**
|
|
257
257
|
* A single child content element.
|
|
258
258
|
*/
|
|
259
|
-
children:
|
|
259
|
+
children: ae,
|
|
260
260
|
/**
|
|
261
261
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
262
262
|
* replace it to the last focused element when it closes.
|
|
@@ -303,14 +303,15 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
303
303
|
open: n.bool.isRequired
|
|
304
304
|
});
|
|
305
305
|
process.env.NODE_ENV !== "production" && (V.propTypes = xe(V.propTypes));
|
|
306
|
-
function
|
|
306
|
+
function Ke(e) {
|
|
307
307
|
return typeof e == "function" ? e() : e;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Ue(e) {
|
|
310
310
|
return e ? e.props.hasOwnProperty("in") : !1;
|
|
311
311
|
}
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const se = () => {
|
|
313
|
+
}, H = new Oe();
|
|
314
|
+
function We(e) {
|
|
314
315
|
const {
|
|
315
316
|
container: t,
|
|
316
317
|
disableEscapeKeyDown: s = !1,
|
|
@@ -322,26 +323,26 @@ function Ue(e) {
|
|
|
322
323
|
onClose: m,
|
|
323
324
|
open: E,
|
|
324
325
|
rootRef: k
|
|
325
|
-
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C =
|
|
326
|
+
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = Y(b, k), [w, N] = u.useState(!E), C = Ue(a);
|
|
326
327
|
let R = !0;
|
|
327
328
|
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
|
|
328
|
-
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current),
|
|
329
|
+
const l = () => A(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), v = () => {
|
|
329
330
|
H.mount(g(), {
|
|
330
331
|
disableScrollLock: o
|
|
331
332
|
}), b.current && (b.current.scrollTop = 0);
|
|
332
333
|
}, F = ee(() => {
|
|
333
|
-
const d =
|
|
334
|
-
H.add(g(), d), b.current &&
|
|
334
|
+
const d = Ke(t) || l().body;
|
|
335
|
+
H.add(g(), d), b.current && v();
|
|
335
336
|
}), T = () => H.isTopModal(g()), S = ee((d) => {
|
|
336
|
-
y.current = d, d && (E && T() ?
|
|
337
|
-
}),
|
|
337
|
+
y.current = d, d && (E && T() ? v() : b.current && K(b.current, R));
|
|
338
|
+
}), P = u.useCallback(() => {
|
|
338
339
|
H.remove(g(), R);
|
|
339
340
|
}, [R]);
|
|
340
341
|
u.useEffect(() => () => {
|
|
341
|
-
|
|
342
|
-
}, [
|
|
343
|
-
E ? F() : (!C || !i) &&
|
|
344
|
-
}, [E,
|
|
342
|
+
P();
|
|
343
|
+
}, [P]), u.useEffect(() => {
|
|
344
|
+
E ? F() : (!C || !i) && P();
|
|
345
|
+
}, [E, P, C, i, F]);
|
|
345
346
|
const M = (d) => (f) => {
|
|
346
347
|
var x;
|
|
347
348
|
(x = d.onKeyDown) == null || x.call(d, f), !(f.key !== "Escape" || f.which === 229 || // Wait until IME is settled.
|
|
@@ -352,7 +353,7 @@ function Ue(e) {
|
|
|
352
353
|
};
|
|
353
354
|
return {
|
|
354
355
|
getRootProps: (d = {}) => {
|
|
355
|
-
const f =
|
|
356
|
+
const f = Te(e);
|
|
356
357
|
delete f.onTransitionEnter, delete f.onTransitionExited;
|
|
357
358
|
const x = {
|
|
358
359
|
...f,
|
|
@@ -384,11 +385,11 @@ function Ue(e) {
|
|
|
384
385
|
const d = () => {
|
|
385
386
|
N(!1), r && r();
|
|
386
387
|
}, f = () => {
|
|
387
|
-
N(!0), c && c(), i &&
|
|
388
|
+
N(!0), c && c(), i && P();
|
|
388
389
|
};
|
|
389
390
|
return {
|
|
390
|
-
onEnter: te(d, a == null ? void 0 : a.props.onEnter),
|
|
391
|
-
onExited: te(f, a == null ? void 0 : a.props.onExited)
|
|
391
|
+
onEnter: te(d, (a == null ? void 0 : a.props.onEnter) ?? se),
|
|
392
|
+
onExited: te(f, (a == null ? void 0 : a.props.onExited) ?? se)
|
|
392
393
|
};
|
|
393
394
|
},
|
|
394
395
|
rootRef: p,
|
|
@@ -398,20 +399,20 @@ function Ue(e) {
|
|
|
398
399
|
hasTransition: C
|
|
399
400
|
};
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
return
|
|
402
|
+
function qe(e) {
|
|
403
|
+
return ge("MuiModal", e);
|
|
403
404
|
}
|
|
404
|
-
const
|
|
405
|
+
const ct = he("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
405
406
|
const {
|
|
406
407
|
open: t,
|
|
407
408
|
exited: s,
|
|
408
409
|
classes: o
|
|
409
410
|
} = e;
|
|
410
|
-
return
|
|
411
|
+
return Re({
|
|
411
412
|
root: ["root", !t && s && "hidden"],
|
|
412
413
|
backdrop: ["backdrop"]
|
|
413
|
-
},
|
|
414
|
-
},
|
|
414
|
+
}, qe, o);
|
|
415
|
+
}, ze = ce("div", {
|
|
415
416
|
name: "MuiModal",
|
|
416
417
|
slot: "Root",
|
|
417
418
|
overridesResolver: (e, t) => {
|
|
@@ -420,7 +421,7 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
420
421
|
} = e;
|
|
421
422
|
return [t.root, !s.open && s.exited && t.hidden];
|
|
422
423
|
}
|
|
423
|
-
})(
|
|
424
|
+
})(Ee(({
|
|
424
425
|
theme: e
|
|
425
426
|
}) => ({
|
|
426
427
|
position: "fixed",
|
|
@@ -437,18 +438,18 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
437
438
|
visibility: "hidden"
|
|
438
439
|
}
|
|
439
440
|
}]
|
|
440
|
-
}))),
|
|
441
|
+
}))), Ve = ce(Ie, {
|
|
441
442
|
name: "MuiModal",
|
|
442
443
|
slot: "Backdrop",
|
|
443
444
|
overridesResolver: (e, t) => t.backdrop
|
|
444
445
|
})({
|
|
445
446
|
zIndex: -1
|
|
446
|
-
}),
|
|
447
|
-
const o =
|
|
447
|
+
}), $e = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
448
|
+
const o = ye({
|
|
448
449
|
name: "MuiModal",
|
|
449
450
|
props: t
|
|
450
451
|
}), {
|
|
451
|
-
BackdropComponent: i =
|
|
452
|
+
BackdropComponent: i = Ve,
|
|
452
453
|
BackdropProps: r,
|
|
453
454
|
classes: c,
|
|
454
455
|
className: a,
|
|
@@ -465,11 +466,11 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
465
466
|
disableRestoreFocus: R = !1,
|
|
466
467
|
disableScrollLock: l = !1,
|
|
467
468
|
hideBackdrop: g = !1,
|
|
468
|
-
keepMounted:
|
|
469
|
+
keepMounted: v = !1,
|
|
469
470
|
onBackdropClick: F,
|
|
470
471
|
onClose: T,
|
|
471
472
|
onTransitionEnter: S,
|
|
472
|
-
onTransitionExited:
|
|
473
|
+
onTransitionExited: P,
|
|
473
474
|
open: M,
|
|
474
475
|
slotProps: D = {},
|
|
475
476
|
slots: B = {},
|
|
@@ -486,27 +487,27 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
486
487
|
disableRestoreFocus: R,
|
|
487
488
|
disableScrollLock: l,
|
|
488
489
|
hideBackdrop: g,
|
|
489
|
-
keepMounted:
|
|
490
|
+
keepMounted: v
|
|
490
491
|
}, {
|
|
491
492
|
getRootProps: f,
|
|
492
493
|
getBackdropProps: x,
|
|
493
|
-
getTransitionProps:
|
|
494
|
-
portalRef:
|
|
495
|
-
isTopModal:
|
|
494
|
+
getTransitionProps: le,
|
|
495
|
+
portalRef: ue,
|
|
496
|
+
isTopModal: de,
|
|
496
497
|
exited: G,
|
|
497
498
|
hasTransition: X
|
|
498
|
-
} =
|
|
499
|
+
} = We({
|
|
499
500
|
...d,
|
|
500
501
|
rootRef: s
|
|
501
502
|
}), L = {
|
|
502
503
|
...d,
|
|
503
504
|
exited: G
|
|
504
|
-
}, I =
|
|
505
|
+
}, I = He(L), W = {};
|
|
505
506
|
if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"), X) {
|
|
506
507
|
const {
|
|
507
508
|
onEnter: O,
|
|
508
509
|
onExited: q
|
|
509
|
-
} =
|
|
510
|
+
} = le();
|
|
510
511
|
W.onEnter = O, W.onExited = q;
|
|
511
512
|
}
|
|
512
513
|
const J = {
|
|
@@ -520,8 +521,8 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
520
521
|
...b,
|
|
521
522
|
...D
|
|
522
523
|
}
|
|
523
|
-
}, [
|
|
524
|
-
elementType:
|
|
524
|
+
}, [fe, pe] = oe("root", {
|
|
525
|
+
elementType: ze,
|
|
525
526
|
externalForwardedProps: J,
|
|
526
527
|
getSlotProps: f,
|
|
527
528
|
additionalProps: {
|
|
@@ -530,7 +531,7 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
530
531
|
},
|
|
531
532
|
ownerState: L,
|
|
532
533
|
className: Z(a, I == null ? void 0 : I.root, !L.open && L.exited && (I == null ? void 0 : I.hidden))
|
|
533
|
-
}), [
|
|
534
|
+
}), [me, Q] = oe("backdrop", {
|
|
534
535
|
elementType: i,
|
|
535
536
|
externalForwardedProps: J,
|
|
536
537
|
additionalProps: r,
|
|
@@ -542,28 +543,28 @@ const it = he("MuiModal", ["root", "hidden", "backdrop"]), qe = (e) => {
|
|
|
542
543
|
}),
|
|
543
544
|
className: Z(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
|
|
544
545
|
ownerState: L
|
|
545
|
-
}),
|
|
546
|
-
return !
|
|
547
|
-
ref:
|
|
546
|
+
}), be = Y(r == null ? void 0 : r.ref, Q.ref);
|
|
547
|
+
return !v && !M && (!X || G) ? null : /* @__PURE__ */ j(ke, {
|
|
548
|
+
ref: ue,
|
|
548
549
|
container: k,
|
|
549
550
|
disablePortal: C,
|
|
550
|
-
children: /* @__PURE__ */
|
|
551
|
-
...
|
|
552
|
-
children: [!g && i ? /* @__PURE__ */ j(
|
|
551
|
+
children: /* @__PURE__ */ ie(fe, {
|
|
552
|
+
...pe,
|
|
553
|
+
children: [!g && i ? /* @__PURE__ */ j(me, {
|
|
553
554
|
...Q,
|
|
554
|
-
ref:
|
|
555
|
+
ref: be
|
|
555
556
|
}) : null, /* @__PURE__ */ j(V, {
|
|
556
557
|
disableEnforceFocus: w,
|
|
557
558
|
disableAutoFocus: p,
|
|
558
559
|
disableRestoreFocus: R,
|
|
559
|
-
isEnabled:
|
|
560
|
+
isEnabled: de,
|
|
560
561
|
open: M,
|
|
561
562
|
children: /* @__PURE__ */ u.cloneElement(E, W)
|
|
562
563
|
})]
|
|
563
564
|
})
|
|
564
565
|
});
|
|
565
566
|
});
|
|
566
|
-
process.env.NODE_ENV !== "production" && (
|
|
567
|
+
process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
567
568
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
568
569
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
569
570
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -591,7 +592,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
591
592
|
/**
|
|
592
593
|
* A single child content element.
|
|
593
594
|
*/
|
|
594
|
-
children:
|
|
595
|
+
children: ae.isRequired,
|
|
595
596
|
/**
|
|
596
597
|
* Override or extend the styles applied to the component.
|
|
597
598
|
*/
|
|
@@ -643,7 +644,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
643
644
|
* By default, it uses the body of the top-level document object,
|
|
644
645
|
* so it's simply `document.body` most of the time.
|
|
645
646
|
*/
|
|
646
|
-
container: n.oneOfType([
|
|
647
|
+
container: n.oneOfType([ve, n.func]),
|
|
647
648
|
/**
|
|
648
649
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
649
650
|
* replace it to the last focused element when it closes.
|
|
@@ -744,9 +745,9 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
744
745
|
});
|
|
745
746
|
export {
|
|
746
747
|
V as F,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
748
|
+
$e as M,
|
|
749
|
+
Oe as a,
|
|
750
|
+
Ne as b,
|
|
751
|
+
qe as g,
|
|
752
|
+
ct as m
|
|
752
753
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const Pe=require("react"),t=require("./identifier-5n4d7br9.cjs"),ge=require("./memoTheme-C8EfvlY1.cjs"),V=require("./ownerWindow-DDHucZi0.cjs"),D=require("./ownerDocument-4MViGo3k.cjs"),Y=require("./useForkRef-CTI33h-3.cjs"),te=require("./useEventCallback-C0-Qw3Sm.cjs"),ne=require("./createChainedFunction-CJmlQuW8.cjs"),Ee=require("./resolveComponentProps-D0sgyopa.cjs"),re=require("./useSlot-CyXLaLc2.cjs"),O=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-QmkL7lbM.cjs"),G=require("./Portal-bIKnnWR4.cjs"),X=require("./utils-D4if93Yl.cjs"),Re=require("./Backdrop-COarwgJj.cjs");function xe(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const u=xe(Pe);function ae(e=window){const o=e.document.documentElement.clientWidth;return e.innerWidth-o}function ke(e){const o=D.ownerDocument(e);return o.body===e?V.ownerWindow(e).innerWidth>o.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,o){o?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function se(e){return parseInt(V.ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function ve(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function ie(e,o,r,n,i){const s=[o,r,...n];[].forEach.call(e.children,c=>{const a=!s.includes(c),b=!ve(c);a&&b&&L(c,i)})}function H(e,o){let r=-1;return e.some((n,i)=>o(n)?(r=i,!0):!1),r}function we(e,o){const r=[],n=e.container;if(!o.disableScrollLock){if(ke(n)){const c=ae(V.ownerWindow(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${se(n)+c}px`;const a=D.ownerDocument(n).querySelectorAll(".mui-fixed");[].forEach.call(a,b=>{r.push({value:b.style.paddingRight,property:"padding-right",el:b}),b.style.paddingRight=`${se(b)+c}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=D.ownerDocument(n).body;else{const c=n.parentElement,a=V.ownerWindow(n);s=(c==null?void 0:c.nodeName)==="HTML"&&a.getComputedStyle(c).overflowY==="scroll"?c:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:a})=>{s?c.style.setProperty(a,s):c.style.removeProperty(a)})}}function Ce(e){const o=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&o.push(r)}),o}class le{constructor(){this.modals=[],this.containers=[]}add(o,r){let n=this.modals.indexOf(o);if(n!==-1)return n;n=this.modals.length,this.modals.push(o),o.modalRef&&L(o.modalRef,!1);const i=Ce(r);ie(r,o.mount,o.modalRef,i,!0);const s=H(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(o),n):(this.containers.push({modals:[o],container:r,restore:null,hiddenSiblings:i}),n)}mount(o,r){const n=H(this.containers,s=>s.modals.includes(o)),i=this.containers[n];i.restore||(i.restore=we(i,r))}remove(o,r=!0){const n=this.modals.indexOf(o);if(n===-1)return n;const i=H(this.containers,c=>c.modals.includes(o)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(o),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),o.modalRef&&L(o.modalRef,r),ie(s.container,o.mount,o.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&L(c.modalRef,!1)}return n}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const Ne=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ie(e){const o=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(o)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:o}function Se(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const o=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=o(`[name="${e.name}"]:checked`);return r||(r=o(`[name="${e.name}"]`)),r!==e}function Fe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Se(e))}function Me(e){const o=[],r=[];return Array.from(e.querySelectorAll(Ne)).forEach((n,i)=>{const s=Ie(n);s===-1||!Fe(n)||(s===0?o.push(n):r.push({documentOrder:i,tabIndex:s,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(o)}function Oe(){return!0}function U(e){const{children:o,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:s=Me,isEnabled:c=Oe,open:a}=e,b=u.useRef(!1),h=u.useRef(null),x=u.useRef(null),y=u.useRef(null),g=u.useRef(null),T=u.useRef(!1),f=u.useRef(null),A=Y.useForkRef(X.getReactElementRef(o),f),C=u.useRef(null);u.useEffect(()=>{!a||!f.current||(T.current=!r)},[r,a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current);return f.current.contains(l.activeElement)||(f.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
2
|
+
`)),f.current.setAttribute("tabIndex","-1")),T.current&&f.current.focus()),()=>{i||(y.current&&y.current.focus&&(b.current=!0,y.current.focus()),y.current=null)}},[a]),u.useEffect(()=>{if(!a||!f.current)return;const l=D.ownerDocument(f.current),m=P=>{C.current=P,!(n||!c()||P.key!=="Tab")&&l.activeElement===f.current&&P.shiftKey&&(b.current=!0,x.current&&x.current.focus())},k=()=>{var v,F;const P=f.current;if(P===null)return;if(!l.hasFocus()||!c()||b.current){b.current=!1;return}if(P.contains(l.activeElement)||n&&l.activeElement!==h.current&&l.activeElement!==x.current)return;if(l.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!T.current)return;let I=[];if((l.activeElement===h.current||l.activeElement===x.current)&&(I=s(f.current)),I.length>0){const j=!!((v=C.current)!=null&&v.shiftKey&&((F=C.current)==null?void 0:F.key)==="Tab"),q=I[0],K=I[I.length-1];typeof q!="string"&&typeof K!="string"&&(j?K.focus():q.focus())}else P.focus()};l.addEventListener("focusin",k),l.addEventListener("keydown",m,!0);const S=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(S),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,n,i,c,a,s]);const N=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0,g.current=l.target;const m=o.props.onFocus;m&&m(l)},E=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0};return O.jsxs(u.Fragment,{children:[O.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:h,"data-testid":"sentinelStart"}),u.cloneElement(o,{ref:A,onFocus:N}),O.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:x,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(U.propTypes={children:X.elementAcceptingRef,disableAutoFocus:t.PropTypes.bool,disableEnforceFocus:t.PropTypes.bool,disableRestoreFocus:t.PropTypes.bool,getTabbable:t.PropTypes.func,isEnabled:t.PropTypes.func,open:t.PropTypes.bool.isRequired});process.env.NODE_ENV!=="production"&&(U.propTypes=G.exactProp(U.propTypes));function Ae(e){return typeof e=="function"?e():e}function De(e){return e?e.props.hasOwnProperty("in"):!1}const ce=()=>{},_=new le;function je(e){const{container:o,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:c,children:a,onClose:b,open:h,rootRef:x}=e,y=u.useRef({}),g=u.useRef(null),T=u.useRef(null),f=Y.useForkRef(T,x),[A,C]=u.useState(!h),N=De(a);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const l=()=>D.ownerDocument(g.current),m=()=>(y.current.modalRef=T.current,y.current.mount=g.current,y.current),k=()=>{_.mount(m(),{disableScrollLock:n}),T.current&&(T.current.scrollTop=0)},S=te.useEventCallback(()=>{const d=Ae(o)||l().body;_.add(m(),d),T.current&&k()}),P=()=>_.isTopModal(m()),I=te.useEventCallback(d=>{g.current=d,d&&(h&&P()?k():T.current&&L(T.current,E))}),v=u.useCallback(()=>{_.remove(m(),E)},[E]);u.useEffect(()=>()=>{v()},[v]),u.useEffect(()=>{h?S():(!N||!i)&&v()},[h,v,N,i,S]);const F=d=>p=>{var R;(R=d.onKeyDown)==null||R.call(d,p),!(p.key!=="Escape"||p.which===229||!P())&&(r||(p.stopPropagation(),b&&b(p,"escapeKeyDown")))},j=d=>p=>{var R;(R=d.onClick)==null||R.call(d,p),p.target===p.currentTarget&&b&&b(p,"backdropClick")};return{getRootProps:(d={})=>{const p=Ee.extractEventHandlers(e);delete p.onTransitionEnter,delete p.onTransitionExited;const R={...p,...d};return{role:"presentation",...R,onKeyDown:F(R),ref:f}},getBackdropProps:(d={})=>{const p=d;return{"aria-hidden":!0,...p,onClick:j(p),open:h}},getTransitionProps:()=>{const d=()=>{C(!1),s&&s()},p=()=>{C(!0),c&&c(),i&&v()};return{onEnter:ne.createChainedFunction(d,(a==null?void 0:a.props.onEnter)??ce),onExited:ne.createChainedFunction(p,(a==null?void 0:a.props.onExited)??ce)}},rootRef:f,portalRef:I,isTopModal:P,exited:A,hasTransition:N}}function ue(e){return t.generateUtilityClass("MuiModal",e)}const qe=t.generateUtilityClasses("MuiModal",["root","hidden","backdrop"]),Be=e=>{const{open:o,exited:r,classes:n}=e,i={root:["root",!o&&r&&"hidden"],backdrop:["backdrop"]};return $.composeClasses(i,ue,n)},Le=$.styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:r}=e;return[o.root,!r.open&&r.exited&&o.hidden]}})(ge.memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:o})=>!o.open&&o.exited,style:{visibility:"hidden"}}]}))),Ue=$.styled(Re.Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,o)=>o.backdrop})({zIndex:-1}),de=u.forwardRef(function(o,r){const n=$.useDefaultProps({name:"MuiModal",props:o}),{BackdropComponent:i=Ue,BackdropProps:s,classes:c,className:a,closeAfterTransition:b=!1,children:h,container:x,component:y,components:g={},componentsProps:T={},disableAutoFocus:f=!1,disableEnforceFocus:A=!1,disableEscapeKeyDown:C=!1,disablePortal:N=!1,disableRestoreFocus:E=!1,disableScrollLock:l=!1,hideBackdrop:m=!1,keepMounted:k=!1,onBackdropClick:S,onClose:P,onTransitionEnter:I,onTransitionExited:v,open:F,slotProps:j={},slots:q={},theme:K,...J}=n,d={...n,closeAfterTransition:b,disableAutoFocus:f,disableEnforceFocus:A,disableEscapeKeyDown:C,disablePortal:N,disableRestoreFocus:E,disableScrollLock:l,hideBackdrop:m,keepMounted:k},{getRootProps:p,getBackdropProps:R,getTransitionProps:pe,portalRef:fe,isTopModal:be,exited:Q,hasTransition:Z}=je({...d,rootRef:r}),B={...d,exited:Q},w=Be(B),W={};if(h.props.tabIndex===void 0&&(W.tabIndex="-1"),Z){const{onEnter:M,onExited:z}=pe();W.onEnter=M,W.onExited=z}const ee={...J,slots:{root:g.Root,backdrop:g.Backdrop,...q},slotProps:{...T,...j}},[Te,ye]=re.useSlot("root",{elementType:Le,externalForwardedProps:ee,getSlotProps:p,additionalProps:{ref:r,as:y},ownerState:B,className:t.clsx(a,w==null?void 0:w.root,!B.open&&B.exited&&(w==null?void 0:w.hidden))}),[me,oe]=re.useSlot("backdrop",{elementType:i,externalForwardedProps:ee,additionalProps:s,getSlotProps:M=>R({...M,onClick:z=>{S&&S(z),M!=null&&M.onClick&&M.onClick(z)}}),className:t.clsx(s==null?void 0:s.className,w==null?void 0:w.backdrop),ownerState:B}),he=Y.useForkRef(s==null?void 0:s.ref,oe.ref);return!k&&!F&&(!Z||Q)?null:O.jsx(G.Portal,{ref:fe,container:x,disablePortal:N,children:O.jsxs(Te,{...ye,children:[!m&&i?O.jsx(me,{...oe,ref:he}):null,O.jsx(U,{disableEnforceFocus:A,disableAutoFocus:f,disableRestoreFocus:E,isEnabled:be,open:F,children:u.cloneElement(h,W)})]})})});process.env.NODE_ENV!=="production"&&(de.propTypes={BackdropComponent:t.PropTypes.elementType,BackdropProps:t.PropTypes.object,children:X.elementAcceptingRef.isRequired,classes:t.PropTypes.object,className:t.PropTypes.string,closeAfterTransition:t.PropTypes.bool,component:t.PropTypes.elementType,components:t.PropTypes.shape({Backdrop:t.PropTypes.elementType,Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({backdrop:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),container:t.PropTypes.oneOfType([G.HTMLElementType,t.PropTypes.func]),disableAutoFocus:t.PropTypes.bool,disableEnforceFocus:t.PropTypes.bool,disableEscapeKeyDown:t.PropTypes.bool,disablePortal:t.PropTypes.bool,disableRestoreFocus:t.PropTypes.bool,disableScrollLock:t.PropTypes.bool,hideBackdrop:t.PropTypes.bool,keepMounted:t.PropTypes.bool,onBackdropClick:t.PropTypes.func,onClose:t.PropTypes.func,onTransitionEnter:t.PropTypes.func,onTransitionExited:t.PropTypes.func,open:t.PropTypes.bool.isRequired,slotProps:t.PropTypes.shape({backdrop:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({backdrop:t.PropTypes.elementType,root:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});exports.FocusTrap=U;exports.Modal=de;exports.ModalManager=le;exports.getModalUtilityClass=ue;exports.getScrollbarSize=ae;exports.modalClasses=qe;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const w=require("react"),o=require("./identifier-5n4d7br9.cjs"),N=require("./useTheme-C_2IF7CS.cjs"),q=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-QmkL7lbM.cjs"),O=require("./memoTheme-C8EfvlY1.cjs"),$=require("./chainPropTypes-CEUi6Jb4.cjs");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const R=j(w);function C(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function y(e,r,t,a){const n=e[r];if(n==null||!Number.isInteger(n)){const i=C(n);return new RangeError(`Invalid ${a} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function P(e,r,...t){return e[r]===void 0?null:y(e,r,...t)}function l(){return null}P.isRequired=y;l.isRequired=l;const T=process.env.NODE_ENV==="production"?l:P;function b(e){return o.generateUtilityClass("MuiPaper",e)}const x=o.generateUtilityClasses("MuiPaper",["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"]),E=e=>{const{square:r,elevation:t,variant:a,classes:n}=e,i={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${t}`]};return p.composeClasses(i,b,n)},M=p.styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],!t.square&&r.rounded,t.variant==="elevation"&&r[`elevation${t.elevation}`]]}})(O.memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),m=R.forwardRef(function(r,t){var f;const a=p.useDefaultProps({props:r,name:"MuiPaper"}),n=N.useTheme(),{className:i,component:u="div",elevation:s=1,square:g=!1,variant:c="elevation",...v}=a,d={...a,component:u,elevation:s,square:g,variant:c},h=E(d);return process.env.NODE_ENV!=="production"&&n.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
2
|
+
`)),q.jsx(M,{as:u,ownerState:d,className:o.clsx(h.root,i),ref:t,...v,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":(f=n.vars.overlays)==null?void 0:f[s]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${o.alpha("#fff",o.getOverlayAlpha(s))}, ${o.alpha("#fff",o.getOverlayAlpha(s))})`}},...v.style}})});process.env.NODE_ENV!=="production"&&(m.propTypes={children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,component:o.PropTypes.elementType,elevation:$.chainPropTypes(T,e=>{const{elevation:r,variant:t}=e;return r>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.PropTypes.bool,style:o.PropTypes.object,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),variant:o.PropTypes.oneOfType([o.PropTypes.oneOf(["elevation","outlined"]),o.PropTypes.string])});exports.Paper=m;exports.getPaperUtilityClass=b;exports.integerPropType=T;exports.paperClasses=x;
|