@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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +18 -18
- package/dist/index.es.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/widgets/sections/RewardsPreviewModal/RewardsPreviewModal.d.ts +0 -1
- package/dist/widgets/sections/RewardsSubsection/RewardsSubsection.d.ts +3 -1
- package/dist/widgets/sections/RewardsSubsection/RewardsSubsection.js +2 -2
- package/dist/widgets/sections/RewardsSubsection/RewardsSubsection.stories.d.ts +1 -0
- package/dist/widgets/sections/RewardsSubsection/RewardsSubsection.stories.js +36 -0
- package/package.json +6 -6
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((
|
|
5319
|
-
var
|
|
5320
|
-
const
|
|
5321
|
-
|
|
5322
|
-
((
|
|
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:
|
|
5329
|
-
currencyIcon:
|
|
5330
|
-
currencyName:
|
|
5331
|
-
placeholder:
|
|
5332
|
-
displayBalance:
|
|
5333
|
-
balanceDetails:
|
|
5334
|
-
min:
|
|
5335
|
-
step:
|
|
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:
|
|
5341
|
+
amountUsd: a,
|
|
5342
5342
|
disabled: !0,
|
|
5343
|
-
subtitle:
|
|
5343
|
+
subtitle: n.chainName
|
|
5344
5344
|
},
|
|
5345
|
-
|
|
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",
|