@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.
- package/dist/{chunk-QE7DLDD7.js → chunk-E2UNF2GW.js} +1 -1
- package/dist/{chunk-F3PCUPWL.js → chunk-NRL7VKLK.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f } from './chunk-ANAHA3L6.js';
|
|
2
|
-
import { a } from './chunk-
|
|
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});},
|
|
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-
|
|
1
|
+
export { a as default } from '../../chunk-E2UNF2GW.js';
|
|
2
2
|
import '../../chunk-ANAHA3L6.js';
|
|
3
|
-
import '../../chunk-
|
|
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-
|
|
1
|
+
export { a as default } from '../../chunk-NRL7VKLK.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a } from '../../../chunk-
|
|
1
|
+
import { a } from '../../../chunk-E2UNF2GW.js';
|
|
2
2
|
import '../../../chunk-ANAHA3L6.js';
|
|
3
|
-
import '../../../chunk-
|
|
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';
|