@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143
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-DqUdx8FP.cjs +1 -0
- package/dist/Backdrop-ZqzrnV2E.js +360 -0
- package/dist/Box-Be6jhcmK.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
- package/dist/Button-C6UXybBV.cjs +1 -0
- package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
- package/dist/ButtonBase-DzK1n18b.cjs +74 -0
- package/dist/Card-DO4cAmNC.js +74 -0
- package/dist/Card-DsmqVSx1.cjs +1 -0
- package/dist/Checkbox-Btg05OjV.cjs +1 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
- package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
- package/dist/DatePicker-BXTOQETi.cjs +14 -0
- package/dist/DatePicker-D9suyaUZ.js +10846 -0
- package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
- package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
- package/dist/Delete-CpADFuIX.cjs +1 -0
- package/dist/Delete-DWXEW4-c.js +8 -0
- package/dist/DialogContent-D_JmqJt6.js +603 -0
- package/dist/DialogContent-gRISmOoj.cjs +1 -0
- package/dist/DialogTitle-CID6RFNo.js +134 -0
- package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
- package/dist/Divider-BjxxEFnr.cjs +1 -0
- package/dist/Divider-HhF8ckeh.js +296 -0
- package/dist/FormControlLabel-0-cflTuo.js +262 -0
- package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
- package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
- package/dist/FormGroup-DIP4u-gv.js +95 -0
- package/dist/FormLabel-Ch103TK-.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
- package/dist/Grow-BgMSa0P2.js +193 -0
- package/dist/Grow-D7OAahbU.cjs +1 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
- package/dist/IconButton-DbWtCGLB.cjs +2 -0
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
- package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
- package/dist/InputBase-BuVAuMNp.cjs +3 -0
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
- package/dist/Link-AXhb0uJT.cjs +1 -0
- package/dist/Link-Bdupo_fW.js +267 -0
- package/dist/Menu-DR-xtxpt.js +966 -0
- package/dist/Menu-_chQG-Za.cjs +7 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
- package/dist/MenuItem-De6eStq9.cjs +1 -0
- package/dist/Modal-C4Jb6sd1.js +750 -0
- package/dist/Modal-GXSEk85U.cjs +2 -0
- package/dist/Paper-CH4BABUB.cjs +2 -0
- package/dist/Paper-nlWPEgQh.js +185 -0
- package/dist/Popper-CjTplNLW.cjs +4 -0
- package/dist/Popper-CkAj_qw_.js +1407 -0
- package/dist/Portal-BcFwfiTx.js +86 -0
- package/dist/Portal-BruYsISj.cjs +1 -0
- package/dist/Radio-B0v6nDvz.js +313 -0
- package/dist/Radio-BbZnB74m.cjs +1 -0
- package/dist/Select-BFGwwKap.cjs +3 -0
- package/dist/Select-D9fwtA9U.js +2604 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
- package/dist/Stack-DMNZvXss.cjs +1 -0
- package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
- package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
- package/dist/Tabs-DEvwJheI.cjs +4 -0
- package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
- package/dist/TextField-waKWSLD4.cjs +1 -0
- package/dist/Tooltip-CFyOA9CT.cjs +4 -0
- package/dist/Tooltip-tgkiC77d.js +721 -0
- package/dist/Typography-B6KFjCtE.cjs +1 -0
- package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/capitalize-DASFtB-F.cjs +1 -0
- package/dist/capitalize-NmHVRYy8.js +9 -0
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +28 -27
- 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/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- 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 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- 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 +3 -0
- package/dist/components/index.es.js +276 -262
- 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 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- 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 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
- 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 +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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 +140 -90
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
- package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CSD96RzX.cjs +1 -0
- package/dist/dividerClasses-DrJ5oIdP.js +9 -0
- package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
- package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
- package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
- package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
- package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
- package/dist/index-BGCIdIru.js +2152 -0
- package/dist/index-BoQHt8iN.cjs +1 -0
- package/dist/index-CRdsZkOC.cjs +17 -0
- package/dist/index-CmEzEdk2.cjs +5 -0
- package/dist/index-XYfXmNqA.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +276 -262
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
- package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
- package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/useSlot-DsW0udy9.cjs +1 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
- package/dist/useSlotProps--FPRW1CI.cjs +1 -0
- package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
- package/dist/useTheme-B1YEBlI0.cjs +1 -0
- package/dist/useTheme-BXzyKigM.js +11 -0
- package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
- package/dist/useTheme-DFJNv-zn.cjs +1 -0
- package/dist/useThemeProps-BwyYDczI.cjs +1 -0
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
- package/dist/useTimeout-NIA-3R5R.cjs +1 -0
- package/dist/utils-70jLtOQP.js +391 -0
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-DlWHEABQ.cjs +1 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/Box-H49yQEt_.cjs +0 -1
- package/dist/Button-qc45QbX6.cjs +0 -1
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/Checkbox-CuYTY0gd.cjs +0 -1
- package/dist/CircularProgress-BPHINMQw.cjs +0 -28
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Stack-CEjx3KHM.cjs +0 -1
- package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/TextField-BVAkADOb.cjs +0 -1
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/Typography-5OodZ94T.cjs +0 -1
- package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
- package/dist/extendSxProp-D11-pC6h.cjs +0 -1
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/identifier-BQH88SE0.cjs +0 -59
- package/dist/index-CNv8ppur.cjs +0 -1
- package/dist/index-D7nFYLYq.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
- package/dist/useSlot-42jgZftI.cjs +0 -1
- package/dist/useTheme-CtT7O-Wk.js +0 -11
- package/dist/useTheme-cVN-YQNB.cjs +0 -1
- package/dist/useTheme-tZYpFplW.cjs +0 -1
- package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
- package/dist/useTimeout-DWEGwfTA.cjs +0 -1
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
import * as d from "react";
|
|
2
|
+
import { H as y, I as x, G as g, P as o } from "./generateUtilityClasses--6MLb_cS.js";
|
|
3
|
+
import { u as G } from "./useTheme-BXzyKigM.js";
|
|
4
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
5
|
+
import { s as f, u as S, c as w } from "./DefaultPropsProvider-DUWovK-8.js";
|
|
6
|
+
import { m as B } from "./memoTheme-o8RCKrNG.js";
|
|
7
|
+
import { B as J, F as Q } from "./Backdrop-ZqzrnV2E.js";
|
|
8
|
+
import { M as Z } from "./Modal-C4Jb6sd1.js";
|
|
9
|
+
import { c as u } from "./capitalize-NmHVRYy8.js";
|
|
10
|
+
import { P as R } from "./Paper-nlWPEgQh.js";
|
|
11
|
+
import { u as oo } from "./useId-CK6Kn3Tn.js";
|
|
12
|
+
function eo(a) {
|
|
13
|
+
return y("MuiDialog", a);
|
|
14
|
+
}
|
|
15
|
+
const k = x("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), $ = /* @__PURE__ */ d.createContext({});
|
|
16
|
+
process.env.NODE_ENV !== "production" && ($.displayName = "DialogContext");
|
|
17
|
+
const ao = f(J, {
|
|
18
|
+
name: "MuiDialog",
|
|
19
|
+
slot: "Backdrop",
|
|
20
|
+
overrides: (a, e) => e.backdrop
|
|
21
|
+
})({
|
|
22
|
+
// Improve scrollable dialog support.
|
|
23
|
+
zIndex: -1
|
|
24
|
+
}), to = (a) => {
|
|
25
|
+
const {
|
|
26
|
+
classes: e,
|
|
27
|
+
scroll: t,
|
|
28
|
+
maxWidth: r,
|
|
29
|
+
fullWidth: s,
|
|
30
|
+
fullScreen: i
|
|
31
|
+
} = a, n = {
|
|
32
|
+
root: ["root"],
|
|
33
|
+
container: ["container", `scroll${u(t)}`],
|
|
34
|
+
paper: ["paper", `paperScroll${u(t)}`, `paperWidth${u(String(r))}`, s && "paperFullWidth", i && "paperFullScreen"]
|
|
35
|
+
};
|
|
36
|
+
return w(n, eo, e);
|
|
37
|
+
}, ro = f(Z, {
|
|
38
|
+
name: "MuiDialog",
|
|
39
|
+
slot: "Root",
|
|
40
|
+
overridesResolver: (a, e) => e.root
|
|
41
|
+
})({
|
|
42
|
+
"@media print": {
|
|
43
|
+
// Use !important to override the Modal inline-style.
|
|
44
|
+
position: "absolute !important"
|
|
45
|
+
}
|
|
46
|
+
}), so = f("div", {
|
|
47
|
+
name: "MuiDialog",
|
|
48
|
+
slot: "Container",
|
|
49
|
+
overridesResolver: (a, e) => {
|
|
50
|
+
const {
|
|
51
|
+
ownerState: t
|
|
52
|
+
} = a;
|
|
53
|
+
return [e.container, e[`scroll${u(t.scroll)}`]];
|
|
54
|
+
}
|
|
55
|
+
})({
|
|
56
|
+
height: "100%",
|
|
57
|
+
"@media print": {
|
|
58
|
+
height: "auto"
|
|
59
|
+
},
|
|
60
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
61
|
+
outline: 0,
|
|
62
|
+
variants: [{
|
|
63
|
+
props: {
|
|
64
|
+
scroll: "paper"
|
|
65
|
+
},
|
|
66
|
+
style: {
|
|
67
|
+
display: "flex",
|
|
68
|
+
justifyContent: "center",
|
|
69
|
+
alignItems: "center"
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: {
|
|
73
|
+
scroll: "body"
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
overflowY: "auto",
|
|
77
|
+
overflowX: "hidden",
|
|
78
|
+
textAlign: "center",
|
|
79
|
+
"&::after": {
|
|
80
|
+
content: '""',
|
|
81
|
+
display: "inline-block",
|
|
82
|
+
verticalAlign: "middle",
|
|
83
|
+
height: "100%",
|
|
84
|
+
width: "0"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}]
|
|
88
|
+
}), io = f(R, {
|
|
89
|
+
name: "MuiDialog",
|
|
90
|
+
slot: "Paper",
|
|
91
|
+
overridesResolver: (a, e) => {
|
|
92
|
+
const {
|
|
93
|
+
ownerState: t
|
|
94
|
+
} = a;
|
|
95
|
+
return [e.paper, e[`scrollPaper${u(t.scroll)}`], e[`paperWidth${u(String(t.maxWidth))}`], t.fullWidth && e.paperFullWidth, t.fullScreen && e.paperFullScreen];
|
|
96
|
+
}
|
|
97
|
+
})(B(({
|
|
98
|
+
theme: a
|
|
99
|
+
}) => ({
|
|
100
|
+
margin: 32,
|
|
101
|
+
position: "relative",
|
|
102
|
+
overflowY: "auto",
|
|
103
|
+
"@media print": {
|
|
104
|
+
overflowY: "visible",
|
|
105
|
+
boxShadow: "none"
|
|
106
|
+
},
|
|
107
|
+
variants: [{
|
|
108
|
+
props: {
|
|
109
|
+
scroll: "paper"
|
|
110
|
+
},
|
|
111
|
+
style: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
flexDirection: "column",
|
|
114
|
+
maxHeight: "calc(100% - 64px)"
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
props: {
|
|
118
|
+
scroll: "body"
|
|
119
|
+
},
|
|
120
|
+
style: {
|
|
121
|
+
display: "inline-block",
|
|
122
|
+
verticalAlign: "middle",
|
|
123
|
+
textAlign: "initial"
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
props: ({
|
|
127
|
+
ownerState: e
|
|
128
|
+
}) => !e.maxWidth,
|
|
129
|
+
style: {
|
|
130
|
+
maxWidth: "calc(100% - 64px)"
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
props: {
|
|
134
|
+
maxWidth: "xs"
|
|
135
|
+
},
|
|
136
|
+
style: {
|
|
137
|
+
maxWidth: a.breakpoints.unit === "px" ? Math.max(a.breakpoints.values.xs, 444) : `max(${a.breakpoints.values.xs}${a.breakpoints.unit}, 444px)`,
|
|
138
|
+
[`&.${k.paperScrollBody}`]: {
|
|
139
|
+
[a.breakpoints.down(Math.max(a.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
140
|
+
maxWidth: "calc(100% - 64px)"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, ...Object.keys(a.breakpoints.values).filter((e) => e !== "xs").map((e) => ({
|
|
145
|
+
props: {
|
|
146
|
+
maxWidth: e
|
|
147
|
+
},
|
|
148
|
+
style: {
|
|
149
|
+
maxWidth: `${a.breakpoints.values[e]}${a.breakpoints.unit}`,
|
|
150
|
+
[`&.${k.paperScrollBody}`]: {
|
|
151
|
+
[a.breakpoints.down(a.breakpoints.values[e] + 32 * 2)]: {
|
|
152
|
+
maxWidth: "calc(100% - 64px)"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
})), {
|
|
157
|
+
props: ({
|
|
158
|
+
ownerState: e
|
|
159
|
+
}) => e.fullWidth,
|
|
160
|
+
style: {
|
|
161
|
+
width: "calc(100% - 64px)"
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
props: ({
|
|
165
|
+
ownerState: e
|
|
166
|
+
}) => e.fullScreen,
|
|
167
|
+
style: {
|
|
168
|
+
margin: 0,
|
|
169
|
+
width: "100%",
|
|
170
|
+
maxWidth: "100%",
|
|
171
|
+
height: "100%",
|
|
172
|
+
maxHeight: "none",
|
|
173
|
+
borderRadius: 0,
|
|
174
|
+
[`&.${k.paperScrollBody}`]: {
|
|
175
|
+
margin: 0,
|
|
176
|
+
maxWidth: "100%"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}]
|
|
180
|
+
}))), no = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
181
|
+
const r = S({
|
|
182
|
+
props: e,
|
|
183
|
+
name: "MuiDialog"
|
|
184
|
+
}), s = G(), i = {
|
|
185
|
+
enter: s.transitions.duration.enteringScreen,
|
|
186
|
+
exit: s.transitions.duration.leavingScreen
|
|
187
|
+
}, {
|
|
188
|
+
"aria-describedby": n,
|
|
189
|
+
"aria-labelledby": l,
|
|
190
|
+
"aria-modal": m = !0,
|
|
191
|
+
BackdropComponent: j,
|
|
192
|
+
BackdropProps: A,
|
|
193
|
+
children: E,
|
|
194
|
+
className: F,
|
|
195
|
+
disableEscapeKeyDown: T = !1,
|
|
196
|
+
fullScreen: U = !1,
|
|
197
|
+
fullWidth: I = !1,
|
|
198
|
+
maxWidth: V = "sm",
|
|
199
|
+
onBackdropClick: W,
|
|
200
|
+
onClick: M,
|
|
201
|
+
onClose: v,
|
|
202
|
+
open: P,
|
|
203
|
+
PaperComponent: L = R,
|
|
204
|
+
PaperProps: N = {},
|
|
205
|
+
scroll: Y = "paper",
|
|
206
|
+
TransitionComponent: _ = Q,
|
|
207
|
+
transitionDuration: O = i,
|
|
208
|
+
TransitionProps: H,
|
|
209
|
+
...K
|
|
210
|
+
} = r, b = {
|
|
211
|
+
...r,
|
|
212
|
+
disableEscapeKeyDown: T,
|
|
213
|
+
fullScreen: U,
|
|
214
|
+
fullWidth: I,
|
|
215
|
+
maxWidth: V,
|
|
216
|
+
scroll: Y
|
|
217
|
+
}, h = to(b), D = d.useRef(), X = (c) => {
|
|
218
|
+
D.current = c.target === c.currentTarget;
|
|
219
|
+
}, z = (c) => {
|
|
220
|
+
M && M(c), D.current && (D.current = null, W && W(c), v && v(c, "backdropClick"));
|
|
221
|
+
}, C = oo(l), q = d.useMemo(() => ({
|
|
222
|
+
titleId: C
|
|
223
|
+
}), [C]);
|
|
224
|
+
return /* @__PURE__ */ p(ro, {
|
|
225
|
+
className: g(h.root, F),
|
|
226
|
+
closeAfterTransition: !0,
|
|
227
|
+
components: {
|
|
228
|
+
Backdrop: ao
|
|
229
|
+
},
|
|
230
|
+
componentsProps: {
|
|
231
|
+
backdrop: {
|
|
232
|
+
transitionDuration: O,
|
|
233
|
+
as: j,
|
|
234
|
+
...A
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
disableEscapeKeyDown: T,
|
|
238
|
+
onClose: v,
|
|
239
|
+
open: P,
|
|
240
|
+
ref: t,
|
|
241
|
+
onClick: z,
|
|
242
|
+
ownerState: b,
|
|
243
|
+
...K,
|
|
244
|
+
children: /* @__PURE__ */ p(_, {
|
|
245
|
+
appear: !0,
|
|
246
|
+
in: P,
|
|
247
|
+
timeout: O,
|
|
248
|
+
role: "presentation",
|
|
249
|
+
...H,
|
|
250
|
+
children: /* @__PURE__ */ p(so, {
|
|
251
|
+
className: g(h.container),
|
|
252
|
+
onMouseDown: X,
|
|
253
|
+
ownerState: b,
|
|
254
|
+
children: /* @__PURE__ */ p(io, {
|
|
255
|
+
as: L,
|
|
256
|
+
elevation: 24,
|
|
257
|
+
role: "dialog",
|
|
258
|
+
"aria-describedby": n,
|
|
259
|
+
"aria-labelledby": C,
|
|
260
|
+
"aria-modal": m,
|
|
261
|
+
...N,
|
|
262
|
+
className: g(h.paper, N.className),
|
|
263
|
+
ownerState: b,
|
|
264
|
+
children: /* @__PURE__ */ p($.Provider, {
|
|
265
|
+
value: q,
|
|
266
|
+
children: E
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
})
|
|
270
|
+
})
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
274
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
275
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
276
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
277
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
278
|
+
/**
|
|
279
|
+
* The id(s) of the element(s) that describe the dialog.
|
|
280
|
+
*/
|
|
281
|
+
"aria-describedby": o.string,
|
|
282
|
+
/**
|
|
283
|
+
* The id(s) of the element(s) that label the dialog.
|
|
284
|
+
*/
|
|
285
|
+
"aria-labelledby": o.string,
|
|
286
|
+
/**
|
|
287
|
+
* Informs assistive technologies that the element is modal.
|
|
288
|
+
* It's added on the element with role="dialog".
|
|
289
|
+
* @default true
|
|
290
|
+
*/
|
|
291
|
+
"aria-modal": o.oneOfType([o.oneOf(["false", "true"]), o.bool]),
|
|
292
|
+
/**
|
|
293
|
+
* A backdrop component. This prop enables custom backdrop rendering.
|
|
294
|
+
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
295
|
+
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
296
|
+
* @default styled(Backdrop, {
|
|
297
|
+
* name: 'MuiModal',
|
|
298
|
+
* slot: 'Backdrop',
|
|
299
|
+
* overridesResolver: (props, styles) => {
|
|
300
|
+
* return styles.backdrop;
|
|
301
|
+
* },
|
|
302
|
+
* })({
|
|
303
|
+
* zIndex: -1,
|
|
304
|
+
* })
|
|
305
|
+
*/
|
|
306
|
+
BackdropComponent: o.elementType,
|
|
307
|
+
/**
|
|
308
|
+
* @ignore
|
|
309
|
+
*/
|
|
310
|
+
BackdropProps: o.object,
|
|
311
|
+
/**
|
|
312
|
+
* Dialog children, usually the included sub-components.
|
|
313
|
+
*/
|
|
314
|
+
children: o.node,
|
|
315
|
+
/**
|
|
316
|
+
* Override or extend the styles applied to the component.
|
|
317
|
+
*/
|
|
318
|
+
classes: o.object,
|
|
319
|
+
/**
|
|
320
|
+
* @ignore
|
|
321
|
+
*/
|
|
322
|
+
className: o.string,
|
|
323
|
+
/**
|
|
324
|
+
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
325
|
+
* @default false
|
|
326
|
+
*/
|
|
327
|
+
disableEscapeKeyDown: o.bool,
|
|
328
|
+
/**
|
|
329
|
+
* If `true`, the dialog is full-screen.
|
|
330
|
+
* @default false
|
|
331
|
+
*/
|
|
332
|
+
fullScreen: o.bool,
|
|
333
|
+
/**
|
|
334
|
+
* If `true`, the dialog stretches to `maxWidth`.
|
|
335
|
+
*
|
|
336
|
+
* Notice that the dialog width grow is limited by the default margin.
|
|
337
|
+
* @default false
|
|
338
|
+
*/
|
|
339
|
+
fullWidth: o.bool,
|
|
340
|
+
/**
|
|
341
|
+
* Determine the max-width of the dialog.
|
|
342
|
+
* The dialog width grows with the size of the screen.
|
|
343
|
+
* Set to `false` to disable `maxWidth`.
|
|
344
|
+
* @default 'sm'
|
|
345
|
+
*/
|
|
346
|
+
maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
|
|
347
|
+
/**
|
|
348
|
+
* Callback fired when the backdrop is clicked.
|
|
349
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
350
|
+
*/
|
|
351
|
+
onBackdropClick: o.func,
|
|
352
|
+
/**
|
|
353
|
+
* @ignore
|
|
354
|
+
*/
|
|
355
|
+
onClick: o.func,
|
|
356
|
+
/**
|
|
357
|
+
* Callback fired when the component requests to be closed.
|
|
358
|
+
*
|
|
359
|
+
* @param {object} event The event source of the callback.
|
|
360
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
361
|
+
*/
|
|
362
|
+
onClose: o.func,
|
|
363
|
+
/**
|
|
364
|
+
* If `true`, the component is shown.
|
|
365
|
+
*/
|
|
366
|
+
open: o.bool.isRequired,
|
|
367
|
+
/**
|
|
368
|
+
* The component used to render the body of the dialog.
|
|
369
|
+
* @default Paper
|
|
370
|
+
*/
|
|
371
|
+
PaperComponent: o.elementType,
|
|
372
|
+
/**
|
|
373
|
+
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
374
|
+
* @default {}
|
|
375
|
+
*/
|
|
376
|
+
PaperProps: o.object,
|
|
377
|
+
/**
|
|
378
|
+
* Determine the container for scrolling the dialog.
|
|
379
|
+
* @default 'paper'
|
|
380
|
+
*/
|
|
381
|
+
scroll: o.oneOf(["body", "paper"]),
|
|
382
|
+
/**
|
|
383
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
384
|
+
*/
|
|
385
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
386
|
+
/**
|
|
387
|
+
* The component used for the transition.
|
|
388
|
+
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
389
|
+
* @default Fade
|
|
390
|
+
*/
|
|
391
|
+
TransitionComponent: o.elementType,
|
|
392
|
+
/**
|
|
393
|
+
* The duration for the transition, in milliseconds.
|
|
394
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
395
|
+
* @default {
|
|
396
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
397
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
398
|
+
* }
|
|
399
|
+
*/
|
|
400
|
+
transitionDuration: o.oneOfType([o.number, o.shape({
|
|
401
|
+
appear: o.number,
|
|
402
|
+
enter: o.number,
|
|
403
|
+
exit: o.number
|
|
404
|
+
})]),
|
|
405
|
+
/**
|
|
406
|
+
* Props applied to the transition element.
|
|
407
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
408
|
+
*/
|
|
409
|
+
TransitionProps: o.object
|
|
410
|
+
});
|
|
411
|
+
function lo(a) {
|
|
412
|
+
return y("MuiDialogActions", a);
|
|
413
|
+
}
|
|
414
|
+
const Mo = x("MuiDialogActions", ["root", "spacing"]), po = (a) => {
|
|
415
|
+
const {
|
|
416
|
+
classes: e,
|
|
417
|
+
disableSpacing: t
|
|
418
|
+
} = a;
|
|
419
|
+
return w({
|
|
420
|
+
root: ["root", !t && "spacing"]
|
|
421
|
+
}, lo, e);
|
|
422
|
+
}, co = f("div", {
|
|
423
|
+
name: "MuiDialogActions",
|
|
424
|
+
slot: "Root",
|
|
425
|
+
overridesResolver: (a, e) => {
|
|
426
|
+
const {
|
|
427
|
+
ownerState: t
|
|
428
|
+
} = a;
|
|
429
|
+
return [e.root, !t.disableSpacing && e.spacing];
|
|
430
|
+
}
|
|
431
|
+
})({
|
|
432
|
+
display: "flex",
|
|
433
|
+
alignItems: "center",
|
|
434
|
+
padding: 8,
|
|
435
|
+
justifyContent: "flex-end",
|
|
436
|
+
flex: "0 0 auto",
|
|
437
|
+
variants: [{
|
|
438
|
+
props: ({
|
|
439
|
+
ownerState: a
|
|
440
|
+
}) => !a.disableSpacing,
|
|
441
|
+
style: {
|
|
442
|
+
"& > :not(style) ~ :not(style)": {
|
|
443
|
+
marginLeft: 8
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}]
|
|
447
|
+
}), uo = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
448
|
+
const r = S({
|
|
449
|
+
props: e,
|
|
450
|
+
name: "MuiDialogActions"
|
|
451
|
+
}), {
|
|
452
|
+
className: s,
|
|
453
|
+
disableSpacing: i = !1,
|
|
454
|
+
...n
|
|
455
|
+
} = r, l = {
|
|
456
|
+
...r,
|
|
457
|
+
disableSpacing: i
|
|
458
|
+
}, m = po(l);
|
|
459
|
+
return /* @__PURE__ */ p(co, {
|
|
460
|
+
className: g(m.root, s),
|
|
461
|
+
ownerState: l,
|
|
462
|
+
ref: t,
|
|
463
|
+
...n
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
process.env.NODE_ENV !== "production" && (uo.propTypes = {
|
|
467
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
468
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
469
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
470
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
471
|
+
/**
|
|
472
|
+
* The content of the component.
|
|
473
|
+
*/
|
|
474
|
+
children: o.node,
|
|
475
|
+
/**
|
|
476
|
+
* Override or extend the styles applied to the component.
|
|
477
|
+
*/
|
|
478
|
+
classes: o.object,
|
|
479
|
+
/**
|
|
480
|
+
* @ignore
|
|
481
|
+
*/
|
|
482
|
+
className: o.string,
|
|
483
|
+
/**
|
|
484
|
+
* If `true`, the actions do not have additional margin.
|
|
485
|
+
* @default false
|
|
486
|
+
*/
|
|
487
|
+
disableSpacing: o.bool,
|
|
488
|
+
/**
|
|
489
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
490
|
+
*/
|
|
491
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
492
|
+
});
|
|
493
|
+
function fo(a) {
|
|
494
|
+
return y("MuiDialogContent", a);
|
|
495
|
+
}
|
|
496
|
+
const Po = x("MuiDialogContent", ["root", "dividers"]);
|
|
497
|
+
function No(a) {
|
|
498
|
+
return y("MuiDialogTitle", a);
|
|
499
|
+
}
|
|
500
|
+
const mo = x("MuiDialogTitle", ["root"]), go = (a) => {
|
|
501
|
+
const {
|
|
502
|
+
classes: e,
|
|
503
|
+
dividers: t
|
|
504
|
+
} = a;
|
|
505
|
+
return w({
|
|
506
|
+
root: ["root", t && "dividers"]
|
|
507
|
+
}, fo, e);
|
|
508
|
+
}, bo = f("div", {
|
|
509
|
+
name: "MuiDialogContent",
|
|
510
|
+
slot: "Root",
|
|
511
|
+
overridesResolver: (a, e) => {
|
|
512
|
+
const {
|
|
513
|
+
ownerState: t
|
|
514
|
+
} = a;
|
|
515
|
+
return [e.root, t.dividers && e.dividers];
|
|
516
|
+
}
|
|
517
|
+
})(B(({
|
|
518
|
+
theme: a
|
|
519
|
+
}) => ({
|
|
520
|
+
flex: "1 1 auto",
|
|
521
|
+
// Add iOS momentum scrolling for iOS < 13.0
|
|
522
|
+
WebkitOverflowScrolling: "touch",
|
|
523
|
+
overflowY: "auto",
|
|
524
|
+
padding: "20px 24px",
|
|
525
|
+
variants: [{
|
|
526
|
+
props: ({
|
|
527
|
+
ownerState: e
|
|
528
|
+
}) => e.dividers,
|
|
529
|
+
style: {
|
|
530
|
+
padding: "16px 24px",
|
|
531
|
+
borderTop: `1px solid ${(a.vars || a).palette.divider}`,
|
|
532
|
+
borderBottom: `1px solid ${(a.vars || a).palette.divider}`
|
|
533
|
+
}
|
|
534
|
+
}, {
|
|
535
|
+
props: ({
|
|
536
|
+
ownerState: e
|
|
537
|
+
}) => !e.dividers,
|
|
538
|
+
style: {
|
|
539
|
+
[`.${mo.root} + &`]: {
|
|
540
|
+
paddingTop: 0
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}]
|
|
544
|
+
}))), yo = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
545
|
+
const r = S({
|
|
546
|
+
props: e,
|
|
547
|
+
name: "MuiDialogContent"
|
|
548
|
+
}), {
|
|
549
|
+
className: s,
|
|
550
|
+
dividers: i = !1,
|
|
551
|
+
...n
|
|
552
|
+
} = r, l = {
|
|
553
|
+
...r,
|
|
554
|
+
dividers: i
|
|
555
|
+
}, m = go(l);
|
|
556
|
+
return /* @__PURE__ */ p(bo, {
|
|
557
|
+
className: g(m.root, s),
|
|
558
|
+
ownerState: l,
|
|
559
|
+
ref: t,
|
|
560
|
+
...n
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
process.env.NODE_ENV !== "production" && (yo.propTypes = {
|
|
564
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
565
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
566
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
567
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
568
|
+
/**
|
|
569
|
+
* The content of the component.
|
|
570
|
+
*/
|
|
571
|
+
children: o.node,
|
|
572
|
+
/**
|
|
573
|
+
* Override or extend the styles applied to the component.
|
|
574
|
+
*/
|
|
575
|
+
classes: o.object,
|
|
576
|
+
/**
|
|
577
|
+
* @ignore
|
|
578
|
+
*/
|
|
579
|
+
className: o.string,
|
|
580
|
+
/**
|
|
581
|
+
* Display the top and bottom dividers.
|
|
582
|
+
* @default false
|
|
583
|
+
*/
|
|
584
|
+
dividers: o.bool,
|
|
585
|
+
/**
|
|
586
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
587
|
+
*/
|
|
588
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
589
|
+
});
|
|
590
|
+
export {
|
|
591
|
+
no as D,
|
|
592
|
+
uo as a,
|
|
593
|
+
yo as b,
|
|
594
|
+
Mo as c,
|
|
595
|
+
k as d,
|
|
596
|
+
lo as e,
|
|
597
|
+
Po as f,
|
|
598
|
+
eo as g,
|
|
599
|
+
fo as h,
|
|
600
|
+
mo as i,
|
|
601
|
+
No as j,
|
|
602
|
+
$ as k
|
|
603
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Z=require("react"),e=require("./generateUtilityClasses-DEQ18TAF.cjs"),ee=require("./useTheme-B1YEBlI0.cjs"),c=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-DE-Tx_ov.cjs"),W=require("./memoTheme-D99chbOP.cjs"),j=require("./Backdrop-DqUdx8FP.cjs"),oe=require("./Modal-GXSEk85U.cjs"),u=require("./capitalize-DASFtB-F.cjs"),M=require("./Paper-CH4BABUB.cjs"),se=require("./useId-DNXtOFeX.cjs");function re(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const y=re(Z);function O(o){return e.generateUtilityClass("MuiDialog",o)}const f=e.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),C=y.createContext({});process.env.NODE_ENV!=="production"&&(C.displayName="DialogContext");const te=a.styled(j.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(o,s)=>s.backdrop})({zIndex:-1}),ae=o=>{const{classes:s,scroll:r,maxWidth:t,fullWidth:i,fullScreen:n}=o,l={root:["root"],container:["container",`scroll${u.capitalize(r)}`],paper:["paper",`paperScroll${u.capitalize(r)}`,`paperWidth${u.capitalize(String(t))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return a.composeClasses(l,O,s)},ie=a.styled(oe.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(o,s)=>s.root})({"@media print":{position:"absolute !important"}}),ne=a.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.container,s[`scroll${u.capitalize(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),le=a.styled(M.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.paper,s[`scrollPaper${u.capitalize(r.scroll)}`],s[`paperWidth${u.capitalize(String(r.maxWidth))}`],r.fullWidth&&s.paperFullWidth,r.fullScreen&&s.paperFullScreen]}})(W.memoTheme(({theme:o})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:s})=>!s.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:o.breakpoints.unit==="px"?Math.max(o.breakpoints.values.xs,444):`max(${o.breakpoints.values.xs}${o.breakpoints.unit}, 444px)`,[`&.${f.paperScrollBody}`]:{[o.breakpoints.down(Math.max(o.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(o.breakpoints.values).filter(s=>s!=="xs").map(s=>({props:{maxWidth:s},style:{maxWidth:`${o.breakpoints.values[s]}${o.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[o.breakpoints.down(o.breakpoints.values[s]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:s})=>s.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:s})=>s.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),N=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialog"}),i=ee.useTheme(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":p,"aria-modal":g=!0,BackdropComponent:q,BackdropProps:E,children:z,className:F,disableEscapeKeyDown:D=!1,fullScreen:_=!1,fullWidth:I=!1,maxWidth:V="sm",onBackdropClick:v,onClick:h,onClose:P,open:k,PaperComponent:L=M.Paper,PaperProps:S={},scroll:Y="paper",TransitionComponent:K=j.Fade,transitionDuration:w=n,TransitionProps:X,...H}=t,T={...t,disableEscapeKeyDown:D,fullScreen:_,fullWidth:I,maxWidth:V,scroll:Y},b=ae(T),m=y.useRef(),G=d=>{m.current=d.target===d.currentTarget},J=d=>{h&&h(d),m.current&&(m.current=null,v&&v(d),P&&P(d,"backdropClick"))},x=se.useId(p),Q=y.useMemo(()=>({titleId:x}),[x]);return c.jsx(ie,{className:e.clsx(b.root,F),closeAfterTransition:!0,components:{Backdrop:te},componentsProps:{backdrop:{transitionDuration:w,as:q,...E}},disableEscapeKeyDown:D,onClose:P,open:k,ref:r,onClick:J,ownerState:T,...H,children:c.jsx(K,{appear:!0,in:k,timeout:w,role:"presentation",...X,children:c.jsx(ne,{className:e.clsx(b.container),onMouseDown:G,ownerState:T,children:c.jsx(le,{as:L,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":x,"aria-modal":g,...S,className:e.clsx(b.paper,S.className),ownerState:T,children:c.jsx(C.Provider,{value:Q,children:z})})})})})});process.env.NODE_ENV!=="production"&&(N.propTypes={"aria-describedby":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,"aria-modal":e.PropTypes.oneOfType([e.PropTypes.oneOf(["false","true"]),e.PropTypes.bool]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableEscapeKeyDown:e.PropTypes.bool,fullScreen:e.PropTypes.bool,fullWidth:e.PropTypes.bool,maxWidth:e.PropTypes.oneOfType([e.PropTypes.oneOf(["xs","sm","md","lg","xl",!1]),e.PropTypes.string]),onBackdropClick:e.PropTypes.func,onClick:e.PropTypes.func,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperComponent:e.PropTypes.elementType,PaperProps:e.PropTypes.object,scroll:e.PropTypes.oneOf(["body","paper"]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});function R(o){return e.generateUtilityClass("MuiDialogActions",o)}const pe=e.generateUtilityClasses("MuiDialogActions",["root","spacing"]),ce=o=>{const{classes:s,disableSpacing:r}=o,t={root:["root",!r&&"spacing"]};return a.composeClasses(t,R,s)},de=a.styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,!r.disableSpacing&&s.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:o})=>!o.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),U=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialogActions"}),{className:i,disableSpacing:n=!1,...l}=t,p={...t,disableSpacing:n},g=ce(p);return c.jsx(de,{className:e.clsx(g.root,i),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(U.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableSpacing:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function B(o){return e.generateUtilityClass("MuiDialogContent",o)}const ue=e.generateUtilityClasses("MuiDialogContent",["root","dividers"]);function ye(o){return e.generateUtilityClass("MuiDialogTitle",o)}const $=e.generateUtilityClasses("MuiDialogTitle",["root"]),ge=o=>{const{classes:s,dividers:r}=o,t={root:["root",r&&"dividers"]};return a.composeClasses(t,B,s)},Te=a.styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,r.dividers&&s.dividers]}})(W.memoTheme(({theme:o})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:s})=>s.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(o.vars||o).palette.divider}`,borderBottom:`1px solid ${(o.vars||o).palette.divider}`}},{props:({ownerState:s})=>!s.dividers,style:{[`.${$.root} + &`]:{paddingTop:0}}}]}))),A=y.forwardRef(function(s,r){const t=a.useDefaultProps({props:s,name:"MuiDialogContent"}),{className:i,dividers:n=!1,...l}=t,p={...t,dividers:n},g=ge(p);return c.jsx(Te,{className:e.clsx(g.root,i),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(A.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,dividers:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.Dialog=N;exports.DialogActions=U;exports.DialogContent=A;exports.DialogContext=C;exports.dialogActionsClasses=pe;exports.dialogClasses=f;exports.dialogContentClasses=ue;exports.dialogTitleClasses=$;exports.getDialogActionsUtilityClass=R;exports.getDialogContentUtilityClass=B;exports.getDialogTitleUtilityClass=ye;exports.getDialogUtilityClass=O;
|