@vendorflow/components 4.0.9 → 4.0.10
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/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -201,7 +201,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
201
201
|
.rcp-dark .rcp-fields-element-label {
|
|
202
202
|
color: ${To.dark.inputLabel};
|
|
203
203
|
}
|
|
204
|
-
`,Mb="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ei=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)o+=Mb[n[t]&63];return o};function cp(t){const{changeValidator:o,charLimit:n,className:e,hideCharCounter:s,enableDebouncedOnChange:a=!
|
|
204
|
+
`,Mb="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ei=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)o+=Mb[n[t]&63];return o};function cp(t){const{changeValidator:o,charLimit:n,className:e,hideCharCounter:s,enableDebouncedOnChange:a=!1,multiline:l,error:c,label:p,name:d,onChange:y,placeholder:g,helperText:_,variant:E="outlined",style:I,value:S,size:N="small",...B}=t,q=ve.useRef(ei()),[Y,se]=ve.useState("");ve.useEffect(()=>{S!==Y&&se(S||"")},[S]);const K=ve.useCallback($n.debounce(D=>{y&&y(D)},300),[]);function ee(D){const z={target:{name:D.target.name,value:D.target.value}};(!n||n&&D.target.value.length<=n)&&(!o||o(D.target.value))&&(se(D.target.value),y&&(a?K(z):y(z)))}return V.jsx("div",{className:e,style:I},V.jsx(_e.TextField,{id:q.current,error:c,label:p,name:d,onChange:ee,placeholder:g,value:Y,variant:E,multiline:l,size:N,...B}),V.jsx("div",null,_&&V.jsx(_e.Typography,{css:V.css`
|
|
205
205
|
float: left;
|
|
206
206
|
margin-left: 14px;
|
|
207
207
|
margin-top: 4px;
|