jclib-ui 1.0.158 → 1.0.159
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,6 +1,7 @@
|
|
|
1
|
-
export default function InputFone({ name, value, onChange, ...rest }: {
|
|
1
|
+
export default function InputFone({ name, value, onChange, invalid, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
name: any;
|
|
4
4
|
value: any;
|
|
5
5
|
onChange: any;
|
|
6
|
+
invalid?: boolean | undefined;
|
|
6
7
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/jclib-ui.es.js
CHANGED
|
@@ -18490,7 +18490,13 @@ function InputCep({
|
|
|
18490
18490
|
] })
|
|
18491
18491
|
] });
|
|
18492
18492
|
}
|
|
18493
|
-
function InputFone({
|
|
18493
|
+
function InputFone({
|
|
18494
|
+
name,
|
|
18495
|
+
value,
|
|
18496
|
+
onChange,
|
|
18497
|
+
invalid = false,
|
|
18498
|
+
...rest
|
|
18499
|
+
}) {
|
|
18494
18500
|
function handleChangeLocal2(values, name2, onChange2) {
|
|
18495
18501
|
if (onChange2) {
|
|
18496
18502
|
const newEvent = {
|
|
@@ -18506,7 +18512,7 @@ function InputFone({ name, value, onChange, ...rest }) {
|
|
|
18506
18512
|
NumberFormat,
|
|
18507
18513
|
{
|
|
18508
18514
|
placeholder: "Informe o telefone",
|
|
18509
|
-
className:
|
|
18515
|
+
className: `form-control ${invalid ? "is-invalid" : ""}`,
|
|
18510
18516
|
format: "(##) # ####-####",
|
|
18511
18517
|
mask: "_",
|
|
18512
18518
|
value,
|