@zydon/common 2.2.80 → 2.2.81

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.
@@ -1,5 +1,5 @@
1
1
  import { f } from './chunk-ANAHA3L6.js';
2
- import { a } from './chunk-F3PCUPWL.js';
2
+ import { a } from './chunk-NRL7VKLK.js';
3
3
  import { a as a$1 } from './chunk-ECK6N2U3.js';
4
4
  import { forwardRef, useState, useRef, useMemo, useCallback } from 'react';
5
5
  import A from '@mui/material/IconButton';
@@ -3,6 +3,6 @@ import { NumericFormat } from 'react-number-format';
3
3
  import W from '@mui/material/TextField';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
- var p=forwardRef(({decimalScale:f=0,fixedDecimalScale:m=!0,prefix:c,allowNegative:s,minValue:t,maxValue:n=1/0,maxLength:d,value:I,inputProps:N,InputProps:T,size:b,disabled:y,name:u,helperText:S,error:g,fullWidth:h,label:R,required:v,onChange:r,tabIndex:w,placeholder:x,margin:D,className:F},P)=>{let[k,E]=useState(Date.now()),e=useRef(null),l=()=>E(Date.now()),L=(V,o)=>{r&&(e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{let{floatValue:a}=V,i=a||0;if(t!==void 0&&t>i){r({target:{name:u,value:t},event:o}),l();return}if(a!==void 0&&n<i){r({target:{name:u,value:n},event:o}),l();return}r({target:{name:u,value:a},event:o});},500));};return useEffect(()=>()=>{e.current&&clearTimeout(e.current);},[]),jsx(NumericFormat,{getInputRef:P,value:I,prefix:c,decimalSeparator:",",thousandSeparator:".",decimalScale:f,fixedDecimalScale:m,autoComplete:"off",allowNegative:s,maxLength:d,onValueChange:L,customInput:W,InputProps:{...T},inputProps:{...N,tabIndex:w},disabled:y,size:b,helperText:S,error:g,fullWidth:h,label:R,required:v,placeholder:x,margin:D,className:F},k)});p.displayName="NumberInput";var Q=p;
6
+ var p=forwardRef(({decimalScale:f=0,fixedDecimalScale:m=!0,prefix:c,allowNegative:s,minValue:t,maxValue:n=1/0,maxLength:d,value:I,inputProps:N,InputProps:T,size:b,disabled:y,name:u,helperText:S,error:g,fullWidth:h,label:R,required:v,onChange:r,tabIndex:w,placeholder:x,margin:D,className:F},P)=>{let[k,E]=useState(Date.now()),e=useRef(null),l=()=>E(Date.now()),L=(V,o)=>{r&&(e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{let{floatValue:a}=V,i=a||0;if(t!==void 0&&t>i){r({target:{name:u,value:t},event:o}),l();return}if(a!==void 0&&n<i){r({target:{name:u,value:n},event:o}),l();return}r({target:{name:u,value:a},event:o});},1e3));};return useEffect(()=>()=>{e.current&&clearTimeout(e.current);},[]),jsx(NumericFormat,{getInputRef:P,value:I,prefix:c,decimalSeparator:",",thousandSeparator:".",decimalScale:f,fixedDecimalScale:m,autoComplete:"off",allowNegative:s,maxLength:d,onValueChange:L,customInput:W,InputProps:{...T},inputProps:{...N,tabIndex:w},disabled:y,size:b,helperText:S,error:g,fullWidth:h,label:R,required:v,placeholder:x,margin:D,className:F},k)});p.displayName="NumberInput";var Q=p;
7
7
 
8
8
  export { Q as a };
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-QE7DLDD7.js';
1
+ export { a as default } from '../../chunk-E2UNF2GW.js';
2
2
  import '../../chunk-ANAHA3L6.js';
3
- import '../../chunk-F3PCUPWL.js';
3
+ import '../../chunk-NRL7VKLK.js';
4
4
  import '../../chunk-ECK6N2U3.js';
5
5
  import '../../chunk-3KBTAMW3.js';
@@ -1 +1 @@
1
- export { a as default } from '../../chunk-F3PCUPWL.js';
1
+ export { a as default } from '../../chunk-NRL7VKLK.js';
@@ -1,6 +1,6 @@
1
- import { a } from '../../../chunk-QE7DLDD7.js';
1
+ import { a } from '../../../chunk-E2UNF2GW.js';
2
2
  import '../../../chunk-ANAHA3L6.js';
3
- import '../../../chunk-F3PCUPWL.js';
3
+ import '../../../chunk-NRL7VKLK.js';
4
4
  import '../../../chunk-ECK6N2U3.js';
5
5
  import '../../../chunk-3KBTAMW3.js';
6
6
  import { useFormContext, Controller } from 'react-hook-form';
@@ -1,4 +1,4 @@
1
- import { a } from '../../../chunk-F3PCUPWL.js';
1
+ import { a } from '../../../chunk-NRL7VKLK.js';
2
2
  import { useFormContext, Controller } from 'react-hook-form';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.2.80",
3
+ "version": "2.2.81",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",