@cgi-learning-hub/ui 1.0.0-dev.1721116816 → 1.0.0-dev.1721201810

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 (135) hide show
  1. package/dist/{Box-9LdfEXsf.js → Box-DIvTvtYV.js} +17 -16
  2. package/dist/Box-RP_U1h2I.cjs +1 -0
  3. package/dist/{ButtonBase-D-i7Mp_0.js → ButtonBase-BN5QfC5l.js} +15 -17
  4. package/dist/ButtonBase-BZD9sI_c.cjs +75 -0
  5. package/dist/CircularProgress-C_a44--B.cjs +28 -0
  6. package/dist/{CircularProgress-CA8vWmu-.js → CircularProgress-CgjNSTmB.js} +25 -26
  7. package/dist/DefaultButton-BOHgRr6G.cjs +1 -0
  8. package/dist/{DefaultButton--hIqP5--.js → DefaultButton-DVHllq2U.js} +26 -26
  9. package/dist/IconButton-DQ2kDyxh.cjs +2 -0
  10. package/dist/{IconButton-DqE3X4a8.js → IconButton-ysdlpOVe.js} +15 -16
  11. package/dist/InputBase-CCpgZdXG.cjs +3 -0
  12. package/dist/{InputBase-DP_Adhgc.js → InputBase-CR3zhf1t.js} +198 -197
  13. package/dist/LocalizationProvider-BGJCD07W.js +592 -0
  14. package/dist/LocalizationProvider-C0yQiDF6.cjs +5 -0
  15. package/dist/PaperHeader-D2LH9bW-.cjs +1 -0
  16. package/dist/{PaperHeader-FAOEsMM9.js → PaperHeader-DAzxEUlx.js} +21 -20
  17. package/dist/SearchInput-CvqVbm-Q.cjs +1 -0
  18. package/dist/{SearchInput-CsSDD5eI.js → SearchInput-DGF3NOLB.js} +28 -29
  19. package/dist/Tabs-C91eu1Uw.cjs +4 -0
  20. package/dist/{Tabs-3kwkNbaY.js → Tabs-CObzeuUj.js} +208 -209
  21. package/dist/TextInput-61DYDrkn.cjs +12 -0
  22. package/dist/{TextInput-D-KCBgdw.js → TextInput-CjRiCEow.js} +141 -143
  23. package/dist/TimePicker-C64jDcYa.js +24351 -0
  24. package/dist/TimePicker-DKHA-KBc.cjs +74 -0
  25. package/dist/Typography-CX8IJDUK.cjs +1 -0
  26. package/dist/{Typography-D9wqoWpo.js → Typography-DDYzN_3X.js} +18 -19
  27. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  28. package/dist/components/Dropzone/Dropzone.es.js +73 -103
  29. package/dist/components/Loader/Loader.cjs.js +1 -1
  30. package/dist/components/Loader/Loader.es.js +2 -3
  31. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  32. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -2
  33. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  34. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
  35. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  36. package/dist/components/LocalizationProvider/index.es.js +1 -1
  37. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  38. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  39. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  40. package/dist/components/PaperHeader/PaperHeader.stories.es.js +3 -3
  41. package/dist/components/PaperHeader/index.cjs.js +1 -1
  42. package/dist/components/PaperHeader/index.es.js +1 -1
  43. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  44. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  45. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  46. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +30 -31
  47. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  48. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  49. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  50. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  51. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  52. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  53. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  54. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  55. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  56. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  57. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  58. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  59. package/dist/components/buttons/index.cjs.js +1 -1
  60. package/dist/components/buttons/index.es.js +1 -1
  61. package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
  62. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  63. package/dist/components/index.cjs.js +1 -1
  64. package/dist/components/index.es.js +13 -13
  65. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  66. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -9
  67. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  68. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  69. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  70. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  71. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  72. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  73. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  74. package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
  75. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  76. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  77. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  78. package/dist/components/inputs/TextInput/index.es.js +1 -1
  79. package/dist/components/inputs/index.cjs.js +1 -1
  80. package/dist/components/inputs/index.es.js +2 -2
  81. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  82. package/dist/components/lists/FileList/FileList.es.js +1 -1
  83. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  84. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  85. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  86. package/dist/components/lists/TabList.stories.es.js +5 -5
  87. package/dist/createSvgIcon-BhmdtpFQ.cjs +1 -0
  88. package/dist/{createSvgIcon-DzqAq5L0.js → createSvgIcon-D0vr-xfg.js} +14 -15
  89. package/dist/{createSvgIcon-BB59Xsl7.cjs → createSvgIcon-DtHN6kOe.cjs} +1 -1
  90. package/dist/{createSvgIcon-BKAOek5F.js → createSvgIcon-XuLYHpIN.js} +2 -2
  91. package/dist/defaultTheme-43URU5cB.cjs +1 -0
  92. package/dist/defaultTheme-kWAisKX-.js +19 -0
  93. package/dist/{extendSxProp-DHqLFl-L.js → extendSxProp-BH27e4Uq.js} +47 -60
  94. package/dist/{extendSxProp-CaWP661G.cjs → extendSxProp-DguFtn4z.cjs} +2 -2
  95. package/dist/{fr-DQmRkdQN.cjs → fr-Cv05qO2i.cjs} +1 -1
  96. package/dist/{fr-CK9zQ_Ty.js → fr-VAA6DQIZ.js} +20 -34
  97. package/dist/identifier-DN9zMdjb.cjs +42 -0
  98. package/dist/{identifier-DRpIhLLR.js → identifier-wD7TMRod.js} +675 -703
  99. package/dist/index.cjs.js +1 -1
  100. package/dist/index.es.js +14 -15
  101. package/dist/{refType-Cn5gyhZI.js → refType-DNsX9F1k.js} +1 -1
  102. package/dist/{refType-DY4akPK-.cjs → refType-P4W7j6GU.cjs} +1 -1
  103. package/dist/styled-DBkKGFww.js +496 -0
  104. package/dist/styled-vrKxhnRS.cjs +17 -0
  105. package/dist/{useSlotProps-DUT5Ou9s.js → useTheme-0LP2yOaO.js} +35 -35
  106. package/dist/useTheme-BjiEuL2C.cjs +1 -0
  107. package/dist/useTheme-BlWZbBeO.cjs +1 -0
  108. package/dist/useTheme-DmZo1zFM.js +18 -0
  109. package/dist/useThemeProps-BbYOXO_x.cjs +1 -0
  110. package/dist/useThemeProps-C1QhfJXI.js +17 -0
  111. package/dist/useThemeProps-CuBdueUZ.js +27 -0
  112. package/dist/useThemeProps-zfqmINoS.cjs +1 -0
  113. package/package.json +27 -14
  114. package/dist/Box-DZHlB1JL.cjs +0 -1
  115. package/dist/ButtonBase-s9fq-FWa.cjs +0 -75
  116. package/dist/CircularProgress-BRObeUJf.cjs +0 -28
  117. package/dist/DefaultButton-CFsQZCt0.cjs +0 -1
  118. package/dist/IconButton-Ciyl-3i6.cjs +0 -2
  119. package/dist/InputBase-DrfyjvX2.cjs +0 -3
  120. package/dist/LocalizationProvider-DdSFKwmg.js +0 -577
  121. package/dist/LocalizationProvider-bb4YzxZc.cjs +0 -5
  122. package/dist/PaperHeader-Cym2X2f9.cjs +0 -1
  123. package/dist/SearchInput-DLB_reMI.cjs +0 -1
  124. package/dist/Tabs-DpjAr2Z-.cjs +0 -4
  125. package/dist/TextInput-BcCK6QOQ.cjs +0 -12
  126. package/dist/TimePicker-P_IrNQee.js +0 -22670
  127. package/dist/TimePicker-zrUL2wS7.cjs +0 -73
  128. package/dist/Typography-BWqNUG5K.cjs +0 -1
  129. package/dist/createSvgIcon-DYS0kjMM.cjs +0 -1
  130. package/dist/identifier-yw8YLxO3.cjs +0 -42
  131. package/dist/styled-BCfAQpid.cjs +0 -17
  132. package/dist/styled-LH7lmhcc.js +0 -474
  133. package/dist/useSlotProps-CabDgsss.cjs +0 -1
  134. package/dist/useThemeProps-BSLCJPn5.cjs +0 -1
  135. package/dist/useThemeProps-DQoLAgYV.js +0 -55
