@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739205895
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-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
- package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
- package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
- package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
- package/dist/Button-C-bZSJCq.cjs +28 -0
- package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
- package/dist/Button-CSNPv43f.js +542 -0
- package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
- package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
- package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
- package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
- package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
- package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
- package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
- package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
- package/dist/CloseRounded-Df8vYhLX.js +8 -0
- package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
- package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
- package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
- package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
- package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
- package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
- package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
- package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
- package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
- package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
- package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
- package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
- package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
- package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
- package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
- package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
- package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
- package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
- package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
- package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
- package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
- package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
- package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
- package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
- package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
- package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
- package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
- package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
- package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
- package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
- package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
- package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
- package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
- package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
- package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
- package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
- package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
- package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
- package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
- package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
- package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
- package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
- package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
- package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
- package/dist/Stack-B68ooSQ-.cjs +1 -0
- package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
- package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
- package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
- package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
- package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
- package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
- package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
- package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
- package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
- package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
- package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
- package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
- package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
- package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
- package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +4 -297
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- 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 +11 -13
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- 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 +23 -14
- 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 +95 -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 +41 -40
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- 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 +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- 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 +212 -213
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +9 -9
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- 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 +3 -3
- 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 +145 -19
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
- 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 +8 -8
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +11 -11
- 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-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
- package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
- package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
- package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
- package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
- package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
- package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
- package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
- package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
- package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
- package/dist/index-CgWaRcwQ.cjs +1 -0
- package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +212 -213
- package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
- package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
- package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
- package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
- package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
- package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
- package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
- package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
- package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
- package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
- package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
- package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
- package/dist/useTheme-Dyx3LMQU.js +11 -0
- package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
- package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
- package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
- package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
- package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
- package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
- package/package.json +1 -1
- package/dist/CircularProgress-CIsFCabr.cjs +0 -28
- package/dist/CircularProgress-Wu1RUH10.js +0 -253
- package/dist/Delete-CN1Nvyw-.cjs +0 -1
- package/dist/Delete-D269dtzC.js +0 -8
- package/dist/Stack-6AHEa1bx.cjs +0 -1
- package/dist/index-vTvfssKH.cjs +0 -1
- package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
- package/dist/useTheme-i6uFvVRH.js +0 -11
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { H as ee, I as oe, G as Y, P as e, Z as ye } from "./generateUtilityClasses-
|
|
3
|
-
import { u as Le, a as fe } from "./useSlotProps-
|
|
4
|
-
import {
|
|
2
|
+
import { H as ee, I as oe, G as Y, P as e, Z as ye } from "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
+
import { u as Le, a as fe } from "./useSlotProps-r0vmrJvl.js";
|
|
4
|
+
import { u as te, s as V, c as ne, r as je } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
5
5
|
import { jsx as z, jsxs as ke } from "react/jsx-runtime";
|
|
6
6
|
import { i as Fe } from "./isHostComponent-kiaBvYVo.js";
|
|
7
|
-
import { u as de } from "./useSlot-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { u as de } from "./useSlot-BYfmyYXv.js";
|
|
8
|
+
import { P as ze, i as Ke } from "./Paper-BIgadgtb.js";
|
|
9
|
+
import { G as He } from "./Grow-EpJy9qdL.js";
|
|
10
10
|
import { o as Z } from "./ownerDocument-CUrv0DIK.js";
|
|
11
11
|
import { o as J } from "./ownerWindow-niciwP7I.js";
|
|
12
|
-
import { d as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
12
|
+
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
13
|
+
import { u as ve } from "./useForkRef-C_4o__cU.js";
|
|
14
|
+
import { b as Ve, M as _e } from "./Modal-a-cSzSt8.js";
|
|
15
15
|
import { c as Ae } from "./chainPropTypes-D9lkm76m.js";
|
|
16
|
-
import {
|
|
17
|
-
import { e as
|
|
18
|
-
import {
|
|
16
|
+
import { r as We } from "./refType-DcE_kWty.js";
|
|
17
|
+
import { e as $e } from "./elementTypeAcceptingRef-BnBq35EV.js";
|
|
18
|
+
import { H as Q } from "./Portal-B8inUnB_.js";
|
|
19
19
|
import { u as qe } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
20
|
-
const
|
|
21
|
-
process.env.NODE_ENV !== "production" && (
|
|
20
|
+
const Pe = /* @__PURE__ */ s.createContext({});
|
|
21
|
+
process.env.NODE_ENV !== "production" && (Pe.displayName = "ListContext");
|
|
22
22
|
function Be(t) {
|
|
23
|
-
return
|
|
23
|
+
return oe("MuiList", t);
|
|
24
24
|
}
|
|
25
|
-
const wo =
|
|
25
|
+
const wo = ee("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
|
|
26
26
|
const {
|
|
27
27
|
classes: o,
|
|
28
28
|
disablePadding: n,
|
|
@@ -82,7 +82,7 @@ const wo = oe("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) =>
|
|
|
82
82
|
dense: a,
|
|
83
83
|
disablePadding: m
|
|
84
84
|
}, i = Ge(D);
|
|
85
|
-
return /* @__PURE__ */ z(
|
|
85
|
+
return /* @__PURE__ */ z(Pe.Provider, {
|
|
86
86
|
value: S,
|
|
87
87
|
children: /* @__PURE__ */ ke(Ye, {
|
|
88
88
|
as: b,
|
|
@@ -179,7 +179,7 @@ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
|
179
179
|
onKeyDown: O,
|
|
180
180
|
variant: S = "selectedMenu",
|
|
181
181
|
...D
|
|
182
|
-
} = o, i = s.useRef(null),
|
|
182
|
+
} = o, i = s.useRef(null), v = s.useRef({
|
|
183
183
|
keys: [],
|
|
184
184
|
repeating: !0,
|
|
185
185
|
previousKeyMatched: !0,
|
|
@@ -193,7 +193,7 @@ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
|
193
193
|
}) => {
|
|
194
194
|
const f = !i.current.style.width;
|
|
195
195
|
if (r.clientHeight < i.current.clientHeight && f) {
|
|
196
|
-
const N = `${
|
|
196
|
+
const N = `${Ve(J(r))}px`;
|
|
197
197
|
i.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = N, i.current.style.width = `calc(100% + ${N})`;
|
|
198
198
|
}
|
|
199
199
|
return i.current;
|
|
@@ -215,13 +215,13 @@ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
|
215
215
|
else if (f === "End")
|
|
216
216
|
r.preventDefault(), W(l, null, E, m, he);
|
|
217
217
|
else if (f.length === 1) {
|
|
218
|
-
const p =
|
|
218
|
+
const p = v.current, M = f.toLowerCase(), L = performance.now();
|
|
219
219
|
p.keys.length > 0 && (L - p.lastTime > 500 ? (p.keys = [], p.repeating = !0, p.previousKeyMatched = !0) : p.repeating && M !== p.keys[0] && (p.repeating = !1)), p.lastTime = L, p.keys.push(M);
|
|
220
220
|
const x = R && !p.repeating && Ee(R, p);
|
|
221
221
|
p.previousKeyMatched && (x || W(l, R, !1, m, X, p)) ? r.preventDefault() : p.previousKeyMatched = !1;
|
|
222
222
|
}
|
|
223
223
|
O && O(r);
|
|
224
|
-
}, j =
|
|
224
|
+
}, j = ve(i, n);
|
|
225
225
|
let c = -1;
|
|
226
226
|
s.Children.forEach(b, (r, l) => {
|
|
227
227
|
if (!/* @__PURE__ */ s.isValidElement(r)) {
|
|
@@ -294,9 +294,9 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
294
294
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
295
295
|
});
|
|
296
296
|
function Xe(t) {
|
|
297
|
-
return
|
|
297
|
+
return oe("MuiPopover", t);
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
ee("MuiPopover", ["root", "paper"]);
|
|
300
300
|
function me(t, o) {
|
|
301
301
|
let n = 0;
|
|
302
302
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
@@ -319,11 +319,11 @@ const Ze = (t) => {
|
|
|
319
319
|
root: ["root"],
|
|
320
320
|
paper: ["paper"]
|
|
321
321
|
}, Xe, o);
|
|
322
|
-
}, Je = V(
|
|
322
|
+
}, Je = V(_e, {
|
|
323
323
|
name: "MuiPopover",
|
|
324
324
|
slot: "Root",
|
|
325
325
|
overridesResolver: (t, o) => o.root
|
|
326
|
-
})({}), Oe = V(
|
|
326
|
+
})({}), Oe = V(ze, {
|
|
327
327
|
name: "MuiPopover",
|
|
328
328
|
slot: "Paper",
|
|
329
329
|
overridesResolver: (t, o) => o.paper
|
|
@@ -357,7 +357,7 @@ const Ze = (t) => {
|
|
|
357
357
|
container: S,
|
|
358
358
|
elevation: D = 8,
|
|
359
359
|
marginThreshold: i = 16,
|
|
360
|
-
open:
|
|
360
|
+
open: v,
|
|
361
361
|
PaperProps: K = {},
|
|
362
362
|
slots: j = {},
|
|
363
363
|
slotProps: c = {},
|
|
@@ -365,7 +365,7 @@ const Ze = (t) => {
|
|
|
365
365
|
vertical: "top",
|
|
366
366
|
horizontal: "left"
|
|
367
367
|
},
|
|
368
|
-
TransitionComponent: r =
|
|
368
|
+
TransitionComponent: r = He,
|
|
369
369
|
transitionDuration: l = "auto",
|
|
370
370
|
TransitionProps: {
|
|
371
371
|
onEntering: f,
|
|
@@ -434,7 +434,7 @@ const Ze = (t) => {
|
|
|
434
434
|
left: `${Math.round(U)}px`,
|
|
435
435
|
transformOrigin: ge(T)
|
|
436
436
|
};
|
|
437
|
-
}, [h, m, $, q, i]), [
|
|
437
|
+
}, [h, m, $, q, i]), [P, k] = s.useState(v), I = s.useCallback(() => {
|
|
438
438
|
const u = L.current;
|
|
439
439
|
if (!u)
|
|
440
440
|
return;
|
|
@@ -448,21 +448,21 @@ const Ze = (t) => {
|
|
|
448
448
|
k(!1);
|
|
449
449
|
};
|
|
450
450
|
s.useEffect(() => {
|
|
451
|
-
|
|
452
|
-
}), s.useImperativeHandle(g, () =>
|
|
451
|
+
v && I();
|
|
452
|
+
}), s.useImperativeHandle(g, () => v ? {
|
|
453
453
|
updatePosition: () => {
|
|
454
454
|
I();
|
|
455
455
|
}
|
|
456
|
-
} : null, [
|
|
457
|
-
if (!
|
|
456
|
+
} : null, [v, I]), s.useEffect(() => {
|
|
457
|
+
if (!v)
|
|
458
458
|
return;
|
|
459
|
-
const u =
|
|
459
|
+
const u = Ue(() => {
|
|
460
460
|
I();
|
|
461
461
|
}), d = J(h);
|
|
462
462
|
return d.addEventListener("resize", u), () => {
|
|
463
463
|
u.clear(), d.removeEventListener("resize", u);
|
|
464
464
|
};
|
|
465
|
-
}, [h,
|
|
465
|
+
}, [h, v, I]);
|
|
466
466
|
let re = l;
|
|
467
467
|
l === "auto" && !r.muiSupportAuto && (re = void 0);
|
|
468
468
|
const Ne = S || (h ? Z(G(h)).body : void 0), se = {
|
|
@@ -477,7 +477,7 @@ const Ze = (t) => {
|
|
|
477
477
|
additionalProps: {
|
|
478
478
|
elevation: D,
|
|
479
479
|
className: Y(_.paper, M == null ? void 0 : M.className),
|
|
480
|
-
style:
|
|
480
|
+
style: P ? M.style : {
|
|
481
481
|
...M.style,
|
|
482
482
|
opacity: 0
|
|
483
483
|
}
|
|
@@ -496,11 +496,11 @@ const Ze = (t) => {
|
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
498
|
container: Ne,
|
|
499
|
-
open:
|
|
499
|
+
open: v
|
|
500
500
|
},
|
|
501
501
|
ownerState: x,
|
|
502
502
|
className: Y(_.root, O)
|
|
503
|
-
}), Ie =
|
|
503
|
+
}), Ie = ve(L, ie.ref);
|
|
504
504
|
return /* @__PURE__ */ z(ae, {
|
|
505
505
|
...De,
|
|
506
506
|
...!Fe(ae) && {
|
|
@@ -511,7 +511,7 @@ const Ze = (t) => {
|
|
|
511
511
|
ref: n,
|
|
512
512
|
children: /* @__PURE__ */ z(r, {
|
|
513
513
|
appear: !0,
|
|
514
|
-
in:
|
|
514
|
+
in: v,
|
|
515
515
|
onEntering: we,
|
|
516
516
|
onExited: Ce,
|
|
517
517
|
timeout: re,
|
|
@@ -533,7 +533,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
533
533
|
* A ref for imperative actions.
|
|
534
534
|
* It currently only supports updatePosition() action.
|
|
535
535
|
*/
|
|
536
|
-
action:
|
|
536
|
+
action: We,
|
|
537
537
|
/**
|
|
538
538
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
539
539
|
* or a function that returns either.
|
|
@@ -633,7 +633,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
633
633
|
* The elevation of the popover.
|
|
634
634
|
* @default 8
|
|
635
635
|
*/
|
|
636
|
-
elevation:
|
|
636
|
+
elevation: Ke,
|
|
637
637
|
/**
|
|
638
638
|
* Specifies how close to the edge of the window the popover can appear.
|
|
639
639
|
* If null, the popover will not be constrained by the window.
|
|
@@ -658,7 +658,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
658
658
|
* @default {}
|
|
659
659
|
*/
|
|
660
660
|
PaperProps: e.shape({
|
|
661
|
-
component:
|
|
661
|
+
component: $e
|
|
662
662
|
}),
|
|
663
663
|
/**
|
|
664
664
|
* The props used for each slot inside.
|
|
@@ -719,9 +719,9 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
719
719
|
TransitionProps: e.object
|
|
720
720
|
});
|
|
721
721
|
function Qe(t) {
|
|
722
|
-
return
|
|
722
|
+
return oe("MuiMenu", t);
|
|
723
723
|
}
|
|
724
|
-
const Co =
|
|
724
|
+
const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
725
725
|
vertical: "top",
|
|
726
726
|
horizontal: "right"
|
|
727
727
|
}, oo = {
|
|
@@ -775,7 +775,7 @@ const Co = oe("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
775
775
|
PopoverClasses: D,
|
|
776
776
|
transitionDuration: i = "auto",
|
|
777
777
|
TransitionProps: {
|
|
778
|
-
onEntering:
|
|
778
|
+
onEntering: v,
|
|
779
779
|
...K
|
|
780
780
|
} = {},
|
|
781
781
|
variant: j = "selectedMenu",
|
|
@@ -787,22 +787,22 @@ const Co = oe("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
787
787
|
autoFocus: g,
|
|
788
788
|
disableAutoFocusItem: a,
|
|
789
789
|
MenuListProps: m,
|
|
790
|
-
onEntering:
|
|
790
|
+
onEntering: v,
|
|
791
791
|
PaperProps: S,
|
|
792
792
|
transitionDuration: i,
|
|
793
793
|
TransitionProps: K,
|
|
794
794
|
variant: j
|
|
795
|
-
}, N = to(f), R = g && !a && O, p = s.useRef(null), M = (
|
|
796
|
-
p.current && p.current.adjustStyleForScrollbar(
|
|
795
|
+
}, N = to(f), R = g && !a && O, p = s.useRef(null), M = (P, k) => {
|
|
796
|
+
p.current && p.current.adjustStyleForScrollbar(P, {
|
|
797
797
|
direction: l ? "rtl" : "ltr"
|
|
798
|
-
}),
|
|
799
|
-
}, L = (
|
|
800
|
-
|
|
798
|
+
}), v && v(P, k);
|
|
799
|
+
}, L = (P) => {
|
|
800
|
+
P.key === "Tab" && (P.preventDefault(), E && E(P, "tabKeyDown"));
|
|
801
801
|
};
|
|
802
802
|
let x = -1;
|
|
803
|
-
s.Children.map(h, (
|
|
804
|
-
/* @__PURE__ */ s.isValidElement(
|
|
805
|
-
`)),
|
|
803
|
+
s.Children.map(h, (P, k) => {
|
|
804
|
+
/* @__PURE__ */ s.isValidElement(P) && (process.env.NODE_ENV !== "production" && ye.isFragment(P) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
805
|
+
`)), P.props.disabled || (j === "selectedMenu" && P.props.selected || x === -1) && (x = k));
|
|
806
806
|
});
|
|
807
807
|
const _ = c.paper ?? ro, $ = C.paper ?? S, q = fe({
|
|
808
808
|
elementType: c.root,
|
|
@@ -959,7 +959,7 @@ export {
|
|
|
959
959
|
Te as L,
|
|
960
960
|
io as M,
|
|
961
961
|
Qe as a,
|
|
962
|
-
|
|
962
|
+
Pe as b,
|
|
963
963
|
Be as g,
|
|
964
964
|
wo as l,
|
|
965
965
|
Co as m
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const N=require("react"),t=require("./generateUtilityClasses-
|
|
1
|
+
"use strict";const N=require("react"),t=require("./generateUtilityClasses-0dYt6eGZ.cjs"),p=require("./DefaultPropsProvider-PRhNsS_3.cjs"),q=require("./memoTheme-D1tPxCd9.cjs"),T=require("./Menu-NuheFzLD.cjs"),x=require("react/jsx-runtime"),w=require("./useEnhancedEffect-BQZ6dtCo.cjs"),S=require("./useForkRef-CTI33h-3.cjs"),B=require("./ButtonBase-DKNIY_Ve.cjs"),P=require("./dividerClasses-1ChhOCNX.cjs");function V(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const c=V(N);function D(e){return t.generateUtilityClass("MuiListItemIcon",e)}const f=t.generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);function E(e){return t.generateUtilityClass("MuiListItemText",e)}const g=t.generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function M(e){return t.generateUtilityClass("MuiMenuItem",e)}const r=t.generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F=(e,s)=>{const{ownerState:o}=e;return[s.root,o.dense&&s.dense,o.divider&&s.divider,!o.disableGutters&&s.gutters]},G=e=>{const{disabled:s,dense:o,divider:a,disableGutters:l,selected:d,classes:n}=e,u={root:["root",o&&"dense",s&&"disabled",!l&&"gutters",a&&"divider",d&&"selected"]},i=p.composeClasses(u,M,n);return{...n,...i}},_=p.styled(B.ButtonBase,{shouldForwardProp:e=>p.rootShouldForwardProp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F})(q.memoTheme(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${r.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:t.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${P.dividerClasses.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${P.dividerClasses.inset}`]:{marginLeft:52},[`& .${g.root}`]:{marginTop:0,marginBottom:0},[`& .${g.inset}`]:{paddingLeft:36},[`& .${f.root}`]:{minWidth:36},variants:[{props:({ownerState:s})=>!s.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:s})=>s.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:s})=>!s.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:s})=>s.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${f.root} svg`]:{fontSize:"1.25rem"}}}]}))),O=c.forwardRef(function(s,o){const a=p.useDefaultProps({props:s,name:"MuiMenuItem"}),{autoFocus:l=!1,component:d="li",dense:n=!1,divider:u=!1,disableGutters:i=!1,focusVisibleClassName:$,role:U="menuitem",tabIndex:m,className:L,...R}=a,v=c.useContext(T.ListContext),C=c.useMemo(()=>({dense:n||v.dense||!1,disableGutters:i}),[v.dense,n,i]),y=c.useRef(null);w.useEnhancedEffect(()=>{l&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[l]);const k={...a,dense:C.dense,divider:u,disableGutters:i},b=G(a),j=S.useForkRef(y,o);let I;return a.disabled||(I=m!==void 0?m:-1),x.jsx(T.ListContext.Provider,{value:C,children:x.jsx(_,{ref:j,role:U,tabIndex:I,component:d,focusVisibleClassName:t.clsx(b.focusVisible,$),className:t.clsx(b.root,L),...R,ownerState:k,classes:b})})});process.env.NODE_ENV!=="production"&&(O.propTypes={autoFocus:t.PropTypes.bool,children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,dense:t.PropTypes.bool,disabled:t.PropTypes.bool,disableGutters:t.PropTypes.bool,divider:t.PropTypes.bool,focusVisibleClassName:t.PropTypes.string,role:t.PropTypes.string,selected:t.PropTypes.bool,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]),tabIndex:t.PropTypes.number});exports.MenuItem=O;exports.getListItemIconUtilityClass=D;exports.getListItemTextUtilityClass=E;exports.getMenuItemUtilityClass=M;exports.listItemIconClasses=f;exports.listItemTextClasses=g;exports.menuItemClasses=r;
|
|
@@ -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 "./generateUtilityClasses-v9KcqdK1.js";
|
|
3
|
+
import { u as S, s as U, c as P, r as E } from "./DefaultPropsProvider-CmOKr9hq.js";
|
|
4
|
+
import { m as F } from "./memoTheme-D-rebSfX.js";
|
|
5
|
+
import { b as $ } from "./Menu-_4rLUzDf.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-eQU9HVgU.js";
|
|
10
|
+
import { d as O } from "./dividerClasses-DHKvPyr8.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,2 +1,2 @@
|
|
|
1
|
-
"use strict";const Pe=require("react"),
|
|
2
|
-
`)),f.current.setAttribute("tabIndex","-1")),y.current&&f.current.focus()),()=>{i||(T.current&&T.current.focus&&(b.current=!0,T.current.focus()),T.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(!y.current)return;let S=[];if((l.activeElement===h.current||l.activeElement===x.current)&&(S=s(f.current)),S.length>0){const j=!!((v=C.current)!=null&&v.shiftKey&&((F=C.current)==null?void 0:F.key)==="Tab"),q=S[0],K=S[S.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 I=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(I),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,n,i,c,a,s]);const N=l=>{T.current===null&&(T.current=l.relatedTarget),y.current=!0,g.current=l.target;const m=
|
|
1
|
+
"use strict";const Pe=require("react"),t=require("./generateUtilityClasses-0dYt6eGZ.cjs"),ge=require("./memoTheme-D1tPxCd9.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("./mergeSlotProps-DJgEFzGv.cjs"),re=require("./useSlot-CMUEd7j7.cjs"),O=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-PRhNsS_3.cjs"),G=require("./Portal-BL8eg_0C.cjs"),X=require("./utils-BWXB1haV.cjs"),Re=require("./Backdrop-Cvbj4YKG.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 Se(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 Ie(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"||Ie(e))}function Me(e){const o=[],r=[];return Array.from(e.querySelectorAll(Ne)).forEach((n,i)=>{const s=Se(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),T=u.useRef(null),g=u.useRef(null),y=u.useRef(!1),f=u.useRef(null),A=Y.useForkRef(X.getReactElementRef(o),f),C=u.useRef(null);u.useEffect(()=>{!a||!f.current||(y.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")),y.current&&f.current.focus()),()=>{i||(T.current&&T.current.focus&&(b.current=!0,T.current.focus()),T.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(!y.current)return;let S=[];if((l.activeElement===h.current||l.activeElement===x.current)&&(S=s(f.current)),S.length>0){const j=!!((v=C.current)!=null&&v.shiftKey&&((F=C.current)==null?void 0:F.key)==="Tab"),q=S[0],K=S[S.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 I=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(I),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,n,i,c,a,s]);const N=l=>{T.current===null&&(T.current=l.relatedTarget),y.current=!0,g.current=l.target;const m=o.props.onFocus;m&&m(l)},E=l=>{T.current===null&&(T.current=l.relatedTarget),y.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,T=u.useRef({}),g=u.useRef(null),y=u.useRef(null),f=Y.useForkRef(y,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=()=>(T.current.modalRef=y.current,T.current.mount=g.current,T.current),k=()=>{_.mount(m(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},I=te.useEventCallback(()=>{const d=Ae(o)||l().body;_.add(m(),d),y.current&&k()}),P=()=>_.isTopModal(m()),S=te.useEventCallback(d=>{g.current=d,d&&(h&&P()?k():y.current&&L(y.current,E))}),v=u.useCallback(()=>{_.remove(m(),E)},[E]);u.useEffect(()=>()=>{v()},[v]),u.useEffect(()=>{h?I():(!N||!i)&&v()},[h,v,N,i,I]);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:S,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:T,components:g={},componentsProps:y={},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:I,onClose:P,onTransitionEnter:S,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:{...y,...j}},[ye,Te]=re.useSlot("root",{elementType:Le,externalForwardedProps:ee,getSlotProps:p,additionalProps:{ref:r,as:T},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=>{I&&I(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(ye,{...Te,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;
|