@rash2x/bridge-widget 0.1.23 → 0.1.26
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 +20 -7
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +20 -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 h-9",
|
|
1520
1521
|
size: "sm",
|
|
1521
1522
|
children: /* @__PURE__ */ jsx(
|
|
1522
1523
|
ReloadIcon,
|
|
@@ -1544,6 +1545,7 @@ const SelectTokenButton = ({
|
|
|
1544
1545
|
onClick,
|
|
1545
1546
|
size: "sm",
|
|
1546
1547
|
variant: "secondary",
|
|
1548
|
+
className: "shrink-0 gap-2 bg-card h-9",
|
|
1547
1549
|
type: "button",
|
|
1548
1550
|
"aria-label": label,
|
|
1549
1551
|
children: [
|
|
@@ -1586,7 +1588,16 @@ const FormHeaderComponent = () => {
|
|
|
1586
1588
|
] }),
|
|
1587
1589
|
/* @__PURE__ */ jsxs(CardAction, { className: "flex items-center gap-3", children: [
|
|
1588
1590
|
/* @__PURE__ */ jsx(RefreshButton, {}),
|
|
1589
|
-
/* @__PURE__ */ jsx(
|
|
1591
|
+
/* @__PURE__ */ jsx(
|
|
1592
|
+
Button,
|
|
1593
|
+
{
|
|
1594
|
+
onClick: onOpenSettings,
|
|
1595
|
+
size: "sm",
|
|
1596
|
+
className: "bg-card h-9",
|
|
1597
|
+
variant: "secondary",
|
|
1598
|
+
children: /* @__PURE__ */ jsx(BoltIcon, { stroke: "currentColor" })
|
|
1599
|
+
}
|
|
1600
|
+
)
|
|
1590
1601
|
] }),
|
|
1591
1602
|
/* @__PURE__ */ jsx(
|
|
1592
1603
|
TokenSelectModal,
|
|
@@ -2159,6 +2170,7 @@ const SwapButton = () => {
|
|
|
2159
2170
|
variant: "secondary",
|
|
2160
2171
|
size: "sm",
|
|
2161
2172
|
className: cn(
|
|
2173
|
+
"bg-card h-9",
|
|
2162
2174
|
"absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
|
|
2163
2175
|
!canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
|
|
2164
2176
|
),
|
|
@@ -2214,6 +2226,7 @@ const SelectNetworkButton = ({
|
|
|
2214
2226
|
size: "sm",
|
|
2215
2227
|
variant: "secondary",
|
|
2216
2228
|
type: "button",
|
|
2229
|
+
className: "shrink-0 gap-2 bg-card h-9",
|
|
2217
2230
|
"aria-label": label,
|
|
2218
2231
|
children: [
|
|
2219
2232
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
@@ -2283,7 +2296,7 @@ const CurrencyInput = forwardRef(
|
|
|
2283
2296
|
pattern: "[0-9]*[.,]?[0-9]*",
|
|
2284
2297
|
readOnly,
|
|
2285
2298
|
className: cn(
|
|
2286
|
-
"text-
|
|
2299
|
+
"text-4xl 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 focus-visible:ring-0 focus-visible:outline-0 focus-visible:ring-offset-0",
|
|
2287
2300
|
className
|
|
2288
2301
|
),
|
|
2289
2302
|
max,
|
|
@@ -2643,7 +2656,7 @@ const AnotherAddress = () => {
|
|
|
2643
2656
|
} catch {
|
|
2644
2657
|
}
|
|
2645
2658
|
};
|
|
2646
|
-
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: [
|
|
2647
2660
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2648
2661
|
/* @__PURE__ */ jsx("p", { className: "text-sm leading-5 font-medium text-muted-foreground", children: t2("bridge.sendToAnotherAddress") }),
|
|
2649
2662
|
/* @__PURE__ */ jsx(
|
|
@@ -2681,7 +2694,7 @@ const AnotherAddress = () => {
|
|
|
2681
2694
|
Input,
|
|
2682
2695
|
{
|
|
2683
2696
|
className: cn(
|
|
2684
|
-
"p-0 h-auto text-base leading-5 font-semibold w-full bg-transparent dark:bg-transparent placeholder:text-muted-foreground/50 border-none"
|
|
2697
|
+
"p-0 h-auto text-base leading-5 font-semibold w-full bg-transparent dark:bg-transparent placeholder:text-muted-foreground/50 border-none focus:outline-none focus:ring-0"
|
|
2685
2698
|
),
|
|
2686
2699
|
placeholder: t2("bridge.anotherAddressPlaceholder"),
|
|
2687
2700
|
type: "text",
|
|
@@ -2861,8 +2874,8 @@ const Details = () => {
|
|
|
2861
2874
|
})();
|
|
2862
2875
|
const currentSlippageText = formatPercentage(slippageBps);
|
|
2863
2876
|
const routeText = quote?.route ? getRouteDisplayName(quote.route) : t2(`settings.routePresets.${routePriority}`);
|
|
2864
|
-
return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded", children: [
|
|
2865
|
-
/* @__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: [
|
|
2866
2879
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-4", children: t2("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
|
|
2867
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: [
|
|
2868
2881
|
/* @__PURE__ */ jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
|
|
@@ -7620,7 +7633,7 @@ const EvaaBridgeContent = ({
|
|
|
7620
7633
|
/* @__PURE__ */ jsx(
|
|
7621
7634
|
SwapSection,
|
|
7622
7635
|
{
|
|
7623
|
-
className: "rounded-t-
|
|
7636
|
+
className: "rounded-t-sm",
|
|
7624
7637
|
label: t2("bridge.sourceNetwork"),
|
|
7625
7638
|
balance: fromBalance,
|
|
7626
7639
|
chain: fromChain,
|