@babylonlabs-io/core-ui 1.19.0 → 1.20.0

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.es.js CHANGED
@@ -5314,38 +5314,38 @@ const zl = ({
5314
5314
  /* @__PURE__ */ c(we, { variant: "contained", color: "primary", onClick: i, className: "w-full sm:flex-1 sm:order-2", disabled: t, children: t ? "Processing..." : "Proceed" }),
5315
5315
  /* @__PURE__ */ c(we, { variant: "outlined", color: "primary", onClick: n, className: "w-full sm:flex-1 sm:order-1", children: "Cancel" })
5316
5316
  ] })
5317
- ] }), ql = ({ rewards: e }) => /* @__PURE__ */ w(Rt, { className: "flex w-full flex-col content-center justify-between gap-4", children: [
5318
- e.map((t, r) => {
5319
- var s;
5320
- const n = parseFloat(String(t.amount)), i = Pi(
5321
- n,
5322
- ((s = t.balanceDetails) == null ? void 0 : s.price) ?? 0,
5317
+ ] }), ql = ({ rewards: e, onClick: t, disabled: r }) => /* @__PURE__ */ w(Rt, { className: "flex w-full flex-col content-center justify-between gap-4", children: [
5318
+ e.map((n, i) => {
5319
+ var o;
5320
+ const s = parseFloat(String(n.amount)), a = Pi(
5321
+ s,
5322
+ ((o = n.balanceDetails) == null ? void 0 : o.price) ?? 0,
5323
5323
  { zeroDisplay: "$0.00" }
5324
5324
  );
5325
5325
  return /* @__PURE__ */ c(
5326
5326
  Hr,
5327
5327
  {
5328
- amount: t.amount,
5329
- currencyIcon: t.currencyIcon,
5330
- currencyName: t.currencyName,
5331
- placeholder: t.placeholder ?? "Enter Amount",
5332
- displayBalance: t.displayBalance,
5333
- balanceDetails: t.balanceDetails,
5334
- min: t.min ?? "0",
5335
- step: t.step ?? "any",
5328
+ amount: n.amount,
5329
+ currencyIcon: n.currencyIcon,
5330
+ currencyName: n.currencyName,
5331
+ placeholder: n.placeholder ?? "Enter Amount",
5332
+ displayBalance: n.displayBalance,
5333
+ balanceDetails: n.balanceDetails,
5334
+ min: n.min ?? "0",
5335
+ step: n.step ?? "any",
5336
5336
  autoFocus: !1,
5337
5337
  onChange: () => {
5338
5338
  },
5339
5339
  onKeyDown: () => {
5340
5340
  },
5341
- amountUsd: i,
5341
+ amountUsd: a,
5342
5342
  disabled: !0,
5343
- subtitle: t.chainName
5343
+ subtitle: n.chainName
5344
5344
  },
5345
- r
5345
+ i
5346
5346
  );
5347
5347
  }),
5348
- /* @__PURE__ */ c(we, { children: "Claim" })
5348
+ /* @__PURE__ */ c(we, { onClick: t, disabled: r, children: "Claim" })
5349
5349
  ] }), nl = ({ size: e = "md" }) => /* @__PURE__ */ c("div", { className: {
5350
5350
  sm: "mt-2",
5351
5351
  md: "mt-4",