@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736340751
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-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +22 -21
- 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 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- 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 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- 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 +7 -7
- 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.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- 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/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 +7 -3
- package/dist/components/index.es.js +228 -220
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- 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.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- 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/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- 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 +6 -6
- 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 +9 -9
- 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--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.cjs +0 -1
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { H as
|
|
4
|
-
import { u as
|
|
2
|
+
import { r as ye } from "./index-DXD5J5Eu.js";
|
|
3
|
+
import { H as ee, I as oe, G as Y, P as e } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
4
|
+
import { u as Le, a as fe } from "./useSlotProps-B31YQlzb.js";
|
|
5
|
+
import { s as V, u as te, c as ne, r as je } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
5
6
|
import { jsx as z, jsxs as ke } from "react/jsx-runtime";
|
|
6
7
|
import { i as Fe } from "./isHostComponent-kiaBvYVo.js";
|
|
7
|
-
import { u as de } from "./useSlot-
|
|
8
|
-
import {
|
|
9
|
-
import { P as He, i as Ue } from "./Paper-
|
|
8
|
+
import { u as de } from "./useSlot-BTpHG6jf.js";
|
|
9
|
+
import { b as ze, M as Ke } from "./Modal-brWBFdK7.js";
|
|
10
|
+
import { P as He, i as Ue } from "./Paper-BG4Vk_Um.js";
|
|
10
11
|
import { o as J } from "./ownerDocument-CUrv0DIK.js";
|
|
11
12
|
import { o as Q } from "./ownerWindow-niciwP7I.js";
|
|
12
13
|
import { d as Ve } from "./debounce-46wSf_lW.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import { c as
|
|
16
|
-
import { H as Z } from "./Portal-
|
|
17
|
-
import { e as
|
|
18
|
-
import { G as
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import { u as Pe } from "./useForkRef-C_4o__cU.js";
|
|
15
|
+
import { r as _e } from "./refType-DKYKROQk.js";
|
|
16
|
+
import { c as Ae } from "./chainPropTypes-D9lkm76m.js";
|
|
17
|
+
import { H as Z } from "./Portal-JEwcozmp.js";
|
|
18
|
+
import { e as We } from "./elementTypeAcceptingRef-D-5kcohU.js";
|
|
19
|
+
import { G as $e } from "./Grow-CQVPAYvp.js";
|
|
20
|
+
import { u as qe } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
21
|
+
const ve = /* @__PURE__ */ s.createContext({});
|
|
22
|
+
process.env.NODE_ENV !== "production" && (ve.displayName = "ListContext");
|
|
21
23
|
function Be(t) {
|
|
22
|
-
return
|
|
24
|
+
return ee("MuiList", t);
|
|
23
25
|
}
|
|
24
|
-
const
|
|
26
|
+
const Co = oe("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
|
|
25
27
|
const {
|
|
26
28
|
classes: o,
|
|
27
29
|
disablePadding: n,
|
|
28
30
|
dense: y,
|
|
29
31
|
subheader: g
|
|
30
32
|
} = t;
|
|
31
|
-
return
|
|
33
|
+
return ne({
|
|
32
34
|
root: ["root", !n && "padding", y && "dense", g && "subheader"]
|
|
33
35
|
}, Be, o);
|
|
34
36
|
}, Ye = V("ul", {
|
|
@@ -62,7 +64,7 @@ const Ro = ne("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) =>
|
|
|
62
64
|
}
|
|
63
65
|
}]
|
|
64
66
|
}), Te = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
65
|
-
const y =
|
|
67
|
+
const y = te({
|
|
66
68
|
props: o,
|
|
67
69
|
name: "MuiList"
|
|
68
70
|
}), {
|
|
@@ -81,7 +83,7 @@ const Ro = ne("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) =>
|
|
|
81
83
|
dense: a,
|
|
82
84
|
disablePadding: m
|
|
83
85
|
}, i = Ge(D);
|
|
84
|
-
return /* @__PURE__ */ z(
|
|
86
|
+
return /* @__PURE__ */ z(ve.Provider, {
|
|
85
87
|
value: S,
|
|
86
88
|
children: /* @__PURE__ */ ke(Ye, {
|
|
87
89
|
as: b,
|
|
@@ -178,13 +180,13 @@ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
|
178
180
|
onKeyDown: O,
|
|
179
181
|
variant: S = "selectedMenu",
|
|
180
182
|
...D
|
|
181
|
-
} = o, i = s.useRef(null),
|
|
183
|
+
} = o, i = s.useRef(null), P = s.useRef({
|
|
182
184
|
keys: [],
|
|
183
185
|
repeating: !0,
|
|
184
186
|
previousKeyMatched: !0,
|
|
185
187
|
lastTime: null
|
|
186
188
|
});
|
|
187
|
-
|
|
189
|
+
qe(() => {
|
|
188
190
|
g && i.current.focus();
|
|
189
191
|
}, [g]), s.useImperativeHandle(y, () => ({
|
|
190
192
|
adjustStyleForScrollbar: (r, {
|
|
@@ -214,13 +216,13 @@ const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
|
214
216
|
else if (f === "End")
|
|
215
217
|
r.preventDefault(), W(l, null, E, m, he);
|
|
216
218
|
else if (f.length === 1) {
|
|
217
|
-
const p =
|
|
219
|
+
const p = P.current, M = f.toLowerCase(), L = performance.now();
|
|
218
220
|
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);
|
|
219
221
|
const x = R && !p.repeating && Ee(R, p);
|
|
220
222
|
p.previousKeyMatched && (x || W(l, R, !1, m, X, p)) ? r.preventDefault() : p.previousKeyMatched = !1;
|
|
221
223
|
}
|
|
222
224
|
O && O(r);
|
|
223
|
-
}, j =
|
|
225
|
+
}, j = Pe(i, n);
|
|
224
226
|
let c = -1;
|
|
225
227
|
s.Children.forEach(b, (r, l) => {
|
|
226
228
|
if (!/* @__PURE__ */ s.isValidElement(r)) {
|
|
@@ -293,9 +295,9 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
293
295
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
294
296
|
});
|
|
295
297
|
function Xe(t) {
|
|
296
|
-
return
|
|
298
|
+
return ee("MuiPopover", t);
|
|
297
299
|
}
|
|
298
|
-
|
|
300
|
+
oe("MuiPopover", ["root", "paper"]);
|
|
299
301
|
function me(t, o) {
|
|
300
302
|
let n = 0;
|
|
301
303
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
@@ -314,7 +316,7 @@ const Je = (t) => {
|
|
|
314
316
|
const {
|
|
315
317
|
classes: o
|
|
316
318
|
} = t;
|
|
317
|
-
return
|
|
319
|
+
return ne({
|
|
318
320
|
root: ["root"],
|
|
319
321
|
paper: ["paper"]
|
|
320
322
|
}, Xe, o);
|
|
@@ -339,7 +341,7 @@ const Je = (t) => {
|
|
|
339
341
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
340
342
|
outline: 0
|
|
341
343
|
}), Re = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
342
|
-
const y =
|
|
344
|
+
const y = te({
|
|
343
345
|
props: o,
|
|
344
346
|
name: "MuiPopover"
|
|
345
347
|
}), {
|
|
@@ -356,7 +358,7 @@ const Je = (t) => {
|
|
|
356
358
|
container: S,
|
|
357
359
|
elevation: D = 8,
|
|
358
360
|
marginThreshold: i = 16,
|
|
359
|
-
open:
|
|
361
|
+
open: P,
|
|
360
362
|
PaperProps: K = {},
|
|
361
363
|
slots: j = {},
|
|
362
364
|
slotProps: c = {},
|
|
@@ -364,7 +366,7 @@ const Je = (t) => {
|
|
|
364
366
|
vertical: "top",
|
|
365
367
|
horizontal: "left"
|
|
366
368
|
},
|
|
367
|
-
TransitionComponent: r =
|
|
369
|
+
TransitionComponent: r = $e,
|
|
368
370
|
transitionDuration: l = "auto",
|
|
369
371
|
TransitionProps: {
|
|
370
372
|
onEntering: f,
|
|
@@ -433,7 +435,7 @@ const Je = (t) => {
|
|
|
433
435
|
left: `${Math.round(U)}px`,
|
|
434
436
|
transformOrigin: ge(T)
|
|
435
437
|
};
|
|
436
|
-
}, [h, m, $, q, i]), [
|
|
438
|
+
}, [h, m, $, q, i]), [v, k] = s.useState(P), I = s.useCallback(() => {
|
|
437
439
|
const u = L.current;
|
|
438
440
|
if (!u)
|
|
439
441
|
return;
|
|
@@ -447,13 +449,13 @@ const Je = (t) => {
|
|
|
447
449
|
k(!1);
|
|
448
450
|
};
|
|
449
451
|
s.useEffect(() => {
|
|
450
|
-
|
|
451
|
-
}), s.useImperativeHandle(g, () =>
|
|
452
|
+
P && I();
|
|
453
|
+
}), s.useImperativeHandle(g, () => P ? {
|
|
452
454
|
updatePosition: () => {
|
|
453
455
|
I();
|
|
454
456
|
}
|
|
455
|
-
} : null, [
|
|
456
|
-
if (!
|
|
457
|
+
} : null, [P, I]), s.useEffect(() => {
|
|
458
|
+
if (!P)
|
|
457
459
|
return;
|
|
458
460
|
const u = Ve(() => {
|
|
459
461
|
I();
|
|
@@ -461,7 +463,7 @@ const Je = (t) => {
|
|
|
461
463
|
return d.addEventListener("resize", u), () => {
|
|
462
464
|
u.clear(), d.removeEventListener("resize", u);
|
|
463
465
|
};
|
|
464
|
-
}, [h,
|
|
466
|
+
}, [h, P, I]);
|
|
465
467
|
let re = l;
|
|
466
468
|
l === "auto" && !r.muiSupportAuto && (re = void 0);
|
|
467
469
|
const Ne = S || (h ? J(G(h)).body : void 0), se = {
|
|
@@ -476,7 +478,7 @@ const Je = (t) => {
|
|
|
476
478
|
additionalProps: {
|
|
477
479
|
elevation: D,
|
|
478
480
|
className: Y(_.paper, M == null ? void 0 : M.className),
|
|
479
|
-
style:
|
|
481
|
+
style: v ? M.style : {
|
|
480
482
|
...M.style,
|
|
481
483
|
opacity: 0
|
|
482
484
|
}
|
|
@@ -495,11 +497,11 @@ const Je = (t) => {
|
|
|
495
497
|
}
|
|
496
498
|
},
|
|
497
499
|
container: Ne,
|
|
498
|
-
open:
|
|
500
|
+
open: P
|
|
499
501
|
},
|
|
500
502
|
ownerState: x,
|
|
501
503
|
className: Y(_.root, O)
|
|
502
|
-
}), Ie =
|
|
504
|
+
}), Ie = Pe(L, ie.ref);
|
|
503
505
|
return /* @__PURE__ */ z(ae, {
|
|
504
506
|
...De,
|
|
505
507
|
...!Fe(ae) && {
|
|
@@ -510,7 +512,7 @@ const Je = (t) => {
|
|
|
510
512
|
ref: n,
|
|
511
513
|
children: /* @__PURE__ */ z(r, {
|
|
512
514
|
appear: !0,
|
|
513
|
-
in:
|
|
515
|
+
in: P,
|
|
514
516
|
onEntering: we,
|
|
515
517
|
onExited: Ce,
|
|
516
518
|
timeout: re,
|
|
@@ -532,13 +534,13 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
532
534
|
* A ref for imperative actions.
|
|
533
535
|
* It currently only supports updatePosition() action.
|
|
534
536
|
*/
|
|
535
|
-
action:
|
|
537
|
+
action: _e,
|
|
536
538
|
/**
|
|
537
539
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
538
540
|
* or a function that returns either.
|
|
539
541
|
* It's used to set the position of the popover.
|
|
540
542
|
*/
|
|
541
|
-
anchorEl:
|
|
543
|
+
anchorEl: Ae(e.oneOfType([Z, e.func]), (t) => {
|
|
542
544
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
543
545
|
const o = G(t.anchorEl);
|
|
544
546
|
if (o && o.nodeType === 1) {
|
|
@@ -657,7 +659,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
657
659
|
* @default {}
|
|
658
660
|
*/
|
|
659
661
|
PaperProps: e.shape({
|
|
660
|
-
component:
|
|
662
|
+
component: We
|
|
661
663
|
}),
|
|
662
664
|
/**
|
|
663
665
|
* The props used for each slot inside.
|
|
@@ -718,9 +720,9 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
718
720
|
TransitionProps: e.object
|
|
719
721
|
});
|
|
720
722
|
function Ze(t) {
|
|
721
|
-
return
|
|
723
|
+
return ee("MuiMenu", t);
|
|
722
724
|
}
|
|
723
|
-
const
|
|
725
|
+
const No = oe("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
724
726
|
vertical: "top",
|
|
725
727
|
horizontal: "right"
|
|
726
728
|
}, oo = {
|
|
@@ -730,13 +732,13 @@ const wo = ne("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
730
732
|
const {
|
|
731
733
|
classes: o
|
|
732
734
|
} = t;
|
|
733
|
-
return
|
|
735
|
+
return ne({
|
|
734
736
|
root: ["root"],
|
|
735
737
|
paper: ["paper"],
|
|
736
738
|
list: ["list"]
|
|
737
739
|
}, Ze, o);
|
|
738
740
|
}, no = V(Re, {
|
|
739
|
-
shouldForwardProp: (t) =>
|
|
741
|
+
shouldForwardProp: (t) => je(t) || t === "classes",
|
|
740
742
|
name: "MuiMenu",
|
|
741
743
|
slot: "Root",
|
|
742
744
|
overridesResolver: (t, o) => o.root
|
|
@@ -759,7 +761,7 @@ const wo = ne("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
759
761
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
760
762
|
outline: 0
|
|
761
763
|
}), io = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
762
|
-
const y =
|
|
764
|
+
const y = te({
|
|
763
765
|
props: o,
|
|
764
766
|
name: "MuiMenu"
|
|
765
767
|
}), {
|
|
@@ -774,34 +776,34 @@ const wo = ne("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
|
774
776
|
PopoverClasses: D,
|
|
775
777
|
transitionDuration: i = "auto",
|
|
776
778
|
TransitionProps: {
|
|
777
|
-
onEntering:
|
|
779
|
+
onEntering: P,
|
|
778
780
|
...K
|
|
779
781
|
} = {},
|
|
780
782
|
variant: j = "selectedMenu",
|
|
781
783
|
slots: c = {},
|
|
782
784
|
slotProps: C = {},
|
|
783
785
|
...r
|
|
784
|
-
} = y, l =
|
|
786
|
+
} = y, l = Le(), f = {
|
|
785
787
|
...y,
|
|
786
788
|
autoFocus: g,
|
|
787
789
|
disableAutoFocusItem: a,
|
|
788
790
|
MenuListProps: m,
|
|
789
|
-
onEntering:
|
|
791
|
+
onEntering: P,
|
|
790
792
|
PaperProps: S,
|
|
791
793
|
transitionDuration: i,
|
|
792
794
|
TransitionProps: K,
|
|
793
795
|
variant: j
|
|
794
|
-
}, N = to(f), R = g && !a && O, p = s.useRef(null), M = (
|
|
795
|
-
p.current && p.current.adjustStyleForScrollbar(
|
|
796
|
+
}, N = to(f), R = g && !a && O, p = s.useRef(null), M = (v, k) => {
|
|
797
|
+
p.current && p.current.adjustStyleForScrollbar(v, {
|
|
796
798
|
direction: l ? "rtl" : "ltr"
|
|
797
|
-
}),
|
|
798
|
-
}, L = (
|
|
799
|
-
|
|
799
|
+
}), P && P(v, k);
|
|
800
|
+
}, L = (v) => {
|
|
801
|
+
v.key === "Tab" && (v.preventDefault(), E && E(v, "tabKeyDown"));
|
|
800
802
|
};
|
|
801
803
|
let x = -1;
|
|
802
|
-
s.Children.map(h, (
|
|
803
|
-
/* @__PURE__ */ s.isValidElement(
|
|
804
|
-
`)),
|
|
804
|
+
s.Children.map(h, (v, k) => {
|
|
805
|
+
/* @__PURE__ */ s.isValidElement(v) && (process.env.NODE_ENV !== "production" && ye.isFragment(v) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
806
|
+
`)), v.props.disabled || (j === "selectedMenu" && v.props.selected || x === -1) && (x = k));
|
|
805
807
|
});
|
|
806
808
|
const _ = c.paper ?? ro, $ = C.paper ?? S, q = fe({
|
|
807
809
|
elementType: c.root,
|
|
@@ -958,8 +960,8 @@ export {
|
|
|
958
960
|
Te as L,
|
|
959
961
|
io as M,
|
|
960
962
|
Ze as a,
|
|
961
|
-
|
|
963
|
+
ve as b,
|
|
962
964
|
Be as g,
|
|
963
|
-
|
|
964
|
-
|
|
965
|
+
Co as l,
|
|
966
|
+
No as m
|
|
965
967
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const N=require("react"),t=require("./generateUtilityClasses-B_H9HEmg.cjs"),p=require("./DefaultPropsProvider-3KMGupjb.cjs"),q=require("./memoTheme-Bdg0Y_2O.cjs"),T=require("./Menu-Bsx8PA-q.cjs"),x=require("react/jsx-runtime"),w=require("./ButtonBase-BXtyQVDC.cjs"),S=require("./useEnhancedEffect-BQZ6dtCo.cjs"),B=require("./useForkRef-CTI33h-3.cjs"),P=require("./dividerClasses-CCAY3Pnr.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(w.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);S.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=B.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,13 +1,13 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as b, I as f, G as x, P as t, n as d } from "./
|
|
3
|
-
import { s as S, r as U, u as P, c as E } from "./DefaultPropsProvider-
|
|
4
|
-
import { m as F } from "./memoTheme-
|
|
5
|
-
import { b as $ } from "./Menu-
|
|
2
|
+
import { H as b, I as f, G as x, P as t, n as d } from "./generateUtilityClasses-Bssl7BA_.js";
|
|
3
|
+
import { s as S, r as U, u as P, c as E } from "./DefaultPropsProvider-CvJPQJmL.js";
|
|
4
|
+
import { m as F } from "./memoTheme-D7Fyh_3C.js";
|
|
5
|
+
import { b as $ } from "./Menu-C7tKmcAh.js";
|
|
6
6
|
import { jsx as M } from "react/jsx-runtime";
|
|
7
|
-
import { B as G } from "./ButtonBase-
|
|
8
|
-
import { u as j } from "./
|
|
7
|
+
import { B as G } from "./ButtonBase-DAWDecOk.js";
|
|
8
|
+
import { u as j } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
9
9
|
import { u as D } from "./useForkRef-C_4o__cU.js";
|
|
10
|
-
import { d as O } from "./dividerClasses-
|
|
10
|
+
import { d as O } from "./dividerClasses-nh2-hkQB.js";
|
|
11
11
|
function te(e) {
|
|
12
12
|
return b("MuiListItemIcon", e);
|
|
13
13
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const he=require("react"),o=require("./generateUtilityClasses-B_H9HEmg.cjs"),Pe=require("./memoTheme-Bdg0Y_2O.cjs"),V=require("./ownerWindow-DDHucZi0.cjs"),D=require("./ownerDocument-4MViGo3k.cjs"),Y=require("./useForkRef-CTI33h-3.cjs"),oe=require("./useEventCallback-C0-Qw3Sm.cjs"),ge=require("./mergeSlotProps-DuV-LTW7.cjs"),ne=require("./createChainedFunction-CJmlQuW8.cjs"),re=require("./useSlot-CByalpSD.cjs"),O=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-3KMGupjb.cjs"),Ee=require("./Backdrop-CvufxHMY.cjs"),G=require("./Portal-DF0RKOcD.cjs"),X=require("./utils-vmyQ2IaS.cjs");function Re(e){const t=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(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=Re(he);function ce(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xe(e){const t=D.ownerDocument(e);return t.body===e?V.ownerWindow(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function L(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function se(e){return parseInt(V.ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function ke(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,t,r,n,i){const s=[t,r,...n];[].forEach.call(e.children,c=>{const a=!s.includes(c),b=!ke(c);a&&b&&L(c,i)})}function H(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function ve(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(xe(n)){const c=ce(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 we(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class ae{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&L(t.modalRef,!1);const i=we(r);ie(r,t.mount,t.modalRef,i,!0);const s=H(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=H(this.containers,s=>s.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=ve(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=H(this.containers,c=>c.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&L(t.modalRef,r),ie(s.container,t.mount,t.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(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ce=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Se(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ie(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Se(e))}function Fe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ce)).forEach((n,i)=>{const s=Ne(n);s===-1||!Ie(n)||(s===0?t.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(t)}function Me(){return!0}function U(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:s=Fe,isEnabled:c=Me,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(t),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=t.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(t,{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:o.PropTypes.bool,disableEnforceFocus:o.PropTypes.bool,disableRestoreFocus:o.PropTypes.bool,getTabbable:o.PropTypes.func,isEnabled:o.PropTypes.func,open:o.PropTypes.bool.isRequired});process.env.NODE_ENV!=="production"&&(U.propTypes=G.exactProp(U.propTypes));function Oe(e){return typeof e=="function"?e():e}function Ae(e){return e?e.props.hasOwnProperty("in"):!1}const _=new ae;function De(e){const{container:t,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=Ae(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=oe.useEventCallback(()=>{const d=Oe(t)||l().body;_.add(m(),d),y.current&&k()}),P=()=>_.isTopModal(m()),S=oe.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=ge.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),onExited:ne.createChainedFunction(p,a==null?void 0:a.props.onExited)}},rootRef:f,portalRef:S,isTopModal:P,exited:A,hasTransition:N}}function le(e){return o.generateUtilityClass("MuiModal",e)}const je=o.generateUtilityClasses("MuiModal",["root","hidden","backdrop"]),qe=e=>{const{open:t,exited:r,classes:n}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return $.composeClasses(i,le,n)},Be=$.styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Pe.memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Le=$.styled(Ee.Backdrop,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ue=u.forwardRef(function(t,r){const n=$.useDefaultProps({name:"MuiModal",props:t}),{BackdropComponent:i=Le,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:de,portalRef:pe,isTopModal:fe,exited:Q,hasTransition:Z}=De({...d,rootRef:r}),B={...d,exited:Q},w=qe(B),W={};if(h.props.tabIndex===void 0&&(W.tabIndex="-1"),Z){const{onEnter:M,onExited:z}=de();W.onEnter=M,W.onExited=z}const ee={...J,slots:{root:g.Root,backdrop:g.Backdrop,...q},slotProps:{...y,...j}},[be,ye]=re.useSlot("root",{elementType:Be,externalForwardedProps:ee,getSlotProps:p,additionalProps:{ref:r,as:T},ownerState:B,className:o.clsx(a,w==null?void 0:w.root,!B.open&&B.exited&&(w==null?void 0:w.hidden))}),[Te,te]=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:o.clsx(s==null?void 0:s.className,w==null?void 0:w.backdrop),ownerState:B}),me=Y.useForkRef(s==null?void 0:s.ref,te.ref);return!k&&!F&&(!Z||Q)?null:O.jsx(G.Portal,{ref:pe,container:x,disablePortal:N,children:O.jsxs(be,{...ye,children:[!m&&i?O.jsx(Te,{...te,ref:me}):null,O.jsx(U,{disableEnforceFocus:A,disableAutoFocus:f,disableRestoreFocus:E,isEnabled:fe,open:F,children:u.cloneElement(h,W)})]})})});process.env.NODE_ENV!=="production"&&(ue.propTypes={BackdropComponent:o.PropTypes.elementType,BackdropProps:o.PropTypes.object,children:X.elementAcceptingRef.isRequired,classes:o.PropTypes.object,className:o.PropTypes.string,closeAfterTransition:o.PropTypes.bool,component:o.PropTypes.elementType,components:o.PropTypes.shape({Backdrop:o.PropTypes.elementType,Root:o.PropTypes.elementType}),componentsProps:o.PropTypes.shape({backdrop:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),root:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object])}),container:o.PropTypes.oneOfType([G.HTMLElementType,o.PropTypes.func]),disableAutoFocus:o.PropTypes.bool,disableEnforceFocus:o.PropTypes.bool,disableEscapeKeyDown:o.PropTypes.bool,disablePortal:o.PropTypes.bool,disableRestoreFocus:o.PropTypes.bool,disableScrollLock:o.PropTypes.bool,hideBackdrop:o.PropTypes.bool,keepMounted:o.PropTypes.bool,onBackdropClick:o.PropTypes.func,onClose:o.PropTypes.func,onTransitionEnter:o.PropTypes.func,onTransitionExited:o.PropTypes.func,open:o.PropTypes.bool.isRequired,slotProps:o.PropTypes.shape({backdrop:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),root:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object])}),slots:o.PropTypes.shape({backdrop:o.PropTypes.elementType,root:o.PropTypes.elementType}),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.FocusTrap=U;exports.Modal=ue;exports.ModalManager=ae;exports.getModalUtilityClass=le;exports.getScrollbarSize=ce;exports.modalClasses=je;
|