@cgi-learning-hub/ui 1.5.1 → 1.6.0
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-DW8yCR-B.cjs +1 -0
- package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
- package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
- package/dist/Backdrop-3TL73mAe.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
- package/dist/Badge-DhyDno9j.cjs +138 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
- package/dist/Box-DYD6q-6M.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
- package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
- package/dist/Button-y1LmxqGA.cjs +1 -0
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
- package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
- package/dist/CardContent-ji0_AneN.cjs +1 -0
- package/dist/Checkbox-XXqW_dbW.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
- package/dist/Chip-Bpcd3tnL.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
- package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
- package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
- package/dist/DatePicker-CNhBoaI3.cjs +14 -0
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
- package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
- package/dist/Dialog-B2LKe7ZM.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
- package/dist/DialogContent-BbCu_OEw.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
- package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
- package/dist/Divider-Cshcr5kR.cjs +1 -0
- package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
- package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
- package/dist/FormLabel-0LbNeQQU.cjs +2 -0
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
- package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
- package/dist/Grow-aEgTOewU.cjs +1 -0
- package/dist/IconButton-BKwDNYJl.cjs +2 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
- package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
- package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
- package/dist/InputBase-pYQWRFK2.cjs +3 -0
- package/dist/Link-DUtuCYMx.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
- package/dist/List-BH_S4Hqm.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
- package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
- package/dist/ListItem-D33t-hkx.cjs +1 -0
- package/dist/ListItemText-B8jlTz59.cjs +2 -0
- package/dist/ListItemText-BeyHu1da.js +853 -0
- package/dist/Menu-BjrN8rMF.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
- package/dist/MenuItem-Cz_x60jl.cjs +1 -0
- package/dist/Modal-DxwlW5NV.cjs +2 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
- package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
- package/dist/Paper-Bh9CKUCb.cjs +2 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
- package/dist/Popper-yO_RaCbM.cjs +4 -0
- package/dist/Portal-B5KqLEa0.cjs +1 -0
- package/dist/Portal-ChC9wmMZ.js +85 -0
- package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
- package/dist/Radio-C7zzpRFc.cjs +1 -0
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
- package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
- package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
- package/dist/Select-Doay7ukI.cjs +3 -0
- package/dist/Stack-BVWbOqY_.cjs +1 -0
- package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
- package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
- package/dist/Switch-CEfqaD33.cjs +1 -0
- package/dist/SwitchBase-DvCITKv8.cjs +1 -0
- package/dist/SwitchBase-EDFBMPd7.js +316 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
- package/dist/Tab-C6H241Pf.cjs +4 -0
- package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
- package/dist/TextField-bE2NUKKK.cjs +1 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
- package/dist/Tooltip-D_w-IJoD.cjs +4 -0
- package/dist/Typography-De-21leI.cjs +1 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
- package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
- package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
- package/dist/client-error-CHkavqXs.cjs +1 -0
- package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- 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/ColorPicker/ColorPicker.cjs.js +27 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
- package/dist/components/ColorPicker/index.cjs.js +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.es.js +4 -0
- package/dist/components/ColorPicker/styles.cjs.js +1 -0
- package/dist/components/ColorPicker/styles.es.js +26 -0
- package/dist/components/ColorPicker/types.cjs.js +1 -0
- package/dist/components/ColorPicker/types.d.ts +19 -0
- package/dist/components/ColorPicker/types.es.js +1 -0
- 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/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +22 -22
- 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 +5 -5
- package/dist/components/TreeView/TreeView.es.js +15 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
- 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 +19 -0
- package/dist/components/index.es.js +404 -373
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- 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/ColoPicker.stories.cjs.js +1 -0
- package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
- package/dist/components/stories/ColoPicker.stories.es.js +23 -0
- 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/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.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 +1 -1
- 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 +3 -3
- package/dist/components/stories/TreeView.stories.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/composeClasses-CJKlIaRn.js +51 -0
- package/dist/composeClasses-CWgX5SFD.cjs +1 -0
- package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
- package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
- package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
- package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
- package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
- package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
- package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
- package/dist/hooks/lazySvgImport.cjs.js +1 -1
- package/dist/hooks/lazySvgImport.es.js +1 -1
- package/dist/index-BzsuDIEl.cjs +1 -0
- package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
- package/dist/index-CrINMjCH.cjs +1 -0
- package/dist/index-DIyAQH20.cjs +5 -0
- package/dist/index-DLnSn8GT.cjs +20 -0
- package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
- package/dist/index-Sy88PpwE.js +672 -0
- package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +404 -373
- package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
- package/dist/mergeSlotProps-BBciKnr4.js +62 -0
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
- package/dist/refType-B_IEJm4x.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
- package/dist/server-error-CqyYyPLN.cjs +1 -0
- package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-BDb1lvxu.js +125 -0
- package/dist/useSlot-W0PiuVaZ.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
- package/dist/useSlotProps-OhEflPiz.cjs +1 -0
- package/dist/useTheme-C59wIJ3-.js +11 -0
- package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
- package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
- package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
- package/dist/useThemeProps-BFQ8ndnj.js +17 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
- package/dist/useThemeProps-DYpozGhe.cjs +1 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
- package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
- package/dist/utils-ByXw_ZY1.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +12 -10
- package/dist/Alert-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/client-error-BUtdld5f.cjs +0 -1
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
- package/dist/server-error-CeAtUo4S.cjs +0 -1
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import { jsx as x, jsxs as ie } from "react/jsx-runtime";
|
|
2
|
-
import { c as ae } from "./createSvgIcon-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as f } from "./ButtonBase-Bncgzjtp.js";
|
|
2
|
+
import { c as ae } from "./createSvgIcon-BlKmtOkV.js";
|
|
3
|
+
import { _ as g } from "./ButtonBase-Chb99sDQ.js";
|
|
5
4
|
import * as R from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
import {
|
|
5
|
+
import { w as ze } from "./warning-C8W811fV.js";
|
|
6
|
+
import { u as ce } from "./useForkRef-u29GSuCu.js";
|
|
7
|
+
import { e as K, r as be } from "./useSlot-BDb1lvxu.js";
|
|
8
|
+
import { treeItemRootStyle as Be, treeContentStyle as Ke, iconStyle as Ie, arrowContainerStyle as Fe, expandedGroupStyle as je } from "./components/TreeView/style.es.js";
|
|
9
|
+
import { getIconComponent as qe } from "./components/TreeView/utils.es.js";
|
|
10
|
+
import Ue from "./components/EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
11
|
+
import { P as i } from "./index-Sy88PpwE.js";
|
|
12
|
+
import { a as Ce } from "./TransitionGroupContext-DbLioz_6.js";
|
|
13
|
+
import { F as Te, G as we, w as We, H as ve, n as oe } from "./generateUtilityClasses-DngCqveO.js";
|
|
14
|
+
import { u as _e } from "./useThemeProps-BFQ8ndnj.js";
|
|
15
|
+
import { u as Ge, s as V, c as Pe, f as le } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
16
|
+
import { u as Xe } from "./useTheme-C59wIJ3-.js";
|
|
17
|
+
import { m as Ye } from "./memoTheme-nmt7i1dS.js";
|
|
18
|
+
import { T as Je, g as he } from "./utils-BQenyzDz.js";
|
|
19
|
+
import { u as Qe } from "./useTimeout-CrCYVizI.js";
|
|
20
|
+
import { e as Ze } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
21
|
+
import { C as He } from "./Checkbox-p-PKpEw_.js";
|
|
22
|
+
import { u as et } from "./unsupportedProp-BuVD30Gh.js";
|
|
23
|
+
import { u as F } from "./useSlotProps-B_D8u0j-.js";
|
|
24
|
+
import { B as tt } from "./Box-o7Tjjyko.js";
|
|
22
25
|
function ot(e) {
|
|
23
|
-
return
|
|
26
|
+
return we("MuiCollapse", e);
|
|
24
27
|
}
|
|
25
|
-
const
|
|
28
|
+
const Ht = Te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), nt = (e) => {
|
|
26
29
|
const {
|
|
27
30
|
orientation: t,
|
|
28
31
|
classes: o
|
|
@@ -33,7 +36,7 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
33
36
|
wrapper: ["wrapper", `${t}`],
|
|
34
37
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
35
38
|
};
|
|
36
|
-
return
|
|
39
|
+
return Pe(s, ot, o);
|
|
37
40
|
}, rt = V("div", {
|
|
38
41
|
name: "MuiCollapse",
|
|
39
42
|
slot: "Root",
|
|
@@ -43,7 +46,7 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
43
46
|
} = e;
|
|
44
47
|
return [t.root, t[o.orientation], o.state === "entered" && t.entered, o.state === "exited" && !o.in && o.collapsedSize === "0px" && t.hidden];
|
|
45
48
|
}
|
|
46
|
-
})(
|
|
49
|
+
})(Ye(({
|
|
47
50
|
theme: e
|
|
48
51
|
}) => ({
|
|
49
52
|
height: 0,
|
|
@@ -115,15 +118,15 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
115
118
|
}
|
|
116
119
|
}]
|
|
117
120
|
}), se = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
118
|
-
const s =
|
|
121
|
+
const s = Ge({
|
|
119
122
|
props: t,
|
|
120
123
|
name: "MuiCollapse"
|
|
121
124
|
}), {
|
|
122
125
|
addEndListener: p,
|
|
123
126
|
children: d,
|
|
124
|
-
className:
|
|
127
|
+
className: m,
|
|
125
128
|
collapsedSize: l = "0px",
|
|
126
|
-
component:
|
|
129
|
+
component: f,
|
|
127
130
|
easing: c,
|
|
128
131
|
in: h,
|
|
129
132
|
onEnter: b,
|
|
@@ -133,22 +136,22 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
133
136
|
onExited: S,
|
|
134
137
|
onExiting: O,
|
|
135
138
|
orientation: j = "vertical",
|
|
136
|
-
style:
|
|
137
|
-
timeout:
|
|
139
|
+
style: W,
|
|
140
|
+
timeout: w = We.standard,
|
|
138
141
|
// eslint-disable-next-line react/prop-types
|
|
139
|
-
TransitionComponent: E =
|
|
142
|
+
TransitionComponent: E = Je,
|
|
140
143
|
...P
|
|
141
|
-
} = s,
|
|
144
|
+
} = s, T = {
|
|
142
145
|
...s,
|
|
143
146
|
orientation: j,
|
|
144
147
|
collapsedSize: l
|
|
145
|
-
}, D = nt(
|
|
148
|
+
}, D = nt(T), _ = Xe(), Y = Qe(), M = R.useRef(null), q = R.useRef(), U = typeof l == "number" ? `${l}px` : l, k = j === "horizontal", z = k ? "width" : "height", B = R.useRef(null), H = ce(o, B), A = (I) => (L) => {
|
|
146
149
|
if (I) {
|
|
147
150
|
const N = B.current;
|
|
148
151
|
L === void 0 ? I(N) : I(N, L);
|
|
149
152
|
}
|
|
150
153
|
}, G = () => M.current ? M.current[k ? "clientWidth" : "clientHeight"] : 0, J = A((I, L) => {
|
|
151
|
-
M.current && k && (M.current.style.position = "absolute"), I.style[z] =
|
|
154
|
+
M.current && k && (M.current.style.position = "absolute"), I.style[z] = U, b && b(I, L);
|
|
152
155
|
}), ee = A((I, L) => {
|
|
153
156
|
const N = G();
|
|
154
157
|
M.current && k && (M.current.style.position = "");
|
|
@@ -156,14 +159,14 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
156
159
|
duration: Z,
|
|
157
160
|
easing: a
|
|
158
161
|
} = he({
|
|
159
|
-
style:
|
|
160
|
-
timeout:
|
|
162
|
+
style: W,
|
|
163
|
+
timeout: w,
|
|
161
164
|
easing: c
|
|
162
165
|
}, {
|
|
163
166
|
mode: "enter"
|
|
164
167
|
});
|
|
165
|
-
if (
|
|
166
|
-
const n =
|
|
168
|
+
if (w === "auto") {
|
|
169
|
+
const n = _.transitions.getAutoHeightDuration(N);
|
|
167
170
|
I.style.transitionDuration = `${n}ms`, q.current = n;
|
|
168
171
|
} else
|
|
169
172
|
I.style.transitionDuration = typeof Z == "string" ? Z : `${Z}ms`;
|
|
@@ -172,23 +175,23 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
172
175
|
I.style[z] = "auto", C && C(I, L);
|
|
173
176
|
}), re = A((I) => {
|
|
174
177
|
I.style[z] = `${G()}px`, y && y(I);
|
|
175
|
-
}), ue = A(S),
|
|
178
|
+
}), ue = A(S), me = A((I) => {
|
|
176
179
|
const L = G(), {
|
|
177
180
|
duration: N,
|
|
178
181
|
easing: Z
|
|
179
182
|
} = he({
|
|
180
|
-
style:
|
|
181
|
-
timeout:
|
|
183
|
+
style: W,
|
|
184
|
+
timeout: w,
|
|
182
185
|
easing: c
|
|
183
186
|
}, {
|
|
184
187
|
mode: "exit"
|
|
185
188
|
});
|
|
186
|
-
if (
|
|
187
|
-
const a =
|
|
189
|
+
if (w === "auto") {
|
|
190
|
+
const a = _.transitions.getAutoHeightDuration(L);
|
|
188
191
|
I.style.transitionDuration = `${a}ms`, q.current = a;
|
|
189
192
|
} else
|
|
190
193
|
I.style.transitionDuration = typeof N == "string" ? N : `${N}ms`;
|
|
191
|
-
I.style[z] =
|
|
194
|
+
I.style[z] = U, I.style.transitionTimingFunction = Z, O && O(I);
|
|
192
195
|
});
|
|
193
196
|
return /* @__PURE__ */ x(E, {
|
|
194
197
|
in: h,
|
|
@@ -197,42 +200,42 @@ const Jt = we("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
197
200
|
onEntering: ee,
|
|
198
201
|
onExit: re,
|
|
199
202
|
onExited: ue,
|
|
200
|
-
onExiting:
|
|
203
|
+
onExiting: me,
|
|
201
204
|
addEndListener: (I) => {
|
|
202
|
-
|
|
205
|
+
w === "auto" && Y.start(q.current || 0, I), p && p(B.current, I);
|
|
203
206
|
},
|
|
204
207
|
nodeRef: B,
|
|
205
|
-
timeout:
|
|
208
|
+
timeout: w === "auto" ? null : w,
|
|
206
209
|
...P,
|
|
207
210
|
children: (I, {
|
|
208
211
|
ownerState: L,
|
|
209
212
|
...N
|
|
210
213
|
}) => /* @__PURE__ */ x(rt, {
|
|
211
|
-
as:
|
|
212
|
-
className: ve(D.root,
|
|
214
|
+
as: f,
|
|
215
|
+
className: ve(D.root, m, {
|
|
213
216
|
entered: D.entered,
|
|
214
|
-
exited: !h &&
|
|
217
|
+
exited: !h && U === "0px" && D.hidden
|
|
215
218
|
}[I]),
|
|
216
219
|
style: {
|
|
217
|
-
[k ? "minWidth" : "minHeight"]:
|
|
218
|
-
...
|
|
220
|
+
[k ? "minWidth" : "minHeight"]: U,
|
|
221
|
+
...W
|
|
219
222
|
},
|
|
220
223
|
ref: H,
|
|
221
224
|
ownerState: {
|
|
222
|
-
...
|
|
225
|
+
...T,
|
|
223
226
|
state: I
|
|
224
227
|
},
|
|
225
228
|
...N,
|
|
226
229
|
children: /* @__PURE__ */ x(it, {
|
|
227
230
|
ownerState: {
|
|
228
|
-
...
|
|
231
|
+
...T,
|
|
229
232
|
state: I
|
|
230
233
|
},
|
|
231
234
|
className: D.wrapper,
|
|
232
235
|
ref: M,
|
|
233
236
|
children: /* @__PURE__ */ x(st, {
|
|
234
237
|
ownerState: {
|
|
235
|
-
...
|
|
238
|
+
...T,
|
|
236
239
|
state: I
|
|
237
240
|
},
|
|
238
241
|
className: D.wrapperInner,
|
|
@@ -274,7 +277,7 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
|
274
277
|
* The component used for the root node.
|
|
275
278
|
* Either a string to use a HTML element or a component.
|
|
276
279
|
*/
|
|
277
|
-
component:
|
|
280
|
+
component: Ze,
|
|
278
281
|
/**
|
|
279
282
|
* The transition timing function.
|
|
280
283
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -342,39 +345,32 @@ const at = ae(/* @__PURE__ */ x("path", {
|
|
|
342
345
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
343
346
|
}), "KeyboardArrowDown"), lt = ae(/* @__PURE__ */ x("path", {
|
|
344
347
|
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
345
|
-
}), "KeyboardArrowRight")
|
|
346
|
-
function dt(e
|
|
347
|
-
|
|
348
|
-
return;
|
|
349
|
-
const o = Array.isArray(e) ? e.join(`
|
|
350
|
-
`) : e;
|
|
351
|
-
ye.has(o) || (ye.add(o), t === "error" ? console.error(o) : console.warn(o));
|
|
348
|
+
}), "KeyboardArrowRight");
|
|
349
|
+
function dt(e) {
|
|
350
|
+
return _e;
|
|
352
351
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
let xe = 0;
|
|
357
|
-
const Qt = () => (xe += 1, `mui-tree-view-${xe}`), pt = ({
|
|
352
|
+
let ye = 0;
|
|
353
|
+
const eo = () => (ye += 1, `mui-tree-view-${ye}`), ct = ({
|
|
358
354
|
id: e,
|
|
359
355
|
treeId: t = "",
|
|
360
356
|
itemId: o
|
|
361
|
-
}) => e ?? `${t}-${o}`,
|
|
362
|
-
process.env.NODE_ENV !== "production" && (
|
|
357
|
+
}) => e ?? `${t}-${o}`, Ee = /* @__PURE__ */ R.createContext(null);
|
|
358
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "TreeViewContext");
|
|
363
359
|
const ne = () => {
|
|
364
|
-
const e = R.useContext(
|
|
360
|
+
const e = R.useContext(Ee);
|
|
365
361
|
if (e == null)
|
|
366
362
|
throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
367
363
|
`));
|
|
368
364
|
return e;
|
|
369
|
-
},
|
|
370
|
-
process.env.NODE_ENV !== "production" && (
|
|
371
|
-
const
|
|
365
|
+
}, Re = /* @__PURE__ */ R.createContext(() => -1);
|
|
366
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "TreeViewItemDepthContext");
|
|
367
|
+
const Se = (e, t) => {
|
|
372
368
|
let o = t.length - 1;
|
|
373
369
|
for (; o >= 0 && !e.isItemNavigable(t[o]); )
|
|
374
370
|
o -= 1;
|
|
375
371
|
if (o !== -1)
|
|
376
372
|
return t[o];
|
|
377
|
-
},
|
|
373
|
+
}, pt = (e, t) => {
|
|
378
374
|
const o = e.getItemMeta(t), s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(t);
|
|
379
375
|
if (p === 0)
|
|
380
376
|
return o.parentId;
|
|
@@ -382,12 +378,12 @@ const Oe = (e, t) => {
|
|
|
382
378
|
for (; !e.isItemNavigable(s[d]) && d >= 0; )
|
|
383
379
|
d -= 1;
|
|
384
380
|
if (d === -1)
|
|
385
|
-
return o.parentId == null ? null :
|
|
386
|
-
let
|
|
387
|
-
for (; e.isItemExpanded(
|
|
388
|
-
|
|
389
|
-
return
|
|
390
|
-
},
|
|
381
|
+
return o.parentId == null ? null : pt(e, o.parentId);
|
|
382
|
+
let m = s[d], l = Se(e, e.getItemOrderedChildrenIds(m));
|
|
383
|
+
for (; e.isItemExpanded(m) && l != null; )
|
|
384
|
+
m = l, l = e.getItemOrderedChildrenIds(m).find(e.isItemNavigable);
|
|
385
|
+
return m;
|
|
386
|
+
}, ut = (e, t) => {
|
|
391
387
|
if (e.isItemExpanded(t)) {
|
|
392
388
|
const s = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
|
|
393
389
|
if (s != null)
|
|
@@ -406,32 +402,32 @@ const Oe = (e, t) => {
|
|
|
406
402
|
o = e.getItemMeta(o.parentId);
|
|
407
403
|
}
|
|
408
404
|
return null;
|
|
409
|
-
},
|
|
405
|
+
}, to = (e) => {
|
|
410
406
|
let t = null;
|
|
411
407
|
for (; t == null || e.isItemExpanded(t); ) {
|
|
412
|
-
const o = e.getItemOrderedChildrenIds(t), s =
|
|
408
|
+
const o = e.getItemOrderedChildrenIds(t), s = Se(e, o);
|
|
413
409
|
if (s == null)
|
|
414
410
|
return t;
|
|
415
411
|
t = s;
|
|
416
412
|
}
|
|
417
413
|
return t;
|
|
418
|
-
},
|
|
414
|
+
}, mt = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), gt = (e, t, o) => {
|
|
419
415
|
if (t === o)
|
|
420
416
|
return [t, o];
|
|
421
417
|
const s = e.getItemMeta(t), p = e.getItemMeta(o);
|
|
422
418
|
if (s.parentId === p.id || p.parentId === s.id)
|
|
423
419
|
return p.parentId === s.id ? [s.id, p.id] : [p.id, s.id];
|
|
424
|
-
const d = [s.id],
|
|
425
|
-
let l = s.parentId,
|
|
420
|
+
const d = [s.id], m = [p.id];
|
|
421
|
+
let l = s.parentId, f = p.parentId, c = m.indexOf(l) !== -1, h = d.indexOf(f) !== -1, b = !0, C = !0;
|
|
426
422
|
for (; !h && !c; )
|
|
427
|
-
b && (d.push(l), c =
|
|
428
|
-
const r = c ? l :
|
|
423
|
+
b && (d.push(l), c = m.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (m.push(f), h = d.indexOf(f) !== -1, C = f !== null, !h && C && (f = e.getItemMeta(f).parentId));
|
|
424
|
+
const r = c ? l : f, y = e.getItemOrderedChildrenIds(r), S = d[d.indexOf(r) - 1], O = m[m.indexOf(r) - 1];
|
|
429
425
|
return y.indexOf(S) < y.indexOf(O) ? [t, o] : [o, t];
|
|
430
|
-
},
|
|
431
|
-
const s = (
|
|
432
|
-
if (e.isItemExpandable(
|
|
433
|
-
return e.getItemOrderedChildrenIds(
|
|
434
|
-
let c = e.getItemMeta(
|
|
426
|
+
}, oo = (e, t, o) => {
|
|
427
|
+
const s = (f) => {
|
|
428
|
+
if (e.isItemExpandable(f) && e.isItemExpanded(f))
|
|
429
|
+
return e.getItemOrderedChildrenIds(f)[0];
|
|
430
|
+
let c = e.getItemMeta(f);
|
|
435
431
|
for (; c != null; ) {
|
|
436
432
|
const h = e.getItemOrderedChildrenIds(c.parentId), b = e.getItemIndex(c.id);
|
|
437
433
|
if (b < h.length - 1)
|
|
@@ -439,18 +435,18 @@ const Oe = (e, t) => {
|
|
|
439
435
|
c = e.getItemMeta(c.parentId);
|
|
440
436
|
}
|
|
441
437
|
throw new Error("Invalid range");
|
|
442
|
-
}, [p, d] =
|
|
438
|
+
}, [p, d] = gt(e, t, o), m = [p];
|
|
443
439
|
let l = p;
|
|
444
440
|
for (; l !== d; )
|
|
445
|
-
l = s(l), e.isItemDisabled(l) ||
|
|
446
|
-
return
|
|
447
|
-
},
|
|
448
|
-
let t =
|
|
441
|
+
l = s(l), e.isItemDisabled(l) || m.push(l);
|
|
442
|
+
return m;
|
|
443
|
+
}, no = (e) => {
|
|
444
|
+
let t = mt(e);
|
|
449
445
|
const o = [];
|
|
450
446
|
for (; t != null; )
|
|
451
|
-
o.push(t), t =
|
|
447
|
+
o.push(t), t = ut(e, t);
|
|
452
448
|
return o;
|
|
453
|
-
},
|
|
449
|
+
}, xe = (e, t) => t !== e.closest('*[role="treeitem"]'), de = (e, t) => e.getAvailablePlugins().has(t), ft = ({
|
|
454
450
|
props: e
|
|
455
451
|
}) => {
|
|
456
452
|
const {
|
|
@@ -458,14 +454,14 @@ const Oe = (e, t) => {
|
|
|
458
454
|
} = ne(), {
|
|
459
455
|
label: o,
|
|
460
456
|
itemId: s
|
|
461
|
-
} = e, [p, d] = R.useState(o),
|
|
457
|
+
} = e, [p, d] = R.useState(o), m = t.isItemBeingEdited(s);
|
|
462
458
|
return R.useEffect(() => {
|
|
463
|
-
|
|
464
|
-
}, [
|
|
459
|
+
m || d(o);
|
|
460
|
+
}, [m, o]), {
|
|
465
461
|
propsEnhancers: {
|
|
466
462
|
labelInput: ({
|
|
467
463
|
externalEventHandlers: l,
|
|
468
|
-
interactions:
|
|
464
|
+
interactions: f
|
|
469
465
|
}) => t.isItemEditable(s) ? {
|
|
470
466
|
value: p ?? "",
|
|
471
467
|
"data-element": "labelInput",
|
|
@@ -478,11 +474,11 @@ const Oe = (e, t) => {
|
|
|
478
474
|
if ((S = l.onKeyDown) == null || S.call(l, r), r.defaultMuiPrevented)
|
|
479
475
|
return;
|
|
480
476
|
const y = r.target;
|
|
481
|
-
r.key === "Enter" && y.value ?
|
|
477
|
+
r.key === "Enter" && y.value ? f.handleSaveItemLabel(r, y.value) : r.key === "Escape" && f.handleCancelItemLabelEditing(r);
|
|
482
478
|
},
|
|
483
479
|
onBlur: (r) => {
|
|
484
480
|
var y;
|
|
485
|
-
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value &&
|
|
481
|
+
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value && f.handleSaveItemLabel(r, r.target.value);
|
|
486
482
|
},
|
|
487
483
|
autoFocus: !0,
|
|
488
484
|
type: "text"
|
|
@@ -495,12 +491,12 @@ const Oe = (e, t) => {
|
|
|
495
491
|
setState: o,
|
|
496
492
|
params: s
|
|
497
493
|
}) => {
|
|
498
|
-
const p = R.useRef(t.editedItemId), d = (b) => p.current === b,
|
|
499
|
-
o((C) =>
|
|
494
|
+
const p = R.useRef(t.editedItemId), d = (b) => p.current === b, m = (b) => {
|
|
495
|
+
o((C) => g({}, C, {
|
|
500
496
|
editedItemId: b
|
|
501
497
|
})), p.current = b;
|
|
502
|
-
}, l = (b) => b === t.editedItemId,
|
|
503
|
-
if (b == null || !
|
|
498
|
+
}, l = (b) => b === t.editedItemId, f = !!s.isItemEditable, c = (b) => {
|
|
499
|
+
if (b == null || !f)
|
|
504
500
|
return !1;
|
|
505
501
|
const C = e.getItem(b);
|
|
506
502
|
return C ? typeof s.isItemEditable == "function" ? s.isItemEditable(C) : !!s.isItemEditable : !1;
|
|
@@ -510,10 +506,10 @@ const Oe = (e, t) => {
|
|
|
510
506
|
`));
|
|
511
507
|
o((r) => {
|
|
512
508
|
const y = r.items.itemMetaMap[b];
|
|
513
|
-
return y.label !== C ?
|
|
514
|
-
items:
|
|
515
|
-
itemMetaMap:
|
|
516
|
-
[b]:
|
|
509
|
+
return y.label !== C ? g({}, r, {
|
|
510
|
+
items: g({}, r.items, {
|
|
511
|
+
itemMetaMap: g({}, r.items.itemMetaMap, {
|
|
512
|
+
[b]: g({}, y, {
|
|
517
513
|
label: C
|
|
518
514
|
})
|
|
519
515
|
})
|
|
@@ -523,11 +519,11 @@ const Oe = (e, t) => {
|
|
|
523
519
|
};
|
|
524
520
|
return {
|
|
525
521
|
instance: {
|
|
526
|
-
setEditedItemId:
|
|
522
|
+
setEditedItemId: m,
|
|
527
523
|
isItemBeingEdited: l,
|
|
528
524
|
updateItemLabel: h,
|
|
529
525
|
isItemEditable: c,
|
|
530
|
-
isTreeViewEditable:
|
|
526
|
+
isTreeViewEditable: f,
|
|
531
527
|
isItemBeingEditedRef: d
|
|
532
528
|
},
|
|
533
529
|
publicAPI: {
|
|
@@ -535,13 +531,13 @@ const Oe = (e, t) => {
|
|
|
535
531
|
}
|
|
536
532
|
};
|
|
537
533
|
};
|
|
538
|
-
X.itemPlugin =
|
|
534
|
+
X.itemPlugin = ft;
|
|
539
535
|
X.getDefaultizedParams = ({
|
|
540
536
|
params: e,
|
|
541
537
|
experimentalFeatures: t
|
|
542
538
|
}) => {
|
|
543
539
|
const o = t == null ? void 0 : t.labelEditing;
|
|
544
|
-
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o &&
|
|
540
|
+
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o && ze(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the Rich Tree View Pro component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]), g({}, e, {
|
|
545
541
|
isItemEditable: o ? e.isItemEditable ?? !1 : !1
|
|
546
542
|
});
|
|
547
543
|
};
|
|
@@ -552,7 +548,7 @@ X.params = {
|
|
|
552
548
|
onItemLabelChange: !0,
|
|
553
549
|
isItemEditable: !0
|
|
554
550
|
};
|
|
555
|
-
const
|
|
551
|
+
const bt = V("div", {
|
|
556
552
|
name: "MuiTreeItem2DragAndDropOverlay",
|
|
557
553
|
slot: "Root",
|
|
558
554
|
overridesResolver: (e, t) => t.root,
|
|
@@ -602,10 +598,10 @@ const It = V("div", {
|
|
|
602
598
|
}
|
|
603
599
|
}]
|
|
604
600
|
}));
|
|
605
|
-
function
|
|
606
|
-
return e.action == null ? null : /* @__PURE__ */ x(
|
|
601
|
+
function Oe(e) {
|
|
602
|
+
return e.action == null ? null : /* @__PURE__ */ x(bt, g({}, e));
|
|
607
603
|
}
|
|
608
|
-
process.env.NODE_ENV !== "production" && (
|
|
604
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
609
605
|
// ----------------------------- Warning --------------------------------
|
|
610
606
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
611
607
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -613,13 +609,13 @@ process.env.NODE_ENV !== "production" && (De.propTypes = {
|
|
|
613
609
|
action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
|
|
614
610
|
style: i.object
|
|
615
611
|
});
|
|
616
|
-
const
|
|
612
|
+
const It = V("input", {
|
|
617
613
|
name: "MuiTreeItem2",
|
|
618
614
|
slot: "LabelInput",
|
|
619
615
|
overridesResolver: (e, t) => t.labelInput
|
|
620
616
|
})(({
|
|
621
617
|
theme: e
|
|
622
|
-
}) =>
|
|
618
|
+
}) => g({}, e.typography.body1, {
|
|
623
619
|
width: "100%",
|
|
624
620
|
backgroundColor: e.palette.background.paper,
|
|
625
621
|
borderRadius: e.shape.borderRadius,
|
|
@@ -630,12 +626,12 @@ const ht = V("input", {
|
|
|
630
626
|
outline: `1px solid ${e.palette.primary.main}`
|
|
631
627
|
}
|
|
632
628
|
}));
|
|
633
|
-
function
|
|
634
|
-
return
|
|
629
|
+
function ht(e) {
|
|
630
|
+
return we("MuiTreeItem", e);
|
|
635
631
|
}
|
|
636
|
-
const
|
|
632
|
+
const ro = Te("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), yt = ae(/* @__PURE__ */ x("path", {
|
|
637
633
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
638
|
-
}), "TreeViewExpandIcon"),
|
|
634
|
+
}), "TreeViewExpandIcon"), xt = ae(/* @__PURE__ */ x("path", {
|
|
639
635
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
640
636
|
}), "TreeViewCollapseIcon");
|
|
641
637
|
function pe(e) {
|
|
@@ -660,7 +656,7 @@ pe.propTypes = {
|
|
|
660
656
|
children: i.node,
|
|
661
657
|
itemId: i.string.isRequired
|
|
662
658
|
};
|
|
663
|
-
const
|
|
659
|
+
const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, Ct = ({
|
|
664
660
|
itemId: e,
|
|
665
661
|
children: t
|
|
666
662
|
}) => {
|
|
@@ -671,14 +667,14 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
671
667
|
},
|
|
672
668
|
publicAPI: p
|
|
673
669
|
} = ne(), d = {
|
|
674
|
-
expandable:
|
|
670
|
+
expandable: De(t),
|
|
675
671
|
expanded: o.isItemExpanded(e),
|
|
676
672
|
focused: o.isItemFocused(e),
|
|
677
673
|
selected: o.isItemSelected(e),
|
|
678
674
|
disabled: o.isItemDisabled(e),
|
|
679
675
|
editing: o != null && o.isItemBeingEdited ? o == null ? void 0 : o.isItemBeingEdited(e) : !1,
|
|
680
676
|
editable: o.isItemEditable ? o.isItemEditable(e) : !1
|
|
681
|
-
},
|
|
677
|
+
}, m = (r) => {
|
|
682
678
|
if (d.disabled)
|
|
683
679
|
return;
|
|
684
680
|
d.focused || o.focusItem(r, e);
|
|
@@ -696,7 +692,7 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
696
692
|
itemId: e,
|
|
697
693
|
shouldBeSelected: !0
|
|
698
694
|
});
|
|
699
|
-
},
|
|
695
|
+
}, f = (r) => {
|
|
700
696
|
const y = r.nativeEvent.shiftKey;
|
|
701
697
|
s && y ? o.expandSelectionRange(r, e) : o.selectItem({
|
|
702
698
|
event: r,
|
|
@@ -709,9 +705,9 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
709
705
|
};
|
|
710
706
|
return {
|
|
711
707
|
interactions: {
|
|
712
|
-
handleExpansion:
|
|
708
|
+
handleExpansion: m,
|
|
713
709
|
handleSelection: l,
|
|
714
|
-
handleCheckboxSelection:
|
|
710
|
+
handleCheckboxSelection: f,
|
|
715
711
|
toggleItemEditing: c,
|
|
716
712
|
handleSaveItemLabel: (r, y) => {
|
|
717
713
|
de(o, X) && o.isItemBeingEditedRef(e) && (o.updateItemLabel(e, y), c(), o.focusItem(r, e));
|
|
@@ -733,15 +729,15 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
733
729
|
},
|
|
734
730
|
selection: {
|
|
735
731
|
disableSelection: d,
|
|
736
|
-
checkboxSelection:
|
|
732
|
+
checkboxSelection: m
|
|
737
733
|
},
|
|
738
734
|
expansion: {
|
|
739
735
|
expansionTrigger: l
|
|
740
736
|
},
|
|
741
|
-
treeId:
|
|
737
|
+
treeId: f,
|
|
742
738
|
instance: c,
|
|
743
739
|
publicAPI: h
|
|
744
|
-
} = ne(), b = R.useContext(
|
|
740
|
+
} = ne(), b = R.useContext(Re), {
|
|
745
741
|
id: C,
|
|
746
742
|
itemId: r,
|
|
747
743
|
label: y,
|
|
@@ -749,20 +745,20 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
749
745
|
rootRef: O
|
|
750
746
|
} = e, {
|
|
751
747
|
rootRef: j,
|
|
752
|
-
contentRef:
|
|
753
|
-
propsEnhancers:
|
|
748
|
+
contentRef: W,
|
|
749
|
+
propsEnhancers: w
|
|
754
750
|
} = t(e), {
|
|
755
751
|
interactions: E,
|
|
756
752
|
status: P
|
|
757
|
-
} =
|
|
753
|
+
} = Ct({
|
|
758
754
|
itemId: r,
|
|
759
755
|
children: S
|
|
760
|
-
}),
|
|
756
|
+
}), T = R.useRef(null), D = R.useRef(null), _ = ce(O, j, T), Y = ce(W, D), M = R.useRef(null), q = ct({
|
|
761
757
|
itemId: r,
|
|
762
|
-
treeId:
|
|
758
|
+
treeId: f,
|
|
763
759
|
id: C
|
|
764
|
-
}),
|
|
765
|
-
rootRefObject:
|
|
760
|
+
}), U = c.canItemBeTabbed(r) ? 0 : -1, k = {
|
|
761
|
+
rootRefObject: T,
|
|
766
762
|
contentRefObject: D,
|
|
767
763
|
interactions: E
|
|
768
764
|
}, z = (a) => (n) => {
|
|
@@ -772,13 +768,13 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
772
768
|
const u = !P.disabled || s;
|
|
773
769
|
!P.focused && u && n.currentTarget === n.target && c.focusItem(n, r);
|
|
774
770
|
}, B = (a) => (n) => {
|
|
775
|
-
var v, $, te,
|
|
771
|
+
var v, $, te, ge, fe;
|
|
776
772
|
if ((v = a.onBlur) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
777
773
|
return;
|
|
778
774
|
const u = c.getItemDOMElement(r);
|
|
779
775
|
P.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
|
|
780
776
|
// we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
|
|
781
|
-
n.relatedTarget &&
|
|
777
|
+
n.relatedTarget && xe(n.relatedTarget, u) && (n.target && ((te = ($ = n.target) == null ? void 0 : $.dataset) == null ? void 0 : te.element) === "labelInput" && xe(n.target, u) || ((fe = (ge = n.relatedTarget) == null ? void 0 : ge.dataset) == null ? void 0 : fe.element) === "labelInput") || c.removeFocusedItem();
|
|
782
778
|
}, H = (a) => (n) => {
|
|
783
779
|
var u, v, $;
|
|
784
780
|
(u = a.onKeyDown) == null || u.call(a, n), !(n.defaultMuiPrevented || (($ = (v = n.target) == null ? void 0 : v.dataset) == null ? void 0 : $.element) === "labelInput") && c.handleItemKeyDown(n, r);
|
|
@@ -787,7 +783,7 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
787
783
|
(u = a.onDoubleClick) == null || u.call(a, n), !n.defaultMuiPrevented && E.toggleItemEditing();
|
|
788
784
|
}, G = (a) => (n) => {
|
|
789
785
|
var u, v;
|
|
790
|
-
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = M.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n),
|
|
786
|
+
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = M.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n), m || E.handleSelection(n));
|
|
791
787
|
}, J = (a) => (n) => {
|
|
792
788
|
var u;
|
|
793
789
|
(u = a.onMouseDown) == null || u.call(a, n), !n.defaultMuiPrevented && (n.shiftKey || n.ctrlKey || n.metaKey || P.disabled) && n.preventDefault();
|
|
@@ -801,13 +797,13 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
801
797
|
return {
|
|
802
798
|
getRootProps: (a = {}) => {
|
|
803
799
|
var te;
|
|
804
|
-
const n =
|
|
800
|
+
const n = g({}, K(e), K(a));
|
|
805
801
|
let u;
|
|
806
802
|
P.selected ? u = !0 : d || P.disabled ? u = void 0 : u = !1;
|
|
807
|
-
const v =
|
|
808
|
-
ref:
|
|
803
|
+
const v = g({}, n, {
|
|
804
|
+
ref: _,
|
|
809
805
|
role: "treeitem",
|
|
810
|
-
tabIndex:
|
|
806
|
+
tabIndex: U,
|
|
811
807
|
id: q,
|
|
812
808
|
"aria-expanded": P.expandable ? P.expanded : void 0,
|
|
813
809
|
"aria-selected": u,
|
|
@@ -820,27 +816,27 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
820
816
|
p && (v.style = {
|
|
821
817
|
"--TreeView-itemDepth": typeof b == "function" ? b(r) : b
|
|
822
818
|
});
|
|
823
|
-
const $ = ((te =
|
|
819
|
+
const $ = ((te = w.root) == null ? void 0 : te.call(w, g({}, k, {
|
|
824
820
|
externalEventHandlers: n
|
|
825
821
|
}))) ?? {};
|
|
826
|
-
return
|
|
822
|
+
return g({}, v, $);
|
|
827
823
|
},
|
|
828
824
|
getContentProps: (a = {}) => {
|
|
829
825
|
var $;
|
|
830
|
-
const n = K(a), u =
|
|
826
|
+
const n = K(a), u = g({}, n, a, {
|
|
831
827
|
ref: Y,
|
|
832
828
|
onClick: G(n),
|
|
833
829
|
onMouseDown: J(n),
|
|
834
830
|
status: P
|
|
835
831
|
});
|
|
836
832
|
p && (u.indentationAtItemLevel = !0);
|
|
837
|
-
const v = (($ =
|
|
833
|
+
const v = (($ = w.content) == null ? void 0 : $.call(w, g({}, k, {
|
|
838
834
|
externalEventHandlers: n
|
|
839
835
|
}))) ?? {};
|
|
840
|
-
return
|
|
836
|
+
return g({}, u, v);
|
|
841
837
|
},
|
|
842
838
|
getGroupTransitionProps: (a = {}) => {
|
|
843
|
-
const n = K(a), u =
|
|
839
|
+
const n = K(a), u = g({}, n, {
|
|
844
840
|
unmountOnExit: !0,
|
|
845
841
|
component: "ul",
|
|
846
842
|
role: "group",
|
|
@@ -851,14 +847,14 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
851
847
|
},
|
|
852
848
|
getIconContainerProps: (a = {}) => {
|
|
853
849
|
const n = K(a);
|
|
854
|
-
return
|
|
850
|
+
return g({}, n, a, {
|
|
855
851
|
onClick: Q(n)
|
|
856
852
|
});
|
|
857
853
|
},
|
|
858
854
|
getCheckboxProps: (a = {}) => {
|
|
859
855
|
const n = K(a);
|
|
860
|
-
return
|
|
861
|
-
visible:
|
|
856
|
+
return g({}, n, {
|
|
857
|
+
visible: m,
|
|
862
858
|
ref: M,
|
|
863
859
|
checked: P.selected,
|
|
864
860
|
disabled: d || P.disabled,
|
|
@@ -868,7 +864,7 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
868
864
|
});
|
|
869
865
|
},
|
|
870
866
|
getLabelProps: (a = {}) => {
|
|
871
|
-
const n =
|
|
867
|
+
const n = g({}, K(a)), u = g({}, n, {
|
|
872
868
|
children: y
|
|
873
869
|
}, a, {
|
|
874
870
|
onDoubleClick: A(n)
|
|
@@ -877,46 +873,46 @@ const Me = (e) => Array.isArray(e) ? e.length > 0 && e.some(Me) : !!e, wt = ({
|
|
|
877
873
|
},
|
|
878
874
|
getLabelInputProps: (a = {}) => {
|
|
879
875
|
var v;
|
|
880
|
-
const n = K(a), u = ((v =
|
|
881
|
-
rootRefObject:
|
|
876
|
+
const n = K(a), u = ((v = w.labelInput) == null ? void 0 : v.call(w, {
|
|
877
|
+
rootRefObject: T,
|
|
882
878
|
contentRefObject: D,
|
|
883
879
|
externalEventHandlers: n,
|
|
884
880
|
interactions: E
|
|
885
881
|
})) ?? {};
|
|
886
|
-
return
|
|
882
|
+
return g({}, a, u);
|
|
887
883
|
},
|
|
888
884
|
getDragAndDropOverlayProps: (a = {}) => {
|
|
889
885
|
var v;
|
|
890
|
-
const n = K(a), u = ((v =
|
|
886
|
+
const n = K(a), u = ((v = w.dragAndDropOverlay) == null ? void 0 : v.call(w, g({}, k, {
|
|
891
887
|
externalEventHandlers: n
|
|
892
888
|
}))) ?? {};
|
|
893
|
-
return
|
|
889
|
+
return g({}, a, u);
|
|
894
890
|
},
|
|
895
|
-
rootRef:
|
|
891
|
+
rootRef: _,
|
|
896
892
|
status: P,
|
|
897
893
|
publicAPI: h
|
|
898
894
|
};
|
|
899
|
-
},
|
|
900
|
-
function
|
|
895
|
+
}, Me = Tt;
|
|
896
|
+
function ke(e) {
|
|
901
897
|
const {
|
|
902
898
|
slots: t,
|
|
903
899
|
slotProps: o,
|
|
904
900
|
status: s
|
|
905
|
-
} = e, p = ne(), d =
|
|
906
|
-
expandIcon: p.icons.slots.expandIcon ??
|
|
907
|
-
collapseIcon: p.icons.slots.collapseIcon ??
|
|
908
|
-
}),
|
|
901
|
+
} = e, p = ne(), d = g({}, p.icons.slots, {
|
|
902
|
+
expandIcon: p.icons.slots.expandIcon ?? yt,
|
|
903
|
+
collapseIcon: p.icons.slots.collapseIcon ?? xt
|
|
904
|
+
}), m = p.icons.slotProps;
|
|
909
905
|
let l;
|
|
910
906
|
t != null && t.icon ? l = "icon" : s.expandable ? s.expanded ? l = "collapseIcon" : l = "expandIcon" : l = "endIcon";
|
|
911
|
-
const
|
|
912
|
-
elementType:
|
|
913
|
-
externalSlotProps: (h) =>
|
|
907
|
+
const f = (t == null ? void 0 : t[l]) ?? d[l], c = F({
|
|
908
|
+
elementType: f,
|
|
909
|
+
externalSlotProps: (h) => g({}, be(m[l], h), be(o == null ? void 0 : o[l], h)),
|
|
914
910
|
// TODO: Add proper ownerState
|
|
915
911
|
ownerState: {}
|
|
916
912
|
});
|
|
917
|
-
return
|
|
913
|
+
return f ? /* @__PURE__ */ x(f, g({}, c)) : null;
|
|
918
914
|
}
|
|
919
|
-
process.env.NODE_ENV !== "production" && (
|
|
915
|
+
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
920
916
|
// ----------------------------- Warning --------------------------------
|
|
921
917
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
922
918
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -941,7 +937,7 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
|
941
937
|
selected: i.bool.isRequired
|
|
942
938
|
}).isRequired
|
|
943
939
|
});
|
|
944
|
-
const
|
|
940
|
+
const wt = ["visible"], vt = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps"], Pt = dt(), Le = V("li", {
|
|
945
941
|
name: "MuiTreeItem2",
|
|
946
942
|
slot: "Root",
|
|
947
943
|
overridesResolver: (e, t) => t.root
|
|
@@ -950,7 +946,7 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
950
946
|
margin: 0,
|
|
951
947
|
padding: 0,
|
|
952
948
|
outline: 0
|
|
953
|
-
}),
|
|
949
|
+
}), Ne = V("div", {
|
|
954
950
|
name: "MuiTreeItem2",
|
|
955
951
|
slot: "Content",
|
|
956
952
|
overridesResolver: (e, t) => t.content,
|
|
@@ -1020,14 +1016,14 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1020
1016
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : oe(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1021
1017
|
}
|
|
1022
1018
|
}]
|
|
1023
|
-
})),
|
|
1019
|
+
})), Et = V("div", {
|
|
1024
1020
|
name: "MuiTreeItem2",
|
|
1025
1021
|
slot: "Label",
|
|
1026
1022
|
overridesResolver: (e, t) => t.label,
|
|
1027
1023
|
shouldForwardProp: (e) => le(e) && e !== "editable"
|
|
1028
1024
|
})(({
|
|
1029
1025
|
theme: e
|
|
1030
|
-
}) =>
|
|
1026
|
+
}) => g({
|
|
1031
1027
|
width: "100%",
|
|
1032
1028
|
boxSizing: "border-box",
|
|
1033
1029
|
// prevent width + padding to overflow
|
|
@@ -1044,7 +1040,7 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1044
1040
|
paddingLeft: "2px"
|
|
1045
1041
|
}
|
|
1046
1042
|
}]
|
|
1047
|
-
})),
|
|
1043
|
+
})), Ae = V("div", {
|
|
1048
1044
|
name: "MuiTreeItem2",
|
|
1049
1045
|
slot: "IconContainer",
|
|
1050
1046
|
overridesResolver: (e, t) => t.iconContainer
|
|
@@ -1056,7 +1052,7 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1056
1052
|
"& svg": {
|
|
1057
1053
|
fontSize: 18
|
|
1058
1054
|
}
|
|
1059
|
-
}),
|
|
1055
|
+
}), Ve = V(se, {
|
|
1060
1056
|
name: "MuiTreeItem2",
|
|
1061
1057
|
slot: "GroupTransition",
|
|
1062
1058
|
overridesResolver: (e, t) => t.groupTransition,
|
|
@@ -1076,8 +1072,8 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1076
1072
|
}), Rt = V(/* @__PURE__ */ R.forwardRef((e, t) => {
|
|
1077
1073
|
const {
|
|
1078
1074
|
visible: o
|
|
1079
|
-
} = e, s =
|
|
1080
|
-
return o ? /* @__PURE__ */ x(
|
|
1075
|
+
} = e, s = Ce(e, wt);
|
|
1076
|
+
return o ? /* @__PURE__ */ x(He, g({}, s, {
|
|
1081
1077
|
ref: t
|
|
1082
1078
|
})) : null;
|
|
1083
1079
|
}), {
|
|
@@ -1090,7 +1086,7 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1090
1086
|
const {
|
|
1091
1087
|
classes: t
|
|
1092
1088
|
} = e;
|
|
1093
|
-
return
|
|
1089
|
+
return Pe({
|
|
1094
1090
|
root: ["root"],
|
|
1095
1091
|
content: ["content"],
|
|
1096
1092
|
expanded: ["expanded"],
|
|
@@ -1105,36 +1101,36 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1105
1101
|
groupTransition: ["groupTransition"],
|
|
1106
1102
|
labelInput: ["labelInput"],
|
|
1107
1103
|
dragAndDropOverlay: ["dragAndDropOverlay"]
|
|
1108
|
-
},
|
|
1104
|
+
}, ht, t);
|
|
1109
1105
|
}, Ot = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
1110
|
-
const s =
|
|
1106
|
+
const s = Pt({
|
|
1111
1107
|
props: t,
|
|
1112
1108
|
name: "MuiTreeItem2"
|
|
1113
1109
|
}), {
|
|
1114
1110
|
id: p,
|
|
1115
1111
|
itemId: d,
|
|
1116
|
-
label:
|
|
1112
|
+
label: m,
|
|
1117
1113
|
disabled: l,
|
|
1118
|
-
children:
|
|
1114
|
+
children: f,
|
|
1119
1115
|
slots: c = {},
|
|
1120
1116
|
slotProps: h = {}
|
|
1121
|
-
} = s, b =
|
|
1117
|
+
} = s, b = Ce(s, vt), {
|
|
1122
1118
|
getRootProps: C,
|
|
1123
1119
|
getContentProps: r,
|
|
1124
1120
|
getIconContainerProps: y,
|
|
1125
1121
|
getCheckboxProps: S,
|
|
1126
1122
|
getLabelProps: O,
|
|
1127
1123
|
getGroupTransitionProps: j,
|
|
1128
|
-
getLabelInputProps:
|
|
1129
|
-
getDragAndDropOverlayProps:
|
|
1124
|
+
getLabelInputProps: W,
|
|
1125
|
+
getDragAndDropOverlayProps: w,
|
|
1130
1126
|
status: E
|
|
1131
|
-
} =
|
|
1127
|
+
} = Me({
|
|
1132
1128
|
id: p,
|
|
1133
1129
|
itemId: d,
|
|
1134
|
-
children:
|
|
1135
|
-
label:
|
|
1130
|
+
children: f,
|
|
1131
|
+
label: m,
|
|
1136
1132
|
disabled: l
|
|
1137
|
-
}), P =
|
|
1133
|
+
}), P = g({}, s, E), T = St(P), D = c.root ?? Le, _ = F({
|
|
1138
1134
|
elementType: D,
|
|
1139
1135
|
getSlotProps: C,
|
|
1140
1136
|
externalForwardedProps: b,
|
|
@@ -1143,62 +1139,62 @@ const vt = ["visible"], Pt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1143
1139
|
ref: o
|
|
1144
1140
|
},
|
|
1145
1141
|
ownerState: {},
|
|
1146
|
-
className:
|
|
1147
|
-
}), Y = c.content ??
|
|
1142
|
+
className: T.root
|
|
1143
|
+
}), Y = c.content ?? Ne, M = F({
|
|
1148
1144
|
elementType: Y,
|
|
1149
1145
|
getSlotProps: r,
|
|
1150
1146
|
externalSlotProps: h.content,
|
|
1151
1147
|
ownerState: {},
|
|
1152
|
-
className: ve(
|
|
1153
|
-
}), q = c.iconContainer ??
|
|
1148
|
+
className: ve(T.content, E.expanded && T.expanded, E.selected && T.selected, E.focused && T.focused, E.disabled && T.disabled, E.editing && T.editing, E.editable && T.editable)
|
|
1149
|
+
}), q = c.iconContainer ?? Ae, U = F({
|
|
1154
1150
|
elementType: q,
|
|
1155
1151
|
getSlotProps: y,
|
|
1156
1152
|
externalSlotProps: h.iconContainer,
|
|
1157
1153
|
ownerState: {},
|
|
1158
|
-
className:
|
|
1159
|
-
}), k = c.label ??
|
|
1154
|
+
className: T.iconContainer
|
|
1155
|
+
}), k = c.label ?? Et, z = F({
|
|
1160
1156
|
elementType: k,
|
|
1161
1157
|
getSlotProps: O,
|
|
1162
1158
|
externalSlotProps: h.label,
|
|
1163
1159
|
ownerState: {},
|
|
1164
|
-
className:
|
|
1160
|
+
className: T.label
|
|
1165
1161
|
}), B = c.checkbox ?? Rt, H = F({
|
|
1166
1162
|
elementType: B,
|
|
1167
1163
|
getSlotProps: S,
|
|
1168
1164
|
externalSlotProps: h.checkbox,
|
|
1169
1165
|
ownerState: {},
|
|
1170
|
-
className:
|
|
1166
|
+
className: T.checkbox
|
|
1171
1167
|
}), A = c.groupTransition ?? void 0, G = F({
|
|
1172
1168
|
elementType: A,
|
|
1173
1169
|
getSlotProps: j,
|
|
1174
1170
|
externalSlotProps: h.groupTransition,
|
|
1175
1171
|
ownerState: {},
|
|
1176
|
-
className:
|
|
1177
|
-
}), J = c.labelInput ??
|
|
1172
|
+
className: T.groupTransition
|
|
1173
|
+
}), J = c.labelInput ?? It, ee = F({
|
|
1178
1174
|
elementType: J,
|
|
1179
|
-
getSlotProps:
|
|
1175
|
+
getSlotProps: W,
|
|
1180
1176
|
externalSlotProps: h.labelInput,
|
|
1181
1177
|
ownerState: {},
|
|
1182
|
-
className:
|
|
1183
|
-
}), Q = c.dragAndDropOverlay ??
|
|
1178
|
+
className: T.labelInput
|
|
1179
|
+
}), Q = c.dragAndDropOverlay ?? Oe, re = F({
|
|
1184
1180
|
elementType: Q,
|
|
1185
|
-
getSlotProps:
|
|
1181
|
+
getSlotProps: w,
|
|
1186
1182
|
externalSlotProps: h.dragAndDropOverlay,
|
|
1187
1183
|
ownerState: {},
|
|
1188
|
-
className:
|
|
1184
|
+
className: T.dragAndDropOverlay
|
|
1189
1185
|
});
|
|
1190
1186
|
return /* @__PURE__ */ x(pe, {
|
|
1191
1187
|
itemId: d,
|
|
1192
|
-
children: /* @__PURE__ */ ie(D,
|
|
1193
|
-
children: [/* @__PURE__ */ ie(Y,
|
|
1194
|
-
children: [/* @__PURE__ */ x(q,
|
|
1195
|
-
children: /* @__PURE__ */ x(
|
|
1188
|
+
children: /* @__PURE__ */ ie(D, g({}, _, {
|
|
1189
|
+
children: [/* @__PURE__ */ ie(Y, g({}, M, {
|
|
1190
|
+
children: [/* @__PURE__ */ x(q, g({}, U, {
|
|
1191
|
+
children: /* @__PURE__ */ x(ke, {
|
|
1196
1192
|
status: E,
|
|
1197
1193
|
slots: c,
|
|
1198
1194
|
slotProps: h
|
|
1199
1195
|
})
|
|
1200
|
-
})), /* @__PURE__ */ x(B,
|
|
1201
|
-
})),
|
|
1196
|
+
})), /* @__PURE__ */ x(B, g({}, H)), E.editing ? /* @__PURE__ */ x(J, g({}, ee)) : /* @__PURE__ */ x(k, g({}, z)), /* @__PURE__ */ x(Q, g({}, re))]
|
|
1197
|
+
})), f && /* @__PURE__ */ x(Ve, g({
|
|
1202
1198
|
as: A
|
|
1203
1199
|
}, G))]
|
|
1204
1200
|
}))
|
|
@@ -1244,7 +1240,7 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
1244
1240
|
* This prop isn't supported.
|
|
1245
1241
|
* Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
|
|
1246
1242
|
*/
|
|
1247
|
-
onFocus:
|
|
1243
|
+
onFocus: et,
|
|
1248
1244
|
/**
|
|
1249
1245
|
* Callback fired when a key is pressed on the keyboard and the tree is in focus.
|
|
1250
1246
|
*/
|
|
@@ -1260,20 +1256,20 @@ process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
|
1260
1256
|
*/
|
|
1261
1257
|
slots: i.object
|
|
1262
1258
|
});
|
|
1263
|
-
function
|
|
1259
|
+
function io(e) {
|
|
1264
1260
|
const {
|
|
1265
1261
|
id: t,
|
|
1266
1262
|
itemId: o,
|
|
1267
1263
|
label: s,
|
|
1268
1264
|
disabled: p,
|
|
1269
1265
|
children: d,
|
|
1270
|
-
itemData:
|
|
1266
|
+
itemData: m,
|
|
1271
1267
|
iconColor: l = "primary",
|
|
1272
|
-
hasNoIcons:
|
|
1268
|
+
hasNoIcons: f,
|
|
1273
1269
|
ref: c
|
|
1274
|
-
} = e, h =
|
|
1275
|
-
|
|
1276
|
-
|
|
1270
|
+
} = e, h = qe(
|
|
1271
|
+
m == null ? void 0 : m.iconType,
|
|
1272
|
+
m == null ? void 0 : m.customIcon
|
|
1277
1273
|
), {
|
|
1278
1274
|
getRootProps: b,
|
|
1279
1275
|
getContentProps: C,
|
|
@@ -1281,28 +1277,28 @@ function oo(e) {
|
|
|
1281
1277
|
getGroupTransitionProps: y,
|
|
1282
1278
|
getIconContainerProps: S,
|
|
1283
1279
|
status: O
|
|
1284
|
-
} =
|
|
1280
|
+
} = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef: c }), j = {
|
|
1285
1281
|
...O.selected && { fontWeight: 600 },
|
|
1286
|
-
color: "palette-
|
|
1282
|
+
color: "var(--theme-palette-text-primary)"
|
|
1287
1283
|
};
|
|
1288
1284
|
return /* @__PURE__ */ x(pe, { itemId: o, children: /* @__PURE__ */ ie(
|
|
1289
|
-
|
|
1285
|
+
Le,
|
|
1290
1286
|
{
|
|
1291
1287
|
...b(),
|
|
1292
1288
|
"data-treeview-item": o || "",
|
|
1293
1289
|
"data-treeview-item-label": s || "",
|
|
1294
|
-
sx:
|
|
1290
|
+
sx: Be,
|
|
1295
1291
|
children: [
|
|
1296
|
-
/* @__PURE__ */ ie(
|
|
1297
|
-
!
|
|
1298
|
-
/* @__PURE__ */ x(
|
|
1299
|
-
/* @__PURE__ */ x(
|
|
1292
|
+
/* @__PURE__ */ ie(Ne, { ...C(), style: Ke, children: [
|
|
1293
|
+
!f && /* @__PURE__ */ x(Ae, { ...S(), sx: Ie, children: /* @__PURE__ */ x(h, { color: l, sx: Ie }) }),
|
|
1294
|
+
/* @__PURE__ */ x(Ue, { ...r(), typographyProps: j }),
|
|
1295
|
+
/* @__PURE__ */ x(tt, { sx: Fe, children: O.expandable && (O.expanded ? /* @__PURE__ */ x(at, { fontSize: "small" }) : /* @__PURE__ */ x(lt, { fontSize: "small" })) })
|
|
1300
1296
|
] }),
|
|
1301
1297
|
d && /* @__PURE__ */ x(
|
|
1302
|
-
|
|
1298
|
+
Ve,
|
|
1303
1299
|
{
|
|
1304
1300
|
...y(),
|
|
1305
|
-
style: O.expanded ?
|
|
1301
|
+
style: O.expanded ? je : void 0
|
|
1306
1302
|
}
|
|
1307
1303
|
)
|
|
1308
1304
|
]
|
|
@@ -1311,31 +1307,30 @@ function oo(e) {
|
|
|
1311
1307
|
}
|
|
1312
1308
|
export {
|
|
1313
1309
|
se as C,
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1310
|
+
Ee as T,
|
|
1311
|
+
eo as a,
|
|
1312
|
+
ct as b,
|
|
1313
|
+
Ht as c,
|
|
1314
|
+
Re as d,
|
|
1315
|
+
to as e,
|
|
1316
|
+
mt as f,
|
|
1321
1317
|
ot as g,
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1318
|
+
gt as h,
|
|
1319
|
+
no as i,
|
|
1320
|
+
oo as j,
|
|
1321
|
+
xe as k,
|
|
1322
|
+
ut as l,
|
|
1323
|
+
pt as m,
|
|
1328
1324
|
de as n,
|
|
1329
1325
|
ne as o,
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1326
|
+
It as p,
|
|
1327
|
+
Oe as q,
|
|
1328
|
+
dt as r,
|
|
1329
|
+
xt as s,
|
|
1330
|
+
yt as t,
|
|
1335
1331
|
X as u,
|
|
1336
1332
|
pe as v,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
oo as z
|
|
1333
|
+
ht as w,
|
|
1334
|
+
ro as x,
|
|
1335
|
+
io as y
|
|
1341
1336
|
};
|