@edgex-web/components 0.1.0-beta.1 → 0.1.0-beta.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Deposit/src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAQnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAcvC,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Deposit/src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAQnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAcvC,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiQ1C,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -6359,86 +6359,99 @@ const Es = /* @__PURE__ */ N.forwardRef(td), xs = ({
|
|
|
6359
6359
|
r
|
|
6360
6360
|
]);
|
|
6361
6361
|
return e ? il.createPortal(
|
|
6362
|
-
/* @__PURE__ */ E.jsxs(
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
),
|
|
6371
|
-
/* @__PURE__ */ E.jsx("div", { className: "fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center", children: /* @__PURE__ */ E.jsxs("div", { className: "relative w-[420px] max-h-[85vh] bg-fill-page-secondary overflow-auto rounded-lg p-6 shadow-xl", children: [
|
|
6372
|
-
/* @__PURE__ */ E.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
6373
|
-
/* @__PURE__ */ E.jsx("h2", { className: "text-lg font-semibold text-white", children: "Deposit" }),
|
|
6362
|
+
/* @__PURE__ */ E.jsxs(
|
|
6363
|
+
"div",
|
|
6364
|
+
{
|
|
6365
|
+
className: "fixed top-0 left-0 right-0 bottom-0 z-[999] w-screen h-screen",
|
|
6366
|
+
style: {
|
|
6367
|
+
zIndex: 999
|
|
6368
|
+
},
|
|
6369
|
+
children: [
|
|
6374
6370
|
/* @__PURE__ */ E.jsx(
|
|
6375
|
-
"
|
|
6371
|
+
"div",
|
|
6376
6372
|
{
|
|
6377
|
-
className: "
|
|
6373
|
+
className: "fixed top-0 left-0 right-0 bottom-0",
|
|
6374
|
+
style: {
|
|
6375
|
+
backgroundColor: "#000",
|
|
6376
|
+
opacity: 0.6
|
|
6377
|
+
},
|
|
6378
6378
|
onClick: t,
|
|
6379
|
-
"aria-
|
|
6380
|
-
children: /* @__PURE__ */ E.jsx(vl, { className: "h-4 w-4" })
|
|
6381
|
-
}
|
|
6382
|
-
)
|
|
6383
|
-
] }),
|
|
6384
|
-
/* @__PURE__ */ E.jsxs("div", { className: "", children: [
|
|
6385
|
-
/* @__PURE__ */ E.jsx(
|
|
6386
|
-
nd,
|
|
6387
|
-
{
|
|
6388
|
-
currentActiveChain: i,
|
|
6389
|
-
chains: u,
|
|
6390
|
-
onChainChange: w,
|
|
6391
|
-
curSelectToken: d,
|
|
6392
|
-
tokens: c,
|
|
6393
|
-
onTokenChange: x,
|
|
6394
|
-
t: _
|
|
6379
|
+
"aria-hidden": "true"
|
|
6395
6380
|
}
|
|
6396
6381
|
),
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
{
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6382
|
+
/* @__PURE__ */ E.jsx("div", { className: "fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center", children: /* @__PURE__ */ E.jsxs("div", { className: "relative w-[420px] max-h-[85vh] bg-fill-page-secondary overflow-auto rounded-lg p-6 shadow-xl", children: [
|
|
6383
|
+
/* @__PURE__ */ E.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
6384
|
+
/* @__PURE__ */ E.jsx("h2", { className: "text-lg font-semibold text-white", children: "Deposit [DEV MODE]" }),
|
|
6385
|
+
/* @__PURE__ */ E.jsx(
|
|
6386
|
+
"button",
|
|
6387
|
+
{
|
|
6388
|
+
className: "text-gray-400 hover:text-gray-200 transition-colors",
|
|
6389
|
+
onClick: t,
|
|
6390
|
+
"aria-label": "Close",
|
|
6391
|
+
children: /* @__PURE__ */ E.jsx(vl, { className: "h-4 w-4" })
|
|
6392
|
+
}
|
|
6393
|
+
)
|
|
6394
|
+
] }),
|
|
6395
|
+
/* @__PURE__ */ E.jsxs("div", { className: "", children: [
|
|
6396
|
+
/* @__PURE__ */ E.jsx(
|
|
6397
|
+
nd,
|
|
6398
|
+
{
|
|
6399
|
+
currentActiveChain: i,
|
|
6400
|
+
chains: u,
|
|
6401
|
+
onChainChange: w,
|
|
6402
|
+
curSelectToken: d,
|
|
6403
|
+
tokens: c,
|
|
6404
|
+
onTokenChange: x,
|
|
6405
|
+
t: _
|
|
6406
|
+
}
|
|
6407
|
+
),
|
|
6408
|
+
M && /* @__PURE__ */ E.jsx(
|
|
6409
|
+
rd,
|
|
6410
|
+
{
|
|
6411
|
+
walletAdapter: B,
|
|
6412
|
+
curSelectToken: d,
|
|
6413
|
+
currentActiveChain: i,
|
|
6414
|
+
metadata: f,
|
|
6415
|
+
t: _,
|
|
6416
|
+
showToast: D
|
|
6417
|
+
}
|
|
6418
|
+
),
|
|
6419
|
+
K && /* @__PURE__ */ E.jsx(
|
|
6420
|
+
ld,
|
|
6421
|
+
{
|
|
6422
|
+
depositAmount: a,
|
|
6423
|
+
curSelectToken: d,
|
|
6424
|
+
curSelectTokenData: p,
|
|
6425
|
+
approved: l,
|
|
6426
|
+
currentActiveChain: i,
|
|
6427
|
+
currentEquity: h,
|
|
6428
|
+
amount: g,
|
|
6429
|
+
decimals: I,
|
|
6430
|
+
t: _,
|
|
6431
|
+
onDepositAmountChange: v,
|
|
6432
|
+
onApprove: U
|
|
6433
|
+
}
|
|
6434
|
+
)
|
|
6435
|
+
] }),
|
|
6436
|
+
/* @__PURE__ */ E.jsx("div", { className: "mt-4", children: /* @__PURE__ */ E.jsx(
|
|
6437
|
+
"button",
|
|
6438
|
+
{
|
|
6439
|
+
className: Dl(
|
|
6440
|
+
"w-full bg-white hover:bg-gray-100 text-gray-900 py-3 px-4 rounded-xl font-medium transition-colors",
|
|
6441
|
+
!l && K && Jt(a || "0", 0) ? "opacity-50 cursor-not-allowed" : ""
|
|
6442
|
+
),
|
|
6443
|
+
onClick: oe,
|
|
6444
|
+
disabled: !l && K && Jt(a || "0", 0),
|
|
6445
|
+
children: M ? "Deposit" : !l && Jt(a || "0", 0) ? `Enable ${d}` : od(
|
|
6446
|
+
a || "0",
|
|
6447
|
+
((G = f == null ? void 0 : f.multiChain) == null ? void 0 : G.minDeposit) || 0
|
|
6448
|
+
) ? `Min ${(X = f == null ? void 0 : f.multiChain) == null ? void 0 : X.minDeposit} ${d}` : "Confirm Deposit"
|
|
6449
|
+
}
|
|
6450
|
+
) })
|
|
6451
|
+
] }) })
|
|
6452
|
+
]
|
|
6453
|
+
}
|
|
6454
|
+
),
|
|
6442
6455
|
document.body
|
|
6443
6456
|
) : null;
|
|
6444
6457
|
};
|