jclib-ui 1.0.270 → 1.0.272
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 +36 -18
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +3 -5
- package/dist/jclib-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/jclib-ui.es.js
CHANGED
|
@@ -16341,8 +16341,6 @@ const LoadingBarContainer = styled.div`
|
|
|
16341
16341
|
background-color: var(--loading-bar-color);
|
|
16342
16342
|
height: var(--loading-bar-size);
|
|
16343
16343
|
transform: ease all 0.4s;
|
|
16344
|
-
left: ${({ position }) => position[0]}%;
|
|
16345
|
-
width: ${({ position }) => position[1]}%;
|
|
16346
16344
|
animation: FadeIn 0.5s both;
|
|
16347
16345
|
}
|
|
16348
16346
|
`;
|
|
@@ -16366,7 +16364,17 @@ function LoadingBar({ visible }) {
|
|
|
16366
16364
|
}
|
|
16367
16365
|
setPosition([inicio, fim]);
|
|
16368
16366
|
}, 5);
|
|
16369
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingBarContainer, {
|
|
16367
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingBarContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16368
|
+
"div",
|
|
16369
|
+
{
|
|
16370
|
+
className: "floating-bar",
|
|
16371
|
+
style: {
|
|
16372
|
+
left: `${position[0]}%`,
|
|
16373
|
+
width: `${position[1]}%`
|
|
16374
|
+
},
|
|
16375
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "d-none", children: "Carregando..." })
|
|
16376
|
+
}
|
|
16377
|
+
) });
|
|
16370
16378
|
}
|
|
16371
16379
|
function Loading({ visible, message = "Aguarde...", isbar = false }) {
|
|
16372
16380
|
if (!visible) {
|
|
@@ -20822,13 +20830,15 @@ const IMaskInputFn = (props, ref) => React__default.createElement(IMaskInputClas
|
|
|
20822
20830
|
const IMaskInput = React__default.forwardRef(IMaskInputFn);
|
|
20823
20831
|
const masks = [cpfMask, cnpjMask];
|
|
20824
20832
|
function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
|
|
20825
|
-
function handleChange(val) {
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20833
|
+
function handleChange(val, _maskRef, ev) {
|
|
20834
|
+
if (ev) {
|
|
20835
|
+
onChange({
|
|
20836
|
+
target: {
|
|
20837
|
+
name,
|
|
20838
|
+
value: val.toUpperCase()
|
|
20839
|
+
}
|
|
20840
|
+
});
|
|
20841
|
+
}
|
|
20832
20842
|
}
|
|
20833
20843
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20834
20844
|
IMaskInput,
|
|
@@ -20843,13 +20853,15 @@ function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
|
|
|
20843
20853
|
);
|
|
20844
20854
|
}
|
|
20845
20855
|
function InputCnpj({ value, name, onChange, className, ...rest }) {
|
|
20846
|
-
function handleChange(val) {
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20856
|
+
function handleChange(val, _maskRef, ev) {
|
|
20857
|
+
if (ev) {
|
|
20858
|
+
onChange({
|
|
20859
|
+
target: {
|
|
20860
|
+
name,
|
|
20861
|
+
value: val.toUpperCase()
|
|
20862
|
+
}
|
|
20863
|
+
});
|
|
20864
|
+
}
|
|
20853
20865
|
}
|
|
20854
20866
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20855
20867
|
IMaskInput,
|
|
@@ -21606,7 +21618,13 @@ function Paginacao({
|
|
|
21606
21618
|
setLimit,
|
|
21607
21619
|
align = "center"
|
|
21608
21620
|
}) {
|
|
21609
|
-
const [limits] = useState(
|
|
21621
|
+
const [limits] = useState(() => {
|
|
21622
|
+
const arr = [7, 30, 50, 100];
|
|
21623
|
+
if (!arr.includes(limitDefault)) {
|
|
21624
|
+
arr.push(limitDefault);
|
|
21625
|
+
}
|
|
21626
|
+
return arr.sort((a2, b2) => a2 - b2);
|
|
21627
|
+
});
|
|
21610
21628
|
const hasLimit = setLimit !== void 0 && limit !== void 0 && limitDefault !== void 0;
|
|
21611
21629
|
function updatePage(newPage) {
|
|
21612
21630
|
var _a;
|