@reown/appkit-ui-react-native 0.0.0-canary-20241010175718 → 0.0.0-develop-20241106142253
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/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 +74 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +28 -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-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 +2 -1
- 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/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 +67 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +22 -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-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 +2 -1
- 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.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 +11 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +21 -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-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 +1 -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/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +16 -7
- 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 +78 -0
- package/src/composites/wui-account-pill/styles.ts +22 -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-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 +2 -1
- 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,80 @@
|
|
|
1
|
+
import Svg, { ClipPath, Defs, G, Path, Rect, type SvgProps } from 'react-native-svg';
|
|
2
|
+
|
|
3
|
+
const PencilSvg = (props: SvgProps) => (
|
|
4
|
+
<Svg width="64" height="64" viewBox="0 0 64 64" fill="none" {...props}>
|
|
5
|
+
<G clip-path="url(#clip0_241_31635)">
|
|
6
|
+
<Path
|
|
7
|
+
d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z"
|
|
8
|
+
fill="#EB8B47"
|
|
9
|
+
/>
|
|
10
|
+
<Path
|
|
11
|
+
d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z"
|
|
12
|
+
stroke="#141414"
|
|
13
|
+
strokeOpacity="0.1"
|
|
14
|
+
/>
|
|
15
|
+
<Path
|
|
16
|
+
d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z"
|
|
17
|
+
fill="#FF974C"
|
|
18
|
+
stroke="#E4E7E7"
|
|
19
|
+
strokeWidth="2"
|
|
20
|
+
strokeLinecap="round"
|
|
21
|
+
strokeLinejoin="round"
|
|
22
|
+
/>
|
|
23
|
+
<Path
|
|
24
|
+
d="M38.5962 20.5376L22.4199 36.7139"
|
|
25
|
+
stroke="#E4E7E7"
|
|
26
|
+
strokeWidth="2"
|
|
27
|
+
strokeLinecap="round"
|
|
28
|
+
strokeLinejoin="round"
|
|
29
|
+
/>
|
|
30
|
+
<Path
|
|
31
|
+
d="M43.7727 25.714L27.5964 41.8903"
|
|
32
|
+
stroke="#E4E7E7"
|
|
33
|
+
strokeWidth="2"
|
|
34
|
+
strokeLinecap="round"
|
|
35
|
+
strokeLinejoin="round"
|
|
36
|
+
/>
|
|
37
|
+
<Path
|
|
38
|
+
d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324"
|
|
39
|
+
stroke="#E4E7E7"
|
|
40
|
+
strokeWidth="2"
|
|
41
|
+
strokeLinecap="round"
|
|
42
|
+
strokeLinejoin="round"
|
|
43
|
+
/>
|
|
44
|
+
<Path
|
|
45
|
+
d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475"
|
|
46
|
+
stroke="#E4E7E7"
|
|
47
|
+
strokeWidth="2"
|
|
48
|
+
strokeLinecap="round"
|
|
49
|
+
strokeLinejoin="round"
|
|
50
|
+
/>
|
|
51
|
+
<Path
|
|
52
|
+
d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634"
|
|
53
|
+
stroke="#E4E7E7"
|
|
54
|
+
strokeWidth="2"
|
|
55
|
+
strokeLinecap="round"
|
|
56
|
+
strokeLinejoin="round"
|
|
57
|
+
/>
|
|
58
|
+
<Path
|
|
59
|
+
d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912"
|
|
60
|
+
stroke="#E4E7E7"
|
|
61
|
+
strokeWidth="2"
|
|
62
|
+
strokeLinecap="round"
|
|
63
|
+
strokeLinejoin="round"
|
|
64
|
+
/>
|
|
65
|
+
<Path
|
|
66
|
+
d="M49.2862 29.5805L34.7275 15.0219"
|
|
67
|
+
stroke="#E4E7E7"
|
|
68
|
+
strokeWidth="2"
|
|
69
|
+
strokeLinejoin="round"
|
|
70
|
+
/>
|
|
71
|
+
</G>
|
|
72
|
+
<Defs>
|
|
73
|
+
<ClipPath id="clip0_241_31635">
|
|
74
|
+
<Rect width="64" height="64" fill="white" />
|
|
75
|
+
</ClipPath>
|
|
76
|
+
</Defs>
|
|
77
|
+
</Svg>
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
export default PencilSvg;
|
|
@@ -5,6 +5,7 @@ import type { ColorType, IconType, SizeType, ThemeKeys } from '../../utils/Types
|
|
|
5
5
|
import AllWalletsSvg from '../../assets/svg/AllWallets';
|
|
6
6
|
import AppleSvg from '../../assets/svg/Apple';
|
|
7
7
|
import ArrowBottomSvg from '../../assets/svg/ArrowBottom';
|
|
8
|
+
import ArrowBottomCircleSvg from '../../assets/svg/ArrowBottomCircle';
|
|
8
9
|
import ArrowLeftSvg from '../../assets/svg/ArrowLeft';
|
|
9
10
|
import ArrowRightSvg from '../../assets/svg/ArrowRight';
|
|
10
11
|
import ArrowTopSvg from '../../assets/svg/ArrowTop';
|
|
@@ -29,6 +30,8 @@ import EtherscanSvg from '../../assets/svg/Etherscan';
|
|
|
29
30
|
import ExtensionSvg from '../../assets/svg/Extension';
|
|
30
31
|
import ExternalLinkSvg from '../../assets/svg/ExternalLink';
|
|
31
32
|
import FacebookSvg from '../../assets/svg/Facebook';
|
|
33
|
+
import FarcasterSvg from '../../assets/svg/Farcaster';
|
|
34
|
+
import FarcasterSquareSvg from '../../assets/svg/FarcasterSquare';
|
|
32
35
|
import FiltersSvg from '../../assets/svg/Filters';
|
|
33
36
|
import GithubSvg from '../../assets/svg/Github';
|
|
34
37
|
import GoogleSvg from '../../assets/svg/Google';
|
|
@@ -36,24 +39,25 @@ import HelpCircleSvg from '../../assets/svg/HelpCircle';
|
|
|
36
39
|
import InfoCircleSvg from '../../assets/svg/InfoCircle';
|
|
37
40
|
import MailSvg from '../../assets/svg/Mail';
|
|
38
41
|
import MobileSvg from '../../assets/svg/Mobile';
|
|
42
|
+
import MoreSvg from '../../assets/svg/More';
|
|
39
43
|
import NetworkPlaceholderSvg from '../../assets/svg/NetworkPlaceholder';
|
|
40
44
|
import NftPlaceholderSvg from '../../assets/svg/NftPlaceholder';
|
|
41
45
|
import OffSvg from '../../assets/svg/Off';
|
|
46
|
+
import PaperplaneSvg from '../../assets/svg/Paperplane';
|
|
42
47
|
import QrCodeSvg from '../../assets/svg/QrCode';
|
|
43
48
|
import RefreshSvg from '../../assets/svg/Refresh';
|
|
44
49
|
import SearchSvg from '../../assets/svg/Search';
|
|
45
50
|
import SwapHorizontalSvg from '../../assets/svg/SwapHorizontal';
|
|
46
51
|
import SwapVerticalSvg from '../../assets/svg/SwapVertical';
|
|
47
52
|
import TelegramSvg from '../../assets/svg/Telegram';
|
|
48
|
-
import
|
|
53
|
+
import TwitchSvg from '../../assets/svg/Twitch';
|
|
49
54
|
import VerifySvg from '../../assets/svg/Verify';
|
|
50
|
-
import WalletConnectSvg from '../../assets/svg/WalletConnect';
|
|
55
|
+
import WalletConnectSvg, { WalletConnectLightBrownSvg } from '../../assets/svg/WalletConnect';
|
|
51
56
|
import WalletSvg from '../../assets/svg/Wallet';
|
|
52
57
|
import WalletSmallSvg from '../../assets/svg/WalletSmall';
|
|
53
58
|
import WarningCircleSvg from '../../assets/svg/WarningCircle';
|
|
54
|
-
import TwitchSvg from '../../assets/svg/Twitch';
|
|
55
|
-
import TwitterIconSvg from '../../assets/svg/TwitterIcon';
|
|
56
59
|
import WalletPlaceholderSvg from '../../assets/svg/WalletPlaceholder';
|
|
60
|
+
import XSvg from '../../assets/svg/X';
|
|
57
61
|
import { useTheme } from '../../hooks/useTheme';
|
|
58
62
|
import { IconSize } from '../../utils/ThemeUtil';
|
|
59
63
|
|
|
@@ -61,6 +65,7 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
61
65
|
allWallets: AllWalletsSvg,
|
|
62
66
|
apple: AppleSvg,
|
|
63
67
|
arrowBottom: ArrowBottomSvg,
|
|
68
|
+
arrowBottomCircle: ArrowBottomCircleSvg,
|
|
64
69
|
arrowLeft: ArrowLeftSvg,
|
|
65
70
|
arrowRight: ArrowRightSvg,
|
|
66
71
|
arrowTop: ArrowTopSvg,
|
|
@@ -85,6 +90,8 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
85
90
|
extension: ExtensionSvg,
|
|
86
91
|
externalLink: ExternalLinkSvg,
|
|
87
92
|
facebook: FacebookSvg,
|
|
93
|
+
farcaster: FarcasterSvg,
|
|
94
|
+
farcasterSquare: FarcasterSquareSvg,
|
|
88
95
|
filters: FiltersSvg,
|
|
89
96
|
github: GithubSvg,
|
|
90
97
|
google: GoogleSvg,
|
|
@@ -92,9 +99,11 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
92
99
|
infoCircle: InfoCircleSvg,
|
|
93
100
|
mail: MailSvg,
|
|
94
101
|
mobile: MobileSvg,
|
|
102
|
+
more: MoreSvg,
|
|
95
103
|
networkPlaceholder: NetworkPlaceholderSvg,
|
|
96
104
|
nftPlaceholder: NftPlaceholderSvg,
|
|
97
105
|
off: OffSvg,
|
|
106
|
+
paperplane: PaperplaneSvg,
|
|
98
107
|
qrCode: QrCodeSvg,
|
|
99
108
|
refresh: RefreshSvg,
|
|
100
109
|
search: SearchSvg,
|
|
@@ -102,14 +111,14 @@ const svgOptions: Record<IconType, (props: SvgProps) => JSX.Element> = {
|
|
|
102
111
|
swapVertical: SwapVerticalSvg,
|
|
103
112
|
telegram: TelegramSvg,
|
|
104
113
|
twitch: TwitchSvg,
|
|
105
|
-
twitter: TwitterSvg,
|
|
106
|
-
twitterIcon: TwitterIconSvg,
|
|
107
114
|
verify: VerifySvg,
|
|
108
115
|
wallet: WalletSvg,
|
|
109
116
|
walletSmall: WalletSmallSvg,
|
|
110
117
|
warningCircle: WarningCircleSvg,
|
|
111
118
|
walletConnect: WalletConnectSvg,
|
|
112
|
-
|
|
119
|
+
walletConnectLightBrown: WalletConnectLightBrownSvg,
|
|
120
|
+
walletPlaceholder: WalletPlaceholderSvg,
|
|
121
|
+
x: XSvg
|
|
113
122
|
};
|
|
114
123
|
|
|
115
124
|
export type IconProps = SvgProps & {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const LeanText = forwardRef((props, ref) => {
|
|
5
|
+
return createElement('RCTText', { ...props, ref });
|
|
6
|
+
}) as ComponentType<TextProps>;
|
|
7
|
+
|
|
8
|
+
LeanText.displayName = 'RCTText';
|
|
9
|
+
|
|
10
|
+
export { LeanText };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentType, createElement, forwardRef } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const LeanView = forwardRef((props, ref) => {
|
|
5
|
+
return createElement('RCTView', { ...props, ref });
|
|
6
|
+
}) as ComponentType<ViewProps>;
|
|
7
|
+
|
|
8
|
+
LeanView.displayName = 'RCTView';
|
|
9
|
+
|
|
10
|
+
export { LeanView };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type TextProps as NativeProps } from 'react-native';
|
|
2
2
|
import { useTheme } from '../../hooks/useTheme';
|
|
3
|
+
import { LeanText } from '../wui-lean-text';
|
|
3
4
|
import type { ColorType, TextType } from '../../utils/TypesUtil';
|
|
4
5
|
import styles from './styles';
|
|
5
6
|
|
|
@@ -20,7 +21,7 @@ export function Text({
|
|
|
20
21
|
const Theme = useTheme();
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<
|
|
24
|
+
<LeanText
|
|
24
25
|
style={[
|
|
25
26
|
styles.base,
|
|
26
27
|
styles[variant],
|
|
@@ -31,6 +32,6 @@ export function Text({
|
|
|
31
32
|
{...rest}
|
|
32
33
|
>
|
|
33
34
|
{children}
|
|
34
|
-
</
|
|
35
|
+
</LeanText>
|
|
35
36
|
);
|
|
36
37
|
}
|
|
@@ -14,6 +14,9 @@ import NounSvg from '../../assets/visual/Noun';
|
|
|
14
14
|
import ProfileSvg from '../../assets/visual/Profile';
|
|
15
15
|
import SystemSvg from '../../assets/visual/System';
|
|
16
16
|
import type { VisualType } from '../../utils/TypesUtil';
|
|
17
|
+
import GoogleSvg from '../../assets/visual/Google';
|
|
18
|
+
import LightbulbSvg from '../../assets/visual/Lightbulb';
|
|
19
|
+
import PencilSvg from '../../assets/visual/Pencil';
|
|
17
20
|
|
|
18
21
|
const svgOptions: Record<VisualType, (props: SvgProps) => JSX.Element> = {
|
|
19
22
|
browser: BrowserSvg,
|
|
@@ -21,12 +24,15 @@ const svgOptions: Record<VisualType, (props: SvgProps) => JSX.Element> = {
|
|
|
21
24
|
defi: DefiSvg,
|
|
22
25
|
defiAlt: DefiAltSvg,
|
|
23
26
|
eth: EthSvg,
|
|
27
|
+
google: GoogleSvg,
|
|
24
28
|
layers: LayersSvg,
|
|
29
|
+
lightbulb: LightbulbSvg,
|
|
25
30
|
lock: LockSvg,
|
|
26
31
|
login: LoginSvg,
|
|
27
32
|
network: NetworkSvg,
|
|
28
33
|
nft: NftSvg,
|
|
29
34
|
noun: NounSvg,
|
|
35
|
+
pencil: PencilSvg,
|
|
30
36
|
profile: ProfileSvg,
|
|
31
37
|
system: SystemSvg
|
|
32
38
|
};
|
|
@@ -15,7 +15,7 @@ export interface AccountButtonProps {
|
|
|
15
15
|
imageHeaders?: Record<string, string>;
|
|
16
16
|
avatarSrc?: string;
|
|
17
17
|
address?: string;
|
|
18
|
-
|
|
18
|
+
profileName?: string;
|
|
19
19
|
balance?: string;
|
|
20
20
|
onPress?: () => void;
|
|
21
21
|
disabled?: boolean;
|
|
@@ -28,7 +28,7 @@ export function AccountButton({
|
|
|
28
28
|
imageHeaders,
|
|
29
29
|
avatarSrc,
|
|
30
30
|
address,
|
|
31
|
-
|
|
31
|
+
profileName,
|
|
32
32
|
balance,
|
|
33
33
|
onPress,
|
|
34
34
|
disabled,
|
|
@@ -73,6 +73,20 @@ export function AccountButton({
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
const formattedAddress = profileName
|
|
77
|
+
? UiUtil.getTruncateString({
|
|
78
|
+
string: profileName,
|
|
79
|
+
charsStart: 18,
|
|
80
|
+
charsEnd: 0,
|
|
81
|
+
truncate: 'end'
|
|
82
|
+
})
|
|
83
|
+
: UiUtil.getTruncateString({
|
|
84
|
+
string: address || '',
|
|
85
|
+
charsStart: 4,
|
|
86
|
+
charsEnd: 6,
|
|
87
|
+
truncate: 'middle'
|
|
88
|
+
});
|
|
89
|
+
|
|
76
90
|
return (
|
|
77
91
|
<AnimatedPressable
|
|
78
92
|
onPress={onPress}
|
|
@@ -102,12 +116,7 @@ export function AccountButton({
|
|
|
102
116
|
/>
|
|
103
117
|
{address && (
|
|
104
118
|
<Text variant="paragraph-500" color="fg-200" style={styles.address}>
|
|
105
|
-
{
|
|
106
|
-
string: address,
|
|
107
|
-
charsStart: isProfileName ? 18 : 4,
|
|
108
|
-
charsEnd: isProfileName ? 0 : 6,
|
|
109
|
-
truncate: isProfileName ? 'end' : 'middle'
|
|
110
|
-
})}
|
|
119
|
+
{formattedAddress}
|
|
111
120
|
</Text>
|
|
112
121
|
)}
|
|
113
122
|
</View>
|
|
@@ -1,12 +1,12 @@
|
|
|
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: {
|
|
6
6
|
flexDirection: 'row',
|
|
7
7
|
height: 40,
|
|
8
|
-
borderRadius:
|
|
9
|
-
borderWidth:
|
|
8
|
+
borderRadius: BorderRadius.full,
|
|
9
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
paddingHorizontal: Spacing['3xs']
|
|
@@ -14,7 +14,7 @@ export default StyleSheet.create({
|
|
|
14
14
|
image: {
|
|
15
15
|
height: 24,
|
|
16
16
|
width: 24,
|
|
17
|
-
borderRadius:
|
|
17
|
+
borderRadius: BorderRadius.full,
|
|
18
18
|
borderWidth: 2
|
|
19
19
|
},
|
|
20
20
|
avatarPlaceholder: {
|
|
@@ -35,8 +35,8 @@ export default StyleSheet.create({
|
|
|
35
35
|
alignItems: 'center',
|
|
36
36
|
paddingLeft: Spacing['3xs'],
|
|
37
37
|
paddingRight: Spacing.xs,
|
|
38
|
-
borderRadius:
|
|
39
|
-
borderWidth:
|
|
38
|
+
borderRadius: BorderRadius.full,
|
|
39
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
40
40
|
},
|
|
41
41
|
address: {
|
|
42
42
|
marginLeft: Spacing['3xs']
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Avatar } from '../wui-avatar';
|
|
3
|
+
import { UiUtil } from '../../utils/UiUtil';
|
|
4
|
+
import { IconLink } from '../wui-icon-link';
|
|
5
|
+
import { Text } from '../../components/wui-text';
|
|
6
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
7
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
8
|
+
import styles from './styles';
|
|
9
|
+
|
|
10
|
+
export interface AccountPillProps {
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
onCopy: (address: string) => void;
|
|
13
|
+
address?: string;
|
|
14
|
+
profileName?: string;
|
|
15
|
+
profileImage?: string;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
20
|
+
|
|
21
|
+
export function AccountPill({
|
|
22
|
+
onPress,
|
|
23
|
+
onCopy,
|
|
24
|
+
address,
|
|
25
|
+
profileName,
|
|
26
|
+
profileImage,
|
|
27
|
+
style
|
|
28
|
+
}: AccountPillProps) {
|
|
29
|
+
const Theme = useTheme();
|
|
30
|
+
|
|
31
|
+
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
32
|
+
Theme['gray-glass-005'],
|
|
33
|
+
Theme['gray-glass-010']
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
const backgroundColor = animatedValue;
|
|
37
|
+
const borderColor = Theme['gray-glass-005'];
|
|
38
|
+
|
|
39
|
+
const handleCopyAddress = () => {
|
|
40
|
+
if (address) {
|
|
41
|
+
onCopy(address);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<AnimatedPressable
|
|
47
|
+
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
48
|
+
onPressIn={setEndValue}
|
|
49
|
+
onPressOut={setStartValue}
|
|
50
|
+
onPress={onPress}
|
|
51
|
+
hitSlop={10}
|
|
52
|
+
>
|
|
53
|
+
<Avatar imageSrc={profileImage} address={address} size={28} borderWidth={0} />
|
|
54
|
+
<Text variant="large-500" color="fg-100" style={styles.text}>
|
|
55
|
+
{profileName
|
|
56
|
+
? UiUtil.getTruncateString({
|
|
57
|
+
string: profileName,
|
|
58
|
+
charsStart: 17,
|
|
59
|
+
charsEnd: 0,
|
|
60
|
+
truncate: 'end'
|
|
61
|
+
})
|
|
62
|
+
: UiUtil.getTruncateString({
|
|
63
|
+
string: address ?? '',
|
|
64
|
+
charsStart: 4,
|
|
65
|
+
charsEnd: 4,
|
|
66
|
+
truncate: 'middle'
|
|
67
|
+
})}
|
|
68
|
+
</Text>
|
|
69
|
+
<IconLink
|
|
70
|
+
icon="copy"
|
|
71
|
+
size="sm"
|
|
72
|
+
iconColor="fg-200"
|
|
73
|
+
onPress={handleCopyAddress}
|
|
74
|
+
style={styles.copyButton}
|
|
75
|
+
/>
|
|
76
|
+
</AnimatedPressable>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
height: 44,
|
|
7
|
+
minWidth: 160,
|
|
8
|
+
maxWidth: 260,
|
|
9
|
+
paddingLeft: Spacing.xs,
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
borderRadius: BorderRadius.full,
|
|
14
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
marginLeft: Spacing['2xs']
|
|
18
|
+
},
|
|
19
|
+
copyButton: {
|
|
20
|
+
marginHorizontal: Spacing['3xs']
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { Text } from '../../components/wui-text';
|
|
3
|
+
|
|
4
|
+
export interface BalanceProps {
|
|
5
|
+
integer?: string;
|
|
6
|
+
decimal?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function Balance({ integer = '0', decimal = '00' }: BalanceProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Text color="fg-100" style={styles.text}>
|
|
12
|
+
{`$${integer}`}
|
|
13
|
+
<Text color="fg-200" style={styles.text}>
|
|
14
|
+
{`.${decimal}`}
|
|
15
|
+
</Text>
|
|
16
|
+
</Text>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
text: {
|
|
22
|
+
fontSize: 40,
|
|
23
|
+
fontWeight: '500'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IconType } from '../../utils/TypesUtil';
|
|
2
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
3
|
+
import { IconBox } from '../wui-icon-box';
|
|
4
|
+
import { Text } from '../../components/wui-text';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
|
|
8
|
+
export interface BannerProps {
|
|
9
|
+
icon: IconType;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function Banner({ icon, text }: BannerProps) {
|
|
14
|
+
const Theme = useTheme();
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<FlexView
|
|
18
|
+
flexDirection="row"
|
|
19
|
+
alignItems="center"
|
|
20
|
+
style={[styles.container, { backgroundColor: Theme['accent-glass-010'] }]}
|
|
21
|
+
>
|
|
22
|
+
<IconBox icon={icon} size="sm" iconColor="fg-200" background style={styles.icon} />
|
|
23
|
+
<Text variant="small-400" color="fg-200" style={styles.text}>
|
|
24
|
+
{text}
|
|
25
|
+
</Text>
|
|
26
|
+
</FlexView>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
padding: Spacing.s,
|
|
7
|
+
borderRadius: BorderRadius.s
|
|
8
|
+
},
|
|
9
|
+
icon: {
|
|
10
|
+
marginRight: Spacing.xs
|
|
11
|
+
},
|
|
12
|
+
text: {
|
|
13
|
+
flex: 1
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -95,16 +95,18 @@ export function Button({
|
|
|
95
95
|
style={[styles.iconLeft, iconStyle]}
|
|
96
96
|
/>
|
|
97
97
|
)}
|
|
98
|
-
{loading
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
{loading && <LoadingSpinner color={iconColor} />}
|
|
99
|
+
{!loading &&
|
|
100
|
+
(typeof children === 'string' ? (
|
|
101
|
+
<Text
|
|
102
|
+
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
103
|
+
style={[styles.text, themedTextStyle]}
|
|
104
|
+
>
|
|
105
|
+
{children}
|
|
106
|
+
</Text>
|
|
107
|
+
) : (
|
|
108
|
+
children
|
|
109
|
+
))}
|
|
108
110
|
{iconRight && (
|
|
109
111
|
<Icon
|
|
110
112
|
color={iconColor}
|
|
@@ -14,7 +14,7 @@ export const getThemedButtonStyle = (
|
|
|
14
14
|
|
|
15
15
|
if (disabled) {
|
|
16
16
|
return {
|
|
17
|
-
backgroundColor: variant === 'fill' ? theme['gray-glass-
|
|
17
|
+
backgroundColor: variant === 'fill' ? theme['gray-glass-005'] : theme['gray-glass-010'],
|
|
18
18
|
borderColor: theme['gray-glass-002']
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ export const getThemedButtonStyle = (
|
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
30
|
...buttonBaseStyle,
|
|
31
|
-
backgroundColor: variant === 'fill' ? theme['accent-100'] : '
|
|
31
|
+
backgroundColor: variant === 'fill' ? theme['accent-100'] : theme['gray-glass-002']
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -62,7 +62,7 @@ export default StyleSheet.create({
|
|
|
62
62
|
alignItems: 'center',
|
|
63
63
|
justifyContent: 'center',
|
|
64
64
|
borderRadius: BorderRadius.xs,
|
|
65
|
-
borderWidth:
|
|
65
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
66
66
|
},
|
|
67
67
|
smButton: {
|
|
68
68
|
height: 32,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
-
import { Animated,
|
|
2
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { ChipType, ColorType, IconType, SizeType } from '../../utils/TypesUtil';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { Text } from '../../components/wui-text';
|
|
@@ -10,20 +10,22 @@ import styles, { getThemedChipStyle, getThemedTextColor } from './styles';
|
|
|
10
10
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
11
11
|
|
|
12
12
|
export interface ChipProps {
|
|
13
|
-
link: string;
|
|
14
13
|
label?: string;
|
|
15
14
|
imageSrc?: string;
|
|
16
|
-
|
|
15
|
+
leftIcon?: IconType;
|
|
16
|
+
rightIcon?: IconType;
|
|
17
17
|
variant?: ChipType;
|
|
18
18
|
size?: Exclude<SizeType, 'xl' | 'lg' | 'xs' | 'xxs'>;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
style?: StyleProp<ViewStyle>;
|
|
21
|
+
onPress?: () => void;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function Chip({
|
|
24
|
-
|
|
25
|
+
onPress,
|
|
25
26
|
imageSrc,
|
|
26
|
-
|
|
27
|
+
leftIcon,
|
|
28
|
+
rightIcon,
|
|
27
29
|
variant = 'fill',
|
|
28
30
|
size = 'md',
|
|
29
31
|
disabled,
|
|
@@ -38,10 +40,8 @@ export function Chip({
|
|
|
38
40
|
const themedTextColor = getThemedTextColor(variant, disabled, pressed);
|
|
39
41
|
const iconSize = size === 'md' ? 'sm' : 'xs';
|
|
40
42
|
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
if (supported) Linking.openURL(link);
|
|
44
|
-
});
|
|
43
|
+
const handlePress = () => {
|
|
44
|
+
onPress?.();
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const onPressIn = () => {
|
|
@@ -78,7 +78,7 @@ export function Chip({
|
|
|
78
78
|
style={[styles.container, styles[`${size}Chip`], { borderColor, backgroundColor }, style]}
|
|
79
79
|
onPressIn={onPressIn}
|
|
80
80
|
onPressOut={onPressOut}
|
|
81
|
-
onPress={
|
|
81
|
+
onPress={handlePress}
|
|
82
82
|
>
|
|
83
83
|
{imageSrc && (
|
|
84
84
|
<Image
|
|
@@ -91,15 +91,16 @@ export function Chip({
|
|
|
91
91
|
source={imageSrc}
|
|
92
92
|
/>
|
|
93
93
|
)}
|
|
94
|
+
{leftIcon && <Icon name={leftIcon} color={themedTextColor as ColorType} />}
|
|
94
95
|
<Text
|
|
95
96
|
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
96
97
|
style={[styles.link, { color: Theme[themedTextColor] }]}
|
|
97
98
|
>
|
|
98
|
-
{label
|
|
99
|
+
{label}
|
|
99
100
|
</Text>
|
|
100
|
-
{
|
|
101
|
+
{rightIcon && (
|
|
101
102
|
<Icon
|
|
102
|
-
name={
|
|
103
|
+
name={rightIcon}
|
|
103
104
|
size={iconSize}
|
|
104
105
|
color={themedTextColor as ColorType}
|
|
105
106
|
style={styles.icon}
|