@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
|
@@ -9,13 +9,10 @@ import {
|
|
|
9
9
|
|
|
10
10
|
export const Select = styled(MuiSelect, {
|
|
11
11
|
shouldForwardProp: (prop) => prop !== 'dense',
|
|
12
|
-
})<{ dense?: boolean }>(({ theme
|
|
13
|
-
backgroundColor:
|
|
14
|
-
theme.palette.mode === 'light'
|
|
15
|
-
? theme.palette.common.white
|
|
16
|
-
: theme.palette.background.paper,
|
|
12
|
+
})<{ dense?: boolean }>(({ theme }) => ({
|
|
13
|
+
backgroundColor: theme.palette.background.paper,
|
|
17
14
|
[`.${inputBaseClasses.input}`]: {
|
|
18
|
-
padding:
|
|
15
|
+
padding: theme.spacing(2),
|
|
19
16
|
display: 'flex',
|
|
20
17
|
alignItems: 'center',
|
|
21
18
|
},
|
|
@@ -29,4 +26,17 @@ export const Select = styled(MuiSelect, {
|
|
|
29
26
|
[`.${outlinedInputClasses.notchedOutline}`]: {
|
|
30
27
|
display: 'none',
|
|
31
28
|
},
|
|
29
|
+
...theme.applyStyles('light', {
|
|
30
|
+
backgroundColor: theme.palette.common.white,
|
|
31
|
+
}),
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
props: ({ dense }) => dense,
|
|
35
|
+
style: {
|
|
36
|
+
[`.${inputBaseClasses.input}`]: {
|
|
37
|
+
padding: theme.spacing(1.625, 2, 1.5, 2),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
32
42
|
}))
|
|
@@ -16,28 +16,54 @@ export const SelectTokenCardHeader = styled(CardHeader, {
|
|
|
16
16
|
({ theme, selected, compact }) => ({
|
|
17
17
|
padding: theme.spacing(2),
|
|
18
18
|
[`.${cardHeaderClasses.title}`]: {
|
|
19
|
-
color:
|
|
20
|
-
? theme.palette.text.primary
|
|
21
|
-
: theme.palette.text.secondary,
|
|
19
|
+
color: theme.palette.text.secondary,
|
|
22
20
|
textOverflow: 'ellipsis',
|
|
23
21
|
whiteSpace: 'nowrap',
|
|
24
22
|
overflow: 'hidden',
|
|
25
|
-
width:
|
|
23
|
+
width: 256,
|
|
26
24
|
fontSize: compact && !selected ? 16 : 18,
|
|
27
|
-
fontWeight:
|
|
25
|
+
fontWeight: 500,
|
|
28
26
|
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
29
|
-
width:
|
|
27
|
+
width: 224,
|
|
30
28
|
},
|
|
31
29
|
},
|
|
32
30
|
[`.${cardHeaderClasses.subheader}`]: {
|
|
33
31
|
textOverflow: 'ellipsis',
|
|
34
32
|
whiteSpace: 'nowrap',
|
|
35
33
|
overflow: 'hidden',
|
|
36
|
-
width:
|
|
34
|
+
width: 256,
|
|
37
35
|
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
38
|
-
width:
|
|
36
|
+
width: 224,
|
|
39
37
|
},
|
|
40
38
|
},
|
|
39
|
+
variants: [
|
|
40
|
+
{
|
|
41
|
+
props: ({ selected }) => selected,
|
|
42
|
+
style: {
|
|
43
|
+
[`.${cardHeaderClasses.title}`]: {
|
|
44
|
+
color: theme.palette.text.primary,
|
|
45
|
+
fontWeight: 600,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
props: ({ compact }) => compact,
|
|
51
|
+
style: {
|
|
52
|
+
[`.${cardHeaderClasses.title}`]: {
|
|
53
|
+
width: 96,
|
|
54
|
+
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
55
|
+
width: 96,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
[`.${cardHeaderClasses.subheader}`]: {
|
|
59
|
+
width: 96,
|
|
60
|
+
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
61
|
+
width: 96,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
41
67
|
})
|
|
42
68
|
)
|
|
43
69
|
|
|
@@ -3,26 +3,26 @@ import { CardHeader } from '../Card/CardHeader.js'
|
|
|
3
3
|
|
|
4
4
|
export const SendToWalletCardHeader = styled(CardHeader, {
|
|
5
5
|
shouldForwardProp: (prop) => !['selected'].includes(prop as string),
|
|
6
|
-
})<{ selected?: boolean }>(({ theme
|
|
6
|
+
})<{ selected?: boolean }>(({ theme }) => ({
|
|
7
7
|
width: '100%',
|
|
8
8
|
[`.${cardHeaderClasses.title}`]: {
|
|
9
|
-
color:
|
|
9
|
+
color: theme.palette.text.secondary,
|
|
10
10
|
textOverflow: 'ellipsis',
|
|
11
11
|
whiteSpace: 'nowrap',
|
|
12
12
|
overflow: 'hidden',
|
|
13
|
-
fontWeight:
|
|
14
|
-
width:
|
|
13
|
+
fontWeight: 500,
|
|
14
|
+
width: 254,
|
|
15
15
|
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
16
|
-
width:
|
|
16
|
+
width: 224,
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
[`.${cardHeaderClasses.subheader}`]: {
|
|
20
20
|
textOverflow: 'ellipsis',
|
|
21
21
|
whiteSpace: 'nowrap',
|
|
22
22
|
overflow: 'hidden',
|
|
23
|
-
width:
|
|
23
|
+
width: 254,
|
|
24
24
|
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
25
|
-
width:
|
|
25
|
+
width: 224,
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
[`.${cardHeaderClasses.action}`]: {
|
|
@@ -31,4 +31,25 @@ export const SendToWalletCardHeader = styled(CardHeader, {
|
|
|
31
31
|
[`.${cardHeaderClasses.action} > button`]: {
|
|
32
32
|
fontSize: 16,
|
|
33
33
|
},
|
|
34
|
+
variants: [
|
|
35
|
+
{
|
|
36
|
+
props: ({ selected }) => selected,
|
|
37
|
+
style: {
|
|
38
|
+
[`.${cardHeaderClasses.title}`]: {
|
|
39
|
+
color: theme.palette.text.primary,
|
|
40
|
+
fontWeight: 600,
|
|
41
|
+
width: 224,
|
|
42
|
+
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
43
|
+
width: 192,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
[`.${cardHeaderClasses.subheader}`]: {
|
|
47
|
+
width: 224,
|
|
48
|
+
[theme.breakpoints.down(theme.breakpoints.values.sm)]: {
|
|
49
|
+
width: 192,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
34
55
|
}))
|
|
@@ -28,7 +28,14 @@ import { SendToWalletCardHeader } from './SendToWallet.style.js'
|
|
|
28
28
|
export const SendToWalletButton: React.FC<CardProps> = (props) => {
|
|
29
29
|
const { t } = useTranslation()
|
|
30
30
|
const navigate = useNavigate()
|
|
31
|
-
const {
|
|
31
|
+
const {
|
|
32
|
+
disabledUI,
|
|
33
|
+
hiddenUI,
|
|
34
|
+
toAddress,
|
|
35
|
+
toAddresses,
|
|
36
|
+
subvariant,
|
|
37
|
+
subvariantOptions,
|
|
38
|
+
} = useWidgetConfig()
|
|
32
39
|
const { showSendToWallet } = useSendToWalletStore()
|
|
33
40
|
const [toAddressFieldValue, toChainId, toTokenAddress] = useFieldValues(
|
|
34
41
|
'toAddress',
|
|
@@ -114,6 +121,11 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
|
|
|
114
121
|
const isOpenCollapse =
|
|
115
122
|
requiredToAddress || (showSendToWallet && !hiddenToAddress)
|
|
116
123
|
|
|
124
|
+
const title =
|
|
125
|
+
subvariant === 'custom' && subvariantOptions?.custom === 'deposit'
|
|
126
|
+
? t('header.depositTo')
|
|
127
|
+
: t('header.sendToWallet')
|
|
128
|
+
|
|
117
129
|
return (
|
|
118
130
|
<Collapse
|
|
119
131
|
timeout={collapseTransitionTime.current}
|
|
@@ -127,10 +139,14 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
|
|
|
127
139
|
onClick={disabledForChanges ? undefined : handleOnClick}
|
|
128
140
|
sx={{ width: '100%', ...props.sx }}
|
|
129
141
|
>
|
|
130
|
-
<CardTitle required={requiredToAddress}>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
142
|
+
<CardTitle required={requiredToAddress}>{title}</CardTitle>
|
|
143
|
+
<Box
|
|
144
|
+
sx={{
|
|
145
|
+
display: 'flex',
|
|
146
|
+
justifyContent: 'center',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
134
150
|
<SendToWalletCardHeader
|
|
135
151
|
avatar={
|
|
136
152
|
<AccountAvatar
|
|
@@ -13,7 +13,12 @@ export const DestinationWalletAddress: React.FC<{
|
|
|
13
13
|
const { t } = useTranslation()
|
|
14
14
|
const isDone = step.execution?.status === 'DONE'
|
|
15
15
|
return (
|
|
16
|
-
<Box
|
|
16
|
+
<Box
|
|
17
|
+
sx={{
|
|
18
|
+
px: 2,
|
|
19
|
+
py: 1,
|
|
20
|
+
}}
|
|
21
|
+
>
|
|
17
22
|
<Box
|
|
18
23
|
sx={{
|
|
19
24
|
display: 'flex',
|
|
@@ -29,7 +34,14 @@ export const DestinationWalletAddress: React.FC<{
|
|
|
29
34
|
}}
|
|
30
35
|
/>
|
|
31
36
|
</CircularIcon>
|
|
32
|
-
<Typography
|
|
37
|
+
<Typography
|
|
38
|
+
sx={{
|
|
39
|
+
mx: 2,
|
|
40
|
+
flex: 1,
|
|
41
|
+
fontSize: 14,
|
|
42
|
+
fontWeight: 400,
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
33
45
|
{isDone
|
|
34
46
|
? t('main.sentToAddress', {
|
|
35
47
|
address: toAddress,
|
|
@@ -58,8 +58,8 @@ export const Step: React.FC<{
|
|
|
58
58
|
default:
|
|
59
59
|
return subvariant === 'custom'
|
|
60
60
|
? subvariantOptions?.custom === 'deposit'
|
|
61
|
-
? t('main.
|
|
62
|
-
: t('main.
|
|
61
|
+
? t('main.stepDeposit')
|
|
62
|
+
: t('main.stepBuy')
|
|
63
63
|
: t('main.stepSwap')
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -82,7 +82,11 @@ export const Step: React.FC<{
|
|
|
82
82
|
<StepTimer step={step} />
|
|
83
83
|
</CardTitle>
|
|
84
84
|
</Box>
|
|
85
|
-
<Box
|
|
85
|
+
<Box
|
|
86
|
+
sx={{
|
|
87
|
+
py: 1,
|
|
88
|
+
}}
|
|
89
|
+
>
|
|
86
90
|
{fromToken ? <Token token={fromToken} px={2} py={1} /> : null}
|
|
87
91
|
<StepActions step={step} px={2} py={1} dense />
|
|
88
92
|
{step.execution?.process.map((process, index) => (
|
|
@@ -14,7 +14,12 @@ export const StepProcess: React.FC<{
|
|
|
14
14
|
const { getTransactionLink } = useExplorer()
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
|
-
<Box
|
|
17
|
+
<Box
|
|
18
|
+
sx={{
|
|
19
|
+
px: 2,
|
|
20
|
+
py: 1,
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
18
23
|
<Box
|
|
19
24
|
sx={{
|
|
20
25
|
display: 'flex',
|
|
@@ -23,10 +28,12 @@ export const StepProcess: React.FC<{
|
|
|
23
28
|
>
|
|
24
29
|
<CircularProgress process={process} />
|
|
25
30
|
<Typography
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
sx={{
|
|
32
|
+
mx: 2,
|
|
33
|
+
flex: 1,
|
|
34
|
+
fontSize: 14,
|
|
35
|
+
fontWeight: process.error ? 600 : 400,
|
|
36
|
+
}}
|
|
30
37
|
>
|
|
31
38
|
{title}
|
|
32
39
|
</Typography>
|
|
@@ -54,10 +61,12 @@ export const StepProcess: React.FC<{
|
|
|
54
61
|
</Box>
|
|
55
62
|
{message ? (
|
|
56
63
|
<Typography
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
sx={{
|
|
65
|
+
ml: 7,
|
|
66
|
+
fontSize: 14,
|
|
67
|
+
fontWeight: 500,
|
|
68
|
+
color: 'text.secondary',
|
|
69
|
+
}}
|
|
61
70
|
>
|
|
62
71
|
{message}
|
|
63
72
|
</Typography>
|
|
@@ -111,11 +111,15 @@ const StepTimerContent: FC<PropsWithChildren> = ({ children }) => {
|
|
|
111
111
|
const { t } = useTranslation()
|
|
112
112
|
return (
|
|
113
113
|
<Tooltip title={t('tooltip.estimatedTime')} sx={{ cursor: 'help' }}>
|
|
114
|
-
<Box
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
<Box
|
|
115
|
+
component="span"
|
|
116
|
+
sx={{
|
|
117
|
+
display: 'flex',
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
height: 14,
|
|
120
|
+
}}
|
|
121
|
+
>
|
|
122
|
+
<IconTypography as="span" sx={{ marginRight: 0.5, fontSize: 16 }}>
|
|
119
123
|
<AccessTimeFilled fontSize="inherit" />
|
|
120
124
|
</IconTypography>
|
|
121
125
|
<Box
|
|
@@ -18,10 +18,10 @@ export const StepConnector = styled(MuiStepConnector, {
|
|
|
18
18
|
[`.${stepConnectorClasses.line}`]: {
|
|
19
19
|
minHeight: 8,
|
|
20
20
|
borderLeftWidth: 2,
|
|
21
|
-
borderColor:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
borderColor: alpha(theme.palette.common.white, 0.16),
|
|
22
|
+
...theme.applyStyles('light', {
|
|
23
|
+
borderColor: alpha(theme.palette.common.black, 0.12),
|
|
24
|
+
}),
|
|
25
25
|
},
|
|
26
26
|
}))
|
|
27
27
|
|
|
@@ -55,16 +55,22 @@ export const StepLabelTypography = styled(Typography)(({ theme }) => ({
|
|
|
55
55
|
|
|
56
56
|
export const StepContent = styled(Box, {
|
|
57
57
|
shouldForwardProp: (prop) => !['last'].includes(prop as string),
|
|
58
|
-
})<{ last: boolean }>(({ theme
|
|
59
|
-
borderLeft:
|
|
60
|
-
? 'none'
|
|
61
|
-
: `2px solid ${
|
|
62
|
-
theme.palette.mode === 'light'
|
|
63
|
-
? alpha(theme.palette.common.black, 0.12)
|
|
64
|
-
: alpha(theme.palette.common.white, 0.16)
|
|
65
|
-
}`,
|
|
58
|
+
})<{ last: boolean }>(({ theme }) => ({
|
|
59
|
+
borderLeft: `2px solid ${alpha(theme.palette.common.white, 0.16)}`,
|
|
66
60
|
margin: theme.spacing(0, 0, 0, 2.375),
|
|
67
|
-
paddingLeft:
|
|
61
|
+
paddingLeft: theme.spacing(4.375),
|
|
62
|
+
variants: [
|
|
63
|
+
{
|
|
64
|
+
props: ({ last }) => last,
|
|
65
|
+
style: {
|
|
66
|
+
borderLeft: 'none',
|
|
67
|
+
paddingLeft: theme.spacing(4.625),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
...theme.applyStyles('light', {
|
|
72
|
+
borderLeft: `2px solid ${alpha(theme.palette.common.black, 0.12)}`,
|
|
73
|
+
}),
|
|
68
74
|
}))
|
|
69
75
|
|
|
70
76
|
export const StepAvatar = styled(AvatarMasked)(({ theme }) => ({
|
|
@@ -58,7 +58,12 @@ export const StepActions: React.FC<StepActionsProps> = ({
|
|
|
58
58
|
|
|
59
59
|
return (
|
|
60
60
|
<Box {...other}>
|
|
61
|
-
<Box
|
|
61
|
+
<Box
|
|
62
|
+
sx={{
|
|
63
|
+
display: 'flex',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
62
67
|
<Badge
|
|
63
68
|
overlap="circular"
|
|
64
69
|
anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
|
|
@@ -72,8 +77,19 @@ export const StepActions: React.FC<StepActionsProps> = ({
|
|
|
72
77
|
{toolDetails.name[0]}
|
|
73
78
|
</StepAvatar>
|
|
74
79
|
</Badge>
|
|
75
|
-
<Box
|
|
76
|
-
|
|
80
|
+
<Box
|
|
81
|
+
sx={{
|
|
82
|
+
flex: 1,
|
|
83
|
+
}}
|
|
84
|
+
>
|
|
85
|
+
<Typography
|
|
86
|
+
sx={{
|
|
87
|
+
fontSize: 18,
|
|
88
|
+
fontWeight: 600,
|
|
89
|
+
lineHeight: 1.3334,
|
|
90
|
+
ml: 2,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
77
93
|
{toolDetails.name?.includes('LI.FI')
|
|
78
94
|
? toolDetails.name
|
|
79
95
|
: t('main.stepDetails', {
|
|
@@ -146,7 +162,11 @@ export const IncludedSteps: React.FC<IncludedStepsProps> = ({ step }) => {
|
|
|
146
162
|
}
|
|
147
163
|
|
|
148
164
|
return (
|
|
149
|
-
<Box
|
|
165
|
+
<Box
|
|
166
|
+
sx={{
|
|
167
|
+
mt: 1,
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
150
170
|
<Stepper
|
|
151
171
|
orientation="vertical"
|
|
152
172
|
connector={<StepConnector />}
|
|
@@ -212,12 +232,14 @@ export const StepDetailsContent: React.FC<{
|
|
|
212
232
|
|
|
213
233
|
return (
|
|
214
234
|
<Typography
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
235
|
+
sx={{
|
|
236
|
+
fontSize: 12,
|
|
237
|
+
lineHeight: 1,
|
|
238
|
+
fontWeight: '500',
|
|
239
|
+
color: 'text.secondary',
|
|
240
|
+
alignItems: 'center',
|
|
241
|
+
display: 'flex',
|
|
242
|
+
}}
|
|
221
243
|
>
|
|
222
244
|
{!showToAmount ? (
|
|
223
245
|
<>
|
|
@@ -31,11 +31,16 @@ export const StepFees: React.FC<
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<Typography
|
|
34
|
-
fontSize={12}
|
|
35
|
-
fontWeight="500"
|
|
36
|
-
color="text.secondary"
|
|
37
|
-
lineHeight={1.3334}
|
|
38
34
|
{...other}
|
|
35
|
+
sx={[
|
|
36
|
+
{
|
|
37
|
+
fontSize: 12,
|
|
38
|
+
fontWeight: '500',
|
|
39
|
+
color: 'text.secondary',
|
|
40
|
+
lineHeight: 1.3334,
|
|
41
|
+
},
|
|
42
|
+
...(Array.isArray(other.sx) ? other.sx : [other.sx]),
|
|
43
|
+
]}
|
|
39
44
|
>
|
|
40
45
|
{t('format.currency', { value: fees })}{' '}
|
|
41
46
|
{isDone ? t('main.fees.paid') : t('main.fees.estimated')}
|
|
@@ -31,13 +31,16 @@ export const Switch = styled(MuiSwitch)(({ theme }) => ({
|
|
|
31
31
|
borderColor: theme.palette.common.white,
|
|
32
32
|
},
|
|
33
33
|
[`&.${switchClasses.disabled} .${switchClasses.thumb}`]: {
|
|
34
|
-
color:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
color: alpha(theme.palette.common.white, 0.12),
|
|
35
|
+
...theme.applyStyles('light', {
|
|
36
|
+
color: alpha(theme.palette.common.black, 0.12),
|
|
37
|
+
}),
|
|
38
38
|
},
|
|
39
39
|
[`&.${switchClasses.disabled} + .${switchClasses.track}`]: {
|
|
40
|
-
opacity:
|
|
40
|
+
opacity: 0.3,
|
|
41
|
+
...theme.applyStyles('light', {
|
|
42
|
+
opacity: 0.7,
|
|
43
|
+
}),
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
[`.${switchClasses.thumb}`]: {
|
|
@@ -47,13 +50,13 @@ export const Switch = styled(MuiSwitch)(({ theme }) => ({
|
|
|
47
50
|
},
|
|
48
51
|
[`.${switchClasses.track}`]: {
|
|
49
52
|
borderRadius: 24 / 2,
|
|
50
|
-
backgroundColor:
|
|
51
|
-
theme.palette.mode === 'light'
|
|
52
|
-
? alpha(theme.palette.common.black, 0.16)
|
|
53
|
-
: alpha(theme.palette.common.white, 0.16),
|
|
53
|
+
backgroundColor: alpha(theme.palette.common.white, 0.16),
|
|
54
54
|
opacity: 1,
|
|
55
55
|
transition: theme.transitions.create(['background-color'], {
|
|
56
56
|
duration: theme.transitions.duration.standard,
|
|
57
57
|
}),
|
|
58
|
+
...theme.applyStyles('light', {
|
|
59
|
+
backgroundColor: alpha(theme.palette.common.black, 0.16),
|
|
60
|
+
}),
|
|
58
61
|
},
|
|
59
62
|
}))
|
|
@@ -22,16 +22,16 @@ export const Tabs = styled(MuiTabs)(({ theme }) => ({
|
|
|
22
22
|
}))
|
|
23
23
|
|
|
24
24
|
export const CardTabs = styled(Tabs)(({ theme }) => ({
|
|
25
|
-
backgroundColor:
|
|
26
|
-
theme.palette.mode === 'light'
|
|
27
|
-
? alpha(theme.palette.common.black, 0.04)
|
|
28
|
-
: alpha(theme.palette.common.white, 0.08),
|
|
25
|
+
backgroundColor: alpha(theme.palette.common.white, 0.08),
|
|
29
26
|
[`.${tabsClasses.indicator}`]: {
|
|
30
|
-
backgroundColor:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
backgroundColor: alpha(theme.palette.common.black, 0.56),
|
|
28
|
+
...theme.applyStyles('light', {
|
|
29
|
+
backgroundColor: theme.palette.background.paper,
|
|
30
|
+
}),
|
|
34
31
|
},
|
|
32
|
+
...theme.applyStyles('light', {
|
|
33
|
+
backgroundColor: alpha(theme.palette.common.black, 0.04),
|
|
34
|
+
}),
|
|
35
35
|
}))
|
|
36
36
|
|
|
37
37
|
export const Tab = styled(MuiTab)<TabProps>(({ theme }) => ({
|
|
@@ -40,14 +40,14 @@ export const Tab = styled(MuiTab)<TabProps>(({ theme }) => ({
|
|
|
40
40
|
textTransform: 'none',
|
|
41
41
|
fontSize: '1rem',
|
|
42
42
|
fontWeight: 700,
|
|
43
|
-
color:
|
|
44
|
-
theme.palette.mode === 'light'
|
|
45
|
-
? theme.palette.common.black
|
|
46
|
-
: theme.palette.common.white,
|
|
43
|
+
color: theme.palette.common.white,
|
|
47
44
|
[`&.${tabClasses.selected}`]: {
|
|
48
|
-
color:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
color: theme.palette.common.white,
|
|
46
|
+
...theme.applyStyles('light', {
|
|
47
|
+
color: theme.palette.common.black,
|
|
48
|
+
}),
|
|
52
49
|
},
|
|
50
|
+
...theme.applyStyles('light', {
|
|
51
|
+
color: theme.palette.common.black,
|
|
52
|
+
}),
|
|
53
53
|
}))
|
|
@@ -25,7 +25,13 @@ export const ToAddressRequiredMessage: React.FC<
|
|
|
25
25
|
<Box {...props}>
|
|
26
26
|
<AlertMessage
|
|
27
27
|
title={
|
|
28
|
-
<Typography
|
|
28
|
+
<Typography
|
|
29
|
+
variant="body2"
|
|
30
|
+
sx={{
|
|
31
|
+
px: 1,
|
|
32
|
+
color: 'text.primary',
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
29
35
|
{t('info.message.toAddressIsRequired')}
|
|
30
36
|
</Typography>
|
|
31
37
|
}
|
|
@@ -9,22 +9,28 @@ export const TextSecondaryContainer = styled(Box)(() => ({
|
|
|
9
9
|
|
|
10
10
|
export const TextSecondary = styled(Typography, {
|
|
11
11
|
shouldForwardProp: (prop: string) => !['dot'].includes(prop),
|
|
12
|
-
})<{ dot?: boolean }>(({ theme
|
|
12
|
+
})<{ dot?: boolean }>(({ theme }) => ({
|
|
13
13
|
fontSize: 12,
|
|
14
14
|
lineHeight: 1,
|
|
15
15
|
fontWeight: 500,
|
|
16
|
-
color:
|
|
17
|
-
? alpha(theme.palette.text.secondary, 0.56)
|
|
18
|
-
: theme.palette.text.secondary,
|
|
16
|
+
color: theme.palette.text.secondary,
|
|
19
17
|
whiteSpace: 'nowrap',
|
|
18
|
+
variants: [
|
|
19
|
+
{
|
|
20
|
+
props: ({ dot }) => dot,
|
|
21
|
+
style: {
|
|
22
|
+
color: alpha(theme.palette.text.secondary, 0.56),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
20
26
|
}))
|
|
21
27
|
|
|
22
28
|
export const TokenDivider = styled(Box)(({ theme }) => ({
|
|
23
29
|
height: 16,
|
|
24
30
|
borderLeftWidth: 2,
|
|
25
31
|
borderLeftStyle: 'solid',
|
|
26
|
-
borderColor:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
borderColor: theme.palette.grey[800],
|
|
33
|
+
...theme.applyStyles('light', {
|
|
34
|
+
borderColor: theme.palette.grey[300],
|
|
35
|
+
}),
|
|
30
36
|
}))
|