@rash2x/bridge-widget 0.1.31 → 0.1.34

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.
@@ -1668,7 +1668,7 @@ const SelectTokenButton = ({
1668
1668
  onClick,
1669
1669
  size: "sm",
1670
1670
  variant: "secondary",
1671
- className: "shrink-0 gap-2 bg-card text-card-foreground h-9",
1671
+ className: "shrink-0 gap-2 bg-card text-card-foreground hover:text-card-foreground h-9",
1672
1672
  type: "button",
1673
1673
  "aria-label": label,
1674
1674
  children: [
@@ -1716,7 +1716,7 @@ const FormHeaderComponent = () => {
1716
1716
  {
1717
1717
  onClick: onOpenSettings,
1718
1718
  size: "sm",
1719
- className: "bg-card text-card-foreground h-9",
1719
+ className: "bg-card text-card-foreground hover:text-card-foreground h-9",
1720
1720
  variant: "secondary",
1721
1721
  children: /* @__PURE__ */ jsxRuntime.jsx(BoltIcon, { stroke: "currentColor" })
1722
1722
  }
@@ -2293,7 +2293,7 @@ const SwapButton = () => {
2293
2293
  variant: "secondary",
2294
2294
  size: "sm",
2295
2295
  className: utils.cn(
2296
- "bg-card text-card-foreground backdrop-blur-md h-9",
2296
+ "bg-card text-card-foreground hover:text-card-foreground backdrop-blur-md h-9",
2297
2297
  "absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
2298
2298
  !canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
2299
2299
  ),
@@ -2349,7 +2349,7 @@ const SelectNetworkButton = ({
2349
2349
  size: "sm",
2350
2350
  variant: "secondary",
2351
2351
  type: "button",
2352
- className: "shrink-0 gap-2 bg-card text-card-foreground h-9",
2352
+ className: "shrink-0 gap-2 bg-card text-card-foreground hover:text-card-foreground h-9",
2353
2353
  "aria-label": label,
2354
2354
  children: [
2355
2355
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -2501,7 +2501,7 @@ const ChainSelectModal = ({
2501
2501
  button.Button,
2502
2502
  {
2503
2503
  onClick: () => onChainPick(chain, willChangeSrc),
2504
- className: `w-full cursor-pointer flex shadow-none rounded-sm items-center justify-between gap-3 px-5 py-4 h-13 font-semibold capitalize hover:bg-muted bg-transparent transition-[300] ${isSelected ? "border border-ring" : ""}`,
2504
+ className: `w-full cursor-pointer flex shadow-none rounded-sm items-center justify-between gap-3 px-5 py-4 h-13 font-semibold capitalize bg-transparent hover:scale-100 hover:bg-accent ${isSelected ? "border border-ring" : ""}`,
2505
2505
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
2506
2506
  /* @__PURE__ */ jsxRuntime.jsx(
2507
2507
  NetworkSymbol,
@@ -2602,10 +2602,12 @@ const WalletButton = ({
2602
2602
  e.preventDefault();
2603
2603
  },
2604
2604
  disabled: isButtonDisabled,
2605
- className: "p-0 flex gap-1 cursor-pointer shadow-none hover:bg-transparent bg-transparent text-foreground rounded-none h-5",
2605
+ variant: "ghost",
2606
+ size: "sm",
2607
+ className: "flex gap-1 cursor-pointer px-0 h-5",
2606
2608
  children: [
2607
- isConnected ? prefixIcons[wallet] : null,
2608
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "leading-4 text-sm border-b-1 border-dotted border-foreground", children: buttonText })
2609
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: isConnected ? prefixIcons[wallet] : null }),
2610
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "leading-3 text-sm border-b border-dotted border-foreground", children: buttonText })
2609
2611
  ]
2610
2612
  }
2611
2613
  ),
@@ -3704,7 +3706,7 @@ const SubmitButton = () => {
3704
3706
  }
3705
3707
  };
3706
3708
  const disabled = isBusy || amountNum <= 0 || status === "loading" || isBalanceLoading || hasInsufficientBalance || hasAmountTooLarge || !gas.hasEnoughGas || noRoute || !isValidForTransfer;
3707
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
3709
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-4", children: /* @__PURE__ */ jsxRuntime.jsx(
3708
3710
  button.Button,
3709
3711
  {
3710
3712
  onClick: handleClick,
@@ -3827,7 +3829,7 @@ const WalletSelectModal = () => {
3827
3829
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "py-2 font-semibold text-muted-foreground uppercase", children: t("wallets.connected") }),
3828
3830
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "", children: connectedWallets.map((wallet) => {
3829
3831
  const IconComponent = wallet.icon;
3830
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "-mx-3", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-start gap-3 px-3 py-3 hover:bg-muted h-auto rounded-md transition-[300]", children: [
3832
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "-mx-3", children: /* @__PURE__ */ jsxRuntime.jsxs(button.Button, { className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-start gap-3 px-3 py-3 hover:bg-muted h-auto rounded-md", children: [
3831
3833
  /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "min-w-8 min-h-8" }),
3832
3834
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [
3833
3835
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-foreground text-sm leading-4 truncate", children: short(wallet.address) }),
@@ -3866,7 +3868,7 @@ const WalletSelectModal = () => {
3866
3868
  }
3867
3869
  },
3868
3870
  disabled: isEvmConnector ? isPending : !wallet.enabled,
3869
- className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-start gap-3 px-3 py-3 hover:bg-muted h-auto rounded-sm transition-[300] disabled:opacity-50 disabled:cursor-not-allowed",
3871
+ className: "w-full cursor-pointer bg-transparent flex shadow-none items-center justify-start gap-3 px-3 py-3 h-auto rounded-sm disabled:opacity-50 disabled:cursor-not-allowed hover:scale-100 hover:bg-accent",
3870
3872
  children: [
3871
3873
  /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "min-w-8 min-h-8" }),
3872
3874
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-start min-w-0", children: [