@0xsquid/ui 2.4.10-beta.2 → 2.4.10-beta.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/cjs/index.js CHANGED
@@ -27831,7 +27831,7 @@ function useCountdown(initialSeconds) {
27831
27831
  return formatCountdown(secondsLeft);
27832
27832
  }
27833
27833
 
27834
- function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, refundAddress, refundAddressFormatted, recipientAddress, recipientAddressFormatted, timeRemainingSeconds = 0, tooltips, description, title, }) {
27834
+ function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, timeRemainingSeconds = 0, tooltips, description, title, }) {
27835
27835
  return (jsxRuntime.jsxs(Modal, { isOpen: isOpen, onBackdropClick: handleClose, children: [jsxRuntime.jsxs(ModalContent, { style: {
27836
27836
  [CSS_VARS.SCALE_AND_FADE_DOWN_DURATION]: `${ANIMATION_DURATIONS.SHOW_ROUTE}ms`,
27837
27837
  [CSS_VARS.SCALE_AND_FADE_UP_DURATION]: `${ANIMATION_DURATIONS.HIDE_ROUTE}ms`,
@@ -27843,17 +27843,7 @@ function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fr
27843
27843
  tooltipContent: tooltips.depositAddress,
27844
27844
  tooltipWidth: "max",
27845
27845
  }
27846
- : undefined }), jsxRuntime.jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsxRuntime.jsx(ArrowRightUpIcon, { size: "15", strokeWidth: "1.5" }), label: "Send exactly", detail: jsxRuntime.jsx(IconLabel, { src: fromToken.logoUrl, rounded: "full", children: jsxRuntime.jsx(CaptionText, { children: fromAmount }) }) }), jsxRuntime.jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsxRuntime.jsx(ArrowRightDownIcon, { size: "15", strokeWidth: "1.5" }), label: "You receive", detail: jsxRuntime.jsx(IconLabel, { src: toToken.logoUrl, rounded: "full", children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CaptionText, { children: toAmount }), jsxRuntime.jsx(Loader, { size: "16" })] }) }) }), jsxRuntime.jsx(PropertyListItem, { icon: jsxRuntime.jsx(ReorderIcon, { size: "24" }), label: "Refund address", detail: jsxRuntime.jsx(HashLink, { className: "tw-text-royal-500", formattedHash: refundAddressFormatted, hash: refundAddress, showCopyButton: true, copyIconSize: "24" }), tooltip: (tooltips === null || tooltips === void 0 ? void 0 : tooltips.refundAddress)
27847
- ? {
27848
- tooltipContent: tooltips.refundAddress,
27849
- tooltipWidth: "max",
27850
- }
27851
- : undefined }), jsxRuntime.jsx(PropertyListItem, { icon: jsxRuntime.jsx(WalletFilledIcon, { size: "24" }), label: "Recipient address", detail: jsxRuntime.jsx(HashLink, { className: "tw-text-royal-500", formattedHash: recipientAddressFormatted, hash: recipientAddress, showCopyButton: true, copyIconSize: "24" }), tooltip: (tooltips === null || tooltips === void 0 ? void 0 : tooltips.recipientAddress)
27852
- ? {
27853
- tooltipContent: tooltips.recipientAddress,
27854
- tooltipWidth: "max",
27855
- }
27856
- : undefined }), jsxRuntime.jsx(PropertyListItem, { icon: jsxRuntime.jsx(ChainLink, { size: "24", strokeWidth: "2" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Image$1, { src: fromChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsxRuntime.jsx(CaptionText, { children: fromChain.networkName })] }), to: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Image$1, { src: toChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsxRuntime.jsx(CaptionText, { children: toChain.networkName })] }) }) }), jsxRuntime.jsx(TimeRemaining, { timeRemainingSeconds: timeRemainingSeconds, tooltipContent: tooltips === null || tooltips === void 0 ? void 0 : tooltips.timeRemaining })] })] }), jsxRuntime.jsx(Button$1, { size: "lg", variant: "secondary", label: "Cancel", onClick: handleClose, className: "tw-min-h-button" })] }));
27846
+ : undefined }), jsxRuntime.jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsxRuntime.jsx(ArrowRightUpIcon, { size: "15", strokeWidth: "1.5" }), label: "Send exactly", detail: jsxRuntime.jsx(IconLabel, { src: fromToken.logoUrl, rounded: "full", children: jsxRuntime.jsx(CaptionText, { children: fromAmount }) }) }), jsxRuntime.jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsxRuntime.jsx(ArrowRightDownIcon, { size: "15", strokeWidth: "1.5" }), label: "You receive", detail: jsxRuntime.jsx(IconLabel, { src: toToken.logoUrl, rounded: "full", children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CaptionText, { children: toAmount }), jsxRuntime.jsx(Loader, { size: "16" })] }) }) }), jsxRuntime.jsx(PropertyListItem, { icon: jsxRuntime.jsx(ChainLink, { size: "24", strokeWidth: "2" }), label: "Chain", detail: jsxRuntime.jsx(Transfer, { from: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Image$1, { src: fromChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsxRuntime.jsx(CaptionText, { children: fromChain.networkName })] }), to: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Image$1, { src: toChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsxRuntime.jsx(CaptionText, { children: toChain.networkName })] }) }) }), jsxRuntime.jsx(TimeRemaining, { timeRemainingSeconds: timeRemainingSeconds, tooltipContent: tooltips === null || tooltips === void 0 ? void 0 : tooltips.timeRemaining })] })] }), jsxRuntime.jsx(Button$1, { size: "lg", variant: "secondary", label: "Cancel", onClick: handleClose, className: "tw-min-h-button" })] }));
27857
27847
  }
