@reown/appkit-ui-react-native 1.0.1 → 1.1.0
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_wuiImage","_wuiText","_useTheme","_wuiIconBox","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiImage","_wuiText","_useTheme","_wuiIconBox","_wuiLoadingSpinner","_useAnimatedValue","_interopRequireDefault","_styles","obj","__esModule","default","AnimatedPressable","Animated","createAnimatedComponent","Pressable","NetworkButton","children","onPress","background","disabled","imageSrc","imageHeaders","loading","style","testID","Theme","useTheme","textColor","animatedValue","setStartValue","setEndValue","useAnimatedValue","backgroundColor","borderColor","React","createElement","styles","container","onPressIn","onPressOut","LoaderComponent","ImageComponent","Text","variant","color","View","LoadingSpinner","size","loader","IconBox","icon","iconColor","Image","image","imageDisabled","source","headers"],"sourceRoot":"../../../../src","sources":["composites/wui-network-button/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAC,sBAAA,CAAAP,OAAA;AAEA,IAAAQ,OAAA,GAAAD,sBAAA,CAAAP,OAAA;AAA8B,SAAAO,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE9B,MAAMG,iBAAiB,GAAGC,qBAAQ,CAACC,uBAAuB,CAACC,sBAAS,CAAC;AAc9D,SAASC,aAAaA,CAAC;EAC5BC,QAAQ;EACRC,OAAO;EACPC,UAAU,GAAG,IAAI;EACjBC,QAAQ;EACRC,QAAQ;EACRC,YAAY;EACZC,OAAO;EACPC,KAAK;EACLC;AACkB,CAAC,EAAE;EACrB,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EACxB,MAAMC,SAAS,GAAGR,QA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AS,GAAEA,QAAe,CAE/B,CAAC;AAExB;AAEA,SAASwB,eAAeA,CAAC;EAAElB;AAA+B,CAAC,EAAE;EAC3D,IAAI,CAACA,OAAO,EAAE,OAAO,IAAI;EAEzB,oBAAOY,KAAA,CAAAC,aAAA,CAAC/B,kBAAA,CAAA0C,cAAc;IAACC,IAAI,EAAC,IAAI;IAACxB,KAAK,EAAEa,eAAM,CAACY;EAAO,CAAE,CAAC;AAC3D;AAEA,SAASP,cAAcA,CAAC;EACtBnB,OAAO;EACPH,QAAQ;EACRC,QAAQ;EACRC,YAAY;EACZY;AAOF,CAAC,EAAE;EACD,IAAIX,OAAO,EAAE,OAAO,IAAI;EAExB,MAAMK,SAAS,GAAGR,QAAQ,GAAG,QAAQ,GAAG,QAAQ;EAChD,IAAI,CAACC,QAAQ,EAAE;IACb,oBAAOc,KAAA,CAAAC,aAAA,CAAChC,WAAA,CAAA8C,OAAO;MAACC,IAAI,EAAC,oBAAoB;MAAChC,UAAU;MAACiC,SAAS,EAAExB,SAAU;MAACoB,IAAI,EAAC;IAAI,CAAE,CAAC;EACzF;EAEA,oBACEb,KAAA,CAAAC,aAAA,CAACnC,SAAA,CAAAoD,KAAK;IACJ7B,KAAK,EAAE,CAACa,eAAM,CAACiB,KAAK,EAAE;MAAEpB;IAAY,CAAC,EAAEd,QAAQ,IAAIiB,eAAM,CAACkB,aAAa,CAAE;IACzEC,MAAM,EAAEnC,QAAS;IACjBoC,OAAO,EAAEnC;EAAa,CACvB,CAAC;AAEN"}
|
|
@@ -12,11 +12,11 @@ var _default = exports.default = _reactNative.StyleSheet.create({
|
|
|
12
12
|
height: 40,
|
|
13
13
|
alignItems: 'center',
|
|
14
14
|
justifyContent: 'center',
|
|
15
|
-
borderWidth:
|
|
16
|
-
borderRadius:
|
|
15
|
+
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
16
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
17
17
|
paddingHorizontal: _ThemeUtil.Spacing['2xs']
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
children: {
|
|
20
20
|
paddingHorizontal: _ThemeUtil.Spacing['2xs']
|
|
21
21
|
},
|
|
22
22
|
loader: {
|
|
@@ -25,7 +25,7 @@ var _default = exports.default = _reactNative.StyleSheet.create({
|
|
|
25
25
|
image: {
|
|
26
26
|
height: 24,
|
|
27
27
|
width: 24,
|
|
28
|
-
borderRadius:
|
|
28
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
29
29
|
borderWidth: 2,
|
|
30
30
|
paddingLeft: _ThemeUtil.Spacing['4xs']
|
|
31
31
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","flexDirection","height","alignItems","justifyContent","borderWidth","borderRadius","paddingHorizontal","Spacing","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","flexDirection","height","alignItems","justifyContent","borderWidth","hairlineWidth","borderRadius","BorderRadius","full","paddingHorizontal","Spacing","children","loader","paddingLeft","image","width","imageDisabled","opacity"],"sourceRoot":"../../../../src","sources":["composites/wui-network-button/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE/CC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,WAAW,EAAEP,uBAAU,CAACQ,aAAa;IACrCC,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BC,iBAAiB,EAAEC,kBAAO,CAAC,KAAK;EAClC,CAAC;EACDC,QAAQ,EAAE;IACRF,iBAAiB,EAAEC,kBAAO,CAAC,KAAK;EAClC,CAAC;EACDE,MAAM,EAAE;IACNC,WAAW,EAAEH,kBAAO,CAAC,KAAK;EAC5B,CAAC;EACDI,KAAK,EAAE;IACLb,MAAM,EAAE,EAAE;IACVc,KAAK,EAAE,EAAE;IACTT,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BJ,WAAW,EAAE,CAAC;IACdS,WAAW,EAAEH,kBAAO,CAAC,KAAK;EAC5B,CAAC;EACDM,aAAa,EAAE;IACbC,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
|
|
@@ -6,45 +6,72 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.NetworkImage = NetworkImage;
|
|
7
7
|
var _reactNativeSvg = require("react-native-svg");
|
|
8
8
|
var _useTheme = require("../../hooks/useTheme");
|
|
9
|
+
var _wuiIcon = require("../../components/wui-icon");
|
|
10
|
+
var _wuiFlex = require("../../layout/wui-flex");
|
|
9
11
|
var _styles = require("./styles");
|
|
12
|
+
const sizeToPath = {
|
|
13
|
+
lg: _styles.PathLg,
|
|
14
|
+
md: _styles.PathNormal,
|
|
15
|
+
sm: _styles.PathSmall,
|
|
16
|
+
xs: _styles.PathXS
|
|
17
|
+
};
|
|
18
|
+
const sizeToHeight = {
|
|
19
|
+
lg: 96,
|
|
20
|
+
md: 56,
|
|
21
|
+
sm: 40,
|
|
22
|
+
xs: 20
|
|
23
|
+
};
|
|
10
24
|
function NetworkImage({
|
|
11
25
|
imageSrc,
|
|
12
26
|
imageHeaders,
|
|
13
27
|
disabled,
|
|
14
28
|
selected,
|
|
15
|
-
size = 'md'
|
|
29
|
+
size = 'md',
|
|
30
|
+
style,
|
|
31
|
+
borderColor,
|
|
32
|
+
borderWidth = 1
|
|
16
33
|
}) {
|
|
17
34
|
const Theme = (0, _useTheme.useTheme)();
|
|
18
|
-
const isLg = size === 'lg';
|
|
19
|
-
const svgWidth = isLg ? 96 : 56;
|
|
20
|
-
const svgHeight = isLg ? 96 : 56;
|
|
21
35
|
const svgStroke = selected ? Theme['accent-100'] : Theme['gray-glass-010'];
|
|
22
36
|
const opacity = disabled ? 0.5 : 1;
|
|
23
37
|
return /*#__PURE__*/React.createElement(_reactNativeSvg.Svg, {
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
-
stroke: svgStroke,
|
|
27
|
-
strokeWidth:
|
|
38
|
+
width: sizeToHeight[size],
|
|
39
|
+
height: sizeToHeight[size],
|
|
40
|
+
stroke: borderColor ?? svgStroke,
|
|
41
|
+
strokeWidth: borderWidth,
|
|
42
|
+
style: style
|
|
28
43
|
}, /*#__PURE__*/React.createElement(_reactNativeSvg.Defs, null, /*#__PURE__*/React.createElement(_reactNativeSvg.Pattern, {
|
|
29
|
-
id: "image-pattern"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width:
|
|
33
|
-
height: "1"
|
|
34
|
-
}, /*#__PURE__*/React.createElement(_reactNativeSvg.Image, {
|
|
35
|
-
height: svgHeight,
|
|
36
|
-
width: svgWidth,
|
|
37
|
-
x: "0",
|
|
38
|
-
y: "0",
|
|
44
|
+
id: "image-pattern"
|
|
45
|
+
}, imageSrc ? /*#__PURE__*/React.createElement(_reactNativeSvg.Image, {
|
|
46
|
+
height: sizeToHeight[size],
|
|
47
|
+
width: sizeToHeight[size],
|
|
39
48
|
opacity: opacity,
|
|
40
49
|
href: {
|
|
41
50
|
uri: imageSrc,
|
|
42
51
|
headers: imageHeaders
|
|
43
52
|
}
|
|
44
|
-
})
|
|
45
|
-
|
|
53
|
+
}) : /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center"
|
|
56
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
57
|
+
,
|
|
58
|
+
style: {
|
|
59
|
+
height: sizeToHeight[size],
|
|
60
|
+
width: sizeToHeight[size],
|
|
61
|
+
backgroundColor: 'transparent'
|
|
62
|
+
}
|
|
63
|
+
}, /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
64
|
+
name: "networkPlaceholder",
|
|
65
|
+
size: size,
|
|
66
|
+
color: "fg-200"
|
|
67
|
+
})))), !imageSrc && /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
68
|
+
d: sizeToPath[size],
|
|
69
|
+
opacity: opacity,
|
|
70
|
+
fill: Theme['gray-glass-005']
|
|
71
|
+
}), /*#__PURE__*/React.createElement(_reactNativeSvg.Path, {
|
|
72
|
+
d: sizeToPath[size],
|
|
46
73
|
opacity: opacity,
|
|
47
|
-
fill:
|
|
74
|
+
fill: "url(#image-pattern)"
|
|
48
75
|
}));
|
|
49
76
|
}
|
|
50
77
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeSvg","require","_useTheme","_styles","NetworkImage","imageSrc","imageHeaders","disabled","selected","size","
|
|
1
|
+
{"version":3,"names":["_reactNativeSvg","require","_useTheme","_wuiIcon","_wuiFlex","_styles","sizeToPath","lg","PathLg","md","PathNormal","sm","PathSmall","xs","PathXS","sizeToHeight","NetworkImage","imageSrc","imageHeaders","disabled","selected","size","style","borderColor","borderWidth","Theme","useTheme","svgStroke","opacity","React","createElement","Svg","width","height","stroke","strokeWidth","Defs","Pattern","id","Image","href","uri","headers","FlexView","alignItems","justifyContent","backgroundColor","Icon","name","color","Path","d","fill"],"sourceRoot":"../../../../src","sources":["composites/wui-network-image/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAaA,MAAMK,UAAU,GAAG;EACjBC,EAAE,EAAEC,cAAM;EACVC,EAAE,EAAEC,kBAAU;EACdC,EAAE,EAAEC,iBAAS;EACbC,EAAE,EAAEC;AACN,CAAC;AAED,MAAMC,YAAY,GAAG;EACnBR,EAAE,EAAE,EAAE;EACNE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AAK,EAAE;MACLW,MAAM,EAAElB,YAAY,CAACM,IAAI,CAAC;MAC1BW,KAAK,EAAEjB,YAAY,CAACM,IAAI,CAAC;MACzByB,eAAe,EAAE;IACnB;EAAE,gBAEFjB,KAAA,CAAAC,aAAA,CAAC3B,QAAA,CAAA4C,IAAI;IAACC,IAAI,EAAC,oBAAoB;IAAC3B,IAAI,EAAEA,IAAK;IAAC4B,KAAK,EAAC;EAAQ,CAAE,CACpD,CAEL,CACL,CAAC,EACN,CAAChC,QAAQ,iBAAIY,KAAA,CAAAC,aAAA,CAAC9B,eAAA,CAAAkD,IAAI;IAACC,CAAC,EAAE7C,UAAU,CAACe,IAAI,CAAE;IAACO,OAAO,EAAEA,OAAQ;IAACwB,IAAI,EAAE3B,KAAK,CAAC,gBAAgB;EAAE,CAAE,CAAC,eAC5FI,KAAA,CAAAC,aAAA,CAAC9B,eAAA,CAAAkD,IAAI;IAACC,CAAC,EAAE7C,UAAU,CAACe,IAAI,CAAE;IAACO,OAAO,EAAEA,OAAQ;IAACwB,IAAI,EAAC;EAAqB,CAAE,CACtE,CAAC;AAEV"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.PathNormal = exports.PathLg = void 0;
|
|
6
|
+
exports.PathXS = exports.PathSmall = exports.PathNormal = exports.PathLg = void 0;
|
|
7
7
|
const PathLg = exports.PathLg = 'M41.1429 4.01705C45.3861 1.56723 50.6139 1.56723 54.8572 4.01705L82.7121 20.0991C86.9553 22.5489 89.5692 27.0764 89.5692 31.976V64.1401C89.5692 69.0398 86.9553 73.5672 82.7121 76.0171L54.8571 92.0991C50.6139 94.5489 45.3861 94.5489 41.1429 92.0991L13.2879 76.0171C9.04471 73.5672 6.43079 69.0398 6.43079 64.1401V31.976C6.43079 27.0764 9.04471 22.5489 13.2879 20.0991L41.1429 4.01705Z';
|
|
8
8
|
const PathNormal = exports.PathNormal = 'M24.0002 2.34328C26.4754 0.914219 29.525 0.914219 32.0002 2.34328L48.2489 11.7245C50.7241 13.1535 52.2489 15.7946 52.2489 18.6527V37.4151C52.2489 40.2732 50.7241 42.9142 48.2489 44.3433L32.0002 53.7245C29.525 55.1535 26.4754 55.1535 24.0002 53.7245L7.75146 44.3433C5.27625 42.9142 3.75146 40.2732 3.75146 37.4151V18.6527C3.75146 15.7946 5.27626 13.1535 7.75146 11.7245L24.0002 2.34328Z';
|
|
9
|
+
const PathSmall = exports.PathSmall = 'M17.1428 1.67377C18.9108 0.653013 21.0891 0.653014 22.8571 1.67377L34.4633 8.37463C36.2313 9.39539 37.3205 11.2818 37.3205 13.3233V26.7251C37.3205 28.7666 36.2313 30.653 34.4633 31.6738L22.8571 38.3746C21.0891 39.3954 18.9108 39.3954 17.1428 38.3746L5.53659 31.6738C3.76858 30.653 2.67944 28.7666 2.67944 26.7251V13.3233C2.67944 11.2818 3.76858 9.39539 5.53659 8.37463L17.1428 1.67377Z';
|
|
10
|
+
const PathXS = exports.PathXS = 'M8.57153 0.836886C9.45553 0.326507 10.5447 0.326507 11.4287 0.836886L17.2318 4.18731C18.1158 4.69769 18.6604 5.64091 18.6604 6.66167V13.3625C18.6604 14.3833 18.1158 15.3265 17.2318 15.8369L11.4287 19.1873C10.5447 19.6977 9.45553 19.6977 8.57153 19.1873L2.76841 15.8369C1.88441 15.3265 1.33984 14.3833 1.33984 13.3625V6.66167C1.33984 5.64091 1.88441 4.69769 2.76841 4.18731L8.57153 0.836886Z';
|
|
9
11
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PathLg","exports","PathNormal"],"sourceRoot":"../../../../src","sources":["composites/wui-network-image/styles.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GACjB,iYAAiY;AAE5X,MAAME,UAAU,GAAAD,OAAA,CAAAC,UAAA,GACrB,mYAAmY"}
|
|
1
|
+
{"version":3,"names":["PathLg","exports","PathNormal","PathSmall","PathXS"],"sourceRoot":"../../../../src","sources":["composites/wui-network-image/styles.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GACjB,iYAAiY;AAE5X,MAAME,UAAU,GAAAD,OAAA,CAAAC,UAAA,GACrB,mYAAmY;AAE9X,MAAMC,SAAS,GAAAF,OAAA,CAAAE,SAAA,GACpB,mYAAmY;AAE9X,MAAMC,MAAM,GAAAH,OAAA,CAAAG,MAAA,GACjB,wYAAwY"}
|
|
@@ -75,8 +75,7 @@ function Otp({
|
|
|
75
75
|
inputRef: refArray[index],
|
|
76
76
|
onChangeText: text => _onChangeText(text, index),
|
|
77
77
|
onKeyPress: e => onKeyPress(e, index),
|
|
78
|
-
|
|
79
|
-
autoComplete: _reactNative.Platform.OS === 'android' ? 'sms-otp' : 'one-time-code'
|
|
78
|
+
autoComplete: "off"
|
|
80
79
|
})));
|
|
81
80
|
}
|
|
82
81
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_wuiInputNumeric","_styles","_interopRequireDefault","obj","__esModule","default","Otp","length","style","onChangeText","autoFocus","value","setValue","useState","refArray","useMemo","Array","from","map","createRef","_onChangeText","text","index","newValue","slice","split","focusInputField","join","dir","currentIndex","clear","newIndex","undefined","current","focus","onKeyPress","e","currentValue","key","nativeEvent","React","createElement","View","styles","container","_","InputNumeric","inputRef","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_wuiInputNumeric","_styles","_interopRequireDefault","obj","__esModule","default","Otp","length","style","onChangeText","autoFocus","value","setValue","useState","refArray","useMemo","Array","from","map","createRef","_onChangeText","text","index","newValue","slice","split","focusInputField","join","dir","currentIndex","clear","newIndex","undefined","current","focus","onKeyPress","e","currentValue","key","nativeEvent","React","createElement","View","styles","container","_","InputNumeric","inputRef","autoComplete"],"sourceRoot":"../../../../src","sources":["composites/wui-ot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o;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _wuiIcon = require("../../components/wui-icon");
|
|
9
|
+
var _wuiText = require("../../components/wui-text");
|
|
10
|
+
var _useTheme = require("../../hooks/useTheme");
|
|
11
|
+
var _wuiFlex = require("../../layout/wui-flex");
|
|
12
|
+
var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
13
|
+
function Promo({
|
|
14
|
+
text,
|
|
15
|
+
style,
|
|
16
|
+
onPress
|
|
17
|
+
}) {
|
|
18
|
+
const Theme = (0, _useTheme.useTheme)();
|
|
19
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
20
|
+
style: style,
|
|
21
|
+
onPress: onPress
|
|
22
|
+
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
justifyContent: "center",
|
|
25
|
+
flexDirection: "row",
|
|
26
|
+
padding: ['xs', 'xs', 'xs', 'm'],
|
|
27
|
+
style: [styles.container, {
|
|
28
|
+
backgroundColor: Theme['gray-glass-090']
|
|
29
|
+
}]
|
|
30
|
+
}, /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
31
|
+
variant: "small-600",
|
|
32
|
+
color: "bg-100"
|
|
33
|
+
}, text), /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
34
|
+
style: styles.icon,
|
|
35
|
+
name: "arrowRight",
|
|
36
|
+
color: "bg-100",
|
|
37
|
+
size: "xs"
|
|
38
|
+
})));
|
|
39
|
+
}
|
|
40
|
+
const styles = _reactNative.StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
borderRadius: _ThemeUtil.BorderRadius.full
|
|
43
|
+
},
|
|
44
|
+
icon: {
|
|
45
|
+
marginLeft: _ThemeUtil.Spacing['2xs']
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiIcon","_wuiText","_useTheme","_wuiFlex","_ThemeUtil","Promo","text","style","onPress","Theme","useTheme","React","createElement","Pressable","FlexView","alignItems","justifyContent","flexDirection","padding","styles","container","backgroundColor","Text","variant","color","Icon","icon","name","size","StyleSheet","create","borderRadius","BorderRadius","full","marginLeft","Spacing"],"sourceRoot":"../../../../src","sources":["composites/wui-promo/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAQO,SAASM,KAAKA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC;AAAoB,CAAC,EAAE;EAC1D,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAExB,oBACEC,KAAA,CAAAC,aAAA,CAACd,YAAA,CAAAe,SAAS;IAACN,KAAK,EAAEA,KAAM;IAACC,OAAO,EAAEA;EAAQ,gBACxCG,KAAA,CAAAC,aAAA,CAACT,QAAA,CAAAW,QAAQ;IACPC,UAAU,EAAC,QAAQ;IACnBC,cAAc,EAAC,QAAQ;IACvBC,aAAa,EAAC,KAAK;IACnBC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAE;IACjCX,KAAK,EAAE,CAACY,MAAM,CAACC,SAAS,EAAE;MAAEC,eAAe,EAAEZ,KAAK,CAAC,gBAAgB;IAAE,CAAC;EAAE,gBAExEE,KAAA,CAAAC,aAAA,CAACX,QAAA,CAAAqB,IAAI;IAACC,OAAO,EAAC,WAAW;IAACC,KAAK,EAAC;EAAQ,GACrClB,IACG,CAAC,eACPK,KAAA,CAAAC,aAAA,CAACZ,QAAA,CAAAyB,IAAI;IAAClB,KAAK,EAAEY,MAAM,CAACO,IAAK;IAACC,IAAI,EAAC,YAAY;IAACH,KAAK,EAAC,QAAQ;IAACI,IAAI,EAAC;EAAI,CAAE,CAC9D,CACD,CAAC;AAEhB;AAEA,MAAMT,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,YAAY,EAAEC,uBAAY,CAACC;EAC7B,CAAC;EACDP,IAAI,EAAE;IACJQ,UAAU,EAAEC,kBAAO,CAAC,KAAK;EAC3B;AACF,CAAC,CAAC"}
|
|
@@ -16,24 +16,25 @@ var _QRCodeUtil = require("../../utils/QRCodeUtil");
|
|
|
16
16
|
var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
17
17
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
const LABEL_HEIGHT = 18;
|
|
19
20
|
function QrCode({
|
|
20
21
|
size,
|
|
21
22
|
uri,
|
|
22
23
|
imageSrc,
|
|
23
|
-
testID
|
|
24
|
+
testID,
|
|
25
|
+
arenaClear,
|
|
26
|
+
icon,
|
|
27
|
+
style
|
|
24
28
|
}) {
|
|
25
29
|
const Theme = _ThemeUtil.LightTheme;
|
|
26
30
|
const containerPadding = _ThemeUtil.Spacing.l;
|
|
27
31
|
const qrSize = size - containerPadding * 2;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
return /*#__PURE__*/React.createElement(_wuiShimmer.Shimmer, {
|
|
31
|
-
width: size,
|
|
32
|
-
height: size,
|
|
33
|
-
borderRadius: _ThemeUtil.BorderRadius.l
|
|
34
|
-
});
|
|
35
|
-
};
|
|
32
|
+
const logoSize = arenaClear ? 0 : qrSize / 4;
|
|
33
|
+
const dots = (0, _react.useMemo)(() => uri ? _QRCodeUtil.QRCodeUtil.generate(uri, qrSize, logoSize) : [], [uri, qrSize, logoSize]);
|
|
36
34
|
const logoTemplate = () => {
|
|
35
|
+
if (arenaClear) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
37
38
|
if (imageSrc) {
|
|
38
39
|
return /*#__PURE__*/React.createElement(_wuiImage.Image, {
|
|
39
40
|
source: imageSrc,
|
|
@@ -45,7 +46,7 @@ function QrCode({
|
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
return /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
48
|
-
name:
|
|
49
|
+
name: icon ?? 'walletConnect',
|
|
49
50
|
color: "accent-100",
|
|
50
51
|
height: qrSize / 3.5,
|
|
51
52
|
width: qrSize / 3.5,
|
|
@@ -57,7 +58,7 @@ function QrCode({
|
|
|
57
58
|
width: size,
|
|
58
59
|
backgroundColor: Theme['bg-100'],
|
|
59
60
|
padding: containerPadding
|
|
60
|
-
}],
|
|
61
|
+
}, style],
|
|
61
62
|
testID: testID
|
|
62
63
|
}, /*#__PURE__*/React.createElement(_wuiFlex.FlexView, {
|
|
63
64
|
alignItems: "center",
|
|
@@ -68,10 +69,16 @@ function QrCode({
|
|
|
68
69
|
}, dots), logoTemplate()), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
69
70
|
variant: "small-500",
|
|
70
71
|
color: "fg-150",
|
|
71
|
-
style: _styles.default.label
|
|
72
|
+
style: [_styles.default.label, {
|
|
73
|
+
height: LABEL_HEIGHT
|
|
74
|
+
}]
|
|
72
75
|
}, "UX by", ' ', /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
73
76
|
variant: "small-500",
|
|
74
77
|
color: "inverse-000"
|
|
75
|
-
}, "Reown"))) :
|
|
78
|
+
}, "Reown"))) : /*#__PURE__*/React.createElement(_wuiShimmer.Shimmer, {
|
|
79
|
+
width: size,
|
|
80
|
+
height: size + LABEL_HEIGHT,
|
|
81
|
+
borderRadius: _ThemeUtil.BorderRadius.l
|
|
82
|
+
});
|
|
76
83
|
}
|
|
77
84
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeSvg","_interopRequireDefault","_wuiIcon","_wuiImage","_wuiShimmer","_wuiText","_wuiFlex","_QRCodeUtil","_ThemeUtil","_styles","obj","__esModule","default","QrCode","size","uri","imageSrc","testID","Theme","LightTheme","containerPadding","Spacing","l","qrSize","dots","useMemo","QRCodeUtil","generate","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeSvg","_interopRequireDefault","_wuiIcon","_wuiImage","_wuiShimmer","_wuiText","_wuiFlex","_QRCodeUtil","_ThemeUtil","_styles","obj","__esModule","default","LABEL_HEIGHT","QrCode","size","uri","imageSrc","testID","arenaClear","icon","style","Theme","LightTheme","containerPadding","Spacing","l","qrSize","logoSize","dots","useMemo","QRCodeUtil","generate","logoTemplate","React","createElement","Image","source","styles","height","width","borderRadius","Icon","name","color","View","container","backgroundColor","padding","FlexView","alignItems","justifyContent","Text","variant","label","Shimmer","BorderRadius"],"sourceRoot":"../../../../src","sources":["composites/wui-qr-code/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AAEA,IAAAW,OAAA,GAAAR,sBAAA,CAAAH,OAAA;AAA8B,SAAAG,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAY9B,MAAMG,YAAY,GAAG,EAAE;AAEhB,SAASC,MAAMA,CAAC;EAAEC,IAAI;EAAEC,GAAG;EAAEC,QAAQ;EAAEC,MAAM;EAAEC,UAAU;EAAEC,IAAI;EAAEC;AAAmB,CAAC,E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EAAEzB,IAAI;MAAEgC,eAAe,EAAEzB,KAAK,CAAC,QAAQ,CAAC;MAAE0B,OAAO,EAAExB;IAAiB,CAAC,EAC5EH,KAAK,CACL;IACFH,MAAM,EAAEA;EAAO,gBAEfgB,KAAA,CAAAC,aAAA,CAAC7B,QAAA,CAAA2C,QAAQ;IAACC,UAAU,EAAC,QAAQ;IAACC,cAAc,EAAC;EAAQ,gBACnDjB,KAAA,CAAAC,aAAA,CAACnC,eAAA,CAAAY,OAAG;IAAC2B,MAAM,EAAEZ,MAAO;IAACa,KAAK,EAAEb;EAAO,GAChCE,IACE,CAAC,EACLI,YAAY,CAAC,CACN,CAAC,eACXC,KAAA,CAAAC,aAAA,CAAC9B,QAAA,CAAA+C,IAAI;IAACC,OAAO,EAAC,WAAW;IAACT,KAAK,EAAC,QAAQ;IAACvB,KAAK,EAAE,CAACiB,eAAM,CAACgB,KAAK,EAAE;MAAEf,MAAM,EAAE1B;IAAa,CAAC;EAAE,GAAC,OACnF,EAAC,GAAG,eACTqB,KAAA,CAAAC,aAAA,CAAC9B,QAAA,CAAA+C,IAAI;IAACC,OAAO,EAAC,WAAW;IAACT,KAAK,EAAC;EAAa,GAAC,OAExC,CACF,CACF,CAAC,gBAEPV,KAAA,CAAAC,aAAA,CAAC/B,WAAA,CAAAmD,OAAO;IAACf,KAAK,EAAEzB,IAAK;IAACwB,MAAM,EAAExB,IAAI,GAAGF,YAAa;IAAC4B,YAAY,EAAEe,uBAAY,CAAC9B;EAAE,CAAE,CACnF;AACH"}
|
|
@@ -12,8 +12,7 @@ function SearchBar({
|
|
|
12
12
|
placeholder = 'Search wallet',
|
|
13
13
|
onSubmitEditing,
|
|
14
14
|
onChangeText,
|
|
15
|
-
inputStyle
|
|
16
|
-
testID
|
|
15
|
+
inputStyle
|
|
17
16
|
}) {
|
|
18
17
|
const [showClear, setShowClear] = (0, _react.useState)(false);
|
|
19
18
|
const inputRef = (0, _react.useRef)(null);
|
|
@@ -29,8 +28,7 @@ function SearchBar({
|
|
|
29
28
|
icon: "search",
|
|
30
29
|
inputStyle: inputStyle,
|
|
31
30
|
returnKeyType: "search",
|
|
32
|
-
disableFullscreenUI: true
|
|
33
|
-
testID: testID
|
|
31
|
+
disableFullscreenUI: true
|
|
34
32
|
}, showClear && /*#__PURE__*/React.createElement(_wuiInputElement.InputElement, {
|
|
35
33
|
icon: "close",
|
|
36
34
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_wuiInputElement","_wuiInputText","_ThemeUtil","SearchBar","placeholder","onSubmitEditing","onChangeText","inputStyle","
|
|
1
|
+
{"version":3,"names":["_react","require","_wuiInputElement","_wuiInputText","_ThemeUtil","SearchBar","placeholder","onSubmitEditing","onChangeText","inputStyle","showClear","setShowClear","useState","inputRef","useRef","handleChangeText","text","length","React","createElement","InputText","ref","icon","returnKeyType","disableFullscreenUI","InputElement","style","marginRight","Spacing","onPress","current","clear","focus"],"sourceRoot":"../../../../src","sources":["composites/wui-search-bar/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AASO,SAASI,SAASA,CAAC;EACxBC,WAAW,GAAG,eAAe;EAC7BC,eAAe;EACfC,YAAY;EACZC;AACc,CAAC,EAAE;EACjB,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EACjD,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAAY,IAAI,CAAC;EAExC,MAAMC,gBAAgB,GAAIC,IAAY,IAAK;IACzCL,YAAY,CAAC,CAAC,CAACK,IAAI,EAAEC,MAAM,CAAC;IAC5BT,YAAY,GAAGQ,IAAI,CAAC;EACtB,CAAC;EAED,oBACEE,KAAA,CAAAC,aAAA,CAAChB,aAAA,CAAAiB,SAAS;IACRC,GAAG,EAAER,QAAS;IACdP,WAAW,EAAEA,WAAY;IACzBE,YAAY,EAAEO,gBAAiB;IAC/BR,eAAe,EAAEA,eAAgB;IACjCe,IAAI,EAAC,QAAQ;IACbb,UAAU,EAAEA,UAAW;IACvBc,aAAa,EAAC,QAAQ;IACtBC,mBAAmB;EAAA,GAElBd,SAAS,iBACRQ,KAAA,CAAAC,aAAA,CAACjB,gBAAA,CAAAuB,YAAY;IACXH,IAAI,EAAC,OAAO;IACZI,KAAK,EAAE;MAAEC,WAAW,EAAEC,kBAAO,CAAC,KAAK;IAAE,CAAE;IACvCC,OAAO,EAAEA,CAAA,KAAM;MACbhB,QAAQ,CAACiB,OAAO,EAAEC,KAAK,CAAC,CAAC;MACzBlB,QAAQ,CAACiB,OAAO,EAAEE,KAAK,CAAC,CAAC;MACzBjB,gBAAgB,CAAC,EAAE,CAAC;IACtB;EAAE,CACH,CAEM,CAAC;AAEhB"}
|
|
@@ -18,6 +18,7 @@ function Snackbar({
|
|
|
18
18
|
}) {
|
|
19
19
|
const Theme = (0, _useTheme.useTheme)();
|
|
20
20
|
return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
21
|
+
pointerEvents: "none",
|
|
21
22
|
style: [_styles.default.container, {
|
|
22
23
|
backgroundColor: Theme['bg-175'],
|
|
23
24
|
borderColor: Theme['gray-glass-005']
|
|
@@ -30,7 +31,8 @@ function Snackbar({
|
|
|
30
31
|
}), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
31
32
|
variant: "paragraph-500",
|
|
32
33
|
color: "fg-100",
|
|
33
|
-
style: _styles.default.text
|
|
34
|
+
style: _styles.default.text,
|
|
35
|
+
testID: "wui-snackbar-message"
|
|
34
36
|
}, message));
|
|
35
37
|
}
|
|
36
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_wuiText","_useTheme","_wuiIconBox","_styles","_interopRequireDefault","obj","__esModule","default","Snackbar","message","iconColor","icon","style","Theme","useTheme","React","createElement","Animated","View","styles","container","backgroundColor","borderColor","IconBox","size","background","Text","variant","color","text"],"sourceRoot":"../../../../src","sources":["composites/wui-snackbar/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA8B,SAAAK,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AASvB,SAASG,QAAQA,CAAC;EAAEC,OAAO;EAAEC,SAAS;EAAEC,IAAI;EAAEC;AAAqB,CAAC,EAAE;EAC3E,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAExB,oBACEC,KAAA,CAAAC,aAAA,CAAClB,YAAA,CAAAmB,QAAQ,CAACC,IAAI;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_wuiText","_useTheme","_wuiIconBox","_styles","_interopRequireDefault","obj","__esModule","default","Snackbar","message","iconColor","icon","style","Theme","useTheme","React","createElement","Animated","View","pointerEvents","styles","container","backgroundColor","borderColor","IconBox","size","background","Text","variant","color","text","testID"],"sourceRoot":"../../../../src","sources":["composites/wui-snackbar/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA8B,SAAAK,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AASvB,SAASG,QAAQA,CAAC;EAAEC,OAAO;EAAEC,SAAS;EAAEC,IAAI;EAAEC;AAAqB,CAAC,EAAE;EAC3E,MAAMC,KAAK,GAAG,IAAAC,kBAAQ,EAAC,CAAC;EAExB,oBACEC,KAAA,CAAAC,aAAA,CAAClB,YAAA,CAAAmB,QAAQ,CAACC,IAAI;IACZC,aAAa,EAAC,MAAM;IACpBP,KAAK,EAAE,CACLQ,eAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAET,KAAK,CAAC,QAAQ,CAAC;MAAEU,WAAW,EAAEV,KAAK,CAAC,gBAAgB;IAAE,CAAC,EAC1ED,KAAK;EACL,gBAEFG,KAAA,CAAAC,aAAA,CAACd,WAAA,CAAAsB,OAAO;IAACb,IAAI,EAAEA,IAAK;IAACD,SAAS,EAAEA,SAAU;IAACe,IAAI,EAAC,IAAI;IAACC,UAAU;EAAA,CAAE,CAAC,eAClEX,KAAA,CAAAC,aAAA,CAAChB,QAAA,CAAA2B,IAAI;IACHC,OAAO,EAAC,eAAe;IACvBC,KAAK,EAAC,QAAQ;IACdjB,KAAK,EAAEQ,eAAM,CAACU,IAAK;IACnBC,MAAM,EAAC;EAAsB,GAE5BtB,OACG,CACO,CAAC;AAEpB"}
|
|
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
+
var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
8
9
|
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
9
10
|
container: {
|
|
10
11
|
height: 40,
|
|
11
12
|
flexDirection: 'row',
|
|
12
13
|
paddingHorizontal: 8,
|
|
13
|
-
borderRadius:
|
|
14
|
-
borderWidth:
|
|
14
|
+
borderRadius: _ThemeUtil.BorderRadius.full,
|
|
15
|
+
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
15
16
|
alignItems: 'center'
|
|
16
17
|
},
|
|
17
18
|
text: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","StyleSheet","create","container","height","flexDirection","paddingHorizontal","borderRadius","borderWidth","alignItems","text"],"sourceRoot":"../../../../src","sources":["composites/wui-snackbar/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","height","flexDirection","paddingHorizontal","borderRadius","BorderRadius","full","borderWidth","hairlineWidth","alignItems","text"],"sourceRoot":"../../../../src","sources":["composites/wui-snackbar/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAqD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtCC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBC,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAEC,uBAAY,CAACC,IAAI;IAC/BC,WAAW,EAAET,uBAAU,CAACU,aAAa;IACrCC,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,EAAE;IACJP,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC"}
|
|
@@ -13,11 +13,14 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function Tabs({
|
|
15
15
|
tabs,
|
|
16
|
-
onTabChange
|
|
16
|
+
onTabChange,
|
|
17
|
+
style
|
|
17
18
|
}) {
|
|
18
19
|
const Theme = (0, _useTheme.useTheme)();
|
|
19
20
|
const [activeTab, setActiveTab] = (0, _react.useState)(0);
|
|
20
21
|
const animatedPosition = (0, _react.useRef)(new _reactNative.Animated.Value(0));
|
|
22
|
+
const [viewWidth, setViewWidth] = (0, _react.useState)(1);
|
|
23
|
+
const tabWidth = Math.trunc(viewWidth / tabs.length) - 2;
|
|
21
24
|
const onTabPress = index => {
|
|
22
25
|
setActiveTab(index);
|
|
23
26
|
onTabChange(index);
|
|
@@ -29,25 +32,36 @@ function Tabs({
|
|
|
29
32
|
};
|
|
30
33
|
const markPosition = animatedPosition.current.interpolate({
|
|
31
34
|
inputRange: [0, tabs.length - 1],
|
|
32
|
-
outputRange: [0,
|
|
35
|
+
outputRange: [0, tabWidth * (tabs.length - 1)]
|
|
33
36
|
});
|
|
37
|
+
const onLayout = event => {
|
|
38
|
+
const {
|
|
39
|
+
width
|
|
40
|
+
} = event.nativeEvent.layout;
|
|
41
|
+
setViewWidth(width);
|
|
42
|
+
};
|
|
34
43
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
35
44
|
style: [_styles.default.container, {
|
|
36
45
|
backgroundColor: Theme['gray-glass-002']
|
|
37
|
-
}]
|
|
46
|
+
}, style],
|
|
47
|
+
onLayout: onLayout
|
|
38
48
|
}, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
39
49
|
style: [_styles.default.activeMark, {
|
|
40
50
|
backgroundColor: Theme['gray-glass-005'],
|
|
41
51
|
borderColor: Theme['gray-glass-005'],
|
|
42
|
-
left: markPosition
|
|
52
|
+
left: markPosition,
|
|
53
|
+
width: tabWidth
|
|
43
54
|
}]
|
|
44
55
|
}), tabs.map((option, index) => {
|
|
45
56
|
const isActive = index === activeTab;
|
|
57
|
+
const isString = typeof option === 'string';
|
|
46
58
|
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
47
59
|
onPress: () => onTabPress(index),
|
|
48
|
-
key: option.label,
|
|
49
|
-
style: _styles.default.tabItem
|
|
50
|
-
|
|
60
|
+
key: isString ? option : option.label,
|
|
61
|
+
style: [_styles.default.tabItem, {
|
|
62
|
+
width: tabWidth
|
|
63
|
+
}]
|
|
64
|
+
}, !isString && option.icon && /*#__PURE__*/React.createElement(_wuiIcon.Icon, {
|
|
51
65
|
name: option.icon,
|
|
52
66
|
size: "xs",
|
|
53
67
|
color: isActive ? 'fg-100' : 'fg-200',
|
|
@@ -55,7 +69,7 @@ function Tabs({
|
|
|
55
69
|
}), /*#__PURE__*/React.createElement(_wuiText.Text, {
|
|
56
70
|
variant: "small-600",
|
|
57
71
|
color: isActive ? 'fg-100' : 'fg-200'
|
|
58
|
-
}, option.label));
|
|
72
|
+
}, isString ? option : option.label));
|
|
59
73
|
}));
|
|
60
74
|
}
|
|
61
75
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_wuiIcon","_wuiText","_useTheme","_styles","_interopRequireDefault","obj","__esModule","default","Tabs","tabs","onTabChange","Theme","useTheme","activeTab","setActiveTab","useState","animatedPosition","useRef","Animated","Value","onTabPress","index","timing","current","toValue","duration","useNativeDriver","start","markPosition","interpolate","inputRange","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_wuiIcon","_wuiText","_useTheme","_styles","_interopRequireDefault","obj","__esModule","default","Tabs","tabs","onTabChange","style","Theme","useTheme","activeTab","setActiveTab","useState","animatedPosition","useRef","Animated","Value","viewWidth","setViewWidth","tabWidth","Math","trunc","length","onTabPress","index","timing","current","toValue","duration","useNativeDriver","start","markPosition","interpolate","inputRange","outputRange","onLayout","event","width","nativeEvent","layout","React","createElement","View","styles","container","backgroundColor","activeMark","borderColor","left","map","option","isActive","isString","Pressable","onPress","key","label","tabItem","icon","Icon","name","size","color","tabIcon","Text","variant"],"sourceRoot":"../../../../src","sources":["composites/wui-tabs/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA8B,SAAAM,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,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DvB,KAAA,CAAAC,aAAA,CAAC5C,QAAA,CAAAmE,IAAI;MAACC,OAAO,EAAC,WAAW;MAACH,KAAK,EAAEX,QAAQ,GAAG,QAAQ,GAAG;IAAS,GAC7DC,QAAQ,GAAGF,MAAM,GAAGA,MAAM,CAACM,KACxB,CACG,CAAC;EAEhB,CAAC,CACG,CAAC;AAEX"}
|
|
@@ -9,6 +9,7 @@ var _ThemeUtil = require("../../utils/ThemeUtil");
|
|
|
9
9
|
var _default = exports.default = _reactNative.StyleSheet.create({
|
|
10
10
|
container: {
|
|
11
11
|
height: 34,
|
|
12
|
+
width: '100%',
|
|
12
13
|
flexDirection: 'row',
|
|
13
14
|
alignItems: 'center',
|
|
14
15
|
paddingHorizontal: _ThemeUtil.Spacing['3xs'],
|
|
@@ -18,7 +19,6 @@ var _default = exports.default = _reactNative.StyleSheet.create({
|
|
|
18
19
|
flexDirection: 'row',
|
|
19
20
|
justifyContent: 'center',
|
|
20
21
|
alignItems: 'center',
|
|
21
|
-
width: 100,
|
|
22
22
|
paddingVertical: _ThemeUtil.Spacing['2xs']
|
|
23
23
|
},
|
|
24
24
|
tabIcon: {
|
|
@@ -27,8 +27,7 @@ var _default = exports.default = _reactNative.StyleSheet.create({
|
|
|
27
27
|
activeMark: {
|
|
28
28
|
position: 'absolute',
|
|
29
29
|
height: 28,
|
|
30
|
-
|
|
31
|
-
borderWidth: 1,
|
|
30
|
+
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
32
31
|
borderRadius: _ThemeUtil.BorderRadius['3xl'],
|
|
33
32
|
margin: _ThemeUtil.Spacing['3xs']
|
|
34
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","height","flexDirection","alignItems","paddingHorizontal","Spacing","borderRadius","BorderRadius","tabItem","justifyContent","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_ThemeUtil","_default","exports","default","StyleSheet","create","container","height","width","flexDirection","alignItems","paddingHorizontal","Spacing","borderRadius","BorderRadius","tabItem","justifyContent","paddingVertical","tabIcon","marginRight","activeMark","position","borderWidth","hairlineWidth","margin"],"sourceRoot":"../../../../src","sources":["composites/wui-tabs/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE/CC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAEC,kBAAO,CAAC,KAAK,CAAC;IACjCC,YAAY,EAAEC,uBAAY,CAAC,KAAK;EAClC,CAAC;EACDC,OAAO,EAAE;IACPN,aAAa,EAAE,KAAK;IACpBO,cAAc,EAAE,QAAQ;IACxBN,UAAU,EAAE,QAAQ;IACpBO,eAAe,EAAEL,kBAAO,CAAC,KAAK;EAChC,CAAC;EACDM,OAAO,EAAE;IACPC,WAAW,EAAEP,kBAAO,CAAC,KAAK;EAC5B,CAAC;EACDQ,UAAU,EAAE;IACVC,QAAQ,EAAE,UAAU;IACpBd,MAAM,EAAE,EAAE;IACVe,WAAW,EAAElB,uBAAU,CAACmB,aAAa;IACrCV,YAAY,EAAEC,uBAAY,CAAC,KAAK,CAAC;IACjCU,MAAM,EAAEZ,kBAAO,CAAC,KAAK;EACvB;AACF,CAAC,CAAC"}
|