@reown/appkit-react-native 0.0.0-feat-multichain-20250818141206 → 0.0.0-feat-multichain-20250902153701
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 +62 -45
- package/lib/commonjs/AppKit.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 +4 -9
- 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 -42
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js +8 -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 -38
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js +2 -2
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.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-qrcode/index.js +6 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +2 -1
- 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-siwe-view/index.js +1 -0
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +35 -30
- package/lib/commonjs/views/w3m-connecting-social-view/index.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 +62 -45
- package/lib/module/AppKit.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 +4 -9
- 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 -42
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +8 -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 -39
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/styles.js +2 -2
- package/lib/module/partials/w3m-all-wallets-search/styles.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-qrcode/index.js +6 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +2 -1
- 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-siwe-view/index.js +2 -1
- package/lib/module/views/w3m-connecting-siwe-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +35 -30
- package/lib/module/views/w3m-connecting-social-view/index.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/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 +2 -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 +7 -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-all-wallets-search/styles.d.ts +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-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-siwe-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-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-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 +77 -48
- 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 +4 -11
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +95 -0
- package/src/partials/w3m-all-wallets-list/index.tsx +8 -39
- package/src/partials/w3m-all-wallets-list/styles.ts +8 -4
- package/src/partials/w3m-all-wallets-search/index.tsx +6 -43
- package/src/partials/w3m-all-wallets-search/styles.ts +2 -2
- package/src/partials/w3m-connecting-mobile/index.tsx +8 -8
- package/src/partials/w3m-connecting-qrcode/index.tsx +4 -1
- package/src/partials/w3m-header/index.tsx +4 -1
- 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-siwe-view/index.tsx +3 -0
- package/src/views/w3m-connecting-social-view/index.tsx +26 -28
- 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
|
@@ -8,21 +8,19 @@ export default StyleSheet.create({
|
|
|
8
8
|
justifyContent: 'flex-end'
|
|
9
9
|
},
|
|
10
10
|
header: {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
paddingTop: Spacing['2xs'],
|
|
12
|
+
paddingBottom: Spacing.s
|
|
13
|
+
},
|
|
14
|
+
headerTop: {
|
|
15
|
+
paddingHorizontal: Spacing.m,
|
|
16
|
+
paddingBottom: Spacing.xs
|
|
13
17
|
},
|
|
14
18
|
container: {
|
|
15
|
-
height: '80%',
|
|
16
19
|
borderTopLeftRadius: BorderRadius.l,
|
|
17
|
-
borderTopRightRadius: BorderRadius.l
|
|
18
|
-
paddingTop: Spacing.m
|
|
19
|
-
},
|
|
20
|
-
selectedContainer: {
|
|
21
|
-
paddingHorizontal: Spacing.m
|
|
20
|
+
borderTopRightRadius: BorderRadius.l
|
|
22
21
|
},
|
|
23
22
|
listContent: {
|
|
24
|
-
paddingTop: Spacing.s
|
|
25
|
-
paddingHorizontal: Spacing.m
|
|
23
|
+
paddingTop: Spacing.s
|
|
26
24
|
},
|
|
27
25
|
iconPlaceholder: {
|
|
28
26
|
height: 32,
|
|
@@ -38,6 +36,6 @@ export default StyleSheet.create({
|
|
|
38
36
|
marginHorizontal: Spacing.s
|
|
39
37
|
},
|
|
40
38
|
separator: {
|
|
41
|
-
|
|
39
|
+
marginVertical: Spacing.xs
|
|
42
40
|
}
|
|
43
41
|
});
|
|
@@ -278,7 +278,7 @@ export function AccountDefaultView() {
|
|
|
278
278
|
testID="button-onramp"
|
|
279
279
|
style={styles.actionButton}
|
|
280
280
|
>
|
|
281
|
-
<Text color="fg-100">Buy
|
|
281
|
+
<Text color="fg-100">Buy Crypto</Text>
|
|
282
282
|
</ListItem>
|
|
283
283
|
) : null}
|
|
284
284
|
{showSend ? (
|
|
@@ -332,7 +332,7 @@ export function AccountDefaultView() {
|
|
|
332
332
|
loading={loading}
|
|
333
333
|
>
|
|
334
334
|
<Text color="fg-100">{`Switch to your ${
|
|
335
|
-
accountType === 'eoa' ? '
|
|
335
|
+
accountType === 'eoa' ? 'Smart Account' : 'EOA'
|
|
336
336
|
}`}</Text>
|
|
337
337
|
</ListItem>
|
|
338
338
|
) : null}
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
FlexView,
|
|
6
6
|
IconLink,
|
|
7
7
|
SearchBar,
|
|
8
|
-
Spacing,
|
|
9
8
|
useTheme,
|
|
10
9
|
useCustomDimensions
|
|
11
10
|
} from '@reown/appkit-ui-react-native';
|
|
@@ -15,24 +14,14 @@ import { useDebounceCallback } from '../../hooks/useDebounceCallback';
|
|
|
15
14
|
import { AllWalletsList } from '../../partials/w3m-all-wallets-list';
|
|
16
15
|
import { AllWalletsSearch } from '../../partials/w3m-all-wallets-search';
|
|
17
16
|
import { WcHelpersUtil } from '../../utils/HelpersUtil';
|
|
18
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
19
17
|
|
|
20
18
|
export function AllWalletsView() {
|
|
21
19
|
const Theme = useTheme();
|
|
22
20
|
const [searchQuery, setSearchQuery] = useState<string>('');
|
|
23
|
-
const {
|
|
24
|
-
const [headerHeight, setHeaderHeight] = useState<number>(0);
|
|
25
|
-
const numColumns = 4;
|
|
26
|
-
const usableWidth = maxWidth - Spacing.xs * 2;
|
|
27
|
-
const itemWidth = Math.abs(Math.trunc(usableWidth / numColumns));
|
|
21
|
+
const { padding } = useCustomDimensions();
|
|
28
22
|
|
|
29
23
|
const { debouncedCallback: onInputChange } = useDebounceCallback({ callback: setSearchQuery });
|
|
30
24
|
|
|
31
|
-
const onHeaderLayout = (event: LayoutChangeEvent) => {
|
|
32
|
-
const { height } = event.nativeEvent.layout;
|
|
33
|
-
setHeaderHeight(height);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
25
|
const onWalletPress = (wallet: WcWallet) => {
|
|
37
26
|
const isExternal = WcHelpersUtil.isExternalWallet(wallet);
|
|
38
27
|
if (isExternal) {
|
|
@@ -63,13 +52,16 @@ export function AllWalletsView() {
|
|
|
63
52
|
const headerTemplate = () => {
|
|
64
53
|
return (
|
|
65
54
|
<FlexView
|
|
66
|
-
padding={['s', 'l', '
|
|
55
|
+
padding={['s', 'l', '4xs', 'l']}
|
|
67
56
|
flexDirection="row"
|
|
68
|
-
onLayout={onHeaderLayout}
|
|
69
57
|
alignItems="center"
|
|
70
58
|
style={[
|
|
71
59
|
styles.header,
|
|
72
|
-
{
|
|
60
|
+
{
|
|
61
|
+
backgroundColor: Theme['bg-100'],
|
|
62
|
+
shadowColor: Theme['bg-100'],
|
|
63
|
+
marginHorizontal: padding
|
|
64
|
+
}
|
|
73
65
|
]}
|
|
74
66
|
>
|
|
75
67
|
<SearchBar
|
|
@@ -93,25 +85,10 @@ export function AllWalletsView() {
|
|
|
93
85
|
|
|
94
86
|
const listTemplate = () => {
|
|
95
87
|
if (searchQuery) {
|
|
96
|
-
return
|
|
97
|
-
<AllWalletsSearch
|
|
98
|
-
columns={numColumns}
|
|
99
|
-
itemWidth={itemWidth}
|
|
100
|
-
searchQuery={searchQuery}
|
|
101
|
-
onItemPress={onWalletPress}
|
|
102
|
-
headerHeight={headerHeight}
|
|
103
|
-
/>
|
|
104
|
-
);
|
|
88
|
+
return <AllWalletsSearch searchQuery={searchQuery} onItemPress={onWalletPress} />;
|
|
105
89
|
}
|
|
106
90
|
|
|
107
|
-
return
|
|
108
|
-
<AllWalletsList
|
|
109
|
-
columns={numColumns}
|
|
110
|
-
itemWidth={itemWidth}
|
|
111
|
-
onItemPress={onWalletPress}
|
|
112
|
-
headerHeight={headerHeight}
|
|
113
|
-
/>
|
|
114
|
-
);
|
|
91
|
+
return <AllWalletsList onItemPress={onWalletPress} />;
|
|
115
92
|
};
|
|
116
93
|
|
|
117
94
|
return (
|
|
@@ -62,7 +62,7 @@ export function ConnectView() {
|
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
64
|
<ScrollView style={{ paddingHorizontal: padding }} bounces={false}>
|
|
65
|
-
<FlexView padding={['xs', '0', '
|
|
65
|
+
<FlexView padding={['xs', '0', 's', '0']}>
|
|
66
66
|
{isSocialEnabled ? (
|
|
67
67
|
<>
|
|
68
68
|
<SocialLoginList options={features?.socials} />
|
|
@@ -29,7 +29,7 @@ export function ConnectingExternalView() {
|
|
|
29
29
|
const { data } = useSnapshot(RouterController.state);
|
|
30
30
|
const { walletImages } = useSnapshot(AssetController.state);
|
|
31
31
|
const { connect } = useInternalAppKit();
|
|
32
|
-
const {
|
|
32
|
+
const { padding } = useCustomDimensions();
|
|
33
33
|
const [errorType, setErrorType] = useState<BodyErrorType>();
|
|
34
34
|
const bodyMessage = getMessage({ walletName: data?.wallet?.name, errorType });
|
|
35
35
|
|
|
@@ -92,13 +92,13 @@ export function ConnectingExternalView() {
|
|
|
92
92
|
}, [onConnect]);
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
|
-
<ScrollView
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
>
|
|
95
|
+
<ScrollView
|
|
96
|
+
bounces={false}
|
|
97
|
+
fadingEdgeLength={20}
|
|
98
|
+
style={{ paddingHorizontal: padding }}
|
|
99
|
+
contentContainerStyle={styles.container}
|
|
100
|
+
>
|
|
101
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '0', 'l']}>
|
|
102
102
|
<LoadingThumbnail paused={!!errorType}>
|
|
103
103
|
<WalletImage
|
|
104
104
|
size="xl"
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
ConnectionsController,
|
|
13
13
|
EventsController,
|
|
14
|
+
ModalController,
|
|
14
15
|
OptionsController,
|
|
15
16
|
RouterController,
|
|
16
17
|
SnackController
|
|
@@ -49,6 +50,8 @@ export function ConnectingSiweView() {
|
|
|
49
50
|
properties: { network, isSmartAccount }
|
|
50
51
|
});
|
|
51
52
|
|
|
53
|
+
ModalController.close();
|
|
54
|
+
|
|
52
55
|
return session;
|
|
53
56
|
} catch (error) {
|
|
54
57
|
SnackController.showError('Signature declined');
|
|
@@ -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,29 @@ export function ConnectingSocialView() {
|
|
|
74
75
|
}, [wcUri, onConnect]);
|
|
75
76
|
|
|
76
77
|
return (
|
|
77
|
-
<
|
|
78
|
-
alignItems="center"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</
|
|
100
|
-
|
|
101
|
-
Continue in your browser
|
|
102
|
-
</Text>
|
|
103
|
-
</FlexView>
|
|
78
|
+
<ScrollView bounces={false} fadingEdgeLength={20} style={{ paddingHorizontal: padding }}>
|
|
79
|
+
<FlexView alignItems="center" alignSelf="center" padding={['2xl', 'l', '2xl', 'l']}>
|
|
80
|
+
<LoadingThumbnail paused={!!error}>
|
|
81
|
+
<Logo logo={data?.socialProvider ?? 'more'} height={72} width={72} />
|
|
82
|
+
{error ? (
|
|
83
|
+
<IconBox
|
|
84
|
+
icon={'close'}
|
|
85
|
+
border
|
|
86
|
+
background
|
|
87
|
+
backgroundColor="icon-box-bg-error-100"
|
|
88
|
+
size="sm"
|
|
89
|
+
iconColor="error-100"
|
|
90
|
+
style={styles.errorIcon}
|
|
91
|
+
/>
|
|
92
|
+
) : null}
|
|
93
|
+
</LoadingThumbnail>
|
|
94
|
+
<Text style={styles.continueText} variant="paragraph-500">
|
|
95
|
+
Continue with {StringUtil.capitalize(data?.socialProvider ?? 'Login')}
|
|
96
|
+
</Text>
|
|
97
|
+
<Text variant="small-400" color="fg-200">
|
|
98
|
+
Continue in your browser
|
|
99
|
+
</Text>
|
|
100
|
+
</FlexView>
|
|
101
|
+
</ScrollView>
|
|
104
102
|
);
|
|
105
103
|
}
|
|
@@ -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"
|