27858
27848
  function TimeRemaining({ timeRemainingSeconds, tooltipContent, }) {
27859
27849
  const timeRemaining = useCountdown(timeRemainingSeconds);
@@ -7,7 +7,7 @@ interface Token {
7
7
  symbol: string;
8
8
  logoUrl: string;
9
9
  }
10
- export declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, refundAddress, refundAddressFormatted, recipientAddress, recipientAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
10
+ export declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
11
11
  isOpen?: boolean;
12
12
  fromToken: Token;
13
13
  toToken: Token;
@@ -18,16 +18,10 @@ export declare function DepositAddressView({ isOpen, fromToken, toToken, handleC
18
18
  toAmount: string;
19
19
  depositAddress: string;
20
20
  depositAddressFormatted: string;
21
- refundAddress: string;
22
- refundAddressFormatted: string;
23
- recipientAddress: string;
24
- recipientAddressFormatted: string;
25
21
  timeRemainingSeconds?: number;
26
22
  tooltips?: {
27
23
  depositAddress?: React.ReactNode;
28
- refundAddress?: React.ReactNode;
29
24
  timeRemaining?: React.ReactNode;
30
- recipientAddress?: React.ReactNode;
31
25
  };
32
26
  title: string;
33
27
  description: string;
package/dist/esm/index.js CHANGED
@@ -27811,7 +27811,7 @@ function useCountdown(initialSeconds) {
27811
27811
  return formatCountdown(secondsLeft);
27812
27812
  }
27813
27813
 
27814
- function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, refundAddress, refundAddressFormatted, recipientAddress, recipientAddressFormatted, timeRemainingSeconds = 0, tooltips, description, title, }) {
27814
+ function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, timeRemainingSeconds = 0, tooltips, description, title, }) {
27815
27815
  return (jsxs(Modal, { isOpen: isOpen, onBackdropClick: handleClose, children: [jsxs(ModalContent, { style: {
27816
27816
  [CSS_VARS.SCALE_AND_FADE_DOWN_DURATION]: `${ANIMATION_DURATIONS.SHOW_ROUTE}ms`,
27817
27817
  [CSS_VARS.SCALE_AND_FADE_UP_DURATION]: `${ANIMATION_DURATIONS.HIDE_ROUTE}ms`,
@@ -27823,17 +27823,7 @@ function DepositAddressView({ isOpen = true, fromToken, toToken, handleClose, fr
27823
27823
  tooltipContent: tooltips.depositAddress,
27824
27824
  tooltipWidth: "max",
27825
27825
  }
27826
- : undefined }), jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsx(ArrowRightUpIcon, { size: "15", strokeWidth: "1.5" }), label: "Send exactly", detail: jsx(IconLabel, { src: fromToken.logoUrl, rounded: "full", children: jsx(CaptionText, { children: fromAmount }) }) }), jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsx(ArrowRightDownIcon, { size: "15", strokeWidth: "1.5" }), label: "You receive", detail: jsx(IconLabel, { src: toToken.logoUrl, rounded: "full", children: jsxs(Fragment, { children: [jsx(CaptionText, { children: toAmount }), jsx(Loader, { size: "16" })] }) }) }), jsx(PropertyListItem, { icon: jsx(ReorderIcon, { size: "24" }), label: "Refund address", detail: jsx(HashLink, { className: "tw-text-royal-500", formattedHash: refundAddressFormatted, hash: refundAddress, showCopyButton: true, copyIconSize: "24" }), tooltip: (tooltips === null || tooltips === void 0 ? void 0 : tooltips.refundAddress)
27827
- ? {
27828
- tooltipContent: tooltips.refundAddress,
27829
- tooltipWidth: "max",
27830
- }
27831
- : undefined }), jsx(PropertyListItem, { icon: jsx(WalletFilledIcon, { size: "24" }), label: "Recipient address", detail: jsx(HashLink, { className: "tw-text-royal-500", formattedHash: recipientAddressFormatted, hash: recipientAddress, showCopyButton: true, copyIconSize: "24" }), tooltip: (tooltips === null || tooltips === void 0 ? void 0 : tooltips.recipientAddress)
27832
- ? {
27833
- tooltipContent: tooltips.recipientAddress,
27834
- tooltipWidth: "max",
27835
- }
27836
- : undefined }), jsx(PropertyListItem, { icon: jsx(ChainLink, { size: "24", strokeWidth: "2" }), label: "Chain", detail: jsx(Transfer, { from: jsxs(Fragment, { children: [jsx(Image$1, { src: fromChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsx(CaptionText, { children: fromChain.networkName })] }), to: jsxs(Fragment, { children: [jsx(Image$1, { src: toChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsx(CaptionText, { children: toChain.networkName })] }) }) }), jsx(TimeRemaining, { timeRemainingSeconds: timeRemainingSeconds, tooltipContent: tooltips === null || tooltips === void 0 ? void 0 : tooltips.timeRemaining })] })] }), jsx(Button$1, { size: "lg", variant: "secondary", label: "Cancel", onClick: handleClose, className: "tw-min-h-button" })] }));
27826
+ : undefined }), jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsx(ArrowRightUpIcon, { size: "15", strokeWidth: "1.5" }), label: "Send exactly", detail: jsx(IconLabel, { src: fromToken.logoUrl, rounded: "full", children: jsx(CaptionText, { children: fromAmount }) }) }), jsx(PropertyListItem, { iconClassName: "tw-flex tw-items-center tw-justify-center", icon: jsx(ArrowRightDownIcon, { size: "15", strokeWidth: "1.5" }), label: "You receive", detail: jsx(IconLabel, { src: toToken.logoUrl, rounded: "full", children: jsxs(Fragment, { children: [jsx(CaptionText, { children: toAmount }), jsx(Loader, { size: "16" })] }) }) }), jsx(PropertyListItem, { icon: jsx(ChainLink, { size: "24", strokeWidth: "2" }), label: "Chain", detail: jsx(Transfer, { from: jsxs(Fragment, { children: [jsx(Image$1, { src: fromChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsx(CaptionText, { children: fromChain.networkName })] }), to: jsxs(Fragment, { children: [jsx(Image$1, { src: toChain.logoUrl, rounded: "xxs", shadow: true, size: "medium" }), jsx(CaptionText, { children: toChain.networkName })] }) }) }), jsx(TimeRemaining, { timeRemainingSeconds: timeRemainingSeconds, tooltipContent: tooltips === null || tooltips === void 0 ? void 0 : tooltips.timeRemaining })] })] }), jsx(Button$1, { size: "lg", variant: "secondary", label: "Cancel", onClick: handleClose, className: "tw-min-h-button" })] }));
27837
27827
  }
