@deframe-sdk/components 0.1.22 → 0.1.24
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 +348 -67
- package/dist/index.d.ts +348 -67
- package/dist/index.js +1796 -346
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1779 -350
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +285 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentProps, ComponentType } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
/** Primary UI component for user interaction */
|
|
@@ -1535,6 +1535,75 @@ interface SwapWidgetFallbackViewProps {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
declare const SwapWidgetFallbackView: React__default.FC<SwapWidgetFallbackViewProps>;
|
|
1537
1537
|
|
|
1538
|
+
interface ChipProps {
|
|
1539
|
+
/**
|
|
1540
|
+
* The label text displayed in the chip
|
|
1541
|
+
*/
|
|
1542
|
+
label: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* Whether the chip is currently selected
|
|
1545
|
+
*/
|
|
1546
|
+
selected?: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Click handler for chip selection
|
|
1549
|
+
*/
|
|
1550
|
+
onClick?: () => void;
|
|
1551
|
+
/**
|
|
1552
|
+
* Additional CSS class names
|
|
1553
|
+
*/
|
|
1554
|
+
className?: string;
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Chip - A selectable filter chip component
|
|
1558
|
+
*
|
|
1559
|
+
* Used for filtering strategies by category (e.g., Stablecoins, Crypto/Staking, BTC)
|
|
1560
|
+
*
|
|
1561
|
+
* @example
|
|
1562
|
+
* <Chip label="Stablecoins" selected={selected === 'stablecoins'} onClick={() => setSelected('stablecoins')} />
|
|
1563
|
+
*/
|
|
1564
|
+
declare const Chip: React__default.FC<ChipProps>;
|
|
1565
|
+
|
|
1566
|
+
interface ChipOption {
|
|
1567
|
+
/**
|
|
1568
|
+
* Unique identifier for the chip
|
|
1569
|
+
*/
|
|
1570
|
+
value: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* Display label for the chip
|
|
1573
|
+
*/
|
|
1574
|
+
label: string;
|
|
1575
|
+
}
|
|
1576
|
+
interface ChipGroupProps {
|
|
1577
|
+
/**
|
|
1578
|
+
* Available chip options
|
|
1579
|
+
*/
|
|
1580
|
+
options: ChipOption[];
|
|
1581
|
+
/**
|
|
1582
|
+
* Currently selected chip value
|
|
1583
|
+
*/
|
|
1584
|
+
selected: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Callback when a chip is selected
|
|
1587
|
+
*/
|
|
1588
|
+
onSelect: (value: string) => void;
|
|
1589
|
+
/**
|
|
1590
|
+
* Additional CSS class names for the container
|
|
1591
|
+
*/
|
|
1592
|
+
className?: string;
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* ChipGroup - A group of selectable filter chips
|
|
1596
|
+
*
|
|
1597
|
+
* @example
|
|
1598
|
+
* const options = [
|
|
1599
|
+
* { value: 'all', label: 'Todas' },
|
|
1600
|
+
* { value: 'stablecoins', label: 'Stablecoins' },
|
|
1601
|
+
* { value: 'crypto', label: 'Crypto/Staking' },
|
|
1602
|
+
* ];
|
|
1603
|
+
* <ChipGroup options={options} selected={selected} onSelect={setSelected} />
|
|
1604
|
+
*/
|
|
1605
|
+
declare const ChipGroup: React__default.FC<ChipGroupProps>;
|
|
1606
|
+
|
|
1538
1607
|
interface ApyRangeProps {
|
|
1539
1608
|
children: React__default.ReactNode;
|
|
1540
1609
|
}
|
|
@@ -1598,6 +1667,124 @@ interface EarnBalanceCardProps {
|
|
|
1598
1667
|
}
|
|
1599
1668
|
declare const EarnBalanceCard: React__default.FC<EarnBalanceCardProps>;
|
|
1600
1669
|
|
|
1670
|
+
interface GroupedStrategyListItem {
|
|
1671
|
+
id: string;
|
|
1672
|
+
logoUrl: string;
|
|
1673
|
+
title: string;
|
|
1674
|
+
subtitle: string;
|
|
1675
|
+
onClick: () => void;
|
|
1676
|
+
}
|
|
1677
|
+
interface GroupedInvestedItem extends GroupedStrategyListItem {
|
|
1678
|
+
balanceFormatted: string;
|
|
1679
|
+
profitFormatted: string;
|
|
1680
|
+
}
|
|
1681
|
+
interface GroupedStrategyItem extends GroupedStrategyListItem {
|
|
1682
|
+
apyFormatted: string;
|
|
1683
|
+
}
|
|
1684
|
+
interface GroupedStrategyListViewProps {
|
|
1685
|
+
isLoading: boolean;
|
|
1686
|
+
loadingLabel: string;
|
|
1687
|
+
error: Error | null;
|
|
1688
|
+
errorLabel: string;
|
|
1689
|
+
investedLabel: string;
|
|
1690
|
+
investedItems: GroupedInvestedItem[];
|
|
1691
|
+
bestPerformanceLabel: string;
|
|
1692
|
+
bestPerformanceItems: GroupedStrategyItem[];
|
|
1693
|
+
allStrategiesLabel: string;
|
|
1694
|
+
allStrategiesItems: GroupedStrategyItem[];
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* Grouped strategy list view for mobile overview tab.
|
|
1698
|
+
* Pure view — receives pre-formatted items grouped by category.
|
|
1699
|
+
*/
|
|
1700
|
+
declare const GroupedStrategyListView: React__default.FC<GroupedStrategyListViewProps>;
|
|
1701
|
+
|
|
1702
|
+
interface HistoryListViewItem {
|
|
1703
|
+
id: string;
|
|
1704
|
+
iconUrl: string;
|
|
1705
|
+
iconAlt: string;
|
|
1706
|
+
isDeposit: boolean;
|
|
1707
|
+
isSwap: boolean;
|
|
1708
|
+
title: string;
|
|
1709
|
+
subtitle: string;
|
|
1710
|
+
amountFormatted: string;
|
|
1711
|
+
amountUsd?: string;
|
|
1712
|
+
status?: 'SUCCESS' | 'PENDING' | 'FAILED' | 'REFUNDED';
|
|
1713
|
+
statusLabel?: string;
|
|
1714
|
+
statusTitle?: string;
|
|
1715
|
+
onClick: () => void;
|
|
1716
|
+
}
|
|
1717
|
+
interface HistoryListViewGroup {
|
|
1718
|
+
dateLabel: string;
|
|
1719
|
+
items: HistoryListViewItem[];
|
|
1720
|
+
}
|
|
1721
|
+
interface HistoryListViewProps {
|
|
1722
|
+
groups: HistoryListViewGroup[];
|
|
1723
|
+
showLoadMore: boolean;
|
|
1724
|
+
onLoadMore: () => void;
|
|
1725
|
+
loadMoreLabel: string;
|
|
1726
|
+
itemClassName?: string;
|
|
1727
|
+
itemVariant?: 'subtle' | 'raised';
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1730
|
+
* History list view.
|
|
1731
|
+
* Pure view — receives pre-grouped, pre-formatted history items.
|
|
1732
|
+
*/
|
|
1733
|
+
declare const HistoryListView: React__default.FC<HistoryListViewProps>;
|
|
1734
|
+
|
|
1735
|
+
interface ExploreStrategyViewItem {
|
|
1736
|
+
id: string;
|
|
1737
|
+
logoUrl: string;
|
|
1738
|
+
title: string;
|
|
1739
|
+
subtitle: string;
|
|
1740
|
+
apyFormatted: string;
|
|
1741
|
+
onClick: () => void;
|
|
1742
|
+
}
|
|
1743
|
+
interface EarnOverviewViewProps {
|
|
1744
|
+
selectedTab: string;
|
|
1745
|
+
onTabChange: (tab: string) => void;
|
|
1746
|
+
labels: {
|
|
1747
|
+
tabs: {
|
|
1748
|
+
overview: string;
|
|
1749
|
+
explore: string;
|
|
1750
|
+
history: string;
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
overview: {
|
|
1754
|
+
isLoading: boolean;
|
|
1755
|
+
walletBalances: WalletBalanceItem[];
|
|
1756
|
+
groupedStrategies: GroupedStrategyListViewProps;
|
|
1757
|
+
};
|
|
1758
|
+
explore: {
|
|
1759
|
+
searchValue: string;
|
|
1760
|
+
onSearchChange: (value: string) => void;
|
|
1761
|
+
searchPlaceholder: string;
|
|
1762
|
+
chipOptions: ChipOption[];
|
|
1763
|
+
selectedCategory: string;
|
|
1764
|
+
onCategorySelect: (value: string) => void;
|
|
1765
|
+
strategies: ExploreStrategyViewItem[];
|
|
1766
|
+
isLoading: boolean;
|
|
1767
|
+
error: Error | null;
|
|
1768
|
+
hasFilters: boolean;
|
|
1769
|
+
loadingLabel: string;
|
|
1770
|
+
errorLabel: string;
|
|
1771
|
+
bestPerformanceLabel: string;
|
|
1772
|
+
emptySearchTitle: string;
|
|
1773
|
+
emptySearchDescription: string;
|
|
1774
|
+
};
|
|
1775
|
+
history: {
|
|
1776
|
+
isLoading: boolean;
|
|
1777
|
+
isEmpty: boolean;
|
|
1778
|
+
groups: HistoryListViewGroup[];
|
|
1779
|
+
showLoadMore: boolean;
|
|
1780
|
+
onLoadMore: () => void;
|
|
1781
|
+
loadMoreLabel: string;
|
|
1782
|
+
emptyTitle: string;
|
|
1783
|
+
emptyDescription: string;
|
|
1784
|
+
};
|
|
1785
|
+
}
|
|
1786
|
+
declare const EarnOverviewView: React__default.FC<EarnOverviewViewProps>;
|
|
1787
|
+
|
|
1601
1788
|
interface EarnInvestmentSummaryViewProps {
|
|
1602
1789
|
overviewDescription: string;
|
|
1603
1790
|
totalInvestedLabel: string;
|
|
@@ -1738,71 +1925,6 @@ interface EarnInvestmentDetailsContentProps {
|
|
|
1738
1925
|
type EarnInvestmentDetailsViewProps = EarnInvestmentDetailsLoadingProps | EarnInvestmentDetailsContentProps;
|
|
1739
1926
|
declare const EarnInvestmentDetailsView: React__default.FC<EarnInvestmentDetailsViewProps>;
|
|
1740
1927
|
|
|
1741
|
-
interface GroupedStrategyListItem {
|
|
1742
|
-
id: string;
|
|
1743
|
-
logoUrl: string;
|
|
1744
|
-
title: string;
|
|
1745
|
-
subtitle: string;
|
|
1746
|
-
onClick: () => void;
|
|
1747
|
-
}
|
|
1748
|
-
interface GroupedInvestedItem extends GroupedStrategyListItem {
|
|
1749
|
-
balanceFormatted: string;
|
|
1750
|
-
profitFormatted: string;
|
|
1751
|
-
}
|
|
1752
|
-
interface GroupedStrategyItem extends GroupedStrategyListItem {
|
|
1753
|
-
apyFormatted: string;
|
|
1754
|
-
}
|
|
1755
|
-
interface GroupedStrategyListViewProps {
|
|
1756
|
-
isLoading: boolean;
|
|
1757
|
-
loadingLabel: string;
|
|
1758
|
-
error: Error | null;
|
|
1759
|
-
errorLabel: string;
|
|
1760
|
-
investedLabel: string;
|
|
1761
|
-
investedItems: GroupedInvestedItem[];
|
|
1762
|
-
bestPerformanceLabel: string;
|
|
1763
|
-
bestPerformanceItems: GroupedStrategyItem[];
|
|
1764
|
-
allStrategiesLabel: string;
|
|
1765
|
-
allStrategiesItems: GroupedStrategyItem[];
|
|
1766
|
-
}
|
|
1767
|
-
/**
|
|
1768
|
-
* Grouped strategy list view for mobile overview tab.
|
|
1769
|
-
* Pure view — receives pre-formatted items grouped by category.
|
|
1770
|
-
*/
|
|
1771
|
-
declare const GroupedStrategyListView: React__default.FC<GroupedStrategyListViewProps>;
|
|
1772
|
-
|
|
1773
|
-
interface HistoryListViewItem {
|
|
1774
|
-
id: string;
|
|
1775
|
-
iconUrl: string;
|
|
1776
|
-
iconAlt: string;
|
|
1777
|
-
isDeposit: boolean;
|
|
1778
|
-
isSwap: boolean;
|
|
1779
|
-
title: string;
|
|
1780
|
-
subtitle: string;
|
|
1781
|
-
amountFormatted: string;
|
|
1782
|
-
amountUsd?: string;
|
|
1783
|
-
status?: 'SUCCESS' | 'PENDING' | 'FAILED' | 'REFUNDED';
|
|
1784
|
-
statusLabel?: string;
|
|
1785
|
-
statusTitle?: string;
|
|
1786
|
-
onClick: () => void;
|
|
1787
|
-
}
|
|
1788
|
-
interface HistoryListViewGroup {
|
|
1789
|
-
dateLabel: string;
|
|
1790
|
-
items: HistoryListViewItem[];
|
|
1791
|
-
}
|
|
1792
|
-
interface HistoryListViewProps {
|
|
1793
|
-
groups: HistoryListViewGroup[];
|
|
1794
|
-
showLoadMore: boolean;
|
|
1795
|
-
onLoadMore: () => void;
|
|
1796
|
-
loadMoreLabel: string;
|
|
1797
|
-
itemClassName?: string;
|
|
1798
|
-
itemVariant?: 'subtle' | 'raised';
|
|
1799
|
-
}
|
|
1800
|
-
/**
|
|
1801
|
-
* History list view.
|
|
1802
|
-
* Pure view — receives pre-grouped, pre-formatted history items.
|
|
1803
|
-
*/
|
|
1804
|
-
declare const HistoryListView: React__default.FC<HistoryListViewProps>;
|
|
1805
|
-
|
|
1806
1928
|
interface EarnTokenSelectorViewProps {
|
|
1807
1929
|
selectedToken: {
|
|
1808
1930
|
symbol: string;
|
|
@@ -2159,8 +2281,167 @@ interface EarnWithdrawFailedViewProps {
|
|
|
2159
2281
|
}
|
|
2160
2282
|
declare const EarnWithdrawFailedView: React__default.FC<EarnWithdrawFailedViewProps>;
|
|
2161
2283
|
|
|
2284
|
+
interface DashboardCardProps {
|
|
2285
|
+
children: React__default.ReactNode;
|
|
2286
|
+
className?: string;
|
|
2287
|
+
}
|
|
2288
|
+
declare const DashboardCard: React__default.FC<DashboardCardProps>;
|
|
2289
|
+
|
|
2290
|
+
declare const DashboardTransactionsPlaceholder: React__default.FC;
|
|
2291
|
+
|
|
2292
|
+
interface DashboardBalancesBreakdownProps {
|
|
2293
|
+
isLoadingBalances: boolean;
|
|
2294
|
+
formattedTokenPositions: string;
|
|
2295
|
+
formattedEarnPositions: string;
|
|
2296
|
+
layout?: 'vertical' | 'horizontal';
|
|
2297
|
+
}
|
|
2298
|
+
declare const DashboardBalancesBreakdown: React__default.FC<DashboardBalancesBreakdownProps>;
|
|
2299
|
+
|
|
2300
|
+
interface DashboardTokenItem {
|
|
2301
|
+
id: string;
|
|
2302
|
+
symbol: string;
|
|
2303
|
+
name: string;
|
|
2304
|
+
logoUrl: string;
|
|
2305
|
+
networkLogoUrl?: string;
|
|
2306
|
+
networkName?: string;
|
|
2307
|
+
formattedFiatValue: string;
|
|
2308
|
+
formattedAmount: string;
|
|
2309
|
+
amountInUSD: number;
|
|
2310
|
+
isUpdating: boolean;
|
|
2311
|
+
onClick?: () => void;
|
|
2312
|
+
/** Consumer-defined payload — variant views cast optimistically */
|
|
2313
|
+
metadata?: Record<string, unknown>;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
interface DashboardTokenListViewProps {
|
|
2317
|
+
tokens: DashboardTokenItem[];
|
|
2318
|
+
isLoading: boolean;
|
|
2319
|
+
className?: string;
|
|
2320
|
+
showCard?: boolean;
|
|
2321
|
+
onDepositClick?: () => void;
|
|
2322
|
+
}
|
|
2323
|
+
declare const DashboardTokenListView: React__default.FC<DashboardTokenListViewProps>;
|
|
2324
|
+
|
|
2325
|
+
interface DashboardStrategyItem {
|
|
2326
|
+
id: string;
|
|
2327
|
+
assetName: string;
|
|
2328
|
+
protocol: string;
|
|
2329
|
+
logoUrl: string;
|
|
2330
|
+
apyFormatted?: string;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
interface DashboardStrategiesListViewProps {
|
|
2334
|
+
strategies: DashboardStrategyItem[];
|
|
2335
|
+
isLoading: boolean;
|
|
2336
|
+
searchQuery?: string;
|
|
2337
|
+
limit?: number;
|
|
2338
|
+
onStrategyClick: (strategyId: string) => void;
|
|
2339
|
+
}
|
|
2340
|
+
declare const DashboardStrategiesListView: React__default.FC<DashboardStrategiesListViewProps>;
|
|
2341
|
+
|
|
2342
|
+
interface DashboardPortfolioViewProps {
|
|
2343
|
+
formattedTotalValue: string;
|
|
2344
|
+
isLoading: boolean;
|
|
2345
|
+
onDepositClick: () => void;
|
|
2346
|
+
onWithdrawClick: () => void;
|
|
2347
|
+
onSwapClick: () => void;
|
|
2348
|
+
formattedTokenPositions: string;
|
|
2349
|
+
formattedEarnPositions: string;
|
|
2350
|
+
}
|
|
2351
|
+
declare const DashboardPortfolioView: React__default.FC<DashboardPortfolioViewProps>;
|
|
2352
|
+
|
|
2353
|
+
interface DashboardPortfolioViewSimpleProps extends DashboardPortfolioViewProps {
|
|
2354
|
+
assetCount?: number | string;
|
|
2355
|
+
}
|
|
2356
|
+
declare const DashboardPortfolioViewSimple: React__default.FC<DashboardPortfolioViewSimpleProps>;
|
|
2357
|
+
|
|
2358
|
+
interface AssetFilterOption {
|
|
2359
|
+
id: string;
|
|
2360
|
+
label: string;
|
|
2361
|
+
}
|
|
2362
|
+
interface DashboardTokensViewProps {
|
|
2363
|
+
sortedRegularTokens: DashboardTokenItem[];
|
|
2364
|
+
regularTokens: DashboardTokenItem[];
|
|
2365
|
+
isLoadingBalances: boolean;
|
|
2366
|
+
activeTab: 'strategies' | 'tokens';
|
|
2367
|
+
onTabChange: (tab: 'strategies' | 'tokens') => void;
|
|
2368
|
+
strategiesContent: React__default.ReactNode;
|
|
2369
|
+
/** Filter options for the asset list */
|
|
2370
|
+
filters?: AssetFilterOption[];
|
|
2371
|
+
/** Currently selected filter id */
|
|
2372
|
+
selectedFilter?: string;
|
|
2373
|
+
/** Called when a filter pill is clicked */
|
|
2374
|
+
onFilterSelect?: (id: string) => void;
|
|
2375
|
+
/** Called when history button is clicked */
|
|
2376
|
+
onHistoryClick?: () => void;
|
|
2377
|
+
}
|
|
2378
|
+
declare const DashboardTokensView: React__default.FC<DashboardTokensViewProps>;
|
|
2379
|
+
|
|
2380
|
+
declare const DashboardTokensViewSimple: React__default.FC<DashboardTokensViewProps>;
|
|
2381
|
+
|
|
2382
|
+
type TransactionIcon = ComponentType<{
|
|
2383
|
+
size?: number;
|
|
2384
|
+
className?: string;
|
|
2385
|
+
}>;
|
|
2386
|
+
interface DashboardTransactionItemViewData {
|
|
2387
|
+
id: string;
|
|
2388
|
+
mainIcon: TransactionIcon;
|
|
2389
|
+
typeIcon: TransactionIcon;
|
|
2390
|
+
iconColor: string;
|
|
2391
|
+
iconBgColor: string;
|
|
2392
|
+
formattedDate: string;
|
|
2393
|
+
label: string;
|
|
2394
|
+
rightPrimary: string;
|
|
2395
|
+
rightSecondary: string;
|
|
2396
|
+
onClick: () => void;
|
|
2397
|
+
}
|
|
2398
|
+
interface DashboardRecentTransactionsViewProps {
|
|
2399
|
+
isLoading: boolean;
|
|
2400
|
+
isEmpty: boolean;
|
|
2401
|
+
transactions: DashboardTransactionItemViewData[];
|
|
2402
|
+
onViewAllClick: () => void;
|
|
2403
|
+
onClose?: () => void;
|
|
2404
|
+
}
|
|
2405
|
+
declare const DashboardRecentTransactionsView: React__default.FC<DashboardRecentTransactionsViewProps>;
|
|
2406
|
+
|
|
2407
|
+
declare const DashboardRecentTransactionsViewSimple: React__default.FC<DashboardRecentTransactionsViewProps>;
|
|
2408
|
+
|
|
2409
|
+
interface DashboardInvestmentOpportunitiesViewProps {
|
|
2410
|
+
isLoadingBalances: boolean;
|
|
2411
|
+
formattedTotalProfit: string;
|
|
2412
|
+
strategiesContent: React__default.ReactNode;
|
|
2413
|
+
onViewAllStrategiesClick: () => void;
|
|
2414
|
+
}
|
|
2415
|
+
declare const DashboardInvestmentOpportunitiesView: React__default.FC<DashboardInvestmentOpportunitiesViewProps>;
|
|
2416
|
+
|
|
2417
|
+
interface DashboardViewProps {
|
|
2418
|
+
portfolio: DashboardPortfolioViewProps;
|
|
2419
|
+
tokens: DashboardTokensViewProps;
|
|
2420
|
+
recentTransactions?: DashboardRecentTransactionsViewProps;
|
|
2421
|
+
investmentOpportunities?: DashboardInvestmentOpportunitiesViewProps;
|
|
2422
|
+
quickActions?: {
|
|
2423
|
+
onDepositClick: () => void;
|
|
2424
|
+
onWithdrawClick: () => void;
|
|
2425
|
+
onSwapClick: () => void;
|
|
2426
|
+
};
|
|
2427
|
+
banner?: {
|
|
2428
|
+
imageUrl: string;
|
|
2429
|
+
altText: string;
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
declare const DashboardView: React__default.FC<DashboardViewProps>;
|
|
2433
|
+
|
|
2434
|
+
type DashboardViewSimpleProps = Omit<DashboardViewProps, 'investmentOpportunities' | 'banner'>;
|
|
2435
|
+
declare const DashboardViewSimple: React__default.FC<DashboardViewSimpleProps>;
|
|
2436
|
+
|
|
2162
2437
|
type SwapValidationCode = 'NO_WALLET' | 'NO_CHAIN' | 'NO_TOKEN' | 'INVALID_TOKEN' | 'NO_AMOUNT' | 'AMOUNT_BELOW_MINIMUM' | 'INSUFFICIENT_BALANCE' | 'INVALID_AMOUNT' | 'VALID_SWAP';
|
|
2163
2438
|
|
|
2439
|
+
/**
|
|
2440
|
+
* Returns `true` when the given USD amount is below the dust threshold ($0.01).
|
|
2441
|
+
* Useful for hiding negligible token balances from lists and summaries.
|
|
2442
|
+
*/
|
|
2443
|
+
declare function isDustValue(amountInUSD: number): boolean;
|
|
2444
|
+
|
|
2164
2445
|
interface DeframeThemeColors {
|
|
2165
2446
|
brandPrimary?: string;
|
|
2166
2447
|
brandSecondary?: string;
|
|
@@ -2181,4 +2462,4 @@ interface DeframeTheme {
|
|
|
2181
2462
|
colors?: DeframeThemeColors;
|
|
2182
2463
|
}
|
|
2183
2464
|
|
|
2184
|
-
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 HistoryDetailsStatus, 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, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, 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, ProcessingBadge, type ProcessingBadgeProps, 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 };
|
|
2465
|
+
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, Chip, ChipGroup, type ChipGroupProps, type ChipOption, type ChipProps, 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, DashboardBalancesBreakdown, type DashboardBalancesBreakdownProps, DashboardCard, type DashboardCardProps, DashboardInvestmentOpportunitiesView, type DashboardInvestmentOpportunitiesViewProps, DashboardPortfolioView, type DashboardPortfolioViewProps, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, type DashboardRecentTransactionsViewProps, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, type DashboardStrategiesListViewProps, type DashboardStrategyItem, type DashboardTokenItem, DashboardTokenListView, type DashboardTokenListViewProps, DashboardTokensView, type DashboardTokensViewProps, DashboardTokensViewSimple, type DashboardTransactionItemViewData, DashboardTransactionsPlaceholder, DashboardView, type DashboardViewProps, DashboardViewSimple, type DashboardViewSimpleProps, 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, EarnOverviewView, type EarnOverviewViewProps, 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, type ExploreStrategyViewItem, 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 HistoryDetailsStatus, 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, InvestmentCrossChainProcessingView, type InvestmentCrossChainProcessingViewProps, 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, ProcessingBadge, type ProcessingBadgeProps, 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, isDustValue };
|