@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739205895
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-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
- package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
- package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
- package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
- package/dist/Button-C-bZSJCq.cjs +28 -0
- package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
- package/dist/Button-CSNPv43f.js +542 -0
- package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
- package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
- package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
- package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
- package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
- package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
- package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
- package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
- package/dist/CloseRounded-Df8vYhLX.js +8 -0
- package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
- package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
- package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
- package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
- package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
- package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
- package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
- package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
- package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
- package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
- package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
- package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
- package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
- package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
- package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
- package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
- package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
- package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
- package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
- package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
- package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
- package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
- package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
- package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
- package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
- package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
- package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
- package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
- package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
- package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
- package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
- package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
- package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
- package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
- package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
- package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
- package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
- package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
- package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
- package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
- package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
- package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
- package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
- package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
- package/dist/Stack-B68ooSQ-.cjs +1 -0
- package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
- package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
- package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
- package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
- package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
- package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
- package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
- package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
- package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
- package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
- package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
- package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
- package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
- package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
- package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +4 -297
- package/dist/components/Button/index.cjs.js +1 -1
- package/dist/components/Button/index.es.js +2 -2
- 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 +11 -13
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -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 +23 -14
- 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 +95 -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 +41 -40
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/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.es.js +212 -213
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +9 -9
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +3 -3
- 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 +145 -19
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
- 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 +8 -8
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +11 -11
- 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-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
- package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
- package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
- package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
- package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
- package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
- package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
- package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
- package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
- package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
- package/dist/index-CgWaRcwQ.cjs +1 -0
- package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +212 -213
- package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
- package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
- package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
- package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
- package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
- package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
- package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
- package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
- package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
- package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
- package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
- package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
- package/dist/useTheme-Dyx3LMQU.js +11 -0
- package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
- package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
- package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
- package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
- package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
- package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
- package/package.json +1 -1
- package/dist/CircularProgress-CIsFCabr.cjs +0 -28
- package/dist/CircularProgress-Wu1RUH10.js +0 -253
- package/dist/Delete-CN1Nvyw-.cjs +0 -1
- package/dist/Delete-D269dtzC.js +0 -8
- package/dist/Stack-6AHEa1bx.cjs +0 -1
- package/dist/index-vTvfssKH.cjs +0 -1
- package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
- package/dist/useTheme-i6uFvVRH.js +0 -11
|
@@ -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
|
+
isDowlodable?: 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,99 @@
|
|
|
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 o } from "react/jsx-runtime";
|
|
2
|
+
import { Box as d, Breadcrumbs as u, CircularProgress as y, IconButton as p } from "@mui/material";
|
|
3
|
+
import b from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
4
|
+
import { FileIcon as f } from "./FileIcon.es.js";
|
|
5
|
+
import { FileInfosSeparator as I } from "./FileInfosSeparator.es.js";
|
|
6
|
+
import { displaySize as S, displayExtension as z } from "./utils.es.js";
|
|
7
|
+
import { S as i } from "../../Stack-CSgGU-cq.js";
|
|
8
|
+
import { T as l } from "../../Typography-C9ltjPyz.js";
|
|
9
|
+
import { c as w } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
10
|
+
import { C } from "../../CloseRounded-Df8vYhLX.js";
|
|
11
|
+
const R = w(/* @__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"), k = ({
|
|
14
|
+
file: e,
|
|
15
|
+
onDelete: t,
|
|
16
|
+
onClick: n,
|
|
17
|
+
onDownload: a
|
|
15
18
|
}) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
if (!e.name) return null;
|
|
20
|
+
const m = S(e.size), s = z(e.name), h = () => n == null ? void 0 : n(e), x = (c) => {
|
|
21
|
+
c.stopPropagation(), t == null || t(e);
|
|
22
|
+
}, g = (c) => {
|
|
23
|
+
c.stopPropagation(), a == null || a(e);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ o(
|
|
26
|
+
i,
|
|
27
|
+
{
|
|
28
|
+
direction: "row",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
spacing: 2,
|
|
31
|
+
padding: "0.5rem 1rem",
|
|
32
|
+
width: "100%",
|
|
33
|
+
justifyContent: "space-between",
|
|
34
|
+
onClick: h,
|
|
35
|
+
boxSizing: "border-box",
|
|
36
|
+
sx: {
|
|
37
|
+
"&:hover": {
|
|
38
|
+
boxShadow: "0 4px 8px rgba(192, 192, 192, 0.3)",
|
|
39
|
+
borderRadius: "4px",
|
|
40
|
+
cursor: "pointer"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ o(i, { direction: "row", alignItems: "center", spacing: 2, minWidth: "0", children: [
|
|
45
|
+
/* @__PURE__ */ r(
|
|
46
|
+
i,
|
|
47
|
+
{
|
|
48
|
+
borderRadius: "4px",
|
|
49
|
+
minWidth: "40px",
|
|
50
|
+
maxWidth: "40px",
|
|
51
|
+
minHeight: "40px",
|
|
52
|
+
maxHeight: "40px",
|
|
53
|
+
display: "flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center",
|
|
56
|
+
sx: {
|
|
57
|
+
backgroundColor: "grey.light"
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ r(
|
|
60
|
+
d,
|
|
61
|
+
{
|
|
62
|
+
color: "text.secondary",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyContent: "center",
|
|
65
|
+
display: "flex",
|
|
66
|
+
children: /* @__PURE__ */ r(f, { extension: s ?? "" })
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ o(
|
|
72
|
+
i,
|
|
73
|
+
{
|
|
74
|
+
direction: "column",
|
|
75
|
+
spacing: 0,
|
|
76
|
+
alignItems: "flex-start",
|
|
77
|
+
minWidth: "0",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ r(b, { children: e.name }),
|
|
80
|
+
/* @__PURE__ */ o(u, { separator: /* @__PURE__ */ r(I, {}), children: [
|
|
81
|
+
m && /* @__PURE__ */ r(l, { fontSize: "0.8rem", color: "text.secondary", children: m }),
|
|
82
|
+
s && /* @__PURE__ */ r(l, { fontSize: "0.8rem", color: "text.secondary", children: s }),
|
|
83
|
+
e.ownerName && /* @__PURE__ */ r(l, { fontSize: "0.8rem", color: "text.secondary", children: e.ownerName })
|
|
84
|
+
] })
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ o(d, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
90
|
+
e.isLoading ? /* @__PURE__ */ r(d, { marginRight: 1, children: /* @__PURE__ */ r(y, { size: 24, color: "primary" }) }) : e.isDowlodable ? /* @__PURE__ */ r(p, { onClick: g, children: /* @__PURE__ */ r(R, { color: "primary" }) }) : null,
|
|
91
|
+
e.isDeletable && /* @__PURE__ */ r(p, { onClick: x, children: /* @__PURE__ */ r(C, {}) })
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
25
96
|
};
|
|
26
97
|
export {
|
|
27
|
-
|
|
98
|
+
k as default
|
|
28
99
|
};
|
|
@@ -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-B68ooSQ-.cjs"),j=require("../../Typography-Y-OGmT9M.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-CSgGU-cq.js";
|
|
3
|
+
import { T as b } from "../../Typography-C9ltjPyz.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-CWNQW6u6.cjs"),o=require("@mui/material"),I=require("react"),S=require("../../index-BUATG6-f.cjs"),C=require("../../Stack-B68ooSQ-.cjs"),i=require("../../Typography-Y-OGmT9M.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,53 @@
|
|
|
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-D269dtzC.js";
|
|
2
|
+
import { c as a } from "../../createSvgIcon-Cd6y8E9W.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-OesDQygc.js";
|
|
6
|
+
import { S as F } from "../../Stack-CSgGU-cq.js";
|
|
7
|
+
import { T as l } from "../../Typography-C9ltjPyz.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
|
" ou ",
|
|
16
17
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
17
18
|
" pour choisir une image"
|
|
18
|
-
] }),
|
|
19
|
+
] }), M = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
19
20
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
20
21
|
" une image"
|
|
21
|
-
] }),
|
|
22
|
+
] }), U = ({
|
|
22
23
|
defaultLabel: g = /* @__PURE__ */ e(P, {}),
|
|
23
|
-
dragLabel: u = /* @__PURE__ */ e(
|
|
24
|
+
dragLabel: u = /* @__PURE__ */ e(M, {}),
|
|
24
25
|
information: i,
|
|
25
|
-
onFileChange:
|
|
26
|
+
onFileChange: s = (t) => {
|
|
26
27
|
},
|
|
27
28
|
width: x = "160px",
|
|
28
29
|
height: f = "160px",
|
|
29
30
|
initialFile: y = null,
|
|
30
31
|
...b
|
|
31
32
|
}) => {
|
|
32
|
-
const [
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
}, { open:
|
|
33
|
+
const [t, d] = w(y), z = (r) => {
|
|
34
|
+
const h = r[0] || null;
|
|
35
|
+
d(h), s(h);
|
|
36
|
+
}, k = (r) => {
|
|
37
|
+
r.stopPropagation(), d(null), s(null);
|
|
38
|
+
}, v = (r) => {
|
|
39
|
+
r.stopPropagation(), p();
|
|
40
|
+
}, { open: p, getRootProps: C, getInputProps: I, isDragActive: S } = D({
|
|
40
41
|
...b,
|
|
41
42
|
maxFiles: 1,
|
|
42
|
-
onDropAccepted:
|
|
43
|
+
onDropAccepted: z,
|
|
43
44
|
accept: {
|
|
44
45
|
"image/*": [".png", ".jpeg", ".jpg", ".gif"]
|
|
45
46
|
},
|
|
46
47
|
noClick: !0
|
|
47
48
|
});
|
|
48
49
|
return /* @__PURE__ */ o(
|
|
49
|
-
|
|
50
|
+
F,
|
|
50
51
|
{
|
|
51
52
|
direction: "column",
|
|
52
53
|
justifyContent: "center",
|
|
@@ -59,16 +60,16 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
59
60
|
sx: {
|
|
60
61
|
cursor: "pointer",
|
|
61
62
|
position: "relative",
|
|
62
|
-
background: `${!
|
|
63
|
-
border: `${!
|
|
64
|
-
borderColor: (
|
|
63
|
+
background: `${!t && "linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,
|
|
64
|
+
border: `${!t && "1px dashed"}`,
|
|
65
|
+
borderColor: (r) => !t && r.palette.grey.main
|
|
65
66
|
},
|
|
66
|
-
...
|
|
67
|
-
onClick:
|
|
67
|
+
...C({
|
|
68
|
+
onClick: p
|
|
68
69
|
}),
|
|
69
70
|
children: [
|
|
70
|
-
/* @__PURE__ */ e("input", { ...
|
|
71
|
-
|
|
71
|
+
/* @__PURE__ */ e("input", { ...I() }),
|
|
72
|
+
t ? /* @__PURE__ */ o(c, { children: [
|
|
72
73
|
/* @__PURE__ */ o(
|
|
73
74
|
n,
|
|
74
75
|
{
|
|
@@ -83,7 +84,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
83
84
|
/* @__PURE__ */ e(
|
|
84
85
|
n,
|
|
85
86
|
{
|
|
86
|
-
onClick:
|
|
87
|
+
onClick: v,
|
|
87
88
|
sx: {
|
|
88
89
|
backgroundColor: "common.white",
|
|
89
90
|
display: "flex",
|
|
@@ -97,17 +98,17 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
97
98
|
"&:hover": {
|
|
98
99
|
backgroundColor: "grey.darker",
|
|
99
100
|
"& .MuiSvgIcon-root": {
|
|
100
|
-
fill: (
|
|
101
|
+
fill: (r) => r.palette.common.white
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
|
-
children: /* @__PURE__ */ e(
|
|
105
|
+
children: /* @__PURE__ */ e(A, { fontSize: "small" })
|
|
105
106
|
}
|
|
106
107
|
),
|
|
107
108
|
/* @__PURE__ */ e(
|
|
108
109
|
n,
|
|
109
110
|
{
|
|
110
|
-
onClick:
|
|
111
|
+
onClick: k,
|
|
111
112
|
sx: {
|
|
112
113
|
backgroundColor: "common.white",
|
|
113
114
|
display: "flex",
|
|
@@ -121,11 +122,11 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
121
122
|
"&:hover": {
|
|
122
123
|
backgroundColor: "grey.darker",
|
|
123
124
|
"& .MuiSvgIcon-root": {
|
|
124
|
-
fill: (
|
|
125
|
+
fill: (r) => r.palette.common.white
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
|
-
children: /* @__PURE__ */ e(
|
|
129
|
+
children: /* @__PURE__ */ e(j, { fontSize: "small" })
|
|
129
130
|
}
|
|
130
131
|
)
|
|
131
132
|
]
|
|
@@ -134,8 +135,8 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
134
135
|
/* @__PURE__ */ e(
|
|
135
136
|
"img",
|
|
136
137
|
{
|
|
137
|
-
src: typeof
|
|
138
|
-
alt: typeof
|
|
138
|
+
src: typeof t == "string" ? t : URL.createObjectURL(t),
|
|
139
|
+
alt: typeof t == "string" ? t : t.name,
|
|
139
140
|
style: {
|
|
140
141
|
width: "100%",
|
|
141
142
|
height: "100%",
|
|
@@ -145,7 +146,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
)
|
|
148
|
-
] }) : /* @__PURE__ */ e(c, { children:
|
|
149
|
+
] }) : /* @__PURE__ */ e(c, { children: S ? /* @__PURE__ */ o(c, { children: [
|
|
149
150
|
/* @__PURE__ */ e(m, { color: "primary", style: {
|
|
150
151
|
width: "2.5rem",
|
|
151
152
|
height: "2.5rem"
|
|
@@ -171,5 +172,5 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
171
172
|
);
|
|
172
173
|
};
|
|
173
174
|
export {
|
|
174
|
-
|
|
175
|
+
U as default
|
|
175
176
|
};
|
|
@@ -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-CVaz7diG.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-Cpg9IWKr.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-Cvbj4YKG.cjs"),c=require("../../Box-CVaz7diG.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-DZHacmMU.js";
|
|
4
|
+
import { B as l } from "../../Box-Cpg9IWKr.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"),l=require("../TextInput/TextInput.cjs.js");require("../Alert/Alert.cjs.js");require("
|
|
1
|
+
"use strict";require('../../assets/styles2.css');require('../../assets/styles.css');const e=require("react/jsx-runtime"),u=require("react"),l=require("../TextInput/TextInput.cjs.js");require("../Alert/Alert.cjs.js");require("../../Button-C-bZSJCq.cjs");require("../../fr-JE-1WKP6.cjs");require("@mui/material");;/* empty css */;/* empty css */require("../ResourceCard/style.cjs.js");require("../SearchInput/SearchInput.cjs.js");const a=require("../../InputAdornment-CLIvW7Gk.cjs"),d=require("../../IconButton-BUCTqOFa.cjs"),r=require("../../createSvgIcon-CWNQW6u6.cjs"),p=r.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"),q=r.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[n,i]=u.useState(!1),o=()=>i(t=>!t),c=t=>{t.preventDefault()};return e.jsx(l,{...s,variant:"outlined",label:s.label,type:n?"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:n?e.jsx(q,{}):e.jsx(p,{})})})}})};module.exports=w;
|
|
@@ -2,16 +2,16 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as a } from "react";
|
|
3
3
|
import p from "../TextInput/TextInput.es.js";
|
|
4
4
|
import "../Alert/Alert.es.js";
|
|
5
|
-
import "
|
|
6
|
-
import "../../fr-
|
|
5
|
+
import "../../Button-CSNPv43f.js";
|
|
6
|
+
import "../../fr-B3qrCNcK.js";
|
|
7
7
|
import "@mui/material";
|
|
8
8
|
import '../../assets/styles2.css';import '../../assets/styles.css';/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../ResourceCard/style.es.js";
|
|
11
11
|
import "../SearchInput/SearchInput.es.js";
|
|
12
|
-
import { I as c } from "../../InputAdornment-
|
|
13
|
-
import { I as m } from "../../IconButton-
|
|
14
|
-
import { c as r } from "../../createSvgIcon-
|
|
12
|
+
import { I as c } from "../../InputAdornment-XfxRdI9K.js";
|
|
13
|
+
import { I as m } from "../../IconButton-CZvDgqOc.js";
|
|
14
|
+
import { c as r } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
15
15
|
const d = r(/* @__PURE__ */ o("path", {
|
|
16
16
|
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"
|
|
17
17
|
}), "Visibility"), f = r(/* @__PURE__ */ o("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("../EmptyState/EmptyState.cjs.js"),i=require("./helpers.cjs.js"),n=({error:t,statusPrefix:u="Erreur "})=>{if(i.isFetchBaseQueryError(t)){const r="error"in t?t.error:t.data?JSON.stringify(t.data):null;return typeof t.status=="number"&&t.status.toString().startsWith("4")?s.jsx(e,{svgName:"client-error",title:`Erreur client (${t.status})`,description:r??void 0}):typeof t.status=="number"&&t.status.toString().startsWith("5")?s.jsx(e,{svgName:"server-error",title:`Erreur serveur (${t.status})`,description:r??void 0}):s.jsx(e,{svgName:"error",title:`${u}${t.status}`,description:r??void 0})}return s.jsx(e,{svgName:"error",title:i.isErrorWithMessage(t)?t.message:"Une erreur est survenue"})};module.exports=n;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { isFetchBaseQueryError as u, isErrorWithMessage as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "../EmptyState/EmptyState.es.js";
|
|
3
|
+
import { isFetchBaseQueryError as u, isErrorWithMessage as a } from "./helpers.es.js";
|
|
4
|
+
const f = ({
|
|
5
5
|
error: t,
|
|
6
6
|
statusPrefix: i = "Erreur "
|
|
7
7
|
}) => {
|
|
8
8
|
if (u(t)) {
|
|
9
9
|
const r = "error" in t ? t.error : t.data ? JSON.stringify(t.data) : null;
|
|
10
|
-
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */ s(
|
|
11
|
+
e,
|
|
12
12
|
{
|
|
13
13
|
svgName: "client-error",
|
|
14
14
|
title: `Erreur client (${t.status})`,
|
|
15
15
|
description: r ?? void 0
|
|
16
16
|
}
|
|
17
|
-
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */ s(
|
|
18
|
+
e,
|
|
19
19
|
{
|
|
20
20
|
svgName: "server-error",
|
|
21
21
|
title: `Erreur serveur (${t.status})`,
|
|
22
22
|
description: r ?? void 0
|
|
23
23
|
}
|
|
24
|
-
) : /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
) : /* @__PURE__ */ s(
|
|
25
|
+
e,
|
|
26
26
|
{
|
|
27
27
|
svgName: "error",
|
|
28
28
|
title: `${i}${t.status}`,
|
|
@@ -30,14 +30,14 @@ const d = ({
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ s(
|
|
34
|
+
e,
|
|
35
35
|
{
|
|
36
36
|
svgName: "error",
|
|
37
|
-
title:
|
|
37
|
+
title: a(t) ? t.message : "Une erreur est survenue"
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
f as default
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("@mui/material"),m=require("../../createSvgIcon-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("@mui/material"),m=require("../../createSvgIcon-CWNQW6u6.cjs"),o=require("./style.cjs.js"),b=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),j=m.createSvgIcon(r.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),g=({isSelected:l=!1,onSelect:x=()=>{},image:u,title:n,defaultImage:h,propertyItems:i=[],infoIcons:s=[],size:t="md",width:p,onClick:c=()=>{}})=>(s=s.slice(0,3),r.jsx(d.Box,{sx:{width:p&&t==="md"?p:"320px"},children:r.jsxs(o.StyledCard,{selected:l,size:t,onClick:c,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),c==null||c())},role:"button",tabIndex:0,"aria-label":`Resource card for ${n}`,children:[r.jsx(o.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),x()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),x())},className:"selected-icon",selected:l,role:"button",tabIndex:0,"aria-label":l?"Unselect card":"Select card",children:r.jsx(j,{})}),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:u,defaultImage:h,size:t,role:"img","aria-label":`Image for ${n}`})}),r.jsxs(o.ResourceCardBody,{size:t,children:[r.jsx(b,{typographyProps:{fontWeight:"700",fontSize:"1.1rem"},tooltipProps:{placement:"bottom",arrow:!0},children:n}),i.length>0&&i.map((e,a)=>r.jsxs(o.ResourcePropertyItem,{size:t,role:"group","aria-label":`Property ${a}`,children:[e.icon,r.jsx(o.ResourcePropertyText,{isLast:a===i.length-1,size:t,width:p,children:e.text})]},`property-${a}`)),r.jsx(o.PublicIconWrapper,{size:t,children:s.length>0&&s.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=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Box as h, Stack as b, Tooltip as x } from "@mui/material";
|
|
3
|
-
import { c as f } from "../../createSvgIcon-
|
|
3
|
+
import { c as f } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
4
4
|
import { StyledCard as g, SelectedIcon as y, ResourceCardImage as P, ResourceCardBody as R, ResourcePropertyItem as I, ResourcePropertyText as D, PublicIconWrapper as $, ResourceIconItem as v } from "./style.es.js";
|
|
5
5
|
import w from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
6
6
|
const S = f(/* @__PURE__ */ r("path", {
|
|
@@ -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-PRhNsS_3.cjs"),o=require("../../InputBase-BXcShs87.cjs"),s=require("../../InputAdornment-CLIvW7Gk.cjs"),u=require("../../createSvgIcon-CWNQW6u6.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-CmOKr9hq.js";
|
|
3
|
+
import { I as a } from "../../InputBase-DBsV_L3Y.js";
|
|
4
|
+
import { I as p } from "../../InputAdornment-XfxRdI9K.js";
|
|
5
|
+
import { c as n } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
6
6
|
const s = n(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
8
8
|
}), "Search"), i = e(a)(({ theme: t }) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),r=require("../../TextField-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),r=require("../../TextField-BcAZk2Rx.cjs"),n=t=>e.jsx(r.TextField,{...t,variant:t.variant||"standard"});module.exports=n;
|