jclib-ui 1.0.81 → 1.0.82
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/jclib-ui.es.js +25 -11
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +26 -26
- package/dist/jclib-ui.umd.js.map +1 -1
- package/package.json +72 -74
package/dist/jclib-ui.es.js
CHANGED
|
@@ -7,7 +7,6 @@ import { Dropdown, DropdownMenu, DropdownItem, DropdownToggle, Alert, Button, In
|
|
|
7
7
|
import { useHistory, useParams, useLocation, Link } from "react-router-dom";
|
|
8
8
|
import fileDownload from "js-file-download";
|
|
9
9
|
import axios, { AxiosError } from "axios";
|
|
10
|
-
import ReactInputMask from "react-input-mask";
|
|
11
10
|
import NumberFormat from "react-number-format";
|
|
12
11
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
13
12
|
function getDefaultExportFromCjs(x2) {
|
|
@@ -18333,15 +18332,27 @@ function InputCep({ dados, setDados, onSearch, ...rest }) {
|
|
|
18333
18332
|
] });
|
|
18334
18333
|
}
|
|
18335
18334
|
function InputFone({ name, value, onChange, ...rest }) {
|
|
18335
|
+
function handleChangeLocal2(values, name2, onChange2) {
|
|
18336
|
+
if (onChange2) {
|
|
18337
|
+
const newEvent = {
|
|
18338
|
+
target: {
|
|
18339
|
+
name: name2,
|
|
18340
|
+
value: values.formattedValue
|
|
18341
|
+
}
|
|
18342
|
+
};
|
|
18343
|
+
onChange2(newEvent);
|
|
18344
|
+
}
|
|
18345
|
+
}
|
|
18336
18346
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18337
|
-
|
|
18347
|
+
NumberFormat,
|
|
18338
18348
|
{
|
|
18339
18349
|
placeholder: "Informe o telefone",
|
|
18340
18350
|
className: "form-control",
|
|
18341
|
-
|
|
18342
|
-
|
|
18351
|
+
format: "(##) # ####-####",
|
|
18352
|
+
mask: "_",
|
|
18343
18353
|
value,
|
|
18344
|
-
|
|
18354
|
+
name,
|
|
18355
|
+
onValueChange: (values) => handleChangeLocal2(values, name, onChange),
|
|
18345
18356
|
...rest
|
|
18346
18357
|
}
|
|
18347
18358
|
);
|
|
@@ -18464,10 +18475,11 @@ const InputCodigo = ({ name, onChange, ...rest }) => {
|
|
|
18464
18475
|
);
|
|
18465
18476
|
};
|
|
18466
18477
|
const InputHora = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18467
|
-
|
|
18478
|
+
NumberFormat,
|
|
18468
18479
|
{
|
|
18469
18480
|
name: props.name,
|
|
18470
|
-
|
|
18481
|
+
format: "##:##",
|
|
18482
|
+
mask: "_",
|
|
18471
18483
|
value: props.value,
|
|
18472
18484
|
onChange: props.onChange,
|
|
18473
18485
|
className: "form-control",
|
|
@@ -18475,10 +18487,11 @@ const InputHora = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
18475
18487
|
}
|
|
18476
18488
|
);
|
|
18477
18489
|
const InputCpf = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18478
|
-
|
|
18490
|
+
NumberFormat,
|
|
18479
18491
|
{
|
|
18480
18492
|
name: props.name,
|
|
18481
|
-
|
|
18493
|
+
format: "###.###.###-##",
|
|
18494
|
+
mask: "_",
|
|
18482
18495
|
value: props.value,
|
|
18483
18496
|
onChange: props.onChange,
|
|
18484
18497
|
className: "form-control",
|
|
@@ -18486,10 +18499,11 @@ const InputCpf = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
18486
18499
|
}
|
|
18487
18500
|
);
|
|
18488
18501
|
const InputCnpj = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18489
|
-
|
|
18502
|
+
NumberFormat,
|
|
18490
18503
|
{
|
|
18491
18504
|
name: props.name,
|
|
18492
|
-
|
|
18505
|
+
format: "##.###.###/####-##",
|
|
18506
|
+
mask: "_",
|
|
18493
18507
|
value: props.value,
|
|
18494
18508
|
onChange: props.onChange,
|
|
18495
18509
|
className: "form-control",
|