@deframe-sdk/components 0.1.6 → 0.1.8

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode } from 'react';
2
+ import React__default, { ReactNode, ComponentProps } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
 
5
5
  /** Primary UI component for user interaction */
@@ -31,54 +31,22 @@ interface ButtonProps {
31
31
  onClick?: () => void;
32
32
  }
33
33
 
34
- declare function Input({ label, error, placeholder, type, repassword, disabled, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
34
+ declare function Input({ label, error, placeholder, type, repassword, href, disabled, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
35
35
 
36
- interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
37
- /**
38
- * Label for the input (optional, for accessibility)
39
- */
36
+ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
40
37
  label?: string;
41
- /**
42
- * Error message to display below
43
- */
44
38
  error?: string;
45
- /**
46
- * Helper text (non-error)
47
- */
48
- helperText?: string;
49
- /**
50
- * Link for repassword
51
- */
52
39
  repassword?: string;
40
+ href?: string;
53
41
  }
54
42
 
55
- interface ListItemProps {
56
- children: React__default.ReactNode;
57
- /**
58
- * Applies to the inner content wrapper
59
- */
60
- className?: string;
61
- /**
62
- * Applies to the outer bordered container
63
- */
64
- containerClassName?: string;
65
- onClick?: () => void;
66
- }
67
- declare const ListItem: React__default.FC<ListItemProps>;
68
- declare const ListItemLeftSide: React__default.FC<{
69
- children: React__default.ReactNode;
70
- className?: string;
71
- }>;
72
- declare const ListItemContent: React__default.FC<{
73
- children: React__default.ReactNode;
74
- className?: string;
75
- }>;
76
- declare const ListItemRightSide: React__default.FC<{
77
- children: React__default.ReactNode;
78
- className?: string;
79
- }>;
43
+ declare function ListItem({ children, className, containerClassName, onClick, ...props }: ListItemProps): react_jsx_runtime.JSX.Element;
80
44
 
81
- interface WalletOption {
45
+ declare function ListItemLeftSide({ children, className, ...props }: ListItemLeftSideProps): react_jsx_runtime.JSX.Element;
46
+ declare function ListItemContent({ children, className, ...props }: ListItemContentProps): react_jsx_runtime.JSX.Element;
47
+ declare function ListItemRightSide({ children, className, ...props }: ListItemRightSideProps): react_jsx_runtime.JSX.Element;
48
+
49
+ interface WalletOption$1 {
82
50
  /** Unique identifier for the wallet */
83
51
  id: string;
84
52
  /** Display name of the wallet */
@@ -88,9 +56,9 @@ interface WalletOption {
88
56
  /** Click handler for wallet selection */
89
57
  onClick?: () => void;
90
58
  }
91
- interface ConnectWalletListProps {
59
+ interface ConnectWalletListProps$1 {
92
60
  /** List of wallet options */
93
- wallets: WalletOption[];
61
+ wallets: WalletOption$1[];
94
62
  /** Title text for the wallet connect screen */
95
63
  title?: string;
96
64
  /** Subtitle text for the wallet connect screen */
@@ -102,27 +70,11 @@ interface ConnectWalletListProps {
102
70
  * ConnectWalletList - Displays a list of wallet options for connection
103
71
  * Includes title, subtitle, and clickable wallet items
104
72
  */
105
- declare function ConnectWalletList({ wallets, className, }: ConnectWalletListProps): react_jsx_runtime.JSX.Element;
73
+ declare function ConnectWalletList({ wallets, className, }: ConnectWalletListProps$1): react_jsx_runtime.JSX.Element;
106
74
 
107
- interface WalletItemProps {
108
- /** Unique identifier for the wallet */
109
- id: string;
110
- /** Display name of the wallet */
111
- name: string;
112
- /** Wallet icon - can be an image URL or React component */
113
- icon: string | React.ReactNode;
114
- /** Click handler for wallet selection */
115
- onClick?: () => void;
116
- /** Additional CSS class names */
117
- className?: string;
118
- }
119
- /**
120
- * WalletItem - Individual wallet button component
121
- * Displays a clickable wallet option with icon, name, and chevron
122
- */
123
75
  declare function WalletItem({ id, name, icon, onClick, className, }: WalletItemProps): react_jsx_runtime.JSX.Element;
124
76
 
125
- interface WalletListContainerProps {
77
+ interface WalletListContainerProps$1 {
126
78
  /** Child components (typically WalletItem components) */
127
79
  children: ReactNode;
128
80
  /** Additional CSS class names */
@@ -132,7 +84,39 @@ interface WalletListContainerProps {
132
84
  * WalletListContainer - Container wrapper for wallet list items
133
85
  * Provides consistent spacing and layout for wallet options
134
86
  */
135
- declare function WalletListContainer({ children, className, }: WalletListContainerProps): react_jsx_runtime.JSX.Element;
87
+ declare function WalletListContainer({ children, className, }: WalletListContainerProps$1): react_jsx_runtime.JSX.Element;
88
+
89
+ interface ListItemProps extends ComponentProps<'li'> {
90
+ containerClassName?: string;
91
+ onClick?: () => void;
92
+ }
93
+ interface ListItemLeftSideProps extends ComponentProps<'div'> {
94
+ }
95
+ interface ListItemContentProps extends ComponentProps<'div'> {
96
+ }
97
+ interface ListItemRightSideProps extends ComponentProps<'div'> {
98
+ }
99
+ interface WalletOption {
100
+ id: string;
101
+ name: string;
102
+ icon: string | ReactNode;
103
+ onClick?: () => void;
104
+ }
105
+ interface ConnectWalletListProps {
106
+ wallets: WalletOption[];
107
+ title?: string;
108
+ subtitle?: string;
109
+ className?: string;
110
+ }
111
+ interface WalletItemProps {
112
+ id: string;
113
+ name: string;
114
+ icon: string | ReactNode;
115
+ onClick?: () => void;
116
+ className?: string;
117
+ }
118
+ interface WalletListContainerProps extends ComponentProps<'ul'> {
119
+ }
136
120
 
137
121
  /** Flexible currency display component supporting fiat and crypto */
138
122
  declare function Currency(props: CurrencyProps | FiatProps): react_jsx_runtime.JSX.Element;
@@ -199,74 +183,40 @@ interface CurrencyProps {
199
183
  className?: string;
200
184
  }
201
185
 
202
- interface TextProps extends React$1.HTMLAttributes<HTMLElement> {
203
- as?: keyof React$1.JSX.IntrinsicElements;
204
- variantClass?: string;
205
- }
206
- /**
207
- * Base Text component used internally by other text variants.
208
- * Handles tag selection, base font, and class merging.
209
- */
210
- declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLElement>>;
211
-
212
- declare const accentVariants: {
213
- readonly 'accent-large': "text-[15px] leading-[140%] font-semibold";
214
- readonly 'accent-medium': "text-[14px] leading-[140%] font-semibold";
215
- readonly 'accent-small': "text-[12px] leading-[140%] font-semibold";
216
- };
217
- interface TextAccentProps extends React$1.HTMLAttributes<HTMLElement> {
218
- variant?: keyof typeof accentVariants;
219
- as?: keyof React$1.JSX.IntrinsicElements;
220
- }
221
186
  declare const TextAccent: React$1.ForwardRefExoticComponent<TextAccentProps & React$1.RefAttributes<HTMLElement>>;
222
187
 
223
- declare const bodyVariants: {
224
- readonly 'text-large': "text-[15px] leading-[140%] font-normal";
225
- readonly 'text-medium': "text-[14px] leading-[140%] font-normal";
226
- readonly 'text-small': "text-[12px] leading-[140%] font-normal";
227
- };
228
- interface TextBodyProps extends React$1.HTMLAttributes<HTMLElement> {
229
- variant?: keyof typeof bodyVariants;
230
- as?: keyof React$1.JSX.IntrinsicElements;
231
- }
232
188
  declare const TextBody: React$1.ForwardRefExoticComponent<TextBodyProps & React$1.RefAttributes<HTMLElement>>;
233
189
 
234
- declare const headingVariants: {
235
- readonly 'h-large': "text-[56px] leading-[100%] tracking-[0] font-extrabold";
236
- readonly h1: "text-[40px] leading-[110%] font-extrabold";
237
- readonly h2: "text-[28px] leading-[130%] font-extrabold";
238
- readonly h3: "text-[22px] leading-[120%] font-extrabold";
239
- readonly h4: "text-[18px] leading-[120%] font-extrabold";
240
- readonly h5: "text-[16px] leading-[120%] font-bold";
241
- };
242
- interface TextHeadingProps extends React$1.HTMLAttributes<HTMLElement> {
243
- variant?: keyof typeof headingVariants;
244
- as?: keyof React$1.JSX.IntrinsicElements;
245
- }
246
190
  declare const TextHeading: React$1.ForwardRefExoticComponent<TextHeadingProps & React$1.RefAttributes<HTMLElement>>;
247
191
 
248
- /** Link component for navigation and external links */
249
- declare function Link({ children, href, className, target, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
192
+ declare function Link({ children, href, className, target, disabled, prefetch, replace, scroll, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
250
193
 
251
194
  /**
252
195
  * Title component for headings and page titles
253
196
  * This is an alias for TextHeading with h1 variant as default
254
197
  */
255
- declare function Title({ variant, ...props }: TextHeadingProps): react_jsx_runtime.JSX.Element;
198
+ declare function Title({ variant, className, ...props }: TextHeadingProps): react_jsx_runtime.JSX.Element;
256
199
 
257
- interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
258
- /**
259
- * The URL to link to
260
- */
200
+ interface TextAccentProps extends React$1.HTMLAttributes<HTMLElement> {
201
+ variant?: 'accent-large' | 'accent-medium' | 'accent-small';
202
+ as?: keyof React$1.JSX.IntrinsicElements;
203
+ }
204
+ interface TextBodyProps extends React$1.HTMLAttributes<HTMLElement> {
205
+ variant?: 'text-large' | 'text-medium' | 'text-small';
206
+ as?: keyof React$1.JSX.IntrinsicElements;
207
+ }
208
+ interface TextHeadingProps extends React$1.HTMLAttributes<HTMLElement> {
209
+ variant?: 'h-large' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
210
+ as?: keyof React$1.JSX.IntrinsicElements;
211
+ }
212
+ interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement> {
261
213
  href: string;
262
- /**
263
- * The content of the link
264
- */
265
- children: React.ReactNode;
266
- /**
267
- * Additional CSS class names
268
- */
214
+ children: React$1.ReactNode;
269
215
  className?: string;
216
+ disabled?: boolean;
217
+ prefetch?: boolean;
218
+ replace?: boolean;
219
+ scroll?: boolean;
270
220
  }
271
221
 
272
222
  type TabsVariant = 'primary' | 'secondary' | 'default' | 'light' | 'medium' | 'dark' | 'header';
@@ -344,29 +294,23 @@ interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement> {
344
294
  }
345
295
  declare const Skeleton: React$1.FC<SkeletonProps>;
346
296
 
347
- interface BannerNotificationProps extends React$1.HTMLAttributes<HTMLDivElement> {
348
- /** Type of notification - inline (default) or toast */
297
+ declare function BannerNotification({ type, variant, title, message, position, autoHideDuration, show, onClose, showIcon, icon, className, ...props }: BannerNotificationProps): react_jsx_runtime.JSX.Element | null;
298
+ declare namespace BannerNotification {
299
+ var displayName: string;
300
+ }
301
+
302
+ interface BannerNotificationProps extends ComponentProps<'div'> {
349
303
  type?: 'inline' | 'toast';
350
- /** Variant type that determines colors and icon */
351
304
  variant?: 'info' | 'warning' | 'error' | 'success';
352
- /** The title of the banner */
353
305
  title?: string;
354
- /** The message to display in the banner */
355
306
  message: string;
356
- /** Position for toast notifications */
357
307
  position?: 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
358
- /** Auto hide duration in milliseconds (default: 5000, set to 0 to disable) */
359
308
  autoHideDuration?: number;
360
- /** Control visibility for toast notifications */
361
309
  show?: boolean;
362
- /** Callback when notification is closed */
363
310
  onClose?: () => void;
364
- /** Whether to show the icon (default: true) */
365
311
  showIcon?: boolean;
366
- /** Custom icon to display */
367
312
  icon?: React$1.ReactNode;
368
313
  }
369
- declare const BannerNotification: React$1.FC<BannerNotificationProps>;
370
314
 
371
315
  interface AddressDisplayProps {
372
316
  /** The full address to display */
@@ -856,4 +800,389 @@ interface StrategyDetailsViewProps {
856
800
  }
857
801
  declare const StrategyDetailsView: React__default.FC<StrategyDetailsViewProps>;
858
802
 
859
- export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, BackgroundContainer, type BackgroundContainerProps, BannerNotification, type BannerNotificationProps, type ButtonProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DeframeThemeConfig, type DetailItem, DetailsHeader, type DetailsHeaderProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, PercentageButton, PrimaryButton, ScrollableContent, type ScrollableContentProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StrategyDetailsView, type StrategyDetailsViewProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAmountInputView, type SwapAmountInputViewProps, SwapNetworkSelectorView, type SwapNetworkSelectorViewProps, SwapOutputAmountView, type SwapOutputAmountViewProps, SwapQuoteBlockchainCostsView, type SwapQuoteBlockchainCostsViewProps, SwapQuoteErrorsView, type SwapQuoteErrorsViewProps, SwapQuoteHeaderView, type SwapQuoteHeaderViewProps, SwapSlippageToleranceButtonsView, type SwapSlippageToleranceButtonsViewProps, SwapTokenSelectorView, type SwapTokenSelectorViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, type TextProps, type ThemeMode, type ThemePreset, Title, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type ConnectWalletListProps as WalletListProps, type WalletOption, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };
803
+ interface ProgressIndicatorProps {
804
+ /** Progress percentage (0-100) */
805
+ progress: number;
806
+ /** Optional className for custom styling */
807
+ className?: string;
808
+ }
809
+ declare const ProgressIndicator: React__default.FC<ProgressIndicatorProps>;
810
+
811
+ interface LoadingDotsProps {
812
+ className?: string;
813
+ }
814
+ /**
815
+ * Animated loading dots component with a bouncing effect
816
+ * Used to indicate loading states throughout the application
817
+ */
818
+ declare const LoadingDots: React__default.FC<LoadingDotsProps>;
819
+
820
+ interface SearchInputProps {
821
+ /**
822
+ * Placeholder text (default: "Search")
823
+ */
824
+ placeholder?: string;
825
+ /**
826
+ * Current value
827
+ */
828
+ value?: string;
829
+ /**
830
+ * Whether the input is disabled
831
+ */
832
+ disabled?: boolean;
833
+ /**
834
+ * Change handler — called immediately on every keystroke
835
+ */
836
+ onChange?: (value: string) => void;
837
+ /**
838
+ * Search handler — called immediately on every keystroke (debounce in the container)
839
+ */
840
+ onSearch?: (value: string) => void;
841
+ /**
842
+ * Additional CSS class names for container
843
+ */
844
+ className?: string;
845
+ /**
846
+ * Additional CSS class names for input element (e.g., custom background)
847
+ */
848
+ inputClassName?: string;
849
+ /**
850
+ * Whether the input should be auto focused
851
+ */
852
+ autoFocus?: boolean;
853
+ /**
854
+ * test id for the container
855
+ */
856
+ containerTestId?: string;
857
+ /**
858
+ * test id for the input element
859
+ */
860
+ inputTestId?: string;
861
+ }
862
+ /**
863
+ * SearchInput - Search input component with search icon
864
+ */
865
+ declare const SearchInput: React__default.FC<SearchInputProps>;
866
+
867
+ interface SearchEmptyStateProps {
868
+ title: string;
869
+ description: string;
870
+ }
871
+ declare const SearchEmptyState: React__default.FC<SearchEmptyStateProps>;
872
+
873
+ interface CollapsibleSectionProps {
874
+ /** Section title */
875
+ title: string;
876
+ /** Optional subtitle shown next to title */
877
+ subtitle?: string;
878
+ /** Content to show when expanded */
879
+ children: React__default.ReactNode;
880
+ /** Whether section is open by default (uncontrolled mode) */
881
+ defaultOpen?: boolean;
882
+ /** Controlled open state */
883
+ open?: boolean;
884
+ /** Callback when open state changes */
885
+ onOpenChange?: (open: boolean) => void;
886
+ /** Optional className */
887
+ className?: string;
888
+ /** Aria label text for "Collapse" */
889
+ collapseText: string;
890
+ /** Aria label text for "Expand" */
891
+ expandText: string;
892
+ }
893
+ declare const CollapsibleSection: React__default.FC<CollapsibleSectionProps>;
894
+
895
+ interface TransactionScreenIconProps {
896
+ type: 'processing' | 'success' | 'warning';
897
+ gradient?: string;
898
+ }
899
+ declare const TransactionScreenIcon: React__default.FC<TransactionScreenIconProps>;
900
+
901
+ interface TransactionScreenProps {
902
+ progress: number;
903
+ iconType: TransactionScreenIconProps['type'];
904
+ iconGradient?: string;
905
+ title: React__default.ReactNode;
906
+ description: React__default.ReactNode;
907
+ /** Renders a close (X) button in the top-left */
908
+ onClose?: () => void;
909
+ /** Renders a back-arrow header */
910
+ onBack?: () => void;
911
+ backTitle?: string;
912
+ /** Bottom action bar (buttons) */
913
+ actions?: React__default.ReactNode;
914
+ /** Card / details content between hero and actions */
915
+ children?: React__default.ReactNode;
916
+ /** data-testid placed on the header wrapper div when onClose is used */
917
+ testId?: string;
918
+ }
919
+ declare const TransactionScreen: React__default.FC<TransactionScreenProps>;
920
+
921
+ interface TransactionScreenInvestmentCardProps {
922
+ strategyName: React__default.ReactNode;
923
+ apyLabel: string;
924
+ apyValue: string;
925
+ iconSrc?: string;
926
+ iconAlt?: string;
927
+ amountUSD: React__default.ReactNode;
928
+ amountToken: React__default.ReactNode;
929
+ }
930
+ declare const TransactionScreenInvestmentCard: React__default.FC<TransactionScreenInvestmentCardProps>;
931
+
932
+ type TransactionStepStatus = 'completed' | 'processing' | 'failed';
933
+ interface TransactionStep {
934
+ /** Step label/title */
935
+ label: string;
936
+ /** Current status of the step */
937
+ status?: TransactionStepStatus;
938
+ /** Optional status text override (e.g., "Processando...") - can be string or React node */
939
+ statusText?: React.ReactNode;
940
+ /** Optional explorer URL for this step */
941
+ explorerUrl?: string;
942
+ /** Optional static value (for info-only steps like "Tempo estimado") */
943
+ value?: ReactNode;
944
+ }
945
+
946
+ interface TransactionProcessingDetailsLabels {
947
+ title: string;
948
+ completedText: string;
949
+ processingText: string;
950
+ failedText: string;
951
+ viewOnExplorerText: string;
952
+ }
953
+
954
+ interface TransactionProcessingDetailsProps {
955
+ /** Array of transaction steps to display */
956
+ steps: TransactionStep[];
957
+ /** Optional CSS class name */
958
+ className?: string;
959
+ /** Whether the details section is open by default */
960
+ defaultOpen?: boolean;
961
+ /** All translated strings for this component */
962
+ labels: TransactionProcessingDetailsLabels;
963
+ }
964
+ /**
965
+ * Displays transaction processing steps with visual breakdown using vertical connectors
966
+ * Similar to SwapProcessingDetails but designed for deposit/withdraw flows
967
+ */
968
+ declare function TransactionProcessingDetails({ steps, className, defaultOpen, labels, }: TransactionProcessingDetailsProps): react_jsx_runtime.JSX.Element | null;
969
+
970
+ interface StepStatusIconProps {
971
+ status: TransactionStepStatus;
972
+ }
973
+ /**
974
+ * Renders a step status icon based on the step status
975
+ * Only three icon types: success (checkmark), timer (clock), and error (alert)
976
+ */
977
+ declare function StepStatusIcon({ status }: StepStatusIconProps): react_jsx_runtime.JSX.Element;
978
+
979
+ interface StepStatusTextProps {
980
+ step: TransactionStep;
981
+ completedText: string;
982
+ processingText: string;
983
+ failedText: string;
984
+ viewOnExplorerText: string;
985
+ }
986
+ /**
987
+ * Renders the status text and optional explorer link for a step
988
+ */
989
+ declare function StepStatusText({ step, completedText, processingText, failedText, viewOnExplorerText, }: StepStatusTextProps): react_jsx_runtime.JSX.Element;
990
+
991
+ interface StepDisplayProps {
992
+ step: TransactionStep;
993
+ completedText: string;
994
+ processingText: string;
995
+ failedText: string;
996
+ viewOnExplorerText: string;
997
+ }
998
+ /**
999
+ * Renders a single processing step with icon, label, and status
1000
+ */
1001
+ declare function StepDisplay({ step, completedText, processingText, failedText, viewOnExplorerText }: StepDisplayProps): react_jsx_runtime.JSX.Element;
1002
+
1003
+ interface TokenWithChainBadgeProps {
1004
+ tokenLogoUrl?: string;
1005
+ tokenAlt?: string;
1006
+ chainId?: number;
1007
+ chainLogoUrl?: string;
1008
+ chainName?: string;
1009
+ }
1010
+ declare const TokenWithChainBadge: React__default.FC<TokenWithChainBadgeProps>;
1011
+
1012
+ interface SwapProcessingViewProps {
1013
+ fromTokenSymbol: string;
1014
+ fromTokenIcon: string;
1015
+ toTokenSymbol: string;
1016
+ toTokenIcon: string;
1017
+ formattedInputAmount: string;
1018
+ formattedOutputAmount: string;
1019
+ formattedInputAmountUSD: string;
1020
+ formattedOutputAmountUSD: string;
1021
+ progress: number;
1022
+ transactionSteps: TransactionStep[];
1023
+ onClose: () => void;
1024
+ onGoToHistory: () => void;
1025
+ titleText: string;
1026
+ descriptionPrefix: string;
1027
+ activityHistoryText: string;
1028
+ processingDetailsLabels: TransactionProcessingDetailsLabels;
1029
+ }
1030
+ declare const SwapProcessingView: React__default.FC<SwapProcessingViewProps>;
1031
+
1032
+ interface SwapCrossChainProcessingViewProps {
1033
+ fromTokenSymbol: string;
1034
+ fromTokenIcon: string;
1035
+ toTokenSymbol: string;
1036
+ toTokenIcon: string;
1037
+ originChainId?: number;
1038
+ destinationChainId?: number;
1039
+ originChainLogoUrl: string;
1040
+ originChainName: string;
1041
+ destinationChainLogoUrl: string;
1042
+ destinationChainName: string;
1043
+ formattedInputAmount: string;
1044
+ formattedOutputAmount: string;
1045
+ formattedInputAmountUSD: string;
1046
+ formattedOutputAmountUSD: string;
1047
+ progress: number;
1048
+ title: string;
1049
+ description: string;
1050
+ transactionSteps: TransactionStep[];
1051
+ onClose: () => void;
1052
+ onGoToHistory: () => void;
1053
+ viewHistoryText: string;
1054
+ processingDetailsLabels: TransactionProcessingDetailsLabels;
1055
+ }
1056
+ declare const SwapCrossChainProcessingView: React__default.FC<SwapCrossChainProcessingViewProps>;
1057
+
1058
+ interface SwapSignatureWarningViewProps {
1059
+ fromTokenSymbol: string;
1060
+ fromTokenIcon: string;
1061
+ toTokenSymbol: string;
1062
+ toTokenIcon: string;
1063
+ formattedInputAmount: string;
1064
+ formattedOutputAmount: string;
1065
+ formattedInputAmountUSD: string;
1066
+ formattedOutputAmountUSD: string;
1067
+ progress: number;
1068
+ errorTitle: string;
1069
+ errorDescription: string;
1070
+ transactionSteps: TransactionStep[];
1071
+ onCancel: () => void;
1072
+ onTryAgain: () => void;
1073
+ cancelButtonText: string;
1074
+ retryButtonText: string;
1075
+ processingDetailsLabels: TransactionProcessingDetailsLabels;
1076
+ }
1077
+ declare const SwapSignatureWarningView: React__default.FC<SwapSignatureWarningViewProps>;
1078
+
1079
+ interface SwapSuccessLabels {
1080
+ title: string;
1081
+ descriptionPrefix: string;
1082
+ descriptionMiddle: string;
1083
+ descriptionSuffix: string;
1084
+ walletLinkText: string;
1085
+ startNewSwapButton: string;
1086
+ }
1087
+
1088
+ interface SwapSuccessViewProps {
1089
+ fromTokenSymbol: string;
1090
+ fromTokenIcon: string;
1091
+ toTokenSymbol: string;
1092
+ toTokenIcon: string;
1093
+ formattedInputAmount: string;
1094
+ formattedOutputAmount: string;
1095
+ formattedInputAmountUSD: string;
1096
+ formattedOutputAmountUSD: string;
1097
+ transactionSteps: TransactionStep[];
1098
+ onClose: () => void;
1099
+ onStartNewSwap: () => void;
1100
+ onGoToWallet: () => void;
1101
+ labels: SwapSuccessLabels;
1102
+ processingDetailsLabels: TransactionProcessingDetailsLabels;
1103
+ }
1104
+ declare const SwapSuccessView: React__default.FC<SwapSuccessViewProps>;
1105
+
1106
+ interface SwapTransactionFailedViewProps {
1107
+ fromTokenSymbol: string;
1108
+ fromTokenIcon: string;
1109
+ toTokenSymbol: string;
1110
+ toTokenIcon: string;
1111
+ formattedInputAmount: string;
1112
+ formattedOutputAmount: string;
1113
+ formattedInputAmountUSD: string;
1114
+ formattedOutputAmountUSD: string;
1115
+ progress: number;
1116
+ errorTitle: string;
1117
+ errorDescription: string;
1118
+ transactionSteps: TransactionStep[];
1119
+ hasExplorerLink: boolean;
1120
+ onBack: () => void;
1121
+ onViewExplorer: () => void;
1122
+ onTryAgain: () => void;
1123
+ viewOnExplorerText: string;
1124
+ retryButtonText: string;
1125
+ processingDetailsLabels: TransactionProcessingDetailsLabels;
1126
+ }
1127
+ declare const SwapTransactionFailedView: React__default.FC<SwapTransactionFailedViewProps>;
1128
+
1129
+ interface ChooseAnAssetSwapLabels {
1130
+ title: string;
1131
+ searchPlaceholder: string;
1132
+ searchingText: string;
1133
+ loadMoreButton: string;
1134
+ searchEmptyTitle: string;
1135
+ searchEmptyDescription: string;
1136
+ }
1137
+
1138
+ /**
1139
+ * Token data representing a single token available for selection.
1140
+ */
1141
+ interface TokenData {
1142
+ address: string;
1143
+ chainId: number;
1144
+ decimals: number;
1145
+ symbol: string;
1146
+ name: string;
1147
+ logoURI: string | null;
1148
+ priceInUSD?: number | null;
1149
+ }
1150
+
1151
+ /**
1152
+ * Balance information for a token in the user's wallet.
1153
+ */
1154
+ interface BalanceDomain {
1155
+ address: string;
1156
+ chainId: number;
1157
+ name: string;
1158
+ symbol: string;
1159
+ decimals: number;
1160
+ logoUrl: string;
1161
+ priceUSD: string;
1162
+ amountBase: string;
1163
+ amountUI: string;
1164
+ amountHumanized?: string;
1165
+ amountInUSD: string;
1166
+ id: string;
1167
+ }
1168
+
1169
+ interface ChooseAnAssetSwapViewProps {
1170
+ actionSheetId: string;
1171
+ isOpen: boolean;
1172
+ currentActionSheetId: string | null;
1173
+ onClose: () => void;
1174
+ onSearch: (value: string) => void;
1175
+ autoFocus: boolean;
1176
+ displayedTokens: TokenData[];
1177
+ hasMore: boolean;
1178
+ onLoadMore: () => void;
1179
+ findBalance: (token: TokenData) => BalanceDomain | undefined;
1180
+ isFetching: boolean;
1181
+ onAssetClick: (token: TokenData) => void;
1182
+ labels: ChooseAnAssetSwapLabels;
1183
+ formatTokenAmount: (amountUI: string, priceUSD: number, decimals: number) => string;
1184
+ formatCurrencyValue: (value: number) => string;
1185
+ }
1186
+ declare const ChooseAnAssetSwapView: React__default.FC<ChooseAnAssetSwapViewProps>;
1187
+
1188
+ export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DeframeThemeConfig, type DetailItem, DetailsHeader, type DetailsHeaderProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, PercentageButton, PrimaryButton, ProgressIndicator, type ProgressIndicatorProps, ScrollableContent, type ScrollableContentProps, SearchEmptyState, type SearchEmptyStateProps, SearchInput, type SearchInputProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StepDisplay, type StepDisplayProps, StepStatusIcon, type StepStatusIconProps, StepStatusText, type StepStatusTextProps, StrategyDetailsView, type StrategyDetailsViewProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAmountInputView, type SwapAmountInputViewProps, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, SwapNetworkSelectorView, type SwapNetworkSelectorViewProps, SwapOutputAmountView, type SwapOutputAmountViewProps, SwapProcessingView, type SwapProcessingViewProps, SwapQuoteBlockchainCostsView, type SwapQuoteBlockchainCostsViewProps, SwapQuoteErrorsView, type SwapQuoteErrorsViewProps, SwapQuoteHeaderView, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSlippageToleranceButtonsView, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapTokenSelectorView, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, type ThemeMode, type ThemePreset, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };