@reown/appkit-ui-react-native 0.0.0-fix-email-login-20241010173711 → 0.0.0-fix-fetch-error-improvements-20241114122508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) 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/index.js +1 -1
  22. package/lib/commonjs/components/wui-card/styles.js +1 -1
  23. package/lib/commonjs/components/wui-card/styles.js.map +1 -1
  24. package/lib/commonjs/components/wui-icon/index.js +18 -7
  25. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  26. package/lib/commonjs/components/wui-lean-text/index.js +15 -0
  27. package/lib/commonjs/components/wui-lean-text/index.js.map +1 -0
  28. package/lib/commonjs/components/wui-lean-view/index.js +15 -0
  29. package/lib/commonjs/components/wui-lean-view/index.js.map +1 -0
  30. package/lib/commonjs/components/wui-text/index.js +2 -2
  31. package/lib/commonjs/components/wui-text/index.js.map +1 -1
  32. package/lib/commonjs/components/wui-visual/index.js +6 -0
  33. package/lib/commonjs/components/wui-visual/index.js.map +1 -1
  34. package/lib/commonjs/composites/wui-account-button/index.js +13 -7
  35. package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
  36. package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
  37. package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
  38. package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
  39. package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
  40. package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
  41. package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
  42. package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
  43. package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
  44. package/lib/commonjs/composites/wui-balance/index.js +27 -0
  45. package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
  46. package/lib/commonjs/composites/wui-banner/index.js +36 -0
  47. package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
  48. package/lib/commonjs/composites/wui-banner/styles.js +21 -0
  49. package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
  50. package/lib/commonjs/composites/wui-button/index.js +3 -3
  51. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  52. package/lib/commonjs/composites/wui-button/styles.js +3 -3
  53. package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
  54. package/lib/commonjs/composites/wui-chip/index.js +11 -9
  55. package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
  56. package/lib/commonjs/composites/wui-chip/styles.js +3 -3
  57. package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
  58. package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
  59. package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
  60. package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
  61. package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
  62. package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
  63. package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
  64. package/lib/commonjs/composites/wui-input-text/styles.js +1 -1
  65. package/lib/commonjs/composites/wui-input-text/styles.js.map +1 -1
  66. package/lib/commonjs/composites/wui-list-item/index.js +10 -10
  67. package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
  68. package/lib/commonjs/composites/wui-list-item/styles.js +4 -3
  69. package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
  70. package/lib/commonjs/composites/wui-list-social/index.js +54 -0
  71. package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
  72. package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
  73. package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
  74. package/lib/commonjs/composites/wui-list-token/index.js +78 -0
  75. package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
  76. package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
  77. package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
  78. package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
  79. package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
  80. package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
  81. package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
  82. package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
  83. package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
  84. package/lib/commonjs/composites/wui-list-wallet/index.js +4 -3
  85. package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
  86. package/lib/commonjs/composites/wui-logo/index.js +4 -2
  87. package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
  88. package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
  89. package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
  90. package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
  91. package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
  92. package/lib/commonjs/composites/wui-network-button/index.js +14 -10
  93. package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
  94. package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
  95. package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
  96. package/lib/commonjs/composites/wui-network-image/index.js +48 -21
  97. package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
  98. package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
  99. package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
  100. package/lib/commonjs/composites/wui-otp/index.js +1 -2
  101. package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
  102. package/lib/commonjs/composites/wui-promo/index.js +48 -0
  103. package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
  104. package/lib/commonjs/composites/wui-qr-code/index.js +16 -12
  105. package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
  106. package/lib/commonjs/composites/wui-snackbar/index.js +1 -0
  107. package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
  108. package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
  109. package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
  110. package/lib/commonjs/composites/wui-tabs/index.js +22 -8
  111. package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
  112. package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
  113. package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
  114. package/lib/commonjs/composites/wui-token-button/index.js +37 -0
  115. package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
  116. package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
  117. package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
  118. package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
  119. package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
  120. package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
  121. package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
  122. package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
  123. package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
  124. package/lib/commonjs/index.js +70 -0
  125. package/lib/commonjs/index.js.map +1 -1
  126. package/lib/commonjs/layout/wui-flex/index.js +2 -2
  127. package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
  128. package/lib/commonjs/layout/wui-separator/index.js +4 -4
  129. package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
  130. package/lib/commonjs/utils/ThemeUtil.js +4 -2
  131. package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
  132. package/lib/commonjs/utils/TransactionUtil.js +139 -0
  133. package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
  134. package/lib/commonjs/utils/UiUtil.js +15 -0
  135. package/lib/commonjs/utils/UiUtil.js.map +1 -1
  136. package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
  137. package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
  138. package/lib/module/assets/svg/Farcaster.js +20 -0
  139. package/lib/module/assets/svg/Farcaster.js.map +1 -0
  140. package/lib/module/assets/svg/FarcasterSquare.js +20 -0
  141. package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
  142. package/lib/module/assets/svg/More.js +22 -0
  143. package/lib/module/assets/svg/More.js.map +1 -0
  144. package/lib/module/assets/svg/Paperplane.js +13 -0
  145. package/lib/module/assets/svg/Paperplane.js.map +1 -0
  146. package/lib/module/assets/svg/WalletConnect.js +18 -1
  147. package/lib/module/assets/svg/WalletConnect.js.map +1 -1
  148. package/lib/module/assets/svg/X.js +27 -0
  149. package/lib/module/assets/svg/X.js.map +1 -0
  150. package/lib/module/assets/visual/Google.js +51 -0
  151. package/lib/module/assets/visual/Google.js.map +1 -0
  152. package/lib/module/assets/visual/Lightbulb.js +50 -0
  153. package/lib/module/assets/visual/Lightbulb.js.map +1 -0
  154. package/lib/module/assets/visual/Pencil.js +73 -0
  155. package/lib/module/assets/visual/Pencil.js.map +1 -0
  156. package/lib/module/components/wui-card/index.js +1 -1
  157. package/lib/module/components/wui-card/styles.js +1 -1
  158. package/lib/module/components/wui-card/styles.js.map +1 -1
  159. package/lib/module/components/wui-icon/index.js +16 -7
  160. package/lib/module/components/wui-icon/index.js.map +1 -1
  161. package/lib/module/components/wui-lean-text/index.js +10 -0
  162. package/lib/module/components/wui-lean-text/index.js.map +1 -0
  163. package/lib/module/components/wui-lean-view/index.js +10 -0
  164. package/lib/module/components/wui-lean-view/index.js.map +1 -0
  165. package/lib/module/components/wui-text/index.js +2 -2
  166. package/lib/module/components/wui-text/index.js.map +1 -1
  167. package/lib/module/components/wui-visual/index.js +6 -0
  168. package/lib/module/components/wui-visual/index.js.map +1 -1
  169. package/lib/module/composites/wui-account-button/index.js +13 -7
  170. package/lib/module/composites/wui-account-button/index.js.map +1 -1
  171. package/lib/module/composites/wui-account-button/styles.js +6 -6
  172. package/lib/module/composites/wui-account-button/styles.js.map +1 -1
  173. package/lib/module/composites/wui-account-pill/index.js +60 -0
  174. package/lib/module/composites/wui-account-pill/index.js.map +1 -0
  175. package/lib/module/composites/wui-account-pill/styles.js +23 -0
  176. package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
  177. package/lib/module/composites/wui-avatar/styles.js +2 -1
  178. package/lib/module/composites/wui-avatar/styles.js.map +1 -1
  179. package/lib/module/composites/wui-balance/index.js +21 -0
  180. package/lib/module/composites/wui-balance/index.js.map +1 -0
  181. package/lib/module/composites/wui-banner/index.js +29 -0
  182. package/lib/module/composites/wui-banner/index.js.map +1 -0
  183. package/lib/module/composites/wui-banner/styles.js +15 -0
  184. package/lib/module/composites/wui-banner/styles.js.map +1 -0
  185. package/lib/module/composites/wui-button/index.js +3 -3
  186. package/lib/module/composites/wui-button/index.js.map +1 -1
  187. package/lib/module/composites/wui-button/styles.js +3 -3
  188. package/lib/module/composites/wui-button/styles.js.map +1 -1
  189. package/lib/module/composites/wui-chip/index.js +12 -10
  190. package/lib/module/composites/wui-chip/index.js.map +1 -1
  191. package/lib/module/composites/wui-chip/styles.js +3 -3
  192. package/lib/module/composites/wui-chip/styles.js.map +1 -1
  193. package/lib/module/composites/wui-compatible-network/index.js +52 -0
  194. package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
  195. package/lib/module/composites/wui-connect-button/styles.js +1 -1
  196. package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
  197. package/lib/module/composites/wui-icon-box/index.js +17 -1
  198. package/lib/module/composites/wui-icon-box/index.js.map +1 -1
  199. package/lib/module/composites/wui-input-text/styles.js +1 -1
  200. package/lib/module/composites/wui-input-text/styles.js.map +1 -1
  201. package/lib/module/composites/wui-list-item/index.js +10 -10
  202. package/lib/module/composites/wui-list-item/index.js.map +1 -1
  203. package/lib/module/composites/wui-list-item/styles.js +4 -3
  204. package/lib/module/composites/wui-list-item/styles.js.map +1 -1
  205. package/lib/module/composites/wui-list-social/index.js +47 -0
  206. package/lib/module/composites/wui-list-social/index.js.map +1 -0
  207. package/lib/module/composites/wui-list-social/styles.js +28 -0
  208. package/lib/module/composites/wui-list-social/styles.js.map +1 -0
  209. package/lib/module/composites/wui-list-token/index.js +71 -0
  210. package/lib/module/composites/wui-list-token/index.js.map +1 -0
  211. package/lib/module/composites/wui-list-token/styles.js +24 -0
  212. package/lib/module/composites/wui-list-token/styles.js.map +1 -0
  213. package/lib/module/composites/wui-list-transaction/index.js +57 -0
  214. package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
  215. package/lib/module/composites/wui-list-transaction/styles.js +10 -0
  216. package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
  217. package/lib/module/composites/wui-list-transaction/utils.js +79 -0
  218. package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
  219. package/lib/module/composites/wui-list-wallet/index.js +5 -4
  220. package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
  221. package/lib/module/composites/wui-logo/index.js +4 -2
  222. package/lib/module/composites/wui-logo/index.js.map +1 -1
  223. package/lib/module/composites/wui-logo-select/index.js +6 -3
  224. package/lib/module/composites/wui-logo-select/index.js.map +1 -1
  225. package/lib/module/composites/wui-logo-select/styles.js +3 -3
  226. package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
  227. package/lib/module/composites/wui-network-button/index.js +15 -11
  228. package/lib/module/composites/wui-network-button/index.js.map +1 -1
  229. package/lib/module/composites/wui-network-button/styles.js +5 -5
  230. package/lib/module/composites/wui-network-button/styles.js.map +1 -1
  231. package/lib/module/composites/wui-network-image/index.js +49 -22
  232. package/lib/module/composites/wui-network-image/index.js.map +1 -1
  233. package/lib/module/composites/wui-network-image/styles.js +2 -0
  234. package/lib/module/composites/wui-network-image/styles.js.map +1 -1
  235. package/lib/module/composites/wui-otp/index.js +2 -3
  236. package/lib/module/composites/wui-otp/index.js.map +1 -1
  237. package/lib/module/composites/wui-promo/index.js +42 -0
  238. package/lib/module/composites/wui-promo/index.js.map +1 -0
  239. package/lib/module/composites/wui-qr-code/index.js +16 -12
  240. package/lib/module/composites/wui-qr-code/index.js.map +1 -1
  241. package/lib/module/composites/wui-snackbar/index.js +1 -0
  242. package/lib/module/composites/wui-snackbar/index.js.map +1 -1
  243. package/lib/module/composites/wui-snackbar/styles.js +3 -2
  244. package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
  245. package/lib/module/composites/wui-tabs/index.js +22 -8
  246. package/lib/module/composites/wui-tabs/index.js.map +1 -1
  247. package/lib/module/composites/wui-tabs/styles.js +2 -3
  248. package/lib/module/composites/wui-tabs/styles.js.map +1 -1
  249. package/lib/module/composites/wui-token-button/index.js +30 -0
  250. package/lib/module/composites/wui-token-button/index.js.map +1 -0
  251. package/lib/module/composites/wui-token-button/styles.js +18 -0
  252. package/lib/module/composites/wui-token-button/styles.js.map +1 -0
  253. package/lib/module/composites/wui-transaction-visual/index.js +66 -0
  254. package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
  255. package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
  256. package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
  257. package/lib/module/composites/wui-wallet-image/styles.js +1 -1
  258. package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
  259. package/lib/module/index.js +10 -0
  260. package/lib/module/index.js.map +1 -1
  261. package/lib/module/layout/wui-flex/index.js +2 -2
  262. package/lib/module/layout/wui-flex/index.js.map +1 -1
  263. package/lib/module/layout/wui-separator/index.js +4 -4
  264. package/lib/module/layout/wui-separator/index.js.map +1 -1
  265. package/lib/module/utils/ThemeUtil.js +4 -2
  266. package/lib/module/utils/ThemeUtil.js.map +1 -1
  267. package/lib/module/utils/TransactionUtil.js +134 -0
  268. package/lib/module/utils/TransactionUtil.js.map +1 -0
  269. package/lib/module/utils/UiUtil.js +15 -0
  270. package/lib/module/utils/UiUtil.js.map +1 -1
  271. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
  272. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
  273. package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
  274. package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
  275. package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
  276. package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
  277. package/lib/typescript/assets/svg/More.d.ts +4 -0
  278. package/lib/typescript/assets/svg/More.d.ts.map +1 -0
  279. package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
  280. package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
  281. package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
  282. package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
  283. package/lib/typescript/assets/svg/X.d.ts +4 -0
  284. package/lib/typescript/assets/svg/X.d.ts.map +1 -0
  285. package/lib/typescript/assets/visual/Google.d.ts +4 -0
  286. package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
  287. package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
  288. package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
  289. package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
  290. package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
  291. package/lib/typescript/components/wui-icon/index.d.ts +1 -1
  292. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  293. package/lib/typescript/components/wui-lean-text/index.d.ts +5 -0
  294. package/lib/typescript/components/wui-lean-text/index.d.ts.map +1 -0
  295. package/lib/typescript/components/wui-lean-view/index.d.ts +5 -0
  296. package/lib/typescript/components/wui-lean-view/index.d.ts.map +1 -0
  297. package/lib/typescript/components/wui-text/index.d.ts.map +1 -1
  298. package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
  299. package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
  300. package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
  301. package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
  302. package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
  303. package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
  304. package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
  305. package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
  306. package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
  307. package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
  308. package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
  309. package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
  310. package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
  311. package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
  312. package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
  313. package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
  314. package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
  315. package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
  316. package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
  317. package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
  318. package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
  319. package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
  320. package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
  321. package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
  322. package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
  323. package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
  324. package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
  325. package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
  326. package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
  327. package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
  328. package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
  329. package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
  330. package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
  331. package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
  332. package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
  333. package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
  334. package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
  335. package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
  336. package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
  337. package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
  338. package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
  339. package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
  340. package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
  341. package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
  342. package/lib/typescript/composites/wui-network-button/index.d.ts +6 -4
  343. package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
  344. package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
  345. package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
  346. package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
  347. package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
  348. package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
  349. package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
  350. package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
  351. package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
  352. package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
  353. package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
  354. package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
  355. package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
  356. package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
  357. package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
  358. package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
  359. package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
  360. package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
  361. package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
  362. package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
  363. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
  364. package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
  365. package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
  366. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
  367. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
  368. package/lib/typescript/index.d.ts +10 -0
  369. package/lib/typescript/index.d.ts.map +1 -1
  370. package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
  371. package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
  372. package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
  373. package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
  374. package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
  375. package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
  376. package/lib/typescript/utils/TypesUtil.d.ts +6 -5
  377. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  378. package/lib/typescript/utils/UiUtil.d.ts +1 -0
  379. package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
  380. package/package.json +4 -4
  381. package/readme.md +1 -1
  382. package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
  383. package/src/assets/svg/Farcaster.tsx +15 -0
  384. package/src/assets/svg/FarcasterSquare.tsx +15 -0
  385. package/src/assets/svg/More.tsx +16 -0
  386. package/src/assets/svg/Paperplane.tsx +12 -0
  387. package/src/assets/svg/WalletConnect.tsx +24 -1
  388. package/src/assets/svg/X.tsx +26 -0
  389. package/src/assets/visual/Google.tsx +43 -0
  390. package/src/assets/visual/Lightbulb.tsx +54 -0
  391. package/src/assets/visual/Pencil.tsx +80 -0
  392. package/src/components/wui-card/index.tsx +1 -1
  393. package/src/components/wui-card/styles.ts +1 -1
  394. package/src/components/wui-icon/index.tsx +17 -8
  395. package/src/components/wui-lean-text/index.tsx +10 -0
  396. package/src/components/wui-lean-view/index.tsx +10 -0
  397. package/src/components/wui-text/index.tsx +4 -3
  398. package/src/components/wui-visual/index.tsx +6 -0
  399. package/src/composites/wui-account-button/index.tsx +17 -8
  400. package/src/composites/wui-account-button/styles.ts +6 -6
  401. package/src/composites/wui-account-pill/index.tsx +64 -0
  402. package/src/composites/wui-account-pill/styles.ts +23 -0
  403. package/src/composites/wui-avatar/styles.ts +2 -1
  404. package/src/composites/wui-balance/index.tsx +25 -0
  405. package/src/composites/wui-banner/index.tsx +28 -0
  406. package/src/composites/wui-banner/styles.ts +15 -0
  407. package/src/composites/wui-button/index.tsx +12 -10
  408. package/src/composites/wui-button/styles.ts +3 -3
  409. package/src/composites/wui-chip/index.tsx +14 -13
  410. package/src/composites/wui-chip/styles.ts +3 -3
  411. package/src/composites/wui-compatible-network/index.tsx +64 -0
  412. package/src/composites/wui-connect-button/styles.ts +1 -1
  413. package/src/composites/wui-icon-box/index.tsx +18 -2
  414. package/src/composites/wui-input-text/styles.ts +1 -1
  415. package/src/composites/wui-list-item/index.tsx +15 -14
  416. package/src/composites/wui-list-item/styles.ts +4 -3
  417. package/src/composites/wui-list-social/index.tsx +65 -0
  418. package/src/composites/wui-list-social/styles.ts +28 -0
  419. package/src/composites/wui-list-token/index.tsx +83 -0
  420. package/src/composites/wui-list-token/styles.ts +24 -0
  421. package/src/composites/wui-list-transaction/index.tsx +65 -0
  422. package/src/composites/wui-list-transaction/styles.ts +10 -0
  423. package/src/composites/wui-list-transaction/utils.ts +83 -0
  424. package/src/composites/wui-list-wallet/index.tsx +7 -6
  425. package/src/composites/wui-logo/index.tsx +4 -2
  426. package/src/composites/wui-logo-select/index.tsx +7 -4
  427. package/src/composites/wui-logo-select/styles.ts +3 -3
  428. package/src/composites/wui-network-button/index.tsx +22 -15
  429. package/src/composites/wui-network-button/styles.ts +5 -5
  430. package/src/composites/wui-network-image/index.tsx +57 -21
  431. package/src/composites/wui-network-image/styles.ts +6 -0
  432. package/src/composites/wui-otp/index.tsx +2 -4
  433. package/src/composites/wui-promo/index.tsx +42 -0
  434. package/src/composites/wui-qr-code/index.tsx +18 -11
  435. package/src/composites/wui-snackbar/index.tsx +1 -0
  436. package/src/composites/wui-snackbar/styles.ts +3 -2
  437. package/src/composites/wui-tabs/index.tsx +33 -9
  438. package/src/composites/wui-tabs/styles.ts +2 -3
  439. package/src/composites/wui-token-button/index.tsx +29 -0
  440. package/src/composites/wui-token-button/styles.ts +18 -0
  441. package/src/composites/wui-transaction-visual/index.tsx +78 -0
  442. package/src/composites/wui-transaction-visual/styles.ts +36 -0
  443. package/src/composites/wui-wallet-image/styles.ts +1 -1
  444. package/src/index.ts +13 -0
  445. package/src/layout/wui-flex/index.tsx +3 -3
  446. package/src/layout/wui-separator/index.tsx +7 -4
  447. package/src/utils/ThemeUtil.ts +4 -2
  448. package/src/utils/TransactionUtil.ts +173 -0
  449. package/src/utils/TypesUtil.ts +58 -6
  450. package/src/utils/UiUtil.ts +18 -0
  451. package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
  452. package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
  453. package/lib/module/assets/svg/Twitter.js +0 -37
  454. package/lib/module/assets/svg/Twitter.js.map +0 -1
  455. package/lib/module/assets/svg/TwitterIcon.js +0 -11
  456. package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
  457. package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
  458. package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
  459. package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
  460. package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
  461. package/src/assets/svg/Twitter.tsx +0 -27
  462. package/src/assets/svg/TwitterIcon.tsx +0 -10
