@rash2x/bridge-widget 0.3.6 → 0.3.8

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.
@@ -2285,7 +2285,7 @@ const SwapButton = () => {
2285
2285
  variant: "secondary",
2286
2286
  size: "sm",
2287
2287
  className: utils.cn(
2288
- "bg-bridge-button text-bridge-button-foreground backdrop-blur-md h-9 w-9 p-0",
2288
+ "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground backdrop-blur-md h-9 w-9 p-0",
2289
2289
  "absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
2290
2290
  !canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
2291
2291
  ),
@@ -2322,7 +2322,7 @@ const WalletBalance = (props) => {
2322
2322
  variant: "ghost",
2323
2323
  size: "sm",
2324
2324
  onClick: onMaxClick,
2325
- className: "h-auto p-0 px-0 text-xs text-link font-medium underline hover:opacity-70 cursor-pointer rounded-none",
2325
+ className: "h-auto p-0 px-0 text-xs text-bridge-link font-medium underline hover:opacity-70 hover:bg-transparent cursor-pointer rounded-none",
2326
2326
  children: t("bridge.max")
2327
2327
  }
2328
2328
  )
@@ -2354,7 +2354,7 @@ const SelectNetworkButton = ({
2354
2354
  size: "sm",
2355
2355
  variant: "secondary",
2356
2356
  type: "button",
2357
- className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground",
2357
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground",
2358
2358
  "aria-label": label,
2359
2359
  children: [
2360
2360
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -2610,7 +2610,7 @@ const ChainSelectModal = ({
2610
2610
  chain.chainKey
2611
2611
  );
2612
2612
  };
2613
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
2613
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col p-10 pt-8 max-w-md", children: [
2614
2614
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left pb-0", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0", children: [
2615
2615
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t("bridge.select") }),
2616
2616
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: t(isSource ? "bridge.sourceNetwork" : "bridge.destinationNetwork") })
@@ -2763,8 +2763,8 @@ const WalletInlineButton = ({
2763
2763
  className: "flex gap-1 cursor-pointer hover:opacity-60 hover:bg-transparent !px-0 pr-1 h-5",
2764
2764
  children: [
2765
2765
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: isConnected ? prefixIcons[wallet] : null }),
2766
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "leading-3 text-sm border-b border-dotted border-link text-link", children: buttonText }),
2767
- isConnected && /* @__PURE__ */ jsxRuntime.jsx(EditIcon, { className: "text-link -ml-0.5" })
2766
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "leading-3 text-sm border-b border-dotted border-bridge-link text-bridge-link", children: buttonText }),
2767
+ isConnected && /* @__PURE__ */ jsxRuntime.jsx(EditIcon, { className: "text-bridge-link -ml-0.5" })
2768
2768
  ]
2769
2769
  }
2770
2770
  ),
@@ -3003,7 +3003,7 @@ const AnotherAddress = () => {
3003
3003
  button.Button,
3004
3004
  {
3005
3005
  variant: "secondary",
3006
- className: "bg-accent text-card-foreground uppercase text-xs",
3006
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground uppercase text-xs",
3007
3007
  size: "sm",
3008
3008
  onClick: onPaste,
3009
3009
  children: t("common.paste")
@@ -4049,7 +4049,7 @@ const WalletSelectModal = () => {
4049
4049
  wallets: tronWallets.filter(notConnected)
4050
4050
  }
4051
4051
  ].filter((category) => category.wallets.length > 0);
4052
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { children: [
4052
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "p-10 pt-8 max-w-md", children: [
4053
4053
  /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogHeader, { className: "text-left", children: [
4054
4054
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t("wallets.chooseWallet") }),
4055
4055
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { children: t("wallets.oneWalletPerEnv") })
@@ -6128,7 +6128,7 @@ const SettingsModal = ({ isOpen, onClose }) => {
6128
6128
  );
6129
6129
  const activeBtn = "bg-primary hover:bg-primary/80 text-primary-foreground transition-colors";
6130
6130
  const notActiveBtn = "bg-accent hover:bg-accent/80 text-accent-foreground transition-colors";
6131
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { onOpenAutoFocus: (e) => e.preventDefault(), children: [
6131
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { onOpenAutoFocus: (e) => e.preventDefault(), className: "p-10 pt-8 max-w-md", children: [
6132
6132
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t("settings.title") }) }),
6133
6133
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-5", children: [
6134
6134
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", children: [
@@ -6412,7 +6412,7 @@ const TokenSelectModal = ({
6412
6412
  [groupedTokens.willChangeSrcChain]
6413
6413
  );
6414
6414
  const hasNoResults = tokensToRender.length === 0 && willChangeSrcTokens.length === 0;
6415
- return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
6415
+ return /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col p-10 pt-8 max-w-md", children: [
6416
6416
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { className: "text-2xl leading-8", children: t("bridge.selectToken") }) }),
6417
6417
  /* @__PURE__ */ jsxRuntime.jsx(
6418
6418
  SearchInput,
@@ -6576,7 +6576,7 @@ const RefreshButton = () => {
6576
6576
  onClick: handleRefresh,
6577
6577
  disabled: spinning,
6578
6578
  variant: "secondary",
6579
- className: "bg-bridge-button text-bridge-button-foreground h-9 w-11",
6579
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground h-9 w-11",
6580
6580
  size: "sm",
6581
6581
  children: /* @__PURE__ */ jsxRuntime.jsx(
6582
6582
  ReloadIcon,
@@ -6604,7 +6604,7 @@ const SelectTokenButton = ({
6604
6604
  onClick,
6605
6605
  size: "sm",
6606
6606
  variant: "secondary",
6607
- className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground",
6607
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground",
6608
6608
  type: "button",
6609
6609
  "aria-label": label,
6610
6610
  children: [
@@ -6652,7 +6652,7 @@ const Toolbar = () => {
6652
6652
  {
6653
6653
  onClick: onOpenSettings,
6654
6654
  size: "sm",
6655
- className: "bg-bridge-button text-bridge-button-foreground h-9 w-11",
6655
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground h-9 w-11",
6656
6656
  variant: "secondary",
6657
6657
  children: /* @__PURE__ */ jsxRuntime.jsx(BoltIcon, { stroke: "currentColor" })
6658
6658
  }