@reown/appkit-ui-react-native 0.0.0-canary-20241010175718 → 0.0.0-develop-20241106142253

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.
Files changed (451) hide show
  1. package/lib/commonjs/assets/svg/ArrowBottomCircle.js +21 -0
  2. package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +1 -0
  3. package/lib/commonjs/assets/svg/Farcaster.js +28 -0
  4. package/lib/commonjs/assets/svg/Farcaster.js.map +1 -0
  5. package/lib/commonjs/assets/svg/FarcasterSquare.js +28 -0
  6. package/lib/commonjs/assets/svg/FarcasterSquare.js.map +1 -0
  7. package/lib/commonjs/assets/svg/{TwitterIcon.js → More.js} +16 -5
  8. package/lib/commonjs/assets/svg/More.js.map +1 -0
  9. package/lib/commonjs/assets/svg/Paperplane.js +21 -0
  10. package/lib/commonjs/assets/svg/Paperplane.js.map +1 -0
  11. package/lib/commonjs/assets/svg/WalletConnect.js +19 -1
  12. package/lib/commonjs/assets/svg/WalletConnect.js.map +1 -1
  13. package/lib/commonjs/assets/svg/{Twitter.js → X.js} +18 -28
  14. package/lib/commonjs/assets/svg/X.js.map +1 -0
  15. package/lib/commonjs/assets/visual/Google.js +59 -0
  16. package/lib/commonjs/assets/visual/Google.js.map +1 -0
  17. package/lib/commonjs/assets/visual/Lightbulb.js +58 -0
  18. package/lib/commonjs/assets/visual/Lightbulb.js.map +1 -0
  19. package/lib/commonjs/assets/visual/Pencil.js +81 -0
  20. package/lib/commonjs/assets/visual/Pencil.js.map +1 -0
  21. package/lib/commonjs/components/wui-card/styles.js +1 -1
  22. package/lib/commonjs/components/wui-card/styles.js.map +1 -1
  23. package/lib/commonjs/components/wui-icon/index.js +18 -7
  24. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  25. package/lib/commonjs/components/wui-lean-text/index.js +15 -0
  26. package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
  27. package/lib/commonjs/components/wui-lean-view/index.js +15 -0
  28. package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
  29. package/lib/commonjs/components/wui-text/index.js +2 -2
  30. package/lib/commonjs/components/wui-text/index.js.map +1 -1
  31. package/lib/commonjs/components/wui-visual/index.js +6 -0
  32. package/lib/commonjs/components/wui-visual/index.js.map +1 -1
  33. package/lib/commonjs/composites/wui-account-button/index.js +13 -7
  34. package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
  35. package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
  36. package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
  37. package/lib/commonjs/composites/wui-account-pill/index.js +74 -0
  38. package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
  39. package/lib/commonjs/composites/wui-account-pill/styles.js +28 -0
  40. package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
  41. package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
  42. package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
  43. package/lib/commonjs/composites/wui-balance/index.js +27 -0
  44. package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
  45. package/lib/commonjs/composites/wui-banner/index.js +36 -0
  46. package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
  47. package/lib/commonjs/composites/wui-banner/styles.js +21 -0
  48. package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
  49. package/lib/commonjs/composites/wui-button/index.js +3 -3
  50. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  51. package/lib/commonjs/composites/wui-button/styles.js +3 -3
  52. package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
  53. package/lib/commonjs/composites/wui-chip/index.js +11 -9
  54. package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
  55. package/lib/commonjs/composites/wui-chip/styles.js +3 -3
  56. package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
  57. package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
  58. package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
  59. package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
  60. package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
  61. package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
  62. package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
  63. package/lib/commonjs/composites/wui-list-item/index.js +10 -10
  64. package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
  65. package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
  66. package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
  67. package/lib/commonjs/composites/wui-list-social/index.js +54 -0
  68. package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
  69. package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
  70. package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
  71. package/lib/commonjs/composites/wui-list-token/index.js +78 -0
  72. package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
  73. package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
  74. package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
  75. package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
  76. package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
  77. package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
  78. package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
  79. package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
  80. package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
  81. package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
  82. package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
  83. package/lib/commonjs/composites/wui-logo/index.js +4 -2
  84. package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
  85. package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
  86. package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
  87. package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
  88. package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
  89. package/lib/commonjs/composites/wui-network-button/index.js +14 -10
  90. package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
  91. package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
  92. package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
  93. package/lib/commonjs/composites/wui-network-image/index.js +48 -21
  94. package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
  95. package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
  96. package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
  97. package/lib/commonjs/composites/wui-otp/index.js +1 -2
  98. package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
  99. package/lib/commonjs/composites/wui-promo/index.js +48 -0
  100. package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
  101. package/lib/commonjs/composites/wui-qr-code/index.js +16 -12
  102. package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
  103. package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
  104. package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
  105. package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
  106. package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
  107. package/lib/commonjs/composites/wui-tabs/index.js +22 -8
  108. package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
  109. package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
  110. package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
  111. package/lib/commonjs/composites/wui-token-button/index.js +37 -0
  112. package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
  113. package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
  114. package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
  115. package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
  116. package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
  117. package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
  118. package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
  119. package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
  120. package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
  121. package/lib/commonjs/index.js +70 -0
  122. package/lib/commonjs/index.js.map +1 -1
  123. package/lib/commonjs/layout/wui-flex/index.js +2 -2
  124. package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
  125. package/lib/commonjs/layout/wui-separator/index.js +4 -4
  126. package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
  127. package/lib/commonjs/utils/ThemeUtil.js +2 -1
  128. package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
  129. package/lib/commonjs/utils/TransactionUtil.js +139 -0
  130. package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
  131. package/lib/commonjs/utils/UiUtil.js +15 -0
  132. package/lib/commonjs/utils/UiUtil.js.map +1 -1
  133. package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
  134. package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
  135. package/lib/module/assets/svg/Farcaster.js +20 -0
  136. package/lib/module/assets/svg/Farcaster.js.map +1 -0
  137. package/lib/module/assets/svg/FarcasterSquare.js +20 -0
  138. package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
  139. package/lib/module/assets/svg/More.js +22 -0
  140. package/lib/module/assets/svg/More.js.map +1 -0
  141. package/lib/module/assets/svg/Paperplane.js +13 -0
  142. package/lib/module/assets/svg/Paperplane.js.map +1 -0
  143. package/lib/module/assets/svg/WalletConnect.js +18 -1
  144. package/lib/module/assets/svg/WalletConnect.js.map +1 -1
  145. package/lib/module/assets/svg/X.js +27 -0
  146. package/lib/module/assets/svg/X.js.map +1 -0
  147. package/lib/module/assets/visual/Google.js +51 -0
  148. package/lib/module/assets/visual/Google.js.map +1 -0
  149. package/lib/module/assets/visual/Lightbulb.js +50 -0
  150. package/lib/module/assets/visual/Lightbulb.js.map +1 -0
  151. package/lib/module/assets/visual/Pencil.js +73 -0
  152. package/lib/module/assets/visual/Pencil.js.map +1 -0
  153. package/lib/module/components/wui-card/styles.js +1 -1
  154. package/lib/module/components/wui-card/styles.js.map +1 -1
  155. package/lib/module/components/wui-icon/index.js +16 -7
  156. package/lib/module/components/wui-icon/index.js.map +1 -1
  157. package/lib/module/components/wui-lean-text/index.js +10 -0
  158. package/lib/module/components/wui-lean-text/index.js.map +1 -0
  159. package/lib/module/components/wui-lean-view/index.js +10 -0
  160. package/lib/module/components/wui-lean-view/index.js.map +1 -0
  161. package/lib/module/components/wui-text/index.js +2 -2
  162. package/lib/module/components/wui-text/index.js.map +1 -1
  163. package/lib/module/components/wui-visual/index.js +6 -0
  164. package/lib/module/components/wui-visual/index.js.map +1 -1
  165. package/lib/module/composites/wui-account-button/index.js +13 -7
  166. package/lib/module/composites/wui-account-button/index.js.map +1 -1
  167. package/lib/module/composites/wui-account-button/styles.js +6 -6
  168. package/lib/module/composites/wui-account-button/styles.js.map +1 -1
  169. package/lib/module/composites/wui-account-pill/index.js +67 -0
  170. package/lib/module/composites/wui-account-pill/index.js.map +1 -0
  171. package/lib/module/composites/wui-account-pill/styles.js +22 -0
  172. package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
  173. package/lib/module/composites/wui-avatar/styles.js +2 -1
  174. package/lib/module/composites/wui-avatar/styles.js.map +1 -1
  175. package/lib/module/composites/wui-balance/index.js +21 -0
  176. package/lib/module/composites/wui-balance/index.js.map +1 -0
  177. package/lib/module/composites/wui-banner/index.js +29 -0
  178. package/lib/module/composites/wui-banner/index.js.map +1 -0
  179. package/lib/module/composites/wui-banner/styles.js +15 -0
  180. package/lib/module/composites/wui-banner/styles.js.map +1 -0
  181. package/lib/module/composites/wui-button/index.js +3 -3
  182. package/lib/module/composites/wui-button/index.js.map +1 -1
  183. package/lib/module/composites/wui-button/styles.js +3 -3
  184. package/lib/module/composites/wui-button/styles.js.map +1 -1
  185. package/lib/module/composites/wui-chip/index.js +12 -10
  186. package/lib/module/composites/wui-chip/index.js.map +1 -1
  187. package/lib/module/composites/wui-chip/styles.js +3 -3
  188. package/lib/module/composites/wui-chip/styles.js.map +1 -1
  189. package/lib/module/composites/wui-compatible-network/index.js +52 -0
  190. package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
  191. package/lib/module/composites/wui-connect-button/styles.js +1 -1
  192. package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
  193. package/lib/module/composites/wui-input-text/styles.js +1 -1
  194. package/lib/module/composites/wui-input-text/styles.js.map +1 -1
  195. package/lib/module/composites/wui-list-item/index.js +10 -10
  196. package/lib/module/composites/wui-list-item/index.js.map +1 -1
  197. package/lib/module/composites/wui-list-item/styles.js +4 -3
  198. package/lib/module/composites/wui-list-item/styles.js.map +1 -1
  199. package/lib/module/composites/wui-list-social/index.js +47 -0
  200. package/lib/module/composites/wui-list-social/index.js.map +1 -0
  201. package/lib/module/composites/wui-list-social/styles.js +28 -0
  202. package/lib/module/composites/wui-list-social/styles.js.map +1 -0
  203. package/lib/module/composites/wui-list-token/index.js +71 -0
  204. package/lib/module/composites/wui-list-token/index.js.map +1 -0
  205. package/lib/module/composites/wui-list-token/styles.js +24 -0
  206. package/lib/module/composites/wui-list-token/styles.js.map +1 -0
  207. package/lib/module/composites/wui-list-transaction/index.js +57 -0
  208. package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
  209. package/lib/module/composites/wui-list-transaction/styles.js +10 -0
  210. package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
  211. package/lib/module/composites/wui-list-transaction/utils.js +79 -0
  212. package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
  213. package/lib/module/composites/wui-list-wallet/index.js +5 -4
  214. package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
  215. package/lib/module/composites/wui-logo/index.js +4 -2
  216. package/lib/module/composites/wui-logo/index.js.map +1 -1
  217. package/lib/module/composites/wui-logo-select/index.js +6 -3
  218. package/lib/module/composites/wui-logo-select/index.js.map +1 -1
  219. package/lib/module/composites/wui-logo-select/styles.js +3 -3
  220. package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
  221. package/lib/module/composites/wui-network-button/index.js +15 -11
  222. package/lib/module/composites/wui-network-button/index.js.map +1 -1
  223. package/lib/module/composites/wui-network-button/styles.js +5 -5
  224. package/lib/module/composites/wui-network-button/styles.js.map +1 -1
  225. package/lib/module/composites/wui-network-image/index.js +49 -22
  226. package/lib/module/composites/wui-network-image/index.js.map +1 -1
  227. package/lib/module/composites/wui-network-image/styles.js +2 -0
  228. package/lib/module/composites/wui-network-image/styles.js.map +1 -1
  229. package/lib/module/composites/wui-otp/index.js +2 -3
  230. package/lib/module/composites/wui-otp/index.js.map +1 -1
  231. package/lib/module/composites/wui-promo/index.js +42 -0
  232. package/lib/module/composites/wui-promo/index.js.map +1 -0
  233. package/lib/module/composites/wui-qr-code/index.js +16 -12
  234. package/lib/module/composites/wui-qr-code/index.js.map +1 -1
  235. package/lib/module/composites/wui-snackbar/index.js +1 -0
  236. package/lib/module/composites/wui-snackbar/index.js.map +1 -1
  237. package/lib/module/composites/wui-snackbar/styles.js +3 -2
  238. package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
  239. package/lib/module/composites/wui-tabs/index.js +22 -8
  240. package/lib/module/composites/wui-tabs/index.js.map +1 -1
  241. package/lib/module/composites/wui-tabs/styles.js +2 -3
  242. package/lib/module/composites/wui-tabs/styles.js.map +1 -1
  243. package/lib/module/composites/wui-token-button/index.js +30 -0
  244. package/lib/module/composites/wui-token-button/index.js.map +1 -0
  245. package/lib/module/composites/wui-token-button/styles.js +18 -0
  246. package/lib/module/composites/wui-token-button/styles.js.map +1 -0
  247. package/lib/module/composites/wui-transaction-visual/index.js +66 -0
  248. package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
  249. package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
  250. package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
  251. package/lib/module/composites/wui-wallet-image/styles.js +1 -1
  252. package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
  253. package/lib/module/index.js +10 -0
  254. package/lib/module/index.js.map +1 -1
  255. package/lib/module/layout/wui-flex/index.js +2 -2
  256. package/lib/module/layout/wui-flex/index.js.map +1 -1
  257. package/lib/module/layout/wui-separator/index.js +4 -4
  258. package/lib/module/layout/wui-separator/index.js.map +1 -1
  259. package/lib/module/utils/ThemeUtil.js +2 -1
  260. package/lib/module/utils/ThemeUtil.js.map +1 -1
  261. package/lib/module/utils/TransactionUtil.js +134 -0
  262. package/lib/module/utils/TransactionUtil.js.map +1 -0
  263. package/lib/module/utils/UiUtil.js +15 -0
  264. package/lib/module/utils/UiUtil.js.map +1 -1
  265. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
  266. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
  267. package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
  268. package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
  269. package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
  270. package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
  271. package/lib/typescript/assets/svg/More.d.ts +4 -0
  272. package/lib/typescript/assets/svg/More.d.ts.map +1 -0
  273. package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
  274. package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
  275. package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
  276. package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
  277. package/lib/typescript/assets/svg/X.d.ts +4 -0
  278. package/lib/typescript/assets/svg/X.d.ts.map +1 -0
  279. package/lib/typescript/assets/visual/Google.d.ts +4 -0
  280. package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
  281. package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
  282. package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
  283. package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
  284. package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
  285. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  286. package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
  287. package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
  288. package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
  289. package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
  290. package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
  291. package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
  292. package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
  293. package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
  294. package/lib/typescript/composites/wui-account-pill/index.d.ts +11 -0
  295. package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
  296. package/lib/typescript/composites/wui-account-pill/styles.d.ts +21 -0
  297. package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
  298. package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
  299. package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
  300. package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
  301. package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
  302. package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
  303. package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
  304. package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
  305. package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
  306. package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
  307. package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
  308. package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
  309. package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
  310. package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
  311. package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
  312. package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
  313. package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
  314. package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
  315. package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
  316. package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
  317. package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
  318. package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
  319. package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
  320. package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
  321. package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
  322. package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
  323. package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
  324. package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
  325. package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
  326. package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
  327. package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
  328. package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
  329. package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
  330. package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
  331. package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
  332. package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
  333. package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
  334. package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
  335. package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
  336. package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
  337. package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
  338. package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
  339. package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
  340. package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
  341. package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
  342. package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
  343. package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
  344. package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
  345. package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
  346. package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
  347. package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
  348. package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
  349. package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
  350. package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
  351. package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
  352. package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
  353. package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
  354. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
  355. package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
  356. package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
  357. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
  358. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
  359. package/lib/typescript/index.d.ts +10 -0
  360. package/lib/typescript/index.d.ts.map +1 -1
  361. package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
  362. package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
  363. package/lib/typescript/utils/ThemeUtil.d.ts +1 -0
  364. package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
  365. package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
  366. package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
  367. package/lib/typescript/utils/TypesUtil.d.ts +6 -5
  368. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  369. package/lib/typescript/utils/UiUtil.d.ts +1 -0
  370. package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
  371. package/package.json +4 -4
  372. package/readme.md +1 -1
  373. package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
  374. package/src/assets/svg/Farcaster.tsx +15 -0
  375. package/src/assets/svg/FarcasterSquare.tsx +15 -0
  376. package/src/assets/svg/More.tsx +16 -0
  377. package/src/assets/svg/Paperplane.tsx +12 -0
  378. package/src/assets/svg/WalletConnect.tsx +24 -1
  379. package/src/assets/svg/X.tsx +26 -0
  380. package/src/assets/visual/Google.tsx +43 -0
  381. package/src/assets/visual/Lightbulb.tsx +54 -0
  382. package/src/assets/visual/Pencil.tsx +80 -0
  383. package/src/components/wui-card/styles.ts +1 -1
  384. package/src/components/wui-icon/index.tsx +16 -7
  385. package/src/components/wui-lean-text/index.tsx +10 -0
  386. package/src/components/wui-lean-view/index.tsx +10 -0
  387. package/src/components/wui-text/index.tsx +4 -3
  388. package/src/components/wui-visual/index.tsx +6 -0
  389. package/src/composites/wui-account-button/index.tsx +17 -8
  390. package/src/composites/wui-account-button/styles.ts +6 -6
  391. package/src/composites/wui-account-pill/index.tsx +78 -0
  392. package/src/composites/wui-account-pill/styles.ts +22 -0
  393. package/src/composites/wui-avatar/styles.ts +2 -1
  394. package/src/composites/wui-balance/index.tsx +25 -0
  395. package/src/composites/wui-banner/index.tsx +28 -0
  396. package/src/composites/wui-banner/styles.ts +15 -0
  397. package/src/composites/wui-button/index.tsx +12 -10
  398. package/src/composites/wui-button/styles.ts +3 -3
  399. package/src/composites/wui-chip/index.tsx +14 -13
  400. package/src/composites/wui-chip/styles.ts +3 -3
  401. package/src/composites/wui-compatible-network/index.tsx +64 -0
  402. package/src/composites/wui-connect-button/styles.ts +1 -1
  403. package/src/composites/wui-input-text/styles.ts +1 -1
  404. package/src/composites/wui-list-item/index.tsx +15 -14
  405. package/src/composites/wui-list-item/styles.ts +4 -3
  406. package/src/composites/wui-list-social/index.tsx +65 -0
  407. package/src/composites/wui-list-social/styles.ts +28 -0
  408. package/src/composites/wui-list-token/index.tsx +83 -0
  409. package/src/composites/wui-list-token/styles.ts +24 -0
  410. package/src/composites/wui-list-transaction/index.tsx +65 -0
  411. package/src/composites/wui-list-transaction/styles.ts +10 -0
  412. package/src/composites/wui-list-transaction/utils.ts +83 -0
  413. package/src/composites/wui-list-wallet/index.tsx +7 -6
  414. package/src/composites/wui-logo/index.tsx +4 -2
  415. package/src/composites/wui-logo-select/index.tsx +7 -4
  416. package/src/composites/wui-logo-select/styles.ts +3 -3
  417. package/src/composites/wui-network-button/index.tsx +22 -15
  418. package/src/composites/wui-network-button/styles.ts +5 -5
  419. package/src/composites/wui-network-image/index.tsx +57 -21
  420. package/src/composites/wui-network-image/styles.ts +6 -0
  421. package/src/composites/wui-otp/index.tsx +2 -4
  422. package/src/composites/wui-promo/index.tsx +42 -0
  423. package/src/composites/wui-qr-code/index.tsx +18 -11
  424. package/src/composites/wui-snackbar/index.tsx +1 -0
  425. package/src/composites/wui-snackbar/styles.ts +3 -2
  426. package/src/composites/wui-tabs/index.tsx +33 -9
  427. package/src/composites/wui-tabs/styles.ts +2 -3
  428. package/src/composites/wui-token-button/index.tsx +29 -0
  429. package/src/composites/wui-token-button/styles.ts +18 -0
  430. package/src/composites/wui-transaction-visual/index.tsx +78 -0
  431. package/src/composites/wui-transaction-visual/styles.ts +36 -0
  432. package/src/composites/wui-wallet-image/styles.ts +1 -1
  433. package/src/index.ts +13 -0
  434. package/src/layout/wui-flex/index.tsx +3 -3
  435. package/src/layout/wui-separator/index.tsx +7 -4
  436. package/src/utils/ThemeUtil.ts +2 -1
  437. package/src/utils/TransactionUtil.ts +173 -0
  438. package/src/utils/TypesUtil.ts +58 -6
  439. package/src/utils/UiUtil.ts +18 -0
  440. package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
  441. package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
  442. package/lib/module/assets/svg/Twitter.js +0 -37
  443. package/lib/module/assets/svg/Twitter.js.map +0 -1
  444. package/lib/module/assets/svg/TwitterIcon.js +0 -11
  445. package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
  446. package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
  447. package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
  448. package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
  449. package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
  450. package/src/assets/svg/Twitter.tsx +0 -27
  451. package/src/assets/svg/TwitterIcon.tsx +0 -10
