@deframe-sdk/components 0.1.17 → 0.1.18

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.mts CHANGED
@@ -1008,13 +1008,7 @@ interface SwapProcessingViewProps {
1008
1008
  }
1009
1009
  declare const SwapProcessingView: React__default.FC<SwapProcessingViewProps>;
1010
1010
 
1011
- /**
1012
- * Visual variant of SwapProcessingView.
1013
- * Design identical to the SwapPanel ProcessingOverlay:
1014
- * glass-blur transparent background, rotating sync icon,
1015
- * uppercase green title + muted subtitle. No chrome, no transaction details.
1016
- */
1017
- declare const SwapProcessingViewSimple: React__default.FC<Partial<SwapProcessingViewProps>>;
1011
+ declare const SwapProcessingViewSimple: React__default.FC;
1018
1012
 
1019
1013
  interface SwapCrossChainProcessingViewProps {
1020
1014
  fromTokenSymbol: string;
@@ -1063,6 +1057,13 @@ interface SwapSignatureWarningViewProps {
1063
1057
  }
1064
1058
  declare const SwapSignatureWarningView: React__default.FC<SwapSignatureWarningViewProps>;
1065
1059
 
1060
+ /**
1061
+ * Visual "Simple" variant of SwapSignatureWarningView.
1062
+ * Renders the SwapFormSkeleton behind a glass-blur overlay with a
1063
+ * spring-in warning icon, title, description and cancel / retry buttons.
1064
+ */
1065
+ declare const SwapSignatureWarningViewSimple: React__default.FC<Partial<SwapSignatureWarningViewProps>>;
1066
+
1066
1067
  interface SwapSuccessLabels {
1067
1068
  title?: string;
1068
1069
  descriptionPrefix?: string;
@@ -1090,13 +1091,7 @@ interface SwapSuccessViewProps {
1090
1091
  }
1091
1092
  declare const SwapSuccessView: React__default.FC<SwapSuccessViewProps>;
1092
1093
 
1093
- /**
1094
- * Visual variant of SwapSuccessView.
1095
- * Design identical to the SwapPanel SuccessOverlay:
1096
- * glass-blur transparent background, centered icon + title + subtitle.
1097
- * No chrome, no transaction details.
1098
- */
1099
- declare const SwapSuccessViewSimple: React__default.FC<Partial<SwapSuccessViewProps>>;
1094
+ declare const SwapSuccessViewSimple: React__default.FC;
1100
1095
 
1101
1096
  interface SwapTransactionFailedViewProps {
1102
1097
  fromTokenSymbol: string;
@@ -1211,6 +1206,8 @@ interface SwapFromCardViewProps {
1211
1206
  logoURI?: string;
1212
1207
  } | null;
1213
1208
  onTokenClick: () => void;
1209
+ /** Opens the unified network + asset selector. Used by Simple variants. */
1210
+ onNetworkAndAssetClick?: () => void;
1214
1211
  balanceFormatted: string;
1215
1212
  balanceUsdFormatted: string;
1216
1213
  onBalanceClick?: () => void;
@@ -1235,6 +1232,8 @@ interface SwapToCardViewProps {
1235
1232
  logoURI?: string;
1236
1233
  } | null;
1237
1234
  onTokenClick: () => void;
1235
+ /** Opens the unified network + asset selector. Used by Simple variants. */
1236
+ onNetworkAndAssetClick?: () => void;
1238
1237
  balanceFormatted: string;
1239
1238
  balanceUsdFormatted: string;
1240
1239
  chainLabel: string;
@@ -1337,6 +1336,30 @@ interface SwapFormViewProps {
1337
1336
  }
1338
1337
  declare const SwapFormView: React__default.FC<SwapFormViewProps>;
1339
1338
 
1339
+ declare const SwapFormViewSimple: React__default.FC<SwapFormViewProps>;
1340
+
1341
+ interface SwapFromCardViewSimpleProps extends SwapFromCardViewProps {
1342
+ /** Percentage chip values, e.g. [25, 50, 75, 100] */
1343
+ percentageOptions?: number[];
1344
+ /** Called when a chip is clicked */
1345
+ onPercentageClick?: (pct: number) => void;
1346
+ /** Currently active chip (null = none) */
1347
+ selectedPercentage?: number | null;
1348
+ /** Label for the last (100 %) chip. Default: 'Max.' */
1349
+ maxLabel?: string;
1350
+ /** Custom error message shown in the inline notification */
1351
+ errorMessage?: string;
1352
+ /** Custom label for the error action button */
1353
+ errorActionLabel?: string;
1354
+ /** Called when the error action button is clicked */
1355
+ onErrorAction?: () => void;
1356
+ }
1357
+ declare const SwapFromCardViewSimple: React__default.FC<SwapFromCardViewSimpleProps>;
1358
+
1359
+ declare const SwapToCardViewSimple: React__default.FC<SwapToCardViewProps>;
1360
+
1361
+ declare const ConfirmSwapButtonViewSimple: React__default.FC<ConfirmSwapButtonViewProps>;
1362
+
1340
1363
  interface ChooseANetworkLabels {
1341
1364
  title: string;
1342
1365
  searchPlaceholder: string;
@@ -1358,6 +1381,49 @@ interface ChooseANetworkViewProps {
1358
1381
  }
1359
1382
  declare const ChooseANetworkView: React__default.FC<ChooseANetworkViewProps>;
1360
1383
 
1384
+ /**
1385
+ * Network available for selection in the unified network + asset selector.
1386
+ * Built by the SDK from CHAIN_NAMES + CHAIN_IMAGES + aggregated balances.
1387
+ */
1388
+ interface NetworkOption {
1389
+ chainId: number;
1390
+ name: string;
1391
+ iconUrl?: string;
1392
+ /** Total fiat value on this network (e.g. "$12,345.67"). Used for sorting. */
1393
+ balanceUsd?: string;
1394
+ }
1395
+
1396
+ interface ChooseNetworkAndAssetLabels {
1397
+ title: string;
1398
+ searchPlaceholder: string;
1399
+ searchingText: string;
1400
+ loadMoreButton: string;
1401
+ searchEmptyTitle: string;
1402
+ searchEmptyDescription: string;
1403
+ networksLabel: string;
1404
+ assetsLabel: string;
1405
+ closeAriaLabel: string;
1406
+ }
1407
+ interface ChooseNetworkAndAssetViewSimpleProps {
1408
+ isOpen: boolean;
1409
+ onClose: () => void;
1410
+ networks: NetworkOption[];
1411
+ selectedNetwork?: NetworkOption | null;
1412
+ onNetworkSelect: (network: NetworkOption) => void;
1413
+ displayedTokens: TokenData[];
1414
+ findBalance: (token: TokenData) => BalanceDomain | undefined;
1415
+ formatTokenAmount: (amountUI: string, priceUSD: number, decimals: number) => string;
1416
+ formatCurrencyValue: (value: number) => string;
1417
+ onAssetClick: (token: TokenData) => void;
1418
+ onSearch: (value: string) => void;
1419
+ autoFocus?: boolean;
1420
+ hasMore: boolean;
1421
+ onLoadMore: () => void;
1422
+ isFetching: boolean;
1423
+ labels: ChooseNetworkAndAssetLabels;
1424
+ }
1425
+ declare function ChooseNetworkAndAssetViewSimple({ isOpen, onClose, networks, selectedNetwork, onNetworkSelect, displayedTokens, findBalance, formatTokenAmount, formatCurrencyValue, onAssetClick, onSearch, autoFocus, hasMore, onLoadMore, isFetching, labels, }: ChooseNetworkAndAssetViewSimpleProps): react_jsx_runtime.JSX.Element;
1426
+
1361
1427
  interface SwapHistoryLabels {
1362
1428
  emptyTitle: string;
1363
1429
  emptyDescription: string;
@@ -2067,4 +2133,4 @@ interface DeframeTheme {
2067
2133
  colors?: DeframeThemeColors;
2068
2134
  }
2069
2135
 
2070
- export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DetailItem, DetailsHeader, type DetailsHeaderProps, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewItem, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Label, type LabelProps, type LabelVariant, 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, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFromCardView, type SwapFromCardViewProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption };
2136
+ export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DetailItem, DetailsHeader, type DetailsHeaderProps, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewItem, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, type NetworkOption, 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, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption };
package/dist/index.d.ts CHANGED
@@ -1008,13 +1008,7 @@ interface SwapProcessingViewProps {
1008
1008
  }
1009
1009
  declare const SwapProcessingView: React__default.FC<SwapProcessingViewProps>;
1010
1010
 
1011
- /**
1012
- * Visual variant of SwapProcessingView.
1013
- * Design identical to the SwapPanel ProcessingOverlay:
1014
- * glass-blur transparent background, rotating sync icon,
1015
- * uppercase green title + muted subtitle. No chrome, no transaction details.
1016
- */
1017
- declare const SwapProcessingViewSimple: React__default.FC<Partial<SwapProcessingViewProps>>;
1011
+ declare const SwapProcessingViewSimple: React__default.FC;
1018
1012
 
1019
1013
  interface SwapCrossChainProcessingViewProps {
1020
1014
  fromTokenSymbol: string;
@@ -1063,6 +1057,13 @@ interface SwapSignatureWarningViewProps {
1063
1057
  }
1064
1058
  declare const SwapSignatureWarningView: React__default.FC<SwapSignatureWarningViewProps>;
1065
1059
 
1060
+ /**
1061
+ * Visual "Simple" variant of SwapSignatureWarningView.
1062
+ * Renders the SwapFormSkeleton behind a glass-blur overlay with a
1063
+ * spring-in warning icon, title, description and cancel / retry buttons.
1064
+ */
1065
+ declare const SwapSignatureWarningViewSimple: React__default.FC<Partial<SwapSignatureWarningViewProps>>;
1066
+
1066
1067
  interface SwapSuccessLabels {
1067
1068
  title?: string;
1068
1069
  descriptionPrefix?: string;
@@ -1090,13 +1091,7 @@ interface SwapSuccessViewProps {
1090
1091
  }
1091
1092
  declare const SwapSuccessView: React__default.FC<SwapSuccessViewProps>;
1092
1093
 
1093
- /**
1094
- * Visual variant of SwapSuccessView.
1095
- * Design identical to the SwapPanel SuccessOverlay:
1096
- * glass-blur transparent background, centered icon + title + subtitle.
1097
- * No chrome, no transaction details.
1098
- */
1099
- declare const SwapSuccessViewSimple: React__default.FC<Partial<SwapSuccessViewProps>>;
1094
+ declare const SwapSuccessViewSimple: React__default.FC;
1100
1095
 
1101
1096
  interface SwapTransactionFailedViewProps {
1102
1097
  fromTokenSymbol: string;
@@ -1211,6 +1206,8 @@ interface SwapFromCardViewProps {
1211
1206
  logoURI?: string;
1212
1207
  } | null;
1213
1208
  onTokenClick: () => void;
1209
+ /** Opens the unified network + asset selector. Used by Simple variants. */
1210
+ onNetworkAndAssetClick?: () => void;
1214
1211
  balanceFormatted: string;
1215
1212
  balanceUsdFormatted: string;
1216
1213
  onBalanceClick?: () => void;
@@ -1235,6 +1232,8 @@ interface SwapToCardViewProps {
1235
1232
  logoURI?: string;
1236
1233
  } | null;
1237
1234
  onTokenClick: () => void;
1235
+ /** Opens the unified network + asset selector. Used by Simple variants. */
1236
+ onNetworkAndAssetClick?: () => void;
1238
1237
  balanceFormatted: string;
1239
1238
  balanceUsdFormatted: string;
1240
1239
  chainLabel: string;
@@ -1337,6 +1336,30 @@ interface SwapFormViewProps {
1337
1336
  }
1338
1337
  declare const SwapFormView: React__default.FC<SwapFormViewProps>;
1339
1338
 
1339
+ declare const SwapFormViewSimple: React__default.FC<SwapFormViewProps>;
1340
+
1341
+ interface SwapFromCardViewSimpleProps extends SwapFromCardViewProps {
1342
+ /** Percentage chip values, e.g. [25, 50, 75, 100] */
1343
+ percentageOptions?: number[];
1344
+ /** Called when a chip is clicked */
1345
+ onPercentageClick?: (pct: number) => void;
1346
+ /** Currently active chip (null = none) */
1347
+ selectedPercentage?: number | null;
1348
+ /** Label for the last (100 %) chip. Default: 'Max.' */
1349
+ maxLabel?: string;
1350
+ /** Custom error message shown in the inline notification */
1351
+ errorMessage?: string;
1352
+ /** Custom label for the error action button */
1353
+ errorActionLabel?: string;
1354
+ /** Called when the error action button is clicked */
1355
+ onErrorAction?: () => void;
1356
+ }
1357
+ declare const SwapFromCardViewSimple: React__default.FC<SwapFromCardViewSimpleProps>;
1358
+
1359
+ declare const SwapToCardViewSimple: React__default.FC<SwapToCardViewProps>;
1360
+
1361
+ declare const ConfirmSwapButtonViewSimple: React__default.FC<ConfirmSwapButtonViewProps>;
1362
+
1340
1363
  interface ChooseANetworkLabels {
1341
1364
  title: string;
1342
1365
  searchPlaceholder: string;
@@ -1358,6 +1381,49 @@ interface ChooseANetworkViewProps {
1358
1381
  }
1359
1382
  declare const ChooseANetworkView: React__default.FC<ChooseANetworkViewProps>;
1360
1383
 
1384
+ /**
1385
+ * Network available for selection in the unified network + asset selector.
1386
+ * Built by the SDK from CHAIN_NAMES + CHAIN_IMAGES + aggregated balances.
1387
+ */
1388
+ interface NetworkOption {
1389
+ chainId: number;
1390
+ name: string;
1391
+ iconUrl?: string;
1392
+ /** Total fiat value on this network (e.g. "$12,345.67"). Used for sorting. */
1393
+ balanceUsd?: string;
1394
+ }
1395
+
1396
+ interface ChooseNetworkAndAssetLabels {
1397
+ title: string;
1398
+ searchPlaceholder: string;
1399
+ searchingText: string;
1400
+ loadMoreButton: string;
1401
+ searchEmptyTitle: string;
1402
+ searchEmptyDescription: string;
1403
+ networksLabel: string;
1404
+ assetsLabel: string;
1405
+ closeAriaLabel: string;
1406
+ }
1407
+ interface ChooseNetworkAndAssetViewSimpleProps {
1408
+ isOpen: boolean;
1409
+ onClose: () => void;
1410
+ networks: NetworkOption[];
1411
+ selectedNetwork?: NetworkOption | null;
1412
+ onNetworkSelect: (network: NetworkOption) => void;
1413
+ displayedTokens: TokenData[];
1414
+ findBalance: (token: TokenData) => BalanceDomain | undefined;
1415
+ formatTokenAmount: (amountUI: string, priceUSD: number, decimals: number) => string;
1416
+ formatCurrencyValue: (value: number) => string;
1417
+ onAssetClick: (token: TokenData) => void;
1418
+ onSearch: (value: string) => void;
1419
+ autoFocus?: boolean;
1420
+ hasMore: boolean;
1421
+ onLoadMore: () => void;
1422
+ isFetching: boolean;
1423
+ labels: ChooseNetworkAndAssetLabels;
1424
+ }
1425
+ declare function ChooseNetworkAndAssetViewSimple({ isOpen, onClose, networks, selectedNetwork, onNetworkSelect, displayedTokens, findBalance, formatTokenAmount, formatCurrencyValue, onAssetClick, onSearch, autoFocus, hasMore, onLoadMore, isFetching, labels, }: ChooseNetworkAndAssetViewSimpleProps): react_jsx_runtime.JSX.Element;
1426
+
1361
1427
  interface SwapHistoryLabels {
1362
1428
  emptyTitle: string;
1363
1429
  emptyDescription: string;
@@ -2067,4 +2133,4 @@ interface DeframeTheme {
2067
2133
  colors?: DeframeThemeColors;
2068
2134
  }
2069
2135
 
2070
- export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DetailItem, DetailsHeader, type DetailsHeaderProps, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewItem, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Label, type LabelProps, type LabelVariant, 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, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFromCardView, type SwapFromCardViewProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption };
2136
+ export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, ApyRange, type ApyRangeProps, BackButton, type BackButtonProps, BackgroundContainer, type BackgroundContainerProps, type BalanceDomain, BannerNotification, type BannerNotificationProps, type ButtonProps, type ChainItem, type ChooseANetworkLabels, ChooseANetworkView, type ChooseANetworkViewProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, type ChooseAnAssetSwapLabels, ChooseAnAssetSwapView, type ChooseAnAssetSwapViewProps, type ChooseNetworkAndAssetLabels, ChooseNetworkAndAssetViewSimple, type ChooseNetworkAndAssetViewSimpleProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, CollapsibleSection, type CollapsibleSectionProps, type ConfirmSwapButtonLabels, ConfirmSwapButtonView, type ConfirmSwapButtonViewProps, ConfirmSwapButtonViewSimple, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DetailItem, DetailsHeader, type DetailsHeaderProps, EarnAmountInputView, type EarnAmountInputViewProps, EarnBalanceCard, type EarnBalanceCardProps, EarnBytecodeErrorView, type EarnBytecodeErrorViewProps, EarnDepositFailedView, type EarnDepositFailedViewProps, EarnDepositFormView, type EarnDepositFormViewProps, EarnDepositProcessingView, type EarnDepositProcessingViewProps, EarnDepositSuccessView, type EarnDepositSuccessViewProps, EarnDepositWarningView, type EarnDepositWarningViewProps, EarnDesktopView, type EarnDesktopViewProps, type EarnExploreGridItem, EarnExploreGridView, type EarnExploreGridViewProps, type EarnInvestedSectionItem, EarnInvestedSectionView, type EarnInvestedSectionViewProps, type EarnInvestmentDetailsTransaction, EarnInvestmentDetailsView, type EarnInvestmentDetailsViewProps, EarnInvestmentSummaryView, type EarnInvestmentSummaryViewProps, EarnNoBalanceNotificationView, type EarnNoBalanceNotificationViewProps, EarnPercentageButtonsView, type EarnPercentageButtonsViewProps, EarnPositionCardView, type EarnPositionCardViewProps, EarnRecentTransactionsView, type EarnRecentTransactionsViewProps, EarnTokenSelectorView, type EarnTokenSelectorViewProps, EarnTxStatusCardView, type EarnTxStatusCardViewProps, EarnWithdrawFailedView, type EarnWithdrawFailedViewProps, EarnWithdrawFormView, type EarnWithdrawFormViewProps, EarnWithdrawProcessingView, type EarnWithdrawProcessingViewProps, EarnWithdrawSuccessView, type EarnWithdrawSuccessViewProps, EarnWithdrawTokenSelectorView, type EarnWithdrawTokenSelectorViewProps, EarnWithdrawWarningView, type EarnWithdrawWarningViewProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, type GroupedInvestedItem, type GroupedStrategyItem, type GroupedStrategyListItem, GroupedStrategyListView, type GroupedStrategyListViewProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryListSkeleton, HistoryListView, type HistoryListViewGroup, type HistoryListViewItem, type HistoryListViewProps, type HistorySwapDetailsLabels, HistorySwapDetailsView, type HistorySwapDetailsViewProps, HistoryTabEmpty, type HistoryTabEmptyProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Label, type LabelProps, type LabelVariant, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LoadingDots, type LoadingDotsProps, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, type NetworkOption, 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, StrategyGridCard, type StrategyGridCardProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAdvancedSettingsView, type SwapAdvancedSettingsViewProps, SwapAmountInputView, type SwapAmountInputViewProps, type SwapCardLabels, SwapCrossChainProcessingView, type SwapCrossChainProcessingViewProps, type SwapFormLabels, SwapFormView, type SwapFormViewProps, SwapFormViewSimple, SwapFromCardView, type SwapFromCardViewProps, SwapFromCardViewSimple, type SwapFromCardViewSimpleProps, type SwapHistoryItem, type SwapHistoryLabels, SwapHistoryView, type SwapHistoryViewProps, type SwapNetworkSelectorViewProps, type SwapOutputAmountViewProps, SwapProcessingView, type SwapProcessingViewProps, SwapProcessingViewSimple, type SwapQuoteBlockchainCostsViewProps, type SwapQuoteDetailsLabels, SwapQuoteDetailsView, type SwapQuoteDetailsViewProps, type SwapQuoteErrorsViewProps, type SwapQuoteHeaderViewProps, SwapSignatureWarningView, type SwapSignatureWarningViewProps, SwapSignatureWarningViewSimple, type SwapSlippageToleranceButtonsViewProps, type SwapSuccessLabels, SwapSuccessView, type SwapSuccessViewProps, SwapSuccessViewSimple, SwapToCardView, type SwapToCardViewProps, SwapToCardViewSimple, type SwapTokenSelectorViewProps, SwapTransactionFailedView, type SwapTransactionFailedViewProps, SwapTransactionFailedViewSimple, type SwapValidationCode, SwapWidgetFallbackView, type SwapWidgetFallbackViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, Title, type TokenData, TokenWithChainBadge, type TokenWithChainBadgeProps, TransactionProcessingDetails, type TransactionProcessingDetailsLabels, type TransactionProcessingDetailsProps, TransactionScreen, TransactionScreenIcon, type TransactionScreenIconProps, TransactionScreenInvestmentCard, type TransactionScreenInvestmentCardProps, type TransactionScreenProps, type TransactionStep, type TransactionStepStatus, type WalletBalanceItem, WalletBalances, type WalletBalancesProps, WalletConnectPanel, type WalletConnectPanelProps, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type WalletOption };