@lifi/widget 3.0.0-alpha.24 → 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/App.tsx +5 -5
- package/AppDefault.tsx +9 -9
- package/AppDrawer.style.tsx +1 -2
- package/AppDrawer.tsx +7 -8
- package/AppProvider.tsx +8 -7
- package/AppRoutes.tsx +19 -21
- package/_esm/App.d.ts +4 -4
- package/_esm/App.js +3 -3
- package/_esm/App.js.map +1 -1
- package/_esm/AppDefault.js +9 -9
- package/_esm/AppDefault.js.map +1 -1
- package/_esm/AppDrawer.d.ts +2 -2
- package/_esm/AppDrawer.js +5 -6
- package/_esm/AppDrawer.js.map +1 -1
- package/_esm/AppDrawer.style.d.ts +4 -4
- package/_esm/AppDrawer.style.js +1 -2
- package/_esm/AppDrawer.style.js.map +1 -1
- package/_esm/AppDrawerContext.d.ts +1 -1
- package/_esm/AppProvider.d.ts +1 -1
- package/_esm/AppProvider.js +7 -3
- package/_esm/AppProvider.js.map +1 -1
- package/_esm/AppRoutes.d.ts +1 -1
- package/_esm/AppRoutes.js +19 -15
- package/_esm/AppRoutes.js.map +1 -1
- package/_esm/components/AccountAvatar.d.ts +1 -1
- package/_esm/components/AccountAvatar.js +5 -5
- package/_esm/components/AccountAvatar.js.map +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactionItem.d.ts +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactionItem.js +12 -12
- package/_esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactions.d.ts +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactions.js +6 -5
- package/_esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
- package/_esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +6 -6
- package/_esm/components/ActiveTransactions/ActiveTransactions.style.js +2 -4
- package/_esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
- package/_esm/components/ActiveTransactions/index.d.ts +2 -2
- package/_esm/components/ActiveTransactions/index.js +2 -2
- package/_esm/components/ActiveTransactions/index.js.map +1 -1
- package/_esm/components/AlertMessage/AlertMessage.d.ts +1 -1
- package/_esm/components/AlertMessage/AlertMessage.js +1 -1
- package/_esm/components/AlertMessage/AlertMessage.js.map +1 -1
- package/_esm/components/AlertMessage/AlertMessage.style.d.ts +2 -2
- package/_esm/components/AlertMessage/AlertMessage.style.js +2 -3
- package/_esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
- package/_esm/components/AlertMessage/index.d.ts +3 -3
- package/_esm/components/AlertMessage/index.js +3 -3
- package/_esm/components/AlertMessage/index.js.map +1 -1
- package/_esm/components/AmountInput/AmountInput.d.ts +1 -1
- package/_esm/components/AmountInput/AmountInput.js +14 -10
- package/_esm/components/AmountInput/AmountInput.js.map +1 -1
- package/_esm/components/AmountInput/AmountInput.style.d.ts +2 -2
- 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.d.ts +3 -3
- package/_esm/components/AmountInput/AmountInputAdornment.style.js +1 -2
- package/_esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputEndAdornment.d.ts +1 -1
- package/_esm/components/AmountInput/AmountInputEndAdornment.js +7 -3
- package/_esm/components/AmountInput/AmountInputEndAdornment.js.map +1 -1
- package/_esm/components/AmountInput/AmountInputStartAdornment.d.ts +2 -2
- package/_esm/components/AmountInput/AmountInputStartAdornment.js +5 -3
- package/_esm/components/AmountInput/AmountInputStartAdornment.js.map +1 -1
- package/_esm/components/AmountInput/PriceFormHelperText.d.ts +2 -2
- package/_esm/components/AmountInput/PriceFormHelperText.js +4 -3
- package/_esm/components/AmountInput/PriceFormHelperText.js.map +1 -1
- package/_esm/components/AmountInput/index.d.ts +1 -1
- package/_esm/components/AmountInput/index.js +1 -1
- package/_esm/components/AmountInput/index.js.map +1 -1
- package/_esm/components/AppContainer.d.ts +2 -2
- package/_esm/components/AppContainer.js +3 -4
- package/_esm/components/AppContainer.js.map +1 -1
- package/_esm/components/BaseTransactionButton/BaseTransactionButton.d.ts +2 -2
- package/_esm/components/BaseTransactionButton/BaseTransactionButton.js +6 -5
- package/_esm/components/BaseTransactionButton/BaseTransactionButton.js.map +1 -1
- package/_esm/components/BaseTransactionButton/index.d.ts +2 -2
- package/_esm/components/BaseTransactionButton/index.js +2 -2
- package/_esm/components/BaseTransactionButton/index.js.map +1 -1
- package/_esm/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/_esm/components/BottomSheet/BottomSheet.js +2 -2
- package/_esm/components/BottomSheet/BottomSheet.js.map +1 -1
- package/_esm/components/BottomSheet/index.d.ts +2 -2
- package/_esm/components/BottomSheet/index.js +2 -2
- package/_esm/components/BottomSheet/index.js.map +1 -1
- package/_esm/components/Card/Card.d.ts +2 -2
- package/_esm/components/Card/Card.js +1 -3
- package/_esm/components/Card/Card.js.map +1 -1
- package/_esm/components/Card/CardButton.d.ts +1 -1
- package/_esm/components/Card/CardButton.js +2 -2
- package/_esm/components/Card/CardButton.js.map +1 -1
- package/_esm/components/Card/CardButton.style.d.ts +3 -3
- package/_esm/components/Card/CardButton.style.js +1 -2
- package/_esm/components/Card/CardButton.style.js.map +1 -1
- package/_esm/components/Card/CardHeader.d.ts +3 -3
- package/_esm/components/Card/CardHeader.js +1 -3
- package/_esm/components/Card/CardHeader.js.map +1 -1
- package/_esm/components/Card/CardIconButton.d.ts +2 -2
- package/_esm/components/Card/CardIconButton.js +1 -2
- package/_esm/components/Card/CardIconButton.js.map +1 -1
- package/_esm/components/Card/CardLabel.d.ts +2 -2
- package/_esm/components/Card/CardLabel.js +1 -2
- package/_esm/components/Card/CardLabel.js.map +1 -1
- package/_esm/components/Card/CardTitle.d.ts +2 -2
- package/_esm/components/Card/CardTitle.js +1 -2
- package/_esm/components/Card/CardTitle.js.map +1 -1
- package/_esm/components/Card/index.d.ts +7 -7
- package/_esm/components/Card/index.js +7 -7
- package/_esm/components/Card/index.js.map +1 -1
- package/_esm/components/ChainSelect/ChainSelect.d.ts +1 -1
- package/_esm/components/ChainSelect/ChainSelect.js +6 -4
- package/_esm/components/ChainSelect/ChainSelect.js.map +1 -1
- package/_esm/components/ChainSelect/ChainSelect.style.d.ts +3 -3
- package/_esm/components/ChainSelect/ChainSelect.style.js +2 -3
- package/_esm/components/ChainSelect/ChainSelect.style.js.map +1 -1
- package/_esm/components/ChainSelect/index.d.ts +2 -2
- package/_esm/components/ChainSelect/index.js +2 -2
- package/_esm/components/ChainSelect/index.js.map +1 -1
- package/_esm/components/ChainSelect/useChainSelect.d.ts +1 -1
- package/_esm/components/ChainSelect/useChainSelect.js +7 -2
- package/_esm/components/ChainSelect/useChainSelect.js.map +1 -1
- package/_esm/components/ContractComponent/ContractComponent.js +1 -1
- package/_esm/components/ContractComponent/ContractComponent.js.map +1 -1
- package/_esm/components/ContractComponent/index.d.ts +1 -1
- package/_esm/components/ContractComponent/index.js +1 -1
- package/_esm/components/ContractComponent/index.js.map +1 -1
- package/_esm/components/Dialog.js +1 -1
- package/_esm/components/Dialog.js.map +1 -1
- package/_esm/components/GasMessage/FundsSufficiencyMessage.js +4 -5
- package/_esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
- package/_esm/components/GasMessage/GasMessage.d.ts +1 -1
- package/_esm/components/GasMessage/GasMessage.js +4 -3
- package/_esm/components/GasMessage/GasMessage.js.map +1 -1
- package/_esm/components/GasMessage/GasMessage.style.d.ts +1 -1
- package/_esm/components/GasMessage/GasMessage.style.js +2 -3
- package/_esm/components/GasMessage/GasMessage.style.js.map +1 -1
- package/_esm/components/GasMessage/GasRefuelMessage.d.ts +1 -1
- package/_esm/components/GasMessage/GasRefuelMessage.js +7 -6
- package/_esm/components/GasMessage/GasRefuelMessage.js.map +1 -1
- package/_esm/components/GasMessage/GasSufficiencyMessage.d.ts +2 -2
- package/_esm/components/GasMessage/GasSufficiencyMessage.js +3 -3
- package/_esm/components/GasMessage/GasSufficiencyMessage.js.map +1 -1
- package/_esm/components/GasMessage/index.d.ts +2 -2
- package/_esm/components/GasMessage/index.js +2 -2
- package/_esm/components/GasMessage/index.js.map +1 -1
- package/_esm/components/Header/CloseDrawerButton.js +4 -5
- package/_esm/components/Header/CloseDrawerButton.js.map +1 -1
- package/_esm/components/Header/EVMDisconnectIconButton.js +2 -2
- package/_esm/components/Header/EVMDisconnectIconButton.js.map +1 -1
- package/_esm/components/Header/Header.js +6 -5
- package/_esm/components/Header/Header.js.map +1 -1
- package/_esm/components/Header/Header.style.d.ts +4 -4
- package/_esm/components/Header/Header.style.js +2 -4
- package/_esm/components/Header/Header.style.js.map +1 -1
- package/_esm/components/Header/NavigationHeader.d.ts +1 -1
- package/_esm/components/Header/NavigationHeader.js +15 -15
- package/_esm/components/Header/NavigationHeader.js.map +1 -1
- package/_esm/components/Header/NavigationTabs.js +4 -3
- package/_esm/components/Header/NavigationTabs.js.map +1 -1
- package/_esm/components/Header/SVMDisconnectIconButton.js +2 -2
- package/_esm/components/Header/SVMDisconnectIconButton.js.map +1 -1
- package/_esm/components/Header/SettingsButton.js +6 -5
- package/_esm/components/Header/SettingsButton.js.map +1 -1
- package/_esm/components/Header/SettingsButton.style.d.ts +3 -3
- package/_esm/components/Header/SettingsButton.style.js +2 -5
- package/_esm/components/Header/SettingsButton.style.js.map +1 -1
- package/_esm/components/Header/TransactionHistoryButton.js +5 -6
- package/_esm/components/Header/TransactionHistoryButton.js.map +1 -1
- package/_esm/components/Header/WalletHeader.d.ts +1 -1
- package/_esm/components/Header/WalletHeader.js +15 -14
- package/_esm/components/Header/WalletHeader.js.map +1 -1
- package/_esm/components/Header/WalletMenu.js +10 -10
- package/_esm/components/Header/WalletMenu.js.map +1 -1
- package/_esm/components/Header/WalletMenu.style.js +1 -5
- package/_esm/components/Header/WalletMenu.style.js.map +1 -1
- package/_esm/components/Header/index.d.ts +1 -1
- package/_esm/components/Header/index.js +1 -1
- package/_esm/components/Header/index.js.map +1 -1
- package/_esm/components/Initializer.d.ts +1 -1
- package/_esm/components/Initializer.js +1 -1
- package/_esm/components/Initializer.js.map +1 -1
- package/_esm/components/Input.js +1 -3
- package/_esm/components/Input.js.map +1 -1
- package/_esm/components/Insurance/Insurance.d.ts +2 -2
- package/_esm/components/Insurance/Insurance.js +3 -3
- package/_esm/components/Insurance/Insurance.js.map +1 -1
- package/_esm/components/Insurance/InsuranceCard.d.ts +2 -2
- package/_esm/components/Insurance/InsuranceCard.js +7 -6
- package/_esm/components/Insurance/InsuranceCard.js.map +1 -1
- package/_esm/components/Insurance/InsuranceCollapsed.d.ts +2 -2
- package/_esm/components/Insurance/InsuranceCollapsed.js +6 -4
- package/_esm/components/Insurance/InsuranceCollapsed.js.map +1 -1
- package/_esm/components/Insurance/index.d.ts +2 -2
- package/_esm/components/Insurance/index.js +2 -2
- package/_esm/components/Insurance/index.js.map +1 -1
- package/_esm/components/Insurance/types.d.ts +1 -1
- package/_esm/components/ListItem/ListItem.d.ts +3 -3
- package/_esm/components/ListItem/ListItem.js +1 -4
- package/_esm/components/ListItem/ListItem.js.map +1 -1
- package/_esm/components/ListItem/ListItemButton.d.ts +3 -3
- package/_esm/components/ListItem/ListItemButton.js +2 -2
- package/_esm/components/ListItem/ListItemButton.js.map +1 -1
- package/_esm/components/ListItem/index.d.ts +2 -2
- package/_esm/components/ListItem/index.js +2 -2
- package/_esm/components/ListItem/index.js.map +1 -1
- package/_esm/components/ListItemButton.d.ts +3 -3
- package/_esm/components/ListItemButton.js +2 -3
- package/_esm/components/ListItemButton.js.map +1 -1
- package/_esm/components/ListItemText.d.ts +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.d.ts +2 -2
- package/_esm/components/NFT/NFT.js +2 -2
- package/_esm/components/NFT/NFT.js.map +1 -1
- package/_esm/components/NFT/NFT.style.d.ts +2 -2
- package/_esm/components/NFT/NFT.style.js +1 -2
- package/_esm/components/NFT/NFT.style.js.map +1 -1
- package/_esm/components/NFT/NFTBase.d.ts +2 -2
- package/_esm/components/NFT/NFTBase.js +2 -2
- package/_esm/components/NFT/NFTBase.js.map +1 -1
- package/_esm/components/NFT/index.d.ts +3 -3
- package/_esm/components/NFT/index.js +3 -3
- package/_esm/components/NFT/index.js.map +1 -1
- package/_esm/components/NFT/types.d.ts +1 -1
- package/_esm/components/NotFound.d.ts +1 -1
- package/_esm/components/NotFound.js +2 -2
- package/_esm/components/NotFound.js.map +1 -1
- package/_esm/components/PageContainer.d.ts +2 -2
- package/_esm/components/PageContainer.js +1 -2
- package/_esm/components/PageContainer.js.map +1 -1
- package/_esm/components/PoweredBy/PoweredBy.d.ts +1 -1
- package/_esm/components/PoweredBy/PoweredBy.js +5 -5
- package/_esm/components/PoweredBy/PoweredBy.js.map +1 -1
- package/_esm/components/PoweredBy/PoweredBy.style.d.ts +2 -2
- package/_esm/components/PoweredBy/PoweredBy.style.js +1 -2
- package/_esm/components/PoweredBy/PoweredBy.style.js.map +1 -1
- package/_esm/components/PoweredBy/index.d.ts +1 -1
- package/_esm/components/PoweredBy/index.js +1 -1
- package/_esm/components/PoweredBy/index.js.map +1 -1
- package/_esm/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +1 -1
- package/_esm/components/ProgressToNextUpdate/index.d.ts +1 -1
- package/_esm/components/ProgressToNextUpdate/index.js +1 -1
- package/_esm/components/ProgressToNextUpdate/index.js.map +1 -1
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.d.ts +1 -1
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.js +6 -6
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +2 -2
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js +1 -2
- package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
- package/_esm/components/ReverseTokensButton/index.d.ts +1 -1
- package/_esm/components/ReverseTokensButton/index.js +1 -1
- package/_esm/components/ReverseTokensButton/index.js.map +1 -1
- package/_esm/components/RouteCard/RouteCard.d.ts +3 -3
- package/_esm/components/RouteCard/RouteCard.js +12 -12
- package/_esm/components/RouteCard/RouteCard.js.map +1 -1
- package/_esm/components/RouteCard/RouteCard.style.d.ts +2 -2
- package/_esm/components/RouteCard/RouteCard.style.js +1 -2
- package/_esm/components/RouteCard/RouteCard.style.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentials.d.ts +2 -2
- package/_esm/components/RouteCard/RouteCardEssentials.js +5 -6
- package/_esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.d.ts +2 -2
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js +5 -7
- package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
- package/_esm/components/RouteCard/RouteCardSkeleton.d.ts +2 -2
- package/_esm/components/RouteCard/RouteCardSkeleton.js +3 -3
- package/_esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
- package/_esm/components/RouteCard/RouteNotFoundCard.d.ts +1 -1
- package/_esm/components/RouteCard/RouteNotFoundCard.js +2 -2
- package/_esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
- package/_esm/components/RouteCard/index.d.ts +3 -3
- package/_esm/components/RouteCard/index.js +3 -3
- package/_esm/components/RouteCard/index.js.map +1 -1
- package/_esm/components/Routes/Routes.d.ts +1 -1
- package/_esm/components/Routes/Routes.js +9 -6
- package/_esm/components/Routes/Routes.js.map +1 -1
- package/_esm/components/Routes/RoutesExpanded.js +10 -8
- package/_esm/components/Routes/RoutesExpanded.js.map +1 -1
- package/_esm/components/Routes/RoutesExpanded.style.d.ts +2 -2
- package/_esm/components/Routes/RoutesExpanded.style.js +2 -3
- package/_esm/components/Routes/RoutesExpanded.style.js.map +1 -1
- package/_esm/components/Routes/index.d.ts +2 -2
- package/_esm/components/Routes/index.js +2 -2
- package/_esm/components/Routes/index.js.map +1 -1
- package/_esm/components/Select.js +1 -6
- package/_esm/components/Select.js.map +1 -1
- package/_esm/components/SelectChainAndToken.d.ts +1 -1
- package/_esm/components/SelectChainAndToken.js +6 -7
- package/_esm/components/SelectChainAndToken.js.map +1 -1
- package/_esm/components/SelectTokenButton/SelectTokenButton.d.ts +2 -2
- package/_esm/components/SelectTokenButton/SelectTokenButton.js +11 -7
- package/_esm/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +3 -3
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js +2 -3
- package/_esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
- package/_esm/components/SelectTokenButton/index.d.ts +1 -1
- package/_esm/components/SelectTokenButton/index.js +1 -1
- package/_esm/components/SelectTokenButton/index.js.map +1 -1
- package/_esm/components/SendToWallet/SendToWallet.style.d.ts +3 -3
- package/_esm/components/SendToWallet/SendToWallet.style.js +2 -3
- package/_esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
- package/_esm/components/SendToWallet/SendToWalletButton.js +16 -8
- package/_esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
- package/_esm/components/SendToWallet/SendToWalletExpandButton.d.ts +1 -1
- package/_esm/components/SendToWallet/SendToWalletExpandButton.js +12 -8
- package/_esm/components/SendToWallet/SendToWalletExpandButton.js.map +1 -1
- package/_esm/components/SendToWallet/index.d.ts +3 -3
- package/_esm/components/SendToWallet/index.js +3 -3
- package/_esm/components/SendToWallet/index.js.map +1 -1
- package/_esm/components/SettingsListItemButton.d.ts +3 -3
- package/_esm/components/SettingsListItemButton.js +2 -2
- package/_esm/components/SettingsListItemButton.js.map +1 -1
- package/_esm/components/SmallAvatar.d.ts +3 -3
- package/_esm/components/SmallAvatar.js +1 -2
- package/_esm/components/SmallAvatar.js.map +1 -1
- package/_esm/components/Step/CircularProgress.js +7 -10
- package/_esm/components/Step/CircularProgress.js.map +1 -1
- package/_esm/components/Step/CircularProgress.style.d.ts +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.d.ts +1 -1
- package/_esm/components/Step/DestinationWalletAddress.js +5 -6
- package/_esm/components/Step/DestinationWalletAddress.js.map +1 -1
- package/_esm/components/Step/Step.d.ts +1 -1
- package/_esm/components/Step/Step.js +10 -9
- package/_esm/components/Step/Step.js.map +1 -1
- package/_esm/components/Step/StepList.d.ts +1 -1
- package/_esm/components/Step/StepList.js +2 -2
- package/_esm/components/Step/StepList.js.map +1 -1
- package/_esm/components/Step/StepProcess.d.ts +1 -1
- package/_esm/components/Step/StepProcess.js +5 -5
- package/_esm/components/Step/StepProcess.js.map +1 -1
- package/_esm/components/Step/StepProcess.style.d.ts +2 -2
- package/_esm/components/Step/StepProcess.style.js +1 -2
- package/_esm/components/Step/StepProcess.style.js.map +1 -1
- package/_esm/components/Step/StepTimer.d.ts +1 -1
- package/_esm/components/Step/StepTimer.js +2 -1
- package/_esm/components/Step/StepTimer.js.map +1 -1
- package/_esm/components/Step/index.d.ts +2 -2
- package/_esm/components/Step/index.js +2 -2
- package/_esm/components/Step/index.js.map +1 -1
- package/_esm/components/StepActions/StepActions.d.ts +3 -3
- package/_esm/components/StepActions/StepActions.js +12 -14
- package/_esm/components/StepActions/StepActions.js.map +1 -1
- package/_esm/components/StepActions/StepActions.style.d.ts +3 -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.d.ts +1 -1
- package/_esm/components/StepActions/StepFeeBreakdown.js +3 -3
- package/_esm/components/StepActions/StepFeeBreakdown.js.map +1 -1
- package/_esm/components/StepActions/StepFees.d.ts +1 -1
- package/_esm/components/StepActions/StepFees.js +1 -1
- package/_esm/components/StepActions/StepFees.js.map +1 -1
- package/_esm/components/StepActions/index.d.ts +1 -1
- package/_esm/components/StepActions/index.js +1 -1
- package/_esm/components/StepActions/index.js.map +1 -1
- package/_esm/components/StepActions/types.d.ts +1 -1
- package/_esm/components/StepDivider/StepDivider.d.ts +1 -1
- package/_esm/components/StepDivider/StepDivider.js +1 -1
- package/_esm/components/StepDivider/StepDivider.js.map +1 -1
- package/_esm/components/StepDivider/StepDivider.style.d.ts +2 -2
- package/_esm/components/StepDivider/StepDivider.style.js +1 -2
- package/_esm/components/StepDivider/StepDivider.style.js.map +1 -1
- package/_esm/components/StepDivider/index.d.ts +1 -1
- package/_esm/components/StepDivider/index.js +1 -1
- package/_esm/components/StepDivider/index.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.d.ts +3 -3
- package/_esm/components/Tabs/Tabs.style.js +2 -3
- package/_esm/components/Tabs/Tabs.style.js.map +1 -1
- package/_esm/components/Tabs/index.d.ts +1 -1
- package/_esm/components/Tabs/index.js +1 -1
- package/_esm/components/Tabs/index.js.map +1 -1
- package/_esm/components/TextFitter/TextFitter.d.ts +1 -1
- package/_esm/components/TextFitter/TextFitter.js +1 -1
- package/_esm/components/TextFitter/TextFitter.js.map +1 -1
- package/_esm/components/TextFitter/index.d.ts +1 -1
- package/_esm/components/TextFitter/index.js +1 -1
- package/_esm/components/TextFitter/index.js.map +1 -1
- package/_esm/components/Token/Token.js +7 -6
- package/_esm/components/Token/Token.js.map +1 -1
- package/_esm/components/Token/Token.style.d.ts +2 -2
- package/_esm/components/Token/Token.style.js +1 -2
- package/_esm/components/Token/Token.style.js.map +1 -1
- package/_esm/components/Token/index.d.ts +2 -2
- package/_esm/components/Token/index.js +2 -2
- package/_esm/components/Token/index.js.map +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.d.ts +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.js +4 -3
- package/_esm/components/TokenAvatar/TokenAvatar.js.map +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.style.d.ts +1 -1
- package/_esm/components/TokenAvatar/TokenAvatar.style.js +1 -4
- package/_esm/components/TokenAvatar/TokenAvatar.style.js.map +1 -1
- package/_esm/components/TokenAvatar/index.d.ts +2 -2
- package/_esm/components/TokenAvatar/index.js +2 -2
- package/_esm/components/TokenAvatar/index.js.map +1 -1
- package/_esm/components/TokenList/TokenList.d.ts +1 -1
- package/_esm/components/TokenList/TokenList.js +10 -5
- package/_esm/components/TokenList/TokenList.js.map +1 -1
- package/_esm/components/TokenList/TokenList.style.d.ts +4 -4
- package/_esm/components/TokenList/TokenList.style.js +2 -3
- package/_esm/components/TokenList/TokenList.style.js.map +1 -1
- package/_esm/components/TokenList/TokenListItem.d.ts +2 -2
- package/_esm/components/TokenList/TokenListItem.js +6 -5
- package/_esm/components/TokenList/TokenListItem.js.map +1 -1
- package/_esm/components/TokenList/TokenNotFound.d.ts +2 -2
- package/_esm/components/TokenList/TokenNotFound.js +5 -4
- package/_esm/components/TokenList/TokenNotFound.js.map +1 -1
- package/_esm/components/TokenList/VirtualizedTokenList.d.ts +1 -1
- package/_esm/components/TokenList/VirtualizedTokenList.js +1 -1
- package/_esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
- package/_esm/components/TokenList/index.d.ts +2 -2
- package/_esm/components/TokenList/index.js +2 -2
- package/_esm/components/TokenList/index.js.map +1 -1
- package/_esm/components/TokenList/types.d.ts +3 -3
- package/_esm/components/TokenList/useTokenSelect.d.ts +1 -1
- package/_esm/components/TokenList/useTokenSelect.js +6 -3
- package/_esm/components/TokenList/useTokenSelect.js.map +1 -1
- package/_esm/config/theme.d.ts +2 -2
- 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/hooks/index.d.ts +34 -34
- package/_esm/hooks/index.js +34 -34
- package/_esm/hooks/index.js.map +1 -1
- package/_esm/hooks/useAddressValidation.d.ts +1 -1
- package/_esm/hooks/useAddressValidation.js +1 -1
- package/_esm/hooks/useAddressValidation.js.map +1 -1
- package/_esm/hooks/useAvailableChains.js +3 -2
- package/_esm/hooks/useAvailableChains.js.map +1 -1
- package/_esm/hooks/useChain.js +1 -1
- package/_esm/hooks/useChain.js.map +1 -1
- package/_esm/hooks/useChains.d.ts +1 -1
- package/_esm/hooks/useChains.js +3 -3
- package/_esm/hooks/useChains.js.map +1 -1
- package/_esm/hooks/useContentHeight.js +3 -3
- package/_esm/hooks/useContentHeight.js.map +1 -1
- package/_esm/hooks/useDebouncedWatch.d.ts +1 -1
- package/_esm/hooks/useDebouncedWatch.js +1 -1
- package/_esm/hooks/useDebouncedWatch.js.map +1 -1
- package/_esm/hooks/useDefaultElementId.js +1 -1
- package/_esm/hooks/useDefaultElementId.js.map +1 -1
- package/_esm/hooks/useExpandableVariant.js +2 -2
- package/_esm/hooks/useExpandableVariant.js.map +1 -1
- package/_esm/hooks/useFromTokenSufficiency.js +5 -4
- package/_esm/hooks/useFromTokenSufficiency.js.map +1 -1
- package/_esm/hooks/useGasRecommendation.d.ts +1 -1
- package/_esm/hooks/useGasRecommendation.js +1 -1
- package/_esm/hooks/useGasRecommendation.js.map +1 -1
- package/_esm/hooks/useGasRefuel.js +4 -4
- package/_esm/hooks/useGasRefuel.js.map +1 -1
- package/_esm/hooks/useGasSufficiency.js +3 -3
- package/_esm/hooks/useGasSufficiency.js.map +1 -1
- package/_esm/hooks/useInitializer.js +2 -2
- package/_esm/hooks/useInitializer.js.map +1 -1
- package/_esm/hooks/useLanguages.js +3 -2
- package/_esm/hooks/useLanguages.js.map +1 -1
- package/_esm/hooks/useProcessMessage.d.ts +1 -1
- package/_esm/hooks/useProcessMessage.js +3 -3
- package/_esm/hooks/useProcessMessage.js.map +1 -1
- package/_esm/hooks/useRouteExecution.d.ts +1 -1
- package/_esm/hooks/useRouteExecution.js +5 -4
- package/_esm/hooks/useRouteExecution.js.map +1 -1
- package/_esm/hooks/useRoutes.d.ts +1 -1
- package/_esm/hooks/useRoutes.js +11 -6
- package/_esm/hooks/useRoutes.js.map +1 -1
- package/_esm/hooks/useScrollableContainer.js +2 -2
- package/_esm/hooks/useScrollableContainer.js.map +1 -1
- package/_esm/hooks/useSettingMonitor.js +3 -3
- package/_esm/hooks/useSettingMonitor.js.map +1 -1
- package/_esm/hooks/useSwapOnly.js +1 -1
- package/_esm/hooks/useSwapOnly.js.map +1 -1
- package/_esm/hooks/useToAddressRequirements.js +4 -4
- package/_esm/hooks/useToAddressRequirements.js.map +1 -1
- package/_esm/hooks/useToAddressReset.js +5 -3
- package/_esm/hooks/useToAddressReset.js.map +1 -1
- package/_esm/hooks/useToken.js +2 -2
- package/_esm/hooks/useToken.js.map +1 -1
- package/_esm/hooks/useTokenAddressBalance.d.ts +2 -2
- package/_esm/hooks/useTokenAddressBalance.js +1 -1
- package/_esm/hooks/useTokenAddressBalance.js.map +1 -1
- package/_esm/hooks/useTokenBalance.d.ts +1 -1
- package/_esm/hooks/useTokenBalance.js +1 -1
- package/_esm/hooks/useTokenBalance.js.map +1 -1
- package/_esm/hooks/useTokenBalances.d.ts +2 -2
- package/_esm/hooks/useTokenBalances.js +2 -2
- package/_esm/hooks/useTokenBalances.js.map +1 -1
- package/_esm/hooks/useTokenSearch.d.ts +1 -1
- package/_esm/hooks/useTokens.d.ts +1 -1
- package/_esm/hooks/useTokens.js +2 -2
- package/_esm/hooks/useTokens.js.map +1 -1
- package/_esm/hooks/useTools.js +3 -3
- package/_esm/hooks/useTools.js.map +1 -1
- package/_esm/hooks/useTransactionDetails.js +1 -1
- package/_esm/hooks/useTransactionDetails.js.map +1 -1
- package/_esm/hooks/useTransactionHistory.js +1 -1
- package/_esm/hooks/useTransactionHistory.js.map +1 -1
- package/_esm/hooks/useWidgetEvents.d.ts +4 -3
- package/_esm/hooks/useWidgetEvents.js +3 -1
- package/_esm/hooks/useWidgetEvents.js.map +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/icons/index.d.ts +2 -2
- package/_esm/icons/index.js +2 -2
- package/_esm/icons/index.js.map +1 -1
- package/_esm/index.d.ts +12 -9
- package/_esm/index.js +11 -8
- package/_esm/index.js.map +1 -1
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.d.ts +1 -1
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +2 -2
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +9 -7
- package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
- package/_esm/pages/ActiveTransactionsPage/index.d.ts +1 -1
- package/_esm/pages/ActiveTransactionsPage/index.js +1 -1
- package/_esm/pages/ActiveTransactionsPage/index.js.map +1 -1
- package/_esm/pages/LanguagesPage/LanguagesPage.d.ts +1 -1
- package/_esm/pages/LanguagesPage/LanguagesPage.js +6 -6
- package/_esm/pages/LanguagesPage/LanguagesPage.js.map +1 -1
- package/_esm/pages/LanguagesPage/index.d.ts +1 -1
- package/_esm/pages/LanguagesPage/index.js +1 -1
- package/_esm/pages/LanguagesPage/index.js.map +1 -1
- package/_esm/pages/MainPage/MainGasMessage.d.ts +1 -1
- package/_esm/pages/MainPage/MainGasMessage.js +2 -2
- package/_esm/pages/MainPage/MainGasMessage.js.map +1 -1
- package/_esm/pages/MainPage/MainPage.d.ts +1 -1
- package/_esm/pages/MainPage/MainPage.js +13 -12
- package/_esm/pages/MainPage/MainPage.js.map +1 -1
- package/_esm/pages/MainPage/MainPage.style.d.ts +2 -2
- package/_esm/pages/MainPage/MainPage.style.js +1 -2
- package/_esm/pages/MainPage/MainPage.style.js.map +1 -1
- package/_esm/pages/MainPage/ReviewButton.d.ts +1 -1
- package/_esm/pages/MainPage/ReviewButton.js +8 -5
- package/_esm/pages/MainPage/ReviewButton.js.map +1 -1
- package/_esm/pages/MainPage/index.d.ts +1 -1
- package/_esm/pages/MainPage/index.js +1 -1
- package/_esm/pages/MainPage/index.js.map +1 -1
- package/_esm/pages/RoutesPage/RoutesPage.d.ts +1 -1
- package/_esm/pages/RoutesPage/RoutesPage.js +10 -6
- package/_esm/pages/RoutesPage/RoutesPage.js.map +1 -1
- package/_esm/pages/RoutesPage/RoutesPage.style.d.ts +3 -3
- package/_esm/pages/RoutesPage/RoutesPage.style.js +1 -2
- package/_esm/pages/RoutesPage/RoutesPage.style.js.map +1 -1
- package/_esm/pages/RoutesPage/index.d.ts +1 -1
- package/_esm/pages/RoutesPage/index.js +1 -1
- package/_esm/pages/RoutesPage/index.js.map +1 -1
- package/_esm/pages/SelectChainPage/SelectChainPage.d.ts +2 -2
- package/_esm/pages/SelectChainPage/SelectChainPage.js +6 -6
- package/_esm/pages/SelectChainPage/SelectChainPage.js.map +1 -1
- package/_esm/pages/SelectChainPage/index.d.ts +1 -1
- package/_esm/pages/SelectChainPage/index.js +1 -1
- package/_esm/pages/SelectChainPage/index.js.map +1 -1
- package/_esm/pages/SelectChainPage/types.d.ts +1 -1
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.d.ts +1 -1
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +9 -11
- package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js.map +1 -1
- package/_esm/pages/SelectEnabledToolsPage/index.d.ts +1 -1
- package/_esm/pages/SelectEnabledToolsPage/index.js +1 -1
- package/_esm/pages/SelectEnabledToolsPage/index.js.map +1 -1
- package/_esm/pages/SelectNativeTokenPage/SelectNativeTokenPage.d.ts +2 -2
- package/_esm/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +7 -6
- package/_esm/pages/SelectNativeTokenPage/SelectNativeTokenPage.js.map +1 -1
- package/_esm/pages/SelectNativeTokenPage/index.d.ts +1 -1
- package/_esm/pages/SelectNativeTokenPage/index.js +1 -1
- package/_esm/pages/SelectNativeTokenPage/index.js.map +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.js +6 -5
- package/_esm/pages/SelectTokenPage/SearchTokenInput.js.map +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.d.ts +1 -1
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js +2 -2
- package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js.map +1 -1
- package/_esm/pages/SelectTokenPage/SelectTokenPage.d.ts +1 -1
- package/_esm/pages/SelectTokenPage/SelectTokenPage.js +8 -5
- package/_esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
- package/_esm/pages/SelectTokenPage/index.d.ts +2 -2
- package/_esm/pages/SelectTokenPage/index.js +2 -2
- package/_esm/pages/SelectTokenPage/index.js.map +1 -1
- package/_esm/pages/SelectWalletPage/EVMListItemButton.js +5 -4
- package/_esm/pages/SelectWalletPage/EVMListItemButton.js.map +1 -1
- package/_esm/pages/SelectWalletPage/SVMListItemButton.js +5 -4
- package/_esm/pages/SelectWalletPage/SVMListItemButton.js.map +1 -1
- package/_esm/pages/SelectWalletPage/SelectWalletPage.js +8 -9
- package/_esm/pages/SelectWalletPage/SelectWalletPage.js.map +1 -1
- package/_esm/pages/SelectWalletPage/index.d.ts +1 -1
- package/_esm/pages/SelectWalletPage/index.js +1 -1
- package/_esm/pages/SelectWalletPage/index.js.map +1 -1
- package/_esm/pages/SendToWallet/BookmarkAddressSheet.d.ts +3 -3
- package/_esm/pages/SendToWallet/BookmarkAddressSheet.js +7 -8
- package/_esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/_esm/pages/SendToWallet/BookmarksPage.js +17 -17
- package/_esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
- package/_esm/pages/SendToWallet/ConfirmAddressSheet.d.ts +3 -3
- package/_esm/pages/SendToWallet/ConfirmAddressSheet.js +8 -8
- package/_esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/_esm/pages/SendToWallet/ConnectedWalletsPage.js +16 -16
- package/_esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
- package/_esm/pages/SendToWallet/EmptyListIndicator.js +1 -1
- package/_esm/pages/SendToWallet/EmptyListIndicator.js.map +1 -1
- package/_esm/pages/SendToWallet/RecentWalletsPage.js +18 -18
- package/_esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
- package/_esm/pages/SendToWallet/SendToConfiguredWalletPage.js +16 -13
- package/_esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
- package/_esm/pages/SendToWallet/SendToWalletPage.js +14 -12
- package/_esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/_esm/pages/SendToWallet/SendToWalletPage.style.d.ts +12 -12
- package/_esm/pages/SendToWallet/SendToWalletPage.style.js +4 -4
- package/_esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
- package/_esm/pages/SendToWallet/index.d.ts +5 -5
- package/_esm/pages/SendToWallet/index.js +5 -5
- package/_esm/pages/SendToWallet/index.js.map +1 -1
- package/_esm/pages/SettingsPage/BridgeAndExchangeSettings.d.ts +1 -1
- package/_esm/pages/SettingsPage/BridgeAndExchangeSettings.js +8 -9
- package/_esm/pages/SettingsPage/BridgeAndExchangeSettings.js.map +1 -1
- package/_esm/pages/SettingsPage/GasPriceSettings.d.ts +1 -1
- package/_esm/pages/SettingsPage/GasPriceSettings.js +8 -6
- package/_esm/pages/SettingsPage/GasPriceSettings.js.map +1 -1
- package/_esm/pages/SettingsPage/LanguageSetting.d.ts +1 -1
- package/_esm/pages/SettingsPage/LanguageSetting.js +8 -7
- package/_esm/pages/SettingsPage/LanguageSetting.js.map +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.d.ts +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.js +4 -4
- package/_esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.style.d.ts +1 -1
- package/_esm/pages/SettingsPage/ResetSettingsButton.style.js +2 -3
- package/_esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
- package/_esm/pages/SettingsPage/RoutePrioritySettings.d.ts +1 -1
- package/_esm/pages/SettingsPage/RoutePrioritySettings.js +8 -6
- package/_esm/pages/SettingsPage/RoutePrioritySettings.js.map +1 -1
- package/_esm/pages/SettingsPage/SendToWalletOptionSetting.js +10 -7
- package/_esm/pages/SettingsPage/SendToWalletOptionSetting.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/BadgedValue.d.ts +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/BadgedValue.js +2 -2
- package/_esm/pages/SettingsPage/SettingsCard/BadgedValue.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +2 -2
- 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/SettingsCard/SettingCardExpandable.d.ts +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js +4 -3
- package/_esm/pages/SettingsPage/SettingsCard/SettingCardExpandable.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsCard/index.d.ts +4 -4
- package/_esm/pages/SettingsPage/SettingsCard/index.js +4 -4
- package/_esm/pages/SettingsPage/SettingsCard/index.js.map +1 -1
- package/_esm/pages/SettingsPage/SettingsPage.js +11 -10
- package/_esm/pages/SettingsPage/SettingsPage.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.d.ts +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +10 -9
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +2 -2
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +2 -4
- package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/index.d.ts +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/index.js +1 -1
- package/_esm/pages/SettingsPage/SlippageSettings/index.js.map +1 -1
- package/_esm/pages/SettingsPage/ThemeSettings.d.ts +1 -1
- package/_esm/pages/SettingsPage/ThemeSettings.js +10 -12
- package/_esm/pages/SettingsPage/ThemeSettings.js.map +1 -1
- package/_esm/pages/SettingsPage/index.d.ts +1 -1
- package/_esm/pages/SettingsPage/index.js +1 -1
- package/_esm/pages/SettingsPage/index.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/ContactSupportButton.js +2 -2
- package/_esm/pages/TransactionDetailsPage/ContactSupportButton.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.d.ts +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +19 -14
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +3 -3
- package/_esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
- package/_esm/pages/TransactionDetailsPage/index.d.ts +1 -1
- package/_esm/pages/TransactionDetailsPage/index.js +1 -1
- package/_esm/pages/TransactionDetailsPage/index.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.d.ts +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +2 -2
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryItem.d.ts +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +4 -3
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryPage.d.ts +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryPage.js +6 -6
- package/_esm/pages/TransactionHistoryPage/TransactionHistoryPage.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +3 -2
- package/_esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
- package/_esm/pages/TransactionHistoryPage/index.d.ts +1 -1
- package/_esm/pages/TransactionHistoryPage/index.js +1 -1
- package/_esm/pages/TransactionHistoryPage/index.js.map +1 -1
- package/_esm/pages/TransactionPage/ExchangeRateBottomSheet.d.ts +1 -1
- package/_esm/pages/TransactionPage/ExchangeRateBottomSheet.js +6 -6
- package/_esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
- package/_esm/pages/TransactionPage/StartTransactionButton.d.ts +2 -2
- package/_esm/pages/TransactionPage/StartTransactionButton.js +5 -3
- package/_esm/pages/TransactionPage/StartTransactionButton.js.map +1 -1
- package/_esm/pages/TransactionPage/StatusBottomSheet.d.ts +2 -2
- package/_esm/pages/TransactionPage/StatusBottomSheet.js +18 -13
- package/_esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
- package/_esm/pages/TransactionPage/StatusBottomSheet.style.d.ts +2 -2
- package/_esm/pages/TransactionPage/StatusBottomSheet.style.js +2 -3
- package/_esm/pages/TransactionPage/StatusBottomSheet.style.js.map +1 -1
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.d.ts +2 -2
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.js +6 -6
- package/_esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
- package/_esm/pages/TransactionPage/TransactionPage.d.ts +1 -1
- package/_esm/pages/TransactionPage/TransactionPage.js +21 -17
- package/_esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/_esm/pages/TransactionPage/index.d.ts +1 -1
- package/_esm/pages/TransactionPage/index.js +1 -1
- package/_esm/pages/TransactionPage/index.js.map +1 -1
- package/_esm/pages/TransactionPage/types.d.ts +1 -1
- package/_esm/providers/I18nProvider/I18nProvider.d.ts +1 -1
- package/_esm/providers/I18nProvider/I18nProvider.js +5 -4
- package/_esm/providers/I18nProvider/I18nProvider.js.map +1 -1
- package/_esm/providers/I18nProvider/index.d.ts +2 -2
- package/_esm/providers/I18nProvider/index.js +2 -2
- package/_esm/providers/I18nProvider/index.js.map +1 -1
- package/_esm/providers/I18nProvider/types.d.ts +1 -1
- package/_esm/providers/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/_esm/providers/ThemeProvider/ThemeProvider.js +4 -5
- package/_esm/providers/ThemeProvider/ThemeProvider.js.map +1 -1
- package/_esm/providers/ThemeProvider/index.d.ts +1 -1
- package/_esm/providers/ThemeProvider/index.js +1 -1
- package/_esm/providers/ThemeProvider/index.js.map +1 -1
- package/_esm/providers/WalletProvider/EVMBaseProvider.js +5 -5
- package/_esm/providers/WalletProvider/EVMBaseProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/EVMExternalContext.d.ts +1 -1
- package/_esm/providers/WalletProvider/EVMProvider.js +4 -4
- package/_esm/providers/WalletProvider/EVMProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/SDKProviders.js +1 -1
- package/_esm/providers/WalletProvider/SDKProviders.js.map +1 -1
- package/_esm/providers/WalletProvider/SVMExternalContext.d.ts +1 -1
- package/_esm/providers/WalletProvider/SVMProvider.js +4 -4
- package/_esm/providers/WalletProvider/SVMProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/WalletProvider.js +3 -3
- package/_esm/providers/WalletProvider/WalletProvider.js.map +1 -1
- package/_esm/providers/WalletProvider/index.d.ts +3 -3
- package/_esm/providers/WalletProvider/index.js +3 -3
- package/_esm/providers/WalletProvider/index.js.map +1 -1
- package/_esm/providers/WalletProvider/useHasExternalWalletProvider.js +2 -2
- package/_esm/providers/WalletProvider/useHasExternalWalletProvider.js.map +1 -1
- package/_esm/providers/WidgetProvider/WidgetProvider.d.ts +2 -2
- package/_esm/providers/WidgetProvider/WidgetProvider.js +4 -4
- package/_esm/providers/WidgetProvider/WidgetProvider.js.map +1 -1
- package/_esm/providers/WidgetProvider/index.d.ts +2 -2
- package/_esm/providers/WidgetProvider/index.js +2 -2
- package/_esm/providers/WidgetProvider/index.js.map +1 -1
- package/_esm/providers/WidgetProvider/types.d.ts +1 -1
- package/_esm/providers/WidgetProvider/utils.d.ts +2 -2
- package/_esm/providers/WidgetProvider/utils.js +1 -1
- package/_esm/providers/WidgetProvider/utils.js.map +1 -1
- package/_esm/stores/StoreProvider.d.ts +1 -1
- package/_esm/stores/StoreProvider.js +6 -6
- package/_esm/stores/StoreProvider.js.map +1 -1
- package/_esm/stores/bookmarks/BookmarkStore.d.ts +3 -3
- package/_esm/stores/bookmarks/BookmarkStore.js +2 -2
- package/_esm/stores/bookmarks/BookmarkStore.js.map +1 -1
- package/_esm/stores/bookmarks/createBookmarkStore.d.ts +3 -3
- package/_esm/stores/bookmarks/index.d.ts +5 -5
- package/_esm/stores/bookmarks/index.js +5 -5
- package/_esm/stores/bookmarks/index.js.map +1 -1
- package/_esm/stores/bookmarks/types.d.ts +2 -2
- package/_esm/stores/bookmarks/useBookmarkActions.d.ts +1 -1
- package/_esm/stores/bookmarks/useBookmarkActions.js +1 -1
- package/_esm/stores/bookmarks/useBookmarkActions.js.map +1 -1
- package/_esm/stores/bookmarks/useBookmarks.d.ts +1 -1
- package/_esm/stores/bookmarks/useBookmarks.js +1 -1
- package/_esm/stores/bookmarks/useBookmarks.js.map +1 -1
- package/_esm/stores/chains/ChainOrderStore.d.ts +3 -3
- package/_esm/stores/chains/ChainOrderStore.js +5 -5
- package/_esm/stores/chains/ChainOrderStore.js.map +1 -1
- package/_esm/stores/chains/createChainOrderStore.d.ts +2 -2
- package/_esm/stores/chains/index.d.ts +4 -4
- package/_esm/stores/chains/index.js +4 -4
- package/_esm/stores/chains/index.js.map +1 -1
- package/_esm/stores/chains/types.d.ts +1 -1
- package/_esm/stores/chains/useChainOrder.d.ts +1 -1
- package/_esm/stores/chains/useChainOrder.js +1 -1
- package/_esm/stores/chains/useChainOrder.js.map +1 -1
- package/_esm/stores/form/FormStore.d.ts +0 -4
- package/_esm/stores/form/FormStore.js +6 -14
- package/_esm/stores/form/FormStore.js.map +1 -1
- package/_esm/stores/form/FormStoreContext.d.ts +3 -0
- package/_esm/stores/form/FormStoreContext.js +3 -0
- package/_esm/stores/form/FormStoreContext.js.map +1 -0
- package/_esm/stores/form/FormUpdater.d.ts +1 -1
- package/_esm/stores/form/FormUpdater.js +4 -4
- package/_esm/stores/form/FormUpdater.js.map +1 -1
- package/_esm/stores/form/URLSearchParamsBuilder.js +2 -1
- package/_esm/stores/form/URLSearchParamsBuilder.js.map +1 -1
- package/_esm/stores/form/createFormStore.d.ts +1 -1
- package/_esm/stores/form/index.d.ts +10 -10
- package/_esm/stores/form/index.js +10 -10
- package/_esm/stores/form/index.js.map +1 -1
- package/_esm/stores/form/useFieldActions.d.ts +1 -1
- package/_esm/stores/form/useFieldActions.js +1 -1
- package/_esm/stores/form/useFieldActions.js.map +1 -1
- package/_esm/stores/form/useFieldController.d.ts +2 -2
- package/_esm/stores/form/useFieldController.js +2 -2
- package/_esm/stores/form/useFieldController.js.map +1 -1
- package/_esm/stores/form/useFieldValues.d.ts +2 -2
- package/_esm/stores/form/useFieldValues.js +1 -1
- package/_esm/stores/form/useFieldValues.js.map +1 -1
- package/_esm/stores/form/useFormStore.d.ts +3 -0
- package/_esm/stores/form/useFormStore.js +11 -0
- package/_esm/stores/form/useFormStore.js.map +1 -0
- package/_esm/stores/form/useTouchedFields.d.ts +4 -4
- package/_esm/stores/form/useTouchedFields.js +1 -1
- package/_esm/stores/form/useTouchedFields.js.map +1 -1
- package/_esm/stores/form/useValidation.d.ts +1 -1
- package/_esm/stores/form/useValidation.js +1 -1
- package/_esm/stores/form/useValidation.js.map +1 -1
- package/_esm/stores/form/useValidationActions.d.ts +1 -1
- package/_esm/stores/form/useValidationActions.js +1 -1
- package/_esm/stores/form/useValidationActions.js.map +1 -1
- package/_esm/stores/header/index.d.ts +1 -1
- package/_esm/stores/header/index.js +1 -1
- package/_esm/stores/header/index.js.map +1 -1
- package/_esm/stores/header/types.d.ts +1 -1
- package/_esm/stores/header/useHeaderStore.d.ts +3 -3
- package/_esm/stores/routes/RouteExecutionStore.d.ts +3 -3
- package/_esm/stores/routes/RouteExecutionStore.js +1 -1
- package/_esm/stores/routes/RouteExecutionStore.js.map +1 -1
- package/_esm/stores/routes/createRouteExecutionStore.d.ts +2 -2
- package/_esm/stores/routes/createRouteExecutionStore.js +3 -3
- package/_esm/stores/routes/createRouteExecutionStore.js.map +1 -1
- package/_esm/stores/routes/index.d.ts +5 -5
- package/_esm/stores/routes/index.js +5 -5
- package/_esm/stores/routes/index.js.map +1 -1
- package/_esm/stores/routes/useExecutingRoutesIds.js +3 -3
- package/_esm/stores/routes/useExecutingRoutesIds.js.map +1 -1
- package/_esm/stores/routes/useSetExecutableRoute.js +1 -1
- package/_esm/stores/routes/useSetExecutableRoute.js.map +1 -1
- package/_esm/stores/settings/index.d.ts +6 -6
- package/_esm/stores/settings/index.js +6 -6
- package/_esm/stores/settings/index.js.map +1 -1
- package/_esm/stores/settings/types.d.ts +1 -2
- package/_esm/stores/settings/useAppearance.d.ts +1 -1
- package/_esm/stores/settings/useAppearance.js +1 -1
- package/_esm/stores/settings/useAppearance.js.map +1 -1
- package/_esm/stores/settings/useSendToWalletStore.d.ts +1 -1
- package/_esm/stores/settings/useSettings.d.ts +1 -1
- package/_esm/stores/settings/useSettings.js +1 -1
- package/_esm/stores/settings/useSettings.js.map +1 -1
- package/_esm/stores/settings/useSettingsStore.d.ts +2 -2
- package/_esm/stores/settings/useSettingsStore.js +1 -1
- package/_esm/stores/settings/useSettingsStore.js.map +1 -1
- package/_esm/stores/settings/useSplitSubvariantStore.d.ts +2 -2
- package/_esm/types/index.d.ts +3 -3
- package/_esm/types/index.js +3 -3
- package/_esm/types/index.js.map +1 -1
- package/_esm/types/widget.d.ts +3 -3
- package/_esm/types/widget.js.map +1 -1
- package/_esm/utils/chainType.js +1 -1
- package/_esm/utils/chainType.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/_esm/utils/converters.d.ts +1 -1
- package/_esm/utils/index.d.ts +12 -12
- package/_esm/utils/index.js +12 -12
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/item.d.ts +1 -1
- package/components/AccountAvatar.tsx +6 -6
- package/components/ActiveTransactions/ActiveTransactionItem.tsx +12 -12
- package/components/ActiveTransactions/ActiveTransactions.style.ts +3 -3
- package/components/ActiveTransactions/ActiveTransactions.tsx +6 -5
- package/components/ActiveTransactions/index.ts +2 -2
- package/components/AlertMessage/AlertMessage.style.tsx +6 -4
- package/components/AlertMessage/AlertMessage.tsx +5 -2
- package/components/AlertMessage/index.ts +3 -3
- package/components/AmountInput/AmountInput.style.tsx +7 -3
- package/components/AmountInput/AmountInput.tsx +14 -15
- package/components/AmountInput/AmountInputAdornment.style.tsx +1 -2
- package/components/AmountInput/AmountInputEndAdornment.tsx +8 -8
- package/components/AmountInput/AmountInputStartAdornment.tsx +6 -4
- package/components/AmountInput/PriceFormHelperText.tsx +5 -4
- package/components/AmountInput/index.ts +1 -1
- package/components/AppContainer.tsx +4 -5
- package/components/BaseTransactionButton/BaseTransactionButton.tsx +7 -6
- package/components/BaseTransactionButton/index.ts +2 -2
- package/components/BottomSheet/BottomSheet.tsx +3 -3
- package/components/BottomSheet/index.ts +2 -2
- package/components/Card/Card.tsx +8 -3
- package/components/Card/CardButton.style.tsx +1 -2
- package/components/Card/CardButton.tsx +4 -4
- 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/Card/index.ts +7 -7
- package/components/ChainSelect/ChainSelect.style.tsx +2 -3
- package/components/ChainSelect/ChainSelect.tsx +7 -5
- package/components/ChainSelect/index.ts +2 -2
- package/components/ChainSelect/useChainSelect.ts +8 -8
- package/components/ContractComponent/ContractComponent.tsx +1 -1
- package/components/ContractComponent/index.ts +1 -1
- package/components/Dialog.tsx +1 -1
- package/components/GasMessage/FundsSufficiencyMessage.tsx +4 -5
- package/components/GasMessage/GasMessage.style.ts +2 -3
- package/components/GasMessage/GasMessage.tsx +4 -3
- package/components/GasMessage/GasRefuelMessage.tsx +7 -6
- package/components/GasMessage/GasSufficiencyMessage.tsx +4 -4
- package/components/GasMessage/index.ts +2 -2
- package/components/Header/CloseDrawerButton.tsx +4 -5
- package/components/Header/EVMDisconnectIconButton.tsx +2 -2
- package/components/Header/Header.style.ts +10 -4
- package/components/Header/Header.tsx +6 -5
- package/components/Header/NavigationHeader.tsx +15 -15
- package/components/Header/NavigationTabs.tsx +4 -3
- package/components/Header/SVMDisconnectIconButton.tsx +2 -2
- package/components/Header/SettingsButton.style.tsx +11 -5
- package/components/Header/SettingsButton.tsx +10 -6
- package/components/Header/TransactionHistoryButton.tsx +5 -6
- package/components/Header/WalletHeader.tsx +17 -18
- package/components/Header/WalletMenu.style.tsx +7 -5
- package/components/Header/WalletMenu.tsx +15 -11
- package/components/Header/index.ts +1 -1
- package/components/Initializer.tsx +1 -1
- package/components/Input.tsx +1 -3
- package/components/Insurance/Insurance.tsx +4 -4
- package/components/Insurance/InsuranceCard.tsx +8 -7
- package/components/Insurance/InsuranceCollapsed.tsx +7 -9
- package/components/Insurance/index.ts +2 -2
- package/components/Insurance/types.ts +1 -1
- package/components/ListItem/ListItem.tsx +6 -4
- package/components/ListItem/ListItemButton.tsx +2 -2
- package/components/ListItem/index.ts +2 -2
- package/components/ListItemButton.tsx +2 -3
- package/components/ListItemText.tsx +5 -3
- package/components/Menu.tsx +1 -1
- package/components/NFT/NFT.style.ts +1 -2
- package/components/NFT/NFT.tsx +3 -3
- package/components/NFT/NFTBase.tsx +3 -3
- package/components/NFT/index.ts +3 -3
- package/components/NFT/types.ts +1 -1
- package/components/NotFound.tsx +2 -2
- package/components/PageContainer.ts +1 -2
- package/components/PoweredBy/PoweredBy.style.ts +1 -2
- package/components/PoweredBy/PoweredBy.tsx +5 -5
- package/components/PoweredBy/index.ts +1 -1
- package/components/ProgressToNextUpdate/index.ts +1 -1
- package/components/ReverseTokensButton/ReverseTokensButton.style.tsx +6 -2
- package/components/ReverseTokensButton/ReverseTokensButton.tsx +7 -7
- package/components/ReverseTokensButton/index.ts +1 -1
- package/components/RouteCard/RouteCard.style.ts +1 -2
- package/components/RouteCard/RouteCard.tsx +16 -16
- package/components/RouteCard/RouteCardEssentials.tsx +9 -7
- package/components/RouteCard/RouteCardEssentialsExpanded.tsx +10 -9
- package/components/RouteCard/RouteCardSkeleton.tsx +4 -4
- package/components/RouteCard/RouteNotFoundCard.tsx +2 -2
- package/components/RouteCard/index.ts +3 -3
- package/components/Routes/Routes.tsx +9 -6
- package/components/Routes/RoutesExpanded.style.ts +2 -3
- package/components/Routes/RoutesExpanded.tsx +10 -8
- package/components/Routes/index.ts +2 -2
- package/components/Select.tsx +8 -6
- package/components/SelectChainAndToken.tsx +6 -7
- package/components/SelectTokenButton/SelectTokenButton.style.tsx +2 -3
- package/components/SelectTokenButton/SelectTokenButton.tsx +12 -8
- package/components/SelectTokenButton/index.ts +1 -1
- package/components/SendToWallet/SendToWallet.style.tsx +2 -3
- package/components/SendToWallet/SendToWalletButton.tsx +16 -15
- package/components/SendToWallet/SendToWalletExpandButton.tsx +12 -13
- package/components/SendToWallet/index.ts +3 -3
- package/components/SettingsListItemButton.tsx +2 -2
- package/components/SmallAvatar.tsx +1 -2
- package/components/Step/CircularProgress.style.tsx +8 -3
- package/components/Step/CircularProgress.tsx +12 -10
- package/components/Step/DestinationWalletAddress.tsx +5 -6
- package/components/Step/Step.tsx +10 -9
- package/components/Step/StepList.tsx +3 -3
- package/components/Step/StepProcess.style.tsx +1 -2
- package/components/Step/StepProcess.tsx +5 -5
- package/components/Step/StepTimer.tsx +2 -1
- package/components/Step/index.ts +2 -2
- package/components/StepActions/StepActions.style.tsx +3 -3
- package/components/StepActions/StepActions.tsx +14 -16
- package/components/StepActions/StepFeeBreakdown.tsx +3 -3
- package/components/StepActions/StepFees.tsx +1 -1
- package/components/StepActions/index.ts +1 -1
- package/components/StepActions/types.ts +1 -1
- package/components/StepDivider/StepDivider.style.tsx +1 -2
- package/components/StepDivider/StepDivider.tsx +1 -1
- package/components/StepDivider/index.ts +1 -1
- package/components/Switch.tsx +6 -3
- package/components/Tabs/Tabs.style.tsx +3 -2
- package/components/Tabs/index.ts +1 -1
- package/components/TextFitter/TextFitter.tsx +2 -2
- package/components/TextFitter/index.ts +1 -1
- package/components/Token/Token.style.tsx +1 -2
- package/components/Token/Token.tsx +10 -6
- package/components/Token/index.ts +2 -2
- package/components/TokenAvatar/TokenAvatar.style.tsx +7 -4
- package/components/TokenAvatar/TokenAvatar.tsx +4 -3
- package/components/TokenAvatar/index.ts +2 -2
- package/components/TokenList/TokenList.style.tsx +2 -3
- package/components/TokenList/TokenList.tsx +12 -13
- package/components/TokenList/TokenListItem.tsx +7 -10
- package/components/TokenList/TokenNotFound.tsx +6 -5
- package/components/TokenList/VirtualizedTokenList.tsx +3 -3
- package/components/TokenList/index.ts +2 -2
- package/components/TokenList/types.ts +3 -3
- package/components/TokenList/useTokenSelect.ts +7 -8
- package/config/theme.ts +20 -14
- package/config/version.ts +1 -1
- package/hooks/index.ts +34 -34
- package/hooks/useAddressValidation.ts +1 -1
- package/hooks/useAvailableChains.ts +3 -2
- package/hooks/useChain.ts +1 -1
- package/hooks/useChains.ts +4 -4
- package/hooks/useContentHeight.ts +3 -3
- package/hooks/useDebouncedWatch.ts +2 -2
- package/hooks/useDefaultElementId.ts +1 -1
- package/hooks/useExpandableVariant.ts +2 -2
- package/hooks/useFromTokenSufficiency.ts +5 -4
- package/hooks/useGasRecommendation.ts +1 -1
- package/hooks/useGasRefuel.ts +4 -4
- package/hooks/useGasSufficiency.ts +3 -3
- package/hooks/useInitializer.ts +2 -2
- package/hooks/useLanguages.ts +3 -2
- package/hooks/useProcessMessage.ts +4 -4
- package/hooks/useRouteExecution.ts +8 -6
- package/hooks/useRoutes.ts +11 -6
- package/hooks/useScrollableContainer.ts +2 -2
- package/hooks/useSettingMonitor.ts +3 -3
- package/hooks/useSwapOnly.ts +1 -1
- package/hooks/useToAddressRequirements.ts +4 -4
- package/hooks/useToAddressReset.ts +5 -3
- package/hooks/useToken.ts +2 -2
- package/hooks/useTokenAddressBalance.ts +2 -2
- package/hooks/useTokenBalance.ts +1 -1
- package/hooks/useTokenBalances.ts +3 -3
- package/hooks/useTokenSearch.ts +1 -1
- package/hooks/useTokens.ts +3 -3
- package/hooks/useTools.ts +3 -3
- package/hooks/useTransactionDetails.ts +1 -1
- package/hooks/useTransactionHistory.ts +1 -1
- package/hooks/useWidgetEvents.ts +4 -2
- package/i18n/index.ts +14 -14
- package/icons/InsuraceLogo.tsx +1 -1
- package/icons/index.ts +2 -2
- package/index.ts +12 -14
- package/package.json +2 -2
- package/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +2 -2
- package/pages/ActiveTransactionsPage/ActiveTransactionsPage.tsx +9 -11
- package/pages/ActiveTransactionsPage/index.ts +1 -1
- package/pages/LanguagesPage/LanguagesPage.tsx +6 -6
- package/pages/LanguagesPage/index.ts +1 -1
- package/pages/MainPage/MainGasMessage.tsx +2 -2
- package/pages/MainPage/MainPage.style.tsx +1 -2
- package/pages/MainPage/MainPage.tsx +13 -15
- package/pages/MainPage/ReviewButton.tsx +8 -9
- package/pages/MainPage/index.ts +1 -1
- package/pages/RoutesPage/RoutesPage.style.ts +1 -2
- package/pages/RoutesPage/RoutesPage.tsx +10 -10
- package/pages/RoutesPage/index.ts +1 -1
- package/pages/SelectChainPage/SelectChainPage.tsx +7 -7
- package/pages/SelectChainPage/index.ts +1 -1
- package/pages/SelectChainPage/types.ts +1 -1
- package/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.tsx +16 -13
- package/pages/SelectEnabledToolsPage/index.ts +1 -1
- package/pages/SelectNativeTokenPage/SelectNativeTokenPage.tsx +8 -7
- package/pages/SelectNativeTokenPage/index.ts +1 -1
- package/pages/SelectTokenPage/SearchTokenInput.style.tsx +2 -2
- package/pages/SelectTokenPage/SearchTokenInput.tsx +6 -5
- package/pages/SelectTokenPage/SelectTokenPage.tsx +9 -11
- package/pages/SelectTokenPage/index.ts +2 -2
- package/pages/SelectWalletPage/EVMListItemButton.tsx +5 -4
- package/pages/SelectWalletPage/SVMListItemButton.tsx +5 -4
- package/pages/SelectWalletPage/SelectWalletPage.tsx +8 -8
- package/pages/SelectWalletPage/index.ts +1 -1
- package/pages/SendToWallet/BookmarkAddressSheet.tsx +11 -14
- package/pages/SendToWallet/BookmarksPage.tsx +28 -22
- package/pages/SendToWallet/ConfirmAddressSheet.tsx +11 -11
- package/pages/SendToWallet/ConnectedWalletsPage.tsx +25 -20
- package/pages/SendToWallet/EmptyListIndicator.tsx +1 -1
- package/pages/SendToWallet/RecentWalletsPage.tsx +31 -28
- package/pages/SendToWallet/SendToConfiguredWalletPage.tsx +22 -19
- package/pages/SendToWallet/SendToWalletPage.style.tsx +5 -5
- package/pages/SendToWallet/SendToWalletPage.tsx +20 -23
- package/pages/SendToWallet/index.ts +5 -5
- package/pages/SettingsPage/BridgeAndExchangeSettings.tsx +8 -9
- package/pages/SettingsPage/GasPriceSettings.tsx +8 -6
- package/pages/SettingsPage/LanguageSetting.tsx +8 -7
- package/pages/SettingsPage/ResetSettingsButton.style.tsx +2 -3
- package/pages/SettingsPage/ResetSettingsButton.tsx +4 -4
- package/pages/SettingsPage/RoutePrioritySettings.tsx +8 -6
- package/pages/SettingsPage/SendToWalletOptionSetting.tsx +10 -12
- package/pages/SettingsPage/SettingsCard/BadgedValue.tsx +3 -3
- package/pages/SettingsPage/SettingsCard/SettingCard.style.tsx +1 -3
- package/pages/SettingsPage/SettingsCard/SettingCardExpandable.tsx +6 -6
- package/pages/SettingsPage/SettingsCard/index.ts +4 -4
- package/pages/SettingsPage/SettingsPage.tsx +11 -10
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +9 -4
- package/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +10 -10
- package/pages/SettingsPage/SlippageSettings/index.ts +1 -1
- package/pages/SettingsPage/ThemeSettings.tsx +11 -13
- package/pages/SettingsPage/index.ts +1 -1
- package/pages/TransactionDetailsPage/ContactSupportButton.tsx +2 -2
- package/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +19 -14
- package/pages/TransactionDetailsPage/TransactionDetailsSkeleton.tsx +3 -3
- package/pages/TransactionDetailsPage/index.ts +1 -1
- package/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +2 -2
- package/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +4 -3
- package/pages/TransactionHistoryPage/TransactionHistoryPage.tsx +6 -6
- package/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +3 -2
- package/pages/TransactionHistoryPage/index.ts +1 -1
- package/pages/TransactionPage/ExchangeRateBottomSheet.tsx +7 -7
- package/pages/TransactionPage/StartTransactionButton.tsx +6 -8
- package/pages/TransactionPage/StatusBottomSheet.style.tsx +2 -3
- package/pages/TransactionPage/StatusBottomSheet.tsx +27 -29
- package/pages/TransactionPage/TokenValueBottomSheet.tsx +7 -7
- package/pages/TransactionPage/TransactionPage.tsx +23 -27
- package/pages/TransactionPage/index.ts +1 -1
- package/pages/TransactionPage/types.ts +1 -1
- package/providers/I18nProvider/I18nProvider.tsx +6 -5
- package/providers/I18nProvider/index.ts +2 -2
- package/providers/I18nProvider/types.ts +1 -1
- package/providers/ThemeProvider/ThemeProvider.tsx +7 -5
- package/providers/ThemeProvider/index.ts +1 -1
- package/providers/WalletProvider/EVMBaseProvider.tsx +5 -5
- package/providers/WalletProvider/EVMProvider.tsx +4 -4
- package/providers/WalletProvider/SDKProviders.tsx +1 -1
- package/providers/WalletProvider/SVMProvider.tsx +4 -4
- package/providers/WalletProvider/WalletProvider.tsx +3 -3
- package/providers/WalletProvider/index.ts +3 -3
- package/providers/WalletProvider/useHasExternalWalletProvider.ts +2 -2
- package/providers/WidgetProvider/WidgetProvider.tsx +5 -5
- package/providers/WidgetProvider/index.ts +2 -2
- package/providers/WidgetProvider/types.ts +1 -1
- package/providers/WidgetProvider/utils.ts +2 -2
- package/stores/StoreProvider.tsx +7 -7
- package/stores/bookmarks/BookmarkStore.tsx +4 -4
- package/stores/bookmarks/createBookmarkStore.ts +3 -3
- package/stores/bookmarks/index.ts +5 -5
- package/stores/bookmarks/types.ts +2 -2
- package/stores/bookmarks/useBookmarkActions.ts +2 -2
- package/stores/bookmarks/useBookmarks.ts +2 -2
- package/stores/chains/ChainOrderStore.tsx +8 -8
- package/stores/chains/createChainOrderStore.ts +2 -2
- package/stores/chains/index.ts +4 -4
- package/stores/chains/types.ts +1 -1
- package/stores/chains/useChainOrder.ts +2 -2
- package/stores/form/FormStore.tsx +7 -24
- package/stores/form/FormStoreContext.ts +4 -0
- package/stores/form/FormUpdater.tsx +5 -5
- package/stores/form/URLSearchParamsBuilder.tsx +3 -2
- package/stores/form/createFormStore.ts +1 -1
- package/stores/form/index.ts +10 -10
- package/stores/form/useFieldActions.ts +2 -2
- package/stores/form/useFieldController.ts +3 -3
- package/stores/form/useFieldValues.ts +2 -2
- package/stores/form/useFormStore.ts +19 -0
- package/stores/form/useTouchedFields.ts +1 -1
- package/stores/form/useValidation.ts +2 -2
- package/stores/form/useValidationActions.ts +2 -2
- package/stores/header/index.ts +1 -1
- package/stores/header/useHeaderStore.tsx +2 -2
- package/stores/routes/RouteExecutionStore.tsx +3 -3
- package/stores/routes/createRouteExecutionStore.ts +5 -5
- package/stores/routes/index.ts +5 -5
- package/stores/routes/useExecutingRoutesIds.ts +4 -4
- package/stores/routes/useSetExecutableRoute.ts +1 -1
- package/stores/settings/index.ts +6 -6
- package/stores/settings/types.ts +1 -3
- package/stores/settings/useAppearance.ts +2 -2
- package/stores/settings/useSendToWalletStore.ts +1 -1
- package/stores/settings/useSettings.ts +2 -2
- package/stores/settings/useSettingsStore.ts +3 -3
- package/stores/settings/useSplitSubvariantStore.tsx +1 -1
- package/types/index.ts +3 -3
- package/types/widget.ts +6 -4
- package/utils/chainType.ts +1 -1
- package/utils/colors.ts +1 -7
- package/utils/converters.ts +1 -1
- package/utils/index.ts +12 -12
- package/utils/item.ts +1 -1
- package/_esm/providers/index.d.ts +0 -4
- package/_esm/providers/index.js +0 -5
- package/_esm/providers/index.js.map +0 -1
- package/_esm/stores/index.d.ts +0 -7
- package/_esm/stores/index.js +0 -8
- package/_esm/stores/index.js.map +0 -1
- package/providers/index.ts +0 -4
- package/stores/index.ts +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { BookmarkStoreProvider } from './bookmarks/BookmarkStore.js';
|
|
3
|
+
import { ChainOrderStoreProvider } from './chains/ChainOrderStore.js';
|
|
4
|
+
import { FormStoreProvider } from './form/FormStore.js';
|
|
5
|
+
import { HeaderStoreProvider } from './header/useHeaderStore.js';
|
|
6
|
+
import { RouteExecutionStoreProvider } from './routes/RouteExecutionStore.js';
|
|
7
|
+
import { SplitSubvariantStoreProvider } from './settings/useSplitSubvariantStore.js';
|
|
8
8
|
export const StoreProvider = ({ children, config, }) => {
|
|
9
9
|
return (_jsx(SplitSubvariantStoreProvider, { state: config.subvariant === 'split'
|
|
10
10
|
? config.subvariantOptions || 'swap'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreProvider.js","sourceRoot":"","sources":["../../stores/StoreProvider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StoreProvider.js","sourceRoot":"","sources":["../../stores/StoreProvider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,MAAM,CAAC,MAAM,aAAa,GAAmD,CAAC,EAC5E,QAAQ,EACR,MAAM,GACP,EAAE,EAAE;IACH,OAAO,CACL,KAAC,4BAA4B,IAC3B,KAAK,EACH,MAAM,CAAC,UAAU,KAAK,OAAO;YAC3B,CAAC,CAAC,MAAM,CAAC,iBAAiB,IAAI,MAAM;YACpC,CAAC,CAAC,SAAS,YAGf,KAAC,mBAAmB,IAAC,UAAU,EAAE,MAAM,EAAE,SAAS,YAChD,KAAC,iBAAiB,cAChB,KAAC,qBAAqB,IAAC,UAAU,EAAE,MAAM,EAAE,SAAS,YAClD,KAAC,uBAAuB,IAAC,UAAU,EAAE,MAAM,EAAE,SAAS,YACpD,KAAC,2BAA2B,IAAC,UAAU,EAAE,MAAM,EAAE,SAAS,YACvD,QAAQ,GACmB,GACN,GACJ,GACN,GACA,GACO,CAChC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import { shallow } from 'zustand/shallow';
|
|
3
|
-
import type { PersistStoreProviderProps } from '../types';
|
|
4
|
-
import type { BookmarkState, BookmarkStore } from './types';
|
|
3
|
+
import type { PersistStoreProviderProps } from '../types.js';
|
|
4
|
+
import type { BookmarkState, BookmarkStore } from './types.js';
|
|
5
5
|
export declare const BookmarkStoreContext: import("react").Context<BookmarkStore | null>;
|
|
6
6
|
export declare const BookmarkStoreProvider: React.FC<PersistStoreProviderProps>;
|
|
7
7
|
export declare function useBookmarkStore<T>(selector: (store: BookmarkState) => T, equalityFunction?: typeof shallow): T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useRef } from 'react';
|
|
3
3
|
import { shallow } from 'zustand/shallow';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
5
|
+
import { createBookmarksStore } from './createBookmarkStore.js';
|
|
6
6
|
export const BookmarkStoreContext = createContext(null);
|
|
7
7
|
export const BookmarkStoreProvider = ({ children, ...props }) => {
|
|
8
8
|
const { toAddress } = useWidgetConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarkStore.js","sourceRoot":"","sources":["../../../stores/bookmarks/BookmarkStore.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"BookmarkStore.js","sourceRoot":"","sources":["../../../stores/bookmarks/BookmarkStore.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAuB,IAAI,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,qBAAqB,GAAwC,CAAC,EACzE,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,CAAC;IACxC,MAAM,QAAQ,GAAG,MAAM,EAAiB,CAAC;IAEzC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,CACL,KAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,YACnD,QAAQ,GACqB,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAC9B,QAAqC,EACrC,gBAAgB,GAAG,OAAO;IAE1B,MAAM,QAAQ,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAElD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,yCAAyC,qBAAqB,CAAC,IAAI,IAAI,CACxE,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ToAddress } from '../../types';
|
|
2
|
-
import type { PersistStoreProps } from '../types';
|
|
3
|
-
import type { BookmarkState } from './types';
|
|
1
|
+
import type { ToAddress } from '../../types/widget.js';
|
|
2
|
+
import type { PersistStoreProps } from '../types.js';
|
|
3
|
+
import type { BookmarkState } from './types.js';
|
|
4
4
|
interface PersistBookmarkProps extends PersistStoreProps {
|
|
5
5
|
toAddress?: ToAddress;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './BookmarkStore';
|
|
2
|
-
export * from './createBookmarkStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useBookmarkActions';
|
|
5
|
-
export * from './useBookmarks';
|
|
1
|
+
export * from './BookmarkStore.js';
|
|
2
|
+
export * from './createBookmarkStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useBookmarkActions.js';
|
|
5
|
+
export * from './useBookmarks.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './BookmarkStore';
|
|
2
|
-
export * from './createBookmarkStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useBookmarkActions';
|
|
5
|
-
export * from './useBookmarks';
|
|
1
|
+
export * from './BookmarkStore.js';
|
|
2
|
+
export * from './createBookmarkStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useBookmarkActions.js';
|
|
5
|
+
export * from './useBookmarks.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/bookmarks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/bookmarks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StoreApi } from 'zustand';
|
|
2
|
-
import type { UseBoundStoreWithEqualityFn } from 'zustand/
|
|
3
|
-
import type { ToAddress } from '../../types';
|
|
2
|
+
import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
|
|
3
|
+
import type { ToAddress } from '../../types/widget.js';
|
|
4
4
|
export interface Bookmark extends ToAddress {
|
|
5
5
|
isConnectedAccount?: boolean;
|
|
6
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BookmarkActions } from './types';
|
|
1
|
+
import type { BookmarkActions } from './types.js';
|
|
2
2
|
export declare const useBookmarkActions: () => BookmarkActions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
-
import { useBookmarkStore } from './BookmarkStore';
|
|
2
|
+
import { useBookmarkStore } from './BookmarkStore.js';
|
|
3
3
|
export const useBookmarkActions = () => {
|
|
4
4
|
const actions = useBookmarkStore((store) => ({
|
|
5
5
|
getBookmark: store.getBookmark,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBookmarkActions.js","sourceRoot":"","sources":["../../../stores/bookmarks/useBookmarkActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useBookmarkActions.js","sourceRoot":"","sources":["../../../stores/bookmarks/useBookmarkActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,gBAAgB,CAC9B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACV,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB;QAC9C,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;KAC7C,CAAC,EACF,OAAO,CACR,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { BookmarkProps } from './types';
|
|
1
|
+
import type { BookmarkProps } from './types.js';
|
|
2
2
|
export declare const useBookmarks: () => BookmarkProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
-
import { useBookmarkStore } from './BookmarkStore';
|
|
2
|
+
import { useBookmarkStore } from './BookmarkStore.js';
|
|
3
3
|
export const useBookmarks = () => {
|
|
4
4
|
const [bookmarks, selectedBookmark, recentWallets] = useBookmarkStore((store) => [store.bookmarks, store.selectedBookmark, store.recentWallets], shallow);
|
|
5
5
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBookmarks.js","sourceRoot":"","sources":["../../../stores/bookmarks/useBookmarks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useBookmarks.js","sourceRoot":"","sources":["../../../stores/bookmarks/useBookmarks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAkB,EAAE;IAC9C,MAAM,CAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,CAAC,GAAG,gBAAgB,CACnE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,EACzE,OAAO,CACR,CAAC;IAEF,OAAO;QACL,SAAS;QACT,gBAAgB;QAChB,aAAa;KACd,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import type { StoreApi } from 'zustand';
|
|
3
3
|
import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional';
|
|
4
|
-
import type { PersistStoreProviderProps } from '../types';
|
|
5
|
-
import type { ChainOrderState } from './types';
|
|
4
|
+
import type { PersistStoreProviderProps } from '../types.js';
|
|
5
|
+
import type { ChainOrderState } from './types.js';
|
|
6
6
|
export type ChainOrderStore = UseBoundStoreWithEqualityFn<StoreApi<ChainOrderState>>;
|
|
7
7
|
export declare const ChainOrderStoreContext: import("react").Context<ChainOrderStore | null>;
|
|
8
8
|
export declare function ChainOrderStoreProvider({ children, ...props }: PersistStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useRef } from 'react';
|
|
3
|
-
import { useChains } from '../../hooks';
|
|
4
|
-
import { useWidgetConfig } from '../../providers';
|
|
5
|
-
import { isItemAllowed } from '../../utils';
|
|
6
|
-
import { useFieldActions } from '../form';
|
|
7
|
-
import { createChainOrderStore } from './createChainOrderStore';
|
|
3
|
+
import { useChains } from '../../hooks/useChains.js';
|
|
4
|
+
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
5
|
+
import { isItemAllowed } from '../../utils/item.js';
|
|
6
|
+
import { useFieldActions } from '../form/useFieldActions.js';
|
|
7
|
+
import { createChainOrderStore } from './createChainOrderStore.js';
|
|
8
8
|
export const ChainOrderStoreContext = createContext(null);
|
|
9
9
|
export function ChainOrderStoreProvider({ children, ...props }) {
|
|
10
10
|
const { chains: configChains } = useWidgetConfig();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainOrderStore.js","sourceRoot":"","sources":["../../../stores/chains/ChainOrderStore.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChainOrderStore.js","sourceRoot":"","sources":["../../../stores/chains/ChainOrderStore.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAOnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CACjD,IAAI,CACL,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,EACtC,QAAQ,EACR,GAAG,KAAK,EACkB;IAC1B,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,eAAe,EAAE,CAAC;IACnD,MAAM,QAAQ,GAAG,MAAM,EAAmB,CAAC;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,eAAe,EAAE,CAAC;IAE5D,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,QAAQ,CAAC,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,EAAE,CAAC;YACV,CAAC,MAAM,EAAE,IAAI,CAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBAC7C,MAAM,cAAc,GAAG,YAAY,EAAE,CAAC,GAAG,CAAC;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;oBACtE,CAAC,CAAC,MAAM,CAAC;gBACX,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAC9D,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EACvC,GAAG,CACJ,CAAC;gBACF,IAAI,UAAU,EAAE,CAAC;oBACf,MAAM,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC;oBACnD,IAAI,CAAC,UAAU,EAAE,CAAC;wBAChB,aAAa,CAAC,GAAG,GAAG,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;oBAC9C,CAAC;gBACH,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC;IAE1D,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,YACrD,QAAQ,GACuB,CACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,QAAuC,EACvC,UAA2C;IAE3C,MAAM,QAAQ,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACpD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,yCAAyC,uBAAuB,CAAC,IAAI,IAAI,CAC1E,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,yBAAyB;IACvC,MAAM,QAAQ,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACpD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,yCAAyC,uBAAuB,CAAC,IAAI,IAAI,CAC1E,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PersistStoreProps } from '../types';
|
|
2
|
-
import type { ChainOrderState } from './types';
|
|
1
|
+
import type { PersistStoreProps } from '../types.js';
|
|
2
|
+
import type { ChainOrderState } from './types.js';
|
|
3
3
|
export declare const maxChainToOrder = 9;
|
|
4
4
|
export declare const createChainOrderStore: ({ namePrefix }: PersistStoreProps) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<ChainOrderState>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './ChainOrderStore';
|
|
2
|
-
export * from './createChainOrderStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useChainOrder';
|
|
1
|
+
export * from './ChainOrderStore.js';
|
|
2
|
+
export * from './createChainOrderStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useChainOrder.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './ChainOrderStore';
|
|
2
|
-
export * from './createChainOrderStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useChainOrder';
|
|
1
|
+
export * from './ChainOrderStore.js';
|
|
2
|
+
export * from './createChainOrderStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useChainOrder.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/chains/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FormType } from '../form';
|
|
1
|
+
import type { FormType } from '../form/types.js';
|
|
2
2
|
export declare const useChainOrder: (type: FormType) => [number[], (chainId: number, type: FormType) => void];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
-
import { useChainOrderStore } from './ChainOrderStore';
|
|
2
|
+
import { useChainOrderStore } from './ChainOrderStore.js';
|
|
3
3
|
export const useChainOrder = (type) => {
|
|
4
4
|
return useChainOrderStore((state) => [state.chainOrder[type], state.setChain], shallow);
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChainOrder.js","sourceRoot":"","sources":["../../../stores/chains/useChainOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useChainOrder.js","sourceRoot":"","sources":["../../../stores/chains/useChainOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,IAAc,EACyC,EAAE;IACzD,OAAO,kBAAkB,CACvB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,EACnD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import { shallow } from 'zustand/shallow';
|
|
3
|
-
import type { FormStoreStore, FormValuesState } from './types';
|
|
4
|
-
export declare const FormStoreContext: import("react").Context<FormStoreStore | null>;
|
|
5
2
|
export declare const FormStoreProvider: React.FC<PropsWithChildren>;
|
|
6
|
-
export declare function useFormStore<T>(selector: (state: FormValuesState) => T, equalityFn?: typeof shallow): T;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { FormUpdater } from './FormUpdater';
|
|
7
|
-
import { createFormStore, formDefaultValues } from './createFormStore';
|
|
8
|
-
export const FormStoreContext = createContext(null);
|
|
2
|
+
import { useMemo, useRef } from 'react';
|
|
3
|
+
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
4
|
+
import { HiddenUI } from '../../types/widget.js';
|
|
5
|
+
import { FormStoreContext } from './FormStoreContext.js';
|
|
6
|
+
import { FormUpdater } from './FormUpdater.js';
|
|
7
|
+
import { createFormStore, formDefaultValues } from './createFormStore.js';
|
|
9
8
|
export const FormStoreProvider = ({ children, }) => {
|
|
10
9
|
const { fromChain, fromToken, fromAmount, toChain, toToken, toAddress, hiddenUI, } = useWidgetConfig();
|
|
11
10
|
const storeRef = useRef();
|
|
@@ -37,11 +36,4 @@ export const FormStoreProvider = ({ children, }) => {
|
|
|
37
36
|
}
|
|
38
37
|
return (_jsx(FormStoreContext.Provider, { value: storeRef.current, children: _jsx(FormUpdater, { defaultValues: defaultValues, children: children }) }));
|
|
39
38
|
};
|
|
40
|
-
export function useFormStore(selector, equalityFn = shallow) {
|
|
41
|
-
const useStore = useContext(FormStoreContext);
|
|
42
|
-
if (!useStore) {
|
|
43
|
-
throw new Error(`You forgot to wrap your component in <${FormStoreProvider.name}>.`);
|
|
44
|
-
}
|
|
45
|
-
return useStore(selector, equalityFn);
|
|
46
|
-
}
|
|
47
39
|
//# sourceMappingURL=FormStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStore.js","sourceRoot":"","sources":["../../../stores/form/FormStore.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"FormStore.js","sourceRoot":"","sources":["../../../stores/form/FormStore.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG1E,MAAM,CAAC,MAAM,iBAAiB,GAAgC,CAAC,EAC7D,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EACJ,SAAS,EACT,SAAS,EACT,UAAU,EACV,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,GACT,GAAG,eAAe,EAAE,CAAC;IACtB,MAAM,QAAQ,GAAG,MAAM,EAAkB,CAAC;IAE1C,MAAM,eAAe,GAAG,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE/D,MAAM,aAAa,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,CAAC;QACL,GAAG,iBAAiB;QACpB,SAAS;QACT,SAAS;QACT,OAAO;QACP,OAAO;QACP,UAAU,EACR,CAAC,OAAO,UAAU,KAAK,QAAQ;YAC7B,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE;YAC3B,CAAC,CAAC,UAAU,CAAC,IAAI,iBAAiB,CAAC,UAAU;QACjD,mDAAmD;QACnD,SAAS,EAAE,eAAe;YACxB,CAAC,CAAC,iBAAiB,CAAC,SAAS;YAC7B,CAAC,CAAC,SAAS,EAAE,OAAO,IAAI,iBAAiB,CAAC,SAAS;KACtD,CAAC,EACF;QACE,UAAU;QACV,SAAS;QACT,SAAS;QACT,eAAe;QACf,SAAS;QACT,OAAO;QACP,OAAO;KACR,CACF,CAAC;IAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,QAAQ,CAAC,OAAO,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,YAChD,KAAC,WAAW,IAAC,aAAa,EAAE,aAAa,YAAG,QAAQ,GAAe,GACzC,CAC7B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormStoreContext.js","sourceRoot":"","sources":["../../../stores/form/FormStoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAwB,IAAI,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { useAccount } from '../../hooks';
|
|
3
|
-
import { useWidgetConfig } from '../../providers';
|
|
4
|
-
import { isItemAllowed } from '../../utils';
|
|
5
|
-
import { useFieldActions } from './useFieldActions';
|
|
2
|
+
import { useAccount } from '../../hooks/useAccount.js';
|
|
3
|
+
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
4
|
+
import { isItemAllowed } from '../../utils/item.js';
|
|
5
|
+
import { useFieldActions } from './useFieldActions.js';
|
|
6
6
|
export const FormUpdater = ({ defaultValues, children }) => {
|
|
7
7
|
const { fromChain, toChain, chains } = useWidgetConfig();
|
|
8
8
|
const { account } = useAccount();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormUpdater.js","sourceRoot":"","sources":["../../../stores/form/FormUpdater.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FormUpdater.js","sourceRoot":"","sources":["../../../stores/form/FormUpdater.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,WAAW,GAIpB,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;IACzD,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,CAAC;IACjC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,GAC5D,eAAe,EAAE,CAAC;IACpB,MAAM,qBAAqB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IAEpD,mHAAmH;IACnH,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAChB,OAAO,CAAC,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAE5D,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC;YAC9D,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;YACrE,UAAU,CAAC,WAAW,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3D,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAC/B,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC5B,aAAa,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/D,UAAU,CAAC,SAAS,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;YACzD,aAAa,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,EAAE;QACD,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,WAAW;QACnB,MAAM;QACN,SAAS;QACT,OAAO;QACP,SAAS;QACT,UAAU;QACV,aAAa;KACd,CAAC,CAAC;IAEH,kDAAkD;IAClD,+FAA+F;IAC/F,SAAS,CAAC,GAAG,EAAE;QACZ,MAAM,CAAC,IAAI,CAAC,aAAa,CAAsB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/D,IAAI,qBAAqB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC9D,MAAM,KAAK,GACT,aAAa,CAAC,GAAG,CAAC;oBAClB,2EAA2E;oBAC3E,CAAC,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,SAAS;wBACvC,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE;wBACvB,CAAC,CAAC,EAAE,CAAC,CAAC;gBACV,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;gBAC1B,UAAU,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC,CAAC,CAAC;QACH,qBAAqB,CAAC,OAAO,GAAG,aAAa,CAAC;QAC9C,uDAAuD;IACzD,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;IAE/D,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { useLocation } from 'react-router-dom';
|
|
3
|
-
import { useFieldValues
|
|
3
|
+
import { useFieldValues } from '../form/useFieldValues.js';
|
|
4
|
+
import { useTouchedFields } from '../form/useTouchedFields.js';
|
|
4
5
|
const formValueKeys = [
|
|
5
6
|
'fromAmount',
|
|
6
7
|
'fromChain',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"URLSearchParamsBuilder.js","sourceRoot":"","sources":["../../../stores/form/URLSearchParamsBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"URLSearchParamsBuilder.js","sourceRoot":"","sources":["../../../stores/form/URLSearchParamsBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,aAAa,GAAqB;IACtC,YAAY;IACZ,WAAW;IACX,WAAW;IACX,WAAW;IACX,SAAS;IACT,SAAS;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC;IACnC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,aAAa,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAe,CAAC,CAAC;QAC5C,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACnC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC;gBAChC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;iBAAM,IAAI,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvD,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAC7D,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IAEtC,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DefaultValues, FormValuesState } from './types';
|
|
1
|
+
import type { DefaultValues, FormValuesState } from './types.js';
|
|
2
2
|
export declare const formDefaultValues: DefaultValues;
|
|
3
3
|
export declare const createFormStore: (defaultValues?: DefaultValues) => import("zustand/traditional").UseBoundStoreWithEqualityFn<import("zustand").StoreApi<FormValuesState>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './createFormStore';
|
|
2
|
-
export * from './FormStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useFieldActions';
|
|
5
|
-
export * from './useFieldController';
|
|
6
|
-
export * from './useFieldValues';
|
|
7
|
-
export * from './useTouchedFields';
|
|
8
|
-
export * from './useValidation';
|
|
9
|
-
export * from './useValidationActions';
|
|
10
|
-
export * from './URLSearchParamsBuilder';
|
|
1
|
+
export * from './createFormStore.js';
|
|
2
|
+
export * from './FormStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useFieldActions.js';
|
|
5
|
+
export * from './useFieldController.js';
|
|
6
|
+
export * from './useFieldValues.js';
|
|
7
|
+
export * from './useTouchedFields.js';
|
|
8
|
+
export * from './useValidation.js';
|
|
9
|
+
export * from './useValidationActions.js';
|
|
10
|
+
export * from './URLSearchParamsBuilder.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './createFormStore';
|
|
2
|
-
export * from './FormStore';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export * from './useFieldActions';
|
|
5
|
-
export * from './useFieldController';
|
|
6
|
-
export * from './useFieldValues';
|
|
7
|
-
export * from './useTouchedFields';
|
|
8
|
-
export * from './useValidation';
|
|
9
|
-
export * from './useValidationActions';
|
|
10
|
-
export * from './URLSearchParamsBuilder';
|
|
1
|
+
export * from './createFormStore.js';
|
|
2
|
+
export * from './FormStore.js';
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './useFieldActions.js';
|
|
5
|
+
export * from './useFieldController.js';
|
|
6
|
+
export * from './useFieldValues.js';
|
|
7
|
+
export * from './useTouchedFields.js';
|
|
8
|
+
export * from './useValidation.js';
|
|
9
|
+
export * from './useValidationActions.js';
|
|
10
|
+
export * from './URLSearchParamsBuilder.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../stores/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FormActions } from './types';
|
|
1
|
+
import type { FormActions } from './types.js';
|
|
2
2
|
export declare const useFieldActions: () => FormActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldActions.js","sourceRoot":"","sources":["../../../stores/form/useFieldActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFieldActions.js","sourceRoot":"","sources":["../../../stores/form/useFieldActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,YAAY,CAC1B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACV,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;QACxC,aAAa,EAAE,KAAK,CAAC,aAAa;KACnC,CAAC,EACF,OAAO,CACR,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { FormFieldNames } from './types';
|
|
1
|
+
import type { FormFieldNames } from './types.js';
|
|
2
2
|
interface UseFieldControllerProps {
|
|
3
3
|
name: FormFieldNames;
|
|
4
4
|
}
|
|
5
5
|
export declare const useFieldController: ({ name }: UseFieldControllerProps) => {
|
|
6
6
|
onChange: (newValue: string | number | undefined) => void;
|
|
7
7
|
onBlur: () => void;
|
|
8
|
-
name: keyof import("./types").DefaultValues;
|
|
8
|
+
name: keyof import("./types.js").DefaultValues;
|
|
9
9
|
value: string | number | undefined;
|
|
10
10
|
};
|
|
11
11
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
|
-
import { useFieldValues } from './useFieldValues';
|
|
3
|
-
import { useFieldActions } from './useFieldActions';
|
|
2
|
+
import { useFieldValues } from './useFieldValues.js';
|
|
3
|
+
import { useFieldActions } from './useFieldActions.js';
|
|
4
4
|
export const useFieldController = ({ name }) => {
|
|
5
5
|
const [fieldValue] = useFieldValues(name);
|
|
6
6
|
const { setFieldValue, setAsTouched } = useFieldActions();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldController.js","sourceRoot":"","sources":["../../../stores/form/useFieldController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFieldController.js","sourceRoot":"","sources":["../../../stores/form/useFieldController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAA2B,EAAE,EAAE;IACtE,MAAM,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,eAAe,EAAE,CAAC;IAE1D,MAAM,QAAQ,GAAG,WAAW,CAC1B,CAAC,QAAqC,EAAE,EAAE;QACxC,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC,EACD,CAAC,IAAI,EAAE,aAAa,CAAC,CACtB,CAAC;IAEF,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAEzB,OAAO;QACL,QAAQ;QACR,MAAM;QACN,IAAI;QACJ,KAAK,EAAE,UAAU;KAClB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FormFieldArray } from './types';
|
|
2
|
-
export declare const useFieldValues: <T extends (keyof import("./types").DefaultValues)[]>(...names: T) => FormFieldArray<T>;
|
|
1
|
+
import type { FormFieldArray } from './types.js';
|
|
2
|
+
export declare const useFieldValues: <T extends (keyof import("./types.js").DefaultValues)[]>(...names: T) => FormFieldArray<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
-
import { useFormStore } from './
|
|
2
|
+
import { useFormStore } from './useFormStore.js';
|
|
3
3
|
// We should return a strongly-typed array based on the specific field names we pass to the function.
|
|
4
4
|
export const useFieldValues = (...names) => {
|
|
5
5
|
const values = useFormStore((store) => names.map((name) => store.userValues[name].value), shallow);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldValues.js","sourceRoot":"","sources":["../../../stores/form/useFieldValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFieldValues.js","sourceRoot":"","sources":["../../../stores/form/useFieldValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qGAAqG;AACrG,MAAM,CAAC,MAAM,cAAc,GAAG,CAA6B,GAAG,KAAQ,EAAE,EAAE;IACxE,MAAM,MAAM,GAAG,YAAY,CACzB,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAE,CAAC,KAAK,CAAsB,EACzE,OAAO,CACR,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { shallow } from 'zustand/shallow';
|
|
3
|
+
import { FormStoreContext } from './FormStoreContext.js';
|
|
4
|
+
export function useFormStore(selector, equalityFn = shallow) {
|
|
5
|
+
const useStore = useContext(FormStoreContext);
|
|
6
|
+
if (!useStore) {
|
|
7
|
+
throw new Error(`You forgot to wrap your component in <FormStoreProvider>.`);
|
|
8
|
+
}
|
|
9
|
+
return useStore(selector, equalityFn);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=useFormStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormStore.js","sourceRoot":"","sources":["../../../stores/form/useFormStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,MAAM,UAAU,YAAY,CAC1B,QAAuC,EACvC,UAAU,GAAG,OAAO;IAEpB,MAAM,QAAQ,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAE9C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare const useTouchedFields: () => {
|
|
2
2
|
fromAmount?: boolean | undefined;
|
|
3
|
-
contractOutputsToken?: boolean | undefined;
|
|
4
|
-
fromChain?: boolean | undefined;
|
|
5
3
|
fromToken?: boolean | undefined;
|
|
6
4
|
toAddress?: boolean | undefined;
|
|
7
|
-
|
|
5
|
+
toToken?: boolean | undefined;
|
|
6
|
+
fromChain?: boolean | undefined;
|
|
8
7
|
toChain?: boolean | undefined;
|
|
8
|
+
toAmount?: boolean | undefined;
|
|
9
|
+
contractOutputsToken?: boolean | undefined;
|
|
9
10
|
toContractAddress?: boolean | undefined;
|
|
10
11
|
toContractCallData?: boolean | undefined;
|
|
11
12
|
toContractGasLimit?: boolean | undefined;
|
|
12
|
-
toToken?: boolean | undefined;
|
|
13
13
|
tokenSearchFilter?: boolean | undefined;
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormStore } from './FormStore';
|
|
2
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
+
import { useFormStore } from './useFormStore.js';
|
|
3
3
|
export const useTouchedFields = () => {
|
|
4
4
|
const touchedFields = useFormStore((store) => store.touchedFields, shallow);
|
|
5
5
|
return touchedFields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTouchedFields.js","sourceRoot":"","sources":["../../../stores/form/useTouchedFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useTouchedFields.js","sourceRoot":"","sources":["../../../stores/form/useTouchedFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,aAAa,GAAG,YAAY,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAE5E,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValidationProps } from './types';
|
|
1
|
+
import type { ValidationProps } from './types.js';
|
|
2
2
|
export declare const useValidation: () => Omit<ValidationProps, 'validation'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormStore } from './FormStore';
|
|
2
1
|
import { shallow } from 'zustand/shallow';
|
|
2
|
+
import { useFormStore } from './useFormStore.js';
|
|
3
3
|
export const useValidation = () => {
|
|
4
4
|
const [isValid, isValidating, errors] = useFormStore((store) => [store.isValid, store.isValidating, store.errors], shallow);
|
|
5
5
|
return {
|