@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
|
@@ -15,7 +15,7 @@ export interface AccountButtonProps {
|
|
|
15
15
|
imageHeaders?: Record<string, string>;
|
|
16
16
|
avatarSrc?: string;
|
|
17
17
|
address?: string;
|
|
18
|
-
|
|
18
|
+
profileName?: string;
|
|
19
19
|
balance?: string;
|
|
20
20
|
onPress?: () => void;
|
|
21
21
|
disabled?: boolean;
|
|
@@ -28,7 +28,7 @@ export function AccountButton({
|
|
|
28
28
|
imageHeaders,
|
|
29
29
|
avatarSrc,
|
|
30
30
|
address,
|
|
31
|
-
|
|
31
|
+
profileName,
|
|
32
32
|
balance,
|
|
33
33
|
onPress,
|
|
34
34
|
disabled,
|
|
@@ -73,6 +73,20 @@ export function AccountButton({
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
const formattedAddress = profileName
|
|
77
|
+
? UiUtil.getTruncateString({
|
|
78
|
+
string: profileName,
|
|
79
|
+
charsStart: 18,
|
|
80
|
+
charsEnd: 0,
|
|
81
|
+
truncate: 'end'
|
|
82
|
+
})
|
|
83
|
+
: UiUtil.getTruncateString({
|
|
84
|
+
string: address || '',
|
|
85
|
+
charsStart: 4,
|
|
86
|
+
charsEnd: 6,
|
|
87
|
+
truncate: 'middle'
|
|
88
|
+
});
|
|
89
|
+
|
|
76
90
|
return (
|
|
77
91
|
<AnimatedPressable
|
|
78
92
|
onPress={onPress}
|
|
@@ -102,12 +116,7 @@ export function AccountButton({
|
|
|
102
116
|
/>
|
|
103
117
|
{address && (
|
|
104
118
|
<Text variant="paragraph-500" color="fg-200" style={styles.address}>
|
|
105
|
-
{
|
|
106
|
-
string: address,
|
|
107
|
-
charsStart: isProfileName ? 18 : 4,
|
|
108
|
-
charsEnd: isProfileName ? 0 : 6,
|
|
109
|
-
truncate: isProfileName ? 'end' : 'middle'
|
|
110
|
-
})}
|
|
119
|
+
{formattedAddress}
|
|
111
120
|
</Text>
|
|
112
121
|
)}
|
|
113
122
|
</View>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
|
-
import { Spacing } from '../../utils/ThemeUtil';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
container: {
|
|
6
6
|
flexDirection: 'row',
|
|
7
7
|
height: 40,
|
|
8
|
-
borderRadius:
|
|
9
|
-
borderWidth:
|
|
8
|
+
borderRadius: BorderRadius.full,
|
|
9
|
+
borderWidth: StyleSheet.hairlineWidth,
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
alignItems: 'center',
|
|
12
12
|
paddingHorizontal: Spacing['3xs']
|
|
@@ -14,7 +14,7 @@ export default StyleSheet.create({
|
|
|
14
14
|
image: {
|
|
15
15
|
height: 24,
|
|
16
16
|
width: 24,
|
|
17
|
-
borderRadius:
|
|
17
|
+
borderRadius: BorderRadius.full,
|
|
18
18
|
borderWidth: 2
|
|
19
19
|
},
|
|
20
20
|
avatarPlaceholder: {
|
|
@@ -35,8 +35,8 @@ export default StyleSheet.create({
|
|
|
35
35
|
alignItems: 'center',
|
|
36
36
|
paddingLeft: Spacing['3xs'],
|
|
37
37
|
paddingRight: Spacing.xs,
|
|
38
|
-
borderRadius:
|
|
39
|
-
borderWidth:
|
|
38
|
+
borderRadius: BorderRadius.full,
|
|
39
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
40
40
|
},
|
|
41
41
|
address: {
|
|
42
42
|
marginLeft: Spacing['3xs']
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { Avatar } from '../wui-avatar';
|
|
3
|
+
import { UiUtil } from '../../utils/UiUtil';
|
|
4
|
+
import { Text } from '../../components/wui-text';
|
|
5
|
+
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
import styles from './styles';
|
|
8
|
+
import { Icon } from '../../components/wui-icon';
|
|
9
|
+
|
|
10
|
+
export interface AccountPillProps {
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
address?: string;
|
|
13
|
+
profileName?: string;
|
|
14
|
+
profileImage?: string;
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
19
|
+
|
|
20
|
+
export function AccountPill({
|
|
21
|
+
onPress,
|
|
22
|
+
address,
|
|
23
|
+
profileName,
|
|
24
|
+
profileImage,
|
|
25
|
+
style
|
|
26
|
+
}: AccountPillProps) {
|
|
27
|
+
const Theme = useTheme();
|
|
28
|
+
|
|
29
|
+
const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
|
|
30
|
+
Theme['gray-glass-005'],
|
|
31
|
+
Theme['gray-glass-010']
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const backgroundColor = animatedValue;
|
|
35
|
+
const borderColor = Theme['gray-glass-005'];
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<AnimatedPressable
|
|
39
|
+
style={[styles.container, { backgroundColor, borderColor }, style]}
|
|
40
|
+
onPressIn={setEndValue}
|
|
41
|
+
onPressOut={setStartValue}
|
|
42
|
+
onPress={onPress}
|
|
43
|
+
hitSlop={10}
|
|
44
|
+
>
|
|
45
|
+
<Avatar imageSrc={profileImage} address={address} size={28} borderWidth={0} />
|
|
46
|
+
<Text variant="large-500" color="fg-100" style={styles.text}>
|
|
47
|
+
{profileName
|
|
48
|
+
? UiUtil.getTruncateString({
|
|
49
|
+
string: profileName,
|
|
50
|
+
charsStart: 17,
|
|
51
|
+
charsEnd: 0,
|
|
52
|
+
truncate: 'end'
|
|
53
|
+
})
|
|
54
|
+
: UiUtil.getTruncateString({
|
|
55
|
+
string: address ?? '',
|
|
56
|
+
charsStart: 4,
|
|
57
|
+
charsEnd: 4,
|
|
58
|
+
truncate: 'middle'
|
|
59
|
+
})}
|
|
60
|
+
</Text>
|
|
61
|
+
<Icon name="chevronBottom" size="sm" color="fg-200" style={styles.copyButton} />
|
|
62
|
+
</AnimatedPressable>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
height: 44,
|
|
7
|
+
minWidth: 160,
|
|
8
|
+
maxWidth: 260,
|
|
9
|
+
paddingLeft: Spacing.xs,
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
borderRadius: BorderRadius.full,
|
|
14
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
marginLeft: Spacing['2xs']
|
|
18
|
+
},
|
|
19
|
+
copyButton: {
|
|
20
|
+
marginLeft: Spacing.xs,
|
|
21
|
+
marginRight: Spacing.s
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { Text } from '../../components/wui-text';
|
|
3
|
+
|
|
4
|
+
export interface BalanceProps {
|
|
5
|
+
integer?: string;
|
|
6
|
+
decimal?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function Balance({ integer = '0', decimal = '00' }: BalanceProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Text color="fg-100" style={styles.text}>
|
|
12
|
+
{`$${integer}`}
|
|
13
|
+
<Text color="fg-200" style={styles.text}>
|
|
14
|
+
{`.${decimal}`}
|
|
15
|
+
</Text>
|
|
16
|
+
</Text>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
text: {
|
|
22
|
+
fontSize: 40,
|
|
23
|
+
fontWeight: '500'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IconType } from '../../utils/TypesUtil';
|
|
2
|
+
import { FlexView } from '../../layout/wui-flex';
|
|
3
|
+
import { IconBox } from '../wui-icon-box';
|
|
4
|
+
import { Text } from '../../components/wui-text';
|
|
5
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
6
|
+
import styles from './styles';
|
|
7
|
+
|
|
8
|
+
export interface BannerProps {
|
|
9
|
+
icon: IconType;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function Banner({ icon, text }: BannerProps) {
|
|
14
|
+
const Theme = useTheme();
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<FlexView
|
|
18
|
+
flexDirection="row"
|
|
19
|
+
alignItems="center"
|
|
20
|
+
style={[styles.container, { backgroundColor: Theme['accent-glass-010'] }]}
|
|
21
|
+
>
|
|
22
|
+
<IconBox icon={icon} size="sm" iconColor="fg-200" background style={styles.icon} />
|
|
23
|
+
<Text variant="small-400" color="fg-200" style={styles.text}>
|
|
24
|
+
{text}
|
|
25
|
+
</Text>
|
|
26
|
+
</FlexView>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
|
|
3
|
+
|
|
4
|
+
export default StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
padding: Spacing.s,
|
|
7
|
+
borderRadius: BorderRadius.s
|
|
8
|
+
},
|
|
9
|
+
icon: {
|
|
10
|
+
marginRight: Spacing.xs
|
|
11
|
+
},
|
|
12
|
+
text: {
|
|
13
|
+
flex: 1
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -95,16 +95,18 @@ export function Button({
|
|
|
95
95
|
style={[styles.iconLeft, iconStyle]}
|
|
96
96
|
/>
|
|
97
97
|
)}
|
|
98
|
-
{loading
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
{loading && <LoadingSpinner color={iconColor} />}
|
|
99
|
+
{!loading &&
|
|
100
|
+
(typeof children === 'string' ? (
|
|
101
|
+
<Text
|
|
102
|
+
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
103
|
+
style={[styles.text, themedTextStyle]}
|
|
104
|
+
>
|
|
105
|
+
{children}
|
|
106
|
+
</Text>
|
|
107
|
+
) : (
|
|
108
|
+
children
|
|
109
|
+
))}
|
|
108
110
|
{iconRight && (
|
|
109
111
|
<Icon
|
|
110
112
|
color={iconColor}
|
|
@@ -14,7 +14,7 @@ export const getThemedButtonStyle = (
|
|
|
14
14
|
|
|
15
15
|
if (disabled) {
|
|
16
16
|
return {
|
|
17
|
-
backgroundColor: variant === 'fill' ? theme['gray-glass-
|
|
17
|
+
backgroundColor: variant === 'fill' ? theme['gray-glass-005'] : theme['gray-glass-010'],
|
|
18
18
|
borderColor: theme['gray-glass-002']
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ export const getThemedButtonStyle = (
|
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
30
|
...buttonBaseStyle,
|
|
31
|
-
backgroundColor: variant === 'fill' ? theme['accent-100'] : '
|
|
31
|
+
backgroundColor: variant === 'fill' ? theme['accent-100'] : theme['gray-glass-002']
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -62,7 +62,7 @@ export default StyleSheet.create({
|
|
|
62
62
|
alignItems: 'center',
|
|
63
63
|
justifyContent: 'center',
|
|
64
64
|
borderRadius: BorderRadius.xs,
|
|
65
|
-
borderWidth:
|
|
65
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
66
66
|
},
|
|
67
67
|
smButton: {
|
|
68
68
|
height: 32,
|
|
@@ -25,6 +25,7 @@ export interface CardSelectProps {
|
|
|
25
25
|
type?: CardSelectType;
|
|
26
26
|
onPress?: () => void;
|
|
27
27
|
style?: StyleProp<ViewStyle>;
|
|
28
|
+
testID?: string;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
function _CardSelect({
|
|
@@ -36,7 +37,8 @@ function _CardSelect({
|
|
|
36
37
|
disabled,
|
|
37
38
|
installed,
|
|
38
39
|
selected,
|
|
39
|
-
style
|
|
40
|
+
style,
|
|
41
|
+
testID
|
|
40
42
|
}: CardSelectProps) {
|
|
41
43
|
const Theme = useTheme();
|
|
42
44
|
const normalbackgroundColor = getBackgroundColor({ selected, disabled, pressed: false });
|
|
@@ -77,6 +79,7 @@ function _CardSelect({
|
|
|
77
79
|
onPressOut={setStartValue}
|
|
78
80
|
disabled={disabled}
|
|
79
81
|
style={[styles.container, { backgroundColor: animatedValue }, style]}
|
|
82
|
+
testID={testID}
|
|
80
83
|
>
|
|
81
84
|
<View>
|
|
82
85
|
<Image
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useState } from 'react';
|
|
2
|
-
import { Animated,
|
|
2
|
+
import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { ChipType, ColorType, IconType, SizeType } from '../../utils/TypesUtil';
|
|
4
4
|
import { useTheme } from '../../hooks/useTheme';
|
|
5
5
|
import { Text } from '../../components/wui-text';
|
|
@@ -10,20 +10,22 @@ import styles, { getThemedChipStyle, getThemedTextColor } from './styles';
|
|
|
10
10
|
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
11
11
|
|
|
12
12
|
export interface ChipProps {
|
|
13
|
-
link: string;
|
|
14
13
|
label?: string;
|
|
15
14
|
imageSrc?: string;
|
|
16
|
-
|
|
15
|
+
leftIcon?: IconType;
|
|
16
|
+
rightIcon?: IconType;
|
|
17
17
|
variant?: ChipType;
|
|
18
18
|
size?: Exclude<SizeType, 'xl' | 'lg' | 'xs' | 'xxs'>;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
style?: StyleProp<ViewStyle>;
|
|
21
|
+
onPress?: () => void;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function Chip({
|
|
24
|
-
|
|
25
|
+
onPress,
|
|
25
26
|
imageSrc,
|
|
26
|
-
|
|
27
|
+
leftIcon,
|
|
28
|
+
rightIcon,
|
|
27
29
|
variant = 'fill',
|
|
28
30
|
size = 'md',
|
|
29
31
|
disabled,
|
|
@@ -38,10 +40,8 @@ export function Chip({
|
|
|
38
40
|
const themedTextColor = getThemedTextColor(variant, disabled, pressed);
|
|
39
41
|
const iconSize = size === 'md' ? 'sm' : 'xs';
|
|
40
42
|
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
if (supported) Linking.openURL(link);
|
|
44
|
-
});
|
|
43
|
+
const handlePress = () => {
|
|
44
|
+
onPress?.();
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const onPressIn = () => {
|
|
@@ -78,7 +78,7 @@ export function Chip({
|
|
|
78
78
|
style={[styles.container, styles[`${size}Chip`], { borderColor, backgroundColor }, style]}
|
|
79
79
|
onPressIn={onPressIn}
|
|
80
80
|
onPressOut={onPressOut}
|
|
81
|
-
onPress={
|
|
81
|
+
onPress={handlePress}
|
|
82
82
|
>
|
|
83
83
|
{imageSrc && (
|
|
84
84
|
<Image
|
|
@@ -91,15 +91,16 @@ export function Chip({
|
|
|
91
91
|
source={imageSrc}
|
|
92
92
|
/>
|
|
93
93
|
)}
|
|
94
|
+
{leftIcon && <Icon name={leftIcon} color={themedTextColor as ColorType} />}
|
|
94
95
|
<Text
|
|
95
96
|
variant={size === 'md' ? 'paragraph-600' : 'small-600'}
|
|
96
97
|
style={[styles.link, { color: Theme[themedTextColor] }]}
|
|
97
98
|
>
|
|
98
|
-
{label
|
|
99
|
+
{label}
|
|
99
100
|
</Text>
|
|
100
|
-
{
|
|
101
|
+
{rightIcon && (
|
|
101
102
|
<Icon
|
|
102
|
-
name={
|
|
103
|
+
name={rightIcon}
|
|
103
104
|
size={iconSize}
|
|
104
105
|
color={themedTextColor as ColorType}
|
|
105
106
|
style={styles.icon}
|
|
@@ -65,11 +65,11 @@ export default StyleSheet.create({
|
|
|
65
65
|
paddingHorizontal: Spacing.xs,
|
|
66
66
|
alignItems: 'center',
|
|
67
67
|
borderRadius: BorderRadius.s,
|
|
68
|
-
borderWidth:
|
|
68
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
69
69
|
},
|
|
70
70
|
image: {
|
|
71
|
-
borderRadius:
|
|
72
|
-
borderWidth:
|
|
71
|
+
borderRadius: BorderRadius.full,
|
|
72
|
+
borderWidth: StyleSheet.hairlineWidth
|
|
73
73
|
},
|
|
74
74
|
smImage: {
|
|
75
75
|
width: 16,
|
|
@@ -0,0 +1,64 @@
|
|
|
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, type StyleProp, type ViewStyle } from 'react-native';
|
|
6
|
+
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
|
|
8
|
+
export interface CompatibleNetworkProps {
|
|
9
|
+
text: string;
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
networkImages: string[];
|
|
12
|
+
imageHeaders: Record<string, string>;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function CompatibleNetwork({
|
|
17
|
+
text,
|
|
18
|
+
onPress,
|
|
19
|
+
networkImages,
|
|
20
|
+
imageHeaders,
|
|
21
|
+
style
|
|
22
|
+
}: CompatibleNetworkProps) {
|
|
23
|
+
const Theme = useTheme();
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<ListItem
|
|
27
|
+
onPress={onPress}
|
|
28
|
+
style={[styles.container, style]}
|
|
29
|
+
contentStyle={styles.contentContainer}
|
|
30
|
+
chevron
|
|
31
|
+
>
|
|
32
|
+
<Text color="fg-200" variant="small-400">
|
|
33
|
+
{text}
|
|
34
|
+
</Text>
|
|
35
|
+
<FlexView flexDirection="row" justifyContent="center" alignItems="center">
|
|
36
|
+
{networkImages?.map((image, index) => (
|
|
37
|
+
<NetworkImage
|
|
38
|
+
size="xs"
|
|
39
|
+
key={image}
|
|
40
|
+
imageSrc={image}
|
|
41
|
+
imageHeaders={imageHeaders}
|
|
42
|
+
borderColor={Theme['bg-200']}
|
|
43
|
+
borderWidth={2}
|
|
44
|
+
style={[styles.item, { zIndex: networkImages.length - index }]}
|
|
45
|
+
/>
|
|
46
|
+
))}
|
|
47
|
+
</FlexView>
|
|
48
|
+
</ListItem>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
container: {
|
|
54
|
+
height: 48
|
|
55
|
+
},
|
|
56
|
+
contentContainer: {
|
|
57
|
+
flexDirection: 'row',
|
|
58
|
+
justifyContent: 'space-between',
|
|
59
|
+
paddingRight: 0
|
|
60
|
+
},
|
|
61
|
+
item: {
|
|
62
|
+
marginLeft: -5
|
|
63
|
+
}
|
|
64
|
+
});
|
|
@@ -7,7 +7,7 @@ import styles from './styles';
|
|
|
7
7
|
|
|
8
8
|
export interface IconBoxProps {
|
|
9
9
|
icon: IconType;
|
|
10
|
-
size?: Exclude<SizeType, '
|
|
10
|
+
size?: Exclude<SizeType, 'xs' | 'xxs'>;
|
|
11
11
|
iconColor?: ColorType;
|
|
12
12
|
iconSize?: Exclude<SizeType, 'xl'>;
|
|
13
13
|
background?: boolean;
|
|
@@ -33,6 +33,9 @@ export function IconBox({
|
|
|
33
33
|
const Theme = useTheme();
|
|
34
34
|
let _iconSize: SizeType;
|
|
35
35
|
switch (size) {
|
|
36
|
+
case 'xl':
|
|
37
|
+
_iconSize = 'xl';
|
|
38
|
+
break;
|
|
36
39
|
case 'lg':
|
|
37
40
|
_iconSize = 'lg';
|
|
38
41
|
break;
|
|
@@ -48,6 +51,9 @@ export function IconBox({
|
|
|
48
51
|
|
|
49
52
|
let boxSize: number;
|
|
50
53
|
switch (size) {
|
|
54
|
+
case 'xl':
|
|
55
|
+
boxSize = 56;
|
|
56
|
+
break;
|
|
51
57
|
case 'lg':
|
|
52
58
|
boxSize = 40;
|
|
53
59
|
break;
|
|
@@ -58,7 +64,17 @@ export function IconBox({
|
|
|
58
64
|
boxSize = 24;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
|
-
|
|
67
|
+
let borderRadius: keyof typeof BorderRadius;
|
|
68
|
+
switch (size) {
|
|
69
|
+
case 'xl':
|
|
70
|
+
borderRadius = 's';
|
|
71
|
+
break;
|
|
72
|
+
case 'lg':
|
|
73
|
+
borderRadius = 'xxs';
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
borderRadius = '3xl';
|
|
77
|
+
}
|
|
62
78
|
|
|
63
79
|
const backgroundStyle = {
|
|
64
80
|
backgroundColor:
|
|
@@ -97,7 +97,6 @@ export const InputText = forwardRef<InputRef, InputTextProps>(
|
|
|
97
97
|
style={[styles.outerBorder, { borderColor: outerBorder, borderRadius: outerRadius }]}
|
|
98
98
|
disabled={disabled}
|
|
99
99
|
onPress={() => inputRef.current?.focus()}
|
|
100
|
-
testID={rest.testID}
|
|
101
100
|
>
|
|
102
101
|
<Animated.View
|
|
103
102
|
style={[
|
|
@@ -123,6 +122,7 @@ export const InputText = forwardRef<InputRef, InputTextProps>(
|
|
|
123
122
|
underlineColorAndroid="transparent"
|
|
124
123
|
selectTextOnFocus={false}
|
|
125
124
|
editable={!disabled}
|
|
125
|
+
testID="wui-input-text"
|
|
126
126
|
{...rest}
|
|
127
127
|
/>
|
|
128
128
|
{children}
|
|
@@ -5,7 +5,7 @@ import { Image } from '../../components/wui-image';
|
|
|
5
5
|
import { LoadingSpinner } from '../../components/wui-loading-spinner';
|
|
6
6
|
import useAnimatedValue from '../../hooks/useAnimatedValue';
|
|
7
7
|
import { useTheme } from '../../hooks/useTheme';
|
|
8
|
-
import type { IconType } from '../../utils/TypesUtil';
|
|
8
|
+
import type { ColorType, IconType } from '../../utils/TypesUtil';
|
|
9
9
|
import { IconBox } from '../wui-icon-box';
|
|
10
10
|
import styles from './styles';
|
|
11
11
|
|
|
@@ -13,8 +13,9 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
|
13
13
|
|
|
14
14
|
export interface ListItemProps {
|
|
15
15
|
icon?: IconType;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
iconColor?: ColorType;
|
|
17
|
+
iconBackgroundColor?: ColorType;
|
|
18
|
+
iconBorderColor?: ColorType;
|
|
18
19
|
imageSrc?: string;
|
|
19
20
|
imageHeaders?: Record<string, string>;
|
|
20
21
|
chevron?: boolean;
|
|
@@ -23,21 +24,24 @@ export interface ListItemProps {
|
|
|
23
24
|
onPress?: () => void;
|
|
24
25
|
children?: ReactNode;
|
|
25
26
|
style?: StyleProp<ViewStyle>;
|
|
27
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
26
28
|
testID?: string;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export function ListItem({
|
|
30
32
|
children,
|
|
31
33
|
icon,
|
|
32
|
-
variant,
|
|
33
34
|
imageSrc,
|
|
34
35
|
imageHeaders,
|
|
35
|
-
|
|
36
|
+
iconColor = 'fg-200',
|
|
37
|
+
iconBackgroundColor,
|
|
38
|
+
iconBorderColor = 'gray-glass-005',
|
|
36
39
|
chevron,
|
|
37
40
|
loading,
|
|
38
41
|
disabled,
|
|
39
42
|
onPress,
|
|
40
43
|
style,
|
|
44
|
+
contentStyle,
|
|
41
45
|
testID
|
|
42
46
|
}: ListItemProps) {
|
|
43
47
|
const Theme = useTheme();
|
|
@@ -47,7 +51,7 @@ export function ListItem({
|
|
|
47
51
|
);
|
|
48
52
|
|
|
49
53
|
function visualTemplate() {
|
|
50
|
-
if (
|
|
54
|
+
if (imageSrc) {
|
|
51
55
|
return (
|
|
52
56
|
<View style={[styles.imageContainer, { borderColor: Theme['gray-glass-005'] }]}>
|
|
53
57
|
<Image
|
|
@@ -57,18 +61,15 @@ export function ListItem({
|
|
|
57
61
|
/>
|
|
58
62
|
</View>
|
|
59
63
|
);
|
|
60
|
-
} else if (
|
|
61
|
-
const iconColor = iconVariant === 'blue' ? 'accent-100' : 'fg-200';
|
|
62
|
-
const borderColor = iconVariant === 'blue' ? 'accent-glass-005' : 'gray-glass-005';
|
|
63
|
-
|
|
64
|
+
} else if (icon) {
|
|
64
65
|
return (
|
|
65
|
-
<View style={[styles.imageContainer, { borderColor: Theme[
|
|
66
|
+
<View style={[styles.imageContainer, { borderColor: Theme[iconBorderColor] }]}>
|
|
66
67
|
<IconBox
|
|
67
68
|
icon={icon}
|
|
68
69
|
iconColor={iconColor}
|
|
69
70
|
size="md"
|
|
70
71
|
background
|
|
71
|
-
backgroundColor=
|
|
72
|
+
backgroundColor={iconBackgroundColor}
|
|
72
73
|
/>
|
|
73
74
|
</View>
|
|
74
75
|
);
|
|
@@ -81,7 +82,7 @@ export function ListItem({
|
|
|
81
82
|
if (loading) {
|
|
82
83
|
return <LoadingSpinner color="fg-200" size="lg" style={styles.rightIcon} />;
|
|
83
84
|
} else if (chevron) {
|
|
84
|
-
return <Icon name="chevronRight" size="md" color="fg-
|
|
85
|
+
return <Icon name="chevronRight" size="md" color="fg-200" style={styles.rightIcon} />;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
return null;
|
|
@@ -101,7 +102,7 @@ export function ListItem({
|
|
|
101
102
|
testID={testID}
|
|
102
103
|
>
|
|
103
104
|
{visualTemplate()}
|
|
104
|
-
<View style={styles.content}>{children}</View>
|
|
105
|
+
<View style={[styles.content, contentStyle]}>{children}</View>
|
|
105
106
|
{rightTemplate()}
|
|
106
107
|
</AnimatedPressable>
|
|
107
108
|
);
|