@0xsquid/ui 3.0.2 → 3.1.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 +18491 -838
- 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/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 +3 -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/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/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 +2 -2
- 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/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 +10 -3
- 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 +8 -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/TransactionNotFoundView.stories.d.ts +6 -0
- package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +634 -7
- package/dist/cjs/types/types/components.d.ts +1 -0
- package/dist/esm/index.js +18236 -578
- 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/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 +3 -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/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/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 +2 -2
- 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/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 +10 -3
- 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 +8 -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/TransactionNotFoundView.stories.d.ts +6 -0
- package/dist/esm/types/stories/views/TransactionView.stories.d.ts +634 -7
- package/dist/esm/types/types/components.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +150 -239
- 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?: {
|
|
@@ -429,6 +444,9 @@ 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, }: {
|
|
@@ -636,6 +654,10 @@ declare function GhostIcon({ size, className, }: {
|
|
|
636
654
|
size?: string;
|
|
637
655
|
className?: string;
|
|
638
656
|
}): react_jsx_runtime.JSX.Element;
|
|
657
|
+
declare function GhostCircleIcon({ size, className, }: {
|
|
658
|
+
size?: string;
|
|
659
|
+
className?: string;
|
|
660
|
+
}): react_jsx_runtime.JSX.Element;
|
|
639
661
|
declare function SettingsSliderIcon({ size, className, }: {
|
|
640
662
|
size?: string;
|
|
641
663
|
className?: string;
|
|
@@ -930,7 +952,8 @@ declare function TagIcon({ size }: {
|
|
|
930
952
|
}): react_jsx_runtime.JSX.Element;
|
|
931
953
|
declare function TagIconFilled(): react_jsx_runtime.JSX.Element;
|
|
932
954
|
|
|
933
|
-
declare function ThumbsUp({ fill }: {
|
|
955
|
+
declare function ThumbsUp({ size, fill, }: {
|
|
956
|
+
size?: string;
|
|
934
957
|
fill?: boolean;
|
|
935
958
|
}): react_jsx_runtime.JSX.Element;
|
|
936
959
|
|
|
@@ -984,9 +1007,13 @@ declare function CrossedOutSunSolidIcon({ size, className, }: {
|
|
|
984
1007
|
className?: string;
|
|
985
1008
|
}): react_jsx_runtime.JSX.Element;
|
|
986
1009
|
|
|
987
|
-
interface Props extends
|
|
1010
|
+
interface Props extends Omit<LottieComponentProps, "src"> {
|
|
1011
|
+
style?: React.CSSProperties;
|
|
1012
|
+
autoplay?: boolean;
|
|
1013
|
+
loop?: boolean;
|
|
1014
|
+
src: unknown;
|
|
988
1015
|
}
|
|
989
|
-
declare const AnimationWrapper: (playerProps: Props) => react_jsx_runtime.JSX.Element;
|
|
1016
|
+
declare const AnimationWrapper: ({ src, ...playerProps }: Props) => react_jsx_runtime.JSX.Element;
|
|
990
1017
|
declare function AnimationCard({ children }: {
|
|
991
1018
|
children?: React.ReactNode;
|
|
992
1019
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1013,6 +1040,13 @@ declare function Breadcrumb({ children, className, }: {
|
|
|
1013
1040
|
className?: string;
|
|
1014
1041
|
}): react_jsx_runtime.JSX.Element;
|
|
1015
1042
|
|
|
1043
|
+
interface CardProps {
|
|
1044
|
+
children: React.ReactNode;
|
|
1045
|
+
variant: "transparent";
|
|
1046
|
+
className?: string;
|
|
1047
|
+
}
|
|
1048
|
+
declare const Card: ({ variant, className, children, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
1049
|
+
|
|
1016
1050
|
interface CollapseProps extends ComponentProps<"div"> {
|
|
1017
1051
|
collapsed: boolean;
|
|
1018
1052
|
collapsedHeight?: number;
|
|
@@ -1022,7 +1056,9 @@ interface CollapseProps extends ComponentProps<"div"> {
|
|
|
1022
1056
|
declare function Collapse({ collapsed, collapsedHeight, children, className, duration, contentsClassName, ...props }: CollapseProps): react_jsx_runtime.JSX.Element;
|
|
1023
1057
|
interface SizeTransitionProps extends ComponentProps<"div"> {
|
|
1024
1058
|
}
|
|
1025
|
-
declare function SizeTransition({ children, className, ...props }: SizeTransitionProps
|
|
1059
|
+
declare function SizeTransition({ children, className, disableInitialAnimation, ...props }: SizeTransitionProps & {
|
|
1060
|
+
disableInitialAnimation?: boolean;
|
|
1061
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1026
1062
|
|
|
1027
1063
|
interface CollapsibleMenuProps {
|
|
1028
1064
|
menuRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
@@ -1324,7 +1360,7 @@ interface ToastProps {
|
|
|
1324
1360
|
}
|
|
1325
1361
|
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
1326
1362
|
|
|
1327
|
-
interface Token$
|
|
1363
|
+
interface Token$3 {
|
|
1328
1364
|
address: string;
|
|
1329
1365
|
name: string;
|
|
1330
1366
|
symbol: string;
|
|
@@ -1340,7 +1376,7 @@ type Timeframe = "1H" | "1D" | "1W" | "1Y";
|
|
|
1340
1376
|
interface TokenDetailsViewProps {
|
|
1341
1377
|
isOpen: boolean;
|
|
1342
1378
|
onClose: () => void;
|
|
1343
|
-
token: Token$
|
|
1379
|
+
token: Token$3;
|
|
1344
1380
|
chain: Chain;
|
|
1345
1381
|
tokenPrice: string;
|
|
1346
1382
|
priceChange: string | number;
|
|
@@ -1402,151 +1438,18 @@ interface TransactionFiltersProps {
|
|
|
1402
1438
|
}
|
|
1403
1439
|
declare function TransactionFilters({ chainType, setChainType, chain, setChain, fromDate, setFromDate, toDate, setToDate, status, setStatus, chains, }: TransactionFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1404
1440
|
|
|
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;
|
|
1441
|
+
interface BaseTransactionHeaderLayoutProps {
|
|
1479
1442
|
status?: ActionStatus;
|
|
1480
1443
|
title?: string;
|
|
1481
|
-
|
|
1444
|
+
media?: ReactNode;
|
|
1482
1445
|
children?: ReactNode;
|
|
1483
1446
|
}
|
|
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;
|
|
1447
|
+
type TransactionHeaderLayoutProps = (BaseTransactionHeaderLayoutProps & {
|
|
1448
|
+
isLoading: true;
|
|
1449
|
+
}) | (Required<BaseTransactionHeaderLayoutProps> & {
|
|
1450
|
+
isLoading?: false;
|
|
1451
|
+
});
|
|
1452
|
+
declare function TransactionHeaderLayout({ isLoading, status, title, media, children, }: TransactionHeaderLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1550
1453
|
|
|
1551
1454
|
interface PropertiesLayoutProps {
|
|
1552
1455
|
children?: ReactNode;
|
|
@@ -1554,51 +1457,6 @@ interface PropertiesLayoutProps {
|
|
|
1554
1457
|
}
|
|
1555
1458
|
declare function PropertiesLayout({ children, className, }: PropertiesLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1556
1459
|
|
|
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
1460
|
interface TransactionSearchProps {
|
|
1603
1461
|
query: string;
|
|
1604
1462
|
setQuery: (query: string) => void;
|
|
@@ -2196,32 +2054,49 @@ declare function TransactionAction({ type, props }: TransactionActionProps): rea
|
|
|
2196
2054
|
|
|
2197
2055
|
declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
2198
2056
|
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2057
|
+
interface Token$2 {
|
|
2058
|
+
symbol: string;
|
|
2059
|
+
bgColor: string;
|
|
2060
|
+
logoURI: string;
|
|
2203
2061
|
}
|
|
2204
|
-
interface
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
type
|
|
2210
|
-
hash
|
|
2211
|
-
|
|
2062
|
+
interface NFT$1 {
|
|
2063
|
+
imageUrl: string;
|
|
2064
|
+
}
|
|
2065
|
+
interface BaseTransactionItemProps {
|
|
2066
|
+
status: ActionStatus;
|
|
2067
|
+
type: TransactionType;
|
|
2068
|
+
hash: string;
|
|
2069
|
+
toToken: Token$2;
|
|
2070
|
+
fromToken: Token$2;
|
|
2071
|
+
fromChain: {
|
|
2212
2072
|
logoURI: string;
|
|
2213
2073
|
name: string;
|
|
2214
2074
|
};
|
|
2215
|
-
toChain
|
|
2075
|
+
toChain: {
|
|
2216
2076
|
logoURI: string;
|
|
2217
2077
|
name: string;
|
|
2218
2078
|
};
|
|
2219
|
-
fromAmount
|
|
2220
|
-
toAmount
|
|
2221
|
-
timestamp
|
|
2222
|
-
|
|
2079
|
+
fromAmount: string;
|
|
2080
|
+
toAmount: string;
|
|
2081
|
+
timestamp: number;
|
|
2082
|
+
}
|
|
2083
|
+
interface SwapTransactionProps extends BaseTransactionItemProps {
|
|
2084
|
+
type: "swap";
|
|
2085
|
+
}
|
|
2086
|
+
interface BuyNFTTransactionProps extends Omit<BaseTransactionItemProps, "toToken"> {
|
|
2087
|
+
type: "buy_nft";
|
|
2088
|
+
toToken: {
|
|
2089
|
+
symbol: string;
|
|
2090
|
+
};
|
|
2091
|
+
nft: NFT$1;
|
|
2092
|
+
}
|
|
2093
|
+
interface BridgeTransactionProps extends BaseTransactionItemProps {
|
|
2094
|
+
type: "bridge";
|
|
2223
2095
|
}
|
|
2224
|
-
|
|
2096
|
+
type TransactionItemProps = SwapTransactionProps | BuyNFTTransactionProps | BridgeTransactionProps;
|
|
2097
|
+
declare const TransactionItem: (props: TransactionItemProps) => react_jsx_runtime.JSX.Element;
|
|
2098
|
+
|
|
2099
|
+
declare const TransactionItemSkeleton: () => react_jsx_runtime.JSX.Element;
|
|
2225
2100
|
|
|
2226
2101
|
type TabSize = "small" | "large";
|
|
2227
2102
|
interface TabsProps {
|
|
@@ -2336,22 +2211,31 @@ declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete,
|
|
|
2336
2211
|
isSendTransaction?: boolean;
|
|
2337
2212
|
}): react_jsx_runtime.JSX.Element;
|
|
2338
2213
|
|
|
2214
|
+
interface NFT {
|
|
2215
|
+
imageUrl: string;
|
|
2216
|
+
name: string;
|
|
2217
|
+
imageURI: string;
|
|
2218
|
+
collection: {
|
|
2219
|
+
name: string;
|
|
2220
|
+
imageURI: string;
|
|
2221
|
+
};
|
|
2222
|
+
tokenID: string;
|
|
2223
|
+
nftType: string;
|
|
2224
|
+
}
|
|
2225
|
+
interface Collection {
|
|
2226
|
+
image: string;
|
|
2227
|
+
name: string;
|
|
2228
|
+
}
|
|
2339
2229
|
interface BaseTransactionViewProps {
|
|
2340
2230
|
title?: string;
|
|
2341
2231
|
hash: string;
|
|
2342
2232
|
status: ActionStatus;
|
|
2343
2233
|
url?: string;
|
|
2344
|
-
actions
|
|
2234
|
+
actions?: TransactionActionProps[];
|
|
2345
2235
|
fees: FeesActionProps;
|
|
2346
2236
|
}
|
|
2347
2237
|
|
|
2348
|
-
interface
|
|
2349
|
-
title: string;
|
|
2350
|
-
imageURI: string;
|
|
2351
|
-
collection: {
|
|
2352
|
-
imageURI: string;
|
|
2353
|
-
name: string;
|
|
2354
|
-
};
|
|
2238
|
+
interface BaseBuyNFTTransactionViewProps extends BaseTransactionViewProps {
|
|
2355
2239
|
price: string;
|
|
2356
2240
|
token: {
|
|
2357
2241
|
logoURI: string;
|
|
@@ -2372,14 +2256,18 @@ interface BuyNFTTTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2372
2256
|
fromAddress: string;
|
|
2373
2257
|
toAddress: string;
|
|
2374
2258
|
boosted?: boolean;
|
|
2375
|
-
|
|
2376
|
-
nftType: string;
|
|
2259
|
+
nft: NFT;
|
|
2377
2260
|
timeToComplete: string;
|
|
2378
2261
|
}
|
|
2379
|
-
|
|
2262
|
+
type BuyNFTTransactionViewProps = (BaseBuyNFTTransactionViewProps & {
|
|
2263
|
+
isLoading?: false;
|
|
2264
|
+
}) | (Partial<BaseBuyNFTTransactionViewProps> & {
|
|
2265
|
+
isLoading: true;
|
|
2266
|
+
});
|
|
2267
|
+
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
2268
|
|
|
2381
|
-
interface
|
|
2382
|
-
image
|
|
2269
|
+
interface BaseInteractionTransactionViewProps extends BaseTransactionViewProps {
|
|
2270
|
+
image: ReactNode;
|
|
2383
2271
|
chain: {
|
|
2384
2272
|
logoURI: string;
|
|
2385
2273
|
name: string;
|
|
@@ -2388,9 +2276,14 @@ interface InteractionTTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2388
2276
|
boosted?: boolean;
|
|
2389
2277
|
timeToComplete: string;
|
|
2390
2278
|
}
|
|
2391
|
-
|
|
2279
|
+
type InteractionTransactionViewProps = (BaseInteractionTransactionViewProps & {
|
|
2280
|
+
isLoading?: false;
|
|
2281
|
+
}) | (Partial<BaseInteractionTransactionViewProps> & BaseTransactionViewProps & {
|
|
2282
|
+
isLoading: true;
|
|
2283
|
+
});
|
|
2284
|
+
declare function InteractionTransactionView({ title, hash, status, url, chain, address, boosted, timeToComplete, actions, fees, isLoading, }: InteractionTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2392
2285
|
|
|
2393
|
-
interface
|
|
2286
|
+
interface BaseSwapTransactionViewProps extends BaseTransactionViewProps {
|
|
2394
2287
|
fromAmount: string;
|
|
2395
2288
|
fromToken: {
|
|
2396
2289
|
logoURI: string;
|
|
@@ -2417,9 +2310,14 @@ interface SwapTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2417
2310
|
boosted?: boolean;
|
|
2418
2311
|
timeToComplete: string;
|
|
2419
2312
|
}
|
|
2420
|
-
|
|
2313
|
+
type SwapTransactionViewProps = (BaseSwapTransactionViewProps & {
|
|
2314
|
+
isLoading?: false;
|
|
2315
|
+
}) | (Partial<Omit<BaseSwapTransactionViewProps, keyof BaseTransactionViewProps>> & BaseTransactionViewProps & {
|
|
2316
|
+
isLoading: true;
|
|
2317
|
+
});
|
|
2318
|
+
declare function SwapTransactionView({ title, hash, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, actions, fees, isLoading, }: SwapTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2421
2319
|
|
|
2422
|
-
interface
|
|
2320
|
+
interface BaseBridgeTransactionViewProps extends BaseTransactionViewProps {
|
|
2423
2321
|
amount: string;
|
|
2424
2322
|
token: {
|
|
2425
2323
|
logoURI: string;
|
|
@@ -2429,16 +2327,23 @@ interface BridgeTransactionViewProps extends BaseTransactionViewProps {
|
|
|
2429
2327
|
fromChain: {
|
|
2430
2328
|
logoURI: string;
|
|
2431
2329
|
name: string;
|
|
2330
|
+
bgColor: string;
|
|
2432
2331
|
};
|
|
2433
2332
|
toChain: {
|
|
2434
2333
|
logoURI: string;
|
|
2435
2334
|
name: string;
|
|
2335
|
+
bgColor: string;
|
|
2436
2336
|
};
|
|
2437
2337
|
address: string;
|
|
2438
2338
|
boosted?: boolean;
|
|
2439
2339
|
timeToComplete: string;
|
|
2440
2340
|
}
|
|
2441
|
-
|
|
2341
|
+
type BridgeTransactionViewProps = (BaseBridgeTransactionViewProps & {
|
|
2342
|
+
isLoading?: false;
|
|
2343
|
+
}) | (Partial<BaseBridgeTransactionViewProps> & BaseTransactionViewProps & {
|
|
2344
|
+
isLoading: true;
|
|
2345
|
+
});
|
|
2346
|
+
declare function BridgeTransactionView({ title, hash, status, url, amount, token, fromChain, toChain, address, actions, fees, boosted, timeToComplete, isLoading, }: BridgeTransactionViewProps): react_jsx_runtime.JSX.Element;
|
|
2442
2347
|
|
|
2443
2348
|
declare const componentMap: {
|
|
2444
2349
|
readonly swap: typeof SwapTransactionView;
|
|
@@ -2447,14 +2352,18 @@ declare const componentMap: {
|
|
|
2447
2352
|
readonly bridge: typeof BridgeTransactionView;
|
|
2448
2353
|
};
|
|
2449
2354
|
type TransactionViewComponents = typeof componentMap;
|
|
2450
|
-
type TransactionViewType = keyof TransactionViewComponents;
|
|
2451
2355
|
type TransactionViewProps = {
|
|
2452
|
-
[Type in
|
|
2356
|
+
[Type in TransactionType]: {
|
|
2453
2357
|
type: Type;
|
|
2454
|
-
|
|
2358
|
+
isLoading?: false;
|
|
2359
|
+
data: ComponentProps<TransactionViewComponents[Type]>;
|
|
2360
|
+
} | {
|
|
2361
|
+
type: Type;
|
|
2362
|
+
isLoading: true;
|
|
2363
|
+
data?: Partial<ComponentProps<TransactionViewComponents[Type]>>;
|
|
2455
2364
|
};
|
|
2456
|
-
}[
|
|
2457
|
-
declare function TransactionView({ type,
|
|
2365
|
+
}[TransactionType];
|
|
2366
|
+
declare function TransactionView({ type, isLoading, data, }: TransactionViewProps): react_jsx_runtime.JSX.Element | null;
|
|
2458
2367
|
|
|
2459
2368
|
interface TransactionViewLayoutProps extends ComponentProps<"div"> {
|
|
2460
2369
|
isLoading?: boolean;
|
|
@@ -2465,6 +2374,8 @@ interface TransactionViewLayoutProps extends ComponentProps<"div"> {
|
|
|
2465
2374
|
}
|
|
2466
2375
|
declare function TransactionViewLayout({ isLoading, header, properties, actions, fees, ...props }: TransactionViewLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2467
2376
|
|
|
2377
|
+
declare const TransactionNotFoundView: () => react_jsx_runtime.JSX.Element;
|
|
2378
|
+
|
|
2468
2379
|
interface ThemeProviderProps extends React.ComponentProps<"div"> {
|
|
2469
2380
|
theme?: Theme;
|
|
2470
2381
|
children?: React.ReactNode;
|
|
@@ -16624,4 +16535,4 @@ declare const transactionRejectedAnimation: {
|
|
|
16624
16535
|
markers: never[];
|
|
16625
16536
|
};
|
|
16626
16537
|
|
|
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,
|
|
16538
|
+
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$1 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, 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, type SwapTransactionViewProps, 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 };
|
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": "3.0
|
|
8
|
+
"version": "3.1.0",
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"resolutions": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"test": "vitest"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@lottiefiles/react-lottie-player": "3.5.0",
|
|
33
32
|
"bignumber.js": "9.1.2",
|
|
34
33
|
"clsx": "2.1.1",
|
|
35
34
|
"color": "4.2.3",
|
|
36
35
|
"date-fns": "^3.6.0",
|
|
37
36
|
"deepmerge": "4.3.1",
|
|
37
|
+
"lottie-react": "^2.4.1",
|
|
38
38
|
"motion": "^12.12.1",
|
|
39
39
|
"react-day-picker": "^8.10.1",
|
|
40
40
|
"react-device-detect": "2.2.3",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"@rollup/plugin-json": "6.1.0",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
60
60
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
61
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
62
61
|
"@storybook/addon-essentials": "^8.0.1",
|
|
63
62
|
"@storybook/addon-interactions": "^8.0.1",
|
|
64
63
|
"@storybook/addon-links": "^8.0.1",
|
|
@@ -88,6 +87,7 @@
|
|
|
88
87
|
"prettier-plugin-tailwindcss": "0.5.12",
|
|
89
88
|
"release-it": "17.2.1",
|
|
90
89
|
"rollup": "^4.17.2",
|
|
90
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
91
91
|
"rollup-plugin-dts": "^6.1.0",
|
|
92
92
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
93
93
|
"rollup-plugin-postcss": "4.0.2",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ActionStatus } from "../../../types/components";
|
|
2
|
-
interface BridgeHeaderProps {
|
|
3
|
-
tokenLogoURI: string;
|
|
4
|
-
chainLogoURI: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
hash: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
status: ActionStatus;
|
|
9
|
-
}
|
|
10
|
-
export declare function BridgeHeader({ tokenLogoURI, chainLogoURI, title, hash, url, status, }: BridgeHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|