@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736340751
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-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +22 -21
- 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 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- 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 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- 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.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- 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/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.d.ts +7 -3
- package/dist/components/index.es.js +228 -220
- 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 +8 -8
- 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.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- 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/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- 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 +6 -6
- 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 +9 -9
- 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--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.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-7-4p3Vtj.cjs");exports.DatePicker=e.DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../createSvgIcon--rEClVU7.cjs"),i=require("@mui/material"),a=require("../../Dialog-yOrNcHbG.cjs"),u=t.createSvgIcon(n.jsx("path",{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"}),"CloseRounded"),r=({children:s,showCloseButton:l=!0,...e})=>{const o=()=>{var c;return(c=e.onClose)==null?void 0:c.call(e,{},"escapeKeyDown")};return n.jsxs(a.Dialog,{...e,children:[l?n.jsx(i.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:16,top:16},children:n.jsx(u,{})}):null,s]})};module.exports=r;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../createSvgIcon-C8nGcfF4.js";
|
|
3
|
+
import { IconButton as t } from "@mui/material";
|
|
4
|
+
import { D as i } from "../../Dialog-D_lS4J_M.js";
|
|
5
|
+
const d = s(/* @__PURE__ */ l("path", {
|
|
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 = ({
|
|
8
|
+
children: e,
|
|
9
|
+
showCloseButton: a = !0,
|
|
10
|
+
...o
|
|
11
|
+
}) => /* @__PURE__ */ c(i, { ...o, children: [
|
|
12
|
+
a ? /* @__PURE__ */ l(
|
|
13
|
+
t,
|
|
14
|
+
{
|
|
15
|
+
"aria-label": "close",
|
|
16
|
+
onClick: () => {
|
|
17
|
+
var n;
|
|
18
|
+
return (n = o.onClose) == null ? void 0 : n.call(o, {}, "escapeKeyDown");
|
|
19
|
+
},
|
|
20
|
+
sx: { position: "absolute", right: 16, top: 16 },
|
|
21
|
+
children: /* @__PURE__ */ l(d, {})
|
|
22
|
+
}
|
|
23
|
+
) : null,
|
|
24
|
+
e
|
|
25
|
+
] });
|
|
26
|
+
export {
|
|
27
|
+
g as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Dialog.cjs.js");exports.Dialog=e;
|
|
@@ -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--rEClVU7.cjs"),d=require("../../index-ChM1Ett8.cjs"),a=require("../../Stack-Yq6rb7iK.cjs"),r=require("../../Typography-DfRMDngd.cjs"),h=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),u=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"),g=({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,...n})=>{const{getRootProps:t,getInputProps:p,isDragActive:l}=d.useDropzone(n);return e.jsxs(a.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:"18rem",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...t(),children:[e.jsx("input",{...p()}),l?e.jsxs(e.Fragment,{children:[e.jsx(h,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../createSvgIcon-
|
|
3
|
-
import { u as h } from "../../index-
|
|
4
|
-
import { S as m } from "../../Stack-
|
|
5
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { c as s } from "../../createSvgIcon-C8nGcfF4.js";
|
|
3
|
+
import { u as h } from "../../index-CwvpOCso.js";
|
|
4
|
+
import { S as m } from "../../Stack-BzTJdRGj.js";
|
|
5
|
+
import { T as o } from "../../Typography-DBwTr_ix.js";
|
|
6
6
|
const u = s(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
8
8
|
}), "FileUpload"), g = s(/* @__PURE__ */ r("path", {
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TooltipProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
export type EllipsisWithTooltipProps = {
|
|
4
|
+
tooltipProps?: Omit<TooltipProps, "children" | "title">;
|
|
5
|
+
typographyProps?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const EllipsisWithTooltip: FC<EllipsisWithTooltipProps>;
|
|
9
|
+
export default EllipsisWithTooltip;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as p, Typography as d } from "@mui/material";
|
|
3
|
+
import { useState as a, useRef as v, useEffect as h } from "react";
|
|
4
|
+
const E = ({
|
|
5
|
+
children: t,
|
|
6
|
+
tooltipProps: o,
|
|
7
|
+
typographyProps: l
|
|
8
|
+
}) => {
|
|
9
|
+
const [n, c] = a(!1), e = v(null);
|
|
10
|
+
return h(() => {
|
|
11
|
+
const r = () => {
|
|
12
|
+
if (e.current) {
|
|
13
|
+
const { scrollWidth: f, clientWidth: u } = e.current;
|
|
14
|
+
c(f > u);
|
|
15
|
+
}
|
|
16
|
+
}, s = new ResizeObserver(() => {
|
|
17
|
+
r();
|
|
18
|
+
});
|
|
19
|
+
return e.current && s.observe(e.current), r(), () => {
|
|
20
|
+
e.current && s.unobserve(e.current);
|
|
21
|
+
};
|
|
22
|
+
}, []), /* @__PURE__ */ i(
|
|
23
|
+
p,
|
|
24
|
+
{
|
|
25
|
+
disableHoverListener: !n,
|
|
26
|
+
title: t,
|
|
27
|
+
...o,
|
|
28
|
+
children: /* @__PURE__ */ i(
|
|
29
|
+
d,
|
|
30
|
+
{
|
|
31
|
+
ref: e,
|
|
32
|
+
noWrap: !0,
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
textOverflow: "ellipsis",
|
|
35
|
+
...l,
|
|
36
|
+
children: t
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as default
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./EllipsisWithTooltip.cjs.js");exports.EllipsisWithTooltip=i;
|
|
@@ -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-Yq6rb7iK.cjs"),i=require("../../Typography-DfRMDngd.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-BzTJdRGj.js";
|
|
4
|
+
import { T as i } from "../../Typography-DBwTr_ix.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
svgName: o,
|
|
7
7
|
title: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-mP2Th61z.cjs"),n=({files:r=[]})=>i.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:r.map((s,e)=>i.jsx(t,{file:s,uploading:e%2===0},e))});module.exports=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import m from "./FileListItem.es.js";
|
|
4
|
-
import { B as e } from "../../Box-
|
|
4
|
+
import { B as e } from "../../Box-Byz2BwGf.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
files: i = []
|
|
7
7
|
}) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),n=require("../../Delete-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),n=require("../../Delete-D1EiKoL5.cjs"),a=require("../../createSvgIcon--rEClVU7.cjs"),u=require("../../Stack-Yq6rb7iK.cjs"),x=require("../../Box-mP2Th61z.cjs"),t=require("../../Typography-DfRMDngd.cjs"),l=require("../../IconButton-CJfzspZK.cjs"),d=require("../../CircularProgress-BByrCLjv.cjs"),h=a.createSvgIcon(r.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),j=({file:e,uploading:c,onDelete:s})=>{const i=`${e.size} octets`,o=()=>s==null?void 0:s(e);return r.jsxs(u.Stack,{direction:"row",alignItems:"center",spacing:2,children:[r.jsx(h,{color:"primary"}),r.jsxs(x.Box,{sx:{width:"100%"},children:[r.jsx(t.Typography,{children:e.name}),r.jsx(t.Typography,{fontSize:"0.875rem",color:"grey",children:i})]}),r.jsx(l.IconButton,{onClick:o,disabled:c,children:c?r.jsx(d.CircularProgress,{size:24}):r.jsx(n.DeleteIcon,{})})]})};module.exports=j;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { D as n } from "../../Delete-
|
|
3
|
-
import { c as a } from "../../createSvgIcon-
|
|
4
|
-
import { S as p } from "../../Stack-
|
|
5
|
-
import { B as d } from "../../Box-
|
|
6
|
-
import { T as s } from "../../Typography-
|
|
7
|
-
import { I as l } from "../../IconButton-
|
|
8
|
-
import { C as I } from "../../CircularProgress-
|
|
2
|
+
import { D as n } from "../../Delete-BkZN7Xu5.js";
|
|
3
|
+
import { c as a } from "../../createSvgIcon-C8nGcfF4.js";
|
|
4
|
+
import { S as p } from "../../Stack-BzTJdRGj.js";
|
|
5
|
+
import { B as d } from "../../Box-Byz2BwGf.js";
|
|
6
|
+
import { T as s } from "../../Typography-DBwTr_ix.js";
|
|
7
|
+
import { I as l } from "../../IconButton-CekuyD4r.js";
|
|
8
|
+
import { C as I } from "../../CircularProgress-Kwlef5fX.js";
|
|
9
9
|
const f = a(/* @__PURE__ */ r("path", {
|
|
10
10
|
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
11
11
|
}), "InsertDriveFile"), B = ({
|
|
@@ -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-Yq6rb7iK.cjs"),j=require("../../Typography-DfRMDngd.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-BzTJdRGj.js";
|
|
3
|
+
import { T as b } from "../../Typography-DBwTr_ix.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("../../createSvgIcon
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("../../createSvgIcon--rEClVU7.cjs"),S=require("../../Delete-D1EiKoL5.cjs"),o=require("@mui/material"),v=require("react"),C=require("../../index-ChM1Ett8.cjs"),F=require("../../Stack-Yq6rb7iK.cjs"),i=require("../../Typography-DfRMDngd.cjs"),d=p.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"),w=p.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"),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"]}),q=({defaultLabel:g=e.jsx(D,{}),dragLabel:h=e.jsx(A,{}),information:n,onFileChange:s=t=>{},width:x="160px",height:m="160px",initialFile:u=null,...j})=>{const[t,c]=v.useState(u),y=r=>{const a=r[0]||null;c(a),s(a)},f=r=>{r.stopPropagation(),c(null),s(null)},b=r=>{r.stopPropagation(),l()},{open:l,getRootProps:k,getInputProps:z,isDragActive:I}=C.useDropzone({...j,maxFiles:1,onDropAccepted:y,accept:{"image/*":[".png",".jpeg",".jpg",".gif"]},noClick:!0});return e.jsxs(F.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:l}),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(w,{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(S.DeleteIcon,{fontSize:"small"})})]}),e.jsx("img",{src:typeof t=="string"?t:URL.createObjectURL(t),alt:typeof t=="string"?t:t.name,style:{width:"auto",height:"100%",maxWidth:"100%",objectFit:"cover",borderRadius:"5px"}})]}):e.jsx(e.Fragment,{children:I?e.jsxs(e.Fragment,{children:[e.jsx(d,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),h,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(d,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),g,n&&e.jsx(i.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]})})]})};module.exports=q;
|
|
@@ -7,6 +7,7 @@ export type ImagePickerProps = {
|
|
|
7
7
|
onFileChange?: (file: File | null) => void;
|
|
8
8
|
width?: string;
|
|
9
9
|
height?: string;
|
|
10
|
+
initialFile?: string | File;
|
|
10
11
|
} & ReactDropzoneProps;
|
|
11
12
|
declare const ImagePicker: React.FunctionComponent<ImagePickerProps>;
|
|
12
13
|
export default ImagePicker;
|
|
@@ -1,51 +1,52 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as h } from "../../createSvgIcon-
|
|
3
|
-
import { D as
|
|
2
|
+
import { c as h } from "../../createSvgIcon-C8nGcfF4.js";
|
|
3
|
+
import { D as w } from "../../Delete-BkZN7Xu5.js";
|
|
4
4
|
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-
|
|
5
|
+
import { useState as D } from "react";
|
|
6
|
+
import { u as F } from "../../index-CwvpOCso.js";
|
|
7
|
+
import { S as A } from "../../Stack-BzTJdRGj.js";
|
|
8
|
+
import { T as l } from "../../Typography-DBwTr_ix.js";
|
|
9
9
|
const m = h(/* @__PURE__ */ e("path", {
|
|
10
10
|
d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
|
|
11
|
-
}), "AddPhotoAlternate"),
|
|
11
|
+
}), "AddPhotoAlternate"), j = h(/* @__PURE__ */ e("path", {
|
|
12
12
|
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"),
|
|
13
|
+
}), "Create"), P = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
14
14
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
15
15
|
" ou ",
|
|
16
16
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
17
17
|
" pour choisir une image"
|
|
18
|
-
] }),
|
|
18
|
+
] }), R = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
19
19
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
20
20
|
" une image"
|
|
21
|
-
] }),
|
|
22
|
-
defaultLabel: g = /* @__PURE__ */ e(
|
|
23
|
-
dragLabel: u = /* @__PURE__ */ e(
|
|
21
|
+
] }), $ = ({
|
|
22
|
+
defaultLabel: g = /* @__PURE__ */ e(P, {}),
|
|
23
|
+
dragLabel: u = /* @__PURE__ */ e(R, {}),
|
|
24
24
|
information: i,
|
|
25
25
|
onFileChange: a = (t) => {
|
|
26
26
|
},
|
|
27
27
|
width: x = "160px",
|
|
28
28
|
height: f = "160px",
|
|
29
|
+
initialFile: y = null,
|
|
29
30
|
...b
|
|
30
31
|
}) => {
|
|
31
|
-
const [t, s] =
|
|
32
|
+
const [t, s] = D(y), k = (r) => {
|
|
32
33
|
const p = r[0] || null;
|
|
33
34
|
s(p), a(p);
|
|
34
|
-
}, k = (r) => {
|
|
35
|
-
r.stopPropagation(), s(null), a(null);
|
|
36
35
|
}, z = (r) => {
|
|
36
|
+
r.stopPropagation(), s(null), a(null);
|
|
37
|
+
}, C = (r) => {
|
|
37
38
|
r.stopPropagation(), d();
|
|
38
|
-
}, { open: d, getRootProps:
|
|
39
|
+
}, { open: d, getRootProps: I, getInputProps: S, isDragActive: v } = F({
|
|
39
40
|
...b,
|
|
40
41
|
maxFiles: 1,
|
|
41
|
-
onDropAccepted:
|
|
42
|
+
onDropAccepted: k,
|
|
42
43
|
accept: {
|
|
43
44
|
"image/*": [".png", ".jpeg", ".jpg", ".gif"]
|
|
44
45
|
},
|
|
45
46
|
noClick: !0
|
|
46
47
|
});
|
|
47
48
|
return /* @__PURE__ */ o(
|
|
48
|
-
|
|
49
|
+
A,
|
|
49
50
|
{
|
|
50
51
|
direction: "column",
|
|
51
52
|
justifyContent: "center",
|
|
@@ -62,11 +63,11 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
62
63
|
border: `${!t && "1px dashed"}`,
|
|
63
64
|
borderColor: (r) => !t && r.palette.grey.main
|
|
64
65
|
},
|
|
65
|
-
...
|
|
66
|
+
...I({
|
|
66
67
|
onClick: d
|
|
67
68
|
}),
|
|
68
69
|
children: [
|
|
69
|
-
/* @__PURE__ */ e("input", { ...
|
|
70
|
+
/* @__PURE__ */ e("input", { ...S() }),
|
|
70
71
|
t ? /* @__PURE__ */ o(c, { children: [
|
|
71
72
|
/* @__PURE__ */ o(
|
|
72
73
|
n,
|
|
@@ -82,7 +83,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
82
83
|
/* @__PURE__ */ e(
|
|
83
84
|
n,
|
|
84
85
|
{
|
|
85
|
-
onClick:
|
|
86
|
+
onClick: C,
|
|
86
87
|
sx: {
|
|
87
88
|
backgroundColor: "common.white",
|
|
88
89
|
display: "flex",
|
|
@@ -100,13 +101,13 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
},
|
|
103
|
-
children: /* @__PURE__ */ e(
|
|
104
|
+
children: /* @__PURE__ */ e(j, { fontSize: "small" })
|
|
104
105
|
}
|
|
105
106
|
),
|
|
106
107
|
/* @__PURE__ */ e(
|
|
107
108
|
n,
|
|
108
109
|
{
|
|
109
|
-
onClick:
|
|
110
|
+
onClick: z,
|
|
110
111
|
sx: {
|
|
111
112
|
backgroundColor: "common.white",
|
|
112
113
|
display: "flex",
|
|
@@ -124,7 +125,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
|
-
children: /* @__PURE__ */ e(
|
|
128
|
+
children: /* @__PURE__ */ e(w, { fontSize: "small" })
|
|
128
129
|
}
|
|
129
130
|
)
|
|
130
131
|
]
|
|
@@ -133,8 +134,8 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
133
134
|
/* @__PURE__ */ e(
|
|
134
135
|
"img",
|
|
135
136
|
{
|
|
136
|
-
src: URL.createObjectURL(t),
|
|
137
|
-
alt: t.name,
|
|
137
|
+
src: typeof t == "string" ? t : URL.createObjectURL(t),
|
|
138
|
+
alt: typeof t == "string" ? t : t.name,
|
|
138
139
|
style: {
|
|
139
140
|
width: "auto",
|
|
140
141
|
height: "100%",
|
|
@@ -144,7 +145,7 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
)
|
|
147
|
-
] }) : /* @__PURE__ */ e(c, { children:
|
|
148
|
+
] }) : /* @__PURE__ */ e(c, { children: v ? /* @__PURE__ */ o(c, { children: [
|
|
148
149
|
/* @__PURE__ */ e(m, { color: "primary", style: {
|
|
149
150
|
width: "2.5rem",
|
|
150
151
|
height: "2.5rem"
|
|
@@ -170,5 +171,5 @@ const m = h(/* @__PURE__ */ e("path", {
|
|
|
170
171
|
);
|
|
171
172
|
};
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
+
$ as default
|
|
174
175
|
};
|
|
@@ -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-mP2Th61z.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-Byz2BwGf.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-CvufxHMY.cjs"),c=require("../../Box-mP2Th61z.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-DcDd6WZF.js";
|
|
4
|
+
import { B as l } from "../../Box-Byz2BwGf.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("../Button/Button.cjs.js");require("../../fr-
|
|
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/Button.cjs.js");require("../../fr-JE-1WKP6.cjs");require("@mui/material");;/* empty css */;/* empty css */require("../SearchInput/SearchInput.cjs.js");const a=require("../../InputAdornment-Cq0WhPxF.cjs"),d=require("../../IconButton-CJfzspZK.cjs"),r=require("../../createSvgIcon--rEClVU7.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,o]=u.useState(!1),i=()=>o(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:i,onMouseDown:c,edge:"end",children:n?e.jsx(q,{}):e.jsx(p,{})})})}})};module.exports=w;
|
|
@@ -3,14 +3,14 @@ import { useState as a } from "react";
|
|
|
3
3
|
import c from "../TextInput/TextInput.es.js";
|
|
4
4
|
import "../Alert/Alert.es.js";
|
|
5
5
|
import "../Button/Button.es.js";
|
|
6
|
-
import "../../fr-
|
|
6
|
+
import "../../fr-Bjufn3RW.js";
|
|
7
|
+
import "@mui/material";
|
|
7
8
|
import '../../assets/styles2.css';import '../../assets/styles.css';/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../SearchInput/SearchInput.es.js";
|
|
10
|
-
import "
|
|
11
|
-
import { I as
|
|
12
|
-
import {
|
|
13
|
-
import { c as r } from "../../createSvgIcon-CVd3Lo1D.js";
|
|
11
|
+
import { I as p } from "../../InputAdornment-iU5YnveW.js";
|
|
12
|
+
import { I as m } from "../../IconButton-CekuyD4r.js";
|
|
13
|
+
import { c as r } from "../../createSvgIcon-C8nGcfF4.js";
|
|
14
14
|
const d = r(/* @__PURE__ */ o("path", {
|
|
15
15
|
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"
|
|
16
16
|
}), "Visibility"), f = r(/* @__PURE__ */ o("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("../EmptyState/EmptyState.cjs.js"),n=require("./helpers.cjs.js"),u=({error:t,statusPrefix:i="Erreur "})=>{if(n.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")?e.jsx(s,{svgName:"client-error",title:`Erreur client (${t.status})`,description:r??void 0}):typeof t.status=="number"&&t.status.toString().startsWith("5")?e.jsx(s,{svgName:"server-error",title:`Erreur serveur (${t.status})`,description:r??void 0}):e.jsx(s,{svgName:"error",title:`${i}${t.status}`,description:r??void 0})}return e.jsx(s,{svgName:"error",title:n.isErrorWithMessage(t)?t.message:"Une erreur est survenue"})};module.exports=u;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { isFetchBaseQueryError as u, isErrorWithMessage as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import s from "../EmptyState/EmptyState.es.js";
|
|
3
|
+
import { isFetchBaseQueryError as u, isErrorWithMessage as n } from "./helpers.es.js";
|
|
4
|
+
const d = ({
|
|
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__ */ e(
|
|
11
|
+
s,
|
|
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__ */ e(
|
|
18
|
+
s,
|
|
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__ */ e(
|
|
25
|
+
s,
|
|
26
26
|
{
|
|
27
27
|
svgName: "error",
|
|
28
28
|
title: `${i}${t.status}`,
|
|
@@ -30,14 +30,14 @@ const f = ({
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
s,
|
|
35
35
|
{
|
|
36
36
|
svgName: "error",
|
|
37
|
-
title:
|
|
37
|
+
title: n(t) ? t.message : "Une erreur est survenue"
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
d as default
|
|
43
43
|
};
|
|
@@ -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-3KMGupjb.cjs"),o=require("../../InputBase-s1fk8TB4.cjs"),s=require("../../InputAdornment-Cq0WhPxF.cjs"),u=require("../../createSvgIcon--rEClVU7.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-CvJPQJmL.js";
|
|
3
|
+
import { I as a } from "../../InputBase-BJy3wwFB.js";
|
|
4
|
+
import { I as p } from "../../InputAdornment-iU5YnveW.js";
|
|
5
|
+
import { c as n } from "../../createSvgIcon-C8nGcfF4.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-BI9KVqjC.cjs"),n=t=>e.jsx(r.TextField,{...t,variant:t.variant||"standard"});module.exports=n;
|