@cgi-learning-hub/ui 1.3.4 → 1.3.5-dev.1736343971
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Backdrop-CvufxHMY.cjs +1 -0
- package/dist/{Backdrop-BlKt7y1x.js → Backdrop-DcDd6WZF.js} +13 -13
- package/dist/{Box-DErdbtsw.js → Box-Byz2BwGf.js} +10 -10
- package/dist/Box-mP2Th61z.cjs +1 -0
- package/dist/Button-BH9MUvmz.cjs +1 -0
- package/dist/{Button-CiqVGfRs.js → Button-BnNYfQ3E.js} +153 -119
- package/dist/ButtonBase-BXtyQVDC.cjs +74 -0
- package/dist/{ButtonBase-DUPJVOlc.js → ButtonBase-DAWDecOk.js} +42 -41
- package/dist/{Card-mGRk1RuE.js → Card-AJG0TUOx.js} +3 -3
- package/dist/Card-NqCXQteq.cjs +1 -0
- package/dist/{Checkbox-aJ1r7ufI.js → Checkbox-8Rhxpkjl.js} +23 -22
- package/dist/Checkbox-DYrDbdy1.cjs +1 -0
- package/dist/CircularProgress-BByrCLjv.cjs +28 -0
- package/dist/{CircularProgress-CfODO7vI.js → CircularProgress-Kwlef5fX.js} +14 -13
- package/dist/DatePicker-7-4p3Vtj.cjs +14 -0
- package/dist/{DatePicker-Dyf9Vhld.js → DatePicker-BS1OatwQ.js} +549 -546
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +17 -0
- package/dist/DefaultPropsProvider-CvJPQJmL.js +454 -0
- package/dist/{Delete-BOQTx9ze.js → Delete-BkZN7Xu5.js} +1 -1
- package/dist/{Delete-DyzDL8-Y.cjs → Delete-D1EiKoL5.cjs} +1 -1
- package/dist/Dialog-D_lS4J_M.js +415 -0
- package/dist/Dialog-yOrNcHbG.cjs +1 -0
- package/dist/DialogContent-Dj_OjLZ6.cjs +1 -0
- package/dist/DialogContent-uc65XOEU.js +194 -0
- package/dist/DialogTitle-BboPDaoB.cjs +1 -0
- package/dist/{DialogTitle-AQ-YU9PH.js → DialogTitle-C8JOi-rq.js} +43 -42
- package/dist/Divider-CcrM3lNn.cjs +1 -0
- package/dist/{Divider-C0R1SUa4.js → Divider-KO-E6nU8.js} +8 -8
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +1 -0
- package/dist/{FormControlLabel-w-X91z27.js → FormControlLabel-BmrKQtQA.js} +17 -16
- package/dist/{FormGroup-6NoANcYk.js → FormGroup-CbczEc6e.js} +12 -12
- package/dist/FormGroup-Y3P2AG0i.cjs +1 -0
- package/dist/{FormLabel-CoLJ9tA8.js → FormLabel-CfR4bb21.js} +6 -5
- package/dist/FormLabel-D1uvEhsH.cjs +2 -0
- package/dist/{Grow-SW33sONG.js → Grow-CQVPAYvp.js} +13 -13
- package/dist/Grow-CUBJs6WD.cjs +1 -0
- package/dist/IconButton-CJfzspZK.cjs +2 -0
- package/dist/{IconButton-DjeMTpI5.js → IconButton-CekuyD4r.js} +13 -12
- package/dist/InputAdornment-Cq0WhPxF.cjs +1 -0
- package/dist/{InputAdornment-ByiVSgFT.js → InputAdornment-iU5YnveW.js} +16 -15
- package/dist/{InputBase-CvU0-Zg6.js → InputBase-BJy3wwFB.js} +28 -26
- package/dist/InputBase-s1fk8TB4.cjs +3 -0
- package/dist/Link-CWczkFp0.cjs +1 -0
- package/dist/{Link-Dmwt9wxb.js → Link-CoQuUM0t.js} +11 -10
- package/dist/Menu-Bsx8PA-q.cjs +7 -0
- package/dist/{Menu-4U27Dst1.js → Menu-C7tKmcAh.js} +63 -61
- package/dist/MenuItem-BZ_EVaBq.cjs +1 -0
- package/dist/{MenuItem-CqPsuuC1.js → MenuItem-j8luVUcX.js} +7 -7
- package/dist/Modal-DImrEpYJ.cjs +2 -0
- package/dist/{Modal-D_mqYIr2.js → Modal-brWBFdK7.js} +76 -74
- package/dist/{Paper-D973Ow-i.js → Paper-BG4Vk_Um.js} +4 -4
- package/dist/Paper-Cr56xkCr.cjs +2 -0
- package/dist/{Popper-B8oNZqtn.js → Popper-DFZ_gRev.js} +240 -239
- package/dist/Popper-YT5WAMV-.cjs +4 -0
- package/dist/Portal-DF0RKOcD.cjs +1 -0
- package/dist/{Portal-BKbBRbWN.js → Portal-JEwcozmp.js} +3 -3
- package/dist/Radio-CVAEGXKi.cjs +1 -0
- package/dist/{Radio-BrzQH9pY.js → Radio-DGhot3Cd.js} +21 -20
- package/dist/Select-CwAWNiiv.cjs +3 -0
- package/dist/{Select-CgAPAUTr.js → Select-DmssuG5M.js} +62 -60
- package/dist/{Stack-CYXQpKS2.js → Stack-BzTJdRGj.js} +105 -60
- package/dist/Stack-Yq6rb7iK.cjs +1 -0
- package/dist/SwitchBase-DjIY_KWB.cjs +1 -0
- package/dist/{SwitchBase-CGa9A6SL.js → SwitchBase-Dlth5_F7.js} +38 -37
- package/dist/{TableSortLabel-hvz89Dvu.js → TableSortLabel-BsgRD4k4.js} +1289 -1268
- package/dist/TableSortLabel-D0N3e3cP.cjs +98 -0
- package/dist/{Tabs-BPI2IyPx.js → Tabs-CYbeTnJk.js} +292 -289
- package/dist/Tabs-KG4VWw-1.cjs +4 -0
- package/dist/TextField-BI9KVqjC.cjs +1 -0
- package/dist/{TextField-C4nIxR_t.js → TextField-Cri5Gxa7.js} +20 -19
- package/dist/{Tooltip-Bdrv-e2a.js → Tooltip-BhAHhzKz.js} +32 -30
- package/dist/Tooltip-DhDtvULK.cjs +4 -0
- package/dist/{Typography-CUdlQxLM.js → Typography-DBwTr_ix.js} +13 -12
- package/dist/Typography-DfRMDngd.cjs +1 -0
- package/dist/capitalize-B3GG7Wn6.cjs +1 -0
- package/dist/capitalize-CkF8kU4n.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +101 -136
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.es.js +28 -0
- package/dist/components/Dialog/index.cjs.js +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.es.js +4 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +9 -0
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +44 -0
- package/dist/components/EllipsisWithTooltip/index.cjs.js +1 -0
- package/dist/components/EllipsisWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisWithTooltip/index.es.js +4 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +7 -7
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +29 -28
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.es.js +228 -220
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +26 -14
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +1 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +6 -0
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +36 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +69 -68
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -1
- package/dist/components/stories/ImagePicker.stories.es.js +13 -6
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +6 -6
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +9 -9
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon--rEClVU7.cjs +1 -0
- package/dist/{createSvgIcon-CVd3Lo1D.js → createSvgIcon-C8nGcfF4.js} +6 -5
- package/dist/dividerClasses-CCAY3Pnr.cjs +1 -0
- package/dist/{dividerClasses-kN_Ky2Bl.js → dividerClasses-nh2-hkQB.js} +1 -1
- package/dist/{elementTypeAcceptingRef-modXfN2G.js → elementTypeAcceptingRef-D-5kcohU.js} +1 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +1 -0
- package/dist/{extendSxProp-CHv0k-C6.js → extendSxProp-C2ff0oGc.js} +1 -1
- package/dist/extendSxProp-apyK-EBz.cjs +1 -0
- package/dist/{fr-rmVQsNbI.js → fr-Bjufn3RW.js} +84 -84
- package/dist/{fr-ChrHtTbj.cjs → fr-JE-1WKP6.cjs} +1 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +59 -0
- package/dist/{identifier-Bn0tF6ls.js → generateUtilityClasses-Bssl7BA_.js} +898 -872
- package/dist/index-Aa73Kpym.cjs +1 -0
- package/dist/{index-CVpJYeY2.js → index-BCnPLuqJ.js} +23 -22
- package/dist/index-ChM1Ett8.cjs +5 -0
- package/dist/index-Cw0GDedk.cjs +17 -0
- package/dist/{index-BNojWn2E.js → index-CwvpOCso.js} +29 -29
- package/dist/index-DXD5J5Eu.js +186 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +228 -220
- package/dist/{memoTheme-BPA1FjB4.cjs → memoTheme-Bdg0Y_2O.cjs} +1 -1
- package/dist/{memoTheme-CMJVTZEg.js → memoTheme-D7Fyh_3C.js} +1 -1
- package/dist/mergeSlotProps-DuV-LTW7.cjs +1 -0
- package/dist/{resolveComponentProps-DHoZOPOi.js → mergeSlotProps-tUJEcwVu.js} +7 -7
- package/dist/refType-CoaxQOPt.cjs +1 -0
- package/dist/refType-DKYKROQk.js +5 -0
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +1 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useEventCallback-C0-Qw3Sm.cjs +1 -0
- package/dist/{useSlot-t9oGnIgq.js → useSlot-BTpHG6jf.js} +1 -1
- package/dist/useSlot-CByalpSD.cjs +1 -0
- package/dist/useSlotProps-B31YQlzb.js +45 -0
- package/dist/useSlotProps-BVSAQTNl.cjs +1 -0
- package/dist/useTheme-Cy5kyKJF.cjs +1 -0
- package/dist/useTheme-Dukx-__T.cjs +1 -0
- package/dist/useTheme-DyaNKf4e.js +11 -0
- package/dist/{useTheme-CBsFvF7I.js → useTheme-_xyy-wul.js} +1 -1
- package/dist/{useThemeProps-5Bku71LW.js → useThemeProps-BySkSe-M.js} +2 -2
- package/dist/useThemeProps-CdV_QwDl.cjs +1 -0
- package/dist/{useThemeProps-I9EHeqzU.js → useThemeProps-CwEQ4bv2.js} +3 -3
- package/dist/{useThemeProps-C692LOYf.cjs → useThemeProps-u_ESzK2f.cjs} +1 -1
- package/dist/useTimeout-COCrDKz-.cjs +1 -0
- package/dist/useTimeout-CrCYVizI.js +42 -0
- package/dist/{utils-CE_a8glN.js → utils-C6c4fj7D.js} +41 -41
- package/dist/utils-vmyQ2IaS.cjs +1 -0
- package/package.json +1 -1
- package/dist/Backdrop-vSE8W9jq.cjs +0 -1
- package/dist/Box-DMYs7NTb.cjs +0 -1
- package/dist/Button-D3dbHQM1.cjs +0 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +0 -74
- package/dist/Card-Cnh4u4kb.cjs +0 -1
- package/dist/Checkbox-s_RdgUlw.cjs +0 -1
- package/dist/CircularProgress-DHgcUb1c.cjs +0 -28
- package/dist/DatePicker-juzW4bLC.cjs +0 -14
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +0 -17
- package/dist/DefaultPropsProvider-xJkZOrdv.js +0 -487
- package/dist/DialogContent-D1KFPXhr.js +0 -602
- package/dist/DialogContent-Dphl2SKX.cjs +0 -1
- package/dist/DialogTitle-C8AdXsDz.cjs +0 -1
- package/dist/Divider-Bdp8beK-.cjs +0 -1
- package/dist/FormControlLabel-BlO93LTi.cjs +0 -1
- package/dist/FormGroup-D0zSGn42.cjs +0 -1
- package/dist/FormLabel-BkiH7wl7.cjs +0 -2
- package/dist/Grow-DfACa72Q.cjs +0 -1
- package/dist/IconButton-DRs0xB4z.cjs +0 -2
- package/dist/InputAdornment-B1pggfEX.cjs +0 -1
- package/dist/InputBase-Xfjv-RYp.cjs +0 -3
- package/dist/Link-Z_UCBvgV.cjs +0 -1
- package/dist/Menu-DREdNbqu.cjs +0 -7
- package/dist/MenuItem-CN75Du-9.cjs +0 -1
- package/dist/Modal-DWqBsogu.cjs +0 -2
- package/dist/Paper-CjMuucS5.cjs +0 -2
- package/dist/Popper-hzM0y1hA.cjs +0 -4
- package/dist/Portal-Bv2VRYHH.cjs +0 -1
- package/dist/Radio-DxbXYNhR.cjs +0 -1
- package/dist/Select-CL4E8NNL.cjs +0 -3
- package/dist/Stack-WrITLr1B.cjs +0 -1
- package/dist/SwitchBase-Cqh9rxOh.cjs +0 -1
- package/dist/TableSortLabel-mAzX4tAl.cjs +0 -98
- package/dist/Tabs-BNqwYd2G.cjs +0 -4
- package/dist/TextField-Dy0Iblqt.cjs +0 -1
- package/dist/Tooltip-vg27N3PU.cjs +0 -4
- package/dist/Typography-BF9bdWxl.cjs +0 -1
- package/dist/createSvgIcon-BMmqQ2z0.cjs +0 -1
- package/dist/dividerClasses-CyDs_RPD.cjs +0 -1
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +0 -1
- package/dist/extendSxProp-6YOo46ig.cjs +0 -1
- package/dist/identifier-Dax8VlUh.cjs +0 -59
- package/dist/index-C5dNuV-2.cjs +0 -5
- package/dist/index-D3PBNx_m.cjs +0 -1
- package/dist/index-OLlWw08I.cjs +0 -1
- package/dist/index-waINWr3i.js +0 -45
- package/dist/refType-BmrOFNz6.js +0 -7
- package/dist/refType-Dm84STBj.cjs +0 -1
- package/dist/resolveComponentProps-4nhUsl3a.cjs +0 -1
- package/dist/useSlot-CJAXUvYJ.cjs +0 -1
- package/dist/useTheme-BIogn5Me.cjs +0 -1
- package/dist/useTheme-Bz4LKMiC.cjs +0 -1
- package/dist/useTheme-L3EQmvnN.js +0 -11
- package/dist/useThemeProps-DNFKz8wS.cjs +0 -1
- package/dist/useTimeout-3Y5y4gWq.js +0 -53
- package/dist/useTimeout-CxOQget6.cjs +0 -1
- package/dist/utils-CusX8Edy.cjs +0 -1
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { s as g,
|
|
1
|
+
import { jsxs as S, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as g, u as T, c as w } from "../../DefaultPropsProvider-CvJPQJmL.js";
|
|
3
3
|
import * as P from "react";
|
|
4
|
-
import { I as
|
|
5
|
-
import { B as z, a as O } from "../../Button-
|
|
6
|
-
import { m as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import { I as M, H as R, P as t } from "../../generateUtilityClasses-Bssl7BA_.js";
|
|
5
|
+
import { B as z, a as O, r as j } from "../../Button-BnNYfQ3E.js";
|
|
6
|
+
import { m as v } from "../../memoTheme-D7Fyh_3C.js";
|
|
7
|
+
import { c } from "../../capitalize-CkF8kU4n.js";
|
|
8
|
+
import { u as U } from "../../useId-CK6Kn3Tn.js";
|
|
9
|
+
import { c as N } from "../../chainPropTypes-D9lkm76m.js";
|
|
10
|
+
import { C as W } from "../../CircularProgress-Kwlef5fX.js";
|
|
11
|
+
function D(o) {
|
|
12
|
+
return R("MuiLoadingButton", o);
|
|
12
13
|
}
|
|
13
|
-
const a =
|
|
14
|
+
const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), F = (o) => {
|
|
14
15
|
const {
|
|
15
|
-
loading:
|
|
16
|
+
loading: n,
|
|
16
17
|
loadingPosition: i,
|
|
17
18
|
classes: e
|
|
18
|
-
} =
|
|
19
|
-
root: ["root",
|
|
19
|
+
} = o, u = {
|
|
20
|
+
root: ["root", n && "loading"],
|
|
20
21
|
label: ["label"],
|
|
21
|
-
startIcon: [
|
|
22
|
-
endIcon: [
|
|
23
|
-
loadingIndicator: ["loadingIndicator",
|
|
24
|
-
}, d =
|
|
22
|
+
startIcon: [n && `startIconLoading${c(i)}`],
|
|
23
|
+
endIcon: [n && `endIconLoading${c(i)}`],
|
|
24
|
+
loadingIndicator: ["loadingIndicator", n && `loadingIndicator${c(i)}`]
|
|
25
|
+
}, d = w(u, D, 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
|
+
}, H = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", k = g(z, {
|
|
32
|
+
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
32
33
|
name: "MuiLoadingButton",
|
|
33
34
|
slot: "Root",
|
|
34
|
-
overridesResolver: (
|
|
35
|
-
[`& .${a.startIconLoadingStart}`]:
|
|
36
|
-
},
|
|
37
|
-
[`& .${a.endIconLoadingEnd}`]:
|
|
35
|
+
overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
|
|
36
|
+
[`& .${a.startIconLoadingStart}`]: n.startIconLoadingStart
|
|
37
|
+
}, n.endIconLoadingEnd && {
|
|
38
|
+
[`& .${a.endIconLoadingEnd}`]: n.endIconLoadingEnd
|
|
38
39
|
}]
|
|
39
|
-
})(
|
|
40
|
-
theme:
|
|
40
|
+
})(v(({
|
|
41
|
+
theme: o
|
|
41
42
|
}) => ({
|
|
42
43
|
display: "inline-flex",
|
|
43
44
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
44
|
-
transition:
|
|
45
|
-
duration:
|
|
45
|
+
transition: o.transitions.create(["opacity"], {
|
|
46
|
+
duration: o.transitions.duration.short
|
|
46
47
|
}),
|
|
47
48
|
opacity: 0
|
|
48
49
|
},
|
|
@@ -51,8 +52,8 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
51
52
|
loadingPosition: "center"
|
|
52
53
|
},
|
|
53
54
|
style: {
|
|
54
|
-
transition:
|
|
55
|
-
duration:
|
|
55
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
56
|
+
duration: o.transitions.duration.short
|
|
56
57
|
}),
|
|
57
58
|
[`&.${a.loading}`]: {
|
|
58
59
|
color: "transparent"
|
|
@@ -60,12 +61,12 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
60
61
|
}
|
|
61
62
|
}, {
|
|
62
63
|
props: ({
|
|
63
|
-
ownerState:
|
|
64
|
-
}) =>
|
|
64
|
+
ownerState: n
|
|
65
|
+
}) => n.loadingPosition === "start" && n.fullWidth,
|
|
65
66
|
style: {
|
|
66
67
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
67
|
-
transition:
|
|
68
|
-
duration:
|
|
68
|
+
transition: o.transitions.create(["opacity"], {
|
|
69
|
+
duration: o.transitions.duration.short
|
|
69
70
|
}),
|
|
70
71
|
opacity: 0,
|
|
71
72
|
marginRight: -8
|
|
@@ -73,12 +74,12 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
73
74
|
}
|
|
74
75
|
}, {
|
|
75
76
|
props: ({
|
|
76
|
-
ownerState:
|
|
77
|
-
}) =>
|
|
77
|
+
ownerState: n
|
|
78
|
+
}) => n.loadingPosition === "end" && n.fullWidth,
|
|
78
79
|
style: {
|
|
79
80
|
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
80
|
-
transition:
|
|
81
|
-
duration:
|
|
81
|
+
transition: o.transitions.create(["opacity"], {
|
|
82
|
+
duration: o.transitions.duration.short
|
|
82
83
|
}),
|
|
83
84
|
opacity: 0,
|
|
84
85
|
marginLeft: -8
|
|
@@ -88,14 +89,14 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
88
89
|
}))), G = g("span", {
|
|
89
90
|
name: "MuiLoadingButton",
|
|
90
91
|
slot: "LoadingIndicator",
|
|
91
|
-
overridesResolver: (
|
|
92
|
+
overridesResolver: (o, n) => {
|
|
92
93
|
const {
|
|
93
94
|
ownerState: i
|
|
94
|
-
} =
|
|
95
|
-
return [
|
|
95
|
+
} = o;
|
|
96
|
+
return [n.loadingIndicator, n[`loadingIndicator${c(i.loadingPosition)}`]];
|
|
96
97
|
}
|
|
97
|
-
})(
|
|
98
|
-
theme:
|
|
98
|
+
})(v(({
|
|
99
|
+
theme: o
|
|
99
100
|
}) => ({
|
|
100
101
|
position: "absolute",
|
|
101
102
|
visibility: "visible",
|
|
@@ -110,9 +111,9 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
110
111
|
}
|
|
111
112
|
}, {
|
|
112
113
|
props: ({
|
|
113
|
-
loadingPosition:
|
|
114
|
+
loadingPosition: n,
|
|
114
115
|
ownerState: i
|
|
115
|
-
}) =>
|
|
116
|
+
}) => n === "start" && i.size !== "small",
|
|
116
117
|
style: {
|
|
117
118
|
left: 14
|
|
118
119
|
}
|
|
@@ -131,7 +132,7 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
131
132
|
style: {
|
|
132
133
|
left: "50%",
|
|
133
134
|
transform: "translate(-50%)",
|
|
134
|
-
color: (
|
|
135
|
+
color: (o.vars || o).palette.action.disabled
|
|
135
136
|
}
|
|
136
137
|
}, {
|
|
137
138
|
props: {
|
|
@@ -143,9 +144,9 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
143
144
|
}
|
|
144
145
|
}, {
|
|
145
146
|
props: ({
|
|
146
|
-
loadingPosition:
|
|
147
|
+
loadingPosition: n,
|
|
147
148
|
ownerState: i
|
|
148
|
-
}) =>
|
|
149
|
+
}) => n === "end" && i.size !== "small",
|
|
149
150
|
style: {
|
|
150
151
|
right: 14
|
|
151
152
|
}
|
|
@@ -159,72 +160,72 @@ const a = T("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator",
|
|
|
159
160
|
}
|
|
160
161
|
}, {
|
|
161
162
|
props: ({
|
|
162
|
-
ownerState:
|
|
163
|
-
}) =>
|
|
163
|
+
ownerState: n
|
|
164
|
+
}) => n.loadingPosition === "start" && n.fullWidth,
|
|
164
165
|
style: {
|
|
165
166
|
position: "relative",
|
|
166
167
|
left: -10
|
|
167
168
|
}
|
|
168
169
|
}, {
|
|
169
170
|
props: ({
|
|
170
|
-
ownerState:
|
|
171
|
-
}) =>
|
|
171
|
+
ownerState: n
|
|
172
|
+
}) => n.loadingPosition === "end" && n.fullWidth,
|
|
172
173
|
style: {
|
|
173
174
|
position: "relative",
|
|
174
175
|
right: -10
|
|
175
176
|
}
|
|
176
177
|
}]
|
|
177
|
-
}))),
|
|
178
|
+
}))), h = g("span", {
|
|
178
179
|
name: "MuiLoadingButton",
|
|
179
180
|
slot: "Label",
|
|
180
|
-
overridesResolver: (
|
|
181
|
+
overridesResolver: (o, n) => [n.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(O), u =
|
|
186
|
+
}), B = /* @__PURE__ */ P.forwardRef(function(n, i) {
|
|
187
|
+
const e = P.useContext(O), u = j(e, n), d = T({
|
|
187
188
|
props: u,
|
|
188
189
|
name: "MuiLoadingButton"
|
|
189
190
|
}), {
|
|
190
|
-
children:
|
|
191
|
+
children: f,
|
|
191
192
|
disabled: I = !1,
|
|
192
|
-
id:
|
|
193
|
+
id: x,
|
|
193
194
|
loading: p = !1,
|
|
194
|
-
loadingIndicator:
|
|
195
|
-
loadingPosition:
|
|
196
|
-
variant:
|
|
197
|
-
...
|
|
198
|
-
} = d,
|
|
199
|
-
"aria-labelledby":
|
|
195
|
+
loadingIndicator: $,
|
|
196
|
+
loadingPosition: C = "center",
|
|
197
|
+
variant: m = "text",
|
|
198
|
+
...E
|
|
199
|
+
} = d, L = U(x), b = $ ?? /* @__PURE__ */ r(W, {
|
|
200
|
+
"aria-labelledby": L,
|
|
200
201
|
color: "inherit",
|
|
201
202
|
size: 16
|
|
202
|
-
}),
|
|
203
|
+
}), s = {
|
|
203
204
|
...d,
|
|
204
205
|
disabled: I,
|
|
205
206
|
loading: p,
|
|
206
|
-
loadingIndicator:
|
|
207
|
-
loadingPosition:
|
|
208
|
-
variant:
|
|
209
|
-
}, l =
|
|
207
|
+
loadingIndicator: b,
|
|
208
|
+
loadingPosition: C,
|
|
209
|
+
variant: m
|
|
210
|
+
}, l = F(s), y = p ? /* @__PURE__ */ r(G, {
|
|
210
211
|
className: l.loadingIndicator,
|
|
211
|
-
ownerState:
|
|
212
|
-
children:
|
|
212
|
+
ownerState: s,
|
|
213
|
+
children: b
|
|
213
214
|
}) : null;
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
+
return /* @__PURE__ */ S(k, {
|
|
215
216
|
disabled: I || p,
|
|
216
|
-
id:
|
|
217
|
+
id: L,
|
|
217
218
|
ref: i,
|
|
218
|
-
...
|
|
219
|
-
variant:
|
|
219
|
+
...E,
|
|
220
|
+
variant: m,
|
|
220
221
|
classes: l,
|
|
221
|
-
ownerState:
|
|
222
|
-
children: [
|
|
222
|
+
ownerState: s,
|
|
223
|
+
children: [s.loadingPosition === "end" ? /* @__PURE__ */ r(h, {
|
|
223
224
|
className: l.label,
|
|
224
|
-
children:
|
|
225
|
-
}) :
|
|
225
|
+
children: f
|
|
226
|
+
}) : y, s.loadingPosition === "end" ? y : /* @__PURE__ */ r(h, {
|
|
226
227
|
className: l.label,
|
|
227
|
-
children:
|
|
228
|
+
children: f
|
|
228
229
|
})]
|
|
229
230
|
});
|
|
230
231
|
});
|
|
@@ -236,99 +237,63 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
236
237
|
/**
|
|
237
238
|
* The content of the component.
|
|
238
239
|
*/
|
|
239
|
-
children:
|
|
240
|
+
children: t.node,
|
|
240
241
|
/**
|
|
241
242
|
* Override or extend the styles applied to the component.
|
|
242
243
|
*/
|
|
243
|
-
classes:
|
|
244
|
+
classes: t.object,
|
|
244
245
|
/**
|
|
245
246
|
* If `true`, the component is disabled.
|
|
246
247
|
* @default false
|
|
247
248
|
*/
|
|
248
|
-
disabled:
|
|
249
|
+
disabled: t.bool,
|
|
249
250
|
/**
|
|
250
251
|
* @ignore
|
|
251
252
|
*/
|
|
252
|
-
id:
|
|
253
|
+
id: t.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: t.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: t.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: N(t.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
|
|
270
271
|
/**
|
|
271
272
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
272
273
|
*/
|
|
273
|
-
sx:
|
|
274
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
274
275
|
/**
|
|
275
276
|
* The variant to use.
|
|
276
277
|
* @default 'text'
|
|
277
278
|
*/
|
|
278
|
-
variant:
|
|
279
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
279
280
|
});
|
|
280
|
-
const V = g(B)(({ color:
|
|
281
|
-
justifyContent: "center",
|
|
282
|
-
alignItems: "center",
|
|
281
|
+
const V = g(B)(({ color: o, theme: n }) => ({
|
|
283
282
|
minHeight: 38,
|
|
284
283
|
textTransform: "none",
|
|
285
|
-
color: t,
|
|
286
|
-
borderColor: t,
|
|
287
|
-
borderRadius: 5,
|
|
288
|
-
borderWidth: 2,
|
|
289
284
|
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
290
|
-
"&.MuiButton-contained": {
|
|
291
|
-
color: o.palette.common.white
|
|
292
|
-
},
|
|
293
285
|
"&.MuiButton-outlined": {
|
|
294
286
|
borderRadius: 5,
|
|
295
|
-
borderWidth: 2
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
},
|
|
301
|
-
"&:hover": {
|
|
302
|
-
backgroundColor: o.palette.primary.dark,
|
|
303
|
-
borderColor: o.palette.primary.dark,
|
|
304
|
-
color: o.palette.common.white
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
"&.MuiButton-colorSecondary": {
|
|
308
|
-
"&:active": {
|
|
309
|
-
borderColor: o.palette.secondary.main,
|
|
310
|
-
color: o.palette.secondary.main
|
|
311
|
-
},
|
|
312
|
-
"&:hover": {
|
|
313
|
-
backgroundColor: o.palette.secondary.main,
|
|
314
|
-
color: o.palette.common.white
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"&.MuiButton-colorError": {
|
|
318
|
-
"&:active": {
|
|
319
|
-
borderColor: o.palette.error.main,
|
|
320
|
-
color: o.palette.error.main
|
|
321
|
-
},
|
|
322
|
-
"&:hover": {
|
|
323
|
-
backgroundColor: o.palette.error.main,
|
|
324
|
-
color: o.palette.common.white
|
|
325
|
-
}
|
|
326
|
-
}
|
|
287
|
+
borderWidth: 2
|
|
288
|
+
/* "&:hover": {
|
|
289
|
+
//backgroundColor: theme.palette[color].main,
|
|
290
|
+
color: theme.palette.common.white,
|
|
291
|
+
},*/
|
|
327
292
|
}
|
|
328
|
-
})),
|
|
329
|
-
variant:
|
|
330
|
-
...
|
|
331
|
-
}) => /* @__PURE__ */
|
|
293
|
+
})), oo = ({
|
|
294
|
+
variant: o = "outlined",
|
|
295
|
+
...n
|
|
296
|
+
}) => /* @__PURE__ */ r(V, { variant: o, ...n });
|
|
332
297
|
export {
|
|
333
|
-
|
|
298
|
+
oo as default
|
|
334
299
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");require("../../fr-
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../createSvgIcon--rEClVU7.cjs"),i=require("@mui/material"),a=require("../../Dialog-yOrNcHbG.cjs"),u=t.createSvgIcon(n.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),r=({children:s,showCloseButton:l=!0,...e})=>{const o=()=>{var c;return(c=e.onClose)==null?void 0:c.call(e,{},"escapeKeyDown")};return n.jsxs(a.Dialog,{...e,children:[l?n.jsx(i.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:16,top:16},children:n.jsx(u,{})}):null,s]})};module.exports=r;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../createSvgIcon-C8nGcfF4.js";
|
|
3
|
+
import { IconButton as t } from "@mui/material";
|
|
4
|
+
import { D as i } from "../../Dialog-D_lS4J_M.js";
|
|
5
|
+
const d = s(/* @__PURE__ */ l("path", {
|
|
6
|
+
d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
|
|
7
|
+
}), "CloseRounded"), g = ({
|
|
8
|
+
children: e,
|
|
9
|
+
showCloseButton: a = !0,
|
|
10
|
+
...o
|
|
11
|
+
}) => /* @__PURE__ */ c(i, { ...o, children: [
|
|
12
|
+
a ? /* @__PURE__ */ l(
|
|
13
|
+
t,
|
|
14
|
+
{
|
|
15
|
+
"aria-label": "close",
|
|
16
|
+
onClick: () => {
|
|
17
|
+
var n;
|
|
18
|
+
return (n = o.onClose) == null ? void 0 : n.call(o, {}, "escapeKeyDown");
|
|
19
|
+
},
|
|
20
|
+
sx: { position: "absolute", right: 16, top: 16 },
|
|
21
|
+
children: /* @__PURE__ */ l(d, {})
|
|
22
|
+
}
|
|
23
|
+
) : null,
|
|
24
|
+
e
|
|
25
|
+
] });
|
|
26
|
+
export {
|
|
27
|
+
g as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Dialog.cjs.js");exports.Dialog=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon--rEClVU7.cjs"),d=require("../../index-ChM1Ett8.cjs"),a=require("../../Stack-Yq6rb7iK.cjs"),r=require("../../Typography-DfRMDngd.cjs"),h=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),u=s.createSvgIcon(e.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),g=({defaultLabel:c="Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",dragLabel:i="Déposer les fichiers ici",information:o,...n})=>{const{getRootProps:t,getInputProps:p,isDragActive:l}=d.useDropzone(n);return e.jsxs(a.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:"18rem",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...t(),children:[e.jsx("input",{...p()}),l?e.jsxs(e.Fragment,{children:[e.jsx(h,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../createSvgIcon-
|
|
3
|
-
import { u as h } from "../../index-
|
|
4
|
-
import { S as m } from "../../Stack-
|
|
5
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { c as s } from "../../createSvgIcon-C8nGcfF4.js";
|
|
3
|
+
import { u as h } from "../../index-CwvpOCso.js";
|
|
4
|
+
import { S as m } from "../../Stack-BzTJdRGj.js";
|
|
5
|
+
import { T as o } from "../../Typography-DBwTr_ix.js";
|
|
6
6
|
const u = s(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
8
8
|
}), "FileUpload"), g = s(/* @__PURE__ */ r("path", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),x=({children:r,tooltipProps:l,typographyProps:c})=>{const[u,f]=t.useState(!1),e=t.useRef(null);return t.useEffect(()=>{const s=()=>{if(e.current){const{scrollWidth:p,clientWidth:a}=e.current;f(p>a)}},i=new ResizeObserver(()=>{s()});return e.current&&i.observe(e.current),s(),()=>{e.current&&i.unobserve(e.current)}},[]),n.jsx(o.Tooltip,{disableHoverListener:!u,title:r,...l,children:n.jsx(o.Typography,{ref:e,noWrap:!0,overflow:"hidden",textOverflow:"ellipsis",...c,children:r})})};module.exports=x;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TooltipProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
export type EllipsisWithTooltipProps = {
|
|
4
|
+
tooltipProps?: Omit<TooltipProps, "children" | "title">;
|
|
5
|
+
typographyProps?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const EllipsisWithTooltip: FC<EllipsisWithTooltipProps>;
|
|
9
|
+
export default EllipsisWithTooltip;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as p, Typography as d } from "@mui/material";
|
|
3
|
+
import { useState as a, useRef as v, useEffect as h } from "react";
|
|
4
|
+
const E = ({
|
|
5
|
+
children: t,
|
|
6
|
+
tooltipProps: o,
|
|
7
|
+
typographyProps: l
|
|
8
|
+
}) => {
|
|
9
|
+
const [n, c] = a(!1), e = v(null);
|
|
10
|
+
return h(() => {
|
|
11
|
+
const r = () => {
|
|
12
|
+
if (e.current) {
|
|
13
|
+
const { scrollWidth: f, clientWidth: u } = e.current;
|
|
14
|
+
c(f > u);
|
|
15
|
+
}
|
|
16
|
+
}, s = new ResizeObserver(() => {
|
|
17
|
+
r();
|
|
18
|
+
});
|
|
19
|
+
return e.current && s.observe(e.current), r(), () => {
|
|
20
|
+
e.current && s.unobserve(e.current);
|
|
21
|
+
};
|
|
22
|
+
}, []), /* @__PURE__ */ i(
|
|
23
|
+
p,
|
|
24
|
+
{
|
|
25
|
+
disableHoverListener: !n,
|
|
26
|
+
title: t,
|
|
27
|
+
...o,
|
|
28
|
+
children: /* @__PURE__ */ i(
|
|
29
|
+
d,
|
|
30
|
+
{
|
|
31
|
+
ref: e,
|
|
32
|
+
noWrap: !0,
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
textOverflow: "ellipsis",
|
|
35
|
+
...l,
|
|
36
|
+
children: t
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
E as default
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./EllipsisWithTooltip.cjs.js");exports.EllipsisWithTooltip=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-Yq6rb7iK.cjs"),i=require("../../Typography-DfRMDngd.cjs"),u=({svgName:n,title:s,description:e,descriptionProps:o,svgProps:c,titleProps:a,...h})=>{const{Svg:r}=l.useLazySvgImport(n);return r?t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"auto",...h,children:[t.jsx("div",{style:{width:200,maxHeight:200},children:t.jsx(r,{width:"100%",height:"100%",preserveAspectRatio:"xMinYMin slice",...c})}),t.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...a,children:s}),e?t.jsx(i.Typography,{color:"grey",mt:2,...o,children:e}):null]}):null};module.exports=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useLazySvgImport as h } from "../../hooks/lazySvgImport.es.js";
|
|
3
|
-
import { S as p } from "../../Stack-
|
|
4
|
-
import { T as i } from "../../Typography-
|
|
3
|
+
import { S as p } from "../../Stack-BzTJdRGj.js";
|
|
4
|
+
import { T as i } from "../../Typography-DBwTr_ix.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
svgName: o,
|
|
7
7
|
title: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-mP2Th61z.cjs"),n=({files:r=[]})=>i.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:r.map((s,e)=>i.jsx(t,{file:s,uploading:e%2===0},e))});module.exports=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import m from "./FileListItem.es.js";
|
|
4
|
-
import { B as e } from "../../Box-
|
|
4
|
+
import { B as e } from "../../Box-Byz2BwGf.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
files: i = []
|
|
7
7
|
}) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),n=require("../../Delete-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),n=require("../../Delete-D1EiKoL5.cjs"),a=require("../../createSvgIcon--rEClVU7.cjs"),u=require("../../Stack-Yq6rb7iK.cjs"),x=require("../../Box-mP2Th61z.cjs"),t=require("../../Typography-DfRMDngd.cjs"),l=require("../../IconButton-CJfzspZK.cjs"),d=require("../../CircularProgress-BByrCLjv.cjs"),h=a.createSvgIcon(r.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),j=({file:e,uploading:c,onDelete:s})=>{const i=`${e.size} octets`,o=()=>s==null?void 0:s(e);return r.jsxs(u.Stack,{direction:"row",alignItems:"center",spacing:2,children:[r.jsx(h,{color:"primary"}),r.jsxs(x.Box,{sx:{width:"100%"},children:[r.jsx(t.Typography,{children:e.name}),r.jsx(t.Typography,{fontSize:"0.875rem",color:"grey",children:i})]}),r.jsx(l.IconButton,{onClick:o,disabled:c,children:c?r.jsx(d.CircularProgress,{size:24}):r.jsx(n.DeleteIcon,{})})]})};module.exports=j;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { D as n } from "../../Delete-
|
|
3
|
-
import { c as a } from "../../createSvgIcon-
|
|
4
|
-
import { S as p } from "../../Stack-
|
|
5
|
-
import { B as d } from "../../Box-
|
|
6
|
-
import { T as s } from "../../Typography-
|
|
7
|
-
import { I as l } from "../../IconButton-
|
|
8
|
-
import { C as I } from "../../CircularProgress-
|
|
2
|
+
import { D as n } from "../../Delete-BkZN7Xu5.js";
|
|
3
|
+
import { c as a } from "../../createSvgIcon-C8nGcfF4.js";
|
|
4
|
+
import { S as p } from "../../Stack-BzTJdRGj.js";
|
|
5
|
+
import { B as d } from "../../Box-Byz2BwGf.js";
|
|
6
|
+
import { T as s } from "../../Typography-DBwTr_ix.js";
|
|
7
|
+
import { I as l } from "../../IconButton-CekuyD4r.js";
|
|
8
|
+
import { C as I } from "../../CircularProgress-Kwlef5fX.js";
|
|
9
9
|
const f = a(/* @__PURE__ */ r("path", {
|
|
10
10
|
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
11
11
|
}), "InsertDriveFile"), B = ({
|