@rash2x/bridge-widget 0.1.16 → 0.1.17
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.mjs
CHANGED
|
@@ -926,7 +926,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
926
926
|
alt: dstNativeToken?.symbol || t2("common.nativeToken", { defaultValue: "Native Token" })
|
|
927
927
|
}
|
|
928
928
|
),
|
|
929
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx("p", { className: "text-lg text-foreground leading-
|
|
929
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: gasDisplayAmount % 1 === 0 ? gasDisplayAmount.toFixed(0) : gasDisplayAmount.toFixed(
|
|
930
930
|
gasDisplayAmount < 1e-3 ? 6 : 3
|
|
931
931
|
) }) })
|
|
932
932
|
] }),
|
|
@@ -948,7 +948,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
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
950
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
951
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
951
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", 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
|
] }),
|
|
954
954
|
slippageBps >= 500 && /* @__PURE__ */ jsx("p", { className: "text-destructive text-xs font-medium", children: t2("settings.highSlippageWarning", {
|
|
@@ -956,7 +956,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
956
956
|
}) })
|
|
957
957
|
] }),
|
|
958
958
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-6", children: [
|
|
959
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx("p", { className: "text-lg text-foreground leading-
|
|
959
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx("p", { className: "text-lg text-foreground leading-5 font-semibold h-5", children: slippagePercent }) }),
|
|
960
960
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: slippagePresets.map((p) => /* @__PURE__ */ jsx(
|
|
961
961
|
Badge,
|
|
962
962
|
{
|
|
@@ -977,7 +977,7 @@ const SettingModal = ({ isOpen, onClose }) => {
|
|
|
977
977
|
/* @__PURE__ */ jsx("hr", {}),
|
|
978
978
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
|
|
979
979
|
/* @__PURE__ */ jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
980
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-
|
|
980
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm font-medium leading-4", 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
|
] }) }),
|
|
983
983
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end gap-2", children: routePresets.map((r) => /* @__PURE__ */ jsx(
|
|
@@ -2358,7 +2358,7 @@ const ChainSelectModal = ({
|
|
|
2358
2358
|
Button,
|
|
2359
2359
|
{
|
|
2360
2360
|
onClick: () => onChainPick(chain, willChangeSrc),
|
|
2361
|
-
className: `w-full cursor-pointer flex shadow-none items-center justify-between gap-3 px-5 py-
|
|
2361
|
+
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" : ""}`,
|
|
2362
2362
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2363
2363
|
/* @__PURE__ */ jsx(
|
|
2364
2364
|
NetworkSymbol,
|
|
@@ -2394,7 +2394,7 @@ const ChainSelectModal = ({
|
|
|
2394
2394
|
(c) => renderChainItem(c, true)
|
|
2395
2395
|
)
|
|
2396
2396
|
] }),
|
|
2397
|
-
groupedChains.available.length === 0 && groupedChains.willChangeSrc.length === 0 && /* @__PURE__ */ jsx("div", { className: "px-5 py-
|
|
2397
|
+
groupedChains.available.length === 0 && groupedChains.willChangeSrc.length === 0 && /* @__PURE__ */ jsx("div", { className: "px-5 py-4 text-sm text-muted-foreground", children: t2("bridge.noResults") })
|
|
2398
2398
|
] })
|
|
2399
2399
|
] }) });
|
|
2400
2400
|
};
|
|
@@ -2576,7 +2576,7 @@ const SwapSection = ({
|
|
|
2576
2576
|
addressType: isSource ? "src" : "dst"
|
|
2577
2577
|
}
|
|
2578
2578
|
),
|
|
2579
|
-
isUsdLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 rounded-md" }) : /* @__PURE__ */ jsx("span", { className: "leading-
|
|
2579
|
+
isUsdLoading ? /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12 rounded-md" }) : /* @__PURE__ */ jsx("span", { className: "leading-5 text-sm font-medium text-muted-foreground", children: computedFiat })
|
|
2580
2580
|
] })
|
|
2581
2581
|
]
|
|
2582
2582
|
}
|