@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.mjs
CHANGED
|
@@ -910,14 +910,14 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
910
910
|
/* @__PURE__ */ jsxs("div", { className: "space-y-5", children: [
|
|
911
911
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
912
912
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
913
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
914
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
915
|
-
/* @__PURE__ */ jsx(Tip, { text: t2("settings.
|
|
913
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
914
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", children: t2("settings.gasOnDestination") }),
|
|
915
|
+
/* @__PURE__ */ jsx(Tip, { text: t2("settings.gasOnDestination"), children: /* @__PURE__ */ jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
|
|
916
916
|
] }),
|
|
917
|
-
/* @__PURE__ */ jsx("p", { className: "text-foreground text-sm font-medium leading-
|
|
917
|
+
/* @__PURE__ */ jsx("p", { className: "text-foreground text-sm font-medium leading-4", children: formatUsd(gasUsdValue) })
|
|
918
918
|
] }),
|
|
919
919
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
920
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center w-1/3 gap-
|
|
920
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center w-1/3 gap-2 shrink-0", children: [
|
|
921
921
|
/* @__PURE__ */ jsx(
|
|
922
922
|
TokenSymbol,
|
|
923
923
|
{
|
|
@@ -930,7 +930,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
930
930
|
gasDisplayAmount < 1e-3 ? 6 : 3
|
|
931
931
|
) }) })
|
|
932
932
|
] }),
|
|
933
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-
|
|
933
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: gasPresets.map((g) => /* @__PURE__ */ jsx(
|
|
934
934
|
Badge,
|
|
935
935
|
{
|
|
936
936
|
onClick: () => setGasPreset(g),
|
|
@@ -947,7 +947,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
947
947
|
/* @__PURE__ */ jsx("hr", {}),
|
|
948
948
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
949
949
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
950
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
950
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
951
951
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-3.5", children: t2("settings.slippageTolerance") }),
|
|
952
952
|
/* @__PURE__ */ jsx(Tip, { text: t2("settings.slippageTolerance"), children: /* @__PURE__ */ jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
|
|
953
953
|
] }),
|
|
@@ -976,7 +976,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
976
976
|
] }),
|
|
977
977
|
/* @__PURE__ */ jsx("hr", {}),
|
|
978
978
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
979
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
979
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
980
980
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-3.5", children: t2("settings.routePriority") }),
|
|
981
981
|
/* @__PURE__ */ jsx(Tip, { text: t2("settings.routePriority"), children: /* @__PURE__ */ jsx(TipIcon, { className: "size-4 text-muted-foreground" }) })
|
|
982
982
|
] }) }),
|
|
@@ -1151,7 +1151,7 @@ const SearchInput = ({
|
|
|
1151
1151
|
"div",
|
|
1152
1152
|
{
|
|
1153
1153
|
className: cn(
|
|
1154
|
-
"flex items-center gap-
|
|
1154
|
+
"flex items-center gap-3 px-5 py-4 bg-input rounded-md h-13 transition-all duration-200",
|
|
1155
1155
|
isFocused ? "border border-ring" : "border border-transparent",
|
|
1156
1156
|
containerClassName
|
|
1157
1157
|
),
|
|
@@ -1189,14 +1189,14 @@ const TokenRow = ({
|
|
|
1189
1189
|
Button,
|
|
1190
1190
|
{
|
|
1191
1191
|
onClick: onPick,
|
|
1192
|
-
className: `w-full bg-transparent flex items-center justify-between gap-
|
|
1192
|
+
className: `w-full bg-transparent flex items-center justify-between gap-3 px-5 hover:bg-accent hover:scale-100 ${isSelected ? "border border-ring" : ""}`,
|
|
1193
1193
|
children: [
|
|
1194
1194
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1195
1195
|
/* @__PURE__ */ jsx(
|
|
1196
1196
|
TokenSymbol,
|
|
1197
1197
|
{
|
|
1198
1198
|
symbol,
|
|
1199
|
-
className: "size-
|
|
1199
|
+
className: "size-8 rounded-full",
|
|
1200
1200
|
alt: symbol
|
|
1201
1201
|
}
|
|
1202
1202
|
),
|
|
@@ -1383,7 +1383,7 @@ const TokenSelectModal = ({
|
|
|
1383
1383
|
}
|
|
1384
1384
|
)
|
|
1385
1385
|
] }),
|
|
1386
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto -mx-5", children: hasNoResults ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground px-5 py-
|
|
1386
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto -mx-5", children: hasNoResults ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground px-5 py-4", children: t2("bridge.noResults") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1387
1387
|
effectiveTab === "my" && myTokens.length === 0 && /* @__PURE__ */ jsx("p", { className: "leading-4 text-base font-semibold text-muted-foreground uppercase px-5 py-2", children: t2("bridge.noBalancesFound") }),
|
|
1388
1388
|
tokensToRender.map(({ token, willChangeSrc }) => {
|
|
1389
1389
|
const bal = getBalance(token.symbol);
|
|
@@ -1405,7 +1405,7 @@ const TokenSelectModal = ({
|
|
|
1405
1405
|
);
|
|
1406
1406
|
}),
|
|
1407
1407
|
effectiveTab === "all" && willChangeSrcTokens.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1408
|
-
/* @__PURE__ */ jsx("div", { className: "px-5 flex leading-4 text-base py-
|
|
1408
|
+
/* @__PURE__ */ jsx("div", { className: "px-5 flex leading-4 text-base py-2 font-semibold text-muted-foreground uppercase mt-8", children: /* @__PURE__ */ jsx("p", { children: t2("bridge.willChangeSourceChain") }) }),
|
|
1409
1409
|
willChangeSrcTokens.map(({ token, willChangeSrc }) => {
|
|
1410
1410
|
const bal = getBalance(token.symbol);
|
|
1411
1411
|
const usd = getTokenUsdValue(
|
|
@@ -1542,7 +1542,7 @@ const SelectTokenButton = ({
|
|
|
1542
1542
|
type: "button",
|
|
1543
1543
|
"aria-label": label,
|
|
1544
1544
|
children: [
|
|
1545
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
1545
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1546
1546
|
/* @__PURE__ */ jsx(
|
|
1547
1547
|
TokenSymbol,
|
|
1548
1548
|
{
|
|
@@ -1551,7 +1551,7 @@ const SelectTokenButton = ({
|
|
|
1551
1551
|
alt: label
|
|
1552
1552
|
}
|
|
1553
1553
|
),
|
|
1554
|
-
/* @__PURE__ */ jsx("span", { className: "text-secondary-foreground text-sm
|
|
1554
|
+
/* @__PURE__ */ jsx("span", { className: "text-secondary-foreground text-sm font-semibold", children: label })
|
|
1555
1555
|
] }),
|
|
1556
1556
|
/* @__PURE__ */ jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
|
|
1557
1557
|
]
|
|
@@ -1575,11 +1575,11 @@ const FormHeaderComponent = () => {
|
|
|
1575
1575
|
return assets.find((a) => a.symbol.toUpperCase() === sum) ?? assets[0];
|
|
1576
1576
|
}, [assets, selectedAssetSymbol]);
|
|
1577
1577
|
return /* @__PURE__ */ jsxs(CardHeader, { className: "gap-y-0 flex flex-row justify-between items-center", children: [
|
|
1578
|
-
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-
|
|
1579
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-normal leading-
|
|
1578
|
+
/* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-3", children: [
|
|
1579
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-normal leading-4 text-muted-foreground", children: t2("bridge.selectToken") }),
|
|
1580
1580
|
/* @__PURE__ */ jsx(SelectTokenButton, { token: current, onClick: onOpen })
|
|
1581
1581
|
] }),
|
|
1582
|
-
/* @__PURE__ */ jsxs(CardAction, { className: "flex items-center gap-
|
|
1582
|
+
/* @__PURE__ */ jsxs(CardAction, { className: "flex items-center gap-3", children: [
|
|
1583
1583
|
/* @__PURE__ */ jsx(RefreshButton, {}),
|
|
1584
1584
|
/* @__PURE__ */ jsx(Button, { onClick: onOpenSettings, size: "sm", variant: "secondary", children: /* @__PURE__ */ jsx(BoltIcon, { stroke: "currentColor" }) })
|
|
1585
1585
|
] }),
|
|
@@ -1595,13 +1595,7 @@ const FormHeaderComponent = () => {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
),
|
|
1598
|
-
/* @__PURE__ */ jsx(
|
|
1599
|
-
SettingModal,
|
|
1600
|
-
{
|
|
1601
|
-
isOpen: isOpenSettings,
|
|
1602
|
-
onClose: onCloseSettings
|
|
1603
|
-
}
|
|
1604
|
-
)
|
|
1598
|
+
/* @__PURE__ */ jsx(SettingModal, { isOpen: isOpenSettings, onClose: onCloseSettings })
|
|
1605
1599
|
] });
|
|
1606
1600
|
};
|
|
1607
1601
|
const FormHeader = memo(FormHeaderComponent);
|
|
@@ -2178,14 +2172,14 @@ const SwapButton = () => {
|
|
|
2178
2172
|
const WalletBalance = (props) => {
|
|
2179
2173
|
const { value, isLoading = false } = props;
|
|
2180
2174
|
if (isLoading) {
|
|
2181
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
2175
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2182
2176
|
/* @__PURE__ */ jsx(WalletIcon, { className: "text-muted-foreground" }),
|
|
2183
2177
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16 rounded-md" })
|
|
2184
2178
|
] });
|
|
2185
2179
|
}
|
|
2186
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
2180
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2187
2181
|
/* @__PURE__ */ jsx(WalletIcon, { className: "text-muted-foreground" }),
|
|
2188
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm leading-
|
|
2182
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm leading-5 font-medium text-muted-foreground", children: value })
|
|
2189
2183
|
] });
|
|
2190
2184
|
};
|
|
2191
2185
|
const BASE_URL = "https://icons-ckg.pages.dev/stargate-light/networks";
|
|
@@ -2215,7 +2209,7 @@ const SelectNetworkButton = ({
|
|
|
2215
2209
|
type: "button",
|
|
2216
2210
|
"aria-label": label,
|
|
2217
2211
|
children: [
|
|
2218
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
2212
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
2219
2213
|
/* @__PURE__ */ jsx(
|
|
2220
2214
|
NetworkSymbol,
|
|
2221
2215
|
{
|
|
@@ -2224,7 +2218,7 @@ const SelectNetworkButton = ({
|
|
|
2224
2218
|
alt: label
|
|
2225
2219
|
}
|
|
2226
2220
|
),
|
|
2227
|
-
/* @__PURE__ */ jsx("span", { className: "text-secondary-foreground text-sm leading-
|
|
2221
|
+
/* @__PURE__ */ jsx("span", { className: "text-secondary-foreground text-sm leading-5 font-semibold ", children: label })
|
|
2228
2222
|
] }),
|
|
2229
2223
|
/* @__PURE__ */ jsx(ArrowDownIcon, { className: "size-4 text-secondary-foreground" })
|
|
2230
2224
|
]
|
|
@@ -2282,7 +2276,7 @@ const CurrencyInput = forwardRef(
|
|
|
2282
2276
|
pattern: "[0-9]*[.,]?[0-9]*",
|
|
2283
2277
|
readOnly,
|
|
2284
2278
|
className: cn(
|
|
2285
|
-
"text-[32px] h-
|
|
2279
|
+
"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",
|
|
2286
2280
|
className
|
|
2287
2281
|
),
|
|
2288
2282
|
max,
|
|
@@ -2364,8 +2358,8 @@ const ChainSelectModal = ({
|
|
|
2364
2358
|
Button,
|
|
2365
2359
|
{
|
|
2366
2360
|
onClick: () => onChainPick(chain, willChangeSrc),
|
|
2367
|
-
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-
|
|
2368
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
2361
|
+
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" : ""}`,
|
|
2362
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2369
2363
|
/* @__PURE__ */ jsx(
|
|
2370
2364
|
NetworkSymbol,
|
|
2371
2365
|
{
|
|
@@ -2414,9 +2408,9 @@ function short$1(addr) {
|
|
|
2414
2408
|
return addr.slice(0, 4) + "…" + addr.slice(-4);
|
|
2415
2409
|
}
|
|
2416
2410
|
const prefixIcons = {
|
|
2417
|
-
tronlink: /* @__PURE__ */ jsx(TronLinkIcon, { className: "size-
|
|
2418
|
-
metamask: /* @__PURE__ */ jsx(MetaMaskIcon, { className: "size-
|
|
2419
|
-
ton: /* @__PURE__ */ jsx(TonKeeperIcon, { className: "size-
|
|
2411
|
+
tronlink: /* @__PURE__ */ jsx(TronLinkIcon, { className: "size-5" }),
|
|
2412
|
+
metamask: /* @__PURE__ */ jsx(MetaMaskIcon, { className: "size-5" }),
|
|
2413
|
+
ton: /* @__PURE__ */ jsx(TonKeeperIcon, { className: "size-5" })
|
|
2420
2414
|
};
|
|
2421
2415
|
const mapWalletToType = (wallet) => {
|
|
2422
2416
|
switch (wallet) {
|
|
@@ -2465,7 +2459,7 @@ const WalletButton = ({
|
|
|
2465
2459
|
e.preventDefault();
|
|
2466
2460
|
},
|
|
2467
2461
|
disabled: isButtonDisabled,
|
|
2468
|
-
className: "p-0 !px-0 py-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent rounded-none h-
|
|
2462
|
+
className: "p-0 !px-0 py-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent rounded-none h-5",
|
|
2469
2463
|
children: [
|
|
2470
2464
|
isConnected ? prefixIcons[wallet] : null,
|
|
2471
2465
|
/* @__PURE__ */ jsx("p", { className: "leading-4 text-sm font-medium text-link border-b-2 border-dotted border-link", children: buttonText })
|
|
@@ -2541,7 +2535,7 @@ const SwapSection = ({
|
|
|
2541
2535
|
),
|
|
2542
2536
|
children: [
|
|
2543
2537
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2544
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm leading-
|
|
2538
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm leading-5 font-medium text-muted-foreground", children: label }),
|
|
2545
2539
|
/* @__PURE__ */ jsx(
|
|
2546
2540
|
WalletBalance,
|
|
2547
2541
|
{
|
|
@@ -2644,7 +2638,7 @@ const AnotherAddress = () => {
|
|
|
2644
2638
|
};
|
|
2645
2639
|
return /* @__PURE__ */ jsxs("div", { className: "p-4 flex flex-col rounded-b-lg bg-muted", children: [
|
|
2646
2640
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2647
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm leading-
|
|
2641
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm leading-5 font-medium text-muted-foreground", children: t2("bridge.sendToAnotherAddress") }),
|
|
2648
2642
|
/* @__PURE__ */ jsx(
|
|
2649
2643
|
Switch,
|
|
2650
2644
|
{
|
|
@@ -2675,7 +2669,7 @@ const AnotherAddress = () => {
|
|
|
2675
2669
|
}
|
|
2676
2670
|
),
|
|
2677
2671
|
children: [
|
|
2678
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-
|
|
2672
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
2679
2673
|
/* @__PURE__ */ jsx(
|
|
2680
2674
|
Input,
|
|
2681
2675
|
{
|
|
@@ -2862,10 +2856,10 @@ const Details = () => {
|
|
|
2862
2856
|
const routeText = quote?.route ? getRouteDisplayName(quote.route) : t2(`settings.routePresets.${routePriority}`);
|
|
2863
2857
|
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-lg", children: [
|
|
2864
2858
|
/* @__PURE__ */ jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-lg data-[state=open]:pb-3", children: /* @__PURE__ */ jsxs("div", { className: "w-full flex items-center justify-between", children: [
|
|
2865
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-
|
|
2866
|
-
/* @__PURE__ */ jsxs("div", { className: "bg-transparent hover:bg-transparent shadow-none h-4 p-0 px-0 py-0 flex items-center gap-
|
|
2859
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-4", children: t2("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
|
|
2860
|
+
/* @__PURE__ */ jsxs("div", { className: "bg-transparent hover:bg-transparent shadow-none h-4 p-0 px-0 py-0 flex items-center gap-2", children: [
|
|
2867
2861
|
/* @__PURE__ */ jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
|
|
2868
|
-
isLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24 rounded-md" }) : /* @__PURE__ */ jsxs("span", { className: "text-sm font-semibold leading-
|
|
2862
|
+
isLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24 rounded-md" }) : /* @__PURE__ */ jsxs("span", { className: "text-sm font-semibold leading-4 text-foreground", children: [
|
|
2869
2863
|
receiveText,
|
|
2870
2864
|
" ",
|
|
2871
2865
|
symbol
|
|
@@ -2877,7 +2871,7 @@ const Details = () => {
|
|
|
2877
2871
|
DetailsRow,
|
|
2878
2872
|
{
|
|
2879
2873
|
label: t2("transaction.route"),
|
|
2880
|
-
value: /* @__PURE__ */ jsxs("strong", { className: "flex items-center gap-
|
|
2874
|
+
value: /* @__PURE__ */ jsxs("strong", { className: "flex items-center gap-2", children: [
|
|
2881
2875
|
/* @__PURE__ */ jsx(StargateIcon, { className: "size-4" }),
|
|
2882
2876
|
/* @__PURE__ */ jsx("p", { className: "", children: routeText })
|
|
2883
2877
|
] })
|
|
@@ -2917,7 +2911,7 @@ const DetailsRow = ({
|
|
|
2917
2911
|
value,
|
|
2918
2912
|
isLoading = false
|
|
2919
2913
|
}) => /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2920
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
2914
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2921
2915
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-priority font-normal", children: label }),
|
|
2922
2916
|
/* @__PURE__ */ jsx(Tip, { text: label, children: /* @__PURE__ */ jsx(TipIcon, { className: "size-4 text-receive-icon" }) })
|
|
2923
2917
|
] }),
|
|
@@ -3681,9 +3675,9 @@ const WalletSelectModal = () => {
|
|
|
3681
3675
|
/* @__PURE__ */ jsx("div", { className: "py-2 font-semibold text-muted-foreground uppercase", children: t2("wallets.connected") }),
|
|
3682
3676
|
/* @__PURE__ */ jsx("div", { className: "", children: connectedWallets.map((wallet) => {
|
|
3683
3677
|
const IconComponent = wallet.icon;
|
|
3684
|
-
return /* @__PURE__ */ jsx("div", { className: "-mx-5", children: /* @__PURE__ */ jsxs(Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-
|
|
3685
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-
|
|
3686
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
3678
|
+
return /* @__PURE__ */ jsx("div", { className: "-mx-5", children: /* @__PURE__ */ jsxs(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: [
|
|
3679
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3 min-w-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3680
|
+
/* @__PURE__ */ jsx("div", { className: "size-8 flex items-center justify-center", children: /* @__PURE__ */ jsx(IconComponent, { className: "size-8" }) }),
|
|
3687
3681
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3688
3682
|
/* @__PURE__ */ jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
|
|
3689
3683
|
/* @__PURE__ */ jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: wallet.name })
|
|
@@ -3722,9 +3716,9 @@ const WalletSelectModal = () => {
|
|
|
3722
3716
|
}
|
|
3723
3717
|
},
|
|
3724
3718
|
disabled: isEvmConnector ? isPending : !wallet.enabled,
|
|
3725
|
-
className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-between gap-
|
|
3719
|
+
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",
|
|
3726
3720
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
3727
|
-
/* @__PURE__ */ jsx("div", { className: "w-
|
|
3721
|
+
/* @__PURE__ */ jsx("div", { className: "w-8 flex items-center justify-center", children: /* @__PURE__ */ jsx(IconComponent, { className: "size-8" }) }),
|
|
3728
3722
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
|
|
3729
3723
|
/* @__PURE__ */ jsx("p", { className: "font-extrabold text-foreground text-sm leading-4 truncate", children: wallet.name }),
|
|
3730
3724
|
wallet.comingSoon ? /* @__PURE__ */ jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t2("wallets.comingSoon") }) : /* @__PURE__ */ jsx("div", { className: "text-xs leading-3 font-semibold text-muted-foreground", children: t2("wallets.connect") })
|