@0xsquid/ui 2.2.3 → 2.2.5-beta.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 +15042 -14841
- package/dist/cjs/types/components/badges/BadgeImage.d.ts +5 -11
- package/dist/cjs/types/components/badges/IconLabel.d.ts +4 -5
- package/dist/cjs/types/components/badges/Image.d.ts +15 -5
- package/dist/cjs/types/components/badges/LoadingSkeleton.d.ts +1 -1
- package/dist/cjs/types/components/badges/PriceChange.d.ts +5 -0
- package/dist/cjs/types/components/badges/index.d.ts +1 -0
- package/dist/cjs/types/components/cards/WalletCard.d.ts +14 -0
- package/dist/cjs/types/components/icons/Arrow.d.ts +4 -0
- package/dist/cjs/types/components/icons/Avatars.d.ts +2 -1
- package/dist/cjs/types/components/icons/FavouriteFilterIcon.d.ts +4 -0
- package/dist/cjs/types/components/icons/MarketIcons.d.ts +8 -0
- package/dist/cjs/types/components/icons/Plus.d.ts +4 -1
- package/dist/cjs/types/components/icons/SquidLogo.d.ts +4 -0
- package/dist/cjs/types/components/icons/index.d.ts +5 -3
- package/dist/cjs/types/components/layout/AppContainer.d.ts +8 -8
- package/dist/cjs/types/components/layout/Collapse.d.ts +3 -2
- package/dist/cjs/types/components/layout/DescriptionBlocks.d.ts +2 -2
- package/dist/cjs/types/components/layout/DetailsToolbar.d.ts +2 -2
- package/dist/cjs/types/components/layout/ImageStack.d.ts +9 -0
- package/dist/cjs/types/components/layout/TokenDetailsView.d.ts +39 -0
- package/dist/cjs/types/components/layout/TransactionFilters.d.ts +3 -3
- package/dist/cjs/types/components/layout/TransactionHeader/BridgeHeader.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +1 -1
- package/dist/cjs/types/components/layout/index.d.ts +3 -2
- package/dist/cjs/types/components/layout/useOnClickOutside.d.ts +1 -1
- package/dist/cjs/types/components/lists/ListItem.d.ts +2 -1
- package/dist/cjs/types/components/lists/SwapStepItem.d.ts +1 -1
- package/dist/cjs/types/components/lists/TokenGroup.d.ts +20 -0
- package/dist/cjs/types/components/lists/TransactionAction/ActionLayout.d.ts +2 -2
- package/dist/cjs/types/components/lists/TransactionAction/ApproveAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/BridgeAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/SendTokensAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/StakeAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/SwapAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/WrapAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionItem.d.ts +4 -4
- package/dist/cjs/types/components/typography/BodyText.d.ts +5 -1
- package/dist/cjs/types/components/typography/CaptionText.d.ts +8 -2
- package/dist/cjs/types/components/views/TransactionView/TransactionViewLayout.d.ts +2 -2
- package/dist/cjs/types/core/constants.d.ts +2 -0
- package/dist/cjs/types/core/design-system.d.ts +3 -1
- package/dist/cjs/types/services/internal/colorService.d.ts +11 -1
- package/dist/cjs/types/stories/badges/BadgeImage.stories.d.ts +7 -10
- package/dist/cjs/types/stories/badges/IconLabel.stories.d.ts +1 -1
- package/dist/cjs/types/stories/badges/Image.stories.d.ts +16 -0
- package/dist/cjs/types/stories/badges/PriceChange.stories.d.ts +8 -0
- package/dist/cjs/types/stories/buttons/AddressButton.stories.d.ts +1 -1
- package/dist/cjs/types/stories/buttons/Button.stories.d.ts +1 -1
- package/dist/cjs/types/stories/buttons/FilterButton.stories.d.ts +1 -1
- package/dist/cjs/types/stories/cards/WalletCard.stories.d.ts +11 -0
- package/dist/cjs/types/stories/controls/Tooltip.stories.d.ts +1 -1
- package/dist/cjs/types/stories/layout/ImageStack.stories.d.ts +8 -0
- package/dist/cjs/types/stories/layout/Toast.stories.d.ts +1 -1
- package/dist/cjs/types/stories/layout/TokenDetailsView.stories.d.ts +13 -0
- package/dist/cjs/types/stories/layout/TransactionProperties.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/TransactionSearch.stories.d.ts +1 -1
- package/dist/cjs/types/stories/lists/HistoryItem.stories.d.ts +2 -1
- package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +1 -1
- package/dist/cjs/types/stories/lists/PropertyListItem.stories.d.ts +1 -1
- package/dist/cjs/types/stories/lists/SwapStepItem.stories.d.ts +1 -1
- package/dist/cjs/types/stories/lists/TokenGroup.stories.d.ts +15 -0
- package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +1 -1
- package/dist/cjs/types/types/components.d.ts +7 -2
- package/dist/cjs/types/types/config.d.ts +1 -1
- package/dist/esm/index.js +15020 -14829
- package/dist/esm/types/components/badges/BadgeImage.d.ts +5 -11
- package/dist/esm/types/components/badges/IconLabel.d.ts +4 -5
- package/dist/esm/types/components/badges/Image.d.ts +15 -5
- package/dist/esm/types/components/badges/LoadingSkeleton.d.ts +1 -1
- package/dist/esm/types/components/badges/PriceChange.d.ts +5 -0
- package/dist/esm/types/components/badges/index.d.ts +1 -0
- package/dist/esm/types/components/cards/WalletCard.d.ts +14 -0
- package/dist/esm/types/components/icons/Arrow.d.ts +4 -0
- package/dist/esm/types/components/icons/Avatars.d.ts +2 -1
- package/dist/esm/types/components/icons/FavouriteFilterIcon.d.ts +4 -0
- package/dist/esm/types/components/icons/MarketIcons.d.ts +8 -0
- package/dist/esm/types/components/icons/Plus.d.ts +4 -1
- package/dist/esm/types/components/icons/SquidLogo.d.ts +4 -0
- package/dist/esm/types/components/icons/index.d.ts +5 -3
- package/dist/esm/types/components/layout/AppContainer.d.ts +8 -8
- package/dist/esm/types/components/layout/Collapse.d.ts +3 -2
- package/dist/esm/types/components/layout/DescriptionBlocks.d.ts +2 -2
- package/dist/esm/types/components/layout/DetailsToolbar.d.ts +2 -2
- package/dist/esm/types/components/layout/ImageStack.d.ts +9 -0
- package/dist/esm/types/components/layout/TokenDetailsView.d.ts +39 -0
- package/dist/esm/types/components/layout/TransactionFilters.d.ts +3 -3
- package/dist/esm/types/components/layout/TransactionHeader/BridgeHeader.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +1 -1
- package/dist/esm/types/components/layout/index.d.ts +3 -2
- package/dist/esm/types/components/layout/useOnClickOutside.d.ts +1 -1
- package/dist/esm/types/components/lists/ListItem.d.ts +2 -1
- package/dist/esm/types/components/lists/SwapStepItem.d.ts +1 -1
- package/dist/esm/types/components/lists/TokenGroup.d.ts +20 -0
- package/dist/esm/types/components/lists/TransactionAction/ActionLayout.d.ts +2 -2
- package/dist/esm/types/components/lists/TransactionAction/ApproveAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/BridgeAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/SendTokensAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/StakeAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/SwapAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/WrapAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionItem.d.ts +4 -4
- package/dist/esm/types/components/typography/BodyText.d.ts +5 -1
- package/dist/esm/types/components/typography/CaptionText.d.ts +8 -2
- package/dist/esm/types/components/views/TransactionView/TransactionViewLayout.d.ts +2 -2
- package/dist/esm/types/core/constants.d.ts +2 -0
- package/dist/esm/types/core/design-system.d.ts +3 -1
- package/dist/esm/types/services/internal/colorService.d.ts +11 -1
- package/dist/esm/types/stories/badges/BadgeImage.stories.d.ts +7 -10
- package/dist/esm/types/stories/badges/IconLabel.stories.d.ts +1 -1
- package/dist/esm/types/stories/badges/Image.stories.d.ts +16 -0
- package/dist/esm/types/stories/badges/PriceChange.stories.d.ts +8 -0
- package/dist/esm/types/stories/buttons/AddressButton.stories.d.ts +1 -1
- package/dist/esm/types/stories/buttons/Button.stories.d.ts +1 -1
- package/dist/esm/types/stories/buttons/FilterButton.stories.d.ts +1 -1
- package/dist/esm/types/stories/cards/WalletCard.stories.d.ts +11 -0
- package/dist/esm/types/stories/controls/Tooltip.stories.d.ts +1 -1
- package/dist/esm/types/stories/layout/ImageStack.stories.d.ts +8 -0
- package/dist/esm/types/stories/layout/Toast.stories.d.ts +1 -1
- package/dist/esm/types/stories/layout/TokenDetailsView.stories.d.ts +13 -0
- package/dist/esm/types/stories/layout/TransactionProperties.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/TransactionSearch.stories.d.ts +1 -1
- package/dist/esm/types/stories/lists/HistoryItem.stories.d.ts +2 -1
- package/dist/esm/types/stories/lists/ListItem.stories.d.ts +1 -1
- package/dist/esm/types/stories/lists/PropertyListItem.stories.d.ts +1 -1
- package/dist/esm/types/stories/lists/SwapStepItem.stories.d.ts +1 -1
- package/dist/esm/types/stories/lists/TokenGroup.stories.d.ts +15 -0
- package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +1 -1
- package/dist/esm/types/types/components.d.ts +7 -2
- package/dist/esm/types/types/config.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +275 -180
- package/package.json +2 -2
- package/dist/cjs/types/stories/badges/ImageIcon.stories.d.ts +0 -7
- package/dist/esm/types/stories/badges/ImageIcon.stories.d.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -8,21 +8,6 @@ import { motion } from 'framer-motion';
|
|
|
8
8
|
import { Config } from 'tailwindcss';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
|
|
11
|
-
interface BadgeImageProps {
|
|
12
|
-
imageUrl?: string;
|
|
13
|
-
badgeUrl?: string;
|
|
14
|
-
size?: BadgeSize;
|
|
15
|
-
extraMarginForBadge?: boolean;
|
|
16
|
-
rounded?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The URL of the placeholder image. Will be displayed while the images are loading
|
|
19
|
-
* or if there's an error loading them.
|
|
20
|
-
*/
|
|
21
|
-
placeholderImageUrl?: string;
|
|
22
|
-
}
|
|
23
|
-
type BadgeSize = "sm" | "md";
|
|
24
|
-
declare function BadgeImage({ imageUrl: _imageUrl, badgeUrl, size, extraMarginForBadge, rounded, placeholderImageUrl, }: BadgeImageProps): react_jsx_runtime.JSX.Element | null;
|
|
25
|
-
|
|
26
11
|
type TextSize = "small" | "medium" | "large";
|
|
27
12
|
type SwitchSize = "small" | "large";
|
|
28
13
|
type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
@@ -58,28 +43,50 @@ type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" |
|
|
|
58
43
|
type TransactionStateVariant = "full" | "compact" | "small";
|
|
59
44
|
type TokenPairVariant = "horizontal" | "vertical";
|
|
60
45
|
type TokenPairSize = "small" | "medium";
|
|
61
|
-
type
|
|
62
|
-
type
|
|
46
|
+
type ImageSize = "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
47
|
+
type ImageRoundedSize = "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "full" | "none";
|
|
48
|
+
type ImageBorder = "none" | "gradient" | "inset" | "outline-sm" | "outline-lg";
|
|
63
49
|
type ChainTypeFilter = "source" | "destination";
|
|
64
50
|
type StatusFilter = "success" | "ongoing" | "error";
|
|
65
51
|
type AssetsButtonVariant = "primary" | "accent";
|
|
66
52
|
type PropertyListItemSize = "small" | "large";
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
src?: string;
|
|
71
|
-
children?: ReactNode;
|
|
72
|
-
variant?: ImageVariant;
|
|
53
|
+
interface PriceChange$1 {
|
|
54
|
+
value: string;
|
|
55
|
+
sign: "positive" | "negative" | "neutral";
|
|
73
56
|
}
|
|
74
|
-
declare function IconLabel({ src, children, variant }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
75
57
|
|
|
76
|
-
|
|
58
|
+
declare enum ImageState {
|
|
59
|
+
LOADING = 0,
|
|
60
|
+
LOADED = 1,
|
|
61
|
+
ERROR = 2
|
|
62
|
+
}
|
|
63
|
+
interface ImageProps extends React.ComponentProps<"img"> {
|
|
77
64
|
src?: string;
|
|
78
|
-
|
|
65
|
+
children?: React.ReactNode;
|
|
79
66
|
size?: ImageSize;
|
|
80
67
|
className?: string;
|
|
68
|
+
placeholderImageUrl?: string;
|
|
69
|
+
border?: ImageBorder;
|
|
70
|
+
rounded?: ImageRoundedSize;
|
|
71
|
+
shadow?: boolean;
|
|
72
|
+
containerProps?: React.ComponentProps<"div">;
|
|
81
73
|
}
|
|
82
|
-
declare function Image({ src,
|
|
74
|
+
declare function Image({ src, size, className: propsClassName, placeholderImageUrl, border, rounded, shadow, children, containerProps, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
interface BadgeImageProps {
|
|
77
|
+
badge?: ImageProps;
|
|
78
|
+
image?: ImageProps;
|
|
79
|
+
extraMarginForBadge?: boolean;
|
|
80
|
+
className?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function BadgeImage({ image, badge, extraMarginForBadge, className, }: BadgeImageProps): false | react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
interface IconLabelProps {
|
|
85
|
+
src?: string;
|
|
86
|
+
children?: ReactNode;
|
|
87
|
+
rounded?: ImageRoundedSize;
|
|
88
|
+
}
|
|
89
|
+
declare function IconLabel({ src, children, rounded }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
83
90
|
|
|
84
91
|
declare const LoadingProvider: react.Provider<boolean | null>;
|
|
85
92
|
interface LoadingSkeletonProps {
|
|
@@ -100,6 +107,10 @@ interface LoadingBlockProps extends ComponentProps<"div"> {
|
|
|
100
107
|
}
|
|
101
108
|
declare function BlockSkeleton({ isLoading, className, children, ...props }: LoadingBlockProps): string | number | boolean | Iterable<react.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
102
109
|
|
|
110
|
+
interface PriceChangeProps extends PriceChange$1 {
|
|
111
|
+
}
|
|
112
|
+
declare function PriceChange({ sign, value }: PriceChangeProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
|
|
103
114
|
declare const statusTextClassMap: Record<ActionStatus, string>;
|
|
104
115
|
interface TransactionStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
105
116
|
status: ActionStatus;
|
|
@@ -167,13 +178,13 @@ interface TooltipProps {
|
|
|
167
178
|
}
|
|
168
179
|
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
169
180
|
|
|
170
|
-
interface Token$
|
|
181
|
+
interface Token$2 {
|
|
171
182
|
price: number;
|
|
172
183
|
symbol: string;
|
|
173
184
|
decimals: number;
|
|
174
185
|
}
|
|
175
186
|
interface NumericInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
176
|
-
token: Token$
|
|
187
|
+
token: Token$2;
|
|
177
188
|
onAmountChange: (tokenAmount: string) => void;
|
|
178
189
|
forcedAmount?: string;
|
|
179
190
|
formatIfVerySmall?: {
|
|
@@ -318,6 +329,10 @@ declare function ChevronArrowIcon({ size, className, }: {
|
|
|
318
329
|
declare function ArrowTriangle({ className }: {
|
|
319
330
|
className?: string;
|
|
320
331
|
}): react_jsx_runtime.JSX.Element;
|
|
332
|
+
declare function PauseIcon({ size, className, }: {
|
|
333
|
+
size?: string;
|
|
334
|
+
className?: string;
|
|
335
|
+
}): react_jsx_runtime.JSX.Element;
|
|
321
336
|
declare function ChevronTopSmallIcon(): react_jsx_runtime.JSX.Element;
|
|
322
337
|
declare function ChevronLargeDownIcon({ size, className, }: {
|
|
323
338
|
size?: string;
|
|
@@ -389,7 +404,8 @@ declare function ArrowSplit({ size, className, }: {
|
|
|
389
404
|
|
|
390
405
|
declare function ArrowRotate(): react_jsx_runtime.JSX.Element;
|
|
391
406
|
|
|
392
|
-
declare function PunkIcon({ size }: {
|
|
407
|
+
declare function PunkIcon({ className, size, }: {
|
|
408
|
+
className?: string;
|
|
393
409
|
size?: string;
|
|
394
410
|
}): react_jsx_runtime.JSX.Element;
|
|
395
411
|
|
|
@@ -496,11 +512,28 @@ declare function Copy({ size, strokeWidth, ...props }: {
|
|
|
496
512
|
strokeWidth?: string;
|
|
497
513
|
} & ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
|
|
498
514
|
|
|
515
|
+
declare function CrossAnimatedIcon({ size, isOpen, transitionDuration, className, }: {
|
|
516
|
+
size?: number;
|
|
517
|
+
isOpen?: boolean;
|
|
518
|
+
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
519
|
+
className?: string;
|
|
520
|
+
}): react_jsx_runtime.JSX.Element;
|
|
521
|
+
|
|
499
522
|
declare function DashboardFast({ size, className, }: {
|
|
500
523
|
size?: string;
|
|
501
524
|
className?: string;
|
|
502
525
|
}): react_jsx_runtime.JSX.Element;
|
|
503
526
|
|
|
527
|
+
interface DockIconProps {
|
|
528
|
+
isSelected?: boolean;
|
|
529
|
+
}
|
|
530
|
+
declare function DockIconSwap({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
531
|
+
declare function DockIconCheckout({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
532
|
+
declare function DockIconScan({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
533
|
+
declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
535
|
+
declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
536
|
+
|
|
504
537
|
declare function DotGrid1x3HorizontalIcon({ className, size, }: {
|
|
505
538
|
className?: string;
|
|
506
539
|
size?: string;
|
|
@@ -521,8 +554,98 @@ declare function SmileIcon({ size, className, }: {
|
|
|
521
554
|
|
|
522
555
|
declare function EthereumIcon(): react_jsx_runtime.JSX.Element;
|
|
523
556
|
|
|
557
|
+
declare function FavouriteFilterIcon({ size, className, }: {
|
|
558
|
+
size?: string;
|
|
559
|
+
className?: string;
|
|
560
|
+
}): react_jsx_runtime.JSX.Element;
|
|
561
|
+
|
|
524
562
|
declare function FilterIcon(): react_jsx_runtime.JSX.Element;
|
|
525
563
|
|
|
564
|
+
declare function GhostIcon({ size, className, }: {
|
|
565
|
+
size?: string;
|
|
566
|
+
className?: string;
|
|
567
|
+
}): react_jsx_runtime.JSX.Element;
|
|
568
|
+
declare function SettingsSliderIcon({ size, className, }: {
|
|
569
|
+
size?: string;
|
|
570
|
+
className?: string;
|
|
571
|
+
}): react_jsx_runtime.JSX.Element;
|
|
572
|
+
declare function EyeOpenIcon({ size, className, }: {
|
|
573
|
+
size?: string;
|
|
574
|
+
className?: string;
|
|
575
|
+
}): react_jsx_runtime.JSX.Element;
|
|
576
|
+
declare function BellAlarmIcon({ size, className, }: {
|
|
577
|
+
size?: string;
|
|
578
|
+
className?: string;
|
|
579
|
+
}): react_jsx_runtime.JSX.Element;
|
|
580
|
+
declare function LimitIcon({ size, className, }: {
|
|
581
|
+
size?: string;
|
|
582
|
+
className?: string;
|
|
583
|
+
}): react_jsx_runtime.JSX.Element;
|
|
584
|
+
declare function PoopIcon({ size, className, }: {
|
|
585
|
+
size?: string;
|
|
586
|
+
className?: string;
|
|
587
|
+
}): react_jsx_runtime.JSX.Element;
|
|
588
|
+
declare function CatSquareIcon({ size, className, }: {
|
|
589
|
+
size?: string;
|
|
590
|
+
className?: string;
|
|
591
|
+
}): react_jsx_runtime.JSX.Element;
|
|
592
|
+
declare function FilterAscendingIcon({ size, className, }: {
|
|
593
|
+
size?: string;
|
|
594
|
+
className?: string;
|
|
595
|
+
}): react_jsx_runtime.JSX.Element;
|
|
596
|
+
declare function ImageIcon({ size, className, }: {
|
|
597
|
+
size?: string;
|
|
598
|
+
className?: string;
|
|
599
|
+
}): react_jsx_runtime.JSX.Element;
|
|
600
|
+
declare function FilterTimelineIcon({ size, className, }: {
|
|
601
|
+
size?: string;
|
|
602
|
+
className?: string;
|
|
603
|
+
}): react_jsx_runtime.JSX.Element;
|
|
604
|
+
declare function NewspaperIcon({ className, size, }: {
|
|
605
|
+
className?: string;
|
|
606
|
+
size?: string;
|
|
607
|
+
}): react_jsx_runtime.JSX.Element;
|
|
608
|
+
declare function AtomIcon({ className, size, }: {
|
|
609
|
+
className?: string;
|
|
610
|
+
size?: string;
|
|
611
|
+
}): react_jsx_runtime.JSX.Element;
|
|
612
|
+
declare function SunriseSmallIcon({ className, size, }: {
|
|
613
|
+
className?: string;
|
|
614
|
+
size?: string;
|
|
615
|
+
}): react_jsx_runtime.JSX.Element;
|
|
616
|
+
declare function CoinsOutlinedIcon({ className, size, }: {
|
|
617
|
+
className?: string;
|
|
618
|
+
size?: string;
|
|
619
|
+
}): react_jsx_runtime.JSX.Element;
|
|
620
|
+
declare function PhoneIcon({ size, className, }: {
|
|
621
|
+
size?: string;
|
|
622
|
+
className?: string;
|
|
623
|
+
}): react_jsx_runtime.JSX.Element;
|
|
624
|
+
declare function LaptopIcon({ size, className, }: {
|
|
625
|
+
size?: string;
|
|
626
|
+
className?: string;
|
|
627
|
+
}): react_jsx_runtime.JSX.Element;
|
|
628
|
+
declare function CopyIcon({ size, className, }: {
|
|
629
|
+
size?: string;
|
|
630
|
+
className?: string;
|
|
631
|
+
}): react_jsx_runtime.JSX.Element;
|
|
632
|
+
declare function FileDownloadIcon({ size, className, }: {
|
|
633
|
+
size?: string;
|
|
634
|
+
className?: string;
|
|
635
|
+
}): react_jsx_runtime.JSX.Element;
|
|
636
|
+
declare function CodeSolidSquareIcon({ size, className, }: {
|
|
637
|
+
size?: string;
|
|
638
|
+
className?: string;
|
|
639
|
+
}): react_jsx_runtime.JSX.Element;
|
|
640
|
+
declare function CodeBracketsIcon({ size, className, }: {
|
|
641
|
+
size?: string;
|
|
642
|
+
className?: string;
|
|
643
|
+
}): react_jsx_runtime.JSX.Element;
|
|
644
|
+
declare function CommandIcon({ size, className, }: {
|
|
645
|
+
size?: string;
|
|
646
|
+
className?: string;
|
|
647
|
+
}): react_jsx_runtime.JSX.Element;
|
|
648
|
+
|
|
526
649
|
declare function EmptyHeartIcon({ className }: {
|
|
527
650
|
className?: string;
|
|
528
651
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -592,6 +715,15 @@ interface LoaderProps extends ComponentProps<"svg"> {
|
|
|
592
715
|
}
|
|
593
716
|
declare function Loader({ size, strokeWidth, className, rotateDuration, ...props }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
594
717
|
|
|
718
|
+
declare function MarketCapIcon({ size, className, }: {
|
|
719
|
+
size?: string;
|
|
720
|
+
className?: string;
|
|
721
|
+
}): react_jsx_runtime.JSX.Element;
|
|
722
|
+
declare function HighestPriceRangeIcon({ size, className, }: {
|
|
723
|
+
size?: string;
|
|
724
|
+
className?: string;
|
|
725
|
+
}): react_jsx_runtime.JSX.Element;
|
|
726
|
+
|
|
595
727
|
declare function MaxIcon(): react_jsx_runtime.JSX.Element;
|
|
596
728
|
|
|
597
729
|
declare function NotAllowedIcon(): react_jsx_runtime.JSX.Element;
|
|
@@ -607,7 +739,10 @@ declare function PathSquareIcon({ size, className, }: {
|
|
|
607
739
|
|
|
608
740
|
declare function PieChartIcon(): react_jsx_runtime.JSX.Element;
|
|
609
741
|
|
|
610
|
-
declare function PlusIcon(
|
|
742
|
+
declare function PlusIcon({ className, size, }: {
|
|
743
|
+
className?: string;
|
|
744
|
+
size?: string;
|
|
745
|
+
}): react_jsx_runtime.JSX.Element;
|
|
611
746
|
|
|
612
747
|
declare function RefreshIcon(): react_jsx_runtime.JSX.Element;
|
|
613
748
|
|
|
@@ -646,6 +781,10 @@ declare function SquidLogo({ size, className, }: {
|
|
|
646
781
|
size?: string;
|
|
647
782
|
className?: string;
|
|
648
783
|
}): react_jsx_runtime.JSX.Element;
|
|
784
|
+
declare function SquidVector({ size, className, }: {
|
|
785
|
+
size?: string;
|
|
786
|
+
className?: string;
|
|
787
|
+
}): react_jsx_runtime.JSX.Element;
|
|
649
788
|
|
|
650
789
|
declare function SwapInputsIcon(): react_jsx_runtime.JSX.Element;
|
|
651
790
|
declare function SwapIcon({ size, className, }: {
|
|
@@ -697,13 +836,6 @@ declare function WalletFilledIcon({ size }: {
|
|
|
697
836
|
size?: string;
|
|
698
837
|
}): react_jsx_runtime.JSX.Element;
|
|
699
838
|
|
|
700
|
-
declare function CrossAnimatedIcon({ size, isOpen, transitionDuration, className, }: {
|
|
701
|
-
size?: number;
|
|
702
|
-
isOpen?: boolean;
|
|
703
|
-
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
704
|
-
className?: string;
|
|
705
|
-
}): react_jsx_runtime.JSX.Element;
|
|
706
|
-
|
|
707
839
|
declare function SunriseIcon({ size, className, }: {
|
|
708
840
|
size?: string;
|
|
709
841
|
className?: string;
|
|
@@ -725,101 +857,6 @@ declare function CrossedOutSunSolidIcon({ size, className, }: {
|
|
|
725
857
|
className?: string;
|
|
726
858
|
}): react_jsx_runtime.JSX.Element;
|
|
727
859
|
|
|
728
|
-
interface DockIconProps {
|
|
729
|
-
isSelected?: boolean;
|
|
730
|
-
}
|
|
731
|
-
declare function DockIconSwap({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
732
|
-
declare function DockIconCheckout({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
733
|
-
declare function DockIconScan({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
734
|
-
declare function DockIconAnalytics({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
declare function DockIconProfile({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
736
|
-
declare function DockIconHelp({ isSelected }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
737
|
-
|
|
738
|
-
declare function GhostIcon({ size, className, }: {
|
|
739
|
-
size?: string;
|
|
740
|
-
className?: string;
|
|
741
|
-
}): react_jsx_runtime.JSX.Element;
|
|
742
|
-
declare function SettingsSliderIcon({ size, className, }: {
|
|
743
|
-
size?: string;
|
|
744
|
-
className?: string;
|
|
745
|
-
}): react_jsx_runtime.JSX.Element;
|
|
746
|
-
declare function EyeOpenIcon({ size, className, }: {
|
|
747
|
-
size?: string;
|
|
748
|
-
className?: string;
|
|
749
|
-
}): react_jsx_runtime.JSX.Element;
|
|
750
|
-
declare function BellAlarmIcon({ size, className, }: {
|
|
751
|
-
size?: string;
|
|
752
|
-
className?: string;
|
|
753
|
-
}): react_jsx_runtime.JSX.Element;
|
|
754
|
-
declare function LimitIcon({ size, className, }: {
|
|
755
|
-
size?: string;
|
|
756
|
-
className?: string;
|
|
757
|
-
}): react_jsx_runtime.JSX.Element;
|
|
758
|
-
declare function PoopIcon({ size, className, }: {
|
|
759
|
-
size?: string;
|
|
760
|
-
className?: string;
|
|
761
|
-
}): react_jsx_runtime.JSX.Element;
|
|
762
|
-
declare function CatSquareIcon({ size, className, }: {
|
|
763
|
-
size?: string;
|
|
764
|
-
className?: string;
|
|
765
|
-
}): react_jsx_runtime.JSX.Element;
|
|
766
|
-
declare function FilterAscendingIcon({ size, className, }: {
|
|
767
|
-
size?: string;
|
|
768
|
-
className?: string;
|
|
769
|
-
}): react_jsx_runtime.JSX.Element;
|
|
770
|
-
declare function ImageIcon({ size, className, }: {
|
|
771
|
-
size?: string;
|
|
772
|
-
className?: string;
|
|
773
|
-
}): react_jsx_runtime.JSX.Element;
|
|
774
|
-
declare function FilterTimelineIcon({ size, className, }: {
|
|
775
|
-
size?: string;
|
|
776
|
-
className?: string;
|
|
777
|
-
}): react_jsx_runtime.JSX.Element;
|
|
778
|
-
declare function NewspaperIcon({ className, size, }: {
|
|
779
|
-
className?: string;
|
|
780
|
-
size?: string;
|
|
781
|
-
}): react_jsx_runtime.JSX.Element;
|
|
782
|
-
declare function AtomIcon({ className, size, }: {
|
|
783
|
-
className?: string;
|
|
784
|
-
size?: string;
|
|
785
|
-
}): react_jsx_runtime.JSX.Element;
|
|
786
|
-
declare function SunriseSmallIcon({ className, size, }: {
|
|
787
|
-
className?: string;
|
|
788
|
-
size?: string;
|
|
789
|
-
}): react_jsx_runtime.JSX.Element;
|
|
790
|
-
declare function CoinsOutlinedIcon({ className, size, }: {
|
|
791
|
-
className?: string;
|
|
792
|
-
size?: string;
|
|
793
|
-
}): react_jsx_runtime.JSX.Element;
|
|
794
|
-
declare function PhoneIcon({ size, className, }: {
|
|
795
|
-
size?: string;
|
|
796
|
-
className?: string;
|
|
797
|
-
}): react_jsx_runtime.JSX.Element;
|
|
798
|
-
declare function LaptopIcon({ size, className, }: {
|
|
799
|
-
size?: string;
|
|
800
|
-
className?: string;
|
|
801
|
-
}): react_jsx_runtime.JSX.Element;
|
|
802
|
-
declare function CopyIcon({ size, className, }: {
|
|
803
|
-
size?: string;
|
|
804
|
-
className?: string;
|
|
805
|
-
}): react_jsx_runtime.JSX.Element;
|
|
806
|
-
declare function FileDownloadIcon({ size, className, }: {
|
|
807
|
-
size?: string;
|
|
808
|
-
className?: string;
|
|
809
|
-
}): react_jsx_runtime.JSX.Element;
|
|
810
|
-
declare function CodeSolidSquareIcon({ size, className, }: {
|
|
811
|
-
size?: string;
|
|
812
|
-
className?: string;
|
|
813
|
-
}): react_jsx_runtime.JSX.Element;
|
|
814
|
-
declare function CodeBracketsIcon({ size, className, }: {
|
|
815
|
-
size?: string;
|
|
816
|
-
className?: string;
|
|
817
|
-
}): react_jsx_runtime.JSX.Element;
|
|
818
|
-
declare function CommandIcon({ size, className, }: {
|
|
819
|
-
size?: string;
|
|
820
|
-
className?: string;
|
|
821
|
-
}): react_jsx_runtime.JSX.Element;
|
|
822
|
-
|
|
823
860
|
interface Props extends React.ComponentProps<typeof Player> {
|
|
824
861
|
}
|
|
825
862
|
declare const AnimationWrapper: (playerProps: Props) => react_jsx_runtime.JSX.Element;
|
|
@@ -830,9 +867,9 @@ interface AppContainerProps extends ComponentProps<typeof motion.div> {
|
|
|
830
867
|
declare function AppContainer({ children, className, layoutKey, ...props }: AppContainerProps): react_jsx_runtime.JSX.Element;
|
|
831
868
|
declare namespace AppContainer {
|
|
832
869
|
var Nav: ({ className, children, ...props }: {
|
|
870
|
+
color?: string | undefined;
|
|
833
871
|
slot?: string | undefined;
|
|
834
872
|
title?: string | undefined;
|
|
835
|
-
color?: string | undefined;
|
|
836
873
|
hidden?: boolean | undefined;
|
|
837
874
|
suppressHydrationWarning?: boolean | undefined;
|
|
838
875
|
className?: string | undefined;
|
|
@@ -842,7 +879,7 @@ declare namespace AppContainer {
|
|
|
842
879
|
tabIndex?: number | undefined;
|
|
843
880
|
"aria-activedescendant"?: string | undefined;
|
|
844
881
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
845
|
-
"aria-autocomplete"?: "
|
|
882
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
846
883
|
"aria-braillelabel"?: string | undefined;
|
|
847
884
|
"aria-brailleroledescription"?: string | undefined;
|
|
848
885
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -857,7 +894,7 @@ declare namespace AppContainer {
|
|
|
857
894
|
"aria-description"?: string | undefined;
|
|
858
895
|
"aria-details"?: string | undefined;
|
|
859
896
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
860
|
-
"aria-dropeffect"?: "
|
|
897
|
+
"aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
861
898
|
"aria-errormessage"?: string | undefined;
|
|
862
899
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
863
900
|
"aria-flowto"?: string | undefined;
|
|
@@ -928,7 +965,7 @@ declare namespace AppContainer {
|
|
|
928
965
|
results?: number | undefined;
|
|
929
966
|
security?: string | undefined;
|
|
930
967
|
unselectable?: "off" | "on" | undefined;
|
|
931
|
-
inputMode?: "
|
|
968
|
+
inputMode?: "none" | "search" | "text" | "numeric" | "email" | "tel" | "url" | "decimal" | undefined;
|
|
932
969
|
is?: string | undefined;
|
|
933
970
|
dangerouslySetInnerHTML?: {
|
|
934
971
|
__html: string | TrustedHTML;
|
|
@@ -1091,9 +1128,9 @@ declare namespace AppContainer {
|
|
|
1091
1128
|
onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1092
1129
|
} & framer_motion.MotionProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
1093
1130
|
var Content: (props: {
|
|
1131
|
+
color?: string | undefined;
|
|
1094
1132
|
slot?: string | undefined;
|
|
1095
1133
|
title?: string | undefined;
|
|
1096
|
-
color?: string | undefined;
|
|
1097
1134
|
hidden?: boolean | undefined;
|
|
1098
1135
|
suppressHydrationWarning?: boolean | undefined;
|
|
1099
1136
|
className?: string | undefined;
|
|
@@ -1103,7 +1140,7 @@ declare namespace AppContainer {
|
|
|
1103
1140
|
tabIndex?: number | undefined;
|
|
1104
1141
|
"aria-activedescendant"?: string | undefined;
|
|
1105
1142
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1106
|
-
"aria-autocomplete"?: "
|
|
1143
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
1107
1144
|
"aria-braillelabel"?: string | undefined;
|
|
1108
1145
|
"aria-brailleroledescription"?: string | undefined;
|
|
1109
1146
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -1118,7 +1155,7 @@ declare namespace AppContainer {
|
|
|
1118
1155
|
"aria-description"?: string | undefined;
|
|
1119
1156
|
"aria-details"?: string | undefined;
|
|
1120
1157
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
1121
|
-
"aria-dropeffect"?: "
|
|
1158
|
+
"aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1122
1159
|
"aria-errormessage"?: string | undefined;
|
|
1123
1160
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
1124
1161
|
"aria-flowto"?: string | undefined;
|
|
@@ -1189,7 +1226,7 @@ declare namespace AppContainer {
|
|
|
1189
1226
|
results?: number | undefined;
|
|
1190
1227
|
security?: string | undefined;
|
|
1191
1228
|
unselectable?: "off" | "on" | undefined;
|
|
1192
|
-
inputMode?: "
|
|
1229
|
+
inputMode?: "none" | "search" | "text" | "numeric" | "email" | "tel" | "url" | "decimal" | undefined;
|
|
1193
1230
|
is?: string | undefined;
|
|
1194
1231
|
dangerouslySetInnerHTML?: {
|
|
1195
1232
|
__html: string | TrustedHTML;
|
|
@@ -1373,12 +1410,32 @@ interface CollapseProps extends ComponentProps<"div"> {
|
|
|
1373
1410
|
collapsed: boolean;
|
|
1374
1411
|
collapsedHeight?: number;
|
|
1375
1412
|
duration?: number;
|
|
1413
|
+
contentsClassName?: string;
|
|
1376
1414
|
}
|
|
1377
|
-
declare function Collapse({ collapsed, collapsedHeight, children, className, duration, ...props }: CollapseProps): react_jsx_runtime.JSX.Element;
|
|
1415
|
+
declare function Collapse({ collapsed, collapsedHeight, children, className, duration, contentsClassName, ...props }: CollapseProps): react_jsx_runtime.JSX.Element;
|
|
1378
1416
|
interface SizeTransitionProps extends ComponentProps<"div"> {
|
|
1379
1417
|
}
|
|
1380
1418
|
declare function SizeTransition({ children, className, ...props }: SizeTransitionProps): react_jsx_runtime.JSX.Element;
|
|
1381
1419
|
|
|
1420
|
+
interface CollapsibleMenuProps {
|
|
1421
|
+
menuRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
1422
|
+
size: {
|
|
1423
|
+
open: {
|
|
1424
|
+
width: string;
|
|
1425
|
+
height: string;
|
|
1426
|
+
};
|
|
1427
|
+
closed: {
|
|
1428
|
+
width: string;
|
|
1429
|
+
height: string;
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
children?: React.ReactNode;
|
|
1433
|
+
isOpen?: boolean;
|
|
1434
|
+
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
|
|
1438
|
+
|
|
1382
1439
|
interface DescriptionBlocksProps extends ComponentProps<"div"> {
|
|
1383
1440
|
blocks: DescriptionBlock[] | string;
|
|
1384
1441
|
}
|
|
@@ -1513,25 +1570,6 @@ declare function NavigationBar({ title, displayBackButton, logoUrl, transparent,
|
|
|
1513
1570
|
|
|
1514
1571
|
declare function PipeSeparator(props: ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1515
1572
|
|
|
1516
|
-
interface CollapsibleMenuProps {
|
|
1517
|
-
menuRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
1518
|
-
size: {
|
|
1519
|
-
open: {
|
|
1520
|
-
width: string;
|
|
1521
|
-
height: string;
|
|
1522
|
-
};
|
|
1523
|
-
closed: {
|
|
1524
|
-
width: string;
|
|
1525
|
-
height: string;
|
|
1526
|
-
};
|
|
1527
|
-
};
|
|
1528
|
-
children?: React.ReactNode;
|
|
1529
|
-
isOpen?: boolean;
|
|
1530
|
-
transitionDuration?: React.CSSProperties["transitionDuration"];
|
|
1531
|
-
className?: string;
|
|
1532
|
-
}
|
|
1533
|
-
declare function CollapsibleMenu({ children, menuRef, isOpen, transitionDuration, size, className, }: CollapsibleMenuProps): react_jsx_runtime.JSX.Element;
|
|
1534
|
-
|
|
1535
1573
|
declare function ProductCard({ children }: React.PropsWithChildren): react_jsx_runtime.JSX.Element;
|
|
1536
1574
|
declare function BorderedContainer({ children, className, }: {
|
|
1537
1575
|
children: React.ReactNode;
|
|
@@ -1613,6 +1651,53 @@ declare const SwapStepsCollapsed: react.ForwardRefExoticComponent<SwapStepsColla
|
|
|
1613
1651
|
handleToggleRouteSteps: () => void;
|
|
1614
1652
|
}>>;
|
|
1615
1653
|
|
|
1654
|
+
interface ToastProps {
|
|
1655
|
+
title: string;
|
|
1656
|
+
description: string;
|
|
1657
|
+
headerContent?: React.ReactNode;
|
|
1658
|
+
actionsContent?: React.ReactNode;
|
|
1659
|
+
chipLabel?: string;
|
|
1660
|
+
}
|
|
1661
|
+
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
1662
|
+
|
|
1663
|
+
interface Token$1 {
|
|
1664
|
+
address: string;
|
|
1665
|
+
name: string;
|
|
1666
|
+
symbol: string;
|
|
1667
|
+
image: string;
|
|
1668
|
+
color: string;
|
|
1669
|
+
textColor: string;
|
|
1670
|
+
chainId: string;
|
|
1671
|
+
}
|
|
1672
|
+
interface Chain {
|
|
1673
|
+
name: string;
|
|
1674
|
+
image: string;
|
|
1675
|
+
}
|
|
1676
|
+
type Timeframe = "1H" | "1D" | "1W" | "1Y";
|
|
1677
|
+
interface TokenDetailsViewProps {
|
|
1678
|
+
isOpen: boolean;
|
|
1679
|
+
onClose: () => void;
|
|
1680
|
+
token: Token$1;
|
|
1681
|
+
chain: Chain;
|
|
1682
|
+
tokenPrice: number;
|
|
1683
|
+
priceChange: number;
|
|
1684
|
+
balance: number;
|
|
1685
|
+
balanceUSD: number;
|
|
1686
|
+
volume24h: string;
|
|
1687
|
+
marketCap: string;
|
|
1688
|
+
totalSupply: string;
|
|
1689
|
+
loading: boolean;
|
|
1690
|
+
onLikeToken: () => void;
|
|
1691
|
+
Chart?: React.ComponentType<{
|
|
1692
|
+
timeframe: Timeframe;
|
|
1693
|
+
}>;
|
|
1694
|
+
initialTimeframe?: Timeframe;
|
|
1695
|
+
onTimeframeChange?: (timeframe: Timeframe) => void;
|
|
1696
|
+
onSwapFrom: (token: Pick<Token$1, "address" | "chainId">) => void;
|
|
1697
|
+
onSwapTo: (token: Pick<Token$1, "address" | "chainId">) => void;
|
|
1698
|
+
}
|
|
1699
|
+
declare const TokenDetailsView: ({ isOpen, onClose, token, chain, tokenPrice, priceChange, balance, balanceUSD, volume24h, marketCap, totalSupply, loading, onLikeToken, Chart, initialTimeframe, onTimeframeChange, onSwapFrom, onSwapTo, }: TokenDetailsViewProps) => react_jsx_runtime.JSX.Element;
|
|
1700
|
+
|
|
1616
1701
|
interface TokenPairProps {
|
|
1617
1702
|
firstToken?: {
|
|
1618
1703
|
logoURI: string;
|
|
@@ -1638,10 +1723,10 @@ interface TransactionFiltersProps {
|
|
|
1638
1723
|
setToDate: (toDate?: Date) => void;
|
|
1639
1724
|
status?: StatusFilter[];
|
|
1640
1725
|
setStatus: (status?: StatusFilter[]) => void;
|
|
1641
|
-
chains: {
|
|
1726
|
+
chains: Array<{
|
|
1642
1727
|
name: string;
|
|
1643
1728
|
logoURI: string;
|
|
1644
|
-
}
|
|
1729
|
+
}>;
|
|
1645
1730
|
}
|
|
1646
1731
|
declare function TransactionFilters({ chainType, setChainType, chain, setChain, fromDate, setFromDate, toDate, setToDate, status, setStatus, chains, }: TransactionFiltersProps): react_jsx_runtime.JSX.Element;
|
|
1647
1732
|
|
|
@@ -1860,15 +1945,6 @@ interface FromToProps {
|
|
|
1860
1945
|
}
|
|
1861
1946
|
declare function Transfer({ isLoading, from, to, className }: FromToProps): react_jsx_runtime.JSX.Element;
|
|
1862
1947
|
|
|
1863
|
-
interface ToastProps {
|
|
1864
|
-
title: string;
|
|
1865
|
-
description: string;
|
|
1866
|
-
headerContent?: React.ReactNode;
|
|
1867
|
-
actionsContent?: React.ReactNode;
|
|
1868
|
-
chipLabel?: string;
|
|
1869
|
-
}
|
|
1870
|
-
declare function Toast({ headerContent, actionsContent, description, chipLabel, title, }: ToastProps): react_jsx_runtime.JSX.Element;
|
|
1871
|
-
|
|
1872
1948
|
/**
|
|
1873
1949
|
* Utility type to allow for a type to be either all of the properties of another type, or none of them
|
|
1874
1950
|
* @example
|
|
@@ -1884,7 +1960,7 @@ type DeepPartial<T> = {
|
|
|
1884
1960
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
1885
1961
|
};
|
|
1886
1962
|
|
|
1887
|
-
declare const THEME_COLOR_KEYS: readonly ["grey-100", "grey-200", "grey-300", "grey-400", "grey-500", "grey-600", "grey-700", "grey-800", "grey-900", "royal-300", "royal-400", "royal-500", "royal-700", "highlight-700", "status-positive", "status-negative", "status-partial", "button-lg-primary-bg", "button-lg-primary-text", "button-lg-secondary-bg", "button-lg-secondary-text", "button-lg-tertiary-bg", "button-lg-tertiary-text", "button-md-primary-bg", "button-md-primary-text", "button-md-secondary-bg", "button-md-secondary-text", "button-md-tertiary-bg", "button-md-tertiary-text", "input-placeholder", "input-text", "input-selection", "input-bg", "animation-bg", "animation-text", "modal-backdrop", "menu-bg", "menu-text", "menu-backdrop", "material-light-thin", "material-light-average", "material-light-thick", "material-dark-thin", "material-dark-average", "material-dark-thick", "grey-100-005", "material-light-blend-grey-900", "material-light-blend-grey-800"];
|
|
1963
|
+
declare const THEME_COLOR_KEYS: readonly ["grey-100", "grey-200", "grey-300", "grey-400", "grey-500", "grey-600", "grey-700", "grey-800", "grey-900", "royal-300", "royal-400", "royal-500", "royal-600", "royal-700", "highlight-700", "status-positive", "status-negative", "status-partial", "button-lg-primary-bg", "button-lg-primary-text", "button-lg-secondary-bg", "button-lg-secondary-text", "button-lg-tertiary-bg", "button-lg-tertiary-text", "button-md-primary-bg", "button-md-primary-text", "button-md-secondary-bg", "button-md-secondary-text", "button-md-tertiary-bg", "button-md-tertiary-text", "input-placeholder", "input-text", "input-selection", "input-bg", "animation-bg", "animation-text", "modal-backdrop", "menu-bg", "menu-text", "menu-backdrop", "material-light-thin", "material-light-average", "material-light-thick", "material-dark-thin", "material-dark-average", "material-dark-thick", "grey-100-005", "material-light-blend-grey-900", "material-light-blend-grey-800"];
|
|
1888
1964
|
declare const THEME_BORDER_RADIUS_KEYS: readonly ["button-lg-primary", "button-lg-secondary", "button-lg-tertiary", "button-md-primary", "button-md-secondary", "button-md-tertiary", "container", "input", "menu-sm", "menu-lg", "modal"];
|
|
1889
1965
|
declare const THEME_FONT_SIZE_KEYS: readonly ["caption", "body-large", "body-medium", "body-small", "heading-small", "heading-medium", "heading-large"];
|
|
1890
1966
|
declare const THEME_FONT_WEIGHT_KEYS: readonly ["caption", "body-small", "body-medium", "body-large", "heading-small", "heading-medium", "heading-large"];
|
|
@@ -1986,7 +2062,7 @@ interface ListItemProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
1986
2062
|
className?: string;
|
|
1987
2063
|
onDetailClick?: () => void;
|
|
1988
2064
|
showDetailOnHoverOnly?: boolean;
|
|
1989
|
-
rounded?:
|
|
2065
|
+
rounded?: ImageRoundedSize;
|
|
1990
2066
|
detailButtonClassName?: string;
|
|
1991
2067
|
loading?: {
|
|
1992
2068
|
subtitle?: boolean | string;
|
|
@@ -2366,10 +2442,10 @@ declare function TransactionAction({ type, props }: TransactionActionProps): rea
|
|
|
2366
2442
|
declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
2367
2443
|
|
|
2368
2444
|
type TransactionItemVariant = "compact" | "full";
|
|
2369
|
-
|
|
2445
|
+
interface TransactionItemType {
|
|
2370
2446
|
icon?: ReactNode;
|
|
2371
2447
|
name: string;
|
|
2372
|
-
}
|
|
2448
|
+
}
|
|
2373
2449
|
interface TransactionItemProps {
|
|
2374
2450
|
className?: string;
|
|
2375
2451
|
isLoading?: boolean;
|
|
@@ -2409,13 +2485,23 @@ interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
2409
2485
|
size: TextSize;
|
|
2410
2486
|
bold?: boolean;
|
|
2411
2487
|
tight?: boolean;
|
|
2488
|
+
loading?: {
|
|
2489
|
+
isLoading?: boolean;
|
|
2490
|
+
width?: string;
|
|
2491
|
+
};
|
|
2412
2492
|
}
|
|
2413
|
-
declare function BodyText({ size, children, bold, tight, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
|
|
2493
|
+
declare function BodyText({ size, children, bold, tight, loading, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
|
|
2414
2494
|
|
|
2415
2495
|
interface CaptionProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
2496
|
+
children: ReactNode;
|
|
2416
2497
|
bold?: boolean;
|
|
2498
|
+
tight?: boolean;
|
|
2499
|
+
loading?: {
|
|
2500
|
+
isLoading?: boolean;
|
|
2501
|
+
width?: string;
|
|
2502
|
+
};
|
|
2417
2503
|
}
|
|
2418
|
-
declare function CaptionText({ children, bold, ...props }: CaptionProps): react_jsx_runtime.JSX.Element;
|
|
2504
|
+
declare function CaptionText({ children, bold, loading, tight, ...props }: CaptionProps): react_jsx_runtime.JSX.Element;
|
|
2419
2505
|
|
|
2420
2506
|
interface HeadingTextProps {
|
|
2421
2507
|
children?: ReactNode;
|
|
@@ -2768,6 +2854,12 @@ declare const baseTailwindConfig: Config;
|
|
|
2768
2854
|
*/
|
|
2769
2855
|
declare const cn: (...inputs: ClassValue[]) => string;
|
|
2770
2856
|
|
|
2857
|
+
interface RGB {
|
|
2858
|
+
r: number;
|
|
2859
|
+
g: number;
|
|
2860
|
+
b: number;
|
|
2861
|
+
a: number;
|
|
2862
|
+
}
|
|
2771
2863
|
/**
|
|
2772
2864
|
* Parses the user readable config to css variables
|
|
2773
2865
|
* and adds the material-* variants
|
|
@@ -2798,8 +2890,11 @@ declare function hexToRgb(hex: string): {
|
|
|
2798
2890
|
a: number;
|
|
2799
2891
|
} | null;
|
|
2800
2892
|
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
2801
|
-
declare function blendColors(foreground: string, background: string): string | null;
|
|
2893
|
+
declare function blendColors(foreground: string, background: string, factor?: number): string | null;
|
|
2802
2894
|
declare const isValidHexColor: (hex: string) => boolean;
|
|
2895
|
+
declare function parseColor(color: string): RGB | null;
|
|
2896
|
+
declare const getColorBrightness: (color: string) => number;
|
|
2897
|
+
declare const getWalletCardBackground: (colors: string[]) => string | undefined;
|
|
2803
2898
|
|
|
2804
2899
|
declare const transactionPendingAnimation: {
|
|
2805
2900
|
v: string;
|
|
@@ -16772,4 +16867,4 @@ declare const transactionRejectedAnimation: {
|
|
|
16772
16867
|
markers: never[];
|
|
16773
16868
|
};
|
|
16774
16869
|
|
|
16775
|
-
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, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, 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, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy, CopyIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, type DescriptionBlock, 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, FileDownloadIcon, 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, LaptopIcon, LightningIcon, LimitIcon, LinkIcon, List, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NewspaperIcon, NotAllowedIcon, NumericInput, PathSquareIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PlusIcon, PoopIcon, PowerIcon, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type PublicTheme, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, 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, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, 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 Theme, ThemePreference, ThemeProvider, 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, blendColors, cn, darkTheme, getContrastColor, getHexColorFromOpacityPercentage, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useUserTheme, useVersion };
|
|
16870
|
+
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, AtomIcon, BackpackIcon, BadgeImage, BankIcon, type BaseActionProps, type BaseTransactionViewProps, BellAlarmIcon, BlockSkeleton, BodyText, Boost, BoostBadge, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, BrokenHeartIcon, BubblesIcon, Button, type ButtonSize, type ButtonVariant, 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, CodeBracketsIcon, CodeSolidSquareIcon, CoinsAddIcon, CoinsIcon, CoinsOutlinedIcon, Collapse, CollapsibleMenu, CollectionIcon, ColorPaletteIcon, CommandIcon, CompassRoundOutlinedIcon, CompassRoundSolidIcon, ConsoleIcon, Copy, CopyIcon, CrossAnimatedIcon, CrossedOutSunSolidIcon, DashboardFast, type DeepPartial, type DescriptionBlock, 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, FavouriteFilterIcon, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FileDownloadIcon, FilledHeartIcon, FilterAscendingIcon, FilterButton, FilterIcon, FilterTimelineIcon, GasIcon, GhostIcon, GithubIcon, HashLink, HeadingText, HeartSmallIcon, HelpIcon, HighestPriceRangeIcon, HistoryItem, type HistoryItemStatus, HomeIcon, IconButton, IconLabel, Image, ImageIcon, type ImageProps, ImageSparkle, ImageState, IncompleteAction, InfinityIcon, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, LaptopIcon, LightningIcon, LimitIcon, LinkIcon, List, ListItem, ListItemActionsButton, Loader, LoadingProvider, LoadingSkeleton, MEDIA_QUERIES, MainView, MarketCapIcon, MaxIcon, Menu, MenuItem, MenuSwapIcon, MirrorIcon, Modal, ModalContent, ModalContentDivider, MoonIcon, NavigationBar, NewspaperIcon, NotAllowedIcon, NumericInput, PathSquareIcon, PauseIcon, PercentIcon, PhoneIcon, PieChartIcon, PipeSeparator, PlusIcon, PoopIcon, PowerIcon, PriceChange, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, type PublicTheme, PunkIcon, RangeInput, ReceiptBillIcon, ReceiveNFTAction, ReceiveTokensAction, RecipientView, 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, SmileIcon, SnapIcon, SortIcon, SparkleIcon, SparklesIcon, SquareArrowCenter, SquareArrowTopLeftIcon, SquareArrowTopRight2Icon, SquidLogo, SquidVector, StakeAction, StartAction, StocksIcon, SuccessAction, SunIcon, SunOutlinedIcon, SunriseIcon, SunriseSmallIcon, 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 Theme, ThemePreference, ThemeProvider, type ThemeType, ThumbsUp, Tick, TimeFliesIcon, type Timeframe, Timeline, Timestamp, Toast, TokenDetailsView, 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, blendColors, cn, darkTheme, getColorBrightness, getContrastColor, getHexColorFromOpacityPercentage, getWalletCardBackground, hexToRgb, isValidHexColor, lightTheme, linkActionTimelineProps, parseColor, parseSquidTheme, pxToRem, remToPx, rgbToHex, spacing, statusTextClassMap, transactionErrorPauseAnimation, transactionFailureAnimation, transactionHalfSuccessAnimation, transactionPendingAnimation, transactionProcessingAnimation, transactionRejectedAnimation, transactionSuccessAnimation, useCollapsibleMenu, useDropdownMenu, useMediaQuery, useOnResize, useRect, useTimer, useUserTheme, useVersion };
|