@gardenfi/garden-book 0.1.76 → 0.1.78

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
@@ -4297,8 +4297,8 @@ var lottie$1 = { exports: {} };
4297
4297
  var Y = this.props;
4298
4298
  if (P === 1 && M === 0 && R === 0 && I === 0 && G === 0 && U === 1 && K === 0 && J === 0 && re === 0 && le === 0 && fe === 1 && pe === 0)
4299
4299
  return Y[12] = Y[12] * P + Y[15] * ue, Y[13] = Y[13] * U + Y[15] * ne, Y[14] = Y[14] * fe + Y[15] * oe, Y[15] *= te, this._identityCalculated = !1, this;
4300
- var Te = Y[0], Ee = Y[1], Pe = Y[2], ye = Y[3], be = Y[4], Se = Y[5], me = Y[6], Ce = Y[7], Le = Y[8], xe = Y[9], Me = Y[10], we = Y[11], Ae = Y[12], _e = Y[13], Ve = Y[14], ke = Y[15];
4301
- return Y[0] = Te * P + Ee * G + Pe * re + ye * ue, Y[1] = Te * M + Ee * U + Pe * le + ye * ne, Y[2] = Te * R + Ee * K + Pe * fe + ye * oe, Y[3] = Te * I + Ee * J + Pe * pe + ye * te, Y[4] = be * P + Se * G + me * re + Ce * ue, Y[5] = be * M + Se * U + me * le + Ce * ne, Y[6] = be * R + Se * K + me * fe + Ce * oe, Y[7] = be * I + Se * J + me * pe + Ce * te, Y[8] = Le * P + xe * G + Me * re + we * ue, Y[9] = Le * M + xe * U + Me * le + we * ne, Y[10] = Le * R + xe * K + Me * fe + we * oe, Y[11] = Le * I + xe * J + Me * pe + we * te, Y[12] = Ae * P + _e * G + Ve * re + ke * ue, Y[13] = Ae * M + _e * U + Ve * le + ke * ne, Y[14] = Ae * R + _e * K + Ve * fe + ke * oe, Y[15] = Ae * I + _e * J + Ve * pe + ke * te, this._identityCalculated = !1, this;
4300
+ var Te = Y[0], Ee = Y[1], Pe = Y[2], ye = Y[3], be = Y[4], we = Y[5], me = Y[6], Ce = Y[7], Le = Y[8], xe = Y[9], Me = Y[10], Se = Y[11], Ae = Y[12], _e = Y[13], Ve = Y[14], ke = Y[15];
4301
+ return Y[0] = Te * P + Ee * G + Pe * re + ye * ue, Y[1] = Te * M + Ee * U + Pe * le + ye * ne, Y[2] = Te * R + Ee * K + Pe * fe + ye * oe, Y[3] = Te * I + Ee * J + Pe * pe + ye * te, Y[4] = be * P + we * G + me * re + Ce * ue, Y[5] = be * M + we * U + me * le + Ce * ne, Y[6] = be * R + we * K + me * fe + Ce * oe, Y[7] = be * I + we * J + me * pe + Ce * te, Y[8] = Le * P + xe * G + Me * re + Se * ue, Y[9] = Le * M + xe * U + Me * le + Se * ne, Y[10] = Le * R + xe * K + Me * fe + Se * oe, Y[11] = Le * I + xe * J + Me * pe + Se * te, Y[12] = Ae * P + _e * G + Ve * re + ke * ue, Y[13] = Ae * M + _e * U + Ve * le + ke * ne, Y[14] = Ae * R + _e * K + Ve * fe + ke * oe, Y[15] = Ae * I + _e * J + Ve * pe + ke * te, this._identityCalculated = !1, this;
4302
4302
  }
