@0xsquid/ui 0.27.0 → 0.27.1
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 +962 -792
- package/dist/cjs/types/components/badges/IconLabel.d.ts +2 -2
- package/dist/cjs/types/components/badges/Image.d.ts +9 -0
- package/dist/cjs/types/components/badges/index.d.ts +1 -1
- package/dist/cjs/types/components/buttons/IconButton.d.ts +1 -1
- package/dist/cjs/types/components/controls/Switch.d.ts +4 -3
- package/dist/cjs/types/components/icons/Arrow.d.ts +4 -1
- package/dist/cjs/types/components/icons/Clock.d.ts +1 -1
- package/dist/cjs/types/components/icons/Coins.d.ts +5 -1
- package/dist/cjs/types/components/icons/Generic.d.ts +40 -0
- package/dist/cjs/types/components/icons/Search.d.ts +4 -1
- package/dist/cjs/types/components/icons/index.d.ts +1 -0
- package/dist/cjs/types/components/layout/DropdownMenu.d.ts +6 -3
- package/dist/cjs/types/components/layout/Menu.d.ts +2 -2
- package/dist/cjs/types/components/lists/DropdownMenuItem.d.ts +17 -2
- package/dist/cjs/types/components/lists/DropdownMenuTitle.d.ts +3 -0
- package/dist/cjs/types/components/lists/HistoryItem.d.ts +2 -3
- package/dist/cjs/types/components/lists/ListItem.d.ts +5 -4
- package/dist/cjs/types/components/lists/index.d.ts +1 -0
- package/dist/cjs/types/hooks/useDropdownMenu.d.ts +7 -3
- package/dist/cjs/types/stories/badges/ImageIcon.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/DropdownMenu.stories.d.ts +4 -1
- package/dist/cjs/types/stories/lists/DropdownMenuItem.stories.d.ts +7 -2
- package/dist/cjs/types/stories/lists/DropdownMenuTitle.stories.d.ts +6 -0
- package/dist/cjs/types/stories/lists/HistoryItem.stories.d.ts +1 -0
- package/dist/cjs/types/types/components.d.ts +2 -2
- package/dist/cjs/types/types/index.d.ts +1 -0
- package/dist/cjs/types/types/utils.d.ts +11 -0
- package/dist/esm/index.js +949 -791
- package/dist/esm/types/components/badges/IconLabel.d.ts +2 -2
- package/dist/esm/types/components/badges/Image.d.ts +9 -0
- package/dist/esm/types/components/badges/index.d.ts +1 -1
- package/dist/esm/types/components/buttons/IconButton.d.ts +1 -1
- package/dist/esm/types/components/controls/Switch.d.ts +4 -3
- package/dist/esm/types/components/icons/Arrow.d.ts +4 -1
- package/dist/esm/types/components/icons/Clock.d.ts +1 -1
- package/dist/esm/types/components/icons/Coins.d.ts +5 -1
- package/dist/esm/types/components/icons/Generic.d.ts +40 -0
- package/dist/esm/types/components/icons/Search.d.ts +4 -1
- package/dist/esm/types/components/icons/index.d.ts +1 -0
- package/dist/esm/types/components/layout/DropdownMenu.d.ts +6 -3
- package/dist/esm/types/components/layout/Menu.d.ts +2 -2
- package/dist/esm/types/components/lists/DropdownMenuItem.d.ts +17 -2
- package/dist/esm/types/components/lists/DropdownMenuTitle.d.ts +3 -0
- package/dist/esm/types/components/lists/HistoryItem.d.ts +2 -3
- package/dist/esm/types/components/lists/ListItem.d.ts +5 -4
- package/dist/esm/types/components/lists/index.d.ts +1 -0
- package/dist/esm/types/hooks/useDropdownMenu.d.ts +7 -3
- package/dist/esm/types/stories/badges/ImageIcon.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/DropdownMenu.stories.d.ts +4 -1
- package/dist/esm/types/stories/lists/DropdownMenuItem.stories.d.ts +7 -2
- package/dist/esm/types/stories/lists/DropdownMenuTitle.stories.d.ts +6 -0
- package/dist/esm/types/stories/lists/HistoryItem.stories.d.ts +1 -0
- package/dist/esm/types/types/components.d.ts +2 -2
- package/dist/esm/types/types/index.d.ts +1 -0
- package/dist/esm/types/types/utils.d.ts +11 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +818 -728
- package/package.json +1 -1
- package/dist/cjs/types/components/badges/ImageIcon.d.ts +0 -9
- package/dist/esm/types/components/badges/ImageIcon.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -57,29 +57,28 @@ type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" |
|
|
|
57
57
|
type TransactionStateVariant = "full" | "compact" | "small";
|
|
58
58
|
type TokenPairVariant = "horizontal" | "vertical";
|
|
59
59
|
type TokenPairSize = "small" | "medium";
|
|
60
|
-
type
|
|
61
|
-
type
|
|
60
|
+
type ImageVariant = "square" | "round" | "proportional";
|
|
61
|
+
type ImageSize = "small" | "medium" | "large" | "xlarge";
|
|
62
62
|
type ChainTypeFilter = "source" | "destination";
|
|
63
63
|
type StatusFilter = "success" | "ongoing" | "error";
|
|
64
64
|
type AssetsButtonVariant = "primary" | "accent";
|
|
65
65
|
type PropertyListItemSize = "small" | "large";
|
|
66
|
-
type DropdownPosition = "top" | "bottom" | "center";
|
|
67
66
|
|
|
68
67
|
interface IconLabelProps {
|
|
69
68
|
isLoading?: boolean;
|
|
70
69
|
src?: string;
|
|
71
70
|
children?: ReactNode;
|
|
72
|
-
variant?:
|
|
71
|
+
variant?: ImageVariant;
|
|
73
72
|
}
|
|
74
73
|
declare function IconLabel({ src, children, variant }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
75
74
|
|
|
76
|
-
interface
|
|
75
|
+
interface ImageProps {
|
|
77
76
|
src?: string;
|
|
78
|
-
variant?:
|
|
79
|
-
size?:
|
|
77
|
+
variant?: ImageVariant;
|
|
78
|
+
size?: ImageSize;
|
|
80
79
|
className?: string;
|
|
81
80
|
}
|
|
82
|
-
declare function
|
|
81
|
+
declare function Image({ src, variant, size, className: propsClassName, }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
83
82
|
|
|
84
83
|
declare const LoadingProvider: react.Provider<boolean | null>;
|
|
85
84
|
interface LoadingSkeletonProps {
|
|
@@ -218,8 +217,9 @@ interface SwitchProps {
|
|
|
218
217
|
onChange?: (checked: boolean) => void;
|
|
219
218
|
size: SwitchSize;
|
|
220
219
|
disabled?: boolean;
|
|
220
|
+
inputProps?: React.ComponentProps<"input">;
|
|
221
221
|
}
|
|
222
|
-
declare function Switch({ checked, onChange, size, disabled, }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
222
|
+
declare function Switch({ checked, onChange, size, disabled, inputProps, }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
223
223
|
|
|
224
224
|
interface RangeInputProps {
|
|
225
225
|
label: string;
|
|
@@ -299,7 +299,7 @@ declare function SettingsButton({ label, isSelected, onClick, }: SettingsButtonP
|
|
|
299
299
|
interface IconButtonProps extends React.ComponentProps<"button"> {
|
|
300
300
|
icon: React.ReactNode;
|
|
301
301
|
}
|
|
302
|
-
declare const IconButton:
|
|
302
|
+
declare const IconButton: react.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
303
303
|
|
|
304
304
|
declare function Approve(): react_jsx_runtime.JSX.Element;
|
|
305
305
|
|
|
@@ -325,7 +325,10 @@ declare function ChevronLargeRightIcon({ size, className, }: {
|
|
|
325
325
|
size?: string;
|
|
326
326
|
className?: string;
|
|
327
327
|
}): react_jsx_runtime.JSX.Element;
|
|
328
|
-
declare function ChevronRightSmallIcon(
|
|
328
|
+
declare function ChevronRightSmallIcon({ className, size, }: {
|
|
329
|
+
className?: string;
|
|
330
|
+
size?: string;
|
|
331
|
+
}): react_jsx_runtime.JSX.Element;
|
|
329
332
|
declare function ArrowLeftIcon({ className, size, }: {
|
|
330
333
|
className?: string;
|
|
331
334
|
size?: string;
|
|
@@ -412,7 +415,7 @@ declare function Checkmark2Icon({ className, size, style, }: {
|
|
|
412
415
|
style?: React.CSSProperties;
|
|
413
416
|
}): react_jsx_runtime.JSX.Element;
|
|
414
417
|
|
|
415
|
-
declare function
|
|
418
|
+
declare function ClockSolidIcon({ className, size, }: {
|
|
416
419
|
className?: string;
|
|
417
420
|
size?: string;
|
|
418
421
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -435,7 +438,7 @@ declare function TimeFliesIcon({ size, className, }: {
|
|
|
435
438
|
|
|
436
439
|
declare function CoinsIcon(): react_jsx_runtime.JSX.Element;
|
|
437
440
|
declare function CoinsAddIcon(): react_jsx_runtime.JSX.Element;
|
|
438
|
-
declare function
|
|
441
|
+
declare function DollarOutlinedIcon({ className, size, }: {
|
|
439
442
|
className?: string;
|
|
440
443
|
size?: string;
|
|
441
444
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -443,6 +446,10 @@ declare function StocksIcon({ size, className, }: {
|
|
|
443
446
|
size?: string;
|
|
444
447
|
className?: string;
|
|
445
448
|
}): react_jsx_runtime.JSX.Element;
|
|
449
|
+
declare function DollarSolidIcon({ size, className, }: {
|
|
450
|
+
size?: string;
|
|
451
|
+
className?: string;
|
|
452
|
+
}): react_jsx_runtime.JSX.Element;
|
|
446
453
|
|
|
447
454
|
declare function CollectionIcon(): react_jsx_runtime.JSX.Element;
|
|
448
455
|
|
|
@@ -599,7 +606,10 @@ declare function PlusIcon(): react_jsx_runtime.JSX.Element;
|
|
|
599
606
|
|
|
600
607
|
declare function RefreshIcon(): react_jsx_runtime.JSX.Element;
|
|
601
608
|
|
|
602
|
-
declare function SearchIcon(
|
|
609
|
+
declare function SearchIcon({ className, size, }: {
|
|
610
|
+
className?: string;
|
|
611
|
+
size?: string;
|
|
612
|
+
}): react_jsx_runtime.JSX.Element;
|
|
603
613
|
|
|
604
614
|
declare function XSocial({ className, size, }: {
|
|
605
615
|
size?: string;
|
|
@@ -712,6 +722,47 @@ declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_run
|
|
|
712
722
|
declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
713
723
|
declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
714
724
|
|
|
725
|
+
declare function GhostIcon({ size, className, }: {
|
|
726
|
+
size?: string;
|
|
727
|
+
className?: string;
|
|
728
|
+
}): react_jsx_runtime.JSX.Element;
|
|
729
|
+
declare function SettingsSliderIcon({ size, className, }: {
|
|
730
|
+
size?: string;
|
|
731
|
+
className?: string;
|
|
732
|
+
}): react_jsx_runtime.JSX.Element;
|
|
733
|
+
declare function EyeOpenIcon({ size, className, }: {
|
|
734
|
+
size?: string;
|
|
735
|
+
className?: string;
|
|
736
|
+
}): react_jsx_runtime.JSX.Element;
|
|
737
|
+
declare function BellAlarmIcon({ size, className, }: {
|
|
738
|
+
size?: string;
|
|
739
|
+
className?: string;
|
|
740
|
+
}): react_jsx_runtime.JSX.Element;
|
|
741
|
+
declare function LimitIcon({ size, className, }: {
|
|
742
|
+
size?: string;
|
|
743
|
+
className?: string;
|
|
744
|
+
}): react_jsx_runtime.JSX.Element;
|
|
745
|
+
declare function PoopIcon({ size, className, }: {
|
|
746
|
+
size?: string;
|
|
747
|
+
className?: string;
|
|
748
|
+
}): react_jsx_runtime.JSX.Element;
|
|
749
|
+
declare function CatSquareIcon({ size, className, }: {
|
|
750
|
+
size?: string;
|
|
751
|
+
className?: string;
|
|
752
|
+
}): react_jsx_runtime.JSX.Element;
|
|
753
|
+
declare function FilterAscendingIcon({ size, className, }: {
|
|
754
|
+
size?: string;
|
|
755
|
+
className?: string;
|
|
756
|
+
}): react_jsx_runtime.JSX.Element;
|
|
757
|
+
declare function ImageIcon({ size, className, }: {
|
|
758
|
+
size?: string;
|
|
759
|
+
className?: string;
|
|
760
|
+
}): react_jsx_runtime.JSX.Element;
|
|
761
|
+
declare function FilterTimelineIcon({ size, className, }: {
|
|
762
|
+
size?: string;
|
|
763
|
+
className?: string;
|
|
764
|
+
}): react_jsx_runtime.JSX.Element;
|
|
765
|
+
|
|
715
766
|
interface Props {
|
|
716
767
|
lottieJsonFile: object;
|
|
717
768
|
animReplacement?: JSX.Element;
|
|
@@ -1312,903 +1363,957 @@ interface DetailsToolbarProps {
|
|
|
1312
1363
|
}
|
|
1313
1364
|
declare function DetailsToolbar({ errorMessage, helpButton, isLoading, isEmpty, flipButton, feeButton, stopsButton, }: DetailsToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1314
1365
|
|
|
1315
|
-
interface
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1366
|
+
interface DropdownMenuProps {
|
|
1367
|
+
dropdownRef?: React.RefObject<HTMLDivElement>;
|
|
1368
|
+
menuRef?: React.RefObject<HTMLDivElement>;
|
|
1369
|
+
className?: string;
|
|
1370
|
+
isHidden?: boolean;
|
|
1371
|
+
listClassName?: string;
|
|
1372
|
+
containerClassName?: string;
|
|
1373
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
1374
|
+
children?: React.ReactNode;
|
|
1375
|
+
contentWrapperProps?: React.ComponentProps<"div">;
|
|
1376
|
+
menuContentClassName?: string;
|
|
1322
1377
|
}
|
|
1323
|
-
declare function
|
|
1378
|
+
declare function DropdownMenu({ dropdownRef, className, menuRef, isHidden, listClassName, containerClassName, children, contentWrapperProps, menuContentClassName, }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
|
|
1324
1379
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
warningLabel?: string;
|
|
1380
|
+
type ErrorMessageProps = {
|
|
1381
|
+
message: string;
|
|
1382
|
+
showIcon?: boolean;
|
|
1383
|
+
};
|
|
1384
|
+
declare function ErrorMessage({ message, showIcon }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1385
|
+
|
|
1386
|
+
interface HashLinkProps {
|
|
1387
|
+
showTx?: boolean;
|
|
1388
|
+
hash: string;
|
|
1389
|
+
children?: ReactNode;
|
|
1390
|
+
showCopyButton?: boolean;
|
|
1391
|
+
url?: string;
|
|
1338
1392
|
}
|
|
1339
|
-
declare function
|
|
1393
|
+
declare function HashLink({ showTx, hash, showCopyButton, url, children, }: HashLinkProps): react_jsx_runtime.JSX.Element;
|
|
1340
1394
|
|
|
1341
|
-
interface
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
secondaryImageUrl?: string;
|
|
1345
|
-
placeholderImageUrl?: string;
|
|
1346
|
-
subtitle?: string;
|
|
1347
|
-
subtitleOnHover?: React.ReactNode;
|
|
1348
|
-
detail?: string;
|
|
1395
|
+
interface InfoBoxProps {
|
|
1396
|
+
title: string;
|
|
1397
|
+
description: string;
|
|
1349
1398
|
icon?: React.ReactNode;
|
|
1350
|
-
size?: ListItemSize;
|
|
1351
|
-
mainIcon?: React.ReactNode;
|
|
1352
|
-
isSelected?: boolean;
|
|
1353
|
-
className?: string;
|
|
1354
|
-
onDetailClick?: () => void;
|
|
1355
|
-
showDetailOnHoverOnly?: boolean;
|
|
1356
|
-
rounded?: boolean;
|
|
1357
|
-
detailButtonClassName?: string;
|
|
1358
|
-
loading?: {
|
|
1359
|
-
subtitle?: boolean | string;
|
|
1360
|
-
};
|
|
1361
|
-
containerProps?: React.HTMLAttributes<HTMLLIElement>;
|
|
1362
|
-
compactOnMobile?: boolean;
|
|
1363
|
-
extraPadding?: boolean;
|
|
1364
|
-
dropdownMenuItems?: DropdownMenuItemProps[];
|
|
1365
|
-
itemsContainerRef?: React.RefObject<HTMLElement>;
|
|
1366
1399
|
}
|
|
1367
|
-
|
|
1368
|
-
declare function ListItem({ itemTitle, mainImageUrl, subtitle, subtitleOnHover, detail, icon, secondaryImageUrl, placeholderImageUrl, size, mainIcon, className, isSelected, onDetailClick, showDetailOnHoverOnly, rounded, detailButtonClassName, loading, containerProps, compactOnMobile, extraPadding, itemsContainerRef, dropdownMenuItems: _dropdownMenuItemsProp, ...props }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
1369
|
-
declare const ListItemActionsButton: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1400
|
+
declare function InfoBox({ title, description, icon }: InfoBoxProps): react_jsx_runtime.JSX.Element;
|
|
1370
1401
|
|
|
1371
|
-
interface
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
icon?: React.ReactNode;
|
|
1402
|
+
interface JoinProps {
|
|
1403
|
+
children?: ReactNode;
|
|
1404
|
+
glue: () => ReactNode;
|
|
1375
1405
|
}
|
|
1376
|
-
declare function
|
|
1406
|
+
declare function Join({ children, glue }: JoinProps): react_jsx_runtime.JSX.Element[] | null | undefined;
|
|
1377
1407
|
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
labelClassName?: string;
|
|
1386
|
-
iconClassName?: string;
|
|
1387
|
-
detailClassName?: string;
|
|
1408
|
+
type Rounded = "sm" | "lg";
|
|
1409
|
+
interface MenuProps extends react__default.ComponentProps<"div"> {
|
|
1410
|
+
containerClassName?: string;
|
|
1411
|
+
contentClassName?: string;
|
|
1412
|
+
rounded?: Rounded;
|
|
1413
|
+
menuRef?: react__default.RefObject<HTMLDivElement>;
|
|
1414
|
+
contentWrapperProps?: react__default.ComponentProps<"div">;
|
|
1388
1415
|
}
|
|
1389
|
-
declare function
|
|
1416
|
+
declare function Menu({ children, containerClassName, contentClassName, rounded, menuRef, contentWrapperProps, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
1390
1417
|
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
accessory?: string | null;
|
|
1395
|
-
actionIcon?: React.ReactNode;
|
|
1418
|
+
type ModalWidth = "large" | "extra-large";
|
|
1419
|
+
interface ModalProps {
|
|
1420
|
+
children: React.ReactNode;
|
|
1396
1421
|
className?: string;
|
|
1422
|
+
onBackdropClick?: () => void;
|
|
1423
|
+
isOpen?: boolean;
|
|
1424
|
+
maxHeight?: boolean;
|
|
1425
|
+
width?: ModalWidth;
|
|
1397
1426
|
}
|
|
1398
|
-
declare function
|
|
1427
|
+
declare function Modal({ children, className, onBackdropClick, isOpen: _isOpen, maxHeight, width, }: ModalProps): false | react_jsx_runtime.JSX.Element;
|
|
1399
1428
|
|
|
1400
|
-
type
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
onChange: (value: number | undefined) => void;
|
|
1416
|
-
options: {
|
|
1417
|
-
value: number;
|
|
1418
|
-
}[];
|
|
1419
|
-
decimalsFormat?: number;
|
|
1420
|
-
resetValueControl: {
|
|
1421
|
-
label: string;
|
|
1422
|
-
value: number | undefined;
|
|
1423
|
-
};
|
|
1424
|
-
} | {
|
|
1425
|
-
type: "switch";
|
|
1426
|
-
checked: boolean;
|
|
1427
|
-
onChange: (checked: boolean) => void;
|
|
1429
|
+
type ModalContentBorderType = "border" | "outline";
|
|
1430
|
+
interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1431
|
+
children?: React.ReactNode;
|
|
1432
|
+
addGap?: boolean;
|
|
1433
|
+
paddingY?: boolean;
|
|
1434
|
+
borderType?: ModalContentBorderType;
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
declare function ModalContent({ children, addGap, paddingY, borderType, className, ...props }: ModalContentProps): react_jsx_runtime.JSX.Element;
|
|
1438
|
+
declare function ModalContentDivider(): react_jsx_runtime.JSX.Element;
|
|
1439
|
+
|
|
1440
|
+
type ActionButton = {
|
|
1441
|
+
labelOrIcon: string | React.ReactNode;
|
|
1442
|
+
onClick?: () => void;
|
|
1443
|
+
id: React.Key;
|
|
1428
1444
|
tooltip?: Omit<TooltipProps, "children">;
|
|
1429
|
-
|
|
1430
|
-
} | {
|
|
1431
|
-
type: "options";
|
|
1432
|
-
selectedLabel: string;
|
|
1433
|
-
options: {
|
|
1434
|
-
label: string;
|
|
1435
|
-
onSelect: () => void;
|
|
1436
|
-
}[];
|
|
1445
|
+
chip?: ChipProps;
|
|
1437
1446
|
};
|
|
1438
|
-
interface
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
link?: string;
|
|
1447
|
+
interface NavigationBarProps extends React.ComponentProps<"nav"> {
|
|
1448
|
+
title?: string;
|
|
1449
|
+
displayBackButton?: boolean;
|
|
1450
|
+
logoUrl?: string;
|
|
1443
1451
|
transparent?: boolean;
|
|
1444
|
-
|
|
1452
|
+
displayButtonShadows?: boolean;
|
|
1453
|
+
onBackButtonClick?: () => void;
|
|
1454
|
+
actions?: ActionButton[];
|
|
1455
|
+
isLoading?: boolean;
|
|
1445
1456
|
}
|
|
1446
|
-
declare function
|
|
1457
|
+
declare function NavigationBar({ title, displayBackButton, logoUrl, transparent, displayButtonShadows, onBackButtonClick, actions, isLoading, ...props }: NavigationBarProps): react_jsx_runtime.JSX.Element;
|
|
1447
1458
|
|
|
1448
|
-
|
|
1449
|
-
descriptionBlocks: DescriptionBlock[];
|
|
1450
|
-
showStepSeparator?: boolean;
|
|
1451
|
-
link?: string;
|
|
1452
|
-
status?: ActionStatus;
|
|
1453
|
-
}
|
|
1454
|
-
declare const STEP_ITEM_HEIGHT = 52;
|
|
1455
|
-
declare function SwapStepItem({ descriptionBlocks, showStepSeparator, link, status, }: SwapStepItemProps): react_jsx_runtime.JSX.Element;
|
|
1459
|
+
declare function PipeSeparator({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1456
1460
|
|
|
1457
|
-
interface
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1461
|
+
interface CollapsibleMenuProps {
|
|
1462
|
+
menuRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
1463
|
+
size: {
|
|
1464
|
+
open: {
|
|
1465
|
+
width: string;
|
|
1466
|
+
height: string;
|
|
1467
|
+
};
|
|
1468
|
+
closed: {
|
|
1469
|
+
width: string;
|
|
1470
|
+
height: string;
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
children?: React.ReactNode;
|
|
1474
|
+
isOpen?: boolean;
|
|
1475
|
+
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
1476
|
+
className?: string;
|
|
1468
1477
|
}
|
|
1469
|
-
declare function
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
}
|
|
1475
|
-
declare function ActionProperties({ timestamp, hash, url, }: ActionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1476
|
-
declare const ActionLineOutRow: ({ status }: {
|
|
1477
|
-
status?: ActionStatus;
|
|
1478
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1479
|
-
declare const ActionStatusRow: ({ children, status, icon, }: {
|
|
1480
|
-
children?: ReactNode;
|
|
1481
|
-
status: ActionStatus;
|
|
1482
|
-
icon?: ReactNode;
|
|
1483
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1484
|
-
declare function ActionRow({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1485
|
-
declare function ActionWrapper({ children, status, className, }: {
|
|
1486
|
-
children?: ReactNode;
|
|
1487
|
-
status?: ActionStatus;
|
|
1478
|
+
declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
|
|
1479
|
+
|
|
1480
|
+
declare function ProductCard({ children }: React.PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
1481
|
+
declare function BorderedContainer({ children, className, }: {
|
|
1482
|
+
children: React.ReactNode;
|
|
1488
1483
|
className?: string;
|
|
1489
1484
|
}): react_jsx_runtime.JSX.Element;
|
|
1490
|
-
interface TimestampProps {
|
|
1491
|
-
time: number;
|
|
1492
|
-
}
|
|
1493
|
-
declare function Timestamp({ time }: TimestampProps): react_jsx_runtime.JSX.Element;
|
|
1494
1485
|
|
|
1495
|
-
|
|
1496
|
-
status: ActionStatus;
|
|
1497
|
-
/** if set, renders a line upwards to the next item in the status color */
|
|
1498
|
-
nextStatus?: ActionStatus;
|
|
1499
|
-
/** should we render a line down to the previous item? (default true) */
|
|
1500
|
-
showTimeline?: boolean;
|
|
1501
|
-
/** if false, fades out everything but the status line (for collapsed timeline state) */
|
|
1502
|
-
showBody?: boolean;
|
|
1503
|
-
}
|
|
1486
|
+
declare function ProfileHeaderBackground(): react_jsx_runtime.JSX.Element;
|
|
1504
1487
|
|
|
1505
|
-
interface
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1488
|
+
interface SwapConfigurationProps {
|
|
1489
|
+
direction: SwapDirection;
|
|
1490
|
+
priceImpactPercentage?: string;
|
|
1491
|
+
amount?: string;
|
|
1492
|
+
tokenPrice?: number;
|
|
1493
|
+
balance?: string;
|
|
1494
|
+
isFetching?: boolean;
|
|
1495
|
+
chain?: {
|
|
1496
|
+
iconUrl: string;
|
|
1497
|
+
bgColor: string;
|
|
1509
1498
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1499
|
+
token?: {
|
|
1500
|
+
iconUrl: string;
|
|
1501
|
+
symbol: string;
|
|
1502
|
+
bgColor: string;
|
|
1503
|
+
textColor: string;
|
|
1504
|
+
decimals: number;
|
|
1513
1505
|
};
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1506
|
+
onAmountChange?: (amount: string) => void;
|
|
1507
|
+
error?: {
|
|
1508
|
+
message: string;
|
|
1509
|
+
};
|
|
1510
|
+
criticalPriceImpactPercentage?: number;
|
|
1511
|
+
maxUsdDecimals?: number;
|
|
1512
|
+
isInputInteractive?: boolean;
|
|
1513
|
+
isLoading?: boolean;
|
|
1514
|
+
inputModeButton?: {
|
|
1515
|
+
usdModeTooltip?: Omit<TooltipProps, "children">;
|
|
1516
|
+
tokenModeTooltip?: Omit<TooltipProps, "children">;
|
|
1517
|
+
amountUsd?: string;
|
|
1518
|
+
};
|
|
1519
|
+
balanceButton?: {
|
|
1520
|
+
tooltip?: Omit<TooltipProps, "children">;
|
|
1521
|
+
};
|
|
1522
|
+
assetsButton?: {
|
|
1523
|
+
tooltip?: Omit<TooltipProps, "children">;
|
|
1524
|
+
onClick?: () => void;
|
|
1525
|
+
variant?: AssetsButtonVariant;
|
|
1526
|
+
};
|
|
1527
|
+
walletButton?: {
|
|
1528
|
+
tooltip?: Omit<TooltipProps, "children">;
|
|
1529
|
+
onClick?: () => void;
|
|
1530
|
+
address?: string;
|
|
1531
|
+
emptyAddressLabel?: string;
|
|
1532
|
+
disabled?: boolean;
|
|
1518
1533
|
};
|
|
1519
|
-
timestamp?: number;
|
|
1520
|
-
hash?: string;
|
|
1521
|
-
url?: string;
|
|
1522
1534
|
}
|
|
1523
|
-
declare function
|
|
1535
|
+
declare function SwapConfiguration({ amount, tokenPrice, isFetching: isFetchingProp, chain, token, direction, onAmountChange, balance, criticalPriceImpactPercentage, error, priceImpactPercentage, maxUsdDecimals, isInputInteractive, isLoading, inputModeButton, balanceButton, assetsButton, walletButton, }: SwapConfigurationProps): react_jsx_runtime.JSX.Element;
|
|
1524
1536
|
|
|
1525
|
-
interface
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1537
|
+
interface SwapProgressViewHeaderProps {
|
|
1538
|
+
title: string;
|
|
1539
|
+
description: string;
|
|
1540
|
+
}
|
|
1541
|
+
declare function SwapProgressViewHeader({ title, description, }: SwapProgressViewHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1542
|
+
|
|
1543
|
+
type SwapStepsCollapsedFooterButton = {
|
|
1544
|
+
label: string;
|
|
1545
|
+
link?: string;
|
|
1546
|
+
onClick?: () => void;
|
|
1547
|
+
};
|
|
1548
|
+
interface SwapStepsCollapsedProps {
|
|
1549
|
+
steps: SwapStep[];
|
|
1550
|
+
currentStepIndex: number;
|
|
1551
|
+
onOpen?: () => void;
|
|
1552
|
+
onClose?: () => void;
|
|
1553
|
+
footerButton?: SwapStepsCollapsedFooterButton;
|
|
1554
|
+
}
|
|
1555
|
+
declare const SwapStepsCollapsed: react.ForwardRefExoticComponent<SwapStepsCollapsedProps & react.RefAttributes<{
|
|
1556
|
+
handleToggleRouteSteps: () => void;
|
|
1557
|
+
}>>;
|
|
1558
|
+
|
|
1559
|
+
interface TokenPairProps {
|
|
1560
|
+
firstToken?: {
|
|
1531
1561
|
logoURI: string;
|
|
1532
|
-
|
|
1562
|
+
bgColor: string;
|
|
1533
1563
|
};
|
|
1534
|
-
|
|
1564
|
+
secondToken?: {
|
|
1535
1565
|
logoURI: string;
|
|
1536
|
-
|
|
1566
|
+
bgColor: string;
|
|
1537
1567
|
};
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
url?: string;
|
|
1568
|
+
variant?: TokenPairVariant;
|
|
1569
|
+
size?: TokenPairSize;
|
|
1541
1570
|
}
|
|
1542
|
-
declare function
|
|
1571
|
+
declare function TokenPair({ firstToken, secondToken, variant, size, }: TokenPairProps): react_jsx_runtime.JSX.Element;
|
|
1543
1572
|
|
|
1544
|
-
interface
|
|
1545
|
-
|
|
1546
|
-
|
|
1573
|
+
interface TransactionFiltersProps {
|
|
1574
|
+
chainType?: ChainTypeFilter;
|
|
1575
|
+
setChainType: (chainType: ChainTypeFilter) => void;
|
|
1576
|
+
chain?: string;
|
|
1577
|
+
setChain: (chain?: string) => void;
|
|
1578
|
+
fromDate?: Date;
|
|
1579
|
+
setFromDate: (fromDate?: Date) => void;
|
|
1580
|
+
toDate?: Date;
|
|
1581
|
+
setToDate: (toDate?: Date) => void;
|
|
1582
|
+
status?: StatusFilter[];
|
|
1583
|
+
setStatus: (status?: StatusFilter[]) => void;
|
|
1584
|
+
chains: {
|
|
1585
|
+
name: string;
|
|
1586
|
+
logoURI: string;
|
|
1587
|
+
}[];
|
|
1547
1588
|
}
|
|
1548
|
-
declare function
|
|
1549
|
-
|
|
1589
|
+
declare function TransactionFilters({ chainType, setChainType, chain, setChain, fromDate, setFromDate, toDate, setToDate, status, setStatus, chains, }: TransactionFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1590
|
+
|
|
1591
|
+
interface BridgeHeaderProps {
|
|
1592
|
+
tokenLogoURI: string;
|
|
1593
|
+
chainLogoURI: string;
|
|
1594
|
+
title?: string;
|
|
1595
|
+
hash: string;
|
|
1596
|
+
url?: string;
|
|
1550
1597
|
status: ActionStatus;
|
|
1551
|
-
nextStatus?: ActionStatus;
|
|
1552
|
-
total: FeesRowProps;
|
|
1553
|
-
showTimeline?: boolean;
|
|
1554
|
-
collapsed?: boolean;
|
|
1555
1598
|
}
|
|
1556
|
-
declare function
|
|
1557
|
-
|
|
1599
|
+
declare function BridgeHeader({ tokenLogoURI, chainLogoURI, title, hash, url, status, }: BridgeHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1600
|
+
|
|
1601
|
+
interface BuyNFTHeaderProps {
|
|
1602
|
+
imageUrl: string;
|
|
1603
|
+
title?: string;
|
|
1604
|
+
hash: string;
|
|
1605
|
+
url?: string;
|
|
1558
1606
|
status: ActionStatus;
|
|
1559
|
-
lines?: FeesRowProps[];
|
|
1560
|
-
showTimeline?: boolean;
|
|
1561
|
-
}
|
|
1562
|
-
declare function FeesLines({ status, lines, showTimeline, }: FeesLinesProps): react_jsx_runtime.JSX.Element;
|
|
1563
|
-
interface FeesRowProps {
|
|
1564
|
-
label: string;
|
|
1565
|
-
amount: number | string;
|
|
1566
|
-
symbol: string;
|
|
1567
|
-
usd: number | string;
|
|
1568
|
-
collapsed?: boolean;
|
|
1569
1607
|
}
|
|
1608
|
+
declare function BuyNFTHeader({ imageUrl, title, hash, url, status, }: BuyNFTHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1570
1609
|
|
|
1571
|
-
interface
|
|
1572
|
-
|
|
1573
|
-
|
|
1610
|
+
interface InteractionHeaderProps {
|
|
1611
|
+
title?: string;
|
|
1612
|
+
image?: ReactNode;
|
|
1613
|
+
hash: string;
|
|
1614
|
+
url?: string;
|
|
1615
|
+
status: ActionStatus;
|
|
1574
1616
|
}
|
|
1575
|
-
declare function
|
|
1617
|
+
declare function InteractionHeader({ title, image, hash, url, status, }: InteractionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1576
1618
|
|
|
1577
|
-
interface
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
name: string;
|
|
1581
|
-
};
|
|
1582
|
-
chain: {
|
|
1583
|
-
logoURI: string;
|
|
1584
|
-
name: string;
|
|
1585
|
-
};
|
|
1619
|
+
interface ProfileHeaderProps {
|
|
1620
|
+
imageUrl: string;
|
|
1621
|
+
title: string;
|
|
1586
1622
|
wallet: {
|
|
1587
1623
|
imageURI: string;
|
|
1588
1624
|
address: string;
|
|
1589
|
-
url: string;
|
|
1590
1625
|
};
|
|
1591
|
-
|
|
1592
|
-
hash: string;
|
|
1593
|
-
url: string;
|
|
1626
|
+
amount: string;
|
|
1594
1627
|
}
|
|
1595
|
-
declare function
|
|
1628
|
+
declare function ProfileHeader({ imageUrl, title, wallet, amount, }: ProfileHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1596
1629
|
|
|
1597
|
-
interface
|
|
1598
|
-
|
|
1599
|
-
token: {
|
|
1630
|
+
interface SwapHeaderProps {
|
|
1631
|
+
fromToken: {
|
|
1600
1632
|
logoURI: string;
|
|
1601
|
-
|
|
1633
|
+
bgColor: string;
|
|
1602
1634
|
};
|
|
1603
|
-
|
|
1635
|
+
toToken: {
|
|
1604
1636
|
logoURI: string;
|
|
1605
|
-
|
|
1606
|
-
};
|
|
1607
|
-
wallet: {
|
|
1608
|
-
imageURI: string;
|
|
1609
|
-
address: string;
|
|
1610
|
-
url: string;
|
|
1637
|
+
bgColor: string;
|
|
1611
1638
|
};
|
|
1612
|
-
|
|
1639
|
+
title?: string;
|
|
1613
1640
|
hash: string;
|
|
1614
|
-
url
|
|
1641
|
+
url?: string;
|
|
1642
|
+
status: ActionStatus;
|
|
1615
1643
|
}
|
|
1616
|
-
declare function
|
|
1644
|
+
declare function SwapHeader({ fromToken, toToken, title, hash, url, status, }: SwapHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1617
1645
|
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
url: string;
|
|
1646
|
+
declare const headerComponentsMap: {
|
|
1647
|
+
readonly swap: typeof SwapHeader;
|
|
1648
|
+
readonly buy_nft: typeof BuyNFTHeader;
|
|
1649
|
+
readonly interaction: typeof InteractionHeader;
|
|
1650
|
+
readonly bridge: typeof BridgeHeader;
|
|
1651
|
+
readonly profile: typeof ProfileHeader;
|
|
1652
|
+
};
|
|
1653
|
+
type TransactionHeaderComponents = typeof headerComponentsMap;
|
|
1654
|
+
type TransactionHeaderType = keyof TransactionHeaderComponents;
|
|
1655
|
+
type TransactionHeaderProps = {
|
|
1656
|
+
[Type in TransactionHeaderType]: {
|
|
1657
|
+
type: Type;
|
|
1658
|
+
props: ComponentProps<TransactionHeaderComponents[Type]>;
|
|
1632
1659
|
};
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1660
|
+
}[TransactionHeaderType];
|
|
1661
|
+
declare function TransactionHeader({ type, props }: TransactionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1662
|
+
|
|
1663
|
+
interface TransactionHeaderLayoutProps {
|
|
1664
|
+
isLoading?: boolean;
|
|
1665
|
+
status?: ActionStatus;
|
|
1666
|
+
title?: string;
|
|
1667
|
+
image?: ReactNode;
|
|
1668
|
+
children?: ReactNode;
|
|
1636
1669
|
}
|
|
1637
|
-
declare function
|
|
1670
|
+
declare function TransactionHeaderLayout({ isLoading, status, title, image, children, }: TransactionHeaderLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1638
1671
|
|
|
1639
|
-
interface
|
|
1672
|
+
interface BridgePropertiesProps {
|
|
1673
|
+
amount: string;
|
|
1640
1674
|
token: {
|
|
1641
1675
|
logoURI: string;
|
|
1676
|
+
bgColor: string;
|
|
1642
1677
|
symbol: string;
|
|
1643
1678
|
};
|
|
1644
|
-
|
|
1679
|
+
fromChain: {
|
|
1645
1680
|
logoURI: string;
|
|
1646
1681
|
name: string;
|
|
1647
1682
|
};
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
timestamp?: number;
|
|
1656
|
-
hash?: string;
|
|
1657
|
-
url?: string;
|
|
1658
|
-
}
|
|
1659
|
-
declare function StartAction({ status, nextStatus, showTimeline, showBody, timestamp, hash, url, }: StartActionProps): react_jsx_runtime.JSX.Element;
|
|
1660
|
-
|
|
1661
|
-
interface SuccessActionProps extends BaseActionProps {
|
|
1662
|
-
description?: string;
|
|
1663
|
-
timestamp?: number;
|
|
1664
|
-
hash?: string;
|
|
1665
|
-
url?: string;
|
|
1683
|
+
toChain: {
|
|
1684
|
+
logoURI: string;
|
|
1685
|
+
name: string;
|
|
1686
|
+
};
|
|
1687
|
+
wallet: string;
|
|
1688
|
+
boosted?: boolean;
|
|
1689
|
+
timeToComplete: string;
|
|
1666
1690
|
}
|
|
1667
|
-
declare function
|
|
1691
|
+
declare function BridgeProperties({ amount, token, fromChain, toChain, wallet, boosted, timeToComplete, }: BridgePropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1668
1692
|
|
|
1669
|
-
interface
|
|
1670
|
-
|
|
1693
|
+
interface BuyNFTPropertiesProps {
|
|
1694
|
+
title: string;
|
|
1695
|
+
imageURI: string;
|
|
1696
|
+
collection: {
|
|
1697
|
+
imageURI: string;
|
|
1698
|
+
name: string;
|
|
1699
|
+
};
|
|
1700
|
+
price: string;
|
|
1701
|
+
token: {
|
|
1671
1702
|
logoURI: string;
|
|
1672
1703
|
symbol: string;
|
|
1673
1704
|
};
|
|
1674
|
-
|
|
1705
|
+
marketplace: {
|
|
1675
1706
|
logoURI: string;
|
|
1676
|
-
|
|
1707
|
+
name: string;
|
|
1677
1708
|
};
|
|
1678
|
-
|
|
1709
|
+
fromChain: {
|
|
1679
1710
|
logoURI: string;
|
|
1680
1711
|
name: string;
|
|
1681
1712
|
};
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1713
|
+
toChain: {
|
|
1714
|
+
logoURI: string;
|
|
1715
|
+
name: string;
|
|
1716
|
+
};
|
|
1717
|
+
fromAddress: string;
|
|
1718
|
+
toAddress: string;
|
|
1719
|
+
boosted?: boolean;
|
|
1720
|
+
timeToComplete: string;
|
|
1721
|
+
tokenId: string;
|
|
1722
|
+
nftType: string;
|
|
1685
1723
|
}
|
|
1686
|
-
declare function
|
|
1724
|
+
declare function BuyNFTProperties({ title, imageURI, collection, price, token, marketplace, fromChain, toChain, fromAddress, toAddress, boosted, timeToComplete, tokenId, nftType, }: BuyNFTPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1687
1725
|
|
|
1688
|
-
interface
|
|
1726
|
+
interface InteractionPropertiesProps {
|
|
1727
|
+
chain: {
|
|
1728
|
+
logoURI: string;
|
|
1729
|
+
name: string;
|
|
1730
|
+
};
|
|
1731
|
+
wallet: string;
|
|
1732
|
+
boosted?: boolean;
|
|
1733
|
+
timeToComplete: string;
|
|
1734
|
+
}
|
|
1735
|
+
declare function InteractionProperties({ chain, wallet, boosted, timeToComplete, }: InteractionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1736
|
+
|
|
1737
|
+
interface PropertiesLayoutProps {
|
|
1738
|
+
children?: ReactNode;
|
|
1739
|
+
className?: string;
|
|
1740
|
+
}
|
|
1741
|
+
declare function PropertiesLayout({ children, className, }: PropertiesLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1742
|
+
|
|
1743
|
+
interface SwapPropertiesProps {
|
|
1744
|
+
fromAmount: string;
|
|
1689
1745
|
fromToken: {
|
|
1690
1746
|
logoURI: string;
|
|
1747
|
+
bgColor: string;
|
|
1691
1748
|
symbol: string;
|
|
1692
1749
|
};
|
|
1750
|
+
toAmount: string;
|
|
1693
1751
|
toToken: {
|
|
1694
1752
|
logoURI: string;
|
|
1753
|
+
bgColor: string;
|
|
1695
1754
|
symbol: string;
|
|
1696
1755
|
};
|
|
1697
|
-
|
|
1756
|
+
fromChain: {
|
|
1698
1757
|
logoURI: string;
|
|
1699
1758
|
name: string;
|
|
1700
1759
|
};
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1760
|
+
toChain: {
|
|
1761
|
+
logoURI: string;
|
|
1762
|
+
name: string;
|
|
1763
|
+
};
|
|
1764
|
+
fromAddress: string;
|
|
1765
|
+
toAddress: string;
|
|
1766
|
+
exchangeRate: string;
|
|
1767
|
+
boosted?: boolean;
|
|
1768
|
+
timeToComplete: string;
|
|
1704
1769
|
}
|
|
1705
|
-
declare function
|
|
1770
|
+
declare function SwapProperties({ fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, }: SwapPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1706
1771
|
|
|
1707
|
-
declare const
|
|
1708
|
-
readonly
|
|
1709
|
-
readonly
|
|
1710
|
-
readonly
|
|
1711
|
-
readonly
|
|
1712
|
-
readonly send_tokens: typeof SendTokensAction;
|
|
1713
|
-
readonly swap: typeof SwapAction;
|
|
1714
|
-
readonly bridge: typeof BridgeAction;
|
|
1715
|
-
readonly wrap: typeof WrapAction;
|
|
1716
|
-
readonly stake: typeof StakeAction;
|
|
1717
|
-
readonly start: typeof StartAction;
|
|
1718
|
-
readonly fees: typeof FeesAction;
|
|
1719
|
-
readonly incomplete: typeof IncompleteAction;
|
|
1772
|
+
declare const propertiesComponentsMap: {
|
|
1773
|
+
readonly swap: typeof SwapProperties;
|
|
1774
|
+
readonly buy_nft: typeof BuyNFTProperties;
|
|
1775
|
+
readonly interaction: typeof InteractionProperties;
|
|
1776
|
+
readonly bridge: typeof BridgeProperties;
|
|
1720
1777
|
};
|
|
1721
|
-
type
|
|
1722
|
-
type
|
|
1723
|
-
type
|
|
1724
|
-
[Type in
|
|
1778
|
+
type TransactionPropertiesComponents = typeof propertiesComponentsMap;
|
|
1779
|
+
type TransactionPropertiesType = keyof TransactionPropertiesComponents;
|
|
1780
|
+
type TransactionPropertiesProps = {
|
|
1781
|
+
[Type in TransactionPropertiesType]: {
|
|
1725
1782
|
type: Type;
|
|
1726
|
-
props: ComponentProps<
|
|
1783
|
+
props: ComponentProps<TransactionPropertiesComponents[Type]>;
|
|
1727
1784
|
};
|
|
1728
|
-
}[
|
|
1729
|
-
declare function
|
|
1730
|
-
|
|
1731
|
-
declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
1785
|
+
}[TransactionPropertiesType];
|
|
1786
|
+
declare function TransactionProperties({ type, props, }: TransactionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
1732
1787
|
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
};
|
|
1738
|
-
interface TransactionItemProps {
|
|
1788
|
+
interface TransactionSearchProps {
|
|
1789
|
+
query: string;
|
|
1790
|
+
setQuery: (query: string) => void;
|
|
1791
|
+
children?: ReactNode;
|
|
1739
1792
|
className?: string;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
image?: ReactNode;
|
|
1743
|
-
type?: TransactionItemType;
|
|
1744
|
-
hash?: string;
|
|
1745
|
-
fromChain?: {
|
|
1746
|
-
logoURI: string;
|
|
1747
|
-
name: string;
|
|
1748
|
-
};
|
|
1749
|
-
toChain?: {
|
|
1750
|
-
logoURI: string;
|
|
1751
|
-
name: string;
|
|
1752
|
-
};
|
|
1753
|
-
fromAmount?: string;
|
|
1754
|
-
toAmount?: string;
|
|
1755
|
-
timestamp?: number;
|
|
1756
|
-
variant?: TransactionItemVariant;
|
|
1757
|
-
}
|
|
1758
|
-
declare function TransactionItem({ className, isLoading, status, image, type, hash, fromChain, toChain, fromAmount, toAmount, timestamp, variant, }: TransactionItemProps): react_jsx_runtime.JSX.Element;
|
|
1759
|
-
|
|
1760
|
-
interface RouteStepProps {
|
|
1761
|
-
imageUrl: string;
|
|
1762
|
-
descriptionBlocks: DescriptionBlock[];
|
|
1763
|
-
subtitle: string;
|
|
1764
|
-
showStepSeparator?: boolean;
|
|
1793
|
+
onFocus?: () => void;
|
|
1794
|
+
onBlur?: () => void;
|
|
1765
1795
|
}
|
|
1766
|
-
declare function
|
|
1796
|
+
declare function TransactionSearch({ query, setQuery, children, className, onFocus, onBlur, }: TransactionSearchProps): react_jsx_runtime.JSX.Element;
|
|
1767
1797
|
|
|
1768
|
-
interface
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1798
|
+
interface FromToProps {
|
|
1799
|
+
isLoading?: boolean;
|
|
1800
|
+
from?: ReactNode;
|
|
1801
|
+
to?: ReactNode;
|
|
1772
1802
|
className?: string;
|
|
1773
|
-
isHidden?: boolean;
|
|
1774
|
-
listClassName?: string;
|
|
1775
|
-
}
|
|
1776
|
-
declare function DropdownMenu({ dropdownRef, items, className, menuRef, isHidden, listClassName, }: DropdownMenuProps): react_jsx_runtime.JSX.Element;
|
|
1777
|
-
|
|
1778
|
-
type ErrorMessageProps = {
|
|
1779
|
-
message: string;
|
|
1780
|
-
showIcon?: boolean;
|
|
1781
|
-
};
|
|
1782
|
-
declare function ErrorMessage({ message, showIcon }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1783
|
-
|
|
1784
|
-
interface HashLinkProps {
|
|
1785
|
-
showTx?: boolean;
|
|
1786
|
-
hash: string;
|
|
1787
|
-
children?: ReactNode;
|
|
1788
|
-
showCopyButton?: boolean;
|
|
1789
|
-
url?: string;
|
|
1790
1803
|
}
|
|
1791
|
-
declare function
|
|
1804
|
+
declare function Transfer({ isLoading, from, to, className }: FromToProps): react_jsx_runtime.JSX.Element;
|
|
1792
1805
|
|
|
1793
|
-
interface
|
|
1806
|
+
interface ToastProps {
|
|
1794
1807
|
title: string;
|
|
1795
1808
|
description: string;
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
interface JoinProps {
|
|
1801
|
-
children?: ReactNode;
|
|
1802
|
-
glue: () => ReactNode;
|
|
1803
|
-
}
|
|
1804
|
-
declare function Join({ children, glue }: JoinProps): react_jsx_runtime.JSX.Element[] | null | undefined;
|
|
1805
|
-
|
|
1806
|
-
type Rounded = "sm" | "lg";
|
|
1807
|
-
interface MenuProps extends react__default.ComponentProps<"div"> {
|
|
1808
|
-
containerClassName?: string;
|
|
1809
|
-
contentClassName?: string;
|
|
1810
|
-
rounded?: Rounded;
|
|
1811
|
-
menuRef?: react__default.RefObject<HTMLDivElement>;
|
|
1812
|
-
contentWrapperClassName?: string;
|
|
1809
|
+
headerContent?: React.ReactNode;
|
|
1810
|
+
actionsContent?: React.ReactNode;
|
|
1811
|
+
chipLabel?: string;
|
|
1813
1812
|
}
|
|
1814
|
-
declare function
|
|
1813
|
+
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
1815
1814
|
|
|
1816
|
-
type
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1815
|
+
type SquidTheme = {
|
|
1816
|
+
"content-100": string;
|
|
1817
|
+
"content-200": string;
|
|
1818
|
+
"content-300": string;
|
|
1819
|
+
"content-400": string;
|
|
1820
|
+
"content-500": string;
|
|
1821
|
+
"content-600": string;
|
|
1822
|
+
"content-700": string;
|
|
1823
|
+
"content-800": string;
|
|
1824
|
+
"content-900": string;
|
|
1825
|
+
"accent-300": string;
|
|
1826
|
+
"accent-400": string;
|
|
1827
|
+
"accent-500": string;
|
|
1828
|
+
"accent-700": string;
|
|
1829
|
+
"status-positive": string;
|
|
1830
|
+
"status-negative": string;
|
|
1831
|
+
"status-warning": string;
|
|
1832
|
+
"highlight-700": string;
|
|
1833
|
+
};
|
|
1826
1834
|
|
|
1827
|
-
|
|
1828
|
-
|
|
1835
|
+
/**
|
|
1836
|
+
* Utility type to allow for a type to be either all of the properties of another type, or none of them
|
|
1837
|
+
* @example
|
|
1838
|
+
* type Person = { age: number } & AllOrNone<{ name: string, lastName: string }>
|
|
1839
|
+
* const person: Person = { age: 30 } // ok
|
|
1840
|
+
* const person: Person = { age: 30, name: "John" } // error, requires lastName
|
|
1841
|
+
* const person: Person = { age: 30, name: "John", lastName: "Doe" } // ok, all properties are present
|
|
1842
|
+
*/
|
|
1843
|
+
type AllOrNone<T> = T | {
|
|
1844
|
+
[K in keyof T]?: never;
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1847
|
+
interface DropdownMenuItemControl extends Omit<SwitchProps, "size"> {
|
|
1848
|
+
type: "switch";
|
|
1849
|
+
}
|
|
1850
|
+
interface DropdownMenuItemProps {
|
|
1851
|
+
label: string;
|
|
1852
|
+
labelClassName?: string;
|
|
1853
|
+
imageUrl?: string;
|
|
1854
|
+
icon?: React.ReactNode;
|
|
1855
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
1856
|
+
link?: string;
|
|
1857
|
+
control?: DropdownMenuItemControl;
|
|
1858
|
+
detail?: React.ReactNode;
|
|
1859
|
+
isSelected?: boolean;
|
|
1860
|
+
itemRef?: React.RefObject<HTMLLIElement>;
|
|
1829
1861
|
children?: React.ReactNode;
|
|
1830
|
-
|
|
1831
|
-
paddingY?: boolean;
|
|
1832
|
-
borderType?: ModalContentBorderType;
|
|
1833
|
-
className?: string;
|
|
1862
|
+
contentRef?: React.RefObject<HTMLButtonElement>;
|
|
1834
1863
|
}
|
|
1835
|
-
declare function
|
|
1836
|
-
|
|
1864
|
+
declare function DropdownMenuItem(props: DropdownMenuItemProps & AllOrNone<{
|
|
1865
|
+
submenu: React.ReactNode;
|
|
1866
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
1867
|
+
}>): react_jsx_runtime.JSX.Element;
|
|
1837
1868
|
|
|
1838
|
-
|
|
1839
|
-
|
|
1869
|
+
interface HistoryItemProps {
|
|
1870
|
+
firstImageUrl: string;
|
|
1871
|
+
secondImageUrl: string;
|
|
1872
|
+
status: HistoryItemStatus;
|
|
1873
|
+
fromLabel: string;
|
|
1874
|
+
toLabel: string;
|
|
1875
|
+
dateCompleted: string;
|
|
1876
|
+
fromAmount: string;
|
|
1877
|
+
toAmount: string;
|
|
1878
|
+
itemsContainerRef?: React.RefObject<HTMLElement>;
|
|
1840
1879
|
onClick?: () => void;
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
chip?: ChipProps;
|
|
1844
|
-
};
|
|
1845
|
-
interface NavigationBarProps extends React.ComponentProps<"nav"> {
|
|
1846
|
-
title?: string;
|
|
1847
|
-
displayBackButton?: boolean;
|
|
1848
|
-
logoUrl?: string;
|
|
1849
|
-
transparent?: boolean;
|
|
1850
|
-
displayButtonShadows?: boolean;
|
|
1851
|
-
onBackButtonClick?: () => void;
|
|
1852
|
-
actions?: ActionButton[];
|
|
1853
|
-
isLoading?: boolean;
|
|
1880
|
+
warningLabel?: string;
|
|
1881
|
+
dropdownMenuContent?: React.ReactNode;
|
|
1854
1882
|
}
|
|
1855
|
-
declare function
|
|
1883
|
+
declare function HistoryItem({ firstImageUrl, secondImageUrl, dateCompleted, fromAmount, fromLabel, toAmount, toLabel, dropdownMenuContent, itemsContainerRef, status, warningLabel, onClick, }: HistoryItemProps): react_jsx_runtime.JSX.Element;
|
|
1856
1884
|
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
|
-
children?: React.ReactNode;
|
|
1872
|
-
isOpen?: boolean;
|
|
1873
|
-
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
1885
|
+
interface ListItemProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
1886
|
+
itemTitle: string | React.ReactNode;
|
|
1887
|
+
mainImageUrl?: string;
|
|
1888
|
+
secondaryImageUrl?: string;
|
|
1889
|
+
placeholderImageUrl?: string;
|
|
1890
|
+
subtitle?: string;
|
|
1891
|
+
subtitleOnHover?: React.ReactNode;
|
|
1892
|
+
detail?: string;
|
|
1893
|
+
icon?: React.ReactNode;
|
|
1894
|
+
size?: ListItemSize;
|
|
1895
|
+
mainIcon?: React.ReactNode;
|
|
1896
|
+
isSelected?: boolean;
|
|
1874
1897
|
className?: string;
|
|
1898
|
+
onDetailClick?: () => void;
|
|
1899
|
+
showDetailOnHoverOnly?: boolean;
|
|
1900
|
+
rounded?: boolean;
|
|
1901
|
+
detailButtonClassName?: string;
|
|
1902
|
+
loading?: {
|
|
1903
|
+
subtitle?: boolean | string;
|
|
1904
|
+
};
|
|
1905
|
+
containerProps?: React.HTMLAttributes<HTMLLIElement>;
|
|
1906
|
+
compactOnMobile?: boolean;
|
|
1907
|
+
extraPadding?: boolean;
|
|
1908
|
+
dropdownMenuContent?: React.ReactNode;
|
|
1909
|
+
itemsContainerRef?: React.RefObject<HTMLElement>;
|
|
1875
1910
|
}
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
declare
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
className?: string;
|
|
1882
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1911
|
+
type ListItemSize = "small" | "large";
|
|
1912
|
+
declare function ListItem({ itemTitle, mainImageUrl, subtitle, subtitleOnHover, detail, icon, secondaryImageUrl, placeholderImageUrl, size, mainIcon, className, isSelected, onDetailClick, showDetailOnHoverOnly, rounded, detailButtonClassName, loading, containerProps, compactOnMobile, extraPadding, itemsContainerRef, dropdownMenuContent, ...props }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
1913
|
+
declare const ListItemActionsButton: react.ForwardRefExoticComponent<Omit<react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1914
|
+
isActive?: boolean | undefined;
|
|
1915
|
+
}, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1883
1916
|
|
|
1884
|
-
|
|
1917
|
+
interface MenuItemProps {
|
|
1918
|
+
label: string;
|
|
1919
|
+
imageUrl?: string;
|
|
1920
|
+
icon?: React.ReactNode;
|
|
1921
|
+
}
|
|
1922
|
+
declare function MenuItem({ label, imageUrl, icon }: MenuItemProps): react_jsx_runtime.JSX.Element;
|
|
1885
1923
|
|
|
1886
|
-
interface
|
|
1887
|
-
direction: SwapDirection;
|
|
1888
|
-
priceImpactPercentage?: string;
|
|
1889
|
-
amount?: string;
|
|
1890
|
-
tokenPrice?: number;
|
|
1891
|
-
balance?: string;
|
|
1892
|
-
isFetching?: boolean;
|
|
1893
|
-
chain?: {
|
|
1894
|
-
iconUrl: string;
|
|
1895
|
-
bgColor: string;
|
|
1896
|
-
};
|
|
1897
|
-
token?: {
|
|
1898
|
-
iconUrl: string;
|
|
1899
|
-
symbol: string;
|
|
1900
|
-
bgColor: string;
|
|
1901
|
-
textColor: string;
|
|
1902
|
-
decimals: number;
|
|
1903
|
-
};
|
|
1904
|
-
onAmountChange?: (amount: string) => void;
|
|
1905
|
-
error?: {
|
|
1906
|
-
message: string;
|
|
1907
|
-
};
|
|
1908
|
-
criticalPriceImpactPercentage?: number;
|
|
1909
|
-
maxUsdDecimals?: number;
|
|
1910
|
-
isInputInteractive?: boolean;
|
|
1924
|
+
interface PropertyListItemProps extends ComponentProps<"li"> {
|
|
1911
1925
|
isLoading?: boolean;
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
assetsButton?: {
|
|
1921
|
-
tooltip?: Omit<TooltipProps, "children">;
|
|
1922
|
-
onClick?: () => void;
|
|
1923
|
-
variant?: AssetsButtonVariant;
|
|
1924
|
-
};
|
|
1925
|
-
walletButton?: {
|
|
1926
|
-
tooltip?: Omit<TooltipProps, "children">;
|
|
1927
|
-
onClick?: () => void;
|
|
1928
|
-
address?: string;
|
|
1929
|
-
emptyAddressLabel?: string;
|
|
1930
|
-
disabled?: boolean;
|
|
1931
|
-
};
|
|
1926
|
+
label?: React.ReactNode;
|
|
1927
|
+
icon?: React.ReactNode;
|
|
1928
|
+
detail?: React.ReactNode;
|
|
1929
|
+
variant?: PropertyListItemSize;
|
|
1930
|
+
showGradientBg?: boolean;
|
|
1931
|
+
labelClassName?: string;
|
|
1932
|
+
iconClassName?: string;
|
|
1933
|
+
detailClassName?: string;
|
|
1932
1934
|
}
|
|
1933
|
-
declare function
|
|
1935
|
+
declare function PropertyListItem({ isLoading, label, detail, icon, className, variant, showGradientBg, labelClassName, iconClassName, detailClassName, ...props }: PropertyListItemProps): react_jsx_runtime.JSX.Element;
|
|
1934
1936
|
|
|
1935
|
-
interface
|
|
1937
|
+
interface SectionTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1936
1938
|
title: string;
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
type SwapStepsCollapsedFooterButton = {
|
|
1942
|
-
label: string;
|
|
1943
|
-
link?: string;
|
|
1944
|
-
onClick?: () => void;
|
|
1945
|
-
};
|
|
1946
|
-
interface SwapStepsCollapsedProps {
|
|
1947
|
-
steps: SwapStep[];
|
|
1948
|
-
currentStepIndex: number;
|
|
1949
|
-
onOpen?: () => void;
|
|
1950
|
-
onClose?: () => void;
|
|
1951
|
-
footerButton?: SwapStepsCollapsedFooterButton;
|
|
1939
|
+
icon?: React.ReactNode;
|
|
1940
|
+
accessory?: string | null;
|
|
1941
|
+
actionIcon?: React.ReactNode;
|
|
1942
|
+
className?: string;
|
|
1952
1943
|
}
|
|
1953
|
-
declare
|
|
1954
|
-
handleToggleRouteSteps: () => void;
|
|
1955
|
-
}>>;
|
|
1944
|
+
declare function SectionTitle({ title, icon, accessory, actionIcon, className, ...props }: SectionTitleProps): react_jsx_runtime.JSX.Element;
|
|
1956
1945
|
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1946
|
+
type SettingsControl = {
|
|
1947
|
+
type: "percentage";
|
|
1948
|
+
value: number | undefined;
|
|
1949
|
+
onChange: (value: number | undefined) => void;
|
|
1950
|
+
min?: number;
|
|
1951
|
+
max?: number;
|
|
1952
|
+
decimalsFormat?: number;
|
|
1953
|
+
resetValueControl: {
|
|
1954
|
+
label: string;
|
|
1955
|
+
onSelect: () => void;
|
|
1956
|
+
value: number | undefined;
|
|
1961
1957
|
};
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1958
|
+
} | {
|
|
1959
|
+
type: "amount";
|
|
1960
|
+
value: number | undefined;
|
|
1961
|
+
onChange: (value: number | undefined) => void;
|
|
1962
|
+
options: {
|
|
1963
|
+
value: number;
|
|
1964
|
+
}[];
|
|
1965
|
+
decimalsFormat?: number;
|
|
1966
|
+
resetValueControl: {
|
|
1967
|
+
label: string;
|
|
1968
|
+
value: number | undefined;
|
|
1965
1969
|
};
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
toDate?: Date;
|
|
1979
|
-
setToDate: (toDate?: Date) => void;
|
|
1980
|
-
status?: StatusFilter[];
|
|
1981
|
-
setStatus: (status?: StatusFilter[]) => void;
|
|
1982
|
-
chains: {
|
|
1983
|
-
name: string;
|
|
1984
|
-
logoURI: string;
|
|
1970
|
+
} | {
|
|
1971
|
+
type: "switch";
|
|
1972
|
+
checked: boolean;
|
|
1973
|
+
onChange: (checked: boolean) => void;
|
|
1974
|
+
tooltip?: Omit<TooltipProps, "children">;
|
|
1975
|
+
disabled?: boolean;
|
|
1976
|
+
} | {
|
|
1977
|
+
type: "options";
|
|
1978
|
+
selectedLabel: string;
|
|
1979
|
+
options: {
|
|
1980
|
+
label: string;
|
|
1981
|
+
onSelect: () => void;
|
|
1985
1982
|
}[];
|
|
1983
|
+
};
|
|
1984
|
+
interface SettingsItemProps {
|
|
1985
|
+
icon: React.ReactNode;
|
|
1986
|
+
label: string;
|
|
1987
|
+
control?: SettingsControl;
|
|
1988
|
+
link?: string;
|
|
1989
|
+
transparent?: boolean;
|
|
1990
|
+
helpTooltip?: Omit<TooltipProps, "children">;
|
|
1986
1991
|
}
|
|
1987
|
-
declare function
|
|
1992
|
+
declare function SettingsItem({ icon, label, control, link, transparent, helpTooltip, }: SettingsItemProps): react_jsx_runtime.JSX.Element;
|
|
1988
1993
|
|
|
1989
|
-
interface
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
url?: string;
|
|
1995
|
-
status: ActionStatus;
|
|
1994
|
+
interface SwapStepItemProps {
|
|
1995
|
+
descriptionBlocks: DescriptionBlock[];
|
|
1996
|
+
showStepSeparator?: boolean;
|
|
1997
|
+
link?: string;
|
|
1998
|
+
status?: ActionStatus;
|
|
1996
1999
|
}
|
|
1997
|
-
declare
|
|
2000
|
+
declare const STEP_ITEM_HEIGHT = 52;
|
|
2001
|
+
declare function SwapStepItem({ descriptionBlocks, showStepSeparator, link, status, }: SwapStepItemProps): react_jsx_runtime.JSX.Element;
|
|
1998
2002
|
|
|
1999
|
-
interface
|
|
2000
|
-
|
|
2003
|
+
interface ActionLayoutProps {
|
|
2004
|
+
lineCap?: ReactNode;
|
|
2005
|
+
status?: ActionStatus;
|
|
2006
|
+
showTimeline?: boolean;
|
|
2007
|
+
statusIcon?: ReactNode;
|
|
2008
|
+
nextStatus?: ActionStatus;
|
|
2009
|
+
description?: ReactNode;
|
|
2001
2010
|
title?: string;
|
|
2002
|
-
|
|
2011
|
+
icon?: ReactNode;
|
|
2012
|
+
children?: ReactNode;
|
|
2013
|
+
showBody?: boolean;
|
|
2014
|
+
}
|
|
2015
|
+
declare function ActionLayout({ lineCap, status, showTimeline, showBody, nextStatus, statusIcon, description, title, icon, children, }: ActionLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2016
|
+
interface ActionPropertiesProps {
|
|
2017
|
+
timestamp?: number;
|
|
2018
|
+
hash?: string;
|
|
2003
2019
|
url?: string;
|
|
2020
|
+
}
|
|
2021
|
+
declare function ActionProperties({ timestamp, hash, url, }: ActionPropertiesProps): react_jsx_runtime.JSX.Element;
|
|
2022
|
+
declare const ActionLineOutRow: ({ status }: {
|
|
2023
|
+
status?: ActionStatus;
|
|
2024
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2025
|
+
declare const ActionStatusRow: ({ children, status, icon, }: {
|
|
2026
|
+
children?: ReactNode;
|
|
2004
2027
|
status: ActionStatus;
|
|
2028
|
+
icon?: ReactNode;
|
|
2029
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2030
|
+
declare function ActionRow({ className, ...props }: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
2031
|
+
declare function ActionWrapper({ children, status, className, }: {
|
|
2032
|
+
children?: ReactNode;
|
|
2033
|
+
status?: ActionStatus;
|
|
2034
|
+
className?: string;
|
|
2035
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2036
|
+
interface TimestampProps {
|
|
2037
|
+
time: number;
|
|
2005
2038
|
}
|
|
2006
|
-
declare function
|
|
2039
|
+
declare function Timestamp({ time }: TimestampProps): react_jsx_runtime.JSX.Element;
|
|
2007
2040
|
|
|
2008
|
-
interface
|
|
2009
|
-
title?: string;
|
|
2010
|
-
image?: ReactNode;
|
|
2011
|
-
hash: string;
|
|
2012
|
-
url?: string;
|
|
2041
|
+
interface BaseActionProps {
|
|
2013
2042
|
status: ActionStatus;
|
|
2043
|
+
/** if set, renders a line upwards to the next item in the status color */
|
|
2044
|
+
nextStatus?: ActionStatus;
|
|
2045
|
+
/** should we render a line down to the previous item? (default true) */
|
|
2046
|
+
showTimeline?: boolean;
|
|
2047
|
+
/** if false, fades out everything but the status line (for collapsed timeline state) */
|
|
2048
|
+
showBody?: boolean;
|
|
2014
2049
|
}
|
|
2015
|
-
declare function InteractionHeader({ title, image, hash, url, status, }: InteractionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2016
2050
|
|
|
2017
|
-
interface
|
|
2018
|
-
|
|
2019
|
-
|
|
2051
|
+
interface ApproveActionProps extends BaseActionProps {
|
|
2052
|
+
profile: {
|
|
2053
|
+
imageURI: string;
|
|
2054
|
+
label: string;
|
|
2055
|
+
};
|
|
2056
|
+
chain: {
|
|
2057
|
+
logoURI: string;
|
|
2058
|
+
name: string;
|
|
2059
|
+
};
|
|
2020
2060
|
wallet: {
|
|
2021
2061
|
imageURI: string;
|
|
2022
2062
|
address: string;
|
|
2063
|
+
url: string;
|
|
2023
2064
|
};
|
|
2024
|
-
|
|
2065
|
+
timestamp?: number;
|
|
2066
|
+
hash?: string;
|
|
2067
|
+
url?: string;
|
|
2025
2068
|
}
|
|
2026
|
-
declare function
|
|
2069
|
+
declare function ApproveAction({ status, nextStatus, showTimeline, showBody, profile, chain, wallet, timestamp, hash, url, }: ApproveActionProps): react_jsx_runtime.JSX.Element;
|
|
2027
2070
|
|
|
2028
|
-
interface
|
|
2029
|
-
|
|
2071
|
+
interface BridgeActionProps extends BaseActionProps {
|
|
2072
|
+
token: {
|
|
2030
2073
|
logoURI: string;
|
|
2031
|
-
|
|
2074
|
+
symbol: string;
|
|
2032
2075
|
};
|
|
2033
|
-
|
|
2076
|
+
chain: {
|
|
2034
2077
|
logoURI: string;
|
|
2035
|
-
|
|
2078
|
+
name: string;
|
|
2036
2079
|
};
|
|
2037
|
-
|
|
2038
|
-
|
|
2080
|
+
provider: {
|
|
2081
|
+
logoURI: string;
|
|
2082
|
+
name: string;
|
|
2083
|
+
};
|
|
2084
|
+
timestamp?: number;
|
|
2085
|
+
hash?: string;
|
|
2039
2086
|
url?: string;
|
|
2087
|
+
}
|
|
2088
|
+
declare function BridgeAction({ status, nextStatus, showTimeline, showBody, token, chain, provider, timestamp, hash, url, }: BridgeActionProps): react_jsx_runtime.JSX.Element;
|
|
2089
|
+
|
|
2090
|
+
interface FeesActionProps extends BaseActionProps {
|
|
2091
|
+
total: FeesRowProps;
|
|
2092
|
+
lines?: FeesRowProps[];
|
|
2093
|
+
}
|
|
2094
|
+
declare function FeesAction({ status, nextStatus, showTimeline, total, lines, }: FeesActionProps): react_jsx_runtime.JSX.Element;
|
|
2095
|
+
interface FeesTotalProps {
|
|
2040
2096
|
status: ActionStatus;
|
|
2097
|
+
nextStatus?: ActionStatus;
|
|
2098
|
+
total: FeesRowProps;
|
|
2099
|
+
showTimeline?: boolean;
|
|
2100
|
+
collapsed?: boolean;
|
|
2101
|
+
}
|
|
2102
|
+
declare function FeesTotal({ status, nextStatus, total, showTimeline, collapsed, }: FeesTotalProps): react_jsx_runtime.JSX.Element;
|
|
2103
|
+
interface FeesLinesProps {
|
|
2104
|
+
status: ActionStatus;
|
|
2105
|
+
lines?: FeesRowProps[];
|
|
2106
|
+
showTimeline?: boolean;
|
|
2107
|
+
}
|
|
2108
|
+
declare function FeesLines({ status, lines, showTimeline, }: FeesLinesProps): react_jsx_runtime.JSX.Element;
|
|
2109
|
+
interface FeesRowProps {
|
|
2110
|
+
label: string;
|
|
2111
|
+
amount: number | string;
|
|
2112
|
+
symbol: string;
|
|
2113
|
+
usd: number | string;
|
|
2114
|
+
collapsed?: boolean;
|
|
2041
2115
|
}
|
|
2042
|
-
declare function SwapHeader({ fromToken, toToken, title, hash, url, status, }: SwapHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2043
2116
|
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
readonly profile: typeof ProfileHeader;
|
|
2050
|
-
};
|
|
2051
|
-
type TransactionHeaderComponents = typeof headerComponentsMap;
|
|
2052
|
-
type TransactionHeaderType = keyof TransactionHeaderComponents;
|
|
2053
|
-
type TransactionHeaderProps = {
|
|
2054
|
-
[Type in TransactionHeaderType]: {
|
|
2055
|
-
type: Type;
|
|
2056
|
-
props: ComponentProps<TransactionHeaderComponents[Type]>;
|
|
2057
|
-
};
|
|
2058
|
-
}[TransactionHeaderType];
|
|
2059
|
-
declare function TransactionHeader({ type, props }: TransactionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2117
|
+
interface IncompleteActionProps extends BaseActionProps {
|
|
2118
|
+
message: string;
|
|
2119
|
+
buttons: ReactNode;
|
|
2120
|
+
}
|
|
2121
|
+
declare function IncompleteAction({ status, nextStatus, message, buttons, }: IncompleteActionProps): react_jsx_runtime.JSX.Element;
|
|
2060
2122
|
|
|
2061
|
-
interface
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2123
|
+
interface ReceiveNFTActionProps extends BaseActionProps {
|
|
2124
|
+
nft: {
|
|
2125
|
+
imageURI: string;
|
|
2126
|
+
name: string;
|
|
2127
|
+
};
|
|
2128
|
+
chain: {
|
|
2129
|
+
logoURI: string;
|
|
2130
|
+
name: string;
|
|
2131
|
+
};
|
|
2132
|
+
wallet: {
|
|
2133
|
+
imageURI: string;
|
|
2134
|
+
address: string;
|
|
2135
|
+
url: string;
|
|
2136
|
+
};
|
|
2137
|
+
timestamp: number;
|
|
2138
|
+
hash: string;
|
|
2139
|
+
url: string;
|
|
2067
2140
|
}
|
|
2068
|
-
declare function
|
|
2141
|
+
declare function ReceiveNFTAction({ status, nextStatus, showTimeline, showBody, nft, chain, wallet, timestamp, hash, url, }: ReceiveNFTActionProps): react_jsx_runtime.JSX.Element;
|
|
2069
2142
|
|
|
2070
|
-
interface
|
|
2143
|
+
interface ReceiveTokensActionProps extends BaseActionProps {
|
|
2071
2144
|
amount: string;
|
|
2072
2145
|
token: {
|
|
2073
2146
|
logoURI: string;
|
|
2074
|
-
bgColor: string;
|
|
2075
2147
|
symbol: string;
|
|
2076
2148
|
};
|
|
2077
|
-
|
|
2149
|
+
chain: {
|
|
2078
2150
|
logoURI: string;
|
|
2079
2151
|
name: string;
|
|
2080
2152
|
};
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2153
|
+
wallet: {
|
|
2154
|
+
imageURI: string;
|
|
2155
|
+
address: string;
|
|
2156
|
+
url: string;
|
|
2084
2157
|
};
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2158
|
+
timestamp: number;
|
|
2159
|
+
hash: string;
|
|
2160
|
+
url: string;
|
|
2088
2161
|
}
|
|
2089
|
-
declare function
|
|
2162
|
+
declare function ReceiveTokensAction({ status, nextStatus, showTimeline, showBody, token, amount, chain, wallet, timestamp, hash, url, }: ReceiveTokensActionProps): react_jsx_runtime.JSX.Element;
|
|
2090
2163
|
|
|
2091
|
-
interface
|
|
2092
|
-
|
|
2093
|
-
imageURI: string;
|
|
2094
|
-
collection: {
|
|
2095
|
-
imageURI: string;
|
|
2096
|
-
name: string;
|
|
2097
|
-
};
|
|
2098
|
-
price: string;
|
|
2164
|
+
interface SendTokensActionProps extends BaseActionProps {
|
|
2165
|
+
amount: string;
|
|
2099
2166
|
token: {
|
|
2100
2167
|
logoURI: string;
|
|
2101
2168
|
symbol: string;
|
|
2102
2169
|
};
|
|
2103
|
-
|
|
2170
|
+
chain: {
|
|
2104
2171
|
logoURI: string;
|
|
2105
2172
|
name: string;
|
|
2106
2173
|
};
|
|
2107
|
-
|
|
2174
|
+
wallet: {
|
|
2175
|
+
imageURI: string;
|
|
2176
|
+
address: string;
|
|
2177
|
+
url: string;
|
|
2178
|
+
};
|
|
2179
|
+
timestamp: number;
|
|
2180
|
+
hash: string;
|
|
2181
|
+
url: string;
|
|
2182
|
+
}
|
|
2183
|
+
declare function SendTokensAction({ status, nextStatus, showTimeline, showBody, token, amount, chain, wallet, timestamp, hash, url, }: SendTokensActionProps): react_jsx_runtime.JSX.Element;
|
|
2184
|
+
|
|
2185
|
+
interface StakeActionProps extends BaseActionProps {
|
|
2186
|
+
token: {
|
|
2108
2187
|
logoURI: string;
|
|
2109
|
-
|
|
2188
|
+
symbol: string;
|
|
2110
2189
|
};
|
|
2111
|
-
|
|
2190
|
+
provider: {
|
|
2112
2191
|
logoURI: string;
|
|
2113
2192
|
name: string;
|
|
2114
2193
|
};
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
timeToComplete: string;
|
|
2119
|
-
tokenId: string;
|
|
2120
|
-
nftType: string;
|
|
2194
|
+
timestamp: number;
|
|
2195
|
+
hash: string;
|
|
2196
|
+
url: string;
|
|
2121
2197
|
}
|
|
2122
|
-
declare function
|
|
2198
|
+
declare function StakeAction({ status, nextStatus, showTimeline, showBody, token, provider, timestamp, hash, url, }: StakeActionProps): react_jsx_runtime.JSX.Element;
|
|
2123
2199
|
|
|
2124
|
-
interface
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
};
|
|
2129
|
-
wallet: string;
|
|
2130
|
-
boosted?: boolean;
|
|
2131
|
-
timeToComplete: string;
|
|
2200
|
+
interface StartActionProps extends BaseActionProps {
|
|
2201
|
+
timestamp?: number;
|
|
2202
|
+
hash?: string;
|
|
2203
|
+
url?: string;
|
|
2132
2204
|
}
|
|
2133
|
-
declare function
|
|
2205
|
+
declare function StartAction({ status, nextStatus, showTimeline, showBody, timestamp, hash, url, }: StartActionProps): react_jsx_runtime.JSX.Element;
|
|
2134
2206
|
|
|
2135
|
-
interface
|
|
2136
|
-
|
|
2137
|
-
|
|
2207
|
+
interface SuccessActionProps extends BaseActionProps {
|
|
2208
|
+
description?: string;
|
|
2209
|
+
timestamp?: number;
|
|
2210
|
+
hash?: string;
|
|
2211
|
+
url?: string;
|
|
2138
2212
|
}
|
|
2139
|
-
declare function
|
|
2213
|
+
declare function SuccessAction({ nextStatus, status, description, showTimeline, showBody, timestamp, hash, url, }: SuccessActionProps): react_jsx_runtime.JSX.Element;
|
|
2140
2214
|
|
|
2141
|
-
interface
|
|
2142
|
-
fromAmount: string;
|
|
2215
|
+
interface SwapActionProps extends BaseActionProps {
|
|
2143
2216
|
fromToken: {
|
|
2144
2217
|
logoURI: string;
|
|
2145
|
-
bgColor: string;
|
|
2146
2218
|
symbol: string;
|
|
2147
2219
|
};
|
|
2148
|
-
toAmount: string;
|
|
2149
2220
|
toToken: {
|
|
2150
2221
|
logoURI: string;
|
|
2151
|
-
bgColor: string;
|
|
2152
2222
|
symbol: string;
|
|
2153
2223
|
};
|
|
2154
|
-
|
|
2224
|
+
provider: {
|
|
2155
2225
|
logoURI: string;
|
|
2156
2226
|
name: string;
|
|
2157
2227
|
};
|
|
2158
|
-
|
|
2228
|
+
timestamp?: number;
|
|
2229
|
+
hash?: string;
|
|
2230
|
+
url?: string;
|
|
2231
|
+
}
|
|
2232
|
+
declare function SwapAction({ status, nextStatus, showTimeline, showBody, fromToken, toToken, provider, timestamp, hash, url, }: SwapActionProps): react_jsx_runtime.JSX.Element;
|
|
2233
|
+
|
|
2234
|
+
interface WrapActionProps extends BaseActionProps {
|
|
2235
|
+
fromToken: {
|
|
2236
|
+
logoURI: string;
|
|
2237
|
+
symbol: string;
|
|
2238
|
+
};
|
|
2239
|
+
toToken: {
|
|
2240
|
+
logoURI: string;
|
|
2241
|
+
symbol: string;
|
|
2242
|
+
};
|
|
2243
|
+
provider: {
|
|
2159
2244
|
logoURI: string;
|
|
2160
2245
|
name: string;
|
|
2161
2246
|
};
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
boosted?: boolean;
|
|
2166
|
-
timeToComplete: string;
|
|
2247
|
+
timestamp?: number;
|
|
2248
|
+
hash?: string;
|
|
2249
|
+
url?: string;
|
|
2167
2250
|
}
|
|
2168
|
-
declare function
|
|
2251
|
+
declare function WrapAction({ status, nextStatus, showTimeline, showBody, fromToken, toToken, provider, timestamp, hash, url, }: WrapActionProps): react_jsx_runtime.JSX.Element;
|
|
2169
2252
|
|
|
2170
|
-
declare const
|
|
2171
|
-
readonly
|
|
2172
|
-
readonly
|
|
2173
|
-
readonly
|
|
2174
|
-
readonly
|
|
2253
|
+
declare const actionComponentMap: {
|
|
2254
|
+
readonly success: typeof SuccessAction;
|
|
2255
|
+
readonly receive_tokens: typeof ReceiveTokensAction;
|
|
2256
|
+
readonly receive_nft: typeof ReceiveNFTAction;
|
|
2257
|
+
readonly approve: typeof ApproveAction;
|
|
2258
|
+
readonly send_tokens: typeof SendTokensAction;
|
|
2259
|
+
readonly swap: typeof SwapAction;
|
|
2260
|
+
readonly bridge: typeof BridgeAction;
|
|
2261
|
+
readonly wrap: typeof WrapAction;
|
|
2262
|
+
readonly stake: typeof StakeAction;
|
|
2263
|
+
readonly start: typeof StartAction;
|
|
2264
|
+
readonly fees: typeof FeesAction;
|
|
2265
|
+
readonly incomplete: typeof IncompleteAction;
|
|
2175
2266
|
};
|
|
2176
|
-
type
|
|
2177
|
-
type
|
|
2178
|
-
type
|
|
2179
|
-
[Type in
|
|
2267
|
+
type TransactionActionComponents = typeof actionComponentMap;
|
|
2268
|
+
type TransactionActionType = keyof TransactionActionComponents;
|
|
2269
|
+
type TransactionActionProps = {
|
|
2270
|
+
[Type in TransactionActionType]: {
|
|
2180
2271
|
type: Type;
|
|
2181
|
-
props: ComponentProps<
|
|
2272
|
+
props: ComponentProps<TransactionActionComponents[Type]>;
|
|
2182
2273
|
};
|
|
2183
|
-
}[
|
|
2184
|
-
declare function
|
|
2274
|
+
}[TransactionActionType];
|
|
2275
|
+
declare function TransactionAction({ type, props }: TransactionActionProps): react_jsx_runtime.JSX.Element;
|
|
2185
2276
|
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2277
|
+
declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
2278
|
+
|
|
2279
|
+
type TransactionItemVariant = "compact" | "full";
|
|
2280
|
+
type TransactionItemType = {
|
|
2281
|
+
icon?: ReactNode;
|
|
2282
|
+
name: string;
|
|
2283
|
+
};
|
|
2284
|
+
interface TransactionItemProps {
|
|
2190
2285
|
className?: string;
|
|
2191
|
-
|
|
2192
|
-
|
|
2286
|
+
isLoading?: boolean;
|
|
2287
|
+
status?: ActionStatus;
|
|
2288
|
+
image?: ReactNode;
|
|
2289
|
+
type?: TransactionItemType;
|
|
2290
|
+
hash?: string;
|
|
2291
|
+
fromChain?: {
|
|
2292
|
+
logoURI: string;
|
|
2293
|
+
name: string;
|
|
2294
|
+
};
|
|
2295
|
+
toChain?: {
|
|
2296
|
+
logoURI: string;
|
|
2297
|
+
name: string;
|
|
2298
|
+
};
|
|
2299
|
+
fromAmount?: string;
|
|
2300
|
+
toAmount?: string;
|
|
2301
|
+
timestamp?: number;
|
|
2302
|
+
variant?: TransactionItemVariant;
|
|
2193
2303
|
}
|
|
2194
|
-
declare function
|
|
2304
|
+
declare function TransactionItem({ className, isLoading, status, image, type, hash, fromChain, toChain, fromAmount, toAmount, timestamp, variant, }: TransactionItemProps): react_jsx_runtime.JSX.Element;
|
|
2195
2305
|
|
|
2196
|
-
interface
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2306
|
+
interface RouteStepProps {
|
|
2307
|
+
imageUrl: string;
|
|
2308
|
+
descriptionBlocks: DescriptionBlock[];
|
|
2309
|
+
subtitle: string;
|
|
2310
|
+
showStepSeparator?: boolean;
|
|
2201
2311
|
}
|
|
2202
|
-
declare function
|
|
2312
|
+
declare function RouteStep({ imageUrl, descriptionBlocks, subtitle, showStepSeparator, }: RouteStepProps): react_jsx_runtime.JSX.Element;
|
|
2203
2313
|
|
|
2204
|
-
|
|
2314
|
+
declare function DropdownMenuTitle({ title }: {
|
|
2205
2315
|
title: string;
|
|
2206
|
-
|
|
2207
|
-
headerContent?: React.ReactNode;
|
|
2208
|
-
actionsContent?: React.ReactNode;
|
|
2209
|
-
chipLabel?: string;
|
|
2210
|
-
}
|
|
2211
|
-
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
2316
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2212
2317
|
|
|
2213
2318
|
interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2214
2319
|
children: ReactNode;
|
|
@@ -2435,45 +2540,30 @@ declare function TransactionViewLayout({ isLoading, header, properties, actions,
|
|
|
2435
2540
|
|
|
2436
2541
|
declare function WalletsView(): react_jsx_runtime.JSX.Element;
|
|
2437
2542
|
|
|
2438
|
-
type SquidTheme = {
|
|
2439
|
-
"content-100": string;
|
|
2440
|
-
"content-200": string;
|
|
2441
|
-
"content-300": string;
|
|
2442
|
-
"content-400": string;
|
|
2443
|
-
"content-500": string;
|
|
2444
|
-
"content-600": string;
|
|
2445
|
-
"content-700": string;
|
|
2446
|
-
"content-800": string;
|
|
2447
|
-
"content-900": string;
|
|
2448
|
-
"accent-300": string;
|
|
2449
|
-
"accent-400": string;
|
|
2450
|
-
"accent-500": string;
|
|
2451
|
-
"accent-700": string;
|
|
2452
|
-
"status-positive": string;
|
|
2453
|
-
"status-negative": string;
|
|
2454
|
-
"status-warning": string;
|
|
2455
|
-
"highlight-700": string;
|
|
2456
|
-
};
|
|
2457
|
-
|
|
2458
2543
|
declare function SquidConfigProvider({ theme, children, themeType, }: {
|
|
2459
2544
|
theme?: SquidTheme;
|
|
2460
2545
|
children?: React.ReactNode;
|
|
2461
2546
|
themeType?: ThemeType;
|
|
2462
2547
|
}): react_jsx_runtime.JSX.Element;
|
|
2463
2548
|
|
|
2549
|
+
type DropdownPosition = "top" | "bottom" | "center";
|
|
2550
|
+
type DropdownStyles = {
|
|
2551
|
+
position: DropdownPosition;
|
|
2552
|
+
maxHeight: number | null;
|
|
2553
|
+
};
|
|
2464
2554
|
interface UseDropdownMenuParams {
|
|
2465
2555
|
initialIsModalOpen?: boolean;
|
|
2466
|
-
itemsContainerRef?:
|
|
2556
|
+
itemsContainerRef?: react__default.RefObject<HTMLElement>;
|
|
2467
2557
|
}
|
|
2468
2558
|
declare function useDropdownMenu(props?: UseDropdownMenuParams): {
|
|
2469
2559
|
isDropdownOpen: boolean;
|
|
2470
2560
|
openDropdown: () => void;
|
|
2471
2561
|
closeDropdown: () => void;
|
|
2472
|
-
dropdownRef:
|
|
2473
|
-
openDropdownButtonRef:
|
|
2474
|
-
|
|
2475
|
-
itemRef:
|
|
2476
|
-
menuRef:
|
|
2562
|
+
dropdownRef: react__default.RefObject<HTMLDivElement>;
|
|
2563
|
+
openDropdownButtonRef: react__default.RefObject<HTMLButtonElement>;
|
|
2564
|
+
dropdownStyles: DropdownStyles | null;
|
|
2565
|
+
itemRef: react__default.RefObject<HTMLLIElement>;
|
|
2566
|
+
menuRef: react__default.RefObject<HTMLDivElement>;
|
|
2477
2567
|
};
|
|
2478
2568
|
|
|
2479
2569
|
type UseMediaQueryOptions = {
|
|
@@ -2564,4 +2654,4 @@ declare const baseTailwindConfig: Config;
|
|
|
2564
2654
|
*/
|
|
2565
2655
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
2566
2656
|
|
|
2567
|
-
export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon,
|
|
2657
|
+
export { type ActionButton, ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, type AllOrNone, AnimationWrapper, AppContainer, Approve, ApproveAction, ArrowBottomTopIcon, ArrowButton, ArrowCornerDownRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowOutOfBoxIcon, ArrowRightDownCircleIcon, ArrowRightDownIcon, ArrowRightIcon, ArrowRightUpCircleIcon, ArrowRightUpIcon, ArrowRotate, ArrowSplit, ArrowTriangle, ArrowUpIcon, ArrowWallDownIcon, ArrowsSwapIcon, AssetsButton, type AssetsButtonVariant, AssetsView, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CSS_VARS, Calendar, CaptionText, CatSquareIcon, ChainLink, Checkmark1Icon, Checkmark2Icon, ChevronArrowIcon, ChevronDownSmallIcon, ChevronGrabberVerticalIcon, ChevronLargeDownIcon, ChevronLargeRightIcon, ChevronRightSmallIcon, ChevronTopIcon, ChevronTopSmallIcon, Chip, type ChipProps, CircleMinusIcon, CirclePlusIcon, CircleX, CircleXFilledIcon, ClockOutlineIcon, ClockSolidIcon, CoinsAddIcon, CoinsIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy, CrossAnimatedIcon, DashboardFast, DescriptionBlocks, DetailsToolbar, DiscordIcon, DockIconAnalytics, DockIconCheckout, DockIconHelp, DockIconProfile, DockIconScan, DockIconSwap, DockSwapIcon, DollarOutlinedIcon, DollarSolidIcon, DotGrid1x3HorizontalIcon, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuTitle, type DropdownPosition, type DropdownStyles, EmojiMeh, EmojiSadIcon, EmptyHeartIcon, ErrorMessage, EthereumIcon, ExplosionIcon, EyeOpenIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostIcon, GithubIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, IconLabel, Image, ImageIcon, ImageSparkle, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LightningIcon, LimitIcon, LinkIcon, List, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PieChartIcon, PipeSeparator, PlusIcon, PoopIcon, PowerIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, RefreshIcon, ReorderIcon, RouteStep, STEP_ITEM_HEIGHT, SearchIcon, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsGearIcon, SettingsItem, type SettingsItemProps, SettingsSlider, SettingsSliderIcon, type SettingsSliderProps, ShoppingBagIcon, SizeTransition, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidConfigProvider, SquidLogo, type SquidTheme, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunriseIcon, SwapAction, SwapConfiguration, SwapDetailsView, SwapErrorIcon, SwapHeader, type SwapHeaderProps, SwapIcon, SwapInputsIcon, SwapProgressView, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepSeparator, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapSuccessIcon, SwapTransactionView, SwapWarningIcon, Switch, type SwitchProps, TagIcon, TagIconFilled, TextSkeleton, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, Timeline, Timestamp, Toast, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TradingViewStepsIcon, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, TranslateIcon, TriangleExclamation, UsdAmount, WalletFilledIcon, WalletIcon, WalletLink, WalletsView, WrapAction, XSocial, baseTailwindConfig, cn, darkTheme, lightTheme, linkActionTimelineProps, statusTextClassMap, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useVersion };
|