@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1716882954
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/Box-B5JvteYc.cjs +1 -0
- package/dist/{Box-CcD_sRqe.js → Box-w9A3CGWz.js} +24 -26
- package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-ClqFvN38.js} +102 -107
- package/dist/ButtonBase-DLRUHDp_.cjs +75 -0
- package/dist/{CircularProgress-G9G_loET.js → CircularProgress-CKU4oqMn.js} +4 -4
- package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-LIVNb3Un.cjs} +1 -1
- package/dist/DefaultButton-Bk1TaeJZ.cjs +1 -0
- package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Pk7aXp0l.js} +94 -95
- package/dist/{IconButton-B6XIqj_T.js → IconButton-SMmmWi-o.js} +28 -29
- package/dist/IconButton-djnEGxm7.cjs +2 -0
- package/dist/InputBase-BPq0sWTY.cjs +3 -0
- package/dist/{InputBase-CdKFPwS3.js → InputBase-BnfifOOr.js} +280 -320
- package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-BqBo3ogt.cjs} +1 -1
- package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DabIC_L5.js} +2 -2
- package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-BEYRgfVH.js} +25 -25
- package/dist/SearchInput-CoPiN90W.cjs +1 -0
- package/dist/Tabs-Cr7s6H3h.cjs +4 -0
- package/dist/{Tabs-CDBEadDu.js → Tabs-NsW3-ZTG.js} +264 -265
- package/dist/TextInput-DMTI0kNm.cjs +12 -0
- package/dist/{TextInput-BNe_BIm9.js → TextInput-Db4gwAZh.js} +1388 -1397
- package/dist/{TimePicker-CLYqSUwA.js → TimePicker-BFhOku5y.js} +5172 -4988
- package/dist/TimePicker-UQHnH9uN.cjs +73 -0
- package/dist/{TransitionGroupContext-C7wWJ6l7.js → TransitionGroupContext-BkoHK5Kx.js} +2 -2
- package/dist/{TransitionGroupContext-g4tmk10h.cjs → TransitionGroupContext-mYDSzffd.cjs} +1 -1
- package/dist/Typography-DOPsRNd4.cjs +1 -0
- package/dist/{Typography-CkEznQ8f.js → Typography-dcZWbxlM.js} +74 -100
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +3 -2
- package/dist/components/Dropzone/Dropzone.es.js +9 -9
- package/dist/components/Dropzone/Dropzone.stories.d.ts +2 -1
- package/dist/components/Dropzone/index.d.ts +2 -2
- package/dist/components/Icons/MoodleIcon/MoodleIcon.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.d.ts +6 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.es.js +14 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.d.ts +5 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.es.js +14 -0
- package/dist/components/Icons/MoodleIcon/index.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/index.d.ts +2 -0
- package/dist/components/Icons/MoodleIcon/index.es.js +4 -0
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +2 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -0
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +2 -1
- package/dist/components/LoaderBackdrop/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +2 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +3 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +2 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +16 -16
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.d.ts +2 -2
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.d.ts +2 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/index.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/index.d.ts +2 -2
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.d.ts +3 -3
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +2 -1
- package/dist/components/feedback/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/feedback/Alert/index.d.ts +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +111 -110
- package/dist/components/index.es.js +140 -138
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/index.d.ts +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.d.ts +2 -2
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +2 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.d.ts +2 -2
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +3 -3
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.d.ts +3 -2
- package/dist/components/lists/FileList/FileList.es.js +9 -11
- package/dist/components/lists/FileList/FileList.stories.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.es.js +11 -10
- package/dist/components/lists/FileList/index.d.ts +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.d.ts +2 -1
- package/dist/components/lists/TabList.stories.es.js +48 -49
- package/dist/components/lists/index.d.ts +1 -1
- package/dist/{createSvgIcon-DfXrmzRs.js → createSvgIcon-B7iWPHJ8.js} +3 -3
- package/dist/createSvgIcon-BI_WIb5V.js +74 -0
- package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-DxmHHVAO.cjs} +1 -1
- package/dist/createSvgIcon-bF0lGTlg.cjs +2 -0
- package/dist/{fr-BNYi5x0Z.cjs → fr-BunYFA4w.cjs} +1 -1
- package/dist/{fr-HqFYdKZp.js → fr-CxSZx9ZV.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +178 -176
- package/dist/{refType-B-3PavG_.cjs → refType-B2Uz1rXB.cjs} +1 -1
- package/dist/{refType-BklAUjsY.js → refType-BZaHOHyZ.js} +7 -7
- package/dist/styled-C9DDL6BK.cjs +26 -0
- package/dist/styled-DIjdzFBV.js +1218 -0
- package/dist/useSlotProps-B8ywiWUP.js +87 -0
- package/dist/useSlotProps-CYib4OeI.cjs +1 -0
- package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-B20BBUTu.js} +1035 -927
- package/dist/useThemeProps-zi1FRI5J.cjs +42 -0
- package/package.json +16 -16
- package/dist/Box-C0uoTW0F.cjs +0 -1
- package/dist/ButtonBase-C_YtHw1h.cjs +0 -75
- package/dist/DefaultButton-DlTnxizc.cjs +0 -1
- package/dist/IconButton-Cz-zGz0v.cjs +0 -2
- package/dist/InputBase-DCjJT6Ht.cjs +0 -4
- package/dist/SearchInput-sybrE3fq.cjs +0 -1
- package/dist/Tabs-DX6Gm63O.cjs +0 -4
- package/dist/TextInput-Bla-t0jF.cjs +0 -12
- package/dist/TimePicker-EGYtgZTn.cjs +0 -71
- package/dist/Typography-B7jZzwxf.cjs +0 -1
- package/dist/createSvgIcon-Cy5_B3av.cjs +0 -2
- package/dist/createSvgIcon-MpAknZJY.js +0 -84
- package/dist/styled-CCfndrS2.js +0 -424
- package/dist/styled-jkrYOquU.cjs +0 -24
- package/dist/useSlotProps-Br7yUp1t.js +0 -78
- package/dist/useSlotProps-I3uiiCEn.cjs +0 -1
- package/dist/useThemeProps-BYFHMDRd.cjs +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { InputBaseProps } from '@mui/material/InputBase';
|
|
2
|
+
|
|
3
3
|
export interface SearchInputProps extends InputBaseProps {
|
|
4
4
|
}
|
|
5
5
|
declare const SearchInput: React.FunctionComponent<SearchInputProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../../styled-
|
|
3
|
-
import "../../../InputBase-
|
|
4
|
-
import { S as i } from "../../../SearchInput-
|
|
2
|
+
import "../../../styled-DIjdzFBV.js";
|
|
3
|
+
import "../../../InputBase-BnfifOOr.js";
|
|
4
|
+
import { S as i } from "../../../SearchInput-BEYRgfVH.js";
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),e=require("../../../SearchInput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),e=require("../../../SearchInput-CoPiN90W.cjs"),u={title:"Components/Inputs/SearchInput",component:e.SearchInput,argTypes:{}},o=r=>n.jsx(e.SearchInput,{...r}),t=o.bind({});t.args={placeholder:"Rechercher"};exports.Default=t;exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../SearchInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../SearchInput-CoPiN90W.cjs");exports.SearchInput=e.SearchInput;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { default as SearchInput } from
|
|
1
|
+
export * from './SearchInput';
|
|
2
|
+
export { default as SearchInput } from './SearchInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const t=require("../../../TextInput-
|
|
1
|
+
"use strict";require("react/jsx-runtime");const t=require("../../../TextInput-DMTI0kNm.cjs");module.exports=t.TextInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
2
|
+
|
|
3
3
|
export type InputTextProps = {} & TextFieldProps;
|
|
4
4
|
declare const TextInput: React.FunctionComponent<InputTextProps>;
|
|
5
5
|
export default TextInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-DMTI0kNm.cjs"),r={title:"Components/Inputs/TextInput",component:e.TextInput,argTypes:{variant:{control:"select",description:"input rendering style",options:["standard","outlined","filled"],table:{defaultValue:{summary:"standard"},type:{summary:"string"}}}}},t=s=>d.jsx(e.TextInput,{...s}),n=t.bind({});n.args={label:"Default input"};const a=t.bind({});a.args={label:"Standard input",variant:"standard"};const l=t.bind({});l.args={label:"Outlined input",variant:"outlined"};const i=t.bind({});i.args={label:"Filled input",disabled:!1,variant:"filled"};exports.Default=n;exports.Filled=i;exports.Outlined=l;exports.Standard=a;exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../TextInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../TextInput-DMTI0kNm.cjs");exports.TextInput=t.TextInput;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { default as TextInput } from
|
|
1
|
+
export * from './TextInput';
|
|
2
|
+
export { default as TextInput } from './TextInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../SearchInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../SearchInput-CoPiN90W.cjs"),n=require("../../TextInput-DMTI0kNm.cjs"),e=require("./PasswordInput/PasswordInput.cjs.js");exports.SearchInput=t.SearchInput;exports.TextInput=n.TextInput;exports.PasswordInput=e;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './SearchInput';
|
|
2
|
+
export * from './TextInput';
|
|
3
|
+
export * from './PasswordInput';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as o } from "../../SearchInput-
|
|
2
|
-
import { T as e } from "../../TextInput-
|
|
1
|
+
import { S as o } from "../../SearchInput-BEYRgfVH.js";
|
|
2
|
+
import { T as e } from "../../TextInput-Db4gwAZh.js";
|
|
3
3
|
import { default as s } from "./PasswordInput/PasswordInput.es.js";
|
|
4
4
|
export {
|
|
5
5
|
s as PasswordInput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime");require("react");const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../../Box-B5JvteYc.cjs"),l=({files:i=[]})=>r.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:i.map((s,e)=>r.jsx(t,{file:s,uploading:e%2===0},e))});module.exports=l;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { File } from './FileListItem';
|
|
2
|
+
|
|
2
3
|
export interface FileListProps<T extends File> {
|
|
3
4
|
files: T[];
|
|
4
5
|
onDelete?: (file: T) => void;
|
|
5
6
|
}
|
|
6
|
-
declare const FileList: <T extends File>({ files
|
|
7
|
+
declare const FileList: <T extends File>({ files }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default FileList;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import { B as
|
|
5
|
-
const
|
|
6
|
-
files: i = []
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
e,
|
|
3
|
+
import m from "./FileListItem.es.js";
|
|
4
|
+
import { B as e } from "../../../Box-w9A3CGWz.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
files: i = []
|
|
7
|
+
}) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
|
|
8
|
+
m,
|
|
10
9
|
{
|
|
11
|
-
file:
|
|
12
|
-
uploading: o % 2 === 0
|
|
13
|
-
...t
|
|
10
|
+
file: t,
|
|
11
|
+
uploading: o % 2 === 0
|
|
14
12
|
},
|
|
15
13
|
o
|
|
16
14
|
)) });
|
|
17
15
|
export {
|
|
18
|
-
|
|
16
|
+
f as default
|
|
19
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("../../../useThemeProps-zi1FRI5J.cjs"),u=require("../../../createSvgIcon-bF0lGTlg.cjs"),p=require("react"),x=require("../../../Box-B5JvteYc.cjs"),c=require("../../../Typography-DOPsRNd4.cjs"),f=require("../../../IconButton-djnEGxm7.cjs"),h=require("../../../CircularProgress-LIVNb3Un.cjs");var s={},m=a.interopRequireDefaultExports;Object.defineProperty(s,"__esModule",{value:!0});var n=s.default=void 0,q=m(u.requireCreateSvgIcon()),j=e;n=s.default=(0,q.default)((0,j.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var i={},I=a.interopRequireDefaultExports;Object.defineProperty(i,"__esModule",{value:!0});var l=i.default=void 0,_=I(u.requireCreateSvgIcon()),g=e;l=i.default=(0,_.default)((0,g.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");const y=({file:r,uploading:o,onDelete:t})=>{const d=`${r.size} octets`,v=()=>t==null?void 0:t(r);return e.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[e.jsx(l,{color:"primary"}),e.jsxs("div",{className:"text-start w-full",children:[e.jsx(c.Typography,{children:r.name}),e.jsx(c.Typography,{fontSize:"0.875rem",color:"grey",children:d})]}),e.jsx(f.IconButton,{onClick:v,disabled:o,children:o?e.jsx(h.CircularProgress,{size:24}):e.jsx(n,{})})]})},z=p.memo(y);module.exports=z;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import c, { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { i as m } from "../../../useThemeProps-B20BBUTu.js";
|
|
3
|
+
import { r as u } from "../../../createSvgIcon-BI_WIb5V.js";
|
|
4
|
+
import v from "react";
|
|
5
|
+
import { B as _ } from "../../../Box-w9A3CGWz.js";
|
|
6
|
+
import { T as l } from "../../../Typography-dcZWbxlM.js";
|
|
7
|
+
import { I as h } from "../../../IconButton-SMmmWi-o.js";
|
|
8
|
+
import { C as x } from "../../../CircularProgress-CKU4oqMn.js";
|
|
8
9
|
var a = {}, I = m;
|
|
9
10
|
Object.defineProperty(a, "__esModule", {
|
|
10
11
|
value: !0
|
|
@@ -26,16 +27,16 @@ const R = ({
|
|
|
26
27
|
uploading: o,
|
|
27
28
|
onDelete: t
|
|
28
29
|
}) => {
|
|
29
|
-
const f = `${r.size} octets`,
|
|
30
|
+
const f = `${r.size} octets`, p = () => t == null ? void 0 : t(r);
|
|
30
31
|
return /* @__PURE__ */ s(_, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
|
|
31
32
|
/* @__PURE__ */ e(n, { color: "primary" }),
|
|
32
33
|
/* @__PURE__ */ s("div", { className: "text-start w-full", children: [
|
|
33
34
|
/* @__PURE__ */ e(l, { children: r.name }),
|
|
34
35
|
/* @__PURE__ */ e(l, { fontSize: "0.875rem", color: "grey", children: f })
|
|
35
36
|
] }),
|
|
36
|
-
/* @__PURE__ */ e(h, { onClick:
|
|
37
|
+
/* @__PURE__ */ e(h, { onClick: p, disabled: o, children: o ? /* @__PURE__ */ e(x, { size: 24 }) : /* @__PURE__ */ e(d, {}) })
|
|
37
38
|
] });
|
|
38
|
-
},
|
|
39
|
+
}, D = v.memo(R);
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
D as default
|
|
41
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { default as FileList } from
|
|
3
|
-
export * from
|
|
4
|
-
export { default as FileListItem } from
|
|
1
|
+
export * from './FileList';
|
|
2
|
+
export { default as FileList } from './FileList';
|
|
3
|
+
export * from './FileListItem';
|
|
4
|
+
export { default as FileListItem } from './FileListItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),t=require("../../useThemeProps-zi1FRI5J.cjs"),_=require("react"),d=require("../../Tabs-Cr7s6H3h.cjs"),b=require("../../styled-C9DDL6BK.cjs");function O(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const a=O(_),f=a.createContext(null);process.env.NODE_ENV!=="production"&&(f.displayName="TabContext");function E(){const[e,n]=a.useState(null);return a.useEffect(()=>{n(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v(e){const{children:n,value:o}=e,r=E(),c=a.useMemo(()=>({idPrefix:r,value:o}),[r,o]);return s.jsx(f.Provider,{value:c,children:n})}process.env.NODE_ENV!=="production"&&(v.propTypes={children:t.PropTypes.node,value:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]).isRequired});function x(){return a.useContext(f)}function h(e,n){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-P-${n}`}function m(e,n){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-T-${n}`}const D=["children"],P=a.forwardRef(function(n,o){const{children:r}=n,c=t._objectWithoutPropertiesLoose(n,D),l=x();if(l===null)throw new TypeError("No TabContext provided");const i=a.Children.map(r,u=>a.isValidElement(u)?a.cloneElement(u,{"aria-controls":h(l,u.props.value),id:m(l,u.props.value)}):null);return s.jsx(d.Tabs,t._extends({},c,{ref:o,value:l.value,children:i}))});process.env.NODE_ENV!=="production"&&(P.propTypes={children:t.PropTypes.node});function M(e){return t.generateUtilityClass("MuiTabPanel",e)}b.generateUtilityClasses("MuiTabPanel",["root"]);const q=["children","className","value"],w=e=>{const{classes:n}=e,o={root:["root"]};return b.composeClasses(o,M,n)},R=b.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({padding:e.spacing(3)})),T=a.forwardRef(function(n,o){const r=t.useThemeProps({props:n,name:"MuiTabPanel"}),{children:c,className:l,value:i}=r,u=t._objectWithoutPropertiesLoose(r,q),y=t._extends({},r),j=w(y),p=x();if(p===null)throw new TypeError("No TabContext provided");const C=h(p,i),N=m(p,i);return s.jsx(R,t._extends({"aria-labelledby":N,className:b.clsx(j.root,l),hidden:i!==p.value,id:C,ref:o,role:"tabpanel",ownerState:y},u,{children:i===p.value&&c}))});process.env.NODE_ENV!=="production"&&(T.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),value:t.PropTypes.string.isRequired});const $={title:"Components/Data Display/TabList",component:P,argTypes:{value:{options:["1","2","3"],control:{type:"select"}}}},S=e=>s.jsxs(v,{value:e.value,children:[s.jsxs(P,{onChange:e.handleChange,"aria-label":"lab API tabs example",children:[s.jsx(d.Tab,{label:"Utilisateurs",value:"1"}),s.jsx(d.Tab,{label:"Groupes",value:"2"}),s.jsx(d.Tab,{label:"Demandes d'inscription",value:"3"})]}),s.jsx(T,{value:"1",children:"Utilisateurs"}),s.jsx(T,{value:"2",children:"Groupes"}),s.jsx(T,{value:"3",children:"Demandes d'inscription"})]}),g=S.bind({});g.args={value:"1",handleChange:(e,n)=>!0};exports.Default=g;exports.default=$;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { P as t, b as
|
|
1
|
+
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { P as t, b as x, _ as b, g as _, u as w } from "../../useThemeProps-B20BBUTu.js";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import { a as
|
|
5
|
-
import { g as
|
|
4
|
+
import { a as O, T as f } from "../../Tabs-NsW3-ZTG.js";
|
|
5
|
+
import { g as R, s as M, c as U, a as j } from "../../styled-DIjdzFBV.js";
|
|
6
6
|
const v = /* @__PURE__ */ s.createContext(null);
|
|
7
7
|
process.env.NODE_ENV !== "production" && (v.displayName = "TabContext");
|
|
8
|
-
function
|
|
8
|
+
function $() {
|
|
9
9
|
const [e, n] = s.useState(null);
|
|
10
10
|
return s.useEffect(() => {
|
|
11
11
|
n(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
12
12
|
}, []), e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function P(e) {
|
|
15
15
|
const {
|
|
16
16
|
children: n,
|
|
17
17
|
value: o
|
|
18
|
-
} = e, a =
|
|
18
|
+
} = e, a = $(), u = s.useMemo(() => ({
|
|
19
19
|
idPrefix: a,
|
|
20
20
|
value: o
|
|
21
21
|
}), [a, o]);
|
|
@@ -24,7 +24,7 @@ function x(e) {
|
|
|
24
24
|
children: n
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
process.env.NODE_ENV !== "production" && (
|
|
27
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
28
28
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
29
29
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
30
30
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -38,39 +38,39 @@ process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
|
38
38
|
*/
|
|
39
39
|
value: t.oneOfType([t.number, t.string]).isRequired
|
|
40
40
|
});
|
|
41
|
-
function
|
|
41
|
+
function y() {
|
|
42
42
|
return s.useContext(v);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function C(e, n) {
|
|
45
45
|
const {
|
|
46
46
|
idPrefix: o
|
|
47
47
|
} = e;
|
|
48
48
|
return o === null ? null : `${e.idPrefix}-P-${n}`;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function g(e, n) {
|
|
51
51
|
const {
|
|
52
52
|
idPrefix: o
|
|
53
53
|
} = e;
|
|
54
54
|
return o === null ? null : `${e.idPrefix}-T-${n}`;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const I = ["children"], T = /* @__PURE__ */ s.forwardRef(function(n, o) {
|
|
57
57
|
const {
|
|
58
58
|
children: a
|
|
59
|
-
} = n, u =
|
|
59
|
+
} = n, u = x(n, I), l = y();
|
|
60
60
|
if (l === null)
|
|
61
61
|
throw new TypeError("No TabContext provided");
|
|
62
62
|
const i = s.Children.map(a, (c) => /* @__PURE__ */ s.isValidElement(c) ? /* @__PURE__ */ s.cloneElement(c, {
|
|
63
63
|
// SOMEDAY: `Tabs` will set those themselves
|
|
64
|
-
"aria-controls":
|
|
65
|
-
id:
|
|
64
|
+
"aria-controls": C(l, c.props.value),
|
|
65
|
+
id: g(l, c.props.value)
|
|
66
66
|
}) : null);
|
|
67
|
-
return /* @__PURE__ */ r(
|
|
67
|
+
return /* @__PURE__ */ r(O, b({}, u, {
|
|
68
68
|
ref: o,
|
|
69
69
|
value: l.value,
|
|
70
70
|
children: i
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
|
-
process.env.NODE_ENV !== "production" && (
|
|
73
|
+
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
74
74
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
75
75
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
76
76
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -80,19 +80,18 @@ process.env.NODE_ENV !== "production" && (g.propTypes = {
|
|
|
80
80
|
*/
|
|
81
81
|
children: t.node
|
|
82
82
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return O("MuiTabPanel", e);
|
|
83
|
+
function V(e) {
|
|
84
|
+
return _("MuiTabPanel", e);
|
|
86
85
|
}
|
|
87
|
-
|
|
88
|
-
const
|
|
86
|
+
R("MuiTabPanel", ["root"]);
|
|
87
|
+
const L = ["children", "className", "value"], q = (e) => {
|
|
89
88
|
const {
|
|
90
89
|
classes: n
|
|
91
90
|
} = e;
|
|
92
|
-
return
|
|
91
|
+
return j({
|
|
93
92
|
root: ["root"]
|
|
94
|
-
},
|
|
95
|
-
},
|
|
93
|
+
}, V, n);
|
|
94
|
+
}, S = M("div", {
|
|
96
95
|
name: "MuiTabPanel",
|
|
97
96
|
slot: "Root",
|
|
98
97
|
overridesResolver: (e, n) => n.root
|
|
@@ -100,31 +99,31 @@ const S = ["children", "className", "value"], G = (e) => {
|
|
|
100
99
|
theme: e
|
|
101
100
|
}) => ({
|
|
102
101
|
padding: e.spacing(3)
|
|
103
|
-
})),
|
|
104
|
-
const a =
|
|
102
|
+
})), p = /* @__PURE__ */ s.forwardRef(function(n, o) {
|
|
103
|
+
const a = w({
|
|
105
104
|
props: n,
|
|
106
105
|
name: "MuiTabPanel"
|
|
107
106
|
}), {
|
|
108
107
|
children: u,
|
|
109
108
|
className: l,
|
|
110
109
|
value: i
|
|
111
|
-
} = a, c =
|
|
110
|
+
} = a, c = x(a, L), m = b({}, a), N = q(m), d = y();
|
|
112
111
|
if (d === null)
|
|
113
112
|
throw new TypeError("No TabContext provided");
|
|
114
|
-
const
|
|
115
|
-
return /* @__PURE__ */ r(
|
|
116
|
-
"aria-labelledby":
|
|
117
|
-
className:
|
|
113
|
+
const E = C(d, i), D = g(d, i);
|
|
114
|
+
return /* @__PURE__ */ r(S, b({
|
|
115
|
+
"aria-labelledby": D,
|
|
116
|
+
className: U(N.root, l),
|
|
118
117
|
hidden: i !== d.value,
|
|
119
|
-
id:
|
|
118
|
+
id: E,
|
|
120
119
|
ref: o,
|
|
121
120
|
role: "tabpanel",
|
|
122
|
-
ownerState:
|
|
121
|
+
ownerState: m
|
|
123
122
|
}, c, {
|
|
124
123
|
children: i === d.value && u
|
|
125
124
|
}));
|
|
126
125
|
});
|
|
127
|
-
process.env.NODE_ENV !== "production" && (
|
|
126
|
+
process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
128
127
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
129
128
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
130
129
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -151,9 +150,9 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
151
150
|
*/
|
|
152
151
|
value: t.string.isRequired
|
|
153
152
|
});
|
|
154
|
-
const
|
|
153
|
+
const F = {
|
|
155
154
|
title: "Components/Data Display/TabList",
|
|
156
|
-
component:
|
|
155
|
+
component: T,
|
|
157
156
|
argTypes: {
|
|
158
157
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
159
158
|
value: {
|
|
@@ -161,21 +160,21 @@ const f = E, J = {
|
|
|
161
160
|
control: { type: "select" }
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
},
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */ r(
|
|
167
|
-
/* @__PURE__ */ r(
|
|
168
|
-
/* @__PURE__ */ r(
|
|
163
|
+
}, G = (e) => /* @__PURE__ */ h(P, { value: e.value, children: [
|
|
164
|
+
/* @__PURE__ */ h(T, { onChange: e.handleChange, "aria-label": "lab API tabs example", children: [
|
|
165
|
+
/* @__PURE__ */ r(f, { label: "Utilisateurs", value: "1" }),
|
|
166
|
+
/* @__PURE__ */ r(f, { label: "Groupes", value: "2" }),
|
|
167
|
+
/* @__PURE__ */ r(f, { label: "Demandes d'inscription", value: "3" })
|
|
169
168
|
] }),
|
|
170
|
-
/* @__PURE__ */ r(
|
|
171
|
-
/* @__PURE__ */ r(
|
|
172
|
-
/* @__PURE__ */ r(
|
|
173
|
-
] }),
|
|
174
|
-
|
|
169
|
+
/* @__PURE__ */ r(p, { value: "1", children: "Utilisateurs" }),
|
|
170
|
+
/* @__PURE__ */ r(p, { value: "2", children: "Groupes" }),
|
|
171
|
+
/* @__PURE__ */ r(p, { value: "3", children: "Demandes d'inscription" })
|
|
172
|
+
] }), A = G.bind({});
|
|
173
|
+
A.args = {
|
|
175
174
|
value: "1",
|
|
176
175
|
handleChange: (e, n) => !0
|
|
177
176
|
};
|
|
178
177
|
export {
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
A as Default,
|
|
179
|
+
F as default
|
|
181
180
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './FileList';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as b, c as g, u as I, b as w, _ as S, P as o } from "./useThemeProps-
|
|
1
|
+
import { g as b, c as g, u as I, b as w, _ as S, P as o } from "./useThemeProps-B20BBUTu.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { jsxs as C, jsx as _ } from "react/jsx-runtime";
|
|
4
|
-
import { g as T, s as N, c as R, a as O } from "./styled-
|
|
4
|
+
import { g as T, s as N, c as R, a as O } from "./styled-DIjdzFBV.js";
|
|
5
5
|
function B(e) {
|
|
6
6
|
return b("MuiSvgIcon", e);
|
|
7
7
|
}
|
|
@@ -35,7 +35,7 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
35
35
|
height: "1em",
|
|
36
36
|
display: "inline-block",
|
|
37
37
|
// the <svg> will define the property that has `currentColor`
|
|
38
|
-
//
|
|
38
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
39
39
|
fill: n.hasSvgAsChild ? void 0 : "currentColor",
|
|
40
40
|
flexShrink: 0,
|
|
41
41
|
transition: (t = e.transitions) == null || (r = t.create) == null ? void 0 : r.call(t, "fill", {
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { _ as g, C as v, c as _, f as b } from "./useThemeProps-B20BBUTu.js";
|
|
2
|
+
import { c as y } from "./createSvgIcon-B7iWPHJ8.js";
|
|
3
|
+
import { c as E, i as C, u as N } from "./useControlled-BsLcOmhe.js";
|
|
4
|
+
import { s as S, u as I, a as $ } from "./useForkRef-CQ5u1_mH.js";
|
|
5
|
+
import { d as T, o as P, a as w } from "./ownerWindow-C7EH1lr6.js";
|
|
6
|
+
import { u as O } from "./useId-BW-oWmul.js";
|
|
7
|
+
import { u as j } from "./unsupportedProp-BuVD30Gh.js";
|
|
8
|
+
import { u as q } from "./useTimeout-Dokw0W_A.js";
|
|
9
|
+
import { u as F } from "./useIsFocusVisible-BsjI7Zxf.js";
|
|
10
|
+
function k(e, r) {
|
|
11
|
+
return process.env.NODE_ENV === "production" ? () => null : (n, s, u, t, o) => {
|
|
12
|
+
const a = u || "<<anonymous>>", i = o || s;
|
|
13
|
+
return typeof n[s] < "u" ? new Error(`The ${t} \`${i}\` of \`${a}\` is deprecated. ${r}`) : null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function D(e, r) {
|
|
17
|
+
if (process.env.NODE_ENV === "production")
|
|
18
|
+
return () => null;
|
|
19
|
+
const n = r ? g({}, r.propTypes) : null;
|
|
20
|
+
return (u) => (t, o, a, i, l, ...h) => {
|
|
21
|
+
const f = l || o, m = n == null ? void 0 : n[f];
|
|
22
|
+
if (m) {
|
|
23
|
+
const d = m(t, o, a, i, l, ...h);
|
|
24
|
+
if (d)
|
|
25
|
+
return d;
|
|
26
|
+
}
|
|
27
|
+
return typeof t[o] < "u" && !t[u] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
var c = {};
|
|
31
|
+
const G = {
|
|
32
|
+
configure: (e) => {
|
|
33
|
+
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
34
|
+
`)), v.configure(e);
|
|
35
|
+
}
|
|
36
|
+
}, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
|
+
__proto__: null,
|
|
38
|
+
capitalize: _,
|
|
39
|
+
createChainedFunction: E,
|
|
40
|
+
createSvgIcon: y,
|
|
41
|
+
debounce: T,
|
|
42
|
+
deprecatedPropType: k,
|
|
43
|
+
isMuiElement: C,
|
|
44
|
+
ownerDocument: P,
|
|
45
|
+
ownerWindow: w,
|
|
46
|
+
requirePropFactory: D,
|
|
47
|
+
setRef: S,
|
|
48
|
+
unstable_ClassNameGenerator: G,
|
|
49
|
+
unstable_useEnhancedEffect: I,
|
|
50
|
+
unstable_useId: O,
|
|
51
|
+
unsupportedProp: j,
|
|
52
|
+
useControlled: N,
|
|
53
|
+
useEventCallback: q,
|
|
54
|
+
useForkRef: $,
|
|
55
|
+
useIsFocusVisible: F
|
|
56
|
+
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ b(M);
|
|
57
|
+
var p;
|
|
58
|
+
function J() {
|
|
59
|
+
return p || (p = 1, function(e) {
|
|
60
|
+
"use client";
|
|
61
|
+
Object.defineProperty(e, "__esModule", {
|
|
62
|
+
value: !0
|
|
63
|
+
}), Object.defineProperty(e, "default", {
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
get: function() {
|
|
66
|
+
return r.createSvgIcon;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var r = R;
|
|
70
|
+
}(c)), c;
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
J as r
|
|
74
|
+
};
|