@@ -4,6 +4,7 @@ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
4
4
  export default StyleSheet.create({
5
5
  container: {
6
6
  height: 34,
7
+ width: '100%',
7
8
  flexDirection: 'row',
8
9
  alignItems: 'center',
9
10
  paddingHorizontal: Spacing['3xs'],
@@ -13,7 +14,6 @@ export default StyleSheet.create({
13
14
  flexDirection: 'row',
14
15
  justifyContent: 'center',
15
16
  alignItems: 'center',
16
- width: 100,
17
17
  paddingVertical: Spacing['2xs']
18
18
  },
19
19
  tabIcon: {
@@ -22,8 +22,7 @@ export default StyleSheet.create({
22
22
  activeMark: {
23
23
  position: 'absolute',
24
24
  height: 28,
25
- width: 100,
26
- borderWidth: 1,
25
+ borderWidth: StyleSheet.hairlineWidth,
27
26
  borderRadius: BorderRadius['3xl'],
28
27
  margin: Spacing['3xs']
29
28
  }
@@ -0,0 +1,29 @@
1
+ import type { Balance } from '@reown/appkit-common-react-native';
2
+ import { Image } from '../../components/wui-image';
3
+ import { Text } from '../../components/wui-text';
4
+ import { Button } from '../wui-button';
5
+ import styles from './styles';
6
+
7
+ export interface TokenButtonProps {
8
+ onPress?: () => void;
9
+ token?: Balance;
10
+ }
11
+
12
+ export function TokenButton({ token, onPress }: TokenButtonProps) {
13
+ if (!token) {
14
+ return (
15
+ <Button variant="accent" style={styles.selectButton} size="sm" onPress={onPress}>
16
+ <Text variant="small-600" color="accent-100">
17
+ Select token
18
+ </Text>
19
+ </Button>
20
+ );
21
+ }
22
+
23
+ return (
24
+ <Button variant="shade" style={styles.container} size="sm" onPress={onPress}>
25
+ {token?.iconUrl && <Image source={token?.iconUrl} style={styles.image} />}
26
+ {token?.symbol && <Text>{token.symbol}</Text>}
27
+ </Button>
28
+ );
29
+ }
@@ -0,0 +1,18 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
3
+
4
+ export default StyleSheet.create({
5
+ selectButton: {
6
+ height: 40,
7
+ paddingHorizontal: Spacing.m
8
+ },
9
+ container: {
10
+ height: 40
11
+ },
12
+ image: {
13
+ width: 24,
14
+ height: 24,
15
+ borderRadius: BorderRadius.full,
16
+ marginRight: Spacing['2xs']
17
+ }
18
+ });
@@ -0,0 +1,78 @@
1
+ import type { TransactionImage } from '@reown/appkit-common-react-native';
2
+
3
+ import { FlexView } from '../../layout/wui-flex';
4
+ import { Icon } from '../../components/wui-icon';
5
+ import { Image } from '../../components/wui-image';
6
+ import { useTheme } from '../../hooks/useTheme';
7
+ import styles from './styles';
8
+
9
+ export interface TransactionVisualProps {
10
+ images?: TransactionImage[];
11
+ networkSrc?: string;
12
+ isAllNFT?: boolean;
13
+ }
14
+
15
+ export function TransactionVisual({ images, networkSrc, isAllNFT }: TransactionVisualProps) {
16
+ const Theme = useTheme();
17
+ const backgroundColor = Theme['bg-200'];
18
+ const isFirstNFT = Boolean(images?.[0]?.type === 'NFT');
19
+ const filteredImages = images?.filter(image => image.url);
20
+ const [firstImage, secondImage] = filteredImages ?? [];
21
+ const hasOneImage = filteredImages?.length === 1;
22
+ const hasTwoImages = filteredImages && filteredImages?.length > 1;
23
+
24
+ return (
25
+ <FlexView>
26
+ {!filteredImages?.length && (
27
+ <FlexView
28
+ alignItems="center"
29
+ justifyContent="center"
30
+ style={[styles.image, { backgroundColor }]}
31
+ >
32
+ <Icon name={isFirstNFT ? 'nftPlaceholder' : 'coinPlaceholder'} size="sm" color="fg-200" />
33
+ </FlexView>
34
+ )}
35
+ {hasOneImage && firstImage?.url && (
36
+ <Image
37
+ source={firstImage.url}
38
+ style={[styles.image, firstImage?.type === 'NFT' && styles.imageNft, { backgroundColor }]}
39
+ />
40
+ )}
41
+ {hasTwoImages && firstImage?.url && secondImage?.url && (
42
+ <FlexView flexDirection="row" padding={['0', 's', '0', '0']}>
43
+ <FlexView style={styles.halfContainer}>
44
+ <Image
45
+ source={firstImage.url}
46
+ style={[styles.image, isAllNFT && styles.imageNft, { backgroundColor }]}
47
+ />
48
+ </FlexView>
49
+ <FlexView style={styles.halfContainer}>
50
+ <Image
51
+ source={secondImage.url}
52
+ style={[
53
+ styles.image,
54
+ styles.halfRight,
55
+ isAllNFT && styles.imageNft,
56
+ { backgroundColor }
57
+ ]}
58
+ />
59
+ </FlexView>
60
+ </FlexView>
61
+ )}
62
+ <FlexView
63
+ alignItems="center"
64
+ justifyContent="center"
65
+ style={[
66
+ styles.networkImageContainer,
67
+ { borderColor: Theme['bg-100'], backgroundColor: Theme['bg-200'] }
68
+ ]}
69
+ >
70
+ {networkSrc ? (
71
+ <Image source={networkSrc} style={styles.networkImage} />
72
+ ) : (
73
+ <Icon name="networkPlaceholder" size="xxs" color="fg-200" />
74
+ )}
75
+ </FlexView>
76
+ </FlexView>
77
+ );
78
+ }
@@ -0,0 +1,36 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
3
+
4
+ export default StyleSheet.create({
5
+ image: {
6
+ height: 40,
7
+ width: 40,
8
+ borderRadius: BorderRadius.full,
9
+ marginRight: Spacing.s
10
+ },
11
+ imageNft: {
12
+ borderRadius: BorderRadius.xxs
13
+ },
14
+ halfContainer: {
15
+ overflow: 'hidden',
16
+ width: 20,
17
+ marginRight: 2
18
+ },
19
+ halfRight: {
20
+ left: -20
21
+ },
22
+ networkImageContainer: {
23
+ position: 'absolute',
24
+ bottom: -2,
25
+ left: 24,
26
+ borderWidth: 2,
27
+ borderRadius: BorderRadius.full,
28
+ width: 18,
29
+ height: 18
30
+ },
31
+ networkImage: {
32
+ width: 14,
33
+ height: 14,
34
+ borderRadius: BorderRadius.full
35
+ }
36
+ });
@@ -32,7 +32,7 @@ export default StyleSheet.create({
32
32
  borderRadius: BorderRadius.m
33
33
  },
34
34
  border: {
35
- borderWidth: 1,
35
+ borderWidth: StyleSheet.hairlineWidth,
36
36
  position: 'absolute'
37
37
  }
38
38
  });
package/src/index.ts CHANGED
@@ -9,8 +9,11 @@ export { Visual, type VisualProps } from './components/wui-visual';
9
9
  export { Shimmer, type ShimmerProps } from './components/wui-shimmer';
10
10
 
11
11
  export { AccountButton, type AccountButtonProps } from './composites/wui-account-button';
12
+ export { AccountPill, type AccountPillProps } from './composites/wui-account-pill';
12
13
  export { ActionEntry, type ActionEntryProps } from './composites/wui-action-entry';
13
14
  export { Avatar, type AvatarProps } from './composites/wui-avatar';
15
+ export { Balance, type BalanceProps } from './composites/wui-balance';
16
+ export { Banner, type BannerProps } from './composites/wui-banner';
14
17
  export { Button, type ButtonProps } from './composites/wui-button';
15
18
  export {
16
19
  CardSelectLoader,
@@ -24,6 +27,10 @@ export {
24
27
  type CardSelectProps
25
28
  } from './composites/wui-card-select';
26
29
  export { Chip, type ChipProps } from './composites/wui-chip';
30
+ export {
31
+ CompatibleNetwork,
32
+ type CompatibleNetworkProps
33
+ } from './composites/wui-compatible-network';
27
34
  export { ConnectButton, type ConnectButtonProps } from './composites/wui-connect-button';
28
35
  export { EmailInput, type EmailInputProps } from './composites/wui-email-input';
29
36
  export { IconBox, type IconBoxProps } from './composites/wui-icon-box';
@@ -33,17 +40,22 @@ export { InputNumeric, type InputNumericProps } from './composites/wui-input-num
33
40
  export { InputText, type InputTextProps } from './composites/wui-input-text';
34
41
  export { Link, type LinkProps } from './composites/wui-link';
35
42
  export { ListItem, type ListItemProps } from './composites/wui-list-item';
43
+ export { ListSocial, type ListSocialProps } from './composites/wui-list-social';
44
+ export { ListToken, type ListTokenProps } from './composites/wui-list-token';
45
+ export { ListTransaction, type ListTransactionProps } from './composites/wui-list-transaction';
36
46
  export { ListWallet, type ListWalletProps } from './composites/wui-list-wallet';
37
47
  export { Logo, type LogoProps } from './composites/wui-logo';
38
48
  export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
39
49
  export { NetworkButton, type NetworkButtonProps } from './composites/wui-network-button';
40
50
  export { NetworkImage, type NetworkImageProps } from './composites/wui-network-image';
41
51
  export { Otp, type OtpProps } from './composites/wui-otp';
52
+ export { Promo, type PromoProps } from './composites/wui-promo';
42
53
  export { QrCode, type QrCodeProps } from './composites/wui-qr-code';
43
54
  export { SearchBar, type SearchBarProps } from './composites/wui-search-bar';
44
55
  export { Snackbar, type SnackbarProps } from './composites/wui-snackbar';
45
56
  export { Tabs, type TabsProps } from './composites/wui-tabs';
46
57
  export { Tag, type TagProps } from './composites/wui-tag';
58
+ export { TokenButton, type TokenButtonProps } from './composites/wui-token-button';
47
59
  export { Tooltip, type TooltipProps } from './composites/wui-tooltip';
48
60
  export { WalletImage, type WalletImageProps } from './composites/wui-wallet-image';
49
61
 
@@ -66,6 +78,7 @@ export type {
66
78
  VisualType
67
79
  } from './utils/TypesUtil';
68
80
  export { UiUtil } from './utils/UiUtil';
81
+ export { TransactionUtil } from './utils/TransactionUtil';
69
82
  export { Spacing, BorderRadius } from './utils/ThemeUtil';
70
83
 
71
84
  export { useTheme } from './hooks/useTheme';
@@ -1,4 +1,4 @@
1
- import { View, type StyleProp, type ViewStyle } from 'react-native';
1
+ import { type StyleProp, type ViewStyle } from 'react-native';
2
2
 
3
3
  import type {
4
4
  FlexAlignType,
@@ -9,8 +9,8 @@ import type {
9
9
  FlexWrapType,
10
10
  SpacingType
11
11
  } from '../../utils/TypesUtil';
12
-
13
12
  import { UiUtil } from '../../utils/UiUtil';
13
+ import { LeanView } from '../../components/wui-lean-view';
14
14
 
15
15
  export interface FlexViewProps {
16
16
  children?: React.ReactNode;
@@ -45,5 +45,5 @@ export function FlexView(props: FlexViewProps) {
45
45
  marginLeft: props.margin && UiUtil.getSpacingStyles(props.margin, 3)
46
46
  };
47
47
 
48
- return <View style={[styles, props.style]}>{props.children}</View>;
48
+ return <LeanView style={[styles, props.style]}>{props.children}</LeanView>;
49
49
  }
@@ -1,5 +1,6 @@
1
- import { View, type StyleProp, type ViewStyle } from 'react-native';
1
+ import { type StyleProp, type ViewStyle } from 'react-native';
2
2
  import { Text } from '../../components/wui-text';
3
+ import { LeanView } from '../../components/wui-lean-view';
3
4
  import { FlexView } from '../../layout/wui-flex';
4
5
  import { useTheme } from '../../hooks/useTheme';
5
6
  import styles from './styles';
@@ -13,18 +14,20 @@ export function Separator({ text, style }: SeparatorProps) {
13
14
  const Theme = useTheme();
14
15
 
15
16
  if (!text) {
16
- return <View style={[styles.single, { backgroundColor: Theme['gray-glass-005'] }, style]} />;
17
+ return (
18
+ <LeanView style={[styles.single, { backgroundColor: Theme['gray-glass-005'] }, style]} />
19
+ );
17
20
  }
18
21
 
19
22
  return (
20
23
  <FlexView flexDirection="row" alignItems="center" style={style}>
21
- <View
24
+ <LeanView
22
25
  style={[styles.divider, styles.marginRight, { backgroundColor: Theme['gray-glass-005'] }]}
23
26
  />
24
27
  <Text variant="small-500" color="fg-300">
25
28
  {text}
26
29
  </Text>
27
- <View
30
+ <LeanView
28
31
  style={[styles.divider, styles.marginLeft, { backgroundColor: Theme['gray-glass-005'] }]}
29
32
  />
30
33
  </FlexView>
@@ -155,7 +155,8 @@ export const BorderRadius = {
155
155
  's': 20,
156
156
  'm': 28,
157
157
  'l': 36,
158
- '3xl': 80
158
+ '3xl': 80,
159
+ 'full': 100
159
160
  };
160
161
 
161
162
  export const IconSize = {
@@ -163,7 +164,8 @@ export const IconSize = {
163
164
  xs: 12,
164
165
  sm: 14,
165
166
  md: 16,
166
- lg: 20
167
+ lg: 20,
168
+ xl: 24
167
169
  };
168
170
 
169
171
  export const SpinnerSize = {
@@ -0,0 +1,173 @@
1
+ import { DateUtil } from '@reown/appkit-common-react-native';
2
+ import type {
3
+ TransactionTransfer,
4
+ Transaction,
5
+ TransactionImage
6
+ } from '@reown/appkit-common-react-native';
7
+ import type { TransactionType } from './TypesUtil';
8
+ import { UiUtil } from './UiUtil';
9
+
10
+ // -- Helpers --------------------------------------------- //
11
+ const FLOAT_FIXED_VALUE = 2;
12
+ const SMALL_FLOAT_FIXED_VALUE = 4;
13
+ const plusTypes: TransactionType[] = ['receive', 'deposit', 'borrow', 'claim'];
14
+ const minusTypes: TransactionType[] = ['withdraw', 'repay', 'burn'];
15
+
16
+ export const TransactionUtil = {
17
+ getTransactionGroupTitle(year: string, month: string) {
18
+ const currentYear = DateUtil.getYear().toString();
19
+ const monthName = DateUtil.getMonth(parseInt(month));
20
+ const isCurrentYear = year === currentYear;
21
+ const groupTitle = isCurrentYear ? monthName : `${monthName} ${year}`;
22
+
23
+ return groupTitle;
24
+ },
25
+
26
+ getTransactionImages(transfers: TransactionTransfer[]): TransactionImage[] {
27
+ const [transfer, secondTransfer] = transfers;
28
+ const isAllNFT = Boolean(transfer) && transfers?.every(item => Boolean(item.nft_info));
29
+ const haveMultipleTransfers = transfers?.length > 1;
30
+ const haveTwoTransfers = transfers?.length === 2;
31
+
32
+ if (haveTwoTransfers && !isAllNFT) {
33
+ return [this.getTransactionImage(transfer), this.getTransactionImage(secondTransfer)];
34
+ }
35
+
36
+ if (haveMultipleTransfers) {
37
+ return transfers.map(item => this.getTransactionImage(item));
38
+ }
39
+
40
+ return [this.getTransactionImage(transfer)];
41
+ },
42
+
43
+ getTransactionImage(transfer?: TransactionTransfer): TransactionImage {
44
+ return {
45
+ type: TransactionUtil.getTransactionTransferTokenType(transfer),
46
+ url: TransactionUtil.getTransactionImageURL(transfer)
47
+ };
48
+ },
49
+
50
+ getTransactionImageURL(transfer: TransactionTransfer | undefined) {
51
+ let imageURL;
52
+ const isNFT = Boolean(transfer?.nft_info);
53
+ const isFungible = Boolean(transfer?.fungible_info);
54
+
55
+ if (transfer && isNFT) {
56
+ imageURL = transfer?.nft_info?.content?.preview?.url;
57
+ } else if (transfer && isFungible) {
58
+ imageURL = transfer?.fungible_info?.icon?.url;
59
+ }
60
+
61
+ return imageURL;
62
+ },
63
+
64
+ getTransactionTransferTokenType(transfer?: TransactionTransfer): 'FUNGIBLE' | 'NFT' | undefined {
65
+ if (transfer?.fungible_info) {
66
+ return 'FUNGIBLE';
67
+ } else if (transfer?.nft_info) {
68
+ return 'NFT';
69
+ }
70
+
71
+ return undefined;
72
+ },
73
+
74
+ getTransactionDescriptions(transaction: Transaction) {
75
+ const type = transaction?.metadata?.operationType as TransactionType;
76
+
77
+ const transfers = transaction?.transfers;
78
+ const haveTransfer = transaction?.transfers?.length > 0;
79
+ const haveMultipleTransfers = transaction?.transfers?.length > 1;
80
+ const isSendOrReceive = type === 'send' || type === 'receive';
81
+ const isFungible =
82
+ haveTransfer && transfers?.every(transfer => Boolean(transfer?.fungible_info));
83
+ const [firstTransfer, secondTransfer] = transfers;
84
+
85
+ let firstDescription = this.getTransferDescription(firstTransfer);
86
+ let secondDescription = this.getTransferDescription(secondTransfer);
87
+
88
+ if (!haveTransfer) {
89
+ if (isSendOrReceive && isFungible) {
90
+ firstDescription = UiUtil.getTruncateString({
91
+ string: transaction?.metadata.sentFrom,
92
+ charsStart: 4,
93
+ charsEnd: 6,
94
+ truncate: 'middle'
95
+ });
96
+ secondDescription = UiUtil.getTruncateString({
97
+ string: transaction?.metadata.sentTo,
98
+ charsStart: 4,
99
+ charsEnd: 6,
100
+ truncate: 'middle'
101
+ });
102
+
103
+ return [firstDescription, secondDescription];
104
+ }
105
+
106
+ return [transaction.metadata.status];
107
+ }
108
+
109
+ if (haveMultipleTransfers) {
110
+ return transfers.map(item => this.getTransferDescription(item));
111
+ }
112
+
113
+ let prefix = '';
114
+ if (plusTypes.includes(type)) {
115
+ prefix = '+';
116
+ } else if (minusTypes.includes(type)) {
117
+ prefix = '-';
118
+ }
119
+
120
+ firstDescription = prefix.concat(firstDescription);
121
+
122
+ if (isSendOrReceive) {
123
+ const isSend = type === 'send';
124
+ const address = UiUtil.getTruncateString({
125
+ string: isSend ? transaction.metadata.sentTo : transaction.metadata.sentFrom,
126
+ charsStart: 4,
127
+ charsEnd: 4,
128
+ truncate: 'middle'
129
+ });
130
+ const arrow = isSend ? '→' : '←';
131
+ firstDescription = firstDescription.concat(` ${arrow} ${address}`);
132
+ }
133
+
134
+ return [firstDescription];
135
+ },
136
+
137
+ getTransferDescription(transfer?: TransactionTransfer) {
138
+ let description = '';
139
+
140
+ if (!transfer) {
141
+ return description;
142
+ }
143
+
144
+ if (transfer?.nft_info) {
145
+ description = transfer?.nft_info?.name || '-';
146
+ } else if (transfer?.fungible_info) {
147
+ description = this.getFungibleTransferDescription(transfer) ?? '-';
148
+ }
149
+
150
+ return description;
151
+ },
152
+
153
+ getFungibleTransferDescription(transfer?: TransactionTransfer) {
154
+ if (!transfer) {
155
+ return null;
156
+ }
157
+
158
+ const quantity = this.getQuantityFixedValue(transfer?.quantity.numeric);
159
+ const description = [quantity, transfer?.fungible_info?.symbol].join(' ').trim();
160
+
161
+ return description;
162
+ },
163
+
164
+ getQuantityFixedValue(value: string | undefined) {
165
+ if (!value) {
166
+ return null;
167
+ }
168
+
169
+ const parsedValue = parseFloat(value);
170
+
171
+ return parsedValue.toFixed(parsedValue > 1 ? FLOAT_FIXED_VALUE : SMALL_FLOAT_FIXED_VALUE);
172
+ }
173
+ };
@@ -91,14 +91,36 @@ export type ColorType =
91
91
  | 'error-100'
92
92
  | 'fg-100'
93
93
  | 'fg-150'
94
+ | 'fg-175'
94
95
  | 'fg-200'
95
96
  | 'fg-250'
96
97
  | 'fg-275'
97
98
  | 'fg-300'
99
+ | 'bg-100'
100
+ | 'bg-125'
101
+ | 'bg-150'
102
+ | 'bg-175'
103
+ | 'bg-200'
104
+ | 'bg-225'
105
+ | 'bg-250'
106
+ | 'bg-275'
107
+ | 'bg-300'
108
+ | 'accent-glass-020'
109
+ | 'accent-glass-015'
110
+ | 'accent-glass-010'
111
+ | 'accent-glass-005'
98
112
  | 'gray-glass-020'
113
+ | 'gray-glass-010'
114
+ | 'gray-glass-005'
99
115
  | 'inverse-000'
100
116
  | 'inverse-100'
101
- | 'success-100';
117
+ | 'success-100'
118
+ | 'teal-100'
119
+ | 'magenta-100'
120
+ | 'indigo-100'
121
+ | 'orange-100'
122
+ | 'purple-100'
123
+ | 'yellow-100';
102
124
 
103
125
  export type SizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
104
126
 
@@ -112,6 +134,7 @@ export type IconType =
112
134
  | 'allWallets'
113
135
  | 'apple'
114
136
  | 'arrowBottom'
137
+ | 'arrowBottomCircle'
115
138
  | 'arrowLeft'
116
139
  | 'arrowRight'
117
140
  | 'arrowTop'
@@ -136,6 +159,8 @@ export type IconType =
136
159
  | 'extension'
137
160
  | 'externalLink'
138
161
  | 'facebook'
162
+ | 'farcaster'
163
+ | 'farcasterSquare'
139
164
  | 'filters'
140
165
  | 'github'
141
166
  | 'google'
@@ -143,9 +168,11 @@ export type IconType =
143
168
  | 'infoCircle'
144
169
  | 'mail'
145
170
  | 'mobile'
171
+ | 'more'
146
172
  | 'networkPlaceholder'
147
173
  | 'nftPlaceholder'
148
174
  | 'off'
175
+ | 'paperplane'
149
176
  | 'qrCode'
150
177
  | 'refresh'
151
178
  | 'search'
@@ -153,14 +180,14 @@ export type IconType =
153
180
  | 'swapVertical'
154
181
  | 'telegram'
155
182
  | 'twitch'
156
- | 'twitter'
157
- | 'twitterIcon'
158
183
  | 'verify'
159
184
  | 'wallet'
160
185
  | 'walletSmall'
161
186
  | 'walletConnect'
187
+ | 'walletConnectLightBrown'
162
188
  | 'walletPlaceholder'
163
- | 'warningCircle';
189
+ | 'warningCircle'
190
+ | 'x';
164
191
 
165
192
  export type VisualType =
166
193
  | 'browser'
@@ -168,12 +195,15 @@ export type VisualType =
168
195
  | 'defi'
169
196
  | 'defiAlt'
170
197
  | 'eth'
198
+ | 'google'
171
199
  | 'layers'
200
+ | 'lightbulb'
172
201
  | 'lock'
173
202
  | 'login'
174
203
  | 'network'
175
204
  | 'nft'
176
205
  | 'noun'
206
+ | 'pencil'
177
207
  | 'profile'
178
208
  | 'system';
179
209
 
@@ -181,11 +211,14 @@ export type LogoType =
181
211
  | 'apple'
182
212
  | 'discord'
183
213
  | 'facebook'
214
+ | 'farcaster'
215
+ | 'farcasterSquare'
184
216
  | 'github'
185
217
  | 'google'
218
+ | 'more'
186
219
  | 'telegram'
187
220
  | 'twitch'
188
- | 'twitter';
221
+ | 'x';
189
222
 
190
223
  export type TagType = 'main' | 'shade' | 'error' | 'success';
191
224
 
@@ -193,7 +226,7 @@ export type CardSelectType = 'wallet' | 'network';
193
226
 
194
227
  export type TabOptionType = {
195
228
  icon: IconType;
196
- label: string;
229
+ label?: string;
197
230
  };
198
231
 
199
232
  export type SpacingType =
@@ -238,3 +271,22 @@ export type TruncateOptions = {
238
271
  charsEnd: number;
239
272
  truncate: TruncateType;
240
273
  };
274
+
275
+ export type TransactionType =
276
+ | 'approve'
277
+ | 'bought'
278
+ | 'borrow'
279
+ | 'burn'
280
+ | 'cancel'
281
+ | 'claim'
282
+ | 'deploy'
283
+ | 'deposit'
284
+ | 'execute'
285
+ | 'mint'
286
+ | 'receive'
287
+ | 'repay'
288
+ | 'send'
289
+ | 'stake'
290
+ | 'trade'
291
+ | 'unstake'
292
+ | 'withdraw';
@@ -68,5 +68,23 @@ export const UiUtil = {
68
68
 
69
69
  getWalletName(name: string, short = true) {
70
70
  return short ? name.split(' ')[0] : name;
71
+ },
72
+
73
+ formatNumberToLocalString(value: string | number | undefined, decimals = 2) {
74
+ if (value === undefined) {
75
+ return '0.00';
76
+ }
77
+
78
+ if (typeof value === 'number') {
79
+ return value.toLocaleString('en-US', {
80
+ maximumFractionDigits: decimals,
81
+ minimumFractionDigits: decimals
82
+ });
83
+ }
84
+
85
+ return parseFloat(value).toLocaleString('en-US', {
86
+ maximumFractionDigits: decimals,
87
+ minimumFractionDigits: decimals
88
+ });
71
89
  }
72
90
  };
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeSvg","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","SvgTwitter","props","React","createElement","viewBox","fill","G","clipPath","Circle","cx","cy","stroke","strokeOpacity","Path","d","Defs","ClipPath","id","_default","exports"],"sourceRoot":"../../../../src","sources":["assets/svg/Twitter.tsx"],"mappings":"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"}