@cgi-learning-hub/ui 0.0.1-dev.1708959744 → 0.0.1-dev.1708974808
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/{Button-wMPAZpnO.cjs → Button-Tkz5NkF_.cjs} +1 -1
- package/dist/{Button-CmBnwwn3.js → Button-X7eWZQfX.js} +12 -12
- package/dist/ButtonBase-CKfcGhaU.js +892 -0
- package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
- package/dist/Input-CAb0EFzc.cjs +1 -0
- package/dist/{Input-Dk-cN0Fb.js → Input-CbYjsRHK.js} +10 -10
- package/dist/{InputBase-BbXy6VDy.js → InputBase-B13Nzzhk.js} +157 -138
- package/dist/InputBase-CKlCw9fj.cjs +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
- package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +333 -126
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- 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/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.es.js +12 -20
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
- package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +404 -367
- package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
- package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-qXNZi4k1.js} +14 -14
- package/dist/{extendSxProp-CVD6j4mA.js → extendSxProp-BRHiEwyk.js} +1 -1
- package/dist/{extendSxProp-D5gpnasP.cjs → extendSxProp-CvhhU9Vb.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -18
- package/dist/useForkRef-82uiK71d.cjs +1 -0
- package/dist/useForkRef-CLcOhrzI.js +44 -0
- package/dist/useTheme-BWRyHzdn.js +65 -0
- package/dist/useTheme-BpLcDNG1.cjs +1 -0
- package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-B6yTTpAe.js} +714 -741
- package/dist/{useThemeProps-C6ClLEqN.cjs → useThemeProps-CDriK9TK.cjs} +14 -14
- package/package.json +1 -2
- package/dist/ButtonBase-Bw43M3TO.js +0 -831
- package/dist/ButtonBase-XPViWbp_.cjs +0 -75
- package/dist/CircularProgress-BCdQaPFF.cjs +0 -28
- package/dist/CircularProgress-DRE9BLTL.js +0 -215
- package/dist/Input-DHic6dYE.cjs +0 -1
- package/dist/InputBase-WBNJQn8V.cjs +0 -4
- package/dist/Tab-C2Tmr8Sv.cjs +0 -1
- package/dist/Tab-CWxCqAvH.js +0 -237
- package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
- package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
- package/dist/Typography-B1bdo7yt.js +0 -177
- package/dist/Typography-CO64FVmw.cjs +0 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.es.js +0 -1209
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.d.ts +0 -7
- package/dist/components/lists/FileList/FileList.es.js +0 -19
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -2
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
- package/dist/components/lists/FileList/FileListItem.es.js +0 -216
- package/dist/components/lists/FileList/index.cjs.js +0 -1
- package/dist/components/lists/FileList/index.d.ts +0 -4
- package/dist/components/lists/FileList/index.es.js +0 -6
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/createSvgIcon-9NfUaq9H.js +0 -143
- package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-CMQbzE37.js +0 -29
- package/dist/refType-dllUCpD8.cjs +0 -1
- package/dist/useControlled-BsLcOmhe.js +0 -48
- package/dist/useControlled-jN3fqFfv.cjs +0 -3
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
- package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
- package/dist/useTheme-BSwuVDD3.js +0 -9
- package/dist/useTheme-C-LTLVMt.cjs +0 -1
- package/dist/useTimeout-KN97abZR.js +0 -47
- package/dist/useTimeout-qjxkiZZn.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import o from "./PrimaryButton.es.js";
|
|
3
|
-
import { c as r } from "../../../createSvgIcon-
|
|
3
|
+
import { c as r } from "../../../createSvgIcon-qXNZi4k1.js";
|
|
4
4
|
const n = r(/* @__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
6
|
}), "Save"), p = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime");require("react");const o=require("../DefaultButton/DefaultButton.cjs.js"),r=require("../../../useTheme-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime");require("react");const o=require("../DefaultButton/DefaultButton.cjs.js"),r=require("../../../useTheme-BpLcDNG1.cjs"),s=e=>{const t=r.useTheme();return n.jsx(o,{contentColor:t.palette.secondary.main,...e})};module.exports=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import r from "../DefaultButton/DefaultButton.es.js";
|
|
4
|
-
import { u as m } from "../../../useTheme-
|
|
4
|
+
import { u as m } from "../../../useTheme-BWRyHzdn.js";
|
|
5
5
|
const p = (t) => {
|
|
6
6
|
const o = m();
|
|
7
7
|
return /* @__PURE__ */ e(r, { contentColor: o.palette.secondary.main, ...t });
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-jvI3LIfI.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/Buttons/SecondaryButton",component:t,argTypes:{}},i=n=>e.jsx(t,{...n}),o=i.bind({});o.args={text:"Add user",icon:{Component:s,position:"left"},onClick:()=>alert("Alert")};exports.Primary=o;exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import t from "./SecondaryButton.es.js";
|
|
3
|
-
import { c as e } from "../../../createSvgIcon-
|
|
3
|
+
import { c as e } from "../../../createSvgIcon-qXNZi4k1.js";
|
|
4
4
|
const r = e(/* @__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 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./AnotherComponent/AnotherComponent.cjs.js"),n=require("./BasicButtons/BasicButtons.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./AnotherComponent/AnotherComponent.cjs.js"),n=require("./BasicButtons/BasicButtons.cjs.js"),o=require("./buttons/DefaultButton/DefaultButton.cjs.js"),e=require("./buttons/PrimaryButton/PrimaryButton.cjs.js"),u=require("./buttons/SecondaryButton/SecondaryButton.cjs.js"),r=require("./inputs/SearchInput/SearchInput.cjs.js"),s=require("./inputs/TextInput/TextInput.cjs.js");exports.AnotherComponent=t;exports.BasicButtons=n;exports.DefaultButton=o;exports.PrimaryButton=e;exports.SecondaryButton=u;exports.SearchInput=r;exports.TextInput=s;
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import { default as e } from "./AnotherComponent/AnotherComponent.es.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as u } from "./
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as c } from "./inputs/TextInput/TextInput.es.js";
|
|
9
|
-
import { default as T } from "./lists/FileList/FileList.es.js";
|
|
10
|
-
import { default as y } from "./lists/FileList/FileListItem.es.js";
|
|
11
|
-
import { T as F } from "../Tab-CWxCqAvH.js";
|
|
2
|
+
import { default as r } from "./BasicButtons/BasicButtons.es.js";
|
|
3
|
+
import { default as u } from "./buttons/DefaultButton/DefaultButton.es.js";
|
|
4
|
+
import { default as p } from "./buttons/PrimaryButton/PrimaryButton.es.js";
|
|
5
|
+
import { default as s } from "./buttons/SecondaryButton/SecondaryButton.es.js";
|
|
6
|
+
import { default as l } from "./inputs/SearchInput/SearchInput.es.js";
|
|
7
|
+
import { default as B } from "./inputs/TextInput/TextInput.es.js";
|
|
12
8
|
export {
|
|
13
9
|
e as AnotherComponent,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
i as SearchInput,
|
|
21
|
-
d as SecondaryButton,
|
|
22
|
-
F as Tab,
|
|
23
|
-
c as TextInput
|
|
10
|
+
r as BasicButtons,
|
|
11
|
+
u as DefaultButton,
|
|
12
|
+
p as PrimaryButton,
|
|
13
|
+
l as SearchInput,
|
|
14
|
+
s as SecondaryButton,
|
|
15
|
+
B as TextInput
|
|
24
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),E=require("react"),e=require("../../../useThemeProps-CDriK9TK.cjs"),v=require("../../../InputBase-CKlCw9fj.cjs"),_=require("../../../extendSxProp-CvhhU9Vb.cjs"),M=require("../../../createSvgIcon-jvI3LIfI.cjs");function N(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const f=N(E),R=M.createSvgIcon(p.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");function B(o){return e.generateUtilityClass("MuiTypography",o)}e.generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const A=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],S=o=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:a,classes:c}=o,l={root:["root",a,o.align!=="inherit"&&`align${e.capitalize(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return e.composeClasses(l,B,c)},z=e.styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:n}=o;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${e.capitalize(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:o,ownerState:t})=>e._extends({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&o.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),P={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},L=o=>$[o]||o,j=f.forwardRef(function(t,n){const r=e.useThemeProps({props:t,name:"MuiTypography"}),s=L(r.color),a=_.extendSxProp(e._extends({},r,{color:s})),{align:c="inherit",className:l,component:h,gutterBottom:y=!1,noWrap:u=!1,paragraph:g=!1,variant:i="body1",variantMapping:d=P}=a,m=e._objectWithoutPropertiesLoose(a,A),T=e._extends({},a,{align:c,color:s,className:l,component:h,gutterBottom:y,noWrap:u,paragraph:g,variant:i,variantMapping:d}),O=h||(g?"p":d[i]||P[i])||"span",I=S(T);return p.jsx(z,e._extends({as:O,ref:n,ownerState:T,className:e.clsx(I.root,l)},m))});process.env.NODE_ENV!=="production"&&(j.propTypes={align:e.PropTypes.oneOf(["center","inherit","justify","left","right"]),children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,gutterBottom:e.PropTypes.bool,noWrap:e.PropTypes.bool,paragraph:e.PropTypes.bool,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]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),e.PropTypes.string]),variantMapping:e.PropTypes.object});const W=j;function U(o){return e.generateUtilityClass("MuiInputAdornment",o)}const q=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),b=q;var x;const D=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(o,t)=>{const{ownerState:n}=o;return[t.root,t[`position${e.capitalize(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},F=o=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:s,size:a,variant:c}=o,l={root:["root",n&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,c,r&&"hiddenLabel",a&&`size${e.capitalize(a)}`]};return e.composeClasses(l,U,t)},V=e.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:w})(({theme:o,ownerState:t})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(o.vars||o).palette.action.active},t.variant==="filled"&&{[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),C=f.forwardRef(function(t,n){const r=e.useThemeProps({props:t,name:"MuiInputAdornment"}),{children:s,className:a,component:c="div",disablePointerEvents:l=!1,disableTypography:h=!1,position:y,variant:u}=r,g=e._objectWithoutPropertiesLoose(r,D),i=v.useFormControl()||{};let d=u;u&&i.variant&&process.env.NODE_ENV!=="production"&&u===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!d&&(d=i.variant);const m=e._extends({},r,{hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:l,position:y,variant:d}),T=F(m);return p.jsx(v.FormControlContext.Provider,{value:null,children:p.jsx(V,e._extends({as:c,ownerState:m,className:e.clsx(T.root,a),ref:n},g,{children:typeof s=="string"&&!h?p.jsx(W,{color:"text.secondary",children:s}):p.jsxs(f.Fragment,{children:[y==="start"?x||(x=p.jsx("span",{className:"notranslate",children:""})):null,s]})}))})});process.env.NODE_ENV!=="production"&&(C.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});const k=C,H=e.styled(v.InputBase)(({theme:o})=>({width:"auto",padding:"0px 12px",backgroundColor:o.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"}})),J=({placeholder:o="Rechercher",...t})=>p.jsx(H,{...t,placeholder:o,startAdornment:p.jsx(k,{position:"start",disablePointerEvents:!0,children:p.jsx(R,{})})});module.exports=J;
|
|
@@ -1,42 +1,212 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as p, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import * as T from "react";
|
|
3
|
+
import { b as I, g as M, s as x, f as m, a as d, u as N, _ as O, h as A, P as t, e as B } from "../../../useThemeProps-B6yTTpAe.js";
|
|
4
|
+
import { u as S, F as _, c as z } from "../../../InputBase-B13Nzzhk.js";
|
|
5
|
+
import { e as U } from "../../../extendSxProp-BRHiEwyk.js";
|
|
6
|
+
import { c as F } from "../../../createSvgIcon-qXNZi4k1.js";
|
|
7
|
+
const w = F(/* @__PURE__ */ p("path", {
|
|
8
8
|
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"
|
|
9
9
|
}), "Search");
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function D(n) {
|
|
11
|
+
return I("MuiTypography", n);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const B = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], D = (n, t) => {
|
|
13
|
+
M("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
14
|
+
const V = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], k = (n) => {
|
|
16
15
|
const {
|
|
17
|
-
|
|
16
|
+
align: o,
|
|
17
|
+
gutterBottom: e,
|
|
18
|
+
noWrap: a,
|
|
19
|
+
paragraph: r,
|
|
20
|
+
variant: i,
|
|
21
|
+
classes: c
|
|
22
|
+
} = n, l = {
|
|
23
|
+
root: ["root", i, n.align !== "inherit" && `align${m(o)}`, e && "gutterBottom", a && "noWrap", r && "paragraph"]
|
|
24
|
+
};
|
|
25
|
+
return B(l, D, c);
|
|
26
|
+
}, q = x("span", {
|
|
27
|
+
name: "MuiTypography",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (n, o) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState: e
|
|
32
|
+
} = n;
|
|
33
|
+
return [o.root, e.variant && o[e.variant], e.align !== "inherit" && o[`align${m(e.align)}`], e.noWrap && o.noWrap, e.gutterBottom && o.gutterBottom, e.paragraph && o.paragraph];
|
|
34
|
+
}
|
|
35
|
+
})(({
|
|
36
|
+
theme: n,
|
|
37
|
+
ownerState: o
|
|
38
|
+
}) => d({
|
|
39
|
+
margin: 0
|
|
40
|
+
}, o.variant === "inherit" && {
|
|
41
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
42
|
+
font: "inherit"
|
|
43
|
+
}, o.variant !== "inherit" && n.typography[o.variant], o.align !== "inherit" && {
|
|
44
|
+
textAlign: o.align
|
|
45
|
+
}, o.noWrap && {
|
|
46
|
+
overflow: "hidden",
|
|
47
|
+
textOverflow: "ellipsis",
|
|
48
|
+
whiteSpace: "nowrap"
|
|
49
|
+
}, o.gutterBottom && {
|
|
50
|
+
marginBottom: "0.35em"
|
|
51
|
+
}, o.paragraph && {
|
|
52
|
+
marginBottom: 16
|
|
53
|
+
})), C = {
|
|
54
|
+
h1: "h1",
|
|
55
|
+
h2: "h2",
|
|
56
|
+
h3: "h3",
|
|
57
|
+
h4: "h4",
|
|
58
|
+
h5: "h5",
|
|
59
|
+
h6: "h6",
|
|
60
|
+
subtitle1: "h6",
|
|
61
|
+
subtitle2: "h6",
|
|
62
|
+
body1: "p",
|
|
63
|
+
body2: "p",
|
|
64
|
+
inherit: "p"
|
|
65
|
+
}, H = {
|
|
66
|
+
primary: "primary.main",
|
|
67
|
+
textPrimary: "text.primary",
|
|
68
|
+
secondary: "secondary.main",
|
|
69
|
+
textSecondary: "text.secondary",
|
|
70
|
+
error: "error.main"
|
|
71
|
+
}, J = (n) => H[n] || n, R = /* @__PURE__ */ T.forwardRef(function(o, e) {
|
|
72
|
+
const a = N({
|
|
73
|
+
props: o,
|
|
74
|
+
name: "MuiTypography"
|
|
75
|
+
}), r = J(a.color), i = U(d({}, a, {
|
|
76
|
+
color: r
|
|
77
|
+
})), {
|
|
78
|
+
align: c = "inherit",
|
|
79
|
+
className: l,
|
|
80
|
+
component: g,
|
|
81
|
+
gutterBottom: v = !1,
|
|
82
|
+
noWrap: u = !1,
|
|
83
|
+
paragraph: y = !1,
|
|
84
|
+
variant: s = "body1",
|
|
85
|
+
variantMapping: h = C
|
|
86
|
+
} = i, f = O(i, V), b = d({}, i, {
|
|
87
|
+
align: c,
|
|
88
|
+
color: r,
|
|
89
|
+
className: l,
|
|
90
|
+
component: g,
|
|
91
|
+
gutterBottom: v,
|
|
92
|
+
noWrap: u,
|
|
93
|
+
paragraph: y,
|
|
94
|
+
variant: s,
|
|
95
|
+
variantMapping: h
|
|
96
|
+
}), j = g || (y ? "p" : h[s] || C[s]) || "span", L = k(b);
|
|
97
|
+
return /* @__PURE__ */ p(q, d({
|
|
98
|
+
as: j,
|
|
99
|
+
ref: e,
|
|
100
|
+
ownerState: b,
|
|
101
|
+
className: A(L.root, l)
|
|
102
|
+
}, f));
|
|
103
|
+
});
|
|
104
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
105
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
106
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
107
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
108
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
109
|
+
/**
|
|
110
|
+
* Set the text-align on the component.
|
|
111
|
+
* @default 'inherit'
|
|
112
|
+
*/
|
|
113
|
+
align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
114
|
+
/**
|
|
115
|
+
* The content of the component.
|
|
116
|
+
*/
|
|
117
|
+
children: t.node,
|
|
118
|
+
/**
|
|
119
|
+
* Override or extend the styles applied to the component.
|
|
120
|
+
*/
|
|
121
|
+
classes: t.object,
|
|
122
|
+
/**
|
|
123
|
+
* @ignore
|
|
124
|
+
*/
|
|
125
|
+
className: t.string,
|
|
126
|
+
/**
|
|
127
|
+
* The component used for the root node.
|
|
128
|
+
* Either a string to use a HTML element or a component.
|
|
129
|
+
*/
|
|
130
|
+
component: t.elementType,
|
|
131
|
+
/**
|
|
132
|
+
* If `true`, the text will have a bottom margin.
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
gutterBottom: t.bool,
|
|
136
|
+
/**
|
|
137
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
138
|
+
*
|
|
139
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
140
|
+
* (the element needs to have a width in order to overflow).
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
noWrap: t.bool,
|
|
144
|
+
/**
|
|
145
|
+
* If `true`, the element will be a paragraph element.
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
paragraph: t.bool,
|
|
149
|
+
/**
|
|
150
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
151
|
+
*/
|
|
152
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
153
|
+
/**
|
|
154
|
+
* Applies the theme typography styles.
|
|
155
|
+
* @default 'body1'
|
|
156
|
+
*/
|
|
157
|
+
variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
|
|
158
|
+
/**
|
|
159
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
160
|
+
* For instance, subtitle1 to `<h6>`.
|
|
161
|
+
* If you wish to change that mapping, you can provide your own.
|
|
162
|
+
* Alternatively, you can use the `component` prop.
|
|
163
|
+
* @default {
|
|
164
|
+
* h1: 'h1',
|
|
165
|
+
* h2: 'h2',
|
|
166
|
+
* h3: 'h3',
|
|
167
|
+
* h4: 'h4',
|
|
168
|
+
* h5: 'h5',
|
|
169
|
+
* h6: 'h6',
|
|
170
|
+
* subtitle1: 'h6',
|
|
171
|
+
* subtitle2: 'h6',
|
|
172
|
+
* body1: 'p',
|
|
173
|
+
* body2: 'p',
|
|
174
|
+
* inherit: 'p',
|
|
175
|
+
* }
|
|
176
|
+
*/
|
|
177
|
+
variantMapping: t.object
|
|
178
|
+
});
|
|
179
|
+
const G = R;
|
|
180
|
+
function K(n) {
|
|
181
|
+
return I("MuiInputAdornment", n);
|
|
182
|
+
}
|
|
183
|
+
const Q = M("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]), P = Q;
|
|
184
|
+
var E;
|
|
185
|
+
const X = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], Y = (n, o) => {
|
|
186
|
+
const {
|
|
187
|
+
ownerState: e
|
|
18
188
|
} = n;
|
|
19
|
-
return [
|
|
20
|
-
},
|
|
189
|
+
return [o.root, o[`position${m(e.position)}`], e.disablePointerEvents === !0 && o.disablePointerEvents, o[e.variant]];
|
|
190
|
+
}, Z = (n) => {
|
|
21
191
|
const {
|
|
22
|
-
classes:
|
|
23
|
-
disablePointerEvents:
|
|
192
|
+
classes: o,
|
|
193
|
+
disablePointerEvents: e,
|
|
24
194
|
hiddenLabel: a,
|
|
25
195
|
position: r,
|
|
26
|
-
size:
|
|
27
|
-
variant:
|
|
28
|
-
} = n,
|
|
29
|
-
root: ["root",
|
|
196
|
+
size: i,
|
|
197
|
+
variant: c
|
|
198
|
+
} = n, l = {
|
|
199
|
+
root: ["root", e && "disablePointerEvents", r && `position${m(r)}`, c, a && "hiddenLabel", i && `size${m(i)}`]
|
|
30
200
|
};
|
|
31
|
-
return
|
|
32
|
-
},
|
|
201
|
+
return B(l, K, o);
|
|
202
|
+
}, tt = x("div", {
|
|
33
203
|
name: "MuiInputAdornment",
|
|
34
204
|
slot: "Root",
|
|
35
|
-
overridesResolver:
|
|
205
|
+
overridesResolver: Y
|
|
36
206
|
})(({
|
|
37
207
|
theme: n,
|
|
38
|
-
ownerState:
|
|
39
|
-
}) =>
|
|
208
|
+
ownerState: o
|
|
209
|
+
}) => d({
|
|
40
210
|
display: "flex",
|
|
41
211
|
height: "0.01em",
|
|
42
212
|
// Fix IE11 flexbox alignment. To remove at some point.
|
|
@@ -44,57 +214,57 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
44
214
|
alignItems: "center",
|
|
45
215
|
whiteSpace: "nowrap",
|
|
46
216
|
color: (n.vars || n).palette.action.active
|
|
47
|
-
},
|
|
217
|
+
}, o.variant === "filled" && {
|
|
48
218
|
// Styles applied to the root element if `variant="filled"`.
|
|
49
|
-
[`&.${
|
|
219
|
+
[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]: {
|
|
50
220
|
marginTop: 16
|
|
51
221
|
}
|
|
52
|
-
},
|
|
222
|
+
}, o.position === "start" && {
|
|
53
223
|
// Styles applied to the root element if `position="start"`.
|
|
54
224
|
marginRight: 8
|
|
55
|
-
},
|
|
225
|
+
}, o.position === "end" && {
|
|
56
226
|
// Styles applied to the root element if `position="end"`.
|
|
57
227
|
marginLeft: 8
|
|
58
|
-
},
|
|
228
|
+
}, o.disablePointerEvents === !0 && {
|
|
59
229
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
60
230
|
pointerEvents: "none"
|
|
61
|
-
})),
|
|
62
|
-
const a =
|
|
63
|
-
props:
|
|
231
|
+
})), $ = /* @__PURE__ */ T.forwardRef(function(o, e) {
|
|
232
|
+
const a = N({
|
|
233
|
+
props: o,
|
|
64
234
|
name: "MuiInputAdornment"
|
|
65
235
|
}), {
|
|
66
236
|
children: r,
|
|
67
|
-
className:
|
|
68
|
-
component:
|
|
69
|
-
disablePointerEvents:
|
|
70
|
-
disableTypography:
|
|
71
|
-
position:
|
|
72
|
-
variant: c
|
|
73
|
-
} = a, x = N(a, B), i = z() || {};
|
|
74
|
-
let u = c;
|
|
75
|
-
c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !u && (u = i.variant);
|
|
76
|
-
const f = m({}, a, {
|
|
77
|
-
hiddenLabel: i.hiddenLabel,
|
|
78
|
-
size: i.size,
|
|
79
|
-
disablePointerEvents: d,
|
|
80
|
-
position: h,
|
|
237
|
+
className: i,
|
|
238
|
+
component: c = "div",
|
|
239
|
+
disablePointerEvents: l = !1,
|
|
240
|
+
disableTypography: g = !1,
|
|
241
|
+
position: v,
|
|
81
242
|
variant: u
|
|
82
|
-
}),
|
|
83
|
-
|
|
243
|
+
} = a, y = O(a, X), s = S() || {};
|
|
244
|
+
let h = u;
|
|
245
|
+
u && s.variant && process.env.NODE_ENV !== "production" && u === s.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), s && !h && (h = s.variant);
|
|
246
|
+
const f = d({}, a, {
|
|
247
|
+
hiddenLabel: s.hiddenLabel,
|
|
248
|
+
size: s.size,
|
|
249
|
+
disablePointerEvents: l,
|
|
250
|
+
position: v,
|
|
251
|
+
variant: h
|
|
252
|
+
}), b = Z(f);
|
|
253
|
+
return /* @__PURE__ */ p(_.Provider, {
|
|
84
254
|
value: null,
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
as:
|
|
255
|
+
children: /* @__PURE__ */ p(tt, d({
|
|
256
|
+
as: c,
|
|
87
257
|
ownerState: f,
|
|
88
|
-
className:
|
|
89
|
-
ref:
|
|
90
|
-
},
|
|
91
|
-
children: typeof r == "string" && !
|
|
258
|
+
className: A(b.root, i),
|
|
259
|
+
ref: e
|
|
260
|
+
}, y, {
|
|
261
|
+
children: typeof r == "string" && !g ? /* @__PURE__ */ p(G, {
|
|
92
262
|
color: "text.secondary",
|
|
93
263
|
children: r
|
|
94
|
-
}) : /* @__PURE__ */
|
|
95
|
-
children: [
|
|
264
|
+
}) : /* @__PURE__ */ W(T.Fragment, {
|
|
265
|
+
children: [v === "start" ? (
|
|
96
266
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
97
|
-
|
|
267
|
+
E || (E = /* @__PURE__ */ p("span", {
|
|
98
268
|
className: "notranslate",
|
|
99
269
|
children: ""
|
|
100
270
|
}))
|
|
@@ -103,7 +273,7 @@ const B = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
103
273
|
}))
|
|
104
274
|
});
|
|
105
275
|
});
|
|
106
|
-
process.env.NODE_ENV !== "production" && (
|
|
276
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
107
277
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
108
278
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
109
279
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -111,47 +281,47 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
111
281
|
/**
|
|
112
282
|
* The content of the component, normally an `IconButton` or string.
|
|
113
283
|
*/
|
|
114
|
-
children:
|
|
284
|
+
children: t.node,
|
|
115
285
|
/**
|
|
116
286
|
* Override or extend the styles applied to the component.
|
|
117
287
|
*/
|
|
118
|
-
classes:
|
|
288
|
+
classes: t.object,
|
|
119
289
|
/**
|
|
120
290
|
* @ignore
|
|
121
291
|
*/
|
|
122
|
-
className:
|
|
292
|
+
className: t.string,
|
|
123
293
|
/**
|
|
124
294
|
* The component used for the root node.
|
|
125
295
|
* Either a string to use a HTML element or a component.
|
|
126
296
|
*/
|
|
127
|
-
component:
|
|
297
|
+
component: t.elementType,
|
|
128
298
|
/**
|
|
129
299
|
* Disable pointer events on the root.
|
|
130
300
|
* This allows for the content of the adornment to focus the `input` on click.
|
|
131
301
|
* @default false
|
|
132
302
|
*/
|
|
133
|
-
disablePointerEvents:
|
|
303
|
+
disablePointerEvents: t.bool,
|
|
134
304
|
/**
|
|
135
305
|
* If children is a string then disable wrapping in a Typography component.
|
|
136
306
|
* @default false
|
|
137
307
|
*/
|
|
138
|
-
disableTypography:
|
|
308
|
+
disableTypography: t.bool,
|
|
139
309
|
/**
|
|
140
310
|
* The position this adornment should appear relative to the `Input`.
|
|
141
311
|
*/
|
|
142
|
-
position:
|
|
312
|
+
position: t.oneOf(["end", "start"]).isRequired,
|
|
143
313
|
/**
|
|
144
314
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
145
315
|
*/
|
|
146
|
-
sx:
|
|
316
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
147
317
|
/**
|
|
148
318
|
* The variant to use.
|
|
149
319
|
* Note: If you are using the `TextField` component or the `FormControl` component
|
|
150
320
|
* you do not have to set this manually.
|
|
151
321
|
*/
|
|
152
|
-
variant:
|
|
322
|
+
variant: t.oneOf(["filled", "outlined", "standard"])
|
|
153
323
|
});
|
|
154
|
-
const
|
|
324
|
+
const ot = $, nt = x(z)(({ theme: n }) => ({
|
|
155
325
|
width: "auto",
|
|
156
326
|
padding: "0px 12px",
|
|
157
327
|
backgroundColor: n.palette.grey[50],
|
|
@@ -159,17 +329,17 @@ const q = E, H = I(O)(({ theme: n }) => ({
|
|
|
159
329
|
"& .MuiInputBase-input": {
|
|
160
330
|
padding: "8px 0px"
|
|
161
331
|
}
|
|
162
|
-
})),
|
|
332
|
+
})), pt = ({
|
|
163
333
|
placeholder: n = "Rechercher",
|
|
164
|
-
...
|
|
165
|
-
}) => /* @__PURE__ */
|
|
166
|
-
|
|
334
|
+
...o
|
|
335
|
+
}) => /* @__PURE__ */ p(
|
|
336
|
+
nt,
|
|
167
337
|
{
|
|
168
|
-
...
|
|
338
|
+
...o,
|
|
169
339
|
placeholder: n,
|
|
170
|
-
startAdornment: /* @__PURE__ */
|
|
340
|
+
startAdornment: /* @__PURE__ */ p(ot, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ p(w, {}) })
|
|
171
341
|
}
|
|
172
342
|
);
|
|
173
343
|
export {
|
|
174
|
-
|
|
344
|
+
pt as default
|
|
175
345
|
};
|