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