@reown/appkit-react-native 2.0.0-alpha.1 → 2.0.0-alpha.2
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/lib/commonjs/AppKit.js +236 -61
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/AppKitContext.js +8 -6
- package/lib/commonjs/AppKitContext.js.map +1 -1
- package/lib/commonjs/config/animations.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +97 -9
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/hooks/useAccount.js +2 -1
- package/lib/commonjs/hooks/useAccount.js.map +1 -1
- package/lib/commonjs/hooks/useAppKit.js.map +1 -1
- package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
- package/lib/commonjs/hooks/useCustomDimensions.js.map +1 -1
- package/lib/commonjs/hooks/useDebounceCallback.js.map +1 -1
- package/lib/commonjs/hooks/useKeyboard.js.map +1 -1
- package/lib/commonjs/hooks/useProvider.js.map +1 -1
- package/lib/commonjs/hooks/useTimeout.js.map +1 -1
- package/lib/commonjs/hooks/useWalletInfo.js.map +1 -1
- package/lib/commonjs/index.js +8 -64
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-account-button/index.js +21 -20
- package/lib/commonjs/modal/w3m-account-button/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-button/index.js +4 -3
- package/lib/commonjs/modal/w3m-button/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-connect-button/index.js +13 -10
- package/lib/commonjs/modal/w3m-connect-button/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/index.js +34 -80
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/styles.js.map +1 -1
- package/lib/commonjs/modal/w3m-network-button/index.js +23 -14
- package/lib/commonjs/modal/w3m-network-button/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +5 -31
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/partials/w3m-account-activity/index.js +83 -70
- package/lib/commonjs/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-activity/utils.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js +56 -38
- package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +80 -70
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +29 -26
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +27 -26
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-body/index.js +14 -10
- package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-body/utils.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-header/index.js +9 -7
- package/lib/commonjs/partials/w3m-connecting-header/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/components/StoreLink.js +17 -13
- package/lib/commonjs/partials/w3m-connecting-mobile/components/StoreLink.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +49 -43
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +27 -21
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +40 -34
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +24 -38
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-information-modal/index.js +29 -23
- package/lib/commonjs/partials/w3m-information-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-information-modal/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-otp-code/index.js +45 -35
- package/lib/commonjs/partials/w3m-otp-code/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-otp-code/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-placeholder/index.js +27 -22
- package/lib/commonjs/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +68 -58
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-address/index.js +27 -35
- package/lib/commonjs/partials/w3m-send-input-address/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-address/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/index.js +71 -60
- package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/styles.js +3 -0
- package/lib/commonjs/partials/w3m-send-input-token/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/utils.js +2 -2
- package/lib/commonjs/partials/w3m-send-input-token/utils.js.map +1 -1
- package/lib/commonjs/partials/w3m-snackbar/index.js +10 -13
- package/lib/commonjs/partials/w3m-snackbar/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-snackbar/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-details/index.js +130 -104
- package/lib/commonjs/partials/w3m-swap-details/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-details/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-details/utils.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-input/index.js +97 -68
- package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-swap-input/styles.js +3 -0
- package/lib/commonjs/partials/w3m-swap-input/styles.js.map +1 -1
- package/lib/commonjs/utils/HelpersUtil.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +6 -8
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/UiUtil.js +7 -4
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js +21 -25
- package/lib/commonjs/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/components/upgrade-wallet-button.js +27 -22
- package/lib/commonjs/views/w3m-account-default-view/components/upgrade-wallet-button.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +215 -181
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/index.js +54 -48
- package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/styles.js +0 -5
- package/lib/commonjs/views/w3m-account-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +27 -23
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-socials-view/index.js +20 -23
- package/lib/commonjs/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-socials-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js +11 -10
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/all-wallets-button.js +3 -6
- package/lib/commonjs/views/w3m-connect-view/components/all-wallets-button.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js +8 -7
- package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js +5 -6
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js +44 -37
- package/lib/commonjs/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +65 -93
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +62 -55
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js +150 -0
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +1 -0
- package/lib/commonjs/views/{w3m-upgrade-to-smart-account-view → w3m-connecting-siwe-view}/styles.js +11 -11
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js.map +1 -0
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +64 -81
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-view/index.js +14 -30
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js +15 -13
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/index.js +64 -54
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +65 -49
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +187 -141
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +45 -39
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +36 -29
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +82 -64
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +95 -74
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +40 -30
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js +69 -57
- package/lib/commonjs/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Header.js +22 -19
- package/lib/commonjs/views/w3m-onramp-view/components/Header.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js +52 -43
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js +120 -0
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentButton.js.map +1 -0
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js +38 -33
- package/lib/commonjs/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js +49 -38
- package/lib/commonjs/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js +103 -106
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js +115 -121
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/styles.js +4 -0
- package/lib/commonjs/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/utils.js +19 -78
- package/lib/commonjs/views/w3m-onramp-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/index.js +90 -71
- package/lib/commonjs/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +145 -0
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +1 -0
- package/lib/commonjs/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/styles.js +11 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/styles.js.map +1 -0
- package/lib/commonjs/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/utils.js +7 -4
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/index.js +87 -72
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/styles.js +4 -0
- package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-transactions-view/index.js +2 -1
- package/lib/commonjs/views/w3m-transactions-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +42 -45
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js +20 -21
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +33 -25
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js +47 -44
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-receive-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js +41 -40
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-pill.js +9 -6
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-pill.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +96 -81
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +43 -42
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +52 -56
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js +55 -45
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-network-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js +76 -63
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/styles.js.map +1 -1
- package/lib/module/AppKit.js +239 -63
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/AppKitContext.js +9 -4
- package/lib/module/AppKitContext.js.map +1 -1
- package/lib/module/config/animations.js +2 -0
- package/lib/module/config/animations.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +99 -9
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/hooks/useAccount.js +4 -1
- package/lib/module/hooks/useAccount.js.map +1 -1
- package/lib/module/hooks/useAppKit.js +2 -0
- package/lib/module/hooks/useAppKit.js.map +1 -1
- package/lib/module/hooks/useAppKitEvents.js +2 -0
- package/lib/module/hooks/useAppKitEvents.js.map +1 -1
- package/lib/module/hooks/useCustomDimensions.js +2 -0
- package/lib/module/hooks/useCustomDimensions.js.map +1 -1
- package/lib/module/hooks/useDebounceCallback.js +2 -0
- package/lib/module/hooks/useDebounceCallback.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +2 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/useProvider.js +2 -0
- package/lib/module/hooks/useProvider.js.map +1 -1
- package/lib/module/hooks/useTimeout.js +2 -0
- package/lib/module/hooks/useTimeout.js.map +1 -1
- package/lib/module/hooks/useWalletInfo.js +2 -0
- package/lib/module/hooks/useWalletInfo.js.map +1 -1
- package/lib/module/index.js +9 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/modal/w3m-account-button/index.js +24 -22
- package/lib/module/modal/w3m-account-button/index.js.map +1 -1
- package/lib/module/modal/w3m-button/index.js +7 -4
- package/lib/module/modal/w3m-button/index.js.map +1 -1
- package/lib/module/modal/w3m-connect-button/index.js +15 -10
- package/lib/module/modal/w3m-connect-button/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +37 -81
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/styles.js +2 -0
- package/lib/module/modal/w3m-modal/styles.js.map +1 -1
- package/lib/module/modal/w3m-network-button/index.js +26 -15
- package/lib/module/modal/w3m-network-button/index.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +6 -30
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/index.js +86 -71
- package/lib/module/partials/w3m-account-activity/index.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/styles.js +2 -0
- package/lib/module/partials/w3m-account-activity/styles.js.map +1 -1
- package/lib/module/partials/w3m-account-activity/utils.js +2 -0
- package/lib/module/partials/w3m-account-activity/utils.js.map +1 -1
- package/lib/module/partials/w3m-account-tokens/index.js +60 -40
- package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +83 -71
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/styles.js +2 -0
- package/lib/module/partials/w3m-account-wallet-features/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js +31 -26
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +2 -0
- package/lib/module/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +29 -26
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/styles.js +2 -0
- package/lib/module/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-body/index.js +16 -10
- package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-body/utils.js +2 -0
- package/lib/module/partials/w3m-connecting-body/utils.js.map +1 -1
- package/lib/module/partials/w3m-connecting-header/index.js +11 -7
- package/lib/module/partials/w3m-connecting-header/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/components/StoreLink.js +19 -13
- package/lib/module/partials/w3m-connecting-mobile/components/StoreLink.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +51 -43
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/styles.js +2 -0
- package/lib/module/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +30 -22
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/styles.js +2 -0
- package/lib/module/partials/w3m-connecting-qrcode/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +42 -34
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/styles.js +2 -0
- package/lib/module/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +27 -39
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/partials/w3m-header/styles.js +2 -0
- package/lib/module/partials/w3m-header/styles.js.map +1 -1
- package/lib/module/partials/w3m-information-modal/index.js +31 -23
- package/lib/module/partials/w3m-information-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-information-modal/styles.js +2 -0
- package/lib/module/partials/w3m-information-modal/styles.js.map +1 -1
- package/lib/module/partials/w3m-otp-code/index.js +47 -35
- package/lib/module/partials/w3m-otp-code/index.js.map +1 -1
- package/lib/module/partials/w3m-otp-code/styles.js +2 -0
- package/lib/module/partials/w3m-otp-code/styles.js.map +1 -1
- package/lib/module/partials/w3m-placeholder/index.js +29 -22
- package/lib/module/partials/w3m-placeholder/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +71 -59
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/styles.js +2 -0
- package/lib/module/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/module/partials/w3m-send-input-address/index.js +30 -36
- package/lib/module/partials/w3m-send-input-address/index.js.map +1 -1
- package/lib/module/partials/w3m-send-input-address/styles.js +2 -0
- package/lib/module/partials/w3m-send-input-address/styles.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/index.js +75 -62
- package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/styles.js +5 -0
- package/lib/module/partials/w3m-send-input-token/styles.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/utils.js +4 -2
- package/lib/module/partials/w3m-send-input-token/utils.js.map +1 -1
- package/lib/module/partials/w3m-snackbar/index.js +12 -13
- package/lib/module/partials/w3m-snackbar/index.js.map +1 -1
- package/lib/module/partials/w3m-snackbar/styles.js +2 -0
- package/lib/module/partials/w3m-snackbar/styles.js.map +1 -1
- package/lib/module/partials/w3m-swap-details/index.js +132 -104
- package/lib/module/partials/w3m-swap-details/index.js.map +1 -1
- package/lib/module/partials/w3m-swap-details/styles.js +2 -0
- package/lib/module/partials/w3m-swap-details/styles.js.map +1 -1
- package/lib/module/partials/w3m-swap-details/utils.js +2 -0
- package/lib/module/partials/w3m-swap-details/utils.js.map +1 -1
- package/lib/module/partials/w3m-swap-input/index.js +99 -68
- package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
- package/lib/module/partials/w3m-swap-input/styles.js +5 -0
- package/lib/module/partials/w3m-swap-input/styles.js.map +1 -1
- package/lib/module/utils/HelpersUtil.js +2 -0
- package/lib/module/utils/HelpersUtil.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +8 -8
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/UiUtil.js +9 -4
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js +24 -26
- package/lib/module/views/w3m-account-default-view/components/auth-buttons.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/components/upgrade-wallet-button.js +29 -22
- package/lib/module/views/w3m-account-default-view/components/upgrade-wallet-button.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +217 -182
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/styles.js +2 -0
- package/lib/module/views/w3m-account-default-view/styles.js.map +1 -1
- package/lib/module/views/w3m-account-view/index.js +59 -51
- package/lib/module/views/w3m-account-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-view/styles.js +2 -5
- package/lib/module/views/w3m-account-view/styles.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +30 -24
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/styles.js +2 -0
- package/lib/module/views/w3m-all-wallets-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connect-socials-view/index.js +23 -24
- package/lib/module/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-socials-view/styles.js +2 -0
- package/lib/module/views/w3m-connect-socials-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js +13 -10
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallets-button.js +5 -6
- package/lib/module/views/w3m-connect-view/components/all-wallets-button.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js +11 -8
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js +7 -6
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/social-login-list.js +47 -38
- package/lib/module/views/w3m-connect-view/components/social-login-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +70 -96
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/styles.js +2 -0
- package/lib/module/views/w3m-connect-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connect-view/utils.js +2 -0
- package/lib/module/views/w3m-connect-view/utils.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +65 -56
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/styles.js +2 -0
- package/lib/module/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-siwe-view/index.js +145 -0
- package/lib/module/views/w3m-connecting-siwe-view/index.js.map +1 -0
- package/lib/module/views/w3m-connecting-siwe-view/styles.js +31 -0
- package/lib/module/views/w3m-connecting-siwe-view/styles.js.map +1 -0
- package/lib/module/views/w3m-connecting-social-view/index.js +68 -83
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/styles.js +2 -0
- package/lib/module/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js +17 -31
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js +17 -13
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/styles.js +2 -0
- package/lib/module/views/w3m-get-wallet-view/styles.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/index.js +67 -54
- package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/styles.js +2 -0
- package/lib/module/views/w3m-network-switch-view/styles.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +68 -50
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-networks-view/styles.js +2 -0
- package/lib/module/views/w3m-networks-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-checkout-view/index.js +190 -142
- package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +47 -39
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js +2 -0
- package/lib/module/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +38 -29
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +84 -64
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/styles.js +2 -0
- package/lib/module/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/utils.js +2 -0
- package/lib/module/views/w3m-onramp-settings-view/utils.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/index.js +98 -75
- package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/styles.js +2 -0
- package/lib/module/views/w3m-onramp-transaction-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Currency.js +44 -32
- package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js +72 -59
- package/lib/module/views/w3m-onramp-view/components/CurrencyInput.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Header.js +25 -21
- package/lib/module/views/w3m-onramp-view/components/Header.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js +54 -43
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js +116 -0
- package/lib/module/views/w3m-onramp-view/components/PaymentButton.js.map +1 -0
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js +40 -33
- package/lib/module/views/w3m-onramp-view/components/PaymentMethod.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Quote.js +51 -38
- package/lib/module/views/w3m-onramp-view/components/Quote.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js +108 -110
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js +121 -126
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/styles.js +6 -0
- package/lib/module/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/utils.js +20 -77
- package/lib/module/views/w3m-onramp-view/utils.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/index.js +92 -71
- package/lib/module/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/styles.js +2 -0
- package/lib/module/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +140 -0
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -0
- package/lib/module/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/styles.js +14 -3
- package/lib/module/views/w3m-swap-view/components/select-token-view/styles.js.map +1 -0
- package/lib/module/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/utils.js +9 -4
- package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +1 -0
- package/lib/module/views/w3m-swap-view/index.js +91 -74
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/styles.js +6 -0
- package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/module/views/w3m-transactions-view/index.js +4 -1
- package/lib/module/views/w3m-transactions-view/index.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/index.js +45 -46
- package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/styles.js +2 -0
- package/lib/module/views/w3m-unsupported-chain-view/styles.js.map +1 -1
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +22 -21
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +36 -26
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-compatible-networks-view/styles.js +2 -0
- package/lib/module/views/w3m-wallet-compatible-networks-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-receive-view/index.js +50 -45
- package/lib/module/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-receive-view/styles.js +2 -0
- package/lib/module/views/w3m-wallet-receive-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js +44 -41
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-pill.js +11 -6
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-pill.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/index.js +99 -82
- package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/styles.js +2 -0
- package/lib/module/views/w3m-wallet-send-preview-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +46 -43
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/styles.js +2 -0
- package/lib/module/views/w3m-wallet-send-select-token-view/styles.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +56 -58
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/styles.js +2 -0
- package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-network-view/index.js +57 -45
- package/lib/module/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-network-view/styles.js +2 -0
- package/lib/module/views/w3m-what-is-a-network-view/styles.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js +78 -63
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/styles.js +2 -0
- package/lib/module/views/w3m-what-is-a-wallet-view/styles.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +14 -8
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/AppKitContext.d.ts +3 -2
- package/lib/typescript/AppKitContext.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts +3 -3
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/hooks/useAccount.d.ts +1 -0
- package/lib/typescript/hooks/useAccount.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +1 -10
- package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +5 -7
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-account-button/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-network-button/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-activity/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-tokens/index.d.ts +2 -1
- package/lib/typescript/partials/w3m-account-tokens/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts +2 -2
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-selector-modal/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-send-input-address/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-send-input-token/index.d.ts +2 -2
- package/lib/typescript/partials/w3m-send-input-token/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-send-input-token/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-send-input-token/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts +2 -1
- package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-swap-input/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-swap-input/styles.d.ts.map +1 -1
- package/lib/typescript/utils/HelpersUtil.d.ts +1 -1
- package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +3 -2
- package/lib/typescript/utils/NetworkUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +3 -4
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-default-view/components/auth-buttons.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-view/styles.d.ts +0 -5
- package/lib/typescript/views/w3m-account-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-socials-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts +1 -2
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallets-button.d.ts +1 -2
- package/lib/typescript/views/w3m-connect-view/components/all-wallets-button.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts +1 -2
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts +1 -2
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/social-login-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts +2 -0
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts.map +1 -0
- package/lib/typescript/views/{w3m-upgrade-to-smart-account-view → w3m-connecting-siwe-view}/styles.d.ts +11 -11
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts.map +1 -0
- package/lib/typescript/views/w3m-connecting-social-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-checkout-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-transaction-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/CurrencyInput.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Header.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentButton.d.ts +13 -0
- package/lib/typescript/views/w3m-onramp-view/components/PaymentButton.d.ts.map +1 -0
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/PaymentMethod.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts +2 -1
- package/lib/typescript/views/w3m-onramp-view/components/Quote.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/SelectPaymentModal.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/styles.d.ts +4 -0
- package/lib/typescript/views/w3m-onramp-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts +2 -2
- package/lib/typescript/views/w3m-onramp-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts +8 -0
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -0
- package/lib/typescript/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/styles.d.ts +11 -2
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/styles.d.ts.map +1 -0
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts +7 -0
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +1 -0
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/styles.d.ts +4 -0
- package/lib/typescript/views/w3m-swap-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-unsupported-chain-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-upgrade-email-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-compatible-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-receive-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts +3 -3
- package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-preview-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/index.d.ts.map +1 -1
- package/package.json +15 -26
- package/src/AppKit.ts +317 -90
- package/src/AppKitContext.tsx +2 -1
- package/src/connectors/WalletConnectConnector.ts +107 -12
- package/src/hooks/useAccount.ts +2 -1
- package/src/index.ts +6 -11
- package/src/modal/w3m-account-button/index.tsx +9 -12
- package/src/modal/w3m-button/index.tsx +2 -2
- package/src/modal/w3m-modal/index.tsx +13 -72
- package/src/modal/w3m-network-button/index.tsx +10 -6
- package/src/modal/w3m-router/index.tsx +2 -29
- package/src/partials/w3m-account-activity/index.tsx +18 -8
- package/src/partials/w3m-account-tokens/index.tsx +38 -30
- package/src/partials/w3m-account-wallet-features/index.tsx +26 -28
- package/src/partials/w3m-connecting-qrcode/index.tsx +3 -4
- package/src/partials/w3m-header/index.tsx +6 -31
- package/src/partials/w3m-selector-modal/index.tsx +3 -2
- package/src/partials/w3m-send-input-address/index.tsx +4 -15
- package/src/partials/w3m-send-input-token/index.tsx +18 -20
- package/src/partials/w3m-send-input-token/styles.ts +3 -0
- package/src/partials/w3m-send-input-token/utils.ts +2 -2
- package/src/partials/w3m-snackbar/index.tsx +8 -14
- package/src/partials/w3m-swap-input/index.tsx +38 -27
- package/src/partials/w3m-swap-input/styles.ts +3 -0
- package/src/utils/HelpersUtil.ts +6 -5
- package/src/utils/NetworkUtil.ts +19 -12
- package/src/utils/UiUtil.ts +10 -8
- package/src/views/w3m-account-default-view/components/auth-buttons.tsx +4 -15
- package/src/views/w3m-account-default-view/index.tsx +73 -58
- package/src/views/w3m-account-view/index.tsx +26 -33
- package/src/views/w3m-account-view/styles.ts +0 -5
- package/src/views/w3m-all-wallets-view/index.tsx +6 -4
- package/src/views/w3m-connect-socials-view/index.tsx +3 -14
- package/src/views/w3m-connect-view/components/all-wallet-list.tsx +2 -3
- package/src/views/w3m-connect-view/components/all-wallets-button.tsx +1 -6
- package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +7 -5
- package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +2 -3
- package/src/views/w3m-connect-view/components/social-login-list.tsx +13 -17
- package/src/views/w3m-connect-view/index.tsx +23 -62
- package/src/views/w3m-connecting-external-view/index.tsx +24 -31
- package/src/views/w3m-connecting-siwe-view/index.tsx +132 -0
- package/src/views/w3m-connecting-siwe-view/styles.ts +29 -0
- package/src/views/w3m-connecting-social-view/index.tsx +44 -96
- package/src/views/w3m-connecting-view/index.tsx +5 -28
- package/src/views/w3m-network-switch-view/index.tsx +16 -26
- package/src/views/w3m-networks-view/index.tsx +23 -12
- package/src/views/w3m-onramp-checkout-view/index.tsx +3 -2
- package/src/views/w3m-onramp-transaction-view/index.tsx +3 -4
- package/src/views/w3m-onramp-view/components/Currency.tsx +3 -4
- package/src/views/w3m-onramp-view/components/CurrencyInput.tsx +33 -28
- package/src/views/w3m-onramp-view/components/Header.tsx +1 -2
- package/src/views/w3m-onramp-view/components/LoadingView.tsx +2 -2
- package/src/views/w3m-onramp-view/components/PaymentButton.tsx +137 -0
- package/src/views/w3m-onramp-view/components/PaymentMethod.tsx +9 -8
- package/src/views/w3m-onramp-view/components/Quote.tsx +5 -2
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +61 -76
- package/src/views/w3m-onramp-view/index.tsx +42 -70
- package/src/views/w3m-onramp-view/styles.ts +4 -0
- package/src/views/w3m-onramp-view/utils.ts +22 -92
- package/src/views/w3m-swap-preview-view/index.tsx +1 -0
- package/src/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/index.tsx +43 -14
- package/src/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/styles.ts +12 -3
- package/src/views/{w3m-swap-select-token-view → w3m-swap-view/components/select-token-view}/utils.ts +13 -8
- package/src/views/w3m-swap-view/index.tsx +80 -68
- package/src/views/w3m-swap-view/styles.ts +4 -0
- package/src/views/w3m-unsupported-chain-view/index.tsx +11 -28
- package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -7
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +12 -9
- package/src/views/w3m-wallet-receive-view/index.tsx +23 -18
- package/src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx +7 -14
- package/src/views/w3m-wallet-send-preview-view/index.tsx +6 -13
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +9 -12
- package/src/views/w3m-wallet-send-view/index.tsx +21 -24
- package/lib/commonjs/client.js +0 -247
- package/lib/commonjs/client.js.map +0 -1
- package/lib/commonjs/views/w3m-connect-view/components/connect-email-input.js +0 -73
- package/lib/commonjs/views/w3m-connect-view/components/connect-email-input.js.map +0 -1
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js +0 -40
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js.map +0 -1
- package/lib/commonjs/views/w3m-connect-view/components/wallet-guide.js +0 -55
- package/lib/commonjs/views/w3m-connect-view/components/wallet-guide.js.map +0 -1
- package/lib/commonjs/views/w3m-connecting-farcaster-view/index.js +0 -124
- package/lib/commonjs/views/w3m-connecting-farcaster-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-connecting-farcaster-view/styles.js +0 -24
- package/lib/commonjs/views/w3m-connecting-farcaster-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-create-view/index.js +0 -57
- package/lib/commonjs/views/w3m-create-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-email-verify-device-view/index.js +0 -106
- package/lib/commonjs/views/w3m-email-verify-device-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-email-verify-device-view/styles.js +0 -25
- package/lib/commonjs/views/w3m-email-verify-device-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-email-verify-otp-view/index.js +0 -86
- package/lib/commonjs/views/w3m-email-verify-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-select-token-view/index.js +0 -118
- package/lib/commonjs/views/w3m-swap-select-token-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-select-token-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-select-token-view/utils.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js +0 -56
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js +0 -62
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js +0 -104
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js +0 -30
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/index.js +0 -103
- package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-upgrade-to-smart-account-view/styles.js.map +0 -1
- package/lib/module/client.js +0 -241
- package/lib/module/client.js.map +0 -1
- package/lib/module/views/w3m-connect-view/components/connect-email-input.js +0 -67
- package/lib/module/views/w3m-connect-view/components/connect-email-input.js.map +0 -1
- package/lib/module/views/w3m-connect-view/components/connectors-list.js +0 -34
- package/lib/module/views/w3m-connect-view/components/connectors-list.js.map +0 -1
- package/lib/module/views/w3m-connect-view/components/wallet-guide.js +0 -49
- package/lib/module/views/w3m-connect-view/components/wallet-guide.js.map +0 -1
- package/lib/module/views/w3m-connecting-farcaster-view/index.js +0 -117
- package/lib/module/views/w3m-connecting-farcaster-view/index.js.map +0 -1
- package/lib/module/views/w3m-connecting-farcaster-view/styles.js +0 -18
- package/lib/module/views/w3m-connecting-farcaster-view/styles.js.map +0 -1
- package/lib/module/views/w3m-create-view/index.js +0 -51
- package/lib/module/views/w3m-create-view/index.js.map +0 -1
- package/lib/module/views/w3m-email-verify-device-view/index.js +0 -99
- package/lib/module/views/w3m-email-verify-device-view/index.js.map +0 -1
- package/lib/module/views/w3m-email-verify-device-view/styles.js +0 -19
- package/lib/module/views/w3m-email-verify-device-view/styles.js.map +0 -1
- package/lib/module/views/w3m-email-verify-otp-view/index.js +0 -79
- package/lib/module/views/w3m-email-verify-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-swap-select-token-view/index.js +0 -111
- package/lib/module/views/w3m-swap-select-token-view/index.js.map +0 -1
- package/lib/module/views/w3m-swap-select-token-view/styles.js.map +0 -1
- package/lib/module/views/w3m-swap-select-token-view/utils.js.map +0 -1
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js +0 -50
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js +0 -56
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/index.js +0 -97
- package/lib/module/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/styles.js +0 -24
- package/lib/module/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/module/views/w3m-upgrade-to-smart-account-view/index.js +0 -96
- package/lib/module/views/w3m-upgrade-to-smart-account-view/index.js.map +0 -1
- package/lib/module/views/w3m-upgrade-to-smart-account-view/styles.js +0 -29
- package/lib/module/views/w3m-upgrade-to-smart-account-view/styles.js.map +0 -1
- package/lib/typescript/client.d.ts +0 -90
- package/lib/typescript/client.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connect-view/components/connect-email-input.d.ts +0 -6
- package/lib/typescript/views/w3m-connect-view/components/connect-email-input.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts +0 -8
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connect-view/components/wallet-guide.d.ts +0 -5
- package/lib/typescript/views/w3m-connect-view/components/wallet-guide.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connecting-farcaster-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-connecting-farcaster-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connecting-farcaster-view/styles.d.ts +0 -17
- package/lib/typescript/views/w3m-connecting-farcaster-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-create-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-create-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-email-verify-device-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-email-verify-device-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-email-verify-device-view/styles.d.ts +0 -18
- package/lib/typescript/views/w3m-email-verify-device-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-email-verify-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-email-verify-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-select-token-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-swap-select-token-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-select-token-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-select-token-view/utils.d.ts +0 -7
- package/lib/typescript/views/w3m-swap-select-token-view/utils.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts +0 -23
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-upgrade-to-smart-account-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-upgrade-to-smart-account-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-upgrade-to-smart-account-view/styles.d.ts.map +0 -1
- package/src/client.ts +0 -379
- package/src/views/w3m-connect-view/components/connect-email-input.tsx +0 -69
- package/src/views/w3m-connect-view/components/connectors-list.tsx +0 -45
- package/src/views/w3m-connect-view/components/wallet-guide.tsx +0 -50
- package/src/views/w3m-connecting-farcaster-view/index.tsx +0 -140
- package/src/views/w3m-connecting-farcaster-view/styles.ts +0 -18
- package/src/views/w3m-create-view/index.tsx +0 -35
- package/src/views/w3m-email-verify-device-view/index.tsx +0 -80
- package/src/views/w3m-email-verify-device-view/styles.ts +0 -19
- package/src/views/w3m-email-verify-otp-view/index.tsx +0 -75
- package/src/views/w3m-update-email-primary-otp-view/index.tsx +0 -55
- package/src/views/w3m-update-email-secondary-otp-view/index.tsx +0 -56
- package/src/views/w3m-update-email-wallet-view/index.tsx +0 -96
- package/src/views/w3m-update-email-wallet-view/styles.ts +0 -24
- package/src/views/w3m-upgrade-to-smart-account-view/index.tsx +0 -106
- package/src/views/w3m-upgrade-to-smart-account-view/styles.ts +0 -29
|
@@ -8,8 +8,7 @@ import {
|
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
import { useSnapshot } from 'valtio';
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
AssetUtil,
|
|
11
|
+
AssetController,
|
|
13
12
|
ConnectionsController,
|
|
14
13
|
RouterController
|
|
15
14
|
} from '@reown/appkit-core-react-native';
|
|
@@ -19,23 +18,25 @@ import {
|
|
|
19
18
|
Text,
|
|
20
19
|
ListToken,
|
|
21
20
|
useTheme,
|
|
22
|
-
Spacing
|
|
21
|
+
Spacing,
|
|
22
|
+
LoadingSpinner
|
|
23
23
|
} from '@reown/appkit-ui-react-native';
|
|
24
24
|
|
|
25
25
|
interface Props {
|
|
26
26
|
style?: StyleProp<ViewStyle>;
|
|
27
|
+
isLoading?: boolean;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
export function AccountTokens({ style }: Props) {
|
|
30
|
+
export function AccountTokens({ style, isLoading }: Props) {
|
|
30
31
|
const Theme = useTheme();
|
|
31
32
|
const [refreshing, setRefreshing] = useState(false);
|
|
32
|
-
const {
|
|
33
|
-
const {
|
|
34
|
-
const networkImage =
|
|
33
|
+
const { activeNetwork, balances } = useSnapshot(ConnectionsController.state);
|
|
34
|
+
const { networkImages } = useSnapshot(AssetController.state);
|
|
35
|
+
const networkImage = activeNetwork ? networkImages[activeNetwork.id] : undefined;
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
+
const getBalance = useCallback(async () => {
|
|
37
38
|
setRefreshing(true);
|
|
38
|
-
|
|
39
|
+
await ConnectionsController.fetchBalance();
|
|
39
40
|
setRefreshing(false);
|
|
40
41
|
}, []);
|
|
41
42
|
|
|
@@ -43,23 +44,26 @@ export function AccountTokens({ style }: Props) {
|
|
|
43
44
|
RouterController.push('WalletReceive');
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
if (!
|
|
47
|
+
if (!balances?.length) {
|
|
47
48
|
return (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
<>
|
|
50
|
+
<ListItem
|
|
51
|
+
icon="arrowBottomCircle"
|
|
52
|
+
iconColor="magenta-100"
|
|
53
|
+
onPress={onReceivePress}
|
|
54
|
+
style={styles.receiveButton}
|
|
55
|
+
>
|
|
56
|
+
<FlexView flexDirection="column" alignItems="flex-start">
|
|
57
|
+
<Text variant="paragraph-500" color="fg-100">
|
|
58
|
+
Receive funds
|
|
59
|
+
</Text>
|
|
60
|
+
<Text variant="small-400" color="fg-200">
|
|
61
|
+
Transfer tokens on your wallet
|
|
62
|
+
</Text>
|
|
63
|
+
</FlexView>
|
|
64
|
+
</ListItem>
|
|
65
|
+
{isLoading && <LoadingSpinner size="sm" style={styles.loadingSpinner} />}
|
|
66
|
+
</>
|
|
63
67
|
);
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -70,24 +74,25 @@ export function AccountTokens({ style }: Props) {
|
|
|
70
74
|
refreshControl={
|
|
71
75
|
<RefreshControl
|
|
72
76
|
refreshing={refreshing}
|
|
73
|
-
onRefresh={
|
|
77
|
+
onRefresh={getBalance}
|
|
74
78
|
tintColor={Theme['accent-100']}
|
|
75
79
|
colors={[Theme['accent-100']]}
|
|
76
80
|
/>
|
|
77
81
|
}
|
|
78
82
|
>
|
|
79
|
-
{
|
|
83
|
+
{balances.map(token => (
|
|
80
84
|
<ListToken
|
|
81
|
-
key={token.
|
|
82
|
-
name={token.name}
|
|
85
|
+
key={token.symbol}
|
|
86
|
+
name={token.name || 'Unknown'}
|
|
83
87
|
imageSrc={token.iconUrl}
|
|
84
88
|
networkSrc={networkImage}
|
|
85
89
|
value={token.value}
|
|
86
|
-
amount={token.quantity
|
|
90
|
+
amount={token.quantity?.numeric}
|
|
87
91
|
currency={token.symbol}
|
|
88
92
|
pressable={false}
|
|
89
93
|
/>
|
|
90
94
|
))}
|
|
95
|
+
{isLoading && <LoadingSpinner size="sm" style={styles.loadingSpinner} />}
|
|
91
96
|
</ScrollView>
|
|
92
97
|
);
|
|
93
98
|
}
|
|
@@ -96,5 +101,8 @@ const styles = StyleSheet.create({
|
|
|
96
101
|
receiveButton: {
|
|
97
102
|
width: 'auto',
|
|
98
103
|
marginHorizontal: Spacing.s
|
|
104
|
+
},
|
|
105
|
+
loadingSpinner: {
|
|
106
|
+
marginTop: Spacing.m
|
|
99
107
|
}
|
|
100
108
|
});
|
|
@@ -2,7 +2,6 @@ import { useState } from 'react';
|
|
|
2
2
|
import { useSnapshot } from 'valtio';
|
|
3
3
|
import { Balance, FlexView, IconLink, Tabs } from '@reown/appkit-ui-react-native';
|
|
4
4
|
import {
|
|
5
|
-
AccountController,
|
|
6
5
|
ConnectionsController,
|
|
7
6
|
ConstantsUtil,
|
|
8
7
|
CoreHelperUtil,
|
|
@@ -18,15 +17,18 @@ import { AccountTokens } from '../w3m-account-tokens';
|
|
|
18
17
|
import styles from './styles';
|
|
19
18
|
|
|
20
19
|
export interface AccountWalletFeaturesProps {
|
|
21
|
-
|
|
20
|
+
isBalanceLoading: boolean;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
export function AccountWalletFeatures() {
|
|
23
|
+
export function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeaturesProps) {
|
|
25
24
|
const [activeTab, setActiveTab] = useState(0);
|
|
26
|
-
const { tokenBalance } = useSnapshot(AccountController.state);
|
|
27
25
|
const { features, isOnRampEnabled } = useSnapshot(OptionsController.state);
|
|
28
|
-
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
29
|
-
const balance = CoreHelperUtil.calculateAndFormatBalance(
|
|
26
|
+
const { activeNetwork, balances, activeNamespace } = useSnapshot(ConnectionsController.state);
|
|
27
|
+
const balance = CoreHelperUtil.calculateAndFormatBalance(balances as BalanceType[]);
|
|
28
|
+
const network = ConnectionsController.state.activeNetwork?.caipNetworkId || '';
|
|
29
|
+
const isSmartAccount = ConnectionsController.state.accountType === 'smartAccount';
|
|
30
|
+
const showSend =
|
|
31
|
+
activeNamespace && ConstantsUtil.SEND_SUPPORTED_NAMESPACES.includes(activeNamespace);
|
|
30
32
|
const isSwapsEnabled =
|
|
31
33
|
features?.swaps &&
|
|
32
34
|
activeNetwork?.caipNetworkId &&
|
|
@@ -43,9 +45,7 @@ export function AccountWalletFeatures() {
|
|
|
43
45
|
EventsController.sendEvent({
|
|
44
46
|
type: 'track',
|
|
45
47
|
event: 'CLICK_TRANSACTIONS',
|
|
46
|
-
properties: {
|
|
47
|
-
isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
|
|
48
|
-
}
|
|
48
|
+
properties: { isSmartAccount }
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -54,10 +54,7 @@ export function AccountWalletFeatures() {
|
|
|
54
54
|
EventsController.sendEvent({
|
|
55
55
|
type: 'track',
|
|
56
56
|
event: 'OPEN_SWAP',
|
|
57
|
-
properties: {
|
|
58
|
-
network: ConnectionsController.state.activeNetwork?.caipNetworkId || '',
|
|
59
|
-
isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
|
|
60
|
-
}
|
|
57
|
+
properties: { network, isSmartAccount }
|
|
61
58
|
});
|
|
62
59
|
RouterController.push('Swap');
|
|
63
60
|
};
|
|
@@ -66,10 +63,7 @@ export function AccountWalletFeatures() {
|
|
|
66
63
|
EventsController.sendEvent({
|
|
67
64
|
type: 'track',
|
|
68
65
|
event: 'OPEN_SEND',
|
|
69
|
-
properties: {
|
|
70
|
-
network: ConnectionsController.state.activeNetwork?.caipNetworkId || '',
|
|
71
|
-
isSmartAccount: AccountController.state.preferredAccountType === 'smartAccount'
|
|
72
|
-
}
|
|
66
|
+
properties: { network, isSmartAccount }
|
|
73
67
|
});
|
|
74
68
|
RouterController.push('WalletSend');
|
|
75
69
|
};
|
|
@@ -130,22 +124,26 @@ export function AccountWalletFeatures() {
|
|
|
130
124
|
style={[styles.action, isSwapsEnabled ? styles.actionCenter : styles.actionLeft]}
|
|
131
125
|
onPress={onReceivePress}
|
|
132
126
|
/>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
127
|
+
{showSend && (
|
|
128
|
+
<IconLink
|
|
129
|
+
icon="paperplane"
|
|
130
|
+
size="lg"
|
|
131
|
+
iconColor="accent-100"
|
|
132
|
+
background
|
|
133
|
+
backgroundColor="accent-glass-010"
|
|
134
|
+
pressedColor="accent-glass-020"
|
|
135
|
+
style={[styles.action, styles.actionRight]}
|
|
136
|
+
onPress={onSendPress}
|
|
137
|
+
/>
|
|
138
|
+
)}
|
|
143
139
|
</FlexView>
|
|
144
140
|
<FlexView style={styles.tab}>
|
|
145
141
|
<Tabs tabs={['Tokens', 'Activity']} onTabChange={onTabChange} />
|
|
146
142
|
</FlexView>
|
|
147
143
|
<FlexView padding={['m', '0', '0', '0']} style={styles.tabContainer}>
|
|
148
|
-
{activeTab === 0 &&
|
|
144
|
+
{activeTab === 0 && (
|
|
145
|
+
<AccountTokens style={styles.tabContent} isLoading={isBalanceLoading} />
|
|
146
|
+
)}
|
|
149
147
|
{activeTab === 1 && <AccountActivity style={styles.tabContent} />}
|
|
150
148
|
</FlexView>
|
|
151
149
|
</FlexView>
|
|
@@ -3,12 +3,12 @@ import { useSnapshot } from 'valtio';
|
|
|
3
3
|
import {
|
|
4
4
|
AssetUtil,
|
|
5
5
|
ConnectionController,
|
|
6
|
-
ConnectorController,
|
|
7
6
|
EventsController,
|
|
8
7
|
OptionsController,
|
|
9
8
|
SnackController
|
|
10
9
|
} from '@reown/appkit-core-react-native';
|
|
11
10
|
import { FlexView, Link, QrCode, Text, Spacing } from '@reown/appkit-ui-react-native';
|
|
11
|
+
import { ConstantsUtil } from '@reown/appkit-common-react-native';
|
|
12
12
|
import { useCustomDimensions } from '../../hooks/useCustomDimensions';
|
|
13
13
|
import styles from './styles';
|
|
14
14
|
|
|
@@ -37,9 +37,8 @@ export function ConnectingQrCode() {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
const url = AssetUtil.getConnectorImage(connector);
|
|
40
|
+
//TODO: check this
|
|
41
|
+
const url = AssetUtil.getConnectorImage(ConstantsUtil.WALLET_CONNECT_IMAGE_ID);
|
|
43
42
|
ConnectionController.setConnectedWalletImageUrl(url);
|
|
44
43
|
};
|
|
45
44
|
|
|
@@ -3,10 +3,7 @@ import {
|
|
|
3
3
|
RouterController,
|
|
4
4
|
ModalController,
|
|
5
5
|
EventsController,
|
|
6
|
-
type RouterControllerState
|
|
7
|
-
ConnectionController,
|
|
8
|
-
ConnectorController,
|
|
9
|
-
type AppKitFrameProvider
|
|
6
|
+
type RouterControllerState
|
|
10
7
|
} from '@reown/appkit-core-react-native';
|
|
11
8
|
import { IconLink, Text, FlexView } from '@reown/appkit-ui-react-native';
|
|
12
9
|
import { StringUtil } from '@reown/appkit-common-react-native';
|
|
@@ -21,11 +18,10 @@ export function Header() {
|
|
|
21
18
|
};
|
|
22
19
|
|
|
23
20
|
const headings = (_data: RouterControllerState['data'], _view: RouterControllerState['view']) => {
|
|
24
|
-
const connectorName = _data?.connector?.name;
|
|
25
21
|
const walletName = _data?.wallet?.name;
|
|
26
22
|
const networkName = _data?.network?.name;
|
|
27
|
-
const socialName =
|
|
28
|
-
? StringUtil.capitalize(
|
|
23
|
+
const socialName = _data?.socialProvider
|
|
24
|
+
? StringUtil.capitalize(_data?.socialProvider)
|
|
29
25
|
: undefined;
|
|
30
26
|
|
|
31
27
|
return {
|
|
@@ -34,14 +30,10 @@ export function Header() {
|
|
|
34
30
|
AllWallets: 'All wallets',
|
|
35
31
|
Connect: 'Connect wallet',
|
|
36
32
|
ConnectSocials: 'All socials',
|
|
37
|
-
ConnectingExternal:
|
|
33
|
+
ConnectingExternal: walletName ?? 'Connect wallet',
|
|
38
34
|
ConnectingSiwe: undefined,
|
|
39
|
-
ConnectingFarcaster: socialName ?? 'Connecting Social',
|
|
40
35
|
ConnectingSocial: socialName ?? 'Connecting Social',
|
|
41
36
|
ConnectingWalletConnect: walletName ?? 'WalletConnect',
|
|
42
|
-
Create: 'Create wallet',
|
|
43
|
-
EmailVerifyDevice: ' ',
|
|
44
|
-
EmailVerifyOtp: 'Confirm email',
|
|
45
37
|
GetWallet: 'Get a wallet',
|
|
46
38
|
Networks: 'Select network',
|
|
47
39
|
OnRamp: undefined,
|
|
@@ -51,15 +43,10 @@ export function Header() {
|
|
|
51
43
|
OnRampTransaction: ' ',
|
|
52
44
|
SwitchNetwork: networkName ?? 'Switch network',
|
|
53
45
|
Swap: 'Swap',
|
|
54
|
-
SwapSelectToken: 'Select token',
|
|
55
46
|
SwapPreview: 'Review swap',
|
|
56
47
|
Transactions: 'Activity',
|
|
57
48
|
UnsupportedChain: 'Switch network',
|
|
58
|
-
UpdateEmailPrimaryOtp: 'Confirm current email',
|
|
59
|
-
UpdateEmailSecondaryOtp: 'Confirm new email',
|
|
60
|
-
UpdateEmailWallet: 'Edit email',
|
|
61
49
|
UpgradeEmailWallet: 'Upgrade wallet',
|
|
62
|
-
UpgradeToSmartAccount: undefined,
|
|
63
50
|
WalletCompatibleNetworks: 'Compatible networks',
|
|
64
51
|
WalletReceive: 'Receive',
|
|
65
52
|
WalletSend: 'Send',
|
|
@@ -75,23 +62,11 @@ export function Header() {
|
|
|
75
62
|
const header = headings(data, view);
|
|
76
63
|
|
|
77
64
|
const checkSocial = () => {
|
|
78
|
-
if (
|
|
79
|
-
RouterController.state.view === 'ConnectingFarcaster' ||
|
|
80
|
-
RouterController.state.view === 'ConnectingSocial'
|
|
81
|
-
) {
|
|
82
|
-
const socialProvider = ConnectionController.state.selectedSocialProvider;
|
|
83
|
-
const authProvider = ConnectorController.getAuthConnector()?.provider as AppKitFrameProvider;
|
|
84
|
-
|
|
85
|
-
if (authProvider && socialProvider === 'farcaster') {
|
|
86
|
-
// TODO: remove this once Farcaster session refresh is implemented
|
|
87
|
-
// @ts-expect-error
|
|
88
|
-
authProvider.webviewRef?.current?.reload();
|
|
89
|
-
}
|
|
90
|
-
|
|
65
|
+
if (RouterController.state.view === 'ConnectingSocial') {
|
|
91
66
|
EventsController.sendEvent({
|
|
92
67
|
type: 'track',
|
|
93
68
|
event: 'SOCIAL_LOGIN_CANCELED',
|
|
94
|
-
properties: { provider:
|
|
69
|
+
properties: { provider: RouterController.state.data?.socialProvider! }
|
|
95
70
|
});
|
|
96
71
|
}
|
|
97
72
|
};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useTheme
|
|
14
14
|
} from '@reown/appkit-ui-react-native';
|
|
15
15
|
import styles from './styles';
|
|
16
|
-
import {
|
|
16
|
+
import { AssetController, ConnectionsController } from '@reown/appkit-core-react-native';
|
|
17
17
|
|
|
18
18
|
interface SelectorModalProps {
|
|
19
19
|
title?: string;
|
|
@@ -46,7 +46,8 @@ export function SelectorModal({
|
|
|
46
46
|
}: SelectorModalProps) {
|
|
47
47
|
const Theme = useTheme();
|
|
48
48
|
const { activeNetwork } = useSnapshot(ConnectionsController.state);
|
|
49
|
-
const
|
|
49
|
+
const { networkImages } = useSnapshot(AssetController.state);
|
|
50
|
+
const networkImage = activeNetwork ? networkImages[activeNetwork.id] : undefined;
|
|
50
51
|
|
|
51
52
|
const renderSeparator = () => {
|
|
52
53
|
return <View style={{ height: SEPARATOR_HEIGHT }} />;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { TextInput } from 'react-native';
|
|
3
3
|
import { FlexView, useTheme } from '@reown/appkit-ui-react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { SendController } from '@reown/appkit-core-react-native';
|
|
5
5
|
|
|
6
6
|
import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
7
7
|
import styles from './styles';
|
|
@@ -15,20 +15,9 @@ export function SendInputAddress({ value }: SendInputAddressProps) {
|
|
|
15
15
|
const [inputValue, setInputValue] = useState<string | undefined>(value);
|
|
16
16
|
|
|
17
17
|
const onSearch = async (search: string) => {
|
|
18
|
-
SendController.
|
|
19
|
-
|
|
20
|
-
SendController.
|
|
21
|
-
|
|
22
|
-
if (address) {
|
|
23
|
-
SendController.setReceiverProfileName(search);
|
|
24
|
-
SendController.setReceiverAddress(address);
|
|
25
|
-
const avatar = await ConnectionController.getEnsAvatar(search);
|
|
26
|
-
SendController.setReceiverProfileImageUrl(avatar || undefined);
|
|
27
|
-
} else {
|
|
28
|
-
SendController.setReceiverAddress(search);
|
|
29
|
-
SendController.setReceiverProfileName(undefined);
|
|
30
|
-
SendController.setReceiverProfileImageUrl(undefined);
|
|
31
|
-
}
|
|
18
|
+
SendController.setReceiverAddress(search);
|
|
19
|
+
SendController.setReceiverProfileName(undefined);
|
|
20
|
+
SendController.setReceiverProfileImageUrl(undefined);
|
|
32
21
|
};
|
|
33
22
|
|
|
34
23
|
const { debouncedCallback: onDebounceSearch } = useDebounceCallback({
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
2
|
import { TextInput, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
FlexView,
|
|
5
|
+
Link,
|
|
6
|
+
Text,
|
|
7
|
+
useTheme,
|
|
8
|
+
TokenButton,
|
|
9
|
+
Shimmer
|
|
10
|
+
} from '@reown/appkit-ui-react-native';
|
|
4
11
|
import { NumberUtil, type Balance } from '@reown/appkit-common-react-native';
|
|
5
|
-
import {
|
|
12
|
+
import { SendController } from '@reown/appkit-core-react-native';
|
|
6
13
|
|
|
7
14
|
import { getMaxAmount, getSendValue } from './utils';
|
|
8
15
|
import styles from './styles';
|
|
@@ -10,24 +17,24 @@ import styles from './styles';
|
|
|
10
17
|
export interface SendInputTokenProps {
|
|
11
18
|
token?: Balance;
|
|
12
19
|
sendTokenAmount?: number;
|
|
13
|
-
gasPrice?: number;
|
|
14
20
|
style?: StyleProp<ViewStyle>;
|
|
15
21
|
onTokenPress?: () => void;
|
|
22
|
+
loading?: boolean;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
export function SendInputToken({
|
|
19
26
|
token,
|
|
20
27
|
sendTokenAmount,
|
|
21
|
-
gasPrice,
|
|
22
28
|
style,
|
|
23
|
-
onTokenPress
|
|
29
|
+
onTokenPress,
|
|
30
|
+
loading
|
|
24
31
|
}: SendInputTokenProps) {
|
|
25
32
|
const Theme = useTheme();
|
|
26
33
|
const valueInputRef = useRef<TextInput | null>(null);
|
|
27
34
|
const [inputValue, setInputValue] = useState<string | undefined>(sendTokenAmount?.toString());
|
|
28
35
|
const sendValue = getSendValue(token, sendTokenAmount);
|
|
29
36
|
const maxAmount = getMaxAmount(token);
|
|
30
|
-
const maxError = token && sendTokenAmount && sendTokenAmount > Number(token
|
|
37
|
+
const maxError = token && sendTokenAmount && sendTokenAmount > Number(token?.quantity?.numeric);
|
|
31
38
|
|
|
32
39
|
const onInputChange = (value: string) => {
|
|
33
40
|
const formattedValue = value.replace(/,/g, '.');
|
|
@@ -39,26 +46,17 @@ export function SendInputToken({
|
|
|
39
46
|
};
|
|
40
47
|
|
|
41
48
|
const onMaxPress = () => {
|
|
42
|
-
if (token
|
|
43
|
-
const
|
|
44
|
-
token.address === undefined ||
|
|
45
|
-
Object.values(ConstantsUtil.NATIVE_TOKEN_ADDRESS).some(
|
|
46
|
-
nativeAddress => token?.address?.split(':')[2] === nativeAddress
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
const numericGas = NumberUtil.bigNumber(gasPrice).shiftedBy(-token.quantity.decimals);
|
|
50
|
-
|
|
51
|
-
const maxValue = isNetworkToken
|
|
52
|
-
? NumberUtil.bigNumber(token.quantity.numeric).minus(numericGas)
|
|
53
|
-
: NumberUtil.bigNumber(token.quantity.numeric);
|
|
54
|
-
|
|
49
|
+
if (token?.quantity?.numeric) {
|
|
50
|
+
const maxValue = NumberUtil.bigNumber(token.quantity.numeric);
|
|
55
51
|
SendController.setTokenAmount(Number(maxValue.toFixed(20)));
|
|
56
52
|
setInputValue(maxValue.toFixed(20));
|
|
57
53
|
valueInputRef.current?.blur();
|
|
58
54
|
}
|
|
59
55
|
};
|
|
60
56
|
|
|
61
|
-
return (
|
|
57
|
+
return loading ? (
|
|
58
|
+
<Shimmer width="100%" height={100} borderRadius={16} style={styles.inputLoading} />
|
|
59
|
+
) : (
|
|
62
60
|
<FlexView
|
|
63
61
|
style={[
|
|
64
62
|
styles.container,
|
|
@@ -2,7 +2,7 @@ import { type Balance, NumberUtil } from '@reown/appkit-common-react-native';
|
|
|
2
2
|
import { UiUtil } from '@reown/appkit-ui-react-native';
|
|
3
3
|
|
|
4
4
|
export function getSendValue(token?: Balance, sendTokenAmount?: number) {
|
|
5
|
-
if (token && sendTokenAmount) {
|
|
5
|
+
if (token?.price && sendTokenAmount) {
|
|
6
6
|
const price = token.price;
|
|
7
7
|
const totalValue = price * sendTokenAmount;
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ export function getSendValue(token?: Balance, sendTokenAmount?: number) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function getMaxAmount(token?: Balance) {
|
|
16
|
-
if (token) {
|
|
16
|
+
if (token?.quantity?.numeric) {
|
|
17
17
|
return NumberUtil.roundNumber(Number(token.quantity.numeric), 6, 5);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ const getIcon = (variant: SnackControllerState['variant']) => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export function Snackbar() {
|
|
16
|
-
const { open, message, variant
|
|
16
|
+
const { open, message, variant } = useSnapshot(SnackController.state);
|
|
17
17
|
const componentOpacity = useMemo(() => new Animated.Value(0), []);
|
|
18
18
|
|
|
19
19
|
useEffect(() => {
|
|
@@ -23,20 +23,14 @@ export function Snackbar() {
|
|
|
23
23
|
duration: 150,
|
|
24
24
|
useNativeDriver: true
|
|
25
25
|
}).start();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}).start(() => {
|
|
33
|
-
SnackController.hide();
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
long ? 15000 : 2200
|
|
37
|
-
);
|
|
26
|
+
} else {
|
|
27
|
+
Animated.timing(componentOpacity, {
|
|
28
|
+
toValue: 0,
|
|
29
|
+
duration: 300,
|
|
30
|
+
useNativeDriver: true
|
|
31
|
+
}).start();
|
|
38
32
|
}
|
|
39
|
-
}, [open,
|
|
33
|
+
}, [open, componentOpacity]);
|
|
40
34
|
|
|
41
35
|
return (
|
|
42
36
|
<SnackbarComponent
|
|
@@ -21,6 +21,7 @@ export interface SwapInputProps {
|
|
|
21
21
|
gasPrice?: number;
|
|
22
22
|
style?: StyleProp<ViewStyle>;
|
|
23
23
|
loading?: boolean;
|
|
24
|
+
loadingValues?: boolean;
|
|
24
25
|
onTokenPress?: () => void;
|
|
25
26
|
onMaxPress?: () => void;
|
|
26
27
|
onChange?: (value: string) => void;
|
|
@@ -37,6 +38,7 @@ export function SwapInput({
|
|
|
37
38
|
value,
|
|
38
39
|
style,
|
|
39
40
|
loading,
|
|
41
|
+
loadingValues,
|
|
40
42
|
onTokenPress,
|
|
41
43
|
onMaxPress,
|
|
42
44
|
onChange,
|
|
@@ -48,11 +50,11 @@ export function SwapInput({
|
|
|
48
50
|
const valueInputRef = useRef<TextInput | null>(null);
|
|
49
51
|
const isMarketValueGreaterThanZero =
|
|
50
52
|
!!marketValue && NumberUtil.bigNumber(marketValue).isGreaterThan('0');
|
|
51
|
-
const maxAmount = UiUtil.formatNumberToLocalString(token?.quantity
|
|
52
|
-
const maxError = Number(value) > Number(token?.quantity
|
|
53
|
+
const maxAmount = UiUtil.formatNumberToLocalString(token?.quantity?.numeric, 3);
|
|
54
|
+
const maxError = Number(value) > Number(token?.quantity?.numeric);
|
|
53
55
|
const showMax =
|
|
54
56
|
onMaxPress &&
|
|
55
|
-
!!token?.quantity
|
|
57
|
+
!!token?.quantity?.numeric &&
|
|
56
58
|
NumberUtil.multiply(token?.quantity.numeric, token?.price).isGreaterThan(
|
|
57
59
|
MINIMUM_USD_VALUE_TO_CONVERT
|
|
58
60
|
);
|
|
@@ -85,33 +87,40 @@ export function SwapInput({
|
|
|
85
87
|
>
|
|
86
88
|
{loading ? (
|
|
87
89
|
<FlexView flexDirection="row" alignItems="center" justifyContent="space-between">
|
|
88
|
-
<
|
|
90
|
+
<FlexView alignItems="flex-start">
|
|
91
|
+
<Shimmer height={36} width={80} borderRadius={12} style={styles.valueLoader} />
|
|
92
|
+
<Shimmer height={20} width={120} borderRadius={8} />
|
|
93
|
+
</FlexView>
|
|
89
94
|
<Shimmer height={36} width={80} borderRadius={18} />
|
|
90
95
|
</FlexView>
|
|
91
96
|
) : (
|
|
92
97
|
<>
|
|
93
98
|
<FlexView flexDirection="row" alignItems="center" justifyContent="space-between">
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
99
|
+
{loadingValues ? (
|
|
100
|
+
<Shimmer height={36} width={80} borderRadius={12} style={styles.valueLoader} />
|
|
101
|
+
) : (
|
|
102
|
+
<TextInput
|
|
103
|
+
ref={valueInputRef}
|
|
104
|
+
placeholder="0"
|
|
105
|
+
placeholderTextColor={Theme['fg-275']}
|
|
106
|
+
returnKeyType="done"
|
|
107
|
+
style={[styles.input, { color: Theme['fg-100'] }]}
|
|
108
|
+
autoCapitalize="none"
|
|
109
|
+
autoCorrect={false}
|
|
110
|
+
value={value}
|
|
111
|
+
onChangeText={handleInputChange}
|
|
112
|
+
keyboardType="decimal-pad"
|
|
113
|
+
inputMode="decimal"
|
|
114
|
+
autoComplete="off"
|
|
115
|
+
spellCheck={false}
|
|
116
|
+
selectionColor={Theme['accent-100']}
|
|
117
|
+
underlineColorAndroid="transparent"
|
|
118
|
+
selectTextOnFocus={false}
|
|
119
|
+
numberOfLines={1}
|
|
120
|
+
editable={editable}
|
|
121
|
+
autoFocus={autoFocus}
|
|
122
|
+
/>
|
|
123
|
+
)}
|
|
115
124
|
<TokenButton
|
|
116
125
|
text={token?.symbol}
|
|
117
126
|
imageUrl={token?.logoUri}
|
|
@@ -119,7 +128,9 @@ export function SwapInput({
|
|
|
119
128
|
chevron
|
|
120
129
|
/>
|
|
121
130
|
</FlexView>
|
|
122
|
-
{
|
|
131
|
+
{loadingValues ? (
|
|
132
|
+
<Shimmer height={20} width={120} borderRadius={8} />
|
|
133
|
+
) : showMax || isMarketValueGreaterThanZero ? (
|
|
123
134
|
<FlexView
|
|
124
135
|
flexDirection="row"
|
|
125
136
|
alignItems="center"
|
|
@@ -144,7 +155,7 @@ export function SwapInput({
|
|
|
144
155
|
</FlexView>
|
|
145
156
|
)}
|
|
146
157
|
</FlexView>
|
|
147
|
-
)}
|
|
158
|
+
) : null}
|
|
148
159
|
</>
|
|
149
160
|
)}
|
|
150
161
|
</FlexView>
|