UNPKG

@korautils/forms

Version:

![image](https://github.com/user-attachments/assets/ccad1514-7b15-4952-9856-fd03b971403a)

2 lines 973 B
import P,{forwardRef}from'react';import {NumericFormat}from'react-number-format';import {TextField}from'@mui/material';import {jsx}from'react/jsx-runtime';var F=P.forwardRef(function(e,t){let{onChange:a,...o}=e;return jsx(NumericFormat,{...o,getInputRef:t,onValueChange:n=>{a({target:{name:e.name,value:n.value}});},thousandSeparator:!0,valueIsNumericString:!0,prefix:"$"})}),I=({key:r,forwardRef:e,id:t,name:a,className:o="",size:n="small",label:s="",variant:l="outlined",fullWidth:p=!0,error:f=!1,required:c=!1,pattern:R,minLength:y,maxLength:x,helperText:d,disabled:C=!1,onChange:h,...u})=>jsx(TextField,{ref:e,className:o,id:t,name:a,size:n,label:s,required:c,value:u.value,disabled:C,variant:l,onChange:h,fullWidth:p,helperText:d,error:f,InputProps:{inputComponent:F},...u},r),i=forwardRef((r,e)=>jsx(I,{...r,forwardRef:e}));i.displayName="InputPrice";var S=i;export{S as default};//# sourceMappingURL=Price-7H2EKM66.mjs.map //# sourceMappingURL=Price-7H2EKM66.mjs.map