@cgi-learning-hub/ui 1.0.0-dev.1721229430 → 1.0.0-dev.1721824898
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box-CsYXR6Le.cjs +1 -0
- package/dist/{Box-DQXO6hAm.js → Box-vGRO-On_.js} +11 -12
- package/dist/ButtonBase-VIKeNyAr.cjs +75 -0
- package/dist/{ButtonBase-B5HiNV6L.js → ButtonBase-vONl_zxO.js} +16 -17
- package/dist/{CircularProgress-BlfBX_I2.js → CircularProgress-BDwTzcEn.js} +29 -30
- package/dist/CircularProgress-C0MOR9P7.cjs +28 -0
- package/dist/{DefaultButton-CQL8OQ0m.js → DefaultButton-BD1TIeNP.js} +23 -25
- package/dist/DefaultButton-DV0j1bMY.cjs +1 -0
- package/dist/IconButton-4zP9d1M9.cjs +2 -0
- package/dist/{IconButton-BjD7an5E.js → IconButton-Ctm1Peef.js} +6 -7
- package/dist/InputBase-DMbFw6s1.cjs +3 -0
- package/dist/{InputBase-Bu4aLC8s.js → InputBase-Dqfior4W.js} +41 -43
- package/dist/{SearchInput-BdNp9ibO.js → SearchInput-Clr0qHPm.js} +29 -30
- package/dist/SearchInput-CruiB2CO.cjs +1 -0
- package/dist/{Stack-Bm3R862G.js → Stack-CwklSaeG.js} +28 -29
- package/dist/Stack-v4g12Xre.cjs +1 -0
- package/dist/Tabs-CLr003cV.cjs +4 -0
- package/dist/{Tabs-rGjgGQoc.js → Tabs-D-RPVuW4.js} +131 -119
- package/dist/TextInput-Ba5ly1H9.cjs +12 -0
- package/dist/{TextInput-CAot24Xe.js → TextInput-BxI4zwrY.js} +22 -23
- package/dist/{TimePicker-Dr_nF3ms.js → TimePicker-DK-Q99ep.js} +8214 -7365
- package/dist/TimePicker-DYEkxpHp.cjs +113 -0
- package/dist/Typography-C5AoCX91.cjs +1 -0
- package/dist/{Typography-2SgDaT8h.js → Typography-Cl3kH-A8.js} +15 -16
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +6 -6
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +14 -15
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.es.js +278 -279
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +14 -15
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +34 -36
- package/dist/{createSvgIcon-BoU2zJm2.cjs → createSvgIcon-B70pkSwO.cjs} +1 -1
- package/dist/{createSvgIcon-DKalT1IU.js → createSvgIcon-Blbo0WDd.js} +14 -14
- package/dist/{createSvgIcon-BqV9kys6.js → createSvgIcon-BwGNMrhW.js} +9 -10
- package/dist/createSvgIcon-n-HUhGNK.cjs +1 -0
- package/dist/identifier-J0ZxxQLU.cjs +50 -0
- package/dist/identifier-wKuu0zOr.js +3047 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +279 -280
- package/dist/{refType-BtebdsEm.js → refType-Bqz8QGtc.js} +1 -1
- package/dist/{refType-DzZFRJXI.cjs → refType-DNJbSwsx.cjs} +1 -1
- package/dist/styled-C04Dz9vm.cjs +17 -0
- package/dist/styled-CFCmdTd8.js +533 -0
- package/dist/{useTheme-DDHh2q-k.cjs → useTheme-B4p2k0PU.cjs} +1 -1
- package/dist/useTheme-C65ChbGW.cjs +1 -0
- package/dist/{useTheme-C_ghcfxd.js → useTheme-D5vjhuQC.js} +1 -1
- package/dist/{useTheme-CwCUkvkZ.js → useTheme-DWyCcDbs.js} +29 -30
- package/dist/useThemeProps-CEfrd8SJ.cjs +1 -0
- package/dist/{useThemeProps-BybmzYVD.js → useThemeProps-CZSYSmRG.js} +2 -2
- package/package.json +1 -1
- package/dist/Box-VE8zzQxN.cjs +0 -1
- package/dist/ButtonBase-BINHTm-n.cjs +0 -75
- package/dist/CircularProgress-yfmTQCpL.cjs +0 -28
- package/dist/DefaultButton-8ns1LvfF.cjs +0 -1
- package/dist/IconButton-RFeuYm2K.cjs +0 -2
- package/dist/InputBase-zXQ1Gs_-.cjs +0 -3
- package/dist/LocalizationProvider-Bd8iEFyF.cjs +0 -5
- package/dist/LocalizationProvider-Bw5VDmOD.js +0 -592
- package/dist/SearchInput-DeBVN_CY.cjs +0 -1
- package/dist/Stack-CHo9cbcP.cjs +0 -1
- package/dist/Tabs-CgnNgSGQ.cjs +0 -4
- package/dist/TextInput-Dy0Qi2N7.cjs +0 -12
- package/dist/TimePicker-wzgmz3DE.cjs +0 -109
- package/dist/Typography-B_CzXKnG.cjs +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
- package/dist/components/LocalizationProvider/index.cjs.js +0 -1
- package/dist/components/LocalizationProvider/index.d.ts +0 -2
- package/dist/components/LocalizationProvider/index.es.js +0 -4
- package/dist/createSvgIcon-Dm2nQR21.cjs +0 -1
- package/dist/defaultTheme-BlqVFqOY.cjs +0 -1
- package/dist/defaultTheme-C4edRge6.js +0 -19
- package/dist/extendSxProp-BaQsf_eX.js +0 -739
- package/dist/extendSxProp-DYKVP-ko.cjs +0 -10
- package/dist/fr-DNOCWhp_.js +0 -321
- package/dist/fr-DSv4ULwD.cjs +0 -1
- package/dist/identifier-CItx51dm.js +0 -2369
- package/dist/identifier-DPVk4rwk.cjs +0 -43
- package/dist/styled-BCP6gOZj.js +0 -519
- package/dist/styled-RtRlBNlZ.cjs +0 -17
- package/dist/useTheme-CqMZT0T0.cjs +0 -1
- package/dist/useThemeProps-CEiKfXBZ.cjs +0 -1
- package/dist/useThemeProps-DmEDeofb.cjs +0 -1
- package/dist/useThemeProps-JKgv0pkv.js +0 -17
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { k as h, m as n, _ as t,
|
|
1
|
+
import { k as h, m as z, n, _ as t, q as g, s as R, t as C, P as r } from "./identifier-wKuu0zOr.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { s as B, u as I, c as O } from "./styled-BCP6gOZj.js";
|
|
3
|
+
import { s as B, u as I, c as O } from "./styled-CFCmdTd8.js";
|
|
5
4
|
import { jsx as $ } from "react/jsx-runtime";
|
|
6
|
-
import { B as x } from "./ButtonBase-
|
|
7
|
-
import { c as T } from "./refType-
|
|
5
|
+
import { B as x } from "./ButtonBase-vONl_zxO.js";
|
|
6
|
+
import { c as T } from "./refType-Bqz8QGtc.js";
|
|
8
7
|
function k(o) {
|
|
9
8
|
return h("MuiIconButton", o);
|
|
10
9
|
}
|
|
11
|
-
const P =
|
|
10
|
+
const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = P, j = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], E = (o) => {
|
|
12
11
|
const {
|
|
13
12
|
classes: e,
|
|
14
13
|
disabled: s,
|
|
@@ -98,7 +97,7 @@ const P = R("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
98
97
|
disabled: p = !1,
|
|
99
98
|
disableFocusRipple: u = !1,
|
|
100
99
|
size: v = "medium"
|
|
101
|
-
} = a, m =
|
|
100
|
+
} = a, m = R(a, j), f = t({}, a, {
|
|
102
101
|
edge: i,
|
|
103
102
|
color: b,
|
|
104
103
|
disabled: p,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-J0ZxxQLU.cjs"),Be=require("react"),j=require("./styled-C04Dz9vm.cjs"),b=require("react/jsx-runtime"),B=require("./useForkRef-CGd3Nhyb.cjs"),oe=require("./ownerWindow-Dk_4aaak.cjs"),de=require("./isHostComponent-PydJW4A4.cjs"),ce=require("./refType-DNJbSwsx.cjs"),je=require("./useTheme-B4p2k0PU.cjs");function He(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=He(Be);function ye({styles:o,themeId:n,defaultTheme:t={}}){const r=je.useTheme(t),i=typeof o=="function"?o(n&&r[n]||r):o;return b.jsx(e.GlobalStyles,{styles:i})}process.env.NODE_ENV!=="production"&&(ye.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 q=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(q.displayName="FormControlContext");function me(){return p.useContext(q)}function fe(o){return o!=null&&!(Array.isArray(o)&&o.length===0)}function he(o,n=!1){return o&&(fe(o.value)&&o.value!==""||n&&fe(o.defaultValue)&&o.defaultValue!=="")}function Me(o){return o.startAdornment}function Te({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 We=["onChange","maxRows","minRows","style","value"];function V(o){return parseInt(o,10)||0}const De={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ve(o){return o==null||Object.keys(o).length===0||o.outerHeightStyle===0&&!o.overflowing}const be=p.forwardRef(function(n,t){const{onChange:r,maxRows:i,minRows:d=1,style:E,value:z}=n,F=e._objectWithoutPropertiesLoose(n,We),{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=oe.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=V(c.paddingBottom)+V(c.paddingTop),w=V(c.borderBottomWidth)+V(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 H=m+(R==="border-box"?O+w:0),$=Math.abs(m-v)<=1;return{outerHeightStyle:H,overflowing:$}},[i,d,n.placeholder]),x=p.useCallback(()=>{const u=g();if(Ve(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=oe.debounce(u),R=h.current,O=oe.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=u=>{C||x(),r&&r(u)};return b.jsxs(p.Fragment,{children:[b.jsx("textarea",e._extends({value:z,onChange:U,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({},De.shadow,E,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(be.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 Pe(o){return b.jsx(ye,e._extends({},o,{defaultTheme:j.defaultTheme,themeId:e.THEME_ID}))}process.env.NODE_ENV!=="production"&&(Pe.propTypes={styles:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.func,e.PropTypes.number,e.PropTypes.object,e.PropTypes.string,e.PropTypes.bool])});function Le(o){return e.generateUtilityClass("MuiInputBase",o)}const L=e.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qe=["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"],ge=(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]},xe=(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]},Ue=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 j.composeClasses(x,Le,n)},we=j.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ge})(({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",[`&.${L.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%"})),ve=j.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xe})(({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] + .${L.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},[`&.${L.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"})}),$e=b.jsx(Pe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ce=p.forwardRef(function(n,t){var r;const i=j.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:U,inputComponent:u="input",inputProps:a={},inputRef:c,maxRows:f,minRows:R,multiline:O=!1,name:w,onBlur:v,onChange:A,onClick:m,onFocus:H,onKeyDown:$,onKeyUp:Se,placeholder:Re,readOnly:K,renderSuffix:ne,rows:M,slotProps:te={},slots:re={},startAdornment:_,type:se="text",value:Oe}=i,Ee=e._objectWithoutPropertiesLoose(i,qe),W=a.value!=null?a.value:Oe,{current:G}=p.useRef(W!=null),I=p.useRef(),ze=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
|
+
`))},[]),Ne=B.useForkRef(I,c,a.ref,ze),[Y,Z]=p.useState(!1),l=me();process.env.NODE_ENV!=="production"&&p.useEffect(()=>{if(l)return l.registerEffect()},[l]);const y=Te({props:i,muiFormControl:l,states:["color","disabled","error","hiddenLabel","size","required","filled"]});y.focused=l?l.focused:Y,p.useEffect(()=>{!l&&T&&Y&&(Z(!1),v&&v())},[l,T,Y,v]);const J=l&&l.onFilled,Q=l&&l.onEmpty,k=p.useCallback(s=>{he(s)?J&&J():Q&&Q()},[J,Q]);B.useEnhancedEffect(()=>{G&&k({value:W})},[W,k,G]);const Ae=s=>{if(y.disabled){s.stopPropagation();return}H&&H(s),a.onFocus&&a.onFocus(s),l&&l.onFocus?l.onFocus(s):Z(!0)},Ie=s=>{v&&v(s),a.onBlur&&a.onBlur(s),l&&l.onBlur?l.onBlur(s):Z(!1)},Fe=(s,...ae)=>{if(!G){const ue=s.target||I.current;if(ue==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:ue.value})}a.onChange&&a.onChange(s,...ae),A&&A(s,...ae)};p.useEffect(()=>{k(I.current)},[]);const _e=s=>{I.current&&s.currentTarget===s.target&&I.current.focus(),m&&m(s)};let X=u,P=a;O&&X==="input"&&(M?(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:M,maxRows:M},P)):P=e._extends({type:void 0,maxRows:f,minRows:R},P),X=be);const ke=s=>{k(s.animationName==="mui-auto-fill-cancel"?I.current:{value:"x"})};p.useEffect(()=>{l&&l.setAdornedStart(!!_)},[l,_]);const D=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:se}),ie=Ue(D),le=re.root||C.Root||we,ee=te.root||h.root||{},pe=re.input||C.Input||ve;return P=e._extends({},P,(r=te.input)!=null?r:h.input),b.jsxs(p.Fragment,{children:[!S&&$e,b.jsxs(le,e._extends({},ee,!de.isHostComponent(le)&&{ownerState:e._extends({},D,ee.ownerState)},{ref:t,onClick:_e},Ee,{className:e.clsx(ie.root,ee.className,F,K&&"MuiInputBase-readOnly"),children:[_,b.jsx(q.Provider,{value:null,children:b.jsx(pe,e._extends({ownerState:D,"aria-invalid":y.error,"aria-describedby":d,autoComplete:E,autoFocus:z,defaultValue:N,disabled:y.disabled,id:U,onAnimationStart:ke,name:w,placeholder:Re,readOnly:K,required:y.required,rows:M,value:W,onKeyDown:$,onKeyUp:Se,type:se},P,!de.isHostComponent(pe)&&{as:X,ownerState:e._extends({},D,P.ownerState)},{ref:Ne,className:e.clsx(ie.input,P.className,K&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:Fe,onFocus:Ae}))}),g,ne?ne(e._extends({},y,{startAdornment:_})):null]}))]})});process.env.NODE_ENV!=="production"&&(Ce.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:ce.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:ce.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=q;exports.InputBase=Ce;exports.InputBaseComponent=ve;exports.InputBaseRoot=we;exports.formControlState=Te;exports.inputBaseClasses=L;exports.inputOverridesResolver=xe;exports.isAdornedStart=Me;exports.isFilled=he;exports.rootOverridesResolver=ge;exports.useFormControl=me;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { P as e,
|
|
1
|
+
import { J as ke, P as e, s as ye, _ as d, T as Be, m as Pe, k as Me, t as pe, n as Q, K as He } from "./identifier-wKuu0zOr.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { s as be, u as De, c as We } from "./styled-BCP6gOZj.js";
|
|
3
|
+
import { d as De, s as be, u as We, c as Ve } from "./styled-CFCmdTd8.js";
|
|
5
4
|
import { jsx as N, jsxs as X } from "react/jsx-runtime";
|
|
6
5
|
import { a as ge, u as ee } from "./useForkRef-DwN_Iz9R.js";
|
|
7
|
-
import { a as fe, d as
|
|
6
|
+
import { a as fe, d as _e } from "./ownerWindow-C7EH1lr6.js";
|
|
8
7
|
import { i as me } from "./isHostComponent-kiaBvYVo.js";
|
|
9
|
-
import { e as
|
|
10
|
-
import {
|
|
11
|
-
import { u as Ue } from "./useTheme-C_ghcfxd.js";
|
|
8
|
+
import { e as Le, r as je } from "./refType-Bqz8QGtc.js";
|
|
9
|
+
import { u as Ue } from "./useTheme-D5vjhuQC.js";
|
|
12
10
|
function we({
|
|
13
11
|
styles: o,
|
|
14
12
|
themeId: n,
|
|
15
13
|
defaultTheme: t = {}
|
|
16
14
|
}) {
|
|
17
15
|
const s = Ue(t), i = typeof o == "function" ? o(n && s[n] || s) : o;
|
|
18
|
-
return /* @__PURE__ */ N(
|
|
16
|
+
return /* @__PURE__ */ N(ke, {
|
|
19
17
|
styles: i
|
|
20
18
|
});
|
|
21
19
|
}
|
|
@@ -45,13 +43,13 @@ function $e() {
|
|
|
45
43
|
function he(o) {
|
|
46
44
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
47
45
|
}
|
|
48
|
-
function
|
|
46
|
+
function Ke(o, n = !1) {
|
|
49
47
|
return o && (he(o.value) && o.value !== "" || n && he(o.defaultValue) && o.defaultValue !== "");
|
|
50
48
|
}
|
|
51
|
-
function
|
|
49
|
+
function ho(o) {
|
|
52
50
|
return o.startAdornment;
|
|
53
51
|
}
|
|
54
|
-
function
|
|
52
|
+
function Ge({
|
|
55
53
|
props: o,
|
|
56
54
|
states: n,
|
|
57
55
|
muiFormControl: t
|
|
@@ -77,7 +75,7 @@ const Ye = {
|
|
|
77
75
|
transform: "translateZ(0)"
|
|
78
76
|
}
|
|
79
77
|
};
|
|
80
|
-
function
|
|
78
|
+
function Je(o) {
|
|
81
79
|
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
|
|
82
80
|
}
|
|
83
81
|
const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
@@ -111,7 +109,7 @@ const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
|
111
109
|
};
|
|
112
110
|
}, [i, p, n.placeholder]), C = l.useCallback(() => {
|
|
113
111
|
const c = v();
|
|
114
|
-
if (
|
|
112
|
+
if (Je(c))
|
|
115
113
|
return;
|
|
116
114
|
const u = c.outerHeightStyle, f = b.current;
|
|
117
115
|
g.current !== u && (g.current = u, f.style.height = `${u}px`), f.style.overflow = c.overflowing ? "hidden" : "";
|
|
@@ -125,7 +123,7 @@ const ve = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
|
125
123
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
126
124
|
c();
|
|
127
125
|
});
|
|
128
|
-
}, m =
|
|
126
|
+
}, m = _e(c), E = b.current, O = fe(E);
|
|
129
127
|
O.addEventListener("resize", m);
|
|
130
128
|
let x;
|
|
131
129
|
return typeof ResizeObserver < "u" && (x = new ResizeObserver(process.env.NODE_ENV === "test" ? f : c), x.observe(E)), () => {
|
|
@@ -194,8 +192,8 @@ process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
|
194
192
|
});
|
|
195
193
|
function Ce(o) {
|
|
196
194
|
return /* @__PURE__ */ N(we, d({}, o, {
|
|
197
|
-
defaultTheme:
|
|
198
|
-
themeId:
|
|
195
|
+
defaultTheme: De,
|
|
196
|
+
themeId: Be
|
|
199
197
|
}));
|
|
200
198
|
}
|
|
201
199
|
process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
@@ -208,10 +206,10 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
|
208
206
|
*/
|
|
209
207
|
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
|
|
210
208
|
});
|
|
211
|
-
function
|
|
212
|
-
return
|
|
209
|
+
function Ze(o) {
|
|
210
|
+
return Me("MuiInputBase", o);
|
|
213
211
|
}
|
|
214
|
-
const oe =
|
|
212
|
+
const oe = Pe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), Qe = ["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) => {
|
|
215
213
|
const {
|
|
216
214
|
ownerState: t
|
|
217
215
|
} = o;
|
|
@@ -241,7 +239,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
241
239
|
root: ["root", `color${Q(t)}`, s && "disabled", i && "error", B && "fullWidth", z && "focused", A && "formControl", g && g !== "medium" && `size${Q(g)}`, b && "multiline", T && "adornedStart", p && "adornedEnd", R && "hiddenLabel", I && "readOnly"],
|
|
242
240
|
input: ["input", s && "disabled", v === "search" && "inputTypeSearch", b && "inputMultiline", g === "small" && "inputSizeSmall", R && "inputHiddenLabel", T && "inputAdornedStart", p && "inputAdornedEnd", I && "readOnly"]
|
|
243
241
|
};
|
|
244
|
-
return
|
|
242
|
+
return Ve(C, Ze, n);
|
|
245
243
|
}, no = be("div", {
|
|
246
244
|
name: "MuiInputBase",
|
|
247
245
|
slot: "Root",
|
|
@@ -385,7 +383,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
385
383
|
}
|
|
386
384
|
}), io = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
387
385
|
var s;
|
|
388
|
-
const i =
|
|
386
|
+
const i = We({
|
|
389
387
|
props: n,
|
|
390
388
|
name: "MuiInputBase"
|
|
391
389
|
}), {
|
|
@@ -428,21 +426,21 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
428
426
|
} = l.useRef(W != null), k = l.useRef(), Ee = l.useCallback((r) => {
|
|
429
427
|
process.env.NODE_ENV !== "production" && r && r.nodeName !== "INPUT" && !r.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(`
|
|
430
428
|
`));
|
|
431
|
-
}, []), Oe = ge(k, f, u.ref, Ee), [
|
|
429
|
+
}, []), Oe = ge(k, f, u.ref, Ee), [K, G] = l.useState(!1), a = $e();
|
|
432
430
|
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
433
431
|
if (a)
|
|
434
432
|
return a.registerEffect();
|
|
435
433
|
}, [a]);
|
|
436
|
-
const h =
|
|
434
|
+
const h = Ge({
|
|
437
435
|
props: i,
|
|
438
436
|
muiFormControl: a,
|
|
439
437
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
440
438
|
});
|
|
441
|
-
h.focused = a ? a.focused :
|
|
442
|
-
!a && g &&
|
|
443
|
-
}, [a, g,
|
|
439
|
+
h.focused = a ? a.focused : K, l.useEffect(() => {
|
|
440
|
+
!a && g && K && (G(!1), S && S());
|
|
441
|
+
}, [a, g, K, S]);
|
|
444
442
|
const q = a && a.onFilled, Y = a && a.onEmpty, M = l.useCallback((r) => {
|
|
445
|
-
|
|
443
|
+
Ke(r) ? q && q() : Y && Y();
|
|
446
444
|
}, [q, Y]);
|
|
447
445
|
ee(() => {
|
|
448
446
|
$ && M({
|
|
@@ -454,14 +452,14 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
454
452
|
r.stopPropagation();
|
|
455
453
|
return;
|
|
456
454
|
}
|
|
457
|
-
H && H(r), u.onFocus && u.onFocus(r), a && a.onFocus ? a.onFocus(r) :
|
|
455
|
+
H && H(r), u.onFocus && u.onFocus(r), a && a.onFocus ? a.onFocus(r) : G(!0);
|
|
458
456
|
}, ze = (r) => {
|
|
459
|
-
S && S(r), u.onBlur && u.onBlur(r), a && a.onBlur ? a.onBlur(r) :
|
|
457
|
+
S && S(r), u.onBlur && u.onBlur(r), a && a.onBlur ? a.onBlur(r) : G(!1);
|
|
460
458
|
}, Ae = (r, ...de) => {
|
|
461
459
|
if (!$) {
|
|
462
460
|
const ce = r.target || k.current;
|
|
463
461
|
if (ce == null)
|
|
464
|
-
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." :
|
|
462
|
+
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." : He(1));
|
|
465
463
|
M({
|
|
466
464
|
value: ce.value
|
|
467
465
|
});
|
|
@@ -474,8 +472,8 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
474
472
|
const Ie = (r) => {
|
|
475
473
|
k.current && r.currentTarget === r.target && k.current.focus(), y && y(r);
|
|
476
474
|
};
|
|
477
|
-
let
|
|
478
|
-
O &&
|
|
475
|
+
let J = c, w = u;
|
|
476
|
+
O && J === "input" && (D ? (process.env.NODE_ENV !== "production" && (E || m) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), w = d({
|
|
479
477
|
type: void 0,
|
|
480
478
|
minRows: D,
|
|
481
479
|
maxRows: D
|
|
@@ -483,7 +481,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
483
481
|
type: void 0,
|
|
484
482
|
maxRows: m,
|
|
485
483
|
minRows: E
|
|
486
|
-
}, w),
|
|
484
|
+
}, w), J = ve);
|
|
487
485
|
const Fe = (r) => {
|
|
488
486
|
M(r.animationName === "mui-auto-fill-cancel" ? k.current : {
|
|
489
487
|
value: "x"
|
|
@@ -505,15 +503,15 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
505
503
|
size: h.size,
|
|
506
504
|
startAdornment: P,
|
|
507
505
|
type: ae
|
|
508
|
-
}), se = oo(V), le = ie.root || R.Root || no,
|
|
506
|
+
}), se = oo(V), le = ie.root || R.Root || no, Z = re.root || b.root || {}, ue = ie.input || R.Input || to;
|
|
509
507
|
return w = d({}, w, (s = re.input) != null ? s : b.input), /* @__PURE__ */ X(l.Fragment, {
|
|
510
|
-
children: [!T && ro, /* @__PURE__ */ X(le, d({},
|
|
511
|
-
ownerState: d({}, V,
|
|
508
|
+
children: [!T && ro, /* @__PURE__ */ X(le, d({}, Z, !me(le) && {
|
|
509
|
+
ownerState: d({}, V, Z.ownerState)
|
|
512
510
|
}, {
|
|
513
511
|
ref: t,
|
|
514
512
|
onClick: Ie
|
|
515
513
|
}, Te, {
|
|
516
|
-
className: pe(se.root,
|
|
514
|
+
className: pe(se.root, Z.className, B, U && "MuiInputBase-readOnly"),
|
|
517
515
|
children: [P, /* @__PURE__ */ N(ne.Provider, {
|
|
518
516
|
value: null,
|
|
519
517
|
children: /* @__PURE__ */ N(ue, d({
|
|
@@ -536,7 +534,7 @@ const oe = He("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
536
534
|
onKeyUp: xe,
|
|
537
535
|
type: ae
|
|
538
536
|
}, w, !me(ue) && {
|
|
539
|
-
as:
|
|
537
|
+
as: J,
|
|
540
538
|
ownerState: d({}, V, w.ownerState)
|
|
541
539
|
}, {
|
|
542
540
|
ref: Oe,
|
|
@@ -648,7 +646,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
648
646
|
* Either a string to use a HTML element or a component.
|
|
649
647
|
* @default 'input'
|
|
650
648
|
*/
|
|
651
|
-
inputComponent:
|
|
649
|
+
inputComponent: Le,
|
|
652
650
|
/**
|
|
653
651
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
654
652
|
* @default {}
|
|
@@ -657,7 +655,7 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
657
655
|
/**
|
|
658
656
|
* Pass a ref to the `input` element.
|
|
659
657
|
*/
|
|
660
|
-
inputRef:
|
|
658
|
+
inputRef: je,
|
|
661
659
|
/**
|
|
662
660
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
663
661
|
* FormControl.
|
|
@@ -784,13 +782,13 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
784
782
|
export {
|
|
785
783
|
ne as F,
|
|
786
784
|
io as I,
|
|
787
|
-
|
|
785
|
+
Ke as a,
|
|
788
786
|
oe as b,
|
|
789
787
|
no as c,
|
|
790
788
|
to as d,
|
|
791
789
|
eo as e,
|
|
792
|
-
|
|
793
|
-
|
|
790
|
+
Ge as f,
|
|
791
|
+
ho as i,
|
|
794
792
|
Xe as r,
|
|
795
793
|
$e as u
|
|
796
794
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { jsx as n, jsxs as A } from "react/jsx-runtime";
|
|
2
|
-
import { s as I, u as S, c as T } from "./styled-
|
|
3
|
-
import { u as L, F as M, I as N } from "./InputBase-
|
|
4
|
-
import {
|
|
2
|
+
import { s as I, u as S, c as T } from "./styled-CFCmdTd8.js";
|
|
3
|
+
import { u as L, F as M, I as N } from "./InputBase-Dqfior4W.js";
|
|
4
|
+
import { m as R, k as z, _ as m, s as O, t as _, P as e, n as v } from "./identifier-wKuu0zOr.js";
|
|
5
5
|
import * as b from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as F } from "./createSvgIcon-BqV9kys6.js";
|
|
6
|
+
import { T as j } from "./Typography-Cl3kH-A8.js";
|
|
7
|
+
import { c as F } from "./createSvgIcon-BwGNMrhW.js";
|
|
9
8
|
function U(o) {
|
|
10
|
-
return
|
|
9
|
+
return z("MuiInputAdornment", o);
|
|
11
10
|
}
|
|
12
|
-
const y =
|
|
11
|
+
const y = R("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
|
|
13
12
|
var g;
|
|
14
13
|
const $ = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], w = (o, t) => {
|
|
15
14
|
const {
|
|
16
|
-
ownerState:
|
|
15
|
+
ownerState: s
|
|
17
16
|
} = o;
|
|
18
|
-
return [t.root, t[`position${v(
|
|
17
|
+
return [t.root, t[`position${v(s.position)}`], s.disablePointerEvents === !0 && t.disablePointerEvents, t[s.variant]];
|
|
19
18
|
}, k = (o) => {
|
|
20
19
|
const {
|
|
21
20
|
classes: t,
|
|
22
|
-
disablePointerEvents:
|
|
23
|
-
hiddenLabel:
|
|
24
|
-
position:
|
|
21
|
+
disablePointerEvents: s,
|
|
22
|
+
hiddenLabel: i,
|
|
23
|
+
position: r,
|
|
25
24
|
size: l,
|
|
26
25
|
variant: p
|
|
27
26
|
} = o, d = {
|
|
28
|
-
root: ["root",
|
|
27
|
+
root: ["root", s && "disablePointerEvents", r && `position${v(r)}`, p, i && "hiddenLabel", l && `size${v(l)}`]
|
|
29
28
|
};
|
|
30
29
|
return T(d, U, t);
|
|
31
30
|
}, B = I("div", {
|
|
@@ -57,24 +56,24 @@ const $ = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
57
56
|
}, t.disablePointerEvents === !0 && {
|
|
58
57
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
59
58
|
pointerEvents: "none"
|
|
60
|
-
})), C = /* @__PURE__ */ b.forwardRef(function(t,
|
|
61
|
-
const
|
|
59
|
+
})), C = /* @__PURE__ */ b.forwardRef(function(t, s) {
|
|
60
|
+
const i = S({
|
|
62
61
|
props: t,
|
|
63
62
|
name: "MuiInputAdornment"
|
|
64
63
|
}), {
|
|
65
|
-
children:
|
|
64
|
+
children: r,
|
|
66
65
|
className: l,
|
|
67
66
|
component: p = "div",
|
|
68
67
|
disablePointerEvents: d = !1,
|
|
69
68
|
disableTypography: E = !1,
|
|
70
69
|
position: f,
|
|
71
70
|
variant: c
|
|
72
|
-
} =
|
|
71
|
+
} = i, P = O(i, $), a = L() || {};
|
|
73
72
|
let u = c;
|
|
74
|
-
c &&
|
|
75
|
-
const h = m({},
|
|
76
|
-
hiddenLabel:
|
|
77
|
-
size:
|
|
73
|
+
c && a.variant && process.env.NODE_ENV !== "production" && c === a.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), a && !u && (u = a.variant);
|
|
74
|
+
const h = m({}, i, {
|
|
75
|
+
hiddenLabel: a.hiddenLabel,
|
|
76
|
+
size: a.size,
|
|
78
77
|
disablePointerEvents: d,
|
|
79
78
|
position: f,
|
|
80
79
|
variant: u
|
|
@@ -85,11 +84,11 @@ const $ = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
85
84
|
as: p,
|
|
86
85
|
ownerState: h,
|
|
87
86
|
className: _(x.root, l),
|
|
88
|
-
ref:
|
|
87
|
+
ref: s
|
|
89
88
|
}, P, {
|
|
90
|
-
children: typeof
|
|
89
|
+
children: typeof r == "string" && !E ? /* @__PURE__ */ n(j, {
|
|
91
90
|
color: "text.secondary",
|
|
92
|
-
children:
|
|
91
|
+
children: r
|
|
93
92
|
}) : /* @__PURE__ */ A(b.Fragment, {
|
|
94
93
|
children: [f === "start" ? (
|
|
95
94
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
@@ -97,7 +96,7 @@ const $ = ["children", "className", "component", "disablePointerEvents", "disabl
|
|
|
97
96
|
className: "notranslate",
|
|
98
97
|
children: ""
|
|
99
98
|
}))
|
|
100
|
-
) : null,
|
|
99
|
+
) : null, r]
|
|
101
100
|
})
|
|
102
101
|
}))
|
|
103
102
|
});
|
|
@@ -152,7 +151,7 @@ process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
|
152
151
|
});
|
|
153
152
|
const D = F(/* @__PURE__ */ n("path", {
|
|
154
153
|
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"
|
|
155
|
-
}), "Search"),
|
|
154
|
+
}), "Search"), V = I(N)(({ theme: o }) => ({
|
|
156
155
|
width: "auto",
|
|
157
156
|
padding: "0px 12px",
|
|
158
157
|
backgroundColor: o.palette.grey[50],
|
|
@@ -165,11 +164,11 @@ const D = F(/* @__PURE__ */ n("path", {
|
|
|
165
164
|
color: o.palette.primary.main
|
|
166
165
|
}
|
|
167
166
|
}
|
|
168
|
-
})),
|
|
167
|
+
})), Q = ({
|
|
169
168
|
placeholder: o = "Rechercher",
|
|
170
169
|
...t
|
|
171
170
|
}) => /* @__PURE__ */ n(
|
|
172
|
-
|
|
171
|
+
V,
|
|
173
172
|
{
|
|
174
173
|
...t,
|
|
175
174
|
placeholder: o,
|
|
@@ -182,5 +181,5 @@ const D = F(/* @__PURE__ */ n("path", {
|
|
|
182
181
|
);
|
|
183
182
|
export {
|
|
184
183
|
C as I,
|
|
185
|
-
|
|
184
|
+
Q as S
|
|
186
185
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("./styled-C04Dz9vm.cjs"),m=require("./InputBase-DMbFw6s1.cjs"),e=require("./identifier-J0ZxxQLU.cjs"),j=require("react"),C=require("./Typography-C5AoCX91.cjs"),E=require("./createSvgIcon-n-HUhGNK.cjs");function S(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 b=S(j);function A(t){return e.generateUtilityClass("MuiInputAdornment",t)}const P=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g;const O=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_=(t,n)=>{const{ownerState:o}=t;return[n.root,n[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&n.disablePointerEvents,n[o.variant]]},z=t=>{const{classes:n,disablePointerEvents:o,hiddenLabel:s,position:i,size:p,variant:c}=t,d={root:["root",o&&"disablePointerEvents",i&&`position${e.capitalize(i)}`,c,s&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return l.composeClasses(d,A,n)},M=l.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_})(({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"&&{[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]:{marginTop:16}},n.position==="start"&&{marginRight:8},n.position==="end"&&{marginLeft:8},n.disablePointerEvents===!0&&{pointerEvents:"none"})),v=b.forwardRef(function(n,o){const s=l.useDefaultProps({props:n,name:"MuiInputAdornment"}),{children:i,className:p,component:c="div",disablePointerEvents:d=!1,disableTypography:T=!1,position:f,variant:u}=s,x=e._objectWithoutPropertiesLoose(s,O),a=m.useFormControl()||{};let y=u;u&&a.variant&&process.env.NODE_ENV!=="production"&&u===a.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),a&&!y&&(y=a.variant);const h=e._extends({},s,{hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:f,variant:y}),I=z(h);return r.jsx(m.FormControlContext.Provider,{value:null,children:r.jsx(M,e._extends({as:c,ownerState:h,className:e.clsx(I.root,p),ref:o},x,{children:typeof i=="string"&&!T?r.jsx(C.Typography,{color:"text.secondary",children:i}):r.jsxs(b.Fragment,{children:[f==="start"?g||(g=r.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});process.env.NODE_ENV!=="production"&&(v.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 N=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"),R=l.styled(m.InputBase)(({theme:t})=>({width:"auto",padding:"0px 12px",backgroundColor:t.palette.grey[50],borderRadius:30,"& .MuiInputBase-input":{padding:"8px 0px"},"&:hover, &.Mui-focused":{"& .MuiInputAdornment-root":{color:t.palette.primary.main}}})),q=({placeholder:t="Rechercher",...n})=>r.jsx(R,{...n,placeholder:t,startAdornment:r.jsx(v,{position:"start",disablePointerEvents:!0,children:r.jsx(N,{})}),type:"search",autoComplete:"off",autoCorrect:"off",spellCheck:!1});exports.InputAdornment=v;exports.SearchInput=q;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as
|
|
1
|
+
import { z as H, s as P, x as q, _ as f, v as U, n as J, y as K, A as Q, P as o, B, D, E as X, F as Y, G as Z, u as ee, t as oe, k as re, H as G } from "./identifier-wKuu0zOr.js";
|
|
2
|
+
import { g as te, c as se, s as ne, u as ie } from "./styled-CFCmdTd8.js";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import { i as te, s as se, e as ne, c as ie } from "./extendSxProp-BaQsf_eX.js";
|
|
5
4
|
import { jsx as ce } from "react/jsx-runtime";
|
|
6
|
-
import { u as ae } from "./useThemeProps-
|
|
5
|
+
import { u as ae } from "./useThemeProps-CZSYSmRG.js";
|
|
7
6
|
const le = ["ownerState"], ue = ["variants"], pe = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
8
7
|
function fe(e) {
|
|
9
8
|
return Object.keys(e).length === 0;
|
|
@@ -63,14 +62,14 @@ function he(e = {}) {
|
|
|
63
62
|
defaultTheme: t = me,
|
|
64
63
|
rootShouldForwardProp: i = $,
|
|
65
64
|
slotShouldForwardProp: a = $
|
|
66
|
-
} = e, c = (l) =>
|
|
65
|
+
} = e, c = (l) => K(f({}, l, {
|
|
67
66
|
theme: R(f({}, l, {
|
|
68
67
|
defaultTheme: t,
|
|
69
68
|
themeId: s
|
|
70
69
|
}))
|
|
71
70
|
}));
|
|
72
71
|
return c.__mui_systemSx = !0, (l, d = {}) => {
|
|
73
|
-
|
|
72
|
+
H(l, (u) => u.filter((h) => !(h != null && h.__mui_systemSx)));
|
|
74
73
|
const {
|
|
75
74
|
name: r,
|
|
76
75
|
slot: n,
|
|
@@ -88,16 +87,16 @@ function he(e = {}) {
|
|
|
88
87
|
process.env.NODE_ENV !== "production" && r && (b = `${r}-${L(n || "Root")}`);
|
|
89
88
|
let O = $;
|
|
90
89
|
n === "Root" || n === "root" ? O = i : n ? O = a : de(l) && (O = void 0);
|
|
91
|
-
const x =
|
|
90
|
+
const x = q(l, f({
|
|
92
91
|
shouldForwardProp: O,
|
|
93
92
|
label: b
|
|
94
|
-
}, V)), j = (u) => typeof u == "function" && u.__emotion_real !== u ||
|
|
93
|
+
}, V)), j = (u) => typeof u == "function" && u.__emotion_real !== u || Q(u) ? (h) => N(u, f({}, h, {
|
|
95
94
|
theme: R({
|
|
96
95
|
theme: h.theme,
|
|
97
96
|
defaultTheme: t,
|
|
98
97
|
themeId: s
|
|
99
98
|
})
|
|
100
|
-
})) : u,
|
|
99
|
+
})) : u, _ = (u, ...h) => {
|
|
101
100
|
let F = j(u);
|
|
102
101
|
const T = h ? h.map(j) : [];
|
|
103
102
|
r && v && T.push((p) => {
|
|
@@ -107,20 +106,20 @@ function he(e = {}) {
|
|
|
107
106
|
}));
|
|
108
107
|
if (!y.components || !y.components[r] || !y.components[r].styleOverrides)
|
|
109
108
|
return null;
|
|
110
|
-
const k = y.components[r].styleOverrides,
|
|
109
|
+
const k = y.components[r].styleOverrides, w = {};
|
|
111
110
|
return Object.entries(k).forEach(([I, W]) => {
|
|
112
|
-
|
|
111
|
+
w[I] = N(W, f({}, p, {
|
|
113
112
|
theme: y
|
|
114
113
|
}));
|
|
115
|
-
}), v(p,
|
|
114
|
+
}), v(p, w);
|
|
116
115
|
}), r && !C && T.push((p) => {
|
|
117
116
|
var y;
|
|
118
117
|
const k = R(f({}, p, {
|
|
119
118
|
defaultTheme: t,
|
|
120
119
|
themeId: s
|
|
121
|
-
})),
|
|
120
|
+
})), w = k == null || (y = k.components) == null || (y = y[r]) == null ? void 0 : y.variants;
|
|
122
121
|
return N({
|
|
123
|
-
variants:
|
|
122
|
+
variants: w
|
|
124
123
|
}, f({}, p, {
|
|
125
124
|
theme: k
|
|
126
125
|
}));
|
|
@@ -133,11 +132,11 @@ function he(e = {}) {
|
|
|
133
132
|
const E = x(F, ...T);
|
|
134
133
|
if (process.env.NODE_ENV !== "production") {
|
|
135
134
|
let p;
|
|
136
|
-
r && (p = `${r}${
|
|
135
|
+
r && (p = `${r}${J(n || "")}`), p === void 0 && (p = `Styled(${te(l)})`), E.displayName = p;
|
|
137
136
|
}
|
|
138
137
|
return l.muiName && (E.muiName = l.muiName), E;
|
|
139
138
|
};
|
|
140
|
-
return x.withConfig && (
|
|
139
|
+
return x.withConfig && (_.withConfig = x.withConfig), _;
|
|
141
140
|
};
|
|
142
141
|
}
|
|
143
142
|
const ve = he(), Oe = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], Se = U(), be = ve("div", {
|
|
@@ -179,7 +178,7 @@ const ke = (e) => ({
|
|
|
179
178
|
flexDirection: i
|
|
180
179
|
})));
|
|
181
180
|
if (e.spacing) {
|
|
182
|
-
const i =
|
|
181
|
+
const i = X(s), a = Object.keys(s.breakpoints.values).reduce((r, n) => ((typeof e.spacing == "object" && e.spacing[n] != null || typeof e.direction == "object" && e.direction[n] != null) && (r[n] = !0), r), {}), c = D({
|
|
183
182
|
values: e.direction,
|
|
184
183
|
base: a
|
|
185
184
|
}), l = D({
|
|
@@ -191,7 +190,7 @@ const ke = (e) => ({
|
|
|
191
190
|
const v = n > 0 ? c[m[n - 1]] : "column";
|
|
192
191
|
c[r] = v;
|
|
193
192
|
}
|
|
194
|
-
}), t =
|
|
193
|
+
}), t = Y(t, B({
|
|
195
194
|
theme: s
|
|
196
195
|
}, l, (r, n) => e.useFlexGap ? {
|
|
197
196
|
gap: G(i, r)
|
|
@@ -206,7 +205,7 @@ const ke = (e) => ({
|
|
|
206
205
|
}
|
|
207
206
|
}));
|
|
208
207
|
}
|
|
209
|
-
return t =
|
|
208
|
+
return t = Z(s.breakpoints, t), t;
|
|
210
209
|
};
|
|
211
210
|
function je(e = {}) {
|
|
212
211
|
const {
|
|
@@ -214,10 +213,10 @@ function je(e = {}) {
|
|
|
214
213
|
createStyledComponent: s = be,
|
|
215
214
|
useThemeProps: t = xe,
|
|
216
215
|
componentName: i = "MuiStack"
|
|
217
|
-
} = e, a = () =>
|
|
216
|
+
} = e, a = () => se({
|
|
218
217
|
root: ["root"]
|
|
219
|
-
}, (r) =>
|
|
220
|
-
const m = t(r), S =
|
|
218
|
+
}, (r) => re(i, r), {}), c = s(ge), l = /* @__PURE__ */ A.forwardRef(function(r, n) {
|
|
219
|
+
const m = t(r), S = ee(m), {
|
|
221
220
|
component: v = "div",
|
|
222
221
|
direction: V = "column",
|
|
223
222
|
spacing: C = 0,
|
|
@@ -225,16 +224,16 @@ function je(e = {}) {
|
|
|
225
224
|
children: b,
|
|
226
225
|
className: O,
|
|
227
226
|
useFlexGap: x = !1
|
|
228
|
-
} = S, j = P(S, Oe),
|
|
227
|
+
} = S, j = P(S, Oe), _ = {
|
|
229
228
|
direction: V,
|
|
230
229
|
spacing: C,
|
|
231
230
|
useFlexGap: x
|
|
232
231
|
}, u = a();
|
|
233
232
|
return /* @__PURE__ */ ce(c, f({
|
|
234
233
|
as: v,
|
|
235
|
-
ownerState:
|
|
234
|
+
ownerState: _,
|
|
236
235
|
ref: n,
|
|
237
|
-
className:
|
|
236
|
+
className: oe(u.root, O)
|
|
238
237
|
}, j, {
|
|
239
238
|
children: g ? Te(b, g) : b
|
|
240
239
|
}));
|
|
@@ -248,12 +247,12 @@ function je(e = {}) {
|
|
|
248
247
|
}), l;
|
|
249
248
|
}
|
|
250
249
|
const z = je({
|
|
251
|
-
createStyledComponent:
|
|
250
|
+
createStyledComponent: ne("div", {
|
|
252
251
|
name: "MuiStack",
|
|
253
252
|
slot: "Root",
|
|
254
253
|
overridesResolver: (e, s) => s.root
|
|
255
254
|
}),
|
|
256
|
-
useThemeProps: (e) =>
|
|
255
|
+
useThemeProps: (e) => ie({
|
|
257
256
|
props: e,
|
|
258
257
|
name: "MuiStack"
|
|
259
258
|
})
|
|
@@ -302,8 +301,8 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
|
302
301
|
*/
|
|
303
302
|
useFlexGap: o.bool
|
|
304
303
|
});
|
|
305
|
-
const
|
|
304
|
+
const Pe = z;
|
|
306
305
|
export {
|
|
307
|
-
|
|
306
|
+
Pe as S,
|
|
308
307
|
$ as s
|
|
309
308
|
};
|