@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740498210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Backdrop-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-DdA12b-5.js} +79 -82
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-DbRInJ2-.js} +8 -8
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/ButtonBase-C2rhY3j-.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-DzpmdR6N.js} +334 -334
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/CardContent-u1MKaFvP.js +226 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-BI77q7eR.js} +26 -27
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/Chip-6-zATjcr.js +521 -0
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CDa_qU1a.js} +19 -20
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/CloseRounded-DQWTEbNz.cjs +1 -0
- package/dist/CloseRounded-DTpqUeWr.js +8 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-BTTLIBm9.js} +3110 -3600
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/DefaultPropsProvider-BcmyIf2H.js +303 -0
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-SYCCu1VD.js} +13 -13
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-_yayDwkI.js} +30 -30
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-KO-E6nU8.js → Divider-Doy31VS6.js} +8 -8
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-DjkS3S9h.js} +130 -133
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DPD-iBAX.js} +46 -43
- package/dist/{IconButton-CekuyD4r.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-GzDm1zf_.js} +17 -17
- package/dist/{InputBase-BJy3wwFB.js → InputBase-CF5oNEfh.js} +216 -211
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-CnahHTmK.js} +49 -50
- package/dist/Menu-C-R0FVOB.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-DzBX10ev.js} +56 -57
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-DQQ-p2ie.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-B8JRJWm0.js} +99 -98
- package/dist/Modal-D8lS9C1l.cjs +2 -0
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-CbgkVQVx.js} +8 -8
- package/dist/{Popper-DFZ_gRev.js → Popper-1-DDNRPD.js} +241 -243
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-T-1Qk77D.js} +34 -39
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/Radio-BxMxeQa-.js +567 -0
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/RadioGroup-BLrD8_Lp.js +190 -0
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DmssuG5M.js → Select-B6mYfJPA.js} +419 -402
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/Switch-BOpqo-TS.js +329 -0
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-BAjfatYA.js} +35 -36
- package/dist/{Tabs-CYbeTnJk.js → Tabs-CrWcC5nJ.js} +299 -301
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-Cri5Gxa7.js → TextField-CAmc1Qpg.js} +31 -30
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/ToggleButtonGroup-ekxVeQCc.js +10461 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-BvVFPsVR.js} +32 -33
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-CE8fQQ8B.js} +15 -16
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +117 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- 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 +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.es.js +348 -294
- 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 +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -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 +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-CCejzj0C.js} +49 -48
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-DN9F43tq.js} +3 -3
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-DFv-GFt5.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/identifier-D58rA1gM.js +3267 -0
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-CwvpOCso.js → index-BGS2uu2L.js} +29 -29
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-ClXCinr6.js} +22 -22
- package/dist/index-DwHI-aa0.js +45 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-0QnU-fDT.js} +7 -7
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-SrEVp7Pm.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-B31YQlzb.js +0 -45
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("@mui/material"),o=require("./FileListItem.cjs.js"),m=({files:i,onDelete:r,onClick:n,onDownload:l})=>e.jsx(s.List,{sx:{display:"flex",flexDirection:"column"},children:i.map((c,t)=>e.jsxs(e.Fragment,{children:[e.jsx(o,{file:c,onClick:n,onDelete:r,onDownload:l},t),t<i.length-1&&e.jsx(s.Divider,{variant:"middle"})]}))});module.exports=m;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface FileListProps<T extends
|
|
1
|
+
import { CustomFile } from './FileListItem';
|
|
2
|
+
export interface FileListProps<T extends CustomFile> {
|
|
3
3
|
files: T[];
|
|
4
4
|
onDelete?: (file: T) => void;
|
|
5
|
+
onClick?: (file: T) => void;
|
|
6
|
+
onDownload?: (file: T) => void;
|
|
5
7
|
}
|
|
6
|
-
declare const FileList: <T extends
|
|
8
|
+
declare const FileList: <T extends CustomFile>({ files, onDelete, onClick, onDownload, }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export default FileList;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as i, jsxs as s, Fragment as n } from "react/jsx-runtime";
|
|
2
|
+
import { List as a, Divider as d } from "@mui/material";
|
|
3
|
+
import p from "./FileListItem.es.js";
|
|
4
|
+
const h = ({
|
|
5
|
+
files: r,
|
|
6
|
+
onDelete: e,
|
|
7
|
+
onClick: m,
|
|
8
|
+
onDownload: l
|
|
9
|
+
}) => /* @__PURE__ */ i(a, { sx: { display: "flex", flexDirection: "column" }, children: r.map((o, t) => /* @__PURE__ */ s(n, { children: [
|
|
10
|
+
/* @__PURE__ */ i(
|
|
11
|
+
p,
|
|
12
|
+
{
|
|
13
|
+
file: o,
|
|
14
|
+
onClick: m,
|
|
15
|
+
onDelete: e,
|
|
16
|
+
onDownload: l
|
|
17
|
+
},
|
|
18
|
+
t
|
|
19
|
+
),
|
|
20
|
+
t < r.length - 1 && /* @__PURE__ */ i(d, { variant: "middle" })
|
|
21
|
+
] })) });
|
|
15
22
|
export {
|
|
16
|
-
|
|
23
|
+
h as default
|
|
17
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("@mui/material"),g=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),y=require("./FileIcon.cjs.js"),p=require("./FileInfosSeparator.cjs.js"),x=require("./utils.cjs.js"),s=require("../../Stack-C6v70ALA.cjs"),d=require("../../Typography-DEAE8-8u.cjs"),j=require("../../createSvgIcon-Dn4BBPej.cjs"),I=require("../../CloseRounded-DQWTEbNz.cjs"),b=j.createSvgIcon(e.jsx("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded"),S=n.styled(n.ListItemButton)(({isClickable:t})=>({"&:hover":{boxShadow:t?"0 4px 8px rgba(192, 192, 192, 0.3)":"none",backgroundColor:"transparent"},opacity:"1 !important",borderRadius:"4px",cursor:t?"pointer":"default",display:"flex",flexDirection:"row",alignItems:"center",padding:"0.5rem 1rem",width:"100%",justifyContent:"space-between",boxSizing:"border-box",paddingRight:"115px !important"})),q=({file:t,onDelete:a,onClick:r,onDownload:c})=>{if(!t.name)return null;const o=x.displaySize(t.size),i=x.displayExtension(t.name),h=()=>r==null?void 0:r(t),u=l=>{l.stopPropagation(),a==null||a(t)},m=l=>{l.stopPropagation(),c==null||c(t)};return e.jsx(n.ListItem,{secondaryAction:e.jsxs(n.Box,{alignItems:"center",display:"flex",gap:"1rem",children:[t.isLoading?e.jsx(n.Box,{marginRight:1,children:e.jsx(n.CircularProgress,{size:24,color:"primary"})}):t.isDownloadable?e.jsx(n.IconButton,{onClick:m,children:e.jsx(b,{color:"primary"})}):null,t.isDeletable&&e.jsx(n.IconButton,{onClick:u,id:"coucou",children:e.jsx(I.CloseRounded,{})})]}),disablePadding:!0,children:e.jsx(S,{onClick:h,isClickable:!!r,disabled:!r,children:e.jsxs(s.Stack,{direction:"row",alignItems:"center",spacing:2,minWidth:"0",children:[e.jsx(s.Stack,{borderRadius:"4px",minWidth:"40px",maxWidth:"40px",minHeight:"40px",maxHeight:"40px",display:"flex",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"grey.light"},children:e.jsx(n.Box,{color:"text.secondary",alignItems:"center",justifyContent:"center",display:"flex",children:e.jsx(y.FileIcon,{extension:i??""})})}),e.jsxs(s.Stack,{direction:"column",spacing:0,alignItems:"flex-start",minWidth:"0",children:[e.jsx(g,{typographyProps:{variant:"body1"},children:t.name}),e.jsxs(s.Stack,{display:"flex",flexDirection:"row",alignItems:"center",gap:1,children:[o&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:o}),o&&i&&e.jsx(p.FileInfosSeparator,{}),i&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:i}),t.ownerName&&(o||i)&&e.jsx(p.FileInfosSeparator,{}),t.ownerName&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:t.ownerName})]})]})]})})},crypto.randomUUID())};module.exports=q;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface CustomFile {
|
|
2
2
|
name: string;
|
|
3
3
|
size: number;
|
|
4
|
-
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
isDeletable?: boolean;
|
|
6
|
+
isDownloadable?: boolean;
|
|
7
|
+
ownerName?: string;
|
|
5
8
|
}
|
|
6
|
-
export interface FileListItemProps<T extends
|
|
9
|
+
export interface FileListItemProps<T extends CustomFile> {
|
|
7
10
|
file: T;
|
|
8
|
-
uploading?: boolean;
|
|
9
11
|
onDelete?: (file: T) => void;
|
|
12
|
+
onClick?: (file: T) => void;
|
|
13
|
+
onDownload?: (file: T) => void;
|
|
10
14
|
}
|
|
11
|
-
declare const FileListItem: <T extends
|
|
15
|
+
declare const FileListItem: <T extends CustomFile>({ file, onDelete, onClick, onDownload, }: FileListItemProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
16
|
export default FileListItem;
|
|
@@ -1,28 +1,121 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as u, ListItemButton as b, ListItem as I, Box as l, CircularProgress as f, IconButton as m } from "@mui/material";
|
|
3
|
+
import w from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
4
|
+
import { FileIcon as S } from "./FileIcon.es.js";
|
|
5
|
+
import { FileInfosSeparator as h } from "./FileInfosSeparator.es.js";
|
|
6
|
+
import { displaySize as v, displayExtension as C } from "./utils.es.js";
|
|
7
|
+
import { S as a } from "../../Stack-aCUdCw1A.js";
|
|
8
|
+
import { T as p } from "../../Typography-CE8fQQ8B.js";
|
|
9
|
+
import { c as R } from "../../createSvgIcon-CCejzj0C.js";
|
|
10
|
+
import { C as j } from "../../CloseRounded-DTpqUeWr.js";
|
|
11
|
+
const z = R(/* @__PURE__ */ r("path", {
|
|
12
|
+
d: "M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"
|
|
13
|
+
}), "DownloadRounded"), H = u(b)(
|
|
14
|
+
({ isClickable: t }) => ({
|
|
15
|
+
"&:hover": {
|
|
16
|
+
boxShadow: t ? "0 4px 8px rgba(192, 192, 192, 0.3)" : "none",
|
|
17
|
+
backgroundColor: "transparent"
|
|
18
|
+
},
|
|
19
|
+
opacity: "1 !important",
|
|
20
|
+
borderRadius: "4px",
|
|
21
|
+
cursor: t ? "pointer" : "default",
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "row",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
padding: "0.5rem 1rem",
|
|
26
|
+
width: "100%",
|
|
27
|
+
justifyContent: "space-between",
|
|
28
|
+
boxSizing: "border-box",
|
|
29
|
+
paddingRight: "115px !important"
|
|
30
|
+
})
|
|
31
|
+
), M = ({
|
|
32
|
+
file: t,
|
|
33
|
+
onDelete: c,
|
|
34
|
+
onClick: e,
|
|
35
|
+
onDownload: s
|
|
15
36
|
}) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
if (!t.name) return null;
|
|
38
|
+
const i = v(t.size), o = C(t.name), x = () => e == null ? void 0 : e(t), g = (d) => {
|
|
39
|
+
d.stopPropagation(), c == null || c(t);
|
|
40
|
+
}, y = (d) => {
|
|
41
|
+
d.stopPropagation(), s == null || s(t);
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
I,
|
|
45
|
+
{
|
|
46
|
+
secondaryAction: /* @__PURE__ */ n(l, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
47
|
+
t.isLoading ? /* @__PURE__ */ r(l, { marginRight: 1, children: /* @__PURE__ */ r(f, { size: 24, color: "primary" }) }) : t.isDownloadable ? /* @__PURE__ */ r(m, { onClick: y, children: /* @__PURE__ */ r(z, { color: "primary" }) }) : null,
|
|
48
|
+
t.isDeletable && /* @__PURE__ */ r(m, { onClick: g, id: "coucou", children: /* @__PURE__ */ r(j, {}) })
|
|
49
|
+
] }),
|
|
50
|
+
disablePadding: !0,
|
|
51
|
+
children: /* @__PURE__ */ r(
|
|
52
|
+
H,
|
|
53
|
+
{
|
|
54
|
+
onClick: x,
|
|
55
|
+
isClickable: !!e,
|
|
56
|
+
disabled: !e,
|
|
57
|
+
children: /* @__PURE__ */ n(a, { direction: "row", alignItems: "center", spacing: 2, minWidth: "0", children: [
|
|
58
|
+
/* @__PURE__ */ r(
|
|
59
|
+
a,
|
|
60
|
+
{
|
|
61
|
+
borderRadius: "4px",
|
|
62
|
+
minWidth: "40px",
|
|
63
|
+
maxWidth: "40px",
|
|
64
|
+
minHeight: "40px",
|
|
65
|
+
maxHeight: "40px",
|
|
66
|
+
display: "flex",
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
justifyContent: "center",
|
|
69
|
+
sx: {
|
|
70
|
+
backgroundColor: "grey.light"
|
|
71
|
+
},
|
|
72
|
+
children: /* @__PURE__ */ r(
|
|
73
|
+
l,
|
|
74
|
+
{
|
|
75
|
+
color: "text.secondary",
|
|
76
|
+
alignItems: "center",
|
|
77
|
+
justifyContent: "center",
|
|
78
|
+
display: "flex",
|
|
79
|
+
children: /* @__PURE__ */ r(S, { extension: o ?? "" })
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ n(
|
|
85
|
+
a,
|
|
86
|
+
{
|
|
87
|
+
direction: "column",
|
|
88
|
+
spacing: 0,
|
|
89
|
+
alignItems: "flex-start",
|
|
90
|
+
minWidth: "0",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ r(w, { typographyProps: { variant: "body1" }, children: t.name }),
|
|
93
|
+
/* @__PURE__ */ n(
|
|
94
|
+
a,
|
|
95
|
+
{
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: "row",
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
gap: 1,
|
|
100
|
+
children: [
|
|
101
|
+
i && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: i }),
|
|
102
|
+
i && o && /* @__PURE__ */ r(h, {}),
|
|
103
|
+
o && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: o }),
|
|
104
|
+
t.ownerName && (i || o) && /* @__PURE__ */ r(h, {}),
|
|
105
|
+
t.ownerName && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: t.ownerName })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
},
|
|
116
|
+
crypto.randomUUID()
|
|
117
|
+
);
|
|
25
118
|
};
|
|
26
119
|
export {
|
|
27
|
-
|
|
120
|
+
M as default
|
|
28
121
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>{if(!t||t<0)return null;const n=["octets","Ko","Mo","Go","To"],o=Math.min(Math.floor(Math.log2(t)/10),n.length-1);return`${(t/1024**o).toFixed(1)} ${n[o]}`},l=t=>{if(!t)return null;const n=t.split(".").pop();return n?n.toUpperCase():null};exports.displayExtension=l;exports.displaySize=e;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const l = (t) => {
|
|
2
|
+
if (!t || t < 0) return null;
|
|
3
|
+
const n = ["octets", "Ko", "Mo", "Go", "To"], o = Math.min(Math.floor(Math.log2(t) / 10), n.length - 1);
|
|
4
|
+
return `${(t / 1024 ** o).toFixed(1)} ${n[o]}`;
|
|
5
|
+
}, e = (t) => {
|
|
6
|
+
if (!t) return null;
|
|
7
|
+
const n = t.split(".").pop();
|
|
8
|
+
return n ? n.toUpperCase() : null;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
e as displayExtension,
|
|
12
|
+
l as displaySize
|
|
13
|
+
};
|
|
@@ -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-C6v70ALA.cjs"),j=require("../../Typography-DEAE8-8u.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-aCUdCw1A.js";
|
|
3
|
+
import { T as b } from "../../Typography-CE8fQQ8B.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("../../createSvgIcon-Dn4BBPej.cjs"),o=require("@mui/material"),I=require("react"),S=require("../../index-CJW5gB6d.cjs"),C=require("../../Stack-C6v70ALA.cjs"),i=require("../../Typography-DEAE8-8u.cjs"),p=c.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"),F=c.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"),w=c.createSvgIcon(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),D=()=>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"]}),P=({defaultLabel:h=e.jsx(D,{}),dragLabel:g=e.jsx(A,{}),information:n,onFileChange:s=t=>{},width:x="160px",height:m="160px",initialFile:u=null,...j})=>{const[t,l]=I.useState(u),y=r=>{const d=r[0]||null;l(d),s(d)},f=r=>{r.stopPropagation(),l(null),s(null)},b=r=>{r.stopPropagation(),a()},{open:a,getRootProps:k,getInputProps:z,isDragActive:v}=S.useDropzone({...j,maxFiles:1,onDropAccepted:y,accept:{"image/*":[".png",".jpeg",".jpg",".gif"]},noClick:!0});return e.jsxs(C.Stack,{direction:"column",justifyContent:"center",alignItems:"center",width:x,minWidth:"150px",minHeight:"150px",height:m,borderRadius:1,sx:{cursor:"pointer",position:"relative",background:`${!t&&"linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,border:`${!t&&"1px dashed"}`,borderColor:r=>!t&&r.palette.grey.main},...k({onClick:a}),children:[e.jsx("input",{...z()}),t?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:b,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:r=>r.palette.common.white}}},children:e.jsx(F,{fontSize:"small"})}),e.jsx(o.Box,{onClick:f,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:r=>r.palette.common.white}}},children:e.jsx(w,{fontSize:"small"})})]}),e.jsx("img",{src:typeof t=="string"?t:URL.createObjectURL(t),alt:typeof t=="string"?t:t.name,style:{width:"100%",height:"100%",maxWidth:"100%",objectFit:"cover",borderRadius:"5px"}})]}):e.jsx(e.Fragment,{children:v?e.jsxs(e.Fragment,{children:[e.jsx(p,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),g,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(p,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),h,n&&e.jsx(i.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]})})]})};module.exports=P;
|
|
@@ -1,52 +1,59 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { D as w } from "../../Delete-BkZN7Xu5.js";
|
|
2
|
+
import { c as a } from "../../createSvgIcon-CCejzj0C.js";
|
|
4
3
|
import { Box as n } from "@mui/material";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import { T as l } from "../../Typography-
|
|
9
|
-
const m =
|
|
4
|
+
import { useState as w } from "react";
|
|
5
|
+
import { u as D } from "../../index-BGS2uu2L.js";
|
|
6
|
+
import { S as F } from "../../Stack-aCUdCw1A.js";
|
|
7
|
+
import { T as l } from "../../Typography-CE8fQQ8B.js";
|
|
8
|
+
const m = a(/* @__PURE__ */ e("path", {
|
|
10
9
|
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
|
-
}), "AddPhotoAlternate"),
|
|
10
|
+
}), "AddPhotoAlternate"), A = a(/* @__PURE__ */ e("path", {
|
|
12
11
|
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"
|
|
13
|
-
}), "Create"),
|
|
12
|
+
}), "Create"), j = a(/* @__PURE__ */ e("path", {
|
|
13
|
+
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
14
|
+
}), "Delete"), P = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
14
15
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
15
|
-
"
|
|
16
|
+
" ",
|
|
17
|
+
"ou",
|
|
18
|
+
" ",
|
|
16
19
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
17
|
-
"
|
|
18
|
-
|
|
20
|
+
" ",
|
|
21
|
+
"pour choisir une image"
|
|
22
|
+
] }), M = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
19
23
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
20
|
-
"
|
|
21
|
-
|
|
24
|
+
" ",
|
|
25
|
+
"une image"
|
|
26
|
+
] }), U = ({
|
|
22
27
|
defaultLabel: g = /* @__PURE__ */ e(P, {}),
|
|
23
|
-
dragLabel: u = /* @__PURE__ */ e(
|
|
28
|
+
dragLabel: u = /* @__PURE__ */ e(M, {}),
|
|
24
29
|
information: i,
|
|
25
|
-
onFileChange:
|
|
30
|
+
onFileChange: s = (t) => {
|
|
26
31
|
},
|
|
27
32
|
width: x = "160px",
|
|
28
33
|
height: f = "160px",
|
|
29
34
|
initialFile: y = null,
|
|
30
35
|
...b
|
|
31
36
|
}) => {
|
|
32
|
-
const [t,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
r.stopPropagation(), d();
|
|
39
|
-
},
|
|
37
|
+
const [t, d] = w(
|
|
38
|
+
y
|
|
39
|
+
), z = (r) => {
|
|
40
|
+
const h = r[0] || null;
|
|
41
|
+
d(h), s(h);
|
|
42
|
+
}, k = (r) => {
|
|
43
|
+
r.stopPropagation(), d(null), s(null);
|
|
44
|
+
}, v = (r) => {
|
|
45
|
+
r.stopPropagation(), p();
|
|
46
|
+
}, { open: p, getRootProps: C, getInputProps: I, isDragActive: S } = D({
|
|
40
47
|
...b,
|
|
41
48
|
maxFiles: 1,
|
|
42
|
-
onDropAccepted:
|
|
49
|
+
onDropAccepted: z,
|
|
43
50
|
accept: {
|
|
44
51
|
"image/*": [".png", ".jpeg", ".jpg", ".gif"]
|
|
45
52
|
},
|
|
46
53
|
noClick: !0
|
|
47
54
|
});
|
|
48
55
|
return /* @__PURE__ */ o(
|
|
49
|
-
|
|
56
|
+
F,
|
|
50
57
|
{
|
|
51
58
|
direction: "column",
|
|
52
59
|
justifyContent: "center",
|
|
@@ -63,11 +70,11 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
63
70
|
border: `${!t && "1px dashed"}`,
|
|
64
71
|
borderColor: (r) => !t && r.palette.grey.main
|
|
65
72
|
},
|
|
66
|
-
...
|
|
67
|
-
onClick:
|
|
73
|
+
...C({
|
|
74
|
+
onClick: p
|
|
68
75
|
}),
|
|
69
76
|
children: [
|
|
70
|
-
/* @__PURE__ */ e("input", { ...
|
|
77
|
+
/* @__PURE__ */ e("input", { ...I() }),
|
|
71
78
|
t ? /* @__PURE__ */ o(c, { children: [
|
|
72
79
|
/* @__PURE__ */ o(
|
|
73
80
|
n,
|
|
@@ -83,7 +90,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
83
90
|
/* @__PURE__ */ e(
|
|
84
91
|
n,
|
|
85
92
|
{
|
|
86
|
-
onClick:
|
|
93
|
+
onClick: v,
|
|
87
94
|
sx: {
|
|
88
95
|
backgroundColor: "common.white",
|
|
89
96
|
display: "flex",
|
|
@@ -101,13 +108,13 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
},
|
|
104
|
-
children: /* @__PURE__ */ e(
|
|
111
|
+
children: /* @__PURE__ */ e(A, { fontSize: "small" })
|
|
105
112
|
}
|
|
106
113
|
),
|
|
107
114
|
/* @__PURE__ */ e(
|
|
108
115
|
n,
|
|
109
116
|
{
|
|
110
|
-
onClick:
|
|
117
|
+
onClick: k,
|
|
111
118
|
sx: {
|
|
112
119
|
backgroundColor: "common.white",
|
|
113
120
|
display: "flex",
|
|
@@ -125,7 +132,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
134
|
},
|
|
128
|
-
children: /* @__PURE__ */ e(
|
|
135
|
+
children: /* @__PURE__ */ e(j, { fontSize: "small" })
|
|
129
136
|
}
|
|
130
137
|
)
|
|
131
138
|
]
|
|
@@ -137,7 +144,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
137
144
|
src: typeof t == "string" ? t : URL.createObjectURL(t),
|
|
138
145
|
alt: typeof t == "string" ? t : t.name,
|
|
139
146
|
style: {
|
|
140
|
-
width: "
|
|
147
|
+
width: "100%",
|
|
141
148
|
height: "100%",
|
|
142
149
|
maxWidth: "100%",
|
|
143
150
|
objectFit: "cover",
|
|
@@ -145,31 +152,49 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
145
152
|
}
|
|
146
153
|
}
|
|
147
154
|
)
|
|
148
|
-
] }) : /* @__PURE__ */ e(c, { children:
|
|
149
|
-
/* @__PURE__ */ e(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
] }) : /* @__PURE__ */ e(c, { children: S ? /* @__PURE__ */ o(c, { children: [
|
|
156
|
+
/* @__PURE__ */ e(
|
|
157
|
+
m,
|
|
158
|
+
{
|
|
159
|
+
color: "primary",
|
|
160
|
+
style: {
|
|
161
|
+
width: "2.5rem",
|
|
162
|
+
height: "2.5rem"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
),
|
|
153
166
|
u,
|
|
154
167
|
i && /* @__PURE__ */ e(l, { textAlign: "center", fontSize: "12px", color: "grey", children: i })
|
|
155
|
-
] }) : /* @__PURE__ */ o(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
] }) : /* @__PURE__ */ o(
|
|
169
|
+
n,
|
|
170
|
+
{
|
|
171
|
+
sx: {
|
|
172
|
+
display: "flex",
|
|
173
|
+
flexDirection: "column",
|
|
174
|
+
alignItems: "center",
|
|
175
|
+
padding: "0.5rem",
|
|
176
|
+
gap: "0.3rem"
|
|
177
|
+
},
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ e(
|
|
180
|
+
m,
|
|
181
|
+
{
|
|
182
|
+
color: "primary",
|
|
183
|
+
style: {
|
|
184
|
+
width: "2.5rem",
|
|
185
|
+
height: "2.5rem"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
g,
|
|
190
|
+
i && /* @__PURE__ */ e(l, { textAlign: "center", fontSize: "12px", color: "grey", children: i })
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
) })
|
|
169
194
|
]
|
|
170
195
|
}
|
|
171
196
|
);
|
|
172
197
|
};
|
|
173
198
|
export {
|
|
174
|
-
|
|
199
|
+
U as default
|
|
175
200
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/styles.css');const e=require("react/jsx-runtime");;/* empty css */const r=require("../../Box-
|
|
1
|
+
"use strict";require('../../assets/styles.css');const e=require("react/jsx-runtime");;/* empty css */const r=require("../../Box-C0mEbUoK.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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/styles.css';/* empty css */
|
|
3
|
-
import { B as l } from "../../Box-
|
|
3
|
+
import { B as l } from "../../Box-DbRInJ2-.js";
|
|
4
4
|
const i = ({}) => /* @__PURE__ */ r(l, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(l, { className: "cs-loader-inner", children: [
|
|
5
5
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/styles2.css');const r=require("react/jsx-runtime");;/* empty css */const e=require("../../Backdrop-
|
|
1
|
+
"use strict";require('../../assets/styles2.css');const r=require("react/jsx-runtime");;/* empty css */const e=require("../../Backdrop-COarwgJj.cjs"),c=require("../../Box-C0mEbUoK.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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/styles2.css';/* empty css */
|
|
3
|
-
import { B as e } from "../../Backdrop-
|
|
4
|
-
import { B as l } from "../../Box-
|
|
3
|
+
import { B as e } from "../../Backdrop-DdA12b-5.js";
|
|
4
|
+
import { B as l } from "../../Box-DbRInJ2-.js";
|
|
5
5
|
const n = ({}) => /* @__PURE__ */ r(e, { open: !0, sx: { bgcolor: "background.default" }, children: /* @__PURE__ */ o(l, { className: "cs-loader-backdrop-inner", color: "primary.main", children: [
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
7
7
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/styles2.css');require('../../assets/styles.css');const e=require("react/jsx-runtime"),u=require("react")
|
|
1
|
+
"use strict";require('../../assets/styles2.css');require('../../assets/styles.css');const e=require("react/jsx-runtime"),u=require("react");require("../Alert/Alert.cjs.js");require("../Button/Button.cjs.js");require("../../fr-JE-1WKP6.cjs");require("@mui/material");require("../FileList/FileListItem.cjs.js");;/* empty css */;/* empty css */require("../ResourceCard/style.cjs.js");require("../SearchInput/SearchInput.cjs.js");const l=require("../TextInput/TextInput.cjs.js"),a=require("../../InputAdornment-C9NrmB_z.cjs"),d=require("../../IconButton-Edo5JMfQ.cjs"),n=require("../../createSvgIcon-Dn4BBPej.cjs"),q=n.createSvgIcon(e.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"),p=n.createSvgIcon(e.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"),w=s=>{const[r,i]=u.useState(!1),o=()=>i(t=>!t),c=t=>{t.preventDefault()};return e.jsx(l,{...s,variant:"outlined",label:s.label,type:r?"text":"password",InputProps:{endAdornment:e.jsx(a.InputAdornment,{position:"end",children:e.jsx(d.IconButton,{"aria-label":"toggle password visibility",onClick:o,onMouseDown:c,edge:"end",children:r?e.jsx(p,{}):e.jsx(q,{})})})}})};module.exports=w;
|