@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739206891
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Backdrop-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
- package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
- package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
- package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
- package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
- package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
- package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
- package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
- package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
- package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
- package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
- package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
- package/dist/{CircularProgress-Wu1RUH10.js → CircularProgress-BgUNlpbU.js} +9 -9
- package/dist/{CircularProgress-CIsFCabr.cjs → CircularProgress-nxAXvjY0.cjs} +2 -2
- package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
- package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
- package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
- package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
- package/dist/{Delete-D269dtzC.js → Delete-DCHX_nNr.js} +1 -1
- package/dist/{Delete-CN1Nvyw-.cjs → Delete-Z2rf9szx.cjs} +1 -1
- package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
- package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
- package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
- package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
- package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
- package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
- package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
- package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
- package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
- package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
- package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
- package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
- package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
- package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
- package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
- package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
- package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
- package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
- package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
- package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
- package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
- package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
- package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
- package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
- package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
- package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
- package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
- package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
- package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
- package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
- package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
- package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
- package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
- package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
- package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
- package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
- package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
- package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
- package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
- package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
- package/dist/Stack-B68ooSQ-.cjs +1 -0
- package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
- package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
- package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
- package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
- package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
- package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
- package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
- package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
- package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
- package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
- package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
- package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
- package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
- package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
- package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +47 -47
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +3 -3
- 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 +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +38 -38
- 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.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +8 -8
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +11 -11
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
- package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
- package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
- package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
- package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
- package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
- package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
- package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
- package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
- package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
- package/dist/index-CgWaRcwQ.cjs +1 -0
- package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +36 -36
- package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
- package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
- package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
- package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
- package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
- package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
- package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
- package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
- package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
- package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
- package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
- package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
- package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
- package/dist/useTheme-Dyx3LMQU.js +11 -0
- package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
- package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
- package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
- package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
- package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
- package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
- package/package.json +1 -1
- package/dist/Stack-6AHEa1bx.cjs +0 -1
- package/dist/index-vTvfssKH.cjs +0 -1
- package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
- package/dist/useTheme-i6uFvVRH.js +0 -11
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { u as T, s as g, c as w } from "../../DefaultPropsProvider-CmOKr9hq.js";
|
|
3
3
|
import * as P from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { m as v } from "../../memoTheme-CnIL9ySw.js";
|
|
7
|
-
import { c } from "../../capitalize-B55K71yP.js";
|
|
4
|
+
import { H as M, I as R, P as n } from "../../generateUtilityClasses-v9KcqdK1.js";
|
|
5
|
+
import { a as z, r as O, B as j } from "../../Button-DovfjBkz.js";
|
|
8
6
|
import { u as U } from "../../useId-CK6Kn3Tn.js";
|
|
9
|
-
import { c
|
|
10
|
-
import {
|
|
7
|
+
import { c } from "../../capitalize-yX_QSknw.js";
|
|
8
|
+
import { m as v } from "../../memoTheme-D-rebSfX.js";
|
|
9
|
+
import { C as N } from "../../CircularProgress-BgUNlpbU.js";
|
|
10
|
+
import { c as W } from "../../chainPropTypes-D9lkm76m.js";
|
|
11
11
|
function D(o) {
|
|
12
12
|
return R("MuiLoadingButton", o);
|
|
13
13
|
}
|
|
14
14
|
const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), F = (o) => {
|
|
15
15
|
const {
|
|
16
|
-
loading:
|
|
16
|
+
loading: t,
|
|
17
17
|
loadingPosition: i,
|
|
18
18
|
classes: e
|
|
19
19
|
} = o, u = {
|
|
20
|
-
root: ["root",
|
|
20
|
+
root: ["root", t && "loading"],
|
|
21
21
|
label: ["label"],
|
|
22
|
-
startIcon: [
|
|
23
|
-
endIcon: [
|
|
24
|
-
loadingIndicator: ["loadingIndicator",
|
|
22
|
+
startIcon: [t && `startIconLoading${c(i)}`],
|
|
23
|
+
endIcon: [t && `endIconLoading${c(i)}`],
|
|
24
|
+
loadingIndicator: ["loadingIndicator", t && `loadingIndicator${c(i)}`]
|
|
25
25
|
}, d = w(u, D, e);
|
|
26
26
|
return {
|
|
27
27
|
...e,
|
|
28
28
|
// forward the outlined, color, etc. classes to Button
|
|
29
29
|
...d
|
|
30
30
|
};
|
|
31
|
-
}, H = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", k = g(
|
|
31
|
+
}, H = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", k = g(j, {
|
|
32
32
|
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
33
33
|
name: "MuiLoadingButton",
|
|
34
34
|
slot: "Root",
|
|
35
|
-
overridesResolver: (o,
|
|
36
|
-
[`& .${a.startIconLoadingStart}`]:
|
|
37
|
-
},
|
|
38
|
-
[`& .${a.endIconLoadingEnd}`]:
|
|
35
|
+
overridesResolver: (o, t) => [t.root, t.startIconLoadingStart && {
|
|
36
|
+
[`& .${a.startIconLoadingStart}`]: t.startIconLoadingStart
|
|
37
|
+
}, t.endIconLoadingEnd && {
|
|
38
|
+
[`& .${a.endIconLoadingEnd}`]: t.endIconLoadingEnd
|
|
39
39
|
}]
|
|
40
40
|
})(v(({
|
|
41
41
|
theme: o
|
|
@@ -61,8 +61,8 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
61
61
|
}
|
|
62
62
|
}, {
|
|
63
63
|
props: ({
|
|
64
|
-
ownerState:
|
|
65
|
-
}) =>
|
|
64
|
+
ownerState: t
|
|
65
|
+
}) => t.loadingPosition === "start" && t.fullWidth,
|
|
66
66
|
style: {
|
|
67
67
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
68
68
|
transition: o.transitions.create(["opacity"], {
|
|
@@ -74,8 +74,8 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
74
74
|
}
|
|
75
75
|
}, {
|
|
76
76
|
props: ({
|
|
77
|
-
ownerState:
|
|
78
|
-
}) =>
|
|
77
|
+
ownerState: t
|
|
78
|
+
}) => t.loadingPosition === "end" && t.fullWidth,
|
|
79
79
|
style: {
|
|
80
80
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
81
81
|
transition: o.transitions.create(["opacity"], {
|
|
@@ -89,11 +89,11 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
89
89
|
}))), G = g("span", {
|
|
90
90
|
name: "MuiLoadingButton",
|
|
91
91
|
slot: "LoadingIndicator",
|
|
92
|
-
overridesResolver: (o,
|
|
92
|
+
overridesResolver: (o, t) => {
|
|
93
93
|
const {
|
|
94
94
|
ownerState: i
|
|
95
95
|
} = o;
|
|
96
|
-
return [
|
|
96
|
+
return [t.loadingIndicator, t[`loadingIndicator${c(i.loadingPosition)}`]];
|
|
97
97
|
}
|
|
98
98
|
})(v(({
|
|
99
99
|
theme: o
|
|
@@ -111,9 +111,9 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
111
111
|
}
|
|
112
112
|
}, {
|
|
113
113
|
props: ({
|
|
114
|
-
loadingPosition:
|
|
114
|
+
loadingPosition: t,
|
|
115
115
|
ownerState: i
|
|
116
|
-
}) =>
|
|
116
|
+
}) => t === "start" && i.size !== "small",
|
|
117
117
|
style: {
|
|
118
118
|
left: 14
|
|
119
119
|
}
|
|
@@ -144,9 +144,9 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
144
144
|
}
|
|
145
145
|
}, {
|
|
146
146
|
props: ({
|
|
147
|
-
loadingPosition:
|
|
147
|
+
loadingPosition: t,
|
|
148
148
|
ownerState: i
|
|
149
|
-
}) =>
|
|
149
|
+
}) => t === "end" && i.size !== "small",
|
|
150
150
|
style: {
|
|
151
151
|
right: 14
|
|
152
152
|
}
|
|
@@ -160,16 +160,16 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
160
160
|
}
|
|
161
161
|
}, {
|
|
162
162
|
props: ({
|
|
163
|
-
ownerState:
|
|
164
|
-
}) =>
|
|
163
|
+
ownerState: t
|
|
164
|
+
}) => t.loadingPosition === "start" && t.fullWidth,
|
|
165
165
|
style: {
|
|
166
166
|
position: "relative",
|
|
167
167
|
left: -10
|
|
168
168
|
}
|
|
169
169
|
}, {
|
|
170
170
|
props: ({
|
|
171
|
-
ownerState:
|
|
172
|
-
}) =>
|
|
171
|
+
ownerState: t
|
|
172
|
+
}) => t.loadingPosition === "end" && t.fullWidth,
|
|
173
173
|
style: {
|
|
174
174
|
position: "relative",
|
|
175
175
|
right: -10
|
|
@@ -178,13 +178,13 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
178
178
|
}))), h = g("span", {
|
|
179
179
|
name: "MuiLoadingButton",
|
|
180
180
|
slot: "Label",
|
|
181
|
-
overridesResolver: (o,
|
|
181
|
+
overridesResolver: (o, t) => [t.label]
|
|
182
182
|
})({
|
|
183
183
|
display: "inherit",
|
|
184
184
|
alignItems: "inherit",
|
|
185
185
|
justifyContent: "inherit"
|
|
186
|
-
}), B = /* @__PURE__ */ P.forwardRef(function(
|
|
187
|
-
const e = P.useContext(
|
|
186
|
+
}), B = /* @__PURE__ */ P.forwardRef(function(t, i) {
|
|
187
|
+
const e = P.useContext(z), u = O(e, t), d = T({
|
|
188
188
|
props: u,
|
|
189
189
|
name: "MuiLoadingButton"
|
|
190
190
|
}), {
|
|
@@ -196,7 +196,7 @@ const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
196
196
|
loadingPosition: C = "center",
|
|
197
197
|
variant: m = "text",
|
|
198
198
|
...E
|
|
199
|
-
} = d, L = U(x), b = $ ?? /* @__PURE__ */ r(
|
|
199
|
+
} = d, L = U(x), b = $ ?? /* @__PURE__ */ r(N, {
|
|
200
200
|
"aria-labelledby": L,
|
|
201
201
|
color: "inherit",
|
|
202
202
|
size: 16
|
|
@@ -237,48 +237,48 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
237
237
|
/**
|
|
238
238
|
* The content of the component.
|
|
239
239
|
*/
|
|
240
|
-
children:
|
|
240
|
+
children: n.node,
|
|
241
241
|
/**
|
|
242
242
|
* Override or extend the styles applied to the component.
|
|
243
243
|
*/
|
|
244
|
-
classes:
|
|
244
|
+
classes: n.object,
|
|
245
245
|
/**
|
|
246
246
|
* If `true`, the component is disabled.
|
|
247
247
|
* @default false
|
|
248
248
|
*/
|
|
249
|
-
disabled:
|
|
249
|
+
disabled: n.bool,
|
|
250
250
|
/**
|
|
251
251
|
* @ignore
|
|
252
252
|
*/
|
|
253
|
-
id:
|
|
253
|
+
id: n.string,
|
|
254
254
|
/**
|
|
255
255
|
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
256
256
|
* @default false
|
|
257
257
|
*/
|
|
258
|
-
loading:
|
|
258
|
+
loading: n.bool,
|
|
259
259
|
/**
|
|
260
260
|
* Element placed before the children if the button is in loading state.
|
|
261
261
|
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
262
262
|
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
263
263
|
* @default <CircularProgress color="inherit" size={16} />
|
|
264
264
|
*/
|
|
265
|
-
loadingIndicator:
|
|
265
|
+
loadingIndicator: n.node,
|
|
266
266
|
/**
|
|
267
267
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
268
268
|
* @default 'center'
|
|
269
269
|
*/
|
|
270
|
-
loadingPosition:
|
|
270
|
+
loadingPosition: W(n.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
271
|
/**
|
|
272
272
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
273
273
|
*/
|
|
274
|
-
sx:
|
|
274
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
275
275
|
/**
|
|
276
276
|
* The variant to use.
|
|
277
277
|
* @default 'text'
|
|
278
278
|
*/
|
|
279
|
-
variant:
|
|
279
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
280
280
|
});
|
|
281
|
-
const V = g(B)(({ color: o, theme:
|
|
281
|
+
const V = g(B)(({ color: o, theme: t }) => ({
|
|
282
282
|
minHeight: 38,
|
|
283
283
|
textTransform: "none",
|
|
284
284
|
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
@@ -292,8 +292,8 @@ const V = g(B)(({ color: o, theme: n }) => ({
|
|
|
292
292
|
}
|
|
293
293
|
})), oo = ({
|
|
294
294
|
variant: o = "outlined",
|
|
295
|
-
...
|
|
296
|
-
}) => /* @__PURE__ */ r(V, { variant: o, ...
|
|
295
|
+
...t
|
|
296
|
+
}) => /* @__PURE__ */ r(V, { variant: o, ...t });
|
|
297
297
|
export {
|
|
298
298
|
oo as default
|
|
299
299
|
};
|
|
@@ -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-C3CzK9Fb.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-C3CzK9Fb.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-CWNQW6u6.cjs"),i=require("@mui/material"),a=require("../../Dialog-BFZeovlo.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:24,top:24},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-Cd6y8E9W.js";
|
|
3
3
|
import { IconButton as t } from "@mui/material";
|
|
4
|
-
import { D as i } from "../../Dialog-
|
|
4
|
+
import { D as i } from "../../Dialog-D0fzD-TX.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 = ({
|
|
@@ -17,7 +17,7 @@ const d = s(/* @__PURE__ */ l("path", {
|
|
|
17
17
|
var n;
|
|
18
18
|
return (n = o.onClose) == null ? void 0 : n.call(o, {}, "escapeKeyDown");
|
|
19
19
|
},
|
|
20
|
-
sx: { position: "absolute", right:
|
|
20
|
+
sx: { position: "absolute", right: 24, top: 24 },
|
|
21
21
|
children: /* @__PURE__ */ l(d, {})
|
|
22
22
|
}
|
|
23
23
|
) : null,
|
|
@@ -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-CWNQW6u6.cjs"),d=require("../../index-BUATG6-f.cjs"),a=require("../../Stack-B68ooSQ-.cjs"),r=require("../../Typography-Y-OGmT9M.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-Cd6y8E9W.js";
|
|
3
|
+
import { u as h } from "../../index-OesDQygc.js";
|
|
4
|
+
import { S as m } from "../../Stack-CSgGU-cq.js";
|
|
5
|
+
import { T as o } from "../../Typography-C9ltjPyz.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-B68ooSQ-.cjs"),i=require("../../Typography-Y-OGmT9M.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-CSgGU-cq.js";
|
|
4
|
+
import { T as i } from "../../Typography-C9ltjPyz.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-CVaz7diG.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-Cpg9IWKr.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-Z2rf9szx.cjs"),a=require("../../createSvgIcon-CWNQW6u6.cjs"),u=require("../../Stack-B68ooSQ-.cjs"),x=require("../../Box-CVaz7diG.cjs"),t=require("../../Typography-Y-OGmT9M.cjs"),l=require("../../IconButton-BUCTqOFa.cjs"),d=require("../../CircularProgress-nxAXvjY0.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-DCHX_nNr.js";
|
|
3
|
+
import { c as a } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
4
|
+
import { S as p } from "../../Stack-CSgGU-cq.js";
|
|
5
|
+
import { B as d } from "../../Box-Cpg9IWKr.js";
|
|
6
|
+
import { T as s } from "../../Typography-C9ltjPyz.js";
|
|
7
|
+
import { I as l } from "../../IconButton-CZvDgqOc.js";
|
|
8
|
+
import { C as I } from "../../CircularProgress-BgUNlpbU.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-B68ooSQ-.cjs"),j=require("../../Typography-Y-OGmT9M.cjs"),y=({title:u,IconComponent:g,iconColor:n,iconProps:h,iconSize:e=28,titleProps:a,...x})=>d.jsxs(c.Stack,{direction:"row",alignItems:"center",gap:1,...x,children:[g?d.jsx(g,{sx:{fontSize:e,padding:"2px",borderRadius:1,color:n==null?void 0:n[500],backgroundColor:n==null?void 0:n[50]},...h}):null,d.jsx(j.Typography,{component:(a==null?void 0:a.component)??"h3",variant:(a==null?void 0:a.variant)??"h2",fontWeight:(a==null?void 0:a.fontWeight)??400,...a,children:u})]});module.exports=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S } from "../../Stack-
|
|
3
|
-
import { T as b } from "../../Typography-
|
|
2
|
+
import { S } from "../../Stack-CSgGU-cq.js";
|
|
3
|
+
import { T as b } from "../../Typography-C9ltjPyz.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("../../createSvgIcon-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("../../createSvgIcon-CWNQW6u6.cjs"),S=require("../../Delete-Z2rf9szx.cjs"),o=require("@mui/material"),v=require("react"),C=require("../../index-BUATG6-f.cjs"),F=require("../../Stack-B68ooSQ-.cjs"),i=require("../../Typography-Y-OGmT9M.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=r=>{},width:x="160px",height:m="160px",initialFile:u=null,...j})=>{const[r,c]=v.useState(u),y=t=>{const a=t[0]||null;c(a),s(a)},f=t=>{t.stopPropagation(),c(null),s(null)},b=t=>{t.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:`${!r&&"linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,border:`${!r&&"1px dashed"}`,borderColor:t=>!r&&t.palette.grey.main},...k({onClick:l}),children:[e.jsx("input",{...z()}),r?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:t=>t.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:t=>t.palette.common.white}}},children:e.jsx(S.DeleteIcon,{fontSize:"small"})})]}),e.jsx("img",{src:typeof r=="string"?r:URL.createObjectURL(r),alt:typeof r=="string"?r:r.name,style:{width:"100%",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-Cd6y8E9W.js";
|
|
3
|
+
import { D as w } from "../../Delete-DCHX_nNr.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-OesDQygc.js";
|
|
7
|
+
import { S as A } from "../../Stack-CSgGU-cq.js";
|
|
8
|
+
import { T as l } from "../../Typography-C9ltjPyz.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-CVaz7diG.cjs"),s=({})=>e.jsx(r.Box,{className:"cs-loader",color:"primary.main",children:e.jsxs(r.Box,{className:"cs-loader-inner",children:[e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"}),e.jsx("label",{children:"●"})]})});module.exports=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/styles.css';/* empty css */
|
|
3
|
-
import { B as l } from "../../Box-
|
|
3
|
+
import { B as l } from "../../Box-Cpg9IWKr.js";
|
|
4
4
|
const i = ({}) => /* @__PURE__ */ r(l, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(l, { className: "cs-loader-inner", children: [
|
|
5
5
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/styles2.css');const r=require("react/jsx-runtime");;/* empty css */const e=require("../../Backdrop-
|
|
1
|
+
"use strict";require('../../assets/styles2.css');const r=require("react/jsx-runtime");;/* empty css */const e=require("../../Backdrop-Cvbj4YKG.cjs"),c=require("../../Box-CVaz7diG.cjs"),l=({})=>r.jsx(e.Backdrop,{open:!0,sx:{bgcolor:"background.default"},children:r.jsxs(c.Box,{className:"cs-loader-backdrop-inner",color:"primary.main",children:[r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"}),r.jsx("label",{children:"●"})]})});module.exports=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/styles2.css';/* empty css */
|
|
3
|
-
import { B as e } from "../../Backdrop-
|
|
4
|
-
import { B as l } from "../../Box-
|
|
3
|
+
import { B as e } from "../../Backdrop-DZHacmMU.js";
|
|
4
|
+
import { B as l } from "../../Box-Cpg9IWKr.js";
|
|
5
5
|
const n = ({}) => /* @__PURE__ */ r(e, { open: !0, sx: { bgcolor: "background.default" }, children: /* @__PURE__ */ o(l, { className: "cs-loader-backdrop-inner", color: "primary.main", children: [
|
|
6
6
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
7
7
|
/* @__PURE__ */ r("label", { children: "●" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('../../assets/styles2.css');require('../../assets/styles.css');const e=require("react/jsx-runtime"),u=require("react"),l=require("../TextInput/TextInput.cjs.js");require("../Alert/Alert.cjs.js");require("../Button/Button.cjs.js");require("../../fr-JE-1WKP6.cjs");require("@mui/material");;/* empty css */;/* empty css */require("../ResourceCard/style.cjs.js");require("../SearchInput/SearchInput.cjs.js");const a=require("../../InputAdornment-
|
|
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("../ResourceCard/style.cjs.js");require("../SearchInput/SearchInput.cjs.js");const a=require("../../InputAdornment-CLIvW7Gk.cjs"),d=require("../../IconButton-BUCTqOFa.cjs"),r=require("../../createSvgIcon-CWNQW6u6.cjs"),p=r.createSvgIcon(e.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),q=r.createSvgIcon(e.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),w=s=>{const[n,i]=u.useState(!1),o=()=>i(t=>!t),c=t=>{t.preventDefault()};return e.jsx(l,{...s,variant:"outlined",label:s.label,type:n?"text":"password",InputProps:{endAdornment:e.jsx(a.InputAdornment,{position:"end",children:e.jsx(d.IconButton,{"aria-label":"toggle password visibility",onClick:o,onMouseDown:c,edge:"end",children:n?e.jsx(q,{}):e.jsx(p,{})})})}})};module.exports=w;
|
|
@@ -3,15 +3,15 @@ import { useState as a } from "react";
|
|
|
3
3
|
import p 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-B3qrCNcK.js";
|
|
7
7
|
import "@mui/material";
|
|
8
8
|
import '../../assets/styles2.css';import '../../assets/styles.css';/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../ResourceCard/style.es.js";
|
|
11
11
|
import "../SearchInput/SearchInput.es.js";
|
|
12
|
-
import { I as c } from "../../InputAdornment-
|
|
13
|
-
import { I as m } from "../../IconButton-
|
|
14
|
-
import { c as r } from "../../createSvgIcon-
|
|
12
|
+
import { I as c } from "../../InputAdornment-XfxRdI9K.js";
|
|
13
|
+
import { I as m } from "../../IconButton-CZvDgqOc.js";
|
|
14
|
+
import { c as r } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
15
15
|
const d = r(/* @__PURE__ */ o("path", {
|
|
16
16
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
17
17
|
}), "Visibility"), f = r(/* @__PURE__ */ o("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("../EmptyState/EmptyState.cjs.js"),i=require("./helpers.cjs.js"),n=({error:t,statusPrefix:u="Erreur "})=>{if(i.isFetchBaseQueryError(t)){const r="error"in t?t.error:t.data?JSON.stringify(t.data):null;return typeof t.status=="number"&&t.status.toString().startsWith("4")?s.jsx(e,{svgName:"client-error",title:`Erreur client (${t.status})`,description:r??void 0}):typeof t.status=="number"&&t.status.toString().startsWith("5")?s.jsx(e,{svgName:"server-error",title:`Erreur serveur (${t.status})`,description:r??void 0}):s.jsx(e,{svgName:"error",title:`${u}${t.status}`,description:r??void 0})}return s.jsx(e,{svgName:"error",title:i.isErrorWithMessage(t)?t.message:"Une erreur est survenue"})};module.exports=n;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { isFetchBaseQueryError as u, isErrorWithMessage as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import e from "../EmptyState/EmptyState.es.js";
|
|
3
|
+
import { isFetchBaseQueryError as u, isErrorWithMessage as a } from "./helpers.es.js";
|
|
4
|
+
const f = ({
|
|
5
5
|
error: t,
|
|
6
6
|
statusPrefix: i = "Erreur "
|
|
7
7
|
}) => {
|
|
8
8
|
if (u(t)) {
|
|
9
9
|
const r = "error" in t ? t.error : t.data ? JSON.stringify(t.data) : null;
|
|
10
|
-
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */
|
|
11
|
-
|
|
10
|
+
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */ s(
|
|
11
|
+
e,
|
|
12
12
|
{
|
|
13
13
|
svgName: "client-error",
|
|
14
14
|
title: `Erreur client (${t.status})`,
|
|
15
15
|
description: r ?? void 0
|
|
16
16
|
}
|
|
17
|
-
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */ s(
|
|
18
|
+
e,
|
|
19
19
|
{
|
|
20
20
|
svgName: "server-error",
|
|
21
21
|
title: `Erreur serveur (${t.status})`,
|
|
22
22
|
description: r ?? void 0
|
|
23
23
|
}
|
|
24
|
-
) : /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
) : /* @__PURE__ */ s(
|
|
25
|
+
e,
|
|
26
26
|
{
|
|
27
27
|
svgName: "error",
|
|
28
28
|
title: `${i}${t.status}`,
|
|
@@ -30,14 +30,14 @@ const d = ({
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
33
|
+
return /* @__PURE__ */ s(
|
|
34
|
+
e,
|
|
35
35
|
{
|
|
36
36
|
svgName: "error",
|
|
37
|
-
title:
|
|
37
|
+
title: a(t) ? t.message : "Une erreur est survenue"
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
f as default
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("@mui/material"),m=require("../../createSvgIcon-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("@mui/material"),m=require("../../createSvgIcon-CWNQW6u6.cjs"),o=require("./style.cjs.js"),b=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),j=m.createSvgIcon(r.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),g=({isSelected:l=!1,onSelect:x=()=>{},image:u,title:n,defaultImage:h,propertyItems:i=[],infoIcons:s=[],size:t="md",width:p,onClick:c=()=>{}})=>(s=s.slice(0,3),r.jsx(d.Box,{sx:{width:p&&t==="md"?p:"320px"},children:r.jsxs(o.StyledCard,{selected:l,size:t,onClick:c,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),c==null||c())},role:"button",tabIndex:0,"aria-label":`Resource card for ${n}`,children:[r.jsx(o.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),x()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),x())},className:"selected-icon",selected:l,role:"button",tabIndex:0,"aria-label":l?"Unselect card":"Select card",children:r.jsx(j,{})}),r.jsx(d.Stack,{sx:{width:t=="sm"?110:"100%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:r.jsx(o.ResourceCardImage,{image:u,defaultImage:h,size:t,role:"img","aria-label":`Image for ${n}`})}),r.jsxs(o.ResourceCardBody,{size:t,children:[r.jsx(b,{typographyProps:{fontWeight:"700",fontSize:"1.1rem"},tooltipProps:{placement:"bottom",arrow:!0},children:n}),i.length>0&&i.map((e,a)=>r.jsxs(o.ResourcePropertyItem,{size:t,role:"group","aria-label":`Property ${a}`,children:[e.icon,r.jsx(o.ResourcePropertyText,{isLast:a===i.length-1,size:t,width:p,children:e.text})]},`property-${a}`)),r.jsx(o.PublicIconWrapper,{size:t,children:s.length>0&&s.map((e,a)=>r.jsx(d.Tooltip,{title:e.text,placement:"top",arrow:!0,children:r.jsx(o.ResourceIconItem,{size:t,role:"button",tabIndex:0,"aria-label":e.text,children:e.icon})},`info-${a}`))})]})]})}));module.exports=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { Box as h, Stack as b, Tooltip as x } from "@mui/material";
|
|
3
|
-
import { c as f } from "../../createSvgIcon-
|
|
3
|
+
import { c as f } from "../../createSvgIcon-Cd6y8E9W.js";
|
|
4
4
|
import { StyledCard as g, SelectedIcon as y, ResourceCardImage as P, ResourceCardBody as R, ResourcePropertyItem as I, ResourcePropertyText as D, PublicIconWrapper as $, ResourceIconItem as v } from "./style.es.js";
|
|
5
5
|
import w from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
6
6
|
const S = f(/* @__PURE__ */ r("path", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),n=require("../../DefaultPropsProvider-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("../../DefaultPropsProvider-PRhNsS_3.cjs"),o=require("../../InputBase-BXcShs87.cjs"),s=require("../../InputAdornment-CLIvW7Gk.cjs"),u=require("../../createSvgIcon-CWNQW6u6.cjs"),a=u.createSvgIcon(t.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),c=n.styled(o.InputBase)(({theme:e})=>({width:"auto",padding:"0px 12px",backgroundColor:e.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}})),p=({placeholder:e="Rechercher",...r})=>t.jsx(c,{...r,placeholder:e,startAdornment:t.jsx(s.InputAdornment,{position:"start",disablePointerEvents:!0,children:t.jsx(a,{})}),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});module.exports=p;
|