@rash2x/bridge-widget 0.3.3 → 0.3.5

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.
@@ -2259,10 +2259,10 @@ const SwapButton = () => {
2259
2259
  {
2260
2260
  onClick: handleSwap,
2261
2261
  disabled: !canSwap || isSwapping,
2262
- variant: "secondary",
2262
+ variant: "card",
2263
2263
  size: "sm",
2264
2264
  className: cn(
2265
- "backdrop-blur-md h-9 w-9 p-0",
2265
+ "bg-bridge-button 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-primary font-medium underline hover:opacity-70 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",
2334
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button text-bridge-button-foreground",
2335
2335
  "aria-label": label,
2336
2336
  children: [
2337
2337
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -2569,7 +2569,7 @@ const ChainSelectModal = ({
2569
2569
  onClick: () => onChainPick(chain, willChangeSrc, willChangeTokenAndSrc),
2570
2570
  className: cn(
2571
2571
  "w-full cursor-pointer flex shadow-none rounded-xs items-center justify-between gap-3 px-5 py-4 h-13 font-semibold capitalize bg-transparent hover:scale-100 hover:bg-accent",
2572
- isSelected ? "border border-ring" : "",
2572
+ isSelected ? "border border-primary" : "",
2573
2573
  willChangeSrc || willChangeTokenAndSrc ? "opacity-50 hover:opacity-100" : ""
2574
2574
  ),
2575
2575
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -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-primary text-primary", children: buttonText }),
2744
+ isConnected && /* @__PURE__ */ jsx(EditIcon, { className: "text-primary -ml-0.5" })
2745
2745
  ]
2746
2746
  }
2747
2747
  ),
@@ -3162,7 +3162,7 @@ const Details = () => {
3162
3162
  const totalFeeDisplay = !quote ? "—" : gas.requiredNative > 0 ? `${gas.requiredNative.toFixed(6)} ${gas.nativeSym}` : "—";
3163
3163
  const currentSlippageText = !quote ? "—" : formatPercentage(slippageBps);
3164
3164
  const routeText = quote?.route ? getRouteDisplayName(quote.route) : t(`settings.routePresets.${routePriority}`);
3165
- return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full border-b-0", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-card/50 rounded-sm", children: [
3165
+ return /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, className: "w-full border-b-0", children: /* @__PURE__ */ jsxs(AccordionItem, { value: "item-1", className: "bg-muted/50 rounded-sm", children: [
3166
3166
  /* @__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: [
3167
3167
  /* @__PURE__ */ jsx("p", { className: "text-sm font-normal text-priority leading-4", children: t("bridge.youWillReceive", { defaultValue: "You will receive" }) }),
3168
3168
  /* @__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: [
@@ -6210,7 +6210,7 @@ const TokenRow = ({
6210
6210
  Button,
6211
6211
  {
6212
6212
  onClick: onPick,
6213
- className: `w-full px-5 rounded-xs bg-transparent flex items-center justify-between gap-3 hover:bg-accent hover:scale-100 ${isSelected ? "border border-ring" : ""}`,
6213
+ className: `w-full px-5 rounded-xs bg-transparent flex items-center justify-between gap-3 hover:bg-accent hover:scale-100 ${isSelected ? "border border-primary" : ""}`,
6214
6214
  children: [
6215
6215
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
6216
6216
  /* @__PURE__ */ jsx(
@@ -6553,7 +6553,7 @@ const RefreshButton = () => {
6553
6553
  onClick: handleRefresh,
6554
6554
  disabled: spinning,
6555
6555
  variant: "secondary",
6556
- className: "h-9 w-11",
6556
+ className: "bg-bridge-button 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",
6584
+ className: "shrink-0 gap-2 h-9 !pl-2 bg-bridge-button 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: "h-9 w-11",
6632
+ className: "bg-bridge-button text-bridge-button-foreground h-9 w-11",
6633
6633
  variant: "secondary",
6634
6634
  children: /* @__PURE__ */ jsx(BoltIcon, { stroke: "currentColor" })
6635
6635
  }