@arkyn/components 1.3.151 → 1.3.153
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +64903 -42760
- package/dist/bundle.umd.cjs +1297 -747
- package/dist/components/Input/CurrencyInput/index.d.ts.map +1 -1
- package/dist/components/Input/CurrencyInput/index.js +2 -1
- package/dist/hooks/useAutomation.d.ts.map +1 -1
- package/dist/hooks/useAutomation.js +5 -0
- package/package.json +1 -1
- package/src/components/Input/CurrencyInput/index.tsx +3 -1
- package/src/hooks/useAutomation.ts +5 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUvD,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CurrencyInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUvD,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA+H/C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
@@ -43,7 +43,8 @@ function CurrencyInput(props) {
|
|
43
43
|
const handleChange = (event) => {
|
44
44
|
event.preventDefault();
|
45
45
|
const [originalValue, maskedValue] = updateValues(event.target.value);
|
46
|
-
onChangeValue
|
46
|
+
onChangeValue &&
|
47
|
+
onChangeValue(event, String(originalValue), String(maskedValue));
|
47
48
|
};
|
48
49
|
const handleKeyUp = (event) => onKeyPress && onKeyPress(event, event.key, event.key);
|
49
50
|
useEffect(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useAutomation.d.ts","sourceRoot":"","sources":["../../src/hooks/useAutomation.ts"],"names":[],"mappings":"AAmBA,iBAAS,aAAa,
|
1
|
+
{"version":3,"file":"useAutomation.d.ts","sourceRoot":"","sources":["../../src/hooks/useAutomation.ts"],"names":[],"mappings":"AAmBA,iBAAS,aAAa,SA4CrB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
@@ -30,6 +30,11 @@ function useAutomation() {
|
|
30
30
|
if (closeModalKey)
|
31
31
|
closeModal(closeModalKey);
|
32
32
|
}, [actionData]);
|
33
|
+
useEffect(() => {
|
34
|
+
const closeAllModals = actionData?.closeAllModals;
|
35
|
+
if (typeof closeAllModals === "boolean" && closeAllModals)
|
36
|
+
closeAll();
|
37
|
+
}, [actionData]);
|
33
38
|
useEffect(() => {
|
34
39
|
const existsToast = actionData?.toast;
|
35
40
|
const existsMessage = actionData?.message;
|
package/package.json
CHANGED
@@ -86,7 +86,9 @@ function CurrencyInput(props: CurrencyInputProps) {
|
|
86
86
|
const handleChange = (event: ChangeEvent<HTMLInputElement>) => {
|
87
87
|
event.preventDefault();
|
88
88
|
const [originalValue, maskedValue] = updateValues(event.target.value);
|
89
|
-
|
89
|
+
|
90
|
+
onChangeValue &&
|
91
|
+
onChangeValue(event, String(originalValue), String(maskedValue));
|
90
92
|
};
|
91
93
|
|
92
94
|
const handleKeyUp = (event: KeyboardEvent<HTMLInputElement>) =>
|
@@ -40,6 +40,11 @@ function useAutomation() {
|
|
40
40
|
if (closeModalKey) closeModal(closeModalKey);
|
41
41
|
}, [actionData]);
|
42
42
|
|
43
|
+
useEffect(() => {
|
44
|
+
const closeAllModals = actionData?.closeAllModals;
|
45
|
+
if (typeof closeAllModals === "boolean" && closeAllModals) closeAll();
|
46
|
+
}, [actionData]);
|
47
|
+
|
43
48
|
useEffect(() => {
|
44
49
|
const existsToast = actionData?.toast;
|
45
50
|
const existsMessage = actionData?.message;
|