componenteshospitais 2.0.3 → 2.0.4
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/cjs/index.js
CHANGED
|
@@ -1504,7 +1504,7 @@ var InputField = function (_a) {
|
|
|
1504
1504
|
if (type === 'number' && e.target.value.length > appliedMaxLength) {
|
|
1505
1505
|
e.target.value = e.target.value.slice(0, appliedMaxLength);
|
|
1506
1506
|
}
|
|
1507
|
-
if (onChange) {
|
|
1507
|
+
if (onChange) {
|
|
1508
1508
|
onChange(e);
|
|
1509
1509
|
}
|
|
1510
1510
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1502,7 +1502,7 @@ var InputField = function (_a) {
|
|
|
1502
1502
|
if (type === 'number' && e.target.value.length > appliedMaxLength) {
|
|
1503
1503
|
e.target.value = e.target.value.slice(0, appliedMaxLength);
|
|
1504
1504
|
}
|
|
1505
|
-
if (onChange) {
|
|
1505
|
+
if (onChange) {
|
|
1506
1506
|
onChange(e);
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
@@ -5,7 +5,7 @@ interface InputFieldProps {
|
|
|
5
5
|
id: string;
|
|
6
6
|
placeholder: string;
|
|
7
7
|
value: string;
|
|
8
|
-
onChange?: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement
|
|
8
|
+
onChange?: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
9
9
|
largura?: string;
|
|
10
10
|
readonly?: boolean;
|
|
11
11
|
disabled?: boolean;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ interface InputFieldProps {
|
|
|
9
9
|
id: string;
|
|
10
10
|
placeholder: string;
|
|
11
11
|
value: string;
|
|
12
|
-
onChange?: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement
|
|
12
|
+
onChange?: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
13
13
|
largura?: string;
|
|
14
14
|
readonly?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
@@ -18,7 +18,7 @@ interface InputFieldProps {
|
|
|
18
18
|
maxLength?: number;
|
|
19
19
|
maskType?: 'cpf' | 'phone' | 'time' | 'date' | 'cep' | 'telefone';
|
|
20
20
|
onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
21
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
21
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
22
22
|
corFundo?: string;
|
|
23
23
|
corLabel?: string;
|
|
24
24
|
}
|
|
@@ -54,7 +54,7 @@ const InputField: React.FC<InputFieldProps> = ({
|
|
|
54
54
|
if (type === 'number' && e.target.value.length > appliedMaxLength) {
|
|
55
55
|
e.target.value = e.target.value.slice(0, appliedMaxLength);
|
|
56
56
|
}
|
|
57
|
-
if (onChange) {
|
|
57
|
+
if (onChange) {
|
|
58
58
|
onChange(e);
|
|
59
59
|
}
|
|
60
60
|
};
|