@lifi/widget 3.19.0-beta.2 → 3.19.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 +16 -0
- package/dist/esm/AppDrawer.js +6 -7
- package/dist/esm/AppDrawer.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +1 -3
- package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js +3 -2
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.js +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
- package/dist/esm/components/AppContainer.js +1 -1
- package/dist/esm/components/AppContainer.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/Avatar/Avatar.style.js +9 -9
- package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.js +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.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/ButtonTertiary.js +6 -5
- package/dist/esm/components/ButtonTertiary.js.map +1 -1
- package/dist/esm/components/Card/Card.js +18 -18
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardButton.style.js +1 -1
- package/dist/esm/components/Card/CardButton.style.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +2 -2
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Card/CardIconButton.js +3 -2
- package/dist/esm/components/Card/CardIconButton.js.map +1 -1
- package/dist/esm/components/Card/CardLabel.js +21 -15
- package/dist/esm/components/Card/CardLabel.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.js +2 -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/ContractComponent/NFT/NFT.style.js +2 -2
- package/dist/esm/components/ContractComponent/NFT/NFT.style.js.map +1 -1
- package/dist/esm/components/Dialog.d.ts +2 -10
- 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/Header.style.js +7 -15
- package/dist/esm/components/Header/Header.style.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/SettingsButton.style.js +7 -18
- package/dist/esm/components/Header/SettingsButton.style.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 +1 -2
- package/dist/esm/components/Header/WalletHeader.js.map +1 -1
- package/dist/esm/components/Header/WalletMenu.js +1 -3
- package/dist/esm/components/Header/WalletMenu.js.map +1 -1
- package/dist/esm/components/Header/WalletMenu.style.js +4 -4
- package/dist/esm/components/Header/WalletMenu.style.js.map +1 -1
- package/dist/esm/components/IconTypography.js +4 -4
- package/dist/esm/components/IconTypography.js.map +1 -1
- package/dist/esm/components/ListItemButton.js +4 -2
- package/dist/esm/components/ListItemButton.js.map +1 -1
- package/dist/esm/components/Menu.js +3 -3
- package/dist/esm/components/Menu.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/AlertMessage.style.js +12 -18
- package/dist/esm/components/Messages/AlertMessage.style.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/GasRefuelMessage.style.js +7 -7
- package/dist/esm/components/Messages/GasRefuelMessage.style.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/PoweredBy/PoweredBy.style.js +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.js.map +1 -1
- package/dist/esm/components/ProgressToNextUpdate.js +6 -6
- package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js +1 -2
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.js +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCard.js +1 -2
- package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
- package/dist/esm/components/RouteCard/RouteCardEssentials.js +1 -2
- 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/RouteCardSkeleton.js +1 -1
- package/dist/esm/components/RouteCard/RouteCardSkeleton.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/Routes/RoutesExpanded.style.js +2 -2
- package/dist/esm/components/Routes/RoutesExpanded.style.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/SearchInput.style.js +1 -1
- package/dist/esm/components/Search/SearchInput.style.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/Search/SearchNotFound.style.js +1 -1
- package/dist/esm/components/Search/SearchNotFound.style.js.map +1 -1
- package/dist/esm/components/Select.js +4 -4
- package/dist/esm/components/Select.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.js +4 -2
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +7 -8
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/dist/esm/components/SendToWallet/SendToWallet.style.js +2 -2
- package/dist/esm/components/SendToWallet/SendToWallet.style.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/Skeleton/WidgetSkeleton.js +3 -3
- package/dist/esm/components/Skeleton/WidgetSkeleton.js.map +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.js +2 -2
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.js +3 -5
- package/dist/esm/components/Step/CircularProgress.js.map +1 -1
- package/dist/esm/components/Step/CircularProgress.style.js +10 -11
- package/dist/esm/components/Step/CircularProgress.style.js.map +1 -1
- package/dist/esm/components/Step/DestinationWalletAddress.js +1 -2
- 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 +1 -3
- package/dist/esm/components/StepActions/StepActions.js.map +1 -1
- package/dist/esm/components/StepActions/StepActions.style.js +10 -10
- package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
- package/dist/esm/components/Switch.js +16 -10
- package/dist/esm/components/Switch.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.style.js +16 -10
- package/dist/esm/components/Tabs/Tabs.style.js.map +1 -1
- package/dist/esm/components/TextFitter/TextFitter.js +1 -1
- package/dist/esm/components/TextFitter/TextFitter.js.map +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/Token/Token.style.js +6 -6
- package/dist/esm/components/Token/Token.style.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.js +1 -5
- package/dist/esm/components/TokenList/TokenList.js.map +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
- package/dist/esm/components/TokenList/TokenList.style.js +3 -2
- package/dist/esm/components/TokenList/TokenList.style.js.map +1 -1
- 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/TokenRate/TokenRate.style.js +1 -1
- package/dist/esm/components/TokenRate/TokenRate.style.js.map +1 -1
- package/dist/esm/components/TransactionDetails.js +1 -3
- 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/useRoutes.js +4 -4
- package/dist/esm/hooks/useRoutes.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/i18n/en.json +1 -2
- 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 +1 -4
- package/dist/esm/pages/SelectEnabledToolsPage.js.map +1 -1
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +3 -2
- package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +1 -3
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/BookmarksPage.js +1 -5
- package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +1 -2
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +1 -4
- package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +1 -6
- package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +1 -3
- package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +1 -4
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +10 -9
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js +1 -2
- 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/ResetSettingsButton.style.js +3 -2
- package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.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 +1 -2
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +14 -18
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/dist/esm/pages/SettingsPage/ThemeSettings.js +7 -9
- package/dist/esm/pages/SettingsPage/ThemeSettings.js.map +1 -1
- package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +1 -2
- 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/TransactionHistoryPage/TransactionHistorySkeleton.js +2 -2
- package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js +1 -2
- 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 +1 -4
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.style.js +7 -19
- package/dist/esm/pages/TransactionPage/StatusBottomSheet.style.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/providers/ThemeProvider/ThemeProvider.js +22 -7
- package/dist/esm/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/esm/stores/settings/types.d.ts +2 -1
- package/dist/esm/stores/settings/useAppearance.d.ts +2 -0
- package/dist/esm/stores/settings/useAppearance.js +11 -0
- package/dist/esm/stores/settings/useAppearance.js.map +1 -0
- package/dist/esm/stores/settings/useSettingsStore.js +7 -2
- package/dist/esm/stores/settings/useSettingsStore.js.map +1 -1
- package/dist/esm/stores/settings/utils/getStateValues.js +1 -0
- package/dist/esm/stores/settings/utils/getStateValues.js.map +1 -1
- package/dist/esm/themes/createTheme.d.ts +2 -1
- package/dist/esm/themes/createTheme.js +67 -108
- package/dist/esm/themes/createTheme.js.map +1 -1
- package/dist/esm/themes/jumper.js +1 -1
- package/dist/esm/themes/jumper.js.map +1 -1
- package/dist/esm/themes/watermelonLight.js +1 -1
- package/dist/esm/themes/watermelonLight.js.map +1 -1
- package/dist/esm/types/widget.d.ts +12 -22
- package/dist/esm/types/widget.js +1 -0
- package/dist/esm/types/widget.js.map +1 -1
- package/dist/esm/utils/colors.d.ts +15 -0
- package/dist/esm/utils/colors.js +35 -0
- package/dist/esm/utils/colors.js.map +1 -0
- package/package.json +9 -9
- package/package.json.tmp +9 -9
- package/src/AppDrawer.tsx +7 -9
- package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +1 -3
- package/src/components/ActiveTransactions/ActiveTransactions.style.ts +3 -2
- package/src/components/AmountInput/AmountInputAdornment.style.tsx +1 -1
- package/src/components/AppContainer.tsx +1 -1
- package/src/components/Avatar/AccountAvatar.tsx +1 -1
- package/src/components/Avatar/Avatar.style.tsx +9 -9
- package/src/components/Avatar/SmallAvatar.tsx +1 -1
- package/src/components/BottomSheet/BottomSheet.tsx +2 -1
- package/src/components/ButtonTertiary.tsx +6 -5
- package/src/components/Card/Card.tsx +18 -18
- package/src/components/Card/CardButton.style.tsx +1 -1
- package/src/components/Card/CardHeader.tsx +2 -2
- package/src/components/Card/CardIconButton.tsx +3 -2
- package/src/components/Card/CardLabel.tsx +59 -15
- package/src/components/Card/CardTitle.tsx +2 -2
- package/src/components/ContractComponent/NFT/NFT.style.ts +2 -2
- package/src/components/Dialog.tsx +12 -10
- 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/Header.style.ts +7 -15
- package/src/components/Header/SettingsButton.style.tsx +10 -17
- package/src/components/Header/SettingsButton.tsx +1 -1
- package/src/components/Header/TransactionHistoryButton.tsx +1 -1
- package/src/components/Header/WalletHeader.tsx +1 -2
- package/src/components/Header/WalletMenu.style.tsx +4 -4
- package/src/components/Header/WalletMenu.tsx +5 -3
- package/src/components/IconTypography.ts +4 -4
- package/src/components/ListItemButton.tsx +4 -2
- package/src/components/Menu.tsx +3 -3
- package/src/components/Messages/AccountNotDeployedMessage.tsx +1 -1
- package/src/components/Messages/AlertMessage.style.tsx +16 -18
- package/src/components/Messages/FundsSufficiencyMessage.tsx +1 -1
- package/src/components/Messages/GasRefuelMessage.style.ts +7 -7
- 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/PoweredBy/PoweredBy.style.ts +1 -1
- package/src/components/ProgressToNextUpdate.tsx +6 -6
- package/src/components/ReverseTokensButton/ReverseTokensButton.style.tsx +1 -1
- package/src/components/ReverseTokensButton/ReverseTokensButton.tsx +1 -2
- package/src/components/RouteCard/RouteCard.tsx +1 -2
- package/src/components/RouteCard/RouteCardEssentials.tsx +1 -2
- package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +1 -1
- package/src/components/RouteCard/RouteCardSkeleton.tsx +1 -1
- package/src/components/RouteCard/RouteNotFoundCard.tsx +1 -1
- package/src/components/Routes/Routes.tsx +1 -1
- package/src/components/Routes/RoutesExpanded.style.ts +2 -2
- package/src/components/Search/SearchInput.style.tsx +1 -1
- package/src/components/Search/SearchInput.tsx +1 -1
- package/src/components/Search/SearchNotFound.style.tsx +1 -1
- package/src/components/Search/SearchNotFound.tsx +1 -1
- package/src/components/Select.tsx +4 -4
- package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +9 -7
- package/src/components/SelectTokenButton/SelectTokenButton.tsx +4 -2
- package/src/components/SendToWallet/SendToWallet.style.tsx +2 -2
- package/src/components/SendToWallet/SendToWalletButton.tsx +1 -1
- package/src/components/SendToWallet/SendToWalletExpandButton.tsx +1 -1
- package/src/components/Skeleton/WidgetSkeleton.style.tsx +2 -2
- package/src/components/Skeleton/WidgetSkeleton.tsx +6 -9
- package/src/components/Step/CircularProgress.style.tsx +11 -11
- package/src/components/Step/CircularProgress.tsx +8 -5
- package/src/components/Step/DestinationWalletAddress.tsx +1 -2
- package/src/components/Step/StepProcess.tsx +1 -1
- package/src/components/StepActions/StepActions.style.tsx +10 -9
- package/src/components/StepActions/StepActions.tsx +1 -3
- package/src/components/Switch.tsx +21 -10
- package/src/components/Tabs/Tabs.style.tsx +16 -9
- package/src/components/TextFitter/TextFitter.tsx +1 -1
- package/src/components/Timer/TimerContent.tsx +1 -1
- package/src/components/Token/Token.style.tsx +6 -6
- package/src/components/TokenList/TokenList.style.tsx +3 -2
- package/src/components/TokenList/TokenList.tsx +1 -5
- package/src/components/TokenList/TokenListItem.tsx +1 -1
- package/src/components/TokenList/types.ts +3 -3
- package/src/components/TokenRate/TokenRate.style.ts +1 -1
- package/src/components/TransactionDetails.tsx +5 -3
- package/src/config/version.ts +1 -1
- package/src/hooks/useRoutes.ts +4 -4
- package/src/hooks/useSetContentHeight.ts +2 -2
- package/src/i18n/en.json +1 -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 +6 -4
- package/src/pages/SelectTokenPage/SelectTokenPage.tsx +4 -2
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +8 -6
- package/src/pages/SendToWallet/BookmarksPage.tsx +7 -5
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +3 -4
- package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +6 -4
- package/src/pages/SendToWallet/RecentWalletsPage.tsx +8 -6
- package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +5 -3
- package/src/pages/SendToWallet/SendToWalletPage.style.tsx +10 -9
- package/src/pages/SendToWallet/SendToWalletPage.tsx +6 -4
- package/src/pages/SettingsPage/BridgeAndExchangeSettings.tsx +1 -2
- package/src/pages/SettingsPage/GasPriceSettings.tsx +1 -1
- package/src/pages/SettingsPage/LanguageSetting.tsx +1 -1
- package/src/pages/SettingsPage/ResetSettingsButton.style.tsx +3 -2
- package/src/pages/SettingsPage/ResetSettingsButton.tsx +1 -1
- package/src/pages/SettingsPage/RoutePrioritySettings.tsx +1 -1
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +15 -17
- package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +1 -2
- package/src/pages/SettingsPage/ThemeSettings.tsx +7 -10
- package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +1 -2
- package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +1 -1
- package/src/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +2 -2
- package/src/pages/TransactionPage/ConfirmToAddressSheet.tsx +3 -4
- package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +7 -5
- package/src/pages/TransactionPage/StatusBottomSheet.style.tsx +7 -19
- package/src/pages/TransactionPage/StatusBottomSheet.tsx +6 -4
- package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +3 -3
- package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
- package/src/providers/ThemeProvider/ThemeProvider.tsx +27 -20
- package/src/stores/settings/types.ts +2 -1
- package/src/stores/settings/useAppearance.ts +15 -0
- package/src/stores/settings/useSettingsStore.ts +7 -2
- package/src/stores/settings/utils/getStateValues.ts +1 -0
- package/src/themes/createTheme.ts +91 -124
- package/src/themes/jumper.ts +1 -1
- package/src/themes/types.ts +0 -1
- package/src/themes/watermelonLight.ts +1 -1
- package/src/types/widget.ts +17 -26
- package/src/utils/colors.ts +53 -0
package/dist/esm/types/widget.js
CHANGED
|
@@ -18,6 +18,7 @@ export var HiddenUI;
|
|
|
18
18
|
HiddenUI["IntegratorStepDetails"] = "integratorStepDetails";
|
|
19
19
|
HiddenUI["ReverseTokensButton"] = "reverseTokensButton";
|
|
20
20
|
HiddenUI["RouteTokenDescription"] = "routeTokenDescription";
|
|
21
|
+
HiddenUI["ChainSelect"] = "chainSelect";
|
|
21
22
|
})(HiddenUI || (HiddenUI = {}));
|
|
22
23
|
export var RequiredUI;
|
|
23
24
|
(function (RequiredUI) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"AAiFA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;AACrB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,uDAA2C,CAAA;IAC3C,2DAA+C,CAAA;IAC/C,uCAA2B,CAAA;AAC7B,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAGD,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,qCAAuB,CAAA;AACzB,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
export declare const getContrastAlphaColor: (theme: Theme, value: number) => string;
|
|
3
|
+
export declare const getWarningBackgroundColor: (theme: Theme) => string;
|
|
4
|
+
export declare const getInfoBackgroundColor: (theme: Theme) => string;
|
|
5
|
+
/**
|
|
6
|
+
* https://github.com/mui/material-ui/blob/next/packages/mui-system/src/colorManipulator/colorManipulator.js
|
|
7
|
+
* Blend a transparent overlay color with a background color, resulting in a single
|
|
8
|
+
* RGB color.
|
|
9
|
+
* Remove in favor of MUI one once the next major version is released.
|
|
10
|
+
* @param {string} background - CSS color
|
|
11
|
+
* @param {string} overlay - CSS color
|
|
12
|
+
* @param {number} opacity - Opacity multiplier in the range 0 - 1
|
|
13
|
+
* @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
|
|
14
|
+
*/
|
|
15
|
+
export declare function blend(background: string, overlay: string, opacity: number, gamma?: number): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { alpha, decomposeColor, recomposeColor } from '@mui/material';
|
|
2
|
+
export const getContrastAlphaColor = (theme, value) => theme.palette.mode === 'light'
|
|
3
|
+
? alpha(theme.palette.common.black, value)
|
|
4
|
+
: alpha(theme.palette.common.white, value);
|
|
5
|
+
export const getWarningBackgroundColor = (theme) => theme.palette.mode === 'light'
|
|
6
|
+
? alpha(theme.palette.warning.main, 0.32)
|
|
7
|
+
: alpha(theme.palette.warning.main, 0.16);
|
|
8
|
+
export const getInfoBackgroundColor = (theme) => theme.palette.mode === 'light'
|
|
9
|
+
? alpha(theme.palette.info.main, 0.12)
|
|
10
|
+
: alpha(theme.palette.info.main, 0.16);
|
|
11
|
+
/**
|
|
12
|
+
* https://github.com/mui/material-ui/blob/next/packages/mui-system/src/colorManipulator/colorManipulator.js
|
|
13
|
+
* Blend a transparent overlay color with a background color, resulting in a single
|
|
14
|
+
* RGB color.
|
|
15
|
+
* Remove in favor of MUI one once the next major version is released.
|
|
16
|
+
* @param {string} background - CSS color
|
|
17
|
+
* @param {string} overlay - CSS color
|
|
18
|
+
* @param {number} opacity - Opacity multiplier in the range 0 - 1
|
|
19
|
+
* @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
|
|
20
|
+
*/
|
|
21
|
+
export function blend(background, overlay, opacity, gamma = 1.0) {
|
|
22
|
+
const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);
|
|
23
|
+
const backgroundColor = decomposeColor(background);
|
|
24
|
+
const overlayColor = decomposeColor(overlay);
|
|
25
|
+
const rgb = [
|
|
26
|
+
blendChannel(backgroundColor.values[0], overlayColor.values[0]),
|
|
27
|
+
blendChannel(backgroundColor.values[1], overlayColor.values[1]),
|
|
28
|
+
blendChannel(backgroundColor.values[2], overlayColor.values[2]),
|
|
29
|
+
];
|
|
30
|
+
return recomposeColor({
|
|
31
|
+
type: 'rgb',
|
|
32
|
+
values: rgb,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAE,KAAa,EAAE,EAAE,CACnE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAC1C,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAE9C,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,CAAA;AAE7C,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,CAAA;AAE1C;;;;;;;;;GASG;AACH,MAAM,UAAU,KAAK,CACnB,UAAkB,EAClB,OAAe,EACf,OAAe,EACf,KAAK,GAAG,GAAG;IAEX,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAC5C,IAAI,CAAC,KAAK,CACR,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CACzE,CAAA;IAEH,MAAM,eAAe,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;IAClD,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;IAE5C,MAAM,GAAG,GAA6B;QACpC,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC/D,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC/D,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAChE,CAAA;IAED,OAAO,cAAc,CAAC;QACpB,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,GAAG;KACZ,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.19.0
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"@bigmi/core": "^0.1.1",
|
|
35
35
|
"@emotion/react": "^11.14.0",
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
|
-
"@lifi/sdk": "^3.6.
|
|
38
|
-
"@mui/icons-material": "
|
|
39
|
-
"@mui/material": "^
|
|
40
|
-
"@mui/system": "^
|
|
37
|
+
"@lifi/sdk": "^3.6.9",
|
|
38
|
+
"@mui/icons-material": "6.0.2",
|
|
39
|
+
"@mui/material": "^6.4.11",
|
|
40
|
+
"@mui/system": "^6.4.11",
|
|
41
41
|
"@solana/wallet-adapter-base": "^0.9.24",
|
|
42
42
|
"@solana/web3.js": "^1.98.0",
|
|
43
43
|
"@tanstack/react-virtual": "^3.13.6",
|
|
44
|
-
"i18next": "^25.0.
|
|
44
|
+
"i18next": "^25.0.1",
|
|
45
45
|
"microdiff": "^1.5.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
|
-
"react-i18next": "^15.
|
|
47
|
+
"react-i18next": "^15.5.1",
|
|
48
48
|
"react-intersection-observer": "^9.16.0",
|
|
49
49
|
"react-router-dom": "^6.30.0",
|
|
50
|
-
"viem": "^2.
|
|
50
|
+
"viem": "^2.28.0",
|
|
51
51
|
"zustand": "^5.0.3",
|
|
52
|
-
"@lifi/wallet-management": "^3.
|
|
52
|
+
"@lifi/wallet-management": "^3.7.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@bigmi/react": ">=0.1.0",
|
package/package.json.tmp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.19.0
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
"@bigmi/core": "^0.1.1",
|
|
54
54
|
"@emotion/react": "^11.14.0",
|
|
55
55
|
"@emotion/styled": "^11.14.0",
|
|
56
|
-
"@lifi/sdk": "^3.6.
|
|
56
|
+
"@lifi/sdk": "^3.6.9",
|
|
57
57
|
"@lifi/wallet-management": "workspace:^",
|
|
58
|
-
"@mui/icons-material": "
|
|
59
|
-
"@mui/material": "^
|
|
60
|
-
"@mui/system": "^
|
|
58
|
+
"@mui/icons-material": "6.0.2",
|
|
59
|
+
"@mui/material": "^6.4.11",
|
|
60
|
+
"@mui/system": "^6.4.11",
|
|
61
61
|
"@solana/wallet-adapter-base": "^0.9.24",
|
|
62
62
|
"@solana/web3.js": "^1.98.0",
|
|
63
63
|
"@tanstack/react-virtual": "^3.13.6",
|
|
64
|
-
"i18next": "^25.0.
|
|
64
|
+
"i18next": "^25.0.1",
|
|
65
65
|
"microdiff": "^1.5.0",
|
|
66
66
|
"mitt": "^3.0.1",
|
|
67
|
-
"react-i18next": "^15.
|
|
67
|
+
"react-i18next": "^15.5.1",
|
|
68
68
|
"react-intersection-observer": "^9.16.0",
|
|
69
69
|
"react-router-dom": "^6.30.0",
|
|
70
|
-
"viem": "^2.
|
|
70
|
+
"viem": "^2.28.0",
|
|
71
71
|
"zustand": "^5.0.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react": "^19.1.0",
|
|
77
77
|
"react-dom": "^19.1.0",
|
|
78
78
|
"typescript": "^5.8.3",
|
|
79
|
-
"vitest": "^3.1.
|
|
79
|
+
"vitest": "^3.1.2"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@bigmi/react": ">=0.1.0",
|
package/src/AppDrawer.tsx
CHANGED
|
@@ -73,15 +73,6 @@ export const AppDrawer = forwardRef<
|
|
|
73
73
|
open={drawerOpen}
|
|
74
74
|
onClose={closeDrawer}
|
|
75
75
|
slotProps={{
|
|
76
|
-
paper: {
|
|
77
|
-
sx: (theme) => ({
|
|
78
|
-
width: theme?.container?.width ?? '100%',
|
|
79
|
-
minWidth:
|
|
80
|
-
theme?.container?.minWidth ?? theme.breakpoints.values.xs,
|
|
81
|
-
maxWidth:
|
|
82
|
-
theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
|
|
83
|
-
}),
|
|
84
|
-
},
|
|
85
76
|
backdrop: {
|
|
86
77
|
sx: {
|
|
87
78
|
backgroundColor: 'rgb(0 0 0 / 48%)',
|
|
@@ -89,6 +80,13 @@ export const AppDrawer = forwardRef<
|
|
|
89
80
|
},
|
|
90
81
|
},
|
|
91
82
|
}}
|
|
83
|
+
PaperProps={{
|
|
84
|
+
sx: (theme) => ({
|
|
85
|
+
width: theme?.container?.width ?? '100%',
|
|
86
|
+
minWidth: theme?.container?.minWidth ?? theme.breakpoints.values.xs,
|
|
87
|
+
maxWidth: theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
|
|
88
|
+
}),
|
|
89
|
+
}}
|
|
92
90
|
keepMounted
|
|
93
91
|
>
|
|
94
92
|
{children}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import ArrowForward from '@mui/icons-material
|
|
2
|
-
import ErrorRounded from '@mui/icons-material/ErrorRounded'
|
|
3
|
-
import InfoRounded from '@mui/icons-material/InfoRounded'
|
|
1
|
+
import { ArrowForward, ErrorRounded, InfoRounded } from '@mui/icons-material'
|
|
4
2
|
import { ListItemAvatar, ListItemText, Typography } from '@mui/material'
|
|
5
3
|
import { useNavigate } from 'react-router-dom'
|
|
6
4
|
import { useProcessMessage } from '../../hooks/useProcessMessage.js'
|
|
@@ -5,14 +5,15 @@ import {
|
|
|
5
5
|
listItemSecondaryActionClasses,
|
|
6
6
|
styled,
|
|
7
7
|
} from '@mui/material'
|
|
8
|
+
import { getContrastAlphaColor } from '../../utils/colors.js'
|
|
8
9
|
|
|
9
10
|
export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
|
|
10
|
-
borderRadius: theme.
|
|
11
|
+
borderRadius: theme.shape.borderRadius,
|
|
11
12
|
paddingLeft: theme.spacing(1.5),
|
|
12
13
|
paddingRight: theme.spacing(1.5),
|
|
13
14
|
height: 64,
|
|
14
15
|
'&:hover': {
|
|
15
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: getContrastAlphaColor(theme, 0.04),
|
|
16
17
|
},
|
|
17
18
|
}))
|
|
18
19
|
|
|
@@ -10,5 +10,5 @@ export const MaxButton = styled(MuiButton)(({ theme }) => ({
|
|
|
10
10
|
export const MaxButtonSkeleton = styled(Skeleton)(({ theme }) => ({
|
|
11
11
|
width: 46,
|
|
12
12
|
height: 24,
|
|
13
|
-
borderRadius: theme.
|
|
13
|
+
borderRadius: theme.shape.borderRadiusSecondary,
|
|
14
14
|
}))
|
|
@@ -48,7 +48,7 @@ export const RelativeContainer = styled(Box, {
|
|
|
48
48
|
width: '100%',
|
|
49
49
|
minWidth: theme.breakpoints.values.xs,
|
|
50
50
|
maxWidth: theme.breakpoints.values.sm,
|
|
51
|
-
background: theme.
|
|
51
|
+
background: theme.palette.background.default,
|
|
52
52
|
overflow: 'auto',
|
|
53
53
|
flex: 1,
|
|
54
54
|
zIndex: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Account } from '@lifi/wallet-management'
|
|
2
2
|
import { getConnectorIcon } from '@lifi/wallet-management'
|
|
3
|
-
import Wallet from '@mui/icons-material
|
|
3
|
+
import { Wallet } from '@mui/icons-material'
|
|
4
4
|
import { Badge } from '@mui/material'
|
|
5
5
|
import { useChain } from '../../hooks/useChain.js'
|
|
6
6
|
import type { ToAddress } from '../../types/widget.js'
|
|
@@ -36,37 +36,37 @@ export const AvatarDefault = styled(Box)(({ theme }) => {
|
|
|
36
36
|
display: 'flex',
|
|
37
37
|
alignItems: 'center',
|
|
38
38
|
justifyContent: 'center',
|
|
39
|
+
background: theme.palette.grey[800],
|
|
39
40
|
borderRadius: '50%',
|
|
40
41
|
height: root?.height,
|
|
41
42
|
width: root?.width,
|
|
42
|
-
color: theme.
|
|
43
|
+
color: theme.palette.text.secondary,
|
|
43
44
|
mask: avatarMask16,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
background: theme.vars.palette.grey[800],
|
|
45
|
+
...theme.applyStyles('light', {
|
|
46
|
+
background: theme.palette.grey[300],
|
|
47
47
|
}),
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
export const AvatarDefaultBadge = styled(Box)(({ theme }) => {
|
|
52
52
|
return {
|
|
53
|
+
background: theme.palette.grey[800],
|
|
53
54
|
borderRadius: '50%',
|
|
54
55
|
height: 16,
|
|
55
56
|
width: 16,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
background: theme.vars.palette.grey[800],
|
|
57
|
+
...theme.applyStyles('light', {
|
|
58
|
+
background: theme.palette.grey[300],
|
|
59
59
|
}),
|
|
60
60
|
}
|
|
61
61
|
})
|
|
62
62
|
|
|
63
63
|
export const AvatarSkeletonContainer = styled(Box)(({ theme }) => ({
|
|
64
|
-
background: theme.
|
|
64
|
+
background: theme.palette.background.paper,
|
|
65
65
|
borderRadius: '50%',
|
|
66
66
|
}))
|
|
67
67
|
|
|
68
68
|
export const AvatarSkeletonMaskedContainer = styled(Box)(({ theme }) => ({
|
|
69
|
-
background: theme.
|
|
69
|
+
background: theme.palette.background.paper,
|
|
70
70
|
borderRadius: '50%',
|
|
71
71
|
mask: avatarMask16,
|
|
72
72
|
}))
|
|
@@ -2,7 +2,7 @@ import { Avatar, Skeleton, styled } from '@mui/material'
|
|
|
2
2
|
import { AvatarSkeletonContainer } from './Avatar.style.js'
|
|
3
3
|
|
|
4
4
|
export const SmallAvatar = styled(Avatar)(({ theme }) => ({
|
|
5
|
-
background: theme.
|
|
5
|
+
background: theme.palette.background.paper,
|
|
6
6
|
width: 16,
|
|
7
7
|
height: 16,
|
|
8
8
|
}))
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useState,
|
|
8
8
|
} from 'react'
|
|
9
9
|
import { useGetScrollableContainer } from '../../hooks/useScrollableContainer.js'
|
|
10
|
-
import { modalProps, slotProps } from '../Dialog.js'
|
|
10
|
+
import { modalProps, paperProps, slotProps } from '../Dialog.js'
|
|
11
11
|
import type { BottomSheetBase, BottomSheetProps } from './types.js'
|
|
12
12
|
|
|
13
13
|
export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
|
|
@@ -43,6 +43,7 @@ export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
|
|
|
43
43
|
open={drawerOpen}
|
|
44
44
|
onClose={close}
|
|
45
45
|
ModalProps={modalProps}
|
|
46
|
+
PaperProps={paperProps}
|
|
46
47
|
slotProps={slotProps}
|
|
47
48
|
disableAutoFocus
|
|
48
49
|
>
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Button, buttonClasses, styled } from '@mui/material'
|
|
2
|
+
import { getContrastAlphaColor } from '../utils/colors.js'
|
|
2
3
|
|
|
3
4
|
export const ButtonTertiary = styled(Button)(({ theme }) => ({
|
|
4
|
-
color: theme.
|
|
5
|
+
color: theme.palette.text.primary,
|
|
5
6
|
height: 40,
|
|
6
7
|
fontSize: 14,
|
|
7
|
-
backgroundColor:
|
|
8
|
+
backgroundColor: getContrastAlphaColor(theme, 0.04),
|
|
8
9
|
'&:hover, &:active': {
|
|
9
|
-
backgroundColor:
|
|
10
|
+
backgroundColor: getContrastAlphaColor(theme, 0.08),
|
|
10
11
|
},
|
|
11
12
|
[`&.${buttonClasses.loading}:disabled`]: {
|
|
12
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: getContrastAlphaColor(theme, 0.04),
|
|
13
14
|
},
|
|
14
15
|
[`.${buttonClasses.loadingIndicator}`]: {
|
|
15
|
-
color: theme.
|
|
16
|
+
color: theme.palette.text.primary,
|
|
16
17
|
},
|
|
17
18
|
}))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CardProps as MuiCardProps } from '@mui/material'
|
|
2
|
-
import { Card as MuiCard, styled } from '@mui/material'
|
|
2
|
+
import { Card as MuiCard, alpha, darken, lighten, styled } from '@mui/material'
|
|
3
3
|
|
|
4
4
|
export interface CardProps extends MuiCardProps {
|
|
5
5
|
type?: 'default' | 'selected' | 'error'
|
|
@@ -26,18 +26,18 @@ export const Card = styled(MuiCard, {
|
|
|
26
26
|
type: 'selected',
|
|
27
27
|
},
|
|
28
28
|
style: {
|
|
29
|
+
backgroundColor: darken(theme.palette.primary.main, 0.65),
|
|
29
30
|
borderWidth: 1,
|
|
30
31
|
borderStyle: 'solid',
|
|
31
|
-
borderColor: theme.
|
|
32
|
-
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 5%, white)`,
|
|
32
|
+
borderColor: theme.palette.primary.main,
|
|
33
33
|
'&:hover': {
|
|
34
|
-
backgroundColor:
|
|
34
|
+
backgroundColor: darken(theme.palette.primary.main, 0.6),
|
|
35
|
+
...theme.applyStyles('light', {
|
|
36
|
+
backgroundColor: lighten(theme.palette.primary.main, 0.9),
|
|
37
|
+
}),
|
|
35
38
|
},
|
|
36
|
-
...theme.applyStyles('
|
|
37
|
-
backgroundColor:
|
|
38
|
-
'&:hover': {
|
|
39
|
-
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 40%, black)`,
|
|
40
|
-
},
|
|
39
|
+
...theme.applyStyles('light', {
|
|
40
|
+
backgroundColor: lighten(theme.palette.primary.main, 0.95),
|
|
41
41
|
}),
|
|
42
42
|
},
|
|
43
43
|
},
|
|
@@ -47,18 +47,18 @@ export const Card = styled(MuiCard, {
|
|
|
47
47
|
type: 'selected',
|
|
48
48
|
},
|
|
49
49
|
style: {
|
|
50
|
-
backgroundColor:
|
|
50
|
+
backgroundColor: darken(theme.palette.secondary.main, 0.76),
|
|
51
51
|
borderWidth: 1,
|
|
52
52
|
borderStyle: 'solid',
|
|
53
|
-
borderColor:
|
|
53
|
+
borderColor: alpha(theme.palette.secondary.main, 0.2),
|
|
54
54
|
'&:hover': {
|
|
55
|
-
backgroundColor:
|
|
55
|
+
backgroundColor: darken(theme.palette.secondary.main, 0.72),
|
|
56
|
+
...theme.applyStyles('light', {
|
|
57
|
+
backgroundColor: lighten(theme.palette.secondary.main, 0.8),
|
|
58
|
+
}),
|
|
56
59
|
},
|
|
57
|
-
...theme.applyStyles('
|
|
58
|
-
backgroundColor:
|
|
59
|
-
'&:hover': {
|
|
60
|
-
backgroundColor: `color-mix(in srgb, ${theme.vars.palette.secondary.main} 28%, black)`,
|
|
61
|
-
},
|
|
60
|
+
...theme.applyStyles('light', {
|
|
61
|
+
backgroundColor: lighten(theme.palette.secondary.main, 0.85),
|
|
62
62
|
}),
|
|
63
63
|
},
|
|
64
64
|
},
|
|
@@ -69,7 +69,7 @@ export const Card = styled(MuiCard, {
|
|
|
69
69
|
style: {
|
|
70
70
|
borderWidth: 1,
|
|
71
71
|
borderStyle: 'solid',
|
|
72
|
-
borderColor: theme.
|
|
72
|
+
borderColor: theme.palette.error.main,
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
75
|
],
|
|
@@ -12,7 +12,7 @@ export const CardRowButton = styled(ButtonBase)(({ theme }) => ({
|
|
|
12
12
|
justifyContent: 'space-between',
|
|
13
13
|
alignItems: 'center',
|
|
14
14
|
padding: theme.spacing(2),
|
|
15
|
-
borderRadius: theme.
|
|
15
|
+
borderRadius: theme.shape.borderRadius,
|
|
16
16
|
}))
|
|
17
17
|
|
|
18
18
|
export const CardRowContainer = styled(Box)(({ theme }) => ({
|
|
@@ -13,14 +13,14 @@ export const CardHeader = styled(MuiCardHeader)(({ theme }) => ({
|
|
|
13
13
|
fontWeight: 600,
|
|
14
14
|
fontSize: 18,
|
|
15
15
|
lineHeight: 1.3334,
|
|
16
|
-
color: theme.
|
|
16
|
+
color: theme.palette.text.primary,
|
|
17
17
|
textAlign: 'left',
|
|
18
18
|
},
|
|
19
19
|
[`.${cardHeaderClasses.subheader}`]: {
|
|
20
20
|
fontWeight: 500,
|
|
21
21
|
fontSize: 12,
|
|
22
22
|
lineHeight: 1.3334,
|
|
23
|
-
color: theme.
|
|
23
|
+
color: theme.palette.text.secondary,
|
|
24
24
|
textAlign: 'left',
|
|
25
25
|
},
|
|
26
26
|
}))
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { IconButtonProps, LinkProps } from '@mui/material'
|
|
2
2
|
import { IconButton as MuiIconButton, styled } from '@mui/material'
|
|
3
|
+
import { getContrastAlphaColor } from '../../utils/colors.js'
|
|
3
4
|
|
|
4
5
|
export const CardIconButton = styled(MuiIconButton)<
|
|
5
6
|
IconButtonProps & Pick<LinkProps, 'href' | 'target' | 'rel'>
|
|
6
7
|
>(({ theme }) => {
|
|
7
8
|
return {
|
|
8
9
|
padding: theme.spacing(0.5),
|
|
9
|
-
backgroundColor:
|
|
10
|
+
backgroundColor: getContrastAlphaColor(theme, 0.04),
|
|
10
11
|
'&:hover': {
|
|
11
|
-
backgroundColor:
|
|
12
|
+
backgroundColor: getContrastAlphaColor(theme, 0.08),
|
|
12
13
|
},
|
|
13
14
|
fontSize: '1rem',
|
|
14
15
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
Typography,
|
|
4
|
+
getContrastRatio,
|
|
5
|
+
lighten,
|
|
6
|
+
styled,
|
|
7
|
+
} from '@mui/material'
|
|
8
|
+
import { blend } from '../../utils/colors.js'
|
|
2
9
|
|
|
3
10
|
export const CardLabel = styled(Box, {
|
|
4
11
|
shouldForwardProp: (prop) => prop !== 'variant',
|
|
5
12
|
})<{ variant?: 'secondary' | 'success' }>(({ theme }) => ({
|
|
6
|
-
borderRadius: theme.
|
|
13
|
+
borderRadius: theme.shape.borderRadius,
|
|
7
14
|
padding: 0,
|
|
8
15
|
display: 'flex',
|
|
9
16
|
alignItems: 'center',
|
|
@@ -12,30 +19,67 @@ export const CardLabel = styled(Box, {
|
|
|
12
19
|
minWidth: 24,
|
|
13
20
|
userSelect: 'none',
|
|
14
21
|
fontSize: '1rem',
|
|
15
|
-
backgroundColor:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
backgroundColor: blend(
|
|
23
|
+
theme.palette.background.paper,
|
|
24
|
+
theme.palette.common.white,
|
|
25
|
+
0.16
|
|
26
|
+
),
|
|
27
|
+
color: theme.palette.text.primary,
|
|
28
|
+
...theme.applyStyles('light', {
|
|
29
|
+
backgroundColor: blend(
|
|
30
|
+
theme.palette.background.paper,
|
|
31
|
+
theme.palette.common.black,
|
|
32
|
+
0.12
|
|
33
|
+
),
|
|
19
34
|
}),
|
|
20
35
|
variants: [
|
|
21
36
|
{
|
|
22
37
|
props: { variant: 'secondary' },
|
|
23
38
|
style: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
39
|
+
backgroundColor: blend(
|
|
40
|
+
theme.palette.background.paper,
|
|
41
|
+
theme.palette.secondary.main,
|
|
42
|
+
0.8
|
|
43
|
+
),
|
|
44
|
+
color:
|
|
45
|
+
getContrastRatio(
|
|
46
|
+
theme.palette.common.white,
|
|
47
|
+
blend(
|
|
48
|
+
theme.palette.background.paper,
|
|
49
|
+
theme.palette.secondary.main,
|
|
50
|
+
0.8
|
|
51
|
+
)
|
|
52
|
+
) >= 3
|
|
53
|
+
? theme.palette.common.white
|
|
54
|
+
: theme.palette.common.black,
|
|
55
|
+
...theme.applyStyles('light', {
|
|
56
|
+
backgroundColor: theme.palette.secondary.main,
|
|
57
|
+
color:
|
|
58
|
+
getContrastRatio(
|
|
59
|
+
theme.palette.common.white,
|
|
60
|
+
theme.palette.secondary.main
|
|
61
|
+
) >= 3
|
|
62
|
+
? theme.palette.common.white
|
|
63
|
+
: theme.palette.common.black,
|
|
28
64
|
}),
|
|
29
65
|
},
|
|
30
66
|
},
|
|
31
67
|
{
|
|
32
68
|
props: { variant: 'success' },
|
|
33
69
|
style: {
|
|
34
|
-
backgroundColor:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
70
|
+
backgroundColor: blend(
|
|
71
|
+
theme.palette.background.paper,
|
|
72
|
+
theme.palette.success.main,
|
|
73
|
+
0.24
|
|
74
|
+
),
|
|
75
|
+
color: lighten(theme.palette.success.main, 0.24),
|
|
76
|
+
...theme.applyStyles('light', {
|
|
77
|
+
backgroundColor: blend(
|
|
78
|
+
theme.palette.background.paper,
|
|
79
|
+
theme.palette.success.main,
|
|
80
|
+
0.16
|
|
81
|
+
),
|
|
82
|
+
color: lighten(theme.palette.success.main, 0),
|
|
39
83
|
}),
|
|
40
84
|
},
|
|
41
85
|
},
|
|
@@ -8,10 +8,10 @@ export const CardTitle = styled(Typography, {
|
|
|
8
8
|
fontWeight: 700,
|
|
9
9
|
padding: theme.spacing(2, 2, 0, 2),
|
|
10
10
|
textAlign: 'left',
|
|
11
|
-
color: theme.
|
|
11
|
+
color: theme.palette.text.primary,
|
|
12
12
|
'&:after': {
|
|
13
13
|
content: 'none',
|
|
14
|
-
color: theme.
|
|
14
|
+
color: theme.palette.error.main,
|
|
15
15
|
},
|
|
16
16
|
variants: [
|
|
17
17
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Avatar, styled } from '@mui/material'
|
|
2
2
|
|
|
3
3
|
export const PreviewAvatar = styled(Avatar)(({ theme }) => ({
|
|
4
|
-
background: theme.
|
|
4
|
+
background: theme.palette.background.paper,
|
|
5
5
|
width: 96,
|
|
6
6
|
height: 96,
|
|
7
|
-
borderRadius: theme.
|
|
7
|
+
borderRadius: theme.shape.borderRadius,
|
|
8
8
|
}))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DialogProps, Theme } from '@mui/material'
|
|
1
|
+
import type { DialogProps, PaperProps, Theme } from '@mui/material'
|
|
2
2
|
import { Dialog as MuiDialog } from '@mui/material'
|
|
3
3
|
import type { PropsWithChildren } from 'react'
|
|
4
4
|
import { useGetScrollableContainer } from '../hooks/useScrollableContainer.js'
|
|
@@ -10,16 +10,17 @@ export const modalProps = {
|
|
|
10
10
|
},
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export const paperProps: Partial<PaperProps> = {
|
|
14
|
+
sx: (theme: Theme) => ({
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
backgroundImage: 'none',
|
|
17
|
+
backgroundColor: theme.palette.background.default,
|
|
18
|
+
borderTopLeftRadius: theme.shape.borderRadius,
|
|
19
|
+
borderTopRightRadius: theme.shape.borderRadius,
|
|
20
|
+
}),
|
|
21
|
+
}
|
|
22
|
+
|
|
13
23
|
export const slotProps = {
|
|
14
|
-
paper: {
|
|
15
|
-
sx: (theme: Theme) => ({
|
|
16
|
-
position: 'absolute',
|
|
17
|
-
backgroundImage: 'none',
|
|
18
|
-
backgroundColor: theme.vars.palette.background.default,
|
|
19
|
-
borderTopLeftRadius: theme.vars.shape.borderRadius,
|
|
20
|
-
borderTopRightRadius: theme.vars.shape.borderRadius,
|
|
21
|
-
}),
|
|
22
|
-
},
|
|
23
24
|
backdrop: {
|
|
24
25
|
sx: {
|
|
25
26
|
position: 'absolute',
|
|
@@ -41,6 +42,7 @@ export const Dialog: React.FC<PropsWithChildren<DialogProps>> = ({
|
|
|
41
42
|
open={open}
|
|
42
43
|
onClose={onClose}
|
|
43
44
|
sx={modalProps.sx}
|
|
45
|
+
PaperProps={paperProps}
|
|
44
46
|
slotProps={slotProps}
|
|
45
47
|
>
|
|
46
48
|
{children}
|