@reown/appkit-ui-react-native 0.0.0-refactor-modal-migration-20241004184043 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/lib/commonjs/assets/svg/{X.js → Twitter.js} +28 -18
  2. package/lib/commonjs/assets/svg/Twitter.js.map +1 -0
  3. package/lib/commonjs/assets/svg/{More.js → TwitterIcon.js} +5 -16
  4. package/lib/commonjs/assets/svg/TwitterIcon.js.map +1 -0
  5. package/lib/commonjs/components/wui-icon/index.js +6 -14
  6. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  7. package/lib/commonjs/composites/wui-account-button/index.js +7 -13
  8. package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
  9. package/lib/commonjs/composites/wui-account-button/styles.js +3 -3
  10. package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
  11. package/lib/commonjs/composites/wui-avatar/styles.js +1 -2
  12. package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
  13. package/lib/commonjs/composites/wui-button/index.js +3 -3
  14. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  15. package/lib/commonjs/composites/wui-button/styles.js +2 -2
  16. package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
  17. package/lib/commonjs/composites/wui-chip/index.js +7 -5
  18. package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
  19. package/lib/commonjs/composites/wui-chip/styles.js +1 -1
  20. package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
  21. package/lib/commonjs/composites/wui-list-item/index.js +10 -10
  22. package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
  23. package/lib/commonjs/composites/wui-list-item/styles.js +3 -4
  24. package/lib/commonjs/composites/wui-list-item/styles.js.map +1 -1
  25. package/lib/commonjs/composites/wui-logo/index.js +2 -4
  26. package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
  27. package/lib/commonjs/composites/wui-logo-select/index.js +3 -6
  28. package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
  29. package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
  30. package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
  31. package/lib/commonjs/composites/wui-network-button/index.js +10 -14
  32. package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
  33. package/lib/commonjs/composites/wui-network-button/styles.js +3 -3
  34. package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
  35. package/lib/commonjs/composites/wui-network-image/index.js +21 -48
  36. package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
  37. package/lib/commonjs/composites/wui-network-image/styles.js +1 -3
  38. package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
  39. package/lib/commonjs/composites/wui-qr-code/index.js +12 -16
  40. package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
  41. package/lib/commonjs/composites/wui-snackbar/index.js +0 -1
  42. package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
  43. package/lib/commonjs/composites/wui-snackbar/styles.js +1 -2
  44. package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
  45. package/lib/commonjs/composites/wui-tabs/index.js +8 -22
  46. package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
  47. package/lib/commonjs/composites/wui-tabs/styles.js +2 -1
  48. package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
  49. package/lib/commonjs/index.js +0 -63
  50. package/lib/commonjs/index.js.map +1 -1
  51. package/lib/commonjs/utils/ThemeUtil.js +1 -2
  52. package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
  53. package/lib/commonjs/utils/UiUtil.js +0 -15
  54. package/lib/commonjs/utils/UiUtil.js.map +1 -1
  55. package/lib/module/assets/svg/Twitter.js +37 -0
  56. package/lib/module/assets/svg/Twitter.js.map +1 -0
  57. package/lib/module/assets/svg/TwitterIcon.js +11 -0
  58. package/lib/module/assets/svg/TwitterIcon.js.map +1 -0
  59. package/lib/module/components/wui-icon/index.js +6 -14
  60. package/lib/module/components/wui-icon/index.js.map +1 -1
  61. package/lib/module/composites/wui-account-button/index.js +7 -13
  62. package/lib/module/composites/wui-account-button/index.js.map +1 -1
  63. package/lib/module/composites/wui-account-button/styles.js +4 -4
  64. package/lib/module/composites/wui-account-button/styles.js.map +1 -1
  65. package/lib/module/composites/wui-avatar/styles.js +1 -2
  66. package/lib/module/composites/wui-avatar/styles.js.map +1 -1
  67. package/lib/module/composites/wui-button/index.js +3 -3
  68. package/lib/module/composites/wui-button/index.js.map +1 -1
  69. package/lib/module/composites/wui-button/styles.js +2 -2
  70. package/lib/module/composites/wui-button/styles.js.map +1 -1
  71. package/lib/module/composites/wui-chip/index.js +8 -6
  72. package/lib/module/composites/wui-chip/index.js.map +1 -1
  73. package/lib/module/composites/wui-chip/styles.js +1 -1
  74. package/lib/module/composites/wui-chip/styles.js.map +1 -1
  75. package/lib/module/composites/wui-list-item/index.js +10 -10
  76. package/lib/module/composites/wui-list-item/index.js.map +1 -1
  77. package/lib/module/composites/wui-list-item/styles.js +3 -4
  78. package/lib/module/composites/wui-list-item/styles.js.map +1 -1
  79. package/lib/module/composites/wui-logo/index.js +2 -4
  80. package/lib/module/composites/wui-logo/index.js.map +1 -1
  81. package/lib/module/composites/wui-logo-select/index.js +3 -6
  82. package/lib/module/composites/wui-logo-select/index.js.map +1 -1
  83. package/lib/module/composites/wui-logo-select/styles.js +3 -3
  84. package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
  85. package/lib/module/composites/wui-network-button/index.js +11 -15
  86. package/lib/module/composites/wui-network-button/index.js.map +1 -1
  87. package/lib/module/composites/wui-network-button/styles.js +4 -4
  88. package/lib/module/composites/wui-network-button/styles.js.map +1 -1
  89. package/lib/module/composites/wui-network-image/index.js +22 -49
  90. package/lib/module/composites/wui-network-image/index.js.map +1 -1
  91. package/lib/module/composites/wui-network-image/styles.js +0 -2
  92. package/lib/module/composites/wui-network-image/styles.js.map +1 -1
  93. package/lib/module/composites/wui-qr-code/index.js +12 -16
  94. package/lib/module/composites/wui-qr-code/index.js.map +1 -1
  95. package/lib/module/composites/wui-snackbar/index.js +0 -1
  96. package/lib/module/composites/wui-snackbar/index.js.map +1 -1
  97. package/lib/module/composites/wui-snackbar/styles.js +1 -2
  98. package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
  99. package/lib/module/composites/wui-tabs/index.js +8 -22
  100. package/lib/module/composites/wui-tabs/index.js.map +1 -1
  101. package/lib/module/composites/wui-tabs/styles.js +2 -1
  102. package/lib/module/composites/wui-tabs/styles.js.map +1 -1
  103. package/lib/module/index.js +0 -9
  104. package/lib/module/index.js.map +1 -1
  105. package/lib/module/utils/ThemeUtil.js +1 -2
  106. package/lib/module/utils/ThemeUtil.js.map +1 -1
  107. package/lib/module/utils/UiUtil.js +0 -15
  108. package/lib/module/utils/UiUtil.js.map +1 -1
  109. package/lib/typescript/assets/svg/Twitter.d.ts +4 -0
  110. package/lib/typescript/assets/svg/Twitter.d.ts.map +1 -0
  111. package/lib/typescript/assets/svg/TwitterIcon.d.ts +4 -0
  112. package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +1 -0
  113. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  114. package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
  115. package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
  116. package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
  117. package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
  118. package/lib/typescript/composites/wui-chip/index.d.ts +2 -2
  119. package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
  120. package/lib/typescript/composites/wui-list-item/index.d.ts +4 -6
  121. package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
  122. package/lib/typescript/composites/wui-list-item/styles.d.ts +0 -1
  123. package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
  124. package/lib/typescript/composites/wui-logo/index.d.ts +1 -3
  125. package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
  126. package/lib/typescript/composites/wui-logo-select/index.d.ts +1 -4
  127. package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
  128. package/lib/typescript/composites/wui-network-button/index.d.ts +4 -6
  129. package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
  130. package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
  131. package/lib/typescript/composites/wui-network-image/index.d.ts +2 -6
  132. package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
  133. package/lib/typescript/composites/wui-network-image/styles.d.ts +0 -2
  134. package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
  135. package/lib/typescript/composites/wui-qr-code/index.d.ts +1 -6
  136. package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
  137. package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
  138. package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
  139. package/lib/typescript/composites/wui-tabs/index.d.ts +2 -4
  140. package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
  141. package/lib/typescript/composites/wui-tabs/styles.d.ts +2 -1
  142. package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
  143. package/lib/typescript/index.d.ts +0 -9
  144. package/lib/typescript/index.d.ts.map +1 -1
  145. package/lib/typescript/utils/ThemeUtil.d.ts +0 -1
  146. package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
  147. package/lib/typescript/utils/TypesUtil.d.ts +4 -5
  148. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  149. package/lib/typescript/utils/UiUtil.d.ts +0 -1
  150. package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
  151. package/package.json +4 -4
  152. package/readme.md +1 -1
  153. package/src/assets/svg/Twitter.tsx +27 -0
  154. package/src/assets/svg/TwitterIcon.tsx +10 -0
  155. package/src/components/wui-icon/index.tsx +6 -14
  156. package/src/composites/wui-account-button/index.tsx +8 -17
  157. package/src/composites/wui-account-button/styles.ts +4 -4
  158. package/src/composites/wui-avatar/styles.ts +1 -2
  159. package/src/composites/wui-button/index.tsx +10 -12
  160. package/src/composites/wui-button/styles.ts +2 -2
  161. package/src/composites/wui-chip/index.tsx +9 -7
  162. package/src/composites/wui-chip/styles.ts +1 -1
  163. package/src/composites/wui-list-item/index.tsx +14 -15
  164. package/src/composites/wui-list-item/styles.ts +3 -4
  165. package/src/composites/wui-logo/index.tsx +2 -4
  166. package/src/composites/wui-logo-select/index.tsx +4 -7
  167. package/src/composites/wui-logo-select/styles.ts +3 -3
  168. package/src/composites/wui-network-button/index.tsx +15 -22
  169. package/src/composites/wui-network-button/styles.ts +4 -4
  170. package/src/composites/wui-network-image/index.tsx +21 -57
  171. package/src/composites/wui-network-image/styles.ts +0 -6
  172. package/src/composites/wui-qr-code/index.tsx +11 -18
  173. package/src/composites/wui-snackbar/index.tsx +0 -1
  174. package/src/composites/wui-snackbar/styles.ts +1 -2
  175. package/src/composites/wui-tabs/index.tsx +9 -33
  176. package/src/composites/wui-tabs/styles.ts +2 -1
  177. package/src/index.ts +0 -12
  178. package/src/utils/ThemeUtil.ts +1 -2
  179. package/src/utils/TypesUtil.ts +6 -45
  180. package/src/utils/UiUtil.ts +0 -18
  181. package/lib/commonjs/assets/svg/ArrowBottomCircle.js +0 -21
  182. package/lib/commonjs/assets/svg/ArrowBottomCircle.js.map +0 -1
  183. package/lib/commonjs/assets/svg/Farcaster.js +0 -28
  184. package/lib/commonjs/assets/svg/Farcaster.js.map +0 -1
  185. package/lib/commonjs/assets/svg/FarcasterSquare.js +0 -28
  186. package/lib/commonjs/assets/svg/FarcasterSquare.js.map +0 -1
  187. package/lib/commonjs/assets/svg/More.js.map +0 -1
  188. package/lib/commonjs/assets/svg/Paperplane.js +0 -21
  189. package/lib/commonjs/assets/svg/Paperplane.js.map +0 -1
  190. package/lib/commonjs/assets/svg/X.js.map +0 -1
  191. package/lib/commonjs/composites/wui-account-pill/index.js +0 -73
  192. package/lib/commonjs/composites/wui-account-pill/index.js.map +0 -1
  193. package/lib/commonjs/composites/wui-account-pill/styles.js +0 -25
  194. package/lib/commonjs/composites/wui-account-pill/styles.js.map +0 -1
  195. package/lib/commonjs/composites/wui-balance/index.js +0 -27
  196. package/lib/commonjs/composites/wui-balance/index.js.map +0 -1
  197. package/lib/commonjs/composites/wui-banner/index.js +0 -36
  198. package/lib/commonjs/composites/wui-banner/index.js.map +0 -1
  199. package/lib/commonjs/composites/wui-banner/styles.js +0 -21
  200. package/lib/commonjs/composites/wui-banner/styles.js.map +0 -1
  201. package/lib/commonjs/composites/wui-compatible-network/index.js +0 -58
  202. package/lib/commonjs/composites/wui-compatible-network/index.js.map +0 -1
  203. package/lib/commonjs/composites/wui-list-social/index.js +0 -54
  204. package/lib/commonjs/composites/wui-list-social/index.js.map +0 -1
  205. package/lib/commonjs/composites/wui-list-social/styles.js +0 -34
  206. package/lib/commonjs/composites/wui-list-social/styles.js.map +0 -1
  207. package/lib/commonjs/composites/wui-list-token/index.js +0 -78
  208. package/lib/commonjs/composites/wui-list-token/index.js.map +0 -1
  209. package/lib/commonjs/composites/wui-list-token/styles.js +0 -30
  210. package/lib/commonjs/composites/wui-list-token/styles.js.map +0 -1
  211. package/lib/commonjs/composites/wui-list-transaction/index.js +0 -64
  212. package/lib/commonjs/composites/wui-list-transaction/index.js.map +0 -1
  213. package/lib/commonjs/composites/wui-list-transaction/styles.js +0 -16
  214. package/lib/commonjs/composites/wui-list-transaction/styles.js.map +0 -1
  215. package/lib/commonjs/composites/wui-list-transaction/utils.js +0 -88
  216. package/lib/commonjs/composites/wui-list-transaction/utils.js.map +0 -1
  217. package/lib/commonjs/composites/wui-token-button/index.js +0 -37
  218. package/lib/commonjs/composites/wui-token-button/index.js.map +0 -1
  219. package/lib/commonjs/composites/wui-token-button/styles.js +0 -24
  220. package/lib/commonjs/composites/wui-token-button/styles.js.map +0 -1
  221. package/lib/commonjs/composites/wui-transaction-visual/index.js +0 -73
  222. package/lib/commonjs/composites/wui-transaction-visual/index.js.map +0 -1
  223. package/lib/commonjs/composites/wui-transaction-visual/styles.js +0 -42
  224. package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +0 -1
  225. package/lib/commonjs/utils/TransactionUtil.js +0 -139
  226. package/lib/commonjs/utils/TransactionUtil.js.map +0 -1
  227. package/lib/module/assets/svg/ArrowBottomCircle.js +0 -13
  228. package/lib/module/assets/svg/ArrowBottomCircle.js.map +0 -1
  229. package/lib/module/assets/svg/Farcaster.js +0 -20
  230. package/lib/module/assets/svg/Farcaster.js.map +0 -1
  231. package/lib/module/assets/svg/FarcasterSquare.js +0 -20
  232. package/lib/module/assets/svg/FarcasterSquare.js.map +0 -1
  233. package/lib/module/assets/svg/More.js +0 -22
  234. package/lib/module/assets/svg/More.js.map +0 -1
  235. package/lib/module/assets/svg/Paperplane.js +0 -13
  236. package/lib/module/assets/svg/Paperplane.js.map +0 -1
  237. package/lib/module/assets/svg/X.js +0 -27
  238. package/lib/module/assets/svg/X.js.map +0 -1
  239. package/lib/module/composites/wui-account-pill/index.js +0 -66
  240. package/lib/module/composites/wui-account-pill/index.js.map +0 -1
  241. package/lib/module/composites/wui-account-pill/styles.js +0 -19
  242. package/lib/module/composites/wui-account-pill/styles.js.map +0 -1
  243. package/lib/module/composites/wui-balance/index.js +0 -21
  244. package/lib/module/composites/wui-balance/index.js.map +0 -1
  245. package/lib/module/composites/wui-banner/index.js +0 -29
  246. package/lib/module/composites/wui-banner/index.js.map +0 -1
  247. package/lib/module/composites/wui-banner/styles.js +0 -15
  248. package/lib/module/composites/wui-banner/styles.js.map +0 -1
  249. package/lib/module/composites/wui-compatible-network/index.js +0 -52
  250. package/lib/module/composites/wui-compatible-network/index.js.map +0 -1
  251. package/lib/module/composites/wui-list-social/index.js +0 -47
  252. package/lib/module/composites/wui-list-social/index.js.map +0 -1
  253. package/lib/module/composites/wui-list-social/styles.js +0 -28
  254. package/lib/module/composites/wui-list-social/styles.js.map +0 -1
  255. package/lib/module/composites/wui-list-token/index.js +0 -71
  256. package/lib/module/composites/wui-list-token/index.js.map +0 -1
  257. package/lib/module/composites/wui-list-token/styles.js +0 -24
  258. package/lib/module/composites/wui-list-token/styles.js.map +0 -1
  259. package/lib/module/composites/wui-list-transaction/index.js +0 -57
  260. package/lib/module/composites/wui-list-transaction/index.js.map +0 -1
  261. package/lib/module/composites/wui-list-transaction/styles.js +0 -10
  262. package/lib/module/composites/wui-list-transaction/styles.js.map +0 -1
  263. package/lib/module/composites/wui-list-transaction/utils.js +0 -79
  264. package/lib/module/composites/wui-list-transaction/utils.js.map +0 -1
  265. package/lib/module/composites/wui-token-button/index.js +0 -30
  266. package/lib/module/composites/wui-token-button/index.js.map +0 -1
  267. package/lib/module/composites/wui-token-button/styles.js +0 -18
  268. package/lib/module/composites/wui-token-button/styles.js.map +0 -1
  269. package/lib/module/composites/wui-transaction-visual/index.js +0 -66
  270. package/lib/module/composites/wui-transaction-visual/index.js.map +0 -1
  271. package/lib/module/composites/wui-transaction-visual/styles.js +0 -36
  272. package/lib/module/composites/wui-transaction-visual/styles.js.map +0 -1
  273. package/lib/module/utils/TransactionUtil.js +0 -134
  274. package/lib/module/utils/TransactionUtil.js.map +0 -1
  275. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +0 -4
  276. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +0 -1
  277. package/lib/typescript/assets/svg/Farcaster.d.ts +0 -4
  278. package/lib/typescript/assets/svg/Farcaster.d.ts.map +0 -1
  279. package/lib/typescript/assets/svg/FarcasterSquare.d.ts +0 -4
  280. package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +0 -1
  281. package/lib/typescript/assets/svg/More.d.ts +0 -4
  282. package/lib/typescript/assets/svg/More.d.ts.map +0 -1
  283. package/lib/typescript/assets/svg/Paperplane.d.ts +0 -4
  284. package/lib/typescript/assets/svg/Paperplane.d.ts.map +0 -1
  285. package/lib/typescript/assets/svg/X.d.ts +0 -4
  286. package/lib/typescript/assets/svg/X.d.ts.map +0 -1
  287. package/lib/typescript/composites/wui-account-pill/index.d.ts +0 -11
  288. package/lib/typescript/composites/wui-account-pill/index.d.ts.map +0 -1
  289. package/lib/typescript/composites/wui-account-pill/styles.d.ts +0 -18
  290. package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +0 -1
  291. package/lib/typescript/composites/wui-balance/index.d.ts +0 -6
  292. package/lib/typescript/composites/wui-balance/index.d.ts.map +0 -1
  293. package/lib/typescript/composites/wui-banner/index.d.ts +0 -7
  294. package/lib/typescript/composites/wui-banner/index.d.ts.map +0 -1
  295. package/lib/typescript/composites/wui-banner/styles.d.ts +0 -14
  296. package/lib/typescript/composites/wui-banner/styles.d.ts.map +0 -1
  297. package/lib/typescript/composites/wui-compatible-network/index.d.ts +0 -10
  298. package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +0 -1
  299. package/lib/typescript/composites/wui-list-social/index.d.ts +0 -15
  300. package/lib/typescript/composites/wui-list-social/index.d.ts.map +0 -1
  301. package/lib/typescript/composites/wui-list-social/styles.d.ts +0 -27
  302. package/lib/typescript/composites/wui-list-social/styles.d.ts.map +0 -1
  303. package/lib/typescript/composites/wui-list-token/index.d.ts +0 -11
  304. package/lib/typescript/composites/wui-list-token/index.d.ts.map +0 -1
  305. package/lib/typescript/composites/wui-list-token/styles.d.ts +0 -23
  306. package/lib/typescript/composites/wui-list-token/styles.d.ts.map +0 -1
  307. package/lib/typescript/composites/wui-list-transaction/index.d.ts +0 -15
  308. package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +0 -1
  309. package/lib/typescript/composites/wui-list-transaction/styles.d.ts +0 -10
  310. package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +0 -1
  311. package/lib/typescript/composites/wui-list-transaction/utils.d.ts +0 -6
  312. package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +0 -1
  313. package/lib/typescript/composites/wui-token-button/index.d.ts +0 -7
  314. package/lib/typescript/composites/wui-token-button/index.d.ts.map +0 -1
  315. package/lib/typescript/composites/wui-token-button/styles.d.ts +0 -17
  316. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +0 -1
  317. package/lib/typescript/composites/wui-transaction-visual/index.d.ts +0 -8
  318. package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +0 -1
  319. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +0 -35
  320. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +0 -1
  321. package/lib/typescript/utils/TransactionUtil.d.ts +0 -13
  322. package/lib/typescript/utils/TransactionUtil.d.ts.map +0 -1
  323. package/src/assets/svg/ArrowBottomCircle.tsx +0 -12
  324. package/src/assets/svg/Farcaster.tsx +0 -15
  325. package/src/assets/svg/FarcasterSquare.tsx +0 -15
  326. package/src/assets/svg/More.tsx +0 -16
  327. package/src/assets/svg/Paperplane.tsx +0 -12
  328. package/src/assets/svg/X.tsx +0 -26
  329. package/src/composites/wui-account-pill/index.tsx +0 -72
  330. package/src/composites/wui-account-pill/styles.ts +0 -19
  331. package/src/composites/wui-balance/index.tsx +0 -25
  332. package/src/composites/wui-banner/index.tsx +0 -28
  333. package/src/composites/wui-banner/styles.ts +0 -15
  334. package/src/composites/wui-compatible-network/index.tsx +0 -64
  335. package/src/composites/wui-list-social/index.tsx +0 -65
  336. package/src/composites/wui-list-social/styles.ts +0 -28
  337. package/src/composites/wui-list-token/index.tsx +0 -83
  338. package/src/composites/wui-list-token/styles.ts +0 -24
  339. package/src/composites/wui-list-transaction/index.tsx +0 -65
  340. package/src/composites/wui-list-transaction/styles.ts +0 -10
  341. package/src/composites/wui-list-transaction/utils.ts +0 -83
  342. package/src/composites/wui-token-button/index.tsx +0 -29
  343. package/src/composites/wui-token-button/styles.ts +0 -18
  344. package/src/composites/wui-transaction-visual/index.tsx +0 -78
  345. package/src/composites/wui-transaction-visual/styles.ts +0 -36
  346. package/src/utils/TransactionUtil.ts +0 -173
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-token-button/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,wBAcG"}
@@ -1,8 +0,0 @@
1
- import type { TransactionImage } from '@reown/appkit-common-react-native';
2
- export interface TransactionVisualProps {
3
- images?: TransactionImage[];
4
- networkSrc?: string;
5
- isAllNFT?: boolean;
6
- }
7
- export declare function TransactionVisual({ images, networkSrc, isAllNFT }: TransactionVisualProps): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-transaction-visual/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAQ1E,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CA+DzF"}
@@ -1,35 +0,0 @@
1
- declare const _default: {
2
- image: {
3
- height: number;
4
- width: number;
5
- borderRadius: number;
6
- marginRight: number;
7
- };
8
- imageNft: {
9
- borderRadius: number;
10
- };
11
- halfContainer: {
12
- overflow: "hidden";
13
- width: number;
14
- marginRight: number;
15
- };
16
- halfRight: {
17
- left: number;
18
- };
19
- networkImageContainer: {
20
- position: "absolute";
21
- bottom: number;
22
- left: number;
23
- borderWidth: number;
24
- borderRadius: number;
25
- width: number;
26
- height: number;
27
- };
28
- networkImage: {
29
- width: number;
30
- height: number;
31
- borderRadius: number;
32
- };
33
- };
34
- export default _default;
35
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/composites/wui-transaction-visual/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAgCG"}
@@ -1,13 +0,0 @@
1
- import type { TransactionTransfer, Transaction, TransactionImage } from '@reown/appkit-common-react-native';
2
- export declare const TransactionUtil: {
3
- getTransactionGroupTitle(year: string, month: string): string;
4
- getTransactionImages(transfers: TransactionTransfer[]): TransactionImage[];
5
- getTransactionImage(transfer?: TransactionTransfer): TransactionImage;
6
- getTransactionImageURL(transfer: TransactionTransfer | undefined): string | undefined;
7
- getTransactionTransferTokenType(transfer?: TransactionTransfer): 'FUNGIBLE' | 'NFT' | undefined;
8
- getTransactionDescriptions(transaction: Transaction): string[];
9
- getTransferDescription(transfer?: TransactionTransfer): string;
10
- getFungibleTransferDescription(transfer?: TransactionTransfer): string | null;
11
- getQuantityFixedValue(value: string | undefined): string | null;
12
- };
13
- //# sourceMappingURL=TransactionUtil.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TransactionUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/TransactionUtil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAU3C,eAAO,MAAM,eAAe;mCACK,MAAM,SAAS,MAAM;oCASpB,mBAAmB,EAAE,GAAG,gBAAgB,EAAE;mCAiB3C,mBAAmB,GAAG,gBAAgB;qCAOpC,mBAAmB,GAAG,SAAS;+CAcrB,mBAAmB,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS;4CAUvD,WAAW;sCA+DjB,mBAAmB;8CAgBX,mBAAmB;iCAWhC,MAAM,GAAG,SAAS;CAShD,CAAC"}
@@ -1,12 +0,0 @@
1
- import Svg, { Path, type SvgProps } from 'react-native-svg';
2
- const SvgArrowBottomCircle = (props: SvgProps) => (
3
- <Svg fill="none" viewBox="0 0 20 20" {...props}>
4
- <Path
5
- fillRule="evenodd"
6
- clipRule="evenodd"
7
- d="M10 2.42908C5.81875 2.42908 2.42859 5.81989 2.42859 10.0034C2.42859 14.1869 5.81875 17.5777 10 17.5777C14.1813 17.5777 17.5714 14.1869 17.5714 10.0034C17.5714 5.81989 14.1813 2.42908 10 2.42908ZM0.428589 10.0034C0.428589 4.71596 4.71355 0.429077 10 0.429077C15.2865 0.429077 19.5714 4.71596 19.5714 10.0034C19.5714 15.2908 15.2865 19.5777 10 19.5777C4.71355 19.5777 0.428589 15.2908 0.428589 10.0034ZM10 5.75003C10.5523 5.75003 11 6.19774 11 6.75003L11 10.8343L12.2929 9.54137C12.6834 9.15085 13.3166 9.15085 13.7071 9.54137C14.0976 9.9319 14.0976 10.5651 13.7071 10.9556L10.7071 13.9556C10.3166 14.3461 9.68343 14.3461 9.29291 13.9556L6.29291 10.9556C5.90239 10.5651 5.90239 9.9319 6.29291 9.54137C6.68343 9.15085 7.3166 9.15085 7.70712 9.54137L9.00002 10.8343L9.00002 6.75003C9.00002 6.19774 9.44773 5.75003 10 5.75003Z"
8
- fill={props.fill || '#fff'}
9
- />
10
- </Svg>
11
- );
12
- export default SvgArrowBottomCircle;
@@ -1,15 +0,0 @@
1
- import Svg, { Path, type SvgProps, Rect } from 'react-native-svg';
2
- const SvgFarcaster = (props: SvgProps) => (
3
- <Svg {...props} fill="none" viewBox="0 0 1000 1000">
4
- <Rect width="1000" height="1000" rx="1000" ry="1000" fill="#855DCD" />
5
- <Path
6
- fill="#fff"
7
- d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
8
- />
9
- <Path
10
- fill="#fff"
11
- d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
12
- />
13
- </Svg>
14
- );
15
- export default SvgFarcaster;
@@ -1,15 +0,0 @@
1
- import Svg, { Path, type SvgProps, Rect } from 'react-native-svg';
2
- const SvgFarcaster = (props: SvgProps) => (
3
- <Svg {...props} fill="none" viewBox="0 0 1000 1000">
4
- <Rect width="1000" height="1000" rx="300" ry="300" fill="#855DCD" />
5
- <Path
6
- fill="#fff"
7
- d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
8
- />
9
- <Path
10
- fill="#fff"
11
- d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
12
- />
13
- </Svg>
14
- );
15
- export default SvgFarcaster;
@@ -1,16 +0,0 @@
1
- import Svg, { Circle, Path, type SvgProps } from 'react-native-svg';
2
- const SvgMore = (props: SvgProps) => (
3
- <Svg viewBox="0 0 41 40" fill="none" {...props}>
4
- <Path
5
- fill={props.fill || '#fff'}
6
- fillOpacity=".05"
7
- d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z"
8
- />
9
- <Path
10
- fill="#949E9E"
11
- d="M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"
12
- />
13
- <Circle cx={20} cy={19.886} r={19.5} stroke="#fff" strokeOpacity={0.1} fill="none" />
14
- </Svg>
15
- );
16
- export default SvgMore;
@@ -1,12 +0,0 @@
1
- import Svg, { Path, type SvgProps } from 'react-native-svg';
2
- const SvgPaperplane = (props: SvgProps) => (
3
- <Svg viewBox="0 0 18 18" fill="none" {...props}>
4
- <Path
5
- fillRule="evenodd"
6
- clipRule="evenodd"
7
- d="M13.8808 2.34818C13.22 2.47804 12.3501 2.75876 11.0748 3.17302L8.50869 4.00652C6.40631 4.68941 4.90679 5.17786 3.88121 5.63184C3.37166 5.8574 3.0351 6.05097 2.82022 6.22041C2.61183 6.38473 2.57011 6.48493 2.55969 6.51823C2.48058 6.77109 2.48009 7.04201 2.55831 7.29515C2.56861 7.3285 2.60998 7.42884 2.81777 7.5939C3.03205 7.7641 3.36792 7.95887 3.87667 8.18624C4.79287 8.59572 6.08844 9.03414 7.85529 9.61644L10.3876 6.5986C10.7426 6.17553 11.3733 6.12034 11.7964 6.47534C12.2195 6.83035 12.2746 7.4611 11.9196 7.88418L9.38738 10.902C10.2676 12.5409 10.9244 13.7407 11.4867 14.5718C11.799 15.0334 12.0491 15.3303 12.2539 15.5118C12.4526 15.6878 12.5586 15.7111 12.5932 15.7154C12.8561 15.7485 13.1228 15.701 13.3581 15.5792C13.3891 15.5631 13.4805 15.5046 13.6061 15.2709C13.7357 15.0298 13.8679 14.6648 14.0015 14.1238C14.2705 13.035 14.4912 11.4734 14.7986 9.28438L15.1738 6.61255C15.3603 5.28462 15.4857 4.37923 15.4989 3.70596C15.512 3.03708 15.4047 2.80566 15.3145 2.69189C15.2044 2.55304 15.0673 2.43798 14.9114 2.35371C14.7837 2.28465 14.5372 2.21916 13.8808 2.34818ZM7.49373 11.603C5.61919 10.9864 4.1304 10.4903 3.0606 10.0122C2.48683 9.75574 1.9778 9.48086 1.57383 9.15998C1.16337 8.83395 0.813119 8.42178 0.647443 7.88557C0.449667 7.24547 0.450886 6.56041 0.65094 5.92102C0.818524 5.3854 1.17024 4.97448 1.58185 4.64992C1.98697 4.33047 2.49697 4.0574 3.07166 3.80301C4.20309 3.30217 5.80179 2.7829 7.82903 2.12443L10.5196 1.25048C11.7166 0.861654 12.7017 0.541645 13.4951 0.385722C14.3065 0.22624 15.1202 0.192948 15.8627 0.594428C16.2568 0.807527 16.6035 1.09845 16.8818 1.44956C17.4062 2.11106 17.5147 2.91821 17.4985 3.74503C17.4827 4.55338 17.3386 5.57909 17.1636 6.8254L16.7701 9.62688C16.4737 11.7377 16.2399 13.4023 15.9432 14.6035C15.7924 15.2136 15.6121 15.7633 15.3678 16.2177C15.1197 16.6794 14.7761 17.0972 14.2777 17.3552C13.6827 17.6632 13.0083 17.7834 12.3436 17.6998C11.7867 17.6297 11.32 17.3564 10.9277 17.0088C10.5415 16.6667 10.1824 16.2131 9.83023 15.6926C9.17361 14.7221 8.42648 13.342 7.49373 11.603Z"
8
- fill={props.fill || '#fff'}
9
- />
10
- </Svg>
11
- );
12
- export default SvgPaperplane;
@@ -1,26 +0,0 @@
1
- import Svg, { G, Path, Defs, ClipPath, type SvgProps, Rect } from 'react-native-svg';
2
- const SvgX = (props: SvgProps) => (
3
- <Svg viewBox="0 0 40 40" {...props} fill="none">
4
- <G clipPath="url(#clip0_22845_4959)">
5
- <Rect width="40" height="40" fill="black" />
6
- <Path
7
- d="M21.8266 18.4604L28.9742 10.1519H27.2805L21.0742 17.366L16.1172 10.1519H10.4L17.8959 21.061L10.4 29.7738H12.0938L18.6479 22.1553L23.8827 29.7738H29.6L21.8266 18.4604ZM12.7042 11.427H15.3058L27.2813 28.5567H24.6796L12.7042 11.427Z"
8
- fill="white"
9
- />
10
- </G>
11
- <Path
12
- d="M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z"
13
- stroke="white"
14
- strokeOpacity="0.05"
15
- />
16
- <Defs>
17
- <ClipPath id="clip0_22845_4959">
18
- <Path
19
- d="M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z"
20
- fill="white"
21
- />
22
- </ClipPath>
23
- </Defs>
24
- </Svg>
25
- );
26
- export default SvgX;
@@ -1,72 +0,0 @@
1
- import { Animated, Pressable, type StyleProp, type ViewStyle } from 'react-native';
2
- import { Avatar } from '../wui-avatar';
3
- import { UiUtil } from '../../utils/UiUtil';
4
- import { IconLink } from '../wui-icon-link';
5
- import { Text } from '../../components/wui-text';
6
- import useAnimatedValue from '../../hooks/useAnimatedValue';
7
- import { useTheme } from '../../hooks/useTheme';
8
- import styles from './styles';
9
-
10
- export interface AccountPillProps {
11
- onPress: () => void;
12
- onCopy: (address: string) => void;
13
- address?: string;
14
- profileName?: string;
15
- profileImage?: string;
16
- style?: StyleProp<ViewStyle>;
17
- }
18
-
19
- const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
20
-
21
- export function AccountPill({
22
- onPress,
23
- onCopy,
24
- address,
25
- profileName,
26
- profileImage,
27
- style
28
- }: AccountPillProps) {
29
- const Theme = useTheme();
30
-
31
- const { animatedValue, setStartValue, setEndValue } = useAnimatedValue(
32
- Theme['gray-glass-005'],
33
- Theme['gray-glass-010']
34
- );
35
-
36
- const backgroundColor = animatedValue;
37
- const borderColor = Theme['gray-glass-005'];
38
-
39
- const handleCopyAddress = () => {
40
- if (address) {
41
- onCopy(address);
42
- }
43
- };
44
-
45
- return (
46
- <AnimatedPressable
47
- style={[styles.container, { backgroundColor, borderColor }, style]}
48
- onPressIn={setEndValue}
49
- onPressOut={setStartValue}
50
- onPress={onPress}
51
- hitSlop={10}
52
- >
53
- <Avatar imageSrc={profileImage} address={address} size={28} borderWidth={0} />
54
- <Text variant="large-500" color="fg-100" style={styles.text}>
55
- {profileName
56
- ? UiUtil.getTruncateString({
57
- string: profileName,
58
- charsStart: 17,
59
- charsEnd: 0,
60
- truncate: 'end'
61
- })
62
- : UiUtil.getTruncateString({
63
- string: address ?? '',
64
- charsStart: 4,
65
- charsEnd: 4,
66
- truncate: 'middle'
67
- })}
68
- </Text>
69
- <IconLink icon="copy" size="sm" iconColor="fg-200" onPress={handleCopyAddress} />
70
- </AnimatedPressable>
71
- );
72
- }
@@ -1,19 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
3
-
4
- export default StyleSheet.create({
5
- container: {
6
- height: 44,
7
- minWidth: 160,
8
- maxWidth: 260,
9
- paddingLeft: Spacing.xs,
10
- flexDirection: 'row',
11
- alignItems: 'center',
12
- justifyContent: 'center',
13
- borderRadius: BorderRadius.full,
14
- borderWidth: 1
15
- },
16
- text: {
17
- marginLeft: Spacing['2xs']
18
- }
19
- });
@@ -1,25 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { Text } from '../../components/wui-text';
3
-
4
- export interface BalanceProps {
5
- integer?: string;
6
- decimal?: string;
7
- }
8
-
9
- export function Balance({ integer = '0', decimal = '00' }: BalanceProps) {
10
- return (
11
- <Text color="fg-100" style={styles.text}>
12
- {`$${integer}`}
13
- <Text color="fg-200" style={styles.text}>
14
- {`.${decimal}`}
15
- </Text>
16
- </Text>
17
- );
18
- }
19
-
20
- const styles = StyleSheet.create({
21
- text: {
22
- fontSize: 40,
23
- fontWeight: '500'
24
- }
25
- });
@@ -1,28 +0,0 @@
1
- import type { IconType } from '../../utils/TypesUtil';
2
- import { FlexView } from '../../layout/wui-flex';
3
- import { IconBox } from '../wui-icon-box';
4
- import { Text } from '../../components/wui-text';
5
- import { useTheme } from '../../hooks/useTheme';
6
- import styles from './styles';
7
-
8
- export interface BannerProps {
9
- icon: IconType;
10
- text: string;
11
- }
12
-
13
- export function Banner({ icon, text }: BannerProps) {
14
- const Theme = useTheme();
15
-
16
- return (
17
- <FlexView
18
- flexDirection="row"
19
- alignItems="center"
20
- style={[styles.container, { backgroundColor: Theme['accent-glass-010'] }]}
21
- >
22
- <IconBox icon={icon} size="sm" iconColor="fg-200" background style={styles.icon} />
23
- <Text variant="small-400" color="fg-200" style={styles.text}>
24
- {text}
25
- </Text>
26
- </FlexView>
27
- );
28
- }
@@ -1,15 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
3
-
4
- export default StyleSheet.create({
5
- container: {
6
- padding: Spacing.s,
7
- borderRadius: BorderRadius.s
8
- },
9
- icon: {
10
- marginRight: Spacing.xs
11
- },
12
- text: {
13
- flex: 1
14
- }
15
- });
@@ -1,64 +0,0 @@
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
- const offset = [20, 15, 10, 5, 0];
17
- const zIndex = [5, 4, 3, 2, 1];
18
-
19
- export function CompatibleNetwork({
20
- text,
21
- onPress,
22
- networkImages,
23
- imageHeaders,
24
- style
25
- }: CompatibleNetworkProps) {
26
- const Theme = useTheme();
27
-
28
- return (
29
- <ListItem
30
- onPress={onPress}
31
- style={[styles.container, style]}
32
- contentStyle={styles.contentContainer}
33
- chevron
34
- >
35
- <Text color="fg-200" variant="small-400">
36
- {text}
37
- </Text>
38
- <FlexView flexDirection="row" justifyContent="center" alignItems="center">
39
- {networkImages?.map((image, index) => (
40
- <NetworkImage
41
- size="xs"
42
- key={image}
43
- imageSrc={image}
44
- imageHeaders={imageHeaders}
45
- borderColor={Theme['bg-200']}
46
- borderWidth={2}
47
- style={{ left: offset[index], zIndex: zIndex[index] }}
48
- />
49
- ))}
50
- </FlexView>
51
- </ListItem>
52
- );
53
- }
54
-
55
- const styles = StyleSheet.create({
56
- container: {
57
- height: 48
58
- },
59
- contentContainer: {
60
- flexDirection: 'row',
61
- justifyContent: 'space-between',
62
- paddingRight: 0
63
- }
64
- });
@@ -1,65 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
- });
@@ -1,83 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- });