@lifi/widget 3.0.0-alpha.25 → 3.0.0-alpha.26
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/AppDrawer.style.tsx +1 -2
- package/_esm/AppDrawer.js +1 -2
- package/_esm/AppDrawer.style.js +1 -2
- package/_esm/AppDrawer.style.js.map +1 -1
- package/_esm/components/AccountAvatar.js +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactionItem.js +1 -3
- package/_esm/components/ActiveTransactions/ActiveTransactions.style.js +1 -3
- package/_esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
- package/_esm/components/AlertMessage/AlertMessage.style.js +1 -2
- package/_esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
- package/_esm/components/AmountInput/AmountInput.style.js +1 -3
- package/_esm/components/AmountInput/AmountInput.style.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputAdornment.style.js +1 -2
- package/_esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
- package/_esm/components/AppContainer.js +1 -2
- package/_esm/components/AppContainer.js.map +1 -1
- package/_esm/components/Card/Card.js +1 -3
- package/_esm/components/Card/Card.js.map +1 -1
- package/_esm/components/Card/CardButton.style.js +1 -2
- package/_esm/components/Card/CardButton.style.js.map +1 -1
- package/_esm/components/Card/CardHeader.js +1 -3
- package/_esm/components/Card/CardHeader.js.map +1 -1
- package/_esm/components/Card/CardIconButton.js +1 -2
- package/_esm/components/Card/CardIconButton.js.map +1 -1
- package/_esm/components/Card/CardLabel.js +1 -2
- package/_esm/components/Card/CardLabel.js.map +1 -1
- package/_esm/components/Card/CardTitle.js +1 -2
- package/_esm/components/Card/CardTitle.js.map +1 -1
- package/_esm/components/ChainSelect/ChainSelect.style.js +1 -2
- package/_esm/components/ChainSelect/ChainSelect.style.js.map +1 -1
- package/_esm/components/GasMessage/FundsSufficiencyMessage.js +2 -3
- package/_esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
- package/_esm/components/GasMessage/GasMessage.style.d.ts +1 -1
- package/_esm/components/GasMessage/GasMessage.style.js +1 -2
- package/_esm/components/GasMessage/GasMessage.style.js.map +1 -1
- package/_esm/components/GasMessage/GasRefuelMessage.js +1 -1
- package/_esm/components/GasMessage/GasSufficiencyMessage.js +1 -1
- package/_esm/components/Header/CloseDrawerButton.js +1 -1
- package/_esm/components/Header/EVMDisconnectIconButton.js +1 -1
- package/_esm/components/Header/Header.style.js +1 -3
- package/_esm/components/Header/Header.style.js.map +1 -1
- package/_esm/components/Header/NavigationHeader.js +1 -1
- package/_esm/components/Header/SVMDisconnectIconButton.js +1 -1
- package/_esm/components/Header/SettingsButton.js +1 -1
- package/_esm/components/Header/SettingsButton.style.js +1 -3
- package/_esm/components/Header/SettingsButton.style.js.map +1 -1
- package/_esm/components/Header/TransactionHistoryButton.js +1 -1
- package/_esm/components/Header/WalletHeader.js +1 -2
- package/_esm/components/Header/WalletMenu.js +1 -3
- package/_esm/components/Header/WalletMenu.style.js +1 -5
- package/_esm/components/Header/WalletMenu.style.js.map +1 -1
- package/_esm/components/Input.js +1 -3
- package/_esm/components/Input.js.map +1 -1
- package/_esm/components/Insurance/InsuranceCard.js +1 -1
- package/_esm/components/ListItem/ListItem.js +1 -4
- package/_esm/components/ListItem/ListItem.js.map +1 -1
- package/_esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/_esm/components/ListItem/ListItemButton.js +1 -1
- package/_esm/components/ListItem/ListItemButton.js.map +1 -1
- package/_esm/components/ListItemButton.js +1 -2
- package/_esm/components/ListItemButton.js.map +1 -1
- package/_esm/components/ListItemText.js +1 -3
- package/_esm/components/ListItemText.js.map +1 -1
- package/_esm/components/Menu.js +1 -2
- package/_esm/components/Menu.js.map +1 -1
- package/_esm/components/NFT/NFT.style.js +1 -2
- package/_esm/components/NFT/NFT.style.js.map +1 -1
- package/_esm/components/NotFound.js +1 -1
- package/_esm/components/PageContainer.js +1 -2
- package/_esm/components/PageContainer.js.map +1 -1
- package/_esm/components/PoweredBy/PoweredBy.style.js +1 -2
- package/_esm/components/PoweredBy/PoweredBy.style.js.map +1 -1
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.js +1 -2
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js +1 -2
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
- package/_esm/components/RouteCard/RouteCard.js +1 -3
- package/_esm/components/RouteCard/RouteCard.style.js +1 -2
- package/_esm/components/RouteCard/RouteCard.style.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentials.js +1 -2
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js +1 -3
- package/_esm/components/RouteCard/RouteNotFoundCard.js +1 -1
- package/_esm/components/Routes/RoutesExpanded.style.js +1 -2
- package/_esm/components/Routes/RoutesExpanded.style.js.map +1 -1
- package/_esm/components/Select.js +1 -6
- package/_esm/components/Select.js.map +1 -1
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -2
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js +1 -2
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/_esm/components/SendToWallet/SendToWallet.style.d.ts +2 -2
- package/_esm/components/SendToWallet/SendToWallet.style.js +1 -2
- package/_esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
- package/_esm/components/SendToWallet/SendToWalletExpandButton.js +1 -1
- package/_esm/components/SettingsListItemButton.d.ts +1 -1
- package/_esm/components/SettingsListItemButton.js +1 -1
- package/_esm/components/SettingsListItemButton.js.map +1 -1
- package/_esm/components/SmallAvatar.js +1 -2
- package/_esm/components/SmallAvatar.js.map +1 -1
- package/_esm/components/Step/CircularProgress.js +2 -5
- package/_esm/components/Step/CircularProgress.js.map +1 -1
- package/_esm/components/Step/CircularProgress.style.js +1 -3
- package/_esm/components/Step/CircularProgress.style.js.map +1 -1
- package/_esm/components/Step/DestinationWalletAddress.js +1 -2
- package/_esm/components/Step/StepProcess.js +1 -1
- package/_esm/components/Step/StepProcess.style.js +1 -2
- package/_esm/components/Step/StepProcess.style.js.map +1 -1
- package/_esm/components/Step/StepTimer.js +2 -1
- package/_esm/components/Step/StepTimer.js.map +1 -1
- package/_esm/components/StepActions/StepActions.js +1 -3
- package/_esm/components/StepActions/StepActions.style.js +1 -4
- package/_esm/components/StepActions/StepActions.style.js.map +1 -1
- package/_esm/components/StepActions/StepFeeBreakdown.js +1 -1
- package/_esm/components/StepDivider/StepDivider.style.js +1 -2
- package/_esm/components/StepDivider/StepDivider.style.js.map +1 -1
- package/_esm/components/Switch.js +1 -3
- package/_esm/components/Switch.js.map +1 -1
- package/_esm/components/Tabs/Tabs.style.js +1 -2
- package/_esm/components/Tabs/Tabs.style.js.map +1 -1
- package/_esm/components/TextFitter/TextFitter.js +1 -1
- package/_esm/components/TextFitter/TextFitter.js.map +1 -1
- package/_esm/components/Token/Token.style.js +1 -2
- package/_esm/components/Token/Token.style.js.map +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.style.js +1 -4
- package/_esm/components/TokenAvatar/TokenAvatar.style.js.map +1 -1
- package/_esm/components/TokenList/TokenList.style.js +1 -2
- package/_esm/components/TokenList/TokenList.style.js.map +1 -1
- package/_esm/components/TokenList/TokenListItem.js +1 -1
- package/_esm/components/TokenList/TokenNotFound.js +1 -1
- package/_esm/components/TokenList/useTokenSelect.js +2 -1
- package/_esm/components/TokenList/useTokenSelect.js.map +1 -1
- package/_esm/config/theme.js +14 -13
- package/_esm/config/theme.js.map +1 -1
- package/_esm/config/version.d.ts +1 -1
- package/_esm/config/version.js +1 -1
- package/_esm/i18n/index.js +14 -14
- package/_esm/i18n/index.js.map +1 -1
- package/_esm/icons/InsuraceLogo.js +1 -1
- package/_esm/icons/InsuraceLogo.js.map +1 -1
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +1 -1
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +1 -1
- package/_esm/pages/LanguagesPage/LanguagesPage.js +1 -1
- package/_esm/pages/MainPage/MainPage.style.js +1 -2
- package/_esm/pages/MainPage/MainPage.style.js.map +1 -1
- package/_esm/pages/RoutesPage/RoutesPage.style.js +1 -2
- package/_esm/pages/RoutesPage/RoutesPage.style.js.map +1 -1
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +1 -4
- package/_esm/pages/SelectTokenPage/SearchTokenInput.js +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.d.ts +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js.map +1 -1
- package/_esm/pages/SendToWallet/BookmarkAddressSheet.js +1 -2
- package/_esm/pages/SendToWallet/BookmarksPage.js +1 -5
- package/_esm/pages/SendToWallet/ConfirmAddressSheet.js +1 -2
- package/_esm/pages/SendToWallet/ConnectedWalletsPage.js +1 -4
- package/_esm/pages/SendToWallet/RecentWalletsPage.js +1 -6
- package/_esm/pages/SendToWallet/SendToConfiguredWalletPage.js +1 -3
- package/_esm/pages/SendToWallet/SendToWalletPage.js +1 -4
- package/_esm/pages/SettingsPage/BridgeAndExchangeSettings.js +1 -2
- package/_esm/pages/SettingsPage/GasPriceSettings.js +1 -1
- package/_esm/pages/SettingsPage/LanguageSetting.js +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.style.js +1 -2
- package/_esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
- package/_esm/pages/SettingsPage/RoutePrioritySettings.js +1 -1
- package/_esm/pages/SettingsPage/SendToWalletOptionSetting.js +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js +1 -3
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +1 -2
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +1 -3
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/_esm/pages/SettingsPage/ThemeSettings.js +1 -3
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +1 -1
- package/_esm/pages/TransactionPage/ExchangeRateBottomSheet.js +1 -1
- package/_esm/pages/TransactionPage/StatusBottomSheet.js +1 -4
- package/_esm/pages/TransactionPage/StatusBottomSheet.style.js +1 -2
- package/_esm/pages/TransactionPage/StatusBottomSheet.style.js.map +1 -1
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.js +1 -1
- package/_esm/pages/TransactionPage/TransactionPage.js +1 -1
- package/_esm/providers/ThemeProvider/ThemeProvider.js +1 -2
- package/_esm/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/_esm/utils/colors.d.ts +0 -1
- package/_esm/utils/colors.js +1 -5
- package/_esm/utils/colors.js.map +1 -1
- package/components/ActiveTransactions/ActiveTransactions.style.ts +2 -2
- package/components/AlertMessage/AlertMessage.style.tsx +1 -2
- package/components/AmountInput/AmountInput.style.tsx +7 -3
- package/components/AmountInput/AmountInputAdornment.style.tsx +1 -2
- package/components/AppContainer.tsx +1 -2
- package/components/Card/Card.tsx +8 -3
- package/components/Card/CardButton.style.tsx +1 -2
- package/components/Card/CardHeader.tsx +5 -3
- package/components/Card/CardIconButton.tsx +1 -2
- package/components/Card/CardLabel.tsx +1 -2
- package/components/Card/CardTitle.tsx +1 -2
- package/components/ChainSelect/ChainSelect.style.tsx +1 -2
- package/components/GasMessage/FundsSufficiencyMessage.tsx +1 -2
- package/components/GasMessage/GasMessage.style.ts +1 -2
- package/components/Header/Header.style.ts +9 -3
- package/components/Header/SettingsButton.style.tsx +7 -3
- package/components/Header/WalletMenu.style.tsx +7 -5
- package/components/Input.tsx +1 -3
- package/components/ListItem/ListItem.tsx +6 -4
- package/components/ListItem/ListItemButton.tsx +1 -1
- package/components/ListItemButton.tsx +1 -2
- package/components/ListItemText.tsx +5 -3
- package/components/Menu.tsx +1 -1
- package/components/NFT/NFT.style.ts +1 -2
- package/components/PageContainer.ts +1 -2
- package/components/PoweredBy/PoweredBy.style.ts +1 -2
- package/components/ReverseTokensButton/ReverseTokensButton.style.tsx +6 -2
- package/components/RouteCard/RouteCard.style.ts +1 -2
- package/components/Routes/RoutesExpanded.style.ts +1 -2
- package/components/Select.tsx +8 -6
- package/components/SelectTokenButton/SelectTokenButton.style.tsx +1 -2
- package/components/SendToWallet/SendToWallet.style.tsx +1 -2
- package/components/SettingsListItemButton.tsx +1 -1
- package/components/SmallAvatar.tsx +1 -2
- package/components/Step/CircularProgress.style.tsx +8 -3
- package/components/Step/CircularProgress.tsx +1 -1
- package/components/Step/StepProcess.style.tsx +1 -2
- package/components/Step/StepTimer.tsx +2 -1
- package/components/StepActions/StepActions.style.tsx +3 -3
- package/components/StepDivider/StepDivider.style.tsx +1 -2
- package/components/Switch.tsx +6 -3
- package/components/Tabs/Tabs.style.tsx +2 -1
- package/components/TextFitter/TextFitter.tsx +1 -1
- package/components/Token/Token.style.tsx +1 -2
- package/components/TokenAvatar/TokenAvatar.style.tsx +7 -4
- package/components/TokenList/TokenList.style.tsx +1 -2
- package/components/TokenList/useTokenSelect.ts +2 -1
- package/config/theme.ts +19 -13
- package/config/version.ts +1 -1
- package/i18n/index.ts +14 -14
- package/icons/InsuraceLogo.tsx +1 -1
- package/package.json +2 -2
- package/pages/MainPage/MainPage.style.tsx +1 -2
- package/pages/RoutesPage/RoutesPage.style.ts +1 -2
- package/pages/SelectTokenPage/SearchTokenInput.style.tsx +1 -1
- package/pages/SettingsPage/ResetSettingsButton.style.tsx +1 -2
- package/pages/SettingsPage/SettingsCard/SettingCard.style.tsx +1 -3
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +8 -3
- package/pages/TransactionPage/StatusBottomSheet.style.tsx +1 -2
- package/providers/ThemeProvider/ThemeProvider.tsx +4 -2
- package/utils/colors.ts +1 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import WarningRounded from '@mui/icons-material
|
|
2
|
+
import { WarningRounded } from '@mui/icons-material';
|
|
3
3
|
import { Box, Button, Typography } from '@mui/material';
|
|
4
4
|
import { forwardRef, useRef } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import Delete from '@mui/icons-material
|
|
2
|
+
import { Delete } from '@mui/icons-material';
|
|
3
3
|
import { Box, Button, Tooltip } from '@mui/material';
|
|
4
4
|
import { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMediaQuery } from '@mui/material';
|
|
3
|
-
import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
|
|
2
|
+
import { ThemeProvider as MuiThemeProvider, useMediaQuery, } from '@mui/material';
|
|
4
3
|
import { useEffect, useMemo, useState } from 'react';
|
|
5
4
|
import { createTheme } from '../../config/theme.js';
|
|
6
5
|
import { useAppearance } from '../../stores/settings/useAppearance.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../providers/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../providers/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EACnE,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,eAAe,EAAE,CAAC;IAC9E,MAAM,eAAe,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACtE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,aAAa,EAAE,CAAC;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,eAAe,IAAI,UAAU,KAAK,MAAM;QACtC,CAAC,CAAC,eAAe;YACf,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO;QACX,CAAC,CAAC,UAAU,CACf,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;YAC1B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC;IAElC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,aAAa,CAAC,eAAe,CAAC,CAAC;QACjC,CAAC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,EACpC,CAAC,IAAI,EAAE,WAAW,CAAC,CACpB,CAAC;IACF,OAAO,KAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAoB,CAAC;AACvE,CAAC,CAAC"}
|
package/_esm/utils/colors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PaletteMode, Theme } from '@mui/material';
|
|
2
2
|
export declare const getContrastAlphaColor: (mode: PaletteMode, alpha: string | number) => string;
|
|
3
|
-
export declare const getContrastTextColor: (theme: Theme, background?: string) => "#fff" | "#000";
|
|
4
3
|
export declare const getWarningBackgroundColor: (theme: Theme) => string;
|
|
5
4
|
export declare const getInfoBackgroundColor: (theme: Theme) => string;
|
|
6
5
|
export declare const getCardFieldsetBackgroundColor: (theme: Theme) => string;
|
package/_esm/utils/colors.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { alpha, getContrastRatio } from '@mui/material/styles';
|
|
1
|
+
import { alpha } from '@mui/material';
|
|
3
2
|
export const getContrastAlphaColor = (mode, alpha) => mode === 'light' ? `rgb(0 0 0 / ${alpha})` : `rgb(255 255 255 / ${alpha})`;
|
|
4
|
-
export const getContrastTextColor = (theme, background) => getContrastRatio(common.white, background ?? theme.palette.primary.main) >= 3
|
|
5
|
-
? common.white
|
|
6
|
-
: common.black;
|
|
7
3
|
export const getWarningBackgroundColor = (theme) => theme.palette.mode === 'light'
|
|
8
4
|
? alpha(theme.palette.warning.main, 0.32)
|
|
9
5
|
: alpha(theme.palette.warning.main, 0.16);
|
package/_esm/utils/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAiB,EACjB,KAAsB,EACtB,EAAE,CACF,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,eAAe,KAAK,GAAG,CAAC,CAAC,CAAC,qBAAqB,KAAK,GAAG,CAAC;AAE7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAY,EAAE,EAAE,CACxD,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;IACzC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAY,EAAE,EAAE,CACrD,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;IACtC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,KAAY,EAAE,EAAE,CAC7D,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM;IAC3B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Button,
|
|
3
3
|
ListItem as MuiListItem,
|
|
4
4
|
ListItemButton as MuiListItemButton,
|
|
5
|
+
listItemSecondaryActionClasses,
|
|
6
|
+
styled,
|
|
5
7
|
} from '@mui/material';
|
|
6
|
-
import { listItemSecondaryActionClasses } from '@mui/material/ListItemSecondaryAction';
|
|
7
|
-
import { styled } from '@mui/material/styles';
|
|
8
8
|
import { getContrastAlphaColor } from '../../utils/colors.js';
|
|
9
9
|
|
|
10
10
|
export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
InputBase,
|
|
4
|
+
FormControl as MuiFormControl,
|
|
5
|
+
inputBaseClasses,
|
|
6
|
+
styled,
|
|
7
|
+
} from '@mui/material';
|
|
4
8
|
|
|
5
9
|
export const maxInputFontSize = 24;
|
|
6
10
|
export const minInputFontSize = 14;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Button as MuiButton, Skeleton } from '@mui/material';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { Button as MuiButton, Skeleton, styled } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
export const MaxButton = styled(MuiButton)(({ theme }) => ({
|
|
5
4
|
padding: theme.spacing(0.5, 1, 0.625, 1),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Box, Container, ScopedCssBaseline } from '@mui/material';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { Box, Container, ScopedCssBaseline, styled } from '@mui/material';
|
|
3
2
|
import type { PropsWithChildren } from 'react';
|
|
4
3
|
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js';
|
|
5
4
|
import type { WidgetVariant } from '../types/widget.js';
|
package/components/Card/Card.tsx
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { BoxProps, Theme } from '@mui/material';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import {
|
|
3
|
+
Box,
|
|
4
|
+
alpha,
|
|
5
|
+
badgeClasses,
|
|
6
|
+
darken,
|
|
7
|
+
lighten,
|
|
8
|
+
styled,
|
|
9
|
+
} from '@mui/material';
|
|
5
10
|
import type { MouseEventHandler } from 'react';
|
|
6
11
|
|
|
7
12
|
type CardVariant = 'default' | 'selected' | 'error';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { styled } from '@mui/material
|
|
2
|
-
import { Box, ButtonBase, Typography } from '@mui/material';
|
|
1
|
+
import { Box, ButtonBase, Typography, styled } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
export const CardRowButton = styled(ButtonBase)(({ theme }) => ({
|
|
5
4
|
background: 'none',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
CardHeader as MuiCardHeader,
|
|
3
|
+
cardHeaderClasses,
|
|
4
|
+
styled,
|
|
5
|
+
} from '@mui/material';
|
|
4
6
|
|
|
5
7
|
export const CardHeader = styled(MuiCardHeader)(({ theme }) => ({
|
|
6
8
|
[`.${cardHeaderClasses.action}`]: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IconButton as MuiIconButton } from '@mui/material';
|
|
2
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
1
|
+
import { IconButton as MuiIconButton, alpha, styled } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
export const CardIconButton = styled(MuiIconButton)(({ theme }) => {
|
|
5
4
|
const backgroundColor =
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Box, Typography } from '@mui/material';
|
|
2
|
-
import { alpha, lighten, styled } from '@mui/material/styles';
|
|
1
|
+
import { Box, Typography, alpha, lighten, styled } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
export const CardLabel = styled(Box, {
|
|
5
4
|
shouldForwardProp: (prop) => prop !== 'type',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WarningRounded } from '@mui/icons-material';
|
|
2
|
-
import { Typography } from '@mui/material';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
2
|
+
import { Typography, styled } from '@mui/material';
|
|
4
3
|
import { useTranslation } from 'react-i18next';
|
|
5
4
|
import { AlertMessage } from '../AlertMessage/AlertMessage.js';
|
|
6
5
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { switchClasses } from '@mui/material
|
|
2
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
1
|
+
import { alpha, styled, switchClasses } from '@mui/material';
|
|
3
2
|
import { Switch } from '../Switch.js';
|
|
4
3
|
|
|
5
4
|
export const InfoMessageSwitch = styled(Switch)(({ theme }) => ({
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
AppBar,
|
|
3
|
+
Box,
|
|
4
|
+
Button,
|
|
5
|
+
alpha,
|
|
6
|
+
badgeClasses,
|
|
7
|
+
buttonClasses,
|
|
8
|
+
styled,
|
|
9
|
+
} from '@mui/material';
|
|
4
10
|
import { Tabs } from '../Tabs/Tabs.style.js';
|
|
5
11
|
|
|
6
12
|
export const HeaderAppBar = styled(AppBar)(({ theme }) => ({
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
IconButton,
|
|
3
|
+
Badge as MuiBadge,
|
|
4
|
+
badgeClasses,
|
|
5
|
+
darken,
|
|
6
|
+
styled,
|
|
7
|
+
} from '@mui/material';
|
|
4
8
|
import {
|
|
5
9
|
getInfoBackgroundColor,
|
|
6
10
|
getWarningBackgroundColor,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import {
|
|
2
|
+
Menu as MuiMenu,
|
|
3
|
+
menuClasses,
|
|
4
|
+
menuItemClasses,
|
|
5
|
+
styled,
|
|
6
|
+
svgIconClasses,
|
|
7
|
+
} from '@mui/material';
|
|
6
8
|
|
|
7
9
|
export const WalletMenuContainer = styled(MuiMenu)(({ theme }) => ({
|
|
8
10
|
[`& .${menuClasses.paper}`]: {
|
package/components/Input.tsx
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { InputBase } from '@mui/material';
|
|
2
|
-
import { inputBaseClasses } from '@mui/material/InputBase';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { InputBase, inputBaseClasses, styled } from '@mui/material';
|
|
4
2
|
|
|
5
3
|
export const Input = styled(InputBase)(({ theme }) => ({
|
|
6
4
|
backgroundColor:
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
ListItem as MuiListItem,
|
|
3
|
+
listItemSecondaryActionClasses,
|
|
4
|
+
listItemTextClasses,
|
|
5
|
+
styled,
|
|
6
|
+
} from '@mui/material';
|
|
5
7
|
|
|
6
8
|
export const ListItem = styled(MuiListItem)(({ theme }) => ({
|
|
7
9
|
height: 64,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ListItemButton as MuiListItemButton } from '@mui/material';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { ListItemButton as MuiListItemButton, styled } from '@mui/material';
|
|
3
2
|
import { getContrastAlphaColor } from '../utils/colors.js';
|
|
4
3
|
|
|
5
4
|
export const ListItemButton = styled(MuiListItemButton)(
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
ListItemText as MuiListItemText,
|
|
3
|
+
listItemTextClasses,
|
|
4
|
+
styled,
|
|
5
|
+
} from '@mui/material';
|
|
4
6
|
|
|
5
7
|
export const ListItemText = styled(MuiListItemText)(({ theme }) => ({
|
|
6
8
|
[`.${listItemTextClasses.primary}`]: {
|
package/components/Menu.tsx
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
IconButton as MuiIconButton,
|
|
3
|
+
darken,
|
|
4
|
+
lighten,
|
|
5
|
+
styled,
|
|
6
|
+
} from '@mui/material';
|
|
3
7
|
|
|
4
8
|
export const IconButton = styled(MuiIconButton)(({ theme }) => ({
|
|
5
9
|
height: 32,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Box, ScopedCssBaseline } from '@mui/material';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { Box, ScopedCssBaseline, styled } from '@mui/material';
|
|
3
2
|
import { maxHeight } from '../AppContainer.js';
|
|
4
3
|
|
|
5
4
|
export const CollapseContainer = styled(Box)(({ theme }) => ({
|
package/components/Select.tsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
Select as MuiSelect,
|
|
3
|
+
inputBaseClasses,
|
|
4
|
+
listItemIconClasses,
|
|
5
|
+
outlinedInputClasses,
|
|
6
|
+
selectClasses,
|
|
7
|
+
styled,
|
|
8
|
+
} from '@mui/material';
|
|
7
9
|
|
|
8
10
|
export const Select = styled(MuiSelect, {
|
|
9
11
|
shouldForwardProp: (prop) => prop !== 'dense',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { cardHeaderClasses } from '@mui/material
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { cardHeaderClasses, styled } from '@mui/material';
|
|
3
2
|
import { CardHeader } from '../Card/CardHeader.js';
|
|
4
3
|
|
|
5
4
|
export const SelectTokenCardHeader = styled(CardHeader, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { cardHeaderClasses } from '@mui/material
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { cardHeaderClasses, styled } from '@mui/material';
|
|
3
2
|
import { CardHeader } from '../Card/CardHeader.js';
|
|
4
3
|
|
|
5
4
|
export const SendToWalletCardHeader = styled(CardHeader, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Avatar, Box, Skeleton } from '@mui/material';
|
|
2
|
-
import { styled } from '@mui/material/styles';
|
|
1
|
+
import { Avatar, Box, Skeleton, styled } from '@mui/material';
|
|
3
2
|
|
|
4
3
|
export const SmallAvatar = styled(Avatar)(({ theme }) => ({
|
|
5
4
|
background: theme.palette.background.paper,
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { Status, Substatus } from '@lifi/sdk';
|
|
2
2
|
import type { Theme } from '@mui/material';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
Box,
|
|
5
|
+
CircularProgress as MuiCircularProgress,
|
|
6
|
+
alpha,
|
|
7
|
+
circularProgressClasses,
|
|
8
|
+
keyframes,
|
|
9
|
+
styled,
|
|
10
|
+
} from '@mui/material';
|
|
6
11
|
|
|
7
12
|
const getStatusColor = (
|
|
8
13
|
theme: Theme,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IconButtonProps, LinkProps } from '@mui/material';
|
|
2
|
-
import { IconButton } from '@mui/material';
|
|
3
|
-
import { styled } from '@mui/material/styles';
|
|
2
|
+
import { IconButton, styled } from '@mui/material';
|
|
4
3
|
|
|
5
4
|
export const LinkButton = styled(IconButton)<IconButtonProps & LinkProps>(
|
|
6
5
|
({ theme }) => ({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { LiFiStepExtended } from '@lifi/sdk';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import
|
|
4
|
+
import pkg from 'react-timer-hook';
|
|
5
|
+
const { useTimer } = pkg;
|
|
5
6
|
|
|
6
7
|
const getExpiryTimestamp = (step: LiFiStepExtended) =>
|
|
7
8
|
new Date(
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
StepConnector as MuiStepConnector,
|
|
5
5
|
StepLabel as MuiStepLabel,
|
|
6
6
|
Typography,
|
|
7
|
+
stepConnectorClasses,
|
|
8
|
+
stepLabelClasses,
|
|
9
|
+
styled,
|
|
7
10
|
} from '@mui/material';
|
|
8
|
-
import { stepConnectorClasses } from '@mui/material/StepConnector';
|
|
9
|
-
import { stepLabelClasses } from '@mui/material/StepLabel';
|
|
10
|
-
import { styled } from '@mui/material/styles';
|
|
11
11
|
|
|
12
12
|
export const StepIcon = styled('span', {
|
|
13
13
|
shouldForwardProp: (prop) =>
|
package/components/Switch.tsx
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
Switch as MuiSwitch,
|
|
3
|
+
alpha,
|
|
4
|
+
styled,
|
|
5
|
+
switchClasses,
|
|
6
|
+
} from '@mui/material';
|
|
4
7
|
|
|
5
8
|
export const Switch = styled(MuiSwitch)(({ theme }) => ({
|
|
6
9
|
width: 42,
|
|
@@ -2,10 +2,11 @@ import type { TabProps } from '@mui/material';
|
|
|
2
2
|
import {
|
|
3
3
|
Tab as MuiTab,
|
|
4
4
|
Tabs as MuiTabs,
|
|
5
|
+
alpha,
|
|
6
|
+
styled,
|
|
5
7
|
tabClasses,
|
|
6
8
|
tabsClasses,
|
|
7
9
|
} from '@mui/material';
|
|
8
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
9
10
|
import { getCardFieldsetBackgroundColor } from '../../utils/colors.js';
|
|
10
11
|
|
|
11
12
|
export const Tabs = styled(MuiTabs)(({ theme }) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTheme } from '@mui/material
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
import { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
4
4
|
import { useInView } from 'react-intersection-observer';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { CSSObject } from '@mui/material';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import {
|
|
3
|
+
AvatarGroup,
|
|
4
|
+
Box,
|
|
5
|
+
avatarClasses,
|
|
6
|
+
badgeClasses,
|
|
7
|
+
styled,
|
|
8
|
+
} from '@mui/material';
|
|
6
9
|
|
|
7
10
|
export const TokenAvatarGroup = styled(AvatarGroup)(({ theme }) => ({
|
|
8
11
|
[`& .${badgeClasses.badge}:last-child .${avatarClasses.root}`]: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IconButtonProps, LinkProps } from '@mui/material';
|
|
2
|
-
import { IconButton as MuiIconButton } from '@mui/material';
|
|
3
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
2
|
+
import { IconButton as MuiIconButton, alpha, styled } from '@mui/material';
|
|
4
3
|
import { ListItem as ListItemBase } from '../ListItem/ListItem.js';
|
|
5
4
|
|
|
6
5
|
export const ListItem = styled(ListItemBase)(({ theme }) => ({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { WidgetEvent, useWidgetEvents } from '@lifi/widget';
|
|
2
1
|
import { useCallback } from 'react';
|
|
2
|
+
import { useWidgetEvents } from '../../hooks/useWidgetEvents.js';
|
|
3
3
|
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
4
4
|
import type { FormType } from '../../stores/form/types.js';
|
|
5
5
|
import { FormKeyHelper } from '../../stores/form/types.js';
|
|
6
6
|
import { useFieldActions } from '../../stores/form/useFieldActions.js';
|
|
7
7
|
import { useFieldController } from '../../stores/form/useFieldController.js';
|
|
8
|
+
import { WidgetEvent } from '../../types/events.js';
|
|
8
9
|
|
|
9
10
|
export const useTokenSelect = (formType: FormType, onClick?: () => void) => {
|
|
10
11
|
const tokenKey = FormKeyHelper.getTokenKey(formType);
|