@cgi-learning-hub/ui 1.3.3-dev.1732021842 → 1.3.3-dev.1732274173
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-DcJf9G30.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-D9cHa8GX.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-Cx05eP88.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-z74SMnd9.js} +232 -240
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Card-mAtxoJ0p.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-B5osG37N.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-Ds7y4pei.js +10815 -0
- package/dist/DatePicker-MSoGmJoG.cjs +14 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-BYFwNPLt.js} +31 -31
- package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-B_NH_if8.js +602 -0
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogTitle-Bx7712Li.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- package/dist/Divider-CMuvurmv.js +296 -0
- package/dist/Divider-DlN3YfOR.cjs +1 -0
- package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
- package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
- package/dist/FormGroup-CFDapyxc.cjs +1 -0
- package/dist/FormGroup-DO8m1X6w.js +95 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-B11aqT37.js} +36 -42
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/Grow-BKrOFfC1.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DLcGpM1F.js} +5 -5
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CHytwRH8.js} +59 -59
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-D_0FIsgB.js +266 -0
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Modal-DT240BJZ.js +750 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Paper-vlsh8Nca.js +185 -0
- package/dist/Popper-BSaTZXvX.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-meM40OhI.js +86 -0
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/Select-CKsf044t.js +2602 -0
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-DbWQHN5i.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-ByZJO-zF.js} +2447 -3849
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BqJSX1la.js} +284 -282
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{TextField-BVAkADOb.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-C-B529_r.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/Tooltip-41rGxwva.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-C_ESP41L.js → Typography-CizHc1nM.js} +4 -4
- package/dist/{Typography-5OodZ94T.cjs → Typography-DyMSnhvs.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- 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 +12 -12
- 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 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- 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 +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- 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 +5 -5
- 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.es.js +282 -272
- 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 +33 -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 +378 -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 +2 -2
- 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 +8 -8
- 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-BS0Qe85N.js} +3 -3
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/elementTypeAcceptingRef-DOFWAguJ.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{fr-B8_MxRl5.js → fr-Djc-bU-B.js} +23 -23
- package/dist/{identifier-BqadgaK7.js → identifier-B7MO0PvI.js} +490 -489
- package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-BUxqDIr9.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-yb8koCDz.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +282 -272
- 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-DfGVDRrB.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
- 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/refType-BqQbA6de.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-BSVkAc2J.js} +2 -2
- package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-Znm_nF2D.js} +4 -4
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-jA5a7WHN.js +391 -0
- package/package.json +1 -1
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- 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/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/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- 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/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
import { H as V, I as $, N as v, n as l, L, G as P, P as o } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { u as j } from "./useTheme-CzzAEESs.js";
|
|
4
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
5
|
+
import { s as F, u as N, c as R } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
6
|
+
import { m as M } from "./memoTheme-CqfvfBST.js";
|
|
7
|
+
import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { T as U } from "./Typography-CizHc1nM.js";
|
|
9
|
+
import { e as z } from "./elementTypeAcceptingRef-DOFWAguJ.js";
|
|
10
|
+
import { i as h } from "./isFocusVisible-CPZqtjv2.js";
|
|
11
|
+
function H(e) {
|
|
12
|
+
return V("MuiLink", e);
|
|
13
|
+
}
|
|
14
|
+
const E = $("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
|
|
15
|
+
theme: e,
|
|
16
|
+
ownerState: r
|
|
17
|
+
}) => {
|
|
18
|
+
const n = r.color, t = v(e, `palette.${n}`, !1) || r.color, s = v(e, `palette.${n}Channel`);
|
|
19
|
+
return "vars" in e && s ? `rgba(${s} / 0.4)` : l(t, 0.4);
|
|
20
|
+
}, k = {
|
|
21
|
+
primary: !0,
|
|
22
|
+
secondary: !0,
|
|
23
|
+
error: !0,
|
|
24
|
+
info: !0,
|
|
25
|
+
success: !0,
|
|
26
|
+
warning: !0,
|
|
27
|
+
textPrimary: !0,
|
|
28
|
+
textSecondary: !0,
|
|
29
|
+
textDisabled: !0
|
|
30
|
+
}, G = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
classes: r,
|
|
33
|
+
component: n,
|
|
34
|
+
focusVisible: t,
|
|
35
|
+
underline: s
|
|
36
|
+
} = e, c = {
|
|
37
|
+
root: ["root", `underline${L(s)}`, n === "button" && "button", t && "focusVisible"]
|
|
38
|
+
};
|
|
39
|
+
return R(c, H, r);
|
|
40
|
+
}, I = F(U, {
|
|
41
|
+
name: "MuiLink",
|
|
42
|
+
slot: "Root",
|
|
43
|
+
overridesResolver: (e, r) => {
|
|
44
|
+
const {
|
|
45
|
+
ownerState: n
|
|
46
|
+
} = e;
|
|
47
|
+
return [r.root, r[`underline${L(n.underline)}`], n.component === "button" && r.button];
|
|
48
|
+
}
|
|
49
|
+
})(M(({
|
|
50
|
+
theme: e
|
|
51
|
+
}) => ({
|
|
52
|
+
variants: [{
|
|
53
|
+
props: {
|
|
54
|
+
underline: "none"
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
textDecoration: "none"
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
props: {
|
|
61
|
+
underline: "hover"
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
"&:hover": {
|
|
66
|
+
textDecoration: "underline"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
props: {
|
|
71
|
+
underline: "always"
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
textDecoration: "underline",
|
|
75
|
+
"&:hover": {
|
|
76
|
+
textDecorationColor: "inherit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
props: ({
|
|
81
|
+
underline: r,
|
|
82
|
+
ownerState: n
|
|
83
|
+
}) => r === "always" && n.color !== "inherit",
|
|
84
|
+
style: {
|
|
85
|
+
textDecorationColor: "var(--Link-underlineColor)"
|
|
86
|
+
}
|
|
87
|
+
}, ...Object.entries(e.palette).filter(B()).map(([r]) => ({
|
|
88
|
+
props: {
|
|
89
|
+
underline: "always",
|
|
90
|
+
color: r
|
|
91
|
+
},
|
|
92
|
+
style: {
|
|
93
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette[r].mainChannel} / 0.4)` : l(e.palette[r].main, 0.4)
|
|
94
|
+
}
|
|
95
|
+
})), {
|
|
96
|
+
props: {
|
|
97
|
+
underline: "always",
|
|
98
|
+
color: "textPrimary"
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : l(e.palette.text.primary, 0.4)
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
props: {
|
|
105
|
+
underline: "always",
|
|
106
|
+
color: "textSecondary"
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
"--Link-underlineColor": e.vars ? `rgba(${e.vars.palette.text.secondaryChannel} / 0.4)` : l(e.palette.text.secondary, 0.4)
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
props: {
|
|
113
|
+
underline: "always",
|
|
114
|
+
color: "textDisabled"
|
|
115
|
+
},
|
|
116
|
+
style: {
|
|
117
|
+
"--Link-underlineColor": (e.vars || e).palette.text.disabled
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
props: {
|
|
121
|
+
component: "button"
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
position: "relative",
|
|
125
|
+
WebkitTapHighlightColor: "transparent",
|
|
126
|
+
backgroundColor: "transparent",
|
|
127
|
+
// Reset default value
|
|
128
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
129
|
+
outline: 0,
|
|
130
|
+
border: 0,
|
|
131
|
+
margin: 0,
|
|
132
|
+
// Remove the margin in Safari
|
|
133
|
+
borderRadius: 0,
|
|
134
|
+
padding: 0,
|
|
135
|
+
// Remove the padding in Firefox
|
|
136
|
+
cursor: "pointer",
|
|
137
|
+
userSelect: "none",
|
|
138
|
+
verticalAlign: "middle",
|
|
139
|
+
MozAppearance: "none",
|
|
140
|
+
// Reset
|
|
141
|
+
WebkitAppearance: "none",
|
|
142
|
+
// Reset
|
|
143
|
+
"&::-moz-focus-inner": {
|
|
144
|
+
borderStyle: "none"
|
|
145
|
+
// Remove Firefox dotted outline.
|
|
146
|
+
},
|
|
147
|
+
[`&.${E.focusVisible}`]: {
|
|
148
|
+
outline: "auto"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}]
|
|
152
|
+
}))), _ = /* @__PURE__ */ C.forwardRef(function(r, n) {
|
|
153
|
+
const t = N({
|
|
154
|
+
props: r,
|
|
155
|
+
name: "MuiLink"
|
|
156
|
+
}), s = j(), {
|
|
157
|
+
className: c,
|
|
158
|
+
color: a = "primary",
|
|
159
|
+
component: d = "a",
|
|
160
|
+
onBlur: y,
|
|
161
|
+
onFocus: f,
|
|
162
|
+
TypographyClasses: w,
|
|
163
|
+
underline: m = "always",
|
|
164
|
+
variant: b = "inherit",
|
|
165
|
+
sx: u,
|
|
166
|
+
...g
|
|
167
|
+
} = t, [T, x] = C.useState(!1), D = (i) => {
|
|
168
|
+
h(i.target) || x(!1), y && y(i);
|
|
169
|
+
}, O = (i) => {
|
|
170
|
+
h(i.target) && x(!0), f && f(i);
|
|
171
|
+
}, p = {
|
|
172
|
+
...t,
|
|
173
|
+
color: a,
|
|
174
|
+
component: d,
|
|
175
|
+
focusVisible: T,
|
|
176
|
+
underline: m,
|
|
177
|
+
variant: b
|
|
178
|
+
}, S = G(p);
|
|
179
|
+
return /* @__PURE__ */ A(I, {
|
|
180
|
+
color: a,
|
|
181
|
+
className: P(S.root, c),
|
|
182
|
+
classes: w,
|
|
183
|
+
component: d,
|
|
184
|
+
onBlur: D,
|
|
185
|
+
onFocus: O,
|
|
186
|
+
ref: n,
|
|
187
|
+
ownerState: p,
|
|
188
|
+
variant: b,
|
|
189
|
+
...g,
|
|
190
|
+
sx: [...k[a] === void 0 ? [{
|
|
191
|
+
color: a
|
|
192
|
+
}] : [], ...Array.isArray(u) ? u : [u]],
|
|
193
|
+
style: {
|
|
194
|
+
...g.style,
|
|
195
|
+
...m === "always" && a !== "inherit" && !k[a] && {
|
|
196
|
+
"--Link-underlineColor": W({
|
|
197
|
+
theme: s,
|
|
198
|
+
ownerState: p
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
205
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
206
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
207
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
208
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
209
|
+
/**
|
|
210
|
+
* The content of the component.
|
|
211
|
+
*/
|
|
212
|
+
children: o.node,
|
|
213
|
+
/**
|
|
214
|
+
* Override or extend the styles applied to the component.
|
|
215
|
+
*/
|
|
216
|
+
classes: o.object,
|
|
217
|
+
/**
|
|
218
|
+
* @ignore
|
|
219
|
+
*/
|
|
220
|
+
className: o.string,
|
|
221
|
+
/**
|
|
222
|
+
* The color of the link.
|
|
223
|
+
* @default 'primary'
|
|
224
|
+
*/
|
|
225
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), o.string]),
|
|
226
|
+
/**
|
|
227
|
+
* The component used for the root node.
|
|
228
|
+
* Either a string to use a HTML element or a component.
|
|
229
|
+
*/
|
|
230
|
+
component: z,
|
|
231
|
+
/**
|
|
232
|
+
* @ignore
|
|
233
|
+
*/
|
|
234
|
+
onBlur: o.func,
|
|
235
|
+
/**
|
|
236
|
+
* @ignore
|
|
237
|
+
*/
|
|
238
|
+
onFocus: o.func,
|
|
239
|
+
/**
|
|
240
|
+
* @ignore
|
|
241
|
+
*/
|
|
242
|
+
style: o.object,
|
|
243
|
+
/**
|
|
244
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
245
|
+
*/
|
|
246
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
247
|
+
/**
|
|
248
|
+
* `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.
|
|
249
|
+
*/
|
|
250
|
+
TypographyClasses: o.object,
|
|
251
|
+
/**
|
|
252
|
+
* Controls when the link should have an underline.
|
|
253
|
+
* @default 'always'
|
|
254
|
+
*/
|
|
255
|
+
underline: o.oneOf(["always", "hover", "none"]),
|
|
256
|
+
/**
|
|
257
|
+
* Applies the theme typography styles.
|
|
258
|
+
* @default 'inherit'
|
|
259
|
+
*/
|
|
260
|
+
variant: o.oneOfType([o.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), o.string])
|
|
261
|
+
});
|
|
262
|
+
export {
|
|
263
|
+
_ as L,
|
|
264
|
+
H as g,
|
|
265
|
+
E as l
|
|
266
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const Le=require("react"),g=require("./DefaultPropsProvider-eVMpAUQg.cjs"),e=require("./identifier-DTh6b5Gz.cjs"),Y=require("./index-oINGa1MV.cjs"),k=require("react/jsx-runtime"),Ie=require("./isHostComponent-PydJW4A4.cjs"),ce=require("./useSlot-i7AZwCRV.cjs"),Pe=require("./Modal-BLMnkdGb.cjs"),Te=require("./Paper-n4KgM09K.cjs"),J=require("./ownerDocument-4MViGo3k.cjs"),Q=require("./ownerWindow-DDHucZi0.cjs"),ke=require("./debounce-DpCj7ugL.cjs"),he=require("./useForkRef-CTI33h-3.cjs"),me=require("./refType-DNB-r0Bp.cjs"),Fe=require("./chainPropTypes-CEUi6Jb4.cjs"),Z=require("./Portal-C4QgaMKl.cjs"),qe=require("./elementTypeAcceptingRef-DiSL8-Ea.cjs"),Ue=require("./Grow-C_nN9VuE.cjs");function ze(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const h=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,h.get?h:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const s=ze(Le),ee=s.createContext({});process.env.NODE_ENV!=="production"&&(ee.displayName="ListContext");function ge(o){return e.generateUtilityClass("MuiList",o)}const He=e.generateUtilityClasses("MuiList",["root","padding","dense","subheader"]),Ke=o=>{const{classes:t,disablePadding:r,dense:h,subheader:m}=o,f={root:["root",!r&&"padding",h&&"dense",m&&"subheader"]};return g.composeClasses(f,ge,t)},_e=g.styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:o})=>!o.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:o})=>o.subheader,style:{paddingTop:0}}]}),oe=s.forwardRef(function(t,r){const h=g.useDefaultProps({props:t,name:"MuiList"}),{children:m,className:f,component:T="ul",dense:p=!1,disablePadding:P=!1,subheader:O,...w}=h,S=s.useMemo(()=>({dense:p}),[p]),j={...h,component:T,dense:p,disablePadding:P},i=Ke(j);return k.jsx(ee.Provider,{value:S,children:k.jsxs(_e,{as:T,className:e.clsx(i.root,f),ref:r,ownerState:j,...w,children:[O,m]})})});process.env.NODE_ENV!=="production"&&(oe.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,dense:e.PropTypes.bool,disablePadding:e.PropTypes.bool,subheader:e.PropTypes.node,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 X(o,t,r){return o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:o.firstChild}function ue(o,t,r){return o===t?r?o.firstChild:o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:o.lastChild}function be(o,t){if(t===void 0)return!0;let r=o.innerText;return r===void 0&&(r=o.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function A(o,t,r,h,m,f){let T=!1,p=m(o,t,t?r:!1);for(;p;){if(p===o.firstChild){if(T)return!1;T=!0}const P=h?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!be(p,f)||P)p=m(o,p,r);else return p.focus(),!0}return!1}const ve=s.forwardRef(function(t,r){const{actions:h,autoFocus:m=!1,autoFocusItem:f=!1,children:T,className:p,disabledItemsFocusable:P=!1,disableListWrap:O=!1,onKeyDown:w,variant:S="selectedMenu",...j}=t,i=s.useRef(null),b=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});me.useEnhancedEffect(()=>{m&&i.current.focus()},[m]),s.useImperativeHandle(h,()=>({adjustStyleForScrollbar:(n,{direction:a})=>{const d=!i.current.style.width;if(n.clientHeight<i.current.clientHeight&&d){const D=`${Pe.getScrollbarSize(Q.ownerWindow(n))}px`;i.current.style[a==="rtl"?"paddingLeft":"paddingRight"]=D,i.current.style.width=`calc(100% + ${D})`}return i.current}}),[]);const z=n=>{const a=i.current,d=n.key;if(n.ctrlKey||n.metaKey||n.altKey){w&&w(n);return}const R=J.ownerDocument(a).activeElement;if(d==="ArrowDown")n.preventDefault(),A(a,R,O,P,X);else if(d==="ArrowUp")n.preventDefault(),A(a,R,O,P,ue);else if(d==="Home")n.preventDefault(),A(a,null,O,P,X);else if(d==="End")n.preventDefault(),A(a,null,O,P,ue);else if(d.length===1){const c=b.current,M=d.toLowerCase(),I=performance.now();c.keys.length>0&&(I-c.lastTime>500?(c.keys=[],c.repeating=!0,c.previousKeyMatched=!0):c.repeating&&M!==c.keys[0]&&(c.repeating=!1)),c.lastTime=I,c.keys.push(M);const N=R&&!c.repeating&&be(R,c);c.previousKeyMatched&&(N||A(a,R,!1,P,X,c))?n.preventDefault():c.previousKeyMatched=!1}w&&w(n)},F=he.useForkRef(i,r);let l=-1;s.Children.forEach(T,(n,a)=>{if(!s.isValidElement(n)){l===a&&(l+=1,l>=T.length&&(l=-1));return}process.env.NODE_ENV!=="production"&&g.reactIsExports.isFragment(n)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
2
|
+
`)),n.props.disabled||(S==="selectedMenu"&&n.props.selected||l===-1)&&(l=a),l===a&&(n.props.disabled||n.props.muiSkipListHighlight||n.type.muiSkipListHighlight)&&(l+=1,l>=T.length&&(l=-1))});const x=s.Children.map(T,(n,a)=>{if(a===l){const d={};return f&&(d.autoFocus=!0),n.props.tabIndex===void 0&&S==="selectedMenu"&&(d.tabIndex=0),s.cloneElement(n,d)}return n});return k.jsx(oe,{role:"menu",ref:F,className:p,onKeyDown:z,tabIndex:m?0:-1,...j,children:x})});process.env.NODE_ENV!=="production"&&(ve.propTypes={autoFocus:e.PropTypes.bool,autoFocusItem:e.PropTypes.bool,children:e.PropTypes.node,className:e.PropTypes.string,disabledItemsFocusable:e.PropTypes.bool,disableListWrap:e.PropTypes.bool,onKeyDown:e.PropTypes.func,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});function Ve(o){return e.generateUtilityClass("MuiPopover",o)}e.generateUtilityClasses("MuiPopover",["root","paper"]);function fe(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.height/2:t==="bottom"&&(r=o.height),r}function de(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.width/2:t==="right"&&(r=o.width),r}function ye(o){return[o.horizontal,o.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function G(o){return typeof o=="function"?o():o}const Ae=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"]};return g.composeClasses(r,Ve,t)},We=g.styled(Pe.Modal,{name:"MuiPopover",slot:"Root",overridesResolver:(o,t)=>t.root})({}),Ee=g.styled(Te.Paper,{name:"MuiPopover",slot:"Paper",overridesResolver:(o,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Oe=s.forwardRef(function(t,r){const h=g.useDefaultProps({props:t,name:"MuiPopover"}),{action:m,anchorEl:f,anchorOrigin:T={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:P="anchorEl",children:O,className:w,container:S,elevation:j=8,marginThreshold:i=16,open:b,PaperProps:z={},slots:F={},slotProps:l={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:n=Ue.Grow,transitionDuration:a="auto",TransitionProps:{onEntering:d,...D}={},disableScrollLock:R=!1,...c}=h,M=(l==null?void 0:l.paper)??z,I=s.useRef(),N={...h,anchorOrigin:T,anchorReference:P,elevation:j,marginThreshold:i,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:n,transitionDuration:a,TransitionProps:D},_=Ae(N),W=s.useCallback(()=>{if(P==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const u=G(f),y=u&&u.nodeType===1?u:J.ownerDocument(I.current).body,E=y.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const U=y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&U.top===0&&U.left===0&&U.right===0&&U.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
3
|
+
`))}return{top:E.top+fe(E,T.vertical),left:E.left+de(E,T.horizontal)}},[f,T.horizontal,T.vertical,p,P]),$=s.useCallback(u=>({vertical:fe(u,x.vertical),horizontal:de(u,x.horizontal)}),[x.horizontal,x.vertical]),B=s.useCallback(u=>{const y={width:u.offsetWidth,height:u.offsetHeight},E=$(y);if(P==="none")return{top:null,left:null,transformOrigin:ye(E)};const U=W();let H=U.top-E.vertical,K=U.left-E.horizontal;const ie=H+y.height,pe=K+y.width,ae=Q.ownerWindow(G(f)),V=ae.innerHeight-i,le=ae.innerWidth-i;if(i!==null&&H<i){const C=H-i;H-=C,E.vertical+=C}else if(i!==null&&ie>V){const C=ie-V;H-=C,E.vertical+=C}if(process.env.NODE_ENV!=="production"&&y.height>V&&y.height&&V&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${y.height-V}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
4
|
+
`)),i!==null&&K<i){const C=K-i;K-=C,E.horizontal+=C}else if(pe>le){const C=pe-le;K-=C,E.horizontal+=C}return{top:`${Math.round(H)}px`,left:`${Math.round(K)}px`,transformOrigin:ye(E)}},[f,P,W,$,i]),[v,q]=s.useState(b),L=s.useCallback(()=>{const u=I.current;if(!u)return;const y=B(u);y.top!==null&&u.style.setProperty("top",y.top),y.left!==null&&(u.style.left=y.left),u.style.transformOrigin=y.transformOrigin,q(!0)},[B]);s.useEffect(()=>(R&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[f,R,L]);const Re=(u,y)=>{d&&d(u,y),L()},Ce=()=>{q(!1)};s.useEffect(()=>{b&&L()}),s.useImperativeHandle(m,()=>b?{updatePosition:()=>{L()}}:null,[b,L]),s.useEffect(()=>{if(!b)return;const u=ke.debounce(()=>{L()}),y=Q.ownerWindow(f);return y.addEventListener("resize",u),()=>{u.clear(),y.removeEventListener("resize",u)}},[f,b,L]);let te=a;a==="auto"&&!n.muiSupportAuto&&(te=void 0);const xe=S||(f?J.ownerDocument(G(f)).body:void 0),re={slots:F,slotProps:{...l,paper:M}},[De,ne]=ce.useSlot("paper",{elementType:Ee,externalForwardedProps:re,additionalProps:{elevation:j,className:e.clsx(_.paper,M==null?void 0:M.className),style:v?M.style:{...M.style,opacity:0}},ownerState:N}),[se,{slotProps:Ne,...Se}]=ce.useSlot("root",{elementType:We,externalForwardedProps:re,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:xe,open:b},ownerState:N,className:e.clsx(_.root,w)}),je=he.useForkRef(I,ne.ref);return k.jsx(se,{...Se,...!Ie.isHostComponent(se)&&{slotProps:Ne,disableScrollLock:R},...c,ref:r,children:k.jsx(n,{appear:!0,in:b,onEntering:Re,onExited:Ce,timeout:te,...D,children:k.jsx(De,{...ne,ref:je,children:O})})})});process.env.NODE_ENV!=="production"&&(Oe.propTypes={action:me.refType,anchorEl:Fe.chainPropTypes(e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),o=>{if(o.open&&(!o.anchorReference||o.anchorReference==="anchorEl")){const t=G(o.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
5
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
6
|
+
`))}return null}),anchorOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),anchorPosition:e.PropTypes.shape({left:e.PropTypes.number.isRequired,top:e.PropTypes.number.isRequired}),anchorReference:e.PropTypes.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,container:e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),disableScrollLock:e.PropTypes.bool,elevation:Te.integerPropType,marginThreshold:e.PropTypes.number,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.shape({component:qe.elementTypeAcceptingRef}),slotProps:e.PropTypes.shape({paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({paper:e.PropTypes.elementType,root:e.PropTypes.elementType}),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]),transformOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});function Me(o){return e.generateUtilityClass("MuiMenu",o)}const $e=e.generateUtilityClasses("MuiMenu",["root","paper","list"]),Be={vertical:"top",horizontal:"right"},Ge={vertical:"top",horizontal:"left"},Ye=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"],list:["list"]};return g.composeClasses(r,Me,t)},Xe=g.styled(Oe,{shouldForwardProp:o=>g.rootShouldForwardProp(o)||o==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(o,t)=>t.root})({}),Je=g.styled(Ee,{name:"MuiMenu",slot:"Paper",overridesResolver:(o,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qe=g.styled(ve,{name:"MuiMenu",slot:"List",overridesResolver:(o,t)=>t.list})({outline:0}),we=s.forwardRef(function(t,r){const h=g.useDefaultProps({props:t,name:"MuiMenu"}),{autoFocus:m=!0,children:f,className:T,disableAutoFocusItem:p=!1,MenuListProps:P={},onClose:O,open:w,PaperProps:S={},PopoverClasses:j,transitionDuration:i="auto",TransitionProps:{onEntering:b,...z}={},variant:F="selectedMenu",slots:l={},slotProps:x={},...n}=h,a=Y.useRtl(),d={...h,autoFocus:m,disableAutoFocusItem:p,MenuListProps:P,onEntering:b,PaperProps:S,transitionDuration:i,TransitionProps:z,variant:F},D=Ye(d),R=m&&!p&&w,c=s.useRef(null),M=(v,q)=>{c.current&&c.current.adjustStyleForScrollbar(v,{direction:a?"rtl":"ltr"}),b&&b(v,q)},I=v=>{v.key==="Tab"&&(v.preventDefault(),O&&O(v,"tabKeyDown"))};let N=-1;s.Children.map(f,(v,q)=>{s.isValidElement(v)&&(process.env.NODE_ENV!=="production"&&g.reactIsExports.isFragment(v)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
7
|
+
`)),v.props.disabled||(F==="selectedMenu"&&v.props.selected||N===-1)&&(N=q))});const _=l.paper??Je,W=x.paper??S,$=Y.useSlotProps({elementType:l.root,externalSlotProps:x.root,ownerState:d,className:[D.root,T]}),B=Y.useSlotProps({elementType:_,externalSlotProps:W,ownerState:d,className:D.paper});return k.jsx(Xe,{onClose:O,anchorOrigin:{vertical:"bottom",horizontal:a?"right":"left"},transformOrigin:a?Be:Ge,slots:{paper:_,root:l.root},slotProps:{root:$,paper:B},open:w,ref:r,transitionDuration:i,TransitionProps:{onEntering:M,...z},ownerState:d,...n,classes:j,children:k.jsx(Qe,{onKeyDown:I,actions:c,autoFocus:m&&(N===-1||p),autoFocusItem:R,variant:F,...P,className:e.clsx(D.list,P.className),children:f})})});process.env.NODE_ENV!=="production"&&(we.propTypes={anchorEl:e.PropTypes.oneOfType([Z.HTMLElementType,e.PropTypes.func]),autoFocus:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableAutoFocusItem:e.PropTypes.bool,MenuListProps:e.PropTypes.object,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.object,PopoverClasses:e.PropTypes.object,slotProps:e.PropTypes.shape({paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({paper:e.PropTypes.elementType,root:e.PropTypes.elementType}),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]),transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});exports.List=oe;exports.ListContext=ee;exports.Menu=we;exports.getListUtilityClass=ge;exports.getMenuUtilityClass=Me;exports.listClasses=He;exports.menuClasses=$e;
|