@reown/appkit-react-native 0.0.0-feat-multichain-20250818154639 → 0.0.0-feat-multichain-20250903132047
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 +55 -40
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +6 -3
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/index.js +1 -6
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +7 -4
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js +7 -97
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js +2 -8
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js +90 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +7 -43
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js +7 -4
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +7 -39
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/styles.js +2 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +1 -0
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/styles.js +3 -0
- package/lib/commonjs/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +4 -3
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/index.js +69 -56
- package/lib/commonjs/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-selector-modal/styles.js +9 -11
- package/lib/commonjs/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +2 -2
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +5 -22
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/styles.js +2 -1
- package/lib/commonjs/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js +56 -54
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js +3 -7
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +36 -30
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/styles.js +3 -0
- package/lib/commonjs/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +7 -4
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js +160 -152
- package/lib/commonjs/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/styles.js +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 +3 -2
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +6 -4
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/styles.js +4 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js +3 -2
- package/lib/commonjs/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/Header.js +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js +5 -2
- package/lib/commonjs/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/index.js +4 -3
- package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/styles.js +3 -0
- package/lib/commonjs/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +157 -0
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.js +6 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/utils.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/index.js +9 -12
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/styles.js +0 -8
- package/lib/commonjs/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +5 -11
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/styles.js +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 +2 -4
- 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 +1 -2
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +4 -2
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/commonjs/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/module/AppKit.js +55 -40
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +6 -3
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +2 -7
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +7 -4
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js +8 -98
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js +2 -8
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js +86 -0
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -0
- package/lib/module/partials/w3m-all-wallets-list/index.js +7 -43
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +7 -4
- package/lib/module/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +8 -40
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +4 -4
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/styles.js +2 -1
- package/lib/module/partials/w3m-connecting-mobile/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +6 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +1 -0
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/styles.js +3 -0
- package/lib/module/partials/w3m-connecting-web/styles.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +4 -3
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/index.js +71 -58
- package/lib/module/partials/w3m-selector-modal/index.js.map +1 -1
- package/lib/module/partials/w3m-selector-modal/styles.js +9 -11
- package/lib/module/partials/w3m-selector-modal/styles.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +2 -2
- package/lib/module/views/w3m-all-wallets-view/index.js +6 -23
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +1 -1
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +4 -4
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/styles.js +2 -1
- package/lib/module/views/w3m-connecting-external-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-siwe-view/index.js +58 -56
- package/lib/module/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-siwe-view/styles.js +3 -7
- package/lib/module/views/w3m-connecting-siwe-view/styles.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +36 -30
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/styles.js +3 -0
- package/lib/module/views/w3m-connecting-social-view/styles.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +8 -5
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-checkout-view/index.js +162 -154
- package/lib/module/views/w3m-onramp-checkout-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +4 -4
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js +1 -1
- package/lib/module/views/w3m-onramp-loading-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +3 -2
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +6 -4
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/styles.js +4 -1
- package/lib/module/views/w3m-onramp-settings-view/styles.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Currency.js +3 -2
- package/lib/module/views/w3m-onramp-view/components/Currency.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/Header.js +1 -1
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js +6 -3
- package/lib/module/views/w3m-onramp-view/components/SelectPaymentModal.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/index.js +4 -3
- package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/styles.js +3 -0
- package/lib/module/views/w3m-onramp-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/styles.js +0 -3
- package/lib/module/views/w3m-swap-preview-view/styles.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +152 -0
- package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -0
- package/lib/module/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.js +6 -2
- package/lib/module/views/w3m-swap-view/components/select-token-modal/styles.js.map +1 -0
- package/lib/module/views/w3m-swap-view/components/select-token-modal/utils.js.map +1 -0
- package/lib/module/views/w3m-swap-view/index.js +10 -13
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/styles.js +0 -8
- package/lib/module/views/w3m-swap-view/styles.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/index.js +7 -13
- package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/styles.js +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/styles.js.map +1 -1
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +3 -5
- 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 +1 -2
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +4 -2
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +5 -2
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/styles.js +0 -3
- package/lib/module/views/w3m-wallet-send-view/styles.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +1 -1
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts +2 -4
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts +1 -3
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts +12 -0
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts.map +1 -0
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -3
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts +6 -3
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -4
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-mobile/styles.d.ts +1 -0
- package/lib/typescript/partials/w3m-connecting-mobile/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-web/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-connecting-web/styles.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-selector-modal/styles.d.ts +6 -8
- package/lib/typescript/partials/w3m-selector-modal/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-connecting-external-view/styles.d.ts +1 -0
- package/lib/typescript/views/w3m-connecting-external-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts +3 -7
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-view/styles.d.ts +3 -0
- package/lib/typescript/views/w3m-connecting-social-view/styles.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-loading-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +3 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/styles.d.ts +4 -1
- package/lib/typescript/views/w3m-onramp-settings-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.d.ts +3 -1
- package/lib/typescript/views/w3m-onramp-view/components/Currency.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 +3 -0
- package/lib/typescript/views/w3m-onramp-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-swap-preview-view/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/index.d.ts +2 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/index.d.ts.map +1 -0
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.d.ts +6 -2
- package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-modal/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 +0 -8
- 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-send-view/styles.d.ts +0 -3
- package/lib/typescript/views/w3m-wallet-send-view/styles.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +64 -43
- package/src/connectors/WalletConnectConnector.ts +7 -4
- package/src/modal/w3m-modal/index.tsx +2 -3
- package/src/modal/w3m-router/index.tsx +3 -4
- package/src/partials/w3m-all-wallets-list/components/Loading.tsx +4 -35
- package/src/partials/w3m-all-wallets-list/components/WalletItem.tsx +3 -12
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +95 -0
- package/src/partials/w3m-all-wallets-list/index.tsx +8 -43
- package/src/partials/w3m-all-wallets-list/styles.ts +7 -4
- package/src/partials/w3m-all-wallets-search/index.tsx +6 -47
- package/src/partials/w3m-connecting-mobile/index.tsx +8 -8
- package/src/partials/w3m-connecting-mobile/styles.ts +2 -1
- package/src/partials/w3m-connecting-qrcode/index.tsx +4 -1
- package/src/partials/w3m-connecting-web/index.tsx +1 -1
- package/src/partials/w3m-connecting-web/styles.ts +3 -0
- package/src/partials/w3m-header/index.tsx +6 -3
- package/src/partials/w3m-selector-modal/index.tsx +80 -60
- package/src/partials/w3m-selector-modal/styles.ts +9 -11
- package/src/views/w3m-account-default-view/index.tsx +2 -2
- package/src/views/w3m-all-wallets-view/index.tsx +9 -32
- package/src/views/w3m-connect-view/index.tsx +1 -1
- package/src/views/w3m-connecting-external-view/index.tsx +8 -8
- package/src/views/w3m-connecting-external-view/styles.ts +2 -1
- package/src/views/w3m-connecting-siwe-view/index.tsx +49 -42
- package/src/views/w3m-connecting-siwe-view/styles.ts +3 -7
- package/src/views/w3m-connecting-social-view/index.tsx +30 -27
- package/src/views/w3m-connecting-social-view/styles.ts +3 -0
- package/src/views/w3m-networks-view/index.tsx +6 -8
- package/src/views/w3m-onramp-checkout-view/index.tsx +147 -143
- package/src/views/w3m-onramp-loading-view/index.tsx +3 -7
- package/src/views/w3m-onramp-loading-view/styles.ts +1 -1
- package/src/views/w3m-onramp-settings-view/components/Country.tsx +8 -3
- package/src/views/w3m-onramp-settings-view/index.tsx +4 -2
- package/src/views/w3m-onramp-settings-view/styles.ts +4 -1
- package/src/views/w3m-onramp-view/components/Currency.tsx +4 -3
- package/src/views/w3m-onramp-view/components/Header.tsx +1 -1
- package/src/views/w3m-onramp-view/components/SelectPaymentModal.tsx +6 -3
- package/src/views/w3m-onramp-view/index.tsx +3 -2
- package/src/views/w3m-onramp-view/styles.ts +3 -0
- package/src/views/w3m-swap-preview-view/styles.ts +0 -3
- package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +183 -0
- package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/styles.ts +6 -2
- package/src/views/w3m-swap-view/index.tsx +8 -7
- package/src/views/w3m-swap-view/styles.ts +0 -8
- package/src/views/w3m-unsupported-chain-view/index.tsx +4 -6
- package/src/views/w3m-unsupported-chain-view/styles.ts +1 -1
- package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -5
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +1 -1
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-view/styles.ts +0 -3
- package/lib/commonjs/views/w3m-network-switch-view/index.js +0 -127
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-network-switch-view/styles.js +0 -31
- package/lib/commonjs/views/w3m-network-switch-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +0 -145
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/styles.js.map +0 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/utils.js.map +0 -1
- package/lib/module/views/w3m-network-switch-view/index.js +0 -123
- package/lib/module/views/w3m-network-switch-view/index.js.map +0 -1
- package/lib/module/views/w3m-network-switch-view/styles.js +0 -27
- package/lib/module/views/w3m-network-switch-view/styles.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +0 -140
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/styles.js.map +0 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/utils.js.map +0 -1
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-network-switch-view/styles.d.ts +0 -24
- package/lib/typescript/views/w3m-network-switch-view/styles.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/utils.d.ts.map +0 -1
- package/src/views/w3m-network-switch-view/index.tsx +0 -132
- package/src/views/w3m-network-switch-view/styles.ts +0 -23
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +0 -176
- /package/lib/commonjs/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.js +0 -0
- /package/lib/module/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.js +0 -0
- /package/lib/typescript/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.d.ts +0 -0
- /package/src/views/w3m-swap-view/components/{select-token-view → select-token-modal}/utils.ts +0 -0
|
@@ -19,9 +19,10 @@ import { ConstantsUtil, StringUtil } from '@reown/appkit-common-react-native';
|
|
|
19
19
|
|
|
20
20
|
import { useInternalAppKit } from '../../AppKitContext';
|
|
21
21
|
import styles from './styles';
|
|
22
|
+
import { ScrollView } from 'react-native';
|
|
22
23
|
|
|
23
24
|
export function ConnectingSocialView() {
|
|
24
|
-
const {
|
|
25
|
+
const { padding } = useCustomDimensions();
|
|
25
26
|
const { connect } = useInternalAppKit();
|
|
26
27
|
const { data } = useSnapshot(RouterController.state);
|
|
27
28
|
const { wcUri } = useSnapshot(WcController.state);
|
|
@@ -74,32 +75,34 @@ export function ConnectingSocialView() {
|
|
|
74
75
|
}, [wcUri, onConnect]);
|
|
75
76
|
|
|
76
77
|
return (
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
<ScrollView
|
|
79
|
+
bounces={false}
|
|
80
|
+
fadingEdgeLength={20}
|
|
81
|
+
style={{ paddingHorizontal: padding }}
|
|
82
|
+
contentContainerStyle={styles.container}
|
|
82
83
|
>
|
|
83
|
-
<
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
84
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '2xl', 'l']}>
|
|
85
|
+
<LoadingThumbnail paused={!!error}>
|
|
86
|
+
<Logo logo={data?.socialProvider ?? 'more'} height={72} width={72} />
|
|
87
|
+
{error ? (
|
|
88
|
+
<IconBox
|
|
89
|
+
icon={'close'}
|
|
90
|
+
border
|
|
91
|
+
background
|
|
92
|
+
backgroundColor="icon-box-bg-error-100"
|
|
93
|
+
size="sm"
|
|
94
|
+
iconColor="error-100"
|
|
95
|
+
style={styles.errorIcon}
|
|
96
|
+
/>
|
|
97
|
+
) : null}
|
|
98
|
+
</LoadingThumbnail>
|
|
99
|
+
<Text style={styles.continueText} variant="paragraph-500">
|
|
100
|
+
Continue with {StringUtil.capitalize(data?.socialProvider ?? 'Login')}
|
|
101
|
+
</Text>
|
|
102
|
+
<Text variant="small-400" color="fg-200">
|
|
103
|
+
Continue in your browser
|
|
104
|
+
</Text>
|
|
105
|
+
</FlexView>
|
|
106
|
+
</ScrollView>
|
|
104
107
|
);
|
|
105
108
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScrollView, View } from 'react-native';
|
|
1
|
+
import { ScrollView, useWindowDimensions, View } from 'react-native';
|
|
2
2
|
import {
|
|
3
3
|
CardSelect,
|
|
4
4
|
CardSelectWidth,
|
|
@@ -24,12 +24,14 @@ import { useInternalAppKit } from '../../AppKitContext';
|
|
|
24
24
|
import { useSnapshot } from 'valtio';
|
|
25
25
|
|
|
26
26
|
export function NetworksView() {
|
|
27
|
+
const { height, width } = useWindowDimensions();
|
|
28
|
+
const windowSize = Math.min(height, width);
|
|
27
29
|
const { networks, isConnected } = useSnapshot(ConnectionsController.state);
|
|
28
30
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
29
31
|
const imageHeaders = ApiController._getApiHeaders();
|
|
30
|
-
const {
|
|
32
|
+
const { padding } = useCustomDimensions();
|
|
31
33
|
const numColumns = 4;
|
|
32
|
-
const usableWidth =
|
|
34
|
+
const usableWidth = windowSize - Spacing.xs * 2 - Spacing['4xs'];
|
|
33
35
|
const itemWidth = Math.abs(Math.trunc(usableWidth / numColumns));
|
|
34
36
|
const itemGap = Math.abs(
|
|
35
37
|
Math.trunc((usableWidth - numColumns * CardSelectWidth) / numColumns) / 2
|
|
@@ -83,11 +85,7 @@ export function NetworksView() {
|
|
|
83
85
|
|
|
84
86
|
return (
|
|
85
87
|
<>
|
|
86
|
-
<ScrollView
|
|
87
|
-
bounces={false}
|
|
88
|
-
fadingEdgeLength={20}
|
|
89
|
-
style={{ paddingHorizontal: padding, marginBottom: Spacing.xl }}
|
|
90
|
-
>
|
|
88
|
+
<ScrollView bounces={false} fadingEdgeLength={20} style={{ paddingHorizontal: padding }}>
|
|
91
89
|
<FlexView flexDirection="row" flexWrap="wrap" padding={['xs', 'xs', '4xl', 'xs']}>
|
|
92
90
|
{networksTemplate()}
|
|
93
91
|
</FlexView>
|
|
@@ -15,14 +15,16 @@ import {
|
|
|
15
15
|
Spacing,
|
|
16
16
|
Text,
|
|
17
17
|
Toggle,
|
|
18
|
+
useCustomDimensions,
|
|
18
19
|
useTheme
|
|
19
20
|
} from '@reown/appkit-ui-react-native';
|
|
20
|
-
import { StyleSheet } from 'react-native';
|
|
21
|
+
import { ScrollView, StyleSheet } from 'react-native';
|
|
21
22
|
import { useSnapshot } from 'valtio';
|
|
22
23
|
import { NumberUtil, StringUtil } from '@reown/appkit-common-react-native';
|
|
23
24
|
|
|
24
25
|
export function OnRampCheckoutView() {
|
|
25
26
|
const Theme = useTheme();
|
|
27
|
+
const { padding } = useCustomDimensions();
|
|
26
28
|
const { themeMode } = useSnapshot(ThemeController.state);
|
|
27
29
|
const { networkImages } = useSnapshot(AssetController.state);
|
|
28
30
|
const { selectedQuote, selectedPaymentMethod, purchaseCurrency } = useSnapshot(
|
|
@@ -49,164 +51,166 @@ export function OnRampCheckoutView() {
|
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
return (
|
|
52
|
-
<
|
|
53
|
-
<FlexView
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
<ScrollView style={{ paddingHorizontal: padding }}>
|
|
55
|
+
<FlexView padding={['2xl', 'l', '4xl', 'l']}>
|
|
56
|
+
<FlexView alignItems="center">
|
|
57
|
+
<Text color="fg-200">You Buy</Text>
|
|
58
|
+
<FlexView flexDirection="row" alignItems="center">
|
|
59
|
+
<Text style={[styles.amount, { color: Theme['fg-100'] }]}>{value}</Text>
|
|
60
|
+
<Text variant="paragraph-400" color="fg-200">
|
|
61
|
+
{symbol?.split('_')[0] ?? symbol ?? ''}
|
|
62
|
+
</Text>
|
|
63
|
+
</FlexView>
|
|
64
|
+
<FlexView flexDirection="row" alignItems="center" justifyContent="center">
|
|
65
|
+
<Text color="fg-200">via </Text>
|
|
66
|
+
{providerImage ? <Image source={providerImage} style={styles.providerImage} /> : null}
|
|
67
|
+
<Text color="fg-200">{StringUtil.capitalize(selectedQuote?.serviceProvider)}</Text>
|
|
68
|
+
</FlexView>
|
|
65
69
|
</FlexView>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<Text color="fg-200">You Pay</Text>
|
|
75
|
-
<Text>
|
|
76
|
-
{selectedQuote?.sourceAmount} {selectedQuote?.sourceCurrencyCode}
|
|
77
|
-
</Text>
|
|
78
|
-
</FlexView>
|
|
79
|
-
<FlexView
|
|
80
|
-
padding={['xs', 's', 'xs', 's']}
|
|
81
|
-
flexDirection="row"
|
|
82
|
-
justifyContent="space-between"
|
|
83
|
-
alignItems="center"
|
|
84
|
-
>
|
|
85
|
-
<Text color="fg-200">You Receive</Text>
|
|
86
|
-
<FlexView flexDirection="row" alignItems="center">
|
|
70
|
+
<Separator style={styles.separator} color="gray-glass-010" />
|
|
71
|
+
<FlexView
|
|
72
|
+
padding={['s', 's', 'xs', 's']}
|
|
73
|
+
flexDirection="row"
|
|
74
|
+
justifyContent="space-between"
|
|
75
|
+
alignItems="center"
|
|
76
|
+
>
|
|
77
|
+
<Text color="fg-200">You Pay</Text>
|
|
87
78
|
<Text>
|
|
88
|
-
{
|
|
79
|
+
{selectedQuote?.sourceAmount} {selectedQuote?.sourceCurrencyCode}
|
|
89
80
|
</Text>
|
|
90
|
-
{purchaseCurrency?.symbolImageUrl ? (
|
|
91
|
-
<Image
|
|
92
|
-
source={purchaseCurrency?.symbolImageUrl}
|
|
93
|
-
style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
94
|
-
/>
|
|
95
|
-
) : null}
|
|
96
81
|
</FlexView>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
82
|
+
<FlexView
|
|
83
|
+
padding={['xs', 's', 'xs', 's']}
|
|
84
|
+
flexDirection="row"
|
|
85
|
+
justifyContent="space-between"
|
|
86
|
+
alignItems="center"
|
|
87
|
+
>
|
|
88
|
+
<Text color="fg-200">You Receive</Text>
|
|
89
|
+
<FlexView flexDirection="row" alignItems="center">
|
|
90
|
+
<Text>
|
|
91
|
+
{value} {symbol?.split('_')[0] ?? ''}
|
|
92
|
+
</Text>
|
|
93
|
+
{purchaseCurrency?.symbolImageUrl ? (
|
|
94
|
+
<Image
|
|
95
|
+
source={purchaseCurrency?.symbolImageUrl}
|
|
96
|
+
style={[styles.tokenImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
97
|
+
/>
|
|
98
|
+
) : null}
|
|
99
|
+
</FlexView>
|
|
107
100
|
</FlexView>
|
|
108
|
-
</FlexView>
|
|
109
|
-
<FlexView
|
|
110
|
-
padding={['xs', 's', 'm', 's']}
|
|
111
|
-
flexDirection="row"
|
|
112
|
-
alignItems="center"
|
|
113
|
-
justifyContent="space-between"
|
|
114
|
-
>
|
|
115
|
-
<Text color="fg-200">Pay with</Text>
|
|
116
101
|
<FlexView
|
|
102
|
+
padding={['xs', 's', 'xs', 's']}
|
|
117
103
|
flexDirection="row"
|
|
118
104
|
alignItems="center"
|
|
119
|
-
|
|
105
|
+
justifyContent="space-between"
|
|
120
106
|
>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
107
|
+
<Text color="fg-200">Network</Text>
|
|
108
|
+
<FlexView flexDirection="row" alignItems="center">
|
|
109
|
+
<Text>{purchaseCurrency?.chainName}</Text>
|
|
110
|
+
</FlexView>
|
|
111
|
+
</FlexView>
|
|
112
|
+
<FlexView
|
|
113
|
+
padding={['xs', 's', 'm', 's']}
|
|
114
|
+
flexDirection="row"
|
|
115
|
+
alignItems="center"
|
|
116
|
+
justifyContent="space-between"
|
|
117
|
+
>
|
|
118
|
+
<Text color="fg-200">Pay with</Text>
|
|
119
|
+
<FlexView
|
|
120
|
+
flexDirection="row"
|
|
121
|
+
alignItems="center"
|
|
122
|
+
style={[styles.paymentMethodContainer, { borderColor: Theme['gray-glass-020'] }]}
|
|
123
|
+
>
|
|
124
|
+
{paymentLogo ? (
|
|
125
|
+
<Image
|
|
126
|
+
source={paymentLogo}
|
|
127
|
+
style={styles.paymentMethodImage}
|
|
128
|
+
tintColor={Theme['fg-150']}
|
|
129
|
+
/>
|
|
130
|
+
) : null}
|
|
131
|
+
<Text variant="small-600" color="fg-150">
|
|
132
|
+
{selectedPaymentMethod?.name}
|
|
133
|
+
</Text>
|
|
134
|
+
</FlexView>
|
|
131
135
|
</FlexView>
|
|
132
|
-
</FlexView>
|
|
133
136
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
{showFees ? (
|
|
138
|
+
<Toggle
|
|
139
|
+
title={
|
|
140
|
+
<>
|
|
141
|
+
<Text variant="paragraph-400" color="fg-200">
|
|
142
|
+
Fees{' '}
|
|
143
|
+
{showTotalFee ? (
|
|
144
|
+
<Text variant="paragraph-400">
|
|
145
|
+
{selectedQuote?.totalFee} {selectedQuote?.sourceCurrencyCode}
|
|
146
|
+
</Text>
|
|
147
|
+
) : null}
|
|
148
|
+
</Text>
|
|
149
|
+
</>
|
|
150
|
+
}
|
|
151
|
+
style={[styles.feesToggle, { backgroundColor: Theme['gray-glass-002'] }]}
|
|
152
|
+
contentContainerStyle={styles.feesToggleContent}
|
|
153
|
+
>
|
|
154
|
+
{showNetworkFee ? (
|
|
155
|
+
<FlexView
|
|
156
|
+
flexDirection="row"
|
|
157
|
+
justifyContent="space-between"
|
|
158
|
+
style={[styles.toggleItem, { backgroundColor: Theme['gray-glass-002'] }]}
|
|
159
|
+
margin={['0', '0', 'xs', '0']}
|
|
160
|
+
>
|
|
161
|
+
<Text variant="small-500" color="fg-150">
|
|
162
|
+
Network Fees
|
|
163
|
+
</Text>
|
|
164
|
+
<FlexView flexDirection="row" alignItems="center">
|
|
165
|
+
{networkImage ? (
|
|
166
|
+
<Image
|
|
167
|
+
source={networkImage}
|
|
168
|
+
style={[styles.networkImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
169
|
+
/>
|
|
170
|
+
) : null}
|
|
171
|
+
<Text variant="small-400">
|
|
172
|
+
{selectedQuote?.networkFee} {selectedQuote?.sourceCurrencyCode}
|
|
143
173
|
</Text>
|
|
144
|
-
|
|
145
|
-
</
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
margin={['0', '0', 'xs', '0']}
|
|
157
|
-
>
|
|
158
|
-
<Text variant="small-500" color="fg-150">
|
|
159
|
-
Network Fees
|
|
160
|
-
</Text>
|
|
161
|
-
<FlexView flexDirection="row" alignItems="center">
|
|
162
|
-
{networkImage ? (
|
|
163
|
-
<Image
|
|
164
|
-
source={networkImage}
|
|
165
|
-
style={[styles.networkImage, { borderColor: Theme['gray-glass-010'] }]}
|
|
166
|
-
/>
|
|
167
|
-
) : null}
|
|
174
|
+
</FlexView>
|
|
175
|
+
</FlexView>
|
|
176
|
+
) : null}
|
|
177
|
+
{showTransactionFee ? (
|
|
178
|
+
<FlexView
|
|
179
|
+
flexDirection="row"
|
|
180
|
+
justifyContent="space-between"
|
|
181
|
+
style={[styles.toggleItem, { backgroundColor: Theme['gray-glass-002'] }]}
|
|
182
|
+
>
|
|
183
|
+
<Text variant="small-500" color="fg-150">
|
|
184
|
+
Transaction Fees
|
|
185
|
+
</Text>
|
|
168
186
|
<Text variant="small-400">
|
|
169
|
-
{selectedQuote
|
|
187
|
+
{selectedQuote.transactionFee} {selectedQuote?.sourceCurrencyCode}
|
|
170
188
|
</Text>
|
|
171
189
|
</FlexView>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
style={styles.cancelButton}
|
|
195
|
-
onPress={RouterController.goBack}
|
|
196
|
-
>
|
|
197
|
-
Back
|
|
198
|
-
</Button>
|
|
199
|
-
<Button
|
|
200
|
-
variant="fill"
|
|
201
|
-
size="md"
|
|
202
|
-
style={styles.confirmButton}
|
|
203
|
-
onPress={onConfirm}
|
|
204
|
-
testID="button-confirm"
|
|
205
|
-
>
|
|
206
|
-
Confirm
|
|
207
|
-
</Button>
|
|
190
|
+
) : null}
|
|
191
|
+
</Toggle>
|
|
192
|
+
) : null}
|
|
193
|
+
<FlexView flexDirection="row" justifyContent="space-between" margin={['xl', '0', '0', '0']}>
|
|
194
|
+
<Button
|
|
195
|
+
variant="shade"
|
|
196
|
+
size="md"
|
|
197
|
+
style={styles.cancelButton}
|
|
198
|
+
onPress={RouterController.goBack}
|
|
199
|
+
>
|
|
200
|
+
Back
|
|
201
|
+
</Button>
|
|
202
|
+
<Button
|
|
203
|
+
variant="fill"
|
|
204
|
+
size="md"
|
|
205
|
+
style={styles.confirmButton}
|
|
206
|
+
onPress={onConfirm}
|
|
207
|
+
testID="button-confirm"
|
|
208
|
+
>
|
|
209
|
+
Confirm
|
|
210
|
+
</Button>
|
|
211
|
+
</FlexView>
|
|
208
212
|
</FlexView>
|
|
209
|
-
</
|
|
213
|
+
</ScrollView>
|
|
210
214
|
);
|
|
211
215
|
}
|
|
212
216
|
|
|
@@ -21,7 +21,7 @@ import styles from './styles';
|
|
|
21
21
|
import { StringUtil } from '@reown/appkit-common-react-native';
|
|
22
22
|
|
|
23
23
|
export function OnRampLoadingView() {
|
|
24
|
-
const {
|
|
24
|
+
const { padding } = useCustomDimensions();
|
|
25
25
|
const { error } = useSnapshot(OnRampController.state);
|
|
26
26
|
const providerName = StringUtil.capitalize(
|
|
27
27
|
OnRampController.state.selectedQuote?.serviceProvider.toLowerCase()
|
|
@@ -111,14 +111,10 @@ export function OnRampLoadingView() {
|
|
|
111
111
|
bounces={false}
|
|
112
112
|
fadingEdgeLength={20}
|
|
113
113
|
contentContainerStyle={styles.container}
|
|
114
|
+
style={{ paddingHorizontal: padding }}
|
|
114
115
|
testID="onramp-loading-widget-view"
|
|
115
116
|
>
|
|
116
|
-
<FlexView
|
|
117
|
-
alignItems="center"
|
|
118
|
-
alignSelf="center"
|
|
119
|
-
padding={['2xl', 'l', '0', 'l']}
|
|
120
|
-
style={{ width }}
|
|
121
|
-
>
|
|
117
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
122
118
|
<IconLink
|
|
123
119
|
icon="chevronLeft"
|
|
124
120
|
size="md"
|
|
@@ -7,24 +7,29 @@ import {
|
|
|
7
7
|
Icon,
|
|
8
8
|
BorderRadius
|
|
9
9
|
} from '@reown/appkit-ui-react-native';
|
|
10
|
-
import { StyleSheet } from 'react-native';
|
|
10
|
+
import { StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
11
11
|
import { SvgUri } from 'react-native-svg';
|
|
12
12
|
|
|
13
13
|
interface Props {
|
|
14
14
|
onPress: (item: OnRampCountry) => void;
|
|
15
15
|
item: OnRampCountry;
|
|
16
16
|
selected: boolean;
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export const ITEM_HEIGHT = 60;
|
|
20
21
|
|
|
21
|
-
export function Country({ onPress, item, selected }: Props) {
|
|
22
|
+
export function Country({ onPress, item, selected, style }: Props) {
|
|
22
23
|
const handlePress = () => {
|
|
23
24
|
onPress(item);
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
return (
|
|
27
|
-
<Pressable
|
|
28
|
+
<Pressable
|
|
29
|
+
onPress={handlePress}
|
|
30
|
+
style={[styles.container, style]}
|
|
31
|
+
backgroundColor="transparent"
|
|
32
|
+
>
|
|
28
33
|
<FlexView flexDirection="row" alignItems="center" justifyContent="flex-start" padding="s">
|
|
29
34
|
<FlexView style={styles.imageContainer}>
|
|
30
35
|
{item.flagImageUrl && SvgUri ? (
|
|
@@ -55,6 +55,7 @@ export function OnRampSettingsView() {
|
|
|
55
55
|
item={parsedItem}
|
|
56
56
|
onPress={onPressModalItem}
|
|
57
57
|
selected={parsedItem.countryCode === selectedCountry?.countryCode}
|
|
58
|
+
style={styles.selectorItem}
|
|
58
59
|
/>
|
|
59
60
|
);
|
|
60
61
|
}
|
|
@@ -68,6 +69,7 @@ export function OnRampSettingsView() {
|
|
|
68
69
|
selected={parsedItem.currencyCode === paymentCurrency?.currencyCode}
|
|
69
70
|
title={parsedItem.name}
|
|
70
71
|
subtitle={parsedItem.currencyCode}
|
|
72
|
+
style={styles.selectorItem}
|
|
71
73
|
/>
|
|
72
74
|
);
|
|
73
75
|
};
|
|
@@ -79,7 +81,7 @@ export function OnRampSettingsView() {
|
|
|
79
81
|
onPress={onCountryPress}
|
|
80
82
|
chevron
|
|
81
83
|
style={styles.firstItem}
|
|
82
|
-
contentStyle={styles.
|
|
84
|
+
contentStyle={styles.listItem}
|
|
83
85
|
>
|
|
84
86
|
<FlexView
|
|
85
87
|
alignItems="center"
|
|
@@ -101,7 +103,7 @@ export function OnRampSettingsView() {
|
|
|
101
103
|
) : null}
|
|
102
104
|
</FlexView>
|
|
103
105
|
</ListItem>
|
|
104
|
-
<ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.
|
|
106
|
+
<ListItem onPress={onPaymentCurrencyPress} chevron contentStyle={styles.listItem}>
|
|
105
107
|
<FlexView
|
|
106
108
|
alignItems="center"
|
|
107
109
|
justifyContent="center"
|
|
@@ -2,7 +2,7 @@ import { BorderRadius, Spacing } from '@reown/appkit-ui-react-native';
|
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export const styles = StyleSheet.create({
|
|
5
|
-
|
|
5
|
+
listItem: {
|
|
6
6
|
paddingLeft: 0
|
|
7
7
|
},
|
|
8
8
|
firstItem: {
|
|
@@ -21,5 +21,8 @@ export const styles = StyleSheet.create({
|
|
|
21
21
|
imageBorder: {
|
|
22
22
|
borderRadius: BorderRadius.full,
|
|
23
23
|
overflow: 'hidden'
|
|
24
|
+
},
|
|
25
|
+
selectorItem: {
|
|
26
|
+
paddingHorizontal: Spacing.m
|
|
24
27
|
}
|
|
25
28
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
Icon,
|
|
12
12
|
BorderRadius
|
|
13
13
|
} from '@reown/appkit-ui-react-native';
|
|
14
|
-
import { StyleSheet, Image } from 'react-native';
|
|
14
|
+
import { StyleSheet, Image, type StyleProp, type ViewStyle } from 'react-native';
|
|
15
15
|
|
|
16
16
|
export const ITEM_HEIGHT = 60;
|
|
17
17
|
|
|
@@ -22,9 +22,10 @@ interface Props {
|
|
|
22
22
|
title: string;
|
|
23
23
|
subtitle: string;
|
|
24
24
|
testID?: string;
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
export function Currency({ onPress, item, selected, title, subtitle, testID }: Props) {
|
|
28
|
+
export function Currency({ onPress, item, selected, title, subtitle, testID, style }: Props) {
|
|
28
29
|
const Theme = useTheme();
|
|
29
30
|
|
|
30
31
|
const handlePress = () => {
|
|
@@ -34,7 +35,7 @@ export function Currency({ onPress, item, selected, title, subtitle, testID }: P
|
|
|
34
35
|
return (
|
|
35
36
|
<Pressable
|
|
36
37
|
onPress={handlePress}
|
|
37
|
-
style={styles.container}
|
|
38
|
+
style={[styles.container, style]}
|
|
38
39
|
backgroundColor="transparent"
|
|
39
40
|
testID={testID}
|
|
40
41
|
>
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
Text,
|
|
10
10
|
useTheme,
|
|
11
11
|
Separator,
|
|
12
|
-
BorderRadius
|
|
12
|
+
BorderRadius,
|
|
13
|
+
useCustomDimensions
|
|
13
14
|
} from '@reown/appkit-ui-react-native';
|
|
14
15
|
import { OnRampController } from '@reown/appkit-core-react-native';
|
|
15
16
|
import { Quote, ITEM_HEIGHT as QUOTE_ITEM_HEIGHT } from './Quote';
|
|
@@ -26,6 +27,7 @@ const SEPARATOR_HEIGHT = Spacing.s;
|
|
|
26
27
|
|
|
27
28
|
export function SelectPaymentModal({ title, visible, onClose }: SelectPaymentModalProps) {
|
|
28
29
|
const Theme = useTheme();
|
|
30
|
+
const { maxHeight } = useCustomDimensions();
|
|
29
31
|
const { selectedQuote, quotes, selectedPaymentMethod } = useSnapshot(OnRampController.state);
|
|
30
32
|
|
|
31
33
|
const paymentMethodsRef = useRef<FlatList>(null);
|
|
@@ -133,7 +135,9 @@ export function SelectPaymentModal({ title, visible, onClose }: SelectPaymentMod
|
|
|
133
135
|
return (
|
|
134
136
|
<Modal visible={visible} transparent animationType="slide" onRequestClose={onClose}>
|
|
135
137
|
<View style={styles.modalContent}>
|
|
136
|
-
<FlexView
|
|
138
|
+
<FlexView
|
|
139
|
+
style={[styles.container, { backgroundColor: Theme['bg-100'], height: maxHeight }]}
|
|
140
|
+
>
|
|
137
141
|
<FlexView
|
|
138
142
|
alignItems="center"
|
|
139
143
|
justifyContent="space-between"
|
|
@@ -196,7 +200,6 @@ const styles = StyleSheet.create({
|
|
|
196
200
|
paddingTop: Spacing.m
|
|
197
201
|
},
|
|
198
202
|
container: {
|
|
199
|
-
height: '80%',
|
|
200
203
|
borderTopLeftRadius: BorderRadius.l,
|
|
201
204
|
borderTopRightRadius: BorderRadius.l
|
|
202
205
|
},
|