4303
4303
  function A(P) {
4304
4304
  var M = P.props;
@@ -6792,7 +6792,7 @@ var lottie$1 = { exports: {} };
6792
6792
  m = p.length, l = 0, f = 0;
6793
6793
  var q = e.finalSize * 1.2 * 0.714, N = !0, L, k, P, M, R;
6794
6794
  M = n.length;
6795
- var I, G = -1, U, K, J, re = x, le = d, fe = C, pe = -1, ue, ne, oe, te, Y, Te, Ee, Pe, ye = "", be = this.defaultPropsArray, Se;
6795
+ var I, G = -1, U, K, J, re = x, le = d, fe = C, pe = -1, ue, ne, oe, te, Y, Te, Ee, Pe, ye = "", be = this.defaultPropsArray, we;
6796
6796
  if (e.j === 2 || e.j === 1) {
6797
6797
  var me = 0, Ce = 0, Le = e.j === 2 ? -0.5 : -1, xe = 0, Me = !0;
6798
6798
  for (u = 0; u < m; u += 1)
@@ -6810,7 +6810,7 @@ var lottie$1 = { exports: {} };
6810
6810
  }
6811
6811
  for (u = 0; u < m; u += 1) {
6812
6812
  if (a.reset(), ue = 1, p[u].n)
6813
- l = 0, f += e.yOffset, f += N ? 1 : 0, x = re, N = !1, this._hasMaskedPath && (d = le, C = fe, T = E[d].points, S = T[C - 1], y = T[C], _ = y.partialLength, A = 0), ye = "", Pe = "", Te = "", Se = "", be = this.defaultPropsArray;
6813
+ l = 0, f += e.yOffset, f += N ? 1 : 0, x = re, N = !1, this._hasMaskedPath && (d = le, C = fe, T = E[d].points, S = T[C - 1], y = T[C], _ = y.partialLength, A = 0), ye = "", Pe = "", Te = "", we = "", be = this.defaultPropsArray;
6814
6814
  else {
6815
6815
  if (this._hasMaskedPath) {
6816
6816
  if (pe !== p[u].line) {
@@ -6825,11 +6825,11 @@ var lottie$1 = { exports: {} };
6825
6825
  pe = p[u].line;
6826
6826
  }
6827
6827
  G !== p[u].ind && (p[G] && (x += p[G].extra), x += p[u].an / 2, G = p[u].ind), x += i[0] * p[u].an * 5e-3;
6828
- var we = 0;
6828
+ var Se = 0;
6829
6829
  for (P = 0; P < M; P += 1)
6830
- L = n[P].a, L.p.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? we += L.p.v[0] * I[0] : we += L.p.v[0] * I), L.a.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? we += L.a.v[0] * I[0] : we += L.a.v[0] * I);
6830
+ L = n[P].a, L.p.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Se += L.p.v[0] * I[0] : Se += L.p.v[0] * I), L.a.propType && (k = n[P].s, I = k.getMult(p[u].anIndexes[P], s.a[P].s.totalChars), I.length ? Se += L.a.v[0] * I[0] : Se += L.a.v[0] * I);
6831
6831
  for (g = !0, this._pathData.a.v && (x = p[0].an * 0.5 + (V - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * G / (m - 1), x += this._pathData.f.v); g; )
6832
- A + _ >= x + we || !T ? (B = (x + we - A) / y.partialLength, K = S.point[0] + (y.point[0] - S.point[0]) * B, J = S.point[1] + (y.point[1] - S.point[1]) * B, a.translate(-i[0] * p[u].an * 5e-3, -(i[1] * q) * 0.01), g = !1) : T && (A += y.partialLength, C += 1, C >= T.length && (C = 0, d += 1, E[d] ? T = E[d].points : Z.v.c ? (C = 0, d = 0, T = E[d].points) : (A -= y.partialLength, T = null)), T && (S = y, y = T[C], _ = y.partialLength));
6832
+ A + _ >= x + Se || !T ? (B = (x + Se - A) / y.partialLength, K = S.point[0] + (y.point[0] - S.point[0]) * B, J = S.point[1] + (y.point[1] - S.point[1]) * B, a.translate(-i[0] * p[u].an * 5e-3, -(i[1] * q) * 0.01), g = !1) : T && (A += y.partialLength, C += 1, C >= T.length && (C = 0, d += 1, E[d] ? T = E[d].points : Z.v.c ? (C = 0, d = 0, T = E[d].points) : (A -= y.partialLength, T = null)), T && (S = y, y = T[C], _ = y.partialLength));
6833
6833
  U = p[u].an / 2 - p[u].add, a.translate(-U, 0, 0);
6834
6834
  } else
6835
6835
  U = p[u].an / 2 - p[u].add, a.translate(-U, 0, 0), a.translate(-i[0] * p[u].an * 5e-3, -i[1] * q * 0.01, 0);
@@ -6870,9 +6870,9 @@ var lottie$1 = { exports: {} };
6870
6870
  }
6871
6871
  a.translate(0, -e.ls), a.translate(U, 0, 0), a.translate(i[0] * p[u].an * 5e-3, i[1] * q * 0.01, 0), l += p[u].l + e.tr * 1e-3 * e.finalSize;
