@rash2x/bridge-widget 0.1.28 → 0.1.30
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/evaa-bridge.cjs +23 -14
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +23 -14
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/evaa-bridge.cjs
CHANGED
|
@@ -1329,7 +1329,7 @@ const TokenRow = ({
|
|
|
1329
1329
|
}
|
|
1330
1330
|
),
|
|
1331
1331
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start gap-1", children: [
|
|
1332
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
1332
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-foreground text-lg leading-4 truncate flex items-center gap-1", children: symbol }),
|
|
1333
1333
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground truncate", children: name })
|
|
1334
1334
|
] })
|
|
1335
1335
|
] }),
|
|
@@ -1337,7 +1337,7 @@ const TokenRow = ({
|
|
|
1337
1337
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-5 w-16 rounded-md" }),
|
|
1338
1338
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-3 w-12 rounded-md" })
|
|
1339
1339
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1340
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-
|
|
1340
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-semibold text-foreground text-lg leading-4 truncate", children: hasAnyWallet ? formatBalance(balance) : "—" }),
|
|
1341
1341
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 text-muted-foreground", children: hasAnyWallet && balance > 0 && usdValue > 0 ? formatUsd(usdValue) : "—" })
|
|
1342
1342
|
] }) })
|
|
1343
1343
|
]
|
|
@@ -1683,7 +1683,7 @@ const SelectTokenButton = ({
|
|
|
1683
1683
|
),
|
|
1684
1684
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
|
|
1685
1685
|
] }),
|
|
1686
|
-
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4
|
|
1686
|
+
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4" })
|
|
1687
1687
|
]
|
|
1688
1688
|
}
|
|
1689
1689
|
);
|
|
@@ -2293,7 +2293,7 @@ const SwapButton = () => {
|
|
|
2293
2293
|
variant: "secondary",
|
|
2294
2294
|
size: "sm",
|
|
2295
2295
|
className: utils.cn(
|
|
2296
|
-
"bg-card text-card-foreground h-9",
|
|
2296
|
+
"bg-card text-card-foreground backdrop-blur-md h-9",
|
|
2297
2297
|
"absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
|
|
2298
2298
|
!canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
|
|
2299
2299
|
),
|
|
@@ -2363,7 +2363,7 @@ const SelectNetworkButton = ({
|
|
|
2363
2363
|
),
|
|
2364
2364
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
|
|
2365
2365
|
] }),
|
|
2366
|
-
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4
|
|
2366
|
+
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4" })
|
|
2367
2367
|
]
|
|
2368
2368
|
}
|
|
2369
2369
|
);
|
|
@@ -2501,7 +2501,7 @@ const ChainSelectModal = ({
|
|
|
2501
2501
|
button.Button,
|
|
2502
2502
|
{
|
|
2503
2503
|
onClick: () => onChainPick(chain, willChangeSrc),
|
|
2504
|
-
className: `w-full cursor-pointer flex shadow-none rounded-sm items-center justify-between gap-3 px-5 py-4 h-13 font-
|
|
2504
|
+
className: `w-full cursor-pointer flex shadow-none rounded-sm items-center justify-between gap-3 px-5 py-4 h-13 font-semibold capitalize hover:bg-muted bg-transparent transition-[300] ${isSelected ? "border border-ring" : ""}`,
|
|
2505
2505
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2506
2506
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2507
2507
|
NetworkSymbol,
|
|
@@ -2511,7 +2511,7 @@ const ChainSelectModal = ({
|
|
|
2511
2511
|
alt: chain.name
|
|
2512
2512
|
}
|
|
2513
2513
|
),
|
|
2514
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-start", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 ", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-base font-
|
|
2514
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-start", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 ", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-base font-semibold leading-[100%]", children: chain.name }) }) })
|
|
2515
2515
|
] })
|
|
2516
2516
|
},
|
|
2517
2517
|
chain.chainKey
|
|
@@ -2602,14 +2602,14 @@ const WalletButton = ({
|
|
|
2602
2602
|
e.preventDefault();
|
|
2603
2603
|
},
|
|
2604
2604
|
disabled: isButtonDisabled,
|
|
2605
|
-
className: "p-0
|
|
2605
|
+
className: "p-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent text-foreground rounded-none h-5",
|
|
2606
2606
|
children: [
|
|
2607
2607
|
isConnected ? prefixIcons[wallet] : null,
|
|
2608
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "leading-4 text-sm
|
|
2608
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "leading-4 text-sm border-b-1 border-dotted border-foreground", children: buttonText })
|
|
2609
2609
|
]
|
|
2610
2610
|
}
|
|
2611
2611
|
),
|
|
2612
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-
|
|
2612
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-destructive", children: error })
|
|
2613
2613
|
] });
|
|
2614
2614
|
};
|
|
2615
2615
|
function resolveTokenOnChainFromMatrix(assetMatrix, assetSymbol, chainKey) {
|
|
@@ -2833,7 +2833,16 @@ const AnotherAddress = () => {
|
|
|
2833
2833
|
defaultValue: "Check correctness before transfer"
|
|
2834
2834
|
}) }) })
|
|
2835
2835
|
] }),
|
|
2836
|
-
!value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2836
|
+
!value ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2837
|
+
button.Button,
|
|
2838
|
+
{
|
|
2839
|
+
variant: "secondary",
|
|
2840
|
+
className: "bg-card text-card-foreground",
|
|
2841
|
+
size: "sm",
|
|
2842
|
+
onClick: onPaste,
|
|
2843
|
+
children: t("common.paste")
|
|
2844
|
+
}
|
|
2845
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2837
2846
|
button.Button,
|
|
2838
2847
|
{
|
|
2839
2848
|
variant: "ghost",
|
|
@@ -3014,7 +3023,7 @@ const Details = () => {
|
|
|
3014
3023
|
DetailsRow,
|
|
3015
3024
|
{
|
|
3016
3025
|
label: t("transaction.route"),
|
|
3017
|
-
value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center gap-2", children: [
|
|
3026
|
+
value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center font-semibold gap-2", children: [
|
|
3018
3027
|
/* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "w-4 h-4" }),
|
|
3019
3028
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "", children: routeText })
|
|
3020
3029
|
] })
|
|
@@ -3821,7 +3830,7 @@ const WalletSelectModal = () => {
|
|
|
3821
3830
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "-mx-3", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-start gap-3 px-3 py-3 hover:bg-muted h-auto rounded-md transition-[300]", children: [
|
|
3822
3831
|
/* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "min-w-8 min-h-8" }),
|
|
3823
3832
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3824
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
3833
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
|
|
3825
3834
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: wallet.name })
|
|
3826
3835
|
] }),
|
|
3827
3836
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3861,7 +3870,7 @@ const WalletSelectModal = () => {
|
|
|
3861
3870
|
children: [
|
|
3862
3871
|
/* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "min-w-8 min-h-8" }),
|
|
3863
3872
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3864
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
3873
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-foreground text-sm leading-4 truncate", children: wallet.name }),
|
|
3865
3874
|
wallet.comingSoon ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t("wallets.comingSoon") }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t("wallets.connect") })
|
|
3866
3875
|
] })
|
|
3867
3876
|
]
|