@cgi-learning-hub/ui 1.2.0-dev.1726155921 → 1.2.0-dev.1726157609
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/{DatePicker-C2NB6D2n.js → DatePicker-BuzPxxRu.js} +5 -5
- package/dist/{DatePicker-DwFLe3I1.cjs → DatePicker-Dv6DlDvx.cjs} +2 -2
- package/dist/{DefaultButton-DuBPX2t6.cjs → DefaultButton-CiJrbBFX.cjs} +1 -1
- package/dist/{DefaultButton-BoUBlnAR.js → DefaultButton-RGKJJmMc.js} +34 -34
- package/dist/{Tooltip-BHgQjBJ3.cjs → Tooltip-D3Bjn2NS.cjs} +1 -1
- package/dist/{Tooltip-DTbN1pOw.js → Tooltip-DvuU63iR.js} +1 -1
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +4 -8
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.es.js +7 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -3
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +7 -8
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -3
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +30 -30
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +273 -282
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +3 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +22 -27
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.stories.es.js +7 -8
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +12 -13
- package/dist/components/FileList/FileList.stories.cjs.js +1 -1
- package/dist/components/FileList/FileList.stories.es.js +3 -4
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -28
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +13 -13
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +3 -9
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/Loader/Loader.stories.es.js +7 -8
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -9
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +3 -4
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +31 -35
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +13 -13
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +22 -22
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +7 -8
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +3 -4
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +9 -9
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +15 -16
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +12 -12
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.stories.es.js +5 -6
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +3 -4
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +4 -4
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +87 -96
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +3 -4
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.stories.es.js +16 -17
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +3 -3
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import c from "../TextInput/TextInput.es.js";
|
|
1
|
+
import t, { useState as c } from "react";
|
|
2
|
+
import m from "../TextInput/TextInput.es.js";
|
|
4
3
|
import "../Alert/Alert.es.js";
|
|
5
4
|
import "../../fr-CUBngGd5.js";
|
|
6
|
-
import "../../DefaultButton-
|
|
5
|
+
import "../../DefaultButton-RGKJJmMc.js";
|
|
7
6
|
import '../../assets/styles.css';import '../../assets/styles2.css';/* empty css */
|
|
8
7
|
/* empty css */
|
|
9
8
|
import "../SearchInput/SearchInput.es.js";
|
|
10
9
|
import { I as p } from "../../InputAdornment-PpcxpcaW.js";
|
|
11
|
-
import { I as
|
|
10
|
+
import { I as d } from "../../IconButton-BJnGbprU.js";
|
|
11
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
12
12
|
import { c as r } from "../../createSvgIcon-DlEk80Du.js";
|
|
13
|
-
const
|
|
13
|
+
const u = r(/* @__PURE__ */ i("path", {
|
|
14
14
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-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"
|
|
15
|
-
}), "Visibility"), f = r(/* @__PURE__ */
|
|
15
|
+
}), "Visibility"), f = r(/* @__PURE__ */ i("path", {
|
|
16
16
|
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
|
|
17
|
-
}), "VisibilityOff"), S = (
|
|
18
|
-
const [s,
|
|
19
|
-
|
|
17
|
+
}), "VisibilityOff"), S = (o) => {
|
|
18
|
+
const [s, n] = c(!1), l = () => n((e) => !e), a = (e) => {
|
|
19
|
+
e.preventDefault();
|
|
20
20
|
};
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ t.createElement(
|
|
22
|
+
m,
|
|
23
23
|
{
|
|
24
|
-
...
|
|
24
|
+
...o,
|
|
25
25
|
variant: "outlined",
|
|
26
|
-
label:
|
|
26
|
+
label: o.label,
|
|
27
27
|
type: s ? "text" : "password",
|
|
28
28
|
InputProps: {
|
|
29
|
-
endAdornment: /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
endAdornment: /* @__PURE__ */ t.createElement(p, { position: "end" }, /* @__PURE__ */ t.createElement(
|
|
30
|
+
d,
|
|
31
31
|
{
|
|
32
32
|
"aria-label": "toggle password visibility",
|
|
33
|
-
onClick:
|
|
34
|
-
onMouseDown:
|
|
35
|
-
edge: "end"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
)
|
|
33
|
+
onClick: l,
|
|
34
|
+
onMouseDown: a,
|
|
35
|
+
edge: "end"
|
|
36
|
+
},
|
|
37
|
+
s ? /* @__PURE__ */ t.createElement(f, null) : /* @__PURE__ */ t.createElement(u, null)
|
|
38
|
+
))
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
);
|
|
@@ -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 e=require("./PasswordInput.cjs.js"),o={title:"Components/PasswordInput",component:e,argTypes:{}},n=s=>React.createElement(e,{...s}),t=n.bind({});t.args={label:"Password"};exports.Default=t;exports.default=o;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const p = {
|
|
1
|
+
import t from "./PasswordInput.es.js";
|
|
2
|
+
const n = {
|
|
4
3
|
title: "Components/PasswordInput",
|
|
5
|
-
component:
|
|
4
|
+
component: t,
|
|
6
5
|
argTypes: {
|
|
7
6
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
8
7
|
}
|
|
9
|
-
},
|
|
10
|
-
|
|
8
|
+
}, s = (e) => /* @__PURE__ */ React.createElement(t, { ...e }), o = s.bind({});
|
|
9
|
+
o.args = {
|
|
11
10
|
label: "Password"
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
o as Default,
|
|
14
|
+
n as default
|
|
16
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("../../DefaultButton-CiJrbBFX.cjs"),n=t=>React.createElement(e.DefaultButton,{color:"primary",variant:t.variant??"outlined",...t});module.exports=n;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const n = (t) => /* @__PURE__ */ r(
|
|
1
|
+
import { D as a } from "../../DefaultButton-RGKJJmMc.js";
|
|
2
|
+
const e = (t) => /* @__PURE__ */ React.createElement(
|
|
4
3
|
a,
|
|
5
4
|
{
|
|
6
5
|
color: "primary",
|
|
@@ -9,5 +8,5 @@ const n = (t) => /* @__PURE__ */ r(
|
|
|
9
8
|
}
|
|
10
9
|
);
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
e as default
|
|
13
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./PrimaryButton.cjs.js"),n=require("react/jsx-runtime"),r=require("../../createSvgIcon-D8PyZepp.cjs"),a=r.createSvgIcon(n.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),c={title:"Components/PrimaryButton",component:e,argTypes:{}},s=o=>React.createElement(e,{...o}),t=s.bind({});t.args={text:"Save",icon:{Component:a,position:"left"},onClick:()=>alert("Alert"),disabled:!1};exports.Default=t;exports.default=c;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import o from "
|
|
1
|
+
import t from "./PrimaryButton.es.js";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { c as a } from "../../createSvgIcon-DlEk80Du.js";
|
|
4
|
-
const n = a(/* @__PURE__ */
|
|
4
|
+
const n = a(/* @__PURE__ */ o("path", {
|
|
5
5
|
d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
|
|
6
|
-
}), "Save"),
|
|
6
|
+
}), "Save"), l = {
|
|
7
7
|
title: "Components/PrimaryButton",
|
|
8
|
-
component:
|
|
8
|
+
component: t,
|
|
9
9
|
argTypes: {
|
|
10
10
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
11
11
|
}
|
|
12
|
-
}, r = (e) => /* @__PURE__ */ t
|
|
13
|
-
|
|
12
|
+
}, r = (e) => /* @__PURE__ */ React.createElement(t, { ...e }), c = r.bind({});
|
|
13
|
+
c.args = {
|
|
14
14
|
text: "Save",
|
|
15
15
|
icon: {
|
|
16
16
|
Component: n,
|
|
@@ -20,6 +20,6 @@ s.args = {
|
|
|
20
20
|
disabled: !1
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
c as Default,
|
|
24
|
+
l as default
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("
|
|
1
|
+
"use strict";const e=require("../EmptyState/EmptyState.cjs.js"),r=require("./helpers.cjs.js"),a=({error:t,statusPrefix:i="Erreur "})=>{if(r.isFetchBaseQueryError(t)){const s="error"in t?t.error:t.data?JSON.stringify(t.data):null;return typeof t.status=="number"&&t.status.toString().startsWith("4")?React.createElement(e,{svgName:"client-error",title:`Erreur client (${t.status})`,description:s??void 0}):typeof t.status=="number"&&t.status.toString().startsWith("5")?React.createElement(e,{svgName:"server-error",title:`Erreur serveur (${t.status})`,description:s??void 0}):React.createElement(e,{svgName:"error",title:`${i}${t.status}`,description:s??void 0})}return React.createElement(e,{svgName:"error",title:r.isErrorWithMessage(t)?t.message:"Une erreur est survenue"})};module.exports=a;
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
2
1
|
import e from "../EmptyState/EmptyState.es.js";
|
|
3
|
-
import { isFetchBaseQueryError as
|
|
4
|
-
const
|
|
2
|
+
import { isFetchBaseQueryError as a, isErrorWithMessage as i } from "./helpers.es.js";
|
|
3
|
+
const c = ({
|
|
5
4
|
error: t,
|
|
6
|
-
statusPrefix:
|
|
5
|
+
statusPrefix: r = "Erreur "
|
|
7
6
|
}) => {
|
|
8
|
-
if (
|
|
9
|
-
const
|
|
10
|
-
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */
|
|
7
|
+
if (a(t)) {
|
|
8
|
+
const s = "error" in t ? t.error : t.data ? JSON.stringify(t.data) : null;
|
|
9
|
+
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */ React.createElement(
|
|
11
10
|
e,
|
|
12
11
|
{
|
|
13
12
|
svgName: "client-error",
|
|
14
13
|
title: `Erreur client (${t.status})`,
|
|
15
|
-
description:
|
|
14
|
+
description: s ?? void 0
|
|
16
15
|
}
|
|
17
|
-
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */
|
|
16
|
+
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */ React.createElement(
|
|
18
17
|
e,
|
|
19
18
|
{
|
|
20
19
|
svgName: "server-error",
|
|
21
20
|
title: `Erreur serveur (${t.status})`,
|
|
22
|
-
description:
|
|
21
|
+
description: s ?? void 0
|
|
23
22
|
}
|
|
24
|
-
) : /* @__PURE__ */
|
|
23
|
+
) : /* @__PURE__ */ React.createElement(
|
|
25
24
|
e,
|
|
26
25
|
{
|
|
27
26
|
svgName: "error",
|
|
28
|
-
title: `${
|
|
29
|
-
description:
|
|
27
|
+
title: `${r}${t.status}`,
|
|
28
|
+
description: s ?? void 0
|
|
30
29
|
}
|
|
31
30
|
);
|
|
32
31
|
}
|
|
33
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */ React.createElement(
|
|
34
33
|
e,
|
|
35
34
|
{
|
|
36
35
|
svgName: "error",
|
|
37
|
-
title:
|
|
36
|
+
title: i(t) ? t.message : "Une erreur est survenue"
|
|
38
37
|
}
|
|
39
38
|
);
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
c as default
|
|
43
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("../../DefaultPropsProvider-DKOXnH6X.cjs"),n=require("../../InputBase-OeRcp1ZZ.cjs"),o=require("../../InputAdornment-JWlblqnc.cjs"),a=require("react/jsx-runtime"),c=require("../../createSvgIcon-D8PyZepp.cjs"),u=c.createSvgIcon(a.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),s=r.styled(n.InputBase)(({theme:e})=>({width:"auto",padding:"0px 12px",backgroundColor:e.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}})),p=({placeholder:e="Rechercher",...t})=>React.createElement(s,{...t,placeholder:e,startAdornment:React.createElement(o.InputAdornment,{position:"start",disablePointerEvents:!0},React.createElement(u,null)),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});module.exports=p;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { I as a } from "../../
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
1
|
+
import { s as r } from "../../DefaultPropsProvider-DjhaxXa-.js";
|
|
2
|
+
import { I as o } from "../../InputBase-WXNV7_fG.js";
|
|
3
|
+
import { I as a } from "../../InputAdornment-PpcxpcaW.js";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { c as p } from "../../createSvgIcon-DlEk80Du.js";
|
|
6
|
+
const c = p(/* @__PURE__ */ n("path", {
|
|
7
7
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
8
|
-
}), "Search"),
|
|
8
|
+
}), "Search"), s = r(o)(({ theme: t }) => ({
|
|
9
9
|
width: "auto",
|
|
10
10
|
padding: "0px 12px",
|
|
11
11
|
backgroundColor: t.palette.grey[50],
|
|
@@ -20,13 +20,13 @@ const s = n(/* @__PURE__ */ r("path", {
|
|
|
20
20
|
}
|
|
21
21
|
})), f = ({
|
|
22
22
|
placeholder: t = "Rechercher",
|
|
23
|
-
...
|
|
24
|
-
}) => /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
...e
|
|
24
|
+
}) => /* @__PURE__ */ React.createElement(
|
|
25
|
+
s,
|
|
26
26
|
{
|
|
27
|
-
...
|
|
27
|
+
...e,
|
|
28
28
|
placeholder: t,
|
|
29
|
-
startAdornment: /* @__PURE__ */
|
|
29
|
+
startAdornment: /* @__PURE__ */ React.createElement(a, { position: "start", disablePointerEvents: !0 }, /* @__PURE__ */ React.createElement(c, null)),
|
|
30
30
|
type: "search",
|
|
31
31
|
autoComplete: "off",
|
|
32
32
|
autoCorrect: "off",
|
|
@@ -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 e=require("./SearchInput.cjs.js"),o={title:"Components/SearchInput",component:e,argTypes:{}},r=n=>React.createElement(e,{...n}),t=r.bind({});t.args={placeholder:"Rechercher"};exports.Default=t;exports.default=o;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
1
|
import e from "./SearchInput.es.js";
|
|
3
|
-
const
|
|
2
|
+
const c = {
|
|
4
3
|
title: "Components/SearchInput",
|
|
5
4
|
component: e,
|
|
6
5
|
argTypes: {
|
|
7
6
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
8
7
|
}
|
|
9
|
-
},
|
|
10
|
-
|
|
8
|
+
}, o = (t) => /* @__PURE__ */ React.createElement(e, { ...t }), r = o.bind({});
|
|
9
|
+
r.args = {
|
|
11
10
|
placeholder: "Rechercher"
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
r as Default,
|
|
14
|
+
c as default
|
|
16
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("
|
|
1
|
+
"use strict";const e=require("../../DefaultButton-CiJrbBFX.cjs"),n=t=>React.createElement(e.DefaultButton,{color:"secondary",variant:t.variant??"outlined",...t});module.exports=n;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const e = (t) => /* @__PURE__ */ o(a, { color: "secondary", variant: t.variant ?? "outlined", ...t });
|
|
1
|
+
import { D as a } from "../../DefaultButton-RGKJJmMc.js";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ React.createElement(a, { color: "secondary", variant: t.variant ?? "outlined", ...t });
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
o as default
|
|
6
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SecondaryButton.cjs.js"),n=require("react/jsx-runtime"),r=require("../../createSvgIcon-D8PyZepp.cjs"),c=r.createSvgIcon(n.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),s={title:"Components/SecondaryButton",component:e,argTypes:{}},a=o=>React.createElement(e,{...o}),t=a.bind({});t.args={text:"Add user",icon:{Component:c,position:"left"},onClick:()=>alert("Alert"),disabled:!1};exports.Default=t;exports.default=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
1
|
import t from "./SecondaryButton.es.js";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { c as n } from "../../createSvgIcon-DlEk80Du.js";
|
|
4
|
-
const
|
|
4
|
+
const r = n(/* @__PURE__ */ o("path", {
|
|
5
5
|
d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
6
6
|
}), "PersonAdd"), i = {
|
|
7
7
|
title: "Components/SecondaryButton",
|
|
@@ -9,11 +9,11 @@ const s = n(/* @__PURE__ */ o("path", {
|
|
|
9
9
|
argTypes: {
|
|
10
10
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
11
11
|
}
|
|
12
|
-
},
|
|
12
|
+
}, s = (e) => /* @__PURE__ */ React.createElement(t, { ...e }), c = s.bind({});
|
|
13
13
|
c.args = {
|
|
14
14
|
text: "Add user",
|
|
15
15
|
icon: {
|
|
16
|
-
Component:
|
|
16
|
+
Component: r,
|
|
17
17
|
position: "left"
|
|
18
18
|
},
|
|
19
19
|
onClick: () => alert("Alert"),
|
|
@@ -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 N=require("react"),t=require("../identifier-icEThk5F.cjs"),T=require("react/jsx-runtime"),p=require("../Tabs-C27chebV.cjs"),O=require("../DefaultPropsProvider-DKOXnH6X.cjs"),M=require("../useThemeProps-BYd-NHTG.cjs"),j=require("../composeClasses-B_ETVugV.cjs");function q(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const s=q(N),f=s.createContext(null);process.env.NODE_ENV!=="production"&&(f.displayName="TabContext");function D(){const[e,n]=s.useState(null);return s.useEffect(()=>{n(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v(e){const{children:n,value:r}=e,o=D(),c=s.useMemo(()=>({idPrefix:o,value:r}),[o,r]);return T.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 y(){return s.useContext(f)}function m(e,n){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${n}`}function h(e,n){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${n}`}const b=s.forwardRef(function(n,r){const{children:o,...c}=n,a=y();if(a===null)throw new TypeError("No TabContext provided");const l=s.Children.map(o,i=>s.isValidElement(i)?s.cloneElement(i,{"aria-controls":m(a,i.props.value),id:h(a,i.props.value)}):null);return T.jsx(p.Tabs,{...c,ref:r,value:a.value,children:l})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:t.PropTypes.node});function w(e){return t.generateUtilityClass("MuiTabPanel",e)}t.generateUtilityClasses("MuiTabPanel",["root","hidden"]);const _=e=>{const{classes:n,hidden:r}=e,o={root:["root",r&&"hidden"]};return j.composeClasses(o,w,n)},$=O.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({padding:e.spacing(3)})),d=s.forwardRef(function(n,r){const o=M.useThemeProps({props:n,name:"MuiTabPanel"}),{children:c,className:a,value:l,keepMounted:i=!1,...x}=o,P={...o},E=_(P),u=y();if(u===null)throw new TypeError("No TabContext provided");const C=m(u,l),R=h(u,l);return T.jsx($,{"aria-labelledby":R,className:t.clsx(E.root,a),hidden:l!==u.value,id:C,ref:r,role:"tabpanel",ownerState:P,...x,children:(i||l===u.value)&&c})});process.env.NODE_ENV!=="production"&&(d.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,keepMounted:t.PropTypes.bool,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 S={title:"Components/TabList",component:b,argTypes:{value:{options:["1","2","3"],control:{type:"select"}}}},U=e=>React.createElement(v,{value:e.value},React.createElement(b,{onChange:e.handleChange,"aria-label":"lab API tabs example"},React.createElement(p.Tab,{label:"Utilisateurs",value:"1"}),React.createElement(p.Tab,{label:"Groupes",value:"2"}),React.createElement(p.Tab,{label:"Demandes d'inscription",value:"3"})),React.createElement(d,{value:"1"},"Utilisateurs"),React.createElement(d,{value:"2"},"Groupes"),React.createElement(d,{value:"3"},"Demandes d'inscription")),g=U.bind({});g.args={value:"1",handleChange:(e,n)=>!0};exports.Default=g;exports.default=S;
|