jclib-ui 0.0.29 → 0.0.30
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/clipboardArea/ClipboardArea.d.ts +7 -4
- package/dist/jclib-ui.es.js +19 -14
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +7 -7
- package/dist/jclib-ui.umd.js.map +1 -1
- package/dist/modalBox/ModalBox.d.ts +13 -9
- package/dist/modalFilter/modalFilter.d.ts +8 -7
- package/dist/modalFilter/modalFilter.styles.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export type Props = {
|
|
2
|
+
title?: string
|
|
3
|
+
url: string
|
|
4
|
+
timerInMilliSeconds?: number
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default function ClipboardArea(props: Props)
|
package/dist/jclib-ui.es.js
CHANGED
|
@@ -760,14 +760,14 @@ const wl = Ot(Qo.div)`
|
|
|
760
760
|
|
|
761
761
|
.jc-close-button {
|
|
762
762
|
position: absolute;
|
|
763
|
-
right: -
|
|
764
|
-
top: -
|
|
763
|
+
right: -8px;
|
|
764
|
+
top: -8px;
|
|
765
765
|
height: 30px;
|
|
766
766
|
width: 30px;
|
|
767
767
|
display: grid;
|
|
768
768
|
place-items: center;
|
|
769
|
-
color: var(--
|
|
770
|
-
background-color: var(--
|
|
769
|
+
color: var(--jc-alert-button);
|
|
770
|
+
background-color: var(--jc-alert-button-bg);
|
|
771
771
|
font-size: 24px;
|
|
772
772
|
line-height: 0;
|
|
773
773
|
border-radius: 50%;
|
|
@@ -2511,16 +2511,16 @@ const tf = Ot.div`
|
|
|
2511
2511
|
}
|
|
2512
2512
|
`;
|
|
2513
2513
|
let Di;
|
|
2514
|
-
function j0({ title: r, url: t }) {
|
|
2515
|
-
const [
|
|
2516
|
-
function
|
|
2517
|
-
navigator.clipboard.writeText(t),
|
|
2514
|
+
function j0({ title: r, url: t, timerInMilliSeconds: e = 5e3 }) {
|
|
2515
|
+
const [n, o] = Yt(!1);
|
|
2516
|
+
function i() {
|
|
2517
|
+
navigator.clipboard.writeText(t), o(!0), Di = setTimeout(() => o(!1), e);
|
|
2518
2518
|
}
|
|
2519
2519
|
return re(() => () => {
|
|
2520
2520
|
Di && clearTimeout(Di);
|
|
2521
|
-
}, []), /* @__PURE__ */ m.jsxs(tf, { className:
|
|
2522
|
-
/* @__PURE__ */ m.jsx("a", { href: t, target: "_blank", rel: "noreferrer", title: "Abrir este link", children: r }),
|
|
2523
|
-
/* @__PURE__ */ m.jsx("button", { type: "button", className: "clip-mark", onClick:
|
|
2521
|
+
}, []), /* @__PURE__ */ m.jsxs(tf, { className: n && " clip-active", children: [
|
|
2522
|
+
/* @__PURE__ */ m.jsx("a", { href: t, target: "_blank", rel: "noreferrer", title: "Abrir este link", children: r || t }),
|
|
2523
|
+
/* @__PURE__ */ m.jsx("button", { type: "button", className: "clip-mark", onClick: i, children: n ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
2524
2524
|
/* @__PURE__ */ m.jsx("i", { className: "fas fa-clipboard-check" }),
|
|
2525
2525
|
"Copiado"
|
|
2526
2526
|
] }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -15933,7 +15933,7 @@ const gh = Ot.div`
|
|
|
15933
15933
|
animation: Explodir 0.3s linear;
|
|
15934
15934
|
|
|
15935
15935
|
.loading-spinner {
|
|
15936
|
-
border: 4px
|
|
15936
|
+
border: 4px solid #fff;
|
|
15937
15937
|
border-left-color: transparent;
|
|
15938
15938
|
border-radius: 50%;
|
|
15939
15939
|
min-width: 35px;
|
|
@@ -16415,15 +16415,20 @@ function m2({
|
|
|
16415
16415
|
fnApplyFilter: e,
|
|
16416
16416
|
children: n
|
|
16417
16417
|
}) {
|
|
16418
|
+
const o = () => {
|
|
16419
|
+
e && e(!0);
|
|
16420
|
+
}, i = () => {
|
|
16421
|
+
e && e(!1);
|
|
16422
|
+
};
|
|
16418
16423
|
return /* @__PURE__ */ m.jsxs(ua, { title: "Filtros", maxWidth: t, setVisible: r, visible: !0, children: [
|
|
16419
16424
|
n,
|
|
16420
16425
|
/* @__PURE__ */ m.jsx("hr", {}),
|
|
16421
16426
|
/* @__PURE__ */ m.jsxs(_h, { children: [
|
|
16422
|
-
/* @__PURE__ */ m.jsxs(Te, { block: !0, color: "primary", onClick:
|
|
16427
|
+
/* @__PURE__ */ m.jsxs(Te, { block: !0, color: "primary", onClick: o, children: [
|
|
16423
16428
|
/* @__PURE__ */ m.jsx(jl, {}),
|
|
16424
16429
|
" Aplicar filtros"
|
|
16425
16430
|
] }),
|
|
16426
|
-
/* @__PURE__ */ m.jsxs(Te, { block: !0, color: "outline-danger", onClick:
|
|
16431
|
+
/* @__PURE__ */ m.jsxs(Te, { block: !0, color: "outline-danger", onClick: i, children: [
|
|
16427
16432
|
/* @__PURE__ */ m.jsx(ia, {}),
|
|
16428
16433
|
" Cancelar filtros"
|
|
16429
16434
|
] })
|