@reown/appkit-ui-react-native 0.0.0-fix-email-login-20241010173711 → 0.0.0-fix-fetch-error-improvements-20241114122508
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/assets/svg/ArrowBottomCircle.js +21 -0
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/commonjs/assets/svg/Farcaster.js +28 -0
- package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
- package/lib/commonjs/assets/svg/More.js.map +1 -0
- package/lib/commonjs/assets/svg/Paperplane.js +21 -0
- package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
- package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
- package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
- package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/visual/Google.js +59 -0
- package/lib/commonjs/assets/visual/Google.js.map +1 -0
- package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
- package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
- package/lib/commonjs/assets/visual/Pencil.js +81 -0
- package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
- package/lib/commonjs/components/wui-card/index.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js.map +1 -1
- package/lib/commonjs/components/wui-icon/index.js +18 -7
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-lean-text/index.js +15 -0
- package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
- package/lib/commonjs/components/wui-lean-view/index.js +15 -0
- package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
- package/lib/commonjs/components/wui-text/index.js +2 -2
- package/lib/commonjs/components/wui-text/index.js.map +1 -1
- package/lib/commonjs/components/wui-visual/index.js +6 -0
- package/lib/commonjs/components/wui-visual/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +13 -7
- package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-balance/index.js +27 -0
- package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/index.js +36 -0
- package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/styles.js +21 -0
- package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-button/index.js +3 -3
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +11 -9
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +3 -3
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
- package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/index.js +10 -10
- package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-social/index.js +54 -0
- package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
- package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/index.js +78 -0
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo/index.js +4 -2
- package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
- package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
- package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +14 -10
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/index.js +48 -21
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-otp/index.js +1 -2
- package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
- package/lib/commonjs/composites/wui-promo/index.js +48 -0
- package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
- package/lib/commonjs/composites/wui-qr-code/index.js +16 -12
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +22 -8
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/index.js +37 -0
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/commonjs/index.js +70 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js +2 -2
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/layout/wui-separator/index.js +4 -4
- package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +4 -2
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +139 -0
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
- package/lib/commonjs/utils/UiUtil.js +15 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/module/assets/svg/Farcaster.js +20 -0
- package/lib/module/assets/svg/Farcaster.js.map +1 -0
- package/lib/module/assets/svg/FarcasterSquare.js +20 -0
- package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/module/assets/svg/More.js +22 -0
- package/lib/module/assets/svg/More.js.map +1 -0
- package/lib/module/assets/svg/Paperplane.js +13 -0
- package/lib/module/assets/svg/Paperplane.js.map +1 -0
- package/lib/module/assets/svg/WalletConnect.js +18 -1
- package/lib/module/assets/svg/WalletConnect.js.map +1 -1
- package/lib/module/assets/svg/X.js +27 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/visual/Google.js +51 -0
- package/lib/module/assets/visual/Google.js.map +1 -0
- package/lib/module/assets/visual/Lightbulb.js +50 -0
- package/lib/module/assets/visual/Lightbulb.js.map +1 -0
- package/lib/module/assets/visual/Pencil.js +73 -0
- package/lib/module/assets/visual/Pencil.js.map +1 -0
- package/lib/module/components/wui-card/index.js +1 -1
- package/lib/module/components/wui-card/styles.js +1 -1
- package/lib/module/components/wui-card/styles.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +16 -7
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-lean-text/index.js +10 -0
- package/lib/module/components/wui-lean-text/index.js.map +1 -0
- package/lib/module/components/wui-lean-view/index.js +10 -0
- package/lib/module/components/wui-lean-view/index.js.map +1 -0
- package/lib/module/components/wui-text/index.js +2 -2
- package/lib/module/components/wui-text/index.js.map +1 -1
- package/lib/module/components/wui-visual/index.js +6 -0
- package/lib/module/components/wui-visual/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +13 -7
- package/lib/module/composites/wui-account-button/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +6 -6
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-account-pill/index.js +60 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +23 -0
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/module/composites/wui-avatar/styles.js +2 -1
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-balance/index.js +21 -0
- package/lib/module/composites/wui-balance/index.js.map +1 -0
- package/lib/module/composites/wui-banner/index.js +29 -0
- package/lib/module/composites/wui-banner/index.js.map +1 -0
- package/lib/module/composites/wui-banner/styles.js +15 -0
- package/lib/module/composites/wui-banner/styles.js.map +1 -0
- package/lib/module/composites/wui-button/index.js +3 -3
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +3 -3
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +12 -10
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +3 -3
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-compatible-network/index.js +52 -0
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/module/composites/wui-connect-button/styles.js +1 -1
- package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/module/composites/wui-icon-box/index.js +17 -1
- package/lib/module/composites/wui-icon-box/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/styles.js +1 -1
- package/lib/module/composites/wui-input-text/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item/index.js +10 -10
- package/lib/module/composites/wui-list-item/index.js.map +1 -1
- package/lib/module/composites/wui-list-item/styles.js +4 -3
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-list-social/index.js +47 -0
- package/lib/module/composites/wui-list-social/index.js.map +1 -0
- package/lib/module/composites/wui-list-social/styles.js +28 -0
- package/lib/module/composites/wui-list-social/styles.js.map +1 -0
- package/lib/module/composites/wui-list-token/index.js +71 -0
- package/lib/module/composites/wui-list-token/index.js.map +1 -0
- package/lib/module/composites/wui-list-token/styles.js +24 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/index.js +57 -0
- package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/styles.js +10 -0
- package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/utils.js +79 -0
- package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/module/composites/wui-list-wallet/index.js +5 -4
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-logo/index.js +4 -2
- package/lib/module/composites/wui-logo/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/index.js +6 -3
- package/lib/module/composites/wui-logo-select/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/styles.js +3 -3
- package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +15 -11
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +5 -5
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-network-image/index.js +49 -22
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +2 -0
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-otp/index.js +2 -3
- package/lib/module/composites/wui-otp/index.js.map +1 -1
- package/lib/module/composites/wui-promo/index.js +42 -0
- package/lib/module/composites/wui-promo/index.js.map +1 -0
- package/lib/module/composites/wui-qr-code/index.js +16 -12
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +1 -0
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +3 -2
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +22 -8
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +2 -3
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-token-button/index.js +30 -0
- package/lib/module/composites/wui-token-button/index.js.map +1 -0
- package/lib/module/composites/wui-token-button/styles.js +18 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/index.js +66 -0
- package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
- package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/module/composites/wui-wallet-image/styles.js +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js +2 -2
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js +4 -4
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +4 -2
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +134 -0
- package/lib/module/utils/TransactionUtil.js.map +1 -0
- package/lib/module/utils/UiUtil.js +15 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
- package/lib/typescript/assets/svg/More.d.ts +4 -0
- package/lib/typescript/assets/svg/More.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
- package/lib/typescript/assets/svg/X.d.ts +4 -0
- package/lib/typescript/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Google.d.ts +4 -0
- package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
- package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
- package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
- package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
- package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
- package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
- package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
- package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +10 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
- package/lib/typescript/utils/TypesUtil.d.ts +6 -5
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +1 -0
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
- package/src/assets/svg/Farcaster.tsx +15 -0
- package/src/assets/svg/FarcasterSquare.tsx +15 -0
- package/src/assets/svg/More.tsx +16 -0
- package/src/assets/svg/Paperplane.tsx +12 -0
- package/src/assets/svg/WalletConnect.tsx +24 -1
- package/src/assets/svg/X.tsx +26 -0
- package/src/assets/visual/Google.tsx +43 -0
- package/src/assets/visual/Lightbulb.tsx +54 -0
- package/src/assets/visual/Pencil.tsx +80 -0
- package/src/components/wui-card/index.tsx +1 -1
- package/src/components/wui-card/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +17 -8
- package/src/components/wui-lean-text/index.tsx +10 -0
- package/src/components/wui-lean-view/index.tsx +10 -0
- package/src/components/wui-text/index.tsx +4 -3
- package/src/components/wui-visual/index.tsx +6 -0
- package/src/composites/wui-account-button/index.tsx +17 -8
- package/src/composites/wui-account-button/styles.ts +6 -6
- package/src/composites/wui-account-pill/index.tsx +64 -0
- package/src/composites/wui-account-pill/styles.ts +23 -0
- package/src/composites/wui-avatar/styles.ts +2 -1
- package/src/composites/wui-balance/index.tsx +25 -0
- package/src/composites/wui-banner/index.tsx +28 -0
- package/src/composites/wui-banner/styles.ts +15 -0
- package/src/composites/wui-button/index.tsx +12 -10
- package/src/composites/wui-button/styles.ts +3 -3
- package/src/composites/wui-chip/index.tsx +14 -13
- package/src/composites/wui-chip/styles.ts +3 -3
- package/src/composites/wui-compatible-network/index.tsx +64 -0
- package/src/composites/wui-connect-button/styles.ts +1 -1
- package/src/composites/wui-icon-box/index.tsx +18 -2
- package/src/composites/wui-input-text/styles.ts +1 -1
- package/src/composites/wui-list-item/index.tsx +15 -14
- package/src/composites/wui-list-item/styles.ts +4 -3
- package/src/composites/wui-list-social/index.tsx +65 -0
- package/src/composites/wui-list-social/styles.ts +28 -0
- package/src/composites/wui-list-token/index.tsx +83 -0
- package/src/composites/wui-list-token/styles.ts +24 -0
- package/src/composites/wui-list-transaction/index.tsx +65 -0
- package/src/composites/wui-list-transaction/styles.ts +10 -0
- package/src/composites/wui-list-transaction/utils.ts +83 -0
- package/src/composites/wui-list-wallet/index.tsx +7 -6
- package/src/composites/wui-logo/index.tsx +4 -2
- package/src/composites/wui-logo-select/index.tsx +7 -4
- package/src/composites/wui-logo-select/styles.ts +3 -3
- package/src/composites/wui-network-button/index.tsx +22 -15
- package/src/composites/wui-network-button/styles.ts +5 -5
- package/src/composites/wui-network-image/index.tsx +57 -21
- package/src/composites/wui-network-image/styles.ts +6 -0
- package/src/composites/wui-otp/index.tsx +2 -4
- package/src/composites/wui-promo/index.tsx +42 -0
- package/src/composites/wui-qr-code/index.tsx +18 -11
- package/src/composites/wui-snackbar/index.tsx +1 -0
- package/src/composites/wui-snackbar/styles.ts +3 -2
- package/src/composites/wui-tabs/index.tsx +33 -9
- package/src/composites/wui-tabs/styles.ts +2 -3
- package/src/composites/wui-token-button/index.tsx +29 -0
- package/src/composites/wui-token-button/styles.ts +18 -0
- package/src/composites/wui-transaction-visual/index.tsx +78 -0
- package/src/composites/wui-transaction-visual/styles.ts +36 -0
- package/src/composites/wui-wallet-image/styles.ts +1 -1
- package/src/index.ts +13 -0
- package/src/layout/wui-flex/index.tsx +3 -3
- package/src/layout/wui-separator/index.tsx +7 -4
- package/src/utils/ThemeUtil.ts +4 -2
- package/src/utils/TransactionUtil.ts +173 -0
- package/src/utils/TypesUtil.ts +58 -6
- package/src/utils/UiUtil.ts +18 -0
- package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
- package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/module/assets/svg/Twitter.js +0 -37
- package/lib/module/assets/svg/Twitter.js.map +0 -1
- package/lib/module/assets/svg/TwitterIcon.js +0 -11
- package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
- package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
- package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
- package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
- package/src/assets/svg/Twitter.tsx +0 -27
- package/src/assets/svg/TwitterIcon.tsx +0 -10
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { TransactionStatus } from '@reown/appkit-common-react-native';
|
|
2
|
+
import type { IconType, TransactionType } from '../../utils/TypesUtil';
|
|
3
|
+
|
|
4
|
+
export const getIcon = (type: TransactionType): IconType => {
|
|
5
|
+
switch (type) {
|
|
6
|
+
case 'approve':
|
|
7
|
+
case 'execute':
|
|
8
|
+
return 'checkmark';
|
|
9
|
+
case 'repay':
|
|
10
|
+
case 'send':
|
|
11
|
+
case 'stake':
|
|
12
|
+
case 'withdraw':
|
|
13
|
+
return 'arrowTop';
|
|
14
|
+
case 'burn':
|
|
15
|
+
case 'cancel':
|
|
16
|
+
return 'close';
|
|
17
|
+
case 'trade':
|
|
18
|
+
return 'swapHorizontal';
|
|
19
|
+
case 'deploy':
|
|
20
|
+
return 'arrowRight';
|
|
21
|
+
default:
|
|
22
|
+
return 'arrowBottom';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//Utils
|
|
27
|
+
export const getIconColor = (status?: TransactionStatus) => {
|
|
28
|
+
switch (status) {
|
|
29
|
+
case 'confirmed':
|
|
30
|
+
return 'success-100';
|
|
31
|
+
case 'failed':
|
|
32
|
+
return 'error-100';
|
|
33
|
+
case 'pending':
|
|
34
|
+
return 'fg-200';
|
|
35
|
+
default:
|
|
36
|
+
return 'fg-200';
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const getTypeLabel = (type?: TransactionType) => {
|
|
41
|
+
if (!type) {
|
|
42
|
+
return 'Unknown';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
switch (type) {
|
|
46
|
+
case 'approve':
|
|
47
|
+
return 'Approved';
|
|
48
|
+
case 'bought':
|
|
49
|
+
return 'Bought';
|
|
50
|
+
case 'borrow':
|
|
51
|
+
return 'Borrowed';
|
|
52
|
+
case 'burn':
|
|
53
|
+
return 'Burnt';
|
|
54
|
+
case 'cancel':
|
|
55
|
+
return 'Canceled';
|
|
56
|
+
case 'claim':
|
|
57
|
+
return 'Claimed';
|
|
58
|
+
case 'deploy':
|
|
59
|
+
return 'Deployed';
|
|
60
|
+
case 'deposit':
|
|
61
|
+
return 'Deposited';
|
|
62
|
+
case 'execute':
|
|
63
|
+
return 'Executed';
|
|
64
|
+
case 'mint':
|
|
65
|
+
return 'Minted';
|
|
66
|
+
case 'receive':
|
|
67
|
+
return 'Received';
|
|
68
|
+
case 'repay':
|
|
69
|
+
return 'Repaid';
|
|
70
|
+
case 'send':
|
|
71
|
+
return 'Sent';
|
|
72
|
+
case 'stake':
|
|
73
|
+
return 'Staked';
|
|
74
|
+
case 'trade':
|
|
75
|
+
return 'Swapped';
|
|
76
|
+
case 'unstake':
|
|
77
|
+
return 'Unstaked';
|
|
78
|
+
case 'withdraw':
|
|
79
|
+
return 'Withdrawn';
|
|
80
|
+
default:
|
|
81
|
+
return 'Unknown';
|
|
82
|
+
}
|
|
83
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, Pressable,
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Text } from '../../components/wui-text';
|
|
3
3
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
@@ -6,9 +6,10 @@ import type { IconType, TagType } from '../../utils/TypesUtil';
|
|
|
6
6
|
import { Tag } from '../wui-tag';
|
|
7
7
|
import { WalletImage } from '../wui-wallet-image';
|
|
8
8
|
import { Icon } from '../../components/wui-icon';
|
|
9
|
+
import { LeanView } from '../../components/wui-lean-view';
|
|
10
|
+
import { IconBox } from '../wui-icon-box';
|
|
9
11
|
|
|
10
12
|
import styles from './styles';
|
|
11
|
-
import { IconBox } from '../wui-icon-box';
|
|
12
13
|
|
|
13
14
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
14
15
|
|
|
@@ -67,7 +68,7 @@ export function ListWallet({
|
|
|
67
68
|
|
|
68
69
|
function imageTemplate() {
|
|
69
70
|
return (
|
|
70
|
-
<
|
|
71
|
+
<LeanView>
|
|
71
72
|
<WalletImage
|
|
72
73
|
style={[styles.image, disabled && styles.imageDisabled]}
|
|
73
74
|
imageSrc={imageSrc}
|
|
@@ -76,7 +77,7 @@ export function ListWallet({
|
|
|
76
77
|
size="sm"
|
|
77
78
|
/>
|
|
78
79
|
{templateInstalled()}
|
|
79
|
-
</
|
|
80
|
+
</LeanView>
|
|
80
81
|
);
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -116,12 +117,12 @@ export function ListWallet({
|
|
|
116
117
|
onPressOut={setStartValue}
|
|
117
118
|
testID={testID}
|
|
118
119
|
>
|
|
119
|
-
<
|
|
120
|
+
<LeanView style={styles.leftSide}>
|
|
120
121
|
{imageTemplate()}
|
|
121
122
|
<Text variant="paragraph-500" style={styles.name} color={disabled ? 'fg-300' : 'fg-100'}>
|
|
122
123
|
{name}
|
|
123
124
|
</Text>
|
|
124
|
-
</
|
|
125
|
+
</LeanView>
|
|
125
126
|
{iconTemplate()}
|
|
126
127
|
</AnimatedPressable>
|
|
127
128
|
);
|
|
@@ -6,9 +6,11 @@ import type { LogoType } from '../../utils/TypesUtil';
|
|
|
6
6
|
export interface LogoProps {
|
|
7
7
|
logo: LogoType;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
height?: number;
|
|
10
|
+
width?: number;
|
|
9
11
|
style?: SvgProps['style'];
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export function Logo({ logo, style }: LogoProps) {
|
|
13
|
-
return <Icon width={
|
|
14
|
+
export function Logo({ width = 40, height = 40, logo, style }: LogoProps) {
|
|
15
|
+
return <Icon width={width} height={height} name={logo} style={style} />;
|
|
14
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animated, Pressable } from 'react-native';
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
3
3
|
import { useTheme } from '../../hooks/useTheme';
|
|
4
4
|
import type { LogoType } from '../../utils/TypesUtil';
|
|
@@ -10,20 +10,23 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
10
10
|
export interface LogoSelectProps {
|
|
11
11
|
logo: LogoType;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
onPress?: () => void;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export function LogoSelect({ logo, disabled }: LogoSelectProps) {
|
|
17
|
+
export function LogoSelect({ logo, disabled, style, onPress }: LogoSelectProps) {
|
|
16
18
|
const Theme = useTheme();
|
|
17
19
|
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
18
|
-
Theme['gray-glass-
|
|
20
|
+
Theme['gray-glass-002'],
|
|
19
21
|
Theme['gray-glass-010']
|
|
20
22
|
);
|
|
21
23
|
|
|
22
24
|
return (
|
|
23
25
|
<AnimatedPressable
|
|
26
|
+
onPress={onPress}
|
|
24
27
|
onPressIn={setEndValue}
|
|
25
28
|
onPressOut={setStartValue}
|
|
26
|
-
style={[styles.box, { backgroundColor: animatedValue }]}
|
|
29
|
+
style={[styles.box, { backgroundColor: animatedValue }, style]}
|
|
27
30
|
disabled={disabled}
|
|
28
31
|
>
|
|
29
32
|
<Logo logo={logo} style={disabled && styles.disabled} />
|
|
@@ -3,9 +3,9 @@ import { BorderRadius } from '../../utils/ThemeUtil';
|
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
box: {
|
|
6
|
-
height:
|
|
7
|
-
width:
|
|
8
|
-
borderRadius: BorderRadius.
|
|
6
|
+
height: 56,
|
|
7
|
+
width: 56,
|
|
8
|
+
borderRadius: BorderRadius.s,
|
|
9
9
|
alignItems: 'center',
|
|
10
10
|
justifyContent: 'center'
|
|
11
11
|
},
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
1
|
+
import { Animated, Pressable, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
import { Image } from '../../components/wui-image';
|
|
3
3
|
import { Text } from '../../components/wui-text';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { IconBox } from '../wui-icon-box';
|
|
6
|
+
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
7
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
6
8
|
|
|
7
9
|
import styles from './styles';
|
|
8
|
-
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
9
|
-
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
10
10
|
|
|
11
11
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
12
12
|
|
|
13
13
|
export interface NetworkButtonProps {
|
|
14
|
-
children: string;
|
|
14
|
+
children: string | React.ReactNode;
|
|
15
15
|
onPress: () => void;
|
|
16
|
+
background?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
16
18
|
imageSrc?: string;
|
|
17
19
|
imageHeaders?: Record<string, string>;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
style?: StyleProp<ViewStyle>;
|
|
20
20
|
loading?: boolean;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function NetworkButton({
|
|
25
|
+
children,
|
|
26
|
+
onPress,
|
|
27
|
+
background = true,
|
|
28
|
+
disabled,
|
|
24
29
|
imageSrc,
|
|
25
30
|
imageHeaders,
|
|
26
|
-
disabled,
|
|
27
|
-
onPress,
|
|
28
|
-
style,
|
|
29
31
|
loading,
|
|
30
|
-
|
|
32
|
+
style
|
|
31
33
|
}: NetworkButtonProps) {
|
|
32
34
|
const Theme = useTheme();
|
|
33
35
|
const textColor = disabled ? 'fg-300' : 'fg-100';
|
|
34
36
|
|
|
35
37
|
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
36
|
-
Theme['gray-glass-005'],
|
|
38
|
+
background ? Theme['gray-glass-005'] : 'transparent',
|
|
37
39
|
Theme['gray-glass-010']
|
|
38
40
|
);
|
|
39
41
|
|
|
40
42
|
const backgroundColor = disabled ? Theme['gray-glass-015'] : animatedValue;
|
|
43
|
+
const borderColor = background ? Theme['gray-glass-005'] : 'transparent';
|
|
41
44
|
|
|
42
45
|
return (
|
|
43
46
|
<AnimatedPressable
|
|
44
|
-
style={[styles.container, { backgroundColor, borderColor
|
|
47
|
+
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
45
48
|
onPress={onPress}
|
|
46
49
|
onPressIn={setEndValue}
|
|
47
50
|
onPressOut={setStartValue}
|
|
@@ -55,9 +58,13 @@ export function NetworkButton({
|
|
|
55
58
|
imageHeaders={imageHeaders}
|
|
56
59
|
borderColor={Theme['gray-glass-005']}
|
|
57
60
|
/>
|
|
58
|
-
|
|
59
|
-
{children}
|
|
60
|
-
|
|
61
|
+
{typeof children === 'string' ? (
|
|
62
|
+
<Text style={styles.children} variant="paragraph-600" color={textColor}>
|
|
63
|
+
{children}
|
|
64
|
+
</Text>
|
|
65
|
+
) : (
|
|
66
|
+
<View style={styles.children}>{children}</View>
|
|
67
|
+
)}
|
|
61
68
|
</AnimatedPressable>
|
|
62
69
|
);
|
|
63
70
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { Spacing } from '../../utils/ThemeUtil';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
@@ -7,11 +7,11 @@ export default StyleSheet.create({
|
|
|
7
7
|
height: 40,
|
|
8
8
|
alignItems: 'center',
|
|
9
9
|
justifyContent: 'center',
|
|
10
|
-
borderWidth:
|
|
11
|
-
borderRadius:
|
|
10
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
11
|
+
borderRadius: BorderRadius.full,
|
|
12
12
|
paddingHorizontal: Spacing['2xs']
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
children: {
|
|
15
15
|
paddingHorizontal: Spacing['2xs']
|
|
16
16
|
},
|
|
17
17
|
loader: {
|
|
@@ -20,7 +20,7 @@ export default StyleSheet.create({
|
|
|
20
20
|
image: {
|
|
21
21
|
height: 24,
|
|
22
22
|
width: 24,
|
|
23
|
-
borderRadius:
|
|
23
|
+
borderRadius: BorderRadius.full,
|
|
24
24
|
borderWidth: 2,
|
|
25
25
|
paddingLeft: Spacing['4xs']
|
|
26
26
|
},
|
|
@@ -1,49 +1,85 @@
|
|
|
1
1
|
import { Path, Svg, Image, Defs, Pattern } from 'react-native-svg';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import { useTheme } from '../../hooks/useTheme';
|
|
3
4
|
import type { SizeType } from '../../utils/TypesUtil';
|
|
4
|
-
import {
|
|
5
|
+
import { Icon } from '../../components/wui-icon';
|
|
6
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
7
|
+
import { PathLg, PathNormal, PathSmall, PathXS } from './styles';
|
|
5
8
|
|
|
6
9
|
export interface NetworkImageProps {
|
|
7
10
|
imageSrc?: string;
|
|
8
11
|
imageHeaders?: Record<string, string>;
|
|
9
12
|
selected?: boolean;
|
|
10
|
-
size?: Exclude<SizeType, 'xl' | '
|
|
13
|
+
size?: Exclude<SizeType, 'xl' | 'xxs'>;
|
|
11
14
|
disabled?: boolean;
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
borderWidth?: number;
|
|
12
18
|
}
|
|
13
19
|
|
|
20
|
+
const sizeToPath = {
|
|
21
|
+
lg: PathLg,
|
|
22
|
+
md: PathNormal,
|
|
23
|
+
sm: PathSmall,
|
|
24
|
+
xs: PathXS
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const sizeToHeight = {
|
|
28
|
+
lg: 96,
|
|
29
|
+
md: 56,
|
|
30
|
+
sm: 40,
|
|
31
|
+
xs: 20
|
|
32
|
+
};
|
|
33
|
+
|
|
14
34
|
export function NetworkImage({
|
|
15
35
|
imageSrc,
|
|
16
36
|
imageHeaders,
|
|
17
37
|
disabled,
|
|
18
38
|
selected,
|
|
19
|
-
size = 'md'
|
|
39
|
+
size = 'md',
|
|
40
|
+
style,
|
|
41
|
+
borderColor,
|
|
42
|
+
borderWidth = 1
|
|
20
43
|
}: NetworkImageProps) {
|
|
21
44
|
const Theme = useTheme();
|
|
22
|
-
const isLg = size === 'lg';
|
|
23
|
-
const svgWidth = isLg ? 96 : 56;
|
|
24
|
-
const svgHeight = isLg ? 96 : 56;
|
|
25
45
|
const svgStroke = selected ? Theme['accent-100'] : Theme['gray-glass-010'];
|
|
26
46
|
const opacity = disabled ? 0.5 : 1;
|
|
27
47
|
|
|
28
48
|
return (
|
|
29
|
-
<Svg
|
|
49
|
+
<Svg
|
|
50
|
+
width={sizeToHeight[size]}
|
|
51
|
+
height={sizeToHeight[size]}
|
|
52
|
+
stroke={borderColor ?? svgStroke}
|
|
53
|
+
strokeWidth={borderWidth}
|
|
54
|
+
style={style}
|
|
55
|
+
>
|
|
30
56
|
<Defs>
|
|
31
|
-
<Pattern id="image-pattern"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
57
|
+
<Pattern id="image-pattern">
|
|
58
|
+
{imageSrc ? (
|
|
59
|
+
<Image
|
|
60
|
+
height={sizeToHeight[size]}
|
|
61
|
+
width={sizeToHeight[size]}
|
|
62
|
+
opacity={opacity}
|
|
63
|
+
href={{ uri: imageSrc, headers: imageHeaders }}
|
|
64
|
+
/>
|
|
65
|
+
) : (
|
|
66
|
+
<FlexView
|
|
67
|
+
alignItems="center"
|
|
68
|
+
justifyContent="center"
|
|
69
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
70
|
+
style={{
|
|
71
|
+
height: sizeToHeight[size],
|
|
72
|
+
width: sizeToHeight[size],
|
|
73
|
+
backgroundColor: 'transparent'
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
<Icon name="networkPlaceholder" size={size} color="fg-200" />
|
|
77
|
+
</FlexView>
|
|
78
|
+
)}
|
|
40
79
|
</Pattern>
|
|
41
80
|
</Defs>
|
|
42
|
-
<Path
|
|
43
|
-
|
|
44
|
-
opacity={opacity}
|
|
45
|
-
fill={imageSrc ? 'url(#image-pattern)' : Theme['gray-glass-005']}
|
|
46
|
-
/>
|
|
81
|
+
{!imageSrc && <Path d={sizeToPath[size]} opacity={opacity} fill={Theme['gray-glass-005']} />}
|
|
82
|
+
<Path d={sizeToPath[size]} opacity={opacity} fill="url(#image-pattern)" />
|
|
47
83
|
</Svg>
|
|
48
84
|
);
|
|
49
85
|
}
|
|
@@ -3,3 +3,9 @@ export const PathLg =
|
|
|
3
3
|
|
|
4
4
|
export const PathNormal =
|
|
5
5
|
'M24.0002 2.34328C26.4754 0.914219 29.525 0.914219 32.0002 2.34328L48.2489 11.7245C50.7241 13.1535 52.2489 15.7946 52.2489 18.6527V37.4151C52.2489 40.2732 50.7241 42.9142 48.2489 44.3433L32.0002 53.7245C29.525 55.1535 26.4754 55.1535 24.0002 53.7245L7.75146 44.3433C5.27625 42.9142 3.75146 40.2732 3.75146 37.4151V18.6527C3.75146 15.7946 5.27626 13.1535 7.75146 11.7245L24.0002 2.34328Z';
|
|
6
|
+
|
|
7
|
+
export const PathSmall =
|
|
8
|
+
'M17.1428 1.67377C18.9108 0.653013 21.0891 0.653014 22.8571 1.67377L34.4633 8.37463C36.2313 9.39539 37.3205 11.2818 37.3205 13.3233V26.7251C37.3205 28.7666 36.2313 30.653 34.4633 31.6738L22.8571 38.3746C21.0891 39.3954 18.9108 39.3954 17.1428 38.3746L5.53659 31.6738C3.76858 30.653 2.67944 28.7666 2.67944 26.7251V13.3233C2.67944 11.2818 3.76858 9.39539 5.53659 8.37463L17.1428 1.67377Z';
|
|
9
|
+
|
|
10
|
+
export const PathXS =
|
|
11
|
+
'M8.57153 0.836886C9.45553 0.326507 10.5447 0.326507 11.4287 0.836886L17.2318 4.18731C18.1158 4.69769 18.6604 5.64091 18.6604 6.66167V13.3625C18.6604 14.3833 18.1158 15.3265 17.2318 15.8369L11.4287 19.1873C10.5447 19.6977 9.45553 19.6977 8.57153 19.1873L2.76841 15.8369C1.88441 15.3265 1.33984 14.3833 1.33984 13.3625V6.66167C1.33984 5.64091 1.88441 4.69769 2.76841 4.18731L8.57153 0.836886Z';
|
|
@@ -3,8 +3,7 @@ import {
|
|
|
3
3
|
type NativeSyntheticEvent,
|
|
4
4
|
TextInput,
|
|
5
5
|
type TextInputKeyPressEventData,
|
|
6
|
-
View
|
|
7
|
-
Platform
|
|
6
|
+
View
|
|
8
7
|
} from 'react-native';
|
|
9
8
|
import { InputNumeric, type InputNumericProps } from '../wui-input-numeric';
|
|
10
9
|
import styles from './styles';
|
|
@@ -90,8 +89,7 @@ export function Otp({ length, style, onChangeText, autoFocus }: OtpProps) {
|
|
|
90
89
|
inputRef={refArray[index]}
|
|
91
90
|
onChangeText={text => _onChangeText(text, index)}
|
|
92
91
|
onKeyPress={(e: any) => onKeyPress(e, index)}
|
|
93
|
-
|
|
94
|
-
autoComplete={Platform.OS === 'android' ? 'sms-otp' : 'one-time-code'}
|
|
92
|
+
autoComplete="off"
|
|
95
93
|
/>
|
|
96
94
|
))}
|
|
97
95
|
</View>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Icon } from '../../components/wui-icon';
|
|
3
|
+
import { Text } from '../../components/wui-text';
|
|
4
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
5
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
6
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
7
|
+
|
|
8
|
+
export interface PromoProps {
|
|
9
|
+
text: string;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
onPress?: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function Promo({ text, style, onPress }: PromoProps) {
|
|
15
|
+
const Theme = useTheme();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Pressable style={style} onPress={onPress}>
|
|
19
|
+
<FlexView
|
|
20
|
+
alignItems="center"
|
|
21
|
+
justifyContent="center"
|
|
22
|
+
flexDirection="row"
|
|
23
|
+
padding={['xs', 'xs', 'xs', 'm']}
|
|
24
|
+
style={[styles.container, { backgroundColor: Theme['gray-glass-090'] }]}
|
|
25
|
+
>
|
|
26
|
+
<Text variant="small-600" color="bg-100">
|
|
27
|
+
{text}
|
|
28
|
+
</Text>
|
|
29
|
+
<Icon style={styles.icon} name="arrowRight" color="bg-100" size="xs" />
|
|
30
|
+
</FlexView>
|
|
31
|
+
</Pressable>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
borderRadius: BorderRadius.full
|
|
38
|
+
},
|
|
39
|
+
icon: {
|
|
40
|
+
marginLeft: Spacing['2xs']
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import Svg from 'react-native-svg';
|
|
4
4
|
import { Icon } from '../../components/wui-icon';
|
|
5
5
|
import { Image } from '../../components/wui-image';
|
|
@@ -8,29 +8,35 @@ import { Text } from '../../components/wui-text';
|
|
|
8
8
|
import { FlexView } from '../../layout/wui-flex';
|
|
9
9
|
import { QRCodeUtil } from '../../utils/QRCodeUtil';
|
|
10
10
|
import { BorderRadius, LightTheme, Spacing } from '../../utils/ThemeUtil';
|
|
11
|
+
import type { IconType } from '../../utils/TypesUtil';
|
|
11
12
|
import styles from './styles';
|
|
12
13
|
|
|
13
14
|
export interface QrCodeProps {
|
|
14
15
|
size: number;
|
|
15
16
|
uri?: string;
|
|
16
17
|
imageSrc?: string;
|
|
18
|
+
icon?: IconType;
|
|
17
19
|
testID?: string;
|
|
20
|
+
arenaClear?: boolean;
|
|
21
|
+
style?: StyleProp<ViewStyle>;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
|
-
export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
24
|
+
export function QrCode({ size, uri, imageSrc, testID, arenaClear, icon, style }: QrCodeProps) {
|
|
21
25
|
const Theme = LightTheme;
|
|
22
26
|
const containerPadding = Spacing.l;
|
|
23
27
|
const qrSize = size - containerPadding * 2;
|
|
28
|
+
const logoSize = arenaClear ? 0 : qrSize / 4;
|
|
29
|
+
|
|
24
30
|
const dots = useMemo(
|
|
25
|
-
() => (uri ? QRCodeUtil.generate(uri, qrSize,
|
|
26
|
-
[uri, qrSize]
|
|
31
|
+
() => (uri ? QRCodeUtil.generate(uri, qrSize, logoSize) : []),
|
|
32
|
+
[uri, qrSize, logoSize]
|
|
27
33
|
);
|
|
28
34
|
|
|
29
|
-
const shimmerTemplate = () => {
|
|
30
|
-
return <Shimmer width={size} height={size} borderRadius={BorderRadius.l} />;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
35
|
const logoTemplate = () => {
|
|
36
|
+
if (arenaClear) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
if (imageSrc) {
|
|
35
41
|
return (
|
|
36
42
|
<Image
|
|
@@ -45,7 +51,7 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
45
51
|
|
|
46
52
|
return (
|
|
47
53
|
<Icon
|
|
48
|
-
name=
|
|
54
|
+
name={icon ?? 'walletConnect'}
|
|
49
55
|
color="accent-100"
|
|
50
56
|
height={qrSize / 3.5}
|
|
51
57
|
width={qrSize / 3.5}
|
|
@@ -58,7 +64,8 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
58
64
|
<View
|
|
59
65
|
style={[
|
|
60
66
|
styles.container,
|
|
61
|
-
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding }
|
|
67
|
+
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding },
|
|
68
|
+
style
|
|
62
69
|
]}
|
|
63
70
|
testID={testID}
|
|
64
71
|
>
|
|
@@ -76,6 +83,6 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
76
83
|
</Text>
|
|
77
84
|
</View>
|
|
78
85
|
) : (
|
|
79
|
-
|
|
86
|
+
<Shimmer width={size} height={size} borderRadius={BorderRadius.l} />
|
|
80
87
|
);
|
|
81
88
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius } from '../../utils/ThemeUtil';
|
|
2
3
|
|
|
3
4
|
export default StyleSheet.create({
|
|
4
5
|
container: {
|
|
5
6
|
height: 40,
|
|
6
7
|
flexDirection: 'row',
|
|
7
8
|
paddingHorizontal: 8,
|
|
8
|
-
borderRadius:
|
|
9
|
-
borderWidth:
|
|
9
|
+
borderRadius: BorderRadius.full,
|
|
10
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
10
11
|
alignItems: 'center'
|
|
11
12
|
},
|
|
12
13
|
text: {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Animated,
|
|
4
|
+
Pressable,
|
|
5
|
+
View,
|
|
6
|
+
type LayoutChangeEvent,
|
|
7
|
+
type StyleProp,
|
|
8
|
+
type ViewStyle
|
|
9
|
+
} from 'react-native';
|
|
3
10
|
import { Icon } from '../../components/wui-icon';
|
|
4
11
|
import { Text } from '../../components/wui-text';
|
|
5
12
|
import { useTheme } from '../../hooks/useTheme';
|
|
@@ -8,13 +15,16 @@ import styles from './styles';
|
|
|
8
15
|
|
|
9
16
|
export interface TabsProps {
|
|
10
17
|
onTabChange: (index: number) => void;
|
|
11
|
-
tabs: TabOptionType[];
|
|
18
|
+
tabs: TabOptionType[] | string[];
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
12
20
|
}
|
|
13
21
|
|
|
14
|
-
export function Tabs({ tabs, onTabChange }: TabsProps) {
|
|
22
|
+
export function Tabs({ tabs, onTabChange, style }: TabsProps) {
|
|
15
23
|
const Theme = useTheme();
|
|
16
24
|
const [activeTab, setActiveTab] = useState(0);
|
|
17
25
|
const animatedPosition = useRef(new Animated.Value(0));
|
|
26
|
+
const [viewWidth, setViewWidth] = useState(1);
|
|
27
|
+
const tabWidth = Math.trunc(viewWidth / tabs.length) - 2;
|
|
18
28
|
|
|
19
29
|
const onTabPress = (index: number) => {
|
|
20
30
|
setActiveTab(index);
|
|
@@ -28,27 +38,41 @@ export function Tabs({ tabs, onTabChange }: TabsProps) {
|
|
|
28
38
|
|
|
29
39
|
const markPosition = animatedPosition.current.interpolate({
|
|
30
40
|
inputRange: [0, tabs.length - 1],
|
|
31
|
-
outputRange: [0,
|
|
41
|
+
outputRange: [0, tabWidth * (tabs.length - 1)]
|
|
32
42
|
});
|
|
33
43
|
|
|
44
|
+
const onLayout = (event: LayoutChangeEvent) => {
|
|
45
|
+
const { width } = event.nativeEvent.layout;
|
|
46
|
+
setViewWidth(width);
|
|
47
|
+
};
|
|
48
|
+
|
|
34
49
|
return (
|
|
35
|
-
<View
|
|
50
|
+
<View
|
|
51
|
+
style={[styles.container, { backgroundColor: Theme['gray-glass-002'] }, style]}
|
|
52
|
+
onLayout={onLayout}
|
|
53
|
+
>
|
|
36
54
|
<Animated.View
|
|
37
55
|
style={[
|
|
38
56
|
styles.activeMark,
|
|
39
57
|
{
|
|
40
58
|
backgroundColor: Theme['gray-glass-005'],
|
|
41
59
|
borderColor: Theme['gray-glass-005'],
|
|
42
|
-
left: markPosition
|
|
60
|
+
left: markPosition,
|
|
61
|
+
width: tabWidth
|
|
43
62
|
}
|
|
44
63
|
]}
|
|
45
64
|
/>
|
|
46
65
|
{tabs.map((option, index) => {
|
|
47
66
|
const isActive = index === activeTab;
|
|
67
|
+
const isString = typeof option === 'string';
|
|
48
68
|
|
|
49
69
|
return (
|
|
50
|
-
<Pressable
|
|
51
|
-
{
|
|
70
|
+
<Pressable
|
|
71
|
+
onPress={() => onTabPress(index)}
|
|
72
|
+
key={isString ? option : option.label}
|
|
73
|
+
style={[styles.tabItem, { width: tabWidth }]}
|
|
74
|
+
>
|
|
75
|
+
{!isString && option.icon && (
|
|
52
76
|
<Icon
|
|
53
77
|
name={option.icon}
|
|
54
78
|
size="xs"
|
|
@@ -57,7 +81,7 @@ export function Tabs({ tabs, onTabChange }: TabsProps) {
|
|
|
57
81
|
/>
|
|
58
82
|
)}
|
|
59
83
|
<Text variant="small-600" color={isActive ? 'fg-100' : 'fg-200'}>
|
|
60
|
-
{option.label}
|
|
84
|
+
{isString ? option : option.label}
|
|
61
85
|
</Text>
|
|
62
86
|
</Pressable>
|
|
63
87
|
);
|