@rash2x/bridge-widget 0.1.16 → 0.1.18
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
CHANGED
|
@@ -949,7 +949,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
949
949
|
alt: dstNativeToken?.symbol || t("common.nativeToken", { defaultValue: "Native Token" })
|
|
950
950
|
}
|
|
951
951
|
),
|
|
952
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-
|
|
952
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: gasDisplayAmount % 1 === 0 ? gasDisplayAmount.toFixed(0) : gasDisplayAmount.toFixed(
|
|
953
953
|
gasDisplayAmount < 1e-3 ? 6 : 3
|
|
954
954
|
) }) })
|
|
955
955
|
] }),
|
|
@@ -971,7 +971,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
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
973
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
974
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
974
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", 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
|
] }),
|
|
977
977
|
slippageBps >= 500 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-xs font-medium", children: t("settings.highSlippageWarning", {
|
|
@@ -979,7 +979,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
979
979
|
}) })
|
|
980
980
|
] }),
|
|
981
981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-6", children: [
|
|
982
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-
|
|
982
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: slippagePercent }) }),
|
|
983
983
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: slippagePresets.map((p) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
984
984
|
badge.Badge,
|
|
985
985
|
{
|
|
@@ -1000,7 +1000,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
1000
1000
|
/* @__PURE__ */ jsxRuntime.jsx("hr", {}),
|
|
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
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
1003
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", 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
|
] }) }),
|
|
1006
1006
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1376,7 +1376,7 @@ const TokenSelectModal = ({
|
|
|
1376
1376
|
[groupedTokens.willChangeSrcChain]
|
|
1377
1377
|
);
|
|
1378
1378
|
const hasNoResults = tokensToRender.length === 0 && willChangeSrcTokens.length === 0;
|
|
1379
|
-
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "
|
|
1379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "h-[90dvh] max-h-dvh overflow-hidden flex flex-col", children: [
|
|
1380
1380
|
/* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t("bridge.selectToken") }) }),
|
|
1381
1381
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1382
1382
|
SearchInput,
|
|
@@ -2381,7 +2381,7 @@ const ChainSelectModal = ({
|
|
|
2381
2381
|
button.Button,
|
|
2382
2382
|
{
|
|
2383
2383
|
onClick: () => onChainPick(chain, willChangeSrc),
|
|
2384
|
-
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-3 px-5 py-
|
|
2384
|
+
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-3 px-5 py-4 h-13 font-extrabold capitalize hover:bg-muted bg-transparent rounded-md transition-[300] ${isSelected ? "border border-ring" : ""}`,
|
|
2385
2385
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2386
2386
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2387
2387
|
NetworkSymbol,
|
|
@@ -2417,7 +2417,7 @@ const ChainSelectModal = ({
|
|
|
2417
2417
|
(c) => renderChainItem(c, true)
|
|
2418
2418
|
)
|
|
2419
2419
|
] }),
|
|
2420
|
-
groupedChains.available.length === 0 && groupedChains.willChangeSrc.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5 py-
|
|
2420
|
+
groupedChains.available.length === 0 && groupedChains.willChangeSrc.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-5 py-4 text-sm text-muted-foreground", children: t("bridge.noResults") })
|
|
2421
2421
|
] })
|
|
2422
2422
|
] }) });
|
|
2423
2423
|
};
|
|
@@ -2599,7 +2599,7 @@ const SwapSection = ({
|
|
|
2599
2599
|
addressType: isSource ? "src" : "dst"
|
|
2600
2600
|
}
|
|
2601
2601
|
),
|
|
2602
|
-
isUsdLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-12 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "leading-
|
|
2602
|
+
isUsdLoading ? /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { className: "h-4 w-12 rounded-md" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "leading-5 text-sm font-medium text-muted-foreground", children: computedFiat })
|
|
2603
2603
|
] })
|
|
2604
2604
|
]
|
|
2605
2605
|
}
|