@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.es.js
CHANGED
|
@@ -6,11 +6,9 @@ import { css as css2, keyframes as keyframes2 } from "@emotion/react";
|
|
|
6
6
|
import emStyled from "@emotion/styled";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
import ReactDOM__default from "react-dom";
|
|
9
|
-
import { useTheme as useTheme$4, styled as styled$3, Box as Box$1, ClickAwayListener as ClickAwayListener$1, IconButton as IconButton$1, Stack as Stack$1, ListItem as ListItem$1, CircularProgress as CircularProgress$1, ListItemButton as ListItemButton$1, List as List$2, Divider as Divider$1, Card as Card$1, CardMedia as CardMedia$1, CardContent as CardContent$1, Tooltip as Tooltip$1 } from "@mui/material";
|
|
10
9
|
import { CirclePicker } from "react-color";
|
|
11
10
|
import dayjs from "dayjs";
|
|
12
11
|
import { useDropzone } from "react-dropzone";
|
|
13
|
-
import { InsertDriveFileOutlined, OndemandVideoRounded, DescriptionOutlined, PictureAsPdfOutlined, CalendarViewMonthRounded, MovieOutlined, PhotoOutlined, MusicNoteRounded, DownloadRounded, CloseRounded, VisibilityOff, Visibility } from "@mui/icons-material";
|
|
14
12
|
function getDefaultExportFromCjs(x) {
|
|
15
13
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
16
14
|
}
|
|
@@ -42690,10 +42688,7 @@ const StyledButton = styled(Button$1)(({ color: color2, theme }) => {
|
|
|
42690
42688
|
}
|
|
42691
42689
|
};
|
|
42692
42690
|
});
|
|
42693
|
-
const Button2 = ({
|
|
42694
|
-
variant = "outlined",
|
|
42695
|
-
...otherProps
|
|
42696
|
-
}) => {
|
|
42691
|
+
const Button2 = ({ variant = "outlined", ...otherProps }) => {
|
|
42697
42692
|
return /* @__PURE__ */ jsx(StyledButton, { variant, ...otherProps });
|
|
42698
42693
|
};
|
|
42699
42694
|
const Root = styled(Stack, {
|
|
@@ -42724,8 +42719,6 @@ const LeftAction = styled(Button2, {
|
|
|
42724
42719
|
color: theme.palette.common.white,
|
|
42725
42720
|
transition: "all 0.2s ease-in-out",
|
|
42726
42721
|
borderRadius: "4px",
|
|
42727
|
-
fontSize: "1rem",
|
|
42728
|
-
fontWeight: 700,
|
|
42729
42722
|
padding: "8px 16px",
|
|
42730
42723
|
"&:hover": {
|
|
42731
42724
|
backgroundColor: theme.palette.primary.dark,
|
|
@@ -42743,8 +42736,6 @@ const RightAction = styled(Button2, {
|
|
|
42743
42736
|
color: theme.palette.common.white,
|
|
42744
42737
|
transition: "all 0.2s ease-in-out",
|
|
42745
42738
|
borderRadius: "4px",
|
|
42746
|
-
fontSize: "1rem",
|
|
42747
|
-
fontWeight: 700,
|
|
42748
42739
|
padding: "8px 16px",
|
|
42749
42740
|
"&:hover": {
|
|
42750
42741
|
backgroundColor: theme.palette.primary.dark,
|
|
@@ -42760,7 +42751,7 @@ const ActionBar = ({
|
|
|
42760
42751
|
rightActions,
|
|
42761
42752
|
slotProps = {}
|
|
42762
42753
|
}) => {
|
|
42763
|
-
const theme = useTheme
|
|
42754
|
+
const theme = useTheme();
|
|
42764
42755
|
return /* @__PURE__ */ jsxs(Root, { direction: "row", justifyContent: "space-between", ...slotProps.root, children: [
|
|
42765
42756
|
/* @__PURE__ */ jsx(
|
|
42766
42757
|
LeftActionsContainer,
|
|
@@ -43182,10 +43173,7 @@ process.env.NODE_ENV !== "production" ? Alert$1.propTypes = {
|
|
|
43182
43173
|
*/
|
|
43183
43174
|
variant: PropTypes.oneOfType([PropTypes.oneOf(["filled", "outlined", "standard"]), PropTypes.string])
|
|
43184
43175
|
} : void 0;
|
|
43185
|
-
const Alert2 = ({
|
|
43186
|
-
severity = "success",
|
|
43187
|
-
...otherProps
|
|
43188
|
-
}) => {
|
|
43176
|
+
const Alert2 = ({ severity = "success", ...otherProps }) => {
|
|
43189
43177
|
const theme = useTheme();
|
|
43190
43178
|
return /* @__PURE__ */ jsxs(
|
|
43191
43179
|
Alert$1,
|
|
@@ -43207,7 +43195,7 @@ const Alert2 = ({
|
|
|
43207
43195
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
43208
43196
|
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"
|
|
43209
43197
|
}), "CheckRounded");
|
|
43210
|
-
const PickerBackgroundBox = styled
|
|
43198
|
+
const PickerBackgroundBox = styled(Box)(
|
|
43211
43199
|
({ disabled }) => ({
|
|
43212
43200
|
width: "4.4rem",
|
|
43213
43201
|
height: "4.4rem",
|
|
@@ -43237,7 +43225,7 @@ const checkmarkSwatchBox = {
|
|
|
43237
43225
|
gap: "5px",
|
|
43238
43226
|
width: "15rem"
|
|
43239
43227
|
};
|
|
43240
|
-
const StyledSwatchBox = styled
|
|
43228
|
+
const StyledSwatchBox = styled(Box)(
|
|
43241
43229
|
({ showBorder = false, backgroundColor: backgroundColor2 }) => ({
|
|
43242
43230
|
width: 20,
|
|
43243
43231
|
height: 20,
|
|
@@ -43396,7 +43384,7 @@ const ColorPicker = ({
|
|
|
43396
43384
|
const currentOption = normalizedOptions.find((opt) => opt.color === value);
|
|
43397
43385
|
const colorStrings = normalizedOptions.map((opt) => opt.color);
|
|
43398
43386
|
return /* @__PURE__ */ jsx(
|
|
43399
|
-
ClickAwayListener
|
|
43387
|
+
ClickAwayListener,
|
|
43400
43388
|
{
|
|
43401
43389
|
onClickAway: handleClose,
|
|
43402
43390
|
...slotProps?.clickAwayListener,
|
|
@@ -43416,13 +43404,13 @@ const ColorPicker = ({
|
|
|
43416
43404
|
}
|
|
43417
43405
|
),
|
|
43418
43406
|
isCirclePickerVisible && /* @__PURE__ */ jsx(
|
|
43419
|
-
Box
|
|
43407
|
+
Box,
|
|
43420
43408
|
{
|
|
43421
43409
|
sx: {
|
|
43422
43410
|
...circlePickerStyle,
|
|
43423
43411
|
...slotProps?.circlePickerBox?.sx || {}
|
|
43424
43412
|
},
|
|
43425
|
-
children: useCheckmarkSwatch ? /* @__PURE__ */ jsx(Box
|
|
43413
|
+
children: useCheckmarkSwatch ? /* @__PURE__ */ jsx(Box, { sx: checkmarkSwatchBox, children: normalizedOptions.map((option) => /* @__PURE__ */ jsx(
|
|
43426
43414
|
CheckmarkSwatch,
|
|
43427
43415
|
{
|
|
43428
43416
|
color: option.color,
|
|
@@ -56677,7 +56665,7 @@ const Dialog2 = ({
|
|
|
56677
56665
|
const handleClose = () => otherProps.onClose?.({}, "escapeKeyDown");
|
|
56678
56666
|
return /* @__PURE__ */ jsxs(Dialog$1, { ...otherProps, children: [
|
|
56679
56667
|
showCloseButton ? /* @__PURE__ */ jsx(
|
|
56680
|
-
IconButton
|
|
56668
|
+
IconButton,
|
|
56681
56669
|
{
|
|
56682
56670
|
"aria-label": "close",
|
|
56683
56671
|
onClick: handleClose,
|
|
@@ -56693,12 +56681,12 @@ const Dialog2 = ({
|
|
|
56693
56681
|
children
|
|
56694
56682
|
] });
|
|
56695
56683
|
};
|
|
56696
|
-
const
|
|
56697
|
-
d: "
|
|
56698
|
-
}), "
|
|
56699
|
-
const
|
|
56700
|
-
d: "
|
|
56701
|
-
}), "
|
|
56684
|
+
const FileUploadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56685
|
+
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"
|
|
56686
|
+
}), "FileUploadRounded");
|
|
56687
|
+
const UploadFileRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56688
|
+
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"
|
|
56689
|
+
}), "UploadFileRounded");
|
|
56702
56690
|
const Dropzone = ({
|
|
56703
56691
|
defaultLabel = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
|
|
56704
56692
|
dragLabel = "Déposer les fichiers ici",
|
|
@@ -56730,10 +56718,10 @@ const Dropzone = ({
|
|
|
56730
56718
|
children: [
|
|
56731
56719
|
/* @__PURE__ */ jsx("input", { ...getInputProps(), ...slotProps.input }),
|
|
56732
56720
|
isDragActive ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56733
|
-
/* @__PURE__ */ jsx(
|
|
56721
|
+
/* @__PURE__ */ jsx(FileUploadRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56734
56722
|
/* @__PURE__ */ jsx(Typography, { ...slotProps.label, children: dragLabel })
|
|
56735
56723
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56736
|
-
/* @__PURE__ */ jsx(
|
|
56724
|
+
/* @__PURE__ */ jsx(UploadFileRoundedIcon, { color: "primary", ...slotProps.icon }),
|
|
56737
56725
|
/* @__PURE__ */ jsx(Typography, { ...slotProps.label, children: defaultLabel }),
|
|
56738
56726
|
information ? /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "grey", ...slotProps.information, children: information }) : null
|
|
56739
56727
|
] })
|
|
@@ -56844,44 +56832,71 @@ const EmptyState = ({
|
|
|
56844
56832
|
}
|
|
56845
56833
|
);
|
|
56846
56834
|
};
|
|
56835
|
+
const DownloadRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56836
|
+
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"
|
|
56837
|
+
}), "DownloadRounded");
|
|
56838
|
+
const CalendarViewMonthRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56839
|
+
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"
|
|
56840
|
+
}), "CalendarViewMonthRounded");
|
|
56841
|
+
const DescriptionOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56842
|
+
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"
|
|
56843
|
+
}), "DescriptionOutlined");
|
|
56844
|
+
const InsertDriveFileOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56845
|
+
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"
|
|
56846
|
+
}), "InsertDriveFileOutlined");
|
|
56847
|
+
const MovieOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56848
|
+
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"
|
|
56849
|
+
}), "MovieOutlined");
|
|
56850
|
+
const MusicNoteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56851
|
+
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"
|
|
56852
|
+
}), "MusicNoteRounded");
|
|
56853
|
+
const OndemandVideoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56854
|
+
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"
|
|
56855
|
+
}), "OndemandVideoRounded");
|
|
56856
|
+
const PhotoOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56857
|
+
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"
|
|
56858
|
+
}), "PhotoOutlined");
|
|
56859
|
+
const PictureAsPdfOutlinedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
56860
|
+
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"
|
|
56861
|
+
}), "PictureAsPdfOutlined");
|
|
56847
56862
|
const FileIcon = ({ extension }) => {
|
|
56848
56863
|
switch (extension.toUpperCase()) {
|
|
56849
56864
|
case "MP3":
|
|
56850
56865
|
case "MIDI":
|
|
56851
56866
|
case "WAV":
|
|
56852
|
-
return /* @__PURE__ */ jsx(
|
|
56867
|
+
return /* @__PURE__ */ jsx(MusicNoteRoundedIcon, {});
|
|
56853
56868
|
case "JPG":
|
|
56854
56869
|
case "JPEG":
|
|
56855
56870
|
case "PNG":
|
|
56856
56871
|
case "SVG":
|
|
56857
|
-
return /* @__PURE__ */ jsx(
|
|
56872
|
+
return /* @__PURE__ */ jsx(PhotoOutlinedIcon, {});
|
|
56858
56873
|
case "MP4":
|
|
56859
56874
|
case "MOV":
|
|
56860
56875
|
case "AVI":
|
|
56861
|
-
return /* @__PURE__ */ jsx(
|
|
56876
|
+
return /* @__PURE__ */ jsx(MovieOutlinedIcon, {});
|
|
56862
56877
|
case "CSV":
|
|
56863
56878
|
case "ODS":
|
|
56864
56879
|
case "XLS":
|
|
56865
56880
|
case "XLSX":
|
|
56866
|
-
return /* @__PURE__ */ jsx(
|
|
56881
|
+
return /* @__PURE__ */ jsx(CalendarViewMonthRoundedIcon, {});
|
|
56867
56882
|
case "PDF":
|
|
56868
|
-
return /* @__PURE__ */ jsx(
|
|
56883
|
+
return /* @__PURE__ */ jsx(PictureAsPdfOutlinedIcon, {});
|
|
56869
56884
|
case "ODT":
|
|
56870
56885
|
case "DOC":
|
|
56871
56886
|
case "DOCX":
|
|
56872
56887
|
case "TXT":
|
|
56873
|
-
return /* @__PURE__ */ jsx(
|
|
56888
|
+
return /* @__PURE__ */ jsx(DescriptionOutlinedIcon, {});
|
|
56874
56889
|
case "ODP":
|
|
56875
56890
|
case "PPT":
|
|
56876
56891
|
case "PPTX":
|
|
56877
|
-
return /* @__PURE__ */ jsx(
|
|
56892
|
+
return /* @__PURE__ */ jsx(OndemandVideoRoundedIcon, {});
|
|
56878
56893
|
default:
|
|
56879
|
-
return /* @__PURE__ */ jsx(
|
|
56894
|
+
return /* @__PURE__ */ jsx(InsertDriveFileOutlinedIcon, {});
|
|
56880
56895
|
}
|
|
56881
56896
|
};
|
|
56882
56897
|
const FileInfosSeparator = () => {
|
|
56883
|
-
return /* @__PURE__ */ jsx(Stack
|
|
56884
|
-
Stack
|
|
56898
|
+
return /* @__PURE__ */ jsx(Stack, { height: "100%", children: /* @__PURE__ */ jsx(
|
|
56899
|
+
Stack,
|
|
56885
56900
|
{
|
|
56886
56901
|
height: "4px",
|
|
56887
56902
|
width: "4px",
|
|
@@ -56901,7 +56916,7 @@ const displayExtension = (name) => {
|
|
|
56901
56916
|
const extension = name.split(".").pop();
|
|
56902
56917
|
return extension ? extension.toUpperCase() : null;
|
|
56903
56918
|
};
|
|
56904
|
-
const ClickableItem = styled
|
|
56919
|
+
const ClickableItem = styled(ListItemButton)(
|
|
56905
56920
|
({ isClickable }) => ({
|
|
56906
56921
|
"&:hover": {
|
|
56907
56922
|
boxShadow: isClickable ? "0 4px 8px rgba(192, 192, 192, 0.3)" : "none",
|
|
@@ -56940,11 +56955,11 @@ const FileListItem = ({
|
|
|
56940
56955
|
onDownload?.(file);
|
|
56941
56956
|
};
|
|
56942
56957
|
return /* @__PURE__ */ jsx(
|
|
56943
|
-
ListItem
|
|
56958
|
+
ListItem,
|
|
56944
56959
|
{
|
|
56945
|
-
secondaryAction: /* @__PURE__ */ jsxs(Box
|
|
56946
|
-
file.isLoading ? /* @__PURE__ */ jsx(Box
|
|
56947
|
-
file.isDeletable && /* @__PURE__ */ jsx(IconButton
|
|
56960
|
+
secondaryAction: /* @__PURE__ */ jsxs(Box, { alignItems: "center", display: "flex", gap: "1rem", children: [
|
|
56961
|
+
file.isLoading ? /* @__PURE__ */ jsx(Box, { marginRight: 1, children: /* @__PURE__ */ jsx(CircularProgress, { size: 24, color: "primary" }) }) : file.isDownloadable ? /* @__PURE__ */ jsx(IconButton, { onClick: handleDownload, children: /* @__PURE__ */ jsx(DownloadRoundedIcon, { color: "primary" }) }) : null,
|
|
56962
|
+
file.isDeletable && /* @__PURE__ */ jsx(IconButton, { onClick: handleDelete, id: "coucou", children: /* @__PURE__ */ jsx(CloseRoundedIcon, {}) })
|
|
56948
56963
|
] }),
|
|
56949
56964
|
disablePadding: true,
|
|
56950
56965
|
children: /* @__PURE__ */ jsx(
|
|
@@ -56969,7 +56984,7 @@ const FileListItem = ({
|
|
|
56969
56984
|
backgroundColor: "grey.light"
|
|
56970
56985
|
},
|
|
56971
56986
|
children: /* @__PURE__ */ jsx(
|
|
56972
|
-
Box
|
|
56987
|
+
Box,
|
|
56973
56988
|
{
|
|
56974
56989
|
color: "text.secondary",
|
|
56975
56990
|
alignItems: "center",
|
|
@@ -57021,7 +57036,7 @@ const FileList = ({
|
|
|
57021
57036
|
onClick,
|
|
57022
57037
|
onDownload
|
|
57023
57038
|
}) => {
|
|
57024
|
-
return /* @__PURE__ */ jsx(List
|
|
57039
|
+
return /* @__PURE__ */ jsx(List, { sx: { display: "flex", flexDirection: "column" }, children: files.map((file, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57025
57040
|
/* @__PURE__ */ jsx(
|
|
57026
57041
|
FileListItem,
|
|
57027
57042
|
{
|
|
@@ -57032,16 +57047,16 @@ const FileList = ({
|
|
|
57032
57047
|
},
|
|
57033
57048
|
index
|
|
57034
57049
|
),
|
|
57035
|
-
index < files.length - 1 && /* @__PURE__ */ jsx(Divider
|
|
57050
|
+
index < files.length - 1 && /* @__PURE__ */ jsx(Divider, { variant: "middle" })
|
|
57036
57051
|
] })) });
|
|
57037
57052
|
};
|
|
57038
|
-
const
|
|
57039
|
-
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"
|
|
57040
|
-
}), "
|
|
57041
|
-
const
|
|
57053
|
+
const FolderRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57054
|
+
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"
|
|
57055
|
+
}), "FolderRounded");
|
|
57056
|
+
const MoreVertRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57042
57057
|
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"
|
|
57043
|
-
}), "
|
|
57044
|
-
const StyledCard = styled
|
|
57058
|
+
}), "MoreVertRounded");
|
|
57059
|
+
const StyledCard = styled(Card)(({ selected, size, theme }) => ({
|
|
57045
57060
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)",
|
|
57046
57061
|
borderRadius: "0.5rem",
|
|
57047
57062
|
height: "auto",
|
|
@@ -57062,7 +57077,7 @@ const StyledCard = styled$3(Card$1)(({ selected, size, theme }) => ({
|
|
|
57062
57077
|
}
|
|
57063
57078
|
}
|
|
57064
57079
|
}));
|
|
57065
|
-
const SelectedIcon = styled
|
|
57080
|
+
const SelectedIcon = styled(Box)(({ selected, hasNoButtonOnFocus, theme }) => ({
|
|
57066
57081
|
position: "absolute",
|
|
57067
57082
|
top: 0,
|
|
57068
57083
|
right: 0,
|
|
@@ -57077,19 +57092,19 @@ const SelectedIcon = styled$3(Box$1)(({ selected, hasNoButtonOnFocus, theme }) =
|
|
|
57077
57092
|
visibility: "visible",
|
|
57078
57093
|
opacity: 0,
|
|
57079
57094
|
cursor: "pointer",
|
|
57080
|
-
transition: "opacity 0.2s ease-in-out, visibility 0.2s ease-in-out",
|
|
57095
|
+
transition: "opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, background 0.2s ease-in-out",
|
|
57081
57096
|
...selected && {
|
|
57082
57097
|
background: theme.palette.primary.lighter,
|
|
57083
57098
|
opacity: 1,
|
|
57084
57099
|
visibility: "visible"
|
|
57085
57100
|
},
|
|
57086
|
-
|
|
57087
|
-
|
|
57088
|
-
|
|
57089
|
-
|
|
57090
|
-
|
|
57091
|
-
|
|
57092
|
-
"&:
|
|
57101
|
+
".MuiCard-root:hover &": {
|
|
57102
|
+
background: theme.palette.primary.lighter,
|
|
57103
|
+
opacity: 1,
|
|
57104
|
+
visibility: "visible"
|
|
57105
|
+
},
|
|
57106
|
+
...!hasNoButtonOnFocus && {
|
|
57107
|
+
"&:focus": {
|
|
57093
57108
|
background: theme.palette.primary.lighter,
|
|
57094
57109
|
opacity: 1
|
|
57095
57110
|
}
|
|
@@ -57098,7 +57113,7 @@ const SelectedIcon = styled$3(Box$1)(({ selected, hasNoButtonOnFocus, theme }) =
|
|
|
57098
57113
|
color: theme.palette.primary.main
|
|
57099
57114
|
}
|
|
57100
57115
|
}));
|
|
57101
|
-
const ResourceCardImage = styled
|
|
57116
|
+
const ResourceCardImage = styled(CardMedia)(({ size, image, defaultImage }) => ({
|
|
57102
57117
|
height: size == "sm" ? 85 : 180,
|
|
57103
57118
|
width: size == "sm" ? 85 : "calc(100% - 2rem)",
|
|
57104
57119
|
objectFit: "cover",
|
|
@@ -57112,11 +57127,11 @@ const ResourceCardImage = styled$3(CardMedia$1)(({ size, image, defaultImage })
|
|
|
57112
57127
|
opacity: "0.7"
|
|
57113
57128
|
}
|
|
57114
57129
|
}));
|
|
57115
|
-
const ResourceCardBody = styled
|
|
57130
|
+
const ResourceCardBody = styled(CardContent)(({ size }) => ({
|
|
57116
57131
|
padding: size == "sm" ? ".7rem 5px .7rem 0 !important" : "0 16px 16px 16px !important",
|
|
57117
57132
|
width: size === "sm" ? "calc(100% - 110px)" : "100%"
|
|
57118
57133
|
}));
|
|
57119
|
-
const ResourcePropertyItem = styled
|
|
57134
|
+
const ResourcePropertyItem = styled(Box)(
|
|
57120
57135
|
({ size }) => ({
|
|
57121
57136
|
display: "flex",
|
|
57122
57137
|
alignItems: "center",
|
|
@@ -57129,7 +57144,7 @@ const ResourcePropertyItem = styled$3(Box$1)(
|
|
|
57129
57144
|
}
|
|
57130
57145
|
})
|
|
57131
57146
|
);
|
|
57132
|
-
const ResourcePropertyText = styled
|
|
57147
|
+
const ResourcePropertyText = styled(Box)(({ size, width: width2, isLast }) => ({
|
|
57133
57148
|
marginLeft: size === "sm" ? ".3rem" : ".5rem",
|
|
57134
57149
|
fontSize: size === "sm" ? "12px" : "15px",
|
|
57135
57150
|
"& .MuiTypography-root": {
|
|
@@ -57143,7 +57158,7 @@ const ResourcePropertyText = styled$3(Box$1)(({ size, width: width2, isLast }) =
|
|
|
57143
57158
|
maxWidth: size === "sm" ? "110px" : "172px"
|
|
57144
57159
|
}
|
|
57145
57160
|
}));
|
|
57146
|
-
const ResourceIconItem = styled
|
|
57161
|
+
const ResourceIconItem = styled(Box)(
|
|
57147
57162
|
({ size }) => ({
|
|
57148
57163
|
display: "inline-flex",
|
|
57149
57164
|
alignItems: "center",
|
|
@@ -57158,7 +57173,7 @@ const ResourceIconItem = styled$3(Box$1)(
|
|
|
57158
57173
|
}
|
|
57159
57174
|
})
|
|
57160
57175
|
);
|
|
57161
|
-
const PublicIconWrapper = styled
|
|
57176
|
+
const PublicIconWrapper = styled(Box)(
|
|
57162
57177
|
({ size }) => ({
|
|
57163
57178
|
position: "absolute",
|
|
57164
57179
|
bottom: size === "sm" ? ".65rem" : "16px",
|
|
@@ -57217,7 +57232,7 @@ const FolderCard = ({
|
|
|
57217
57232
|
const handleKeyPress = (e) => {
|
|
57218
57233
|
return e.key === "Enter" || e.key === " ";
|
|
57219
57234
|
};
|
|
57220
|
-
return /* @__PURE__ */ jsx(Box
|
|
57235
|
+
return /* @__PURE__ */ jsx(Box, { sx: { width: width2 }, children: /* @__PURE__ */ jsxs(
|
|
57221
57236
|
StyledCard,
|
|
57222
57237
|
{
|
|
57223
57238
|
selected: isSelected,
|
|
@@ -57255,19 +57270,19 @@ const FolderCard = ({
|
|
|
57255
57270
|
"aria-label": isSelected ? "Unselect folder" : "Select folder",
|
|
57256
57271
|
"aria-pressed": isSelected,
|
|
57257
57272
|
hasNoButtonOnFocus,
|
|
57258
|
-
children: /* @__PURE__ */ jsx(
|
|
57273
|
+
children: /* @__PURE__ */ jsx(MoreVertRoundedIcon, {})
|
|
57259
57274
|
}
|
|
57260
57275
|
),
|
|
57261
|
-
/* @__PURE__ */ jsxs(CardContent
|
|
57262
|
-
/* @__PURE__ */ jsx(Box
|
|
57263
|
-
|
|
57276
|
+
/* @__PURE__ */ jsxs(CardContent, { sx: FolderBodyStyle, children: [
|
|
57277
|
+
/* @__PURE__ */ jsx(Box, { fontSize: iconSize, sx: IconContainerStyle, children: /* @__PURE__ */ jsx(
|
|
57278
|
+
FolderRoundedIcon,
|
|
57264
57279
|
{
|
|
57265
57280
|
color: "primary",
|
|
57266
57281
|
sx: FolderIconStyle,
|
|
57267
57282
|
"aria-hidden": "true"
|
|
57268
57283
|
}
|
|
57269
57284
|
) }),
|
|
57270
|
-
/* @__PURE__ */ jsxs(Box
|
|
57285
|
+
/* @__PURE__ */ jsxs(Box, { sx: TextContainerStyle, children: [
|
|
57271
57286
|
/* @__PURE__ */ jsx(
|
|
57272
57287
|
EllipsisWithTooltip,
|
|
57273
57288
|
{
|
|
@@ -57335,26 +57350,26 @@ const Heading = ({
|
|
|
57335
57350
|
}
|
|
57336
57351
|
);
|
|
57337
57352
|
};
|
|
57338
|
-
const
|
|
57339
|
-
d: "
|
|
57340
|
-
}), "
|
|
57341
|
-
const
|
|
57342
|
-
d: "M3 17.
|
|
57343
|
-
}), "
|
|
57344
|
-
const
|
|
57345
|
-
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-
|
|
57346
|
-
}), "
|
|
57353
|
+
const AddPhotoAlternateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57354
|
+
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"
|
|
57355
|
+
}), "AddPhotoAlternateRounded");
|
|
57356
|
+
const CreateRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57357
|
+
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"
|
|
57358
|
+
}), "CreateRounded");
|
|
57359
|
+
const DeleteRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57360
|
+
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"
|
|
57361
|
+
}), "DeleteRounded");
|
|
57347
57362
|
const ImagePickerDefaultLabel = () => /* @__PURE__ */ jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57348
|
-
/* @__PURE__ */ jsx(Box
|
|
57363
|
+
/* @__PURE__ */ jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
57349
57364
|
" ",
|
|
57350
57365
|
"ou",
|
|
57351
57366
|
" ",
|
|
57352
|
-
/* @__PURE__ */ jsx(Box
|
|
57367
|
+
/* @__PURE__ */ jsx(Box, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
57353
57368
|
" ",
|
|
57354
57369
|
"pour choisir une image"
|
|
57355
57370
|
] });
|
|
57356
57371
|
const ImagePickerDefaultDragLabel = () => /* @__PURE__ */ jsxs(Typography, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
57357
|
-
/* @__PURE__ */ jsx(Box
|
|
57372
|
+
/* @__PURE__ */ jsx(Box, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
57358
57373
|
" ",
|
|
57359
57374
|
"une image"
|
|
57360
57375
|
] });
|
|
@@ -57429,7 +57444,7 @@ const ImagePicker = ({
|
|
|
57429
57444
|
/* @__PURE__ */ jsx("input", { ...getInputProps() }),
|
|
57430
57445
|
!currentFile ? /* @__PURE__ */ jsx(Fragment, { children: isDragActive && !disabled ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57431
57446
|
/* @__PURE__ */ jsx(
|
|
57432
|
-
|
|
57447
|
+
AddPhotoAlternateRoundedIcon,
|
|
57433
57448
|
{
|
|
57434
57449
|
color: "primary",
|
|
57435
57450
|
style: {
|
|
@@ -57441,7 +57456,7 @@ const ImagePicker = ({
|
|
|
57441
57456
|
dragLabel,
|
|
57442
57457
|
information && /* @__PURE__ */ jsx(Typography, { textAlign: "center", fontSize: "12px", color: "grey", children: information })
|
|
57443
57458
|
] }) : /* @__PURE__ */ jsxs(
|
|
57444
|
-
Box
|
|
57459
|
+
Box,
|
|
57445
57460
|
{
|
|
57446
57461
|
sx: {
|
|
57447
57462
|
display: "flex",
|
|
@@ -57452,7 +57467,7 @@ const ImagePicker = ({
|
|
|
57452
57467
|
},
|
|
57453
57468
|
children: [
|
|
57454
57469
|
/* @__PURE__ */ jsx(
|
|
57455
|
-
|
|
57470
|
+
AddPhotoAlternateRoundedIcon,
|
|
57456
57471
|
{
|
|
57457
57472
|
color: "primary",
|
|
57458
57473
|
style: {
|
|
@@ -57467,7 +57482,7 @@ const ImagePicker = ({
|
|
|
57467
57482
|
}
|
|
57468
57483
|
) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57469
57484
|
!disabled && /* @__PURE__ */ jsxs(
|
|
57470
|
-
Box
|
|
57485
|
+
Box,
|
|
57471
57486
|
{
|
|
57472
57487
|
sx: {
|
|
57473
57488
|
position: "absolute",
|
|
@@ -57478,7 +57493,7 @@ const ImagePicker = ({
|
|
|
57478
57493
|
},
|
|
57479
57494
|
children: [
|
|
57480
57495
|
/* @__PURE__ */ jsx(
|
|
57481
|
-
Box
|
|
57496
|
+
Box,
|
|
57482
57497
|
{
|
|
57483
57498
|
onClick: handleEdit,
|
|
57484
57499
|
sx: {
|
|
@@ -57498,11 +57513,11 @@ const ImagePicker = ({
|
|
|
57498
57513
|
}
|
|
57499
57514
|
}
|
|
57500
57515
|
},
|
|
57501
|
-
children: /* @__PURE__ */ jsx(
|
|
57516
|
+
children: /* @__PURE__ */ jsx(CreateRoundedIcon, { fontSize: "small" })
|
|
57502
57517
|
}
|
|
57503
57518
|
),
|
|
57504
57519
|
/* @__PURE__ */ jsx(
|
|
57505
|
-
Box
|
|
57520
|
+
Box,
|
|
57506
57521
|
{
|
|
57507
57522
|
onClick: handleDelete,
|
|
57508
57523
|
sx: {
|
|
@@ -57522,7 +57537,7 @@ const ImagePicker = ({
|
|
|
57522
57537
|
}
|
|
57523
57538
|
}
|
|
57524
57539
|
},
|
|
57525
|
-
children: /* @__PURE__ */ jsx(
|
|
57540
|
+
children: /* @__PURE__ */ jsx(DeleteRoundedIcon, { fontSize: "small" })
|
|
57526
57541
|
}
|
|
57527
57542
|
)
|
|
57528
57543
|
]
|
|
@@ -57613,9 +57628,7 @@ const StyledLoaderBackdropInner = styled(Box)({
|
|
|
57613
57628
|
"100%": { opacity: 0, transform: "translateX(300px)" }
|
|
57614
57629
|
}
|
|
57615
57630
|
});
|
|
57616
|
-
const LoaderBackdrop = ({
|
|
57617
|
-
slotProps = {}
|
|
57618
|
-
}) => {
|
|
57631
|
+
const LoaderBackdrop = ({ slotProps = {} }) => {
|
|
57619
57632
|
return /* @__PURE__ */ jsx(
|
|
57620
57633
|
Backdrop,
|
|
57621
57634
|
{
|
|
@@ -57631,6 +57644,12 @@ const LoaderBackdrop = ({
|
|
|
57631
57644
|
}
|
|
57632
57645
|
);
|
|
57633
57646
|
};
|
|
57647
|
+
const VisibilityOffRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57648
|
+
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"
|
|
57649
|
+
}), "VisibilityOffRounded");
|
|
57650
|
+
const VisibilityRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
57651
|
+
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"
|
|
57652
|
+
}), "VisibilityRounded");
|
|
57634
57653
|
const PasswordInput = (props) => {
|
|
57635
57654
|
const [showPassword, setShowPassword] = useState(false);
|
|
57636
57655
|
const handleClickShowPassword = () => setShowPassword((show) => !show);
|
|
@@ -57651,7 +57670,7 @@ const PasswordInput = (props) => {
|
|
|
57651
57670
|
onClick: handleClickShowPassword,
|
|
57652
57671
|
onMouseDown: handleMouseDownPassword,
|
|
57653
57672
|
edge: "end",
|
|
57654
|
-
children: showPassword ? /* @__PURE__ */ jsx(
|
|
57673
|
+
children: showPassword ? /* @__PURE__ */ jsx(VisibilityRoundedIcon, {}) : /* @__PURE__ */ jsx(VisibilityOffRoundedIcon, {})
|
|
57655
57674
|
}
|
|
57656
57675
|
) })
|
|
57657
57676
|
}
|
|
@@ -58507,7 +58526,7 @@ const ResourceCard = ({
|
|
|
58507
58526
|
hasNoButtonOnFocus = false
|
|
58508
58527
|
}) => {
|
|
58509
58528
|
infoIcons = infoIcons.slice(0, 3);
|
|
58510
|
-
return /* @__PURE__ */ jsx(Box
|
|
58529
|
+
return /* @__PURE__ */ jsx(Box, { sx: { width: width2 && size === "md" ? width2 : "320px" }, children: /* @__PURE__ */ jsxs(
|
|
58511
58530
|
StyledCard,
|
|
58512
58531
|
{
|
|
58513
58532
|
selected: isSelected,
|
|
@@ -58544,11 +58563,11 @@ const ResourceCard = ({
|
|
|
58544
58563
|
tabIndex: 0,
|
|
58545
58564
|
"aria-label": isSelected ? "Unselect card" : "Select card",
|
|
58546
58565
|
hasNoButtonOnFocus,
|
|
58547
|
-
children: /* @__PURE__ */ jsx(
|
|
58566
|
+
children: /* @__PURE__ */ jsx(MoreVertRoundedIcon, {})
|
|
58548
58567
|
}
|
|
58549
58568
|
),
|
|
58550
58569
|
/* @__PURE__ */ jsx(
|
|
58551
|
-
Stack
|
|
58570
|
+
Stack,
|
|
58552
58571
|
{
|
|
58553
58572
|
sx: {
|
|
58554
58573
|
width: size == "sm" ? 110 : "100%",
|
|
@@ -58600,7 +58619,7 @@ const ResourceCard = ({
|
|
|
58600
58619
|
`property-${index}`
|
|
58601
58620
|
)),
|
|
58602
58621
|
/* @__PURE__ */ jsx(PublicIconWrapper, { size, children: infoIcons.length > 0 && infoIcons.map((infoItem, index) => /* @__PURE__ */ jsx(
|
|
58603
|
-
Tooltip
|
|
58622
|
+
Tooltip,
|
|
58604
58623
|
{
|
|
58605
58624
|
title: infoItem.text,
|
|
58606
58625
|
placement: "top",
|
|
@@ -63350,14 +63369,14 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
63350
63369
|
*/
|
|
63351
63370
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
63352
63371
|
} : void 0;
|
|
63353
|
-
const
|
|
63354
|
-
d: "
|
|
63355
|
-
}), "
|
|
63356
|
-
const
|
|
63357
|
-
d: "
|
|
63358
|
-
}), "
|
|
63372
|
+
const KeyboardArrowDownRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
63373
|
+
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"
|
|
63374
|
+
}), "KeyboardArrowDownRounded");
|
|
63375
|
+
const KeyboardArrowRightRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
63376
|
+
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"
|
|
63377
|
+
}), "KeyboardArrowRightRounded");
|
|
63359
63378
|
const DEFAULT_CHILDREN_INDENT = "50px";
|
|
63360
|
-
const TreeContainer = styled
|
|
63379
|
+
const TreeContainer = styled(Box, {
|
|
63361
63380
|
shouldForwardProp: (prop) => prop !== "maxHeight"
|
|
63362
63381
|
})(({ maxHeight: maxHeight2 }) => ({
|
|
63363
63382
|
maxHeight: typeof maxHeight2 === "number" ? `${maxHeight2}px` : maxHeight2,
|
|
@@ -63387,9 +63406,9 @@ const iconStyle = {
|
|
|
63387
63406
|
width: "24px",
|
|
63388
63407
|
height: "24px"
|
|
63389
63408
|
};
|
|
63390
|
-
const
|
|
63409
|
+
const ShareRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
63391
63410
|
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"
|
|
63392
|
-
}), "
|
|
63411
|
+
}), "ShareRounded");
|
|
63393
63412
|
var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
63394
63413
|
ICON_TYPE2["FOLDER"] = "FOLDER";
|
|
63395
63414
|
ICON_TYPE2["SHARE"] = "SHARE";
|
|
@@ -63398,18 +63417,18 @@ var ICON_TYPE = /* @__PURE__ */ ((ICON_TYPE2) => {
|
|
|
63398
63417
|
return ICON_TYPE2;
|
|
63399
63418
|
})(ICON_TYPE || {});
|
|
63400
63419
|
const getIconComponent = (iconType, customIcon) => {
|
|
63401
|
-
if (!iconType) return
|
|
63420
|
+
if (!iconType) return FolderRoundedIcon;
|
|
63402
63421
|
if (typeof iconType !== "string") return iconType;
|
|
63403
63422
|
switch (iconType) {
|
|
63404
63423
|
case ICON_TYPE.SHARE:
|
|
63405
|
-
return
|
|
63424
|
+
return ShareRoundedIcon;
|
|
63406
63425
|
case ICON_TYPE.TRASH:
|
|
63407
|
-
return
|
|
63426
|
+
return DeleteRoundedIcon;
|
|
63408
63427
|
case ICON_TYPE.CUSTOM:
|
|
63409
|
-
return customIcon ||
|
|
63428
|
+
return customIcon || FolderRoundedIcon;
|
|
63410
63429
|
case ICON_TYPE.FOLDER:
|
|
63411
63430
|
default:
|
|
63412
|
-
return
|
|
63431
|
+
return FolderRoundedIcon;
|
|
63413
63432
|
}
|
|
63414
63433
|
};
|
|
63415
63434
|
const getItemId = (item) => item.internalId;
|
|
@@ -63488,7 +63507,7 @@ function CustomTreeItem(props) {
|
|
|
63488
63507
|
typographyProps: labelStyle
|
|
63489
63508
|
}
|
|
63490
63509
|
),
|
|
63491
|
-
/* @__PURE__ */ jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsx(
|
|
63510
|
+
/* @__PURE__ */ jsx(Box, { sx: arrowContainerStyle, children: status.expandable && (status.expanded ? /* @__PURE__ */ jsx(KeyboardArrowDownRoundedIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx(KeyboardArrowRightRoundedIcon, { fontSize: "small" })) })
|
|
63492
63511
|
] }),
|
|
63493
63512
|
children && /* @__PURE__ */ jsx(
|
|
63494
63513
|
TreeItemGroupTransition,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.11.1-dev.
|
|
3
|
+
"version": "1.11.1-dev.1765979370",
|
|
4
4
|
"description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cgi-learning-hub",
|