@reown/appkit-ui-react-native 1.0.1 → 1.1.0
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/assets/visual/Profile.js +2 -2
- package/lib/commonjs/assets/visual/Profile.js.map +1 -1
- 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-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-card-select/index.js +4 -2
- package/lib/commonjs/composites/wui-card-select/index.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/index.js +3 -3
- package/lib/commonjs/composites/wui-input-text/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-item-loader/index.js +34 -0
- package/lib/commonjs/composites/wui-list-item-loader/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-item-loader/styles.js +18 -0
- package/lib/commonjs/composites/wui-list-item-loader/styles.js.map +1 -0
- 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 +1 -1
- 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 +17 -11
- 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 +20 -13
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-search-bar/index.js +2 -4
- package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +3 -1
- 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 +77 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/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/assets/visual/Profile.js +2 -2
- package/lib/module/assets/visual/Profile.js.map +1 -1
- 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-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-card-select/index.js +4 -2
- package/lib/module/composites/wui-card-select/index.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/index.js +3 -3
- package/lib/module/composites/wui-input-text/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-item-loader/index.js +27 -0
- package/lib/module/composites/wui-list-item-loader/index.js.map +1 -0
- package/lib/module/composites/wui-list-item-loader/styles.js +12 -0
- package/lib/module/composites/wui-list-item-loader/styles.js.map +1 -0
- 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 +1 -1
- 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 +18 -12
- 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 +20 -13
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-search-bar/index.js +2 -4
- package/lib/module/composites/wui-search-bar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +3 -1
- 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 +11 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- 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-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-card-select/index.d.ts +2 -1
- package/lib/typescript/composites/wui-card-select/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-item-loader/index.d.ts +6 -0
- package/lib/typescript/composites/wui-list-item-loader/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-item-loader/styles.d.ts +11 -0
- package/lib/typescript/composites/wui-list-item-loader/styles.d.ts.map +1 -0
- 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 +7 -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-search-bar/index.d.ts +1 -2
- package/lib/typescript/composites/wui-search-bar/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 +11 -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/assets/visual/Profile.tsx +2 -2
- 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-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-card-select/index.tsx +4 -1
- 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/index.tsx +1 -1
- 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-item-loader/index.tsx +29 -0
- package/src/composites/wui-list-item-loader/styles.ts +12 -0
- 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 +2 -2
- 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 +25 -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 +21 -12
- package/src/composites/wui-search-bar/index.tsx +1 -4
- package/src/composites/wui-snackbar/index.tsx +7 -1
- 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 +14 -0
- package/src/layout/wui-flex/index.tsx +1 -2
- package/src/layout/wui-separator/index.tsx +1 -1
- 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
|
@@ -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,37 @@ 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
|
-
|
|
24
|
+
const LABEL_HEIGHT = 18;
|
|
25
|
+
|
|
26
|
+
export function QrCode({ size, uri, imageSrc, testID, arenaClear, icon, style }: QrCodeProps) {
|
|
21
27
|
const Theme = LightTheme;
|
|
22
28
|
const containerPadding = Spacing.l;
|
|
23
29
|
const qrSize = size - containerPadding * 2;
|
|
30
|
+
const logoSize = arenaClear ? 0 : qrSize / 4;
|
|
31
|
+
|
|
24
32
|
const dots = useMemo(
|
|
25
|
-
() => (uri ? QRCodeUtil.generate(uri, qrSize,
|
|
26
|
-
[uri, qrSize]
|
|
33
|
+
() => (uri ? QRCodeUtil.generate(uri, qrSize, logoSize) : []),
|
|
34
|
+
[uri, qrSize, logoSize]
|
|
27
35
|
);
|
|
28
36
|
|
|
29
|
-
const shimmerTemplate = () => {
|
|
30
|
-
return <Shimmer width={size} height={size} borderRadius={BorderRadius.l} />;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
37
|
const logoTemplate = () => {
|
|
38
|
+
if (arenaClear) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
if (imageSrc) {
|
|
35
43
|
return (
|
|
36
44
|
<Image
|
|
@@ -45,7 +53,7 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
45
53
|
|
|
46
54
|
return (
|
|
47
55
|
<Icon
|
|
48
|
-
name=
|
|
56
|
+
name={icon ?? 'walletConnect'}
|
|
49
57
|
color="accent-100"
|
|
50
58
|
height={qrSize / 3.5}
|
|
51
59
|
width={qrSize / 3.5}
|
|
@@ -58,7 +66,8 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
58
66
|
<View
|
|
59
67
|
style={[
|
|
60
68
|
styles.container,
|
|
61
|
-
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding }
|
|
69
|
+
{ width: size, backgroundColor: Theme['bg-100'], padding: containerPadding },
|
|
70
|
+
style
|
|
62
71
|
]}
|
|
63
72
|
testID={testID}
|
|
64
73
|
>
|
|
@@ -68,7 +77,7 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
68
77
|
</Svg>
|
|
69
78
|
{logoTemplate()}
|
|
70
79
|
</FlexView>
|
|
71
|
-
<Text variant="small-500" color="fg-150" style={styles.label}>
|
|
80
|
+
<Text variant="small-500" color="fg-150" style={[styles.label, { height: LABEL_HEIGHT }]}>
|
|
72
81
|
UX by{' '}
|
|
73
82
|
<Text variant="small-500" color="inverse-000">
|
|
74
83
|
Reown
|
|
@@ -76,6 +85,6 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
|
|
|
76
85
|
</Text>
|
|
77
86
|
</View>
|
|
78
87
|
) : (
|
|
79
|
-
|
|
88
|
+
<Shimmer width={size} height={size + LABEL_HEIGHT} borderRadius={BorderRadius.l} />
|
|
80
89
|
);
|
|
81
90
|
}
|
|
@@ -10,15 +10,13 @@ export interface SearchBarProps {
|
|
|
10
10
|
onSubmitEditing?: TextInputProps['onSubmitEditing'];
|
|
11
11
|
onChangeText?: TextInputProps['onChangeText'];
|
|
12
12
|
inputStyle?: TextInputProps['style'];
|
|
13
|
-
testID?: string;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export function SearchBar({
|
|
17
16
|
placeholder = 'Search wallet',
|
|
18
17
|
onSubmitEditing,
|
|
19
18
|
onChangeText,
|
|
20
|
-
inputStyle
|
|
21
|
-
testID
|
|
19
|
+
inputStyle
|
|
22
20
|
}: SearchBarProps) {
|
|
23
21
|
const [showClear, setShowClear] = useState(false);
|
|
24
22
|
const inputRef = useRef<TextInput>(null);
|
|
@@ -38,7 +36,6 @@ export function SearchBar({
|
|
|
38
36
|
inputStyle={inputStyle}
|
|
39
37
|
returnKeyType="search"
|
|
40
38
|
disableFullscreenUI
|
|
41
|
-
testID={testID}
|
|
42
39
|
>
|
|
43
40
|
{showClear && (
|
|
44
41
|
<InputElement
|
|
@@ -17,6 +17,7 @@ export function Snackbar({ message, iconColor, icon, style }: SnackbarProps) {
|
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<Animated.View
|
|
20
|
+
pointerEvents="none"
|
|
20
21
|
style={[
|
|
21
22
|
styles.container,
|
|
22
23
|
{ backgroundColor: Theme['bg-175'], borderColor: Theme['gray-glass-005'] },
|
|
@@ -24,7 +25,12 @@ export function Snackbar({ message, iconColor, icon, style }: SnackbarProps) {
|
|
|
24
25
|
]}
|
|
25
26
|
>
|
|
26
27
|
<IconBox icon={icon} iconColor={iconColor} size="sm" background />
|
|
27
|
-
<Text
|
|
28
|
+
<Text
|
|
29
|
+
variant="paragraph-500"
|
|
30
|
+
color="fg-100"
|
|
31
|
+
style={styles.text}
|
|
32
|
+
testID="wui-snackbar-message"
|
|
33
|
+
>
|
|
28
34
|
{message}
|
|
29
35
|
</Text>
|
|
30
36
|
</Animated.View>
|
|
@@ -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
|
);
|
|
@@ -4,6 +4,7 @@ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
6
6
|
height: 34,
|
|
7
|
+
width: '100%',
|
|
7
8
|
flexDirection: 'row',
|
|
8
9
|
alignItems: 'center',
|
|
9
10
|
paddingHorizontal: Spacing['3xs'],
|
|
@@ -13,7 +14,6 @@ export default StyleSheet.create({
|
|
|
13
14
|
flexDirection: 'row',
|
|
14
15
|
justifyContent: 'center',
|
|
15
16
|
alignItems: 'center',
|
|
16
|
-
width: 100,
|
|
17
17
|
paddingVertical: Spacing['2xs']
|
|
18
18
|
},
|
|
19
19
|
tabIcon: {
|
|
@@ -22,8 +22,7 @@ export default StyleSheet.create({
|
|
|
22
22
|
activeMark: {
|
|
23
23
|
position: 'absolute',
|
|
24
24
|
height: 28,
|
|
25
|
-
|
|
26
|
-
borderWidth: 1,
|
|
25
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
27
26
|
borderRadius: BorderRadius['3xl'],
|
|
28
27
|
margin: Spacing['3xs']
|
|
29
28
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Balance } from '@reown/appkit-common-react-native';
|
|
2
|
+
import { Image } from '../../components/wui-image';
|
|
3
|
+
import { Text } from '../../components/wui-text';
|
|
4
|
+
import { Button } from '../wui-button';
|
|
5
|
+
import styles from './styles';
|
|
6
|
+
|
|
7
|
+
export interface TokenButtonProps {
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
token?: Balance;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function TokenButton({ token, onPress }: TokenButtonProps) {
|
|
13
|
+
if (!token) {
|
|
14
|
+
return (
|
|
15
|
+
<Button variant="accent" style={styles.selectButton} size="sm" onPress={onPress}>
|
|
16
|
+
<Text variant="small-600" color="accent-100">
|
|
17
|
+
Select token
|
|
18
|
+
</Text>
|
|
19
|
+
</Button>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<Button variant="shade" style={styles.container} size="sm" onPress={onPress}>
|
|
25
|
+
{token?.iconUrl && <Image source={token?.iconUrl} style={styles.image} />}
|
|
26
|
+
{token?.symbol && <Text>{token.symbol}</Text>}
|
|
27
|
+
</Button>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
selectButton: {
|
|
6
|
+
height: 40,
|
|
7
|
+
paddingHorizontal: Spacing.m
|
|
8
|
+
},
|
|
9
|
+
container: {
|
|
10
|
+
height: 40
|
|
11
|
+
},
|
|
12
|
+
image: {
|
|
13
|
+
width: 24,
|
|
14
|
+
height: 24,
|
|
15
|
+
borderRadius: BorderRadius.full,
|
|
16
|
+
marginRight: Spacing['2xs']
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { TransactionImage } from '@reown/appkit-common-react-native';
|
|
2
|
+
|
|
3
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
4
|
+
import { Icon } from '../../components/wui-icon';
|
|
5
|
+
import { Image } from '../../components/wui-image';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
import styles from './styles';
|
|
8
|
+
|
|
9
|
+
export interface TransactionVisualProps {
|
|
10
|
+
images?: TransactionImage[];
|
|
11
|
+
networkSrc?: string;
|
|
12
|
+
isAllNFT?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function TransactionVisual({ images, networkSrc, isAllNFT }: TransactionVisualProps) {
|
|
16
|
+
const Theme = useTheme();
|
|
17
|
+
const backgroundColor = Theme['bg-200'];
|
|
18
|
+
const isFirstNFT = Boolean(images?.[0]?.type === 'NFT');
|
|
19
|
+
const filteredImages = images?.filter(image => image.url);
|
|
20
|
+
const [firstImage, secondImage] = filteredImages ?? [];
|
|
21
|
+
const hasOneImage = filteredImages?.length === 1;
|
|
22
|
+
const hasTwoImages = filteredImages && filteredImages?.length > 1;
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<FlexView>
|
|
26
|
+
{!filteredImages?.length && (
|
|
27
|
+
<FlexView
|
|
28
|
+
alignItems="center"
|
|
29
|
+
justifyContent="center"
|
|
30
|
+
style={[styles.image, { backgroundColor }]}
|
|
31
|
+
>
|
|
32
|
+
<Icon name={isFirstNFT ? 'nftPlaceholder' : 'coinPlaceholder'} size="sm" color="fg-200" />
|
|
33
|
+
</FlexView>
|
|
34
|
+
)}
|
|
35
|
+
{hasOneImage && firstImage?.url && (
|
|
36
|
+
<Image
|
|
37
|
+
source={firstImage.url}
|
|
38
|
+
style={[styles.image, firstImage?.type === 'NFT' && styles.imageNft, { backgroundColor }]}
|
|
39
|
+
/>
|
|
40
|
+
)}
|
|
41
|
+
{hasTwoImages && firstImage?.url && secondImage?.url && (
|
|
42
|
+
<FlexView flexDirection="row" padding={['0', 's', '0', '0']}>
|
|
43
|
+
<FlexView style={styles.halfContainer}>
|
|
44
|
+
<Image
|
|
45
|
+
source={firstImage.url}
|
|
46
|
+
style={[styles.image, isAllNFT && styles.imageNft, { backgroundColor }]}
|
|
47
|
+
/>
|
|
48
|
+
</FlexView>
|
|
49
|
+
<FlexView style={styles.halfContainer}>
|
|
50
|
+
<Image
|
|
51
|
+
source={secondImage.url}
|
|
52
|
+
style={[
|
|
53
|
+
styles.image,
|
|
54
|
+
styles.halfRight,
|
|
55
|
+
isAllNFT && styles.imageNft,
|
|
56
|
+
{ backgroundColor }
|
|
57
|
+
]}
|
|
58
|
+
/>
|
|
59
|
+
</FlexView>
|
|
60
|
+
</FlexView>
|
|
61
|
+
)}
|
|
62
|
+
<FlexView
|
|
63
|
+
alignItems="center"
|
|
64
|
+
justifyContent="center"
|
|
65
|
+
style={[
|
|
66
|
+
styles.networkImageContainer,
|
|
67
|
+
{ borderColor: Theme['bg-100'], backgroundColor: Theme['bg-200'] }
|
|
68
|
+
]}
|
|
69
|
+
>
|
|
70
|
+
{networkSrc ? (
|
|
71
|
+
<Image source={networkSrc} style={styles.networkImage} />
|
|
72
|
+
) : (
|
|
73
|
+
<Icon name="networkPlaceholder" size="xxs" color="fg-200" />
|
|
74
|
+
)}
|
|
75
|
+
</FlexView>
|
|
76
|
+
</FlexView>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
image: {
|
|
6
|
+
height: 40,
|
|
7
|
+
width: 40,
|
|
8
|
+
borderRadius: BorderRadius.full,
|
|
9
|
+
marginRight: Spacing.s
|
|
10
|
+
},
|
|
11
|
+
imageNft: {
|
|
12
|
+
borderRadius: BorderRadius.xxs
|
|
13
|
+
},
|
|
14
|
+
halfContainer: {
|
|
15
|
+
overflow: 'hidden',
|
|
16
|
+
width: 20,
|
|
17
|
+
marginRight: 2
|
|
18
|
+
},
|
|
19
|
+
halfRight: {
|
|
20
|
+
left: -20
|
|
21
|
+
},
|
|
22
|
+
networkImageContainer: {
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
bottom: -2,
|
|
25
|
+
left: 24,
|
|
26
|
+
borderWidth: 2,
|
|
27
|
+
borderRadius: BorderRadius.full,
|
|
28
|
+
width: 18,
|
|
29
|
+
height: 18
|
|
30
|
+
},
|
|
31
|
+
networkImage: {
|
|
32
|
+
width: 14,
|
|
33
|
+
height: 14,
|
|
34
|
+
borderRadius: BorderRadius.full
|
|
35
|
+
}
|
|
36
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -9,8 +9,11 @@ export { Visual, type VisualProps } from './components/wui-visual';
|
|
|
9
9
|
export { Shimmer, type ShimmerProps } from './components/wui-shimmer';
|
|
10
10
|
|
|
11
11
|
export { AccountButton, type AccountButtonProps } from './composites/wui-account-button';
|
|
12
|
+
export { AccountPill, type AccountPillProps } from './composites/wui-account-pill';
|
|
12
13
|
export { ActionEntry, type ActionEntryProps } from './composites/wui-action-entry';
|
|
13
14
|
export { Avatar, type AvatarProps } from './composites/wui-avatar';
|
|
15
|
+
export { Balance, type BalanceProps } from './composites/wui-balance';
|
|
16
|
+
export { Banner, type BannerProps } from './composites/wui-banner';
|
|
14
17
|
export { Button, type ButtonProps } from './composites/wui-button';
|
|
15
18
|
export {
|
|
16
19
|
CardSelectLoader,
|
|
@@ -24,6 +27,10 @@ export {
|
|
|
24
27
|
type CardSelectProps
|
|
25
28
|
} from './composites/wui-card-select';
|
|
26
29
|
export { Chip, type ChipProps } from './composites/wui-chip';
|
|
30
|
+
export {
|
|
31
|
+
CompatibleNetwork,
|
|
32
|
+
type CompatibleNetworkProps
|
|
33
|
+
} from './composites/wui-compatible-network';
|
|
27
34
|
export { ConnectButton, type ConnectButtonProps } from './composites/wui-connect-button';
|
|
28
35
|
export { EmailInput, type EmailInputProps } from './composites/wui-email-input';
|
|
29
36
|
export { IconBox, type IconBoxProps } from './composites/wui-icon-box';
|
|
@@ -33,17 +40,23 @@ export { InputNumeric, type InputNumericProps } from './composites/wui-input-num
|
|
|
33
40
|
export { InputText, type InputTextProps } from './composites/wui-input-text';
|
|
34
41
|
export { Link, type LinkProps } from './composites/wui-link';
|
|
35
42
|
export { ListItem, type ListItemProps } from './composites/wui-list-item';
|
|
43
|
+
export { ListItemLoader, type ListItemLoaderProps } from './composites/wui-list-item-loader';
|
|
44
|
+
export { ListSocial, type ListSocialProps } from './composites/wui-list-social';
|
|
45
|
+
export { ListToken, type ListTokenProps } from './composites/wui-list-token';
|
|
46
|
+
export { ListTransaction, type ListTransactionProps } from './composites/wui-list-transaction';
|
|
36
47
|
export { ListWallet, type ListWalletProps } from './composites/wui-list-wallet';
|
|
37
48
|
export { Logo, type LogoProps } from './composites/wui-logo';
|
|
38
49
|
export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
|
|
39
50
|
export { NetworkButton, type NetworkButtonProps } from './composites/wui-network-button';
|
|
40
51
|
export { NetworkImage, type NetworkImageProps } from './composites/wui-network-image';
|
|
41
52
|
export { Otp, type OtpProps } from './composites/wui-otp';
|
|
53
|
+
export { Promo, type PromoProps } from './composites/wui-promo';
|
|
42
54
|
export { QrCode, type QrCodeProps } from './composites/wui-qr-code';
|
|
43
55
|
export { SearchBar, type SearchBarProps } from './composites/wui-search-bar';
|
|
44
56
|
export { Snackbar, type SnackbarProps } from './composites/wui-snackbar';
|
|
45
57
|
export { Tabs, type TabsProps } from './composites/wui-tabs';
|
|
46
58
|
export { Tag, type TagProps } from './composites/wui-tag';
|
|
59
|
+
export { TokenButton, type TokenButtonProps } from './composites/wui-token-button';
|
|
47
60
|
export { Tooltip, type TooltipProps } from './composites/wui-tooltip';
|
|
48
61
|
export { WalletImage, type WalletImageProps } from './composites/wui-wallet-image';
|
|
49
62
|
|
|
@@ -66,6 +79,7 @@ export type {
|
|
|
66
79
|
VisualType
|
|
67
80
|
} from './utils/TypesUtil';
|
|
68
81
|
export { UiUtil } from './utils/UiUtil';
|
|
82
|
+
export { TransactionUtil } from './utils/TransactionUtil';
|
|
69
83
|
export { Spacing, BorderRadius } from './utils/ThemeUtil';
|
|
70
84
|
|
|
71
85
|
export { useTheme } from './hooks/useTheme';
|