@cgi-learning-hub/ui 1.11.1-dev.1765209149 → 1.11.1-dev.1765979370
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 +136 -117
- package/dist/index.d.ts +36 -38
- package/dist/index.es.js +136 -117
- 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, {
|
|
@@ -42741,8 +42736,6 @@ const LeftAction = styled(Button2, {
|
|
|
42741
42736
|
color: theme.palette.common.white,
|
|
42742
42737
|
transition: "all 0.2s ease-in-out",
|
|
42743
42738
|
borderRadius: "4px",
|
|
42744
|
-
fontSize: "1rem",
|
|
42745
|
-
fontWeight: 700,
|
|
42746
42739
|
padding: "8px 16px",
|
|
42747
42740
|
"&:hover": {
|
|
42748
42741
|
backgroundColor: theme.palette.primary.dark,
|
|
@@ -42760,8 +42753,6 @@ const RightAction = styled(Button2, {
|
|
|
42760
42753
|
color: theme.palette.common.white,
|
|
42761
42754
|
transition: "all 0.2s ease-in-out",
|
|
42762
42755
|
borderRadius: "4px",
|
|
42763
|
-
fontSize: "1rem",
|
|
42764
|
-
fontWeight: 700,
|
|
42765
42756
|
padding: "8px 16px",
|
|
42766
42757
|
"&:hover": {
|
|
42767
42758
|
backgroundColor: theme.palette.primary.dark,
|
|
@@ -42777,7 +42768,7 @@ const ActionBar = ({
|
|
|
42777
42768
|
rightActions,
|
|
42778
42769
|
slotProps = {}
|
|
42779
42770
|
}) => {
|
|
42780
|
-
const theme =
|
|
42771
|
+
const theme = useTheme();
|
|
42781
42772
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root, { direction: "row", justifyContent: "space-between", ...slotProps.root, children: [
|
|
42782
42773
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42783
42774
|
LeftActionsContainer,
|
|
@@ -43199,10 +43190,7 @@ process.env.NODE_ENV !== "production" ? Alert$1.propTypes = {
|
|
|
43199
43190
|
*/
|
|
43200
43191
|
variant: PropTypes.oneOfType([PropTypes.oneOf(["filled", "outlined", "standard"]), PropTypes.string])
|
|
43201
43192
|
} : void 0;
|
|
43202
|
-
const Alert2 = ({
|
|
43203
|
-
severity = "success",
|
|
43204
|
-
...otherProps
|
|
43205
|
-
}) => {
|
|
43193
|
+
const Alert2 = ({ severity = "success", ...otherProps }) => {
|
|
43206
43194
|
const theme = useTheme();
|
|
43207
43195
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
43208
43196
|
Alert$1,
|
|
@@ -43224,7 +43212,7 @@ const Alert2 = ({
|
|
|
43224
43212
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
43225
43213
|
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
43214
|
}), "CheckRounded");
|
|
43227
|
-
const PickerBackgroundBox =
|
|
43215
|
+
const PickerBackgroundBox = styled(Box)(
|
|
43228
43216
|
({ disabled }) => ({
|
|
43229
43217
|
width: "4.4rem",
|
|
43230
43218
|
height: "4.4rem",
|
|
@@ -43254,7 +43242,7 @@ const checkmarkSwatchBox = {
|
|
|
43254
43242
|
gap: "5px",
|
|
43255
43243
|
width: "15rem"
|
|
43256
43244
|
};
|
|
43257
|
-
const StyledSwatchBox =
|
|
43245
|
+
const StyledSwatchBox = styled(Box)(
|
|
43258
43246
|
({ showBorder = false, backgroundColor: backgroundColor2 }) => ({
|
|
43259
43247
|
width: 20,
|
|
43260
43248
|
height: 20,
|
|
@@ -43413,7 +43401,7 @@ const ColorPicker = ({
|
|
|
43413
43401
|
const currentOption = normalizedOptions.find((opt) => opt.color === value);
|
|
43414
43402
|
const colorStrings = normalizedOptions.map((opt) => opt.color);
|
|
43415
43403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43416
|
-
|
|
43404
|
+
ClickAwayListener,
|
|
43417
43405
|
{
|
|
43418
43406
|
onClickAway: handleClose,
|
|
43419
43407
|
...slotProps?.clickAwayListener,
|
|
@@ -43433,13 +43421,13 @@ const ColorPicker = ({
|
|
|
43433
43421
|
}
|
|
43434
43422
|
),
|
|
43435
43423
|
isCirclePickerVisible && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43436
|
-
|
|
43424
|
+
Box,
|
|
43437
43425
|
{
|
|
43438
43426
|
sx: {
|
|
43439
43427
|
...circlePickerStyle,
|
|
43440
43428
|
...slotProps?.circlePickerBox?.sx || {}
|
|
43441
43429
|
},
|
|
43442
|
-
children: useCheckmarkSwatch ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
43430
|
+
children: useCheckmarkSwatch ? /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: checkmarkSwatchBox, children: normalizedOptions.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
43443
43431
|
CheckmarkSwatch,
|
|
43444
43432
|
{
|
|
43445
43433
|
color: option.color,
|
|
@@ -56694,7 +56682,7 @@ const Dialog2 = ({
|
|
|
56694
56682
|
const handleClose = () => otherProps.onClose?.({}, "escapeKeyDown");
|
|
56695
56683
|
return /* @__PURE__ */ jsxRuntime.jsxs(Dialog$1, { ...otherProps, children: [
|
|
56696
56684
|
showCloseButton ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56697
|
-
|
|
56685
|
+
IconButton,
|
|
56698
56686
|
{
|
|
56699
56687
|
"aria-label": "close",
|
|
56700
56688
|
onClick: handleClose,
|
|
@@ -56710,12 +56698,12 @@ const Dialog2 = ({
|
|
|
56710
56698
|
children
|
|
56711
56699
|
] });
|
|
56712
56700
|
};
|
|
56713
|
-
const
|
|
56714
|
-
d: "
|
|
56715
|
-
}), "
|
|
56716
|
-
const
|
|
56717
|
-
d: "
|
|
56718
|
-
}), "
|
|
56701
|
+
const FileUploadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56702
|
+
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"
|
|
56703
|
+
}), "FileUploadRounded");
|
|
56704
|
+
const UploadFileRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56705
|
+
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"
|
|
56706
|
+
}), "UploadFileRounded");
|
|
56719
56707
|
const Dropzone = ({
|
|
56720
56708
|
defaultLabel = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
|
|
56721
56709
|
dragLabel = "Déposer les fichiers ici",
|
|
@@ -56747,10 +56735,10 @@ const Dropzone = ({
|
|
|
56747
56735
|
children: [
|
|
56748
56736
|
/* @__PURE__ */ jsxRuntime.jsx("input", { ...getInputProps(), ...slotProps.input }),
|
|
56749
56737
|
isDragActive ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
56750
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56738
|
+
/* @__PURE__ */ jsxRuntime.jsx(FileUploadRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56751
56739
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { ...slotProps.label, children: dragLabel })
|
|
56752
56740
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
56753
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
56741
|
+
/* @__PURE__ */ jsxRuntime.jsx(UploadFileRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56754
56742
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { ...slotProps.label, children: defaultLabel }),
|
|
56755
56743
|
information ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body2", color: "grey", ...slotProps.information, children: information }) : null
|
|
56756
56744
|
] })
|
|
@@ -56861,44 +56849,71 @@ const EmptyState = ({
|
|
|
56861
56849
|
}
|
|
56862
56850
|
);
|
|
56863
56851
|
};
|
|
56852
|
+
const DownloadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56853
|
+
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"
|
|
56854
|
+
}), "DownloadRounded");
|
|
56855
|
+
const CalendarViewMonthRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56856
|
+
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"
|
|
56857
|
+
}), "CalendarViewMonthRounded");
|
|
56858
|
+
const DescriptionOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56859
|
+
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"
|
|
56860
|
+
}), "DescriptionOutlined");
|
|
56861
|
+
const InsertDriveFileOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56862
|
+
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"
|
|
56863
|
+
}), "InsertDriveFileOutlined");
|
|
56864
|
+
const MovieOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56865
|
+
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"
|
|
56866
|
+
}), "MovieOutlined");
|
|
56867
|
+
const MusicNoteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56868
|
+
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"
|
|
56869
|
+
}), "MusicNoteRounded");
|
|
56870
|
+
const OndemandVideoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56871
|
+
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"
|
|
56872
|
+
}), "OndemandVideoRounded");
|
|
56873
|
+
const PhotoOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56874
|
+
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"
|
|
56875
|
+
}), "PhotoOutlined");
|
|
56876
|
+
const PictureAsPdfOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
56877
|
+
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"
|
|
56878
|
+
}), "PictureAsPdfOutlined");
|
|
56864
56879
|
const FileIcon = ({ extension }) => {
|
|
56865
56880
|
switch (extension.toUpperCase()) {
|
|
56866
56881
|
case "MP3":
|
|
56867
56882
|
case "MIDI":
|
|
56868
56883
|
case "WAV":
|
|
56869
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MusicNoteRoundedIcon, {});
|
|
56870
56885
|
case "JPG":
|
|
56871
56886
|
case "JPEG":
|
|
56872
56887
|
case "PNG":
|
|
56873
56888
|
case "SVG":
|
|
56874
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56889
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PhotoOutlinedIcon, {});
|
|
56875
56890
|
case "MP4":
|
|
56876
56891
|
case "MOV":
|
|
56877
56892
|
case "AVI":
|
|
56878
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56893
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MovieOutlinedIcon, {});
|
|
56879
56894
|
case "CSV":
|
|
56880
56895
|
case "ODS":
|
|
56881
56896
|
case "XLS":
|
|
56882
56897
|
case "XLSX":
|
|
56883
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56898
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CalendarViewMonthRoundedIcon, {});
|
|
56884
56899
|
case "PDF":
|
|
56885
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56900
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PictureAsPdfOutlinedIcon, {});
|
|
56886
56901
|
case "ODT":
|
|
56887
56902
|
case "DOC":
|
|
56888
56903
|
case "DOCX":
|
|
56889
56904
|
case "TXT":
|
|
56890
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56905
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DescriptionOutlinedIcon, {});
|
|
56891
56906
|
case "ODP":
|
|
56892
56907
|
case "PPT":
|
|
56893
56908
|
case "PPTX":
|
|
56894
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(OndemandVideoRoundedIcon, {});
|
|
56895
56910
|
default:
|
|
56896
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56911
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InsertDriveFileOutlinedIcon, {});
|
|
56897
56912
|
}
|
|
56898
56913
|
};
|
|
56899
56914
|
const FileInfosSeparator = () => {
|
|
56900
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56901
|
-
|
|
56915
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Stack, { height: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56916
|
+
Stack,
|
|
56902
56917
|
{
|
|
56903
56918
|
height: "4px",
|
|
56904
56919
|
width: "4px",
|
|
@@ -56918,7 +56933,7 @@ const displayExtension = (name) => {
|
|
|
56918
56933
|
const extension = name.split(".").pop();
|
|
56919
56934
|
return extension ? extension.toUpperCase() : null;
|
|
56920
56935
|
};
|
|
56921
|
-
const ClickableItem =
|
|
56936
|
+
const ClickableItem = styled(ListItemButton)(
|
|
56922
56937
|
({ isClickable }) => ({
|
|
56923
56938
|
"&:hover": {
|
|
56924
56939
|
boxShadow: isClickable ? "0 4px 8px rgba(192, 192, 192, 0.3)" : "none",
|
|
@@ -56957,11 +56972,11 @@ const FileListItem = ({
|
|
|
56957
56972
|
onDownload?.(file);
|
|
56958
56973
|
};
|
|
56959
56974
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56960
|
-
|
|
56975
|
+
ListItem,
|
|
56961
56976
|
{
|
|
56962
|
-
secondaryAction: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56963
|
-
file.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
56964
|
-
file.isDeletable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
56977
|
+
secondaryAction: /* @__PURE__ */ jsxRuntime.jsxs(Box, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
56978
|
+
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,
|
|
56979
|
+
file.isDeletable && /* @__PURE__ */ jsxRuntime.jsx(IconButton, { onClick: handleDelete, id: "coucou", children: /* @__PURE__ */ jsxRuntime.jsx(CloseRoundedIcon, {}) })
|
|
56965
56980
|
] }),
|
|
56966
56981
|
disablePadding: true,
|
|
56967
56982
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -56986,7 +57001,7 @@ const FileListItem = ({
|
|
|
56986
57001
|
backgroundColor: "grey.light"
|
|
56987
57002
|
},
|
|
56988
57003
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56989
|
-
|
|
57004
|
+
Box,
|
|
56990
57005
|
{
|
|
56991
57006
|
color: "text.secondary",
|
|
56992
57007
|
alignItems: "center",
|
|
@@ -57038,7 +57053,7 @@ const FileList = ({
|
|
|
57038
57053
|
onClick,
|
|
57039
57054
|
onDownload
|
|
57040
57055
|
}) => {
|
|
57041
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57056
|
+
return /* @__PURE__ */ jsxRuntime.jsx(List, { sx: { display: "flex", flexDirection: "column" }, children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57042
57057
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57043
57058
|
FileListItem,
|
|
57044
57059
|
{
|
|
@@ -57049,16 +57064,16 @@ const FileList = ({
|
|
|
57049
57064
|
},
|
|
57050
57065
|
index
|
|
57051
57066
|
),
|
|
57052
|
-
index < files.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
57067
|
+
index < files.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(Divider, { variant: "middle" })
|
|
57053
57068
|
] })) });
|
|
57054
57069
|
};
|
|
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
|
|
57070
|
+
const FolderRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57071
|
+
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"
|
|
57072
|
+
}), "FolderRounded");
|
|
57073
|
+
const MoreVertRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57059
57074
|
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 =
|
|
57075
|
+
}), "MoreVertRounded");
|
|
57076
|
+
const StyledCard = styled(Card)(({ selected, size, theme }) => ({
|
|
57062
57077
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",
|
|
57063
57078
|
borderRadius: "0.5rem",
|
|
57064
57079
|
height: "auto",
|
|
@@ -57079,7 +57094,7 @@ const StyledCard = material.styled(material.Card)(({ selected, size, theme }) =>
|
|
|
57079
57094
|
}
|
|
57080
57095
|
}
|
|
57081
57096
|
}));
|
|
57082
|
-
const SelectedIcon =
|
|
57097
|
+
const SelectedIcon = styled(Box)(({ selected, hasNoButtonOnFocus, theme }) => ({
|
|
57083
57098
|
position: "absolute",
|
|
57084
57099
|
top: 0,
|
|
57085
57100
|
right: 0,
|
|
@@ -57094,19 +57109,19 @@ const SelectedIcon = material.styled(material.Box)(({ selected, hasNoButtonOnFoc
|
|
|
57094
57109
|
visibility: "visible",
|
|
57095
57110
|
opacity: 0,
|
|
57096
57111
|
cursor: "pointer",
|
|
57097
|
-
transition: "opacity 0.2s ease-in-out, visibility 0.2s ease-in-out",
|
|
57112
|
+
transition: "opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, background 0.2s ease-in-out",
|
|
57098
57113
|
...selected && {
|
|
57099
57114
|
background: theme.palette.primary.lighter,
|
|
57100
57115
|
opacity: 1,
|
|
57101
57116
|
visibility: "visible"
|
|
57102
57117
|
},
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57107
|
-
|
|
57108
|
-
|
|
57109
|
-
"&:
|
|
57118
|
+
".MuiCard-root:hover &": {
|
|
57119
|
+
background: theme.palette.primary.lighter,
|
|
57120
|
+
opacity: 1,
|
|
57121
|
+
visibility: "visible"
|
|
57122
|
+
},
|
|
57123
|
+
...!hasNoButtonOnFocus && {
|
|
57124
|
+
"&:focus": {
|
|
57110
57125
|
background: theme.palette.primary.lighter,
|
|
57111
57126
|
opacity: 1
|
|
57112
57127
|
}
|
|
@@ -57115,7 +57130,7 @@ const SelectedIcon = material.styled(material.Box)(({ selected, hasNoButtonOnFoc
|
|
|
57115
57130
|
color: theme.palette.primary.main
|
|
57116
57131
|
}
|
|
57117
57132
|
}));
|
|
57118
|
-
const ResourceCardImage =
|
|
57133
|
+
const ResourceCardImage = styled(CardMedia)(({ size, image, defaultImage }) => ({
|
|
57119
57134
|
height: size == "sm" ? 85 : 180,
|
|
57120
57135
|
width: size == "sm" ? 85 : "calc(100% - 2rem)",
|
|
57121
57136
|
objectFit: "cover",
|
|
@@ -57129,11 +57144,11 @@ const ResourceCardImage = material.styled(material.CardMedia)(({ size, image, de
|
|
|
57129
57144
|
opacity: "0.7"
|
|
57130
57145
|
}
|
|
57131
57146
|
}));
|
|
57132
|
-
const ResourceCardBody =
|
|
57147
|
+
const ResourceCardBody = styled(CardContent)(({ size }) => ({
|
|
57133
57148
|
padding: size == "sm" ? ".7rem 5px .7rem 0 !important" : "0 16px 16px 16px !important",
|
|
57134
57149
|
width: size === "sm" ? "calc(100% - 110px)" : "100%"
|
|
57135
57150
|
}));
|
|
57136
|
-
const ResourcePropertyItem =
|
|
57151
|
+
const ResourcePropertyItem = styled(Box)(
|
|
57137
57152
|
({ size }) => ({
|
|
57138
57153
|
display: "flex",
|
|
57139
57154
|
alignItems: "center",
|
|
@@ -57146,7 +57161,7 @@ const ResourcePropertyItem = material.styled(material.Box)(
|
|
|
57146
57161
|
}
|
|
57147
57162
|
})
|
|
57148
57163
|
);
|
|
57149
|
-
const ResourcePropertyText =
|
|
57164
|
+
const ResourcePropertyText = styled(Box)(({ size, width: width2, isLast }) => ({
|
|
57150
57165
|
marginLeft: size === "sm" ? ".3rem" : ".5rem",
|
|
57151
57166
|
fontSize: size === "sm" ? "12px" : "15px",
|
|
57152
57167
|
"& .MuiTypography-root": {
|
|
@@ -57160,7 +57175,7 @@ const ResourcePropertyText = material.styled(material.Box)(({ size, width: width
|
|
|
57160
57175
|
maxWidth: size === "sm" ? "110px" : "172px"
|
|
57161
57176
|
}
|
|
57162
57177
|
}));
|
|
57163
|
-
const ResourceIconItem =
|
|
57178
|
+
const ResourceIconItem = styled(Box)(
|
|
57164
57179
|
({ size }) => ({
|
|
57165
57180
|
display: "inline-flex",
|
|
57166
57181
|
alignItems: "center",
|
|
@@ -57175,7 +57190,7 @@ const ResourceIconItem = material.styled(material.Box)(
|
|
|
57175
57190
|
}
|
|
57176
57191
|
})
|
|
57177
57192
|
);
|
|
57178
|
-
const PublicIconWrapper =
|
|
57193
|
+
const PublicIconWrapper = styled(Box)(
|
|
57179
57194
|
({ size }) => ({
|
|
57180
57195
|
position: "absolute",
|
|
57181
57196
|
bottom: size === "sm" ? ".65rem" : "16px",
|
|
@@ -57234,7 +57249,7 @@ const FolderCard = ({
|
|
|
57234
57249
|
const handleKeyPress = (e) => {
|
|
57235
57250
|
return e.key === "Enter" || e.key === " ";
|
|
57236
57251
|
};
|
|
57237
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57252
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { width: width2 }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57238
57253
|
StyledCard,
|
|
57239
57254
|
{
|
|
57240
57255
|
selected: isSelected,
|
|
@@ -57272,19 +57287,19 @@ const FolderCard = ({
|
|
|
57272
57287
|
"aria-label": isSelected ? "Unselect folder" : "Select folder",
|
|
57273
57288
|
"aria-pressed": isSelected,
|
|
57274
57289
|
hasNoButtonOnFocus,
|
|
57275
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57290
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertRoundedIcon, {})
|
|
57276
57291
|
}
|
|
57277
57292
|
),
|
|
57278
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57279
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57280
|
-
|
|
57293
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CardContent, { sx: FolderBodyStyle, children: [
|
|
57294
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { fontSize: iconSize, sx: IconContainerStyle, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57295
|
+
FolderRoundedIcon,
|
|
57281
57296
|
{
|
|
57282
57297
|
color: "primary",
|
|
57283
57298
|
sx: FolderIconStyle,
|
|
57284
57299
|
"aria-hidden": "true"
|
|
57285
57300
|
}
|
|
57286
57301
|
) }),
|
|
57287
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
57302
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: TextContainerStyle, children: [
|
|
57288
57303
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57289
57304
|
EllipsisWithTooltip,
|
|
57290
57305
|
{
|
|
@@ -57352,26 +57367,26 @@ const Heading = ({
|
|
|
57352
57367
|
}
|
|
57353
57368
|
);
|
|
57354
57369
|
};
|
|
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
|
-
}), "
|
|
57370
|
+
const AddPhotoAlternateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57371
|
+
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"
|
|
57372
|
+
}), "AddPhotoAlternateRounded");
|
|
57373
|
+
const CreateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57374
|
+
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"
|
|
57375
|
+
}), "CreateRounded");
|
|
57376
|
+
const DeleteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57377
|
+
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"
|
|
57378
|
+
}), "DeleteRounded");
|
|
57364
57379
|
const ImagePickerDefaultLabel = () => /* @__PURE__ */ jsxRuntime.jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57365
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57380
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
57366
57381
|
" ",
|
|
57367
57382
|
"ou",
|
|
57368
57383
|
" ",
|
|
57369
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57384
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
57370
57385
|
" ",
|
|
57371
57386
|
"pour choisir une image"
|
|
57372
57387
|
] });
|
|
57373
57388
|
const ImagePickerDefaultDragLabel = () => /* @__PURE__ */ jsxRuntime.jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57374
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57389
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
57375
57390
|
" ",
|
|
57376
57391
|
"une image"
|
|
57377
57392
|
] });
|
|
@@ -57446,7 +57461,7 @@ const ImagePicker = ({
|
|
|
57446
57461
|
/* @__PURE__ */ jsxRuntime.jsx("input", { ...getInputProps() }),
|
|
57447
57462
|
!currentFile ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: isDragActive && !disabled ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57448
57463
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57449
|
-
|
|
57464
|
+
AddPhotoAlternateRoundedIcon,
|
|
57450
57465
|
{
|
|
57451
57466
|
color: "primary",
|
|
57452
57467
|
style: {
|
|
@@ -57458,7 +57473,7 @@ const ImagePicker = ({
|
|
|
57458
57473
|
dragLabel,
|
|
57459
57474
|
information && /* @__PURE__ */ jsxRuntime.jsx(Typography, { textAlign: "center", fontSize: "12px", color: "grey", children: information })
|
|
57460
57475
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57461
|
-
|
|
57476
|
+
Box,
|
|
57462
57477
|
{
|
|
57463
57478
|
sx: {
|
|
57464
57479
|
display: "flex",
|
|
@@ -57469,7 +57484,7 @@ const ImagePicker = ({
|
|
|
57469
57484
|
},
|
|
57470
57485
|
children: [
|
|
57471
57486
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57472
|
-
|
|
57487
|
+
AddPhotoAlternateRoundedIcon,
|
|
57473
57488
|
{
|
|
57474
57489
|
color: "primary",
|
|
57475
57490
|
style: {
|
|
@@ -57484,7 +57499,7 @@ const ImagePicker = ({
|
|
|
57484
57499
|
}
|
|
57485
57500
|
) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
57486
57501
|
!disabled && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
57487
|
-
|
|
57502
|
+
Box,
|
|
57488
57503
|
{
|
|
57489
57504
|
sx: {
|
|
57490
57505
|
position: "absolute",
|
|
@@ -57495,7 +57510,7 @@ const ImagePicker = ({
|
|
|
57495
57510
|
},
|
|
57496
57511
|
children: [
|
|
57497
57512
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57498
|
-
|
|
57513
|
+
Box,
|
|
57499
57514
|
{
|
|
57500
57515
|
onClick: handleEdit,
|
|
57501
57516
|
sx: {
|
|
@@ -57515,11 +57530,11 @@ const ImagePicker = ({
|
|
|
57515
57530
|
}
|
|
57516
57531
|
}
|
|
57517
57532
|
},
|
|
57518
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57533
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CreateRoundedIcon, { fontSize: "small" })
|
|
57519
57534
|
}
|
|
57520
57535
|
),
|
|
57521
57536
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
57522
|
-
|
|
57537
|
+
Box,
|
|
57523
57538
|
{
|
|
57524
57539
|
onClick: handleDelete,
|
|
57525
57540
|
sx: {
|
|
@@ -57539,7 +57554,7 @@ const ImagePicker = ({
|
|
|
57539
57554
|
}
|
|
57540
57555
|
}
|
|
57541
57556
|
},
|
|
57542
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
57557
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DeleteRoundedIcon, { fontSize: "small" })
|
|
57543
57558
|
}
|
|
57544
57559
|
)
|
|
57545
57560
|
]
|
|
@@ -57630,9 +57645,7 @@ const StyledLoaderBackdropInner = styled(Box)({
|
|
|
57630
57645
|
"100%": { opacity: 0, transform: "translateX(300px)" }
|
|
57631
57646
|
}
|
|
57632
57647
|
});
|
|
57633
|
-
const LoaderBackdrop = ({
|
|
57634
|
-
slotProps = {}
|
|
57635
|
-
}) => {
|
|
57648
|
+
const LoaderBackdrop = ({ slotProps = {} }) => {
|
|
57636
57649
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57637
57650
|
Backdrop,
|
|
57638
57651
|
{
|
|
@@ -57648,6 +57661,12 @@ const LoaderBackdrop = ({
|
|
|
57648
57661
|
}
|
|
57649
57662
|
);
|
|
57650
57663
|
};
|
|
57664
|
+
const VisibilityOffRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57665
|
+
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"
|
|
57666
|
+
}), "VisibilityOffRounded");
|
|
57667
|
+
const VisibilityRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
57668
|
+
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"
|
|
57669
|
+
}), "VisibilityRounded");
|
|
57651
57670
|
const PasswordInput = (props) => {
|
|
57652
57671
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
57653
57672
|
const handleClickShowPassword = () => setShowPassword((show) => !show);
|
|
@@ -57668,7 +57687,7 @@ const PasswordInput = (props) => {
|
|
|
57668
57687
|
onClick: handleClickShowPassword,
|
|
57669
57688
|
onMouseDown: handleMouseDownPassword,
|
|
57670
57689
|
edge: "end",
|
|
57671
|
-
children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
57690
|
+
children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(VisibilityRoundedIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(VisibilityOffRoundedIcon, {})
|
|
57672
57691
|
}
|
|
57673
57692
|
) })
|
|
57674
57693
|
}
|
|
@@ -58524,7 +58543,7 @@ const ResourceCard = ({
|
|
|
58524
58543
|
hasNoButtonOnFocus = false
|
|
58525
58544
|
}) => {
|
|
58526
58545
|
infoIcons = infoIcons.slice(0, 3);
|
|
58527
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58546
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Box, { sx: { width: width2 && size === "md" ? width2 : "320px" }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
58528
58547
|
StyledCard,
|
|
58529
58548
|
{
|
|
58530
58549
|
selected: isSelected,
|
|
@@ -58561,11 +58580,11 @@ const ResourceCard = ({
|
|
|
58561
58580
|
tabIndex: 0,
|
|
58562
58581
|
"aria-label": isSelected ? "Unselect card" : "Select card",
|
|
58563
58582
|
hasNoButtonOnFocus,
|
|
58564
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
58583
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertRoundedIcon, {})
|
|
58565
58584
|
}
|
|
58566
58585
|
),
|
|
58567
58586
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58568
|
-
|
|
58587
|
+
Stack,
|
|
58569
58588
|
{
|
|
58570
58589
|
sx: {
|
|
58571
58590
|
width: size == "sm" ? 110 : "100%",
|
|
@@ -58617,7 +58636,7 @@ const ResourceCard = ({
|
|
|
58617
58636
|
`property-${index}`
|
|
58618
58637
|
)),
|
|
58619
58638
|
/* @__PURE__ */ jsxRuntime.jsx(PublicIconWrapper, { size, children: infoIcons.length > 0 && infoIcons.map((infoItem, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
58620
|
-
|
|
58639
|
+
Tooltip,
|
|
58621
58640
|
{
|
|
58622
58641
|
title: infoItem.text,
|
|
58623
58642
|
placement: "top",
|
|
@@ -63367,14 +63386,14 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
63367
63386
|
*/
|
|
63368
63387
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
63369
63388
|
} : void 0;
|
|
63370
|
-
const
|
|
63371
|
-
d: "
|
|
63372
|
-
}), "
|
|
63373
|
-
const
|
|
63374
|
-
d: "
|
|
63375
|
-
}), "
|
|
63389
|
+
const KeyboardArrowDownRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63390
|
+
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"
|
|
63391
|
+
}), "KeyboardArrowDownRounded");
|
|
63392
|
+
const KeyboardArrowRightRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63393
|
+
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"
|
|
63394
|
+
}), "KeyboardArrowRightRounded");
|
|
63376
63395
|
const DEFAULT_CHILDREN_INDENT = "50px";
|
|
63377
|
-
const TreeContainer =
|
|
63396
|
+
const TreeContainer = styled(Box, {
|
|
63378
63397
|
shouldForwardProp: (prop) => prop !== "maxHeight"
|
|
63379
63398
|
})(({ maxHeight: maxHeight2 }) => ({
|
|
63380
63399
|
maxHeight: typeof maxHeight2 === "number" ? `${maxHeight2}px` : maxHeight2,
|
|
@@ -63404,9 +63423,9 @@ const iconStyle = {
|
|
|
63404
63423
|
width: "24px",
|
|
63405
63424
|
height: "24px"
|
|
63406
63425
|
};
|
|
63407
|
-
const
|
|
63426
|
+
const ShareRoundedIcon = createSvgIcon(/* @__PURE__ */ jsxRuntime.jsx("path", {
|
|
63408
63427
|
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
|
-
}), "
|
|
63428
|
+
}), "ShareRounded");
|
|
63410
63429
|
var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
63411
63430
|
ICON_TYPE2["FOLDER"] = "FOLDER";
|
|
63412
63431
|
ICON_TYPE2["SHARE"] = "SHARE";
|
|
@@ -63415,18 +63434,18 @@ var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
|
63415
63434
|
return ICON_TYPE2;
|
|
63416
63435
|
})(ICON_TYPE || {});
|
|
63417
63436
|
const getIconComponent = (iconType, customIcon) => {
|
|
63418
|
-
if (!iconType) return
|
|
63437
|
+
if (!iconType) return FolderRoundedIcon;
|
|
63419
63438
|
if (typeof iconType !== "string") return iconType;
|
|
63420
63439
|
switch (iconType) {
|
|
63421
63440
|
case ICON_TYPE.SHARE:
|
|
63422
|
-
return
|
|
63441
|
+
return ShareRoundedIcon;
|
|
63423
63442
|
case ICON_TYPE.TRASH:
|
|
63424
|
-
return
|
|
63443
|
+
return DeleteRoundedIcon;
|
|
63425
63444
|
case ICON_TYPE.CUSTOM:
|
|
63426
|
-
return customIcon ||
|
|
63445
|
+
return customIcon || FolderRoundedIcon;
|
|
63427
63446
|
case ICON_TYPE.FOLDER:
|
|
63428
63447
|
default:
|
|
63429
|
-
return
|
|
63448
|
+
return FolderRoundedIcon;
|
|
63430
63449
|
}
|
|
63431
63450
|
};
|
|
63432
63451
|
const getItemId = (item) => item.internalId;
|
|
@@ -63505,7 +63524,7 @@ function CustomTreeItem(props) {
|
|
|
63505
63524
|
typographyProps: labelStyle
|
|
63506
63525
|
}
|
|
63507
63526
|
),
|
|
63508
|
-
/* @__PURE__ */ jsxRuntime.jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
63527
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowDownRoundedIcon, { fontSize: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(KeyboardArrowRightRoundedIcon, { fontSize: "small" })) })
|
|
63509
63528
|
] }),
|
|
63510
63529
|
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
63511
63530
|
TreeItemGroupTransition,
|