@lifi/widget 3.12.6-alpha.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/esm/AppProvider.js +9 -2
- package/dist/esm/AppProvider.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +15 -3
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js +4 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +4 -6
- package/dist/esm/components/AlertMessage/AlertMessage.style.js +29 -12
- package/dist/esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInput.js +7 -1
- package/dist/esm/components/AmountInput/AmountInput.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +1 -1
- package/dist/esm/components/AmountInput/PriceFormHelperText.js +13 -2
- package/dist/esm/components/AmountInput/PriceFormHelperText.js.map +1 -1
- package/dist/esm/components/AppContainer.d.ts +1 -1
- package/dist/esm/components/AppContainer.js +34 -21
- package/dist/esm/components/AppContainer.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.style.d.ts +4 -2
- package/dist/esm/components/Avatar/Avatar.style.js +8 -6
- package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -1
- package/dist/esm/components/Card/Card.js +60 -33
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +1 -1
- package/dist/esm/components/Card/CardLabel.js +46 -29
- package/dist/esm/components/Card/CardLabel.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.js +12 -2
- package/dist/esm/components/Card/CardTitle.js.map +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js +3 -1
- package/dist/esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/dist/esm/components/ContractComponent/ItemPrice.js +2 -1
- package/dist/esm/components/ContractComponent/ItemPrice.js.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.js +2 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.js.map +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFTBase.js +16 -1
- package/dist/esm/components/ContractComponent/NFT/NFTBase.js.map +1 -1
- package/dist/esm/components/FeeBreakdownTooltip.js +7 -2
- package/dist/esm/components/FeeBreakdownTooltip.js.map +1 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js +4 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/GasMessage/GasMessage.style.js +8 -6
- package/dist/esm/components/GasMessage/GasMessage.style.js.map +1 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js +11 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js.map +1 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js +9 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Header/Header.style.d.ts +2 -2
- package/dist/esm/components/Header/NavigationHeader.js +11 -2
- package/dist/esm/components/Header/NavigationHeader.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.style.d.ts +1 -1
- package/dist/esm/components/Header/WalletMenu.js +12 -3
- package/dist/esm/components/Header/WalletMenu.js.map +1 -1
- package/dist/esm/components/IconTypography.js +4 -3
- package/dist/esm/components/IconTypography.js.map +1 -1
- package/dist/esm/components/ListItem/ListItem.d.ts +2 -4
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.js +14 -3
- package/dist/esm/components/ListItemButton.js.map +1 -1
- package/dist/esm/components/NotFound.js +11 -1
- package/dist/esm/components/NotFound.js.map +1 -1
- package/dist/esm/components/PageContainer.d.ts +1 -1
- package/dist/esm/components/PageContainer.js +10 -4
- package/dist/esm/components/PageContainer.js.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.js +14 -2
- package/dist/esm/components/PoweredBy/PoweredBy.js.map +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/dist/esm/components/ProgressToNextUpdate.js +8 -6
- package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +9 -3
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +28 -2
- package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +20 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardSkeleton.js +12 -2
- package/dist/esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js +12 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/dist/esm/components/Routes/Routes.js +12 -3
- package/dist/esm/components/Routes/Routes.js.map +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.js +14 -4
- package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/dist/esm/components/Select.js +16 -5
- package/dist/esm/components/Select.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +34 -8
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/dist/esm/components/SendToWallet/SendToWallet.style.js +28 -7
- package/dist/esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +9 -2
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +3 -3
- package/dist/esm/components/Step/DestinationWalletAddress.js +10 -2
- package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/dist/esm/components/Step/Step.js +5 -3
- package/dist/esm/components/Step/Step.js.map +1 -1
- package/dist/esm/components/Step/StepProcess.js +16 -3
- package/dist/esm/components/Step/StepProcess.js.map +1 -1
- package/dist/esm/components/Step/StepTimer.js +5 -1
- package/dist/esm/components/Step/StepTimer.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.js +22 -3
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.style.d.ts +1 -1
- package/dist/esm/components/StepActions/StepActions.style.js +19 -10
- package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
- package/dist/esm/components/StepActions/StepFees.js +9 -1
- package/dist/esm/components/StepActions/StepFees.js.map +1 -1
- package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/dist/esm/components/Switch.js +12 -7
- package/dist/esm/components/Switch.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.style.js +16 -12
- package/dist/esm/components/Tabs/Tabs.style.js.map +1 -1
- package/dist/esm/components/ToAddressRequiredMessage.js +4 -1
- package/dist/esm/components/ToAddressRequiredMessage.js.map +1 -1
- package/dist/esm/components/Token/Token.js +47 -6
- package/dist/esm/components/Token/Token.js.map +1 -1
- package/dist/esm/components/Token/Token.style.js +14 -7
- package/dist/esm/components/Token/Token.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +3 -5
- package/dist/esm/components/TokenList/TokenListItem.js +21 -4
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js +8 -1
- package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/dist/esm/components/TransactionDetails.js +52 -6
- package/dist/esm/components/TransactionDetails.js.map +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/config/version.js.map +1 -1
- package/dist/esm/hooks/useGasRefuel.js +6 -9
- package/dist/esm/hooks/useGasRefuel.js.map +1 -1
- package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
- package/dist/esm/hooks/useRoutes.js +6 -4
- package/dist/esm/hooks/useRoutes.js.map +1 -1
- package/dist/esm/i18n/en.json +5 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +11 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.js +6 -1
- package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.style.d.ts +1 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +8 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +4 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +4 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/EmptyListIndicator.js +5 -1
- package/dist/esm/pages/SendToWallet/EmptyListIndicator.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +7 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +4 -4
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +6 -6
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +9 -2
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +7 -2
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +4 -3
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +10 -3
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +16 -3
- package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +6 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +11 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +14 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +10 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +35 -3
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +12 -2
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +45 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +4 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/types/widget.d.ts +2 -1
- package/package.json +10 -11
- package/src/AppProvider.tsx +16 -2
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +16 -9
- package/src/components/ActiveTransactions/ActiveTransactions.tsx +7 -1
- package/src/components/AlertMessage/AlertMessage.style.tsx +30 -14
- package/src/components/AmountInput/AmountInput.tsx +9 -1
- package/src/components/AmountInput/PriceFormHelperText.tsx +12 -10
- package/src/components/AppContainer.tsx +34 -23
- package/src/components/Avatar/Avatar.style.tsx +8 -8
- package/src/components/Card/Card.tsx +60 -37
- package/src/components/Card/CardLabel.tsx +69 -43
- package/src/components/Card/CardTitle.tsx +12 -2
- package/src/components/ChainSelect/ChainSelect.tsx +7 -1
- package/src/components/ContractComponent/ItemPrice.tsx +8 -3
- package/src/components/ContractComponent/NFT/NFT.tsx +8 -3
- package/src/components/ContractComponent/NFT/NFTBase.tsx +33 -6
- package/src/components/FeeBreakdownTooltip.tsx +9 -3
- package/src/components/GasMessage/FundsSufficiencyMessage.tsx +7 -1
- package/src/components/GasMessage/GasMessage.style.ts +8 -8
- package/src/components/GasMessage/GasRefuelMessage.tsx +19 -6
- package/src/components/GasMessage/GasSufficiencyMessage.tsx +21 -3
- package/src/components/Header/NavigationHeader.tsx +23 -5
- package/src/components/Header/WalletMenu.tsx +18 -3
- package/src/components/IconTypography.ts +4 -4
- package/src/components/ListItemButton.tsx +21 -12
- package/src/components/NotFound.tsx +17 -6
- package/src/components/PageContainer.ts +19 -15
- package/src/components/PoweredBy/PoweredBy.tsx +16 -8
- package/src/components/ProgressToNextUpdate.tsx +8 -8
- package/src/components/RouteCard/RouteCard.tsx +14 -4
- package/src/components/RouteCard/RouteCardEssentials.tsx +38 -16
- package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +30 -11
- package/src/components/RouteCard/RouteCardSkeleton.tsx +19 -3
- package/src/components/RouteCard/RouteNotFoundCard.tsx +18 -7
- package/src/components/Routes/Routes.tsx +20 -6
- package/src/components/Routes/RoutesExpanded.tsx +25 -6
- package/src/components/Select.tsx +16 -6
- package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +34 -8
- package/src/components/SendToWallet/SendToWallet.style.tsx +28 -7
- package/src/components/SendToWallet/SendToWalletButton.tsx +21 -5
- package/src/components/Step/DestinationWalletAddress.tsx +14 -2
- package/src/components/Step/Step.tsx +7 -3
- package/src/components/Step/StepProcess.tsx +18 -9
- package/src/components/Step/StepTimer.tsx +9 -5
- package/src/components/StepActions/StepActions.style.tsx +19 -13
- package/src/components/StepActions/StepActions.tsx +32 -10
- package/src/components/StepActions/StepFees.tsx +9 -4
- package/src/components/Switch.tsx +12 -9
- package/src/components/Tabs/Tabs.style.tsx +16 -16
- package/src/components/ToAddressRequiredMessage.tsx +7 -1
- package/src/components/Token/Token.style.tsx +14 -8
- package/src/components/Token/Token.tsx +75 -12
- package/src/components/TokenList/TokenListItem.tsx +37 -8
- package/src/components/TokenList/VirtualizedTokenList.tsx +8 -6
- package/src/components/TransactionDetails.tsx +75 -17
- package/src/config/version.ts +1 -1
- package/src/hooks/useGasRefuel.ts +6 -18
- package/src/hooks/useIsContractAddress.ts +1 -0
- package/src/hooks/useRoutes.ts +6 -4
- package/src/i18n/en.json +5 -1
- package/src/i18n/i18next.d.ts +4 -8
- package/src/index.ts +1 -1
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +17 -6
- package/src/pages/MainPage/MainPage.tsx +16 -9
- package/src/pages/SelectTokenPage/SelectTokenPage.tsx +17 -3
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +6 -1
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +6 -1
- package/src/pages/SendToWallet/EmptyListIndicator.tsx +7 -1
- package/src/pages/SendToWallet/SendToWalletPage.style.tsx +6 -9
- package/src/pages/SendToWallet/SendToWalletPage.tsx +17 -3
- package/src/pages/SettingsPage/ResetSettingsButton.style.tsx +0 -1
- package/src/pages/SettingsPage/ResetSettingsButton.tsx +18 -3
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +4 -5
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +11 -2
- package/src/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +16 -4
- package/src/pages/TransactionDetailsPage/TransactionDetailsSkeleton.tsx +29 -9
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +6 -4
- package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +17 -6
- package/src/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +24 -6
- package/src/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +14 -4
- package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +70 -11
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +27 -4
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +92 -15
- package/src/pages/TransactionPage/TransactionPage.tsx +6 -1
- package/src/types/widget.ts +2 -1
- package/tsconfig.json +4 -2
|
@@ -58,7 +58,12 @@ export const ConfirmAddressSheet = forwardRef<
|
|
|
58
58
|
<SheetTitle>{t('sendToWallet.confirmWalletAddress')}</SheetTitle>
|
|
59
59
|
<SheetAddressContainer>
|
|
60
60
|
{validatedBookmark?.name ? (
|
|
61
|
-
<Typography
|
|
61
|
+
<Typography
|
|
62
|
+
sx={{
|
|
63
|
+
fontWeight: 600,
|
|
64
|
+
mb: 0.5,
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
62
67
|
{validatedBookmark?.name}
|
|
63
68
|
</Typography>
|
|
64
69
|
) : null}
|
|
@@ -11,7 +11,13 @@ export const EmptyListIndicator = ({
|
|
|
11
11
|
}: EmptyListIndicatorProps) => (
|
|
12
12
|
<EmptyContainer>
|
|
13
13
|
<IconContainer>{icon}</IconContainer>
|
|
14
|
-
<Typography
|
|
14
|
+
<Typography
|
|
15
|
+
sx={{
|
|
16
|
+
fontSize: 14,
|
|
17
|
+
fontWeight: 700,
|
|
18
|
+
color: 'text.secondary',
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
15
21
|
{children}
|
|
16
22
|
</Typography>
|
|
17
23
|
</EmptyContainer>
|
|
@@ -87,15 +87,13 @@ export const IconContainer = styled(Box)(({ theme }) => ({
|
|
|
87
87
|
alignItems: 'center',
|
|
88
88
|
width: 80,
|
|
89
89
|
height: 80,
|
|
90
|
-
color:
|
|
91
|
-
|
|
92
|
-
? theme.palette.grey[700]
|
|
93
|
-
: theme.palette.grey[300],
|
|
94
|
-
background:
|
|
95
|
-
theme.palette.mode === 'light'
|
|
96
|
-
? theme.palette.grey[200]
|
|
97
|
-
: theme.palette.grey[800],
|
|
90
|
+
color: theme.palette.grey[300],
|
|
91
|
+
background: theme.palette.grey[800],
|
|
98
92
|
borderRadius: '50%',
|
|
93
|
+
...theme.applyStyles('light', {
|
|
94
|
+
color: theme.palette.grey[700],
|
|
95
|
+
background: theme.palette.grey[200],
|
|
96
|
+
}),
|
|
99
97
|
}))
|
|
100
98
|
|
|
101
99
|
export const SheetTitle = styled(Typography)(() => ({
|
|
@@ -120,7 +118,6 @@ export const BookmarksListContainer = styled(ListContainer)(({ theme }) => ({
|
|
|
120
118
|
? { minHeight: 360, height: 360, flexGrow: 1, overflow: 'auto' }
|
|
121
119
|
: { minHeight: 440 }),
|
|
122
120
|
}))
|
|
123
|
-
|
|
124
121
|
export const BookmarkButtonContainer = styled(Box)(({ theme }) => ({
|
|
125
122
|
background: theme.palette.background.default,
|
|
126
123
|
display: 'flex',
|
|
@@ -255,7 +255,11 @@ export const SendToWalletPage = () => {
|
|
|
255
255
|
onClick={handleRecentWalletsClick}
|
|
256
256
|
>
|
|
257
257
|
{!!recentWallets.length && (
|
|
258
|
-
<Typography
|
|
258
|
+
<Typography
|
|
259
|
+
sx={{
|
|
260
|
+
color: 'text.secondary',
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
259
263
|
{recentWallets.length}
|
|
260
264
|
</Typography>
|
|
261
265
|
)}
|
|
@@ -266,7 +270,11 @@ export const SendToWalletPage = () => {
|
|
|
266
270
|
onClick={handleConnectedWalletsClick}
|
|
267
271
|
>
|
|
268
272
|
{!!connectedWallets.length && (
|
|
269
|
-
<Typography
|
|
273
|
+
<Typography
|
|
274
|
+
sx={{
|
|
275
|
+
color: 'text.secondary',
|
|
276
|
+
}}
|
|
277
|
+
>
|
|
270
278
|
{connectedWallets.length}
|
|
271
279
|
</Typography>
|
|
272
280
|
)}
|
|
@@ -277,7 +285,13 @@ export const SendToWalletPage = () => {
|
|
|
277
285
|
onClick={handleBookmarkedWalletsClick}
|
|
278
286
|
>
|
|
279
287
|
{!!bookmarks.length && (
|
|
280
|
-
<Typography
|
|
288
|
+
<Typography
|
|
289
|
+
sx={{
|
|
290
|
+
color: 'text.secondary',
|
|
291
|
+
}}
|
|
292
|
+
>
|
|
293
|
+
{bookmarks.length}
|
|
294
|
+
</Typography>
|
|
281
295
|
)}
|
|
282
296
|
</CardButton>
|
|
283
297
|
</Box>
|
|
@@ -32,15 +32,30 @@ export const ResetSettingsButton: React.FC = () => {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<Box
|
|
35
|
+
<Box
|
|
36
|
+
sx={{
|
|
37
|
+
mt: 2,
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
36
40
|
<ResetButtonContainer>
|
|
37
|
-
<Box
|
|
41
|
+
<Box
|
|
42
|
+
sx={{
|
|
43
|
+
display: 'flex',
|
|
44
|
+
marginBottom: '12px',
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
38
47
|
<InfoRounded
|
|
39
48
|
sx={{
|
|
40
49
|
marginRight: '8px',
|
|
41
50
|
}}
|
|
42
51
|
/>
|
|
43
|
-
<Box
|
|
52
|
+
<Box
|
|
53
|
+
sx={{
|
|
54
|
+
fontSize: 14,
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{t('settings.resetSettings')}
|
|
58
|
+
</Box>
|
|
44
59
|
</Box>
|
|
45
60
|
<Button onClick={toggleDialog} fullWidth>
|
|
46
61
|
{t('button.resetSettings')}
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export const SettingsFieldSet = styled(Box)(({ theme }) => ({
|
|
12
12
|
display: 'flex',
|
|
13
|
-
backgroundColor:
|
|
14
|
-
theme.palette.mode === 'light'
|
|
15
|
-
? alpha(theme.palette.common.black, 0.04)
|
|
16
|
-
: alpha(theme.palette.common.white, 0.08),
|
|
13
|
+
backgroundColor: alpha(theme.palette.common.white, 0.08),
|
|
17
14
|
borderRadius: theme.shape.borderRadius,
|
|
18
15
|
padding: theme.spacing(0.5),
|
|
19
16
|
gap: theme.spacing(0.5),
|
|
20
17
|
height: '3.5rem',
|
|
18
|
+
...theme.applyStyles('light', {
|
|
19
|
+
backgroundColor: alpha(theme.palette.common.black, 0.04),
|
|
20
|
+
}),
|
|
21
21
|
}))
|
|
22
22
|
|
|
23
23
|
const slippageControlSelected = (theme: Theme) => ({
|
|
@@ -69,7 +69,6 @@ export const SlippageCustomInput = styled(InputBase)<SlippageDefaultProps>(
|
|
|
69
69
|
return {
|
|
70
70
|
height: '100%',
|
|
71
71
|
width: '100%',
|
|
72
|
-
|
|
73
72
|
[`.${inputBaseClasses.input}`]: {
|
|
74
73
|
height: '100%',
|
|
75
74
|
width: '100%',
|
|
@@ -82,7 +82,11 @@ export const SlippageSettings: React.FC = () => {
|
|
|
82
82
|
icon={<Percent />}
|
|
83
83
|
title={t('settings.slippage')}
|
|
84
84
|
>
|
|
85
|
-
<Box
|
|
85
|
+
<Box
|
|
86
|
+
sx={{
|
|
87
|
+
mt: 1.5,
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
86
90
|
<SettingsFieldSet>
|
|
87
91
|
<SlippageDefaultButton
|
|
88
92
|
selected={defaultSlippage === slippage && focused !== 'input'}
|
|
@@ -115,7 +119,12 @@ export const SlippageSettings: React.FC = () => {
|
|
|
115
119
|
{isSlippageOutsideRecommendedLimits && (
|
|
116
120
|
<SlippageLimitsWarningContainer>
|
|
117
121
|
<WarningRounded color="warning" />
|
|
118
|
-
<Typography
|
|
122
|
+
<Typography
|
|
123
|
+
sx={{
|
|
124
|
+
fontSize: 13,
|
|
125
|
+
fontWeight: 400,
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
119
128
|
{t('warning.message.slippageOutsideRecommendedLimits')}
|
|
120
129
|
</Typography>
|
|
121
130
|
</SlippageLimitsWarningContainer>
|
|
@@ -82,17 +82,25 @@ export const TransactionDetailsPage: React.FC = () => {
|
|
|
82
82
|
<PageContainer bottomGutters>
|
|
83
83
|
<Box
|
|
84
84
|
sx={{
|
|
85
|
+
pb: 1,
|
|
85
86
|
display: 'flex',
|
|
86
87
|
justifyContent: 'space-between',
|
|
87
88
|
}}
|
|
88
|
-
pb={1}
|
|
89
89
|
>
|
|
90
|
-
<Typography
|
|
90
|
+
<Typography
|
|
91
|
+
sx={{
|
|
92
|
+
fontSize: 12,
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
91
95
|
{startedAt.toLocaleString(i18n.language, {
|
|
92
96
|
dateStyle: 'long',
|
|
93
97
|
})}
|
|
94
98
|
</Typography>
|
|
95
|
-
<Typography
|
|
99
|
+
<Typography
|
|
100
|
+
sx={{
|
|
101
|
+
fontSize: 12,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
96
104
|
{startedAt.toLocaleString(i18n.language, {
|
|
97
105
|
timeStyle: 'short',
|
|
98
106
|
})}
|
|
@@ -111,7 +119,11 @@ export const TransactionDetailsPage: React.FC = () => {
|
|
|
111
119
|
/>
|
|
112
120
|
) : null}
|
|
113
121
|
<TransferIdCard transferId={supportId} />
|
|
114
|
-
<Box
|
|
122
|
+
<Box
|
|
123
|
+
sx={{
|
|
124
|
+
mt: 2,
|
|
125
|
+
}}
|
|
126
|
+
>
|
|
115
127
|
<ContactSupportButton supportId={supportId} />
|
|
116
128
|
</Box>
|
|
117
129
|
</PageContainer>
|
|
@@ -8,38 +8,54 @@ export const TransactionDetailsSkeleton = () => {
|
|
|
8
8
|
<PageContainer>
|
|
9
9
|
<Box
|
|
10
10
|
sx={{
|
|
11
|
+
pb: 1,
|
|
12
|
+
pt: 0.75,
|
|
11
13
|
display: 'flex',
|
|
12
14
|
flex: 1,
|
|
13
15
|
justifyContent: 'space-between',
|
|
14
16
|
}}
|
|
15
|
-
pb={1}
|
|
16
|
-
pt={0.75}
|
|
17
17
|
>
|
|
18
18
|
<Skeleton width={96} height={20} variant="text" />
|
|
19
19
|
<Skeleton width={40} height={20} variant="text" />
|
|
20
20
|
</Box>
|
|
21
21
|
<Card sx={{ paddingX: 2, marginBottom: 3 }}>
|
|
22
|
-
<Box
|
|
22
|
+
<Box
|
|
23
|
+
sx={{
|
|
24
|
+
pt: 2.5,
|
|
25
|
+
}}
|
|
26
|
+
>
|
|
23
27
|
<Skeleton width={64} height={12} variant="rounded" />
|
|
24
28
|
</Box>
|
|
25
|
-
<Box
|
|
29
|
+
<Box
|
|
30
|
+
sx={{
|
|
31
|
+
py: 1,
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
26
34
|
{/* Token skeleton */}
|
|
27
|
-
<Box
|
|
35
|
+
<Box
|
|
36
|
+
sx={{
|
|
37
|
+
py: 1,
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
28
40
|
<TokenSkeleton />
|
|
29
41
|
</Box>
|
|
30
42
|
{/* Bridge skeleton */}
|
|
31
|
-
<Box
|
|
43
|
+
<Box
|
|
44
|
+
sx={{
|
|
45
|
+
py: 1,
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
32
48
|
<TokenSkeleton disableDescription />
|
|
33
49
|
</Box>
|
|
34
50
|
{/* Steps skeleton */}
|
|
35
51
|
{Array.from({ length: 3 }).map((_, key) => (
|
|
36
52
|
<Box
|
|
53
|
+
key={key}
|
|
37
54
|
sx={{
|
|
55
|
+
py: 1,
|
|
38
56
|
display: 'flex',
|
|
39
57
|
alignItems: 'center',
|
|
40
58
|
}}
|
|
41
|
-
py={1}
|
|
42
|
-
key={key}
|
|
43
59
|
>
|
|
44
60
|
<Skeleton
|
|
45
61
|
variant="rounded"
|
|
@@ -60,7 +76,11 @@ export const TransactionDetailsSkeleton = () => {
|
|
|
60
76
|
</Box>
|
|
61
77
|
))}
|
|
62
78
|
{/* Receiving Token skeleton */}
|
|
63
|
-
<Box
|
|
79
|
+
<Box
|
|
80
|
+
sx={{
|
|
81
|
+
py: 1,
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
64
84
|
<TokenSkeleton />
|
|
65
85
|
</Box>
|
|
66
86
|
</Box>
|
|
@@ -55,10 +55,12 @@ export const TransferIdCard = ({ transferId }: TransferIdCardProps) => {
|
|
|
55
55
|
</Box>
|
|
56
56
|
<Typography
|
|
57
57
|
variant="body2"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
sx={{
|
|
59
|
+
pt: 1,
|
|
60
|
+
pb: 2,
|
|
61
|
+
px: 2,
|
|
62
|
+
wordBreak: 'break-all',
|
|
63
|
+
}}
|
|
62
64
|
>
|
|
63
65
|
{transferId}
|
|
64
66
|
</Typography>
|
|
@@ -15,17 +15,28 @@ export const TransactionHistoryEmpty: React.FC = () => {
|
|
|
15
15
|
paddingY: 12,
|
|
16
16
|
}}
|
|
17
17
|
>
|
|
18
|
-
<Typography
|
|
18
|
+
<Typography
|
|
19
|
+
sx={{
|
|
20
|
+
fontSize: 48,
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
19
23
|
<ReceiptLongRounded fontSize="inherit" />
|
|
20
24
|
</Typography>
|
|
21
|
-
<Typography
|
|
25
|
+
<Typography
|
|
26
|
+
sx={{
|
|
27
|
+
fontSize: 18,
|
|
28
|
+
fontWeight: 700,
|
|
29
|
+
}}
|
|
30
|
+
>
|
|
22
31
|
{t('info.title.emptyTransactionHistory')}
|
|
23
32
|
</Typography>
|
|
24
33
|
<Typography
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
sx={{
|
|
35
|
+
fontSize: 14,
|
|
36
|
+
color: 'text.secondary',
|
|
37
|
+
textAlign: 'center',
|
|
38
|
+
mt: 2,
|
|
39
|
+
}}
|
|
29
40
|
>
|
|
30
41
|
{t('info.message.emptyTransactionHistory')}
|
|
31
42
|
</Typography>
|
|
@@ -71,25 +71,43 @@ export const TransactionHistoryItem: React.FC<{
|
|
|
71
71
|
>
|
|
72
72
|
<Box
|
|
73
73
|
sx={{
|
|
74
|
+
pt: 1.75,
|
|
75
|
+
px: 2,
|
|
74
76
|
display: 'flex',
|
|
75
77
|
flex: 1,
|
|
76
78
|
justifyContent: 'space-between',
|
|
77
79
|
}}
|
|
78
|
-
pt={1.75}
|
|
79
|
-
px={2}
|
|
80
80
|
>
|
|
81
|
-
<Typography
|
|
81
|
+
<Typography
|
|
82
|
+
sx={{
|
|
83
|
+
fontSize: 12,
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
82
86
|
{startedAt.toLocaleString(i18n.language, { dateStyle: 'long' })}
|
|
83
87
|
</Typography>
|
|
84
|
-
<Typography
|
|
88
|
+
<Typography
|
|
89
|
+
sx={{
|
|
90
|
+
fontSize: 12,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
85
93
|
{startedAt.toLocaleString(i18n.language, {
|
|
86
94
|
timeStyle: 'short',
|
|
87
95
|
})}
|
|
88
96
|
</Typography>
|
|
89
97
|
</Box>
|
|
90
|
-
<Box
|
|
98
|
+
<Box
|
|
99
|
+
sx={{
|
|
100
|
+
px: 2,
|
|
101
|
+
py: 2,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
91
104
|
<Token token={fromToken} />
|
|
92
|
-
<Box
|
|
105
|
+
<Box
|
|
106
|
+
sx={{
|
|
107
|
+
pl: 2.375,
|
|
108
|
+
py: 0.5,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
93
111
|
<TokenDivider />
|
|
94
112
|
</Box>
|
|
95
113
|
<Token token={toToken} />
|
|
@@ -12,12 +12,12 @@ export const TransactionHistoryItemSkeleton = () => {
|
|
|
12
12
|
>
|
|
13
13
|
<Box
|
|
14
14
|
sx={{
|
|
15
|
+
pt: 2,
|
|
16
|
+
px: 2,
|
|
15
17
|
display: 'flex',
|
|
16
18
|
flex: 1,
|
|
17
19
|
justifyContent: 'space-between',
|
|
18
20
|
}}
|
|
19
|
-
pt={2}
|
|
20
|
-
px={2}
|
|
21
21
|
>
|
|
22
22
|
<Skeleton
|
|
23
23
|
variant="rectangular"
|
|
@@ -36,9 +36,19 @@ export const TransactionHistoryItemSkeleton = () => {
|
|
|
36
36
|
})}
|
|
37
37
|
/>
|
|
38
38
|
</Box>
|
|
39
|
-
<Box
|
|
39
|
+
<Box
|
|
40
|
+
sx={{
|
|
41
|
+
px: 2,
|
|
42
|
+
py: 2,
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
40
45
|
<TokenSkeleton />
|
|
41
|
-
<Box
|
|
46
|
+
<Box
|
|
47
|
+
sx={{
|
|
48
|
+
pl: 2.375,
|
|
49
|
+
py: 0.5,
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
42
52
|
<TokenDivider />
|
|
43
53
|
</Box>
|
|
44
54
|
<TokenSkeleton />
|
|
@@ -106,19 +106,46 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
106
106
|
).toFixed(2)
|
|
107
107
|
|
|
108
108
|
return (
|
|
109
|
-
<Box
|
|
109
|
+
<Box
|
|
110
|
+
ref={ref}
|
|
111
|
+
sx={{
|
|
112
|
+
p: 3,
|
|
113
|
+
}}
|
|
114
|
+
>
|
|
110
115
|
<CenterContainer>
|
|
111
116
|
<IconCircle status="warning" mb={1}>
|
|
112
117
|
<WarningRounded color="warning" />
|
|
113
118
|
</IconCircle>
|
|
114
|
-
<Typography
|
|
119
|
+
<Typography
|
|
120
|
+
sx={{
|
|
121
|
+
py: 1,
|
|
122
|
+
fontSize: 18,
|
|
123
|
+
fontWeight: 700,
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
115
126
|
{t('warning.title.rateChanged')}
|
|
116
127
|
</Typography>
|
|
117
128
|
</CenterContainer>
|
|
118
|
-
<Typography
|
|
119
|
-
|
|
129
|
+
<Typography
|
|
130
|
+
sx={{
|
|
131
|
+
py: 1,
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
{t('warning.message.rateChanged')}
|
|
135
|
+
</Typography>
|
|
136
|
+
<Box
|
|
137
|
+
sx={{
|
|
138
|
+
display: 'flex',
|
|
139
|
+
justifyContent: 'space-between',
|
|
140
|
+
mt: 1,
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
120
143
|
<Typography>{t('main.quotedAmount')}</Typography>
|
|
121
|
-
<Typography
|
|
144
|
+
<Typography
|
|
145
|
+
sx={{
|
|
146
|
+
fontWeight: 600,
|
|
147
|
+
}}
|
|
148
|
+
>
|
|
122
149
|
{t('format.number', {
|
|
123
150
|
value: formatTokenAmount(
|
|
124
151
|
BigInt(data.oldToAmount),
|
|
@@ -128,9 +155,19 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
128
155
|
{data?.toToken.symbol}
|
|
129
156
|
</Typography>
|
|
130
157
|
</Box>
|
|
131
|
-
<Box
|
|
158
|
+
<Box
|
|
159
|
+
sx={{
|
|
160
|
+
display: 'flex',
|
|
161
|
+
justifyContent: 'space-between',
|
|
162
|
+
mt: 0.25,
|
|
163
|
+
}}
|
|
164
|
+
>
|
|
132
165
|
<Typography>{t('main.currentAmount')}</Typography>
|
|
133
|
-
<Typography
|
|
166
|
+
<Typography
|
|
167
|
+
sx={{
|
|
168
|
+
fontWeight: 600,
|
|
169
|
+
}}
|
|
170
|
+
>
|
|
134
171
|
{t('format.number', {
|
|
135
172
|
value: formatTokenAmount(
|
|
136
173
|
BigInt(data?.newToAmount),
|
|
@@ -140,15 +177,37 @@ const ExchangeRateBottomSheetContent: React.FC<
|
|
|
140
177
|
{data?.toToken.symbol}
|
|
141
178
|
</Typography>
|
|
142
179
|
</Box>
|
|
143
|
-
<Box
|
|
180
|
+
<Box
|
|
181
|
+
sx={{
|
|
182
|
+
display: 'flex',
|
|
183
|
+
justifyContent: 'space-between',
|
|
184
|
+
mt: 0.25,
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
144
187
|
<Typography>{t('main.rateChange')}</Typography>
|
|
145
|
-
<Typography
|
|
188
|
+
<Typography
|
|
189
|
+
sx={{
|
|
190
|
+
fontWeight: 600,
|
|
191
|
+
}}
|
|
192
|
+
>
|
|
193
|
+
{rateChange}%
|
|
194
|
+
</Typography>
|
|
146
195
|
</Box>
|
|
147
|
-
<Box
|
|
196
|
+
<Box
|
|
197
|
+
sx={{
|
|
198
|
+
display: 'flex',
|
|
199
|
+
mt: 3,
|
|
200
|
+
}}
|
|
201
|
+
>
|
|
148
202
|
<Button variant="text" onClick={onCancel} fullWidth>
|
|
149
203
|
{t('button.cancel')}
|
|
150
204
|
</Button>
|
|
151
|
-
<Box
|
|
205
|
+
<Box
|
|
206
|
+
sx={{
|
|
207
|
+
display: 'flex',
|
|
208
|
+
p: 1,
|
|
209
|
+
}}
|
|
210
|
+
/>
|
|
152
211
|
<Button variant="contained" onClick={onContinue} fullWidth>
|
|
153
212
|
{t('button.continue')}
|
|
154
213
|
</Button>
|
|
@@ -249,7 +249,12 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
249
249
|
(contractCompactComponent || contractSecondaryComponent)
|
|
250
250
|
|
|
251
251
|
return (
|
|
252
|
-
<Box
|
|
252
|
+
<Box
|
|
253
|
+
ref={ref}
|
|
254
|
+
sx={{
|
|
255
|
+
p: 3,
|
|
256
|
+
}}
|
|
257
|
+
>
|
|
253
258
|
{!showContractComponent ? (
|
|
254
259
|
<CenterContainer>
|
|
255
260
|
<IconCircle status={status} mb={1}>
|
|
@@ -270,7 +275,13 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
270
275
|
</CenterContainer>
|
|
271
276
|
) : null}
|
|
272
277
|
<CenterContainer>
|
|
273
|
-
<Typography
|
|
278
|
+
<Typography
|
|
279
|
+
sx={{
|
|
280
|
+
py: 1,
|
|
281
|
+
fontSize: 18,
|
|
282
|
+
fontWeight: 700,
|
|
283
|
+
}}
|
|
284
|
+
>
|
|
274
285
|
{title}
|
|
275
286
|
</Typography>
|
|
276
287
|
</CenterContainer>
|
|
@@ -285,13 +296,25 @@ export const StatusBottomSheetContent: React.FC<
|
|
|
285
296
|
)}
|
|
286
297
|
{!showContractComponent ? (
|
|
287
298
|
primaryMessage ? (
|
|
288
|
-
<Typography
|
|
299
|
+
<Typography
|
|
300
|
+
sx={{
|
|
301
|
+
py: 1,
|
|
302
|
+
}}
|
|
303
|
+
>
|
|
304
|
+
{primaryMessage}
|
|
305
|
+
</Typography>
|
|
289
306
|
) : (
|
|
290
307
|
<MessageSkeleton />
|
|
291
308
|
)
|
|
292
309
|
) : null}
|
|
293
310
|
{secondaryMessage ? (
|
|
294
|
-
<Typography
|
|
311
|
+
<Typography
|
|
312
|
+
sx={{
|
|
313
|
+
py: 1,
|
|
314
|
+
}}
|
|
315
|
+
>
|
|
316
|
+
{secondaryMessage}
|
|
317
|
+
</Typography>
|
|
295
318
|
) : null}
|
|
296
319
|
<Box sx={{ display: 'flex', marginTop: 2, gap: 1.5 }}>
|
|
297
320
|
{hasEnumFlag(status, RouteExecutionStatus.Done) ? (
|