6872
6872
  }
6873
- o === "html" ? ye = a.toCSS() : o === "svg" ? ye = a.to2dCSS() : be = [a.props[0], a.props[1], a.props[2], a.props[3], a.props[4], a.props[5], a.props[6], a.props[7], a.props[8], a.props[9], a.props[10], a.props[11], a.props[12], a.props[13], a.props[14], a.props[15]], Se = ue;
6873
+ o === "html" ? ye = a.toCSS() : o === "svg" ? ye = a.to2dCSS() : be = [a.props[0], a.props[1], a.props[2], a.props[3], a.props[4], a.props[5], a.props[6], a.props[7], a.props[8], a.props[9], a.props[10], a.props[11], a.props[12], a.props[13], a.props[14], a.props[15]], we = ue;
6874
6874
  }
6875
- c <= u ? (R = new LetterProps(Se, Te, Ee, Pe, ye, be), this.renderedLetters.push(R), c += 1, this.lettersChangedFlag = !0) : (R = this.renderedLetters[u], this.lettersChangedFlag = R.update(Se, Te, Ee, Pe, ye, be) || this.lettersChangedFlag);
6875
+ c <= u ? (R = new LetterProps(we, Te, Ee, Pe, ye, be), this.renderedLetters.push(R), c += 1, this.lettersChangedFlag = !0) : (R = this.renderedLetters[u], this.lettersChangedFlag = R.update(we, Te, Ee, Pe, ye, be) || this.lettersChangedFlag);
6876
6876
  }
6877
6877
  }
6878
6878
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -12570,6 +12570,22 @@ const ArrowDownwardIcon = (e) => /* @__PURE__ */ jsx(
12570
12570
  )
12571
12571
  ]
12572
12572
  }
12573
+ ), DeleteIcon = (e) => /* @__PURE__ */ jsx(
12574
+ "svg",
12575
+ {
12576
+ width: "14",
12577
+ height: "16",
12578
+ viewBox: "0 0 14 16",
12579
+ fill: "#554B6A",
12580
+ xmlns: "http://www.w3.org/2000/svg",
12581
+ ...e,
12582
+ children: /* @__PURE__ */ jsx(
12583
+ "path",
12584
+ {
12585
+ d: "M2.83301 15.5C2.37467 15.5 1.98231 15.3368 1.65592 15.0104C1.32954 14.684 1.16634 14.2917 1.16634 13.8333V3H0.333008V1.33333H4.49967V0.5H9.49967V1.33333H13.6663V3H12.833V13.8333C12.833 14.2917 12.6698 14.684 12.3434 15.0104C12.017 15.3368 11.6247 15.5 11.1663 15.5H2.83301ZM11.1663 3H2.83301V13.8333H11.1663V3ZM4.49967 12.1667H6.16634V4.66667H4.49967V12.1667ZM7.83301 12.1667H9.49967V4.66667H7.83301V12.1667Z"
12586
+ }
12587
+ )
12588
+ }
12573
12589
  ), ArbitrumLogo = (e) => /* @__PURE__ */ jsxs(
12574
12590
  "svg",
12575
12591
  {
@@ -14206,7 +14222,62 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
14206
14222
  t ? /* @__PURE__ */ jsx("img", { src: t, className: "gf-absolute gf-right-0 gf-w-5 gf-h-5 gf-z-20 gf-rounded-full" }) : null
14207
14223
  ]
14208
14224
  }
