@reown/appkit-ui-react-native 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js +21 -0
- package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/commonjs/assets/svg/Farcaster.js +28 -0
- package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
- package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
- package/lib/commonjs/assets/svg/More.js.map +1 -0
- package/lib/commonjs/assets/svg/Paperplane.js +21 -0
- package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
- package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
- package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
- package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
- package/lib/commonjs/assets/svg/X.js.map +1 -0
- package/lib/commonjs/assets/visual/Google.js +59 -0
- package/lib/commonjs/assets/visual/Google.js.map +1 -0
- package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
- package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
- package/lib/commonjs/assets/visual/Pencil.js +81 -0
- package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
- package/lib/commonjs/assets/visual/Profile.js +2 -2
- package/lib/commonjs/assets/visual/Profile.js.map +1 -1
- package/lib/commonjs/components/wui-card/index.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js +1 -1
- package/lib/commonjs/components/wui-card/styles.js.map +1 -1
- package/lib/commonjs/components/wui-icon/index.js +18 -7
- package/lib/commonjs/components/wui-icon/index.js.map +1 -1
- package/lib/commonjs/components/wui-visual/index.js +6 -0
- package/lib/commonjs/components/wui-visual/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/index.js +13 -7
- package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
- package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
- package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
- package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
- package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-balance/index.js +27 -0
- package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/index.js +36 -0
- package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
- package/lib/commonjs/composites/wui-banner/styles.js +21 -0
- package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-button/index.js +3 -3
- package/lib/commonjs/composites/wui-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-button/styles.js +3 -3
- package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-card-select/index.js +4 -2
- package/lib/commonjs/composites/wui-card-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/index.js +11 -9
- package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
- package/lib/commonjs/composites/wui-chip/styles.js +3 -3
- package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
- package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
- package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
- package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/index.js +3 -3
- package/lib/commonjs/composites/wui-input-text/index.js.map +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
- package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/index.js +10 -10
- package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
- package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-list-item-loader/index.js +34 -0
- package/lib/commonjs/composites/wui-list-item-loader/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-item-loader/styles.js +18 -0
- package/lib/commonjs/composites/wui-list-item-loader/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/index.js +54 -0
- package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
- package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/index.js +78 -0
- package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
- package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
- package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
- package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
- package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/commonjs/composites/wui-list-wallet/index.js +1 -1
- package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo/index.js +4 -2
- package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
- package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
- package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
- package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/index.js +17 -11
- package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
- package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/index.js +48 -21
- package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
- package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
- package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-otp/index.js +1 -2
- package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
- package/lib/commonjs/composites/wui-promo/index.js +48 -0
- package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
- package/lib/commonjs/composites/wui-qr-code/index.js +20 -13
- package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
- package/lib/commonjs/composites/wui-search-bar/index.js +2 -4
- package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/index.js +3 -1
- package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
- package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
- package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/index.js +22 -8
- package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
- package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
- package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
- package/lib/commonjs/composites/wui-token-button/index.js +37 -0
- package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
- package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
- package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
- package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
- package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
- package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/commonjs/index.js +77 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
- package/lib/commonjs/utils/ThemeUtil.js +4 -2
- package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
- package/lib/commonjs/utils/TransactionUtil.js +139 -0
- package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
- package/lib/commonjs/utils/UiUtil.js +15 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
- package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
- package/lib/module/assets/svg/Farcaster.js +20 -0
- package/lib/module/assets/svg/Farcaster.js.map +1 -0
- package/lib/module/assets/svg/FarcasterSquare.js +20 -0
- package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
- package/lib/module/assets/svg/More.js +22 -0
- package/lib/module/assets/svg/More.js.map +1 -0
- package/lib/module/assets/svg/Paperplane.js +13 -0
- package/lib/module/assets/svg/Paperplane.js.map +1 -0
- package/lib/module/assets/svg/WalletConnect.js +18 -1
- package/lib/module/assets/svg/WalletConnect.js.map +1 -1
- package/lib/module/assets/svg/X.js +27 -0
- package/lib/module/assets/svg/X.js.map +1 -0
- package/lib/module/assets/visual/Google.js +51 -0
- package/lib/module/assets/visual/Google.js.map +1 -0
- package/lib/module/assets/visual/Lightbulb.js +50 -0
- package/lib/module/assets/visual/Lightbulb.js.map +1 -0
- package/lib/module/assets/visual/Pencil.js +73 -0
- package/lib/module/assets/visual/Pencil.js.map +1 -0
- package/lib/module/assets/visual/Profile.js +2 -2
- package/lib/module/assets/visual/Profile.js.map +1 -1
- package/lib/module/components/wui-card/index.js +1 -1
- package/lib/module/components/wui-card/styles.js +1 -1
- package/lib/module/components/wui-card/styles.js.map +1 -1
- package/lib/module/components/wui-icon/index.js +16 -7
- package/lib/module/components/wui-icon/index.js.map +1 -1
- package/lib/module/components/wui-visual/index.js +6 -0
- package/lib/module/components/wui-visual/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/index.js +13 -7
- package/lib/module/composites/wui-account-button/index.js.map +1 -1
- package/lib/module/composites/wui-account-button/styles.js +6 -6
- package/lib/module/composites/wui-account-button/styles.js.map +1 -1
- package/lib/module/composites/wui-account-pill/index.js +60 -0
- package/lib/module/composites/wui-account-pill/index.js.map +1 -0
- package/lib/module/composites/wui-account-pill/styles.js +23 -0
- package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
- package/lib/module/composites/wui-avatar/styles.js +2 -1
- package/lib/module/composites/wui-avatar/styles.js.map +1 -1
- package/lib/module/composites/wui-balance/index.js +21 -0
- package/lib/module/composites/wui-balance/index.js.map +1 -0
- package/lib/module/composites/wui-banner/index.js +29 -0
- package/lib/module/composites/wui-banner/index.js.map +1 -0
- package/lib/module/composites/wui-banner/styles.js +15 -0
- package/lib/module/composites/wui-banner/styles.js.map +1 -0
- package/lib/module/composites/wui-button/index.js +3 -3
- package/lib/module/composites/wui-button/index.js.map +1 -1
- package/lib/module/composites/wui-button/styles.js +3 -3
- package/lib/module/composites/wui-button/styles.js.map +1 -1
- package/lib/module/composites/wui-card-select/index.js +4 -2
- package/lib/module/composites/wui-card-select/index.js.map +1 -1
- package/lib/module/composites/wui-chip/index.js +12 -10
- package/lib/module/composites/wui-chip/index.js.map +1 -1
- package/lib/module/composites/wui-chip/styles.js +3 -3
- package/lib/module/composites/wui-chip/styles.js.map +1 -1
- package/lib/module/composites/wui-compatible-network/index.js +52 -0
- package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
- package/lib/module/composites/wui-connect-button/styles.js +1 -1
- package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
- package/lib/module/composites/wui-icon-box/index.js +17 -1
- package/lib/module/composites/wui-icon-box/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/index.js +3 -3
- package/lib/module/composites/wui-input-text/index.js.map +1 -1
- package/lib/module/composites/wui-input-text/styles.js +1 -1
- package/lib/module/composites/wui-input-text/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item/index.js +10 -10
- package/lib/module/composites/wui-list-item/index.js.map +1 -1
- package/lib/module/composites/wui-list-item/styles.js +4 -3
- package/lib/module/composites/wui-list-item/styles.js.map +1 -1
- package/lib/module/composites/wui-list-item-loader/index.js +27 -0
- package/lib/module/composites/wui-list-item-loader/index.js.map +1 -0
- package/lib/module/composites/wui-list-item-loader/styles.js +12 -0
- package/lib/module/composites/wui-list-item-loader/styles.js.map +1 -0
- package/lib/module/composites/wui-list-social/index.js +47 -0
- package/lib/module/composites/wui-list-social/index.js.map +1 -0
- package/lib/module/composites/wui-list-social/styles.js +28 -0
- package/lib/module/composites/wui-list-social/styles.js.map +1 -0
- package/lib/module/composites/wui-list-token/index.js +71 -0
- package/lib/module/composites/wui-list-token/index.js.map +1 -0
- package/lib/module/composites/wui-list-token/styles.js +24 -0
- package/lib/module/composites/wui-list-token/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/index.js +57 -0
- package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/styles.js +10 -0
- package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
- package/lib/module/composites/wui-list-transaction/utils.js +79 -0
- package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
- package/lib/module/composites/wui-list-wallet/index.js +1 -1
- package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
- package/lib/module/composites/wui-logo/index.js +4 -2
- package/lib/module/composites/wui-logo/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/index.js +6 -3
- package/lib/module/composites/wui-logo-select/index.js.map +1 -1
- package/lib/module/composites/wui-logo-select/styles.js +3 -3
- package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
- package/lib/module/composites/wui-network-button/index.js +18 -12
- package/lib/module/composites/wui-network-button/index.js.map +1 -1
- package/lib/module/composites/wui-network-button/styles.js +5 -5
- package/lib/module/composites/wui-network-button/styles.js.map +1 -1
- package/lib/module/composites/wui-network-image/index.js +49 -22
- package/lib/module/composites/wui-network-image/index.js.map +1 -1
- package/lib/module/composites/wui-network-image/styles.js +2 -0
- package/lib/module/composites/wui-network-image/styles.js.map +1 -1
- package/lib/module/composites/wui-otp/index.js +2 -3
- package/lib/module/composites/wui-otp/index.js.map +1 -1
- package/lib/module/composites/wui-promo/index.js +42 -0
- package/lib/module/composites/wui-promo/index.js.map +1 -0
- package/lib/module/composites/wui-qr-code/index.js +20 -13
- package/lib/module/composites/wui-qr-code/index.js.map +1 -1
- package/lib/module/composites/wui-search-bar/index.js +2 -4
- package/lib/module/composites/wui-search-bar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/index.js +3 -1
- package/lib/module/composites/wui-snackbar/index.js.map +1 -1
- package/lib/module/composites/wui-snackbar/styles.js +3 -2
- package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
- package/lib/module/composites/wui-tabs/index.js +22 -8
- package/lib/module/composites/wui-tabs/index.js.map +1 -1
- package/lib/module/composites/wui-tabs/styles.js +2 -3
- package/lib/module/composites/wui-tabs/styles.js.map +1 -1
- package/lib/module/composites/wui-token-button/index.js +30 -0
- package/lib/module/composites/wui-token-button/index.js.map +1 -0
- package/lib/module/composites/wui-token-button/styles.js +18 -0
- package/lib/module/composites/wui-token-button/styles.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/index.js +66 -0
- package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
- package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
- package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
- package/lib/module/composites/wui-wallet-image/styles.js +1 -1
- package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/layout/wui-flex/index.js.map +1 -1
- package/lib/module/layout/wui-separator/index.js.map +1 -1
- package/lib/module/utils/ThemeUtil.js +4 -2
- package/lib/module/utils/ThemeUtil.js.map +1 -1
- package/lib/module/utils/TransactionUtil.js +134 -0
- package/lib/module/utils/TransactionUtil.js.map +1 -0
- package/lib/module/utils/UiUtil.js +15 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
- package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
- package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
- package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
- package/lib/typescript/assets/svg/More.d.ts +4 -0
- package/lib/typescript/assets/svg/More.d.ts.map +1 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
- package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
- package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
- package/lib/typescript/assets/svg/X.d.ts +4 -0
- package/lib/typescript/assets/svg/X.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Google.d.ts +4 -0
- package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
- package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
- package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
- package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
- package/lib/typescript/components/wui-icon/index.d.ts +1 -1
- package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
- package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
- package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
- package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
- package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
- package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
- package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
- package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-card-select/index.d.ts +2 -1
- package/lib/typescript/composites/wui-card-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
- package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
- package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
- package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
- package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
- package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-list-item-loader/index.d.ts +6 -0
- package/lib/typescript/composites/wui-list-item-loader/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-item-loader/styles.d.ts +11 -0
- package/lib/typescript/composites/wui-list-item-loader/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
- package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
- package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
- package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
- package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
- package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
- package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
- package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
- package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
- package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/index.d.ts +7 -4
- package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
- package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
- package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
- package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
- package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
- package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-search-bar/index.d.ts +1 -2
- package/lib/typescript/composites/wui-search-bar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
- package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
- package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
- package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
- package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
- package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
- package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
- package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
- package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +11 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
- package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
- package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
- package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
- package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
- package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
- package/lib/typescript/utils/TypesUtil.d.ts +6 -5
- package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
- package/lib/typescript/utils/UiUtil.d.ts +1 -0
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +1 -1
- package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
- package/src/assets/svg/Farcaster.tsx +15 -0
- package/src/assets/svg/FarcasterSquare.tsx +15 -0
- package/src/assets/svg/More.tsx +16 -0
- package/src/assets/svg/Paperplane.tsx +12 -0
- package/src/assets/svg/WalletConnect.tsx +24 -1
- package/src/assets/svg/X.tsx +26 -0
- package/src/assets/visual/Google.tsx +43 -0
- package/src/assets/visual/Lightbulb.tsx +54 -0
- package/src/assets/visual/Pencil.tsx +80 -0
- package/src/assets/visual/Profile.tsx +2 -2
- package/src/components/wui-card/index.tsx +1 -1
- package/src/components/wui-card/styles.ts +1 -1
- package/src/components/wui-icon/index.tsx +17 -8
- package/src/components/wui-visual/index.tsx +6 -0
- package/src/composites/wui-account-button/index.tsx +17 -8
- package/src/composites/wui-account-button/styles.ts +6 -6
- package/src/composites/wui-account-pill/index.tsx +64 -0
- package/src/composites/wui-account-pill/styles.ts +23 -0
- package/src/composites/wui-avatar/styles.ts +2 -1
- package/src/composites/wui-balance/index.tsx +25 -0
- package/src/composites/wui-banner/index.tsx +28 -0
- package/src/composites/wui-banner/styles.ts +15 -0
- package/src/composites/wui-button/index.tsx +12 -10
- package/src/composites/wui-button/styles.ts +3 -3
- package/src/composites/wui-card-select/index.tsx +4 -1
- package/src/composites/wui-chip/index.tsx +14 -13
- package/src/composites/wui-chip/styles.ts +3 -3
- package/src/composites/wui-compatible-network/index.tsx +64 -0
- package/src/composites/wui-connect-button/styles.ts +1 -1
- package/src/composites/wui-icon-box/index.tsx +18 -2
- package/src/composites/wui-input-text/index.tsx +1 -1
- package/src/composites/wui-input-text/styles.ts +1 -1
- package/src/composites/wui-list-item/index.tsx +15 -14
- package/src/composites/wui-list-item/styles.ts +4 -3
- package/src/composites/wui-list-item-loader/index.tsx +29 -0
- package/src/composites/wui-list-item-loader/styles.ts +12 -0
- package/src/composites/wui-list-social/index.tsx +65 -0
- package/src/composites/wui-list-social/styles.ts +28 -0
- package/src/composites/wui-list-token/index.tsx +83 -0
- package/src/composites/wui-list-token/styles.ts +24 -0
- package/src/composites/wui-list-transaction/index.tsx +65 -0
- package/src/composites/wui-list-transaction/styles.ts +10 -0
- package/src/composites/wui-list-transaction/utils.ts +83 -0
- package/src/composites/wui-list-wallet/index.tsx +2 -2
- package/src/composites/wui-logo/index.tsx +4 -2
- package/src/composites/wui-logo-select/index.tsx +7 -4
- package/src/composites/wui-logo-select/styles.ts +3 -3
- package/src/composites/wui-network-button/index.tsx +25 -15
- package/src/composites/wui-network-button/styles.ts +5 -5
- package/src/composites/wui-network-image/index.tsx +57 -21
- package/src/composites/wui-network-image/styles.ts +6 -0
- package/src/composites/wui-otp/index.tsx +2 -4
- package/src/composites/wui-promo/index.tsx +42 -0
- package/src/composites/wui-qr-code/index.tsx +21 -12
- package/src/composites/wui-search-bar/index.tsx +1 -4
- package/src/composites/wui-snackbar/index.tsx +7 -1
- package/src/composites/wui-snackbar/styles.ts +3 -2
- package/src/composites/wui-tabs/index.tsx +33 -9
- package/src/composites/wui-tabs/styles.ts +2 -3
- package/src/composites/wui-token-button/index.tsx +29 -0
- package/src/composites/wui-token-button/styles.ts +18 -0
- package/src/composites/wui-transaction-visual/index.tsx +78 -0
- package/src/composites/wui-transaction-visual/styles.ts +36 -0
- package/src/composites/wui-wallet-image/styles.ts +1 -1
- package/src/index.ts +14 -0
- package/src/layout/wui-flex/index.tsx +1 -2
- package/src/layout/wui-separator/index.tsx +1 -1
- package/src/utils/ThemeUtil.ts +4 -2
- package/src/utils/TransactionUtil.ts +173 -0
- package/src/utils/TypesUtil.ts +58 -6
- package/src/utils/UiUtil.ts +18 -0
- package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
- package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/module/assets/svg/Twitter.js +0 -37
- package/lib/module/assets/svg/Twitter.js.map +0 -1
- package/lib/module/assets/svg/TwitterIcon.js +0 -11
- package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
- package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
- package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
- package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
- package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
- package/src/assets/svg/Twitter.tsx +0 -27
- package/src/assets/svg/TwitterIcon.tsx +0 -10
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Text } from '../../components/wui-text';
|
|
2
|
+
import { NetworkImage } from '../wui-network-image';
|
|
3
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
4
|
+
import { ListItem } from '../wui-list-item';
|
|
5
|
+
import { StyleSheet } from 'react-native';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
export function CompatibleNetwork({
|
|
8
|
+
text,
|
|
9
|
+
onPress,
|
|
10
|
+
networkImages,
|
|
11
|
+
imageHeaders,
|
|
12
|
+
style
|
|
13
|
+
}) {
|
|
14
|
+
const Theme = useTheme();
|
|
15
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
16
|
+
onPress: onPress,
|
|
17
|
+
style: [styles.container, style],
|
|
18
|
+
contentStyle: styles.contentContainer,
|
|
19
|
+
chevron: true
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
21
|
+
color: "fg-200",
|
|
22
|
+
variant: "small-400"
|
|
23
|
+
}, text), /*#__PURE__*/React.createElement(FlexView, {
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
justifyContent: "center",
|
|
26
|
+
alignItems: "center"
|
|
27
|
+
}, networkImages?.map((image, index) => /*#__PURE__*/React.createElement(NetworkImage, {
|
|
28
|
+
size: "xs",
|
|
29
|
+
key: image,
|
|
30
|
+
imageSrc: image,
|
|
31
|
+
imageHeaders: imageHeaders,
|
|
32
|
+
borderColor: Theme['bg-200'],
|
|
33
|
+
borderWidth: 2,
|
|
34
|
+
style: [styles.item, {
|
|
35
|
+
zIndex: networkImages.length - index
|
|
36
|
+
}]
|
|
37
|
+
}))));
|
|
38
|
+
}
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
container: {
|
|
41
|
+
height: 48
|
|
42
|
+
},
|
|
43
|
+
contentContainer: {
|
|
44
|
+
flexDirection: 'row',
|
|
45
|
+
justifyContent: 'space-between',
|
|
46
|
+
paddingRight: 0
|
|
47
|
+
},
|
|
48
|
+
item: {
|
|
49
|
+
marginLeft: -5
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","NetworkImage","FlexView","ListItem","StyleSheet","useTheme","CompatibleNetwork","text","onPress","networkImages","imageHeaders","style","Theme","React","createElement","styles","container","contentStyle","contentContainer","chevron","color","variant","flexDirection","justifyContent","alignItems","map","image","index","size","key","imageSrc","borderColor","borderWidth","item","zIndex","length","create","height","paddingRight","marginLeft"],"sourceRoot":"../../../../src","sources":["composites/wui-compatible-network/index.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAQ,2BAA2B;AAChD,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,SAASC,UAAU,QAAwC,cAAc;AACzE,SAASC,QAAQ,QAAQ,sBAAsB;AAU/C,OAAO,SAASC,iBAAiBA,CAAC;EAChCC,IAAI;EACJC,OAAO;EACPC,aAAa;EACbC,YAAY;EACZC;AACsB,CAAC,EAAE;EACzB,MAAMC,KAAK,GAAGP,QAAQ,CAAC,CAAC;EAExB,oBACEQ,KAAA,CAAAC,aAAA,CAACX,QAAQ;IACPK,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EAAE,CAACI,MAAM,CAACC,SAAS,EAAEL,KAAK,CAAE;IACjCM,YAAY,EAAEF,MAAM,CAACG,gBAAiB;IACtCC,OAAO;EAAA,gBAEPN,KAAA,CAAAC,aAAA,CAACd,IAAI;IAACoB,KAAK,EAAC,QAAQ;IAACC,OAAO,EAAC;EAAW,GACrCd,IACG,CAAC,eACPM,KAAA,CAAAC,aAAA,CAACZ,QAAQ;IAACoB,aAAa,EAAC,KAAK;IAACC,cAAc,EAAC,QAAQ;IAACC,UAAU,EAAC;EAAQ,GACtEf,aAAa,EAAEgB,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,kBAC/Bd,KAAA,CAAAC,aAAA,CAACb,YAAY;IACX2B,IAAI,EAAC,IAAI;IACTC,GAAG,EAAEH,KAAM;IACXI,QAAQ,EAAEJ,KAAM;IAChBhB,YAAY,EAAEA,YAAa;IAC3BqB,WAAW,EAAEnB,KAAK,CAAC,QAAQ,CAAE;IAC7BoB,WAAW,EAAE,CAAE;IACfrB,KAAK,EAAE,CAACI,MAAM,CAACkB,IAAI,EAAE;MAAEC,MAAM,EAAEzB,aAAa,CAAC0B,MAAM,GAAGR;IAAM,CAAC;EAAE,CAChE,CACF,CACO,CACF,CAAC;AAEf;AAEA,MAAMZ,MAAM,GAAGX,UAAU,CAACgC,MAAM,CAAC;EAC/BpB,SAAS,EAAE;IACTqB,MAAM,EAAE;EACV,CAAC;EACDnB,gBAAgB,EAAE;IAChBI,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/Be,YAAY,EAAE;EAChB,CAAC;EACDL,IAAI,EAAE;IACJM,UAAU,EAAE,CAAC;EACf;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","getThemedButtonStyle","theme","loading","pressed","buttonBaseStyle","borderColor","backgroundColor","getThemedTextStyle","color","create","button","flexDirection","height","paddingVertical","paddingHorizontal","l","alignItems","justifyContent","borderRadius","s","borderWidth","smButton","mdButton","loader","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-connect-button/styles.ts"],"mappings":"AAAA,SAAyBA,UAAU,QAAQ,cAAc;AACzD,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAG7D,OAAO,MAAMC,oBAAoB,GAAGA,CAClCC,KAAqC,EACrCC,OAAiB,EACjBC,OAAiB,KACE;EACnB,MAAMC,eAAe,GAAG;IACtBC,WAAW,EAAEJ,KAAK,CAAC,gBAAgB;EACrC,CAAC;EAED,IAAIC,OAAO,EAAE;IACX,OAAO;MACL,GAAGE,eAAe;MAClBE,eAAe,EAAEL,KAAK,CAAC,YAAY;IACrC,CAAC;EACH;EAEA,IAAIE,OAAO,EAAE;IACX,OAAO;MACL,GAAGC,eAAe;MAClBE,eAAe,EAAEL,KAAK,CAAC,YAAY;IACrC,CAAC;EACH;EAEA,OAAO;IACL,GAAGG,eAAe;IAClBE,eAAe,EAAEL,KAAK,CAAC,YAAY;EACrC,CAAC;AACH,CAAC;AAED,OAAO,MAAMM,kBAAkB,GAAGA,CAChCN,KAAqC,EACrCC,OAAiB,KACE;EACnB,IAAIA,OAAO,EAAE;IACX,OAAO;MAAEM,KAAK,EAAEP,KAAK,CAAC,aAAa;IAAE,CAAC;EACxC;EAEA,OAAO;IAAEO,KAAK,EAAEP,KAAK,CAAC,aAAa;EAAE,CAAC;AACxC,CAAC;AAED,eAAeJ,UAAU,CAACY,MAAM,CAAC;EAC/BC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,eAAe,EAAEd,OAAO,CAAC,KAAK,CAAC;IAC/Be,iBAAiB,EAAEf,OAAO,CAACgB,CAAC;IAC5BC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,YAAY,EAAEpB,YAAY,CAACqB,CAAC;IAC5BC,WAAW,
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","getThemedButtonStyle","theme","loading","pressed","buttonBaseStyle","borderColor","backgroundColor","getThemedTextStyle","color","create","button","flexDirection","height","paddingVertical","paddingHorizontal","l","alignItems","justifyContent","borderRadius","s","borderWidth","hairlineWidth","smButton","mdButton","loader","marginRight"],"sourceRoot":"../../../../src","sources":["composites/wui-connect-button/styles.ts"],"mappings":"AAAA,SAAyBA,UAAU,QAAQ,cAAc;AACzD,SAASC,YAAY,EAAEC,OAAO,QAAQ,uBAAuB;AAG7D,OAAO,MAAMC,oBAAoB,GAAGA,CAClCC,KAAqC,EACrCC,OAAiB,EACjBC,OAAiB,KACE;EACnB,MAAMC,eAAe,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|
+
case 'xl':
|
|
22
|
+
_iconSize = 'xl';
|
|
23
|
+
break;
|
|
21
24
|
case 'lg':
|
|
22
25
|
_iconSize = 'lg';
|
|
23
26
|
break;
|
|
@@ -32,6 +35,9 @@ export function IconBox({
|
|
|
32
35
|
}
|
|
33
36
|
let boxSize;
|
|
34
37
|
switch (size) {
|
|
38
|
+
case 'xl':
|
|
39
|
+
boxSize = 56;
|
|
40
|
+
break;
|
|
35
41
|
case 'lg':
|
|
36
42
|
boxSize = 40;
|
|
37
43
|
break;
|
|
@@ -41,7 +47,17 @@ export function IconBox({
|
|
|
41
47
|
default:
|
|
42
48
|
boxSize = 24;
|
|
43
49
|
}
|
|
44
|
-
|
|
50
|
+
let borderRadius;
|
|
51
|
+
switch (size) {
|
|
52
|
+
case 'xl':
|
|
53
|
+
borderRadius = 's';
|
|
54
|
+
break;
|
|
55
|
+
case 'lg':
|
|
56
|
+
borderRadius = 'xxs';
|
|
57
|
+
break;
|
|
58
|
+
default:
|
|
59
|
+
borderRadius = '3xl';
|
|
60
|
+
}
|
|
45
61
|
const backgroundStyle = {
|
|
46
62
|
backgroundColor: background && backgroundColor ? Theme[backgroundColor] : background ? `${Theme[iconColor]}1E` : 'transparent',
|
|
47
63
|
borderRadius: BorderRadius[borderRadius]
|
|
@@ -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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KAAK;EACL,gBAEFO,KAAA,CAAAC,aAAA,CAACtB,IAAI;IAACK,IAAI,EAAEG,QAAQ,IAAIQ,SAAU;IAACW,KAAK,EAAErB,SAAU;IAACsB,IAAI,EAAErB;EAAK,CAAE,CAC9D,CAAC;AAEX"}
|
|
@@ -66,8 +66,7 @@ export const InputText = /*#__PURE__*/forwardRef(({
|
|
|
66
66
|
borderRadius: outerRadius
|
|
67
67
|
}],
|
|
68
68
|
disabled: disabled,
|
|
69
|
-
onPress: () => inputRef.current?.focus()
|
|
70
|
-
testID: rest.testID
|
|
69
|
+
onPress: () => inputRef.current?.focus()
|
|
71
70
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
72
71
|
style: [styles[`${size}Container`], {
|
|
73
72
|
backgroundColor: animatedValue,
|
|
@@ -97,7 +96,8 @@ export const InputText = /*#__PURE__*/forwardRef(({
|
|
|
97
96
|
selectionColor: Theme['accent-100'],
|
|
98
97
|
underlineColorAndroid: "transparent",
|
|
99
98
|
selectTextOnFocus: false,
|
|
100
|
-
editable: !disabled
|
|
99
|
+
editable: !disabled,
|
|
100
|
+
testID: "wui-input-text"
|
|
101
101
|
}, rest)), children)));
|
|
102
102
|
});
|
|
103
103
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","useImperativeHandle","useRef","Animated","Pressable","TextInput","Icon","useAnimatedValue","useTheme","styles","outerBorderRadius","AnimatedPressable","createAnimatedComponent","InputText","children","placeholder","inputStyle","icon","size","disabled","returnKeyType","onBlur","onFocus","rest","ref","inputRef","Theme","animatedValue","valueRef","setStartValue","setEndValue","outerRadius","clear","current","focus","blur","handleBlur","e","handleFocus","innerBorder","interpolate","inputRange","outputRange","outerBorder","React","createElement","Fragment","style","borderColor","borderRadius","onPress","
|
|
1
|
+
{"version":3,"names":["forwardRef","useImperativeHandle","useRef","Animated","Pressable","TextInput","Icon","useAnimatedValue","useTheme","styles","outerBorderRadius","AnimatedPressable","createAnimatedComponent","InputText","children","placeholder","inputStyle","icon","size","disabled","returnKeyType","onBlur","onFocus","rest","ref","inputRef","Theme","animatedValue","valueRef","setStartValue","setEndValue","outerRadius","clear","current","focus","blur","handleBlur","e","handleFocus","innerBorder","interpolate","inputRange","outputRange","outerBorder","React","createElement","Fragment","style","borderColor","borderRadius","onPress","View","backgroundColor","name","color","_extends","placeholderTextColor","input","autoCapitalize","autoCorrect","autoComplete","spellCheck","selectionColor","underlineColorAndroid","selectTextOnFocus","editable","testID"],"sourceRoot":"../../../../src","sources":["composites/wui-input-text/index.tsx"],"mappings":";AAAA,SAASA,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC/D,SACEC,QAAQ,EACRC,SAAS,EACTC,SAAS,QAIJ,cAAc;AACrB,SAASC,IAAI,QAAQ,2BAA2B;AAChD,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,SAASC,QAAQ,QAAQ,sBAAsB;AAE/C,OAAOC,MAAM,IAAIC,iBAAiB,QAAQ,UAAU;AAEpD,MAAMC,iBAAiB,GAAGR,QAAQ,CAACS,uBAAuB,CAACR,SAAS,CAAC;AAerE,OAAO,MAAMS,SAAS,gBAAGb,UAAU,CACjC,CACE;EACEc,QAAQ;EACRC,WAAW;EACXC,UAAU;EACVC,IAAI;EACJC,IAAI,GAAG,IAAI;EACXC,QAAQ;EACRC,aAAa;EACbC,MAAM;EACNC,OAAO;EACP,GAAGC;AACW,CAAC,EACjBC,GAAG,KACA;EACH,MAAMC,QAAQ,GAAGvB,MAAM,CAAY,IAAI,CAAC;EACxC,MAAMwB,KAAK,GAAGlB,QAAQ,CAAC,CAAC;EACxB,MAAM;IAAEmB,aAAa;IAAEC,QAAQ;IAAEC,aAAa;IAAEC;EAAY,CAAC,GAAGvB,gBAAgB,CAC9EmB,KAAK,CAAC,gBAAgB,CAAC,EACvBA,KAAK,CAAC,gBAAgB,CAAC,EACvB,GACF,CAAC;EACD,MAAMK,WAAW,GAAGrB,iB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AAa;IACnCC,iBAAiB,EAAE,KAAM;IACzBC,QAAQ,EAAE,CAAC9C,QAAS;IACpB+C,MAAM,EAAC;EAAgB,GACnB3C,IAAI,CACT,CAAC,EACDT,QACY,CACE,CACnB,CAAC;AAEP,CACF,CAAC"}
|
|
@@ -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,SA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,CAAC;IAEX;IAEA,OAAO,IAAI;EACb;EAEA,SAASyB,aAAaA,CAAA,EAAG;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,27 @@
|
|
|
1
|
+
import { BorderRadius, WalletImageSize } from '../../utils/ThemeUtil';
|
|
2
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
3
|
+
import { Shimmer } from '../../components/wui-shimmer';
|
|
4
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
5
|
+
import styles from './styles';
|
|
6
|
+
export function ListItemLoader({
|
|
7
|
+
style
|
|
8
|
+
}) {
|
|
9
|
+
const Theme = useTheme();
|
|
10
|
+
return /*#__PURE__*/React.createElement(FlexView, {
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
flexDirection: "row",
|
|
13
|
+
style: [styles.container, {
|
|
14
|
+
backgroundColor: Theme['gray-glass-002']
|
|
15
|
+
}, style]
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Shimmer, {
|
|
17
|
+
height: WalletImageSize.sm,
|
|
18
|
+
width: WalletImageSize.sm,
|
|
19
|
+
borderRadius: BorderRadius.xxs
|
|
20
|
+
}), /*#__PURE__*/React.createElement(Shimmer, {
|
|
21
|
+
height: 22,
|
|
22
|
+
width: 80,
|
|
23
|
+
borderRadius: 6,
|
|
24
|
+
style: styles.text
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BorderRadius","WalletImageSize","useTheme","Shimmer","FlexView","styles","ListItemLoader","style","Theme","React","createElement","alignItems","flexDirection","container","backgroundColor","height","sm","width","borderRadius","xxs","text"],"sourceRoot":"../../../../src","sources":["composites/wui-list-item-loader/index.tsx"],"mappings":"AACA,SAASA,YAAY,EAAEC,eAAe,QAAQ,uBAAuB;AACrE,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,OAAO,QAAQ,8BAA8B;AACtD,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,OAAOC,MAAM,MAAM,UAAU;AAM7B,OAAO,SAASC,cAAcA,CAAC;EAAEC;AAA2B,CAAC,EAAE;EAC7D,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;EAExB,oBACEO,KAAA,CAAAC,aAAA,CAACN,QAAQ;IACPO,UAAU,EAAC,QAAQ;IACnBC,aAAa,EAAC,KAAK;IACnBL,KAAK,EAAE,CAACF,MAAM,CAACQ,SAAS,EAAE;MAAEC,eAAe,EAAEN,KAAK,CAAC,gBAAgB;IAAE,CAAC,EAAED,KAAK;EAAE,gBAE/EE,KAAA,CAAAC,aAAA,CAACP,OAAO;IACNY,MAAM,EAAEd,eAAe,CAACe,EAAG;IAC3BC,KAAK,EAAEhB,eAAe,CAACe,EAAG;IAC1BE,YAAY,EAAElB,YAAY,CAACmB;EAAI,CAChC,CAAC,eACFV,KAAA,CAAAC,aAAA,CAACP,OAAO;IAACY,MAAM,EAAE,EAAG;IAACE,KAAK,EAAE,EAAG;IAACC,YAAY,EAAE,CAAE;IAACX,KAAK,EAAEF,MAAM,CAACe;EAAK,CAAE,CAC9D,CAAC;AAEf"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
export default StyleSheet.create({
|
|
4
|
+
container: {
|
|
5
|
+
borderRadius: BorderRadius.xs,
|
|
6
|
+
padding: Spacing.xs
|
|
7
|
+
},
|
|
8
|
+
text: {
|
|
9
|
+
marginLeft: Spacing.s
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","BorderRadius","Spacing","create","container","borderRadius","xs","padding","text","marginLeft","s"],"sourceRoot":"../../../../src","sources":["composites/wui-list-item-loader/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,YAAY,EAAEJ,YAAY,CAACK,EAAE;IAC7BC,OAAO,EAAEL,OAAO,CAACI;EACnB,CAAC;EACDE,IAAI,EAAE;IACJC,UAAU,EAAEP,OAAO,CAACQ;EACtB;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,QAAQ,QAAwC,cAAc;AACxF,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,SAASC,QAAQ,QAAQ,sBAAsB;AAG/C,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,IAAI,QAAQ,aAAa;AAGlC,MAAMC,iBAAiB,GAAGL,QAAQ,CAACM,uBAAuB,CAACP,SAAS,CAAC;AAarE,OAAO,SAASQ,UAAUA,CAAC;EACzBC,IAAI;EACJC,QAAQ;EACRC,QAAQ;EACRC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,UAAU,GAAG,EAAE;EACfC,SAAS,GAAG;AACG,CAAC,EAAE;EAClB,MAAMC,KAAK,GAAGd,QAAQ,CAAC,CAAC;EACxB,MAAM;IAAEe,aAAa;IAAEC,aAAa;IAAEC;EAAY,CAAC,GAAGlB,gBAAgB,CACpEe,KAAK,CAAC,gBAAgB,CAAC,EACvBA,KAAK,CAAC,gBAAgB,CACxB,CAAC;EAED,oBACEI,KAAA,CAAAC,aAAA,CAAChB,iBAAiB;IAChBK,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAE,CAACT,MAAM,CAACmB,SAAS,EAAE;MAAEC,eAAe,EAAEN;IAAc,CAAC,EAAEL,KAAK,CAAE;IACrED,OAAO,EAAEA,OAAQ;IACjBa,SAAS,EAAEL,WAAY;IACvBM,UAAU,EAAEP,aAAc;IAC1BL,MAAM,EAAEA;EAAO,gBAEfO,KAAA,CAAAC,aAAA,CAACvB,IAAI;IACHc,KAAK,EAAE,CACLT,MAAM,CAACuB,MAAM,EACb;MAAEC,MAAM,EAAEb,UAAU,GAAG,CAAC;MAAEc,KAAK,EAAEb,SAAS,GAAG,CAAC;MAAEc,WAAW,EAAEb,KAAK,CAAC,gBAAgB;IAAE,CAAC;EACtF,gBAEFI,KAAA,CAAAC,aAAA,CAACjB,IAAI;IACHI,IAAI,EAAEA,IAAK;IACXI,KAAK,EAAEF,QAAQ,IAAIP,MAAM,CAAC2B,YAAa;IACvCF,KAAK,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;IAC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AAQ,CAAE,CAErD,CAAC,eACXX,KAAA,CAAAC,aAAA,CAACb,QAAQ;IAACiB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;EAAE,gBACtCL,KAAA,CAAAC,aAAA,CAACf,IAAI;IAACyB,KAAK,EAAC,QAAQ;IAACI,OAAO,EAAC;EAAe,GACzCrB,IACG,CAAC,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
|