@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.
@@ -769,14 +769,7 @@ function TooltipContent({
769
769
  const Tip = (props) => {
770
770
  const { children, text } = props;
771
771
  return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
772
- /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
773
- Button,
774
- {
775
- variant: "default",
776
- className: "cursor-pointer rounded-none shadow-none shrink-0 !p-0 !m-0 !w-fit !h-auto !bg-transparent hover:bg-transparent",
777
- children
778
- }
779
- ) }),
772
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { children }),
780
773
  /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: text }) })
781
774
  ] });
782
775
  };
@@ -1601,7 +1594,7 @@ const TokenRow = ({
1601
1594
  TokenSymbol,
1602
1595
  {
1603
1596
  symbol,
1604
- className: "w-7.5 h-7.5 rounded-full",
1597
+ className: "size-7.5 max-w-7.5 rounded-full",
1605
1598
  alt: symbol
1606
1599
  }
1607
1600
  ),
@@ -1959,7 +1952,7 @@ function Card({ className, ...props }) {
1959
1952
  {
1960
1953
  "data-slot": "card",
1961
1954
  className: cn(
1962
- "bg-card text-card-foreground flex flex-col gap-4 rounded-xl border py-4 shadow-sm",
1955
+ "bg-card text-card-foreground flex flex-col gap-4 rounded-lg border py-4 shadow-sm",
1963
1956
  className
1964
1957
  ),
1965
1958
  ...props
@@ -3038,7 +3031,7 @@ const ToggleRow = ({ enabled, onToggle }) => {
3038
3031
  } catch {
3039
3032
  }
3040
3033
  };
3041
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex flex-col rounded-b-xl gap-2 bg-muted", children: [
3034
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex flex-col rounded-b-lg gap-2 bg-muted", children: [
3042
3035
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
3043
3036
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm leading-4.5 font-medium text-muted-foreground", children: t("bridge.sendToAnotherAddress") }),
3044
3037
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3306,8 +3299,8 @@ const Details = () => {
3306
3299
  })();
3307
3300
  const currentSlippageText = formatPercentage(slippageBps);
3308
3301
  const routeText = quote?.route ? getRouteDisplayName(quote.route) : t(`settings.routePresets.${routePriority}`);
3309
- return /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-xl", children: [
3310
- /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-xl data-[state=open]:pb-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full flex items-center justify-between", children: [
3302
+ return /* @__PURE__ */ jsxRuntime.jsx(Accordion, { type: "single", collapsible: true, className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsxs(AccordionItem, { value: "item-1", className: "bg-muted rounded-lg", children: [
3303
+ /* @__PURE__ */ jsxRuntime.jsx(AccordionTrigger, { className: "w-full gap-1 items-center py-6 px-5 rounded-b-lg data-[state=open]:pb-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full flex items-center justify-between", children: [
3311
3304
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-normal text-priority leading-3.5", children: t("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
3312
3305
  /* @__PURE__ */ jsxRuntime.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: [
3313
3306
  /* @__PURE__ */ jsxRuntime.jsx(TokenSymbol, { symbol, className: "w-4 h-4", alt: "token" }),
@@ -6619,6 +6612,7 @@ class EvmChainStrategy {
6619
6612
  console.warn("No publicClient available for balance query");
6620
6613
  return {};
6621
6614
  }
6615
+ console.log("publicClient", this.publicClient);
6622
6616
  return await getEvmBalances(this.publicClient, address, tokens, priorityToken);
6623
6617
  }
6624
6618
  isAddressValid(address) {
@@ -8023,7 +8017,7 @@ const EvaaBridgeContent = ({
8023
8017
  /* @__PURE__ */ jsxRuntime.jsx(
8024
8018
  SwapSection,
8025
8019
  {
8026
- className: "rounded-t-xl",
8020
+ className: "rounded-t-lg",
8027
8021
  label: t("bridge.sourceNetwork"),
8028
8022
  balance: fromBalance,
8029
8023
  chain: fromChain,