@lifi/widget 3.18.5 → 3.19.0-beta.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 +0 -7
- package/dist/esm/AppDrawer.js +7 -6
- package/dist/esm/AppDrawer.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +3 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.js +1 -1
- package/dist/esm/components/Avatar/AccountAvatar.js.map +1 -1
- package/dist/esm/components/BottomSheet/BottomSheet.js +2 -2
- package/dist/esm/components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Dialog.d.ts +10 -2
- package/dist/esm/components/Dialog.js +10 -10
- package/dist/esm/components/Dialog.js.map +1 -1
- package/dist/esm/components/Header/BackButton.js +1 -1
- package/dist/esm/components/Header/BackButton.js.map +1 -1
- package/dist/esm/components/Header/CloseDrawerButton.js +1 -1
- package/dist/esm/components/Header/CloseDrawerButton.js.map +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.js +1 -1
- package/dist/esm/components/Header/DisconnectIconButton.js.map +1 -1
- package/dist/esm/components/Header/SettingsButton.js +1 -1
- package/dist/esm/components/Header/SettingsButton.js.map +1 -1
- package/dist/esm/components/Header/TransactionHistoryButton.js +1 -1
- package/dist/esm/components/Header/TransactionHistoryButton.js.map +1 -1
- package/dist/esm/components/Header/WalletHeader.js +2 -1
- package/dist/esm/components/Header/WalletHeader.js.map +1 -1
- package/dist/esm/components/Header/WalletMenu.js +3 -1
- package/dist/esm/components/Header/WalletMenu.js.map +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js.map +1 -1
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.js +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.js.map +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js +1 -1
- package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -1
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js +1 -1
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js.map +1 -1
- package/dist/esm/components/NotFound.js +1 -1
- package/dist/esm/components/NotFound.js.map +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js +2 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +2 -1
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +2 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js +1 -1
- package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/dist/esm/components/Routes/Routes.js +1 -1
- package/dist/esm/components/Routes/Routes.js.map +1 -1
- package/dist/esm/components/Search/SearchInput.js +1 -1
- package/dist/esm/components/Search/SearchInput.js.map +1 -1
- package/dist/esm/components/Search/SearchNotFound.js +1 -1
- package/dist/esm/components/Search/SearchNotFound.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js +1 -1
- package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.js +4 -1
- package/dist/esm/components/Step/CircularProgress.js.map +1 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js +2 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/dist/esm/components/Step/StepProcess.js +1 -1
- package/dist/esm/components/Step/StepProcess.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.js +3 -1
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
- package/dist/esm/components/Timer/TimerContent.js +1 -1
- package/dist/esm/components/Timer/TimerContent.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
- package/dist/esm/components/TokenList/TokenListItem.js +1 -1
- package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
- package/dist/esm/components/TokenList/types.d.ts +3 -3
- package/dist/esm/components/TransactionDetails.js +3 -1
- 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/useSetContentHeight.d.ts +2 -2
- package/dist/esm/hooks/useSetContentHeight.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +1 -1
- package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
- package/dist/esm/pages/LanguagesPage.js +1 -1
- package/dist/esm/pages/LanguagesPage.js.map +1 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js +4 -1
- package/dist/esm/pages/SelectEnabledToolsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +3 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +5 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +2 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +4 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +6 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +3 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +4 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js +2 -1
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/GasPriceSettings.js +1 -1
- package/dist/esm/pages/SettingsPage/GasPriceSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/LanguageSetting.js +1 -1
- package/dist/esm/pages/SettingsPage/LanguageSetting.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js +1 -1
- package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +2 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ThemeSettings.js +3 -1
- package/dist/esm/pages/SettingsPage/ThemeSettings.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +2 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +1 -1
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js +2 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +1 -1
- package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +4 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +1 -1
- package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/types/widget.d.ts +4 -4
- package/dist/esm/types/widget.js.map +1 -1
- package/package.json +6 -6
- package/package.json.tmp +5 -5
- package/src/AppDrawer.tsx +9 -7
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +3 -1
- package/src/components/Avatar/AccountAvatar.tsx +1 -1
- package/src/components/BottomSheet/BottomSheet.tsx +1 -2
- package/src/components/Dialog.tsx +10 -12
- package/src/components/Header/BackButton.tsx +1 -1
- package/src/components/Header/CloseDrawerButton.tsx +1 -1
- package/src/components/Header/DisconnectIconButton.tsx +1 -1
- package/src/components/Header/SettingsButton.tsx +1 -1
- package/src/components/Header/TransactionHistoryButton.tsx +1 -1
- package/src/components/Header/WalletHeader.tsx +2 -1
- package/src/components/Header/WalletMenu.tsx +3 -5
- package/src/components/Messages/AccountNotDeployedMessage.tsx +1 -1
- package/src/components/Messages/FundsSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/GasRefuelMessage.tsx +1 -1
- package/src/components/Messages/GasSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/ToAddressRequiredMessage.tsx +1 -1
- package/src/components/NotFound.tsx +1 -1
- package/src/components/ReverseTokensButton/ReverseTokensButton.tsx +2 -1
- package/src/components/RouteCard/RouteCard.tsx +2 -1
- package/src/components/RouteCard/RouteCardEssentials.tsx +2 -1
- package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +1 -1
- package/src/components/RouteCard/RouteNotFoundCard.tsx +1 -1
- package/src/components/Routes/Routes.tsx +1 -1
- package/src/components/Search/SearchInput.tsx +1 -1
- package/src/components/Search/SearchNotFound.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletButton.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletExpandButton.tsx +1 -1
- package/src/components/Step/CircularProgress.tsx +4 -6
- package/src/components/Step/DestinationWalletAddress.tsx +2 -1
- package/src/components/Step/StepProcess.tsx +1 -1
- package/src/components/StepActions/StepActions.tsx +3 -1
- package/src/components/Timer/TimerContent.tsx +1 -1
- package/src/components/TokenList/TokenListItem.tsx +1 -1
- package/src/components/TokenList/types.ts +3 -3
- package/src/components/TransactionDetails.tsx +3 -5
- package/src/config/version.ts +1 -1
- package/src/hooks/useSetContentHeight.ts +2 -2
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +1 -1
- package/src/pages/ActiveTransactionsPage/ActiveTransactionsPage.tsx +1 -1
- package/src/pages/LanguagesPage.tsx +1 -1
- package/src/pages/SelectEnabledToolsPage.tsx +4 -6
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +6 -8
- package/src/pages/SendToWallet/BookmarksPage.tsx +5 -7
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +4 -3
- package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +4 -6
- package/src/pages/SendToWallet/RecentWalletsPage.tsx +6 -8
- package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +3 -5
- package/src/pages/SendToWallet/SendToWalletPage.tsx +4 -6
- package/src/pages/SettingsPage/BridgeAndExchangeSettings.tsx +2 -1
- package/src/pages/SettingsPage/GasPriceSettings.tsx +1 -1
- package/src/pages/SettingsPage/LanguageSetting.tsx +1 -1
- package/src/pages/SettingsPage/ResetSettingsButton.tsx +1 -1
- package/src/pages/SettingsPage/RoutePrioritySettings.tsx +1 -1
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +2 -1
- package/src/pages/SettingsPage/ThemeSettings.tsx +3 -1
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +2 -1
- package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +1 -1
- package/src/pages/TransactionPage/ConfirmToAddressSheet.tsx +4 -3
- package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +5 -7
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +4 -6
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +3 -3
- package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
- package/src/types/widget.ts +4 -9
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
WarningRounded,
|
|
5
|
-
} from '@mui/icons-material'
|
|
1
|
+
import ErrorIcon from '@mui/icons-material/Error'
|
|
2
|
+
import TurnedIn from '@mui/icons-material/TurnedIn'
|
|
3
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
6
4
|
import { Button, Typography } from '@mui/material'
|
|
7
|
-
import type { ChangeEvent,
|
|
5
|
+
import type { ChangeEvent, RefObject } from 'react'
|
|
8
6
|
import { forwardRef, useState } from 'react'
|
|
9
7
|
import { useTranslation } from 'react-i18next'
|
|
10
8
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js'
|
|
@@ -48,7 +46,7 @@ export const BookmarkAddressSheet = forwardRef<
|
|
|
48
46
|
|
|
49
47
|
const handleCancel = () => {
|
|
50
48
|
setError(undefined)
|
|
51
|
-
;(ref as
|
|
49
|
+
;(ref as RefObject<BottomSheetBase>).current?.close()
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
const validateWithAddressFromInput = async () => {
|
|
@@ -112,7 +110,7 @@ export const BookmarkAddressSheet = forwardRef<
|
|
|
112
110
|
})
|
|
113
111
|
return
|
|
114
112
|
}
|
|
115
|
-
;(ref as
|
|
113
|
+
;(ref as RefObject<BottomSheetBase>).current?.close()
|
|
116
114
|
|
|
117
115
|
onAddBookmark({
|
|
118
116
|
name: validatedBookmark.name,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
TurnedIn,
|
|
7
|
-
} from '@mui/icons-material'
|
|
1
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
2
|
+
import DeleteOutline from '@mui/icons-material/DeleteOutline'
|
|
3
|
+
import MoreHoriz from '@mui/icons-material/MoreHoriz'
|
|
4
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
5
|
+
import TurnedIn from '@mui/icons-material/TurnedIn'
|
|
8
6
|
import { Button, ListItemAvatar, ListItemText, MenuItem } from '@mui/material'
|
|
9
7
|
import { useId, useRef, useState } from 'react'
|
|
10
8
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
2
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
2
3
|
import { Button, Typography } from '@mui/material'
|
|
3
|
-
import type {
|
|
4
|
+
import type { RefObject } from 'react'
|
|
4
5
|
import { forwardRef, useRef } from 'react'
|
|
5
6
|
import { useTranslation } from 'react-i18next'
|
|
6
7
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js'
|
|
@@ -33,7 +34,7 @@ export const ConfirmAddressSheet = forwardRef<
|
|
|
33
34
|
ConfirmAddressSheetProps
|
|
34
35
|
>((props, ref) => {
|
|
35
36
|
const handleClose = () => {
|
|
36
|
-
;(ref as
|
|
37
|
+
;(ref as RefObject<BottomSheetBase>).current?.close()
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
return (
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { Account } from '@lifi/wallet-management'
|
|
2
2
|
import { useAccount } from '@lifi/wallet-management'
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Wallet,
|
|
8
|
-
} from '@mui/icons-material'
|
|
3
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
4
|
+
import MoreHoriz from '@mui/icons-material/MoreHoriz'
|
|
5
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
6
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
9
7
|
import { ListItemAvatar, ListItemText, MenuItem } from '@mui/material'
|
|
10
8
|
import { useId, useState } from 'react'
|
|
11
9
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
TurnedInNot,
|
|
8
|
-
} from '@mui/icons-material'
|
|
1
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
2
|
+
import DeleteOutline from '@mui/icons-material/DeleteOutline'
|
|
3
|
+
import History from '@mui/icons-material/History'
|
|
4
|
+
import MoreHoriz from '@mui/icons-material/MoreHoriz'
|
|
5
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
6
|
+
import TurnedInNot from '@mui/icons-material/TurnedInNot'
|
|
9
7
|
import { ListItemAvatar, ListItemText, MenuItem } from '@mui/material'
|
|
10
8
|
import { useId, useRef, useState } from 'react'
|
|
11
9
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
OpenInNewRounded,
|
|
5
|
-
} from '@mui/icons-material'
|
|
1
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
2
|
+
import MoreHoriz from '@mui/icons-material/MoreHoriz'
|
|
3
|
+
import OpenInNewRounded from '@mui/icons-material/OpenInNewRounded'
|
|
6
4
|
import { ListItemAvatar, ListItemText, MenuItem } from '@mui/material'
|
|
7
5
|
import { useId, useState } from 'react'
|
|
8
6
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { useAccount } from '@lifi/wallet-management'
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Wallet,
|
|
7
|
-
} from '@mui/icons-material'
|
|
2
|
+
import ErrorIcon from '@mui/icons-material/Error'
|
|
3
|
+
import History from '@mui/icons-material/History'
|
|
4
|
+
import TurnedIn from '@mui/icons-material/TurnedIn'
|
|
5
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
8
6
|
import { Box, Tooltip, Typography } from '@mui/material'
|
|
9
7
|
import type { ChangeEvent } from 'react'
|
|
10
8
|
import { useRef, useState } from 'react'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AirlineStops from '@mui/icons-material/AirlineStops'
|
|
2
|
+
import SwapHoriz from '@mui/icons-material/SwapHoriz'
|
|
2
3
|
import { useTranslation } from 'react-i18next'
|
|
3
4
|
import { useNavigate } from 'react-router-dom'
|
|
4
5
|
import { shallow } from 'zustand/shallow'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import EvStation from '@mui/icons-material/EvStation'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
3
|
import { CardTabs, Tab } from '../../components/Tabs/Tabs.style.js'
|
|
4
4
|
import { useSettingMonitor } from '../../hooks/useSettingMonitor.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Order } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import Route from '@mui/icons-material/Route'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { CardTabs, Tab } from '../../components/Tabs/Tabs.style.js'
|
|
5
5
|
import { useSettingMonitor } from '../../hooks/useSettingMonitor.js'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Percent from '@mui/icons-material/Percent'
|
|
2
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
2
3
|
import { Box, Typography, debounce } from '@mui/material'
|
|
3
4
|
import type { ChangeEventHandler, FocusEventHandler } from 'react'
|
|
4
5
|
import { useCallback, useMemo, useRef, useState } from 'react'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BrightnessAuto from '@mui/icons-material/BrightnessAuto'
|
|
2
|
+
import LightMode from '@mui/icons-material/LightMode'
|
|
3
|
+
import Nightlight from '@mui/icons-material/Nightlight'
|
|
2
4
|
import { Tooltip } from '@mui/material'
|
|
3
5
|
import { useTranslation } from 'react-i18next'
|
|
4
6
|
import { CardValue } from '../../components/Card/CardButton.style.js'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ContentCopyRounded from '@mui/icons-material/ContentCopyRounded'
|
|
2
|
+
import OpenInNew from '@mui/icons-material/OpenInNew'
|
|
2
3
|
import { Box, Typography } from '@mui/material'
|
|
3
4
|
import { useTranslation } from 'react-i18next'
|
|
4
5
|
import { Card } from '../../components/Card/Card.js'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Wallet from '@mui/icons-material/Wallet'
|
|
2
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
2
3
|
import { Button, Typography } from '@mui/material'
|
|
3
|
-
import type {
|
|
4
|
+
import type { RefObject } from 'react'
|
|
4
5
|
import { forwardRef, useRef } from 'react'
|
|
5
6
|
import { useTranslation } from 'react-i18next'
|
|
6
7
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js'
|
|
@@ -32,7 +33,7 @@ export const ConfirmToAddressSheet = forwardRef<
|
|
|
32
33
|
ConfirmToAddressSheetProps
|
|
33
34
|
>((props, ref) => {
|
|
34
35
|
const handleClose = () => {
|
|
35
|
-
;(ref as
|
|
36
|
+
;(ref as RefObject<BottomSheetBase>).current?.close()
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExchangeRateUpdateParams } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
3
3
|
import { Box, Button, Typography } from '@mui/material'
|
|
4
|
-
import type {
|
|
4
|
+
import type { RefObject } from 'react'
|
|
5
5
|
import {
|
|
6
6
|
forwardRef,
|
|
7
7
|
useCallback,
|
|
@@ -37,19 +37,17 @@ export const ExchangeRateBottomSheet = forwardRef<
|
|
|
37
37
|
const resolverRef = useRef<(value: boolean) => void>(null)
|
|
38
38
|
|
|
39
39
|
const handleContinue = () => {
|
|
40
|
-
;(ref as
|
|
40
|
+
;(ref as RefObject<ExchangeRateBottomSheetBase>).current?.close(true)
|
|
41
41
|
onContinue?.()
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const handleCancel = useCallback(() => {
|
|
45
|
-
;(ref as
|
|
46
|
-
false
|
|
47
|
-
)
|
|
45
|
+
;(ref as RefObject<ExchangeRateBottomSheetBase>).current?.close(false)
|
|
48
46
|
onCancel?.()
|
|
49
47
|
}, [onCancel, ref])
|
|
50
48
|
|
|
51
49
|
const handleClose = useCallback(() => {
|
|
52
|
-
;(ref as
|
|
50
|
+
;(ref as RefObject<ExchangeRateBottomSheetBase>).current?.close(
|
|
53
51
|
false,
|
|
54
52
|
false
|
|
55
53
|
)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
WarningRounded,
|
|
6
|
-
} from '@mui/icons-material'
|
|
1
|
+
import Done from '@mui/icons-material/Done'
|
|
2
|
+
import ErrorRounded from '@mui/icons-material/ErrorRounded'
|
|
3
|
+
import InfoRounded from '@mui/icons-material/InfoRounded'
|
|
4
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
7
5
|
import { Box, Button, Skeleton, Typography } from '@mui/material'
|
|
8
6
|
import { useCallback, useEffect, useRef } from 'react'
|
|
9
7
|
import { useTranslation } from 'react-i18next'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Route } from '@lifi/sdk'
|
|
2
2
|
import { isGaslessStep } from '@lifi/sdk'
|
|
3
|
-
import
|
|
3
|
+
import WarningRounded from '@mui/icons-material/WarningRounded'
|
|
4
4
|
import { Box, Button, Typography } from '@mui/material'
|
|
5
|
-
import type {
|
|
5
|
+
import type { RefObject } from 'react'
|
|
6
6
|
import { forwardRef, useRef } from 'react'
|
|
7
7
|
import { useTranslation } from 'react-i18next'
|
|
8
8
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js'
|
|
@@ -24,7 +24,7 @@ export const TokenValueBottomSheet = forwardRef<
|
|
|
24
24
|
TokenValueBottomSheetProps
|
|
25
25
|
>(({ route, onContinue, onCancel }, ref) => {
|
|
26
26
|
const handleCancel = () => {
|
|
27
|
-
;(ref as
|
|
27
|
+
;(ref as RefObject<BottomSheetBase>).current?.close()
|
|
28
28
|
onCancel?.()
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExchangeRateUpdateParams } from '@lifi/sdk'
|
|
2
|
-
import
|
|
2
|
+
import Delete from '@mui/icons-material/Delete'
|
|
3
3
|
import { Box, Button, Tooltip } from '@mui/material'
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from 'react'
|
|
5
5
|
import { useTranslation } from 'react-i18next'
|
package/src/types/widget.ts
CHANGED
|
@@ -16,13 +16,8 @@ import type {
|
|
|
16
16
|
SxProps,
|
|
17
17
|
Theme,
|
|
18
18
|
} from '@mui/material'
|
|
19
|
-
import type {
|
|
20
|
-
import type {
|
|
21
|
-
CSSProperties,
|
|
22
|
-
MutableRefObject,
|
|
23
|
-
ReactNode,
|
|
24
|
-
RefObject,
|
|
25
|
-
} from 'react'
|
|
19
|
+
import type { TypographyVariantsOptions } from '@mui/material/styles'
|
|
20
|
+
import type { CSSProperties, ReactNode, RefObject } from 'react'
|
|
26
21
|
import type {
|
|
27
22
|
CoinbaseWalletParameters,
|
|
28
23
|
MetaMaskParameters,
|
|
@@ -68,7 +63,7 @@ export type WidgetTheme = {
|
|
|
68
63
|
'background' | 'grey' | 'primary' | 'secondary' | 'text'
|
|
69
64
|
>
|
|
70
65
|
shape?: Partial<Shape>
|
|
71
|
-
typography?:
|
|
66
|
+
typography?: TypographyVariantsOptions
|
|
72
67
|
components?: WidgetThemeComponents
|
|
73
68
|
container?: CSSProperties
|
|
74
69
|
header?: CSSProperties
|
|
@@ -293,7 +288,7 @@ export type FormState = {
|
|
|
293
288
|
setFieldValue: SetFieldValueFunction
|
|
294
289
|
}
|
|
295
290
|
|
|
296
|
-
export type FormRef =
|
|
291
|
+
export type FormRef = RefObject<FormState | null>
|
|
297
292
|
|
|
298
293
|
export interface FormRefProps {
|
|
299
294
|
formRef?: FormRef
|