@cgi-learning-hub/ui 1.11.1-dev.1765209149 → 1.11.1-dev.1765288172
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/index.cjs.js +128 -105
- package/dist/index.d.ts +36 -38
- package/dist/index.es.js +128 -105
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5,11 +5,9 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const react = require("@emotion/react");
|
|
6
6
|
const emStyled = require("@emotion/styled");
|
|
7
7
|
const ReactDOM = require("react-dom");
|
|
8
|
-
const material = require("@mui/material");
|
|
9
8
|
const reactColor = require("react-color");
|
|
10
9
|
const dayjs = require("dayjs");
|
|
11
10
|
const reactDropzone = require("react-dropzone");
|
|
12
|
-
const iconsMaterial = require("@mui/icons-material");
|
|
13
11
|
function _interopNamespaceDefault(e) {
|
|
14
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
15
13
|
if (e) {
|
|
@@ -42707,10 +42705,7 @@ const StyledButton = styled(Button$1)(({ color: color2, theme }) => {
|
|
|
42707
42705
|
}
|
|
42708
42706
|
};
|
|
42709
42707
|
});
|
|
42710
|
-
const Button2 = ({
|
|
42711
|
-
variant = "outlined",
|
|
42712
|
-
...otherProps
|
|
42713
|
-
}) => {
|
|
42708
|
+
const Button2 = ({ variant = "outlined", ...otherProps }) => {
|
|
42714
42709
|
return /* @__PURE__ */ jsxRuntime.jsx(StyledButton, { variant, ...otherProps });
|
|
42715
42710
|
};
|
|
42716
42711
|
const Root = styled(Stack, {
|
|
@@ -42777,7 +42772,7 @@ const ActionBar = ({
|
|
|
42777
42772
|
rightActions,
|
|
42778
42773
|
slotProps = {}
|
|
42779
42774
|
}) => {
|
|
42780
|
-
const theme =
|
|
42775
|
+
const theme = useTheme();
|
|
42781
42776
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root, { direction: "row", justifyContent: "space-between", ...slotProps.root, children: [
|
|
42782
42777
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42783
42778
|
LeftActionsContainer,
|
|
@@ -43199,10 +43194,7 @@ process.env.NODE_ENV !== "production" ? Alert$1.propTypes = {
|
|
|
43199
43194
|
*/
|
|
43200
43195
|
variant: PropTypes.oneOfType([PropTypes.oneOf(["filled", "outlined", "standard"]), PropTypes.string])
|
|
43201
43196
|
} : void 0;
|
|
43202
|
-
const Alert2 = ({
|
|
43203
|
-
severity = "success",
|
|
43204
|
-
...otherProps
|
|
43205
|
-
}) => {
|
|
43197
|
+
const Alert2 = ({ severity = "success", ...otherProps }) => {
|
|
43206
43198
|
const theme = useTheme();
|
|
43207
43199
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
43208
43200
|
Alert$1,
|
|
@@ -43224,7 +43216,7 @@ const Alert2 = ({
|
|
|
43224
43216
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
43225
43217
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
43226
43218
|
}), "CheckRounded");
|
|
43227
|
-
const PickerBackgroundBox =
|
|
43219
|
+
const PickerBackgroundBox = styled(Box)(
|
|
43228
43220
|
({ disabled }) => ({
|
|
43229
43221
|
width: "4.4rem",
|
|
43230
43222
|
height: "4.4rem",
|
|
@@ -43254,7 +43246,7 @@ const checkmarkSwatchBox = {
|
|
|
43254
43246
|
gap: "5px",
|
|
43255
43247
|
width: "15rem"
|
|
43256
43248
|
};
|
|
43257
|
-
const StyledSwatchBox =
|
|
43249
|
+
const StyledSwatchBox = styled(Box)(
|
|
43258
43250
|
({ showBorder = false, backgroundColor: backgroundColor2 }) => ({
|
|
43259
43251
|
width: 20,
|
|
43260
43252
|
height: 20,
|
|
@@ -43413,7 +43405,7 @@ const ColorPicker = ({
|
|
|
43413
43405
|
const currentOption = normalizedOptions.find((opt) => opt.color === value);
|
|
43414
43406
|
const colorStrings = normalizedOptions.map((opt) => opt.color);
|
|
43415
43407
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43416
|
-
|
|
43408
|
+
ClickAwayListener,
|
|
43417
43409
|
{
|
|
43418
43410
|
onClickAway: handleClose,
|
|
43419
43411
|
...slotProps?.clickAwayListener,
|
|
@@ -43433,13 +43425,13 @@ const ColorPicker = ({
|
|
|
43433
43425
|
}
|
|
43434
43426
|
),
|
|
43435
43427
|
isCirclePickerVisible && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43436
|
-
|
|
43428
|
+
Box,
|
|
43437
43429
|
{
|
|
43438
43430
|
sx: {
|
|
43439
43431
|
...circlePickerStyle,
|
|
43440
43432
|
...slotProps?.circlePickerBox?.sx || {}
|
|
43441
43433
|
},
|
|
43442
|
-
children: useCheckmarkSwatch ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
43434
|
+
children: useCheckmarkSwatch ? /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: checkmarkSwatchBox, children: normalizedOptions.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
43443
43435
|
CheckmarkSwatch,
|
|
43444
43436
|
{
|
|
43445
43437
|
color: option.color,
|
|
@@ -56694,7 +56686,7 @@ const Dialog2 = ({
|
|
|
56694
56686
|
const handleClose = () => otherProps.onClose?.({}, "escapeKeyDown");
|
|
56695
56687
|
return /* @__PURE__ */ jsxRuntime.jsxs(Dialog$1, { ...otherProps, children: [
|
|
56696
56688
|
showCloseButton ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56697
|
-
|
|
56689
|
+
IconButton,
|
|
56698
56690
|
{
|
|
56699
56691
|
"aria-label": "close",
|
|
56700
56692
|
onClick: handleClose,
|
|
@@ -56710,12 +56702,12 @@ const Dialog2 = ({
|
|
|
56710
56702
|
children
|
|
56711
56703
|
] });
|
|
56712
56704
|
};
|
|
56713
|
-
const
|
|
56714
|
-
d: "
|
|
56715
|
-
}), "
|
|
56716
|
-
const
|
|
56717
|
-
d: "
|
|
56718
|
-
}), "
|
|
56705
|
+
const FileUploadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56706
|
+
d: "M7.4 10h1.59v5c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-5h1.59c.89 0 1.34-1.08.71-1.71L12.7 3.7a.996.996 0 0 0-1.41 0L6.7 8.29c-.63.63-.19 1.71.7 1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"
|
|
56707
|
+
}), "FileUploadRounded");
|
|
56708
|
+
const UploadFileRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56709
|
+
d: "m19.41 7.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.42M14.8 15H13v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H9.21c-.45 0-.67-.54-.35-.85l2.8-2.79c.2-.19.51-.19.71 0l2.79 2.79c.3.31.08.85-.36.85M14 9c-.55 0-1-.45-1-1V3.5L18.5 9z"
|
|
56710
|
+
}), "UploadFileRounded");
|
|
56719
56711
|
const Dropzone = ({
|
|
56720
56712
|
defaultLabel = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
|
|
56721
56713
|
dragLabel = "Déposer les fichiers ici",
|
|
@@ -56747,10 +56739,10 @@ const Dropzone = ({
|
|
|
56747
56739
|
children: [
|
|
56748
56740
|
/* @__PURE__ */ jsxRuntime.jsx("input", { ...getInputProps(), ...slotProps.input }),
|
|
56749
56741
|
isDragActive ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
56750
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56742
|
+
/* @__PURE__ */ jsxRuntime.jsx(FileUploadRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56751
56743
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { ...slotProps.label, children: dragLabel })
|
|
56752
56744
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
56753
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56745
|
+
/* @__PURE__ */ jsxRuntime.jsx(UploadFileRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56754
56746
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { ...slotProps.label, children: defaultLabel }),
|
|
56755
56747
|
information ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body2", color: "grey", ...slotProps.information, children: information }) : null
|
|
56756
56748
|
] })
|
|
@@ -56861,44 +56853,71 @@ const EmptyState = ({
|
|
|
56861
56853
|
}
|
|
56862
56854
|
);
|
|
56863
56855
|
};
|
|
56856
|
+
const DownloadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56857
|
+
d: "M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"
|
|
56858
|
+
}), "DownloadRounded");
|
|
56859
|
+
const CalendarViewMonthRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56860
|
+
d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
|
|
56861
|
+
}), "CalendarViewMonthRounded");
|
|
56862
|
+
const DescriptionOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56863
|
+
d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
|
|
56864
|
+
}), "DescriptionOutlined");
|
|
56865
|
+
const InsertDriveFileOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56866
|
+
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-2V8zM6 20V4h7v5h5v11z"
|
|
56867
|
+
}), "InsertDriveFileOutlined");
|
|
56868
|
+
const MovieOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56869
|
+
d: "M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"
|
|
56870
|
+
}), "MovieOutlined");
|
|
56871
|
+
const MusicNoteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56872
|
+
d: "M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"
|
|
56873
|
+
}), "MusicNoteRounded");
|
|
56874
|
+
const OndemandVideoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56875
|
+
d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"
|
|
56876
|
+
}), "OndemandVideoRounded");
|
|
56877
|
+
const PhotoOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56878
|
+
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
|
|
56879
|
+
}), "PhotoOutlined");
|
|
56880
|
+
const PictureAsPdfOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56881
|
+
d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"
|
|
56882
|
+
}), "PictureAsPdfOutlined");
|
|
56864
56883
|
const FileIcon = ({ extension }) => {
|
|
56865
56884
|
switch (extension.toUpperCase()) {
|
|
56866
56885
|
case "MP3":
|
|
56867
56886
|
case "MIDI":
|
|
56868
56887
|
case "WAV":
|
|
56869
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56888
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MusicNoteRoundedIcon, {});
|
|
56870
56889
|
case "JPG":
|
|
56871
56890
|
case "JPEG":
|
|
56872
56891
|
case "PNG":
|
|
56873
56892
|
case "SVG":
|
|
56874
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56893
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PhotoOutlinedIcon, {});
|
|
56875
56894
|
case "MP4":
|
|
56876
56895
|
case "MOV":
|
|
56877
56896
|
case "AVI":
|
|
56878
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56897
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MovieOutlinedIcon, {});
|
|
56879
56898
|
case "CSV":
|
|
56880
56899
|
case "ODS":
|
|
56881
56900
|
case "XLS":
|
|
56882
56901
|
case "XLSX":
|
|
56883
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56902
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CalendarViewMonthRoundedIcon, {});
|
|
56884
56903
|
case "PDF":
|
|
56885
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56904
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PictureAsPdfOutlinedIcon, {});
|
|
56886
56905
|
case "ODT":
|
|
56887
56906
|
case "DOC":
|
|
56888
56907
|
case "DOCX":
|
|
56889
56908
|
case "TXT":
|
|
56890
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DescriptionOutlinedIcon, {});
|
|
56891
56910
|
case "ODP":
|
|
56892
56911
|
case "PPT":
|
|
56893
56912
|
case "PPTX":
|
|
56894
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56913
|
+
return /* @__PURE__ */ jsxRuntime.jsx(OndemandVideoRoundedIcon, {});
|
|
56895
56914
|
default:
|
|
56896
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56915
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InsertDriveFileOutlinedIcon, {});
|
|
56897
56916
|
}
|
|
56898
56917
|
};
|
|
56899
56918
|
const FileInfosSeparator = () => {
|
|
56900
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56901
|
-
|
|
56919
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, { height: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56920
|
+
Stack,
|
|
56902
56921
|
{
|
|
56903
56922
|
height: "4px",
|
|
56904
56923
|
width: "4px",
|
|
@@ -56918,7 +56937,7 @@ const displayExtension = (name) => {
|
|
|
56918
56937
|
const extension = name.split(".").pop();
|
|
56919
56938
|
return extension ? extension.toUpperCase() : null;
|
|
56920
56939
|
};
|
|
56921
|
-
const ClickableItem =
|
|
56940
|
+
const ClickableItem = styled(ListItemButton)(
|
|
56922
56941
|
({ isClickable }) => ({
|
|
56923
56942
|
"&:hover": {
|
|
56924
56943
|
boxShadow: isClickable ? "0 4px 8px rgba(192, 192, 192, 0.3)" : "none",
|
|
@@ -56957,11 +56976,11 @@ const FileListItem = ({
|
|
|
56957
56976
|
onDownload?.(file);
|
|
56958
56977
|
};
|
|
56959
56978
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56960
|
-
|
|
56979
|
+
ListItem,
|
|
56961
56980
|
{
|
|
56962
|
-
secondaryAction: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56963
|
-
file.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56964
|
-
file.isDeletable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
56981
|
+
secondaryAction: /* @__PURE__ */ jsxRuntime.jsxs(Box, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
56982
|
+
file.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(Box, { marginRight: 1, children: /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: 24, color: "primary" }) }) : file.isDownloadable ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: handleDownload, children: /* @__PURE__ */ jsxRuntime.jsx(DownloadRoundedIcon, { color: "primary" }) }) : null,
|
|
56983
|
+
file.isDeletable && /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: handleDelete, id: "coucou", children: /* @__PURE__ */ jsxRuntime.jsx(CloseRoundedIcon, {}) })
|
|
56965
56984
|
] }),
|
|
56966
56985
|
disablePadding: true,
|
|
56967
56986
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -56986,7 +57005,7 @@ const FileListItem = ({
|
|
|
56986
57005
|
backgroundColor: "grey.light"
|
|
56987
57006
|
},
|
|
56988
57007
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56989
|
-
|
|
57008
|
+
Box,
|
|
56990
57009
|
{
|
|
56991
57010
|
color: "text.secondary",
|
|
56992
57011
|
alignItems: "center",
|
|
@@ -57038,7 +57057,7 @@ const FileList = ({
|
|
|
57038
57057
|
onClick,
|
|
57039
57058
|
onDownload
|
|
57040
57059
|
}) => {
|
|
57041
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57060
|
+
return /* @__PURE__ */ jsxRuntime.jsx(List, { sx: { display: "flex", flexDirection: "column" }, children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57042
57061
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57043
57062
|
FileListItem,
|
|
57044
57063
|
{
|
|
@@ -57049,16 +57068,16 @@ const FileList = ({
|
|
|
57049
57068
|
},
|
|
57050
57069
|
index
|
|
57051
57070
|
),
|
|
57052
|
-
index < files.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
57071
|
+
index < files.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(Divider, { variant: "middle" })
|
|
57053
57072
|
] })) });
|
|
57054
57073
|
};
|
|
57055
|
-
const
|
|
57056
|
-
d: "M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
|
|
57057
|
-
}), "
|
|
57058
|
-
const
|
|
57074
|
+
const FolderRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57075
|
+
d: "M10.59 4.59C10.21 4.21 9.7 4 9.17 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
|
|
57076
|
+
}), "FolderRounded");
|
|
57077
|
+
const MoreVertRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57059
57078
|
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"
|
|
57060
|
-
}), "
|
|
57061
|
-
const StyledCard =
|
|
57079
|
+
}), "MoreVertRounded");
|
|
57080
|
+
const StyledCard = styled(Card)(({ selected, size, theme }) => ({
|
|
57062
57081
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",
|
|
57063
57082
|
borderRadius: "0.5rem",
|
|
57064
57083
|
height: "auto",
|
|
@@ -57079,7 +57098,7 @@ const StyledCard = material.styled(material.Card)(({ selected, size, theme }) =>
|
|
|
57079
57098
|
}
|
|
57080
57099
|
}
|
|
57081
57100
|
}));
|
|
57082
|
-
const SelectedIcon =
|
|
57101
|
+
const SelectedIcon = styled(Box)(({ selected, hasNoButtonOnFocus, theme }) => ({
|
|
57083
57102
|
position: "absolute",
|
|
57084
57103
|
top: 0,
|
|
57085
57104
|
right: 0,
|
|
@@ -57115,7 +57134,7 @@ const SelectedIcon = material.styled(material.Box)(({ selected, hasNoButtonOnFoc
|
|
|
57115
57134
|
color: theme.palette.primary.main
|
|
57116
57135
|
}
|
|
57117
57136
|
}));
|
|
57118
|
-
const ResourceCardImage =
|
|
57137
|
+
const ResourceCardImage = styled(CardMedia)(({ size, image, defaultImage }) => ({
|
|
57119
57138
|
height: size == "sm" ? 85 : 180,
|
|
57120
57139
|
width: size == "sm" ? 85 : "calc(100% - 2rem)",
|
|
57121
57140
|
objectFit: "cover",
|
|
@@ -57129,11 +57148,11 @@ const ResourceCardImage = material.styled(material.CardMedia)(({ size, image, de
|
|
|
57129
57148
|
opacity: "0.7"
|
|
57130
57149
|
}
|
|
57131
57150
|
}));
|
|
57132
|
-
const ResourceCardBody =
|
|
57151
|
+
const ResourceCardBody = styled(CardContent)(({ size }) => ({
|
|
57133
57152
|
padding: size == "sm" ? ".7rem 5px .7rem 0 !important" : "0 16px 16px 16px !important",
|
|
57134
57153
|
width: size === "sm" ? "calc(100% - 110px)" : "100%"
|
|
57135
57154
|
}));
|
|
57136
|
-
const ResourcePropertyItem =
|
|
57155
|
+
const ResourcePropertyItem = styled(Box)(
|
|
57137
57156
|
({ size }) => ({
|
|
57138
57157
|
display: "flex",
|
|
57139
57158
|
alignItems: "center",
|
|
@@ -57146,7 +57165,7 @@ const ResourcePropertyItem = material.styled(material.Box)(
|
|
|
57146
57165
|
}
|
|
57147
57166
|
})
|
|
57148
57167
|
);
|
|
57149
|
-
const ResourcePropertyText =
|
|
57168
|
+
const ResourcePropertyText = styled(Box)(({ size, width: width2, isLast }) => ({
|
|
57150
57169
|
marginLeft: size === "sm" ? ".3rem" : ".5rem",
|
|
57151
57170
|
fontSize: size === "sm" ? "12px" : "15px",
|
|
57152
57171
|
"& .MuiTypography-root": {
|
|
@@ -57160,7 +57179,7 @@ const ResourcePropertyText = material.styled(material.Box)(({ size, width: width
|
|
|
57160
57179
|
maxWidth: size === "sm" ? "110px" : "172px"
|
|
57161
57180
|
}
|
|
57162
57181
|
}));
|
|
57163
|
-
const ResourceIconItem =
|
|
57182
|
+
const ResourceIconItem = styled(Box)(
|
|
57164
57183
|
({ size }) => ({
|
|
57165
57184
|
display: "inline-flex",
|
|
57166
57185
|
alignItems: "center",
|
|
@@ -57175,7 +57194,7 @@ const ResourceIconItem = material.styled(material.Box)(
|
|
|
57175
57194
|
}
|
|
57176
57195
|
})
|
|
57177
57196
|
);
|
|
57178
|
-
const PublicIconWrapper =
|
|
57197
|
+
const PublicIconWrapper = styled(Box)(
|
|
57179
57198
|
({ size }) => ({
|
|
57180
57199
|
position: "absolute",
|
|
57181
57200
|
bottom: size === "sm" ? ".65rem" : "16px",
|
|
@@ -57234,7 +57253,7 @@ const FolderCard = ({
|
|
|
57234
57253
|
const handleKeyPress = (e) => {
|
|
57235
57254
|
return e.key === "Enter" || e.key === " ";
|
|
57236
57255
|
};
|
|
57237
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57256
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { width: width2 }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57238
57257
|
StyledCard,
|
|
57239
57258
|
{
|
|
57240
57259
|
selected: isSelected,
|
|
@@ -57272,19 +57291,19 @@ const FolderCard = ({
|
|
|
57272
57291
|
"aria-label": isSelected ? "Unselect folder" : "Select folder",
|
|
57273
57292
|
"aria-pressed": isSelected,
|
|
57274
57293
|
hasNoButtonOnFocus,
|
|
57275
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57294
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertRoundedIcon, {})
|
|
57276
57295
|
}
|
|
57277
57296
|
),
|
|
57278
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57279
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57280
|
-
|
|
57297
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CardContent, { sx: FolderBodyStyle, children: [
|
|
57298
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { fontSize: iconSize, sx: IconContainerStyle, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57299
|
+
FolderRoundedIcon,
|
|
57281
57300
|
{
|
|
57282
57301
|
color: "primary",
|
|
57283
57302
|
sx: FolderIconStyle,
|
|
57284
57303
|
"aria-hidden": "true"
|
|
57285
57304
|
}
|
|
57286
57305
|
) }),
|
|
57287
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57306
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: TextContainerStyle, children: [
|
|
57288
57307
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57289
57308
|
EllipsisWithTooltip,
|
|
57290
57309
|
{
|
|
@@ -57352,26 +57371,26 @@ const Heading = ({
|
|
|
57352
57371
|
}
|
|
57353
57372
|
);
|
|
57354
57373
|
};
|
|
57355
|
-
const
|
|
57356
|
-
d: "
|
|
57357
|
-
}), "
|
|
57358
|
-
const
|
|
57359
|
-
d: "M3 17.
|
|
57360
|
-
}), "
|
|
57361
|
-
const
|
|
57362
|
-
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-
|
|
57363
|
-
}), "
|
|
57374
|
+
const AddPhotoAlternateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57375
|
+
d: "M21.02 5H19V2.98c0-.54-.44-.98-.98-.98h-.03c-.55 0-.99.44-.99.98V5h-2.01c-.54 0-.98.44-.99.98v.03c0 .55.44.99.99.99H17v2.01c0 .54.44.99.99.98h.03c.54 0 .98-.44.98-.98V7h2.02c.54 0 .98-.44.98-.98v-.04c0-.54-.44-.98-.98-.98M16 9.01V8h-1.01c-.53 0-1.03-.21-1.41-.58-.37-.38-.58-.88-.58-1.44 0-.36.1-.69.27-.98H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8.28c-.3.17-.64.28-1.02.28-1.09-.01-1.98-.9-1.98-1.99M15.96 19H6c-.41 0-.65-.47-.4-.8l1.98-2.63c.21-.28.62-.26.82.02L10 18l2.61-3.48c.2-.26.59-.27.79-.01l2.95 3.68c.26.33.03.81-.39.81"
|
|
57376
|
+
}), "AddPhotoAlternateRounded");
|
|
57377
|
+
const CreateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57378
|
+
d: "M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1q-.15.15-.15.36M20.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"
|
|
57379
|
+
}), "CreateRounded");
|
|
57380
|
+
const DeleteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57381
|
+
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM18 4h-2.5l-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1"
|
|
57382
|
+
}), "DeleteRounded");
|
|
57364
57383
|
const ImagePickerDefaultLabel = () => /* @__PURE__ */ jsxRuntime.jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57365
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57384
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
57366
57385
|
" ",
|
|
57367
57386
|
"ou",
|
|
57368
57387
|
" ",
|
|
57369
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57388
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
57370
57389
|
" ",
|
|
57371
57390
|
"pour choisir une image"
|
|
57372
57391
|
] });
|
|
57373
57392
|
const ImagePickerDefaultDragLabel = () => /* @__PURE__ */ jsxRuntime.jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57374
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57393
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
57375
57394
|
" ",
|
|
57376
57395
|
"une image"
|
|
57377
57396
|
] });
|
|
@@ -57446,7 +57465,7 @@ const ImagePicker = ({
|
|
|
57446
57465
|
/* @__PURE__ */ jsxRuntime.jsx("input", { ...getInputProps() }),
|
|
57447
57466
|
!currentFile ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: isDragActive && !disabled ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57448
57467
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57449
|
-
|
|
57468
|
+
AddPhotoAlternateRoundedIcon,
|
|
57450
57469
|
{
|
|
57451
57470
|
color: "primary",
|
|
57452
57471
|
style: {
|
|
@@ -57458,7 +57477,7 @@ const ImagePicker = ({
|
|
|
57458
57477
|
dragLabel,
|
|
57459
57478
|
information && /* @__PURE__ */ jsxRuntime.jsx(Typography, { textAlign: "center", fontSize: "12px", color: "grey", children: information })
|
|
57460
57479
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57461
|
-
|
|
57480
|
+
Box,
|
|
57462
57481
|
{
|
|
57463
57482
|
sx: {
|
|
57464
57483
|
display: "flex",
|
|
@@ -57469,7 +57488,7 @@ const ImagePicker = ({
|
|
|
57469
57488
|
},
|
|
57470
57489
|
children: [
|
|
57471
57490
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57472
|
-
|
|
57491
|
+
AddPhotoAlternateRoundedIcon,
|
|
57473
57492
|
{
|
|
57474
57493
|
color: "primary",
|
|
57475
57494
|
style: {
|
|
@@ -57484,7 +57503,7 @@ const ImagePicker = ({
|
|
|
57484
57503
|
}
|
|
57485
57504
|
) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57486
57505
|
!disabled && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57487
|
-
|
|
57506
|
+
Box,
|
|
57488
57507
|
{
|
|
57489
57508
|
sx: {
|
|
57490
57509
|
position: "absolute",
|
|
@@ -57495,7 +57514,7 @@ const ImagePicker = ({
|
|
|
57495
57514
|
},
|
|
57496
57515
|
children: [
|
|
57497
57516
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57498
|
-
|
|
57517
|
+
Box,
|
|
57499
57518
|
{
|
|
57500
57519
|
onClick: handleEdit,
|
|
57501
57520
|
sx: {
|
|
@@ -57515,11 +57534,11 @@ const ImagePicker = ({
|
|
|
57515
57534
|
}
|
|
57516
57535
|
}
|
|
57517
57536
|
},
|
|
57518
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57537
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CreateRoundedIcon, { fontSize: "small" })
|
|
57519
57538
|
}
|
|
57520
57539
|
),
|
|
57521
57540
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57522
|
-
|
|
57541
|
+
Box,
|
|
57523
57542
|
{
|
|
57524
57543
|
onClick: handleDelete,
|
|
57525
57544
|
sx: {
|
|
@@ -57539,7 +57558,7 @@ const ImagePicker = ({
|
|
|
57539
57558
|
}
|
|
57540
57559
|
}
|
|
57541
57560
|
},
|
|
57542
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57561
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DeleteRoundedIcon, { fontSize: "small" })
|
|
57543
57562
|
}
|
|
57544
57563
|
)
|
|
57545
57564
|
]
|
|
@@ -57630,9 +57649,7 @@ const StyledLoaderBackdropInner = styled(Box)({
|
|
|
57630
57649
|
"100%": { opacity: 0, transform: "translateX(300px)" }
|
|
57631
57650
|
}
|
|
57632
57651
|
});
|
|
57633
|
-
const LoaderBackdrop = ({
|
|
57634
|
-
slotProps = {}
|
|
57635
|
-
}) => {
|
|
57652
|
+
const LoaderBackdrop = ({ slotProps = {} }) => {
|
|
57636
57653
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57637
57654
|
Backdrop,
|
|
57638
57655
|
{
|
|
@@ -57648,6 +57665,12 @@ const LoaderBackdrop = ({
|
|
|
57648
57665
|
}
|
|
57649
57666
|
);
|
|
57650
57667
|
};
|
|
57668
|
+
const VisibilityOffRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57669
|
+
d: "M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24M2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0M12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5m2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64z"
|
|
57670
|
+
}), "VisibilityOffRounded");
|
|
57671
|
+
const VisibilityRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57672
|
+
d: "M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 12.5c-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"
|
|
57673
|
+
}), "VisibilityRounded");
|
|
57651
57674
|
const PasswordInput = (props) => {
|
|
57652
57675
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
57653
57676
|
const handleClickShowPassword = () => setShowPassword((show) => !show);
|
|
@@ -57668,7 +57691,7 @@ const PasswordInput = (props) => {
|
|
|
57668
57691
|
onClick: handleClickShowPassword,
|
|
57669
57692
|
onMouseDown: handleMouseDownPassword,
|
|
57670
57693
|
edge: "end",
|
|
57671
|
-
children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57694
|
+
children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(VisibilityRoundedIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(VisibilityOffRoundedIcon, {})
|
|
57672
57695
|
}
|
|
57673
57696
|
) })
|
|
57674
57697
|
}
|
|
@@ -58524,7 +58547,7 @@ const ResourceCard = ({
|
|
|
58524
58547
|
hasNoButtonOnFocus = false
|
|
58525
58548
|
}) => {
|
|
58526
58549
|
infoIcons = infoIcons.slice(0, 3);
|
|
58527
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58550
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { width: width2 && size === "md" ? width2 : "320px" }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58528
58551
|
StyledCard,
|
|
58529
58552
|
{
|
|
58530
58553
|
selected: isSelected,
|
|
@@ -58561,11 +58584,11 @@ const ResourceCard = ({
|
|
|
58561
58584
|
tabIndex: 0,
|
|
58562
58585
|
"aria-label": isSelected ? "Unselect card" : "Select card",
|
|
58563
58586
|
hasNoButtonOnFocus,
|
|
58564
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
58587
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertRoundedIcon, {})
|
|
58565
58588
|
}
|
|
58566
58589
|
),
|
|
58567
58590
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58568
|
-
|
|
58591
|
+
Stack,
|
|
58569
58592
|
{
|
|
58570
58593
|
sx: {
|
|
58571
58594
|
width: size == "sm" ? 110 : "100%",
|
|
@@ -58617,7 +58640,7 @@ const ResourceCard = ({
|
|
|
58617
58640
|
`property-${index}`
|
|
58618
58641
|
)),
|
|
58619
58642
|
/* @__PURE__ */ jsxRuntime.jsx(PublicIconWrapper, { size, children: infoIcons.length > 0 && infoIcons.map((infoItem, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
58620
|
-
|
|
58643
|
+
Tooltip,
|
|
58621
58644
|
{
|
|
58622
58645
|
title: infoItem.text,
|
|
58623
58646
|
placement: "top",
|
|
@@ -63367,14 +63390,14 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
63367
63390
|
*/
|
|
63368
63391
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
63369
63392
|
} : void 0;
|
|
63370
|
-
const
|
|
63371
|
-
d: "
|
|
63372
|
-
}), "
|
|
63373
|
-
const
|
|
63374
|
-
d: "
|
|
63375
|
-
}), "
|
|
63393
|
+
const KeyboardArrowDownRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63394
|
+
d: "M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"
|
|
63395
|
+
}), "KeyboardArrowDownRounded");
|
|
63396
|
+
const KeyboardArrowRightRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63397
|
+
d: "M9.29 15.88 13.17 12 9.29 8.12a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42"
|
|
63398
|
+
}), "KeyboardArrowRightRounded");
|
|
63376
63399
|
const DEFAULT_CHILDREN_INDENT = "50px";
|
|
63377
|
-
const TreeContainer =
|
|
63400
|
+
const TreeContainer = styled(Box, {
|
|
63378
63401
|
shouldForwardProp: (prop) => prop !== "maxHeight"
|
|
63379
63402
|
})(({ maxHeight: maxHeight2 }) => ({
|
|
63380
63403
|
maxHeight: typeof maxHeight2 === "number" ? `${maxHeight2}px` : maxHeight2,
|
|
@@ -63404,9 +63427,9 @@ const iconStyle = {
|
|
|
63404
63427
|
width: "24px",
|
|
63405
63428
|
height: "24px"
|
|
63406
63429
|
};
|
|
63407
|
-
const
|
|
63430
|
+
const ShareRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63408
63431
|
d: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"
|
|
63409
|
-
}), "
|
|
63432
|
+
}), "ShareRounded");
|
|
63410
63433
|
var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
63411
63434
|
ICON_TYPE2["FOLDER"] = "FOLDER";
|
|
63412
63435
|
ICON_TYPE2["SHARE"] = "SHARE";
|
|
@@ -63415,18 +63438,18 @@ var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
|
63415
63438
|
return ICON_TYPE2;
|
|
63416
63439
|
})(ICON_TYPE || {});
|
|
63417
63440
|
const getIconComponent = (iconType, customIcon) => {
|
|
63418
|
-
if (!iconType) return
|
|
63441
|
+
if (!iconType) return FolderRoundedIcon;
|
|
63419
63442
|
if (typeof iconType !== "string") return iconType;
|
|
63420
63443
|
switch (iconType) {
|
|
63421
63444
|
case ICON_TYPE.SHARE:
|
|
63422
|
-
return
|
|
63445
|
+
return ShareRoundedIcon;
|
|
63423
63446
|
case ICON_TYPE.TRASH:
|
|
63424
|
-
return
|
|
63447
|
+
return DeleteRoundedIcon;
|
|
63425
63448
|
case ICON_TYPE.CUSTOM:
|
|
63426
|
-
return customIcon ||
|
|
63449
|
+
return customIcon || FolderRoundedIcon;
|
|
63427
63450
|
case ICON_TYPE.FOLDER:
|
|
63428
63451
|
default:
|
|
63429
|
-
return
|
|
63452
|
+
return FolderRoundedIcon;
|
|
63430
63453
|
}
|
|
63431
63454
|
};
|
|
63432
63455
|
const getItemId = (item) => item.internalId;
|
|
@@ -63505,7 +63528,7 @@ function CustomTreeItem(props) {
|
|
|
63505
63528
|
typographyProps: labelStyle
|
|
63506
63529
|
}
|
|
63507
63530
|
),
|
|
63508
|
-
/* @__PURE__ */ jsxRuntime.jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
63531
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowDownRoundedIcon, { fontSize: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowRightRoundedIcon, { fontSize: "small" })) })
|
|
63509
63532
|
] }),
|
|
63510
63533
|
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
63511
63534
|
TreeItemGroupTransition,
|