@cgi-learning-hub/ui 0.0.1-dev.1708942498 → 0.0.1-dev.1708959744

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