kelt-ui-kit-react 0.4.1 → 0.4.3
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/index.js +282 -274
- package/package.json +1 -1
- package/src/card/cardAction/CardAction.tsx +9 -3
- package/src/overlayPanel/OverlayPanel.tsx +11 -7
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import le, { useState as q, useCallback as
|
|
1
|
+
import le, { useState as q, useCallback as D, createContext as kn, useContext as Cr, useRef as ue, useDebugValue as or, createElement as Nn, useId as _n, useEffect as ee, useMemo as Oe, forwardRef as Rr, useImperativeHandle as kr } from "react";
|
|
2
2
|
import Mt, { createPortal as Pn } from "react-dom";
|
|
3
3
|
var _t = { exports: {} }, Ye = {};
|
|
4
4
|
/**
|
|
@@ -15,12 +15,12 @@ function On() {
|
|
|
15
15
|
if (ar) return Ye;
|
|
16
16
|
ar = 1;
|
|
17
17
|
var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function c(
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof: t, type:
|
|
18
|
+
function c(l, d, g) {
|
|
19
|
+
var v, p = {}, u = null, m = null;
|
|
20
|
+
g !== void 0 && (u = "" + g), d.key !== void 0 && (u = "" + d.key), d.ref !== void 0 && (m = d.ref);
|
|
21
|
+
for (v in d) n.call(d, v) && !i.hasOwnProperty(v) && (p[v] = d[v]);
|
|
22
|
+
if (l && l.defaultProps) for (v in d = l.defaultProps, d) p[v] === void 0 && (p[v] = d[v]);
|
|
23
|
+
return { $$typeof: t, type: l, key: u, ref: m, props: p, _owner: a.current };
|
|
24
24
|
}
|
|
25
25
|
return Ye.Fragment = r, Ye.jsx = c, Ye.jsxs = c, Ye;
|
|
26
26
|
}
|
|
@@ -37,7 +37,7 @@ var Ue = {};
|
|
|
37
37
|
var sr;
|
|
38
38
|
function An() {
|
|
39
39
|
return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"),
|
|
40
|
+
var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
|
|
41
41
|
function R(o) {
|
|
42
42
|
if (o === null || typeof o != "object")
|
|
43
43
|
return null;
|
|
@@ -65,7 +65,7 @@ function An() {
|
|
|
65
65
|
var A = !1, I = !1, x = !1, b = !1, ne = !1, oe;
|
|
66
66
|
oe = Symbol.for("react.module.reference");
|
|
67
67
|
function vt(o) {
|
|
68
|
-
return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || ne || o === a || o ===
|
|
68
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || ne || o === a || o === g || o === v || b || o === m || A || I || x || typeof o == "object" && o !== null && (o.$$typeof === u || o.$$typeof === p || o.$$typeof === c || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -97,14 +97,14 @@ function An() {
|
|
|
97
97
|
return "Profiler";
|
|
98
98
|
case a:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case v:
|
|
101
|
-
return "Suspense";
|
|
102
100
|
case g:
|
|
101
|
+
return "Suspense";
|
|
102
|
+
case v:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
105
|
if (typeof o == "object")
|
|
106
106
|
switch (o.$$typeof) {
|
|
107
|
-
case
|
|
107
|
+
case l:
|
|
108
108
|
var f = o;
|
|
109
109
|
return He(f) + ".Consumer";
|
|
110
110
|
case c:
|
|
@@ -115,7 +115,7 @@ function An() {
|
|
|
115
115
|
case p:
|
|
116
116
|
var S = o.displayName || null;
|
|
117
117
|
return S !== null ? S : G(o.type) || "Memo";
|
|
118
|
-
case
|
|
118
|
+
case u: {
|
|
119
119
|
var P = o, T = P._payload, N = P._init;
|
|
120
120
|
try {
|
|
121
121
|
return G(N(T));
|
|
@@ -257,18 +257,18 @@ function An() {
|
|
|
257
257
|
if (Y && S && typeof Y.stack == "string") {
|
|
258
258
|
for (var C = Y.stack.split(`
|
|
259
259
|
`), B = S.stack.split(`
|
|
260
|
-
`),
|
|
260
|
+
`), F = C.length - 1, L = B.length - 1; F >= 1 && L >= 0 && C[F] !== B[L]; )
|
|
261
261
|
L--;
|
|
262
|
-
for (;
|
|
263
|
-
if (C[
|
|
264
|
-
if (
|
|
262
|
+
for (; F >= 1 && L >= 0; F--, L--)
|
|
263
|
+
if (C[F] !== B[L]) {
|
|
264
|
+
if (F !== 1 || L !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (
|
|
266
|
+
if (F--, L--, L < 0 || C[F] !== B[L]) {
|
|
267
267
|
var X = `
|
|
268
|
-
` + C[
|
|
268
|
+
` + C[F].replace(" at new ", " at ");
|
|
269
269
|
return o.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", o.displayName)), typeof o == "function" && he.set(o, X), X;
|
|
270
270
|
}
|
|
271
|
-
while (
|
|
271
|
+
while (F >= 1 && L >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -293,9 +293,9 @@ function An() {
|
|
|
293
293
|
if (typeof o == "string")
|
|
294
294
|
return J(o);
|
|
295
295
|
switch (o) {
|
|
296
|
-
case v:
|
|
297
|
-
return J("Suspense");
|
|
298
296
|
case g:
|
|
297
|
+
return J("Suspense");
|
|
298
|
+
case v:
|
|
299
299
|
return J("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof o == "object")
|
|
@@ -304,7 +304,7 @@ function An() {
|
|
|
304
304
|
return rn(o.render);
|
|
305
305
|
case p:
|
|
306
306
|
return Ke(o.type, f, h);
|
|
307
|
-
case
|
|
307
|
+
case u: {
|
|
308
308
|
var S = o, P = S._payload, T = S._init;
|
|
309
309
|
try {
|
|
310
310
|
return Ke(T(P), f, h);
|
|
@@ -334,8 +334,8 @@ function An() {
|
|
|
334
334
|
throw B.name = "Invariant Violation", B;
|
|
335
335
|
}
|
|
336
336
|
C = o[N](f, N, S, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
-
} catch (
|
|
338
|
-
C =
|
|
337
|
+
} catch (F) {
|
|
338
|
+
C = F;
|
|
339
339
|
}
|
|
340
340
|
C && !(C instanceof Error) && (Je(P), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", h, N, typeof C), Je(null)), C instanceof Error && !(C.message in Ut) && (Ut[C.message] = !0, Je(P), j("Failed %s type: %s", h, C.message), Je(null));
|
|
341
341
|
}
|
|
@@ -452,9 +452,9 @@ function An() {
|
|
|
452
452
|
for (T in f)
|
|
453
453
|
Ve.call(f, T) && !ln.hasOwnProperty(T) && (N[T] = f[T]);
|
|
454
454
|
if (o && o.defaultProps) {
|
|
455
|
-
var
|
|
456
|
-
for (T in
|
|
457
|
-
N[T] === void 0 && (N[T] =
|
|
455
|
+
var F = o.defaultProps;
|
|
456
|
+
for (T in F)
|
|
457
|
+
N[T] === void 0 && (N[T] = F[T]);
|
|
458
458
|
}
|
|
459
459
|
if (C || B) {
|
|
460
460
|
var L = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
@@ -582,8 +582,8 @@ Check the top-level render call using <` + h + ">.");
|
|
|
582
582
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
583
|
var B = vn();
|
|
584
584
|
B ? C += B : C += Zt();
|
|
585
|
-
var
|
|
586
|
-
o === null ?
|
|
585
|
+
var F;
|
|
586
|
+
o === null ? F = "null" : xt(o) ? F = "array" : o !== void 0 && o.$$typeof === t ? (F = "<" + (G(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : F = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, C);
|
|
587
587
|
}
|
|
588
588
|
var L = gn(o, f, h, P, T);
|
|
589
589
|
if (L == null)
|
|
@@ -630,7 +630,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
630
|
}
|
|
631
631
|
process.env.NODE_ENV === "production" ? _t.exports = On() : _t.exports = An();
|
|
632
632
|
var s = _t.exports;
|
|
633
|
-
const
|
|
633
|
+
const M = ({ classIcon: e, size: t }) => /* @__PURE__ */ s.jsx("i", { className: `bi ${e} ${t ?? "sm"}` });
|
|
634
634
|
var ce = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e))(ce || {});
|
|
635
635
|
const ta = ({
|
|
636
636
|
className: e,
|
|
@@ -642,7 +642,7 @@ const ta = ({
|
|
|
642
642
|
t && t(i);
|
|
643
643
|
};
|
|
644
644
|
return /* @__PURE__ */ s.jsxs("div", { className: `action ${e}`, onClick: a, children: [
|
|
645
|
-
n && /* @__PURE__ */ s.jsx(
|
|
645
|
+
n && /* @__PURE__ */ s.jsx(M, { classIcon: n, size: ce.LARGE }),
|
|
646
646
|
/* @__PURE__ */ s.jsx("small", { children: r })
|
|
647
647
|
] });
|
|
648
648
|
}, Nr = ({
|
|
@@ -654,7 +654,7 @@ const ta = ({
|
|
|
654
654
|
positionicon: i = 1,
|
|
655
655
|
disabled: c = !1
|
|
656
656
|
}) => {
|
|
657
|
-
const
|
|
657
|
+
const l = (d) => {
|
|
658
658
|
t && t(d);
|
|
659
659
|
};
|
|
660
660
|
return /* @__PURE__ */ s.jsxs(
|
|
@@ -662,12 +662,12 @@ const ta = ({
|
|
|
662
662
|
{
|
|
663
663
|
disabled: c,
|
|
664
664
|
type: "submit",
|
|
665
|
-
onClick: (d) =>
|
|
665
|
+
onClick: (d) => l(d),
|
|
666
666
|
className: e,
|
|
667
667
|
children: [
|
|
668
|
-
a && i == 1 && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: /* @__PURE__ */ s.jsx(
|
|
668
|
+
a && i == 1 && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: /* @__PURE__ */ s.jsx(M, { size: n, classIcon: a }) }),
|
|
669
669
|
/* @__PURE__ */ s.jsx("span", { children: r }),
|
|
670
|
-
a && i == 2 && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: /* @__PURE__ */ s.jsx(
|
|
670
|
+
a && i == 2 && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: /* @__PURE__ */ s.jsx(M, { classIcon: a }) })
|
|
671
671
|
]
|
|
672
672
|
}
|
|
673
673
|
);
|
|
@@ -679,7 +679,7 @@ const ta = ({
|
|
|
679
679
|
children: e.item.children
|
|
680
680
|
}
|
|
681
681
|
), In = (e) => {
|
|
682
|
-
const [t, r] = q(e.items[0]), n =
|
|
682
|
+
const [t, r] = q(e.items[0]), n = D(
|
|
683
683
|
(a) => {
|
|
684
684
|
r(a);
|
|
685
685
|
},
|
|
@@ -769,8 +769,8 @@ function ir(e, t) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
var ft = 1, Ie = 1, $r = 0, K = 0, z = 0, Me = "";
|
|
772
|
-
function pt(e, t, r, n, a, i, c,
|
|
773
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: ft, column: Ie, length: c, return: "", siblings:
|
|
772
|
+
function pt(e, t, r, n, a, i, c, l) {
|
|
773
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: ft, column: Ie, length: c, return: "", siblings: l };
|
|
774
774
|
}
|
|
775
775
|
function ge(e, t) {
|
|
776
776
|
return Pt(pt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -881,12 +881,12 @@ function Kn(e) {
|
|
|
881
881
|
function Jn(e) {
|
|
882
882
|
return qn(ot("", null, null, null, [""], e = Un(e), 0, [0], e));
|
|
883
883
|
}
|
|
884
|
-
function ot(e, t, r, n, a, i, c,
|
|
885
|
-
for (var
|
|
884
|
+
function ot(e, t, r, n, a, i, c, l, d) {
|
|
885
|
+
for (var g = 0, v = 0, p = c, u = 0, m = 0, y = 0, w = 1, R = 1, k = 1, j = 0, _ = "", A = a, I = i, x = n, b = _; R; )
|
|
886
886
|
switch (y = j, j = te()) {
|
|
887
887
|
case 40:
|
|
888
888
|
if (y != 108 && W(b, p - 1) == 58) {
|
|
889
|
-
rt(b += E(Ct(j), "&", "&\f"), "&\f", Ar(
|
|
889
|
+
rt(b += E(Ct(j), "&", "&\f"), "&\f", Ar(g ? l[g - 1] : 0)) != -1 && (k = -1);
|
|
890
890
|
break;
|
|
891
891
|
}
|
|
892
892
|
case 34:
|
|
@@ -914,7 +914,7 @@ function ot(e, t, r, n, a, i, c, u, d) {
|
|
|
914
914
|
}
|
|
915
915
|
break;
|
|
916
916
|
case 123 * w:
|
|
917
|
-
|
|
917
|
+
l[g++] = re(b) * k;
|
|
918
918
|
case 125 * w:
|
|
919
919
|
case 59:
|
|
920
920
|
case 0:
|
|
@@ -922,28 +922,28 @@ function ot(e, t, r, n, a, i, c, u, d) {
|
|
|
922
922
|
case 0:
|
|
923
923
|
case 125:
|
|
924
924
|
R = 0;
|
|
925
|
-
case 59 +
|
|
925
|
+
case 59 + v:
|
|
926
926
|
k == -1 && (b = E(b, /\f/g, "")), m > 0 && re(b) - p && qe(m > 32 ? lr(b + ";", n, r, p - 1, d) : lr(E(b, " ", "") + ";", n, r, p - 2, d), d);
|
|
927
927
|
break;
|
|
928
928
|
case 59:
|
|
929
929
|
b += ";";
|
|
930
930
|
default:
|
|
931
|
-
if (qe(x = cr(b, t, r,
|
|
932
|
-
if (
|
|
933
|
-
ot(b, t, x, x, A, i, p,
|
|
931
|
+
if (qe(x = cr(b, t, r, g, v, a, l, _, A = [], I = [], p, i), i), j === 123)
|
|
932
|
+
if (v === 0)
|
|
933
|
+
ot(b, t, x, x, A, i, p, l, I);
|
|
934
934
|
else
|
|
935
|
-
switch (
|
|
935
|
+
switch (u === 99 && W(b, 3) === 110 ? 100 : u) {
|
|
936
936
|
case 100:
|
|
937
937
|
case 108:
|
|
938
938
|
case 109:
|
|
939
939
|
case 115:
|
|
940
|
-
ot(e, x, x, n && qe(cr(e, x, x, 0, 0, a,
|
|
940
|
+
ot(e, x, x, n && qe(cr(e, x, x, 0, 0, a, l, _, a, A = [], p, I), I), a, I, p, l, n ? A : I);
|
|
941
941
|
break;
|
|
942
942
|
default:
|
|
943
|
-
ot(b, x, x, x, [""], I, 0,
|
|
943
|
+
ot(b, x, x, x, [""], I, 0, l, I);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
|
-
|
|
946
|
+
g = v = m = 0, w = k = 1, _ = b = "", p = c;
|
|
947
947
|
break;
|
|
948
948
|
case 58:
|
|
949
949
|
p = 1 + re(b), m = y;
|
|
@@ -956,13 +956,13 @@ function ot(e, t, r, n, a, i, c, u, d) {
|
|
|
956
956
|
}
|
|
957
957
|
switch (b += zt(j), j * w) {
|
|
958
958
|
case 38:
|
|
959
|
-
k =
|
|
959
|
+
k = v > 0 ? 1 : (b += "\f", -1);
|
|
960
960
|
break;
|
|
961
961
|
case 44:
|
|
962
|
-
|
|
962
|
+
l[g++] = (re(b) - 1) * k, k = 1;
|
|
963
963
|
break;
|
|
964
964
|
case 64:
|
|
965
|
-
we() === 45 && (b += Ct(te())),
|
|
965
|
+
we() === 45 && (b += Ct(te())), u = we(), v = p = re(_ = b += Kn(nt())), j++;
|
|
966
966
|
break;
|
|
967
967
|
case 45:
|
|
968
968
|
y === 45 && re(b) == 2 && (w = 0);
|
|
@@ -970,11 +970,11 @@ function ot(e, t, r, n, a, i, c, u, d) {
|
|
|
970
970
|
}
|
|
971
971
|
return i;
|
|
972
972
|
}
|
|
973
|
-
function cr(e, t, r, n, a, i, c,
|
|
974
|
-
for (var
|
|
975
|
-
for (var j = 0, _ = Te(e,
|
|
973
|
+
function cr(e, t, r, n, a, i, c, l, d, g, v, p) {
|
|
974
|
+
for (var u = a - 1, m = a === 0 ? i : [""], y = Ir(m), w = 0, R = 0, k = 0; w < n; ++w)
|
|
975
|
+
for (var j = 0, _ = Te(e, u + 1, u = Ar(R = c[w])), A = e; j < y; ++j)
|
|
976
976
|
(A = Tr(R > 0 ? m[j] + " " + _ : E(_, /&\f/g, m[j]))) && (d[k++] = A);
|
|
977
|
-
return pt(e, t, r, a === 0 ? dt :
|
|
977
|
+
return pt(e, t, r, a === 0 ? dt : l, d, g, v, p);
|
|
978
978
|
}
|
|
979
979
|
function Zn(e, t, r, n) {
|
|
980
980
|
return pt(e, t, r, Pr, zt(Bn()), Te(e, 2, -2), 0, n);
|
|
@@ -1102,8 +1102,8 @@ function Dr(e, t, r) {
|
|
|
1102
1102
|
break;
|
|
1103
1103
|
case 5152:
|
|
1104
1104
|
case 5920:
|
|
1105
|
-
return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c,
|
|
1106
|
-
return $ + a + ":" + i +
|
|
1105
|
+
return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c, l, d, g) {
|
|
1106
|
+
return $ + a + ":" + i + g + (c ? $ + a + "-span:" + (l ? d : +d - +i) + g : "") + e;
|
|
1107
1107
|
});
|
|
1108
1108
|
case 4949:
|
|
1109
1109
|
if (W(e, t + 6) === 121)
|
|
@@ -1150,8 +1150,8 @@ function Qn(e, t, r, n) {
|
|
|
1150
1150
|
function eo(e) {
|
|
1151
1151
|
var t = Ir(e);
|
|
1152
1152
|
return function(r, n, a, i) {
|
|
1153
|
-
for (var c = "",
|
|
1154
|
-
c += e[
|
|
1153
|
+
for (var c = "", l = 0; l < t; l++)
|
|
1154
|
+
c += e[l](r, n, a, i) || "";
|
|
1155
1155
|
return c;
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
@@ -1241,8 +1241,8 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
1241
1241
|
try {
|
|
1242
1242
|
var i = !0;
|
|
1243
1243
|
console.error = function(c) {
|
|
1244
|
-
for (var
|
|
1245
|
-
ur.test(c) ? (i = !1, Ze.delete(n)) : a.apply(void 0, Ae([c],
|
|
1244
|
+
for (var l = [], d = 1; d < arguments.length; d++) l[d - 1] = arguments[d];
|
|
1245
|
+
ur.test(c) ? (i = !1, Ze.delete(n)) : a.apply(void 0, Ae([c], l, !1));
|
|
1246
1246
|
}, ue(), i && !Ze.has(n) && (console.warn(n), Ze.add(n));
|
|
1247
1247
|
} catch (c) {
|
|
1248
1248
|
ur.test(c.message) && Ze.delete(n);
|
|
@@ -1295,12 +1295,12 @@ function Ur(e, t, r) {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
var a = vo(t);
|
|
1297
1297
|
hr && (a = a.concat(hr(t)));
|
|
1298
|
-
for (var i = pr(e), c = pr(t),
|
|
1299
|
-
var d = a[
|
|
1298
|
+
for (var i = pr(e), c = pr(t), l = 0; l < a.length; ++l) {
|
|
1299
|
+
var d = a[l];
|
|
1300
1300
|
if (!(d in ho || r && r[d] || c && d in c || i && d in i)) {
|
|
1301
|
-
var
|
|
1301
|
+
var g = yo(t, d);
|
|
1302
1302
|
try {
|
|
1303
|
-
go(e, d,
|
|
1303
|
+
go(e, d, g);
|
|
1304
1304
|
} catch {
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
@@ -1400,7 +1400,7 @@ var So = function() {
|
|
|
1400
1400
|
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
1401
1401
|
for (var c = a; c < i; c++) this.groupSizes[c] = 0;
|
|
1402
1402
|
}
|
|
1403
|
-
for (var
|
|
1403
|
+
for (var l = this.indexOfGroup(t + 1), d = (c = 0, r.length); c < d; c++) this.tag.insertRule(l, r[c]) && (this.groupSizes[t]++, l++);
|
|
1404
1404
|
}, e.prototype.clearGroup = function(t) {
|
|
1405
1405
|
if (t < this.length) {
|
|
1406
1406
|
var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
|
|
@@ -1425,13 +1425,13 @@ var So = function() {
|
|
|
1425
1425
|
for (var n, a = r.split(","), i = 0, c = a.length; i < c; i++) (n = a[i]) && e.registerName(t, n);
|
|
1426
1426
|
}, No = function(e, t) {
|
|
1427
1427
|
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Wt), a = [], i = 0, c = n.length; i < c; i++) {
|
|
1428
|
-
var
|
|
1429
|
-
if (
|
|
1430
|
-
var d =
|
|
1428
|
+
var l = n[i].trim();
|
|
1429
|
+
if (l) {
|
|
1430
|
+
var d = l.match(Ro);
|
|
1431
1431
|
if (d) {
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1434
|
-
} else a.push(
|
|
1432
|
+
var g = 0 | parseInt(d[1], 10), v = d[2];
|
|
1433
|
+
g !== 0 && (Eo(v, g), ko(e, v, d[3]), e.getTag().insertRules(g, a)), a.length = 0;
|
|
1434
|
+
} else a.push(l);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
}, vr = function(e) {
|
|
@@ -1444,8 +1444,8 @@ function _o() {
|
|
|
1444
1444
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1445
1445
|
}
|
|
1446
1446
|
var qr = function(e) {
|
|
1447
|
-
var t = document.head, r = e || t, n = document.createElement("style"), a = function(
|
|
1448
|
-
var d = Array.from(
|
|
1447
|
+
var t = document.head, r = e || t, n = document.createElement("style"), a = function(l) {
|
|
1448
|
+
var d = Array.from(l.querySelectorAll("style[".concat(je, "]")));
|
|
1449
1449
|
return d[d.length - 1];
|
|
1450
1450
|
}(r), i = a !== void 0 ? a.nextSibling : null;
|
|
1451
1451
|
n.setAttribute(je, Fr), n.setAttribute(Mr, mt);
|
|
@@ -1506,18 +1506,18 @@ var qr = function(e) {
|
|
|
1506
1506
|
var a = this;
|
|
1507
1507
|
this.options = U(U({}, To), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && lt && yr && (yr = !1, vr(this)), Bt(this, function() {
|
|
1508
1508
|
return function(i) {
|
|
1509
|
-
for (var c = i.getTag(),
|
|
1510
|
-
var
|
|
1509
|
+
for (var c = i.getTag(), l = c.length, d = "", g = function(p) {
|
|
1510
|
+
var u = function(k) {
|
|
1511
1511
|
return ut.get(k);
|
|
1512
1512
|
}(p);
|
|
1513
|
-
if (
|
|
1514
|
-
var m = i.names.get(
|
|
1513
|
+
if (u === void 0) return "continue";
|
|
1514
|
+
var m = i.names.get(u), y = c.getGroup(p);
|
|
1515
1515
|
if (m === void 0 || !m.size || y.length === 0) return "continue";
|
|
1516
|
-
var w = "".concat(je, ".g").concat(p, '[id="').concat(
|
|
1516
|
+
var w = "".concat(je, ".g").concat(p, '[id="').concat(u, '"]'), R = "";
|
|
1517
1517
|
m !== void 0 && m.forEach(function(k) {
|
|
1518
1518
|
k.length > 0 && (R += "".concat(k, ","));
|
|
1519
1519
|
}), d += "".concat(y).concat(w, '{content:"').concat(R, '"}').concat(Wt);
|
|
1520
|
-
},
|
|
1520
|
+
}, v = 0; v < l; v++) g(v);
|
|
1521
1521
|
return d;
|
|
1522
1522
|
}(a);
|
|
1523
1523
|
});
|
|
@@ -1562,23 +1562,23 @@ function Hr(e, t) {
|
|
|
1562
1562
|
});
|
|
1563
1563
|
}
|
|
1564
1564
|
function Do(e) {
|
|
1565
|
-
var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i,
|
|
1566
|
-
return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) :
|
|
1567
|
-
},
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}), c.prefix &&
|
|
1571
|
-
var p = function(
|
|
1565
|
+
var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i, l = a.plugins, d = l === void 0 ? gt : l, g = function(u, m, y) {
|
|
1566
|
+
return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : u;
|
|
1567
|
+
}, v = d.slice();
|
|
1568
|
+
v.push(function(u) {
|
|
1569
|
+
u.type === dt && u.value.includes("&") && (u.props[0] = u.props[0].replace(Io, r).replace(n, g));
|
|
1570
|
+
}), c.prefix && v.push(ro), v.push(Qn);
|
|
1571
|
+
var p = function(u, m, y, w) {
|
|
1572
1572
|
m === void 0 && (m = ""), y === void 0 && (y = ""), w === void 0 && (w = "&"), t = w, r = m, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1573
|
-
var R =
|
|
1573
|
+
var R = u.replace($o, ""), k = Jn(y || m ? "".concat(y, " ").concat(m, " { ").concat(R, " }") : R);
|
|
1574
1574
|
c.namespace && (k = Hr(k, c.namespace));
|
|
1575
1575
|
var j = [];
|
|
1576
|
-
return ct(k, eo(
|
|
1576
|
+
return ct(k, eo(v.concat(to(function(_) {
|
|
1577
1577
|
return j.push(_);
|
|
1578
1578
|
})))), j;
|
|
1579
1579
|
};
|
|
1580
|
-
return p.hash = d.length ? d.reduce(function(
|
|
1581
|
-
return m.name || Le(15), xe(
|
|
1580
|
+
return p.hash = d.length ? d.reduce(function(u, m) {
|
|
1581
|
+
return m.name || Le(15), xe(u, m.name);
|
|
1582
1582
|
}, Lr).toString() : "", p;
|
|
1583
1583
|
}
|
|
1584
1584
|
var Fo = new Gr(), Dt = Do(), Xr = le.createContext({ shouldForwardProp: void 0, styleSheet: Fo, stylis: Dt });
|
|
@@ -1652,23 +1652,23 @@ var zo = zr(mt), Wo = function() {
|
|
|
1652
1652
|
else {
|
|
1653
1653
|
var i = gr(Se(this.rules, t, r, n)), c = It(xe(this.baseHash, i) >>> 0);
|
|
1654
1654
|
if (!r.hasNameForId(this.componentId, c)) {
|
|
1655
|
-
var
|
|
1656
|
-
r.insertRules(this.componentId, c,
|
|
1655
|
+
var l = n(i, ".".concat(c), void 0, this.componentId);
|
|
1656
|
+
r.insertRules(this.componentId, c, l);
|
|
1657
1657
|
}
|
|
1658
1658
|
a = be(a, c), this.staticRulesId = c;
|
|
1659
1659
|
}
|
|
1660
1660
|
else {
|
|
1661
|
-
for (var d = xe(this.baseHash, n.hash),
|
|
1662
|
-
var p = this.rules[
|
|
1663
|
-
if (typeof p == "string")
|
|
1661
|
+
for (var d = xe(this.baseHash, n.hash), g = "", v = 0; v < this.rules.length; v++) {
|
|
1662
|
+
var p = this.rules[v];
|
|
1663
|
+
if (typeof p == "string") g += p, process.env.NODE_ENV !== "production" && (d = xe(d, p));
|
|
1664
1664
|
else if (p) {
|
|
1665
|
-
var
|
|
1666
|
-
d = xe(d,
|
|
1665
|
+
var u = gr(Se(p, t, r, n));
|
|
1666
|
+
d = xe(d, u + v), g += u;
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
if (
|
|
1669
|
+
if (g) {
|
|
1670
1670
|
var m = It(d >>> 0);
|
|
1671
|
-
r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(
|
|
1671
|
+
r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(g, ".".concat(m), void 0, this.componentId)), a = be(a, m);
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
1674
|
return a;
|
|
@@ -1677,14 +1677,14 @@ var zo = zr(mt), Wo = function() {
|
|
|
1677
1677
|
Zr.Consumer;
|
|
1678
1678
|
var Nt = {}, Sr = /* @__PURE__ */ new Set();
|
|
1679
1679
|
function Vo(e, t, r) {
|
|
1680
|
-
var n = Vt(e), a = e, i = !kt(e), c = t.attrs,
|
|
1680
|
+
var n = Vt(e), a = e, i = !kt(e), c = t.attrs, l = c === void 0 ? gt : c, d = t.componentId, g = d === void 0 ? function(A, I) {
|
|
1681
1681
|
var x = typeof A != "string" ? "sc" : dr(A);
|
|
1682
1682
|
Nt[x] = (Nt[x] || 0) + 1;
|
|
1683
1683
|
var b = "".concat(x, "-").concat(uo(mt + x + Nt[x]));
|
|
1684
1684
|
return I ? "".concat(I, "-").concat(b) : b;
|
|
1685
|
-
}(t.displayName, t.parentComponentId) : d,
|
|
1685
|
+
}(t.displayName, t.parentComponentId) : d, v = t.displayName, p = v === void 0 ? function(A) {
|
|
1686
1686
|
return kt(A) ? "styled.".concat(A) : "Styled(".concat(Wr(A), ")");
|
|
1687
|
-
}(e) :
|
|
1687
|
+
}(e) : v, u = t.displayName && t.componentId ? "".concat(dr(t.displayName), "-").concat(t.componentId) : t.componentId || g, m = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, y = t.shouldForwardProp;
|
|
1688
1688
|
if (n && a.shouldForwardProp) {
|
|
1689
1689
|
var w = a.shouldForwardProp;
|
|
1690
1690
|
if (t.shouldForwardProp) {
|
|
@@ -1694,7 +1694,7 @@ function Vo(e, t, r) {
|
|
|
1694
1694
|
};
|
|
1695
1695
|
} else y = w;
|
|
1696
1696
|
}
|
|
1697
|
-
var k = new Wo(r,
|
|
1697
|
+
var k = new Wo(r, u, n ? a.componentStyle : void 0);
|
|
1698
1698
|
function j(A, I) {
|
|
1699
1699
|
return function(x, b, ne) {
|
|
1700
1700
|
var oe = x.attrs, vt = x.componentStyle, yt = x.defaultProps, He = x.foldedComponentIds, G = x.styledComponentId, ae = x.target, ve = le.useContext(Zr), Xe = xr(), Ee = x.shouldForwardProp || Xe.shouldForwardProp;
|
|
@@ -1718,7 +1718,7 @@ function Vo(e, t, r) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
j.displayName = p;
|
|
1720
1720
|
var _ = le.forwardRef(j);
|
|
1721
|
-
return _.attrs = m, _.componentStyle = k, _.displayName = p, _.shouldForwardProp = y, _.foldedComponentIds = n ? be(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId =
|
|
1721
|
+
return _.attrs = m, _.componentStyle = k, _.displayName = p, _.shouldForwardProp = y, _.foldedComponentIds = n ? be(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId = u, _.target = n ? a.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
|
|
1722
1722
|
return this._foldedDefaultProps;
|
|
1723
1723
|
}, set: function(A) {
|
|
1724
1724
|
this._foldedDefaultProps = n ? function(I) {
|
|
@@ -1726,7 +1726,7 @@ function Vo(e, t, r) {
|
|
|
1726
1726
|
for (var ne = 0, oe = x; ne < oe.length; ne++) $t(I, oe[ne], !0);
|
|
1727
1727
|
return I;
|
|
1728
1728
|
}({}, a.defaultProps, A) : A;
|
|
1729
|
-
} }), process.env.NODE_ENV !== "production" && (ao(p,
|
|
1729
|
+
} }), process.env.NODE_ENV !== "production" && (ao(p, u), _.warnTooManyClasses = /* @__PURE__ */ function(A, I) {
|
|
1730
1730
|
var x = {}, b = !1;
|
|
1731
1731
|
return function(ne) {
|
|
1732
1732
|
if (!b && (x[ne] = !0, Object.keys(x).length >= 200)) {
|
|
@@ -1743,7 +1743,7 @@ Example:
|
|
|
1743
1743
|
<Component />`), b = !0, x = {};
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
|
-
}(p,
|
|
1746
|
+
}(p, u)), Bt(_, function() {
|
|
1747
1747
|
return ".".concat(_.styledComponentId);
|
|
1748
1748
|
}), i && Ur(_, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), _;
|
|
1749
1749
|
}
|
|
@@ -1801,10 +1801,10 @@ const Bo = Yt.div`
|
|
|
1801
1801
|
show: n,
|
|
1802
1802
|
closeOverlay: a
|
|
1803
1803
|
}) => {
|
|
1804
|
-
const { activeOverlayId: i, setActiveOverlay: c } = $n(), [
|
|
1804
|
+
const { activeOverlayId: i, setActiveOverlay: c } = $n(), [l, d] = q(n || !1), [g, v] = q({ top: 0, left: 0 }), p = ue(null), u = _n();
|
|
1805
1805
|
ee(() => {
|
|
1806
|
-
i !==
|
|
1807
|
-
}, [i,
|
|
1806
|
+
i !== u && d(!1);
|
|
1807
|
+
}, [i, u]), ee(() => {
|
|
1808
1808
|
const w = () => {
|
|
1809
1809
|
var j;
|
|
1810
1810
|
const R = e.getBoundingClientRect(), k = (j = p.current) == null ? void 0 : j.getBoundingClientRect();
|
|
@@ -1832,59 +1832,67 @@ const Bo = Yt.div`
|
|
|
1832
1832
|
left: x.right
|
|
1833
1833
|
})
|
|
1834
1834
|
}, { top: A, left: I } = _[t ?? "topLeft"](R, k);
|
|
1835
|
-
|
|
1835
|
+
v({ top: A, left: I });
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
1838
|
return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
1839
1839
|
}, [e, t]);
|
|
1840
1840
|
const m = () => {
|
|
1841
|
-
d(!0), c(
|
|
1842
|
-
}, y =
|
|
1843
|
-
|
|
1844
|
-
|
|
1841
|
+
d(!0), c(u);
|
|
1842
|
+
}, y = D(
|
|
1843
|
+
(w) => {
|
|
1844
|
+
w.stopPropagation(), d(!1), c(null), a && a(!1);
|
|
1845
|
+
},
|
|
1846
|
+
[a, c]
|
|
1847
|
+
);
|
|
1845
1848
|
return ee(() => {
|
|
1846
1849
|
n && m();
|
|
1847
|
-
}, [n]),
|
|
1848
|
-
/* @__PURE__ */ s.jsx(Bo, { ref: p, $top:
|
|
1849
|
-
/* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ s.jsx(
|
|
1850
|
+
}, [n]), l ? Mt.createPortal(
|
|
1851
|
+
/* @__PURE__ */ s.jsx(Bo, { ref: p, $top: g.top, $left: g.left, children: /* @__PURE__ */ s.jsxs("div", { className: "overlayPanel", children: [
|
|
1852
|
+
/* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" }) }),
|
|
1850
1853
|
r
|
|
1851
1854
|
] }) }),
|
|
1852
1855
|
document.body
|
|
1853
1856
|
) : null;
|
|
1854
1857
|
}, Yo = ({ actions: e, item: t }) => {
|
|
1855
|
-
const r = ue(null), [n, a] = q(!1), i = Oe(() => e == null ? void 0 : e.filter((
|
|
1856
|
-
id:
|
|
1857
|
-
icon:
|
|
1858
|
-
name:
|
|
1858
|
+
const r = ue(null), [n, a] = q(!1), i = Oe(() => e == null ? void 0 : e.filter((l) => l.type === "menu").map((l, d) => ({
|
|
1859
|
+
id: d,
|
|
1860
|
+
icon: l.icon,
|
|
1861
|
+
name: l.label,
|
|
1859
1862
|
children: /* @__PURE__ */ s.jsx(
|
|
1860
1863
|
Nr,
|
|
1861
1864
|
{
|
|
1862
|
-
classIcon:
|
|
1865
|
+
classIcon: l.icon,
|
|
1863
1866
|
sizeIcon: ce.LARGE,
|
|
1864
|
-
onClick: (
|
|
1865
|
-
|
|
1867
|
+
onClick: (g) => {
|
|
1868
|
+
g.stopPropagation(), g.preventDefault(), l.onClick && t && l.onClick(t);
|
|
1866
1869
|
},
|
|
1867
|
-
title:
|
|
1870
|
+
title: l.label || ""
|
|
1868
1871
|
}
|
|
1869
1872
|
)
|
|
1870
|
-
})), [e])
|
|
1873
|
+
})), [e]), c = D(
|
|
1874
|
+
(l, d) => {
|
|
1875
|
+
l.stopPropagation(), a(d);
|
|
1876
|
+
},
|
|
1877
|
+
[a]
|
|
1878
|
+
);
|
|
1871
1879
|
return /* @__PURE__ */ s.jsxs("div", { className: "card-actions", children: [
|
|
1872
|
-
e.filter((
|
|
1880
|
+
e.filter((l) => l.type === "menu").length ? /* @__PURE__ */ s.jsxs(
|
|
1873
1881
|
"div",
|
|
1874
1882
|
{
|
|
1875
1883
|
ref: r,
|
|
1876
1884
|
className: "card-action",
|
|
1877
|
-
onClick: () =>
|
|
1885
|
+
onClick: (l) => c(l, !n),
|
|
1878
1886
|
children: [
|
|
1879
1887
|
/* @__PURE__ */ s.jsx(
|
|
1880
|
-
|
|
1888
|
+
M,
|
|
1881
1889
|
{
|
|
1882
1890
|
size: ce.MEDIUM,
|
|
1883
1891
|
classIcon: "bi-three-dots-vertical cursor-pointer"
|
|
1884
1892
|
}
|
|
1885
1893
|
),
|
|
1886
1894
|
/* @__PURE__ */ s.jsx(
|
|
1887
|
-
|
|
1895
|
+
M,
|
|
1888
1896
|
{
|
|
1889
1897
|
size: ce.MEDIUM,
|
|
1890
1898
|
classIcon: "bi-three-dots cursor-pointer"
|
|
@@ -1900,7 +1908,7 @@ const Bo = Yt.div`
|
|
|
1900
1908
|
show: n,
|
|
1901
1909
|
closeOverlay: a,
|
|
1902
1910
|
referenceElement: r.current,
|
|
1903
|
-
children: /* @__PURE__ */ s.jsx("div", { onClickCapture: (
|
|
1911
|
+
children: /* @__PURE__ */ s.jsx("div", { onClickCapture: (l) => l.stopPropagation(), children: /* @__PURE__ */ s.jsx(In, { className: "card-action-menu", items: i }) })
|
|
1904
1912
|
}
|
|
1905
1913
|
)
|
|
1906
1914
|
] });
|
|
@@ -1913,19 +1921,19 @@ const Bo = Yt.div`
|
|
|
1913
1921
|
customAction: i,
|
|
1914
1922
|
children: c
|
|
1915
1923
|
}) => {
|
|
1916
|
-
const [
|
|
1917
|
-
p.stopPropagation(), a && a(
|
|
1918
|
-
},
|
|
1919
|
-
(p,
|
|
1920
|
-
p.target.closest(".card-action-menu button") || (p.stopPropagation(), d(!
|
|
1924
|
+
const [l, d] = q(!1), g = (p, u) => {
|
|
1925
|
+
p.stopPropagation(), a && a(u);
|
|
1926
|
+
}, v = D(
|
|
1927
|
+
(p, u) => {
|
|
1928
|
+
p.target.closest(".card-action-menu button") || (p.stopPropagation(), d(!l), n && n(u));
|
|
1921
1929
|
},
|
|
1922
|
-
[d,
|
|
1930
|
+
[d, l]
|
|
1923
1931
|
);
|
|
1924
1932
|
return /* @__PURE__ */ s.jsxs(
|
|
1925
1933
|
"div",
|
|
1926
1934
|
{
|
|
1927
|
-
...n && { onClick: (p) =>
|
|
1928
|
-
className: `card ${r ?? ""} ${
|
|
1935
|
+
...n && { onClick: (p) => v(p, e) },
|
|
1936
|
+
className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
|
|
1929
1937
|
children: [
|
|
1930
1938
|
c,
|
|
1931
1939
|
!c && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -1942,8 +1950,8 @@ const Bo = Yt.div`
|
|
|
1942
1950
|
"div",
|
|
1943
1951
|
{
|
|
1944
1952
|
className: "ml-2 cursor-pointer",
|
|
1945
|
-
onClick: (p) =>
|
|
1946
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1953
|
+
onClick: (p) => g(p, e),
|
|
1954
|
+
children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-trash3" })
|
|
1947
1955
|
}
|
|
1948
1956
|
),
|
|
1949
1957
|
t && /* @__PURE__ */ s.jsx(Yo, { actions: t, item: e })
|
|
@@ -1962,7 +1970,7 @@ const Bo = Yt.div`
|
|
|
1962
1970
|
xl: 5
|
|
1963
1971
|
}
|
|
1964
1972
|
}) => {
|
|
1965
|
-
const [a, i] = q(0), c = e.length, [
|
|
1973
|
+
const [a, i] = q(0), c = e.length, [l, d] = q(1);
|
|
1966
1974
|
ee(() => {
|
|
1967
1975
|
const y = () => {
|
|
1968
1976
|
const w = window.innerWidth;
|
|
@@ -1977,26 +1985,26 @@ const Bo = Yt.div`
|
|
|
1977
1985
|
};
|
|
1978
1986
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
1979
1987
|
}, [n]);
|
|
1980
|
-
const
|
|
1988
|
+
const g = D(
|
|
1981
1989
|
(y) => {
|
|
1982
1990
|
y.preventDefault(), i(
|
|
1983
|
-
(w) => Math.min(w + r, c -
|
|
1991
|
+
(w) => Math.min(w + r, c - l)
|
|
1984
1992
|
);
|
|
1985
1993
|
},
|
|
1986
1994
|
[i]
|
|
1987
|
-
),
|
|
1995
|
+
), v = D(
|
|
1988
1996
|
(y) => {
|
|
1989
1997
|
y.preventDefault(), i((w) => Math.max(w - r, 0));
|
|
1990
1998
|
},
|
|
1991
1999
|
[i]
|
|
1992
|
-
), p = a + r >= c -
|
|
2000
|
+
), p = a + r >= c - l + 1, u = c <= l, m = a <= 0;
|
|
1993
2001
|
return /* @__PURE__ */ s.jsxs("div", { className: "carousel", children: [
|
|
1994
|
-
t && !
|
|
2002
|
+
t && !u && /* @__PURE__ */ s.jsx(
|
|
1995
2003
|
"div",
|
|
1996
2004
|
{
|
|
1997
2005
|
className: `carousel-control prev ${m && "disabled"}`,
|
|
1998
|
-
onClick:
|
|
1999
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2006
|
+
onClick: v,
|
|
2007
|
+
children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-left" })
|
|
2000
2008
|
}
|
|
2001
2009
|
),
|
|
2002
2010
|
/* @__PURE__ */ s.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ s.jsx(
|
|
@@ -2005,7 +2013,7 @@ const Bo = Yt.div`
|
|
|
2005
2013
|
className: "carousel-slides-wrapper",
|
|
2006
2014
|
style: {
|
|
2007
2015
|
display: "flex",
|
|
2008
|
-
transform: `translateX(-${a * 100 /
|
|
2016
|
+
transform: `translateX(-${a * 100 / l}%)`,
|
|
2009
2017
|
transition: "transform 0.5s ease-in-out"
|
|
2010
2018
|
},
|
|
2011
2019
|
children: le.Children.map(e, (y) => /* @__PURE__ */ s.jsx(
|
|
@@ -2013,7 +2021,7 @@ const Bo = Yt.div`
|
|
|
2013
2021
|
{
|
|
2014
2022
|
className: "carousel-slide",
|
|
2015
2023
|
style: {
|
|
2016
|
-
minWidth: `${100 /
|
|
2024
|
+
minWidth: `${100 / l}%`,
|
|
2017
2025
|
boxSizing: "border-box"
|
|
2018
2026
|
},
|
|
2019
2027
|
children: y
|
|
@@ -2021,12 +2029,12 @@ const Bo = Yt.div`
|
|
|
2021
2029
|
))
|
|
2022
2030
|
}
|
|
2023
2031
|
) }),
|
|
2024
|
-
t && !
|
|
2032
|
+
t && !u && /* @__PURE__ */ s.jsx(
|
|
2025
2033
|
"div",
|
|
2026
2034
|
{
|
|
2027
2035
|
className: `carousel-control next ${p && "disabled"}`,
|
|
2028
|
-
onClick:
|
|
2029
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2036
|
+
onClick: g,
|
|
2037
|
+
children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-right" })
|
|
2030
2038
|
}
|
|
2031
2039
|
)
|
|
2032
2040
|
] });
|
|
@@ -2042,31 +2050,31 @@ const Bo = Yt.div`
|
|
|
2042
2050
|
page: n = 1,
|
|
2043
2051
|
onClick: a
|
|
2044
2052
|
}) => {
|
|
2045
|
-
const i = Oe(() => e ?? 9, [e]), c = Oe(() => t ?? 9, [t]), [
|
|
2053
|
+
const i = Oe(() => e ?? 9, [e]), c = Oe(() => t ?? 9, [t]), [l, d] = q(1);
|
|
2046
2054
|
ee(() => {
|
|
2047
2055
|
d(n);
|
|
2048
2056
|
}, [n]);
|
|
2049
|
-
const
|
|
2050
|
-
const
|
|
2057
|
+
const g = Oe(() => {
|
|
2058
|
+
const v = [];
|
|
2051
2059
|
for (let p = 0; p < c; p++) {
|
|
2052
|
-
const
|
|
2060
|
+
const u = [];
|
|
2053
2061
|
for (let m = 0; m < i; m++) {
|
|
2054
2062
|
const y = m + p * i, w = r == null ? void 0 : r.find(
|
|
2055
2063
|
(R) => R.position === y + 1
|
|
2056
2064
|
);
|
|
2057
|
-
w ?
|
|
2065
|
+
w ? u.push(
|
|
2058
2066
|
/* @__PURE__ */ s.jsx(Uo, { onClick: a, cell: w }, `${p}-${m}`)
|
|
2059
|
-
) :
|
|
2067
|
+
) : u.push(
|
|
2060
2068
|
/* @__PURE__ */ s.jsx("div", { className: "cell cell--empty" }, `${p}-${m}`)
|
|
2061
2069
|
);
|
|
2062
2070
|
}
|
|
2063
|
-
|
|
2064
|
-
/* @__PURE__ */ s.jsx("div", { className: "row", children:
|
|
2071
|
+
v.push(
|
|
2072
|
+
/* @__PURE__ */ s.jsx("div", { className: "row", children: u }, p)
|
|
2065
2073
|
);
|
|
2066
2074
|
}
|
|
2067
|
-
return
|
|
2068
|
-
}, [i, c,
|
|
2069
|
-
return /* @__PURE__ */ s.jsx("div", { className: "damier", children:
|
|
2075
|
+
return v;
|
|
2076
|
+
}, [i, c, l]);
|
|
2077
|
+
return /* @__PURE__ */ s.jsx("div", { className: "damier", children: g });
|
|
2070
2078
|
}, qo = (e) => {
|
|
2071
2079
|
const t = Oe(() => e.active ? "expand--active" : "", [e.active]);
|
|
2072
2080
|
return /* @__PURE__ */ s.jsxs(
|
|
@@ -2088,7 +2096,7 @@ const Bo = Yt.div`
|
|
|
2088
2096
|
}
|
|
2089
2097
|
);
|
|
2090
2098
|
}, sa = (e) => {
|
|
2091
|
-
const t =
|
|
2099
|
+
const t = D((r) => {
|
|
2092
2100
|
e.onChange && e.onChange(r);
|
|
2093
2101
|
}, []);
|
|
2094
2102
|
return /* @__PURE__ */ s.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((r) => {
|
|
@@ -2109,7 +2117,7 @@ const Bo = Yt.div`
|
|
|
2109
2117
|
currentFil: r,
|
|
2110
2118
|
title: n
|
|
2111
2119
|
}) => {
|
|
2112
|
-
const a =
|
|
2120
|
+
const a = D(
|
|
2113
2121
|
(i, c) => {
|
|
2114
2122
|
c != null && c.url || i.preventDefault(), t && t(c);
|
|
2115
2123
|
},
|
|
@@ -2130,7 +2138,7 @@ const Bo = Yt.div`
|
|
|
2130
2138
|
"a",
|
|
2131
2139
|
{
|
|
2132
2140
|
href: i.url || "#",
|
|
2133
|
-
onClick: (
|
|
2141
|
+
onClick: (l) => a(l, i),
|
|
2134
2142
|
children: i.title
|
|
2135
2143
|
}
|
|
2136
2144
|
),
|
|
@@ -2142,15 +2150,15 @@ const Bo = Yt.div`
|
|
|
2142
2150
|
] });
|
|
2143
2151
|
}, Go = Rr(
|
|
2144
2152
|
({ initialForm: e, title: t, onSubmit: r, onChange: n, hideSubmit: a }, i) => {
|
|
2145
|
-
const [c,
|
|
2146
|
-
const
|
|
2153
|
+
const [c, l] = q(() => {
|
|
2154
|
+
const u = {};
|
|
2147
2155
|
return e.forEach((m) => {
|
|
2148
|
-
|
|
2149
|
-
}),
|
|
2150
|
-
}), d =
|
|
2151
|
-
(
|
|
2152
|
-
const { name: m, value: y, type: w, checked: R } =
|
|
2153
|
-
|
|
2156
|
+
u[m.name] = m.value ?? "";
|
|
2157
|
+
}), u;
|
|
2158
|
+
}), d = D(
|
|
2159
|
+
(u) => {
|
|
2160
|
+
const { name: m, value: y, type: w, checked: R } = u.target;
|
|
2161
|
+
l((k) => {
|
|
2154
2162
|
const _ = {
|
|
2155
2163
|
...k || {},
|
|
2156
2164
|
[m]: w === "checkbox" ? R : y
|
|
@@ -2158,67 +2166,67 @@ const Bo = Yt.div`
|
|
|
2158
2166
|
return n && n(_), _;
|
|
2159
2167
|
});
|
|
2160
2168
|
},
|
|
2161
|
-
[
|
|
2162
|
-
),
|
|
2163
|
-
(
|
|
2164
|
-
|
|
2169
|
+
[l, n]
|
|
2170
|
+
), g = D(
|
|
2171
|
+
(u) => {
|
|
2172
|
+
u.preventDefault(), r && r(c);
|
|
2165
2173
|
},
|
|
2166
2174
|
[r, c]
|
|
2167
|
-
),
|
|
2168
|
-
|
|
2169
|
-
const
|
|
2175
|
+
), v = () => {
|
|
2176
|
+
l(() => {
|
|
2177
|
+
const u = {};
|
|
2170
2178
|
return e.forEach((m) => {
|
|
2171
|
-
|
|
2172
|
-
}),
|
|
2179
|
+
u[m.name] = m.value ?? "";
|
|
2180
|
+
}), u;
|
|
2173
2181
|
});
|
|
2174
|
-
}, p =
|
|
2175
|
-
(
|
|
2176
|
-
|
|
2182
|
+
}, p = D(
|
|
2183
|
+
(u) => {
|
|
2184
|
+
l((m) => ({
|
|
2177
2185
|
...m,
|
|
2178
|
-
[
|
|
2186
|
+
[u]: ""
|
|
2179
2187
|
}));
|
|
2180
2188
|
},
|
|
2181
|
-
[
|
|
2189
|
+
[l]
|
|
2182
2190
|
);
|
|
2183
2191
|
return kr(i, () => ({
|
|
2184
|
-
resetForm:
|
|
2192
|
+
resetForm: v,
|
|
2185
2193
|
clearInput: p
|
|
2186
|
-
})), /* @__PURE__ */ s.jsxs("form", { onSubmit:
|
|
2187
|
-
e.map((
|
|
2194
|
+
})), /* @__PURE__ */ s.jsxs("form", { onSubmit: g, children: [
|
|
2195
|
+
e.map((u, m) => {
|
|
2188
2196
|
const y = ue(null);
|
|
2189
2197
|
return ee(() => {
|
|
2190
2198
|
var w;
|
|
2191
|
-
|
|
2192
|
-
}, []), /* @__PURE__ */ s.jsx(le.Fragment, { children:
|
|
2193
|
-
|
|
2194
|
-
|
|
2199
|
+
u.focus && ((w = y == null ? void 0 : y.current) == null || w.focus());
|
|
2200
|
+
}, []), /* @__PURE__ */ s.jsx(le.Fragment, { children: u.type === "checkbox" ? /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${u.className}`, children: [
|
|
2201
|
+
u.label && /* @__PURE__ */ s.jsx("label", { children: u.label }),
|
|
2202
|
+
u.icon && /* @__PURE__ */ s.jsx(M, { classIcon: u.icon }),
|
|
2195
2203
|
/* @__PURE__ */ s.jsx(
|
|
2196
2204
|
"input",
|
|
2197
2205
|
{
|
|
2198
|
-
name:
|
|
2199
|
-
type:
|
|
2206
|
+
name: u.name,
|
|
2207
|
+
type: u.type,
|
|
2200
2208
|
ref: y,
|
|
2201
|
-
autoComplete:
|
|
2202
|
-
autoFocus:
|
|
2203
|
-
checked: c && !!c[
|
|
2209
|
+
autoComplete: u.autoComplete ?? "on",
|
|
2210
|
+
autoFocus: u.focus ?? !1,
|
|
2211
|
+
checked: c && !!c[u.name],
|
|
2204
2212
|
onChange: d,
|
|
2205
|
-
required:
|
|
2213
|
+
required: u.required ?? !1
|
|
2206
2214
|
}
|
|
2207
2215
|
)
|
|
2208
|
-
] }, m) : /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${
|
|
2209
|
-
|
|
2210
|
-
|
|
2216
|
+
] }, m) : /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${u.className}`, children: [
|
|
2217
|
+
u.label && /* @__PURE__ */ s.jsx("label", { children: u.label }),
|
|
2218
|
+
u.icon && /* @__PURE__ */ s.jsx(M, { classIcon: u.icon }),
|
|
2211
2219
|
/* @__PURE__ */ s.jsx(
|
|
2212
2220
|
"input",
|
|
2213
2221
|
{
|
|
2214
|
-
autoFocus:
|
|
2215
|
-
placeholder:
|
|
2216
|
-
autoComplete:
|
|
2217
|
-
name:
|
|
2222
|
+
autoFocus: u.focus ?? !1,
|
|
2223
|
+
placeholder: u.placeholder ?? "",
|
|
2224
|
+
autoComplete: u.autoComplete ?? "on",
|
|
2225
|
+
name: u.name,
|
|
2218
2226
|
ref: y,
|
|
2219
|
-
type:
|
|
2220
|
-
required:
|
|
2221
|
-
value: c && c[
|
|
2227
|
+
type: u.type,
|
|
2228
|
+
required: u.required ?? !1,
|
|
2229
|
+
value: c && c[u.name],
|
|
2222
2230
|
onChange: d
|
|
2223
2231
|
}
|
|
2224
2232
|
)
|
|
@@ -2263,12 +2271,12 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2263
2271
|
positionFixed: a,
|
|
2264
2272
|
onClickLogo: i
|
|
2265
2273
|
}) => {
|
|
2266
|
-
const c = ue(null), [
|
|
2267
|
-
d(!
|
|
2268
|
-
}, [
|
|
2274
|
+
const c = ue(null), [l, d] = q(!1), g = D(() => {
|
|
2275
|
+
d(!l);
|
|
2276
|
+
}, [l, d]);
|
|
2269
2277
|
return /* @__PURE__ */ s.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
|
|
2270
2278
|
/* @__PURE__ */ s.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
|
|
2271
|
-
/* @__PURE__ */ s.jsx("span", { onClick: r, children: /* @__PURE__ */ s.jsx(
|
|
2279
|
+
/* @__PURE__ */ s.jsx("span", { onClick: r, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-list" }) }),
|
|
2272
2280
|
/* @__PURE__ */ s.jsx(
|
|
2273
2281
|
"span",
|
|
2274
2282
|
{
|
|
@@ -2280,12 +2288,12 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2280
2288
|
] }),
|
|
2281
2289
|
/* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
2282
2290
|
e,
|
|
2283
|
-
/* @__PURE__ */ s.jsx("div", { ref: c, onClick:
|
|
2284
|
-
|
|
2291
|
+
/* @__PURE__ */ s.jsx("div", { ref: c, onClick: g, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-person-circle" }) }),
|
|
2292
|
+
l && c.current && /* @__PURE__ */ s.jsx(
|
|
2285
2293
|
en,
|
|
2286
2294
|
{
|
|
2287
2295
|
position: "bottomRight",
|
|
2288
|
-
show:
|
|
2296
|
+
show: l,
|
|
2289
2297
|
closeOverlay: d,
|
|
2290
2298
|
referenceElement: c.current,
|
|
2291
2299
|
children: n
|
|
@@ -2311,19 +2319,19 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2311
2319
|
] }) }),
|
|
2312
2320
|
document.body
|
|
2313
2321
|
) : null, fa = ({ setQuantity: e, item: t }) => {
|
|
2314
|
-
const [r, n] = q(t.quantity ?? 1), a =
|
|
2315
|
-
(
|
|
2316
|
-
n(
|
|
2322
|
+
const [r, n] = q(t.quantity ?? 1), a = D(
|
|
2323
|
+
(l) => {
|
|
2324
|
+
n(l), e && e(t, l);
|
|
2317
2325
|
},
|
|
2318
2326
|
[n, e]
|
|
2319
|
-
), i =
|
|
2320
|
-
(
|
|
2321
|
-
|
|
2327
|
+
), i = D(
|
|
2328
|
+
(l) => {
|
|
2329
|
+
l.stopPropagation(), a(r + 1);
|
|
2322
2330
|
},
|
|
2323
2331
|
[r, a]
|
|
2324
|
-
), c =
|
|
2325
|
-
(
|
|
2326
|
-
if (
|
|
2332
|
+
), c = D(
|
|
2333
|
+
(l) => {
|
|
2334
|
+
if (l.stopPropagation(), r === 0)
|
|
2327
2335
|
return r;
|
|
2328
2336
|
a(r - 1);
|
|
2329
2337
|
},
|
|
@@ -2333,18 +2341,18 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2333
2341
|
/* @__PURE__ */ s.jsx(
|
|
2334
2342
|
"div",
|
|
2335
2343
|
{
|
|
2336
|
-
onClick: (
|
|
2344
|
+
onClick: (l) => c(l),
|
|
2337
2345
|
className: "qte-action qte-action--minus ",
|
|
2338
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2346
|
+
children: /* @__PURE__ */ s.jsx(M, { size: ce.LARGE, classIcon: "bi bi-dash-square" })
|
|
2339
2347
|
}
|
|
2340
2348
|
),
|
|
2341
2349
|
/* @__PURE__ */ s.jsx("span", { className: "qte-label", children: r }),
|
|
2342
2350
|
/* @__PURE__ */ s.jsx(
|
|
2343
2351
|
"div",
|
|
2344
2352
|
{
|
|
2345
|
-
onClick: (
|
|
2353
|
+
onClick: (l) => i(l),
|
|
2346
2354
|
className: "qte-action qte-action--plus ",
|
|
2347
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2355
|
+
children: /* @__PURE__ */ s.jsx(M, { size: ce.LARGE, classIcon: "bi bi-plus-square" })
|
|
2348
2356
|
}
|
|
2349
2357
|
)
|
|
2350
2358
|
] });
|
|
@@ -2357,8 +2365,8 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2357
2365
|
debounceTime: a,
|
|
2358
2366
|
handleChange: i,
|
|
2359
2367
|
setIsVisible: c
|
|
2360
|
-
},
|
|
2361
|
-
const [d,
|
|
2368
|
+
}, l) => {
|
|
2369
|
+
const [d, g] = q(r ?? !1), v = ue(null), p = ue(null), u = Oe(
|
|
2362
2370
|
() => [
|
|
2363
2371
|
{
|
|
2364
2372
|
value: "",
|
|
@@ -2374,29 +2382,29 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2374
2382
|
[t, n]
|
|
2375
2383
|
);
|
|
2376
2384
|
ee(() => {
|
|
2377
|
-
r !== void 0 &&
|
|
2385
|
+
r !== void 0 && g(r);
|
|
2378
2386
|
}, [r]);
|
|
2379
|
-
const m =
|
|
2387
|
+
const m = D(
|
|
2380
2388
|
(R) => {
|
|
2381
|
-
c && c(R),
|
|
2389
|
+
c && c(R), g(R);
|
|
2382
2390
|
},
|
|
2383
2391
|
[c]
|
|
2384
|
-
), y =
|
|
2392
|
+
), y = D(
|
|
2385
2393
|
(R) => {
|
|
2386
2394
|
if (!R || !R.recherche)
|
|
2387
2395
|
return m(!1);
|
|
2388
|
-
m(!0),
|
|
2396
|
+
m(!0), v.current && clearTimeout(v.current), v.current = setTimeout(() => {
|
|
2389
2397
|
i && i(R);
|
|
2390
2398
|
}, a ?? 500);
|
|
2391
2399
|
},
|
|
2392
2400
|
[m, i, a]
|
|
2393
|
-
), w =
|
|
2401
|
+
), w = D(
|
|
2394
2402
|
(R) => {
|
|
2395
2403
|
console.log("Form Submitted: ", R);
|
|
2396
2404
|
},
|
|
2397
2405
|
[]
|
|
2398
2406
|
);
|
|
2399
|
-
return kr(
|
|
2407
|
+
return kr(l, () => ({
|
|
2400
2408
|
clearInput: (R) => {
|
|
2401
2409
|
var k;
|
|
2402
2410
|
(k = p.current) == null || k.clearInput(R);
|
|
@@ -2413,7 +2421,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2413
2421
|
onSubmit: w,
|
|
2414
2422
|
onChange: y,
|
|
2415
2423
|
hideSubmit: !0,
|
|
2416
|
-
initialForm:
|
|
2424
|
+
initialForm: u
|
|
2417
2425
|
}
|
|
2418
2426
|
),
|
|
2419
2427
|
d && /* @__PURE__ */ s.jsxs("div", { className: "search-result", children: [
|
|
@@ -2422,7 +2430,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2422
2430
|
{
|
|
2423
2431
|
className: "toggle-btn",
|
|
2424
2432
|
onClick: () => m(!1),
|
|
2425
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2433
|
+
children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" })
|
|
2426
2434
|
}
|
|
2427
2435
|
) }),
|
|
2428
2436
|
/* @__PURE__ */ s.jsx("div", { className: "search-result-content", children: e })
|
|
@@ -2437,45 +2445,45 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2437
2445
|
className: a,
|
|
2438
2446
|
id: i,
|
|
2439
2447
|
width: c,
|
|
2440
|
-
closeOnClickOutside:
|
|
2448
|
+
closeOnClickOutside: l = !0,
|
|
2441
2449
|
displayOverlay: d = !0
|
|
2442
2450
|
}) => {
|
|
2443
|
-
const [
|
|
2444
|
-
ee(() => (
|
|
2445
|
-
|
|
2451
|
+
const [g, v] = q(e || !1), p = ue(null), u = ue(null);
|
|
2452
|
+
ee(() => (u.current || (u.current = document.createElement("div"), u.current.id = `sidebar-root-${i || Math.random().toString(36).substr(2, 9)}`, document.body.appendChild(u.current)), () => {
|
|
2453
|
+
u.current && u.current.parentNode && (document.body.removeChild(u.current), u.current = null);
|
|
2446
2454
|
}), [i]), ee(() => {
|
|
2447
|
-
|
|
2455
|
+
v(e || !1);
|
|
2448
2456
|
}, [e]);
|
|
2449
|
-
const m =
|
|
2450
|
-
|
|
2451
|
-
}, [n]), y =
|
|
2457
|
+
const m = D(() => {
|
|
2458
|
+
v(!1), n && n(!1);
|
|
2459
|
+
}, [n]), y = D(
|
|
2452
2460
|
(w) => {
|
|
2453
|
-
|
|
2461
|
+
l && p.current && !p.current.contains(w.target) && m();
|
|
2454
2462
|
},
|
|
2455
|
-
[m,
|
|
2463
|
+
[m, l]
|
|
2456
2464
|
);
|
|
2457
|
-
return ee(() => (
|
|
2465
|
+
return ee(() => (g ? document.addEventListener("mousedown", y) : document.removeEventListener("mousedown", y), () => {
|
|
2458
2466
|
document.removeEventListener("mousedown", y);
|
|
2459
|
-
}), [
|
|
2467
|
+
}), [g, y]), u.current ? Mt.createPortal(
|
|
2460
2468
|
/* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2461
|
-
|
|
2469
|
+
g && d && /* @__PURE__ */ s.jsx("div", { className: "overlay" }),
|
|
2462
2470
|
/* @__PURE__ */ s.jsxs(
|
|
2463
2471
|
"div",
|
|
2464
2472
|
{
|
|
2465
2473
|
ref: p,
|
|
2466
2474
|
style: c ? { width: c } : {},
|
|
2467
|
-
className: `sidebar ${
|
|
2475
|
+
className: `sidebar ${g ? "open" : "closed"} ${a ?? ""}`,
|
|
2468
2476
|
children: [
|
|
2469
2477
|
/* @__PURE__ */ s.jsxs("div", { className: "sidebar-header", children: [
|
|
2470
2478
|
r && /* @__PURE__ */ s.jsx("h2", { className: "flex-1", children: r }),
|
|
2471
|
-
/* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ s.jsx(
|
|
2479
|
+
/* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" }) })
|
|
2472
2480
|
] }),
|
|
2473
2481
|
t && t
|
|
2474
2482
|
]
|
|
2475
2483
|
}
|
|
2476
2484
|
)
|
|
2477
2485
|
] }),
|
|
2478
|
-
|
|
2486
|
+
u.current
|
|
2479
2487
|
) : /* @__PURE__ */ s.jsx(s.Fragment, {});
|
|
2480
2488
|
}, ha = (e) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(Zo, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ s.jsx("div", { className: "sidebar-data-content", children: e.children }) }) }), ma = ({
|
|
2481
2489
|
className: e,
|
|
@@ -2487,24 +2495,24 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
|
|
|
2487
2495
|
}) => {
|
|
2488
2496
|
const c = document.createElement("div");
|
|
2489
2497
|
c.id = "toaster-root";
|
|
2490
|
-
const
|
|
2498
|
+
const l = D(
|
|
2491
2499
|
() => document.body.removeChild(c),
|
|
2492
2500
|
[c]
|
|
2493
|
-
), d =
|
|
2494
|
-
const
|
|
2501
|
+
), d = D(() => {
|
|
2502
|
+
const g = setTimeout(l, r);
|
|
2495
2503
|
return () => {
|
|
2496
|
-
clearTimeout(
|
|
2504
|
+
clearTimeout(g);
|
|
2497
2505
|
};
|
|
2498
|
-
}, [r,
|
|
2506
|
+
}, [r, l]);
|
|
2499
2507
|
return ee(() => (document.body.appendChild(c), d(), () => {
|
|
2500
2508
|
document.body.removeChild(c);
|
|
2501
2509
|
}), [c, d]), Mt.createPortal(
|
|
2502
2510
|
/* @__PURE__ */ s.jsxs("div", { className: `toaster toaster-${i} ${e || ""}`, children: [
|
|
2503
2511
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
2504
|
-
i === "info" && /* @__PURE__ */ s.jsx(
|
|
2505
|
-
i === "success" && /* @__PURE__ */ s.jsx(
|
|
2506
|
-
i === "error" && /* @__PURE__ */ s.jsx(
|
|
2507
|
-
i === "warning" && /* @__PURE__ */ s.jsx(
|
|
2512
|
+
i === "info" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-info-circle" }),
|
|
2513
|
+
i === "success" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-check-circle" }),
|
|
2514
|
+
i === "error" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-circle" }),
|
|
2515
|
+
i === "warning" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-exclamation-triangle" })
|
|
2508
2516
|
] }),
|
|
2509
2517
|
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
2510
2518
|
/* @__PURE__ */ s.jsx("div", { className: `title title-${i}`, children: t }),
|
|
@@ -2526,7 +2534,7 @@ export {
|
|
|
2526
2534
|
ia as FilAriane,
|
|
2527
2535
|
ca as Grid,
|
|
2528
2536
|
la as Header,
|
|
2529
|
-
|
|
2537
|
+
M as Icon,
|
|
2530
2538
|
ce as IconSizeEnum,
|
|
2531
2539
|
ua as Loader,
|
|
2532
2540
|
In as Menus,
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useMemo, useRef, useState } from "react";
|
|
1
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { Button } from "../../button/Button";
|
|
3
3
|
import { Icon } from "../../icon/Icon";
|
|
4
4
|
import { IconSizeEnum } from "../../icon/iconSize.enum";
|
|
@@ -38,14 +38,20 @@ export const CardAction = ({ actions, item }: CardActionProps) => {
|
|
|
38
38
|
};
|
|
39
39
|
}) as MenuInterface[];
|
|
40
40
|
}, [actions]);
|
|
41
|
-
|
|
41
|
+
const handleChangeOverlay = useCallback(
|
|
42
|
+
(e: any, openOverlay: boolean) => {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
setOpenOverlay(openOverlay);
|
|
45
|
+
},
|
|
46
|
+
[setOpenOverlay]
|
|
47
|
+
);
|
|
42
48
|
return (
|
|
43
49
|
<div className="card-actions">
|
|
44
50
|
{actions.filter((a) => a.type === "menu").length ? (
|
|
45
51
|
<div
|
|
46
52
|
ref={refButton}
|
|
47
53
|
className="card-action"
|
|
48
|
-
onClick={() =>
|
|
54
|
+
onClick={(e) => handleChangeOverlay(e, !openOverlay)}
|
|
49
55
|
>
|
|
50
56
|
<Icon
|
|
51
57
|
size={IconSizeEnum.MEDIUM}
|
|
@@ -83,13 +83,17 @@ export const OverlayPanel = ({
|
|
|
83
83
|
setActiveOverlay(overlayId);
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
const closeOverlayHandler = useCallback(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
const closeOverlayHandler = useCallback(
|
|
87
|
+
(e: any) => {
|
|
88
|
+
e.stopPropagation();
|
|
89
|
+
setIsShow(false);
|
|
90
|
+
setActiveOverlay(null);
|
|
91
|
+
if (closeOverlay) {
|
|
92
|
+
closeOverlay(false);
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
[closeOverlay, setActiveOverlay]
|
|
96
|
+
);
|
|
93
97
|
|
|
94
98
|
useEffect(() => {
|
|
95
99
|
if (show) {
|