@@ -1,11 +1,10 @@
1
- import { d as h, e as n, _ as t, f as g, h as z, P as r } from "./identifier-DRpIhLLR.js";
1
+ import { d as h, e as n, _ as t, f as g, h as z, P as r } from "./identifier-wD7TMRod.js";
2
2
  import * as d from "react";
3
- import { g as R, c as C } from "./extendSxProp-DHqLFl-L.js";
4
- import { s as B, c as I } from "./styled-LH7lmhcc.js";
5
- import { u as O } from "./useThemeProps-DQoLAgYV.js";
6
- import { jsx as T } from "react/jsx-runtime";
7
- import { B as $ } from "./ButtonBase-D-i7Mp_0.js";
8
- import { c as x } from "./refType-Cn5gyhZI.js";
3
+ import { g as R, c as C } from "./extendSxProp-BH27e4Uq.js";
4
+ import { s as B, u as I, c as O } from "./styled-DBkKGFww.js";
5
+ import { jsx as $ } from "react/jsx-runtime";
6
+ import { B as x } from "./ButtonBase-BN5QfC5l.js";
7
+ import { c as T } from "./refType-DNsX9F1k.js";
9
8
  function k(o) {
10
9
  return h("MuiIconButton", o);
11
10
  }
@@ -19,8 +18,8 @@ const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
19
18
  } = o, c = {
20
19
  root: ["root", s && "disabled", a !== "default" && `color${n(a)}`, i && `edge${n(i)}`, `size${n(l)}`]
21
20
  };
