@cgi-learning-hub/ui 1.3.5-dev.1736340751 → 1.3.5-dev.1736345385
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-B78NPr0F.js} +70 -73
- package/dist/Backdrop-CGpJR5Hl.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-BzbXlIpa.js} +3 -3
- package/dist/Box-DjTF7J_q.cjs +1 -0
- package/dist/{Button-BnNYfQ3E.js → Button-By0vfP8J.js} +119 -153
- package/dist/Button-D3qGoavT.cjs +1 -0
- package/dist/ButtonBase-CL4z-tXi.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-ZtXnS9gg.js} +277 -277
- package/dist/{Card-AJG0TUOx.js → Card-CQBb4UMy.js} +3 -3
- package/dist/Card-DVvNw_iY.cjs +1 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-CWN2YKNQ.js} +18 -19
- package/dist/Checkbox-V6OQIwlV.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-B8D0BpDv.js} +13 -14
- package/dist/CircularProgress-Cgy3S9U3.cjs +28 -0
- package/dist/DatePicker-BPbdIoL9.cjs +14 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-D5Rf5NAr.js} +2256 -2245
- package/dist/{DefaultPropsProvider-CvJPQJmL.js → DefaultPropsProvider-DEufUd_C.js} +21 -20
- package/dist/{DefaultPropsProvider-3KMGupjb.cjs → DefaultPropsProvider-DS3RzjuS.cjs} +3 -3
- package/dist/{Delete-D1EiKoL5.cjs → Delete-DV3Q-OXQ.cjs} +1 -1
- package/dist/{Delete-BkZN7Xu5.js → Delete-DwpFA0q9.js} +1 -1
- package/dist/Dialog-BydVKebY.cjs +1 -0
- package/dist/{Dialog-D_lS4J_M.js → Dialog-CEC-r5SR.js} +15 -16
- package/dist/DialogContent-BK2ayZAZ.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-CmsuCpdK.js} +3 -3
- package/dist/DialogTitle-BOT7MPXD.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-CAsdh55l.js} +5 -5
- package/dist/{Divider-KO-E6nU8.js → Divider-D8G4fS_W.js} +4 -4
- package/dist/Divider-tJEWvRjW.cjs +1 -0
- package/dist/{FormControlLabel-BmrKQtQA.js → FormControlLabel-0Z4FgiQi.js} +12 -13
- package/dist/FormControlLabel-B3aVcND9.cjs +1 -0
- package/dist/{FormGroup-CbczEc6e.js → FormGroup-B6BQaLl5.js} +2 -2
- package/dist/FormGroup-CaIWje6a.cjs +1 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-BljR05I0.js} +80 -83
- package/dist/FormLabel-cfHljFCc.cjs +2 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-BknJanej.js} +37 -34
- package/dist/Grow-CTl1xcRO.cjs +1 -0
- package/dist/{IconButton-CekuyD4r.js → IconButton-C6hPeqXq.js} +8 -9
- package/dist/IconButton-DLqUtTTS.cjs +2 -0
- package/dist/InputAdornment-C-w19sIO.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-DYe9bZdy.js} +15 -15
- package/dist/InputBase-BNmBX1sj.cjs +3 -0
- package/dist/{InputBase-BJy3wwFB.js → InputBase-bIxQpDEw.js} +23 -24
- package/dist/{Link-CoQuUM0t.js → Link-69Y2GGzK.js} +10 -11
- package/dist/Link-CbFN--su.cjs +1 -0
- package/dist/Menu-CDKB-4vE.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-CrLJY61G.js} +26 -27
- package/dist/MenuItem-Cz_afi4Z.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-i8U9J9Ds.js} +6 -6
- package/dist/{Modal-brWBFdK7.js → Modal-Airm8V-9.js} +82 -81
- package/dist/Modal-CAWPr5pr.cjs +2 -0
- package/dist/Paper-D7GaBTFY.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-zmG6CtmU.js} +4 -4
- package/dist/{Popper-DFZ_gRev.js → Popper-CQ0ZGqya.js} +5 -5
- package/dist/Popper-PxC5lBvF.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-BSNCqu7q.js} +34 -39
- package/dist/Portal-Cw7h9YXi.cjs +1 -0
- package/dist/Radio-D8JzkZ7R.cjs +1 -0
- package/dist/{Radio-DGhot3Cd.js → Radio-DAKlrqC8.js} +15 -16
- package/dist/{Select-DmssuG5M.js → Select-B6NmIC6a.js} +424 -416
- package/dist/Select-D3AUyBzT.cjs +3 -0
- package/dist/Stack-ChAD7MBi.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-LOzokt50.js} +60 -105
- package/dist/SwitchBase-C9eGMRmU.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-CXvx1DtF.js} +22 -23
- package/dist/TableSortLabel-BJ0u2uA5.cjs +98 -0
- package/dist/{TableSortLabel-BsgRD4k4.js → TableSortLabel-C4rUHuBk.js} +1808 -1706
- package/dist/Tabs-CSXp7psk.cjs +4 -0
- package/dist/{Tabs-CYbeTnJk.js → Tabs-DFlFghRY.js} +113 -115
- package/dist/{TextField-Cri5Gxa7.js → TextField-B9Jog6CY.js} +21 -20
- package/dist/TextField-dzDYEheV.cjs +1 -0
- package/dist/Tooltip-Dxitr7Ef.cjs +4 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-zyIjqlzt.js} +30 -31
- package/dist/Typography-Bwmxx4FZ.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-DeEwslc2.js} +38 -39
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +103 -140
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +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.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +31 -31
- 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 +4 -4
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +19 -20
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +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 +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-B-TuJjUa.cjs +1 -0
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-DCcHNe8S.js} +40 -41
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-BIQl1sXf.js} +1 -1
- package/dist/dividerClasses-gUm5VAyT.cjs +1 -0
- package/dist/elementTypeAcceptingRef-BpVcc71P.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-C9ErcCVk.js} +1 -1
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-BtWdisVp.js} +1 -1
- package/dist/extendSxProp-RlEfz15o.cjs +1 -0
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/{generateUtilityClasses-Bssl7BA_.js → identifier-DuQ8Gjnk.js} +781 -811
- package/dist/identifier-wZ6XDHde.cjs +59 -0
- package/dist/{useSlotProps-B31YQlzb.js → index-Bh3yiNTb.js} +26 -26
- package/dist/{index-CwvpOCso.js → index-BrVfbiqv.js} +29 -29
- package/dist/index-BtBEUHyX.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-CvvRovRe.js} +4 -4
- package/dist/index-Cwbb61M9.cjs +1 -0
- package/dist/index-DGoTWEZ6.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +31 -31
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-BBurdur9.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-BX806g-H.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-Bj5oVmPL.js} +1 -1
- package/dist/refType-CqcE23ld.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-BsjDgxuc.js} +7 -7
- package/dist/resolveComponentProps-CwoUNybl.cjs +1 -0
- package/dist/useSlot-CcIPcgkB.cjs +1 -0
- package/dist/useSlot-D3Bt2dZB.js +44 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-Btccn2RE.js} +1 -1
- package/dist/useTheme-C7xxleiU.cjs +1 -0
- package/dist/useTheme-CVDdFPAV.js +11 -0
- package/dist/useTheme-DZ8a53P0.cjs +1 -0
- package/dist/useThemeProps-BZX2pbh5.cjs +1 -0
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-DkiiJVq2.js} +2 -2
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-H1IpEt-K.cjs} +1 -1
- package/dist/{useThemeProps-CwEQ4bv2.js → useThemeProps-SHbptCB5.js} +3 -3
- package/dist/{utils-C6c4fj7D.js → utils-CAhqvD6J.js} +41 -41
- package/dist/utils-DWiPKWpw.cjs +1 -0
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { s as g, u as
|
|
1
|
+
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as g, a as T, u as w, c as M } from "../../DefaultPropsProvider-DEufUd_C.js";
|
|
3
3
|
import * as P from "react";
|
|
4
|
-
import { I as R, H as
|
|
5
|
-
import { B as
|
|
6
|
-
import { m as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return T("MuiLoadingButton", t);
|
|
4
|
+
import { I as R, H as z, L as c, P as t } from "../../identifier-DuQ8Gjnk.js";
|
|
5
|
+
import { B as O, a as j } from "../../Button-By0vfP8J.js";
|
|
6
|
+
import { m as v } from "../../memoTheme-BX806g-H.js";
|
|
7
|
+
import { u as U } from "../../useId-CK6Kn3Tn.js";
|
|
8
|
+
import { c as N } from "../../chainPropTypes-D9lkm76m.js";
|
|
9
|
+
import { C as W } from "../../CircularProgress-B8D0BpDv.js";
|
|
10
|
+
function D(o) {
|
|
11
|
+
return z("MuiLoadingButton", o);
|
|
13
12
|
}
|
|
14
|
-
const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]),
|
|
13
|
+
const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), F = (o) => {
|
|
15
14
|
const {
|
|
16
|
-
loading:
|
|
15
|
+
loading: n,
|
|
17
16
|
loadingPosition: i,
|
|
18
17
|
classes: e
|
|
19
|
-
} =
|
|
20
|
-
root: ["root",
|
|
18
|
+
} = o, u = {
|
|
19
|
+
root: ["root", n && "loading"],
|
|
21
20
|
label: ["label"],
|
|
22
|
-
startIcon: [
|
|
23
|
-
endIcon: [
|
|
24
|
-
loadingIndicator: ["loadingIndicator",
|
|
25
|
-
}, d =
|
|
21
|
+
startIcon: [n && `startIconLoading${c(i)}`],
|
|
22
|
+
endIcon: [n && `endIconLoading${c(i)}`],
|
|
23
|
+
loadingIndicator: ["loadingIndicator", n && `loadingIndicator${c(i)}`]
|
|
24
|
+
}, d = M(u, D, e);
|
|
26
25
|
return {
|
|
27
26
|
...e,
|
|
28
27
|
// forward the outlined, color, etc. classes to Button
|
|
29
28
|
...d
|
|
30
29
|
};
|
|
31
|
-
},
|
|
32
|
-
shouldForwardProp: (
|
|
30
|
+
}, H = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", k = g(O, {
|
|
31
|
+
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
33
32
|
name: "MuiLoadingButton",
|
|
34
33
|
slot: "Root",
|
|
35
|
-
overridesResolver: (
|
|
36
|
-
[`& .${a.startIconLoadingStart}`]:
|
|
37
|
-
},
|
|
38
|
-
[`& .${a.endIconLoadingEnd}`]:
|
|
34
|
+
overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
|
|
35
|
+
[`& .${a.startIconLoadingStart}`]: n.startIconLoadingStart
|
|
36
|
+
}, n.endIconLoadingEnd && {
|
|
37
|
+
[`& .${a.endIconLoadingEnd}`]: n.endIconLoadingEnd
|
|
39
38
|
}]
|
|
40
|
-
})(
|
|
41
|
-
theme:
|
|
39
|
+
})(v(({
|
|
40
|
+
theme: o
|
|
42
41
|
}) => ({
|
|
43
42
|
display: "inline-flex",
|
|
44
43
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
45
|
-
transition:
|
|
46
|
-
duration:
|
|
44
|
+
transition: o.transitions.create(["opacity"], {
|
|
45
|
+
duration: o.transitions.duration.short
|
|
47
46
|
}),
|
|
48
47
|
opacity: 0
|
|
49
48
|
},
|
|
@@ -52,8 +51,8 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
52
51
|
loadingPosition: "center"
|
|
53
52
|
},
|
|
54
53
|
style: {
|
|
55
|
-
transition:
|
|
56
|
-
duration:
|
|
54
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
55
|
+
duration: o.transitions.duration.short
|
|
57
56
|
}),
|
|
58
57
|
[`&.${a.loading}`]: {
|
|
59
58
|
color: "transparent"
|
|
@@ -61,12 +60,12 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
61
60
|
}
|
|
62
61
|
}, {
|
|
63
62
|
props: ({
|
|
64
|
-
ownerState:
|
|
65
|
-
}) =>
|
|
63
|
+
ownerState: n
|
|
64
|
+
}) => n.loadingPosition === "start" && n.fullWidth,
|
|
66
65
|
style: {
|
|
67
66
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
68
|
-
transition:
|
|
69
|
-
duration:
|
|
67
|
+
transition: o.transitions.create(["opacity"], {
|
|
68
|
+
duration: o.transitions.duration.short
|
|
70
69
|
}),
|
|
71
70
|
opacity: 0,
|
|
72
71
|
marginRight: -8
|
|
@@ -74,12 +73,12 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
74
73
|
}
|
|
75
74
|
}, {
|
|
76
75
|
props: ({
|
|
77
|
-
ownerState:
|
|
78
|
-
}) =>
|
|
76
|
+
ownerState: n
|
|
77
|
+
}) => n.loadingPosition === "end" && n.fullWidth,
|
|
79
78
|
style: {
|
|
80
79
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
81
|
-
transition:
|
|
82
|
-
duration:
|
|
80
|
+
transition: o.transitions.create(["opacity"], {
|
|
81
|
+
duration: o.transitions.duration.short
|
|
83
82
|
}),
|
|
84
83
|
opacity: 0,
|
|
85
84
|
marginLeft: -8
|
|
@@ -89,14 +88,14 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
89
88
|
}))), G = g("span", {
|
|
90
89
|
name: "MuiLoadingButton",
|
|
91
90
|
slot: "LoadingIndicator",
|
|
92
|
-
overridesResolver: (
|
|
91
|
+
overridesResolver: (o, n) => {
|
|
93
92
|
const {
|
|
94
93
|
ownerState: i
|
|
95
|
-
} =
|
|
96
|
-
return [
|
|
94
|
+
} = o;
|
|
95
|
+
return [n.loadingIndicator, n[`loadingIndicator${c(i.loadingPosition)}`]];
|
|
97
96
|
}
|
|
98
|
-
})(
|
|
99
|
-
theme:
|
|
97
|
+
})(v(({
|
|
98
|
+
theme: o
|
|
100
99
|
}) => ({
|
|
101
100
|
position: "absolute",
|
|
102
101
|
visibility: "visible",
|
|
@@ -111,9 +110,9 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
111
110
|
}
|
|
112
111
|
}, {
|
|
113
112
|
props: ({
|
|
114
|
-
loadingPosition:
|
|
113
|
+
loadingPosition: n,
|
|
115
114
|
ownerState: i
|
|
116
|
-
}) =>
|
|
115
|
+
}) => n === "start" && i.size !== "small",
|
|
117
116
|
style: {
|
|
118
117
|
left: 14
|
|
119
118
|
}
|
|
@@ -132,7 +131,7 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
132
131
|
style: {
|
|
133
132
|
left: "50%",
|
|
134
133
|
transform: "translate(-50%)",
|
|
135
|
-
color: (
|
|
134
|
+
color: (o.vars || o).palette.action.disabled
|
|
136
135
|
}
|
|
137
136
|
}, {
|
|
138
137
|
props: {
|
|
@@ -144,9 +143,9 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
144
143
|
}
|
|
145
144
|
}, {
|
|
146
145
|
props: ({
|
|
147
|
-
loadingPosition:
|
|
146
|
+
loadingPosition: n,
|
|
148
147
|
ownerState: i
|
|
149
|
-
}) =>
|
|
148
|
+
}) => n === "end" && i.size !== "small",
|
|
150
149
|
style: {
|
|
151
150
|
right: 14
|
|
152
151
|
}
|
|
@@ -160,72 +159,72 @@ const a = R("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
160
159
|
}
|
|
161
160
|
}, {
|
|
162
161
|
props: ({
|
|
163
|
-
ownerState:
|
|
164
|
-
}) =>
|
|
162
|
+
ownerState: n
|
|
163
|
+
}) => n.loadingPosition === "start" && n.fullWidth,
|
|
165
164
|
style: {
|
|
166
165
|
position: "relative",
|
|
167
166
|
left: -10
|
|
168
167
|
}
|
|
169
168
|
}, {
|
|
170
169
|
props: ({
|
|
171
|
-
ownerState:
|
|
172
|
-
}) =>
|
|
170
|
+
ownerState: n
|
|
171
|
+
}) => n.loadingPosition === "end" && n.fullWidth,
|
|
173
172
|
style: {
|
|
174
173
|
position: "relative",
|
|
175
174
|
right: -10
|
|
176
175
|
}
|
|
177
176
|
}]
|
|
178
|
-
}))),
|
|
177
|
+
}))), h = g("span", {
|
|
179
178
|
name: "MuiLoadingButton",
|
|
180
179
|
slot: "Label",
|
|
181
|
-
overridesResolver: (
|
|
180
|
+
overridesResolver: (o, n) => [n.label]
|
|
182
181
|
})({
|
|
183
182
|
display: "inherit",
|
|
184
183
|
alignItems: "inherit",
|
|
185
184
|
justifyContent: "inherit"
|
|
186
|
-
}), B = /* @__PURE__ */ P.forwardRef(function(
|
|
187
|
-
const e = P.useContext(
|
|
185
|
+
}), B = /* @__PURE__ */ P.forwardRef(function(n, i) {
|
|
186
|
+
const e = P.useContext(j), u = T(e, n), d = w({
|
|
188
187
|
props: u,
|
|
189
188
|
name: "MuiLoadingButton"
|
|
190
189
|
}), {
|
|
191
|
-
children:
|
|
192
|
-
disabled:
|
|
193
|
-
id:
|
|
190
|
+
children: f,
|
|
191
|
+
disabled: I = !1,
|
|
192
|
+
id: x,
|
|
194
193
|
loading: p = !1,
|
|
195
|
-
loadingIndicator:
|
|
196
|
-
loadingPosition:
|
|
197
|
-
variant:
|
|
198
|
-
...
|
|
199
|
-
} = d,
|
|
200
|
-
"aria-labelledby":
|
|
194
|
+
loadingIndicator: $,
|
|
195
|
+
loadingPosition: C = "center",
|
|
196
|
+
variant: m = "text",
|
|
197
|
+
...E
|
|
198
|
+
} = d, L = U(x), b = $ ?? /* @__PURE__ */ r(W, {
|
|
199
|
+
"aria-labelledby": L,
|
|
201
200
|
color: "inherit",
|
|
202
201
|
size: 16
|
|
203
|
-
}),
|
|
202
|
+
}), s = {
|
|
204
203
|
...d,
|
|
205
|
-
disabled:
|
|
204
|
+
disabled: I,
|
|
206
205
|
loading: p,
|
|
207
|
-
loadingIndicator:
|
|
208
|
-
loadingPosition:
|
|
209
|
-
variant:
|
|
210
|
-
}, l =
|
|
206
|
+
loadingIndicator: b,
|
|
207
|
+
loadingPosition: C,
|
|
208
|
+
variant: m
|
|
209
|
+
}, l = F(s), y = p ? /* @__PURE__ */ r(G, {
|
|
211
210
|
className: l.loadingIndicator,
|
|
212
|
-
ownerState:
|
|
213
|
-
children:
|
|
211
|
+
ownerState: s,
|
|
212
|
+
children: b
|
|
214
213
|
}) : null;
|
|
215
|
-
return /* @__PURE__ */
|
|
216
|
-
disabled:
|
|
217
|
-
id:
|
|
214
|
+
return /* @__PURE__ */ S(k, {
|
|
215
|
+
disabled: I || p,
|
|
216
|
+
id: L,
|
|
218
217
|
ref: i,
|
|
219
|
-
...
|
|
220
|
-
variant:
|
|
218
|
+
...E,
|
|
219
|
+
variant: m,
|
|
221
220
|
classes: l,
|
|
222
|
-
ownerState:
|
|
223
|
-
children: [
|
|
221
|
+
ownerState: s,
|
|
222
|
+
children: [s.loadingPosition === "end" ? /* @__PURE__ */ r(h, {
|
|
224
223
|
className: l.label,
|
|
225
|
-
children:
|
|
226
|
-
}) :
|
|
224
|
+
children: f
|
|
225
|
+
}) : y, s.loadingPosition === "end" ? y : /* @__PURE__ */ r(h, {
|
|
227
226
|
className: l.label,
|
|
228
|
-
children:
|
|
227
|
+
children: f
|
|
229
228
|
})]
|
|
230
229
|
});
|
|
231
230
|
});
|
|
@@ -237,99 +236,63 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
237
236
|
/**
|
|
238
237
|
* The content of the component.
|
|
239
238
|
*/
|
|
240
|
-
children:
|
|
239
|
+
children: t.node,
|
|
241
240
|
/**
|
|
242
241
|
* Override or extend the styles applied to the component.
|
|
243
242
|
*/
|
|
244
|
-
classes:
|
|
243
|
+
classes: t.object,
|
|
245
244
|
/**
|
|
246
245
|
* If `true`, the component is disabled.
|
|
247
246
|
* @default false
|
|
248
247
|
*/
|
|
249
|
-
disabled:
|
|
248
|
+
disabled: t.bool,
|
|
250
249
|
/**
|
|
251
250
|
* @ignore
|
|
252
251
|
*/
|
|
253
|
-
id:
|
|
252
|
+
id: t.string,
|
|
254
253
|
/**
|
|
255
254
|
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
256
255
|
* @default false
|
|
257
256
|
*/
|
|
258
|
-
loading:
|
|
257
|
+
loading: t.bool,
|
|
259
258
|
/**
|
|
260
259
|
* Element placed before the children if the button is in loading state.
|
|
261
260
|
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
262
261
|
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
263
262
|
* @default <CircularProgress color="inherit" size={16} />
|
|
264
263
|
*/
|
|
265
|
-
loadingIndicator:
|
|
264
|
+
loadingIndicator: t.node,
|
|
266
265
|
/**
|
|
267
266
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
268
267
|
* @default 'center'
|
|
269
268
|
*/
|
|
270
|
-
loadingPosition:
|
|
269
|
+
loadingPosition: N(t.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
|
|
271
270
|
/**
|
|
272
271
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
273
272
|
*/
|
|
274
|
-
sx:
|
|
273
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
275
274
|
/**
|
|
276
275
|
* The variant to use.
|
|
277
276
|
* @default 'text'
|
|
278
277
|
*/
|
|
279
|
-
variant:
|
|
278
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
280
279
|
});
|
|
281
|
-
const V = g(B)(({ color:
|
|
282
|
-
justifyContent: "center",
|
|
283
|
-
alignItems: "center",
|
|
280
|
+
const V = g(B)(({ color: o, theme: n }) => ({
|
|
284
281
|
minHeight: 38,
|
|
285
282
|
textTransform: "none",
|
|
286
|
-
color: t,
|
|
287
|
-
borderColor: t,
|
|
288
|
-
borderRadius: 5,
|
|
289
|
-
borderWidth: 2,
|
|
290
283
|
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
291
|
-
"&.MuiButton-contained": {
|
|
292
|
-
color: o.palette.common.white
|
|
293
|
-
},
|
|
294
284
|
"&.MuiButton-outlined": {
|
|
295
285
|
borderRadius: 5,
|
|
296
|
-
borderWidth: 2
|
|
297
|
-
"
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
"&:hover": {
|
|
303
|
-
backgroundColor: o.palette.primary.dark,
|
|
304
|
-
borderColor: o.palette.primary.dark,
|
|
305
|
-
color: o.palette.common.white
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
"&.MuiButton-colorSecondary": {
|
|
309
|
-
"&:active": {
|
|
310
|
-
borderColor: o.palette.secondary.main,
|
|
311
|
-
color: o.palette.secondary.main
|
|
312
|
-
},
|
|
313
|
-
"&:hover": {
|
|
314
|
-
backgroundColor: o.palette.secondary.main,
|
|
315
|
-
color: o.palette.common.white
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
"&.MuiButton-colorError": {
|
|
319
|
-
"&:active": {
|
|
320
|
-
borderColor: o.palette.error.main,
|
|
321
|
-
color: o.palette.error.main
|
|
322
|
-
},
|
|
323
|
-
"&:hover": {
|
|
324
|
-
backgroundColor: o.palette.error.main,
|
|
325
|
-
color: o.palette.common.white
|
|
326
|
-
}
|
|
327
|
-
}
|
|
286
|
+
borderWidth: 2
|
|
287
|
+
/* "&:hover": {
|
|
288
|
+
//backgroundColor: theme.palette[color].main,
|
|
289
|
+
color: theme.palette.common.white,
|
|
290
|
+
},*/
|
|
328
291
|
}
|
|
329
|
-
})),
|
|
330
|
-
variant:
|
|
331
|
-
...
|
|
332
|
-
}) => /* @__PURE__ */
|
|
292
|
+
})), Z = ({
|
|
293
|
+
variant: o = "outlined",
|
|
294
|
+
...n
|
|
295
|
+
}) => /* @__PURE__ */ r(V, { variant: o, ...n });
|
|
333
296
|
export {
|
|
334
|
-
|
|
297
|
+
Z as default
|
|
335
298
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");require("../../fr-JE-1WKP6.cjs");const e=require("../../DatePicker-
|
|
1
|
+
"use strict";require("react/jsx-runtime");require("../../fr-JE-1WKP6.cjs");const e=require("../../DatePicker-BPbdIoL9.cjs");module.exports=e.DatePicker;
|
|
@@ -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-BPbdIoL9.cjs");exports.DatePicker=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),t=require("../../createSvgIcon
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../createSvgIcon-B-TuJjUa.cjs"),i=require("@mui/material"),a=require("../../Dialog-BydVKebY.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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../createSvgIcon-
|
|
2
|
+
import { c as s } from "../../createSvgIcon-DCcHNe8S.js";
|
|
3
3
|
import { IconButton as t } from "@mui/material";
|
|
4
|
-
import { D as i } from "../../Dialog-
|
|
4
|
+
import { D as i } from "../../Dialog-CEC-r5SR.js";
|
|
5
5
|
const d = s(/* @__PURE__ */ l("path", {
|
|
6
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
7
|
}), "CloseRounded"), g = ({
|
|
@@ -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-B-TuJjUa.cjs"),d=require("../../index-BtBEUHyX.cjs"),a=require("../../Stack-ChAD7MBi.cjs"),r=require("../../Typography-Bwmxx4FZ.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-DCcHNe8S.js";
|
|
3
|
+
import { u as h } from "../../index-BrVfbiqv.js";
|
|
4
|
+
import { S as m } from "../../Stack-LOzokt50.js";
|
|
5
|
+
import { T as o } from "../../Typography-DeEwslc2.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", {
|
|
@@ -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-ChAD7MBi.cjs"),i=require("../../Typography-Bwmxx4FZ.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-LOzokt50.js";
|
|
4
|
+
import { T as i } from "../../Typography-DeEwslc2.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-DjTF7J_q.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-BzbXlIpa.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-DV3Q-OXQ.cjs"),a=require("../../createSvgIcon-B-TuJjUa.cjs"),u=require("../../Stack-ChAD7MBi.cjs"),x=require("../../Box-DjTF7J_q.cjs"),t=require("../../Typography-Bwmxx4FZ.cjs"),l=require("../../IconButton-DLqUtTTS.cjs"),d=require("../../CircularProgress-Cgy3S9U3.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-DwpFA0q9.js";
|
|
3
|
+
import { c as a } from "../../createSvgIcon-DCcHNe8S.js";
|
|
4
|
+
import { S as p } from "../../Stack-LOzokt50.js";
|
|
5
|
+
import { B as d } from "../../Box-BzbXlIpa.js";
|
|
6
|
+
import { T as s } from "../../Typography-DeEwslc2.js";
|
|
7
|
+
import { I as l } from "../../IconButton-C6hPeqXq.js";
|
|
8
|
+
import { C as I } from "../../CircularProgress-B8D0BpDv.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-ChAD7MBi.cjs"),j=require("../../Typography-Bwmxx4FZ.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-LOzokt50.js";
|
|
3
|
+
import { T as b } from "../../Typography-DeEwslc2.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-B-TuJjUa.cjs"),S=require("../../Delete-DV3Q-OXQ.cjs"),o=require("@mui/material"),v=require("react"),C=require("../../index-BtBEUHyX.cjs"),F=require("../../Stack-ChAD7MBi.cjs"),i=require("../../Typography-Bwmxx4FZ.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;
|
|
@@ -1,11 +1,11 @@
|
|
|
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 w } from "../../Delete-
|
|
2
|
+
import { c as h } from "../../createSvgIcon-DCcHNe8S.js";
|
|
3
|
+
import { D as w } from "../../Delete-DwpFA0q9.js";
|
|
4
4
|
import { Box as n } from "@mui/material";
|
|
5
5
|
import { useState as D } from "react";
|
|
6
|
-
import { u as F } from "../../index-
|
|
7
|
-
import { S as A } from "../../Stack-
|
|
8
|
-
import { T as l } from "../../Typography-
|
|
6
|
+
import { u as F } from "../../index-BrVfbiqv.js";
|
|
7
|
+
import { S as A } from "../../Stack-LOzokt50.js";
|
|
8
|
+
import { T as l } from "../../Typography-DeEwslc2.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
11
|
}), "AddPhotoAlternate"), j = h(/* @__PURE__ */ e("path", {
|
|
@@ -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-DjTF7J_q.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-BzbXlIpa.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-CGpJR5Hl.cjs"),c=require("../../Box-DjTF7J_q.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-B78NPr0F.js";
|
|
4
|
+
import { B as l } from "../../Box-BzbXlIpa.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: "●" }),
|