@fluent.xyz/connect 0.5.2 → 0.5.3

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.
package/dist/index.js CHANGED
@@ -8077,6 +8077,14 @@ var buttonVariants = cva(
8077
8077
  }
8078
8078
  }
8079
8079
  );
8080
+ var linkVariants = {
8081
+ default: "text-primary-foreground! no-underline!",
8082
+ outline: "text-inherit! hover:text-foreground! aria-expanded:text-foreground! no-underline!",
8083
+ secondary: "text-button-foreground! no-underline!",
8084
+ ghost: "text-inherit! hover:text-foreground! no-underline!",
8085
+ destructive: "text-destructive! no-underline!",
8086
+ link: "text-primary! no-underline! hover:underline!"
8087
+ };
8080
8088
  var Button = forwardRef(function Button2({ className, variant = "default", size = "default", href, target, rel, render, ...props }, ref) {
8081
8089
  const isLink = href !== void 0;
8082
8090
  return /* @__PURE__ */ jsx(
@@ -8085,7 +8093,7 @@ var Button = forwardRef(function Button2({ className, variant = "default", size
8085
8093
  ref,
8086
8094
  "data-slot": "button",
8087
8095
  nativeButton: isLink ? false : void 0,
8088
- className: cn(buttonVariants({ variant, size, className })),
8096
+ className: cn(buttonVariants({ variant, size }), isLink && linkVariants[variant ?? "default"], className),
8089
8097
  render: isLink ? /* @__PURE__ */ jsx("a", { href, target, rel }) : render,
8090
8098
  ...props
8091
8099
  }
@@ -9686,7 +9694,7 @@ function useFluentIframeBridge(iframeRef, { allowedOrigin }) {
9686
9694
  }
9687
9695
 
9688
9696
  // package.json
9689
- var version = "0.5.2";
9697
+ var version = "0.5.3";
9690
9698
 
9691
9699
  // src/core/analytics.ts
9692
9700
  var INSTANCE_NAME = "fluent";
@@ -10340,7 +10348,7 @@ function ConsentLink({ href, children }) {
10340
10348
  href,
10341
10349
  target: "_blank",
10342
10350
  rel: "noopener noreferrer",
10343
- className: "whitespace-nowrap text-white/55 underline underline-offset-2 hover:text-white/80",
10351
+ className: "whitespace-nowrap text-(--link)! underline! underline-offset-2 hover:text-(--link-hover)!",
10344
10352
  children
10345
10353
  }
10346
10354
  );
@@ -15762,7 +15770,7 @@ function BridgeForm({
15762
15770
  target: "_blank",
15763
15771
  rel: "noopener noreferrer",
15764
15772
  title: recipient,
15765
- className: "underline underline-offset-2 hover:opacity-80",
15773
+ className: "text-inherit! underline! underline-offset-2 hover:opacity-80",
15766
15774
  children: formatAddress(recipient)
15767
15775
  }
15768
15776
  ) : /* @__PURE__ */ jsx("span", { className: "text-foreground/60", children: "Not signed in" }),