@cgi-learning-hub/ui 1.0.0-dev.1721225898 → 1.0.0-dev.1721824898
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-CsYXR6Le.cjs +1 -0
- package/dist/{Box-VYRU2gLm.js → Box-vGRO-On_.js} +18 -19
- package/dist/ButtonBase-VIKeNyAr.cjs +75 -0
- package/dist/{ButtonBase-BN5QfC5l.js → ButtonBase-vONl_zxO.js} +29 -30
- package/dist/{CircularProgress-CgjNSTmB.js → CircularProgress-BDwTzcEn.js} +18 -19
- package/dist/CircularProgress-C0MOR9P7.cjs +28 -0
- package/dist/{DefaultButton-DVHllq2U.js → DefaultButton-BD1TIeNP.js} +31 -33
- package/dist/DefaultButton-DV0j1bMY.cjs +1 -0
- package/dist/IconButton-4zP9d1M9.cjs +2 -0
- package/dist/{IconButton-ysdlpOVe.js → IconButton-Ctm1Peef.js} +6 -7
- package/dist/InputBase-DMbFw6s1.cjs +3 -0
- package/dist/{InputBase-CR3zhf1t.js → InputBase-Dqfior4W.js} +41 -43
- package/dist/{SearchInput-DGF3NOLB.js → SearchInput-Clr0qHPm.js} +33 -34
- package/dist/SearchInput-CruiB2CO.cjs +1 -0
- package/dist/{Stack-BzRRUmUj.js → Stack-CwklSaeG.js} +43 -44
- package/dist/Stack-v4g12Xre.cjs +1 -0
- package/dist/Tabs-CLr003cV.cjs +4 -0
- package/dist/{Tabs-CObzeuUj.js → Tabs-D-RPVuW4.js} +131 -119
- package/dist/{TextInput-61DYDrkn.cjs → TextInput-Ba5ly1H9.cjs} +11 -11
- package/dist/{TextInput-CjRiCEow.js → TextInput-BxI4zwrY.js} +258 -258
- package/dist/{TimePicker-BaGeKkSS.js → TimePicker-DK-Q99ep.js} +9091 -7190
- package/dist/TimePicker-DYEkxpHp.cjs +113 -0
- package/dist/Typography-C5AoCX91.cjs +1 -0
- package/dist/{Typography-DDYzN_3X.js → Typography-Cl3kH-A8.js} +12 -13
- package/dist/components/Dropzone/Dropzone.cjs.js +3 -3
- package/dist/components/Dropzone/Dropzone.es.js +33 -33
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- 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.es.js +8 -9
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- 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.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.es.js +273 -226
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +14 -15
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -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.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +36 -38
- package/dist/{createSvgIcon-DtHN6kOe.cjs → createSvgIcon-B70pkSwO.cjs} +2 -2
- package/dist/{createSvgIcon-XuLYHpIN.js → createSvgIcon-Blbo0WDd.js} +12 -12
- package/dist/{createSvgIcon-D0vr-xfg.js → createSvgIcon-BwGNMrhW.js} +9 -10
- package/dist/createSvgIcon-n-HUhGNK.cjs +1 -0
- package/dist/identifier-J0ZxxQLU.cjs +50 -0
- package/dist/identifier-wKuu0zOr.js +3047 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +273 -226
- package/dist/{refType-DNsX9F1k.js → refType-Bqz8QGtc.js} +1 -1
- package/dist/{refType-P4W7j6GU.cjs → refType-DNJbSwsx.cjs} +1 -1
- package/dist/styled-C04Dz9vm.cjs +17 -0
- package/dist/styled-CFCmdTd8.js +533 -0
- package/dist/{useTheme-BlWZbBeO.cjs → useTheme-B4p2k0PU.cjs} +1 -1
- package/dist/useTheme-C65ChbGW.cjs +1 -0
- package/dist/{useTheme-DmZo1zFM.js → useTheme-D5vjhuQC.js} +1 -1
- package/dist/{useTheme-0LP2yOaO.js → useTheme-DWyCcDbs.js} +43 -32
- package/dist/useThemeProps-CEfrd8SJ.cjs +1 -0
- package/dist/{useThemeProps-CuBdueUZ.js → useThemeProps-CZSYSmRG.js} +2 -2
- package/package.json +1 -1
- package/dist/Box-BQxBYVZt.cjs +0 -1
- package/dist/ButtonBase-BZD9sI_c.cjs +0 -75
- package/dist/CircularProgress-C_a44--B.cjs +0 -28
- package/dist/DefaultButton-BOHgRr6G.cjs +0 -1
- package/dist/IconButton-DQ2kDyxh.cjs +0 -2
- package/dist/InputBase-CCpgZdXG.cjs +0 -3
- package/dist/LocalizationProvider-BGJCD07W.js +0 -592
- package/dist/LocalizationProvider-C0yQiDF6.cjs +0 -5
- package/dist/SearchInput-CvqVbm-Q.cjs +0 -1
- package/dist/Stack-DjqxU_kp.cjs +0 -1
- package/dist/Tabs-C91eu1Uw.cjs +0 -4
- package/dist/TimePicker-C24cztnp.cjs +0 -74
- package/dist/Typography-CX8IJDUK.cjs +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
- package/dist/components/LocalizationProvider/index.cjs.js +0 -1
- package/dist/components/LocalizationProvider/index.d.ts +0 -2
- package/dist/components/LocalizationProvider/index.es.js +0 -4
- package/dist/createSvgIcon-BhmdtpFQ.cjs +0 -1
- package/dist/defaultTheme-43URU5cB.cjs +0 -1
- package/dist/defaultTheme-kWAisKX-.js +0 -19
- package/dist/extendSxProp-BH27e4Uq.js +0 -738
- package/dist/extendSxProp-DguFtn4z.cjs +0 -10
- package/dist/fr-Cv05qO2i.cjs +0 -1
- package/dist/fr-VAA6DQIZ.js +0 -321
- package/dist/identifier-DN9zMdjb.cjs +0 -42
- package/dist/identifier-wD7TMRod.js +0 -2358
- package/dist/styled-DBkKGFww.js +0 -496
- package/dist/styled-vrKxhnRS.cjs +0 -17
- package/dist/useTheme-BjiEuL2C.cjs +0 -1
- package/dist/useThemeProps-BbYOXO_x.cjs +0 -1
- package/dist/useThemeProps-C1QhfJXI.js +0 -17
- package/dist/useThemeProps-zfqmINoS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const t=require("../../../TextInput-
|
|
1
|
+
"use strict";require("react/jsx-runtime");const t=require("../../../TextInput-Ba5ly1H9.cjs");module.exports=t.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-Ba5ly1H9.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-Ba5ly1H9.cjs");exports.TextInput=t.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-CruiB2CO.cjs"),n=require("../../TextInput-Ba5ly1H9.cjs"),e=require("./PasswordInput/PasswordInput.cjs.js");exports.SearchInput=t.SearchInput;exports.TextInput=n.TextInput;exports.PasswordInput=e;
|
|
@@ -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-Clr0qHPm.js";
|
|
2
|
+
import { T as e } from "../../TextInput-BxI4zwrY.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 t=require("./FileListItem.cjs.js"),o=require("../../../Box-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../../Box-CsYXR6Le.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,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import m from "./FileListItem.es.js";
|
|
4
|
-
import { B as e } from "../../../Box-
|
|
4
|
+
import { B as e } from "../../../Box-vGRO-On_.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
files: i = []
|
|
7
7
|
}) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("../../../identifier-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("../../../identifier-J0ZxxQLU.cjs"),u=require("../../../createSvgIcon-B70pkSwO.cjs"),x=require("react"),p=require("../../../Box-CsYXR6Le.cjs"),o=require("../../../Typography-C5AoCX91.cjs"),f=require("../../../IconButton-4zP9d1M9.cjs"),q=require("../../../CircularProgress-C0MOR9P7.cjs");var i={},h=a.interopRequireDefaultExports;Object.defineProperty(i,"__esModule",{value:!0});var n=i.default=void 0,j=h(u.requireCreateSvgIcon()),m=e;n=i.default=(0,j.default)((0,m.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 s={},I=a.interopRequireDefaultExports;Object.defineProperty(s,"__esModule",{value:!0});var l=s.default=void 0,_=I(u.requireCreateSvgIcon()),g=e;l=s.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:c,onDelete:t})=>{const d=`${r.size} octets`,v=()=>t==null?void 0:t(r);return e.jsxs(p.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(o.Typography,{children:r.name}),e.jsx(o.Typography,{fontSize:"0.875rem",color:"grey",children:d})]}),e.jsx(f.IconButton,{onClick:v,disabled:c,children:c?e.jsx(q.CircularProgress,{size:24}):e.jsx(n,{})})]})},z=x.memo(y);module.exports=z;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import c, { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { r as u } from "../../../createSvgIcon-
|
|
2
|
+
import { w as m } from "../../../identifier-wKuu0zOr.js";
|
|
3
|
+
import { r as u } from "../../../createSvgIcon-Blbo0WDd.js";
|
|
4
4
|
import v from "react";
|
|
5
|
-
import { B as _ } from "../../../Box-
|
|
6
|
-
import { T as l } from "../../../Typography-
|
|
7
|
-
import { I as h } from "../../../IconButton-
|
|
8
|
-
import { C as x } from "../../../CircularProgress-
|
|
5
|
+
import { B as _ } from "../../../Box-vGRO-On_.js";
|
|
6
|
+
import { T as l } from "../../../Typography-Cl3kH-A8.js";
|
|
7
|
+
import { I as h } from "../../../IconButton-Ctm1Peef.js";
|
|
8
|
+
import { C as x } from "../../../CircularProgress-BDwTzcEn.js";
|
|
9
9
|
var a = {}, I = m;
|
|
10
10
|
Object.defineProperty(a, "__esModule", {
|
|
11
11
|
value: !0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),t=require("../../identifier-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),t=require("../../identifier-J0ZxxQLU.cjs"),_=require("react"),d=require("../../Tabs-CLr003cV.cjs"),y=require("../../styled-C04Dz9vm.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(_),b=a.createContext(null);process.env.NODE_ENV!=="production"&&(b.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(b.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(b)}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"],f=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"&&(f.propTypes={children:t.PropTypes.node});function M(e){return t.generateUtilityClass("MuiTabPanel",e)}t.generateUtilityClasses("MuiTabPanel",["root"]);const q=["children","className","value"],w=e=>{const{classes:n}=e,o={root:["root"]};return y.composeClasses(o,M,n)},R=y.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=d.useThemeProps({props:n,name:"MuiTabPanel"}),{children:c,className:l,value:i}=r,u=t._objectWithoutPropertiesLoose(r,q),P=t._extends({},r),j=w(P),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:t.clsx(j.root,l),hidden:i!==p.value,id:C,ref:o,role:"tabpanel",ownerState:P},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:f,argTypes:{value:{options:["1","2","3"],control:{type:"select"}}}},S=e=>s.jsxs(v,{value:e.value,children:[s.jsxs(f,{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,15 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { P as t,
|
|
3
|
-
import * as
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { u as j } from "../../useThemeProps-C1QhfJXI.js";
|
|
8
|
-
const b = /* @__PURE__ */ r.createContext(null);
|
|
1
|
+
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { P as t, s as x, _ as v, k as _, m as w, t as O } from "../../identifier-wKuu0zOr.js";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { a as R, u as M, T as f } from "../../Tabs-D-RPVuW4.js";
|
|
5
|
+
import { s as U, c as j } from "../../styled-CFCmdTd8.js";
|
|
6
|
+
const b = /* @__PURE__ */ s.createContext(null);
|
|
9
7
|
process.env.NODE_ENV !== "production" && (b.displayName = "TabContext");
|
|
10
8
|
function $() {
|
|
11
|
-
const [e, n] =
|
|
12
|
-
return
|
|
9
|
+
const [e, n] = s.useState(null);
|
|
10
|
+
return s.useEffect(() => {
|
|
13
11
|
n(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
14
12
|
}, []), e;
|
|
15
13
|
}
|
|
@@ -17,11 +15,11 @@ function P(e) {
|
|
|
17
15
|
const {
|
|
18
16
|
children: n,
|
|
19
17
|
value: o
|
|
20
|
-
} = e, a = $(), u =
|
|
18
|
+
} = e, a = $(), u = s.useMemo(() => ({
|
|
21
19
|
idPrefix: a,
|
|
22
20
|
value: o
|
|
23
21
|
}), [a, o]);
|
|
24
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ r(b.Provider, {
|
|
25
23
|
value: u,
|
|
26
24
|
children: n
|
|
27
25
|
});
|
|
@@ -41,7 +39,7 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
41
39
|
value: t.oneOfType([t.number, t.string]).isRequired
|
|
42
40
|
});
|
|
43
41
|
function y() {
|
|
44
|
-
return
|
|
42
|
+
return s.useContext(b);
|
|
45
43
|
}
|
|
46
44
|
function C(e, n) {
|
|
47
45
|
const {
|
|
@@ -49,24 +47,24 @@ function C(e, n) {
|
|
|
49
47
|
} = e;
|
|
50
48
|
return o === null ? null : `${e.idPrefix}-P-${n}`;
|
|
51
49
|
}
|
|
52
|
-
function
|
|
50
|
+
function N(e, n) {
|
|
53
51
|
const {
|
|
54
52
|
idPrefix: o
|
|
55
53
|
} = e;
|
|
56
54
|
return o === null ? null : `${e.idPrefix}-T-${n}`;
|
|
57
55
|
}
|
|
58
|
-
const I = ["children"], m = /* @__PURE__ */
|
|
56
|
+
const I = ["children"], m = /* @__PURE__ */ s.forwardRef(function(n, o) {
|
|
59
57
|
const {
|
|
60
58
|
children: a
|
|
61
59
|
} = n, u = x(n, I), l = y();
|
|
62
60
|
if (l === null)
|
|
63
61
|
throw new TypeError("No TabContext provided");
|
|
64
|
-
const i =
|
|
62
|
+
const i = s.Children.map(a, (c) => /* @__PURE__ */ s.isValidElement(c) ? /* @__PURE__ */ s.cloneElement(c, {
|
|
65
63
|
// SOMEDAY: `Tabs` will set those themselves
|
|
66
64
|
"aria-controls": C(l, c.props.value),
|
|
67
|
-
id:
|
|
65
|
+
id: N(l, c.props.value)
|
|
68
66
|
}) : null);
|
|
69
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ r(R, v({}, u, {
|
|
70
68
|
ref: o,
|
|
71
69
|
value: l.value,
|
|
72
70
|
children: i
|
|
@@ -85,15 +83,15 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
|
85
83
|
function V(e) {
|
|
86
84
|
return _("MuiTabPanel", e);
|
|
87
85
|
}
|
|
88
|
-
|
|
86
|
+
w("MuiTabPanel", ["root"]);
|
|
89
87
|
const L = ["children", "className", "value"], q = (e) => {
|
|
90
88
|
const {
|
|
91
89
|
classes: n
|
|
92
90
|
} = e;
|
|
93
|
-
return
|
|
91
|
+
return j({
|
|
94
92
|
root: ["root"]
|
|
95
93
|
}, V, n);
|
|
96
|
-
}, S =
|
|
94
|
+
}, S = U("div", {
|
|
97
95
|
name: "MuiTabPanel",
|
|
98
96
|
slot: "Root",
|
|
99
97
|
overridesResolver: (e, n) => n.root
|
|
@@ -101,21 +99,21 @@ const L = ["children", "className", "value"], q = (e) => {
|
|
|
101
99
|
theme: e
|
|
102
100
|
}) => ({
|
|
103
101
|
padding: e.spacing(3)
|
|
104
|
-
})), p = /* @__PURE__ */
|
|
105
|
-
const a =
|
|
102
|
+
})), p = /* @__PURE__ */ s.forwardRef(function(n, o) {
|
|
103
|
+
const a = M({
|
|
106
104
|
props: n,
|
|
107
105
|
name: "MuiTabPanel"
|
|
108
106
|
}), {
|
|
109
107
|
children: u,
|
|
110
108
|
className: l,
|
|
111
109
|
value: i
|
|
112
|
-
} = a, c = x(a, L), T = v({}, a),
|
|
110
|
+
} = a, c = x(a, L), T = v({}, a), g = q(T), d = y();
|
|
113
111
|
if (d === null)
|
|
114
112
|
throw new TypeError("No TabContext provided");
|
|
115
|
-
const E = C(d, i), D =
|
|
116
|
-
return /* @__PURE__ */
|
|
113
|
+
const E = C(d, i), D = N(d, i);
|
|
114
|
+
return /* @__PURE__ */ r(S, v({
|
|
117
115
|
"aria-labelledby": D,
|
|
118
|
-
className:
|
|
116
|
+
className: O(g.root, l),
|
|
119
117
|
hidden: i !== d.value,
|
|
120
118
|
id: E,
|
|
121
119
|
ref: o,
|
|
@@ -152,7 +150,7 @@ process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
|
152
150
|
*/
|
|
153
151
|
value: t.string.isRequired
|
|
154
152
|
});
|
|
155
|
-
const
|
|
153
|
+
const F = {
|
|
156
154
|
title: "Components/Data Display/TabList",
|
|
157
155
|
component: m,
|
|
158
156
|
argTypes: {
|
|
@@ -164,19 +162,19 @@ const J = {
|
|
|
164
162
|
}
|
|
165
163
|
}, G = (e) => /* @__PURE__ */ h(P, { value: e.value, children: [
|
|
166
164
|
/* @__PURE__ */ h(m, { onChange: e.handleChange, "aria-label": "lab API tabs example", children: [
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
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" })
|
|
170
168
|
] }),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
] }),
|
|
175
|
-
|
|
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
|
+
] }), k = G.bind({});
|
|
173
|
+
k.args = {
|
|
176
174
|
value: "1",
|
|
177
175
|
handleChange: (e, n) => !0
|
|
178
176
|
};
|
|
179
177
|
export {
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
k as Default,
|
|
179
|
+
F as default
|
|
182
180
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const s=require("./identifier-
|
|
2
|
-
`)),s.ClassNameGenerator.configure(e)}},N=Object.freeze(Object.defineProperty({__proto__:null,capitalize:s.capitalize,createChainedFunction:l.createChainedFunction,createSvgIcon:y.createSvgIcon,debounce:
|
|
1
|
+
"use strict";const s=require("./identifier-J0ZxxQLU.cjs"),y=require("./createSvgIcon-n-HUhGNK.cjs"),l=require("./useControlled-DKpcyPsg.cjs"),d=require("./ownerWindow-Dk_4aaak.cjs"),f=require("./useForkRef-CGd3Nhyb.cjs"),C=require("./useId-Cw0TtD-8.cjs"),I=require("./unsupportedProp-Bn6XWqwH.cjs"),_=require("./useTimeout-XUWYBnl6.cjs"),S=require("./useIsFocusVisible-Bv_7uvif.cjs");var p={};function w(e,r){return process.env.NODE_ENV==="production"?()=>null:(u,i,o,t,n)=>{const c=o||"<<anonymous>>",a=n||i;return typeof u[i]<"u"?new Error(`The ${t} \`${a}\` of \`${c}\` is deprecated. ${r}`):null}}function q(e,r){if(process.env.NODE_ENV==="production")return()=>null;const u=r?s._extends({},r.propTypes):null;return o=>(t,n,c,a,m,...E)=>{const v=m||n,g=u==null?void 0:u[v];if(g){const h=g(t,n,c,a,m,...E);if(h)return h}return typeof t[n]<"u"&&!t[o]?new Error(`The prop \`${v}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}const F={configure:e=>{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(`
|
|
2
|
+
`)),s.ClassNameGenerator.configure(e)}},N=Object.freeze(Object.defineProperty({__proto__:null,capitalize:s.capitalize,createChainedFunction:l.createChainedFunction,createSvgIcon:y.createSvgIcon,debounce:d.debounce,deprecatedPropType:w,isMuiElement:l.isMuiElement,ownerDocument:d.ownerDocument,ownerWindow:d.ownerWindow,requirePropFactory:q,setRef:f.setRef,unstable_ClassNameGenerator:F,unstable_useEnhancedEffect:f.useEnhancedEffect,unstable_useId:C.useId,unsupportedProp:I.unsupportedProp,useControlled:l.useControlled,useEventCallback:_.useEventCallback,useForkRef:f.useForkRef,useIsFocusVisible:S.useIsFocusVisible},Symbol.toStringTag,{value:"Module"})),P=s.getAugmentedNamespace(N);var b;function T(){return b||(b=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=P}(p)),p}exports.requireCreateSvgIcon=T;exports.requirePropFactory=q;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as g, C as v,
|
|
2
|
-
import { c as y } from "./createSvgIcon-
|
|
3
|
-
import { c as E, i as C, u as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { _ as g, C as v, n as _, I as b } from "./identifier-wKuu0zOr.js";
|
|
2
|
+
import { c as y } from "./createSvgIcon-BwGNMrhW.js";
|
|
3
|
+
import { c as E, i as C, u as I } from "./useControlled-DoRrpN8o.js";
|
|
4
|
+
import { d as N, o as S, a as $ } from "./ownerWindow-C7EH1lr6.js";
|
|
5
|
+
import { s as T, u as P, a as w } from "./useForkRef-DwN_Iz9R.js";
|
|
6
6
|
import { u as O } from "./useId-BW-oWmul.js";
|
|
7
7
|
import { u as j } from "./unsupportedProp-BuVD30Gh.js";
|
|
8
8
|
import { u as q } from "./useTimeout-BdvDipeg.js";
|
|
@@ -38,20 +38,20 @@ const G = {
|
|
|
38
38
|
capitalize: _,
|
|
39
39
|
createChainedFunction: E,
|
|
40
40
|
createSvgIcon: y,
|
|
41
|
-
debounce:
|
|
41
|
+
debounce: N,
|
|
42
42
|
deprecatedPropType: k,
|
|
43
43
|
isMuiElement: C,
|
|
44
|
-
ownerDocument:
|
|
45
|
-
ownerWindow:
|
|
44
|
+
ownerDocument: S,
|
|
45
|
+
ownerWindow: $,
|
|
46
46
|
requirePropFactory: D,
|
|
47
|
-
setRef:
|
|
47
|
+
setRef: T,
|
|
48
48
|
unstable_ClassNameGenerator: G,
|
|
49
|
-
unstable_useEnhancedEffect:
|
|
49
|
+
unstable_useEnhancedEffect: P,
|
|
50
50
|
unstable_useId: O,
|
|
51
51
|
unsupportedProp: j,
|
|
52
|
-
useControlled:
|
|
52
|
+
useControlled: I,
|
|
53
53
|
useEventCallback: q,
|
|
54
|
-
useForkRef:
|
|
54
|
+
useForkRef: w,
|
|
55
55
|
useIsFocusVisible: F
|
|
56
56
|
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ b(M);
|
|
57
57
|
var p;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as I, m as b, n as g, s as w, _ as S, t as C, P as o } from "./identifier-wKuu0zOr.js";
|
|
2
2
|
import * as v from "react";
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import {
|
|
5
|
-
import { s as T, u as R, c as O } from "./styled-DBkKGFww.js";
|
|
3
|
+
import { jsxs as N, jsx as _ } from "react/jsx-runtime";
|
|
4
|
+
import { s as T, u as R, c as O } from "./styled-CFCmdTd8.js";
|
|
6
5
|
function B(e) {
|
|
7
6
|
return I("MuiSvgIcon", e);
|
|
8
7
|
}
|
|
9
|
-
|
|
8
|
+
b("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
10
9
|
const j = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
|
|
11
10
|
const {
|
|
12
11
|
color: n,
|
|
@@ -69,7 +68,7 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
69
68
|
inheritViewBox: m = !1,
|
|
70
69
|
titleAccess: s,
|
|
71
70
|
viewBox: a = "0 0 24 24"
|
|
72
|
-
} = r, p =
|
|
71
|
+
} = r, p = w(r, j), l = /* @__PURE__ */ v.isValidElement(i) && i.type === "svg", x = S({}, r, {
|
|
73
72
|
color: f,
|
|
74
73
|
component: c,
|
|
75
74
|
fontSize: h,
|
|
@@ -80,9 +79,9 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
80
79
|
}), $ = {};
|
|
81
80
|
m || ($.viewBox = a);
|
|
82
81
|
const z = A(x);
|
|
83
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ N(E, S({
|
|
84
83
|
as: c,
|
|
85
|
-
className:
|
|
84
|
+
className: C(z.root, u),
|
|
86
85
|
focusable: "false",
|
|
87
86
|
color: d,
|
|
88
87
|
"aria-hidden": s ? void 0 : !0,
|
|
@@ -168,7 +167,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
168
167
|
viewBox: o.string
|
|
169
168
|
});
|
|
170
169
|
y.muiName = "SvgIcon";
|
|
171
|
-
function
|
|
170
|
+
function P(e, n) {
|
|
172
171
|
function t(r, i) {
|
|
173
172
|
return /* @__PURE__ */ _(y, S({
|
|
174
173
|
"data-testid": `${n}Icon`,
|
|
@@ -180,5 +179,5 @@ function U(e, n) {
|
|
|
180
179
|
return process.env.NODE_ENV !== "production" && (t.displayName = `${n}Icon`), t.muiName = y.muiName, /* @__PURE__ */ v.memo(/* @__PURE__ */ v.forwardRef(t));
|
|
181
180
|
}
|
|
182
181
|
export {
|
|
183
|
-
|
|
182
|
+
P as c
|
|
184
183
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-J0ZxxQLU.cjs"),_=require("react"),v=require("react/jsx-runtime"),S=require("./styled-C04Dz9vm.cjs");function $(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const g=$(_);function z(o){return e.generateUtilityClass("MuiSvgIcon",o)}e.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const b=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],I=o=>{const{color:t,fontSize:r,classes:i}=o,n={root:["root",t!=="inherit"&&`color${e.capitalize(t)}`,`fontSize${e.capitalize(r)}`]};return S.composeClasses(n,z,i)},O=S.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.color!=="inherit"&&t[`color${e.capitalize(r.color)}`],t[`fontSize${e.capitalize(r.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var r,i,n,u,f,a,m,d,y,l,c,p,s;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(i=r.create)==null?void 0:i.call(r,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,24))||"1.5rem",large:((d=o.typography)==null||(y=d.pxToRem)==null?void 0:y.call(d,35))||"2.1875rem"}[t.fontSize],color:(l=(c=(o.vars||o).palette)==null||(c=c[t.color])==null?void 0:c.main)!=null?l:{action:(p=(o.vars||o).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(s=(o.vars||o).palette)==null||(s=s.action)==null?void 0:s.disabled,inherit:void 0}[t.color]}}),h=g.forwardRef(function(t,r){const i=S.useDefaultProps({props:t,name:"MuiSvgIcon"}),{children:n,className:u,color:f="inherit",component:a="svg",fontSize:m="medium",htmlColor:d,inheritViewBox:y=!1,titleAccess:l,viewBox:c="0 0 24 24"}=i,p=e._objectWithoutPropertiesLoose(i,b),s=g.isValidElement(n)&&n.type==="svg",T=e._extends({},i,{color:f,component:a,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:c,hasSvgAsChild:s}),P={};y||(P.viewBox=c);const x=I(T);return v.jsxs(O,e._extends({as:a,className:e.clsx(x.root,u),focusable:"false",color:d,"aria-hidden":l?void 0:!0,role:l?"img":void 0,ref:r},P,p,s&&n.props,{ownerState:T,children:[s?n.props.children:n,l?v.jsx("title",{children:l}):null]}))});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,fontSize:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","large","medium","small"]),e.PropTypes.string]),htmlColor:e.PropTypes.string,inheritViewBox:e.PropTypes.bool,shapeRendering:e.PropTypes.string,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),titleAccess:e.PropTypes.string,viewBox:e.PropTypes.string});h.muiName="SvgIcon";function w(o,t){function r(i,n){return v.jsx(h,e._extends({"data-testid":`${t}Icon`,ref:n},i,{children:o}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=h.muiName,g.memo(g.forwardRef(r))}exports.createSvgIcon=w;
|