@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
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-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- 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/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 +15 -15
- 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.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- 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.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- 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 +7 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -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.es.js +264 -266
- 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/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 +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.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- 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-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- 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-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { F as
|
|
3
|
-
import { M as
|
|
4
|
-
import { Box as l, CardContent as
|
|
2
|
+
import { F as c } from "../../Folder-CF7SX2AD.js";
|
|
3
|
+
import { M as h } from "../../MoreVert-BtC5XWOR.js";
|
|
4
|
+
import { Box as l, CardContent as x } from "@mui/material";
|
|
5
5
|
import i from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { titleTypographyProps as
|
|
9
|
-
const
|
|
6
|
+
import { StyledCard as u, SelectedIcon as b } from "../ResourceCard/style.es.js";
|
|
7
|
+
import { FolderBodyStyle as P, IconContainerStyle as I, FolderIconStyle as g, TextContainerStyle as D } from "./styles.es.js";
|
|
8
|
+
import { titleTypographyProps as F, subtitleTypographyProps as w } from "./types.es.js";
|
|
9
|
+
const M = ({
|
|
10
10
|
isSelected: e = !1,
|
|
11
11
|
onSelect: p = () => {
|
|
12
12
|
},
|
|
@@ -15,11 +15,12 @@ const E = ({
|
|
|
15
15
|
width: m = "320px",
|
|
16
16
|
onClick: t = () => {
|
|
17
17
|
},
|
|
18
|
-
iconSize:
|
|
18
|
+
iconSize: f = "2rem",
|
|
19
|
+
hasNoButtonOnFocus: y = !1
|
|
19
20
|
}) => {
|
|
20
21
|
const s = (r) => r.key === "Enter" || r.key === " ";
|
|
21
22
|
return /* @__PURE__ */ o(l, { sx: { width: m }, children: /* @__PURE__ */ a(
|
|
22
|
-
|
|
23
|
+
u,
|
|
23
24
|
{
|
|
24
25
|
selected: e,
|
|
25
26
|
onClick: t,
|
|
@@ -32,7 +33,7 @@ const E = ({
|
|
|
32
33
|
"aria-pressed": e,
|
|
33
34
|
children: [
|
|
34
35
|
/* @__PURE__ */ o(
|
|
35
|
-
|
|
36
|
+
b,
|
|
36
37
|
{
|
|
37
38
|
onClick: (r) => {
|
|
38
39
|
r.preventDefault(), r.stopPropagation(), p();
|
|
@@ -46,16 +47,24 @@ const E = ({
|
|
|
46
47
|
tabIndex: 0,
|
|
47
48
|
"aria-label": e ? "Unselect folder" : "Select folder",
|
|
48
49
|
"aria-pressed": e,
|
|
49
|
-
|
|
50
|
+
hasNoButtonOnFocus: y,
|
|
51
|
+
children: /* @__PURE__ */ o(h, {})
|
|
50
52
|
}
|
|
51
53
|
),
|
|
52
|
-
/* @__PURE__ */ a(
|
|
53
|
-
/* @__PURE__ */ o(l, { fontSize:
|
|
54
|
-
|
|
54
|
+
/* @__PURE__ */ a(x, { sx: P, children: [
|
|
55
|
+
/* @__PURE__ */ o(l, { fontSize: f, sx: I, children: /* @__PURE__ */ o(
|
|
56
|
+
c,
|
|
57
|
+
{
|
|
58
|
+
color: "primary",
|
|
59
|
+
sx: g,
|
|
60
|
+
"aria-hidden": "true"
|
|
61
|
+
}
|
|
62
|
+
) }),
|
|
63
|
+
/* @__PURE__ */ a(l, { sx: D, children: [
|
|
55
64
|
/* @__PURE__ */ o(
|
|
56
65
|
i,
|
|
57
66
|
{
|
|
58
|
-
typographyProps:
|
|
67
|
+
typographyProps: F,
|
|
59
68
|
tooltipProps: { placement: "bottom", arrow: !0 },
|
|
60
69
|
children: d
|
|
61
70
|
}
|
|
@@ -63,7 +72,7 @@ const E = ({
|
|
|
63
72
|
n && /* @__PURE__ */ o(
|
|
64
73
|
i,
|
|
65
74
|
{
|
|
66
|
-
typographyProps:
|
|
75
|
+
typographyProps: w,
|
|
67
76
|
tooltipProps: { placement: "bottom", arrow: !0 },
|
|
68
77
|
children: n
|
|
69
78
|
}
|
|
@@ -75,5 +84,5 @@ const E = ({
|
|
|
75
84
|
) });
|
|
76
85
|
};
|
|
77
86
|
export {
|
|
78
|
-
|
|
87
|
+
M as default
|
|
79
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={display:"flex",padding:"16px !important",width:"100%",alignItems:"center"},t={marginRight:".8rem",fontSize:"inherit"},n={flex:15,alignItems:"center",display:"flex",justifyContent:"center"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={display:"flex",padding:"16px !important",width:"100%",alignItems:"center"},t={marginRight:".8rem",fontSize:"inherit"},n={flex:15,alignItems:"center",display:"flex",justifyContent:"center"},i={display:"flex",flexDirection:"column",flex:85,minWidth:0,minHeight:"48px",justifyContent:"center"};exports.FolderBodyStyle=e;exports.FolderIconStyle=t;exports.IconContainerStyle=n;exports.TextContainerStyle=i;
|
|
@@ -15,6 +15,10 @@ export declare const IconContainerStyle: {
|
|
|
15
15
|
justifyContent: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const TextContainerStyle: {
|
|
18
|
+
display: string;
|
|
19
|
+
flexDirection: string;
|
|
18
20
|
flex: number;
|
|
19
21
|
minWidth: number;
|
|
22
|
+
minHeight: string;
|
|
23
|
+
justifyContent: string;
|
|
20
24
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
display: "flex",
|
|
3
3
|
padding: "16px !important",
|
|
4
4
|
width: "100%",
|
|
5
5
|
alignItems: "center"
|
|
6
|
-
},
|
|
6
|
+
}, t = {
|
|
7
7
|
marginRight: ".8rem",
|
|
8
8
|
fontSize: "inherit"
|
|
9
9
|
}, n = {
|
|
@@ -12,12 +12,16 @@ const t = {
|
|
|
12
12
|
display: "flex",
|
|
13
13
|
justifyContent: "center"
|
|
14
14
|
}, i = {
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "column",
|
|
15
17
|
flex: 85,
|
|
16
|
-
minWidth: 0
|
|
18
|
+
minWidth: 0,
|
|
19
|
+
minHeight: "48px",
|
|
20
|
+
justifyContent: "center"
|
|
17
21
|
};
|
|
18
22
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
e as FolderBodyStyle,
|
|
24
|
+
t as FolderIconStyle,
|
|
21
25
|
n as IconContainerStyle,
|
|
22
26
|
i as TextContainerStyle
|
|
23
27
|
};
|
|
@@ -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-DpH56CPw.cjs"),j=require("../../Typography-DOpE-TJz.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-D2Plrf1_.js";
|
|
3
|
+
import { T as b } from "../../Typography-BNt9mZKm.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-DPiiTkVU.cjs"),v=require("../../Delete-C0hR-twe.cjs"),o=require("@mui/material"),p=require("react"),C=require("../../index-Dmu1HrwE.cjs"),w=require("../../Stack-DpH56CPw.cjs"),i=require("../../Typography-DOpE-TJz.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-CCutbgLb.js";
|
|
3
|
+
import { D as w } from "../../Delete-Pl5O0eBK.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-gxOBDuBW.js";
|
|
7
|
+
import { S as F } from "../../Stack-D2Plrf1_.js";
|
|
8
|
+
import { T as l } from "../../Typography-BNt9mZKm.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-Bl24J58B.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-2IEW8Uij.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-Be5Hv5U8.cjs"),c=require("../../Box-Bl24J58B.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-CRrNkGxU.js";
|
|
3
|
+
import { B as o } from "../../Box-2IEW8Uij.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-DFr8lsXU.cjs"),a=require("../../InputAdornment-_UPzajRP.cjs"),u=require("../../IconButton-C1I_233O.cjs"),n=require("../../createSvgIcon-DPiiTkVU.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-BjzDdsW_.js";
|
|
4
|
+
import { I as l } from "../../InputAdornment-Ci0BnJ_e.js";
|
|
5
|
+
import { I as c } from "../../IconButton-CT0Plyy5.js";
|
|
6
|
+
import { c as i } from "../../createSvgIcon-CCutbgLb.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"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("../../MoreVert-MSZXYrMO.cjs"),d=require("@mui/material"),j=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),o=require("./style.cjs.js"),y=({isSelected:s=!1,onSelect:u=()=>{},image:x,title:c,defaultImage:h,propertyItems:p=[],infoIcons:l=[],size:t="md",width:i,onClick:n=()=>{},hasNoButtonOnFocus:b=!1})=>(l=l.slice(0,3),r.jsx(d.Box,{sx:{width:i&&t==="md"?i:"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",hasNoButtonOnFocus:b,children:r.jsx(m.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(j,{typographyProps:{variant:"h4",component:"p"},tooltipProps:{placement:"bottom",arrow:!0},children:c}),p.length>0&&p.map((e,a)=>r.jsxs(o.ResourcePropertyItem,{size:t,role:"group","aria-label":`Property ${a}`,children:[e.icon,r.jsx(o.ResourcePropertyText,{isLast:a===p.length-1,size:t,width:i,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=y;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { M as
|
|
3
|
-
import { Box as
|
|
4
|
-
import
|
|
5
|
-
import { StyledCard as
|
|
6
|
-
const
|
|
2
|
+
import { M as b } from "../../MoreVert-BtC5XWOR.js";
|
|
3
|
+
import { Box as x, Stack as f, Tooltip as y } from "@mui/material";
|
|
4
|
+
import g from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
5
|
+
import { StyledCard as P, SelectedIcon as R, ResourceCardImage as D, ResourceCardBody as I, ResourcePropertyItem as $, ResourcePropertyText as v, PublicIconWrapper as w, ResourceIconItem as j } from "./style.es.js";
|
|
6
|
+
const S = ({
|
|
7
7
|
isSelected: n = !1,
|
|
8
8
|
onSelect: m = () => {
|
|
9
9
|
},
|
|
@@ -15,9 +15,10 @@ const M = ({
|
|
|
15
15
|
size: t = "md",
|
|
16
16
|
width: d,
|
|
17
17
|
onClick: l = () => {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
},
|
|
19
|
+
hasNoButtonOnFocus: h = !1
|
|
20
|
+
}) => (a = a.slice(0, 3), /* @__PURE__ */ r(x, { sx: { width: d && t === "md" ? d : "320px" }, children: /* @__PURE__ */ i(
|
|
21
|
+
P,
|
|
21
22
|
{
|
|
22
23
|
selected: n,
|
|
23
24
|
size: t,
|
|
@@ -30,7 +31,7 @@ const M = ({
|
|
|
30
31
|
"aria-label": `Resource card for ${c}`,
|
|
31
32
|
children: [
|
|
32
33
|
/* @__PURE__ */ r(
|
|
33
|
-
|
|
34
|
+
R,
|
|
34
35
|
{
|
|
35
36
|
onClick: (e) => {
|
|
36
37
|
e.preventDefault(), e.stopPropagation(), m();
|
|
@@ -43,11 +44,12 @@ const M = ({
|
|
|
43
44
|
role: "button",
|
|
44
45
|
tabIndex: 0,
|
|
45
46
|
"aria-label": n ? "Unselect card" : "Select card",
|
|
46
|
-
|
|
47
|
+
hasNoButtonOnFocus: h,
|
|
48
|
+
children: /* @__PURE__ */ r(b, {})
|
|
47
49
|
}
|
|
48
50
|
),
|
|
49
51
|
/* @__PURE__ */ r(
|
|
50
|
-
|
|
52
|
+
f,
|
|
51
53
|
{
|
|
52
54
|
sx: {
|
|
53
55
|
width: t == "sm" ? 110 : "100%",
|
|
@@ -57,7 +59,7 @@ const M = ({
|
|
|
57
59
|
boxSizing: "border-box"
|
|
58
60
|
},
|
|
59
61
|
children: /* @__PURE__ */ r(
|
|
60
|
-
|
|
62
|
+
D,
|
|
61
63
|
{
|
|
62
64
|
image: s,
|
|
63
65
|
defaultImage: u,
|
|
@@ -68,9 +70,9 @@ const M = ({
|
|
|
68
70
|
)
|
|
69
71
|
}
|
|
70
72
|
),
|
|
71
|
-
/* @__PURE__ */ i(
|
|
73
|
+
/* @__PURE__ */ i(I, { size: t, children: [
|
|
72
74
|
/* @__PURE__ */ r(
|
|
73
|
-
|
|
75
|
+
g,
|
|
74
76
|
{
|
|
75
77
|
typographyProps: { variant: "h4", component: "p" },
|
|
76
78
|
tooltipProps: { placement: "bottom", arrow: !0 },
|
|
@@ -78,7 +80,7 @@ const M = ({
|
|
|
78
80
|
}
|
|
79
81
|
),
|
|
80
82
|
p.length > 0 && p.map((e, o) => /* @__PURE__ */ i(
|
|
81
|
-
|
|
83
|
+
$,
|
|
82
84
|
{
|
|
83
85
|
size: t,
|
|
84
86
|
role: "group",
|
|
@@ -86,7 +88,7 @@ const M = ({
|
|
|
86
88
|
children: [
|
|
87
89
|
e.icon,
|
|
88
90
|
/* @__PURE__ */ r(
|
|
89
|
-
|
|
91
|
+
v,
|
|
90
92
|
{
|
|
91
93
|
isLast: o === p.length - 1,
|
|
92
94
|
size: t,
|
|
@@ -98,14 +100,14 @@ const M = ({
|
|
|
98
100
|
},
|
|
99
101
|
`property-${o}`
|
|
100
102
|
)),
|
|
101
|
-
/* @__PURE__ */ r(
|
|
103
|
+
/* @__PURE__ */ r(w, { size: t, children: a.length > 0 && a.map((e, o) => /* @__PURE__ */ r(
|
|
102
104
|
y,
|
|
103
105
|
{
|
|
104
106
|
title: e.text,
|
|
105
107
|
placement: "top",
|
|
106
108
|
arrow: !0,
|
|
107
109
|
children: /* @__PURE__ */ r(
|
|
108
|
-
|
|
110
|
+
j,
|
|
109
111
|
{
|
|
110
112
|
size: t,
|
|
111
113
|
role: "button",
|
|
@@ -122,5 +124,5 @@ const M = ({
|
|
|
122
124
|
}
|
|
123
125
|
) }));
|
|
124
126
|
export {
|
|
125
|
-
|
|
127
|
+
S as default
|
|
126
128
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),i=t.styled(t.Card)(({
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@mui/material"),i=t.styled(t.Card)(({selected:e,size:r})=>({boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",borderRadius:"0.5rem",height:"auto",border:"2px solid transparent",transition:"border-color 0.2s ease-in-out",position:"relative",...r==="sm"&&{display:"flex",width:"100%"},...e&&{background:"primary.light"},"&:hover":{"& .MuiBox-root.selected-icon":{opacity:1,visibility:"visible"}}})),a=t.styled(t.Box)(({selected:e,hasNoButtonOnFocus:r})=>({position:"absolute",top:0,right:0,width:"2rem",height:"2rem",background:"common.white",display:"flex",justifyContent:"center",alignItems:"center",padding:".8rem",borderRadius:".5rem",visibility:"visible",opacity:0,cursor:"pointer",transition:"opacity 0.2s ease-in-out, visibility 0.2s ease-in-out",...e&&{background:"primary.lighter",opacity:1,visibility:"visible"},...r?{"&:hover":{background:"primary.lighter",opacity:1}}:{"&:hover, &:focus":{background:"primary.lighter",opacity:1}},"& .MuiSvgIcon-root":{color:"primary.main"}})),s=t.styled(t.CardMedia)(({size:e,image:r,defaultImage:o})=>({height:e=="sm"?85:180,width:e=="sm"?85:"calc(100% - 2rem)",objectFit:"cover",margin:e=="sm"?"0 10px":"1rem",borderRadius:"0.5rem",...!r&&e==="md"&&{backgroundImage:`url(${o})`,backgroundRepeat:"repeat",backgroundSize:"20% 20%",backgroundPosition:"center",opacity:"0.7"}})),n=t.styled(t.CardContent)(({size:e})=>({padding:e=="sm"?".7rem 5px .7rem 0 !important":"0 16px 16px 16px !important",width:e==="sm"?"calc(100% - 110px)":"100%"})),c=t.styled(t.Box)(({size:e})=>({display:"flex",alignItems:"center",marginTop:"0.5rem",...e==="sm"&&{svg:{width:".8em",height:".8em"}}})),p=t.styled(t.Box)(({size:e,width:r,isLast:o})=>({marginLeft:e==="sm"?".3rem":".5rem",fontSize:e==="sm"?"12px":"15px","& .MuiTypography-root":{paddingTop:"2px",fontSize:e==="sm"?"12px":"15px"},...o&&!r&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:e==="sm"?"110px":"172px"}})),d=t.styled(t.Box)(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",...e==="sm"&&{svg:{width:".8em",height:".8em"}}})),m=t.styled(t.Box)(({size:e})=>({position:"absolute",bottom:e==="sm"?".65rem":"16px",right:e==="sm"?"8px":"16px",display:"flex",gap:".2rem"}));exports.PublicIconWrapper=m;exports.ResourceCardBody=n;exports.ResourceCardImage=s;exports.ResourceIconItem=d;exports.ResourcePropertyItem=c;exports.ResourcePropertyText=p;exports.SelectedIcon=a;exports.StyledCard=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { styled as t, Card as a, Box as
|
|
2
|
-
const
|
|
1
|
+
import { styled as t, Card as a, Box as o, CardMedia as n, CardContent as p } from "@mui/material";
|
|
2
|
+
const m = t(a)(({ selected: e, size: i }) => ({
|
|
3
3
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",
|
|
4
4
|
borderRadius: "0.5rem",
|
|
5
5
|
height: "auto",
|
|
@@ -10,8 +10,8 @@ const c = t(a)(({ theme: e, selected: o, size: i }) => ({
|
|
|
10
10
|
display: "flex",
|
|
11
11
|
width: "100%"
|
|
12
12
|
},
|
|
13
|
-
...
|
|
14
|
-
|
|
13
|
+
...e && {
|
|
14
|
+
background: "primary.light"
|
|
15
15
|
},
|
|
16
16
|
"&:hover": {
|
|
17
17
|
"& .MuiBox-root.selected-icon": {
|
|
@@ -19,53 +19,58 @@ const c = t(a)(({ theme: e, selected: o, size: i }) => ({
|
|
|
19
19
|
visibility: "visible"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
})),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
})), c = t(o)(({ selected: e, hasNoButtonOnFocus: i }) => ({
|
|
23
|
+
position: "absolute",
|
|
24
|
+
top: 0,
|
|
25
|
+
right: 0,
|
|
26
|
+
width: "2rem",
|
|
27
|
+
height: "2rem",
|
|
28
|
+
background: "common.white",
|
|
29
|
+
display: "flex",
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
padding: ".8rem",
|
|
33
|
+
borderRadius: ".5rem",
|
|
34
|
+
visibility: "visible",
|
|
35
|
+
opacity: 0,
|
|
36
|
+
cursor: "pointer",
|
|
37
|
+
transition: "opacity 0.2s ease-in-out, visibility 0.2s ease-in-out",
|
|
38
|
+
...e && {
|
|
39
|
+
background: "primary.lighter",
|
|
40
|
+
opacity: 1,
|
|
41
|
+
visibility: "visible"
|
|
42
|
+
},
|
|
43
|
+
...i ? {
|
|
44
|
+
"&:hover": {
|
|
45
|
+
background: "primary.lighter",
|
|
46
|
+
opacity: 1
|
|
47
|
+
}
|
|
48
|
+
} : {
|
|
44
49
|
"&:hover, &:focus": {
|
|
45
|
-
background:
|
|
50
|
+
background: "primary.lighter",
|
|
46
51
|
opacity: 1
|
|
47
|
-
},
|
|
48
|
-
"& .MuiSvgIcon-root": {
|
|
49
|
-
color: e.palette.primary.main
|
|
50
52
|
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
+
},
|
|
54
|
+
"& .MuiSvgIcon-root": {
|
|
55
|
+
color: "primary.main"
|
|
56
|
+
}
|
|
57
|
+
})), d = t(n)(({ size: e, image: i, defaultImage: r }) => ({
|
|
53
58
|
height: e == "sm" ? 85 : 180,
|
|
54
59
|
width: e == "sm" ? 85 : "calc(100% - 2rem)",
|
|
55
60
|
objectFit: "cover",
|
|
56
61
|
margin: e == "sm" ? "0 10px" : "1rem",
|
|
57
62
|
borderRadius: "0.5rem",
|
|
58
|
-
...!
|
|
59
|
-
backgroundImage: `url(${
|
|
63
|
+
...!i && e === "md" && {
|
|
64
|
+
backgroundImage: `url(${r})`,
|
|
60
65
|
backgroundRepeat: "repeat",
|
|
61
66
|
backgroundSize: "20% 20%",
|
|
62
67
|
backgroundPosition: "center",
|
|
63
68
|
opacity: "0.7"
|
|
64
69
|
}
|
|
65
|
-
})), l = t(
|
|
70
|
+
})), l = t(p)(({ size: e }) => ({
|
|
66
71
|
padding: e == "sm" ? ".7rem 5px .7rem 0 !important" : "0 16px 16px 16px !important",
|
|
67
72
|
width: e === "sm" ? "calc(100% - 110px)" : "100%"
|
|
68
|
-
})), g = t(
|
|
73
|
+
})), g = t(o)(
|
|
69
74
|
({ size: e }) => ({
|
|
70
75
|
display: "flex",
|
|
71
76
|
alignItems: "center",
|
|
@@ -77,20 +82,20 @@ const c = t(a)(({ theme: e, selected: o, size: i }) => ({
|
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
})
|
|
80
|
-
), x = t(
|
|
85
|
+
), x = t(o)(({ size: e, width: i, isLast: r }) => ({
|
|
81
86
|
marginLeft: e === "sm" ? ".3rem" : ".5rem",
|
|
82
87
|
fontSize: e === "sm" ? "12px" : "15px",
|
|
83
88
|
"& .MuiTypography-root": {
|
|
84
89
|
paddingTop: "2px",
|
|
85
90
|
fontSize: e === "sm" ? "12px" : "15px"
|
|
86
91
|
},
|
|
87
|
-
...
|
|
92
|
+
...r && !i && {
|
|
88
93
|
textOverflow: "ellipsis",
|
|
89
94
|
whiteSpace: "nowrap",
|
|
90
95
|
overflow: "hidden",
|
|
91
96
|
maxWidth: e === "sm" ? "110px" : "172px"
|
|
92
97
|
}
|
|
93
|
-
})),
|
|
98
|
+
})), h = t(o)(
|
|
94
99
|
({ size: e }) => ({
|
|
95
100
|
display: "inline-flex",
|
|
96
101
|
alignItems: "center",
|
|
@@ -104,7 +109,7 @@ const c = t(a)(({ theme: e, selected: o, size: i }) => ({
|
|
|
104
109
|
}
|
|
105
110
|
}
|
|
106
111
|
})
|
|
107
|
-
),
|
|
112
|
+
), u = t(o)(
|
|
108
113
|
({ size: e }) => ({
|
|
109
114
|
position: "absolute",
|
|
110
115
|
bottom: e === "sm" ? ".65rem" : "16px",
|
|
@@ -114,12 +119,12 @@ const c = t(a)(({ theme: e, selected: o, size: i }) => ({
|
|
|
114
119
|
})
|
|
115
120
|
);
|
|
116
121
|
export {
|
|
117
|
-
|
|
122
|
+
u as PublicIconWrapper,
|
|
118
123
|
l as ResourceCardBody,
|
|
119
124
|
d as ResourceCardImage,
|
|
120
|
-
|
|
125
|
+
h as ResourceIconItem,
|
|
121
126
|
g as ResourcePropertyItem,
|
|
122
127
|
x as ResourcePropertyText,
|
|
123
|
-
|
|
124
|
-
|
|
128
|
+
c as SelectedIcon,
|
|
129
|
+
m as StyledCard
|
|
125
130
|
};
|
|
@@ -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-DLSItMqn.cjs"),o=require("../../InputBase-C-ES3FPH.cjs"),s=require("../../InputAdornment-_UPzajRP.cjs"),u=require("../../createSvgIcon-DPiiTkVU.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-Bg-6nX-u.js";
|
|
3
|
+
import { I as a } from "../../InputBase-CJvM-WXJ.js";
|
|
4
|
+
import { I as p } from "../../InputAdornment-Ci0BnJ_e.js";
|
|
5
|
+
import { c as n } from "../../createSvgIcon-CCutbgLb.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 }) => ({
|