@rash2x/bridge-widget 0.1.24 → 0.1.27
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 +18 -7
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +18 -7
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/evaa-bridge.mjs
CHANGED
|
@@ -1517,6 +1517,7 @@ const RefreshButton = () => {
|
|
|
1517
1517
|
onClick: handleRefresh,
|
|
1518
1518
|
disabled: spinning,
|
|
1519
1519
|
variant: "secondary",
|
|
1520
|
+
className: "bg-card text-card-foreground h-9",
|
|
1520
1521
|
size: "sm",
|
|
1521
1522
|
children: /* @__PURE__ */ jsx(
|
|
1522
1523
|
ReloadIcon,
|
|
@@ -1544,7 +1545,7 @@ const SelectTokenButton = ({
|
|
|
1544
1545
|
onClick,
|
|
1545
1546
|
size: "sm",
|
|
1546
1547
|
variant: "secondary",
|
|
1547
|
-
className: "shrink-0 gap-2",
|
|
1548
|
+
className: "shrink-0 gap-2 bg-card text-card-foreground h-9",
|
|
1548
1549
|
type: "button",
|
|
1549
1550
|
"aria-label": label,
|
|
1550
1551
|
children: [
|
|
@@ -1587,7 +1588,16 @@ const FormHeaderComponent = () => {
|
|
|
1587
1588
|
] }),
|
|
1588
1589
|
/* @__PURE__ */ jsxs(CardAction, { className: "flex items-center gap-3", children: [
|
|
1589
1590
|
/* @__PURE__ */ jsx(RefreshButton, {}),
|
|
1590
|
-
/* @__PURE__ */ jsx(
|
|
1591
|
+
/* @__PURE__ */ jsx(
|
|
1592
|
+
Button,
|
|
1593
|
+
{
|
|
1594
|
+
onClick: onOpenSettings,
|
|
1595
|
+
size: "sm",
|
|
1596
|
+
className: "bg-card text-card-foreground h-9",
|
|
1597
|
+
variant: "secondary",
|
|
1598
|
+
children: /* @__PURE__ */ jsx(BoltIcon, { stroke: "currentColor" })
|
|
1599
|
+
}
|
|
1600
|
+
)
|
|
1591
1601
|
] }),
|
|
1592
1602
|
/* @__PURE__ */ jsx(
|
|
1593
1603
|
TokenSelectModal,
|
|
@@ -2160,6 +2170,7 @@ const SwapButton = () => {
|
|
|
2160
2170
|
variant: "secondary",
|
|
2161
2171
|
size: "sm",
|
|
2162
2172
|
className: cn(
|
|
2173
|
+
"bg-card text-card-foreground h-9",
|
|
2163
2174
|
"absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
|
|
2164
2175
|
!canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
|
|
2165
2176
|
),
|
|
@@ -2215,7 +2226,7 @@ const SelectNetworkButton = ({
|
|
|
2215
2226
|
size: "sm",
|
|
2216
2227
|
variant: "secondary",
|
|
2217
2228
|
type: "button",
|
|
2218
|
-
className: "shrink-0 gap-2",
|
|
2229
|
+
className: "shrink-0 gap-2 bg-card text-card-foreground h-9",
|
|
2219
2230
|
"aria-label": label,
|
|
2220
2231
|
children: [
|
|
2221
2232
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
@@ -2645,7 +2656,7 @@ const AnotherAddress = () => {
|
|
|
2645
2656
|
} catch {
|
|
2646
2657
|
}
|
|
2647
2658
|
};
|
|
2648
|
-
return /* @__PURE__ */ jsxs("div", { className: "p-4 flex flex-col rounded-b-
|
|
2659
|
+
return /* @__PURE__ */ jsxs("div", { className: "p-4 flex flex-col rounded-b-sm bg-muted", children: [
|
|
2649
2660
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2650
2661
|
/* @__PURE__ */ jsx("p", { className: "text-sm leading-5 font-medium text-muted-foreground", children: t2("bridge.sendToAnotherAddress") }),
|
|
2651
2662
|
/* @__PURE__ */ jsx(
|
|
@@ -2863,8 +2874,8 @@ const Details = () => {
|
|
|
2863
2874
|
})();
|
|
2864
2875
|
const currentSlippageText = formatPercentage(slippageBps);
|
|
2865
2876
|
const routeText = quote?.route ? getRouteDisplayName(quote.route) : t2(`settings.routePresets.${routePriority}`);
|
|
2866
|
-
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded", children: [
|
|
2867
|
-
/* @__PURE__ */ jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-
|
|
2877
|
+
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-sm", children: [
|
|
2878
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-sm data-[state=open]:pb-3", children: /* @__PURE__ */ jsxs("div", { className: "w-full flex items-center justify-between", children: [
|
|
2868
2879
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-4", children: t2("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
|
|
2869
2880
|
/* @__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: [
|
|
2870
2881
|
/* @__PURE__ */ jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
|
|
@@ -7622,7 +7633,7 @@ const EvaaBridgeContent = ({
|
|
|
7622
7633
|
/* @__PURE__ */ jsx(
|
|
7623
7634
|
SwapSection,
|
|
7624
7635
|
{
|
|
7625
|
-
className: "rounded-t-
|
|
7636
|
+
className: "rounded-t-sm",
|
|
7626
7637
|
label: t2("bridge.sourceNetwork"),
|
|
7627
7638
|
balance: fromBalance,
|
|
7628
7639
|
chain: fromChain,
|