@@ -65,11 +65,11 @@ export default StyleSheet.create({
65
65
  paddingHorizontal: Spacing.xs,
66
66
  alignItems: 'center',
67
67
  borderRadius: BorderRadius.s,
68
- borderWidth: 1
68
+ borderWidth: StyleSheet.hairlineWidth
69
69
  },
70
70
  image: {
71
- borderRadius: 100,
72
- borderWidth: 1
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
+ });
@@ -51,7 +51,7 @@ export default StyleSheet.create({
51
51
  alignItems: 'center',
52
52
  justifyContent: 'center',
53
53
  borderRadius: BorderRadius.s,
54
- borderWidth: 1
54
+ borderWidth: StyleSheet.hairlineWidth
55
55
  },
56
56
  smButton: {
57
57
  height: 32
@@ -7,7 +7,7 @@ const baseStyle = {
7
7
  borderRadius: BorderRadius.xxs,
8
8
  alignItems: 'center',
9
9
  paddingHorizontal: Spacing.xs,
10
- borderWidth: 1
10
+ borderWidth: StyleSheet.hairlineWidth
11
11
  } as ViewStyle;
12
12
 
13
13
  export const outerBorderRadius = {
@@ -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
- iconVariant?: 'blue' | 'overlay';
17
- variant?: 'image' | 'icon';
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
- iconVariant = 'blue',
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 (variant === 'image' && imageSrc) {
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 (variant === 'icon' && icon) {
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[borderColor] }]}>
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="gray-glass-010"
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-150" style={styles.rightIcon} />;
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
  );
@@ -13,12 +13,13 @@ export default StyleSheet.create({
13
13
  content: {
14
14
  flexDirection: 'row',
15
15
  flexGrow: 1,
16
- paddingHorizontal: Spacing.s
16
+ paddingHorizontal: Spacing.s,
17
+ alignItems: 'center'
17
18
  },
18
19
  imageContainer: {
19
20
  width: 36,
20
21
  height: 36,
21
- borderRadius: 100,
22
+ borderRadius: BorderRadius.full,
22
23
  borderWidth: 2,
23
24
  alignItems: 'center',
24
25
  justifyContent: 'center'
@@ -26,7 +27,7 @@ export default StyleSheet.create({
26
27
  image: {
27
28
  width: 32,
28
29
  height: 32,
29
- borderRadius: 100
30
+ borderRadius: BorderRadius.full
30
31
  },
31
32
  disabledImage: {
32
33
  opacity: 0.4
@@ -0,0 +1,65 @@
1
+ import { View, Pressable, Animated, type StyleProp, type ViewStyle } from 'react-native';
2
+ import useAnimatedValue from '../../hooks/useAnimatedValue';
3
+ import { useTheme } from '../../hooks/useTheme';
4
+ import type { LogoType } from '../../utils/TypesUtil';
5
+
6
+ import styles from './styles';
7
+ import { Logo } from '../wui-logo';
8
+ import type { ReactNode } from 'react';
9
+
10
+ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
11
+
12
+ export interface ListSocialProps {
13
+ children?: ReactNode;
14
+ disabled?: boolean;
15
+ logo: LogoType;
16
+ onPress?: () => void;
17
+ style?: StyleProp<ViewStyle>;
18
+ testID?: string;
19
+ logoWidth?: number;
20
+ logoHeight?: number;
21
+ }
22
+
23
+ export function ListSocial({
24
+ logo,
25
+ children,
26
+ disabled,
27
+ onPress,
28
+ style,
29
+ testID,
30
+ logoHeight = 40,
31
+ logoWidth = 40
32
+ }: ListSocialProps) {
33
+ const Theme = useTheme();
34
+ const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
35
+ Theme['gray-glass-002'],
36
+ Theme['gray-glass-010']
37
+ );
38
+
39
+ return (
40
+ <AnimatedPressable
41
+ disabled={disabled}
42
+ style={[styles.container, { backgroundColor: animatedValue }, style]}
43
+ onPress={onPress}
44
+ onPressIn={setEndValue}
45
+ onPressOut={setStartValue}
46
+ testID={testID}
47
+ >
48
+ <View
49
+ style={[
50
+ styles.border,
51
+ { height: logoHeight + 1, width: logoWidth + 1, borderColor: Theme['gray-glass-005'] }
52
+ ]}
53
+ >
54
+ <Logo
55
+ logo={logo}
56
+ style={disabled && styles.disabledLogo}
57
+ width={logoWidth}
58
+ height={logoHeight}
59
+ />
60
+ </View>
61
+ {children}
62
+ <View style={styles.rightPlaceholder} />
63
+ </AnimatedPressable>
64
+ );
65
+ }
@@ -0,0 +1,28 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
3
+
4
+ export default StyleSheet.create({
5
+ container: {
6
+ flexDirection: 'row',
7
+ height: 56,
8
+ width: '100%',
9
+ padding: Spacing.s,
10
+ alignItems: 'center',
11
+ justifyContent: 'space-between',
12
+ borderRadius: BorderRadius.s
13
+ },
14
+ rightPlaceholder: {
15
+ width: 40,
16
+ height: 40,
17
+ borderRadius: 100
18
+ },
19
+ disabledLogo: {
20
+ opacity: 0.4
21
+ },
22
+ border: {
23
+ borderRadius: BorderRadius.full,
24
+ borderWidth: 2,
25
+ alignItems: 'center',
26
+ justifyContent: 'center'
27
+ }
28
+ });
@@ -0,0 +1,83 @@
1
+ import { Pressable } from 'react-native';
2
+ import { Icon } from '../../components/wui-icon';
3
+ import { Image } from '../../components/wui-image';
4
+ import { Text } from '../../components/wui-text';
5
+ import { useTheme } from '../../hooks/useTheme';
6
+ import { FlexView } from '../../layout/wui-flex';
7
+ import { UiUtil } from '../../utils/UiUtil';
8
+ import styles from './styles';
9
+
10
+ export interface ListTokenProps {
11
+ imageSrc: string;
12
+ networkSrc?: string;
13
+ name: string;
14
+ value?: number;
15
+ amount?: string;
16
+ currency: string;
17
+ onPress?: () => void;
18
+ }
19
+
20
+ export function ListToken({
21
+ imageSrc,
22
+ networkSrc,
23
+ name,
24
+ value,
25
+ amount,
26
+ currency,
27
+ onPress
28
+ }: ListTokenProps) {
29
+ const Theme = useTheme();
30
+
31
+ return (
32
+ <Pressable onPress={onPress}>
33
+ <FlexView
34
+ flexDirection="row"
35
+ justifyContent="space-between"
36
+ alignItems="center"
37
+ padding={['2xs', 'm', '2xs', 'xs']}
38
+ >
39
+ <FlexView flexDirection="row" alignItems="center">
40
+ {imageSrc ? (
41
+ <Image
42
+ source={imageSrc}
43
+ style={[styles.image, { backgroundColor: Theme['gray-glass-005'] }]}
44
+ />
45
+ ) : (
46
+ <FlexView
47
+ style={[styles.image, { backgroundColor: Theme['gray-glass-005'] }]}
48
+ alignItems="center"
49
+ justifyContent="center"
50
+ >
51
+ <Icon name="coinPlaceholder" size="lg" color="fg-200" />
52
+ </FlexView>
53
+ )}
54
+ <FlexView
55
+ alignItems="center"
56
+ justifyContent="center"
57
+ style={[
58
+ styles.networkImageContainer,
59
+ { borderColor: Theme['bg-100'], backgroundColor: Theme['bg-200'] }
60
+ ]}
61
+ >
62
+ {networkSrc ? (
63
+ <Image source={networkSrc} style={styles.networkImage} />
64
+ ) : (
65
+ <Icon name="networkPlaceholder" size="xxs" color="fg-200" />
66
+ )}
67
+ </FlexView>
68
+ <FlexView padding={['0', 's', '0', 's']}>
69
+ <Text color="fg-100" variant="paragraph-500">
70
+ {name}
71
+ </Text>
72
+ <Text variant="small-400" color="fg-200">
73
+ {UiUtil.formatNumberToLocalString(amount, 4)} {currency}
74
+ </Text>
75
+ </FlexView>
76
+ </FlexView>
77
+ <Text color="fg-100" variant="paragraph-500">
78
+ ${value?.toFixed(2) ?? '0.00'}
79
+ </Text>
80
+ </FlexView>
81
+ </Pressable>
82
+ );
83
+ }
@@ -0,0 +1,24 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { BorderRadius, WalletImageSize } from '../../utils/ThemeUtil';
3
+
4
+ export default StyleSheet.create({
5
+ image: {
6
+ height: WalletImageSize.sm,
7
+ width: WalletImageSize.sm,
8
+ borderRadius: BorderRadius.full
9
+ },
10
+ networkImageContainer: {
11
+ position: 'absolute',
12
+ bottom: -2,
13
+ left: 24,
14
+ borderWidth: 2,
15
+ borderRadius: BorderRadius.full,
16
+ width: 18,
17
+ height: 18
18
+ },
19
+ networkImage: {
20
+ width: 14,
21
+ height: 14,
22
+ borderRadius: BorderRadius.full
23
+ }
24
+ });
@@ -0,0 +1,65 @@
1
+ import { type TransactionImage, type TransactionStatus } from '@reown/appkit-common-react-native';
2
+
3
+ import type { TransactionType } from '../../utils/TypesUtil';
4
+ import { Text } from '../../components/wui-text';
5
+ import { FlexView } from '../../layout/wui-flex';
6
+ import { IconBox } from '../wui-icon-box';
7
+ import { TransactionVisual } from '../wui-transaction-visual';
8
+ import { getIcon, getTypeLabel, getIconColor } from './utils';
9
+ import styles from './styles';
10
+ import type { StyleProp, ViewStyle } from 'react-native';
11
+
12
+ export interface ListTransactionProps {
13
+ date: string;
14
+ status?: TransactionStatus;
15
+ type?: TransactionType;
16
+ descriptions?: string[];
17
+ images?: TransactionImage[];
18
+ networkSrc?: string;
19
+ style?: StyleProp<ViewStyle>;
20
+ isAllNFT?: boolean;
21
+ }
22
+
23
+ export function ListTransaction({
24
+ date,
25
+ type,
26
+ descriptions,
27
+ images,
28
+ networkSrc,
29
+ style,
30
+ isAllNFT,
31
+ status
32
+ }: ListTransactionProps) {
33
+ const joinSymbol = type === 'trade' ? ' → ' : ' - ';
34
+
35
+ return (
36
+ <FlexView flexDirection="row" alignItems="center" style={style}>
37
+ <TransactionVisual images={images} networkSrc={networkSrc} isAllNFT={isAllNFT} />
38
+ <FlexView flexDirection="row" alignItems="center" style={styles.middleContainer}>
39
+ <FlexView justifyContent="center" alignItems="flex-start">
40
+ <FlexView flexDirection="row" alignItems="center">
41
+ {type && (
42
+ <IconBox
43
+ icon={getIcon(type)}
44
+ size="sm"
45
+ iconColor={getIconColor(status)}
46
+ background
47
+ border
48
+ borderColor="bg-100"
49
+ />
50
+ )}
51
+ <Text variant="paragraph-500" color="fg-100">
52
+ {getTypeLabel(type)}
53
+ </Text>
54
+ </FlexView>
55
+ <Text variant="small-400" color="fg-200" numberOfLines={1} ellipsizeMode="tail">
56
+ {descriptions?.join(joinSymbol)}
57
+ </Text>
58
+ </FlexView>
59
+ </FlexView>
60
+ <Text variant="micro-700" color="fg-300" style={styles.date}>
61
+ {date}
62
+ </Text>
63
+ </FlexView>
64
+ );
65
+ }
@@ -0,0 +1,10 @@
1
+ import { StyleSheet } from 'react-native';
2
+
3
+ export default StyleSheet.create({
4
+ middleContainer: {
5
+ flex: 1
6
+ },
7
+ date: {
8
+ textTransform: 'uppercase'
9
+ }
10
+ });
@@ -0,0 +1,83 @@
1
+ import type { TransactionStatus } from '@reown/appkit-common-react-native';
2
+ import type { IconType, TransactionType } from '../../utils/TypesUtil';
3
+
4
+ export const getIcon = (type: TransactionType): IconType => {
5
+ switch (type) {
6
+ case 'approve':
7
+ case 'execute':
8
+ return 'checkmark';
9
+ case 'repay':
10
+ case 'send':
11
+ case 'stake':
12
+ case 'withdraw':
13
+ return 'arrowTop';
14
+ case 'burn':
15
+ case 'cancel':
16
+ return 'close';
17
+ case 'trade':
18
+ return 'swapHorizontal';
19
+ case 'deploy':
20
+ return 'arrowRight';
21
+ default:
22
+ return 'arrowBottom';
23
+ }
24
+ };
25
+
26
+ //Utils
27
+ export const getIconColor = (status?: TransactionStatus) => {
28
+ switch (status) {
29
+ case 'confirmed':
30
+ return 'success-100';
31
+ case 'failed':
32
+ return 'error-100';
33
+ case 'pending':
34
+ return 'fg-200';
35
+ default:
36
+ return 'fg-200';
37
+ }
38
+ };
39
+
40
+ export const getTypeLabel = (type?: TransactionType) => {
41
+ if (!type) {
42
+ return 'Unknown';
43
+ }
44
+
45
+ switch (type) {
46
+ case 'approve':
47
+ return 'Approved';
48
+ case 'bought':
49
+ return 'Bought';
50
+ case 'borrow':
51
+ return 'Borrowed';
52
+ case 'burn':
53
+ return 'Burnt';
54
+ case 'cancel':
55
+ return 'Canceled';
56
+ case 'claim':
57
+ return 'Claimed';
58
+ case 'deploy':
59
+ return 'Deployed';
60
+ case 'deposit':
61
+ return 'Deposited';
62
+ case 'execute':
63
+ return 'Executed';
64
+ case 'mint':
65
+ return 'Minted';
66
+ case 'receive':
67
+ return 'Received';
68
+ case 'repay':
69
+ return 'Repaid';
70
+ case 'send':
71
+ return 'Sent';
72
+ case 'stake':
73
+ return 'Staked';
74
+ case 'trade':
75
+ return 'Swapped';
76
+ case 'unstake':
77
+ return 'Unstaked';
78
+ case 'withdraw':
79
+ return 'Withdrawn';
80
+ default:
81
+ return 'Unknown';
82
+ }
83
+ };
@@ -1,4 +1,4 @@
1
- import { Animated, Pressable, View, type StyleProp, type ViewStyle } from 'react-native';
1
+ import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
2
2
  import { Text } from '../../components/wui-text';
3
3
  import useAnimatedValue from '../../hooks/useAnimatedValue';
4
4
  import { useTheme } from '../../hooks/useTheme';
@@ -6,9 +6,10 @@ import type { IconType, TagType } from '../../utils/TypesUtil';
6
6
  import { Tag } from '../wui-tag';
7
7
  import { WalletImage } from '../wui-wallet-image';
8
8
  import { Icon } from '../../components/wui-icon';
9
+ import { LeanView } from '../../components/wui-lean-view';
10
+ import { IconBox } from '../wui-icon-box';
9
11
 
10
12
  import styles from './styles';
11
- import { IconBox } from '../wui-icon-box';
12
13
 
13
14
  const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
14
15
 
@@ -67,7 +68,7 @@ export function ListWallet({
67
68
 
68
69
  function imageTemplate() {
69
70
  return (
70
- <View>
71
+ <LeanView>
71
72
  <WalletImage
72
73
  style={[styles.image, disabled && styles.imageDisabled]}
73
74
  imageSrc={imageSrc}
@@ -76,7 +77,7 @@ export function ListWallet({
76
77
  size="sm"
77
78
  />
78
79
  {templateInstalled()}
79
- </View>
80
+ </LeanView>
80
81
  );
81
82
  }
82
83
 
@@ -116,12 +117,12 @@ export function ListWallet({
116
117
  onPressOut={setStartValue}
117
118
  testID={testID}
118
119
  >
119
- <View style={styles.leftSide}>
120
+ <LeanView style={styles.leftSide}>
120
121
  {imageTemplate()}
121
122
  <Text variant="paragraph-500" style={styles.name} color={disabled ? 'fg-300' : 'fg-100'}>
122
123
  {name}
123
124
  </Text>
124
- </View>
125
+ </LeanView>
125
126
  {iconTemplate()}
126
127
  </AnimatedPressable>
127
128
  );
@@ -6,9 +6,11 @@ import type { LogoType } from '../../utils/TypesUtil';
6
6
  export interface LogoProps {
7
7
  logo: LogoType;
8
8
  disabled?: boolean;
9
+ height?: number;
10
+ width?: number;
9
11
  style?: SvgProps['style'];
10
12
  }
11
13
 
12
- export function Logo({ logo, style }: LogoProps) {
13
- return <Icon width={40} height={40} name={logo} style={style} />;
14
+ export function Logo({ width = 40, height = 40, logo, style }: LogoProps) {
15
+ return <Icon width={width} height={height} name={logo} style={style} />;
14
16
  }
@@ -1,4 +1,4 @@
1
- import { Animated, Pressable } from 'react-native';
1
+ import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
2
2
  import useAnimatedValue from '../../hooks/useAnimatedValue';
3
3
  import { useTheme } from '../../hooks/useTheme';
4
4
  import type { LogoType } from '../../utils/TypesUtil';
@@ -10,20 +10,23 @@ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
10
10
  export interface LogoSelectProps {
11
11
  logo: LogoType;
12
12
  disabled?: boolean;
13
+ style?: StyleProp<ViewStyle>;
14
+ onPress?: () => void;
13
15
  }
14
16
 
15
- export function LogoSelect({ logo, disabled }: LogoSelectProps) {
17
+ export function LogoSelect({ logo, disabled, style, onPress }: LogoSelectProps) {
16
18
  const Theme = useTheme();
17
19
  const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
18
- Theme['gray-glass-005'],
20
+ Theme['gray-glass-002'],
19
21
  Theme['gray-glass-010']
20
22
  );
21
23
 
22
24
  return (
23
25
  <AnimatedPressable
26
+ onPress={onPress}
24
27
  onPressIn={setEndValue}
25
28
  onPressOut={setStartValue}
26
- style={[styles.box, { backgroundColor: animatedValue }]}
29
+ style={[styles.box, { backgroundColor: animatedValue }, style]}
27
30
  disabled={disabled}
28
31
  >
29
32
  <Logo logo={logo} style={disabled && styles.disabled} />