jclib-ui 1.0.81 → 1.0.83
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 +32 -13
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +30 -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) {
|
|
@@ -7613,6 +7612,10 @@ const Container$4 = styled.div`
|
|
|
7613
7612
|
text-align: center;
|
|
7614
7613
|
}
|
|
7615
7614
|
|
|
7615
|
+
.numeros {
|
|
7616
|
+
font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7616
7619
|
div:not(.alert) {
|
|
7617
7620
|
margin-top: 20px;
|
|
7618
7621
|
}
|
|
@@ -7643,8 +7646,9 @@ function MessageNoConection() {
|
|
|
7643
7646
|
"Se o erro persistir, por favor, entre em contato com nosso suporte técnico:",
|
|
7644
7647
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
7645
7648
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
7646
|
-
"Fone e WhatsApp:
|
|
7647
|
-
|
|
7649
|
+
"Fone e WhatsApp:",
|
|
7650
|
+
" ",
|
|
7651
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(LinkToWhatsApp, { className: "numeros", children: "(27) 9 9774-2904" })
|
|
7648
7652
|
] }),
|
|
7649
7653
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
|
|
7650
7654
|
"E-mail:",
|
|
@@ -18333,15 +18337,27 @@ function InputCep({ dados, setDados, onSearch, ...rest }) {
|
|
|
18333
18337
|
] });
|
|
18334
18338
|
}
|
|
18335
18339
|
function InputFone({ name, value, onChange, ...rest }) {
|
|
18340
|
+
function handleChangeLocal2(values, name2, onChange2) {
|
|
18341
|
+
if (onChange2) {
|
|
18342
|
+
const newEvent = {
|
|
18343
|
+
target: {
|
|
18344
|
+
name: name2,
|
|
18345
|
+
value: values.formattedValue
|
|
18346
|
+
}
|
|
18347
|
+
};
|
|
18348
|
+
onChange2(newEvent);
|
|
18349
|
+
}
|
|
18350
|
+
}
|
|
18336
18351
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18337
|
-
|
|
18352
|
+
NumberFormat,
|
|
18338
18353
|
{
|
|
18339
18354
|
placeholder: "Informe o telefone",
|
|
18340
18355
|
className: "form-control",
|
|
18341
|
-
|
|
18342
|
-
|
|
18356
|
+
format: "(##) # ####-####",
|
|
18357
|
+
mask: "_",
|
|
18343
18358
|
value,
|
|
18344
|
-
|
|
18359
|
+
name,
|
|
18360
|
+
onValueChange: (values) => handleChangeLocal2(values, name, onChange),
|
|
18345
18361
|
...rest
|
|
18346
18362
|
}
|
|
18347
18363
|
);
|
|
@@ -18464,10 +18480,11 @@ const InputCodigo = ({ name, onChange, ...rest }) => {
|
|
|
18464
18480
|
);
|
|
18465
18481
|
};
|
|
18466
18482
|
const InputHora = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18467
|
-
|
|
18483
|
+
NumberFormat,
|
|
18468
18484
|
{
|
|
18469
18485
|
name: props.name,
|
|
18470
|
-
|
|
18486
|
+
format: "##:##",
|
|
18487
|
+
mask: "_",
|
|
18471
18488
|
value: props.value,
|
|
18472
18489
|
onChange: props.onChange,
|
|
18473
18490
|
className: "form-control",
|
|
@@ -18475,10 +18492,11 @@ const InputHora = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
18475
18492
|
}
|
|
18476
18493
|
);
|
|
18477
18494
|
const InputCpf = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18478
|
-
|
|
18495
|
+
NumberFormat,
|
|
18479
18496
|
{
|
|
18480
18497
|
name: props.name,
|
|
18481
|
-
|
|
18498
|
+
format: "###.###.###-##",
|
|
18499
|
+
mask: "_",
|
|
18482
18500
|
value: props.value,
|
|
18483
18501
|
onChange: props.onChange,
|
|
18484
18502
|
className: "form-control",
|
|
@@ -18486,10 +18504,11 @@ const InputCpf = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
|
18486
18504
|
}
|
|
18487
18505
|
);
|
|
18488
18506
|
const InputCnpj = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18489
|
-
|
|
18507
|
+
NumberFormat,
|
|
18490
18508
|
{
|
|
18491
18509
|
name: props.name,
|
|
18492
|
-
|
|
18510
|
+
format: "##.###.###/####-##",
|
|
18511
|
+
mask: "_",
|
|
18493
18512
|
value: props.value,
|
|
18494
18513
|
onChange: props.onChange,
|
|
18495
18514
|
className: "form-control",
|