@cgi-learning-hub/ui 1.2.0-dev.1726157609 → 1.2.0-dev.1726157992
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-BuzPxxRu.js → DatePicker-C2NB6D2n.js} +5 -5
- package/dist/{DatePicker-Dv6DlDvx.cjs → DatePicker-DwFLe3I1.cjs} +2 -2
- package/dist/{DefaultButton-RGKJJmMc.js → DefaultButton-BoUBlnAR.js} +34 -34
- package/dist/{DefaultButton-CiJrbBFX.cjs → DefaultButton-DuBPX2t6.cjs} +1 -1
- package/dist/{Tooltip-D3Bjn2NS.cjs → Tooltip-BHgQjBJ3.cjs} +1 -1
- package/dist/{Tooltip-DvuU63iR.js → Tooltip-DTbN1pOw.js} +1 -1
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +8 -4
- package/dist/components/Alert/Alert.stories.cjs.js +1 -1
- package/dist/components/Alert/Alert.stories.es.js +11 -7
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +3 -2
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +8 -7
- 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 +3 -2
- 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 +282 -273
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +27 -22
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.stories.es.js +8 -7
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +13 -12
- package/dist/components/FileList/FileList.stories.cjs.js +1 -1
- package/dist/components/FileList/FileList.stories.es.js +4 -3
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +28 -21
- 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 +9 -3
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/Loader/Loader.stories.es.js +8 -7
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +9 -3
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +4 -3
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +35 -31
- 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 +8 -7
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +4 -3
- 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 +16 -15
- 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 +6 -5
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +4 -3
- 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 +96 -87
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +4 -3
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.stories.es.js +17 -16
- 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
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a } from "react";
|
|
3
|
+
import c from "../TextInput/TextInput.es.js";
|
|
3
4
|
import "../Alert/Alert.es.js";
|
|
4
5
|
import "../../fr-CUBngGd5.js";
|
|
5
|
-
import "../../DefaultButton-
|
|
6
|
+
import "../../DefaultButton-BoUBlnAR.js";
|
|
6
7
|
import '../../assets/styles.css';import '../../assets/styles2.css';/* empty css */
|
|
7
8
|
/* empty css */
|
|
8
9
|
import "../SearchInput/SearchInput.es.js";
|
|
9
10
|
import { I as p } from "../../InputAdornment-PpcxpcaW.js";
|
|
10
|
-
import { I as
|
|
11
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
11
|
+
import { I as m } from "../../IconButton-BJnGbprU.js";
|
|
12
12
|
import { c as r } from "../../createSvgIcon-DlEk80Du.js";
|
|
13
|
-
const
|
|
13
|
+
const d = r(/* @__PURE__ */ o("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__ */ o("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 = (i) => {
|
|
18
|
+
const [s, e] = a(!1), n = () => e((t) => !t), l = (t) => {
|
|
19
|
+
t.preventDefault();
|
|
20
20
|
};
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ o(
|
|
22
|
+
c,
|
|
23
23
|
{
|
|
24
|
-
...
|
|
24
|
+
...i,
|
|
25
25
|
variant: "outlined",
|
|
26
|
-
label:
|
|
26
|
+
label: i.label,
|
|
27
27
|
type: s ? "text" : "password",
|
|
28
28
|
InputProps: {
|
|
29
|
-
endAdornment: /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
endAdornment: /* @__PURE__ */ o(p, { position: "end", children: /* @__PURE__ */ o(
|
|
30
|
+
m,
|
|
31
31
|
{
|
|
32
32
|
"aria-label": "toggle password visibility",
|
|
33
|
-
onClick:
|
|
34
|
-
onMouseDown:
|
|
35
|
-
edge: "end"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
))
|
|
33
|
+
onClick: n,
|
|
34
|
+
onMouseDown: l,
|
|
35
|
+
edge: "end",
|
|
36
|
+
children: s ? /* @__PURE__ */ o(f, {}) : /* @__PURE__ */ o(d, {})
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./PasswordInput.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("./PasswordInput.cjs.js"),r={title:"Components/PasswordInput",component:e,argTypes:{}},n=s=>o.jsx(e,{...s}),t=n.bind({});t.args={label:"Password"};exports.Default=t;exports.default=r;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import t from "
|
|
2
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "./PasswordInput.es.js";
|
|
3
|
+
const p = {
|
|
3
4
|
title: "Components/PasswordInput",
|
|
4
|
-
component:
|
|
5
|
+
component: o,
|
|
5
6
|
argTypes: {
|
|
6
7
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
7
8
|
}
|
|
8
|
-
},
|
|
9
|
-
|
|
9
|
+
}, e = (s) => /* @__PURE__ */ t(o, { ...s }), r = e.bind({});
|
|
10
|
+
r.args = {
|
|
10
11
|
label: "Password"
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
r as Default,
|
|
15
|
+
p as default
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../../DefaultButton-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),e=require("../../DefaultButton-DuBPX2t6.cjs"),n=t=>r.jsx(e.DefaultButton,{color:"primary",variant:t.variant??"outlined",...t});module.exports=n;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { D as a } from "../../DefaultButton-BoUBlnAR.js";
|
|
3
|
+
const n = (t) => /* @__PURE__ */ r(
|
|
3
4
|
a,
|
|
4
5
|
{
|
|
5
6
|
color: "primary",
|
|
@@ -8,5 +9,5 @@ const e = (t) => /* @__PURE__ */ React.createElement(
|
|
|
8
9
|
}
|
|
9
10
|
);
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
n as default
|
|
12
13
|
};
|
|
@@ -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("react/jsx-runtime"),t=require("./PrimaryButton.cjs.js"),r=require("../../createSvgIcon-D8PyZepp.cjs"),s=r.createSvgIcon(e.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"),a={title:"Components/PrimaryButton",component:t,argTypes:{}},c=n=>e.jsx(t,{...n}),o=c.bind({});o.args={text:"Save",icon:{Component:s,position:"left"},onClick:()=>alert("Alert"),disabled:!1};exports.Default=o;exports.default=a;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import t from "
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "./PrimaryButton.es.js";
|
|
3
3
|
import { c as a } from "../../createSvgIcon-DlEk80Du.js";
|
|
4
|
-
const n = a(/* @__PURE__ */
|
|
4
|
+
const n = a(/* @__PURE__ */ t("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"), p = {
|
|
7
7
|
title: "Components/PrimaryButton",
|
|
8
|
-
component:
|
|
8
|
+
component: o,
|
|
9
9
|
argTypes: {
|
|
10
10
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
11
11
|
}
|
|
12
|
-
}, r = (e) => /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
}, r = (e) => /* @__PURE__ */ t(o, { ...e }), s = r.bind({});
|
|
13
|
+
s.args = {
|
|
14
14
|
text: "Save",
|
|
15
15
|
icon: {
|
|
16
16
|
Component: n,
|
|
@@ -20,6 +20,6 @@ c.args = {
|
|
|
20
20
|
disabled: !1
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
s as Default,
|
|
24
|
+
p as default
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../EmptyState/EmptyState.cjs.js"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("../EmptyState/EmptyState.cjs.js"),i=require("./helpers.cjs.js"),n=({error:t,statusPrefix:u="Erreur "})=>{if(i.isFetchBaseQueryError(t)){const r="error"in t?t.error:t.data?JSON.stringify(t.data):null;return typeof t.status=="number"&&t.status.toString().startsWith("4")?e.jsx(s,{svgName:"client-error",title:`Erreur client (${t.status})`,description:r??void 0}):typeof t.status=="number"&&t.status.toString().startsWith("5")?e.jsx(s,{svgName:"server-error",title:`Erreur serveur (${t.status})`,description:r??void 0}):e.jsx(s,{svgName:"error",title:`${u}${t.status}`,description:r??void 0})}return e.jsx(s,{svgName:"error",title:i.isErrorWithMessage(t)?t.message:"Une erreur est survenue"})};module.exports=n;
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
1
2
|
import e from "../EmptyState/EmptyState.es.js";
|
|
2
|
-
import { isFetchBaseQueryError as
|
|
3
|
-
const
|
|
3
|
+
import { isFetchBaseQueryError as u, isErrorWithMessage as a } from "./helpers.es.js";
|
|
4
|
+
const f = ({
|
|
4
5
|
error: t,
|
|
5
|
-
statusPrefix:
|
|
6
|
+
statusPrefix: i = "Erreur "
|
|
6
7
|
}) => {
|
|
7
|
-
if (
|
|
8
|
-
const
|
|
9
|
-
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */
|
|
8
|
+
if (u(t)) {
|
|
9
|
+
const r = "error" in t ? t.error : t.data ? JSON.stringify(t.data) : null;
|
|
10
|
+
return typeof t.status == "number" && t.status.toString().startsWith("4") ? /* @__PURE__ */ s(
|
|
10
11
|
e,
|
|
11
12
|
{
|
|
12
13
|
svgName: "client-error",
|
|
13
14
|
title: `Erreur client (${t.status})`,
|
|
14
|
-
description:
|
|
15
|
+
description: r ?? void 0
|
|
15
16
|
}
|
|
16
|
-
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */
|
|
17
|
+
) : typeof t.status == "number" && t.status.toString().startsWith("5") ? /* @__PURE__ */ s(
|
|
17
18
|
e,
|
|
18
19
|
{
|
|
19
20
|
svgName: "server-error",
|
|
20
21
|
title: `Erreur serveur (${t.status})`,
|
|
21
|
-
description:
|
|
22
|
+
description: r ?? void 0
|
|
22
23
|
}
|
|
23
|
-
) : /* @__PURE__ */
|
|
24
|
+
) : /* @__PURE__ */ s(
|
|
24
25
|
e,
|
|
25
26
|
{
|
|
26
27
|
svgName: "error",
|
|
27
|
-
title: `${
|
|
28
|
-
description:
|
|
28
|
+
title: `${i}${t.status}`,
|
|
29
|
+
description: r ?? void 0
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ s(
|
|
33
34
|
e,
|
|
34
35
|
{
|
|
35
36
|
svgName: "error",
|
|
36
|
-
title:
|
|
37
|
+
title: a(t) ? t.message : "Une erreur est survenue"
|
|
37
38
|
}
|
|
38
39
|
);
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
f as default
|
|
42
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),o=require("../../DefaultPropsProvider-DKOXnH6X.cjs"),n=require("../../InputBase-OeRcp1ZZ.cjs"),s=require("../../InputAdornment-JWlblqnc.cjs"),u=require("../../createSvgIcon-D8PyZepp.cjs"),a=u.createSvgIcon(t.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"),c=o.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",...r})=>t.jsx(c,{...r,placeholder:e,startAdornment:t.jsx(s.InputAdornment,{position:"start",disablePointerEvents:!0,children:t.jsx(a,{})}),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 { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { s as e } from "../../DefaultPropsProvider-DjhaxXa-.js";
|
|
3
|
+
import { I as a } from "../../InputBase-WXNV7_fG.js";
|
|
4
|
+
import { I as p } from "../../InputAdornment-PpcxpcaW.js";
|
|
5
|
+
import { c as n } from "../../createSvgIcon-DlEk80Du.js";
|
|
6
|
+
const s = n(/* @__PURE__ */ r("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"), i = e(a)(({ theme: t }) => ({
|
|
9
9
|
width: "auto",
|
|
10
10
|
padding: "0px 12px",
|
|
11
11
|
backgroundColor: t.palette.grey[50],
|
|
@@ -20,13 +20,13 @@ const c = p(/* @__PURE__ */ n("path", {
|
|
|
20
20
|
}
|
|
21
21
|
})), f = ({
|
|
22
22
|
placeholder: t = "Rechercher",
|
|
23
|
-
...
|
|
24
|
-
}) => /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
...o
|
|
24
|
+
}) => /* @__PURE__ */ r(
|
|
25
|
+
i,
|
|
26
26
|
{
|
|
27
|
-
...
|
|
27
|
+
...o,
|
|
28
28
|
placeholder: t,
|
|
29
|
-
startAdornment: /* @__PURE__ */
|
|
29
|
+
startAdornment: /* @__PURE__ */ r(p, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ r(s, {}) }),
|
|
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 e=require("./SearchInput.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("./SearchInput.cjs.js"),n={title:"Components/SearchInput",component:e,argTypes:{}},s=r=>o.jsx(e,{...r}),t=s.bind({});t.args={placeholder:"Rechercher"};exports.Default=t;exports.default=n;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
1
2
|
import e from "./SearchInput.es.js";
|
|
2
|
-
const
|
|
3
|
+
const a = {
|
|
3
4
|
title: "Components/SearchInput",
|
|
4
5
|
component: e,
|
|
5
6
|
argTypes: {
|
|
6
7
|
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
7
8
|
}
|
|
8
|
-
},
|
|
9
|
-
|
|
9
|
+
}, r = (t) => /* @__PURE__ */ o(e, { ...t }), n = r.bind({});
|
|
10
|
+
n.args = {
|
|
10
11
|
placeholder: "Rechercher"
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
n as Default,
|
|
15
|
+
a as default
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../../DefaultButton-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("../../DefaultButton-DuBPX2t6.cjs"),o=t=>e.jsx(n.DefaultButton,{color:"secondary",variant:t.variant??"outlined",...t});module.exports=o;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { D as a } from "../../DefaultButton-BoUBlnAR.js";
|
|
3
|
+
const e = (t) => /* @__PURE__ */ o(a, { color: "secondary", variant: t.variant ?? "outlined", ...t });
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
+
e as default
|
|
5
6
|
};
|
|
@@ -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("react/jsx-runtime"),t=require("./SecondaryButton.cjs.js"),r=require("../../createSvgIcon-D8PyZepp.cjs"),s=r.createSvgIcon(e.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"),c={title:"Components/SecondaryButton",component:t,argTypes:{}},a=n=>e.jsx(t,{...n}),o=a.bind({});o.args={text:"Add user",icon:{Component:s,position:"left"},onClick:()=>alert("Alert"),disabled:!1};exports.Default=o;exports.default=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import t from "./SecondaryButton.es.js";
|
|
2
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import t from "./SecondaryButton.es.js";
|
|
3
3
|
import { c as n } from "../../createSvgIcon-DlEk80Du.js";
|
|
4
|
-
const
|
|
4
|
+
const s = 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 r = 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
|
+
}, r = (e) => /* @__PURE__ */ o(t, { ...e }), c = r.bind({});
|
|
13
13
|
c.args = {
|
|
14
14
|
text: "Add user",
|
|
15
15
|
icon: {
|
|
16
|
-
Component:
|
|
16
|
+
Component: s,
|
|
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 s=require("react/jsx-runtime"),O=require("react"),n=require("../identifier-icEThk5F.cjs"),d=require("../Tabs-C27chebV.cjs"),E=require("../DefaultPropsProvider-DKOXnH6X.cjs"),M=require("../useThemeProps-BYd-NHTG.cjs"),q=require("../composeClasses-B_ETVugV.cjs");function D(e){const t=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(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=D(O),f=a.createContext(null);process.env.NODE_ENV!=="production"&&(f.displayName="TabContext");function w(){const[e,t]=a.useState(null);return a.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function v(e){const{children:t,value:o}=e,r=w(),c=a.useMemo(()=>({idPrefix:r,value:o}),[r,o]);return s.jsx(f.Provider,{value:c,children:t})}process.env.NODE_ENV!=="production"&&(v.propTypes={children:n.PropTypes.node,value:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).isRequired});function y(){return a.useContext(f)}function h(e,t){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-P-${t}`}function x(e,t){const{idPrefix:o}=e;return o===null?null:`${e.idPrefix}-T-${t}`}const b=a.forwardRef(function(t,o){const{children:r,...c}=t,l=y();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:x(l,u.props.value)}):null);return s.jsx(d.Tabs,{...c,ref:o,value:l.value,children:i})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:n.PropTypes.node});function R(e){return n.generateUtilityClass("MuiTabPanel",e)}n.generateUtilityClasses("MuiTabPanel",["root","hidden"]);const _=e=>{const{classes:t,hidden:o}=e,r={root:["root",o&&"hidden"]};return q.composeClasses(r,R,t)},S=E.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),T=a.forwardRef(function(t,o){const r=M.useThemeProps({props:t,name:"MuiTabPanel"}),{children:c,className:l,value:i,keepMounted:u=!1,...g}=r,P={...r},j=_(P),p=y();if(p===null)throw new TypeError("No TabContext provided");const C=h(p,i),N=x(p,i);return s.jsx(S,{"aria-labelledby":N,className:n.clsx(j.root,l),hidden:i!==p.value,id:C,ref:o,role:"tabpanel",ownerState:P,...g,children:(u||i===p.value)&&c})});process.env.NODE_ENV!=="production"&&(T.propTypes={children:n.PropTypes.node,classes:n.PropTypes.object,className:n.PropTypes.string,keepMounted:n.PropTypes.bool,sx:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object,n.PropTypes.bool])),n.PropTypes.func,n.PropTypes.object]),value:n.PropTypes.string.isRequired});const U={title:"Components/TabList",component:b,argTypes:{value:{options:["1","2","3"],control:{type:"select"}}}},$=e=>s.jsxs(v,{value:e.value,children:[s.jsxs(b,{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"})]}),m=$.bind({});m.args={value:"1",handleChange:(e,t)=>!0};exports.Default=m;exports.default=U;
|