prisma-goat 0.6.5 → 0.6.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.js +25 -24
- package/dist/prisma-goat.umd.cjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/prisma-goat.js
CHANGED
|
@@ -6124,11 +6124,11 @@ const zs = N(
|
|
|
6124
6124
|
const r = {
|
|
6125
6125
|
goatData: "bg-zinc-900",
|
|
6126
6126
|
secondary: "bg-[#ededed]",
|
|
6127
|
-
experiences: "bg-
|
|
6127
|
+
experiences: "bg-zinc-900"
|
|
6128
6128
|
}, a = {
|
|
6129
6129
|
goatData: "#9a6d79",
|
|
6130
6130
|
secondary: "#1f2937e7",
|
|
6131
|
-
experiences: "#
|
|
6131
|
+
experiences: "#a8dbce"
|
|
6132
6132
|
}, l = {
|
|
6133
6133
|
goatData: "#ff0145",
|
|
6134
6134
|
secondary: "#ff0145",
|
|
@@ -6230,16 +6230,16 @@ const vs = () => ({
|
|
|
6230
6230
|
children: A,
|
|
6231
6231
|
className: g,
|
|
6232
6232
|
...B
|
|
6233
|
-
}) => {
|
|
6234
|
-
const
|
|
6233
|
+
}, M) => {
|
|
6234
|
+
const D = AA(null), t = M || D, e = Rt(t, { once: !1 }), w = Jg(), Q = Jg();
|
|
6235
6235
|
return O(() => {
|
|
6236
|
-
|
|
6237
|
-
}, [
|
|
6236
|
+
t.current && e && (w.start("visible"), Q.start("visible"));
|
|
6237
|
+
}, [e, w, Q, t]), /* @__PURE__ */ i("div", { ref: t, ...B, children: /* @__PURE__ */ i(
|
|
6238
6238
|
hg.div,
|
|
6239
6239
|
{
|
|
6240
6240
|
variants: vs(),
|
|
6241
6241
|
initial: "hidden",
|
|
6242
|
-
animate:
|
|
6242
|
+
animate: w,
|
|
6243
6243
|
exit: "hidden",
|
|
6244
6244
|
className: g,
|
|
6245
6245
|
children: A
|
|
@@ -6804,22 +6804,22 @@ function Ss(A) {
|
|
|
6804
6804
|
return K({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "line", attr: { x1: "15", y1: "9", x2: "9", y2: "15" }, child: [] }, { tag: "line", attr: { x1: "9", y1: "9", x2: "15", y2: "15" }, child: [] }] })(A);
|
|
6805
6805
|
}
|
|
6806
6806
|
const Xs = N(
|
|
6807
|
-
({ type: A = "success", message: g, duration: B = 5500 },
|
|
6808
|
-
const [
|
|
6807
|
+
({ type: A = "success", message: g, duration: B = 5500, ...M }, D) => {
|
|
6808
|
+
const [t, e] = h(!0), [w, Q] = h(!1), [C, s] = h(!1);
|
|
6809
6809
|
if (O(() => {
|
|
6810
|
-
const
|
|
6811
|
-
return () => clearTimeout(
|
|
6810
|
+
const n = setTimeout(() => Q(!0), B - 500);
|
|
6811
|
+
return () => clearTimeout(n);
|
|
6812
6812
|
}, [B]), O(() => {
|
|
6813
|
-
|
|
6814
|
-
}, [
|
|
6815
|
-
setTimeout(() =>
|
|
6816
|
-
}, []), !
|
|
6817
|
-
const
|
|
6813
|
+
w && setTimeout(() => e(!1), 500);
|
|
6814
|
+
}, [w]), O(() => {
|
|
6815
|
+
setTimeout(() => s(!0), 100);
|
|
6816
|
+
}, []), !t) return null;
|
|
6817
|
+
const o = {
|
|
6818
6818
|
success: { bg: "#047857", progress: "#0c583c" },
|
|
6819
6819
|
error: { bg: "#b91c1c", progress: "#911d1d" },
|
|
6820
6820
|
info: { bg: "#0369a1", progress: "#034067" },
|
|
6821
6821
|
warning: { bg: "#b45309", progress: "#8a3e07" }
|
|
6822
|
-
},
|
|
6822
|
+
}, I = {
|
|
6823
6823
|
success: /* @__PURE__ */ i(Hs, { className: "w-6 h-6 flex-shrink-0" }),
|
|
6824
6824
|
error: /* @__PURE__ */ i(Ss, { className: "w-6 h-6 flex-shrink-0" }),
|
|
6825
6825
|
info: /* @__PURE__ */ i(Ts, { className: "w-6 h-6 flex-shrink-0" }),
|
|
@@ -6828,20 +6828,21 @@ const Xs = N(
|
|
|
6828
6828
|
return /* @__PURE__ */ y(
|
|
6829
6829
|
"div",
|
|
6830
6830
|
{
|
|
6831
|
-
ref:
|
|
6832
|
-
|
|
6833
|
-
|
|
6831
|
+
ref: D,
|
|
6832
|
+
...M,
|
|
6833
|
+
className: `fixed top-5 right-5 z-50 flex items-center gap-3 p-4 rounded-lg shadow-lg text-white bg-opacity-90 transition-transform transform ${w ? "animate-slide-out" : "animate-slide-in"} max-w-sm w-full`,
|
|
6834
|
+
style: { backgroundColor: o[A].bg, zIndex: 1e4 },
|
|
6834
6835
|
children: [
|
|
6835
|
-
|
|
6836
|
+
I[A],
|
|
6836
6837
|
/* @__PURE__ */ i("span", { className: "flex-1 break-words", children: g }),
|
|
6837
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
6838
|
+
/* @__PURE__ */ i("button", { onClick: () => Q(!0), children: /* @__PURE__ */ i(Mw, { className: "w-5 h-5 flex-shrink-0" }) }),
|
|
6838
6839
|
/* @__PURE__ */ i("div", { className: "absolute bottom-0 left-0 w-full h-[6px] bg-opacity-50 overflow-hidden", children: /* @__PURE__ */ i(
|
|
6839
6840
|
"div",
|
|
6840
6841
|
{
|
|
6841
6842
|
className: "h-full transition-all ease-linear opacity-100",
|
|
6842
6843
|
style: {
|
|
6843
|
-
width:
|
|
6844
|
-
backgroundColor:
|
|
6844
|
+
width: C ? "0%" : "100%",
|
|
6845
|
+
backgroundColor: o[A].progress,
|
|
6845
6846
|
transitionDuration: `${B}ms`
|
|
6846
6847
|
}
|
|
6847
6848
|
}
|