@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.
@@ -2262,7 +2262,7 @@ const SwapButton = () => {
2262
2262
  variant: "secondary",
2263
2263
  size: "sm",
2264
2264
  className: cn(
2265
- "bg-bridge-button text-bridge-button-foreground backdrop-blur-md h-9 w-9 p-0",
2265
+ "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground backdrop-blur-md h-9 w-9 p-0",
2266
2266
  "absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2",
2267
2267
  !canSwap || isSwapping ? "opacity-50 cursor-not-allowed" : "hover:scale-110"
2268
2268
  ),
@@ -2299,7 +2299,7 @@ const WalletBalance = (props) => {
2299
2299
  variant: "ghost",
2300
2300
  size: "sm",
2301
2301
  onClick: onMaxClick,
2302
- className: "h-auto p-0 px-0 text-xs text-link font-medium underline hover:opacity-70 cursor-pointer rounded-none",
2302
+ 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",
2303
2303
  children: t("bridge.max")
2304
2304
  }
2305
2305
  )
@@ -2331,7 +2331,7 @@ const SelectNetworkButton = ({
2331
2331
  size: "sm",
2332
2332
  variant: "secondary",
2333
2333
  type: "button",
2334
- className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground",
2334
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground",
2335
2335
  "aria-label": label,
2336
2336
  children: [
2337
2337
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -2587,7 +2587,7 @@ const ChainSelectModal = ({
2587
2587
  chain.chainKey
2588
2588
  );
2589
2589
  };
2590
- return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
2590
+ return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col p-10 pt-8 max-w-md", children: [
2591
2591
  /* @__PURE__ */ jsx(DialogHeader, { className: "text-left pb-0", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-xl leading-8", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0", children: [
2592
2592
  /* @__PURE__ */ jsx("div", { children: t("bridge.select") }),
2593
2593
  /* @__PURE__ */ jsx("div", { children: t(isSource ? "bridge.sourceNetwork" : "bridge.destinationNetwork") })
@@ -2740,8 +2740,8 @@ const WalletInlineButton = ({
2740
2740
  className: "flex gap-1 cursor-pointer hover:opacity-60 hover:bg-transparent !px-0 pr-1 h-5",
2741
2741
  children: [
2742
2742
  /* @__PURE__ */ jsx("span", { children: isConnected ? prefixIcons[wallet] : null }),
2743
- /* @__PURE__ */ jsx("span", { className: "leading-3 text-sm border-b border-dotted border-link text-link", children: buttonText }),
2744
- isConnected && /* @__PURE__ */ jsx(EditIcon, { className: "text-link -ml-0.5" })
2743
+ /* @__PURE__ */ jsx("span", { className: "leading-3 text-sm border-b border-dotted border-bridge-link text-bridge-link", children: buttonText }),
2744
+ isConnected && /* @__PURE__ */ jsx(EditIcon, { className: "text-bridge-link -ml-0.5" })
2745
2745
  ]
2746
2746
  }
2747
2747
  ),
@@ -2980,7 +2980,7 @@ const AnotherAddress = () => {
2980
2980
  Button,
2981
2981
  {
2982
2982
  variant: "secondary",
2983
- className: "bg-accent text-card-foreground uppercase text-xs",
2983
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground uppercase text-xs",
2984
2984
  size: "sm",
2985
2985
  onClick: onPaste,
2986
2986
  children: t("common.paste")
@@ -4026,7 +4026,7 @@ const WalletSelectModal = () => {
4026
4026
  wallets: tronWallets.filter(notConnected)
4027
4027
  }
4028
4028
  ].filter((category) => category.wallets.length > 0);
4029
- return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxs(DialogContent, { children: [
4029
+ return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "p-10 pt-8 max-w-md", children: [
4030
4030
  /* @__PURE__ */ jsxs(DialogHeader, { className: "text-left", children: [
4031
4031
  /* @__PURE__ */ jsx(DialogTitle, { className: "text-2xl leading-8", children: t("wallets.chooseWallet") }),
4032
4032
  /* @__PURE__ */ jsx(DialogDescription, { children: t("wallets.oneWalletPerEnv") })
@@ -6105,7 +6105,7 @@ const SettingsModal = ({ isOpen, onClose }) => {
6105
6105
  );
6106
6106
  const activeBtn = "bg-primary hover:bg-primary/80 text-primary-foreground transition-colors";
6107
6107
  const notActiveBtn = "bg-accent hover:bg-accent/80 text-accent-foreground transition-colors";
6108
- return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxs(DialogContent, { onOpenAutoFocus: (e) => e.preventDefault(), children: [
6108
+ return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: /* @__PURE__ */ jsxs(DialogContent, { onOpenAutoFocus: (e) => e.preventDefault(), className: "p-10 pt-8 max-w-md", children: [
6109
6109
  /* @__PURE__ */ jsx(DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-2xl leading-8", children: t("settings.title") }) }),
6110
6110
  /* @__PURE__ */ jsxs("div", { className: "space-y-5", children: [
6111
6111
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5", children: [
@@ -6389,7 +6389,7 @@ const TokenSelectModal = ({
6389
6389
  [groupedTokens.willChangeSrcChain]
6390
6390
  );
6391
6391
  const hasNoResults = tokensToRender.length === 0 && willChangeSrcTokens.length === 0;
6392
- return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col", children: [
6392
+ return /* @__PURE__ */ jsx(Dialog, { open: isOpen, onOpenChange: (open) => !open && handleClose(), children: /* @__PURE__ */ jsxs(DialogContent, { className: "md:max-h-[90dvh] md:h-[90dvh] overflow-hidden flex flex-col p-10 pt-8 max-w-md", children: [
6393
6393
  /* @__PURE__ */ jsx(DialogHeader, { className: "text-left", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-2xl leading-8", children: t("bridge.selectToken") }) }),
6394
6394
  /* @__PURE__ */ jsx(
6395
6395
  SearchInput,
@@ -6553,7 +6553,7 @@ const RefreshButton = () => {
6553
6553
  onClick: handleRefresh,
6554
6554
  disabled: spinning,
6555
6555
  variant: "secondary",
6556
- className: "bg-bridge-button text-bridge-button-foreground h-9 w-11",
6556
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground h-9 w-11",
6557
6557
  size: "sm",
6558
6558
  children: /* @__PURE__ */ jsx(
6559
6559
  ReloadIcon,
@@ -6581,7 +6581,7 @@ const SelectTokenButton = ({
6581
6581
  onClick,
6582
6582
  size: "sm",
6583
6583
  variant: "secondary",
6584
- className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground",
6584
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground",
6585
6585
  type: "button",
6586
6586
  "aria-label": label,
6587
6587
  children: [
@@ -6629,7 +6629,7 @@ const Toolbar = () => {
6629
6629
  {
6630
6630
  onClick: onOpenSettings,
6631
6631
  size: "sm",
6632
- className: "bg-bridge-button text-bridge-button-foreground h-9 w-11",
6632
+ className: "bg-bridge-button text-bridge-button-foreground hover:text-bridge-button-foreground h-9 w-11",
6633
6633
  variant: "secondary",
6634
6634
  children: /* @__PURE__ */ jsx(BoltIcon, { stroke: "currentColor" })
6635
6635
  }