prisma-goat 0.7.5 → 0.7.7
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/README.md +1 -1
- package/dist/prisma-goat.d.ts +6 -6
- package/dist/prisma-goat.js +38 -40
- package/dist/prisma-goat.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/prisma-goat.d.ts
CHANGED
|
@@ -355,8 +355,8 @@ logo?: string;
|
|
|
355
355
|
heightLogo?: string;
|
|
356
356
|
widthLogo?: string;
|
|
357
357
|
activeRoute?: string;
|
|
358
|
-
toggleTheme?: () => void;
|
|
359
|
-
toggeInstallApp?: () => void;
|
|
358
|
+
toggleTheme?: (e?: any) => void;
|
|
359
|
+
toggeInstallApp?: (e?: any) => void;
|
|
360
360
|
theme?: boolean;
|
|
361
361
|
InstallApp?: boolean;
|
|
362
362
|
login?: boolean;
|
|
@@ -366,7 +366,7 @@ logoGoatDataIndicator?: "logoRed" | "logoBlack" | "logo6" | "logoMagenta" | "log
|
|
|
366
366
|
imgLoadingIndicator?: string;
|
|
367
367
|
strokeWidthIndicator?: "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14";
|
|
368
368
|
handleLogout?: () => void;
|
|
369
|
-
|
|
369
|
+
light?: boolean;
|
|
370
370
|
} & {
|
|
371
371
|
children?: ReactNode | undefined;
|
|
372
372
|
} & RefAttributes<HTMLElement>>;
|
|
@@ -396,8 +396,8 @@ export declare type NavbarProps = HTMLAttributes<HTMLElement> & {
|
|
|
396
396
|
heightLogo?: string;
|
|
397
397
|
widthLogo?: string;
|
|
398
398
|
activeRoute?: string;
|
|
399
|
-
toggleTheme?: () => void;
|
|
400
|
-
toggeInstallApp?: () => void;
|
|
399
|
+
toggleTheme?: (e?: any) => void;
|
|
400
|
+
toggeInstallApp?: (e?: any) => void;
|
|
401
401
|
theme?: boolean;
|
|
402
402
|
InstallApp?: boolean;
|
|
403
403
|
login?: boolean;
|
|
@@ -407,7 +407,7 @@ export declare type NavbarProps = HTMLAttributes<HTMLElement> & {
|
|
|
407
407
|
imgLoadingIndicator?: string;
|
|
408
408
|
strokeWidthIndicator?: "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14";
|
|
409
409
|
handleLogout?: () => void;
|
|
410
|
-
|
|
410
|
+
light?: boolean;
|
|
411
411
|
};
|
|
412
412
|
|
|
413
413
|
export declare type NavProps = HTMLAttributes<HTMLElement> & {
|
package/dist/prisma-goat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y, Fragment as UM } from "react/jsx-runtime";
|
|
2
|
-
import _, { forwardRef as N, useEffect as
|
|
2
|
+
import _, { forwardRef as N, useEffect as O, useState as h, useRef as AA, createContext as SA, useContext as $, useId as zt, useCallback as TD, useLayoutEffect as vt, useMemo as Pg, useInsertionEffect as Pt, Fragment as SD, createElement as Lt, Component as Ft } from "react";
|
|
3
3
|
var XD = {
|
|
4
4
|
color: void 0,
|
|
5
5
|
size: void 0,
|
|
@@ -258,7 +258,7 @@ const Qg = N(
|
|
|
258
258
|
)
|
|
259
259
|
}
|
|
260
260
|
), V = () => _.isValidElement(w) ? _.cloneElement(w, { className: "w-5 h-5" }) : c(), a = s || A;
|
|
261
|
-
return
|
|
261
|
+
return O(() => {
|
|
262
262
|
const Y = (K) => {
|
|
263
263
|
if (e && K.key === "Enter" && !t && I) {
|
|
264
264
|
const Z = new MouseEvent("click", {
|
|
@@ -497,16 +497,14 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
497
497
|
), ge = ({
|
|
498
498
|
toggleTheme: A,
|
|
499
499
|
variant: g,
|
|
500
|
-
|
|
500
|
+
light: B = !1
|
|
501
501
|
}) => {
|
|
502
502
|
const [M, D] = h(B);
|
|
503
|
-
return
|
|
504
|
-
D(B);
|
|
505
|
-
}, [B]), /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ i(
|
|
503
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ i(
|
|
506
504
|
"button",
|
|
507
505
|
{
|
|
508
506
|
onClick: () => {
|
|
509
|
-
A && A();
|
|
507
|
+
D((w) => !w), A && A();
|
|
510
508
|
},
|
|
511
509
|
className: `w-8 h-8 flex items-center justify-center rounded-lg transition-colors ${M ? g === "secondary" || g === "vividPink" || g === "success" || g === "danger" || g === "warning" ? "bg-[#222f4e] hover:bg-[#1a243d]" : "bg-[#2e5c95] hover:bg-[#2e5c95b6]" : g === "secondary" ? "bg-gray-300 hover:bg-gray-400" : "bg-gray-100 hover:bg-gray-200"}`,
|
|
512
510
|
children: M ? /* @__PURE__ */ i(Qw, {}) : /* @__PURE__ */ i(ww, {})
|
|
@@ -524,7 +522,7 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
524
522
|
}
|
|
525
523
|
) }), OB = () => {
|
|
526
524
|
const [A, g] = h(!1);
|
|
527
|
-
return
|
|
525
|
+
return O(() => {
|
|
528
526
|
const B = () => {
|
|
529
527
|
g(window.innerWidth < 640);
|
|
530
528
|
};
|
|
@@ -555,12 +553,12 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
555
553
|
logoGoatDataIndicator: c = "logoRed",
|
|
556
554
|
imgLoadingIndicator: U = "",
|
|
557
555
|
strokeWidthIndicator: V = "10",
|
|
558
|
-
|
|
556
|
+
light: a = !1,
|
|
559
557
|
...Y
|
|
560
558
|
}, K) => {
|
|
561
559
|
var H, JA, mM, yM;
|
|
562
|
-
const Z = OB(), [u, q] = h(!1), [P, tA] = h(!1), [pA, yA] = h(!1), [RA, hA] = h(null), [
|
|
563
|
-
|
|
560
|
+
const Z = OB(), [u, q] = h(!1), [P, tA] = h(!1), [pA, yA] = h(!1), [RA, hA] = h(null), [b, x] = h(null), EA = AA(null), UA = () => q(!u), WA = () => tA(!P), $A = () => tA(!1);
|
|
561
|
+
O(() => {
|
|
564
562
|
if (typeof window < "u" && (C != null && C.events)) {
|
|
565
563
|
const m = () => {
|
|
566
564
|
yA(!0);
|
|
@@ -583,7 +581,7 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
583
581
|
}, aA = (m) => {
|
|
584
582
|
m.link && C && (C.push(m.link), q(!1));
|
|
585
583
|
};
|
|
586
|
-
return
|
|
584
|
+
return O(() => {
|
|
587
585
|
const m = (p) => {
|
|
588
586
|
EA.current && !EA.current.contains(p.target) && $A();
|
|
589
587
|
};
|
|
@@ -641,7 +639,7 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
641
639
|
children: m.label
|
|
642
640
|
}
|
|
643
641
|
),
|
|
644
|
-
|
|
642
|
+
b === p && m.description && m.description.trim() !== "" && /* @__PURE__ */ y(
|
|
645
643
|
"div",
|
|
646
644
|
{
|
|
647
645
|
style: { border: `1px ${Mg[g]} solid`, maxWidth: "260px" },
|
|
@@ -692,7 +690,7 @@ const kA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEZQAAApUCAYAAACv3FolAA
|
|
|
692
690
|
] }),
|
|
693
691
|
/* @__PURE__ */ y("div", { className: "absolute inset-y-0 right-0 items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0 flex space-x-2", children: [
|
|
694
692
|
E && /* @__PURE__ */ i(Be, { variant: g, onClick: o }),
|
|
695
|
-
n && /* @__PURE__ */ i(ge, {
|
|
693
|
+
n && /* @__PURE__ */ i(ge, { light: a, variant: g, toggleTheme: s }),
|
|
696
694
|
B ? /* @__PURE__ */ y("div", { style: { position: "relative", display: Z ? "none" : "block", marginLeft: "0.75rem" }, children: [
|
|
697
695
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
698
696
|
"button",
|
|
@@ -1006,7 +1004,7 @@ const sw = N(
|
|
|
1006
1004
|
...V
|
|
1007
1005
|
}, a) => {
|
|
1008
1006
|
var ag, cg;
|
|
1009
|
-
const [Y, K] = h(!0), [Z, u] = h(null), [q, P] = h(!1), [tA, pA] = h(null), [yA, RA] = h(!1), hA = AA(null),
|
|
1007
|
+
const [Y, K] = h(!0), [Z, u] = h(null), [q, P] = h(!1), [tA, pA] = h(null), [yA, RA] = h(!1), hA = AA(null), b = () => P(!q), x = () => P(!1), EA = () => {
|
|
1010
1008
|
K((d) => !d);
|
|
1011
1009
|
}, UA = (d, L) => {
|
|
1012
1010
|
d.subItems && d.subItems.length > 0 ? u((aA) => aA === L ? -1 : L) : d.link && Q && Q.push(d.link);
|
|
@@ -1015,7 +1013,7 @@ const sw = N(
|
|
|
1015
1013
|
}, $A = (d) => {
|
|
1016
1014
|
d.link && Q && (Q.push(d.link), x());
|
|
1017
1015
|
};
|
|
1018
|
-
return
|
|
1016
|
+
return O(() => {
|
|
1019
1017
|
if (typeof window < "u" && (Q != null && Q.events)) {
|
|
1020
1018
|
const d = () => {
|
|
1021
1019
|
RA(!0);
|
|
@@ -1178,7 +1176,7 @@ const sw = N(
|
|
|
1178
1176
|
] }, L);
|
|
1179
1177
|
}) }),
|
|
1180
1178
|
C && /* @__PURE__ */ y("div", { className: "relative ml-3", children: [
|
|
1181
|
-
/* @__PURE__ */ y("div", { id: "user-menu-button", style: { display: "flex", alignItems: "center", cursor: "pointer" }, onClick:
|
|
1179
|
+
/* @__PURE__ */ y("div", { id: "user-menu-button", style: { display: "flex", alignItems: "center", cursor: "pointer" }, onClick: b, children: [
|
|
1182
1180
|
/* @__PURE__ */ i(
|
|
1183
1181
|
"button",
|
|
1184
1182
|
{
|
|
@@ -1257,7 +1255,7 @@ const sw = N(
|
|
|
1257
1255
|
sw.displayName = "Sidebar";
|
|
1258
1256
|
const fM = ({ children: A, href: g, Viewport: B, colorButton: M, setIsOpen: D }) => {
|
|
1259
1257
|
const t = AA(null), [e, w] = h(M);
|
|
1260
|
-
return
|
|
1258
|
+
return O(() => {
|
|
1261
1259
|
const C = () => {
|
|
1262
1260
|
const s = document.getElementById(g.slice(1));
|
|
1263
1261
|
if (s) {
|
|
@@ -1313,13 +1311,13 @@ function ow(A = !0) {
|
|
|
1313
1311
|
if (g === null)
|
|
1314
1312
|
return [!0, null];
|
|
1315
1313
|
const { isPresent: B, onExitComplete: M, register: D } = g, t = zt();
|
|
1316
|
-
|
|
1314
|
+
O(() => {
|
|
1317
1315
|
A && D(t);
|
|
1318
1316
|
}, [A]);
|
|
1319
1317
|
const e = TD(() => A && M && M(t), [t, M, A]);
|
|
1320
1318
|
return !B && M ? [!1, e] : [!0];
|
|
1321
1319
|
}
|
|
1322
|
-
const HB = typeof window < "u", te = HB ? vt :
|
|
1320
|
+
const HB = typeof window < "u", te = HB ? vt : O, gA = /* @__NO_SIDE_EFFECTS__ */ (A) => A;
|
|
1323
1321
|
let XA = gA, nA = gA;
|
|
1324
1322
|
process.env.NODE_ENV !== "production" && (XA = (A, g) => {
|
|
1325
1323
|
!A && typeof console < "u" && console.warn(g);
|
|
@@ -1586,7 +1584,7 @@ function Zw(A, g, B, M, D) {
|
|
|
1586
1584
|
const r = B[se], G = AA(!!r && !(!((t = window.MotionHandoffIsComplete) === null || t === void 0) && t.call(window, r)) && ((e = window.MotionHasOptimisedAnimation) === null || e === void 0 ? void 0 : e.call(window, r)));
|
|
1587
1585
|
return te(() => {
|
|
1588
1586
|
I && (E.current = !0, window.MotionIsMounted = !0, I.updateFeatures(), xB.render(I.render), G.current && I.animationState && I.animationState.animateChanges());
|
|
1589
|
-
}),
|
|
1587
|
+
}), O(() => {
|
|
1590
1588
|
I && (!G.current && I.animationState && I.animationState.animateChanges(), G.current && (queueMicrotask(() => {
|
|
1591
1589
|
var l;
|
|
1592
1590
|
(l = window.MotionHandoffMarkAsComplete) === null || l === void 0 || l.call(window, r);
|
|
@@ -4002,20 +4000,20 @@ function NC(A) {
|
|
|
4002
4000
|
const { prevResolvedValues: tA = {} } = c, pA = {
|
|
4003
4001
|
...tA,
|
|
4004
4002
|
...P
|
|
4005
|
-
}, yA = (
|
|
4006
|
-
Z = !0, I.has(
|
|
4007
|
-
const x = A.getValue(
|
|
4003
|
+
}, yA = (b) => {
|
|
4004
|
+
Z = !0, I.has(b) && (u = !0, I.delete(b)), c.needsAnimating[b] = !0;
|
|
4005
|
+
const x = A.getValue(b);
|
|
4008
4006
|
x && (x.liveStyle = !1);
|
|
4009
4007
|
};
|
|
4010
|
-
for (const
|
|
4011
|
-
const x = P[
|
|
4012
|
-
if (n.hasOwnProperty(
|
|
4008
|
+
for (const b in pA) {
|
|
4009
|
+
const x = P[b], EA = tA[b];
|
|
4010
|
+
if (n.hasOwnProperty(b))
|
|
4013
4011
|
continue;
|
|
4014
4012
|
let UA = !1;
|
|
4015
|
-
eB(x) && eB(EA) ? UA = !Ue(x, EA) : UA = x !== EA, UA ? x != null ? yA(
|
|
4013
|
+
eB(x) && eB(EA) ? UA = !Ue(x, EA) : UA = x !== EA, UA ? x != null ? yA(b) : I.add(b) : x !== void 0 && I.has(b) ? yA(b) : c.protectedKeys[b] = !0;
|
|
4016
4014
|
}
|
|
4017
|
-
c.prevProp = U, c.prevResolvedValues = P, c.isActive && (n = { ...n, ...P }), M && A.blockInitialAnimation && (Z = !1), Z && (!(Y && K) || u) && o.push(...q.map((
|
|
4018
|
-
animation:
|
|
4015
|
+
c.prevProp = U, c.prevResolvedValues = P, c.isActive && (n = { ...n, ...P }), M && A.blockInitialAnimation && (Z = !1), Z && (!(Y && K) || u) && o.push(...q.map((b) => ({
|
|
4016
|
+
animation: b,
|
|
4019
4017
|
options: { type: l }
|
|
4020
4018
|
})));
|
|
4021
4019
|
}
|
|
@@ -6077,7 +6075,7 @@ function zs(A, g, { root: B, margin: M, amount: D = "some" } = {}) {
|
|
|
6077
6075
|
}
|
|
6078
6076
|
function ht(A, { root: g, margin: B, amount: M, once: D = !1 } = {}) {
|
|
6079
6077
|
const [t, e] = h(!1);
|
|
6080
|
-
return
|
|
6078
|
+
return O(() => {
|
|
6081
6079
|
if (!A.current || D && t)
|
|
6082
6080
|
return;
|
|
6083
6081
|
const w = () => (e(!0), D ? void 0 : () => e(!1)), Q = {
|
|
@@ -6098,7 +6096,7 @@ const vs = N(
|
|
|
6098
6096
|
...t
|
|
6099
6097
|
}, e) => {
|
|
6100
6098
|
const w = OB(), [Q, C] = h(!1), [s, o] = h(void 0), [I] = h(""), n = g.reduce((V, a) => (V[a.refId] = AA(null), V), {}), E = () => C(!Q);
|
|
6101
|
-
|
|
6099
|
+
O(() => {
|
|
6102
6100
|
g.forEach((a) => {
|
|
6103
6101
|
const Y = n[a.refId];
|
|
6104
6102
|
if (Y != null && Y.current) {
|
|
@@ -6117,7 +6115,7 @@ const vs = N(
|
|
|
6117
6115
|
});
|
|
6118
6116
|
});
|
|
6119
6117
|
};
|
|
6120
|
-
}, [I, g, n]),
|
|
6118
|
+
}, [I, g, n]), O(() => {
|
|
6121
6119
|
const V = window.matchMedia("(min-width: 640px)"), a = () => {
|
|
6122
6120
|
V.matches && Q && C(!1);
|
|
6123
6121
|
};
|
|
@@ -6236,7 +6234,7 @@ const Ps = () => ({
|
|
|
6236
6234
|
...B
|
|
6237
6235
|
}, M) => {
|
|
6238
6236
|
const D = AA(null), t = M || D, e = ht(t, { once: !1 }), w = vg(), Q = vg();
|
|
6239
|
-
return
|
|
6237
|
+
return O(() => {
|
|
6240
6238
|
t.current && e && (w.start("visible"), Q.start("visible"));
|
|
6241
6239
|
}, [e, w, Q, t]), /* @__PURE__ */ i("div", { ref: t, ...B, children: /* @__PURE__ */ i(
|
|
6242
6240
|
zg.div,
|
|
@@ -6275,7 +6273,7 @@ const OA = N(
|
|
|
6275
6273
|
tertiary: "#d4d3d3",
|
|
6276
6274
|
experiences: "#a8dbce"
|
|
6277
6275
|
};
|
|
6278
|
-
return
|
|
6276
|
+
return O(() => {
|
|
6279
6277
|
C && (s.start("visible"), o.start("visible"));
|
|
6280
6278
|
}, [C, s, o]), /* @__PURE__ */ y("div", { ref: Q, ...t, className: "relative overflow-hidden w-fit", children: [
|
|
6281
6279
|
/* @__PURE__ */ i(
|
|
@@ -6343,7 +6341,7 @@ const Ls = N(
|
|
|
6343
6341
|
}, V = () => {
|
|
6344
6342
|
n((u) => (u + 1) % A.length);
|
|
6345
6343
|
};
|
|
6346
|
-
if (
|
|
6344
|
+
if (O(() => (A.length > 0 && (E.current = setInterval(V, B)), () => {
|
|
6347
6345
|
E.current && clearInterval(E.current);
|
|
6348
6346
|
}), [B, A.length]), !A || A.length === 0)
|
|
6349
6347
|
return /* @__PURE__ */ i("header", { ...s, className: "relative w-full overflow-hidden", style: { height: M }, children: /* @__PURE__ */ i("p", { className: "text-center text-gray-500", children: "No hay imágenes para mostrar" }) });
|
|
@@ -6810,12 +6808,12 @@ function Xs(A) {
|
|
|
6810
6808
|
const Ns = N(
|
|
6811
6809
|
({ type: A = "success", message: g, duration: B = 5500, ...M }, D) => {
|
|
6812
6810
|
const t = OB(), [e, w] = h(!0), [Q, C] = h(!1), [s, o] = h(!1);
|
|
6813
|
-
if (
|
|
6811
|
+
if (O(() => {
|
|
6814
6812
|
const E = setTimeout(() => C(!0), B - 500);
|
|
6815
6813
|
return () => clearTimeout(E);
|
|
6816
|
-
}, [B]),
|
|
6814
|
+
}, [B]), O(() => {
|
|
6817
6815
|
Q && setTimeout(() => w(!1), 500);
|
|
6818
|
-
}, [Q]),
|
|
6816
|
+
}, [Q]), O(() => {
|
|
6819
6817
|
setTimeout(() => o(!0), 100);
|
|
6820
6818
|
}, []), !e) return null;
|
|
6821
6819
|
const I = {
|
|
@@ -6922,7 +6920,7 @@ const Ao = N(
|
|
|
6922
6920
|
const l = document.getElementById(G.slice(1));
|
|
6923
6921
|
l && l.scrollIntoView({ behavior: "smooth" });
|
|
6924
6922
|
};
|
|
6925
|
-
|
|
6923
|
+
O(() => {
|
|
6926
6924
|
if (s.current) {
|
|
6927
6925
|
const G = s.current;
|
|
6928
6926
|
G.muted = o;
|