@reown/appkit-ui-react-native 0.0.0-fix-email-login-20241010173711 → 0.0.0-fix-fetch-error-improvements-20241114122508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js +21 -0
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/commonjs/assets/svg/Farcaster.js +28 -0
- package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
- package/lib/commonjs/assets/svg/More.js.map +1 -0
- package/lib/commonjs/assets/svg/Paperplane.js +21 -0
- package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
- package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
- package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
- package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/visual/Google.js +59 -0
- package/lib/commonjs/assets/visual/Google.js.map +1 -0
- package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
- package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
- package/lib/commonjs/assets/visual/Pencil.js +81 -0
- package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
- package/lib/commonjs/components/wui-card/index.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js.map +1 -1
- package/lib/commonjs/components/wui-icon/index.js +18 -7
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-lean-text/index.js +15 -0
- package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
- package/lib/commonjs/components/wui-lean-view/index.js +15 -0
- package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
- package/lib/commonjs/components/wui-text/index.js +2 -2
- package/lib/commonjs/components/wui-text/index.js.map +1 -1
- package/lib/commonjs/components/wui-visual/index.js +6 -0
- package/lib/commonjs/components/wui-visual/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +13 -7
- package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-balance/index.js +27 -0
- package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/index.js +36 -0
- package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/styles.js +21 -0
- package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-button/index.js +3 -3
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +11 -9
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +3 -3
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
- package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/index.js +10 -10
- package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-social/index.js +54 -0
- package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
- package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/index.js +78 -0
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo/index.js +4 -2
- package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
- package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
- package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +14 -10
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/index.js +48 -21
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-otp/index.js +1 -2
- package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
- package/lib/commonjs/composites/wui-promo/index.js +48 -0
- package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
- package/lib/commonjs/composites/wui-qr-code/index.js +16 -12
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +22 -8
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/index.js +37 -0
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/commonjs/index.js +70 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js +2 -2
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/layout/wui-separator/index.js +4 -4
- package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +4 -2
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +139 -0
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
- package/lib/commonjs/utils/UiUtil.js +15 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/module/assets/svg/Farcaster.js +20 -0
- package/lib/module/assets/svg/Farcaster.js.map +1 -0
- package/lib/module/assets/svg/FarcasterSquare.js +20 -0
- package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/module/assets/svg/More.js +22 -0
- package/lib/module/assets/svg/More.js.map +1 -0
- package/lib/module/assets/svg/Paperplane.js +13 -0
- package/lib/module/assets/svg/Paperplane.js.map +1 -0
- package/lib/module/assets/svg/WalletConnect.js +18 -1
- package/lib/module/assets/svg/WalletConnect.js.map +1 -1
- package/lib/module/assets/svg/X.js +27 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/visual/Google.js +51 -0
- package/lib/module/assets/visual/Google.js.map +1 -0
- package/lib/module/assets/visual/Lightbulb.js +50 -0
- package/lib/module/assets/visual/Lightbulb.js.map +1 -0
- package/lib/module/assets/visual/Pencil.js +73 -0
- package/lib/module/assets/visual/Pencil.js.map +1 -0
- package/lib/module/components/wui-card/index.js +1 -1
- package/lib/module/components/wui-card/styles.js +1 -1
- package/lib/module/components/wui-card/styles.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +16 -7
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-lean-text/index.js +10 -0
- package/lib/module/components/wui-lean-text/index.js.map +1 -0
- package/lib/module/components/wui-lean-view/index.js +10 -0
- package/lib/module/components/wui-lean-view/index.js.map +1 -0
- package/lib/module/components/wui-text/index.js +2 -2
- package/lib/module/components/wui-text/index.js.map +1 -1
- package/lib/module/components/wui-visual/index.js +6 -0
- package/lib/module/components/wui-visual/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +13 -7
- package/lib/module/composites/wui-account-button/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +6 -6
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-account-pill/index.js +60 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +23 -0
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/module/composites/wui-avatar/styles.js +2 -1
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-balance/index.js +21 -0
- package/lib/module/composites/wui-balance/index.js.map +1 -0
- package/lib/module/composites/wui-banner/index.js +29 -0
- package/lib/module/composites/wui-banner/index.js.map +1 -0
- package/lib/module/composites/wui-banner/styles.js +15 -0
- package/lib/module/composites/wui-banner/styles.js.map +1 -0
- package/lib/module/composites/wui-button/index.js +3 -3
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +3 -3
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +12 -10
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +3 -3
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-compatible-network/index.js +52 -0
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/module/composites/wui-connect-button/styles.js +1 -1
- package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/module/composites/wui-icon-box/index.js +17 -1
- package/lib/module/composites/wui-icon-box/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/styles.js +1 -1
- package/lib/module/composites/wui-input-text/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item/index.js +10 -10
- package/lib/module/composites/wui-list-item/index.js.map +1 -1
- package/lib/module/composites/wui-list-item/styles.js +4 -3
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-list-social/index.js +47 -0
- package/lib/module/composites/wui-list-social/index.js.map +1 -0
- package/lib/module/composites/wui-list-social/styles.js +28 -0
- package/lib/module/composites/wui-list-social/styles.js.map +1 -0
- package/lib/module/composites/wui-list-token/index.js +71 -0
- package/lib/module/composites/wui-list-token/index.js.map +1 -0
- package/lib/module/composites/wui-list-token/styles.js +24 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/index.js +57 -0
- package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/styles.js +10 -0
- package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/utils.js +79 -0
- package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/module/composites/wui-list-wallet/index.js +5 -4
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-logo/index.js +4 -2
- package/lib/module/composites/wui-logo/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/index.js +6 -3
- package/lib/module/composites/wui-logo-select/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/styles.js +3 -3
- package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +15 -11
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +5 -5
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-network-image/index.js +49 -22
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +2 -0
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-otp/index.js +2 -3
- package/lib/module/composites/wui-otp/index.js.map +1 -1
- package/lib/module/composites/wui-promo/index.js +42 -0
- package/lib/module/composites/wui-promo/index.js.map +1 -0
- package/lib/module/composites/wui-qr-code/index.js +16 -12
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +1 -0
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +3 -2
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +22 -8
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +2 -3
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-token-button/index.js +30 -0
- package/lib/module/composites/wui-token-button/index.js.map +1 -0
- package/lib/module/composites/wui-token-button/styles.js +18 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/index.js +66 -0
- package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
- package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/module/composites/wui-wallet-image/styles.js +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js +2 -2
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js +4 -4
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +4 -2
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +134 -0
- package/lib/module/utils/TransactionUtil.js.map +1 -0
- package/lib/module/utils/UiUtil.js +15 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
- package/lib/typescript/assets/svg/More.d.ts +4 -0
- package/lib/typescript/assets/svg/More.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
- package/lib/typescript/assets/svg/X.d.ts +4 -0
- package/lib/typescript/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Google.d.ts +4 -0
- package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
- package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
- package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
- package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
- package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
- package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
- package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
- package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +10 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
- package/lib/typescript/utils/TypesUtil.d.ts +6 -5
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +1 -0
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
- package/src/assets/svg/Farcaster.tsx +15 -0
- package/src/assets/svg/FarcasterSquare.tsx +15 -0
- package/src/assets/svg/More.tsx +16 -0
- package/src/assets/svg/Paperplane.tsx +12 -0
- package/src/assets/svg/WalletConnect.tsx +24 -1
- package/src/assets/svg/X.tsx +26 -0
- package/src/assets/visual/Google.tsx +43 -0
- package/src/assets/visual/Lightbulb.tsx +54 -0
- package/src/assets/visual/Pencil.tsx +80 -0
- package/src/components/wui-card/index.tsx +1 -1
- package/src/components/wui-card/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +17 -8
- package/src/components/wui-lean-text/index.tsx +10 -0
- package/src/components/wui-lean-view/index.tsx +10 -0
- package/src/components/wui-text/index.tsx +4 -3
- package/src/components/wui-visual/index.tsx +6 -0
- package/src/composites/wui-account-button/index.tsx +17 -8
- package/src/composites/wui-account-button/styles.ts +6 -6
- package/src/composites/wui-account-pill/index.tsx +64 -0
- package/src/composites/wui-account-pill/styles.ts +23 -0
- package/src/composites/wui-avatar/styles.ts +2 -1
- package/src/composites/wui-balance/index.tsx +25 -0
- package/src/composites/wui-banner/index.tsx +28 -0
- package/src/composites/wui-banner/styles.ts +15 -0
- package/src/composites/wui-button/index.tsx +12 -10
- package/src/composites/wui-button/styles.ts +3 -3
- package/src/composites/wui-chip/index.tsx +14 -13
- package/src/composites/wui-chip/styles.ts +3 -3
- package/src/composites/wui-compatible-network/index.tsx +64 -0
- package/src/composites/wui-connect-button/styles.ts +1 -1
- package/src/composites/wui-icon-box/index.tsx +18 -2
- package/src/composites/wui-input-text/styles.ts +1 -1
- package/src/composites/wui-list-item/index.tsx +15 -14
- package/src/composites/wui-list-item/styles.ts +4 -3
- package/src/composites/wui-list-social/index.tsx +65 -0
- package/src/composites/wui-list-social/styles.ts +28 -0
- package/src/composites/wui-list-token/index.tsx +83 -0
- package/src/composites/wui-list-token/styles.ts +24 -0
- package/src/composites/wui-list-transaction/index.tsx +65 -0
- package/src/composites/wui-list-transaction/styles.ts +10 -0
- package/src/composites/wui-list-transaction/utils.ts +83 -0
- package/src/composites/wui-list-wallet/index.tsx +7 -6
- package/src/composites/wui-logo/index.tsx +4 -2
- package/src/composites/wui-logo-select/index.tsx +7 -4
- package/src/composites/wui-logo-select/styles.ts +3 -3
- package/src/composites/wui-network-button/index.tsx +22 -15
- package/src/composites/wui-network-button/styles.ts +5 -5
- package/src/composites/wui-network-image/index.tsx +57 -21
- package/src/composites/wui-network-image/styles.ts +6 -0
- package/src/composites/wui-otp/index.tsx +2 -4
- package/src/composites/wui-promo/index.tsx +42 -0
- package/src/composites/wui-qr-code/index.tsx +18 -11
- package/src/composites/wui-snackbar/index.tsx +1 -0
- package/src/composites/wui-snackbar/styles.ts +3 -2
- package/src/composites/wui-tabs/index.tsx +33 -9
- package/src/composites/wui-tabs/styles.ts +2 -3
- package/src/composites/wui-token-button/index.tsx +29 -0
- package/src/composites/wui-token-button/styles.ts +18 -0
- package/src/composites/wui-transaction-visual/index.tsx +78 -0
- package/src/composites/wui-transaction-visual/styles.ts +36 -0
- package/src/composites/wui-wallet-image/styles.ts +1 -1
- package/src/index.ts +13 -0
- package/src/layout/wui-flex/index.tsx +3 -3
- package/src/layout/wui-separator/index.tsx +7 -4
- package/src/utils/ThemeUtil.ts +4 -2
- package/src/utils/TransactionUtil.ts +173 -0
- package/src/utils/TypesUtil.ts +58 -6
- package/src/utils/UiUtil.ts +18 -0
- package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
- package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/module/assets/svg/Twitter.js +0 -37
- package/lib/module/assets/svg/Twitter.js.map +0 -1
- package/lib/module/assets/svg/TwitterIcon.js +0 -11
- package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
- package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
- package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
- package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
- package/src/assets/svg/Twitter.tsx +0 -27
- package/src/assets/svg/TwitterIcon.tsx +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","Icon","useTheme","BorderRadius","styles","IconBox","size","iconColor","icon","iconSize","background","backgroundColor","border","borderColor","borderSize","style","Theme","_iconSize","boxSize","borderRadius","backgroundStyle","containerSize","React","createElement","box","height","width","borderWidth","color","name"],"sourceRoot":"../../../../src","sources":["composites/wui-icon-box/index.tsx"],"mappings":"AAAA,SAAyBA,IAAI,QAAwB,cAAc;AACnE,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,YAAY,QAAQ,uBAAuB;AAEpD,OAAOC,MAAM,MAAM,UAAU;AAe7B,OAAO,SAASC,OAAOA,CAAC;EACtBC,IAAI;EACJC,SAAS,GAAG,QAAQ;EACpBC,IAAI;EACJC,QAAQ;EACRC,UAAU;EACVC,eAAe;EACfC,MAAM;EACNC,WAAW;EACXC,UAAU,GAAG,CAAC;EACdC;AACY,CAAC,EAAE;EACf,MAAMC,KAAK,GAAGd,QAAQ,CAAC,CAAC;EACxB,IAAIe,SAAmB;EACvB,QAAQX,IAAI;IACV,KAAK,IAAI;MACPW,SAAS,GAAG,IAAI;MAChB;IACF,KAAK,IAAI;MACPA,SAAS,GAAG,IAAI;MAChB;IACF,KAAK,IAAI;MACPA,SAAS,GAAG,IAAI;MAChB;IACF;MACEA,SAAS,GAAG,KAAK;EACrB;EAEA,IAAIC,OAAe;EACnB,QAAQZ,IAAI;IACV,KAAK,IAAI;MACPY,OAAO,GAAG,EAAE;MACZ;IACF,KAAK,IAAI;MACPA,OAAO,GAAG,EAAE;MACZ;IACF;MACEA,OAAO,GAAG,EAAE;EAChB;EAEA,
|
|
1
|
+
{"version":3,"names":["View","Icon","useTheme","BorderRadius","styles","IconBox","size","iconColor","icon","iconSize","background","backgroundColor","border","borderColor","borderSize","style","Theme","_iconSize","boxSize","borderRadius","backgroundStyle","containerSize","React","createElement","box","height","width","borderWidth","color","name"],"sourceRoot":"../../../../src","sources":["composites/wui-icon-box/index.tsx"],"mappings":"AAAA,SAAyBA,IAAI,QAAwB,cAAc;AACnE,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,YAAY,QAAQ,uBAAuB;AAEpD,OAAOC,MAAM,MAAM,UAAU;AAe7B,OAAO,SAASC,OAAOA,CAAC;EACtBC,IAAI;EACJC,SAAS,GAAG,QAAQ;EACpBC,IAAI;EACJC,QAAQ;EACRC,UAAU;EACVC,eAAe;EACfC,MAAM;EACNC,WAAW;EACXC,UAAU,GAAG,CAAC;EACdC;AACY,CAAC,EAAE;EACf,MAAMC,KAAK,GAAGd,QAAQ,CAAC,CAAC;EACxB,IAAIe,SAAmB;EACvB,QAAQX,IAAI;IACV,KAAK,IAAI;MACPW,SAAS,GAAG,IAA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AQ,IAAIQ,SAAU;IAACW,KAAK,EAAErB,SAAU;IAACsB,IAAI,EAAErB;EAAK,CAAE,CAC9D,CAAC;AAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","baseStyle","flexDirection","height","borderRadius","xxs","alignItems","paddingHorizontal","xs","borderWidth","outerBorderRadius","s","sm","md","create","xsContainer","width","smContainer","mdContainer","outerBorder","flexGrow","borderColor","input","flex","marginHorizontal","fontSize","fontWeight","icon","marginLeft","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-input-text/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAwB,cAAc;AACzD,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAE7D,MAAMC,SAAS,GAAG;EAChBC,aAAa,EAAE,KAAK;EACpBC,MAAM,EAAE,EAAE;EACVC,YAAY,EAAEL,YAAY,CAACM,GAAG;EAC9BC,UAAU,EAAE,QAAQ;EACpBC,iBAAiB,EAAEP,OAAO,CAACQ,EAAE;EAC7BC,WAAW,
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","baseStyle","flexDirection","height","borderRadius","xxs","alignItems","paddingHorizontal","xs","borderWidth","hairlineWidth","outerBorderRadius","s","sm","md","create","xsContainer","width","smContainer","mdContainer","outerBorder","flexGrow","borderColor","input","flex","marginHorizontal","fontSize","fontWeight","icon","marginLeft","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-input-text/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAwB,cAAc;AACzD,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAE7D,MAAMC,SAAS,GAAG;EAChBC,aAAa,EAAE,KAAK;EACpBC,MAAM,EAAE,EAAE;EACVC,YAAY,EAAEL,YAAY,CAACM,GAAG;EAC9BC,UAAU,EAAE,QAAQ;EACpBC,iBAAiB,EAAEP,OAAO,CAACQ,EAAE;EAC7BC,WAAW,EAAEX,UAAU,CAACY;AAC1B,CAAc;AAEd,OAAO,MAAMC,iBAAiB,GAAG;EAC/BH,EAAE,EAAET,YAAY,CAACa,CAAC;EAClBC,EAAE,EAAEd,YAAY,CAACS,EAAE;EACnBM,EAAE,EAAEf,YAAY,CAACa;AACnB,CAAC;AAED,eAAed,UAAU,CAACiB,MAAM,CAAC;EAC/B;EACAC,WAAW,EAAE;IACX,GAAGf,SAAS;IACZG,YAAY,EAAEL,YAAY,CAACS,EAAE;IAC7BL,MAAM,EAAE,EAAE;IACVc,KAAK,EAAE;EACT,CAAC;EACDC,WAAW,EAAE;IACX,GAAGjB;EACL,CAAC;EACDkB,WAAW,EAAE;IACX,GAAGlB,SAAS;IACZE,MAAM,EAAE,EAAE;IACVC,YAAY,EAAEL,YAAY,CAACS;EAC7B,CAAC;EACDY,WAAW,EAAE;IACXC,QAAQ,EAAE,CAAC;IACXZ,WAAW,EAAE,CAAC;IACdL,YAAY,EAAEL,YAAY,CAACS,EAAE;IAC7Bc,WAAW,EAAE;EACf,CAAC;EACDC,KAAK,EAAE;IACLC,IAAI,EAAE,CAAC;IACPC,gBAAgB,EAAEzB,OAAO,CAAC,KAAK,CAAC;IAChC0B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,EAAE;IACJC,UAAU,EAAE7B,OAAO,CAAC,KAAK,CAAC;IAC1B8B,WAAW,EAAE9B,OAAO,CAACQ;EACvB;AACF,CAAC,CAAC"}
|
|
@@ -10,15 +10,17 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
10
10
|
export function ListItem({
|
|
11
11
|
children,
|
|
12
12
|
icon,
|
|
13
|
-
variant,
|
|
14
13
|
imageSrc,
|
|
15
14
|
imageHeaders,
|
|
16
|
-
|
|
15
|
+
iconColor = 'fg-200',
|
|
16
|
+
iconBackgroundColor,
|
|
17
|
+
iconBorderColor = 'gray-glass-005',
|
|
17
18
|
chevron,
|
|
18
19
|
loading,
|
|
19
20
|
disabled,
|
|
20
21
|
onPress,
|
|
21
22
|
style,
|
|
23
|
+
contentStyle,
|
|
22
24
|
testID
|
|
23
25
|
}) {
|
|
24
26
|
const Theme = useTheme();
|
|
@@ -28,7 +30,7 @@ export function ListItem({
|
|
|
28
30
|
setEndValue
|
|
29
31
|
} = useAnimatedValue(Theme['gray-glass-002'], Theme['gray-glass-010']);
|
|
30
32
|
function visualTemplate() {
|
|
31
|
-
if (
|
|
33
|
+
if (imageSrc) {
|
|
32
34
|
return /*#__PURE__*/React.createElement(View, {
|
|
33
35
|
style: [styles.imageContainer, {
|
|
34
36
|
borderColor: Theme['gray-glass-005']
|
|
@@ -38,19 +40,17 @@ export function ListItem({
|
|
|
38
40
|
headers: imageHeaders,
|
|
39
41
|
style: [styles.image, (disabled || loading) && styles.disabledImage]
|
|
40
42
|
}));
|
|
41
|
-
} else if (
|
|
42
|
-
const iconColor = iconVariant === 'blue' ? 'accent-100' : 'fg-200';
|
|
43
|
-
const borderColor = iconVariant === 'blue' ? 'accent-glass-005' : 'gray-glass-005';
|
|
43
|
+
} else if (icon) {
|
|
44
44
|
return /*#__PURE__*/React.createElement(View, {
|
|
45
45
|
style: [styles.imageContainer, {
|
|
46
|
-
borderColor: Theme[
|
|
46
|
+
borderColor: Theme[iconBorderColor]
|
|
47
47
|
}]
|
|
48
48
|
}, /*#__PURE__*/React.createElement(IconBox, {
|
|
49
49
|
icon: icon,
|
|
50
50
|
iconColor: iconColor,
|
|
51
51
|
size: "md",
|
|
52
52
|
background: true,
|
|
53
|
-
backgroundColor:
|
|
53
|
+
backgroundColor: iconBackgroundColor
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
56
|
return null;
|
|
@@ -66,7 +66,7 @@ export function ListItem({
|
|
|
66
66
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
67
67
|
name: "chevronRight",
|
|
68
68
|
size: "md",
|
|
69
|
-
color: "fg-
|
|
69
|
+
color: "fg-200",
|
|
70
70
|
style: styles.rightIcon
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@ export function ListItem({
|
|
|
82
82
|
onPressOut: setStartValue,
|
|
83
83
|
testID: testID
|
|
84
84
|
}, visualTemplate(), /*#__PURE__*/React.createElement(View, {
|
|
85
|
-
style: styles.content
|
|
85
|
+
style: [styles.content, contentStyle]
|
|
86
86
|
}, children), rightTemplate());
|
|
87
87
|
}
|
|
88
88
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","Pressable","Animated","Icon","Image","LoadingSpinner","useAnimatedValue","useTheme","IconBox","styles","AnimatedPressable","createAnimatedComponent","ListItem","children","icon","
|
|
1
|
+
{"version":3,"names":["View","Pressable","Animated","Icon","Image","LoadingSpinner","useAnimatedValue","useTheme","IconBox","styles","AnimatedPressable","createAnimatedComponent","ListItem","children","icon","imageSrc","imageHeaders","iconColor","iconBackgroundColor","iconBorderColor","chevron","loading","disabled","onPress","style","contentStyle","testID","Theme","animatedValue","setStartValue","setEndValue","visualTemplate","React","createElement","imageContainer","borderColor","source","headers","image","disabledImage","size","background","backgroundColor","rightTemplate","color","rightIcon","name","container","onPressIn","onPressOut","content"],"sourceRoot":"../../../../src","sources":["composites/wui-list-item/index.tsx"],"mappings":"AACA,SAASA,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAwC,cAAc;AACxF,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,KAAK,QAAQ,4BAA4B;AAClD,SAASC,cAAc,QAAQ,sCAAsC;AACrE,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,SAASC,QAAQ,QAAQ,sBAAsB;AAE/C,SAASC,OAAO,QAAQ,iBAAiB;AACzC,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,iBAAiB,GAAGR,QAAQ,CAACS,uBAAuB,CAACV,SAAS,CAAC;AAmBrE,OAAO,SAASW,QAAQA,CAAC;EACvBC,QAAQ;EACRC,IAAI;EACJC,QAAQ;EACRC,YAAY;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IACvB,IAAItB,OAAO,EAAE;MACX,oBAAOW,KAAA,CAAAC,aAAA,CAAC5B,cAAc;QAACuC,KAAK,EAAC,QAAQ;QAACJ,IAAI,EAAC,IAAI;QAAChB,KAAK,EAAEf,MAAM,CAACoC;MAAU,CAAE,CAAC;IAC7E,CAAC,MAAM,IAAIzB,OAAO,EAAE;MAClB,oBAAOY,KAAA,CAAAC,aAAA,CAAC9B,IAAI;QAAC2C,IAAI,EAAC,cAAc;QAACN,IAAI,EAAC,IAAI;QAACI,KAAK,EAAC,QAAQ;QAACpB,KAAK,EAAEf,MAAM,CAACoC;MAAU,CAAE,CAAC;IACvF;IAEA,OAAO,IAAI;EACb;EAEA,oBACEb,KAAA,CAAAC,aAAA,CAACvB,iBAAiB;IAChBY,QAAQ,EAAEA,QAAQ,IAAID,OAAQ;IAC9BG,KAAK,EAAE,CACLf,MAAM,CAACsC,SAAS,EAChB;MAAEL,eAAe,EAAEpB,QAAQ,IAAID,OAAO,GAAGM,KAAK,CAAC,gBAAgB,CAAC,GAAGC;IAAc,CAAC,EAClFJ,KAAK,CACL;IACFD,OAAO,EAAEA,OAAQ;IACjByB,SAAS,EAAElB,WAAY;IACvBmB,UAAU,EAAEpB,aAAc;IAC1BH,MAAM,EAAEA;EAAO,GAEdK,cAAc,CAAC,CAAC,eACjBC,KAAA,CAAAC,aAAA,CAACjC,IAAI;IAACwB,KAAK,EAAE,CAACf,MAAM,CAACyC,OAAO,EAAEzB,YAAY;EAAE,GAAEZ,QAAe,CAAC,EAC7D8B,aAAa,CAAC,CACE,CAAC;AAExB"}
|
|
@@ -12,12 +12,13 @@ export default StyleSheet.create({
|
|
|
12
12
|
content: {
|
|
13
13
|
flexDirection: 'row',
|
|
14
14
|
flexGrow: 1,
|
|
15
|
-
paddingHorizontal: Spacing.s
|
|
15
|
+
paddingHorizontal: Spacing.s,
|
|
16
|
+
alignItems: 'center'
|
|
16
17
|
},
|
|
17
18
|
imageContainer: {
|
|
18
19
|
width: 36,
|
|
19
20
|
height: 36,
|
|
20
|
-
borderRadius:
|
|
21
|
+
borderRadius: BorderRadius.full,
|
|
21
22
|
borderWidth: 2,
|
|
22
23
|
alignItems: 'center',
|
|
23
24
|
justifyContent: 'center'
|
|
@@ -25,7 +26,7 @@ export default StyleSheet.create({
|
|
|
25
26
|
image: {
|
|
26
27
|
width: 32,
|
|
27
28
|
height: 32,
|
|
28
|
-
borderRadius:
|
|
29
|
+
borderRadius: BorderRadius.full
|
|
29
30
|
},
|
|
30
31
|
disabledImage: {
|
|
31
32
|
opacity: 0.4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","create","container","flexDirection","height","width","padding","s","alignItems","borderRadius","xs","content","flexGrow","paddingHorizontal","imageContainer","borderWidth","justifyContent","image","disabledImage","opacity","rightIcon","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-list-item/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAE7D,eAAeF,UAAU,CAACG,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,OAAO,CAACO,CAAC;IAClBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAEV,YAAY,CAACW;EAC7B,CAAC;EACDC,OAAO,EAAE;IACPR,aAAa,EAAE,KAAK;IACpBS,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAEb,OAAO,CAACO;
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","create","container","flexDirection","height","width","padding","s","alignItems","borderRadius","xs","content","flexGrow","paddingHorizontal","imageContainer","full","borderWidth","justifyContent","image","disabledImage","opacity","rightIcon","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-list-item/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAE7D,eAAeF,UAAU,CAACG,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,OAAO,CAACO,CAAC;IAClBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAEV,YAAY,CAACW;EAC7B,CAAC;EACDC,OAAO,EAAE;IACPR,aAAa,EAAE,KAAK;IACpBS,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAEb,OAAO,CAACO,CAAC;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDM,cAAc,EAAE;IACdT,KAAK,EAAE,EAAE;IACTD,MAAM,EAAE,EAAE;IACVK,YAAY,EAAEV,YAAY,CAACgB,IAAI;IAC/BC,WAAW,EAAE,CAAC;IACdR,UAAU,EAAE,QAAQ;IACpBS,cAAc,EAAE;EAClB,CAAC;EACDC,KAAK,EAAE;IACLb,KAAK,EAAE,EAAE;IACTD,MAAM,EAAE,EAAE;IACVK,YAAY,EAAEV,YAAY,CAACgB;EAC7B,CAAC;EACDI,aAAa,EAAE;IACbC,OAAO,EAAE;EACX,CAAC;EACDC,SAAS,EAAE;IACTC,WAAW,EAAEtB,OAAO,CAAC,KAAK;EAC5B;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { View, Pressable, Animated } from 'react-native';
|
|
2
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
3
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
4
|
+
import styles from './styles';
|
|
5
|
+
import { Logo } from '../wui-logo';
|
|
6
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
7
|
+
export function ListSocial({
|
|
8
|
+
logo,
|
|
9
|
+
children,
|
|
10
|
+
disabled,
|
|
11
|
+
onPress,
|
|
12
|
+
style,
|
|
13
|
+
testID,
|
|
14
|
+
logoHeight = 40,
|
|
15
|
+
logoWidth = 40
|
|
16
|
+
}) {
|
|
17
|
+
const Theme = useTheme();
|
|
18
|
+
const {
|
|
19
|
+
animatedValue,
|
|
20
|
+
setStartValue,
|
|
21
|
+
setEndValue
|
|
22
|
+
} = useAnimatedValue(Theme['gray-glass-002'], Theme['gray-glass-010']);
|
|
23
|
+
return /*#__PURE__*/React.createElement(AnimatedPressable, {
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
style: [styles.container, {
|
|
26
|
+
backgroundColor: animatedValue
|
|
27
|
+
}, style],
|
|
28
|
+
onPress: onPress,
|
|
29
|
+
onPressIn: setEndValue,
|
|
30
|
+
onPressOut: setStartValue,
|
|
31
|
+
testID: testID
|
|
32
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
33
|
+
style: [styles.border, {
|
|
34
|
+
height: logoHeight + 1,
|
|
35
|
+
width: logoWidth + 1,
|
|
36
|
+
borderColor: Theme['gray-glass-005']
|
|
37
|
+
}]
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Logo, {
|
|
39
|
+
logo: logo,
|
|
40
|
+
style: disabled && styles.disabledLogo,
|
|
41
|
+
width: logoWidth,
|
|
42
|
+
height: logoHeight
|
|
43
|
+
})), children, /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
style: styles.rightPlaceholder
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","Pressable","Animated","useAnimatedValue","useTheme","styles","Logo","AnimatedPressable","createAnimatedComponent","ListSocial","logo","children","disabled","onPress","style","testID","logoHeight","logoWidth","Theme","animatedValue","setStartValue","setEndValue","React","createElement","container","backgroundColor","onPressIn","onPressOut","border","height","width","borderColor","disabledLogo","rightPlaceholder"],"sourceRoot":"../../../../src","sources":["composites/wui-list-social/index.tsx"],"mappings":"AAAA,SAASA,IAAI,EAAEC,SAAS,EAAEC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EAAEb,SAAU;IACjBY,MAAM,EAAEb;EAAW,CACpB,CACG,CAAC,EACNL,QAAQ,eACTW,KAAA,CAAAC,aAAA,CAACvB,IAAI;IAACc,KAAK,EAAET,MAAM,CAAC4B;EAAiB,CAAE,CACtB,CAAC;AAExB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
export default StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
flexDirection: 'row',
|
|
6
|
+
height: 56,
|
|
7
|
+
width: '100%',
|
|
8
|
+
padding: Spacing.s,
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
justifyContent: 'space-between',
|
|
11
|
+
borderRadius: BorderRadius.s
|
|
12
|
+
},
|
|
13
|
+
rightPlaceholder: {
|
|
14
|
+
width: 40,
|
|
15
|
+
height: 40,
|
|
16
|
+
borderRadius: 100
|
|
17
|
+
},
|
|
18
|
+
disabledLogo: {
|
|
19
|
+
opacity: 0.4
|
|
20
|
+
},
|
|
21
|
+
border: {
|
|
22
|
+
borderRadius: BorderRadius.full,
|
|
23
|
+
borderWidth: 2,
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
justifyContent: 'center'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","create","container","flexDirection","height","width","padding","s","alignItems","justifyContent","borderRadius","rightPlaceholder","disabledLogo","opacity","border","full","borderWidth"],"sourceRoot":"../../../../src","sources":["composites/wui-list-social/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAE7D,eAAeF,UAAU,CAACG,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,OAAO,CAACO,CAAC;IAClBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAEX,YAAY,CAACQ;EAC7B,CAAC;EACDI,gBAAgB,EAAE;IAChBN,KAAK,EAAE,EAAE;IACTD,MAAM,EAAE,EAAE;IACVM,YAAY,EAAE;EAChB,CAAC;EACDE,YAAY,EAAE;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,MAAM,EAAE;IACNJ,YAAY,EAAEX,YAAY,CAACgB,IAAI;IAC/BC,WAAW,EAAE,CAAC;IACdR,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Pressable } from 'react-native';
|
|
2
|
+
import { Icon } from '../../components/wui-icon';
|
|
3
|
+
import { Image } from '../../components/wui-image';
|
|
4
|
+
import { Text } from '../../components/wui-text';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
7
|
+
import { UiUtil } from '../../utils/UiUtil';
|
|
8
|
+
import styles from './styles';
|
|
9
|
+
export function ListToken({
|
|
10
|
+
imageSrc,
|
|
11
|
+
networkSrc,
|
|
12
|
+
name,
|
|
13
|
+
value,
|
|
14
|
+
amount,
|
|
15
|
+
currency,
|
|
16
|
+
onPress
|
|
17
|
+
}) {
|
|
18
|
+
const Theme = useTheme();
|
|
19
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
20
|
+
onPress: onPress
|
|
21
|
+
}, /*#__PURE__*/React.createElement(FlexView, {
|
|
22
|
+
flexDirection: "row",
|
|
23
|
+
justifyContent: "space-between",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
padding: ['2xs', 'm', '2xs', 'xs']
|
|
26
|
+
}, /*#__PURE__*/React.createElement(FlexView, {
|
|
27
|
+
flexDirection: "row",
|
|
28
|
+
alignItems: "center"
|
|
29
|
+
}, imageSrc ? /*#__PURE__*/React.createElement(Image, {
|
|
30
|
+
source: imageSrc,
|
|
31
|
+
style: [styles.image, {
|
|
32
|
+
backgroundColor: Theme['gray-glass-005']
|
|
33
|
+
}]
|
|
34
|
+
}) : /*#__PURE__*/React.createElement(FlexView, {
|
|
35
|
+
style: [styles.image, {
|
|
36
|
+
backgroundColor: Theme['gray-glass-005']
|
|
37
|
+
}],
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
justifyContent: "center"
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
name: "coinPlaceholder",
|
|
42
|
+
size: "lg",
|
|
43
|
+
color: "fg-200"
|
|
44
|
+
})), /*#__PURE__*/React.createElement(FlexView, {
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "center",
|
|
47
|
+
style: [styles.networkImageContainer, {
|
|
48
|
+
borderColor: Theme['bg-100'],
|
|
49
|
+
backgroundColor: Theme['bg-200']
|
|
50
|
+
}]
|
|
51
|
+
}, networkSrc ? /*#__PURE__*/React.createElement(Image, {
|
|
52
|
+
source: networkSrc,
|
|
53
|
+
style: styles.networkImage
|
|
54
|
+
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
55
|
+
name: "networkPlaceholder",
|
|
56
|
+
size: "xxs",
|
|
57
|
+
color: "fg-200"
|
|
58
|
+
})), /*#__PURE__*/React.createElement(FlexView, {
|
|
59
|
+
padding: ['0', 's', '0', 's']
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
61
|
+
color: "fg-100",
|
|
62
|
+
variant: "paragraph-500"
|
|
63
|
+
}, name), /*#__PURE__*/React.createElement(Text, {
|
|
64
|
+
variant: "small-400",
|
|
65
|
+
color: "fg-200"
|
|
66
|
+
}, UiUtil.formatNumberToLocalString(amount, 4), " ", currency))), /*#__PURE__*/React.createElement(Text, {
|
|
67
|
+
color: "fg-100",
|
|
68
|
+
variant: "paragraph-500"
|
|
69
|
+
}, "$", value?.toFixed(2) ?? '0.00')));
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Pressable","Icon","Image","Text","useTheme","FlexView","UiUtil","styles","ListToken","imageSrc","networkSrc","name","value","amount","currency","onPress","Theme","React","createElement","flexDirection","justifyContent","alignItems","padding","source","style","image","backgroundColor","size","color","networkImageContainer","borderColor","networkImage","variant","formatNumberToLocalString","toFixed"],"sourceRoot":"../../../../src","sources":["composites/wui-list-token/index.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,cAAc;AACxC,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,KAAK,QAAQ,4BAA4B;AAClD,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,OAAOC,MAAM,MAAM,UAAU;AAY7B,OAAO,SAASC,SAASA,CAAC;EACxBC,QAAQ;EACRC,UAAU;EACVC,IAAI;EACJC,KAAK;EACLC,MAAM;EACNC,QAAQ;EACRC;AACc,CAAC,EAAE;EACjB,MAAMC,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EAExB,oBACEa,KAAA,CAAAC,aAAA,CAAClB,SAAS;IAACe,OAAO,EAAEA;EAAQ,gBAC1BE,KAAA,CAAAC,aAAA,CAACb,QAAQ;IACPc,aAAa,EAAC,KAAK;IACnBC,cAAc,EAAC,eAAe;IAC9BC,UAAU,EAAC,QAAQ;IACnBC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI;EAAE,gBAEnCL,KAAA,CAAAC,aAAA,CAACb,QAAQ;IAACc,aAAa,EAAC,KAAK;IAACE,UAAU,EAAC;EAAQ,GAC9CZ,QAAQ,gBACPQ,KAAA,CAAAC,aAAA,CAAChB,K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AC,eACPM,KAAA,CAAAC,aAAA,CAACf,IAAI;IAAC6B,OAAO,EAAC,WAAW;IAACJ,KAAK,EAAC;EAAQ,GACrCtB,MAAM,CAAC2B,yBAAyB,CAACpB,MAAM,EAAE,CAAC,CAAC,EAAC,GAAC,EAACC,QAC3C,CACE,CACF,CAAC,eACXG,KAAA,CAAAC,aAAA,CAACf,IAAI;IAACyB,KAAK,EAAC,QAAQ;IAACI,OAAO,EAAC;EAAe,GAAC,GAC1C,EAACpB,KAAK,EAAEsB,OAAO,CAAC,CAAC,CAAC,IAAI,MACnB,CACE,CACD,CAAC;AAEhB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, WalletImageSize } from '../../utils/ThemeUtil';
|
|
3
|
+
export default StyleSheet.create({
|
|
4
|
+
image: {
|
|
5
|
+
height: WalletImageSize.sm,
|
|
6
|
+
width: WalletImageSize.sm,
|
|
7
|
+
borderRadius: BorderRadius.full
|
|
8
|
+
},
|
|
9
|
+
networkImageContainer: {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
bottom: -2,
|
|
12
|
+
left: 24,
|
|
13
|
+
borderWidth: 2,
|
|
14
|
+
borderRadius: BorderRadius.full,
|
|
15
|
+
width: 18,
|
|
16
|
+
height: 18
|
|
17
|
+
},
|
|
18
|
+
networkImage: {
|
|
19
|
+
width: 14,
|
|
20
|
+
height: 14,
|
|
21
|
+
borderRadius: BorderRadius.full
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","WalletImageSize","create","image","height","sm","width","borderRadius","full","networkImageContainer","position","bottom","left","borderWidth","networkImage"],"sourceRoot":"../../../../src","sources":["composites/wui-list-token/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,EAAEC,eAAe,QAAQ,uBAAuB;AAErE,eAAeF,UAAU,CAACG,MAAM,CAAC;EAC/BC,KAAK,EAAE;IACLC,MAAM,EAAEH,eAAe,CAACI,EAAE;IAC1BC,KAAK,EAAEL,eAAe,CAACI,EAAE;IACzBE,YAAY,EAAEP,YAAY,CAACQ;EAC7B,CAAC;EACDC,qBAAqB,EAAE;IACrBC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,IAAI,EAAE,EAAE;IACRC,WAAW,EAAE,CAAC;IACdN,YAAY,EAAEP,YAAY,CAACQ,IAAI;IAC/BF,KAAK,EAAE,EAAE;IACTF,MAAM,EAAE;EACV,CAAC;EACDU,YAAY,EAAE;IACZR,KAAK,EAAE,EAAE;IACTF,MAAM,EAAE,EAAE;IACVG,YAAY,EAAEP,YAAY,CAACQ;EAC7B;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Text } from '../../components/wui-text';
|
|
2
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
3
|
+
import { IconBox } from '../wui-icon-box';
|
|
4
|
+
import { TransactionVisual } from '../wui-transaction-visual';
|
|
5
|
+
import { getIcon, getTypeLabel, getIconColor } from './utils';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
export function ListTransaction({
|
|
8
|
+
date,
|
|
9
|
+
type,
|
|
10
|
+
descriptions,
|
|
11
|
+
images,
|
|
12
|
+
networkSrc,
|
|
13
|
+
style,
|
|
14
|
+
isAllNFT,
|
|
15
|
+
status
|
|
16
|
+
}) {
|
|
17
|
+
const joinSymbol = type === 'trade' ? ' → ' : ' - ';
|
|
18
|
+
return /*#__PURE__*/React.createElement(FlexView, {
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
style: style
|
|
22
|
+
}, /*#__PURE__*/React.createElement(TransactionVisual, {
|
|
23
|
+
images: images,
|
|
24
|
+
networkSrc: networkSrc,
|
|
25
|
+
isAllNFT: isAllNFT
|
|
26
|
+
}), /*#__PURE__*/React.createElement(FlexView, {
|
|
27
|
+
flexDirection: "row",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
style: styles.middleContainer
|
|
30
|
+
}, /*#__PURE__*/React.createElement(FlexView, {
|
|
31
|
+
justifyContent: "center",
|
|
32
|
+
alignItems: "flex-start"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(FlexView, {
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
alignItems: "center"
|
|
36
|
+
}, type && /*#__PURE__*/React.createElement(IconBox, {
|
|
37
|
+
icon: getIcon(type),
|
|
38
|
+
size: "sm",
|
|
39
|
+
iconColor: getIconColor(status),
|
|
40
|
+
background: true,
|
|
41
|
+
border: true,
|
|
42
|
+
borderColor: "bg-100"
|
|
43
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
44
|
+
variant: "paragraph-500",
|
|
45
|
+
color: "fg-100"
|
|
46
|
+
}, getTypeLabel(type))), /*#__PURE__*/React.createElement(Text, {
|
|
47
|
+
variant: "small-400",
|
|
48
|
+
color: "fg-200",
|
|
49
|
+
numberOfLines: 1,
|
|
50
|
+
ellipsizeMode: "tail"
|
|
51
|
+
}, descriptions?.join(joinSymbol)))), /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
variant: "micro-700",
|
|
53
|
+
color: "fg-300",
|
|
54
|
+
style: styles.date
|
|
55
|
+
}, date));
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","FlexView","IconBox","TransactionVisual","getIcon","getTypeLabel","getIconColor","styles","ListTransaction","date","type","descriptions","images","networkSrc","style","isAllNFT","status","joinSymbol","React","createElement","flexDirection","alignItems","middleContainer","justifyContent","icon","size","iconColor","background","border","borderColor","variant","color","numberOfLines","ellipsizeMode","join"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/index.tsx"],"mappings":"AAGA,SAASA,IAAI,QAAQ,2BAA2B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AAAC,aAAA,CAACnB,IAAI;IAAC8B,OAAO,EAAC,eAAe;IAACC,KAAK,EAAC;EAAQ,GACzC1B,YAAY,CAACK,IAAI,CACd,CACE,CAAC,eACXQ,KAAA,CAAAC,aAAA,CAACnB,IAAI;IAAC8B,OAAO,EAAC,WAAW;IAACC,KAAK,EAAC,QAAQ;IAACC,aAAa,EAAE,CAAE;IAACC,aAAa,EAAC;EAAM,GAC5EtB,YAAY,EAAEuB,IAAI,CAACjB,UAAU,CAC1B,CACE,CACF,CAAC,eACXC,KAAA,CAAAC,aAAA,CAACnB,IAAI;IAAC8B,OAAO,EAAC,WAAW;IAACC,KAAK,EAAC,QAAQ;IAACjB,KAAK,EAAEP,MAAM,CAACE;EAAK,GACzDA,IACG,CACE,CAAC;AAEf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","create","middleContainer","flex","date","textTransform"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,eAAeA,UAAU,CAACC,MAAM,CAAC;EAC/BC,eAAe,EAAE;IACfC,IAAI,EAAE;EACR,CAAC;EACDC,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export const getIcon = type => {
|
|
2
|
+
switch (type) {
|
|
3
|
+
case 'approve':
|
|
4
|
+
case 'execute':
|
|
5
|
+
return 'checkmark';
|
|
6
|
+
case 'repay':
|
|
7
|
+
case 'send':
|
|
8
|
+
case 'stake':
|
|
9
|
+
case 'withdraw':
|
|
10
|
+
return 'arrowTop';
|
|
11
|
+
case 'burn':
|
|
12
|
+
case 'cancel':
|
|
13
|
+
return 'close';
|
|
14
|
+
case 'trade':
|
|
15
|
+
return 'swapHorizontal';
|
|
16
|
+
case 'deploy':
|
|
17
|
+
return 'arrowRight';
|
|
18
|
+
default:
|
|
19
|
+
return 'arrowBottom';
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//Utils
|
|
24
|
+
export const getIconColor = status => {
|
|
25
|
+
switch (status) {
|
|
26
|
+
case 'confirmed':
|
|
27
|
+
return 'success-100';
|
|
28
|
+
case 'failed':
|
|
29
|
+
return 'error-100';
|
|
30
|
+
case 'pending':
|
|
31
|
+
return 'fg-200';
|
|
32
|
+
default:
|
|
33
|
+
return 'fg-200';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export const getTypeLabel = type => {
|
|
37
|
+
if (!type) {
|
|
38
|
+
return 'Unknown';
|
|
39
|
+
}
|
|
40
|
+
switch (type) {
|
|
41
|
+
case 'approve':
|
|
42
|
+
return 'Approved';
|
|
43
|
+
case 'bought':
|
|
44
|
+
return 'Bought';
|
|
45
|
+
case 'borrow':
|
|
46
|
+
return 'Borrowed';
|
|
47
|
+
case 'burn':
|
|
48
|
+
return 'Burnt';
|
|
49
|
+
case 'cancel':
|
|
50
|
+
return 'Canceled';
|
|
51
|
+
case 'claim':
|
|
52
|
+
return 'Claimed';
|
|
53
|
+
case 'deploy':
|
|
54
|
+
return 'Deployed';
|
|
55
|
+
case 'deposit':
|
|
56
|
+
return 'Deposited';
|
|
57
|
+
case 'execute':
|
|
58
|
+
return 'Executed';
|
|
59
|
+
case 'mint':
|
|
60
|
+
return 'Minted';
|
|
61
|
+
case 'receive':
|
|
62
|
+
return 'Received';
|
|
63
|
+
case 'repay':
|
|
64
|
+
return 'Repaid';
|
|
65
|
+
case 'send':
|
|
66
|
+
return 'Sent';
|
|
67
|
+
case 'stake':
|
|
68
|
+
return 'Staked';
|
|
69
|
+
case 'trade':
|
|
70
|
+
return 'Swapped';
|
|
71
|
+
case 'unstake':
|
|
72
|
+
return 'Unstaked';
|
|
73
|
+
case 'withdraw':
|
|
74
|
+
return 'Withdrawn';
|
|
75
|
+
default:
|
|
76
|
+
return 'Unknown';
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getIcon","type","getIconColor","status","getTypeLabel"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/utils.ts"],"mappings":"AAGA,OAAO,MAAMA,OAAO,GAAIC,IAAqB,IAAe;EAC1D,QAAQA,IAAI;IACV,KAAK,SAAS;IACd,KAAK,SAAS;MACZ,OAAO,WAAW;IACpB,KAAK,OAAO;IACZ,KAAK,MAAM;IACX,KAAK,OAAO;IACZ,KAAK,UAAU;MACb,OAAO,UAAU;IACnB,KAAK,MAAM;IACX,KAAK,QAAQ;MACX,OAAO,OAAO;IAChB,KAAK,OAAO;MACV,OAAO,gBAAgB;IACzB,KAAK,QAAQ;MACX,OAAO,YAAY;IACrB;MACE,OAAO,aAAa;EACxB;AACF,CAAC;;AAED;AACA,OAAO,MAAMC,YAAY,GAAIC,MAA0B,IAAK;EAC1D,QAAQA,MAAM;IACZ,KAAK,WAAW;MACd,OAAO,aAAa;IACtB,KAAK,QAAQ;MACX,OAAO,WAAW;IACpB,KAAK,SAAS;MACZ,OAAO,QAAQ;IACjB;MACE,OAAO,QAAQ;EACnB;AACF,CAAC;AAED,OAAO,MAAMC,YAAY,GAAIH,IAAsB,IAAK;EACtD,IAAI,CAACA,IAAI,EAAE;IACT,OAAO,SAAS;EAClB;EAEA,QAAQA,IAAI;IACV,KAAK,SAAS;MACZ,OAAO,UAAU;IACnB,KAAK,QAAQ;MACX,OAAO,QAAQ;IACjB,KAAK,QAAQ;MACX,OAAO,UAAU;IACnB,KAAK,MAAM;MACT,OAAO,OAAO;IAChB,KAAK,QAAQ;MACX,OAAO,UAAU;IACnB,KAAK,OAAO;MACV,OAAO,SAAS;IAClB,KAAK,QAAQ;MACX,OAAO,UAAU;IACnB,KAAK,SAAS;MACZ,OAAO,WAAW;IACpB,KAAK,SAAS;MACZ,OAAO,UAAU;IACnB,KAAK,MAAM;MACT,OAAO,QAAQ;IACjB,KAAK,SAAS;MACZ,OAAO,UAAU;IACnB,KAAK,OAAO;MACV,OAAO,QAAQ;IACjB,KAAK,MAAM;MACT,OAAO,MAAM;IACf,KAAK,OAAO;MACV,OAAO,QAAQ;IACjB,KAAK,OAAO;MACV,OAAO,SAAS;IAClB,KAAK,SAAS;MACZ,OAAO,UAAU;IACnB,KAAK,UAAU;MACb,OAAO,WAAW;IACpB;MACE,OAAO,SAAS;EACpB;AACF,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Animated, Pressable
|
|
1
|
+
import { Animated, Pressable } from 'react-native';
|
|
2
2
|
import { Text } from '../../components/wui-text';
|
|
3
3
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { Tag } from '../wui-tag';
|
|
6
6
|
import { WalletImage } from '../wui-wallet-image';
|
|
7
7
|
import { Icon } from '../../components/wui-icon';
|
|
8
|
-
import
|
|
8
|
+
import { LeanView } from '../../components/wui-lean-view';
|
|
9
9
|
import { IconBox } from '../wui-icon-box';
|
|
10
|
+
import styles from './styles';
|
|
10
11
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
11
12
|
export function ListWallet({
|
|
12
13
|
name,
|
|
@@ -43,7 +44,7 @@ export function ListWallet({
|
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
46
|
function imageTemplate() {
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
+
return /*#__PURE__*/React.createElement(LeanView, null, /*#__PURE__*/React.createElement(WalletImage, {
|
|
47
48
|
style: [styles.image, disabled && styles.imageDisabled],
|
|
48
49
|
imageSrc: imageSrc,
|
|
49
50
|
imageHeaders: imageHeaders,
|
|
@@ -78,7 +79,7 @@ export function ListWallet({
|
|
|
78
79
|
onPressIn: setEndValue,
|
|
79
80
|
onPressOut: setStartValue,
|
|
80
81
|
testID: testID
|
|
81
|
-
}, /*#__PURE__*/React.createElement(
|
|
82
|
+
}, /*#__PURE__*/React.createElement(LeanView, {
|
|
82
83
|
style: styles.leftSide
|
|
83
84
|
}, imageTemplate(), /*#__PURE__*/React.createElement(Text, {
|
|
84
85
|
variant: "paragraph-500",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Animated","Pressable","
|
|
1
|
+
{"version":3,"names":["Animated","Pressable","Text","useAnimatedValue","useTheme","Tag","WalletImage","Icon","LeanView","IconBox","styles","AnimatedPressable","createAnimatedComponent","ListWallet","name","onPress","imageSrc","imageHeaders","showAllWallets","tagLabel","tagVariant","icon","disabled","installed","style","testID","Theme","animatedValue","setStartValue","setEndValue","templateInstalled","React","createElement","iconSize","iconColor","border","borderColor","background","backgroundColor","size","installedBox","imageTemplate","image","imageDisabled","iconTemplate","variant","rightIcon","color","container","onPressIn","onPressOut","leftSide"],"sourceRoot":"../../../../src","sources":["composites/wui-list-wallet/index.tsx"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAwC,cAAc;AAClF,SAASC,IAAI,QAAQ,2BAA2B;AAChD,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,SAASC,QAAQ,QAAQ,sBAAsB;AAE/C,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,WAAW,QAAQ,qBAAqB;AACjD,SAASC,IAAI,QAAQ,2BAA2B;AAChD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,OAAO,QAAQ,iBAAiB;AAEzC,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,iBAAiB,GAAGX,QAAQ,CAACY,uBAAuB,CAACX,SAAS,CAAC;AAiBrE,OAAO,SAASY,UAAUA,CAAC;EACzBC,IAAI;EACJC,OAAO;EACPC,QAAQ;EACRC,YAAY;EACZC,cAAc;EACdC,QAAQ;EACRC,UAAU;EACVC,IAAI;EACJC,QAAQ;EACRC,SAAS;EACTC,KAAK;EACLC;AACe,CAAC,EAAE;EAClB,MAAMC,KAAK,GAAGtB,QAAQ,CAAC,CAAC;EACx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,KAAK,EAAEzB,QAAQ,GAAG,QAAQ,GAAG,QAAS;QACtCiB,IAAI,EAAC,IAAI;QACTf,KAAK,EAAEd,MAAM,CAACoC;MAAU,CACzB,CAAC;IAEN;IAEA,OAAO,IAAI;EACb;EAEA,oBACEf,KAAA,CAAAC,aAAA,CAACrB,iBAAiB;IAChBa,KAAK,EAAE,CACLd,MAAM,CAACsC,SAAS,EAChB;MAAEV,eAAe,EAAEhB,QAAQ,GAAGI,KAAK,CAAC,gBAAgB,CAAC,GAAGC;IAAc,CAAC,EACvEH,KAAK,CACL;IACFF,QAAQ,EAAEA,QAAS;IACnBP,OAAO,EAAEA,OAAQ;IACjBkC,SAAS,EAAEpB,WAAY;IACvBqB,UAAU,EAAEtB,aAAc;IAC1BH,MAAM,EAAEA;EAAO,gBAEfM,KAAA,CAAAC,aAAA,CAACxB,QAAQ;IAACgB,KAAK,EAAEd,MAAM,CAACyC;EAAS,GAC9BV,aAAa,CAAC,CAAC,eAChBV,KAAA,CAAAC,aAAA,CAAC9B,IAAI;IAAC2C,OAAO,EAAC,eAAe;IAACrB,KAAK,EAAEd,MAAM,CAACI,IAAK;IAACiC,KAAK,EAAEzB,QAAQ,GAAG,QAAQ,GAAG;EAAS,GACrFR,IACG,CACE,CAAC,EACV8B,YAAY,CAAC,CACG,CAAC;AAExB"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Icon } from '../../components/wui-icon';
|
|
2
2
|
export function Logo({
|
|
3
|
+
width = 40,
|
|
4
|
+
height = 40,
|
|
3
5
|
logo,
|
|
4
6
|
style
|
|
5
7
|
}) {
|
|
6
8
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
9
|
+
width: width,
|
|
10
|
+
height: height,
|
|
9
11
|
name: logo,
|
|
10
12
|
style: style
|
|
11
13
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Icon","Logo","
|
|
1
|
+
{"version":3,"names":["Icon","Logo","width","height","logo","style","React","createElement","name"],"sourceRoot":"../../../../src","sources":["composites/wui-logo/index.tsx"],"mappings":"AACA,SAASA,IAAI,QAAQ,2BAA2B;AAYhD,OAAO,SAASC,IAAIA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,IAAI;EAAEC;AAAiB,CAAC,EAAE;EACxE,oBAAOC,KAAA,CAAAC,aAAA,CAACP,IAAI;IAACE,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACK,IAAI,EAAEJ,IAAK;IAACC,KAAK,EAAEA;EAAM,CAAE,CAAC;AACzE"}
|
|
@@ -6,20 +6,23 @@ import styles from './styles';
|
|
|
6
6
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
7
7
|
export function LogoSelect({
|
|
8
8
|
logo,
|
|
9
|
-
disabled
|
|
9
|
+
disabled,
|
|
10
|
+
style,
|
|
11
|
+
onPress
|
|
10
12
|
}) {
|
|
11
13
|
const Theme = useTheme();
|
|
12
14
|
const {
|
|
13
15
|
animatedValue,
|
|
14
16
|
setStartValue,
|
|
15
17
|
setEndValue
|
|
16
|
-
} = useAnimatedValue(Theme['gray-glass-
|
|
18
|
+
} = useAnimatedValue(Theme['gray-glass-002'], Theme['gray-glass-010']);
|
|
17
19
|
return /*#__PURE__*/React.createElement(AnimatedPressable, {
|
|
20
|
+
onPress: onPress,
|
|
18
21
|
onPressIn: setEndValue,
|
|
19
22
|
onPressOut: setStartValue,
|
|
20
23
|
style: [styles.box, {
|
|
21
24
|
backgroundColor: animatedValue
|
|
22
|
-
}],
|
|
25
|
+
}, style],
|
|
23
26
|
disabled: disabled
|
|
24
27
|
}, /*#__PURE__*/React.createElement(Logo, {
|
|
25
28
|
logo: logo,
|