@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740589431
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-DcDd6WZF.js → Backdrop-BctCVgLy.js} +79 -82
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-mP2Th61z.cjs → Box-DYA49L7w.cjs} +1 -1
- package/dist/{Box-Byz2BwGf.js → Box-DgqaLb7j.js} +8 -8
- package/dist/Button-B7kOjNW1.js +696 -0
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/ButtonBase-D6tfI-8D.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-IZ_QjbpE.js} +334 -334
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/CardContent-F4-KcZH8.js +226 -0
- package/dist/{Checkbox-DYrDbdy1.cjs → Checkbox-DQgPXaym.cjs} +1 -1
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-qUSjau0g.js} +26 -26
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/Chip-OpRIs-sL.js +522 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CQxzJquv.js} +11 -11
- package/dist/{CircularProgress-BByrCLjv.cjs → CircularProgress-cPXhiRlM.cjs} +4 -4
- package/dist/CloseRounded-BMEGLs8y.js +8 -0
- package/dist/CloseRounded-BRXBizmR.cjs +1 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-C6MCYjpp.js} +3113 -3600
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/DefaultPropsProvider-Cqcb4sws.js +303 -0
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/Dialog-CKS7yjT5.js +478 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-BzPaz5G8.js} +13 -13
- package/dist/{DialogContent-Dj_OjLZ6.cjs → DialogContent-DcZz4rBc.cjs} +1 -1
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-D3E_lDHD.js} +30 -30
- package/dist/{DialogTitle-BboPDaoB.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-KO-E6nU8.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{Divider-CcrM3lNn.cjs → Divider-D3hPb7s4.cjs} +1 -1
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-3-CC-ZGw.js} +131 -133
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DKgYCxiY.js} +46 -43
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-CCNUMz2l.js} +132 -64
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/{InputAdornment-Cq0WhPxF.cjs → InputAdornment-CwFEJSXv.cjs} +1 -1
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DL8XIM8r.js} +15 -14
- package/dist/{InputBase-BJy3wwFB.js → InputBase-By7jMrFP.js} +221 -215
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-C_GPIs0q.js} +46 -46
- package/dist/{Menu-C7tKmcAh.js → Menu-BunOW0ot.js} +72 -73
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/{MenuItem-BZ_EVaBq.cjs → MenuItem-Bha8aBMr.cjs} +1 -1
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-Cu3FTLl8.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-DTJd7JJ6.js} +99 -98
- package/dist/Modal-u82Ss4h_.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-BiZq6EF2.js} +8 -8
- package/dist/{Paper-Cr56xkCr.cjs → Paper-EvOTlB_Q.cjs} +2 -2
- package/dist/{Popper-YT5WAMV-.cjs → Popper-BVYscbsI.cjs} +3 -3
- package/dist/{Popper-DFZ_gRev.js → Popper-DjwR55WH.js} +241 -243
- package/dist/{Portal-JEwcozmp.js → Portal-BByeByPq.js} +34 -39
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/Radio-DSRS-tjj.js +568 -0
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/RadioGroup-cPdOWdYD.js +190 -0
- package/dist/{Select-DmssuG5M.js → Select-CZnKFG3o.js} +419 -401
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-hbAJHQhq.js} +29 -29
- package/dist/Switch-B9uT9-d0.js +330 -0
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CDkmnGAP.js} +29 -29
- package/dist/{SwitchBase-DjIY_KWB.cjs → SwitchBase-CnA6TA2P.cjs} +1 -1
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-BYfDlOR9.js} +336 -337
- package/dist/{TextField-Cri5Gxa7.js → TextField-BKfXjPdH.js} +29 -27
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/ToggleButtonGroup-sc2omtRp.js +10473 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-B1NGvrJP.js} +14 -14
- package/dist/{Tooltip-DhDtvULK.cjs → Tooltip-oNmnF7Bc.cjs} +3 -3
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DfRMDngd.cjs → Typography-DPij13XT.cjs} +1 -1
- package/dist/{Typography-DBwTr_ix.js → Typography-SIQ6eleU.js} +9 -9
- package/dist/{capitalize-CkF8kU4n.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/{capitalize-B3GG7Wn6.cjs → capitalize-CEByPz9F.cjs} +1 -1
- 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 +118 -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-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-K2ZAdASa.js} +57 -55
- package/dist/{dividerClasses-CCAY3Pnr.cjs → dividerClasses-Dq1bCO_s.cjs} +1 -1
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-afsB3Yy1.js} +3 -3
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{elementTypeAcceptingRef-DZsNbuLU.cjs → elementTypeAcceptingRef-BjgxF5Bq.cjs} +1 -1
- package/dist/{extendSxProp-apyK-EBz.cjs → extendSxProp-D-oLUmkR.cjs} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-dlShX1xL.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/generateUtilityClasses-DotvgSDH.js +3297 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{index-CwvpOCso.js → index-B1u7G33_.js} +29 -29
- package/dist/{index-ChM1Ett8.cjs → index-CVFzneYe.cjs} +1 -1
- package/dist/{index-BCnPLuqJ.js → index-DTTmpNYg.js} +22 -22
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/{refType-CoaxQOPt.cjs → refType-BkobP3bK.cjs} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-C210ipRY.js} +1 -1
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-CPmhKPdH.js} +7 -7
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CC2AaOjN.cjs +1 -0
- package/dist/useSlot-GZu0V5wJ.js +48 -0
- package/dist/{useSlotProps-B31YQlzb.js → useSlotProps-C9tsxDNg.js} +11 -11
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/{useTheme-Dukx-__T.cjs → useTheme-7RGQRN-h.cjs} +1 -1
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-Cy5kyKJF.cjs → useTheme-CIf2b2wK.cjs} +1 -1
- package/dist/{useTheme-_xyy-wul.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-CXhh35wP.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.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/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/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/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- 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/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/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/createSvgIcon--rEClVU7.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-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-CTIqTlNQ.cjs");exports.DatePicker=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),t=require("../../
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-BRXBizmR.cjs"),c=require("@mui/material"),u=require("../../Dialog-B1wnk5BT.cjs"),a=({children:s,showCloseButton:i=!0,...e})=>{const o=()=>{var l;return(l=e.onClose)==null?void 0:l.call(e,{},"escapeKeyDown")};return n.jsxs(u.Dialog,{...e,children:[i?n.jsx(c.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:24,top:24},children:n.jsx(t.CloseRounded,{})}):null,s]})};module.exports=a;
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { C as s } from "../../CloseRounded-BMEGLs8y.js";
|
|
3
3
|
import { IconButton as t } from "@mui/material";
|
|
4
|
-
import { D as
|
|
5
|
-
const
|
|
6
|
-
d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
|
|
7
|
-
}), "CloseRounded"), g = ({
|
|
4
|
+
import { D as c } from "../../Dialog-CKS7yjT5.js";
|
|
5
|
+
const f = ({
|
|
8
6
|
children: e,
|
|
9
7
|
showCloseButton: a = !0,
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */ c
|
|
12
|
-
a ? /* @__PURE__ */
|
|
8
|
+
...l
|
|
9
|
+
}) => /* @__PURE__ */ i(c, { ...l, children: [
|
|
10
|
+
a ? /* @__PURE__ */ n(
|
|
13
11
|
t,
|
|
14
12
|
{
|
|
15
13
|
"aria-label": "close",
|
|
16
14
|
onClick: () => {
|
|
17
|
-
var
|
|
18
|
-
return (
|
|
15
|
+
var o;
|
|
16
|
+
return (o = l.onClose) == null ? void 0 : o.call(l, {}, "escapeKeyDown");
|
|
19
17
|
},
|
|
20
|
-
sx: { position: "absolute", right:
|
|
21
|
-
children: /* @__PURE__ */
|
|
18
|
+
sx: { position: "absolute", right: 24, top: 24 },
|
|
19
|
+
children: /* @__PURE__ */ n(s, {})
|
|
22
20
|
}
|
|
23
21
|
) : null,
|
|
24
22
|
e
|
|
25
23
|
] });
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
f as default
|
|
28
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon-DJMYlO0S.cjs"),h=require("../../index-CVFzneYe.cjs"),u=require("../../Stack-B82ckLGm.cjs"),r=require("../../Typography-DPij13XT.cjs"),g=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),x=s.createSvgIcon(e.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),j=({defaultLabel:c="Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",dragLabel:i="Déposer les fichiers ici",information:o,width:n,height:t,...p})=>{const{getRootProps:l,getInputProps:a,isDragActive:d}=h.useDropzone(p);return e.jsxs(u.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:n??"18rem",height:t??"auto",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...l(),children:[e.jsx("input",{...a()}),d?e.jsxs(e.Fragment,{children:[e.jsx(g,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(x,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=j;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { u
|
|
4
|
-
import { S as
|
|
5
|
-
import { T as o } from "../../Typography-
|
|
6
|
-
const
|
|
2
|
+
import { c as t } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
|
+
import { u } from "../../index-B1u7G33_.js";
|
|
4
|
+
import { S as g } from "../../Stack-hbAJHQhq.js";
|
|
5
|
+
import { T as o } from "../../Typography-SIQ6eleU.js";
|
|
6
|
+
const f = t(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
8
|
-
}), "FileUpload"),
|
|
8
|
+
}), "FileUpload"), z = t(/* @__PURE__ */ r("path", {
|
|
9
9
|
d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"
|
|
10
|
-
}), "UploadFile"),
|
|
11
|
-
defaultLabel:
|
|
10
|
+
}), "UploadFile"), D = ({
|
|
11
|
+
defaultLabel: s = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
|
|
12
12
|
dragLabel: n = "Déposer les fichiers ici",
|
|
13
13
|
information: i,
|
|
14
|
-
|
|
14
|
+
width: l,
|
|
15
|
+
height: p,
|
|
16
|
+
...d
|
|
15
17
|
}) => {
|
|
16
|
-
const { getRootProps:
|
|
18
|
+
const { getRootProps: a, getInputProps: h, isDragActive: m } = u(d);
|
|
17
19
|
return /* @__PURE__ */ e(
|
|
18
|
-
|
|
20
|
+
g,
|
|
19
21
|
{
|
|
20
22
|
direction: "column",
|
|
21
23
|
justifyContent: "center",
|
|
22
24
|
alignItems: "center",
|
|
23
25
|
spacing: 1,
|
|
24
|
-
width: "18rem",
|
|
26
|
+
width: l ?? "18rem",
|
|
27
|
+
height: p ?? "auto",
|
|
25
28
|
padding: 1,
|
|
26
29
|
border: "1px dashed",
|
|
27
30
|
borderColor: "grey.main",
|
|
@@ -29,15 +32,15 @@ const u = s(/* @__PURE__ */ r("path", {
|
|
|
29
32
|
sx: {
|
|
30
33
|
cursor: "pointer"
|
|
31
34
|
},
|
|
32
|
-
...
|
|
35
|
+
...a(),
|
|
33
36
|
children: [
|
|
34
|
-
/* @__PURE__ */ r("input", { ...
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */ r(
|
|
37
|
+
/* @__PURE__ */ r("input", { ...h() }),
|
|
38
|
+
m ? /* @__PURE__ */ e(c, { children: [
|
|
39
|
+
/* @__PURE__ */ r(f, { color: "primary" }),
|
|
37
40
|
/* @__PURE__ */ r(o, { children: n })
|
|
38
41
|
] }) : /* @__PURE__ */ e(c, { children: [
|
|
39
|
-
/* @__PURE__ */ r(
|
|
40
|
-
/* @__PURE__ */ r(o, { children:
|
|
42
|
+
/* @__PURE__ */ r(z, { color: "primary" }),
|
|
43
|
+
/* @__PURE__ */ r(o, { children: s }),
|
|
41
44
|
i ? /* @__PURE__ */ r(o, { fontSize: "0.875rem", color: "grey", children: i }) : null
|
|
42
45
|
] })
|
|
43
46
|
]
|
|
@@ -45,5 +48,5 @@ const u = s(/* @__PURE__ */ r("path", {
|
|
|
45
48
|
);
|
|
46
49
|
};
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
D as default
|
|
49
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),x=({children:r,tooltipProps:l,typographyProps:c})=>{const[u,f]=t.useState(!1),e=t.useRef(null);return t.useEffect(()=>{const s=()=>{if(e.current){const{scrollWidth:p,clientWidth:a}=e.current;f(p>a)}},i=new ResizeObserver(()=>{s()});return e.current&&i.observe(e.current),s(),()=>{e.current&&i.unobserve(e.current)}},[]),n.jsx(o.Tooltip,{disableHoverListener:!u,title:r,...l,children:n.jsx(o.Typography,{ref:e,noWrap:!0,overflow:"hidden",textOverflow:"ellipsis",...c,children:r})})};module.exports=x;
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),x=({children:r,tooltipProps:l,typographyProps:c})=>{const[u,f]=t.useState(!1),e=t.useRef(null);return t.useEffect(()=>{const s=()=>{if(e.current){const{scrollWidth:p,clientWidth:a}=e.current;f(p>a)}},i=new ResizeObserver(()=>{s()});return e.current&&i.observe(e.current),s(),()=>{e.current&&i.unobserve(e.current)}},[]),n.jsx(o.Tooltip,{disableHoverListener:!u,title:r,...l,children:n.jsx(o.Typography,{ref:e,noWrap:!0,overflow:"hidden",textOverflow:"ellipsis",...c,maxWidth:"100%",children:r})})};module.exports=x;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as p, Typography as d } from "@mui/material";
|
|
3
|
-
import { useState as a, useRef as
|
|
3
|
+
import { useState as a, useRef as h, useEffect as m } from "react";
|
|
4
4
|
const E = ({
|
|
5
5
|
children: t,
|
|
6
6
|
tooltipProps: o,
|
|
7
7
|
typographyProps: l
|
|
8
8
|
}) => {
|
|
9
|
-
const [n, c] = a(!1), e =
|
|
10
|
-
return
|
|
9
|
+
const [n, c] = a(!1), e = h(null);
|
|
10
|
+
return m(() => {
|
|
11
11
|
const r = () => {
|
|
12
12
|
if (e.current) {
|
|
13
13
|
const { scrollWidth: f, clientWidth: u } = e.current;
|
|
@@ -33,6 +33,7 @@ const E = ({
|
|
|
33
33
|
overflow: "hidden",
|
|
34
34
|
textOverflow: "ellipsis",
|
|
35
35
|
...l,
|
|
36
|
+
maxWidth: "100%",
|
|
36
37
|
children: t
|
|
37
38
|
}
|
|
38
39
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-B82ckLGm.cjs"),i=require("../../Typography-DPij13XT.cjs"),u=({svgName:n,title:s,description:e,descriptionProps:o,svgProps:c,titleProps:a,...h})=>{const{Svg:r}=l.useLazySvgImport(n);return r?t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"auto",...h,children:[t.jsx("div",{style:{width:200,maxHeight:200},children:t.jsx(r,{width:"100%",height:"100%",preserveAspectRatio:"xMinYMin slice",...c})}),t.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...a,children:s}),e?t.jsx(i.Typography,{color:"grey",mt:2,...o,children:e}):null]}):null};module.exports=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useLazySvgImport as h } from "../../hooks/lazySvgImport.es.js";
|
|
3
|
-
import { S as p } from "../../Stack-
|
|
4
|
-
import { T as i } from "../../Typography-
|
|
3
|
+
import { S as p } from "../../Stack-hbAJHQhq.js";
|
|
4
|
+
import { T as i } from "../../Typography-SIQ6eleU.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
svgName: o,
|
|
7
7
|
title: n,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("../../createSvgIcon-DJMYlO0S.cjs"),s=e.createSvgIcon(c.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"}),"CalendarViewMonthRounded"),n=e.createSvgIcon(c.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),h=e.createSvgIcon(c.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),a=e.createSvgIcon(c.jsx("path",{d:"M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"}),"MovieOutlined"),o=e.createSvgIcon(c.jsx("path",{d:"M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"}),"MusicNoteRounded"),r=e.createSvgIcon(c.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"}),"OndemandVideoRounded"),d=e.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"}),"PhotoOutlined"),v=e.createSvgIcon(c.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"}),"PictureAsPdfOutlined"),i=({extension:t})=>{switch(t.toUpperCase()){case"MP3":case"MIDI":case"WAV":return c.jsx(o,{});case"JPG":case"JPEG":case"PNG":case"SVG":return c.jsx(d,{});case"MP4":case"MOV":case"AVI":return c.jsx(a,{});case"CSV":case"ODS":case"XLS":case"XLSX":return c.jsx(s,{});case"PDF":return c.jsx(v,{});case"ODT":case"DOC":case"DOCX":case"TXT":return c.jsx(n,{});case"ODP":case"PPT":case"PPTX":return c.jsx(r,{});default:return c.jsx(h,{})}};exports.FileIcon=i;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
|
+
const t = e(/* @__PURE__ */ c("path", {
|
|
4
|
+
d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
|
|
5
|
+
}), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
|
|
6
|
+
d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
|
|
7
|
+
}), "DescriptionOutlined"), s = e(/* @__PURE__ */ c("path", {
|
|
8
|
+
d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"
|
|
9
|
+
}), "InsertDriveFileOutlined"), d = e(/* @__PURE__ */ c("path", {
|
|
10
|
+
d: "M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"
|
|
11
|
+
}), "MovieOutlined"), a = e(/* @__PURE__ */ c("path", {
|
|
12
|
+
d: "M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"
|
|
13
|
+
}), "MusicNoteRounded"), o = e(/* @__PURE__ */ c("path", {
|
|
14
|
+
d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"
|
|
15
|
+
}), "OndemandVideoRounded"), r = e(/* @__PURE__ */ c("path", {
|
|
16
|
+
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
|
|
17
|
+
}), "PhotoOutlined"), i = e(/* @__PURE__ */ c("path", {
|
|
18
|
+
d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"
|
|
19
|
+
}), "PictureAsPdfOutlined"), V = ({ extension: h }) => {
|
|
20
|
+
switch (h.toUpperCase()) {
|
|
21
|
+
case "MP3":
|
|
22
|
+
case "MIDI":
|
|
23
|
+
case "WAV":
|
|
24
|
+
return /* @__PURE__ */ c(a, {});
|
|
25
|
+
case "JPG":
|
|
26
|
+
case "JPEG":
|
|
27
|
+
case "PNG":
|
|
28
|
+
case "SVG":
|
|
29
|
+
return /* @__PURE__ */ c(r, {});
|
|
30
|
+
case "MP4":
|
|
31
|
+
case "MOV":
|
|
32
|
+
case "AVI":
|
|
33
|
+
return /* @__PURE__ */ c(d, {});
|
|
34
|
+
case "CSV":
|
|
35
|
+
case "ODS":
|
|
36
|
+
case "XLS":
|
|
37
|
+
case "XLSX":
|
|
38
|
+
return /* @__PURE__ */ c(t, {});
|
|
39
|
+
case "PDF":
|
|
40
|
+
return /* @__PURE__ */ c(i, {});
|
|
41
|
+
case "ODT":
|
|
42
|
+
case "DOC":
|
|
43
|
+
case "DOCX":
|
|
44
|
+
case "TXT":
|
|
45
|
+
return /* @__PURE__ */ c(n, {});
|
|
46
|
+
case "ODP":
|
|
47
|
+
case "PPT":
|
|
48
|
+
case "PPTX":
|
|
49
|
+
return /* @__PURE__ */ c(o, {});
|
|
50
|
+
default:
|
|
51
|
+
return /* @__PURE__ */ c(s, {});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
V as FileIcon
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@mui/material"),t=()=>e.jsx(r.Stack,{height:"100%",children:e.jsx(r.Stack,{height:"4px",width:"4px",borderRadius:"50%",sx:{backgroundColor:"divider"}})});exports.FileInfosSeparator=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FileInfosSeparator: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as o } from "@mui/material";
|
|
3
|
+
const e = () => /* @__PURE__ */ r(o, { height: "100%", children: /* @__PURE__ */ r(
|
|
4
|
+
o,
|
|
5
|
+
{
|
|
6
|
+
height: "4px",
|
|
7
|
+
width: "4px",
|
|
8
|
+
borderRadius: "50%",
|
|
9
|
+
sx: { backgroundColor: "divider" }
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
export {
|
|
13
|
+
e as FileInfosSeparator
|
|
14
|
+
};
|
|
@@ -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-B82ckLGm.cjs"),d=require("../../Typography-DPij13XT.cjs"),j=require("../../createSvgIcon-DJMYlO0S.cjs"),I=require("../../CloseRounded-BRXBizmR.cjs"),b=j.createSvgIcon(e.jsx("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded"),S=n.styled(n.ListItemButton)(({isClickable:t})=>({"&:hover":{boxShadow:t?"0 4px 8px rgba(192, 192, 192, 0.3)":"none",backgroundColor:"transparent"},opacity:"1 !important",borderRadius:"4px",cursor:t?"pointer":"default",display:"flex",flexDirection:"row",alignItems:"center",padding:"0.5rem 1rem",width:"100%",justifyContent:"space-between",boxSizing:"border-box",paddingRight:"115px !important",userSelect:"text"})),q=({file:t,onDelete:a,onClick:r,onDownload:c})=>{if(!t.name)return null;const o=x.displaySize(t.size),i=x.displayExtension(t.name),u=()=>r==null?void 0:r(t),h=l=>{l.stopPropagation(),a==null||a(t)},m=l=>{l.stopPropagation(),c==null||c(t)};return e.jsx(n.ListItem,{secondaryAction:e.jsxs(n.Box,{alignItems:"center",display:"flex",gap:"1rem",children:[t.isLoading?e.jsx(n.Box,{marginRight:1,children:e.jsx(n.CircularProgress,{size:24,color:"primary"})}):t.isDownloadable?e.jsx(n.IconButton,{onClick:m,children:e.jsx(b,{color:"primary"})}):null,t.isDeletable&&e.jsx(n.IconButton,{onClick:h,id:"coucou",children:e.jsx(I.CloseRounded,{})})]}),disablePadding:!0,children:e.jsx(S,{onClick:u,isClickable:!!r,disableRipple:!r,children:e.jsxs(s.Stack,{direction:"row",alignItems:"center",spacing:2,minWidth:"0",children:[e.jsx(s.Stack,{borderRadius:"4px",minWidth:"40px",maxWidth:"40px",minHeight:"40px",maxHeight:"40px",display:"flex",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"grey.light"},children:e.jsx(n.Box,{color:"text.secondary",alignItems:"center",justifyContent:"center",display:"flex",children:e.jsx(y.FileIcon,{extension:i??""})})}),e.jsxs(s.Stack,{direction:"column",spacing:0,alignItems:"flex-start",minWidth:"0",children:[e.jsx(g,{typographyProps:{variant:"body1"},children:t.name}),e.jsxs(s.Stack,{display:"flex",flexDirection:"row",alignItems:"center",gap:1,children:[o&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:o}),o&&i&&e.jsx(p.FileInfosSeparator,{}),i&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:i}),t.ownerName&&(o||i)&&e.jsx(p.FileInfosSeparator,{}),t.ownerName&&e.jsx(d.Typography,{variant:"caption",color:"text.secondary",children:t.ownerName})]})]})]})})},crypto.randomUUID())};module.exports=q;
|
|
@@ -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,122 @@
|
|
|
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 R, displayExtension as v } from "./utils.es.js";
|
|
7
|
+
import { S as a } from "../../Stack-hbAJHQhq.js";
|
|
8
|
+
import { T as p } from "../../Typography-SIQ6eleU.js";
|
|
9
|
+
import { c as C } from "../../createSvgIcon-K2ZAdASa.js";
|
|
10
|
+
import { C as j } from "../../CloseRounded-BMEGLs8y.js";
|
|
11
|
+
const z = C(/* @__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
|
+
userSelect: "text"
|
|
31
|
+
})
|
|
32
|
+
), M = ({
|
|
33
|
+
file: t,
|
|
34
|
+
onDelete: c,
|
|
35
|
+
onClick: e,
|
|
36
|
+
onDownload: s
|
|
15
37
|
}) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
if (!t.name) return null;
|
|
39
|
+
const o = R(t.size), i = v(t.name), x = () => e == null ? void 0 : e(t), g = (d) => {
|
|
40
|
+
d.stopPropagation(), c == null || c(t);
|
|
41
|
+
}, y = (d) => {
|
|
42
|
+
d.stopPropagation(), s == null || s(t);
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ r(
|
|
45
|
+
I,
|
|
46
|
+
{
|
|
47
|
+
secondaryAction: /* @__PURE__ */ n(l, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
48
|
+
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,
|
|
49
|
+
t.isDeletable && /* @__PURE__ */ r(m, { onClick: g, id: "coucou", children: /* @__PURE__ */ r(j, {}) })
|
|
50
|
+
] }),
|
|
51
|
+
disablePadding: !0,
|
|
52
|
+
children: /* @__PURE__ */ r(
|
|
53
|
+
H,
|
|
54
|
+
{
|
|
55
|
+
onClick: x,
|
|
56
|
+
isClickable: !!e,
|
|
57
|
+
disableRipple: !e,
|
|
58
|
+
children: /* @__PURE__ */ n(a, { direction: "row", alignItems: "center", spacing: 2, minWidth: "0", children: [
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
|
+
a,
|
|
61
|
+
{
|
|
62
|
+
borderRadius: "4px",
|
|
63
|
+
minWidth: "40px",
|
|
64
|
+
maxWidth: "40px",
|
|
65
|
+
minHeight: "40px",
|
|
66
|
+
maxHeight: "40px",
|
|
67
|
+
display: "flex",
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
justifyContent: "center",
|
|
70
|
+
sx: {
|
|
71
|
+
backgroundColor: "grey.light"
|
|
72
|
+
},
|
|
73
|
+
children: /* @__PURE__ */ r(
|
|
74
|
+
l,
|
|
75
|
+
{
|
|
76
|
+
color: "text.secondary",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
justifyContent: "center",
|
|
79
|
+
display: "flex",
|
|
80
|
+
children: /* @__PURE__ */ r(S, { extension: i ?? "" })
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ n(
|
|
86
|
+
a,
|
|
87
|
+
{
|
|
88
|
+
direction: "column",
|
|
89
|
+
spacing: 0,
|
|
90
|
+
alignItems: "flex-start",
|
|
91
|
+
minWidth: "0",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ r(w, { typographyProps: { variant: "body1" }, children: t.name }),
|
|
94
|
+
/* @__PURE__ */ n(
|
|
95
|
+
a,
|
|
96
|
+
{
|
|
97
|
+
display: "flex",
|
|
98
|
+
flexDirection: "row",
|
|
99
|
+
alignItems: "center",
|
|
100
|
+
gap: 1,
|
|
101
|
+
children: [
|
|
102
|
+
o && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: o }),
|
|
103
|
+
o && i && /* @__PURE__ */ r(h, {}),
|
|
104
|
+
i && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: i }),
|
|
105
|
+
t.ownerName && (o || i) && /* @__PURE__ */ r(h, {}),
|
|
106
|
+
t.ownerName && /* @__PURE__ */ r(p, { variant: "caption", color: "text.secondary", children: t.ownerName })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] })
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
},
|
|
117
|
+
crypto.randomUUID()
|
|
118
|
+
);
|
|
25
119
|
};
|
|
26
120
|
export {
|
|
27
|
-
|
|
121
|
+
M as default
|
|
28
122
|
};
|
|
@@ -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-B82ckLGm.cjs"),j=require("../../Typography-DPij13XT.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-hbAJHQhq.js";
|
|
3
|
+
import { T as b } from "../../Typography-SIQ6eleU.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|