@reown/appkit-ui-react-native 0.0.0-fix-email-login-20241010173711 → 0.0.0-fix-fetch-error-improvements-20241114122508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js +21 -0
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/commonjs/assets/svg/Farcaster.js +28 -0
- package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
- package/lib/commonjs/assets/svg/More.js.map +1 -0
- package/lib/commonjs/assets/svg/Paperplane.js +21 -0
- package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
- package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
- package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
- package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/visual/Google.js +59 -0
- package/lib/commonjs/assets/visual/Google.js.map +1 -0
- package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
- package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
- package/lib/commonjs/assets/visual/Pencil.js +81 -0
- package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
- package/lib/commonjs/components/wui-card/index.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js.map +1 -1
- package/lib/commonjs/components/wui-icon/index.js +18 -7
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-lean-text/index.js +15 -0
- package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
- package/lib/commonjs/components/wui-lean-view/index.js +15 -0
- package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
- package/lib/commonjs/components/wui-text/index.js +2 -2
- package/lib/commonjs/components/wui-text/index.js.map +1 -1
- package/lib/commonjs/components/wui-visual/index.js +6 -0
- package/lib/commonjs/components/wui-visual/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +13 -7
- package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-balance/index.js +27 -0
- package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/index.js +36 -0
- package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/styles.js +21 -0
- package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-button/index.js +3 -3
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +11 -9
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +3 -3
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
- package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/index.js +10 -10
- package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-social/index.js +54 -0
- package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
- package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/index.js +78 -0
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo/index.js +4 -2
- package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
- package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
- package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +14 -10
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/index.js +48 -21
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-otp/index.js +1 -2
- package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
- package/lib/commonjs/composites/wui-promo/index.js +48 -0
- package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
- package/lib/commonjs/composites/wui-qr-code/index.js +16 -12
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +22 -8
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/index.js +37 -0
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/commonjs/index.js +70 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js +2 -2
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/layout/wui-separator/index.js +4 -4
- package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +4 -2
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +139 -0
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
- package/lib/commonjs/utils/UiUtil.js +15 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/module/assets/svg/Farcaster.js +20 -0
- package/lib/module/assets/svg/Farcaster.js.map +1 -0
- package/lib/module/assets/svg/FarcasterSquare.js +20 -0
- package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/module/assets/svg/More.js +22 -0
- package/lib/module/assets/svg/More.js.map +1 -0
- package/lib/module/assets/svg/Paperplane.js +13 -0
- package/lib/module/assets/svg/Paperplane.js.map +1 -0
- package/lib/module/assets/svg/WalletConnect.js +18 -1
- package/lib/module/assets/svg/WalletConnect.js.map +1 -1
- package/lib/module/assets/svg/X.js +27 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/visual/Google.js +51 -0
- package/lib/module/assets/visual/Google.js.map +1 -0
- package/lib/module/assets/visual/Lightbulb.js +50 -0
- package/lib/module/assets/visual/Lightbulb.js.map +1 -0
- package/lib/module/assets/visual/Pencil.js +73 -0
- package/lib/module/assets/visual/Pencil.js.map +1 -0
- package/lib/module/components/wui-card/index.js +1 -1
- package/lib/module/components/wui-card/styles.js +1 -1
- package/lib/module/components/wui-card/styles.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +16 -7
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-lean-text/index.js +10 -0
- package/lib/module/components/wui-lean-text/index.js.map +1 -0
- package/lib/module/components/wui-lean-view/index.js +10 -0
- package/lib/module/components/wui-lean-view/index.js.map +1 -0
- package/lib/module/components/wui-text/index.js +2 -2
- package/lib/module/components/wui-text/index.js.map +1 -1
- package/lib/module/components/wui-visual/index.js +6 -0
- package/lib/module/components/wui-visual/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +13 -7
- package/lib/module/composites/wui-account-button/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +6 -6
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-account-pill/index.js +60 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +23 -0
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/module/composites/wui-avatar/styles.js +2 -1
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-balance/index.js +21 -0
- package/lib/module/composites/wui-balance/index.js.map +1 -0
- package/lib/module/composites/wui-banner/index.js +29 -0
- package/lib/module/composites/wui-banner/index.js.map +1 -0
- package/lib/module/composites/wui-banner/styles.js +15 -0
- package/lib/module/composites/wui-banner/styles.js.map +1 -0
- package/lib/module/composites/wui-button/index.js +3 -3
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +3 -3
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +12 -10
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +3 -3
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-compatible-network/index.js +52 -0
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/module/composites/wui-connect-button/styles.js +1 -1
- package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/module/composites/wui-icon-box/index.js +17 -1
- package/lib/module/composites/wui-icon-box/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/styles.js +1 -1
- package/lib/module/composites/wui-input-text/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item/index.js +10 -10
- package/lib/module/composites/wui-list-item/index.js.map +1 -1
- package/lib/module/composites/wui-list-item/styles.js +4 -3
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-list-social/index.js +47 -0
- package/lib/module/composites/wui-list-social/index.js.map +1 -0
- package/lib/module/composites/wui-list-social/styles.js +28 -0
- package/lib/module/composites/wui-list-social/styles.js.map +1 -0
- package/lib/module/composites/wui-list-token/index.js +71 -0
- package/lib/module/composites/wui-list-token/index.js.map +1 -0
- package/lib/module/composites/wui-list-token/styles.js +24 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/index.js +57 -0
- package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/styles.js +10 -0
- package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/utils.js +79 -0
- package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/module/composites/wui-list-wallet/index.js +5 -4
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-logo/index.js +4 -2
- package/lib/module/composites/wui-logo/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/index.js +6 -3
- package/lib/module/composites/wui-logo-select/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/styles.js +3 -3
- package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +15 -11
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +5 -5
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-network-image/index.js +49 -22
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +2 -0
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-otp/index.js +2 -3
- package/lib/module/composites/wui-otp/index.js.map +1 -1
- package/lib/module/composites/wui-promo/index.js +42 -0
- package/lib/module/composites/wui-promo/index.js.map +1 -0
- package/lib/module/composites/wui-qr-code/index.js +16 -12
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +1 -0
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +3 -2
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +22 -8
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +2 -3
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-token-button/index.js +30 -0
- package/lib/module/composites/wui-token-button/index.js.map +1 -0
- package/lib/module/composites/wui-token-button/styles.js +18 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/index.js +66 -0
- package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
- package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/module/composites/wui-wallet-image/styles.js +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js +2 -2
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js +4 -4
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +4 -2
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +134 -0
- package/lib/module/utils/TransactionUtil.js.map +1 -0
- package/lib/module/utils/UiUtil.js +15 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
- package/lib/typescript/assets/svg/More.d.ts +4 -0
- package/lib/typescript/assets/svg/More.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
- package/lib/typescript/assets/svg/X.d.ts +4 -0
- package/lib/typescript/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Google.d.ts +4 -0
- package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
- package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
- package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
- package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
- package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
- package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
- package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
- package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
- package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
- package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +10 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
- package/lib/typescript/utils/TypesUtil.d.ts +6 -5
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +1 -0
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
- package/src/assets/svg/Farcaster.tsx +15 -0
- package/src/assets/svg/FarcasterSquare.tsx +15 -0
- package/src/assets/svg/More.tsx +16 -0
- package/src/assets/svg/Paperplane.tsx +12 -0
- package/src/assets/svg/WalletConnect.tsx +24 -1
- package/src/assets/svg/X.tsx +26 -0
- package/src/assets/visual/Google.tsx +43 -0
- package/src/assets/visual/Lightbulb.tsx +54 -0
- package/src/assets/visual/Pencil.tsx +80 -0
- package/src/components/wui-card/index.tsx +1 -1
- package/src/components/wui-card/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +17 -8
- package/src/components/wui-lean-text/index.tsx +10 -0
- package/src/components/wui-lean-view/index.tsx +10 -0
- package/src/components/wui-text/index.tsx +4 -3
- package/src/components/wui-visual/index.tsx +6 -0
- package/src/composites/wui-account-button/index.tsx +17 -8
- package/src/composites/wui-account-button/styles.ts +6 -6
- package/src/composites/wui-account-pill/index.tsx +64 -0
- package/src/composites/wui-account-pill/styles.ts +23 -0
- package/src/composites/wui-avatar/styles.ts +2 -1
- package/src/composites/wui-balance/index.tsx +25 -0
- package/src/composites/wui-banner/index.tsx +28 -0
- package/src/composites/wui-banner/styles.ts +15 -0
- package/src/composites/wui-button/index.tsx +12 -10
- package/src/composites/wui-button/styles.ts +3 -3
- package/src/composites/wui-chip/index.tsx +14 -13
- package/src/composites/wui-chip/styles.ts +3 -3
- package/src/composites/wui-compatible-network/index.tsx +64 -0
- package/src/composites/wui-connect-button/styles.ts +1 -1
- package/src/composites/wui-icon-box/index.tsx +18 -2
- package/src/composites/wui-input-text/styles.ts +1 -1
- package/src/composites/wui-list-item/index.tsx +15 -14
- package/src/composites/wui-list-item/styles.ts +4 -3
- package/src/composites/wui-list-social/index.tsx +65 -0
- package/src/composites/wui-list-social/styles.ts +28 -0
- package/src/composites/wui-list-token/index.tsx +83 -0
- package/src/composites/wui-list-token/styles.ts +24 -0
- package/src/composites/wui-list-transaction/index.tsx +65 -0
- package/src/composites/wui-list-transaction/styles.ts +10 -0
- package/src/composites/wui-list-transaction/utils.ts +83 -0
- package/src/composites/wui-list-wallet/index.tsx +7 -6
- package/src/composites/wui-logo/index.tsx +4 -2
- package/src/composites/wui-logo-select/index.tsx +7 -4
- package/src/composites/wui-logo-select/styles.ts +3 -3
- package/src/composites/wui-network-button/index.tsx +22 -15
- package/src/composites/wui-network-button/styles.ts +5 -5
- package/src/composites/wui-network-image/index.tsx +57 -21
- package/src/composites/wui-network-image/styles.ts +6 -0
- package/src/composites/wui-otp/index.tsx +2 -4
- package/src/composites/wui-promo/index.tsx +42 -0
- package/src/composites/wui-qr-code/index.tsx +18 -11
- package/src/composites/wui-snackbar/index.tsx +1 -0
- package/src/composites/wui-snackbar/styles.ts +3 -2
- package/src/composites/wui-tabs/index.tsx +33 -9
- package/src/composites/wui-tabs/styles.ts +2 -3
- package/src/composites/wui-token-button/index.tsx +29 -0
- package/src/composites/wui-token-button/styles.ts +18 -0
- package/src/composites/wui-transaction-visual/index.tsx +78 -0
- package/src/composites/wui-transaction-visual/styles.ts +36 -0
- package/src/composites/wui-wallet-image/styles.ts +1 -1
- package/src/index.ts +13 -0
- package/src/layout/wui-flex/index.tsx +3 -3
- package/src/layout/wui-separator/index.tsx +7 -4
- package/src/utils/ThemeUtil.ts +4 -2
- package/src/utils/TransactionUtil.ts +173 -0
- package/src/utils/TypesUtil.ts +58 -6
- package/src/utils/UiUtil.ts +18 -0
- package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
- package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/module/assets/svg/Twitter.js +0 -37
- package/lib/module/assets/svg/Twitter.js.map +0 -1
- package/lib/module/assets/svg/TwitterIcon.js +0 -11
- package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
- package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
- package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
- package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
- package/src/assets/svg/Twitter.tsx +0 -27
- package/src/assets/svg/TwitterIcon.tsx +0 -10
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListToken = ListToken;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _wuiIcon = require("../../components/wui-icon");
|
|
9
|
+
var _wuiImage = require("../../components/wui-image");
|
|
10
|
+
var _wuiText = require("../../components/wui-text");
|
|
11
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
12
|
+
var _wuiFlex = require("../../layout/wui-flex");
|
|
13
|
+
var _UiUtil = require("../../utils/UiUtil");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function ListToken({
|
|
17
|
+
imageSrc,
|
|
18
|
+
networkSrc,
|
|
19
|
+
name,
|
|
20
|
+
value,
|
|
21
|
+
amount,
|
|
22
|
+
currency,
|
|
23
|
+
onPress
|
|
24
|
+
}) {
|
|
25
|
+
const Theme = (0, _useTheme.useTheme)();
|
|
26
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
27
|
+
onPress: onPress
|
|
28
|
+
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
29
|
+
flexDirection: "row",
|
|
30
|
+
justifyContent: "space-between",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
padding: ['2xs', 'm', '2xs', 'xs']
|
|
33
|
+
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
alignItems: "center"
|
|
36
|
+
}, imageSrc ? /*#__PURE__*/React.createElement(_wuiImage.Image, {
|
|
37
|
+
source: imageSrc,
|
|
38
|
+
style: [_styles.default.image, {
|
|
39
|
+
backgroundColor: Theme['gray-glass-005']
|
|
40
|
+
}]
|
|
41
|
+
}) : /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
42
|
+
style: [_styles.default.image, {
|
|
43
|
+
backgroundColor: Theme['gray-glass-005']
|
|
44
|
+
}],
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "center"
|
|
47
|
+
}, /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
48
|
+
name: "coinPlaceholder",
|
|
49
|
+
size: "lg",
|
|
50
|
+
color: "fg-200"
|
|
51
|
+
})), /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
justifyContent: "center",
|
|
54
|
+
style: [_styles.default.networkImageContainer, {
|
|
55
|
+
borderColor: Theme['bg-100'],
|
|
56
|
+
backgroundColor: Theme['bg-200']
|
|
57
|
+
}]
|
|
58
|
+
}, networkSrc ? /*#__PURE__*/React.createElement(_wuiImage.Image, {
|
|
59
|
+
source: networkSrc,
|
|
60
|
+
style: _styles.default.networkImage
|
|
61
|
+
}) : /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
62
|
+
name: "networkPlaceholder",
|
|
63
|
+
size: "xxs",
|
|
64
|
+
color: "fg-200"
|
|
65
|
+
})), /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
66
|
+
padding: ['0', 's', '0', 's']
|
|
67
|
+
}, /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
68
|
+
color: "fg-100",
|
|
69
|
+
variant: "paragraph-500"
|
|
70
|
+
}, name), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
71
|
+
variant: "small-400",
|
|
72
|
+
color: "fg-200"
|
|
73
|
+
}, _UiUtil.UiUtil.formatNumberToLocalString(amount, 4), " ", currency))), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
74
|
+
color: "fg-100",
|
|
75
|
+
variant: "paragraph-500"
|
|
76
|
+
}, "$", value?.toFixed(2) ?? '0.00')));
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiIcon","_wuiImage","_wuiText","_useTheme","_wuiFlex","_UiUtil","_styles","_interopRequireDefault","obj","__esModule","default","ListToken","imageSrc","networkSrc","name","value","amount","currency","onPress","Theme","useTheme","React","createElement","Pressable","FlexView","flexDirection","justifyContent","alignItems","padding","Image","source","style","styles","image","backgroundColor","Icon","size","color","networkImageContainer","borderColor","networkImage","Text","variant","UiUtil","formatNumberToLocalString","toFixed"],"sourceRoot":"../../../../src","sources":["composites/wui-list-token/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAA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ACJ,KAAK,EAAC,QAAQ;IAACK,OAAO,EAAC;EAAe,GAAC,GAC1C,EAAC3B,KAAK,EAAE8B,OAAO,CAAC,CAAC,CAAC,IAAI,MACnB,CACE,CACD,CAAC;AAEhB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
9
|
+
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
10
|
+
image: {
|
|
11
|
+
height: _ThemeUtil.WalletImageSize.sm,
|
|
12
|
+
width: _ThemeUtil.WalletImageSize.sm,
|
|
13
|
+
borderRadius: _ThemeUtil.BorderRadius.full
|
|
14
|
+
},
|
|
15
|
+
networkImageContainer: {
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
bottom: -2,
|
|
18
|
+
left: 24,
|
|
19
|
+
borderWidth: 2,
|
|
20
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
21
|
+
width: 18,
|
|
22
|
+
height: 18
|
|
23
|
+
},
|
|
24
|
+
networkImage: {
|
|
25
|
+
width: 14,
|
|
26
|
+
height: 14,
|
|
27
|
+
borderRadius: _ThemeUtil.BorderRadius.full
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","image","height","WalletImageSize","sm","width","borderRadius","BorderRadius","full","networkImageContainer","position","bottom","left","borderWidth","networkImage"],"sourceRoot":"../../../../src","sources":["composites/wui-list-token/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAsE,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEvDC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,KAAK,EAAE;IACLC,MAAM,EAAEC,0BAAe,CAACC,EAAE;IAC1BC,KAAK,EAAEF,0BAAe,CAACC,EAAE;IACzBE,YAAY,EAAEC,uBAAY,CAACC;EAC7B,CAAC;EACDC,qBAAqB,EAAE;IACrBC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,IAAI,EAAE,EAAE;IACRC,WAAW,EAAE,CAAC;IACdP,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BH,KAAK,EAAE,EAAE;IACTH,MAAM,EAAE;EACV,CAAC;EACDY,YAAY,EAAE;IACZT,KAAK,EAAE,EAAE;IACTH,MAAM,EAAE,EAAE;IACVI,YAAY,EAAEC,uBAAY,CAACC;EAC7B;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ListTransaction = ListTransaction;
|
|
7
|
+
var _wuiText = require("../../components/wui-text");
|
|
8
|
+
var _wuiFlex = require("../../layout/wui-flex");
|
|
9
|
+
var _wuiIconBox = require("../wui-icon-box");
|
|
10
|
+
var _wuiTransactionVisual = require("../wui-transaction-visual");
|
|
11
|
+
var _utils = require("./utils");
|
|
12
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
function ListTransaction({
|
|
15
|
+
date,
|
|
16
|
+
type,
|
|
17
|
+
descriptions,
|
|
18
|
+
images,
|
|
19
|
+
networkSrc,
|
|
20
|
+
style,
|
|
21
|
+
isAllNFT,
|
|
22
|
+
status
|
|
23
|
+
}) {
|
|
24
|
+
const joinSymbol = type === 'trade' ? ' → ' : ' - ';
|
|
25
|
+
return /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
style: style
|
|
29
|
+
}, /*#__PURE__*/React.createElement(_wuiTransactionVisual.TransactionVisual, {
|
|
30
|
+
images: images,
|
|
31
|
+
networkSrc: networkSrc,
|
|
32
|
+
isAllNFT: isAllNFT
|
|
33
|
+
}), /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
style: _styles.default.middleContainer
|
|
37
|
+
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
alignItems: "flex-start"
|
|
40
|
+
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
41
|
+
flexDirection: "row",
|
|
42
|
+
alignItems: "center"
|
|
43
|
+
}, type && /*#__PURE__*/React.createElement(_wuiIconBox.IconBox, {
|
|
44
|
+
icon: (0, _utils.getIcon)(type),
|
|
45
|
+
size: "sm",
|
|
46
|
+
iconColor: (0, _utils.getIconColor)(status),
|
|
47
|
+
background: true,
|
|
48
|
+
border: true,
|
|
49
|
+
borderColor: "bg-100"
|
|
50
|
+
}), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
51
|
+
variant: "paragraph-500",
|
|
52
|
+
color: "fg-100"
|
|
53
|
+
}, (0, _utils.getTypeLabel)(type))), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
54
|
+
variant: "small-400",
|
|
55
|
+
color: "fg-200",
|
|
56
|
+
numberOfLines: 1,
|
|
57
|
+
ellipsizeMode: "tail"
|
|
58
|
+
}, descriptions?.join(joinSymbol)))), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
59
|
+
variant: "micro-700",
|
|
60
|
+
color: "fg-300",
|
|
61
|
+
style: _styles.default.date
|
|
62
|
+
}, date));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_wuiText","require","_wuiFlex","_wuiIconBox","_wuiTransactionVisual","_utils","_styles","_interopRequireDefault","obj","__esModule","default","ListTransaction","date","type","descriptions","images","networkSrc","style","isAllNFT","status","joinSymbol","React","createElement","FlexView","flexDirection","alignItems","TransactionVisual","styles","middleContainer","justifyContent","IconBox","icon","getIcon","size","iconColor","getIconColor","background","border","borderColor","Text","variant","color","getTypeLabel","numberOfLines","ellipsizeMode","join"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA8B,SAAAM,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAcvB,SAASG,eAAeA,CAAC;EAC9BC,IAAI;EACJC,IAAI;EACJC,YAAY;EACZC,MAAM;EACNC,UAAU;EACVC,KAAK;EACLC,QAAQ;EACRC;AACoB,CAAC,EAAE;EACvB,MAAMC,UAAU,GAAGP,IAAI,KAAK,OAAO,GAAG,KAAK,GAAG,KAAK;EAEnD,oBACEQ,KAAA,CAAAC,aAAA,CAACpB,QAAA,CAAAqB,QAAQ;IAACC,aAAa,EAAC,KAAK;IAACC,UAAU,EAAC,QAAQ;IAACR,KAAK,EAAEA;EAAM,gBAC7DI,KAAA,CAAAC,aAAA,CAAClB,qBAAA,CAAAsB,iBAAiB;IAACX,MAAM,EAAEA,MAAO;IAACC,UAAU,EAAEA,UAAW;IAACE,QAAQ,EAAEA;EAAS,CAAE,CAAC,eACjFG,KAAA,CAAAC,aAAA,CAACpB,QA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+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
9
|
+
middleContainer: {
|
|
10
|
+
flex: 1
|
|
11
|
+
},
|
|
12
|
+
date: {
|
|
13
|
+
textTransform: 'uppercase'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","StyleSheet","create","middleContainer","flex","date","textTransform"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAA0C,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE3BC,uBAAU,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,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getTypeLabel = exports.getIconColor = exports.getIcon = void 0;
|
|
7
|
+
const getIcon = type => {
|
|
8
|
+
switch (type) {
|
|
9
|
+
case 'approve':
|
|
10
|
+
case 'execute':
|
|
11
|
+
return 'checkmark';
|
|
12
|
+
case 'repay':
|
|
13
|
+
case 'send':
|
|
14
|
+
case 'stake':
|
|
15
|
+
case 'withdraw':
|
|
16
|
+
return 'arrowTop';
|
|
17
|
+
case 'burn':
|
|
18
|
+
case 'cancel':
|
|
19
|
+
return 'close';
|
|
20
|
+
case 'trade':
|
|
21
|
+
return 'swapHorizontal';
|
|
22
|
+
case 'deploy':
|
|
23
|
+
return 'arrowRight';
|
|
24
|
+
default:
|
|
25
|
+
return 'arrowBottom';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//Utils
|
|
30
|
+
exports.getIcon = getIcon;
|
|
31
|
+
const getIconColor = status => {
|
|
32
|
+
switch (status) {
|
|
33
|
+
case 'confirmed':
|
|
34
|
+
return 'success-100';
|
|
35
|
+
case 'failed':
|
|
36
|
+
return 'error-100';
|
|
37
|
+
case 'pending':
|
|
38
|
+
return 'fg-200';
|
|
39
|
+
default:
|
|
40
|
+
return 'fg-200';
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.getIconColor = getIconColor;
|
|
44
|
+
const getTypeLabel = type => {
|
|
45
|
+
if (!type) {
|
|
46
|
+
return 'Unknown';
|
|
47
|
+
}
|
|
48
|
+
switch (type) {
|
|
49
|
+
case 'approve':
|
|
50
|
+
return 'Approved';
|
|
51
|
+
case 'bought':
|
|
52
|
+
return 'Bought';
|
|
53
|
+
case 'borrow':
|
|
54
|
+
return 'Borrowed';
|
|
55
|
+
case 'burn':
|
|
56
|
+
return 'Burnt';
|
|
57
|
+
case 'cancel':
|
|
58
|
+
return 'Canceled';
|
|
59
|
+
case 'claim':
|
|
60
|
+
return 'Claimed';
|
|
61
|
+
case 'deploy':
|
|
62
|
+
return 'Deployed';
|
|
63
|
+
case 'deposit':
|
|
64
|
+
return 'Deposited';
|
|
65
|
+
case 'execute':
|
|
66
|
+
return 'Executed';
|
|
67
|
+
case 'mint':
|
|
68
|
+
return 'Minted';
|
|
69
|
+
case 'receive':
|
|
70
|
+
return 'Received';
|
|
71
|
+
case 'repay':
|
|
72
|
+
return 'Repaid';
|
|
73
|
+
case 'send':
|
|
74
|
+
return 'Sent';
|
|
75
|
+
case 'stake':
|
|
76
|
+
return 'Staked';
|
|
77
|
+
case 'trade':
|
|
78
|
+
return 'Swapped';
|
|
79
|
+
case 'unstake':
|
|
80
|
+
return 'Unstaked';
|
|
81
|
+
case 'withdraw':
|
|
82
|
+
return 'Withdrawn';
|
|
83
|
+
default:
|
|
84
|
+
return 'Unknown';
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
exports.getTypeLabel = getTypeLabel;
|
|
88
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getIcon","type","exports","getIconColor","status","getTypeLabel"],"sourceRoot":"../../../../src","sources":["composites/wui-list-transaction/utils.ts"],"mappings":";;;;;;AAGO,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;AAAAC,OAAA,CAAAF,OAAA,GAAAA,OAAA;AACO,MAAMG,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;AAACF,OAAA,CAAAC,YAAA,GAAAA,YAAA;AAEK,MAAME,YAAY,GAAIJ,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;AAACC,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
|
|
@@ -11,8 +11,9 @@ var _useTheme = require("../../hooks/useTheme");
|
|
|
11
11
|
var _wuiTag = require("../wui-tag");
|
|
12
12
|
var _wuiWalletImage = require("../wui-wallet-image");
|
|
13
13
|
var _wuiIcon = require("../../components/wui-icon");
|
|
14
|
-
var
|
|
14
|
+
var _wuiLeanView = require("../../components/wui-lean-view");
|
|
15
15
|
var _wuiIconBox = require("../wui-icon-box");
|
|
16
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
18
|
const AnimatedPressable = _reactNative.Animated.createAnimatedComponent(_reactNative.Pressable);
|
|
18
19
|
function ListWallet({
|
|
@@ -50,7 +51,7 @@ function ListWallet({
|
|
|
50
51
|
});
|
|
51
52
|
};
|
|
52
53
|
function imageTemplate() {
|
|
53
|
-
return /*#__PURE__*/React.createElement(
|
|
54
|
+
return /*#__PURE__*/React.createElement(_wuiLeanView.LeanView, null, /*#__PURE__*/React.createElement(_wuiWalletImage.WalletImage, {
|
|
54
55
|
style: [_styles.default.image, disabled && _styles.default.imageDisabled],
|
|
55
56
|
imageSrc: imageSrc,
|
|
56
57
|
imageHeaders: imageHeaders,
|
|
@@ -85,7 +86,7 @@ function ListWallet({
|
|
|
85
86
|
onPressIn: setEndValue,
|
|
86
87
|
onPressOut: setStartValue,
|
|
87
88
|
testID: testID
|
|
88
|
-
}, /*#__PURE__*/React.createElement(
|
|
89
|
+
}, /*#__PURE__*/React.createElement(_wuiLeanView.LeanView, {
|
|
89
90
|
style: _styles.default.leftSide
|
|
90
91
|
}, imageTemplate(), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
91
92
|
variant: "paragraph-500",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_wuiText","_useAnimatedValue","_interopRequireDefault","_useTheme","_wuiTag","_wuiWalletImage","_wuiIcon","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiText","_useAnimatedValue","_interopRequireDefault","_useTheme","_wuiTag","_wuiWalletImage","_wuiIcon","_wuiLeanView","_wuiIconBox","_styles","obj","__esModule","default","AnimatedPressable","Animated","createAnimatedComponent","Pressable","ListWallet","name","onPress","imageSrc","imageHeaders","showAllWallets","tagLabel","tagVariant","icon","disabled","installed","style","testID","Theme","useTheme","animatedValue","setStartValue","setEndValue","useAnimatedValue","templateInstalled","React","createElement","IconBox","iconSize","iconColor","border","borderColor","background","backgroundColor","size","styles","installedBox","imageTemplate","LeanView","WalletImage","image","imageDisabled","iconTemplate","Tag","variant","rightIcon","Icon","color","container","onPressIn","onPressOut","leftSide","Text"],"sourceRoot":"../../../../src","sources":["composites/wui-list-wallet/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA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ACtC,QAAA,CAAAgE,IAAI;IAACR,OAAO,EAAC,eAAe;IAAC5B,KAAK,EAAEmB,eAAM,CAAC7B,IAAK;IAACyC,KAAK,EAAEjC,QAAQ,GAAG,QAAQ,GAAG;EAAS,GACrFR,IACG,CACE,CAAC,EACVoC,YAAY,CAAC,CACG,CAAC;AAExB"}
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Logo = Logo;
|
|
7
7
|
var _wuiIcon = require("../../components/wui-icon");
|
|
8
8
|
function Logo({
|
|
9
|
+
width = 40,
|
|
10
|
+
height = 40,
|
|
9
11
|
logo,
|
|
10
12
|
style
|
|
11
13
|
}) {
|
|
12
14
|
return /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
15
17
|
name: logo,
|
|
16
18
|
style: style
|
|
17
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_wuiIcon","require","Logo","
|
|
1
|
+
{"version":3,"names":["_wuiIcon","require","Logo","width","height","logo","style","React","createElement","Icon","name"],"sourceRoot":"../../../../src","sources":["composites/wui-logo/index.tsx"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAYO,SAASC,IAAIA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,IAAI;EAAEC;AAAiB,CAAC,EAAE;EACxE,oBAAOC,KAAA,CAAAC,aAAA,CAACR,QAAA,CAAAS,IAAI;IAACN,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACM,IAAI,EAAEL,IAAK;IAACC,KAAK,EAAEA;EAAM,CAAE,CAAC;AACzE"}
|
|
@@ -13,20 +13,23 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
const AnimatedPressable = _reactNative.Animated.createAnimatedComponent(_reactNative.Pressable);
|
|
14
14
|
function LogoSelect({
|
|
15
15
|
logo,
|
|
16
|
-
disabled
|
|
16
|
+
disabled,
|
|
17
|
+
style,
|
|
18
|
+
onPress
|
|
17
19
|
}) {
|
|
18
20
|
const Theme = (0, _useTheme.useTheme)();
|
|
19
21
|
const {
|
|
20
22
|
animatedValue,
|
|
21
23
|
setStartValue,
|
|
22
24
|
setEndValue
|
|
23
|
-
} = (0, _useAnimatedValue.default)(Theme['gray-glass-
|
|
25
|
+
} = (0, _useAnimatedValue.default)(Theme['gray-glass-002'], Theme['gray-glass-010']);
|
|
24
26
|
return /*#__PURE__*/React.createElement(AnimatedPressable, {
|
|
27
|
+
onPress: onPress,
|
|
25
28
|
onPressIn: setEndValue,
|
|
26
29
|
onPressOut: setStartValue,
|
|
27
30
|
style: [_styles.default.box, {
|
|
28
31
|
backgroundColor: animatedValue
|
|
29
|
-
}],
|
|
32
|
+
}, style],
|
|
30
33
|
disabled: disabled
|
|
31
34
|
}, /*#__PURE__*/React.createElement(_wuiLogo.Logo, {
|
|
32
35
|
logo: logo,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_useAnimatedValue","_interopRequireDefault","_useTheme","_wuiLogo","_styles","obj","__esModule","default","AnimatedPressable","Animated","createAnimatedComponent","Pressable","LogoSelect","logo","disabled","Theme","useTheme","animatedValue","setStartValue","setEndValue","useAnimatedValue","React","createElement","onPressIn","onPressOut","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_useAnimatedValue","_interopRequireDefault","_useTheme","_wuiLogo","_styles","obj","__esModule","default","AnimatedPressable","Animated","createAnimatedComponent","Pressable","LogoSelect","logo","disabled","style","onPress","Theme","useTheme","animatedValue","setStartValue","setEndValue","useAnimatedValue","React","createElement","onPressIn","onPressOut","styles","box","backgroundColor","Logo"],"sourceRoot":"../../../../src","sources":["composites/wui-logo-select/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA8B,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE9B,MAAMG,iBAAiB,GAAGC,qBAAQ,CAACC,uBAAuB,CAACC,sBAAS,CAAC;AAS9D,SAASC,UAAUA,CAAC;EAAEC,IAAI;EAAEC,QAAQ;EAAEC,KAAK;EAAEC;AAAyB,CAAC,EAAE;EAC9E,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EACxB,MAAM;IAAEC,aAAa;IAAEC,aAAa;IAAEC;EAAY,CAAC,GAAG,IAAAC,yBAAgB,EACpEL,KAAK,CAAC,gBAAgB,CAAC,EACvBA,KAAK,CAAC,gBAAgB,CACxB,CAAC;EAED,oBACEM,KAAA,CAAAC,aAAA,CAAChB,iBAAiB;IAChBQ,OAAO,EAAEA,OAAQ;IACjBS,SAAS,EAAEJ,WAAY;IACvBK,UAAU,EAAEN,aAAc;IAC1BL,KAAK,EAAE,CAACY,eAAM,CAACC,GAAG,EAAE;MAAEC,eAAe,EAAEV;IAAc,CAAC,EAAEJ,KAAK,CAAE;IAC/DD,QAAQ,EAAEA;EAAS,gBAEnBS,KAAA,CAAAC,aAAA,CAACrB,QAAA,CAAA2B,IAAI;IAACjB,IAAI,EAAEA,IAAK;IAACE,KAAK,EAAED,QAAQ,IAAIa,eAAM,CAACb;EAAS,CAAE,CACtC,CAAC;AAExB"}
|
|
@@ -8,9 +8,9 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
9
9
|
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
10
10
|
box: {
|
|
11
|
-
height:
|
|
12
|
-
width:
|
|
13
|
-
borderRadius: _ThemeUtil.BorderRadius.
|
|
11
|
+
height: 56,
|
|
12
|
+
width: 56,
|
|
13
|
+
borderRadius: _ThemeUtil.BorderRadius.s,
|
|
14
14
|
alignItems: 'center',
|
|
15
15
|
justifyContent: 'center'
|
|
16
16
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","box","height","width","borderRadius","BorderRadius","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","box","height","width","borderRadius","BorderRadius","s","alignItems","justifyContent","disabled","opacity"],"sourceRoot":"../../../../src","sources":["composites/wui-logo-select/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtCC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,GAAG,EAAE;IACHC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,YAAY,EAAEC,uBAAY,CAACC,CAAC;IAC5BC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,QAAQ,EAAE;IACRC,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
|
|
@@ -9,19 +9,20 @@ var _wuiImage = require("../../components/wui-image");
|
|
|
9
9
|
var _wuiText = require("../../components/wui-text");
|
|
10
10
|
var _useTheme = require("../../hooks/useTheme");
|
|
11
11
|
var _wuiIconBox = require("../wui-icon-box");
|
|
12
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
|
-
var _useAnimatedValue = _interopRequireDefault(require("../../hooks/useAnimatedValue"));
|
|
14
12
|
var _wuiLoadingSpinner = require("../../components/wui-loading-spinner");
|
|
13
|
+
var _useAnimatedValue = _interopRequireDefault(require("../../hooks/useAnimatedValue"));
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
const AnimatedPressable = _reactNative.Animated.createAnimatedComponent(_reactNative.Pressable);
|
|
17
17
|
function NetworkButton({
|
|
18
|
+
children,
|
|
19
|
+
onPress,
|
|
20
|
+
background = true,
|
|
21
|
+
disabled,
|
|
18
22
|
imageSrc,
|
|
19
23
|
imageHeaders,
|
|
20
|
-
disabled,
|
|
21
|
-
onPress,
|
|
22
|
-
style,
|
|
23
24
|
loading,
|
|
24
|
-
|
|
25
|
+
style
|
|
25
26
|
}) {
|
|
26
27
|
const Theme = (0, _useTheme.useTheme)();
|
|
27
28
|
const textColor = disabled ? 'fg-300' : 'fg-100';
|
|
@@ -29,12 +30,13 @@ function NetworkButton({
|
|
|
29
30
|
animatedValue,
|
|
30
31
|
setStartValue,
|
|
31
32
|
setEndValue
|
|
32
|
-
} = (0, _useAnimatedValue.default)(Theme['gray-glass-005'], Theme['gray-glass-010']);
|
|
33
|
+
} = (0, _useAnimatedValue.default)(background ? Theme['gray-glass-005'] : 'transparent', Theme['gray-glass-010']);
|
|
33
34
|
const backgroundColor = disabled ? Theme['gray-glass-015'] : animatedValue;
|
|
35
|
+
const borderColor = background ? Theme['gray-glass-005'] : 'transparent';
|
|
34
36
|
return /*#__PURE__*/React.createElement(AnimatedPressable, {
|
|
35
37
|
style: [_styles.default.container, {
|
|
36
38
|
backgroundColor,
|
|
37
|
-
borderColor
|
|
39
|
+
borderColor
|
|
38
40
|
}, style],
|
|
39
41
|
onPress: onPress,
|
|
40
42
|
onPressIn: setEndValue,
|
|
@@ -48,10 +50,12 @@ function NetworkButton({
|
|
|
48
50
|
imageSrc: imageSrc,
|
|
49
51
|
imageHeaders: imageHeaders,
|
|
50
52
|
borderColor: Theme['gray-glass-005']
|
|
51
|
-
}), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
52
|
-
style: _styles.default.
|
|
53
|
+
}), typeof children === 'string' ? /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
54
|
+
style: _styles.default.children,
|
|
53
55
|
variant: "paragraph-600",
|
|
54
56
|
color: textColor
|
|
57
|
+
}, children) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
58
|
+
style: _styles.default.children
|
|
55
59
|
}, children));
|
|
56
60
|
}
|
|
57
61
|
function LoaderComponent({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_wuiImage","_wuiText","_useTheme","_wuiIconBox","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiImage","_wuiText","_useTheme","_wuiIconBox","_wuiLoadingSpinner","_useAnimatedValue","_interopRequireDefault","_styles","obj","__esModule","default","AnimatedPressable","Animated","createAnimatedComponent","Pressable","NetworkButton","children","onPress","background","disabled","imageSrc","imageHeaders","loading","style","Theme","useTheme","textColor","animatedValue","setStartValue","setEndValue","useAnimatedValue","backgroundColor","borderColor","React","createElement","styles","container","onPressIn","onPressOut","LoaderComponent","ImageComponent","Text","variant","color","View","LoadingSpinner","size","loader","IconBox","icon","iconColor","Image","image","imageDisabled","source","headers"],"sourceRoot":"../../../../src","sources":["composites/wui-network-button/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAC,sBAAA,CAAAP,OAAA;AAEA,IAAAQ,OAAA,GAAAD,sBAAA,CAAAP,OAAA;AAA8B,SAAAO,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE9B,MAAMG,iBAAiB,GAAGC,qBAAQ,CAACC,uBAAuB,CAACC,sBAAS,CAAC;AAa9D,SAASC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 'center',
|
|
14
14
|
justifyContent: 'center',
|
|
15
|
-
borderWidth:
|
|
16
|
-
borderRadius:
|
|
15
|
+
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
16
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
17
17
|
paddingHorizontal: _ThemeUtil.Spacing['2xs']
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
children: {
|
|
20
20
|
paddingHorizontal: _ThemeUtil.Spacing['2xs']
|
|
21
21
|
},
|
|
22
22
|
loader: {
|
|
@@ -25,7 +25,7 @@ var _default = exports.default = _reactNative.StyleSheet.create({
|
|
|
25
25
|
image: {
|
|
26
26
|
height: 24,
|
|
27
27
|
width: 24,
|
|
28
|
-
borderRadius:
|
|
28
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
29
29
|
borderWidth: 2,
|
|
30
30
|
paddingLeft: _ThemeUtil.Spacing['4xs']
|
|
31
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","flexDirection","height","alignItems","justifyContent","borderWidth","borderRadius","paddingHorizontal","Spacing","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","flexDirection","height","alignItems","justifyContent","borderWidth","hairlineWidth","borderRadius","BorderRadius","full","paddingHorizontal","Spacing","children","loader","paddingLeft","image","width","imageDisabled","opacity"],"sourceRoot":"../../../../src","sources":["composites/wui-network-button/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE/CC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,WAAW,EAAEP,uBAAU,CAACQ,aAAa;IACrCC,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BC,iBAAiB,EAAEC,kBAAO,CAAC,KAAK;EAClC,CAAC;EACDC,QAAQ,EAAE;IACRF,iBAAiB,EAAEC,kBAAO,CAAC,KAAK;EAClC,CAAC;EACDE,MAAM,EAAE;IACNC,WAAW,EAAEH,kBAAO,CAAC,KAAK;EAC5B,CAAC;EACDI,KAAK,EAAE;IACLb,MAAM,EAAE,EAAE;IACVc,KAAK,EAAE,EAAE;IACTT,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BJ,WAAW,EAAE,CAAC;IACdS,WAAW,EAAEH,kBAAO,CAAC,KAAK;EAC5B,CAAC;EACDM,aAAa,EAAE;IACbC,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
|