@rash2x/bridge-widget 0.1.15 → 0.1.16
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 +44 -50
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +44 -50
- package/dist/evaa-bridge.mjs.map +1 -1
- package/package.json +1 -1
package/dist/evaa-bridge.cjs
CHANGED
|
@@ -933,14 +933,14 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
933
933
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
|
|
934
934
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
935
935
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
936
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
937
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
938
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.
|
|
936
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
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: "size-4 text-muted-foreground" }) })
|
|
939
939
|
] }),
|
|
940
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm font-medium leading-
|
|
940
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm font-medium leading-4", children: formatUsd(gasUsdValue) })
|
|
941
941
|
] }),
|
|
942
942
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
943
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center w-1/3 gap-
|
|
943
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center w-1/3 gap-2 shrink-0", children: [
|
|
944
944
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
945
945
|
TokenSymbol,
|
|
946
946
|
{
|
|
@@ -953,7 +953,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
953
953
|
gasDisplayAmount < 1e-3 ? 6 : 3
|
|
954
954
|
) }) })
|
|
955
955
|
] }),
|
|
956
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-
|
|
956
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: gasPresets.map((g) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
957
957
|
badge.Badge,
|
|
958
958
|
{
|
|
959
959
|
onClick: () => setGasPreset(g),
|
|
@@ -970,7 +970,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
970
970
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {}),
|
|
971
971
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
972
972
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
973
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
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-3.5", children: t("settings.slippageTolerance") }),
|
|
975
975
|
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.slippageTolerance"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
|
|
976
976
|
] }),
|
|
@@ -999,7 +999,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
999
999
|
] }),
|
|
1000
1000
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {}),
|
|
1001
1001
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
1002
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
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-3.5", children: t("settings.routePriority") }),
|
|
1004
1004
|
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: t("settings.routePriority"), children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
|
|
1005
1005
|
] }) }),
|
|
@@ -1174,7 +1174,7 @@ const SearchInput = ({
|
|
|
1174
1174
|
"div",
|
|
1175
1175
|
{
|
|
1176
1176
|
className: utils.cn(
|
|
1177
|
-
"flex items-center gap-
|
|
1177
|
+
"flex items-center gap-3 px-5 py-4 bg-input rounded-md h-13 transition-all duration-200",
|
|
1178
1178
|
isFocused ? "border border-ring" : "border border-transparent",
|
|
1179
1179
|
containerClassName
|
|
1180
1180
|
),
|
|
@@ -1212,14 +1212,14 @@ const TokenRow = ({
|
|
|
1212
1212
|
button.Button,
|
|
1213
1213
|
{
|
|
1214
1214
|
onClick: onPick,
|
|
1215
|
-
className: `w-full bg-transparent flex items-center justify-between gap-
|
|
1215
|
+
className: `w-full bg-transparent flex items-center justify-between gap-3 px-5 hover:bg-accent hover:scale-100 ${isSelected ? "border border-ring" : ""}`,
|
|
1216
1216
|
children: [
|
|
1217
1217
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1218
1218
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1219
1219
|
TokenSymbol,
|
|
1220
1220
|
{
|
|
1221
1221
|
symbol,
|
|
1222
|
-
className: "size-
|
|
1222
|
+
className: "size-8 rounded-full",
|
|
1223
1223
|
alt: symbol
|
|
1224
1224
|
}
|
|
1225
1225
|
),
|
|
@@ -1406,7 +1406,7 @@ const TokenSelectModal = ({
|
|
|
1406
1406
|
}
|
|
1407
1407
|
)
|
|
1408
1408
|
] }),
|
|
1409
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-auto -mx-5", children: hasNoResults ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground px-5 py-
|
|
1409
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-auto -mx-5", children: hasNoResults ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground px-5 py-4", children: t("bridge.noResults") }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1410
1410
|
effectiveTab === "my" && myTokens.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "leading-4 text-base font-semibold text-muted-foreground uppercase px-5 py-2", children: t("bridge.noBalancesFound") }),
|
|
1411
1411
|
tokensToRender.map(({ token, willChangeSrc }) => {
|
|
1412
1412
|
const bal = getBalance(token.symbol);
|
|
@@ -1428,7 +1428,7 @@ const TokenSelectModal = ({
|
|
|
1428
1428
|
);
|
|
1429
1429
|
}),
|
|
1430
1430
|
effectiveTab === "all" && willChangeSrcTokens.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1431
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5 flex leading-4 text-base py-
|
|
1431
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5 flex leading-4 text-base py-2 font-semibold text-muted-foreground uppercase mt-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: t("bridge.willChangeSourceChain") }) }),
|
|
1432
1432
|
willChangeSrcTokens.map(({ token, willChangeSrc }) => {
|
|
1433
1433
|
const bal = getBalance(token.symbol);
|
|
1434
1434
|
const usd = getTokenUsdValue(
|
|
@@ -1565,7 +1565,7 @@ const SelectTokenButton = ({
|
|
|
1565
1565
|
type: "button",
|
|
1566
1566
|
"aria-label": label,
|
|
1567
1567
|
children: [
|
|
1568
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
1568
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1569
1569
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
1570
|
TokenSymbol,
|
|
1571
1571
|
{
|
|
@@ -1574,7 +1574,7 @@ const SelectTokenButton = ({
|
|
|
1574
1574
|
alt: label
|
|
1575
1575
|
}
|
|
1576
1576
|
),
|
|
1577
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm
|
|
1577
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm font-semibold", children: label })
|
|
1578
1578
|
] }),
|
|
1579
1579
|
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
|
|
1580
1580
|
]
|
|
@@ -1598,11 +1598,11 @@ const FormHeaderComponent = () => {
|
|
|
1598
1598
|
return assets.find((a) => a.symbol.toUpperCase() === sum) ?? assets[0];
|
|
1599
1599
|
}, [assets, selectedAssetSymbol]);
|
|
1600
1600
|
return /* @__PURE__ */ jsxRuntime.jsxs(card.CardHeader, { className: "gap-y-0 flex flex-row justify-between items-center", children: [
|
|
1601
|
-
/* @__PURE__ */ jsxRuntime.jsxs(card.CardTitle, { className: "flex items-center gap-
|
|
1602
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-normal leading-
|
|
1601
|
+
/* @__PURE__ */ jsxRuntime.jsxs(card.CardTitle, { className: "flex items-center gap-3", children: [
|
|
1602
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-normal leading-4 text-muted-foreground", children: t("bridge.selectToken") }),
|
|
1603
1603
|
/* @__PURE__ */ jsxRuntime.jsx(SelectTokenButton, { token: current, onClick: onOpen })
|
|
1604
1604
|
] }),
|
|
1605
|
-
/* @__PURE__ */ jsxRuntime.jsxs(card.CardAction, { className: "flex items-center gap-
|
|
1605
|
+
/* @__PURE__ */ jsxRuntime.jsxs(card.CardAction, { className: "flex items-center gap-3", children: [
|
|
1606
1606
|
/* @__PURE__ */ jsxRuntime.jsx(RefreshButton, {}),
|
|
1607
1607
|
/* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: onOpenSettings, size: "sm", variant: "secondary", children: /* @__PURE__ */ jsxRuntime.jsx(BoltIcon, { stroke: "currentColor" }) })
|
|
1608
1608
|
] }),
|
|
@@ -1618,13 +1618,7 @@ const FormHeaderComponent = () => {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
1620
|
),
|
|
1621
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1622
|
-
SettingModal,
|
|
1623
|
-
{
|
|
1624
|
-
isOpen: isOpenSettings,
|
|
1625
|
-
onClose: onCloseSettings
|
|
1626
|
-
}
|
|
1627
|
-
)
|
|
1621
|
+
/* @__PURE__ */ jsxRuntime.jsx(SettingModal, { isOpen: isOpenSettings, onClose: onCloseSettings })
|
|
1628
1622
|
] });
|
|
1629
1623
|
};
|
|
1630
1624
|
const FormHeader = require$$0.memo(FormHeaderComponent);
|
|
@@ -2201,14 +2195,14 @@ const SwapButton = () => {
|
|
|
2201
2195
|
const WalletBalance = (props) => {
|
|
2202
2196
|
const { value, isLoading = false } = props;
|
|
2203
2197
|
if (isLoading) {
|
|
2204
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
2198
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2205
2199
|
/* @__PURE__ */ jsxRuntime.jsx(WalletIcon, { className: "text-muted-foreground" }),
|
|
2206
2200
|
/* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-16 rounded-md" })
|
|
2207
2201
|
] });
|
|
2208
2202
|
}
|
|
2209
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
2203
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2210
2204
|
/* @__PURE__ */ jsxRuntime.jsx(WalletIcon, { className: "text-muted-foreground" }),
|
|
2211
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm leading-
|
|
2205
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm leading-5 font-medium text-muted-foreground", children: value })
|
|
2212
2206
|
] });
|
|
2213
2207
|
};
|
|
2214
2208
|
const BASE_URL = "https://icons-ckg.pages.dev/stargate-light/networks";
|
|
@@ -2238,7 +2232,7 @@ const SelectNetworkButton = ({
|
|
|
2238
2232
|
type: "button",
|
|
2239
2233
|
"aria-label": label,
|
|
2240
2234
|
children: [
|
|
2241
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
2235
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2242
2236
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2243
2237
|
NetworkSymbol,
|
|
2244
2238
|
{
|
|
@@ -2247,7 +2241,7 @@ const SelectNetworkButton = ({
|
|
|
2247
2241
|
alt: label
|
|
2248
2242
|
}
|
|
2249
2243
|
),
|
|
2250
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm leading-
|
|
2244
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-secondary-foreground text-sm leading-5 font-semibold ", children: label })
|
|
2251
2245
|
] }),
|
|
2252
2246
|
/* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
|
|
2253
2247
|
]
|
|
@@ -2305,7 +2299,7 @@ const CurrencyInput = require$$0.forwardRef(
|
|
|
2305
2299
|
pattern: "[0-9]*[.,]?[0-9]*",
|
|
2306
2300
|
readOnly,
|
|
2307
2301
|
className: utils.cn(
|
|
2308
|
-
"text-[32px] h-
|
|
2302
|
+
"text-[32px] h-12 font-medium leading-9 rounded-none text-end bg-transparent dark:bg-transparent text-foreground shadow-none border-none outline-none ring-0 focus:outline-none",
|
|
2309
2303
|
className
|
|
2310
2304
|
),
|
|
2311
2305
|
max,
|
|
@@ -2387,8 +2381,8 @@ const ChainSelectModal = ({
|
|
|
2387
2381
|
button.Button,
|
|
2388
2382
|
{
|
|
2389
2383
|
onClick: () => onChainPick(chain, willChangeSrc),
|
|
2390
|
-
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-
|
|
2391
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
2384
|
+
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-3 px-5 py-3.5 h-12.5 font-extrabold capitalize hover:bg-muted bg-transparent rounded-md transition-[300] ${isSelected ? "border border-ring" : ""}`,
|
|
2385
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2392
2386
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2393
2387
|
NetworkSymbol,
|
|
2394
2388
|
{
|
|
@@ -2437,9 +2431,9 @@ function short$1(addr) {
|
|
|
2437
2431
|
return addr.slice(0, 4) + "…" + addr.slice(-4);
|
|
2438
2432
|
}
|
|
2439
2433
|
const prefixIcons = {
|
|
2440
|
-
tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "size-
|
|
2441
|
-
metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "size-
|
|
2442
|
-
ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "size-
|
|
2434
|
+
tronlink: /* @__PURE__ */ jsxRuntime.jsx(TronLinkIcon, { className: "size-5" }),
|
|
2435
|
+
metamask: /* @__PURE__ */ jsxRuntime.jsx(MetaMaskIcon, { className: "size-5" }),
|
|
2436
|
+
ton: /* @__PURE__ */ jsxRuntime.jsx(TonKeeperIcon, { className: "size-5" })
|
|
2443
2437
|
};
|
|
2444
2438
|
const mapWalletToType = (wallet) => {
|
|
2445
2439
|
switch (wallet) {
|
|
@@ -2488,7 +2482,7 @@ const WalletButton = ({
|
|
|
2488
2482
|
e.preventDefault();
|
|
2489
2483
|
},
|
|
2490
2484
|
disabled: isButtonDisabled,
|
|
2491
|
-
className: "p-0 !px-0 py-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent rounded-none h-
|
|
2485
|
+
className: "p-0 !px-0 py-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent rounded-none h-5",
|
|
2492
2486
|
children: [
|
|
2493
2487
|
isConnected ? prefixIcons[wallet] : null,
|
|
2494
2488
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "leading-4 text-sm font-medium text-link border-b-2 border-dotted border-link", children: buttonText })
|
|
@@ -2564,7 +2558,7 @@ const SwapSection = ({
|
|
|
2564
2558
|
),
|
|
2565
2559
|
children: [
|
|
2566
2560
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2567
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm leading-
|
|
2561
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm leading-5 font-medium text-muted-foreground", children: label }),
|
|
2568
2562
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2569
2563
|
WalletBalance,
|
|
2570
2564
|
{
|
|
@@ -2667,7 +2661,7 @@ const AnotherAddress = () => {
|
|
|
2667
2661
|
};
|
|
2668
2662
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex flex-col rounded-b-lg bg-muted", children: [
|
|
2669
2663
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2670
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm leading-
|
|
2664
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm leading-5 font-medium text-muted-foreground", children: t("bridge.sendToAnotherAddress") }),
|
|
2671
2665
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2672
2666
|
_switch.Switch,
|
|
2673
2667
|
{
|
|
@@ -2698,7 +2692,7 @@ const AnotherAddress = () => {
|
|
|
2698
2692
|
}
|
|
2699
2693
|
),
|
|
2700
2694
|
children: [
|
|
2701
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-
|
|
2695
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
2702
2696
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2703
2697
|
input.Input,
|
|
2704
2698
|
{
|
|
@@ -2885,10 +2879,10 @@ const Details = () => {
|
|
|
2885
2879
|
const routeText = quote?.route ? getRouteDisplayName(quote.route) : t(`settings.routePresets.${routePriority}`);
|
|
2886
2880
|
return /* @__PURE__ */ jsxRuntime.jsx(accordion.Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(accordion.AccordionItem, { value: "item-1", className: "bg-muted rounded-lg", children: [
|
|
2887
2881
|
/* @__PURE__ */ jsxRuntime.jsx(accordion.AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-lg data-[state=open]:pb-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full flex items-center justify-between", children: [
|
|
2888
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-normal text-priority leading-
|
|
2889
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-transparent hover:bg-transparent shadow-none h-4 p-0 px-0 py-0 flex items-center gap-
|
|
2882
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-normal text-priority leading-4", children: t("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
|
|
2883
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-transparent hover:bg-transparent shadow-none h-4 p-0 px-0 py-0 flex items-center gap-2", children: [
|
|
2890
2884
|
/* @__PURE__ */ jsxRuntime.jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
|
|
2891
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-24 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm font-semibold leading-
|
|
2885
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-24 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm font-semibold leading-4 text-foreground", children: [
|
|
2892
2886
|
receiveText,
|
|
2893
2887
|
" ",
|
|
2894
2888
|
symbol
|
|
@@ -2900,7 +2894,7 @@ const Details = () => {
|
|
|
2900
2894
|
DetailsRow,
|
|
2901
2895
|
{
|
|
2902
2896
|
label: t("transaction.route"),
|
|
2903
|
-
value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center gap-
|
|
2897
|
+
value: /* @__PURE__ */ jsxRuntime.jsxs("strong", { className: "flex items-center gap-2", children: [
|
|
2904
2898
|
/* @__PURE__ */ jsxRuntime.jsx(StargateIcon, { className: "size-4" }),
|
|
2905
2899
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "", children: routeText })
|
|
2906
2900
|
] })
|
|
@@ -2940,7 +2934,7 @@ const DetailsRow = ({
|
|
|
2940
2934
|
value,
|
|
2941
2935
|
isLoading = false
|
|
2942
2936
|
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2943
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
2937
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2944
2938
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-priority font-normal", children: label }),
|
|
2945
2939
|
/* @__PURE__ */ jsxRuntime.jsx(Tip, { text: label, children: /* @__PURE__ */ jsxRuntime.jsx(TipIcon, { className: "size-4 text-receive-icon" }) })
|
|
2946
2940
|
] }),
|
|
@@ -3704,9 +3698,9 @@ const WalletSelectModal = () => {
|
|
|
3704
3698
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-2 font-semibold text-muted-foreground uppercase", children: t("wallets.connected") }),
|
|
3705
3699
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "", children: connectedWallets.map((wallet) => {
|
|
3706
3700
|
const IconComponent = wallet.icon;
|
|
3707
|
-
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-
|
|
3708
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-
|
|
3709
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
3701
|
+
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: [
|
|
3702
|
+
/* @__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: [
|
|
3703
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-8" }) }),
|
|
3710
3704
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3711
3705
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
|
|
3712
3706
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: wallet.name })
|
|
@@ -3745,9 +3739,9 @@ const WalletSelectModal = () => {
|
|
|
3745
3739
|
}
|
|
3746
3740
|
},
|
|
3747
3741
|
disabled: isEvmConnector ? isPending : !wallet.enabled,
|
|
3748
|
-
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-
|
|
3742
|
+
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",
|
|
3749
3743
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
3750
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-
|
|
3744
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "size-8" }) }),
|
|
3751
3745
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3752
3746
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: wallet.name }),
|
|
3753
3747
|
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") })
|