14209
- ), appLink = "https://app.garden.finance", websiteLink = "https://garden.finance", footerDetails = [
14225
+ ), GradientScroll = ({
14226
+ children: e,
14227
+ className: t,
14228
+ height: i,
14229
+ gradientHeight: n = 24,
14230
+ ...s
14231
+ }) => {
14232
+ const [a, o] = useState(!0), [c, l] = useState(!0), f = useRef(null), u = () => {
14233
+ if (f.current) {
14234
+ const { scrollTop: m, scrollHeight: p, clientHeight: b } = f.current;
14235
+ o(m + b < p), l(p - m !== p);
14236
+ }
14237
+ };
14238
+ return useEffect(() => {
14239
+ u();
14240
+ }, []), /* @__PURE__ */ jsxs(
14241
+ "div",
14242
+ {
14243
+ className: cn(
14244
+ "gf-w-full gf-bg-white gf-relative gf-overflow-hidden",
14245
+ t
14246
+ ),
14247
+ style: { height: typeof i == "number" ? `${i}px` : i },
14248
+ ...s,
14249
+ children: [
14250
+ /* @__PURE__ */ jsx(
14251
+ "div",
14252
+ {
14253
+ className: "gf-h-full gf-w-full gf-overflow-auto gf-no-scrollbar",
14254
+ onScroll: u,
14255
+ ref: f,
14256
+ children: e
14257
+ }
14258
+ ),
14259
+ c && /* @__PURE__ */ jsx(
14260
+ "div",
14261
+ {
14262
+ 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",
14263
+ style: {
14264
+ height: typeof n == "number" ? `${n}px` : n
14265
+ }
14266
+ }
14267
+ ),
14268
+ a && /* @__PURE__ */ jsx(
14269
+ "div",
14270
+ {
14271
+ 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",
14272
+ style: {
14273
+ height: typeof n == "number" ? `${n}px` : n
14274
+ }
14275
+ }
14276
+ )
14277
+ ]
14278
+ }
14279
+ );
14280
+ }, appLink = "https://app.garden.finance", websiteLink = "https://garden.finance", footerDetails = [
14210
14281
  {
14211
14282
  title: "Application",
14212
14283
  targetSame: !0,
@@ -14919,7 +14990,7 @@ var build = { exports: {} };
14919
14990
  return O.__proto__ = W, O;
14920
14991
  }, be(H, F);
14921
14992
  }
14922
- var Se = function(H) {
14993
+ var we = function(H) {
14923
14994
  function F(j) {
14924
14995
  var z;
14925
14996
  (function(he, ce) {
@@ -14942,12 +15013,12 @@ var build = { exports: {} };
14942
15013
  } }]) && Y(O.prototype, W), Object.defineProperty(O, "prototype", { writable: !1 }), O;
14943
15014
  var O, W;
14944
15015
  }(a().Component);
14945
- Se.propTypes = { afterLoad: o.PropTypes.func, beforeLoad: o.PropTypes.func, useIntersectionObserver: o.PropTypes.bool, visibleByDefault: o.PropTypes.bool }, Se.defaultProps = { afterLoad: function() {
15016
+ we.propTypes = { afterLoad: o.PropTypes.func, beforeLoad: o.PropTypes.func, useIntersectionObserver: o.PropTypes.bool, visibleByDefault: o.PropTypes.bool }, we.defaultProps = { afterLoad: function() {
14946
15017
  return {};
14947
15018
  }, beforeLoad: function() {
14948
15019
  return {};
14949
15020
  }, useIntersectionObserver: !0, visibleByDefault: !1 };
14950
- const me = Se;
15021
+ const me = we;
14951
15022
  function Ce(H) {
14952
15023
  return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(F) {
14953
15024
  return typeof F;
@@ -14970,14 +15041,14 @@ var build = { exports: {} };
14970
15041
  for (var F = 1; F < arguments.length; F++) {
14971
15042
  var O = arguments[F] != null ? arguments[F] : {};
14972
15043
  F % 2 ? xe(Object(O), !0).forEach(function(W) {
14973
- we(H, W, O[W]);
15044
+ Se(H, W, O[W]);
14974
15045
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(H, Object.getOwnPropertyDescriptors(O)) : xe(Object(O)).forEach(function(W) {
14975
15046
  Object.defineProperty(H, W, Object.getOwnPropertyDescriptor(O, W));
14976
15047
  });
14977
15048
  }
14978
15049
  return H;
14979
15050
  }
14980
- function we(H, F, O) {
15051
+ function Se(H, F, O) {
14981
15052
  return (F = Ve(F)) in H ? Object.defineProperty(H, F, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : H[F] = O, H;
14982
15053
  }
14983
15054
  function Ae() {
@@ -19853,6 +19924,7 @@ export {
19853
19924
  CopyIcon,
19854
19925
  DLCBTC,
19855
19926
  Debridge,
19927
+ DeleteIcon,
19856
19928
  Dodo,
19857
19929
  EditIcon,
19858
19930
  EthereumLogo,
@@ -19867,6 +19939,7 @@ export {
19867
19939
  GardenLogo,
19868
19940
  GardenLogoText,
19869
19941
  GardenStrokeIcon,
19942
+ GradientScroll,
19870
19943
  InfinityIcon,
19871
19944
  InfoBadge,
19872
19945
  InfoIcon,