22
- return I(c, k, e);
23
- }, M = B($, {
21
+ return O(c, k, e);
22
+ }, M = B(x, {
24
23
  name: "MuiIconButton",
25
24
  slot: "Root",
26
25
  overridesResolver: (o, e) => {
@@ -88,7 +87,7 @@ const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
88
87
  }
89
88
  });
90
89
  }), N = /* @__PURE__ */ d.forwardRef(function(e, s) {
91
- const a = O({
90
+ const a = I({
92
91
  props: e,
93
92
  name: "MuiIconButton"
94
93
  }), {
@@ -98,21 +97,21 @@ const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
98
97
  color: b = "default",
99
98
  disabled: p = !1,
100
99
  disableFocusRipple: u = !1,
101
- size: m = "medium"
102
- } = a, v = z(a, j), f = t({}, a, {
100
+ size: v = "medium"
101
+ } = a, m = z(a, j), f = t({}, a, {
103
102
  edge: i,
104
103
  color: b,
105
104
  disabled: p,
106
105
  disableFocusRipple: u,
107
- size: m
106
+ size: v
108
107
  }), y = E(f);
109
- return /* @__PURE__ */ T(M, t({
108
+ return /* @__PURE__ */ $(M, t({
110
109
  className: C(y.root, c),
111
110
  centerRipple: !0,
112
111
  focusRipple: !u,
113
112
  disabled: p,
114
113
  ref: s
115
- }, v, {
114
+ }, m, {
116
115
  ownerState: f,
117
116
  children: l
118
117
  }));
@@ -125,7 +124,7 @@ process.env.NODE_ENV !== "production" && (N.propTypes = {
125
124
  /**
126
125
  * The icon to display.
127
126
  */
128
- children: x(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
127
+ children: T(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
129
128
  `)) : null),
130
129
  /**
131
130
  * Override or extend the styles applied to the component.
@@ -0,0 +1,3 @@
1
+ "use strict";const e=require("./identifier-DN9zMdjb.cjs"),je=require("react"),V=require("./extendSxProp-DguFtn4z.cjs"),L=require("./styled-vrKxhnRS.cjs"),b=require("react/jsx-runtime"),B=require("./useForkRef-CGd3Nhyb.cjs"),ne=require("./ownerWindow-Dk_4aaak.cjs"),ce=require("./isHostComponent-PydJW4A4.cjs"),fe=require("./refType-P4W7j6GU.cjs"),He=require("./defaultTheme-43URU5cB.cjs"),Me=require("./useTheme-BlWZbBeO.cjs");function We(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>o[t]})}}return n.default=o,Object.freeze(n)}const p=We(je);function me({styles:o,themeId:n,defaultTheme:t={}}){const r=Me.useTheme(t),i=typeof o=="function"?o(n&&r[n]||r):o;return b.jsx(V.GlobalStyles,{styles:i})}process.env.NODE_ENV!=="production"&&(me.propTypes={defaultTheme:e.PropTypes.object,styles:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.func,e.PropTypes.number,e.PropTypes.object,e.PropTypes.string,e.PropTypes.bool]),themeId:e.PropTypes.string});const U=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(U.displayName="FormControlContext");function he(){return p.useContext(U)}function ye(o){return o!=null&&!(Array.isArray(o)&&o.length===0)}function Te(o,n=!1){return o&&(ye(o.value)&&o.value!==""||n&&ye(o.defaultValue)&&o.defaultValue!=="")}function De(o){return o.startAdornment}function be({props:o,states:n,muiFormControl:t}){return n.reduce((r,i)=>(r[i]=o[i],t&&typeof o[i]>"u"&&(r[i]=t[i]),r),{})}const Ve=["onChange","maxRows","minRows","style","value"];function D(o){return parseInt(o,10)||0}const qe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Le(o){return o==null||Object.keys(o).length===0||o.outerHeightStyle===0&&!o.overflowing}const Pe=p.forwardRef(function(n,t){const{onChange:r,maxRows:i,minRows:d=1,style:E,value:z}=n,F=e._objectWithoutPropertiesLoose(n,Ve),{current:C}=p.useRef(z!=null),h=p.useRef(null),N=B.useForkRef(t,h),T=p.useRef(null),S=p.useRef(null),g=p.useCallback(()=>{const u=h.current,c=ne.ownerWindow(u).getComputedStyle(u);if(c.width==="0px")return{outerHeightStyle:0,overflowing:!1};const f=S.current;f.style.width=c.width,f.value=u.value||n.placeholder||"x",f.value.slice(-1)===`
2
+ `&&(f.value+=" ");const R=c.boxSizing,O=D(c.paddingBottom)+D(c.paddingTop),w=D(c.borderBottomWidth)+D(c.borderTopWidth),v=f.scrollHeight;f.value="x";const A=f.scrollHeight;let m=v;d&&(m=Math.max(Number(d)*A,m)),i&&(m=Math.min(Number(i)*A,m)),m=Math.max(m,A);const j=m+(R==="border-box"?O+w:0),K=Math.abs(m-v)<=1;return{outerHeightStyle:j,overflowing:K}},[i,d,n.placeholder]),x=p.useCallback(()=>{const u=g();if(Le(u))return;const a=u.outerHeightStyle,c=h.current;T.current!==a&&(T.current=a,c.style.height=`${a}px`),c.style.overflow=u.overflowing?"hidden":""},[g]);B.useEnhancedEffect(()=>{const u=()=>{x()};let a;const c=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{u()})},f=ne.debounce(u),R=h.current,O=ne.ownerWindow(R);O.addEventListener("resize",f);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(process.env.NODE_ENV==="test"?c:u),w.observe(R)),()=>{f.clear(),cancelAnimationFrame(a),O.removeEventListener("resize",f),w&&w.disconnect()}},[g,x]),B.useEnhancedEffect(()=>{x()});const $=u=>{C||x(),r&&r(u)};return b.jsxs(p.Fragment,{children:[b.jsx("textarea",e._extends({value:z,onChange:$,ref:N,rows:d,style:E},F)),b.jsx("textarea",{"aria-hidden":!0,className:n.className,readOnly:!0,ref:S,tabIndex:-1,style:e._extends({},qe.shadow,E,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(Pe.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});function ge(o){return b.jsx(me,e._extends({},o,{defaultTheme:He.defaultTheme,themeId:e.THEME_ID}))}process.env.NODE_ENV!=="production"&&(ge.propTypes={styles:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.func,e.PropTypes.number,e.PropTypes.object,e.PropTypes.string,e.PropTypes.bool])});function Ue(o){return e.generateUtilityClass("MuiInputBase",o)}const q=V.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$e=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],xe=(o,n)=>{const{ownerState:t}=o;return[n.root,t.formControl&&n.formControl,t.startAdornment&&n.adornedStart,t.endAdornment&&n.adornedEnd,t.error&&n.error,t.size==="small"&&n.sizeSmall,t.multiline&&n.multiline,t.color&&n[`color${e.capitalize(t.color)}`],t.fullWidth&&n.fullWidth,t.hiddenLabel&&n.hiddenLabel]},we=(o,n)=>{const{ownerState:t}=o;return[n.input,t.size==="small"&&n.inputSizeSmall,t.multiline&&n.inputMultiline,t.type==="search"&&n.inputTypeSearch,t.startAdornment&&n.inputAdornedStart,t.endAdornment&&n.inputAdornedEnd,t.hiddenLabel&&n.inputHiddenLabel]},Ke=o=>{const{classes:n,color:t,disabled:r,error:i,endAdornment:d,focused:E,formControl:z,fullWidth:F,hiddenLabel:C,multiline:h,readOnly:N,size:T,startAdornment:S,type:g}=o,x={root:["root",`color${e.capitalize(t)}`,r&&"disabled",i&&"error",F&&"fullWidth",E&&"focused",z&&"formControl",T&&T!=="medium"&&`size${e.capitalize(T)}`,h&&"multiline",S&&"adornedStart",d&&"adornedEnd",C&&"hiddenLabel",N&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",h&&"inputMultiline",T==="small"&&"inputSizeSmall",C&&"inputHiddenLabel",S&&"inputAdornedStart",d&&"inputAdornedEnd",N&&"readOnly"]};return L.composeClasses(x,Ue,n)},ve=L.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:xe})(({theme:o,ownerState:n})=>e._extends({},o.typography.body1,{color:(o.vars||o).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${q.disabled}`]:{color:(o.vars||o).palette.text.disabled,cursor:"default"}},n.multiline&&e._extends({padding:"4px 0 5px"},n.size==="small"&&{paddingTop:1}),n.fullWidth&&{width:"100%"})),Ce=L.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:we})(({theme:o,ownerState:n})=>{const t=o.palette.mode==="light",r=e._extends({color:"currentColor"},o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:o.transitions.create("opacity",{duration:o.transitions.duration.shorter})}),i={opacity:"0 !important"},d=o.vars?{opacity:o.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return e._extends({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${q.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":d,"&:focus::-moz-placeholder":d,"&:focus:-ms-input-placeholder":d,"&:focus::-ms-input-placeholder":d},[`&.${q.disabled}`]:{opacity:1,WebkitTextFillColor:(o.vars||o).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},n.size==="small"&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},n.type==="search"&&{MozAppearance:"textfield"})}),Ge=b.jsx(ge,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Se=p.forwardRef(function(n,t){var r;const i=L.useDefaultProps({props:n,name:"MuiInputBase"}),{"aria-describedby":d,autoComplete:E,autoFocus:z,className:F,components:C={},componentsProps:h={},defaultValue:N,disabled:T,disableInjectingGlobalStyles:S,endAdornment:g,fullWidth:x=!1,id:$,inputComponent:u="input",inputProps:a={},inputRef:c,maxRows:f,minRows:R,multiline:O=!1,name:w,onBlur:v,onChange:A,onClick:m,onFocus:j,onKeyDown:K,onKeyUp:Re,placeholder:Oe,readOnly:G,renderSuffix:te,rows:H,slotProps:re={},slots:se={},startAdornment:_,type:ie="text",value:Ee}=i,ze=e._objectWithoutPropertiesLoose(i,$e),M=a.value!=null?a.value:Ee,{current:Y}=p.useRef(M!=null),I=p.useRef(),Ne=p.useCallback(s=>{process.env.NODE_ENV!=="production"&&s&&s.nodeName!=="INPUT"&&!s.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
3
+ `))},[]),Ae=B.useForkRef(I,c,a.ref,Ne),[Z,J]=p.useState(!1),l=he();process.env.NODE_ENV!=="production"&&p.useEffect(()=>{if(l)return l.registerEffect()},[l]);const y=be({props:i,muiFormControl:l,states:["color","disabled","error","hiddenLabel","size","required","filled"]});y.focused=l?l.focused:Z,p.useEffect(()=>{!l&&T&&Z&&(J(!1),v&&v())},[l,T,Z,v]);const Q=l&&l.onFilled,X=l&&l.onEmpty,k=p.useCallback(s=>{Te(s)?Q&&Q():X&&X()},[Q,X]);B.useEnhancedEffect(()=>{Y&&k({value:M})},[M,k,Y]);const Ie=s=>{if(y.disabled){s.stopPropagation();return}j&&j(s),a.onFocus&&a.onFocus(s),l&&l.onFocus?l.onFocus(s):J(!0)},Fe=s=>{v&&v(s),a.onBlur&&a.onBlur(s),l&&l.onBlur?l.onBlur(s):J(!1)},_e=(s,...ue)=>{if(!Y){const de=s.target||I.current;if(de==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":e.formatMuiErrorMessage(1));k({value:de.value})}a.onChange&&a.onChange(s,...ue),A&&A(s,...ue)};p.useEffect(()=>{k(I.current)},[]);const ke=s=>{I.current&&s.currentTarget===s.target&&I.current.focus(),m&&m(s)};let ee=u,P=a;O&&ee==="input"&&(H?(process.env.NODE_ENV!=="production"&&(R||f)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),P=e._extends({type:void 0,minRows:H,maxRows:H},P)):P=e._extends({type:void 0,maxRows:f,minRows:R},P),ee=Pe);const Be=s=>{k(s.animationName==="mui-auto-fill-cancel"?I.current:{value:"x"})};p.useEffect(()=>{l&&l.setAdornedStart(!!_)},[l,_]);const W=e._extends({},i,{color:y.color||"primary",disabled:y.disabled,endAdornment:g,error:y.error,focused:y.focused,formControl:l,fullWidth:x,hiddenLabel:y.hiddenLabel,multiline:O,size:y.size,startAdornment:_,type:ie}),le=Ke(W),pe=se.root||C.Root||ve,oe=re.root||h.root||{},ae=se.input||C.Input||Ce;return P=e._extends({},P,(r=re.input)!=null?r:h.input),b.jsxs(p.Fragment,{children:[!S&&Ge,b.jsxs(pe,e._extends({},oe,!ce.isHostComponent(pe)&&{ownerState:e._extends({},W,oe.ownerState)},{ref:t,onClick:ke},ze,{className:V.clsx(le.root,oe.className,F,G&&"MuiInputBase-readOnly"),children:[_,b.jsx(U.Provider,{value:null,children:b.jsx(ae,e._extends({ownerState:W,"aria-invalid":y.error,"aria-describedby":d,autoComplete:E,autoFocus:z,defaultValue:N,disabled:y.disabled,id:$,onAnimationStart:Be,name:w,placeholder:Oe,readOnly:G,required:y.required,rows:H,value:M,onKeyDown:K,onKeyUp:Re,type:ie},P,!ce.isHostComponent(ae)&&{as:ee,ownerState:e._extends({},W,P.ownerState)},{ref:Ae,className:V.clsx(le.input,P.className,G&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:_e,onFocus:Ie}))}),g,te?te(e._extends({},y,{startAdornment:_})):null]}))]})});process.env.NODE_ENV!=="production"&&(Se.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:fe.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:fe.refType,margin:e.PropTypes.oneOf(["dense","none"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment:e.PropTypes.node,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]),type:e.PropTypes.string,value:e.PropTypes.any});exports.FormControlContext=U;exports.InputBase=Se;exports.InputBaseComponent=Ce;exports.InputBaseRoot=ve;exports.formControlState=be;exports.inputBaseClasses=q;exports.inputOverridesResolver=we;exports.isAdornedStart=De;exports.isFilled=Te;exports.rootOverridesResolver=xe;exports.useFormControl=he;