@zydon/common 2.0.48 → 2.0.49
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/{chunk-TZX33SV2.js → chunk-37OZXM6O.js} +1 -1
- package/dist/{chunk-ZH4PNDLN.js → chunk-ZZJPS54T.js} +1 -1
- package/dist/components/Incrementer/index.js +2 -2
- package/dist/components/NumberInput/index.js +1 -1
- package/dist/components/form/Incrementer/index.js +2 -2
- package/dist/components/form/NumberInput/index.js +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,6 @@ import { NumericFormat } from 'react-number-format';
|
|
|
3
3
|
import H from '@mui/material/TextField';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var p=forwardRef(({decimalScale:f=0,fixedDecimalScale:s=!0,prefix:c,allowNegative:m,minValue:t,maxValue:a=1/0,maxLength:d,value:I,inputProps:b,InputProps:N,size:S,disabled:T,name:u,helperText:x,error:y,fullWidth:g,label:h,required:v,onChange:r,tabIndex:w},D)=>{let[F,P]=useState(Date.now()),e=useRef(null),l=()=>P(Date.now()),R=(k,o)=>{r&&(e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{let{floatValue:n}=k,i=n||0;if(t!==void 0&&t>i){r({target:{name:u,value:t},event:o}),l();return}if(n!==void 0&&a<i){r({target:{name:u,value:a},event:o}),l();return}r({target:{name:u,value:n},event:o});},
|
|
6
|
+
var p=forwardRef(({decimalScale:f=0,fixedDecimalScale:s=!0,prefix:c,allowNegative:m,minValue:t,maxValue:a=1/0,maxLength:d,value:I,inputProps:b,InputProps:N,size:S,disabled:T,name:u,helperText:x,error:y,fullWidth:g,label:h,required:v,onChange:r,tabIndex:w},D)=>{let[F,P]=useState(Date.now()),e=useRef(null),l=()=>P(Date.now()),R=(k,o)=>{r&&(e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{let{floatValue:n}=k,i=n||0;if(t!==void 0&&t>i){r({target:{name:u,value:t},event:o}),l();return}if(n!==void 0&&a<i){r({target:{name:u,value:a},event:o}),l();return}r({target:{name:u,value:n},event:o});},500));};return useEffect(()=>()=>{e.current&&clearTimeout(e.current);},[]),jsx(NumericFormat,{getInputRef:D,value:I,prefix:c,decimalSeparator:",",thousandSeparator:".",decimalScale:f,fixedDecimalScale:s,autoComplete:"off",allowNegative:m,maxLength:d,onValueChange:R,customInput:H,InputProps:{...N},inputProps:{...b,tabIndex:w},disabled:T,size:S,helperText:x,error:y,fullWidth:g,label:h,required:v},F)});p.displayName="NumberInput";var C=p;
|
|
7
7
|
|
|
8
8
|
export { C as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from './chunk-TLENQZN5.js';
|
|
2
2
|
import { f } from './chunk-SKUW6ZCP.js';
|
|
3
|
-
import { a as a$1 } from './chunk-
|
|
3
|
+
import { a as a$1 } from './chunk-37OZXM6O.js';
|
|
4
4
|
import { a as a$2 } from './chunk-QS4ZTVL4.js';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import P from '@mui/material/IconButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-ZZJPS54T.js';
|
|
2
2
|
import '../../chunk-TLENQZN5.js';
|
|
3
3
|
import '../../chunk-SKUW6ZCP.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-37OZXM6O.js';
|
|
5
5
|
import '../../chunk-QS4ZTVL4.js';
|
|
6
6
|
import '../../chunk-27SELUQG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-37OZXM6O.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-ZZJPS54T.js';
|
|
2
2
|
import '../../../chunk-TLENQZN5.js';
|
|
3
3
|
import '../../../chunk-SKUW6ZCP.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-37OZXM6O.js';
|
|
5
5
|
import '../../../chunk-QS4ZTVL4.js';
|
|
6
6
|
import '../../../chunk-27SELUQG.js';
|
|
7
7
|
import { useFormContext, Controller } from 'react-hook-form';
|