@fluent.xyz/connect 0.7.0 → 0.7.2

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
@@ -5613,7 +5613,7 @@ function createFluentConnectForWidget(config) {
5613
5613
  }
5614
5614
 
5615
5615
  // package.json
5616
- var version = "0.7.0";
5616
+ var version = "0.7.2";
5617
5617
 
5618
5618
  // src/core/analytics.ts
5619
5619
  var INSTANCE_NAME = "fluent";
@@ -5912,7 +5912,7 @@ var buttonVariants = cva(
5912
5912
  size: {
5913
5913
  default: "h-10 gap-1.5 px-3.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 text-sm",
5914
5914
  xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
5915
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
5915
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[12.8px] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
5916
5916
  lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
5917
5917
  icon: "size-8",
5918
5918
  "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
@@ -5986,7 +5986,7 @@ function Toast({ className, style, ...props }) {
5986
5986
  style: { maxWidth: 368, ...style },
5987
5987
  className: cn(
5988
5988
  "group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full max-w-[368px] origin-bottom rounded-2xl border border-white/20 bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-border focus-visible:ring-[3px] focus-visible:ring-ring/50",
5989
- "[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]",
5989
+ "[--gap:12px] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:12px] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]",
5990
5990
  "h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]",
5991
5991
  "after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']",
5992
5992
  "data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]",
@@ -6806,7 +6806,7 @@ function DialogContent({
6806
6806
  {
6807
6807
  "data-slot": "dialog-content",
6808
6808
  className: cn(
6809
- "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-3xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
6809
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-32px)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-3xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
6810
6810
  className
6811
6811
  ),
6812
6812
  ...props,
@@ -7628,7 +7628,7 @@ function InlineConnectModal(props) {
7628
7628
  {
7629
7629
  "aria-describedby": void 0,
7630
7630
  initialFocus: heading,
7631
- className: "dark flex max-h-[calc(100dvh-2rem)] flex-col overflow-visible text-white antialiased",
7631
+ className: "dark flex max-h-[calc(100dvh-32px)] flex-col overflow-visible text-white antialiased",
7632
7632
  children: [
7633
7633
  /* @__PURE__ */ jsxs("div", { className: "relative z-20 -m-4 min-h-0 overflow-x-hidden overflow-y-auto overscroll-contain rounded-[inherit] p-4", children: [
7634
7634
  /* @__PURE__ */ jsxs(
@@ -10790,7 +10790,7 @@ function SwapperOnRampDialog({
10790
10790
  DialogContent,
10791
10791
  {
10792
10792
  showCloseButton: false,
10793
- className: "block h-[min(560px,calc(100dvh-2rem))] w-[450px] gap-0 overflow-hidden rounded-[30px] bg-[#111111] p-0 ring-0 sm:max-w-[450px]",
10793
+ className: "block h-[min(560px,calc(100dvh-32px))] w-[450px] gap-0 overflow-hidden rounded-[30px] bg-[#111111] p-0 ring-0 sm:max-w-[450px]",
10794
10794
  children: [
10795
10795
  /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Get USDnr" }),
10796
10796
  /* @__PURE__ */ jsx("div", { ref: setContainer, className: "size-full" })
@@ -14714,12 +14714,9 @@ function BridgeForm({
14714
14714
  ] });
14715
14715
  }
14716
14716
  var WALLETS = [
14717
- [metaMaskWallet, (uri) => `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`],
14718
- [trustWallet, (uri) => `https://link.trustwallet.com/wc?uri=${encodeURIComponent(uri)}`],
14719
- [
14720
- rainbowWallet,
14721
- (uri) => `https://rnbwapp.com/wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`
14722
- ]
14717
+ [metaMaskWallet, (uri) => `metamask://wc?uri=${encodeURIComponent(uri)}`],
14718
+ [trustWallet, (uri) => `trust://wc?uri=${encodeURIComponent(uri)}`],
14719
+ [rainbowWallet, (uri) => `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit`]
14723
14720
  ];
14724
14721
  function isPhone() {
14725
14722
  return typeof navigator !== "undefined" && /android|iphone|ipad|ipod/i.test(navigator.userAgent);
@@ -19942,9 +19939,9 @@ function DrawerContent({
19942
19939
  // Bleed.
19943
19940
  "after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full",
19944
19941
  // Sizing.
19945
- "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]",
19942
+ "[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-96px)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:384px]",
19946
19943
  // Stack.
19947
- "[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]",
19944
+ "[--bleed:48px] [--peek:16px] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]",
19948
19945
  // Transitions.
19949
19946
  "data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]",
19950
19947
  // Axis: y.