@0xsquid/ui 3.0.2 → 3.2.0
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 +18432 -718
- package/dist/cjs/types/components/badges/Drip.d.ts +13 -0
- package/dist/cjs/types/components/badges/index.d.ts +1 -0
- package/dist/cjs/types/components/buttons/CopyButton.d.ts +7 -0
- package/dist/cjs/types/components/buttons/LinkButton.d.ts +5 -0
- package/dist/cjs/types/components/buttons/index.d.ts +0 -1
- package/dist/cjs/types/components/feedback/LoadingSkeleton.d.ts +2 -1
- package/dist/cjs/types/components/icons/Arrow.d.ts +8 -0
- package/dist/cjs/types/components/icons/Generic.d.ts +4 -0
- package/dist/cjs/types/components/icons/ThumbsUp.d.ts +2 -1
- package/dist/cjs/types/components/icons/Timeline.d.ts +1 -1
- package/dist/cjs/types/components/layout/AnimationWrapper.d.ts +7 -3
- package/dist/cjs/types/components/layout/Card.d.ts +8 -0
- package/dist/cjs/types/components/layout/Collapse.d.ts +3 -1
- package/dist/cjs/types/components/layout/HashLink.d.ts +2 -2
- package/dist/cjs/types/components/layout/PipeSeparator.d.ts +6 -2
- package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -6
- package/dist/cjs/types/components/layout/TransactionProperties/TransactionProperties.d.ts +4 -8
- package/dist/cjs/types/components/layout/index.d.ts +1 -11
- package/dist/cjs/types/components/lists/TransactionAction/FeesAction.d.ts +4 -3
- package/dist/cjs/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/TransactionAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionItem.d.ts +35 -20
- package/dist/cjs/types/components/lists/TransactionItemSkeleton.d.ts +1 -0
- package/dist/cjs/types/components/lists/index.d.ts +1 -0
- package/dist/cjs/types/components/views/SwapProgressView.d.ts +2 -1
- package/dist/cjs/types/components/views/TransactionNotFoundView.d.ts +1 -0
- package/dist/cjs/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +23 -3
- package/dist/cjs/types/components/views/TransactionView/BridgeTransactionView.d.ts +20 -5
- package/dist/cjs/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +9 -11
- package/dist/cjs/types/components/views/TransactionView/InteractionTransactionView.d.ts +10 -5
- package/dist/cjs/types/components/views/TransactionView/SwapTransactionView.d.ts +10 -3
- package/dist/cjs/types/components/views/TransactionView/TransactionView.d.ts +11 -6
- package/dist/cjs/types/components/views/index.d.ts +1 -0
- package/dist/cjs/types/core/utils.d.ts +1 -0
- package/dist/cjs/types/stories/badges/Drip.stories.d.ts +7 -0
- package/dist/cjs/types/stories/data/actions.d.ts +5 -0
- package/dist/cjs/types/stories/data/network.d.ts +2 -0
- package/dist/cjs/types/stories/layout/Card.stories.d.ts +6 -0
- package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +182 -12
- package/dist/cjs/types/stories/lists/TransactionItemSkeleton.stories.d.ts +6 -0
- package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +1 -0
- package/dist/cjs/types/stories/views/TransactionNotFoundView.stories.d.ts +6 -0
- package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +640 -7
- package/dist/cjs/types/types/components.d.ts +1 -0
- package/dist/esm/index.js +18181 -463
- package/dist/esm/types/components/badges/Drip.d.ts +13 -0
- package/dist/esm/types/components/badges/index.d.ts +1 -0
- package/dist/esm/types/components/buttons/CopyButton.d.ts +7 -0
- package/dist/esm/types/components/buttons/LinkButton.d.ts +5 -0
- package/dist/esm/types/components/buttons/index.d.ts +0 -1
- package/dist/esm/types/components/feedback/LoadingSkeleton.d.ts +2 -1
- package/dist/esm/types/components/icons/Arrow.d.ts +8 -0
- package/dist/esm/types/components/icons/Generic.d.ts +4 -0
- package/dist/esm/types/components/icons/ThumbsUp.d.ts +2 -1
- package/dist/esm/types/components/icons/Timeline.d.ts +1 -1
- package/dist/esm/types/components/layout/AnimationWrapper.d.ts +7 -3
- package/dist/esm/types/components/layout/Card.d.ts +8 -0
- package/dist/esm/types/components/layout/Collapse.d.ts +3 -1
- package/dist/esm/types/components/layout/HashLink.d.ts +2 -2
- package/dist/esm/types/components/layout/PipeSeparator.d.ts +6 -2
- package/dist/esm/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -6
- package/dist/esm/types/components/layout/TransactionProperties/TransactionProperties.d.ts +4 -8
- package/dist/esm/types/components/layout/index.d.ts +1 -11
- package/dist/esm/types/components/lists/TransactionAction/FeesAction.d.ts +4 -3
- package/dist/esm/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/TransactionAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionItem.d.ts +35 -20
- package/dist/esm/types/components/lists/TransactionItemSkeleton.d.ts +1 -0
- package/dist/esm/types/components/lists/index.d.ts +1 -0
- package/dist/esm/types/components/views/SwapProgressView.d.ts +2 -1
- package/dist/esm/types/components/views/TransactionNotFoundView.d.ts +1 -0
- package/dist/esm/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +23 -3
- package/dist/esm/types/components/views/TransactionView/BridgeTransactionView.d.ts +20 -5
- package/dist/esm/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +9 -11
- package/dist/esm/types/components/views/TransactionView/InteractionTransactionView.d.ts +10 -5
- package/dist/esm/types/components/views/TransactionView/SwapTransactionView.d.ts +10 -3
- package/dist/esm/types/components/views/TransactionView/TransactionView.d.ts +11 -6
- package/dist/esm/types/components/views/index.d.ts +1 -0
- package/dist/esm/types/core/utils.d.ts +1 -0
- package/dist/esm/types/stories/badges/Drip.stories.d.ts +7 -0
- package/dist/esm/types/stories/data/actions.d.ts +5 -0
- package/dist/esm/types/stories/data/network.d.ts +2 -0
- package/dist/esm/types/stories/layout/Card.stories.d.ts +6 -0
- package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +182 -12
- package/dist/esm/types/stories/lists/TransactionItemSkeleton.stories.d.ts +6 -0
- package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +1 -0
- package/dist/esm/types/stories/views/TransactionNotFoundView.stories.d.ts +6 -0
- package/dist/esm/types/stories/views/TransactionView.stories.d.ts +640 -7
- package/dist/esm/types/types/components.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +179 -248
- package/package.json +3 -3
- package/dist/cjs/types/components/layout/TransactionHeader/BridgeHeader.d.ts +0 -11
- package/dist/cjs/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +0 -10
- package/dist/cjs/types/components/layout/TransactionHeader/InteractionHeader.d.ts +0 -11
- package/dist/cjs/types/components/layout/TransactionHeader/ProfileHeader.d.ts +0 -11
- package/dist/cjs/types/components/layout/TransactionHeader/SwapHeader.d.ts +0 -16
- package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeader.d.ts +0 -23
- package/dist/cjs/types/components/layout/TransactionHeader/index.d.ts +0 -1
- package/dist/cjs/types/components/layout/TransactionProperties/BridgeProperties.d.ts +0 -21
- package/dist/cjs/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +0 -33
- package/dist/cjs/types/components/layout/TransactionProperties/InteractionProperties.d.ts +0 -11
- package/dist/cjs/types/components/layout/TransactionProperties/SwapProperties.d.ts +0 -28
- package/dist/cjs/types/components/layout/TransactionProperties/index.d.ts +0 -6
- package/dist/cjs/types/stories/layout/TransactionHeader.stories.d.ts +0 -10
- package/dist/cjs/types/stories/layout/TransactionProperties.stories.d.ts +0 -9
- package/dist/esm/types/components/layout/TransactionHeader/BridgeHeader.d.ts +0 -11
- package/dist/esm/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +0 -10
- package/dist/esm/types/components/layout/TransactionHeader/InteractionHeader.d.ts +0 -11
- package/dist/esm/types/components/layout/TransactionHeader/ProfileHeader.d.ts +0 -11
- package/dist/esm/types/components/layout/TransactionHeader/SwapHeader.d.ts +0 -16
- package/dist/esm/types/components/layout/TransactionHeader/TransactionHeader.d.ts +0 -23
- package/dist/esm/types/components/layout/TransactionHeader/index.d.ts +0 -1
- package/dist/esm/types/components/layout/TransactionProperties/BridgeProperties.d.ts +0 -21
- package/dist/esm/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +0 -33
- package/dist/esm/types/components/layout/TransactionProperties/InteractionProperties.d.ts +0 -11
- package/dist/esm/types/components/layout/TransactionProperties/SwapProperties.d.ts +0 -28
- package/dist/esm/types/components/layout/TransactionProperties/index.d.ts +0 -6
- package/dist/esm/types/stories/layout/TransactionHeader.stories.d.ts +0 -10
- package/dist/esm/types/stories/layout/TransactionProperties.stories.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default, { ReactNode, ComponentProps, ChangeEvent } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { LottieComponentProps } from 'lottie-react';
|
|
6
6
|
import * as motion_react from 'motion/react';
|
|
7
7
|
import { motion } from 'motion/react';
|
|
8
8
|
import { Config } from 'tailwindcss';
|
|
@@ -40,6 +40,7 @@ declare enum SwapState {
|
|
|
40
40
|
type ThemeType = "light" | "dark";
|
|
41
41
|
type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" | "error" | "warning";
|
|
42
42
|
type TransactionStateVariant = "full" | "compact" | "small";
|
|
43
|
+
type TransactionType = "swap" | "buy_nft" | "interaction" | "bridge";
|
|
43
44
|
type TokenPairVariant = "horizontal" | "vertical";
|
|
44
45
|
type TokenPairSize = "small" | "medium";
|
|
45
46
|
type ImageSize = "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
@@ -77,6 +78,19 @@ interface BadgeImageProps {
|
|
|
77
78
|
}
|
|
78
79
|
declare function BadgeImage({ image, badge, extraMarginForBadge, className, }: BadgeImageProps): false | react_jsx_runtime.JSX.Element;
|
|
79
80
|
|
|
81
|
+
interface DripProps {
|
|
82
|
+
direction?: "horizontal" | "vertical";
|
|
83
|
+
to: {
|
|
84
|
+
logoURI: string;
|
|
85
|
+
bgColor: string;
|
|
86
|
+
};
|
|
87
|
+
from: {
|
|
88
|
+
logoURI: string;
|
|
89
|
+
bgColor: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
declare const Drip: ({ direction, from, to }: DripProps) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
80
94
|
interface IconLabelProps {
|
|
81
95
|
src?: string;
|
|
82
96
|
children?: ReactNode;
|
|
@@ -104,8 +118,9 @@ declare function LoadingSkeleton({ className, height, isLoading: isLoadingProp,
|
|
|
104
118
|
interface LoadingTextProps$1 extends ComponentProps<"span"> {
|
|
105
119
|
width?: string | [string, string];
|
|
106
120
|
isLoading?: boolean;
|
|
121
|
+
showGradient?: boolean;
|
|
107
122
|
}
|
|
108
|
-
declare function TextSkeleton({ className, width, children, isLoading, ...props }: LoadingTextProps$1): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
123
|
+
declare function TextSkeleton({ className, width, children, isLoading, showGradient, ...props }: LoadingTextProps$1): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
109
124
|
interface LoadingBlockProps extends ComponentProps<"div"> {
|
|
110
125
|
isLoading?: boolean;
|
|
111
126
|
}
|
|
@@ -180,7 +195,7 @@ declare enum UserInputType {
|
|
|
180
195
|
USD = 1
|
|
181
196
|
}
|
|
182
197
|
interface UseNumericInputOptions {
|
|
183
|
-
token: Pick<Token$
|
|
198
|
+
token: Pick<Token$4, "decimals" | "price">;
|
|
184
199
|
onAmountChange: (tokenAmount: string) => void;
|
|
185
200
|
forcedAmount?: string;
|
|
186
201
|
formatIfVerySmall: {
|
|
@@ -224,13 +239,13 @@ interface TooltipProps {
|
|
|
224
239
|
}
|
|
225
240
|
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
226
241
|
|
|
227
|
-
interface Token$
|
|
242
|
+
interface Token$4 {
|
|
228
243
|
price: number;
|
|
229
244
|
symbol: string;
|
|
230
245
|
decimals: number;
|
|
231
246
|
}
|
|
232
247
|
interface NumericInputProps {
|
|
233
|
-
token: Token$
|
|
248
|
+
token: Token$4;
|
|
234
249
|
onAmountChange: (tokenAmount: string) => void;
|
|
235
250
|
forcedAmount?: string;
|
|
236
251
|
formatIfVerySmall?: {
|
|
@@ -256,7 +271,7 @@ interface NumericInputProps {
|
|
|
256
271
|
containerClassName?: string;
|
|
257
272
|
inputClassName?: string;
|
|
258
273
|
}
|
|
259
|
-
interface Props$
|
|
274
|
+
interface Props$2 extends NumericInputProps, React.InputHTMLAttributes<HTMLInputElement> {
|
|
260
275
|
direction?: SwapDirection;
|
|
261
276
|
showDetails?: boolean;
|
|
262
277
|
isLoading?: boolean;
|
|
@@ -267,7 +282,7 @@ interface Props$1 extends NumericInputProps, React.InputHTMLAttributes<HTMLInput
|
|
|
267
282
|
message: string;
|
|
268
283
|
};
|
|
269
284
|
}
|
|
270
|
-
declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, direction, inputModeButton, isInteractive, balanceButton, debounceInput, initialInputMode, customSymbol, hideControls, hideBalance, containerClassName, inputClassName, ...props }: Props$
|
|
285
|
+
declare function NumericInput({ priceImpactPercentage, balance, error, criticalPriceImpactPercentage, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, showDetails, isLoading, direction, inputModeButton, isInteractive, balanceButton, debounceInput, initialInputMode, customSymbol, hideControls, hideBalance, containerClassName, inputClassName, ...props }: Props$2): react_jsx_runtime.JSX.Element;
|
|
271
286
|
|
|
272
287
|
declare function LargeNumericInput({ balance, token, onAmountChange, forcedAmount, maxUsdDecimals, formatIfVerySmall, inputModeButton, balanceButton, debounceInput, }: NumericInputProps): react_jsx_runtime.JSX.Element;
|
|
273
288
|
|
|
@@ -429,12 +444,20 @@ declare function ArrowLeftIcon({ className, size, }: {
|
|
|
429
444
|
size?: string;
|
|
430
445
|
}): react_jsx_runtime.JSX.Element;
|
|
431
446
|
declare function ArrowRightUpCircleIcon(): react_jsx_runtime.JSX.Element;
|
|
447
|
+
declare function ArrowRightUpCircleFilledIcon({ className, }: {
|
|
448
|
+
className?: string;
|
|
449
|
+
}): react_jsx_runtime.JSX.Element;
|
|
432
450
|
declare function ArrowRightDownCircleIcon(): react_jsx_runtime.JSX.Element;
|
|
433
451
|
declare function ArrowOutOfBoxIcon(): react_jsx_runtime.JSX.Element;
|
|
434
452
|
declare function ChevronGrabberVerticalIcon({ size, className, }: {
|
|
435
453
|
size?: string;
|
|
436
454
|
className?: string;
|
|
437
455
|
}): react_jsx_runtime.JSX.Element;
|
|
456
|
+
declare function SquareArrowTopRightIcon({ className, size, strokeWidth, }: {
|
|
457
|
+
className?: string;
|
|
458
|
+
size?: string;
|
|
459
|
+
strokeWidth?: string;
|
|
460
|
+
}): react_jsx_runtime.JSX.Element;
|
|
438
461
|
declare function SquareArrowTopRight2Icon({ className, size, strokeWidth, }: {
|
|
439
462
|
className?: string;
|
|
440
463
|
size?: string;
|
|
@@ -636,6 +659,10 @@ declare function GhostIcon({ size, className, }: {
|
|
|
636
659
|
size?: string;
|
|
637
660
|
className?: string;
|
|
638
661
|
}): react_jsx_runtime.JSX.Element;
|
|
662
|
+
declare function GhostCircleIcon({ size, className, }: {
|
|
663
|
+
size?: string;
|
|
664
|
+
className?: string;
|
|
665
|
+
}): react_jsx_runtime.JSX.Element;
|
|
639
666
|
declare function SettingsSliderIcon({ size, className, }: {
|
|
640
667
|
size?: string;
|
|
641
668
|
className?: string;
|
|
@@ -930,7 +957,8 @@ declare function TagIcon({ size }: {
|
|
|
930
957
|
}): react_jsx_runtime.JSX.Element;
|
|
931
958
|
declare function TagIconFilled(): react_jsx_runtime.JSX.Element;
|
|
932
959
|
|
|
933
|
-
declare function ThumbsUp({ fill }: {
|
|
960
|
+
declare function ThumbsUp({ size, fill, }: {
|
|
961
|
+
size?: string;
|
|
934
962
|
fill?: boolean;
|
|
935
963
|
}): react_jsx_runtime.JSX.Element;
|
|
936
964
|
|
|
@@ -984,9 +1012,13 @@ declare function CrossedOutSunSolidIcon({ size, className, }: {
|
|
|
984
1012
|
className?: string;
|
|
985
1013
|
}): react_jsx_runtime.JSX.Element;
|
|
986
1014
|
|
|
987
|
-
interface Props extends
|
|
1015
|
+
interface Props$1 extends Omit<LottieComponentProps, "src" | "animationData"> {
|
|
1016
|
+
style?: React.CSSProperties;
|
|
1017
|
+
autoplay?: boolean;
|
|
1018
|
+
loop?: boolean;
|
|
1019
|
+
src: unknown;
|
|
988
1020
|
}
|
|
989
|
-
declare const AnimationWrapper: (playerProps: Props) => react_jsx_runtime.JSX.Element;
|
|
1021
|
+
declare const AnimationWrapper: ({ src, ...playerProps }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
990
1022
|
declare function AnimationCard({ children }: {
|
|
991
1023
|
children?: React.ReactNode;
|
|
992
1024
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1013,6 +1045,13 @@ declare function Breadcrumb({ children, className, }: {
|
|
|
1013
1045
|
className?: string;
|
|
1014
1046
|
}): react_jsx_runtime.JSX.Element;
|
|
1015
1047
|
|
|
1048
|
+
interface CardProps {
|
|
1049
|
+
children: React.ReactNode;
|
|
1050
|
+
variant: "transparent";
|
|
1051
|
+
className?: string;
|
|
1052
|
+
}
|
|
1053
|
+
declare const Card: ({ variant, className, children, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
1054
|
+
|
|
1016
1055
|
interface CollapseProps extends ComponentProps<"div"> {
|
|
1017
1056
|
collapsed: boolean;
|
|
1018
1057
|
collapsedHeight?: number;
|
|
@@ -1022,7 +1061,9 @@ interface CollapseProps extends ComponentProps<"div"> {
|
|
|
1022
1061
|
declare function Collapse({ collapsed, collapsedHeight, children, className, duration, contentsClassName, ...props }: CollapseProps): react_jsx_runtime.JSX.Element;
|
|
1023
1062
|
interface SizeTransitionProps extends ComponentProps<"div"> {
|
|
1024
1063
|
}
|
|
1025
|
-
declare function SizeTransition({ children, className, ...props }: SizeTransitionProps
|
|
1064
|
+
declare function SizeTransition({ children, className, disableInitialAnimation, ...props }: SizeTransitionProps & {
|
|
1065
|
+
disableInitialAnimation?: boolean;
|
|
1066
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1026
1067
|
|
|
1027
1068
|
interface CollapsibleMenuProps {
|
|
1028
1069
|
menuRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
@@ -1111,9 +1152,9 @@ interface HashLinkProps {
|
|
|
1111
1152
|
url?: string;
|
|
1112
1153
|
className?: string;
|
|
1113
1154
|
formattedHash?: string;
|
|
1114
|
-
|
|
1155
|
+
size?: "default" | "small";
|
|
1115
1156
|
}
|
|
1116
|
-
declare function HashLink({ showTx, hash, showCopyButton, url, children, className, formattedHash,
|
|
1157
|
+
declare function HashLink({ showTx, hash, showCopyButton, url, children, className, formattedHash, size, }: HashLinkProps): react_jsx_runtime.JSX.Element;
|
|
1117
1158
|
|
|
1118
1159
|
interface ImageStackProps extends ImageProps {
|
|
1119
1160
|
imageUrls: string[];
|
|
@@ -1201,7 +1242,10 @@ interface NavigationBarProps extends React.ComponentProps<"nav"> {
|
|
|
1201
1242
|
}
|
|
1202
1243
|
declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, subtitle, paddingRight, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
1203
1244
|
|
|
1204
|
-
|
|
1245
|
+
interface Props extends ComponentProps<"div"> {
|
|
1246
|
+
size?: "default" | "small" | "large";
|
|
1247
|
+
}
|
|
1248
|
+
declare function PipeSeparator({ className, size, ...props }: Props): react_jsx_runtime.JSX.Element;
|
|
1205
1249
|
|
|
1206
1250
|
declare function ProductCard({ children }: React.PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
1207
1251
|
declare function BorderedContainer({ children, className, }: {
|
|
@@ -1324,7 +1368,7 @@ interface ToastProps {
|
|
|
1324
1368
|
}
|
|
1325
1369
|
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
1326
1370
|
|
|
1327
|
-
interface Token$
|
|
1371
|
+
interface Token$3 {
|
|
1328
1372
|
address: string;
|
|
1329
1373
|
name: string;
|
|
1330
1374
|
symbol: string;
|
|
@@ -1340,7 +1384,7 @@ type Timeframe = "1H" | "1D" | "1W" | "1Y";
|
|
|
1340
1384
|
interface TokenDetailsViewProps {
|
|
1341
1385
|
isOpen: boolean;
|
|
1342
1386
|
onClose: () => void;
|
|
1343
|
-
token: Token$
|
|
1387
|
+
token: Token$3;
|
|
1344
1388
|
chain: Chain;
|
|
1345
1389
|
tokenPrice: string;
|
|
1346
1390
|
priceChange: string | number;
|
|
@@ -1402,151 +1446,18 @@ interface TransactionFiltersProps {
|
|
|
1402
1446
|
}
|
|
1403
1447
|
declare function TransactionFilters({ chainType, setChainType, chain, setChain, fromDate, setFromDate, toDate, setToDate, status, setStatus, chains, }: TransactionFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1404
1448
|
|
|
1405
|
-
interface
|
|
1406
|
-
tokenLogoURI: string;
|
|
1407
|
-
chainLogoURI: string;
|
|
1408
|
-
title?: string;
|
|
1409
|
-
hash: string;
|
|
1410
|
-
url?: string;
|
|
1411
|
-
status: ActionStatus;
|
|
1412
|
-
}
|
|
1413
|
-
declare function BridgeHeader({ tokenLogoURI, chainLogoURI, title, hash, url, status, }: BridgeHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1414
|
-
|
|
1415
|
-
interface BuyNFTHeaderProps {
|
|
1416
|
-
imageUrl: string;
|
|
1417
|
-
title?: string;
|
|
1418
|
-
hash: string;
|
|
1419
|
-
url?: string;
|
|
1420
|
-
status: ActionStatus;
|
|
1421
|
-
}
|
|
1422
|
-
declare function BuyNFTHeader({ imageUrl, title, hash, url, status, }: BuyNFTHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1423
|
-
|
|
1424
|
-
interface InteractionHeaderProps {
|
|
1425
|
-
title?: string;
|
|
1426
|
-
image?: ReactNode;
|
|
1427
|
-
hash: string;
|
|
1428
|
-
url?: string;
|
|
1429
|
-
status: ActionStatus;
|
|
1430
|
-
}
|
|
1431
|
-
declare function InteractionHeader({ title, image, hash, url, status, }: InteractionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1432
|
-
|
|
1433
|
-
interface ProfileHeaderProps {
|
|
1434
|
-
imageUrl: string;
|
|
1435
|
-
title: string;
|
|
1436
|
-
wallet: {
|
|
1437
|
-
imageURI: string;
|
|
1438
|
-
address: string;
|
|
1439
|
-
};
|
|
1440
|
-
amount: string;
|
|
1441
|
-
}
|
|
1442
|
-
declare function ProfileHeader({ imageUrl, title, wallet, amount, }: ProfileHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1443
|
-
|
|
1444
|
-
interface SwapHeaderProps {
|
|
1445
|
-
fromToken: {
|
|
1446
|
-
logoURI: string;
|
|
1447
|
-
bgColor: string;
|
|
1448
|
-
};
|
|
1449
|
-
toToken: {
|
|
1450
|
-
logoURI: string;
|
|
1451
|
-
bgColor: string;
|
|
1452
|
-
};
|
|
1453
|
-
title?: string;
|
|
1454
|
-
hash: string;
|
|
1455
|
-
url?: string;
|
|
1456
|
-
status: ActionStatus;
|
|
1457
|
-
}
|
|
1458
|
-
declare function SwapHeader({ fromToken, toToken, title, hash, url, status, }: SwapHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1459
|
-
|
|
1460
|
-
declare const headerComponentsMap: {
|
|
1461
|
-
readonly swap: typeof SwapHeader;
|
|
1462
|
-
readonly buy_nft: typeof BuyNFTHeader;
|
|
1463
|
-
readonly interaction: typeof InteractionHeader;
|
|
1464
|
-
readonly bridge: typeof BridgeHeader;
|
|
1465
|
-
readonly profile: typeof ProfileHeader;
|
|
1466
|
-
};
|
|
1467
|
-
type TransactionHeaderComponents = typeof headerComponentsMap;
|
|
1468
|
-
type TransactionHeaderType = keyof TransactionHeaderComponents;
|
|
1469
|
-
type TransactionHeaderProps = {
|
|
1470
|
-
[Type in TransactionHeaderType]: {
|
|
1471
|
-
type: Type;
|
|
1472
|
-
props: ComponentProps<TransactionHeaderComponents[Type]>;
|
|
1473
|
-
};
|
|
1474
|
-
}[TransactionHeaderType];
|
|
1475
|
-
declare function TransactionHeader({ type, props }: TransactionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1476
|
-
|
|
1477
|
-
interface TransactionHeaderLayoutProps {
|
|
1478
|
-
isLoading?: boolean;
|
|
1449
|
+
interface BaseTransactionHeaderLayoutProps {
|
|
1479
1450
|
status?: ActionStatus;
|
|
1480
1451
|
title?: string;
|
|
1481
|
-
|
|
1452
|
+
media?: ReactNode;
|
|
1482
1453
|
children?: ReactNode;
|
|
1483
1454
|
}
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
bgColor: string;
|
|
1491
|
-
symbol: string;
|
|
1492
|
-
};
|
|
1493
|
-
fromChain: {
|
|
1494
|
-
logoURI: string;
|
|
1495
|
-
name: string;
|
|
1496
|
-
};
|
|
1497
|
-
toChain: {
|
|
1498
|
-
logoURI: string;
|
|
1499
|
-
name: string;
|
|
1500
|
-
};
|
|
1501
|
-
wallet: string;
|
|
1502
|
-
boosted?: boolean;
|
|
1503
|
-
timeToComplete: string;
|
|
1504
|
-
}
|
|
1505
|
-
declare function BridgeProperties({ amount, token, fromChain, toChain, wallet, boosted, timeToComplete, }: BridgePropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1506
|
-
|
|
1507
|
-
interface BuyNFTPropertiesProps {
|
|
1508
|
-
title: string;
|
|
1509
|
-
imageURI: string;
|
|
1510
|
-
collection: {
|
|
1511
|
-
imageURI: string;
|
|
1512
|
-
name: string;
|
|
1513
|
-
};
|
|
1514
|
-
price: string;
|
|
1515
|
-
token: {
|
|
1516
|
-
logoURI: string;
|
|
1517
|
-
symbol: string;
|
|
1518
|
-
};
|
|
1519
|
-
marketplace: {
|
|
1520
|
-
logoURI: string;
|
|
1521
|
-
name: string;
|
|
1522
|
-
};
|
|
1523
|
-
fromChain: {
|
|
1524
|
-
logoURI: string;
|
|
1525
|
-
name: string;
|
|
1526
|
-
};
|
|
1527
|
-
toChain: {
|
|
1528
|
-
logoURI: string;
|
|
1529
|
-
name: string;
|
|
1530
|
-
};
|
|
1531
|
-
fromAddress: string;
|
|
1532
|
-
toAddress: string;
|
|
1533
|
-
boosted?: boolean;
|
|
1534
|
-
timeToComplete: string;
|
|
1535
|
-
tokenId: string;
|
|
1536
|
-
nftType: string;
|
|
1537
|
-
}
|
|
1538
|
-
declare function BuyNFTProperties({ title, imageURI, collection, price, token, marketplace, fromChain, toChain, fromAddress, toAddress, boosted, timeToComplete, tokenId, nftType, }: BuyNFTPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1539
|
-
|
|
1540
|
-
interface InteractionPropertiesProps {
|
|
1541
|
-
chain: {
|
|
1542
|
-
logoURI: string;
|
|
1543
|
-
name: string;
|
|
1544
|
-
};
|
|
1545
|
-
wallet: string;
|
|
1546
|
-
boosted?: boolean;
|
|
1547
|
-
timeToComplete: string;
|
|
1548
|
-
}
|
|
1549
|
-
declare function InteractionProperties({ chain, wallet, boosted, timeToComplete, }: InteractionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1455
|
+
type TransactionHeaderLayoutProps = (BaseTransactionHeaderLayoutProps & {
|
|
1456
|
+
isLoading: true;
|
|
1457
|
+
}) | (Required<BaseTransactionHeaderLayoutProps> & {
|
|
1458
|
+
isLoading?: false;
|
|
1459
|
+
});
|
|
1460
|
+
declare function TransactionHeaderLayout({ isLoading, status, title, media, children, }: TransactionHeaderLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1550
1461
|
|
|
1551
1462
|
interface PropertiesLayoutProps {
|
|
1552
1463
|
children?: ReactNode;
|
|
@@ -1554,51 +1465,6 @@ interface PropertiesLayoutProps {
|
|
|
1554
1465
|
}
|
|
1555
1466
|
declare function PropertiesLayout({ children, className, }: PropertiesLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1556
1467
|
|
|
1557
|
-
interface SwapPropertiesProps {
|
|
1558
|
-
fromAmount: string;
|
|
1559
|
-
fromToken: {
|
|
1560
|
-
logoURI: string;
|
|
1561
|
-
bgColor: string;
|
|
1562
|
-
symbol: string;
|
|
1563
|
-
};
|
|
1564
|
-
toAmount: string;
|
|
1565
|
-
toToken: {
|
|
1566
|
-
logoURI: string;
|
|
1567
|
-
bgColor: string;
|
|
1568
|
-
symbol: string;
|
|
1569
|
-
};
|
|
1570
|
-
fromChain: {
|
|
1571
|
-
logoURI: string;
|
|
1572
|
-
name: string;
|
|
1573
|
-
};
|
|
1574
|
-
toChain: {
|
|
1575
|
-
logoURI: string;
|
|
1576
|
-
name: string;
|
|
1577
|
-
};
|
|
1578
|
-
fromAddress: string;
|
|
1579
|
-
toAddress: string;
|
|
1580
|
-
exchangeRate: string;
|
|
1581
|
-
boosted?: boolean;
|
|
1582
|
-
timeToComplete: string;
|
|
1583
|
-
}
|
|
1584
|
-
declare function SwapProperties({ fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, }: SwapPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1585
|
-
|
|
1586
|
-
declare const propertiesComponentsMap: {
|
|
1587
|
-
readonly swap: typeof SwapProperties;
|
|
1588
|
-
readonly buy_nft: typeof BuyNFTProperties;
|
|
1589
|
-
readonly interaction: typeof InteractionProperties;
|
|
1590
|
-
readonly bridge: typeof BridgeProperties;
|
|
1591
|
-
};
|
|
1592
|
-
type TransactionPropertiesComponents = typeof propertiesComponentsMap;
|
|
1593
|
-
type TransactionPropertiesType = keyof TransactionPropertiesComponents;
|
|
1594
|
-
type TransactionPropertiesProps = {
|
|
1595
|
-
[Type in TransactionPropertiesType]: {
|
|
1596
|
-
type: Type;
|
|
1597
|
-
props: ComponentProps<TransactionPropertiesComponents[Type]>;
|
|
1598
|
-
};
|
|
1599
|
-
}[TransactionPropertiesType];
|
|
1600
|
-
declare function TransactionProperties({ type, props, }: TransactionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1601
|
-
|
|
1602
1468
|
interface TransactionSearchProps {
|
|
1603
1469
|
query: string;
|
|
1604
1470
|
setQuery: (query: string) => void;
|
|
@@ -2025,13 +1891,14 @@ interface FeesLinesProps {
|
|
|
2025
1891
|
lines?: FeesRowProps[];
|
|
2026
1892
|
showTimeline?: boolean;
|
|
2027
1893
|
}
|
|
2028
|
-
declare function FeesLines({ status, lines
|
|
1894
|
+
declare function FeesLines({ status, lines }: FeesLinesProps): react_jsx_runtime.JSX.Element;
|
|
2029
1895
|
interface FeesRowProps {
|
|
2030
1896
|
label: string;
|
|
2031
1897
|
amount: number | string;
|
|
2032
1898
|
symbol: string;
|
|
2033
1899
|
usd: number | string;
|
|
2034
1900
|
collapsed?: boolean;
|
|
1901
|
+
className?: string;
|
|
2035
1902
|
}
|
|
2036
1903
|
|
|
2037
1904
|
interface IncompleteActionProps extends BaseActionProps {
|
|
@@ -2196,32 +2063,49 @@ declare function TransactionAction({ type, props }: TransactionActionProps): rea
|
|
|
2196
2063
|
|
|
2197
2064
|
declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
2198
2065
|
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2066
|
+
interface Token$2 {
|
|
2067
|
+
symbol: string;
|
|
2068
|
+
bgColor: string;
|
|
2069
|
+
logoURI: string;
|
|
2203
2070
|
}
|
|
2204
|
-
interface
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
type
|
|
2210
|
-
hash
|
|
2211
|
-
|
|
2071
|
+
interface NFT$1 {
|
|
2072
|
+
imageUrl: string;
|
|
2073
|
+
}
|
|
2074
|
+
interface BaseTransactionItemProps {
|
|
2075
|
+
status: ActionStatus;
|
|
2076
|
+
type: TransactionType;
|
|
2077
|
+
hash: string;
|
|
2078
|
+
toToken: Token$2;
|
|
2079
|
+
fromToken: Token$2;
|
|
2080
|
+
fromChain: {
|
|
2212
2081
|
logoURI: string;
|
|
2213
2082
|
name: string;
|
|
2214
2083
|
};
|
|
2215
|
-
toChain
|
|
2084
|
+
toChain: {
|
|
2216
2085
|
logoURI: string;
|
|
2217
2086
|
name: string;
|
|
2218
2087
|
};
|
|
2219
|
-
fromAmount
|
|
2220
|
-
toAmount
|
|
2221
|
-
timestamp
|
|
2222
|
-
variant?: TransactionItemVariant;
|
|
2088
|
+
fromAmount: string;
|
|
2089
|
+
toAmount: string;
|
|
2090
|
+
timestamp: number;
|
|
2223
2091
|
}
|
|
2224
|
-
|
|
2092
|
+
interface SwapTransactionProps extends BaseTransactionItemProps {
|
|
2093
|
+
type: "swap";
|
|
2094
|
+
}
|
|
2095
|
+
interface BuyNFTTransactionProps extends Omit<BaseTransactionItemProps, "toToken"> {
|
|
2096
|
+
type: "buy_nft";
|
|
2097
|
+
toToken: {
|
|
2098
|
+
symbol: string;
|
|
2099
|
+
};
|
|
2100
|
+
nft: NFT$1;
|
|
2101
|
+
}
|
|
2102
|
+
interface BridgeTransactionProps extends BaseTransactionItemProps {
|
|
2103
|
+
type: "bridge";
|
|
2104
|
+
}
|
|
2105
|
+
type TransactionItemProps = SwapTransactionProps | BuyNFTTransactionProps | BridgeTransactionProps;
|
|
2106
|
+
declare const TransactionItem: (props: TransactionItemProps) => react_jsx_runtime.JSX.Element;
|
|
2107
|
+
|
|
2108
|
+
declare const TransactionItemSkeleton: () => react_jsx_runtime.JSX.Element;
|
|
2225
2109
|
|
|
2226
2110
|
type TabSize = "small" | "large";
|
|
2227
2111
|
interface TabsProps {
|
|
@@ -2313,7 +2197,7 @@ interface Token {
|
|
|
2313
2197
|
logoUrl: string;
|
|
2314
2198
|
bgColor: string;
|
|
2315
2199
|
}
|
|
2316
|
-
declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, refundTokenSymbol, addGasLink, shareSwapDropdownContent, isSendTransaction, }: {
|
|
2200
|
+
declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, refundTokenSymbol, addGasLink, shareSwapDropdownContent, isSendTransaction, isBridgeTransaction, }: {
|
|
2317
2201
|
steps: SwapStep[];
|
|
2318
2202
|
handleClose?: (swapState: SwapState) => void;
|
|
2319
2203
|
handleComplete?: () => void;
|
|
@@ -2334,24 +2218,34 @@ declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete,
|
|
|
2334
2218
|
refundTokenSymbol?: string;
|
|
2335
2219
|
addGasLink?: string;
|
|
2336
2220
|
isSendTransaction?: boolean;
|
|
2221
|
+
isBridgeTransaction?: boolean;
|
|
2337
2222
|
}): react_jsx_runtime.JSX.Element;
|
|
2338
2223
|
|
|
2224
|
+
interface NFT {
|
|
2225
|
+
imageUrl: string;
|
|
2226
|
+
name: string;
|
|
2227
|
+
imageURI: string;
|
|
2228
|
+
collection: {
|
|
2229
|
+
name: string;
|
|
2230
|
+
imageURI: string;
|
|
2231
|
+
};
|
|
2232
|
+
tokenID: string;
|
|
2233
|
+
nftType: string;
|
|
2234
|
+
}
|
|
2235
|
+
interface Collection {
|
|
2236
|
+
image: string;
|
|
2237
|
+
name: string;
|
|
2238
|
+
}
|
|
2339
2239
|
interface BaseTransactionViewProps {
|
|
2340
2240
|
title?: string;
|
|
2341
2241
|
hash: string;
|
|
2342
2242
|
status: ActionStatus;
|
|
2343
2243
|
url?: string;
|
|
2344
|
-
actions
|
|
2244
|
+
actions?: TransactionActionProps[];
|
|
2345
2245
|
fees: FeesActionProps;
|
|
2346
2246
|
}
|
|
2347
2247
|
|
|
2348
|
-
interface
|
|
2349
|
-
title: string;
|
|
2350
|
-
imageURI: string;
|
|
2351
|
-
collection: {
|
|
2352
|
-
imageURI: string;
|
|
2353
|
-
name: string;
|
|
2354
|
-
};
|
|
2248
|
+
interface BaseBuyNFTTransactionViewProps extends BaseTransactionViewProps {
|
|
2355
2249
|
price: string;
|
|
2356
2250
|
token: {
|
|
2357
2251
|
logoURI: string;
|
|
@@ -2372,14 +2266,18 @@ interface BuyNFTTTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2372
2266
|
fromAddress: string;
|
|
2373
2267
|
toAddress: string;
|
|
2374
2268
|
boosted?: boolean;
|
|
2375
|
-
|
|
2376
|
-
nftType: string;
|
|
2269
|
+
nft: NFT;
|
|
2377
2270
|
timeToComplete: string;
|
|
2378
2271
|
}
|
|
2379
|
-
|
|
2272
|
+
type BuyNFTTransactionViewProps = (BaseBuyNFTTransactionViewProps & {
|
|
2273
|
+
isLoading?: false;
|
|
2274
|
+
}) | (Partial<BaseBuyNFTTransactionViewProps> & {
|
|
2275
|
+
isLoading: true;
|
|
2276
|
+
});
|
|
2277
|
+
declare function BuyNFTTransactionView({ title, hash, status, url, price, token, marketplace, fromChain, toChain, fromAddress, toAddress, boosted, timeToComplete, nft, actions, fees, isLoading, }: BuyNFTTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2380
2278
|
|
|
2381
|
-
interface
|
|
2382
|
-
image
|
|
2279
|
+
interface BaseInteractionTransactionViewProps extends BaseTransactionViewProps {
|
|
2280
|
+
image: ReactNode;
|
|
2383
2281
|
chain: {
|
|
2384
2282
|
logoURI: string;
|
|
2385
2283
|
name: string;
|
|
@@ -2388,9 +2286,14 @@ interface InteractionTTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2388
2286
|
boosted?: boolean;
|
|
2389
2287
|
timeToComplete: string;
|
|
2390
2288
|
}
|
|
2391
|
-
|
|
2289
|
+
type InteractionTransactionViewProps = (BaseInteractionTransactionViewProps & {
|
|
2290
|
+
isLoading?: false;
|
|
2291
|
+
}) | (Partial<BaseInteractionTransactionViewProps> & BaseTransactionViewProps & {
|
|
2292
|
+
isLoading: true;
|
|
2293
|
+
});
|
|
2294
|
+
declare function InteractionTransactionView({ title, hash, status, url, chain, address, boosted, timeToComplete, actions, fees, isLoading, }: InteractionTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2392
2295
|
|
|
2393
|
-
interface
|
|
2296
|
+
interface BaseSwapTransactionViewProps extends BaseTransactionViewProps {
|
|
2394
2297
|
fromAmount: string;
|
|
2395
2298
|
fromToken: {
|
|
2396
2299
|
logoURI: string;
|
|
@@ -2411,17 +2314,28 @@ interface SwapTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2411
2314
|
logoURI: string;
|
|
2412
2315
|
name: string;
|
|
2413
2316
|
};
|
|
2317
|
+
fromLink?: string;
|
|
2318
|
+
toLink?: string;
|
|
2414
2319
|
fromAddress: string;
|
|
2415
2320
|
toAddress: string;
|
|
2416
2321
|
exchangeRate: string;
|
|
2417
2322
|
boosted?: boolean;
|
|
2418
2323
|
timeToComplete: string;
|
|
2419
2324
|
}
|
|
2420
|
-
|
|
2325
|
+
type SwapTransactionViewProps = (BaseSwapTransactionViewProps & {
|
|
2326
|
+
isLoading?: false;
|
|
2327
|
+
}) | (Partial<Omit<BaseSwapTransactionViewProps, keyof BaseTransactionViewProps>> & BaseTransactionViewProps & {
|
|
2328
|
+
isLoading: true;
|
|
2329
|
+
});
|
|
2330
|
+
declare function SwapTransactionView({ title, hash, toLink, fromLink, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, actions, fees, isLoading, }: SwapTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2421
2331
|
|
|
2422
|
-
interface
|
|
2423
|
-
|
|
2424
|
-
|
|
2332
|
+
interface BaseBridgeTransactionViewProps extends BaseTransactionViewProps {
|
|
2333
|
+
fromToken: {
|
|
2334
|
+
logoURI: string;
|
|
2335
|
+
bgColor: string;
|
|
2336
|
+
symbol: string;
|
|
2337
|
+
};
|
|
2338
|
+
toToken: {
|
|
2425
2339
|
logoURI: string;
|
|
2426
2340
|
bgColor: string;
|
|
2427
2341
|
symbol: string;
|
|
@@ -2429,16 +2343,27 @@ interface BridgeTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2429
2343
|
fromChain: {
|
|
2430
2344
|
logoURI: string;
|
|
2431
2345
|
name: string;
|
|
2346
|
+
bgColor: string;
|
|
2432
2347
|
};
|
|
2433
2348
|
toChain: {
|
|
2434
2349
|
logoURI: string;
|
|
2435
2350
|
name: string;
|
|
2351
|
+
bgColor: string;
|
|
2436
2352
|
};
|
|
2437
2353
|
address: string;
|
|
2438
2354
|
boosted?: boolean;
|
|
2439
2355
|
timeToComplete: string;
|
|
2356
|
+
fromLink?: string;
|
|
2357
|
+
toLink?: string;
|
|
2358
|
+
fromAmount: string;
|
|
2359
|
+
toAmount: string;
|
|
2440
2360
|
}
|
|
2441
|
-
|
|
2361
|
+
type BridgeTransactionViewProps = (BaseBridgeTransactionViewProps & {
|
|
2362
|
+
isLoading?: false;
|
|
2363
|
+
}) | (Partial<Omit<BaseBridgeTransactionViewProps, keyof BaseTransactionViewProps>> & BaseTransactionViewProps & {
|
|
2364
|
+
isLoading: true;
|
|
2365
|
+
});
|
|
2366
|
+
declare function BridgeTransactionView({ title, hash, fromLink, toLink, status, url, fromAmount, toAmount, fromToken, toToken, fromChain, toChain, address, actions, fees, boosted, timeToComplete, isLoading, }: BridgeTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2442
2367
|
|
|
2443
2368
|
declare const componentMap: {
|
|
2444
2369
|
readonly swap: typeof SwapTransactionView;
|
|
@@ -2447,14 +2372,18 @@ declare const componentMap: {
|
|
|
2447
2372
|
readonly bridge: typeof BridgeTransactionView;
|
|
2448
2373
|
};
|
|
2449
2374
|
type TransactionViewComponents = typeof componentMap;
|
|
2450
|
-
type TransactionViewType = keyof TransactionViewComponents;
|
|
2451
2375
|
type TransactionViewProps = {
|
|
2452
|
-
[Type in
|
|
2376
|
+
[Type in TransactionType]: {
|
|
2453
2377
|
type: Type;
|
|
2454
|
-
|
|
2378
|
+
isLoading?: false;
|
|
2379
|
+
data: Omit<Partial<ComponentProps<TransactionViewComponents[Type]>>, "isLoading">;
|
|
2380
|
+
} | {
|
|
2381
|
+
type: Type;
|
|
2382
|
+
isLoading: true;
|
|
2383
|
+
data?: Omit<Partial<ComponentProps<TransactionViewComponents[Type]>>, "isLoading">;
|
|
2455
2384
|
};
|
|
2456
|
-
}[
|
|
2457
|
-
declare function TransactionView({ type,
|
|
2385
|
+
}[TransactionType];
|
|
2386
|
+
declare function TransactionView({ type, isLoading, data, }: TransactionViewProps): react_jsx_runtime.JSX.Element | null;
|
|
2458
2387
|
|
|
2459
2388
|
interface TransactionViewLayoutProps extends ComponentProps<"div"> {
|
|
2460
2389
|
isLoading?: boolean;
|
|
@@ -2465,6 +2394,8 @@ interface TransactionViewLayoutProps extends ComponentProps<"div"> {
|
|
|
2465
2394
|
}
|
|
2466
2395
|
declare function TransactionViewLayout({ isLoading, header, properties, actions, fees, ...props }: TransactionViewLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2467
2396
|
|
|
2397
|
+
declare const TransactionNotFoundView: () => react_jsx_runtime.JSX.Element;
|
|
2398
|
+
|
|
2468
2399
|
interface ThemeProviderProps extends React.ComponentProps<"div"> {
|
|
2469
2400
|
theme?: Theme;
|
|
2470
2401
|
children?: React.ReactNode;
|
|
@@ -16624,4 +16555,4 @@ declare const transactionRejectedAnimation: {
|
|
|
16624
16555
|
markers: never[];
|
|
16625
16556
|
};
|
|
16626
16557
|
|
|
16627
|
-
export { ANIMATION_DURATIONS, AccountListItem, AccountsButton, type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AddressHeader, type AllOrNone, AnimateNumber, AnimationCard, AnimationWrapper, Announcement, type AnnouncementProps, AppContainer, ApplePayIcon, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowExpandIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, BoostBadge, BorderedContainer, Breadcrumb, BridgeAction,
|
|
16558
|
+
export { ANIMATION_DURATIONS, AccountListItem, AccountsButton, type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AddressHeader, type AllOrNone, AnimateNumber, AnimationCard, AnimationWrapper, Announcement, type AnnouncementProps, AppContainer, ApplePayIcon, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowExpandIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleFilledIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, BoostBadge, BorderedContainer, Breadcrumb, BridgeAction, BrokenHeartIcon, BubblesIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, Card, CatSquareIcon, CelebrateIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleCheckIcon, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, type Collection, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy2Icon, CopyOutlinedIcon, CreditCardIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, DepositAddressView, type DescriptionBlock, DescriptionBlocks, DetailsToolbar, DiscordIcon, DockIconAnalytics, DockIconCheckout, DockIconHelp, DockIconProfile, DockIconScan, DockIconSwap, DockSwapIcon, DollarOutlinedIcon, DollarSolidIcon, DotGrid1x3HorizontalIcon, Drip, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuTitle, type DropdownPosition, type DropdownStyles, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, EyeOpenIcon, FarcasterIcon, FavouriteFilterIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FileDownloadIcon, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostCircleIcon, GhostIcon, GithubIcon, GooglePayIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HighestPriceRangeIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, type IconButtonProps, IconLabel, Image, ImageGroup, ImageIcon, type ImageProps, ImageSparkle, ImageStack, ImageState, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionTransactionView, Join, LaptopIcon, LargeNumericInput, LimitIcon, LinkIcon, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, LoadingText, MEDIA_QUERIES, MarketCapIcon, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, ModalTitle, MoneyBagIcon, MoonIcon, type NFT, NavigationBar, NewsIcon, NewspaperIcon, NotAllowedIcon, NumericInput, type NumericInputProps, PathSquareIcon, PauseIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PluginIcon, PlusIcon, PoopIcon, PowerIcon, PriceChange, ProductCard, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type Props$2 as Props, type PublicTheme, PunkIcon, QrCode, QrCodeIcon, QrCodeModal, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RefreshIcon, ReorderIcon, RouteStep, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, type Settings, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, SettingsSliderIcon, type SettingsSliderProps, ShoppingBagIcon, SizeTransition, SmileFilledIcon, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquareArrowTopRightIcon, SquidLogo, StakeAction, StarLinesIcon, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, SwapAction, SwapConfiguration, SwapErrorIcon, SwapIcon, SwapInputsIcon, SwapProgressView, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, Tab, Tabs, TagIcon, TagIconFilled, TelegramIcon, TextSkeleton, type Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, type Timeframe, Timeline, Timestamp, Toast, TokenDetailsView, TokenGroup, type TokenGroupProps, type TokenGroupVariant, TokenGroups, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TradingViewStepsIcon, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeaderLayout, TransactionItem, type TransactionItemProps, TransactionItemSkeleton, TransactionNotFoundView, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, Transfer, TranslateIcon, TriangleExclamation, TxProgressViewHeader, UnsupportedPairNotice, UsdAmount, UserInputType, WalletFilledIcon, WalletIcon, WalletLink, WrapAction, XSocialIcon, adjustColorForContrast, baseTailwindConfig, blendColors, buttonRoundedClassMap, cn, darkTheme, getColorBrightness, getContrastColor, getHexColorFromOpacityPercentage, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseColor, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, themeKeysToCssVariables, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useNumericInput, useOnResize, useRect, useTimer, useUserTheme, useVersion };
|