@rash2x/bridge-widget 0.1.10 → 0.1.11
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 +8 -14
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +8 -14
- package/dist/evaa-bridge.mjs.map +1 -1
- package/package.json +1 -1
package/dist/evaa-bridge.mjs
CHANGED
|
@@ -726,14 +726,7 @@ function TooltipContent({
|
|
|
726
726
|
const Tip = (props) => {
|
|
727
727
|
const { children, text } = props;
|
|
728
728
|
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
729
|
-
/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
730
|
-
Button,
|
|
731
|
-
{
|
|
732
|
-
variant: "default",
|
|
733
|
-
className: "cursor-pointer rounded-none shadow-none shrink-0 !p-0 !m-0 !w-fit !h-auto !bg-transparent hover:bg-transparent",
|
|
734
|
-
children
|
|
735
|
-
}
|
|
736
|
-
) }),
|
|
729
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { children }),
|
|
737
730
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: text }) })
|
|
738
731
|
] });
|
|
739
732
|
};
|
|
@@ -1558,7 +1551,7 @@ const TokenRow = ({
|
|
|
1558
1551
|
TokenSymbol,
|
|
1559
1552
|
{
|
|
1560
1553
|
symbol,
|
|
1561
|
-
className: "
|
|
1554
|
+
className: "size-7.5 max-w-7.5 rounded-full",
|
|
1562
1555
|
alt: symbol
|
|
1563
1556
|
}
|
|
1564
1557
|
),
|
|
@@ -1916,7 +1909,7 @@ function Card({ className, ...props }) {
|
|
|
1916
1909
|
{
|
|
1917
1910
|
"data-slot": "card",
|
|
1918
1911
|
className: cn(
|
|
1919
|
-
"bg-card text-card-foreground flex flex-col gap-4 rounded-
|
|
1912
|
+
"bg-card text-card-foreground flex flex-col gap-4 rounded-lg border py-4 shadow-sm",
|
|
1920
1913
|
className
|
|
1921
1914
|
),
|
|
1922
1915
|
...props
|
|
@@ -2995,7 +2988,7 @@ const ToggleRow = ({ enabled, onToggle }) => {
|
|
|
2995
2988
|
} catch {
|
|
2996
2989
|
}
|
|
2997
2990
|
};
|
|
2998
|
-
return /* @__PURE__ */ jsxs("div", { className: "p-4 flex flex-col rounded-b-
|
|
2991
|
+
return /* @__PURE__ */ jsxs("div", { className: "p-4 flex flex-col rounded-b-lg gap-2 bg-muted", children: [
|
|
2999
2992
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
3000
2993
|
/* @__PURE__ */ jsx("p", { className: "text-sm leading-4.5 font-medium text-muted-foreground", children: t2("bridge.sendToAnotherAddress") }),
|
|
3001
2994
|
/* @__PURE__ */ jsx(
|
|
@@ -3263,8 +3256,8 @@ const Details = () => {
|
|
|
3263
3256
|
})();
|
|
3264
3257
|
const currentSlippageText = formatPercentage(slippageBps);
|
|
3265
3258
|
const routeText = quote?.route ? getRouteDisplayName(quote.route) : t2(`settings.routePresets.${routePriority}`);
|
|
3266
|
-
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-
|
|
3267
|
-
/* @__PURE__ */ jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-
|
|
3259
|
+
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-lg", children: [
|
|
3260
|
+
/* @__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: [
|
|
3268
3261
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-3.5", children: t2("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
|
|
3269
3262
|
/* @__PURE__ */ jsxs("div", { className: "bg-transparent hover:bg-transparent shadow-none h-4 p-0 px-0 py-0 flex items-center gap-1.5", children: [
|
|
3270
3263
|
/* @__PURE__ */ jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
|
|
@@ -6576,6 +6569,7 @@ class EvmChainStrategy {
|
|
|
6576
6569
|
console.warn("No publicClient available for balance query");
|
|
6577
6570
|
return {};
|
|
6578
6571
|
}
|
|
6572
|
+
console.log("publicClient", this.publicClient);
|
|
6579
6573
|
return await getEvmBalances(this.publicClient, address, tokens, priorityToken);
|
|
6580
6574
|
}
|
|
6581
6575
|
isAddressValid(address) {
|
|
@@ -7980,7 +7974,7 @@ const EvaaBridgeContent = ({
|
|
|
7980
7974
|
/* @__PURE__ */ jsx(
|
|
7981
7975
|
SwapSection,
|
|
7982
7976
|
{
|
|
7983
|
-
className: "rounded-t-
|
|
7977
|
+
className: "rounded-t-lg",
|
|
7984
7978
|
label: t2("bridge.sourceNetwork"),
|
|
7985
7979
|
balance: fromBalance,
|
|
7986
7980
|
chain: fromChain,
|