27838
27828
  function TimeRemaining({ timeRemainingSeconds, tooltipContent, }) {
27839
27829
  const timeRemaining = useCountdown(timeRemainingSeconds);
@@ -7,7 +7,7 @@ interface Token {
7
7
  symbol: string;
8
8
  logoUrl: string;
9
9
  }
10
- export declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, refundAddress, refundAddressFormatted, recipientAddress, recipientAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
10
+ export declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
11
11
  isOpen?: boolean;
12
12
  fromToken: Token;
13
13
  toToken: Token;
@@ -18,16 +18,10 @@ export declare function DepositAddressView({ isOpen, fromToken, toToken, handleC
18
18
  toAmount: string;
19
19
  depositAddress: string;
20
20
  depositAddressFormatted: string;
21
- refundAddress: string;
22
- refundAddressFormatted: string;
23
- recipientAddress: string;
24
- recipientAddressFormatted: string;
25
21
  timeRemainingSeconds?: number;
26
22
  tooltips?: {
27
23
  depositAddress?: React.ReactNode;
28
- refundAddress?: React.ReactNode;
29
24
  timeRemaining?: React.ReactNode;
30
- recipientAddress?: React.ReactNode;
31
25
  };
32
26
  title: string;
33
27
  description: string;
package/dist/index.d.ts CHANGED
@@ -2680,7 +2680,7 @@ interface Token$1 {
2680
2680
  symbol: string;
2681
2681
  logoUrl: string;
2682
2682
  }
2683
- declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, refundAddress, refundAddressFormatted, recipientAddress, recipientAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
2683
+ declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, fromChain, toChain, fromAmount, toAmount, depositAddress, depositAddressFormatted, timeRemainingSeconds, tooltips, description, title, }: {
2684
2684
  isOpen?: boolean;
2685
2685
  fromToken: Token$1;
2686
2686
  toToken: Token$1;
@@ -2691,16 +2691,10 @@ declare function DepositAddressView({ isOpen, fromToken, toToken, handleClose, f
2691
2691
  toAmount: string;
2692
2692
  depositAddress: string;
2693
2693
  depositAddressFormatted: string;
2694
- refundAddress: string;
2695
- refundAddressFormatted: string;
2696
- recipientAddress: string;
2697
- recipientAddressFormatted: string;
2698
2694
  timeRemainingSeconds?: number;
2699
2695
  tooltips?: {
2700
2696
  depositAddress?: react__default.ReactNode;
2701
- refundAddress?: react__default.ReactNode;
2702
2697
  timeRemaining?: react__default.ReactNode;
2703
- recipientAddress?: react__default.ReactNode;
2704
2698
  };
2705
2699
  title: string;
2706
2700
  description: string;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/0xsquid/squid-ui.git"
6
6
  },
7
7
  "description": "Squid's UI components",
8
- "version": "2.4.10-beta.2",
8
+ "version": "2.4.10-beta.3",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {