@rash2x/bridge-widget 0.1.21 → 0.1.23
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 +20 -20
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +20 -20
- 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
|
@@ -935,7 +935,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
935
935
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
936
936
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
937
937
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.gasOnDestination") }),
|
|
938
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.gasOnDestination"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "
|
|
938
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.gasOnDestination"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
939
939
|
] }),
|
|
940
940
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm font-medium leading-4", children: formatUsd(gasUsdValue) })
|
|
941
941
|
] }),
|
|
@@ -972,7 +972,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
972
972
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
973
973
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
974
974
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.slippageTolerance") }),
|
|
975
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.slippageTolerance"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "
|
|
975
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.slippageTolerance"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
976
976
|
] }),
|
|
977
977
|
slippageBps >= 500 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-xs font-medium", children: t("settings.highSlippageWarning", {
|
|
978
978
|
defaultValue: "High slippage warning"
|
|
@@ -1001,7 +1001,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
1001
1001
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
1002
1002
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1003
1003
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t("settings.routePriority") }),
|
|
1004
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.routePriority"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "
|
|
1004
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.routePriority"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
1005
1005
|
] }) }),
|
|
1006
1006
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1007
1007
|
badge.Badge,
|
|
@@ -1184,13 +1184,13 @@ const SearchInput = ({
|
|
|
1184
1184
|
containerClassName
|
|
1185
1185
|
),
|
|
1186
1186
|
children: [
|
|
1187
|
-
/* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "
|
|
1187
|
+
/* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "w-6 h-6 text-input-icon" }),
|
|
1188
1188
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1189
1189
|
input.Input,
|
|
1190
1190
|
{
|
|
1191
1191
|
placeholder,
|
|
1192
1192
|
className: utils.cn(
|
|
1193
|
-
"w-full outline-none bg-transparent border-none ring-0 leading-0 p-0 h-6 text-base text-input-text placeholder:text-input-placeholder bg-none dark:bg-transparent",
|
|
1193
|
+
"w-full outline-none bg-transparent border-none ring-0 leading-0 p-0 h-6 text-base text-input-text placeholder:text-input-placeholder bg-none dark:bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
1194
1194
|
className
|
|
1195
1195
|
),
|
|
1196
1196
|
value,
|
|
@@ -1224,7 +1224,7 @@ const TokenRow = ({
|
|
|
1224
1224
|
TokenSymbol,
|
|
1225
1225
|
{
|
|
1226
1226
|
symbol,
|
|
1227
|
-
className: "
|
|
1227
|
+
className: "w-8 h-8 rounded-full",
|
|
1228
1228
|
alt: symbol
|
|
1229
1229
|
}
|
|
1230
1230
|
),
|
|
@@ -1381,7 +1381,7 @@ const TokenSelectModal = ({
|
|
|
1381
1381
|
[groupedTokens.willChangeSrcChain]
|
|
1382
1382
|
);
|
|
1383
1383
|
const hasNoResults = tokensToRender.length === 0 && willChangeSrcTokens.length === 0;
|
|
1384
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "h-[90dvh]
|
|
1384
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col", children: [
|
|
1385
1385
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t("bridge.selectToken") }) }),
|
|
1386
1386
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1387
1387
|
SearchInput,
|
|
@@ -1581,7 +1581,7 @@ const SelectTokenButton = ({
|
|
|
1581
1581
|
),
|
|
1582
1582
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm font-semibold", children: label })
|
|
1583
1583
|
] }),
|
|
1584
|
-
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "
|
|
1584
|
+
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4 text-secondary-foreground" })
|
|
1585
1585
|
]
|
|
1586
1586
|
}
|
|
1587
1587
|
);
|
|
@@ -2250,7 +2250,7 @@ const SelectNetworkButton = ({
|
|
|
2250
2250
|
),
|
|
2251
2251
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm leading-5 font-semibold ", children: label })
|
|
2252
2252
|
] }),
|
|
2253
|
-
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "
|
|
2253
|
+
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "w-4 h-4 text-secondary-foreground" })
|
|
2254
2254
|
]
|
|
2255
2255
|
}
|
|
2256
2256
|
);
|
|
@@ -2404,7 +2404,7 @@ const ChainSelectModal = ({
|
|
|
2404
2404
|
chain.chainKey
|
|
2405
2405
|
);
|
|
2406
2406
|
};
|
|
2407
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "
|
|
2407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "max-h-[90dvh] h-[90dvh] overflow-hidden flex flex-col", children: [
|
|
2408
2408
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t("bridge.selectNetwork") }) }),
|
|
2409
2409
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2410
2410
|
SearchInput,
|
|
@@ -2438,9 +2438,9 @@ function short$1(addr) {
|
|
|
2438
2438
|
return addr.slice(0, 4) + "…" + addr.slice(-4);
|
|
2439
2439
|
}
|
|
2440
2440
|
const prefixIcons = {
|
|
2441
|
-
tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "
|
|
2442
|
-
metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "
|
|
2443
|
-
ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "
|
|
2441
|
+
tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "w-5 h-5" }),
|
|
2442
|
+
metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "w-5 h-5" }),
|
|
2443
|
+
ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "w-5 h-5" })
|
|
2444
2444
|
};
|
|
2445
2445
|
const mapWalletToType = (wallet) => {
|
|
2446
2446
|
switch (wallet) {
|
|
@@ -2725,9 +2725,9 @@ const AnotherAddress = () => {
|
|
|
2725
2725
|
{
|
|
2726
2726
|
variant: "ghost",
|
|
2727
2727
|
size: "sm",
|
|
2728
|
-
className: "rounded-full p-0
|
|
2728
|
+
className: "rounded-full p-0 w-5 h-5 self-start",
|
|
2729
2729
|
onClick: () => setValue(""),
|
|
2730
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "
|
|
2730
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "w-4 h-4" })
|
|
2731
2731
|
}
|
|
2732
2732
|
)
|
|
2733
2733
|
]
|
|
@@ -2902,7 +2902,7 @@ const Details = () => {
|
|
|
2902
2902
|
{
|
|
2903
2903
|
label: t("transaction.route"),
|
|
2904
2904
|
value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center gap-2", children: [
|
|
2905
|
-
/* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "
|
|
2905
|
+
/* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "w-4 h-4" }),
|
|
2906
2906
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "", children: routeText })
|
|
2907
2907
|
] })
|
|
2908
2908
|
}
|
|
@@ -2943,7 +2943,7 @@ const DetailsRow = ({
|
|
|
2943
2943
|
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2944
2944
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2945
2945
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-priority font-normal", children: label }),
|
|
2946
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: label, children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "
|
|
2946
|
+
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: label, children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "w-4 h-4 text-receive-icon" }) })
|
|
2947
2947
|
] }),
|
|
2948
2948
|
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-16 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-foreground text-sm", children: value ?? "—" })
|
|
2949
2949
|
] });
|
|
@@ -3708,7 +3708,7 @@ const WalletSelectModal = () => {
|
|
|
3708
3708
|
const IconComponent = wallet.icon;
|
|
3709
3709
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "-mx-5", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-3 px-5 py-3 hover:bg-muted h-auto rounded-md transition-[300]", children: [
|
|
3710
3710
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3711
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
3711
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 h-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "w-8 h-8" }) }),
|
|
3712
3712
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3713
3713
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
|
|
3714
3714
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: wallet.name })
|
|
@@ -3722,7 +3722,7 @@ const WalletSelectModal = () => {
|
|
|
3722
3722
|
onClose();
|
|
3723
3723
|
},
|
|
3724
3724
|
className: "text-sm font-medium text-muted-foreground",
|
|
3725
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ExitIcon, { className: "text-[#808080]
|
|
3725
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ExitIcon, { className: "text-[#808080] w-6 h-6" })
|
|
3726
3726
|
}
|
|
3727
3727
|
)
|
|
3728
3728
|
] }) }, wallet.id);
|
|
@@ -3749,7 +3749,7 @@ const WalletSelectModal = () => {
|
|
|
3749
3749
|
disabled: isEvmConnector ? isPending : !wallet.enabled,
|
|
3750
3750
|
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-3 px-5 py-3 hover:bg-muted h-auto rounded-md transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3751
3751
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
3752
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "
|
|
3752
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "w-8 h-8" }) }),
|
|
3753
3753
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3754
3754
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: wallet.name }),
|
|
3755
3755
|
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") })
|