@cgi-learning-hub/ui 1.4.0-dev.1742227742 → 1.4.0-dev.1742230542
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/{Alert-BCd1tHk0.js → Alert-CKb0chao.js} +9 -9
- package/dist/{Alert-Bsw5YTuJ.cjs → Alert-DG3eL-Ib.cjs} +1 -1
- package/dist/{Backdrop-DOdBqGqq.cjs → Backdrop-BstwstC2.cjs} +1 -1
- package/dist/{Backdrop-CjDitjBW.js → Backdrop-iPLBOqna.js} +6 -6
- package/dist/{Box-DYA49L7w.cjs → Box-Bur5FaJN.cjs} +1 -1
- package/dist/{Box-GMNejc_m.js → Box-WOWWyD8I.js} +3 -3
- package/dist/{Button-x5rtZxJN.js → Button-9t4F1m3f.js} +6 -6
- package/dist/{Button-UmeKHfcL.cjs → Button-BwM-MwfL.cjs} +1 -1
- package/dist/{ButtonBase-D6tfI-8D.cjs → ButtonBase-Dc0VLLRk.cjs} +1 -1
- package/dist/{ButtonBase-CU1npQuI.js → ButtonBase-_bcYKepP.js} +4 -4
- package/dist/{CardContent-5bW4A4d2.cjs → CardContent-BaDUN0u9.cjs} +1 -1
- package/dist/{CardContent-CL_61cm-.js → CardContent-Cqcej9rj.js} +3 -3
- package/dist/{Checkbox-DQgPXaym.cjs → Checkbox-Bg5Js3hU.cjs} +1 -1
- package/dist/{Checkbox-CtRSDqOe.js → Checkbox-BphoJHzz.js} +7 -7
- package/dist/{Chip-BTnuWGEU.cjs → Chip-BXh7lD_u.cjs} +1 -1
- package/dist/{Chip-ZIBpWC4I.js → Chip-CtTzX7L1.js} +6 -6
- package/dist/{CircularProgress-cPXhiRlM.cjs → CircularProgress-DzvDjNK5.cjs} +1 -1
- package/dist/{CircularProgress-B28FKeiH.js → CircularProgress-bjuAAr_2.js} +4 -4
- package/dist/{CloseRounded-pP8asZiP.js → CloseRounded-CH_wqyxH.js} +1 -1
- package/dist/{CloseRounded-BRXBizmR.cjs → CloseRounded-CpwMhnlE.cjs} +1 -1
- package/dist/{CustomTreeItem-DBgMgvLx.cjs → CustomTreeItem-DLoOl_op.cjs} +1 -1
- package/dist/{CustomTreeItem-ca-TgHSV.js → CustomTreeItem-Dedtqa4t.js} +13 -13
- package/dist/{DatePicker-XdCuICxv.js → DatePicker-B7pz453y.js} +31 -31
- package/dist/{DatePicker-64gpvkmk.cjs → DatePicker-DfoPEGZZ.cjs} +1 -1
- package/dist/{DefaultPropsProvider-CQixa6JQ.js → DefaultPropsProvider-Dvh13KFH.js} +1 -1
- package/dist/{DefaultPropsProvider-wpBXjN8r.cjs → DefaultPropsProvider-DwzqwJhN.cjs} +1 -1
- package/dist/{Delete-DmeDAs0n.cjs → Delete-BFylYk6v.cjs} +1 -1
- package/dist/{Delete-BQA9--_t.js → Delete-DM9C9aQh.js} +1 -1
- package/dist/{Dialog-CgEvhrbZ.cjs → Dialog-DP022eS9.cjs} +1 -1
- package/dist/{Dialog-C-Ptqtq-.js → Dialog-n8vimrxc.js} +9 -9
- package/dist/{DialogContent-1sjO2rQK.js → DialogContent-BGSQL0RK.js} +3 -3
- package/dist/{DialogContent-DcZz4rBc.cjs → DialogContent-MuEOvxs_.cjs} +1 -1
- package/dist/{DialogTitle-F6JD1f_z.cjs → DialogTitle-0G76KDGl.cjs} +1 -1
- package/dist/{DialogTitle-CGpa_QH9.js → DialogTitle-ezVE1To8.js} +5 -5
- package/dist/{Divider-CNGfzZqD.js → Divider-Dsv97Wn2.js} +4 -4
- package/dist/{Divider-D3hPb7s4.cjs → Divider-R7sa-2lG.cjs} +1 -1
- package/dist/{Folder-DiQqYwXI.cjs → Folder-C3sJnRGB.cjs} +1 -1
- package/dist/{Folder-DXybV_jP.js → Folder-DYg6kxq4.js} +1 -1
- package/dist/{FormLabel-BlaPVlwX.js → FormLabel-CGGAOZFH.js} +4 -4
- package/dist/{FormLabel-XpwTqbs8.cjs → FormLabel-cq7UJ4go.cjs} +1 -1
- package/dist/{Grow-wjlsaPJ-.cjs → Grow-Cb2fuU7a.cjs} +1 -1
- package/dist/{Grow-D5UIC41W.js → Grow-pE2G14NE.js} +4 -4
- package/dist/{IconButton-CVOPR4EM.cjs → IconButton-BHDAW2iJ.cjs} +1 -1
- package/dist/{IconButton-CFUIddNg.js → IconButton-BakKGuRi.js} +6 -6
- package/dist/{InputAdornment-GcbiriFv.js → InputAdornment-Bkmq6VNk.js} +5 -5
- package/dist/{InputAdornment-CwFEJSXv.cjs → InputAdornment-DFDYHaYJ.cjs} +1 -1
- package/dist/{InputBase-Cejvjv1E.cjs → InputBase-BKnhhWZn.cjs} +1 -1
- package/dist/{InputBase-DJuF09Rf.js → InputBase-bnA8K4W2.js} +7 -7
- package/dist/{Link-2ncpUcIp.cjs → Link-0wJXqOAe.cjs} +1 -1
- package/dist/{Link-DtsZ0d_s.js → Link-DEU_DTLR.js} +7 -7
- package/dist/{List-Bo4pzQqG.cjs → List-COMUCfZk.cjs} +1 -1
- package/dist/{List-BTPrBGqY.js → List-oGUq0Gn0.js} +2 -2
- package/dist/{ListItem-CB4JyjSb.cjs → ListItem-CC-cmpXo.cjs} +1 -1
- package/dist/{ListItem-C9OfYRAP.js → ListItem-CMtCDluy.js} +5 -5
- package/dist/{ListItemText-B_hEVsaT.js → ListItemText-DKTxIs9G.js} +11 -11
- package/dist/{ListItemText-Bjd08uk4.cjs → ListItemText-kdAemcvv.cjs} +1 -1
- package/dist/{Menu-DD_bqi6q.js → Menu-BVTaox-P.js} +12 -12
- package/dist/{Menu-XypIRgTl.cjs → Menu-DTsiNh8Q.cjs} +1 -1
- package/dist/{MenuItem-vb36Ljmd.cjs → MenuItem-Cs5iZIh5.cjs} +1 -1
- package/dist/{MenuItem-Byj-2QQd.js → MenuItem-Do747s86.js} +7 -7
- package/dist/{Modal-S2P14Nsp.js → Modal-ByPqMZ34.js} +8 -8
- package/dist/{Modal-BG3hPYyH.cjs → Modal-CKhDE8dD.cjs} +1 -1
- package/dist/{MoreVert-rsN-POLa.js → MoreVert-BeKrLZJ3.js} +1 -1
- package/dist/{MoreVert-CxgmXooO.cjs → MoreVert-Y1VAw2HL.cjs} +1 -1
- package/dist/{Paper-BrsaeLlu.js → Paper-BjgQvh8P.js} +4 -4
- package/dist/{Paper-EvOTlB_Q.cjs → Paper-DUe1p9WA.cjs} +1 -1
- package/dist/{Popper-BaxEpkdE.cjs → Popper-B-PuE-bB.cjs} +1 -1
- package/dist/{Popper-BNftxeQ5.js → Popper-Ddr6kqA6.js} +6 -6
- package/dist/{Portal-Bw9XOIah.cjs → Portal-CRHmQs3P.cjs} +1 -1
- package/dist/{Portal-BLEnzj1v.js → Portal-DG6GhbHe.js} +2 -2
- package/dist/{Radio-CRTKwNe5.js → Radio-B3m8v75H.js} +9 -9
- package/dist/{Radio-CSl8GQNk.cjs → Radio-DzRo6qOl.cjs} +1 -1
- package/dist/{RadioGroup-NjI5PlIb.js → RadioGroup-CXVKYEdL.js} +3 -3
- package/dist/{RadioGroup-DL4hhZzK.cjs → RadioGroup-D3-QbdXe.cjs} +1 -1
- package/dist/{Select-8kBUq_SZ.cjs → Select-BNu0nA09.cjs} +1 -1
- package/dist/{Select-C0jrZLRg.js → Select-DNt8NZqc.js} +10 -10
- package/dist/{Stack-Bm7M81n8.js → Stack-CH8i1CHm.js} +4 -4
- package/dist/{Stack-B82ckLGm.cjs → Stack-DY5yaM_Q.cjs} +1 -1
- package/dist/{Switch-D5FnE7HW.js → Switch-CJAXOMfu.js} +6 -6
- package/dist/{Switch-DWKHe4z_.cjs → Switch-D8Pqg_PZ.cjs} +1 -1
- package/dist/{SwitchBase-CnA6TA2P.cjs → SwitchBase-7hTSk2Ag.cjs} +1 -1
- package/dist/{SwitchBase-91Mand9t.js → SwitchBase-CBcUUziU.js} +5 -5
- package/dist/Tab-BilrTZRW.js +1394 -0
- package/dist/Tab-DLYuqVH8.cjs +4 -0
- package/dist/{TextField-BzqflYRV.cjs → TextField-NFbVLcRr.cjs} +1 -1
- package/dist/{TextField-D5jS5WjF.js → TextField-lOgVscdx.js} +8 -8
- package/dist/ToggleButtonGroup-5yTr7ilf.cjs +142 -0
- package/dist/{ToggleButtonGroup-CipWZLXf.js → ToggleButtonGroup-B7yQDytL.js} +2746 -2483
- package/dist/{Tooltip-DgTrUaHJ.js → Tooltip-CzA_Asv5.js} +10 -10
- package/dist/{Tooltip-DJmbLjU6.cjs → Tooltip-m0ZCbyoe.cjs} +1 -1
- package/dist/{Typography-DPij13XT.cjs → Typography-D2e0HXGw.cjs} +1 -1
- package/dist/{Typography-Ct2Sc9KM.js → Typography-DVBKpN4u.js} +5 -5
- package/dist/{capitalize-CEByPz9F.cjs → capitalize-D-yulWPl.cjs} +1 -1
- package/dist/{capitalize-BJ0FEsU7.js → capitalize-P7jI1m0a.js} +1 -1
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- 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 +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- 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 +5 -5
- 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 +4 -4
- 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/TreeView/TreeView.cjs.js +1 -1
- package/dist/components/TreeView/TreeView.es.js +10 -10
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +9 -1
- package/dist/components/index.es.js +367 -356
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- 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 +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- 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 +21 -184
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +9 -9
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-DJMYlO0S.cjs → createSvgIcon-C-xu_b94.cjs} +1 -1
- package/dist/{createSvgIcon-B62eln-G.js → createSvgIcon-CJhvvvqA.js} +4 -4
- package/dist/{dividerClasses-DjJZQ2Lt.js → dividerClasses-8us6UU9a.js} +1 -1
- package/dist/{dividerClasses-Dq1bCO_s.cjs → dividerClasses-DjtRGgBE.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-B04tk6ag.js → elementTypeAcceptingRef-BKLM-XWC.js} +1 -1
- package/dist/{elementTypeAcceptingRef-BjgxF5Bq.cjs → elementTypeAcceptingRef-CUhueWZ_.cjs} +1 -1
- package/dist/{extendSxProp-D-oLUmkR.cjs → extendSxProp-B3iQ6W4H.cjs} +1 -1
- package/dist/{extendSxProp-CgS-3O19.js → extendSxProp-C0R7yiG4.js} +1 -1
- package/dist/{generateUtilityClasses-De8NU9_E.cjs → generateUtilityClasses-Bnvii3Zv.cjs} +4 -4
- package/dist/{getReactElementRef-DjLvttrJ.js → getReactElementRef-4PbLT8Hy.js} +1 -1
- package/dist/{getReactElementRef-CTRMtaOQ.cjs → getReactElementRef-IE1Keh2q.cjs} +1 -1
- package/dist/{index-BZ7ldAwE.js → index--jmdhZ-K.js} +4 -4
- package/dist/{index-DcwdJ8a_.js → index-BKqZ9KaQ.js} +1 -1
- package/dist/{index-Cr54V0sz.cjs → index-BeDJBhYu.cjs} +1 -1
- package/dist/{index-T-RSwkXB.cjs → index-CBgsstcV.cjs} +1 -1
- package/dist/{index-D_xl88AE.js → index-DiVU2T0K.js} +1 -1
- package/dist/{index-CVFzneYe.cjs → index-Dx_q65HZ.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +367 -356
- package/dist/{listItemTextClasses-BCuJjsDp.cjs → listItemTextClasses-BIn6LnTI.cjs} +1 -1
- package/dist/{listItemTextClasses-Kxu3VILo.js → listItemTextClasses-DQ08IVSw.js} +1 -1
- package/dist/{memoTheme-DJWQ754x.js → memoTheme-Bdc3PRAw.js} +1 -1
- package/dist/{memoTheme-DrjvJtTP.cjs → memoTheme-tEno1c9b.cjs} +1 -1
- package/dist/{refType-Bpj8bod6.js → refType-B8r_q_30.js} +1 -1
- package/dist/{refType-BkobP3bK.cjs → refType-C8q8lKZo.cjs} +1 -1
- package/dist/{resolveComponentProps-PuUs-PsA.cjs → resolveComponentProps-DjrZpsT9.cjs} +1 -1
- package/dist/{resolveComponentProps-CIdMNno4.js → resolveComponentProps-Gcj9bqhP.js} +1 -1
- package/dist/{useSlot-RbAtahZu.js → useSlot--O8JIo9E.js} +1 -1
- package/dist/{useSlot-CC2AaOjN.cjs → useSlot-CZIukiuE.cjs} +1 -1
- package/dist/{useSlotProps-U2Iu6E0j.js → useSlotProps-6i1DWAkd.js} +1 -1
- package/dist/{useSlotProps-BTRhbYwP.cjs → useSlotProps-COYNTPfw.cjs} +1 -1
- package/dist/{useTheme-CUKf8NYA.js → useTheme-B1zgxKTF.js} +1 -1
- package/dist/useTheme-CJM-QIGb.js +11 -0
- package/dist/{useTheme-CIf2b2wK.cjs → useTheme-CobOLSlE.cjs} +1 -1
- package/dist/{useTheme-7RGQRN-h.cjs → useTheme-g_JWgLNP.cjs} +1 -1
- package/dist/useThemeProps-D1cSSjm5.js +17 -0
- package/dist/{useThemeProps-Bxjrhw9q.js → useThemeProps-DcCmn46r.js} +2 -2
- package/dist/useThemeProps-DewY2V1T.cjs +1 -0
- package/dist/{useThemeProps-AnS1uVAy.cjs → useThemeProps-Kq9aLb1W.cjs} +1 -1
- package/dist/{utils-B2jSugkj.js → utils-365il-YC.js} +1 -1
- package/dist/{utils-lBmb5bp_.cjs → utils-B7ix7w4M.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Tabs-C5VIdTSp.js +0 -1227
- package/dist/Tabs-Csp29aqN.cjs +0 -4
- package/dist/ToggleButtonGroup-Bpi3kmko.cjs +0 -140
- package/dist/useTheme-Czi7oO55.js +0 -11
- package/dist/useThemeProps-DxBEHys5.cjs +0 -1
- package/dist/useThemeProps-v-SfXuGn.js +0 -17
- package/dist/{generateUtilityClasses-EXBFO7eY.js → generateUtilityClasses-qBH_3lvP.js} +22 -22
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { G as Je, H as Qe, I as ge, n as ve, P as e } from "./generateUtilityClasses-
|
|
3
|
-
import { u as Ze } from "./index-
|
|
4
|
-
import { u as eo } from "./useTheme-
|
|
2
|
+
import { G as Je, H as Qe, I as ge, n as ve, P as e } from "./generateUtilityClasses-qBH_3lvP.js";
|
|
3
|
+
import { u as Ze } from "./index-DiVU2T0K.js";
|
|
4
|
+
import { u as eo } from "./useTheme-CJM-QIGb.js";
|
|
5
5
|
import { jsx as L, jsxs as Te } from "react/jsx-runtime";
|
|
6
|
-
import { u as oo, s as G, c as to } from "./DefaultPropsProvider-
|
|
7
|
-
import { m as Y } from "./memoTheme-
|
|
8
|
-
import { u as I } from "./useSlot
|
|
6
|
+
import { u as oo, s as G, c as to } from "./DefaultPropsProvider-Dvh13KFH.js";
|
|
7
|
+
import { m as Y } from "./memoTheme-Bdc3PRAw.js";
|
|
8
|
+
import { u as I } from "./useSlot--O8JIo9E.js";
|
|
9
9
|
import { u as j, T as ro } from "./useTimeout-CrCYVizI.js";
|
|
10
10
|
import { u as po } from "./useControlled-BYdyS7Pn.js";
|
|
11
11
|
import { u as no } from "./useId-CK6Kn3Tn.js";
|
|
12
12
|
import { u as be } from "./useEventCallback-BAQJJ3ye.js";
|
|
13
13
|
import { u as so } from "./useForkRef-C_4o__cU.js";
|
|
14
|
-
import { g as io, e as ao } from "./getReactElementRef-
|
|
15
|
-
import { G as lo } from "./Grow-
|
|
16
|
-
import { P as Re } from "./Popper-
|
|
17
|
-
import { c as Oe } from "./capitalize-
|
|
14
|
+
import { g as io, e as ao } from "./getReactElementRef-4PbLT8Hy.js";
|
|
15
|
+
import { G as lo } from "./Grow-pE2G14NE.js";
|
|
16
|
+
import { P as Re } from "./Popper-Ddr6kqA6.js";
|
|
17
|
+
import { c as Oe } from "./capitalize-P7jI1m0a.js";
|
|
18
18
|
import { i as ye } from "./isFocusVisible-CPZqtjv2.js";
|
|
19
19
|
function co(r) {
|
|
20
20
|
return Qe("MuiTooltip", r);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Je=require("react"),e=require("./generateUtilityClasses-
|
|
1
|
+
"use strict";const Je=require("react"),e=require("./generateUtilityClasses-Bnvii3Zv.cjs"),Qe=require("./index-BeDJBhYu.cjs"),Ze=require("./useTheme-CobOLSlE.cjs"),g=require("react/jsx-runtime"),x=require("./DefaultPropsProvider-DwzqwJhN.cjs"),Y=require("./memoTheme-tEno1c9b.cjs"),I=require("./useSlot-CZIukiuE.cjs"),O=require("./useTimeout-COCrDKz-.cjs"),eo=require("./useControlled-Ysk4KqoX.cjs"),oo=require("./useId-DNXtOFeX.cjs"),ye=require("./useEventCallback-C0-Qw3Sm.cjs"),to=require("./useForkRef-CTI33h-3.cjs"),be=require("./getReactElementRef-IE1Keh2q.cjs"),ro=require("./Grow-Cb2fuU7a.cjs"),Pe=require("./Popper-B-PuE-bB.cjs"),we=require("./capitalize-D-yulWPl.cjs"),he=require("./isFocusVisible-DlSijby6.cjs");function po(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}return o.default=r,Object.freeze(o)}const n=po(Je);function ve(r){return e.generateUtilityClass("MuiTooltip",r)}const p=e.generateUtilityClasses("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function so(r){return Math.round(r*1e5)/1e5}const no=r=>{const{classes:o,disableInteractive:s,arrow:l,touch:C,placement:b}=r,G={popper:["popper",!s&&"popperInteractive",l&&"popperArrow"],tooltip:["tooltip",l&&"tooltipArrow",C&&"touch",`tooltipPlacement${we.capitalize(b.split("-")[0])}`],arrow:["arrow"]};return x.composeClasses(G,ve,o)},io=x.styled(Pe.Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(r,o)=>{const{ownerState:s}=r;return[o.popper,!s.disableInteractive&&o.popperInteractive,s.arrow&&o.popperArrow,!s.open&&o.popperClose]}})(Y.memoTheme(({theme:r})=>({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:o})=>!o.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:o})=>!o,style:{pointerEvents:"none"}},{props:({ownerState:o})=>o.arrow,style:{[`&[data-popper-placement*="bottom"] .${p.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${p.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${p.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${p.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="right"] .${p.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="right"] .${p.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="left"] .${p.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="left"] .${p.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ao=x.styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(r,o)=>{const{ownerState:s}=r;return[o.tooltip,s.touch&&o.touch,s.arrow&&o.tooltipArrow,o[`tooltipPlacement${we.capitalize(s.placement.split("-")[0])}`]]}})(Y.memoTheme(({theme:r})=>({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:e.alpha(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium,[`.${p.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${p.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${p.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${p.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:o})=>o.arrow,style:{position:"relative",margin:0}},{props:({ownerState:o})=>o.touch,style:{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:`${so(16/14)}em`,fontWeight:r.typography.fontWeightRegular}},{props:({ownerState:o})=>!o.isRtl,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:o})=>!o.isRtl&&o.touch,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:o})=>!!o.isRtl,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:o})=>!!o.isRtl&&o.touch,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${p.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${p.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),lo=x.styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(r,o)=>o.arrow})(Y.memoTheme(({theme:r})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:r.vars?r.vars.palette.Tooltip.bg:e.alpha(r.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let q=!1;const ge=new O.Timeout;let R={x:0,y:0};function k(r,o){return(s,...l)=>{o&&o(s,...l),r(s,...l)}}const Re=n.forwardRef(function(o,s){const l=x.useDefaultProps({props:o,name:"MuiTooltip"}),{arrow:C=!1,children:b,classes:G,components:S={},componentsProps:E={},describeChild:Oe=!1,disableFocusListener:xe=!1,disableHoverListener:K=!1,disableInteractive:Ce=!1,disableTouchListener:Se=!1,enterDelay:X=100,enterNextDelay:J=0,enterTouchDelay:Ee=700,followCursor:A=!1,id:Me,leaveDelay:Q=0,leaveTouchDelay:je=1500,onClose:Z,onOpen:ee,open:oe,placement:te="bottom",PopperComponent:re,PopperProps:f={},slotProps:T={},slots:$e={},title:y,TransitionComponent:Ne,TransitionProps:Le,...pe}=l,d=n.isValidElement(b)?b:g.jsx("span",{children:b}),se=Ze.useTheme(),De=Qe.useRtl(),[i,ne]=n.useState(),[F,Ie]=n.useState(null),M=n.useRef(!1),U=Ce||A,ie=O.useTimeout(),W=O.useTimeout(),j=O.useTimeout(),ae=O.useTimeout(),[qe,le]=eo.useControlled({controlled:oe,default:!1,name:"Tooltip",state:"open"});let m=qe;if(process.env.NODE_ENV!=="production"){const{current:t}=n.useRef(oe!==void 0);n.useEffect(()=>{i&&i.disabled&&!t&&y!==""&&i.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
2
2
|
`))},[y,i,t])}const B=oo.useId(Me),P=n.useRef(),$=ye.useEventCallback(()=>{P.current!==void 0&&(document.body.style.WebkitUserSelect=P.current,P.current=void 0),ae.clear()});n.useEffect(()=>$,[$]);const ce=t=>{ge.clear(),q=!0,le(!0),ee&&!m&&ee(t)},N=ye.useEventCallback(t=>{ge.start(800+Q,()=>{q=!1}),le(!1),Z&&m&&Z(t),ie.start(se.transitions.duration.shortest,()=>{M.current=!1})}),L=t=>{M.current&&t.type!=="touchstart"||(i&&i.removeAttribute("title"),W.clear(),j.clear(),X||q&&J?W.start(q?J:X,()=>{ce(t)}):ce(t))},z=t=>{W.clear(),j.start(Q,()=>{N(t)})},[,ue]=n.useState(!1),de=t=>{he.isFocusVisible(t.target)||(ue(!1),z(t))},me=t=>{i||ne(t.currentTarget),he.isFocusVisible(t.target)&&(ue(!0),L(t))},fe=t=>{M.current=!0;const u=d.props;u.onTouchStart&&u.onTouchStart(t)},ke=t=>{fe(t),j.clear(),ie.clear(),$(),P.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(Ee,()=>{document.body.style.WebkitUserSelect=P.current,L(t)})},Ae=t=>{d.props.onTouchEnd&&d.props.onTouchEnd(t),$(),j.start(je,()=>{N(t)})};n.useEffect(()=>{if(!m)return;function t(u){u.key==="Escape"&&N(u)}return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[N,m]);const Fe=to.useForkRef(be.getReactElementRef(d),ne,s);!y&&y!==0&&(m=!1);const V=n.useRef(),Ue=t=>{const u=d.props;u.onMouseMove&&u.onMouseMove(t),R={x:t.clientX,y:t.clientY},V.current&&V.current.update()},w={},_=typeof y=="string";Oe?(w.title=!m&&_&&!K?y:null,w["aria-describedby"]=m?B:null):(w["aria-label"]=_?y:null,w["aria-labelledby"]=m&&!_?B:null);const a={...w,...pe,...d.props,className:e.clsx(pe.className,d.props.className),onTouchStart:fe,ref:Fe,...A?{onMouseMove:Ue}:{}};process.env.NODE_ENV!=="production"&&(a["data-mui-internal-clone-element"]=!0,n.useEffect(()=>{i&&!i.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
3
3
|
`))},[i]));const v={};Se||(a.onTouchStart=ke,a.onTouchEnd=Ae),K||(a.onMouseOver=k(L,a.onMouseOver),a.onMouseLeave=k(z,a.onMouseLeave),U||(v.onMouseOver=L,v.onMouseLeave=z)),xe||(a.onFocus=k(me,a.onFocus),a.onBlur=k(de,a.onBlur),U||(v.onFocus=me,v.onBlur=de)),process.env.NODE_ENV!=="production"&&d.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${d.props.title}\` or the Tooltip component.`].join(`
|
|
4
4
|
`));const h={...l,isRtl:De,arrow:C,disableInteractive:U,placement:te,PopperComponentProp:re,touch:M.current},c=typeof T.popper=="function"?T.popper(h):T.popper,We=n.useMemo(()=>{var u,Te;let t=[{name:"arrow",enabled:!!F,options:{element:F,padding:4}}];return(u=f.popperOptions)!=null&&u.modifiers&&(t=t.concat(f.popperOptions.modifiers)),(Te=c==null?void 0:c.popperOptions)!=null&&Te.modifiers&&(t=t.concat(c.popperOptions.modifiers)),{...f.popperOptions,...c==null?void 0:c.popperOptions,modifiers:t}},[F,f.popperOptions,c==null?void 0:c.popperOptions]),H=no(h),Be=typeof T.transition=="function"?T.transition(h):T.transition,D={slots:{popper:S.Popper,transition:S.Transition??Ne,tooltip:S.Tooltip,arrow:S.Arrow,...$e},slotProps:{arrow:T.arrow??E.arrow,popper:{...f,...c??E.popper},tooltip:T.tooltip??E.tooltip,transition:{...Le,...Be??E.transition}}},[ze,Ve]=I.useSlot("popper",{elementType:io,externalForwardedProps:D,ownerState:h,className:e.clsx(H.popper,f==null?void 0:f.className)}),[_e,He]=I.useSlot("transition",{elementType:ro.Grow,externalForwardedProps:D,ownerState:h}),[Ye,Ge]=I.useSlot("tooltip",{elementType:ao,className:H.tooltip,externalForwardedProps:D,ownerState:h}),[Ke,Xe]=I.useSlot("arrow",{elementType:lo,className:H.arrow,externalForwardedProps:D,ownerState:h,ref:Ie});return g.jsxs(n.Fragment,{children:[n.cloneElement(d,a),g.jsx(ze,{as:re??Pe.Popper,placement:te,anchorEl:A?{getBoundingClientRect:()=>({top:R.y,left:R.x,right:R.x,bottom:R.y,width:0,height:0})}:i,popperRef:V,open:i?m:!1,id:B,transition:!0,...v,...Ve,popperOptions:We,children:({TransitionProps:t})=>g.jsx(_e,{timeout:se.transitions.duration.shorter,...t,...He,children:g.jsxs(Ye,{...Ge,children:[y,C?g.jsx(Ke,{...Xe}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Re.propTypes={arrow:e.PropTypes.bool,children:be.elementAcceptingRef.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,components:e.PropTypes.shape({Arrow:e.PropTypes.elementType,Popper:e.PropTypes.elementType,Tooltip:e.PropTypes.elementType,Transition:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({arrow:e.PropTypes.object,popper:e.PropTypes.object,tooltip:e.PropTypes.object,transition:e.PropTypes.object}),describeChild:e.PropTypes.bool,disableFocusListener:e.PropTypes.bool,disableHoverListener:e.PropTypes.bool,disableInteractive:e.PropTypes.bool,disableTouchListener:e.PropTypes.bool,enterDelay:e.PropTypes.number,enterNextDelay:e.PropTypes.number,enterTouchDelay:e.PropTypes.number,followCursor:e.PropTypes.bool,id:e.PropTypes.string,leaveDelay:e.PropTypes.number,leaveTouchDelay:e.PropTypes.number,onClose:e.PropTypes.func,onOpen:e.PropTypes.func,open:e.PropTypes.bool,placement:e.PropTypes.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:e.PropTypes.elementType,PopperProps:e.PropTypes.object,slotProps:e.PropTypes.shape({arrow:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),popper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),tooltip:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({arrow:e.PropTypes.elementType,popper:e.PropTypes.elementType,tooltip:e.PropTypes.elementType,transition:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),title:e.PropTypes.node,TransitionComponent:e.PropTypes.elementType,TransitionProps:e.PropTypes.object});exports.Tooltip=Re;exports.getTooltipUtilityClass=ve;exports.tooltipClasses=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const C=require("react"),t=require("./generateUtilityClasses-
|
|
1
|
+
"use strict";const C=require("react"),t=require("./generateUtilityClasses-Bnvii3Zv.cjs"),S=require("./index-CBgsstcV.cjs"),w=require("./memoTheme-tEno1c9b.cjs"),B=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),q=require("react/jsx-runtime"),c=require("./DefaultPropsProvider-DwzqwJhN.cjs"),y=require("./capitalize-D-yulWPl.cjs");function M(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const p=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,p.get?p:{enumerable:!0,get:()=>r[e]})}}return o.default=r,Object.freeze(o)}const R=M(C);function P(r){return t.generateUtilityClass("MuiTypography",r)}const W=t.generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),D={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},N=S.internal_createExtendSxProp(),U=r=>{const{align:o,gutterBottom:e,noWrap:p,paragraph:s,variant:i,classes:n}=r,a={root:["root",i,r.align!=="inherit"&&`align${y.capitalize(o)}`,e&&"gutterBottom",p&&"noWrap",s&&"paragraph"]};return c.composeClasses(a,P,n)},z=c.styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,o)=>{const{ownerState:e}=r;return[o.root,e.variant&&o[e.variant],e.align!=="inherit"&&o[`align${y.capitalize(e.align)}`],e.noWrap&&o.noWrap,e.gutterBottom&&o.gutterBottom,e.paragraph&&o.paragraph]}})(w.memoTheme(({theme:r})=>{var o;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(r.typography).filter(([e,p])=>e!=="inherit"&&p&&typeof p=="object").map(([e,p])=>({props:{variant:e},style:p})),...Object.entries(r.palette).filter(B.createSimplePaletteValueFilter()).map(([e])=>({props:{color:e},style:{color:(r.vars||r).palette[e].main}})),...Object.entries(((o=r.palette)==null?void 0:o.text)||{}).filter(([,e])=>typeof e=="string").map(([e])=>({props:{color:`text${y.capitalize(e)}`},style:{color:(r.vars||r).palette.text[e]}})),{props:({ownerState:e})=>e.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},d=R.forwardRef(function(o,e){const{color:p,...s}=c.useDefaultProps({props:o,name:"MuiTypography"}),i=!D[p],n=N({...s,...i&&{color:p}}),{align:a="inherit",className:g,component:u,gutterBottom:x=!1,noWrap:v=!1,paragraph:h=!1,variant:l="body1",variantMapping:T=b,...f}=n,m={...n,align:a,color:p,className:g,component:u,gutterBottom:x,noWrap:v,paragraph:h,variant:l,variantMapping:T},O=u||(h?"p":T[l]||b[l])||"span",j=U(m);return q.jsx(z,{as:O,ref:e,className:t.clsx(j.root,g),...f,ownerState:m,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...f.style}})});process.env.NODE_ENV!=="production"&&(d.propTypes={align:t.PropTypes.oneOf(["center","inherit","justify","left","right"]),children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),t.PropTypes.string]),component:t.PropTypes.elementType,gutterBottom:t.PropTypes.bool,noWrap:t.PropTypes.bool,paragraph:t.PropTypes.bool,style:t.PropTypes.object,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]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),t.PropTypes.string]),variantMapping:t.PropTypes.object});exports.Typography=d;exports.getTypographyUtilityClass=P;exports.typographyClasses=W;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import { G as j, H as B, I as C, P as r } from "./generateUtilityClasses-
|
|
3
|
-
import { i as S } from "./index-
|
|
4
|
-
import { m as w } from "./memoTheme-
|
|
2
|
+
import { G as j, H as B, I as C, P as r } from "./generateUtilityClasses-qBH_3lvP.js";
|
|
3
|
+
import { i as S } from "./index--jmdhZ-K.js";
|
|
4
|
+
import { m as w } from "./memoTheme-Bdc3PRAw.js";
|
|
5
5
|
import { c as P } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
6
|
import { jsx as W } from "react/jsx-runtime";
|
|
7
|
-
import { u as M, s as R, c as N } from "./DefaultPropsProvider-
|
|
8
|
-
import { c } from "./capitalize-
|
|
7
|
+
import { u as M, s as R, c as N } from "./DefaultPropsProvider-Dvh13KFH.js";
|
|
8
|
+
import { c } from "./capitalize-P7jI1m0a.js";
|
|
9
9
|
function D(e) {
|
|
10
10
|
return B("MuiTypography", e);
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./generateUtilityClasses-
|
|
1
|
+
"use strict";const r=require("./generateUtilityClasses-Bnvii3Zv.cjs");function t(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":r.formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}exports.capitalize=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./generateUtilityClasses-
|
|
1
|
+
import { J as e } from "./generateUtilityClasses-qBH_3lvP.js";
|
|
2
2
|
function o(r) {
|
|
3
3
|
if (typeof r != "string")
|
|
4
4
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const e=require("../../Alert-
|
|
1
|
+
"use strict";require("react/jsx-runtime");const e=require("../../Alert-DG3eL-Ib.cjs");module.exports=e.Alert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Alert-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Alert-DG3eL-Ib.cjs");exports.Alert=e.Alert;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("../../DefaultPropsProvider-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("../../DefaultPropsProvider-DwzqwJhN.cjs"),n=require("../../Button-BwM-MwfL.cjs"),i=r.styled(n.Button)(({color:t,theme:e})=>({minHeight:38,textTransform:"none",transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&.MuiButton-outlined":{borderRadius:5,borderWidth:2}})),s=({variant:t="outlined",...e})=>o.jsx(i,{variant:t,...e});module.exports=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { s as e } from "../../DefaultPropsProvider-
|
|
3
|
-
import { B as n } from "../../Button-
|
|
2
|
+
import { s as e } from "../../DefaultPropsProvider-Dvh13KFH.js";
|
|
3
|
+
import { B as n } from "../../Button-9t4F1m3f.js";
|
|
4
4
|
const i = e(n)(({ color: t, theme: o }) => ({
|
|
5
5
|
minHeight: 38,
|
|
6
6
|
textTransform: "none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const e=require("../../DatePicker-
|
|
1
|
+
"use strict";require("react/jsx-runtime");const e=require("../../DatePicker-DfoPEGZZ.cjs");module.exports=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-DfoPEGZZ.cjs");exports.DatePicker=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-CpwMhnlE.cjs"),c=require("@mui/material"),u=require("../../Dialog-DP022eS9.cjs"),a=({children:s,showCloseButton:i=!0,...e})=>{const o=()=>{var l;return(l=e.onClose)==null?void 0:l.call(e,{},"escapeKeyDown")};return n.jsxs(u.Dialog,{...e,children:[i?n.jsx(c.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:24,top:24},children:n.jsx(t.CloseRounded,{})}):null,s]})};module.exports=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { C as s } from "../../CloseRounded-
|
|
2
|
+
import { C as s } from "../../CloseRounded-CH_wqyxH.js";
|
|
3
3
|
import { IconButton as t } from "@mui/material";
|
|
4
|
-
import { D as c } from "../../Dialog-
|
|
4
|
+
import { D as c } from "../../Dialog-n8vimrxc.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
children: e,
|
|
7
7
|
showCloseButton: a = !0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon-C-xu_b94.cjs"),h=require("../../index-Dx_q65HZ.cjs"),u=require("../../Stack-DY5yaM_Q.cjs"),r=require("../../Typography-D2e0HXGw.cjs"),g=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),x=s.createSvgIcon(e.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),j=({defaultLabel:c="Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",dragLabel:i="Déposer les fichiers ici",information:o,width:n,height:t,...p})=>{const{getRootProps:l,getInputProps:a,isDragActive:d}=h.useDropzone(p);return e.jsxs(u.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:n??"18rem",height:t??"auto",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...l(),children:[e.jsx("input",{...a()}),d?e.jsxs(e.Fragment,{children:[e.jsx(g,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(x,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=j;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
3
|
-
import { u } from "../../index-
|
|
4
|
-
import { S as g } from "../../Stack-
|
|
5
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-CJhvvvqA.js";
|
|
3
|
+
import { u } from "../../index-BKqZ9KaQ.js";
|
|
4
|
+
import { S as g } from "../../Stack-CH8i1CHm.js";
|
|
5
|
+
import { T as o } from "../../Typography-DVBKpN4u.js";
|
|
6
6
|
const f = t(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
8
8
|
}), "FileUpload"), z = t(/* @__PURE__ */ r("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("../../Stack-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("../../Stack-DY5yaM_Q.cjs"),g=require("../../Box-Bur5FaJN.cjs"),e=require("../../Typography-D2e0HXGw.cjs"),x=({image:n,imageProps:o,imageSrc:i,title:s,description:r,descriptionProps:c,svgProps:l,titleProps:h,...a})=>t.jsxs(u.Stack,{direction:"column",alignItems:"center",margin:"0 auto",...a,children:[t.jsx(g.Box,{height:200,width:"auto",children:n??t.jsx("img",{src:i,height:"100%",...o})}),t.jsx(e.Typography,{variant:"h2",fontWeight:500,mt:3,...h,children:s}),r?t.jsx(e.Typography,{color:"textSecondary",mt:2,...c,children:r}):null]});module.exports=x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { S as l } from "../../Stack-
|
|
3
|
-
import { B as g } from "../../Box-
|
|
4
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { S as l } from "../../Stack-CH8i1CHm.js";
|
|
3
|
+
import { B as g } from "../../Box-WOWWyD8I.js";
|
|
4
|
+
import { T as o } from "../../Typography-DVBKpN4u.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
image: e,
|
|
7
7
|
imageProps: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("../../createSvgIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("../../createSvgIcon-C-xu_b94.cjs"),s=e.createSvgIcon(c.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"}),"CalendarViewMonthRounded"),n=e.createSvgIcon(c.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),h=e.createSvgIcon(c.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),a=e.createSvgIcon(c.jsx("path",{d:"M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"}),"MovieOutlined"),o=e.createSvgIcon(c.jsx("path",{d:"M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"}),"MusicNoteRounded"),r=e.createSvgIcon(c.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"}),"OndemandVideoRounded"),d=e.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"}),"PhotoOutlined"),v=e.createSvgIcon(c.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"}),"PictureAsPdfOutlined"),i=({extension:t})=>{switch(t.toUpperCase()){case"MP3":case"MIDI":case"WAV":return c.jsx(o,{});case"JPG":case"JPEG":case"PNG":case"SVG":return c.jsx(d,{});case"MP4":case"MOV":case"AVI":return c.jsx(a,{});case"CSV":case"ODS":case"XLS":case"XLSX":return c.jsx(s,{});case"PDF":return c.jsx(v,{});case"ODT":case"DOC":case"DOCX":case"TXT":return c.jsx(n,{});case"ODP":case"PPT":case"PPTX":return c.jsx(r,{});default:return c.jsx(h,{})}};exports.FileIcon=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../createSvgIcon-
|
|
2
|
+
import { c as e } from "../../createSvgIcon-CJhvvvqA.js";
|
|
3
3
|
const t = e(/* @__PURE__ */ c("path", {
|
|
4
4
|
d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
|
|
5
5
|
}), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),n=require("@mui/material"),g=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),y=require("./FileIcon.cjs.js"),p=require("./FileInfosSeparator.cjs.js"),x=require("./utils.cjs.js"),s=require("../../Stack-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("@mui/material"),g=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),y=require("./FileIcon.cjs.js"),p=require("./FileInfosSeparator.cjs.js"),x=require("./utils.cjs.js"),s=require("../../Stack-DY5yaM_Q.cjs"),d=require("../../Typography-D2e0HXGw.cjs"),j=require("../../createSvgIcon-C-xu_b94.cjs"),I=require("../../CloseRounded-CpwMhnlE.cjs"),b=j.createSvgIcon(e.jsx("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded"),S=n.styled(n.ListItemButton)(({isClickable:t})=>({"&:hover":{boxShadow:t?"0 4px 8px rgba(192, 192, 192, 0.3)":"none",backgroundColor:"transparent"},opacity:"1 !important",borderRadius:"4px",cursor:t?"pointer":"default",display:"flex",flexDirection:"row",alignItems:"center",padding:"0.5rem 1rem",width:"100%",justifyContent:"space-between",boxSizing:"border-box",paddingRight:"115px !important",userSelect:"text"})),q=({file:t,onDelete:a,onClick:r,onDownload:c})=>{if(!t.name)return null;const o=x.displaySize(t.size),i=x.displayExtension(t.name),u=()=>r==null?void 0:r(t),h=l=>{l.stopPropagation(),a==null||a(t)},m=l=>{l.stopPropagation(),c==null||c(t)};return e.jsx(n.ListItem,{secondaryAction:e.jsxs(n.Box,{alignItems:"center",display:"flex",gap:"1rem",children:[t.isLoading?e.jsx(n.Box,{marginRight:1,children:e.jsx(n.CircularProgress,{size:24,color:"primary"})}):t.isDownloadable?e.jsx(n.IconButton,{onClick:m,children:e.jsx(b,{color:"primary"})}):null,t.isDeletable&&e.jsx(n.IconButton,{onClick:h,id:"coucou",children:e.jsx(I.CloseRounded,{})})]}),disablePadding:!0,children:e.jsx(S,{onClick:u,isClickable:!!r,disableRipple:!r,children:e.jsxs(s.Stack,{direction:"row",alignItems:"center",spacing:2,minWidth:"0",children:[e.jsx(s.Stack,{borderRadius:"4px",minWidth:"40px",maxWidth:"40px",minHeight:"40px",maxHeight:"40px",display:"flex",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"grey.light"},children:e.jsx(n.Box,{color:"text.secondary",alignItems:"center",justifyContent:"center",display:"flex",children:e.jsx(y.FileIcon,{extension:i??""})})}),e.jsxs(s.Stack,{direction:"column",spacing:0,alignItems:"flex-start",minWidth:"0",children:[e.jsx(g,{typographyProps:{variant:"body1"},children:t.name}),e.jsxs(s.Stack,{display:"flex",flexDirection:"row",alignItems:"center",gap:1,children:[o&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:o}),o&&i&&e.jsx(p.FileInfosSeparator,{}),i&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:i}),t.ownerName&&(o||i)&&e.jsx(p.FileInfosSeparator,{}),t.ownerName&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:t.ownerName})]})]})]})})},crypto.randomUUID())};module.exports=q;
|
|
@@ -4,10 +4,10 @@ import w from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
|
4
4
|
import { FileIcon as S } from "./FileIcon.es.js";
|
|
5
5
|
import { FileInfosSeparator as h } from "./FileInfosSeparator.es.js";
|
|
6
6
|
import { displaySize as R, displayExtension as v } from "./utils.es.js";
|
|
7
|
-
import { S as a } from "../../Stack-
|
|
8
|
-
import { T as p } from "../../Typography-
|
|
9
|
-
import { c as C } from "../../createSvgIcon-
|
|
10
|
-
import { C as j } from "../../CloseRounded-
|
|
7
|
+
import { S as a } from "../../Stack-CH8i1CHm.js";
|
|
8
|
+
import { T as p } from "../../Typography-DVBKpN4u.js";
|
|
9
|
+
import { c as C } from "../../createSvgIcon-CJhvvvqA.js";
|
|
10
|
+
import { C as j } from "../../CloseRounded-CH_wqyxH.js";
|
|
11
11
|
const z = C(/* @__PURE__ */ r("path", {
|
|
12
12
|
d: "M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"
|
|
13
13
|
}), "DownloadRounded"), H = u(b)(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),x=require("../../Folder-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),x=require("../../Folder-C3sJnRGB.cjs"),h=require("../../MoreVert-Y1VAw2HL.cjs"),s=require("@mui/material"),p=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),i=require("./styles.cjs.js"),d=require("../ResourceCard/style.cjs.js"),c=require("./types.cjs.js"),m=({isSelected:o=!1,onSelect:n=()=>{},title:u,subtitle:l,width:y,onClick:t=()=>{}})=>{const a=e=>e.key==="Enter"||e.key===" ";return r.jsx(s.Box,{sx:{width:y||"320px"},children:r.jsxs(d.StyledCard,{selected:o,onClick:t,onKeyDown:e=>{a(e)&&(e.preventDefault(),t==null||t())},role:"button",tabIndex:0,"aria-labelledby":"folder-title folder-subtitle","aria-pressed":o,children:[r.jsx(d.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},onKeyDown:e=>{a(e)&&(e.preventDefault(),e.stopPropagation(),n())},className:"selected-icon",selected:o,role:"button",tabIndex:0,"aria-label":o?"Unselect folder":"Select folder","aria-pressed":o,children:r.jsx(h.MoreVertIcon,{})}),r.jsxs(s.CardContent,{sx:i.FolderBodyStyle,children:[r.jsx(x.FolderIcon,{color:"primary",sx:i.FolderIconStyle,"aria-hidden":"true"}),r.jsxs(s.Box,{children:[r.jsx(p,{typographyProps:c.titleTypographyProps,tooltipProps:{placement:"bottom",arrow:!0},children:u}),l&&r.jsx(p,{typographyProps:c.subtitleTypographyProps,tooltipProps:{placement:"bottom",arrow:!0},children:l})]})]})]})})};module.exports=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { F as f } from "../../Folder-
|
|
3
|
-
import { M as y } from "../../MoreVert-
|
|
2
|
+
import { F as f } from "../../Folder-DYg6kxq4.js";
|
|
3
|
+
import { M as y } from "../../MoreVert-BeKrLZJ3.js";
|
|
4
4
|
import { Box as s, CardContent as c } from "@mui/material";
|
|
5
5
|
import d from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
6
6
|
import { FolderBodyStyle as h, FolderIconStyle as u } from "./styles.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("react/jsx-runtime"),c=require("../../Stack-
|
|
1
|
+
"use strict";const d=require("react/jsx-runtime"),c=require("../../Stack-DY5yaM_Q.cjs"),j=require("../../Typography-D2e0HXGw.cjs"),y=({title:u,IconComponent:g,iconColor:n,iconProps:h,iconSize:e=28,titleProps:a,...x})=>d.jsxs(c.Stack,{direction:"row",alignItems:"center",gap:1,...x,children:[g?d.jsx(g,{sx:{fontSize:e,padding:"2px",borderRadius:1,color:n==null?void 0:n[500],backgroundColor:n==null?void 0:n[50]},...h}):null,d.jsx(j.Typography,{component:(a==null?void 0:a.component)??"h3",variant:(a==null?void 0:a.variant)??"h2",fontWeight:(a==null?void 0:a.fontWeight)??400,...a,children:u})]});module.exports=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S } from "../../Stack-
|
|
3
|
-
import { T as b } from "../../Typography-
|
|
2
|
+
import { S } from "../../Stack-CH8i1CHm.js";
|
|
3
|
+
import { T as b } from "../../Typography-DVBKpN4u.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),h=require("../../createSvgIcon-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),h=require("../../createSvgIcon-C-xu_b94.cjs"),v=require("../../Delete-BFylYk6v.cjs"),o=require("@mui/material"),p=require("react"),C=require("../../index-Dx_q65HZ.cjs"),w=require("../../Stack-DY5yaM_Q.cjs"),i=require("../../Typography-D2e0HXGw.cjs"),g=h.createSvgIcon(e.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),D=h.createSvgIcon(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create"),F=()=>e.jsxs(i.Typography,{textAlign:"center",fontSize:"14px",color:"grey.darker",children:[e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"Glissez-déposez"})," ","ou"," ",e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"cliquez"})," ","pour choisir une image"]}),A=()=>e.jsxs(i.Typography,{textAlign:"center",fontSize:"14px",color:"grey.darker",children:[e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"Glissez"})," ","une image"]}),q=({defaultLabel:x=e.jsx(F,{}),dragLabel:m=e.jsx(A,{}),information:n,onFileChange:l=r=>{},width:u="160px",height:j="160px",initialFile:s=null,...y})=>{const[r,c]=p.useState(s);p.useEffect(()=>{c(s)},[s]);const f=t=>{const d=t[0]||null;c(d),l(d)},b=t=>{t.stopPropagation(),c(null),l(null)},k=t=>{t.stopPropagation(),a()},{open:a,getRootProps:z,getInputProps:I,isDragActive:S}=C.useDropzone({...y,maxFiles:1,onDropAccepted:f,accept:{"image/*":[".png",".jpeg",".jpg",".gif"]},noClick:!0});return e.jsxs(w.Stack,{direction:"column",justifyContent:"center",alignItems:"center",width:u,minWidth:"150px",minHeight:"150px",height:j,borderRadius:1,sx:{cursor:"pointer",position:"relative",background:`${!r&&"linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,border:`${!r&&"1px dashed"}`,borderColor:t=>!r&&t.palette.grey.main},...z({onClick:a}),children:[e.jsx("input",{...I()}),r?e.jsxs(e.Fragment,{children:[e.jsxs(o.Box,{sx:{position:"absolute",top:"0.5rem",right:"0.5rem",display:"flex",gap:"0.3rem"},children:[e.jsx(o.Box,{onClick:k,sx:{backgroundColor:"common.white",display:"flex",borderRadius:"3px",alignItems:"center",justifyContent:"center",boxShadow:1,width:"2rem",height:"2rem",cursor:"pointer","&:hover":{backgroundColor:"grey.darker","& .MuiSvgIcon-root":{fill:t=>t.palette.common.white}}},children:e.jsx(D,{fontSize:"small"})}),e.jsx(o.Box,{onClick:b,sx:{backgroundColor:"common.white",display:"flex",borderRadius:"3px",alignItems:"center",boxShadow:1,justifyContent:"center",width:"2rem",height:"2rem",cursor:"pointer","&:hover":{backgroundColor:"grey.darker","& .MuiSvgIcon-root":{fill:t=>t.palette.common.white}}},children:e.jsx(v.DeleteIcon,{fontSize:"small"})})]}),e.jsx("img",{src:typeof r=="string"?r:URL.createObjectURL(r),alt:typeof r=="string"?r:r.name,style:{width:"100%",height:"100%",maxWidth:"100%",objectFit:"cover",borderRadius:"5px"}})]}):e.jsx(e.Fragment,{children:S?e.jsxs(e.Fragment,{children:[e.jsx(g,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),m,n&&e.jsx(i.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]}):e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",padding:"0.5rem",gap:"0.3rem"},children:[e.jsx(g,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),x,n&&e.jsx(i.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]})})]})};module.exports=q;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as g } from "../../createSvgIcon-
|
|
3
|
-
import { D as w } from "../../Delete-
|
|
2
|
+
import { c as g } from "../../createSvgIcon-CJhvvvqA.js";
|
|
3
|
+
import { D as w } from "../../Delete-DM9C9aQh.js";
|
|
4
4
|
import { Box as n } from "@mui/material";
|
|
5
5
|
import { useState as D, useEffect as A } from "react";
|
|
6
|
-
import { u as j } from "../../index-
|
|
7
|
-
import { S as F } from "../../Stack-
|
|
8
|
-
import { T as l } from "../../Typography-
|
|
6
|
+
import { u as j } from "../../index-BKqZ9KaQ.js";
|
|
7
|
+
import { S as F } from "../../Stack-CH8i1CHm.js";
|
|
8
|
+
import { T as l } from "../../Typography-DVBKpN4u.js";
|
|
9
9
|
const h = g(/* @__PURE__ */ e("path", {
|
|
10
10
|
d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
|
|
11
11
|
}), "AddPhotoAlternate"), P = g(/* @__PURE__ */ e("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/Loader.css');const e=require("react/jsx-runtime"),r=require("../../Box-
|
|
1
|
+
"use strict";require('../../assets/Loader.css');const e=require("react/jsx-runtime"),r=require("../../Box-Bur5FaJN.cjs"),s=({})=>e.jsx(r.Box,{className:"cs-loader",color:"primary.main",children:e.jsxs(r.Box,{className:"cs-loader-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { B as r } from "../../Box-
|
|
2
|
+
import { B as r } from "../../Box-WOWWyD8I.js";
|
|
3
3
|
import '../../assets/Loader.css';const o = ({}) => /* @__PURE__ */ l(r, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(r, { className: "cs-loader-inner", children: [
|
|
4
4
|
/* @__PURE__ */ l("label", { children: "●" }),
|
|
5
5
|
/* @__PURE__ */ l("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/LoaderBackdrop.css');const r=require("react/jsx-runtime"),e=require("../../Backdrop-
|
|
1
|
+
"use strict";require('../../assets/LoaderBackdrop.css');const r=require("react/jsx-runtime"),e=require("../../Backdrop-BstwstC2.cjs"),c=require("../../Box-Bur5FaJN.cjs"),l=({})=>r.jsx(e.Backdrop,{open:!0,sx:{bgcolor:"background.default"},children:r.jsxs(c.Box,{className:"cs-loader-backdrop-inner",color:"primary.main",children:[r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"})]})});module.exports=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { B as l } from "../../Backdrop-
|
|
3
|
-
import { B as o } from "../../Box-
|
|
2
|
+
import { B as l } from "../../Backdrop-iPLBOqna.js";
|
|
3
|
+
import { B as o } from "../../Box-WOWWyD8I.js";
|
|
4
4
|
import '../../assets/LoaderBackdrop.css';const n = ({}) => /* @__PURE__ */ r(l, { open: !0, sx: { bgcolor: "background.default" }, children: /* @__PURE__ */ e(o, { className: "cs-loader-backdrop-inner", color: "primary.main", children: [
|
|
5
5
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),l=require("react"),d=require("../../TextField-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),l=require("react"),d=require("../../TextField-NFbVLcRr.cjs"),a=require("../../InputAdornment-DFDYHaYJ.cjs"),u=require("../../IconButton-BHDAW2iJ.cjs"),n=require("../../createSvgIcon-C-xu_b94.cjs"),p=n.createSvgIcon(s.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),w=n.createSvgIcon(s.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),x=o=>{const[t,i]=l.useState(!1),c=()=>i(e=>!e),r=e=>{e.preventDefault()};return s.jsx(d.TextField,{...o,type:t?"text":"password",slotProps:{input:{endAdornment:s.jsx(a.InputAdornment,{position:"end",children:s.jsx(u.IconButton,{"aria-label":"toggle password visibility",onClick:c,onMouseDown:r,edge:"end",children:t?s.jsx(w,{}):s.jsx(p,{})})})}}})};module.exports=x;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r } from "react";
|
|
3
|
-
import { T as a } from "../../TextField-
|
|
4
|
-
import { I as l } from "../../InputAdornment-
|
|
5
|
-
import { I as c } from "../../IconButton-
|
|
6
|
-
import { c as i } from "../../createSvgIcon-
|
|
3
|
+
import { T as a } from "../../TextField-lOgVscdx.js";
|
|
4
|
+
import { I as l } from "../../InputAdornment-Bkmq6VNk.js";
|
|
5
|
+
import { I as c } from "../../IconButton-BakKGuRi.js";
|
|
6
|
+
import { c as i } from "../../createSvgIcon-CJhvvvqA.js";
|
|
7
7
|
const d = i(/* @__PURE__ */ o("path", {
|
|
8
8
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
9
9
|
}), "Visibility"), p = i(/* @__PURE__ */ o("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),b=require("../../MoreVert-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),b=require("../../MoreVert-Y1VAw2HL.cjs"),d=require("@mui/material"),m=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),o=require("./style.cjs.js"),j=({isSelected:s=!1,onSelect:u=()=>{},image:x,title:c,defaultImage:h,propertyItems:i=[],infoIcons:l=[],size:t="md",width:p,onClick:n=()=>{}})=>(l=l.slice(0,3),r.jsx(d.Box,{sx:{width:p&&t==="md"?p:"320px"},children:r.jsxs(o.StyledCard,{selected:s,size:t,onClick:n,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),n==null||n())},role:"button",tabIndex:0,"aria-label":`Resource card for ${c}`,children:[r.jsx(o.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),u()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),u())},className:"selected-icon",selected:s,role:"button",tabIndex:0,"aria-label":s?"Unselect card":"Select card",children:r.jsx(b.MoreVertIcon,{})}),r.jsx(d.Stack,{sx:{width:t=="sm"?110:"100%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:r.jsx(o.ResourceCardImage,{image:x,defaultImage:h,size:t,role:"img","aria-label":`Image for ${c}`})}),r.jsxs(o.ResourceCardBody,{size:t,children:[r.jsx(m,{typographyProps:{fontWeight:"700",fontSize:"1.1rem"},tooltipProps:{placement:"bottom",arrow:!0},children:c}),i.length>0&&i.map((e,a)=>r.jsxs(o.ResourcePropertyItem,{size:t,role:"group","aria-label":`Property ${a}`,children:[e.icon,r.jsx(o.ResourcePropertyText,{isLast:a===i.length-1,size:t,width:p,children:e.text})]},`property-${a}`)),r.jsx(o.PublicIconWrapper,{size:t,children:l.length>0&&l.map((e,a)=>r.jsx(d.Tooltip,{title:e.text,placement:"top",arrow:!0,children:r.jsx(o.ResourceIconItem,{size:t,role:"button",tabIndex:0,"aria-label":e.text,children:e.icon})},`info-${a}`))})]})]})}));module.exports=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { M as h } from "../../MoreVert-
|
|
2
|
+
import { M as h } from "../../MoreVert-BeKrLZJ3.js";
|
|
3
3
|
import { Box as b, Stack as x, Tooltip as f } from "@mui/material";
|
|
4
4
|
import g from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
5
5
|
import { StyledCard as y, SelectedIcon as P, ResourceCardImage as R, ResourceCardBody as D, ResourcePropertyItem as I, ResourcePropertyText as $, PublicIconWrapper as w, ResourceIconItem as j } from "./style.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("../../DefaultPropsProvider-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("../../DefaultPropsProvider-DwzqwJhN.cjs"),o=require("../../InputBase-BKnhhWZn.cjs"),s=require("../../InputAdornment-DFDYHaYJ.cjs"),u=require("../../createSvgIcon-C-xu_b94.cjs"),a=u.createSvgIcon(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),c=n.styled(o.InputBase)(({theme:e})=>({width:"auto",padding:"0px 12px",backgroundColor:e.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}})),p=({placeholder:e="Rechercher",...r})=>t.jsx(c,{...r,placeholder:e,startAdornment:t.jsx(s.InputAdornment,{position:"start",disablePointerEvents:!0,children:t.jsx(a,{})}),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});module.exports=p;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { s as e } from "../../DefaultPropsProvider-
|
|
3
|
-
import { I as a } from "../../InputBase-
|
|
4
|
-
import { I as p } from "../../InputAdornment-
|
|
5
|
-
import { c as n } from "../../createSvgIcon-
|
|
2
|
+
import { s as e } from "../../DefaultPropsProvider-Dvh13KFH.js";
|
|
3
|
+
import { I as a } from "../../InputBase-bnA8K4W2.js";
|
|
4
|
+
import { I as p } from "../../InputAdornment-Bkmq6VNk.js";
|
|
5
|
+
import { c as n } from "../../createSvgIcon-CJhvvvqA.js";
|
|
6
6
|
const s = n(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
8
8
|
}), "Search"), i = e(a)(({ theme: t }) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("react/jsx-runtime"),at=require("../../Box-
|
|
1
|
+
"use strict";const S=require("react/jsx-runtime"),at=require("../../Box-Bur5FaJN.cjs"),ne=require("react"),h=require("../../CustomTreeItem-DLoOl_op.cjs"),Me=require("./style.cjs.js"),fe=require("./utils.cjs.js"),C=require("../../ButtonBase-Dc0VLLRk.cjs"),r=require("../../generateUtilityClasses-Bnvii3Zv.cjs"),j=require("../../TransitionGroupContext-Zt4NoR0u.cjs"),K=require("../../useEventCallback-C0-Qw3Sm.cjs"),ut=require("../../ownerDocument-4MViGo3k.cjs"),dt=require("../../index-BeDJBhYu.cjs"),pt=require("../../Checkbox-Bg5Js3hU.cjs"),Ie=require("../../warning-DMUNDgRg.cjs"),ge=require("../../useForkRef-CTI33h-3.cjs"),q=require("../../useSlotProps-COYNTPfw.cjs"),V=require("../../resolveComponentProps-DjrZpsT9.cjs"),F=require("../../DefaultPropsProvider-DwzqwJhN.cjs"),ft=require("../../unsupportedProp-Bn6XWqwH.cjs"),mt=require("../../elementTypeAcceptingRef-CUhueWZ_.cjs");function It(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const y=It(ne);function gt(e){return r.generateUtilityClass("MuiRichTreeView",e)}r.generateUtilityClasses("MuiRichTreeView",["root"]);const bt=(e,t)=>{const n=y.useRef({}),[s,c]=y.useState(()=>{const g={};return e.forEach(f=>{f.models&&Object.entries(f.models).forEach(([m,d])=>{n.current[m]={isControlled:t[m]!==void 0,getDefaultValue:d.getDefaultValue},g[m]=d.getDefaultValue(t)})}),g}),T=Object.fromEntries(Object.entries(n.current).map(([g,f])=>{const m=t[g]??s[g];return[g,{value:m,setControlledValue:d=>{f.isControlled||c(o=>C._extends({},o,{[g]:d}))}}]}));return process.env.NODE_ENV!=="production"&&Object.entries(n.current).forEach(([g,f])=>{const m=t[g],d=f.getDefaultValue(t);y.useEffect(()=>{f.isControlled!==(m!==void 0)&&console.error([`MUI X: A component is changing the ${f.isControlled?"":"un"}controlled ${g} state of TreeView to be ${f.isControlled?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${g} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
2
2
|
`))},[m]);const{current:o}=y.useRef(d);y.useEffect(()=>{!f.isControlled&&o!==d&&console.error([`MUI X: A component is changing the default ${g} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
|
|
3
3
|
`))},[JSON.stringify(d)])}),T};class ht{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,s={}){let c=this.events[t];if(c||(c={highPriority:new Map,regular:new Map},this.events[t]=c),s.isFirst?c.highPriority.set(n,!0):c.regular.set(n,!0),process.env.NODE_ENV!=="production"){const T=c.highPriority.size+c.regular.size;T>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${T} ${t} listeners added.`].join(`
|
|
4
4
|
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const s=this.events[t];if(!s)return;const c=Array.from(s.highPriority.keys()),T=Array.from(s.regular.keys());for(let g=c.length-1;g>=0;g-=1){const f=c[g];s.highPriority.has(f)&&f.apply(this,n)}for(let g=0;g<T.length;g+=1){const f=T[g];s.regular.has(f)&&f.apply(this,n)}}once(t,n){const s=this;this.on(t,function c(...T){s.removeListener(t,c),n.apply(s,T)})}}const Tt=e=>e.isPropagationStopped!==void 0,_e=()=>{const[e]=y.useState(()=>new ht),t=y.useCallback((...s)=>{const[c,T,g={}]=s;g.defaultMuiPrevented=!1,!(Tt(g)&&g.isPropagationStopped())&&e.emit(c,T,g)},[e]),n=y.useCallback((s,c)=>(e.on(s,c),()=>{e.removeListener(s,c)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};_e.params={};const Ve=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};Ve.params={};const be=({params:e,state:t,setState:n})=>{y.useEffect(()=>{n(c=>c.id.treeId===e.id&&c.id.treeId!==void 0?c:C._extends({},c,{id:C._extends({},c.id,{treeId:e.id??h.createTreeViewDefaultId()})}))},[n,e.id]);const s=e.id??t.id.treeId;return{getRootProps:()=>({id:s}),contextValue:{treeId:s}}};be.params={id:!0};be.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const xt=[_e,Ve,be],yt=["slots","slotProps","apiRef","experimentalFeatures"],Pt=e=>{let{props:{slots:t,slotProps:n,apiRef:s,experimentalFeatures:c},plugins:T}=e,g=j._objectWithoutPropertiesLoose(e.props,yt);const f={};T.forEach(p=>{Object.assign(f,p.params)});const m={},d={};Object.keys(g).forEach(p=>{const b=g[p];f[p]?m[p]=b:d[p]=b});const o=c??{},i=T.reduce((p,b)=>b.getDefaultizedParams?b.getDefaultizedParams({params:p,experimentalFeatures:o}):p,m);return{apiRef:s,forwardedProps:d,pluginParams:i,slots:t??{},slotProps:n??{},experimentalFeatures:o}},Et=({plugins:e,instance:t,publicAPI:n,rootRef:s})=>({runItemPlugins:f=>{let m=null,d=null;const o=[],i={};e.forEach(x=>{if(!x.itemPlugin)return;const a=x.itemPlugin({props:f,rootRef:m,contentRef:d});a!=null&&a.rootRef&&(m=a.rootRef),a!=null&&a.contentRef&&(d=a.contentRef),a!=null&&a.propsEnhancers&&(o.push(a.propsEnhancers),Object.keys(a.propsEnhancers).forEach(l=>{i[l]=!0}))});const p=x=>a=>{const l={};return o.forEach(u=>{const I=u[x];I!=null&&Object.assign(l,I(a))}),l},b=Object.fromEntries(Object.keys(i).map(x=>[x,p(x)]));return{contentRef:d,rootRef:m,propsEnhancers:b}},wrapItem:({itemId:f,children:m})=>{let d=m;for(let o=e.length-1;o>=0;o-=1){const i=e[o];i.wrapItem&&(d=i.wrapItem({itemId:f,children:d,instance:t}))}return d},wrapRoot:({children:f})=>{let m=f;for(let d=e.length-1;d>=0;d-=1){const o=e[d];o.wrapRoot&&(m=o.wrapRoot({children:m,instance:t}))}return m},instance:t,rootRef:s,publicAPI:n});function Ct(e){const t=y.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const wt=({plugins:e,rootRef:t,props:n})=>{const s=[...xt,...e],{pluginParams:c,forwardedProps:T,apiRef:g,experimentalFeatures:f,slots:m,slotProps:d}=Pt({plugins:s,props:n}),o=bt(s,c),p=y.useRef({}).current,b=Ct(g),x=y.useRef(null),a=ge.useForkRef(x,t),l=Et({plugins:s,instance:p,publicAPI:b,rootRef:x}),[u,I]=y.useState(()=>{const R={};return s.forEach(k=>{k.getInitialState&&Object.assign(R,k.getInitialState(c))}),R}),P=[],v=R=>{const k=R({instance:p,params:c,slots:m,slotProps:d,experimentalFeatures:f,state:u,setState:I,rootRef:x,models:o,plugins:s});k.getRootProps&&P.push(k.getRootProps),k.publicAPI&&Object.assign(b,k.publicAPI),k.instance&&Object.assign(p,k.instance),k.contextValue&&Object.assign(l,k.contextValue)};return s.forEach(v),{getRootProps:(R={})=>{const k=C._extends({role:"tree"},T,R,{ref:a});return P.forEach(A=>{Object.assign(k,A(R))}),k},rootRef:a,contextValue:l,instance:p}};function Rt(e){const{value:t,children:n}=e;return S.jsx(h.TreeViewContext.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const St=(e,t,n)=>{e.$$publishEvent(t,n)},U="__TREE_VIEW_ROOT_PARENT_ID__",vt=e=>{const t={};return e.forEach((n,s)=>{t[n]=s}),t},kt=["children"],je=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:s})=>{const c={},T={},g={[U]:[]},f=(d,o,i)=>{var a,l;const p=s?s(d):d.id;if(p==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(d)].join(`
|