@gardenfi/garden-book 0.1.84 → 0.1.86
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/ui.es.js
CHANGED
|
@@ -14230,23 +14230,26 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14230
14230
|
className: t,
|
|
14231
14231
|
height: i,
|
|
14232
14232
|
gradientHeight: n = 24,
|
|
14233
|
-
|
|
14233
|
+
onClose: s = !1,
|
|
14234
|
+
...a
|
|
14234
14235
|
}) => {
|
|
14235
|
-
const [
|
|
14236
|
-
if (
|
|
14237
|
-
const { scrollTop:
|
|
14238
|
-
|
|
14236
|
+
const [o, c] = useState(!0), [l, f] = useState(!0), u = useRef(null), m = useRef(null), p = () => {
|
|
14237
|
+
if (u.current) {
|
|
14238
|
+
const { scrollTop: b, scrollHeight: C, clientHeight: y } = u.current;
|
|
14239
|
+
c(b + y < C), f(b > 0);
|
|
14239
14240
|
}
|
|
14240
14241
|
};
|
|
14241
14242
|
return useEffect(() => {
|
|
14242
|
-
|
|
14243
|
-
|
|
14244
|
-
m
|
|
14245
|
-
|
|
14246
|
-
|
|
14243
|
+
s && u.current && (u.current.scrollTop = 0);
|
|
14244
|
+
}, [s]), useEffect(() => {
|
|
14245
|
+
const b = u.current, C = m.current;
|
|
14246
|
+
if (!b || !C) return;
|
|
14247
|
+
p();
|
|
14248
|
+
const y = new ResizeObserver(() => {
|
|
14249
|
+
p();
|
|
14247
14250
|
});
|
|
14248
|
-
return
|
|
14249
|
-
|
|
14251
|
+
return y.observe(b), y.observe(C), () => {
|
|
14252
|
+
y.disconnect();
|
|
14250
14253
|
};
|
|
14251
14254
|
}, []), /* @__PURE__ */ jsxs(
|
|
14252
14255
|
"div",
|
|
@@ -14256,18 +14259,18 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14256
14259
|
t
|
|
14257
14260
|
),
|
|
14258
14261
|
style: { height: typeof i == "number" ? `${i}px` : i },
|
|
14259
|
-
...
|
|
14262
|
+
...a,
|
|
14260
14263
|
children: [
|
|
14261
14264
|
/* @__PURE__ */ jsx(
|
|
14262
14265
|
"div",
|
|
14263
14266
|
{
|
|
14264
14267
|
className: "gf-h-full gf-w-full gf-overflow-auto gf-no-scrollbar",
|
|
14265
|
-
onScroll:
|
|
14266
|
-
ref:
|
|
14267
|
-
children: /* @__PURE__ */ jsx("div", { ref:
|
|
14268
|
+
onScroll: p,
|
|
14269
|
+
ref: u,
|
|
14270
|
+
children: /* @__PURE__ */ jsx("div", { ref: m, children: e })
|
|
14268
14271
|
}
|
|
14269
14272
|
),
|
|
14270
|
-
|
|
14273
|
+
l && /* @__PURE__ */ jsx(
|
|
14271
14274
|
"div",
|
|
14272
14275
|
{
|
|
14273
14276
|
className: " gf-w-full gf-absolute gf-top-0 gf-left-0 gf-z-40 gf-bg-gradient-to-b gf-from-white gf-via-white/80 gf-to-transparent gf-pointer-events-none",
|
|
@@ -14276,7 +14279,7 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14276
14279
|
}
|
|
14277
14280
|
}
|
|
14278
14281
|
),
|
|
14279
|
-
|
|
14282
|
+
o && /* @__PURE__ */ jsx(
|
|
14280
14283
|
"div",
|
|
14281
14284
|
{
|
|
14282
14285
|
className: " gf-w-full gf-absolute gf-bottom-0 gf-left-0 gf-z-40 gf-bg-gradient-to-t gf-from-white gf-via-white/80 gf-to-transparent gf-pointer-events-none",
|
|
@@ -14301,7 +14304,7 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14301
14304
|
},
|
|
14302
14305
|
{
|
|
14303
14306
|
title: "Stake",
|
|
14304
|
-
link: "https://
|
|
14307
|
+
link: "https://app.garden.finance/stake",
|
|
14305
14308
|
isExternal: !0,
|
|
14306
14309
|
withReferrer: !0
|
|
14307
14310
|
}
|
|
@@ -14342,7 +14345,7 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
|
|
|
14342
14345
|
links: [
|
|
14343
14346
|
{
|
|
14344
14347
|
title: "Analytics",
|
|
14345
|
-
link: "https://dune.com/
|
|
14348
|
+
link: "https://dune.com/garden_finance/gardenfinance",
|
|
14346
14349
|
isExternal: !0
|
|
14347
14350
|
},
|
|
14348
14351
|
{
|