@reown/appkit-ui-react-native 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) 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/assets/visual/Profile.js +2 -2
  22. package/lib/commonjs/assets/visual/Profile.js.map +1 -1
  23. package/lib/commonjs/components/wui-card/index.js +1 -1
  24. package/lib/commonjs/components/wui-card/styles.js +1 -1
  25. package/lib/commonjs/components/wui-card/styles.js.map +1 -1
  26. package/lib/commonjs/components/wui-icon/index.js +18 -7
  27. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  28. package/lib/commonjs/components/wui-visual/index.js +6 -0
  29. package/lib/commonjs/components/wui-visual/index.js.map +1 -1
  30. package/lib/commonjs/composites/wui-account-button/index.js +13 -7
  31. package/lib/commonjs/composites/wui-account-button/index.js.map +1 -1
  32. package/lib/commonjs/composites/wui-account-button/styles.js +5 -5
  33. package/lib/commonjs/composites/wui-account-button/styles.js.map +1 -1
  34. package/lib/commonjs/composites/wui-account-pill/index.js +67 -0
  35. package/lib/commonjs/composites/wui-account-pill/index.js.map +1 -0
  36. package/lib/commonjs/composites/wui-account-pill/styles.js +29 -0
  37. package/lib/commonjs/composites/wui-account-pill/styles.js.map +1 -0
  38. package/lib/commonjs/composites/wui-avatar/styles.js +2 -1
  39. package/lib/commonjs/composites/wui-avatar/styles.js.map +1 -1
  40. package/lib/commonjs/composites/wui-balance/index.js +27 -0
  41. package/lib/commonjs/composites/wui-balance/index.js.map +1 -0
  42. package/lib/commonjs/composites/wui-banner/index.js +36 -0
  43. package/lib/commonjs/composites/wui-banner/index.js.map +1 -0
  44. package/lib/commonjs/composites/wui-banner/styles.js +21 -0
  45. package/lib/commonjs/composites/wui-banner/styles.js.map +1 -0
  46. package/lib/commonjs/composites/wui-button/index.js +3 -3
  47. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  48. package/lib/commonjs/composites/wui-button/styles.js +3 -3
  49. package/lib/commonjs/composites/wui-button/styles.js.map +1 -1
  50. package/lib/commonjs/composites/wui-card-select/index.js +4 -2
  51. package/lib/commonjs/composites/wui-card-select/index.js.map +1 -1
  52. package/lib/commonjs/composites/wui-chip/index.js +11 -9
  53. package/lib/commonjs/composites/wui-chip/index.js.map +1 -1
  54. package/lib/commonjs/composites/wui-chip/styles.js +3 -3
  55. package/lib/commonjs/composites/wui-chip/styles.js.map +1 -1
  56. package/lib/commonjs/composites/wui-compatible-network/index.js +58 -0
  57. package/lib/commonjs/composites/wui-compatible-network/index.js.map +1 -0
  58. package/lib/commonjs/composites/wui-connect-button/styles.js +1 -1
  59. package/lib/commonjs/composites/wui-connect-button/styles.js.map +1 -1
  60. package/lib/commonjs/composites/wui-icon-box/index.js +17 -1
  61. package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
  62. package/lib/commonjs/composites/wui-input-text/index.js +3 -3
  63. package/lib/commonjs/composites/wui-input-text/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-item-loader/index.js +34 -0
  71. package/lib/commonjs/composites/wui-list-item-loader/index.js.map +1 -0
  72. package/lib/commonjs/composites/wui-list-item-loader/styles.js +18 -0
  73. package/lib/commonjs/composites/wui-list-item-loader/styles.js.map +1 -0
  74. package/lib/commonjs/composites/wui-list-social/index.js +54 -0
  75. package/lib/commonjs/composites/wui-list-social/index.js.map +1 -0
  76. package/lib/commonjs/composites/wui-list-social/styles.js +34 -0
  77. package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -0
  78. package/lib/commonjs/composites/wui-list-token/index.js +78 -0
  79. package/lib/commonjs/composites/wui-list-token/index.js.map +1 -0
  80. package/lib/commonjs/composites/wui-list-token/styles.js +30 -0
  81. package/lib/commonjs/composites/wui-list-token/styles.js.map +1 -0
  82. package/lib/commonjs/composites/wui-list-transaction/index.js +64 -0
  83. package/lib/commonjs/composites/wui-list-transaction/index.js.map +1 -0
  84. package/lib/commonjs/composites/wui-list-transaction/styles.js +16 -0
  85. package/lib/commonjs/composites/wui-list-transaction/styles.js.map +1 -0
  86. package/lib/commonjs/composites/wui-list-transaction/utils.js +88 -0
  87. package/lib/commonjs/composites/wui-list-transaction/utils.js.map +1 -0
  88. package/lib/commonjs/composites/wui-list-wallet/index.js +1 -1
  89. package/lib/commonjs/composites/wui-list-wallet/index.js.map +1 -1
  90. package/lib/commonjs/composites/wui-logo/index.js +4 -2
  91. package/lib/commonjs/composites/wui-logo/index.js.map +1 -1
  92. package/lib/commonjs/composites/wui-logo-select/index.js +6 -3
  93. package/lib/commonjs/composites/wui-logo-select/index.js.map +1 -1
  94. package/lib/commonjs/composites/wui-logo-select/styles.js +3 -3
  95. package/lib/commonjs/composites/wui-logo-select/styles.js.map +1 -1
  96. package/lib/commonjs/composites/wui-network-button/index.js +17 -11
  97. package/lib/commonjs/composites/wui-network-button/index.js.map +1 -1
  98. package/lib/commonjs/composites/wui-network-button/styles.js +4 -4
  99. package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
  100. package/lib/commonjs/composites/wui-network-image/index.js +48 -21
  101. package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
  102. package/lib/commonjs/composites/wui-network-image/styles.js +3 -1
  103. package/lib/commonjs/composites/wui-network-image/styles.js.map +1 -1
  104. package/lib/commonjs/composites/wui-otp/index.js +1 -2
  105. package/lib/commonjs/composites/wui-otp/index.js.map +1 -1
  106. package/lib/commonjs/composites/wui-promo/index.js +48 -0
  107. package/lib/commonjs/composites/wui-promo/index.js.map +1 -0
  108. package/lib/commonjs/composites/wui-qr-code/index.js +20 -13
  109. package/lib/commonjs/composites/wui-qr-code/index.js.map +1 -1
  110. package/lib/commonjs/composites/wui-search-bar/index.js +2 -4
  111. package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
  112. package/lib/commonjs/composites/wui-snackbar/index.js +3 -1
  113. package/lib/commonjs/composites/wui-snackbar/index.js.map +1 -1
  114. package/lib/commonjs/composites/wui-snackbar/styles.js +3 -2
  115. package/lib/commonjs/composites/wui-snackbar/styles.js.map +1 -1
  116. package/lib/commonjs/composites/wui-tabs/index.js +22 -8
  117. package/lib/commonjs/composites/wui-tabs/index.js.map +1 -1
  118. package/lib/commonjs/composites/wui-tabs/styles.js +2 -3
  119. package/lib/commonjs/composites/wui-tabs/styles.js.map +1 -1
  120. package/lib/commonjs/composites/wui-token-button/index.js +37 -0
  121. package/lib/commonjs/composites/wui-token-button/index.js.map +1 -0
  122. package/lib/commonjs/composites/wui-token-button/styles.js +24 -0
  123. package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -0
  124. package/lib/commonjs/composites/wui-transaction-visual/index.js +73 -0
  125. package/lib/commonjs/composites/wui-transaction-visual/index.js.map +1 -0
  126. package/lib/commonjs/composites/wui-transaction-visual/styles.js +42 -0
  127. package/lib/commonjs/composites/wui-transaction-visual/styles.js.map +1 -0
  128. package/lib/commonjs/composites/wui-wallet-image/styles.js +1 -1
  129. package/lib/commonjs/composites/wui-wallet-image/styles.js.map +1 -1
  130. package/lib/commonjs/index.js +77 -0
  131. package/lib/commonjs/index.js.map +1 -1
  132. package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
  133. package/lib/commonjs/utils/ThemeUtil.js +4 -2
  134. package/lib/commonjs/utils/ThemeUtil.js.map +1 -1
  135. package/lib/commonjs/utils/TransactionUtil.js +139 -0
  136. package/lib/commonjs/utils/TransactionUtil.js.map +1 -0
  137. package/lib/commonjs/utils/UiUtil.js +15 -0
  138. package/lib/commonjs/utils/UiUtil.js.map +1 -1
  139. package/lib/module/assets/svg/ArrowBottomCircle.js +13 -0
  140. package/lib/module/assets/svg/ArrowBottomCircle.js.map +1 -0
  141. package/lib/module/assets/svg/Farcaster.js +20 -0
  142. package/lib/module/assets/svg/Farcaster.js.map +1 -0
  143. package/lib/module/assets/svg/FarcasterSquare.js +20 -0
  144. package/lib/module/assets/svg/FarcasterSquare.js.map +1 -0
  145. package/lib/module/assets/svg/More.js +22 -0
  146. package/lib/module/assets/svg/More.js.map +1 -0
  147. package/lib/module/assets/svg/Paperplane.js +13 -0
  148. package/lib/module/assets/svg/Paperplane.js.map +1 -0
  149. package/lib/module/assets/svg/WalletConnect.js +18 -1
  150. package/lib/module/assets/svg/WalletConnect.js.map +1 -1
  151. package/lib/module/assets/svg/X.js +27 -0
  152. package/lib/module/assets/svg/X.js.map +1 -0
  153. package/lib/module/assets/visual/Google.js +51 -0
  154. package/lib/module/assets/visual/Google.js.map +1 -0
  155. package/lib/module/assets/visual/Lightbulb.js +50 -0
  156. package/lib/module/assets/visual/Lightbulb.js.map +1 -0
  157. package/lib/module/assets/visual/Pencil.js +73 -0
  158. package/lib/module/assets/visual/Pencil.js.map +1 -0
  159. package/lib/module/assets/visual/Profile.js +2 -2
  160. package/lib/module/assets/visual/Profile.js.map +1 -1
  161. package/lib/module/components/wui-card/index.js +1 -1
  162. package/lib/module/components/wui-card/styles.js +1 -1
  163. package/lib/module/components/wui-card/styles.js.map +1 -1
  164. package/lib/module/components/wui-icon/index.js +16 -7
  165. package/lib/module/components/wui-icon/index.js.map +1 -1
  166. package/lib/module/components/wui-visual/index.js +6 -0
  167. package/lib/module/components/wui-visual/index.js.map +1 -1
  168. package/lib/module/composites/wui-account-button/index.js +13 -7
  169. package/lib/module/composites/wui-account-button/index.js.map +1 -1
  170. package/lib/module/composites/wui-account-button/styles.js +6 -6
  171. package/lib/module/composites/wui-account-button/styles.js.map +1 -1
  172. package/lib/module/composites/wui-account-pill/index.js +60 -0
  173. package/lib/module/composites/wui-account-pill/index.js.map +1 -0
  174. package/lib/module/composites/wui-account-pill/styles.js +23 -0
  175. package/lib/module/composites/wui-account-pill/styles.js.map +1 -0
  176. package/lib/module/composites/wui-avatar/styles.js +2 -1
  177. package/lib/module/composites/wui-avatar/styles.js.map +1 -1
  178. package/lib/module/composites/wui-balance/index.js +21 -0
  179. package/lib/module/composites/wui-balance/index.js.map +1 -0
  180. package/lib/module/composites/wui-banner/index.js +29 -0
  181. package/lib/module/composites/wui-banner/index.js.map +1 -0
  182. package/lib/module/composites/wui-banner/styles.js +15 -0
  183. package/lib/module/composites/wui-banner/styles.js.map +1 -0
  184. package/lib/module/composites/wui-button/index.js +3 -3
  185. package/lib/module/composites/wui-button/index.js.map +1 -1
  186. package/lib/module/composites/wui-button/styles.js +3 -3
  187. package/lib/module/composites/wui-button/styles.js.map +1 -1
  188. package/lib/module/composites/wui-card-select/index.js +4 -2
  189. package/lib/module/composites/wui-card-select/index.js.map +1 -1
  190. package/lib/module/composites/wui-chip/index.js +12 -10
  191. package/lib/module/composites/wui-chip/index.js.map +1 -1
  192. package/lib/module/composites/wui-chip/styles.js +3 -3
  193. package/lib/module/composites/wui-chip/styles.js.map +1 -1
  194. package/lib/module/composites/wui-compatible-network/index.js +52 -0
  195. package/lib/module/composites/wui-compatible-network/index.js.map +1 -0
  196. package/lib/module/composites/wui-connect-button/styles.js +1 -1
  197. package/lib/module/composites/wui-connect-button/styles.js.map +1 -1
  198. package/lib/module/composites/wui-icon-box/index.js +17 -1
  199. package/lib/module/composites/wui-icon-box/index.js.map +1 -1
  200. package/lib/module/composites/wui-input-text/index.js +3 -3
  201. package/lib/module/composites/wui-input-text/index.js.map +1 -1
  202. package/lib/module/composites/wui-input-text/styles.js +1 -1
  203. package/lib/module/composites/wui-input-text/styles.js.map +1 -1
  204. package/lib/module/composites/wui-list-item/index.js +10 -10
  205. package/lib/module/composites/wui-list-item/index.js.map +1 -1
  206. package/lib/module/composites/wui-list-item/styles.js +4 -3
  207. package/lib/module/composites/wui-list-item/styles.js.map +1 -1
  208. package/lib/module/composites/wui-list-item-loader/index.js +27 -0
  209. package/lib/module/composites/wui-list-item-loader/index.js.map +1 -0
  210. package/lib/module/composites/wui-list-item-loader/styles.js +12 -0
  211. package/lib/module/composites/wui-list-item-loader/styles.js.map +1 -0
  212. package/lib/module/composites/wui-list-social/index.js +47 -0
  213. package/lib/module/composites/wui-list-social/index.js.map +1 -0
  214. package/lib/module/composites/wui-list-social/styles.js +28 -0
  215. package/lib/module/composites/wui-list-social/styles.js.map +1 -0
  216. package/lib/module/composites/wui-list-token/index.js +71 -0
  217. package/lib/module/composites/wui-list-token/index.js.map +1 -0
  218. package/lib/module/composites/wui-list-token/styles.js +24 -0
  219. package/lib/module/composites/wui-list-token/styles.js.map +1 -0
  220. package/lib/module/composites/wui-list-transaction/index.js +57 -0
  221. package/lib/module/composites/wui-list-transaction/index.js.map +1 -0
  222. package/lib/module/composites/wui-list-transaction/styles.js +10 -0
  223. package/lib/module/composites/wui-list-transaction/styles.js.map +1 -0
  224. package/lib/module/composites/wui-list-transaction/utils.js +79 -0
  225. package/lib/module/composites/wui-list-transaction/utils.js.map +1 -0
  226. package/lib/module/composites/wui-list-wallet/index.js +1 -1
  227. package/lib/module/composites/wui-list-wallet/index.js.map +1 -1
  228. package/lib/module/composites/wui-logo/index.js +4 -2
  229. package/lib/module/composites/wui-logo/index.js.map +1 -1
  230. package/lib/module/composites/wui-logo-select/index.js +6 -3
  231. package/lib/module/composites/wui-logo-select/index.js.map +1 -1
  232. package/lib/module/composites/wui-logo-select/styles.js +3 -3
  233. package/lib/module/composites/wui-logo-select/styles.js.map +1 -1
  234. package/lib/module/composites/wui-network-button/index.js +18 -12
  235. package/lib/module/composites/wui-network-button/index.js.map +1 -1
  236. package/lib/module/composites/wui-network-button/styles.js +5 -5
  237. package/lib/module/composites/wui-network-button/styles.js.map +1 -1
  238. package/lib/module/composites/wui-network-image/index.js +49 -22
  239. package/lib/module/composites/wui-network-image/index.js.map +1 -1
  240. package/lib/module/composites/wui-network-image/styles.js +2 -0
  241. package/lib/module/composites/wui-network-image/styles.js.map +1 -1
  242. package/lib/module/composites/wui-otp/index.js +2 -3
  243. package/lib/module/composites/wui-otp/index.js.map +1 -1
  244. package/lib/module/composites/wui-promo/index.js +42 -0
  245. package/lib/module/composites/wui-promo/index.js.map +1 -0
  246. package/lib/module/composites/wui-qr-code/index.js +20 -13
  247. package/lib/module/composites/wui-qr-code/index.js.map +1 -1
  248. package/lib/module/composites/wui-search-bar/index.js +2 -4
  249. package/lib/module/composites/wui-search-bar/index.js.map +1 -1
  250. package/lib/module/composites/wui-snackbar/index.js +3 -1
  251. package/lib/module/composites/wui-snackbar/index.js.map +1 -1
  252. package/lib/module/composites/wui-snackbar/styles.js +3 -2
  253. package/lib/module/composites/wui-snackbar/styles.js.map +1 -1
  254. package/lib/module/composites/wui-tabs/index.js +22 -8
  255. package/lib/module/composites/wui-tabs/index.js.map +1 -1
  256. package/lib/module/composites/wui-tabs/styles.js +2 -3
  257. package/lib/module/composites/wui-tabs/styles.js.map +1 -1
  258. package/lib/module/composites/wui-token-button/index.js +30 -0
  259. package/lib/module/composites/wui-token-button/index.js.map +1 -0
  260. package/lib/module/composites/wui-token-button/styles.js +18 -0
  261. package/lib/module/composites/wui-token-button/styles.js.map +1 -0
  262. package/lib/module/composites/wui-transaction-visual/index.js +66 -0
  263. package/lib/module/composites/wui-transaction-visual/index.js.map +1 -0
  264. package/lib/module/composites/wui-transaction-visual/styles.js +36 -0
  265. package/lib/module/composites/wui-transaction-visual/styles.js.map +1 -0
  266. package/lib/module/composites/wui-wallet-image/styles.js +1 -1
  267. package/lib/module/composites/wui-wallet-image/styles.js.map +1 -1
  268. package/lib/module/index.js +11 -0
  269. package/lib/module/index.js.map +1 -1
  270. package/lib/module/layout/wui-flex/index.js.map +1 -1
  271. package/lib/module/layout/wui-separator/index.js.map +1 -1
  272. package/lib/module/utils/ThemeUtil.js +4 -2
  273. package/lib/module/utils/ThemeUtil.js.map +1 -1
  274. package/lib/module/utils/TransactionUtil.js +134 -0
  275. package/lib/module/utils/TransactionUtil.js.map +1 -0
  276. package/lib/module/utils/UiUtil.js +15 -0
  277. package/lib/module/utils/UiUtil.js.map +1 -1
  278. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts +4 -0
  279. package/lib/typescript/assets/svg/ArrowBottomCircle.d.ts.map +1 -0
  280. package/lib/typescript/assets/svg/Farcaster.d.ts +4 -0
  281. package/lib/typescript/assets/svg/Farcaster.d.ts.map +1 -0
  282. package/lib/typescript/assets/svg/FarcasterSquare.d.ts +4 -0
  283. package/lib/typescript/assets/svg/FarcasterSquare.d.ts.map +1 -0
  284. package/lib/typescript/assets/svg/More.d.ts +4 -0
  285. package/lib/typescript/assets/svg/More.d.ts.map +1 -0
  286. package/lib/typescript/assets/svg/Paperplane.d.ts +4 -0
  287. package/lib/typescript/assets/svg/Paperplane.d.ts.map +1 -0
  288. package/lib/typescript/assets/svg/WalletConnect.d.ts +1 -0
  289. package/lib/typescript/assets/svg/WalletConnect.d.ts.map +1 -1
  290. package/lib/typescript/assets/svg/X.d.ts +4 -0
  291. package/lib/typescript/assets/svg/X.d.ts.map +1 -0
  292. package/lib/typescript/assets/visual/Google.d.ts +4 -0
  293. package/lib/typescript/assets/visual/Google.d.ts.map +1 -0
  294. package/lib/typescript/assets/visual/Lightbulb.d.ts +4 -0
  295. package/lib/typescript/assets/visual/Lightbulb.d.ts.map +1 -0
  296. package/lib/typescript/assets/visual/Pencil.d.ts +4 -0
  297. package/lib/typescript/assets/visual/Pencil.d.ts.map +1 -0
  298. package/lib/typescript/components/wui-icon/index.d.ts +1 -1
  299. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  300. package/lib/typescript/components/wui-visual/index.d.ts.map +1 -1
  301. package/lib/typescript/composites/wui-account-button/index.d.ts +2 -2
  302. package/lib/typescript/composites/wui-account-button/index.d.ts.map +1 -1
  303. package/lib/typescript/composites/wui-account-pill/index.d.ts +10 -0
  304. package/lib/typescript/composites/wui-account-pill/index.d.ts.map +1 -0
  305. package/lib/typescript/composites/wui-account-pill/styles.d.ts +22 -0
  306. package/lib/typescript/composites/wui-account-pill/styles.d.ts.map +1 -0
  307. package/lib/typescript/composites/wui-avatar/styles.d.ts.map +1 -1
  308. package/lib/typescript/composites/wui-balance/index.d.ts +6 -0
  309. package/lib/typescript/composites/wui-balance/index.d.ts.map +1 -0
  310. package/lib/typescript/composites/wui-banner/index.d.ts +7 -0
  311. package/lib/typescript/composites/wui-banner/index.d.ts.map +1 -0
  312. package/lib/typescript/composites/wui-banner/styles.d.ts +14 -0
  313. package/lib/typescript/composites/wui-banner/styles.d.ts.map +1 -0
  314. package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
  315. package/lib/typescript/composites/wui-card-select/index.d.ts +2 -1
  316. package/lib/typescript/composites/wui-card-select/index.d.ts.map +1 -1
  317. package/lib/typescript/composites/wui-chip/index.d.ts +4 -3
  318. package/lib/typescript/composites/wui-chip/index.d.ts.map +1 -1
  319. package/lib/typescript/composites/wui-compatible-network/index.d.ts +10 -0
  320. package/lib/typescript/composites/wui-compatible-network/index.d.ts.map +1 -0
  321. package/lib/typescript/composites/wui-icon-box/index.d.ts +1 -1
  322. package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
  323. package/lib/typescript/composites/wui-list-item/index.d.ts +6 -4
  324. package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
  325. package/lib/typescript/composites/wui-list-item/styles.d.ts +1 -0
  326. package/lib/typescript/composites/wui-list-item/styles.d.ts.map +1 -1
  327. package/lib/typescript/composites/wui-list-item-loader/index.d.ts +6 -0
  328. package/lib/typescript/composites/wui-list-item-loader/index.d.ts.map +1 -0
  329. package/lib/typescript/composites/wui-list-item-loader/styles.d.ts +11 -0
  330. package/lib/typescript/composites/wui-list-item-loader/styles.d.ts.map +1 -0
  331. package/lib/typescript/composites/wui-list-social/index.d.ts +15 -0
  332. package/lib/typescript/composites/wui-list-social/index.d.ts.map +1 -0
  333. package/lib/typescript/composites/wui-list-social/styles.d.ts +27 -0
  334. package/lib/typescript/composites/wui-list-social/styles.d.ts.map +1 -0
  335. package/lib/typescript/composites/wui-list-token/index.d.ts +11 -0
  336. package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -0
  337. package/lib/typescript/composites/wui-list-token/styles.d.ts +23 -0
  338. package/lib/typescript/composites/wui-list-token/styles.d.ts.map +1 -0
  339. package/lib/typescript/composites/wui-list-transaction/index.d.ts +15 -0
  340. package/lib/typescript/composites/wui-list-transaction/index.d.ts.map +1 -0
  341. package/lib/typescript/composites/wui-list-transaction/styles.d.ts +10 -0
  342. package/lib/typescript/composites/wui-list-transaction/styles.d.ts.map +1 -0
  343. package/lib/typescript/composites/wui-list-transaction/utils.d.ts +6 -0
  344. package/lib/typescript/composites/wui-list-transaction/utils.d.ts.map +1 -0
  345. package/lib/typescript/composites/wui-list-wallet/index.d.ts.map +1 -1
  346. package/lib/typescript/composites/wui-logo/index.d.ts +3 -1
  347. package/lib/typescript/composites/wui-logo/index.d.ts.map +1 -1
  348. package/lib/typescript/composites/wui-logo-select/index.d.ts +4 -1
  349. package/lib/typescript/composites/wui-logo-select/index.d.ts.map +1 -1
  350. package/lib/typescript/composites/wui-network-button/index.d.ts +7 -4
  351. package/lib/typescript/composites/wui-network-button/index.d.ts.map +1 -1
  352. package/lib/typescript/composites/wui-network-button/styles.d.ts +1 -1
  353. package/lib/typescript/composites/wui-network-image/index.d.ts +6 -2
  354. package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
  355. package/lib/typescript/composites/wui-network-image/styles.d.ts +2 -0
  356. package/lib/typescript/composites/wui-network-image/styles.d.ts.map +1 -1
  357. package/lib/typescript/composites/wui-otp/index.d.ts.map +1 -1
  358. package/lib/typescript/composites/wui-promo/index.d.ts +8 -0
  359. package/lib/typescript/composites/wui-promo/index.d.ts.map +1 -0
  360. package/lib/typescript/composites/wui-qr-code/index.d.ts +6 -1
  361. package/lib/typescript/composites/wui-qr-code/index.d.ts.map +1 -1
  362. package/lib/typescript/composites/wui-search-bar/index.d.ts +1 -2
  363. package/lib/typescript/composites/wui-search-bar/index.d.ts.map +1 -1
  364. package/lib/typescript/composites/wui-snackbar/index.d.ts.map +1 -1
  365. package/lib/typescript/composites/wui-snackbar/styles.d.ts.map +1 -1
  366. package/lib/typescript/composites/wui-tabs/index.d.ts +4 -2
  367. package/lib/typescript/composites/wui-tabs/index.d.ts.map +1 -1
  368. package/lib/typescript/composites/wui-tabs/styles.d.ts +1 -2
  369. package/lib/typescript/composites/wui-tabs/styles.d.ts.map +1 -1
  370. package/lib/typescript/composites/wui-token-button/index.d.ts +7 -0
  371. package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -0
  372. package/lib/typescript/composites/wui-token-button/styles.d.ts +17 -0
  373. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -0
  374. package/lib/typescript/composites/wui-transaction-visual/index.d.ts +8 -0
  375. package/lib/typescript/composites/wui-transaction-visual/index.d.ts.map +1 -0
  376. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts +35 -0
  377. package/lib/typescript/composites/wui-transaction-visual/styles.d.ts.map +1 -0
  378. package/lib/typescript/index.d.ts +11 -0
  379. package/lib/typescript/index.d.ts.map +1 -1
  380. package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
  381. package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
  382. package/lib/typescript/utils/ThemeUtil.d.ts +2 -0
  383. package/lib/typescript/utils/ThemeUtil.d.ts.map +1 -1
  384. package/lib/typescript/utils/TransactionUtil.d.ts +13 -0
  385. package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -0
  386. package/lib/typescript/utils/TypesUtil.d.ts +6 -5
  387. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  388. package/lib/typescript/utils/UiUtil.d.ts +1 -0
  389. package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
  390. package/package.json +4 -4
  391. package/readme.md +1 -1
  392. package/src/assets/svg/ArrowBottomCircle.tsx +12 -0
  393. package/src/assets/svg/Farcaster.tsx +15 -0
  394. package/src/assets/svg/FarcasterSquare.tsx +15 -0
  395. package/src/assets/svg/More.tsx +16 -0
  396. package/src/assets/svg/Paperplane.tsx +12 -0
  397. package/src/assets/svg/WalletConnect.tsx +24 -1
  398. package/src/assets/svg/X.tsx +26 -0
  399. package/src/assets/visual/Google.tsx +43 -0
  400. package/src/assets/visual/Lightbulb.tsx +54 -0
  401. package/src/assets/visual/Pencil.tsx +80 -0
  402. package/src/assets/visual/Profile.tsx +2 -2
  403. package/src/components/wui-card/index.tsx +1 -1
  404. package/src/components/wui-card/styles.ts +1 -1
  405. package/src/components/wui-icon/index.tsx +17 -8
  406. package/src/components/wui-visual/index.tsx +6 -0
  407. package/src/composites/wui-account-button/index.tsx +17 -8
  408. package/src/composites/wui-account-button/styles.ts +6 -6
  409. package/src/composites/wui-account-pill/index.tsx +64 -0
  410. package/src/composites/wui-account-pill/styles.ts +23 -0
  411. package/src/composites/wui-avatar/styles.ts +2 -1
  412. package/src/composites/wui-balance/index.tsx +25 -0
  413. package/src/composites/wui-banner/index.tsx +28 -0
  414. package/src/composites/wui-banner/styles.ts +15 -0
  415. package/src/composites/wui-button/index.tsx +12 -10
  416. package/src/composites/wui-button/styles.ts +3 -3
  417. package/src/composites/wui-card-select/index.tsx +4 -1
  418. package/src/composites/wui-chip/index.tsx +14 -13
  419. package/src/composites/wui-chip/styles.ts +3 -3
  420. package/src/composites/wui-compatible-network/index.tsx +64 -0
  421. package/src/composites/wui-connect-button/styles.ts +1 -1
  422. package/src/composites/wui-icon-box/index.tsx +18 -2
  423. package/src/composites/wui-input-text/index.tsx +1 -1
  424. package/src/composites/wui-input-text/styles.ts +1 -1
  425. package/src/composites/wui-list-item/index.tsx +15 -14
  426. package/src/composites/wui-list-item/styles.ts +4 -3
  427. package/src/composites/wui-list-item-loader/index.tsx +29 -0
  428. package/src/composites/wui-list-item-loader/styles.ts +12 -0
  429. package/src/composites/wui-list-social/index.tsx +65 -0
  430. package/src/composites/wui-list-social/styles.ts +28 -0
  431. package/src/composites/wui-list-token/index.tsx +83 -0
  432. package/src/composites/wui-list-token/styles.ts +24 -0
  433. package/src/composites/wui-list-transaction/index.tsx +65 -0
  434. package/src/composites/wui-list-transaction/styles.ts +10 -0
  435. package/src/composites/wui-list-transaction/utils.ts +83 -0
  436. package/src/composites/wui-list-wallet/index.tsx +2 -2
  437. package/src/composites/wui-logo/index.tsx +4 -2
  438. package/src/composites/wui-logo-select/index.tsx +7 -4
  439. package/src/composites/wui-logo-select/styles.ts +3 -3
  440. package/src/composites/wui-network-button/index.tsx +25 -15
  441. package/src/composites/wui-network-button/styles.ts +5 -5
  442. package/src/composites/wui-network-image/index.tsx +57 -21
  443. package/src/composites/wui-network-image/styles.ts +6 -0
  444. package/src/composites/wui-otp/index.tsx +2 -4
  445. package/src/composites/wui-promo/index.tsx +42 -0
  446. package/src/composites/wui-qr-code/index.tsx +21 -12
  447. package/src/composites/wui-search-bar/index.tsx +1 -4
  448. package/src/composites/wui-snackbar/index.tsx +7 -1
  449. package/src/composites/wui-snackbar/styles.ts +3 -2
  450. package/src/composites/wui-tabs/index.tsx +33 -9
  451. package/src/composites/wui-tabs/styles.ts +2 -3
  452. package/src/composites/wui-token-button/index.tsx +29 -0
  453. package/src/composites/wui-token-button/styles.ts +18 -0
  454. package/src/composites/wui-transaction-visual/index.tsx +78 -0
  455. package/src/composites/wui-transaction-visual/styles.ts +36 -0
  456. package/src/composites/wui-wallet-image/styles.ts +1 -1
  457. package/src/index.ts +14 -0
  458. package/src/layout/wui-flex/index.tsx +1 -2
  459. package/src/layout/wui-separator/index.tsx +1 -1
  460. package/src/utils/ThemeUtil.ts +4 -2
  461. package/src/utils/TransactionUtil.ts +173 -0
  462. package/src/utils/TypesUtil.ts +58 -6
  463. package/src/utils/UiUtil.ts +18 -0
  464. package/lib/commonjs/assets/svg/Twitter.js.map +0 -1
  465. package/lib/commonjs/assets/svg/TwitterIcon.js.map +0 -1
  466. package/lib/module/assets/svg/Twitter.js +0 -37
  467. package/lib/module/assets/svg/Twitter.js.map +0 -1
  468. package/lib/module/assets/svg/TwitterIcon.js +0 -11
  469. package/lib/module/assets/svg/TwitterIcon.js.map +0 -1
  470. package/lib/typescript/assets/svg/Twitter.d.ts +0 -4
  471. package/lib/typescript/assets/svg/Twitter.d.ts.map +0 -1
  472. package/lib/typescript/assets/svg/TwitterIcon.d.ts +0 -4
  473. package/lib/typescript/assets/svg/TwitterIcon.d.ts.map +0 -1
  474. package/src/assets/svg/Twitter.tsx +0 -27
  475. package/src/assets/svg/TwitterIcon.tsx +0 -10
@@ -1,49 +1,85 @@
1
1
  import { Path, Svg, Image, Defs, Pattern } from 'react-native-svg';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
2
3
  import { useTheme } from '../../hooks/useTheme';
3
4
  import type { SizeType } from '../../utils/TypesUtil';
4
- import { PathLg, PathNormal } from './styles';
5
+ import { Icon } from '../../components/wui-icon';
6
+ import { FlexView } from '../../layout/wui-flex';
7
+ import { PathLg, PathNormal, PathSmall, PathXS } from './styles';
5
8
 
6
9
  export interface NetworkImageProps {
7
10
  imageSrc?: string;
8
11
  imageHeaders?: Record<string, string>;
9
12
  selected?: boolean;
10
- size?: Exclude<SizeType, 'xl' | 'sm' | 'xs' | 'xxs'>;
13
+ size?: Exclude<SizeType, 'xl' | 'xxs'>;
11
14
  disabled?: boolean;
15
+ style?: StyleProp<ViewStyle>;
16
+ borderColor?: string;
17
+ borderWidth?: number;
12
18
  }
13
19
 
20
+ const sizeToPath = {
21
+ lg: PathLg,
22
+ md: PathNormal,
23
+ sm: PathSmall,
24
+ xs: PathXS
25
+ };
26
+
27
+ const sizeToHeight = {
28
+ lg: 96,
29
+ md: 56,
30
+ sm: 40,
31
+ xs: 20
32
+ };
33
+
14
34
  export function NetworkImage({
15
35
  imageSrc,
16
36
  imageHeaders,
17
37
  disabled,
18
38
  selected,
19
- size = 'md'
39
+ size = 'md',
40
+ style,
41
+ borderColor,
42
+ borderWidth = 1
20
43
  }: NetworkImageProps) {
21
44
  const Theme = useTheme();
22
- const isLg = size === 'lg';
23
- const svgWidth = isLg ? 96 : 56;
24
- const svgHeight = isLg ? 96 : 56;
25
45
  const svgStroke = selected ? Theme['accent-100'] : Theme['gray-glass-010'];
26
46
  const opacity = disabled ? 0.5 : 1;
27
47
 
28
48
  return (
29
- <Svg width={svgWidth} height={svgHeight} stroke={svgStroke} strokeWidth={1}>
49
+ <Svg
50
+ width={sizeToHeight[size]}
51
+ height={sizeToHeight[size]}
52
+ stroke={borderColor ?? svgStroke}
53
+ strokeWidth={borderWidth}
54
+ style={style}
55
+ >
30
56
  <Defs>
31
- <Pattern id="image-pattern" x="0" y="0" width="1" height="1">
32
- <Image
33
- height={svgHeight}
34
- width={svgWidth}
35
- x="0"
36
- y="0"
37
- opacity={opacity}
38
- href={{ uri: imageSrc, headers: imageHeaders }}
39
- />
57
+ <Pattern id="image-pattern">
58
+ {imageSrc ? (
59
+ <Image
60
+ height={sizeToHeight[size]}
61
+ width={sizeToHeight[size]}
62
+ opacity={opacity}
63
+ href={{ uri: imageSrc, headers: imageHeaders }}
64
+ />
65
+ ) : (
66
+ <FlexView
67
+ alignItems="center"
68
+ justifyContent="center"
69
+ // eslint-disable-next-line react-native/no-inline-styles
70
+ style={{
71
+ height: sizeToHeight[size],
72
+ width: sizeToHeight[size],
73
+ backgroundColor: 'transparent'
74
+ }}
75
+ >
76
+ <Icon name="networkPlaceholder" size={size} color="fg-200" />
77
+ </FlexView>
78
+ )}
40
79
  </Pattern>
41
80
  </Defs>
42
- <Path
43
- d={`${isLg ? PathLg : PathNormal}`}
44
- opacity={opacity}
45
- fill={imageSrc ? 'url(#image-pattern)' : Theme['gray-glass-005']}
46
- />
81
+ {!imageSrc && <Path d={sizeToPath[size]} opacity={opacity} fill={Theme['gray-glass-005']} />}
82
+ <Path d={sizeToPath[size]} opacity={opacity} fill="url(#image-pattern)" />
47
83
  </Svg>
48
84
  );
49
85
  }
@@ -3,3 +3,9 @@ export const PathLg =
3
3
 
4
4
  export const PathNormal =
5
5
  'M24.0002 2.34328C26.4754 0.914219 29.525 0.914219 32.0002 2.34328L48.2489 11.7245C50.7241 13.1535 52.2489 15.7946 52.2489 18.6527V37.4151C52.2489 40.2732 50.7241 42.9142 48.2489 44.3433L32.0002 53.7245C29.525 55.1535 26.4754 55.1535 24.0002 53.7245L7.75146 44.3433C5.27625 42.9142 3.75146 40.2732 3.75146 37.4151V18.6527C3.75146 15.7946 5.27626 13.1535 7.75146 11.7245L24.0002 2.34328Z';
6
+
7
+ export const PathSmall =
8
+ 'M17.1428 1.67377C18.9108 0.653013 21.0891 0.653014 22.8571 1.67377L34.4633 8.37463C36.2313 9.39539 37.3205 11.2818 37.3205 13.3233V26.7251C37.3205 28.7666 36.2313 30.653 34.4633 31.6738L22.8571 38.3746C21.0891 39.3954 18.9108 39.3954 17.1428 38.3746L5.53659 31.6738C3.76858 30.653 2.67944 28.7666 2.67944 26.7251V13.3233C2.67944 11.2818 3.76858 9.39539 5.53659 8.37463L17.1428 1.67377Z';
9
+
10
+ export const PathXS =
11
+ 'M8.57153 0.836886C9.45553 0.326507 10.5447 0.326507 11.4287 0.836886L17.2318 4.18731C18.1158 4.69769 18.6604 5.64091 18.6604 6.66167V13.3625C18.6604 14.3833 18.1158 15.3265 17.2318 15.8369L11.4287 19.1873C10.5447 19.6977 9.45553 19.6977 8.57153 19.1873L2.76841 15.8369C1.88441 15.3265 1.33984 14.3833 1.33984 13.3625V6.66167C1.33984 5.64091 1.88441 4.69769 2.76841 4.18731L8.57153 0.836886Z';
@@ -3,8 +3,7 @@ import {
3
3
  type NativeSyntheticEvent,
4
4
  TextInput,
5
5
  type TextInputKeyPressEventData,
6
- View,
7
- Platform
6
+ View
8
7
  } from 'react-native';
9
8
  import { InputNumeric, type InputNumericProps } from '../wui-input-numeric';
10
9
  import styles from './styles';
@@ -90,8 +89,7 @@ export function Otp({ length, style, onChangeText, autoFocus }: OtpProps) {
90
89
  inputRef={refArray[index]}
91
90
  onChangeText={text => _onChangeText(text, index)}
92
91
  onKeyPress={(e: any) => onKeyPress(e, index)}
93
- textContentType="oneTimeCode"
94
- autoComplete={Platform.OS === 'android' ? 'sms-otp' : 'one-time-code'}
92
+ autoComplete="off"
95
93
  />
96
94
  ))}
97
95
  </View>
@@ -0,0 +1,42 @@
1
+ import { Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
2
+ import { Icon } from '../../components/wui-icon';
3
+ import { Text } from '../../components/wui-text';
4
+ import { useTheme } from '../../hooks/useTheme';
5
+ import { FlexView } from '../../layout/wui-flex';
6
+ import { BorderRadius, Spacing } from '../../utils/ThemeUtil';
7
+
8
+ export interface PromoProps {
9
+ text: string;
10
+ style?: StyleProp<ViewStyle>;
11
+ onPress?: () => void;
12
+ }
13
+
14
+ export function Promo({ text, style, onPress }: PromoProps) {
15
+ const Theme = useTheme();
16
+
17
+ return (
18
+ <Pressable style={style} onPress={onPress}>
19
+ <FlexView
20
+ alignItems="center"
21
+ justifyContent="center"
22
+ flexDirection="row"
23
+ padding={['xs', 'xs', 'xs', 'm']}
24
+ style={[styles.container, { backgroundColor: Theme['gray-glass-090'] }]}
25
+ >
26
+ <Text variant="small-600" color="bg-100">
27
+ {text}
28
+ </Text>
29
+ <Icon style={styles.icon} name="arrowRight" color="bg-100" size="xs" />
30
+ </FlexView>
31
+ </Pressable>
32
+ );
33
+ }
34
+
35
+ const styles = StyleSheet.create({
36
+ container: {
37
+ borderRadius: BorderRadius.full
38
+ },
39
+ icon: {
40
+ marginLeft: Spacing['2xs']
41
+ }
42
+ });
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react';
2
- import { View } from 'react-native';
2
+ import { View, type StyleProp, type ViewStyle } from 'react-native';
3
3
  import Svg from 'react-native-svg';
4
4
  import { Icon } from '../../components/wui-icon';
5
5
  import { Image } from '../../components/wui-image';
@@ -8,29 +8,37 @@ import { Text } from '../../components/wui-text';
8
8
  import { FlexView } from '../../layout/wui-flex';
9
9
  import { QRCodeUtil } from '../../utils/QRCodeUtil';
10
10
  import { BorderRadius, LightTheme, Spacing } from '../../utils/ThemeUtil';
11
+ import type { IconType } from '../../utils/TypesUtil';
11
12
  import styles from './styles';
12
13
 
13
14
  export interface QrCodeProps {
14
15
  size: number;
15
16
  uri?: string;
16
17
  imageSrc?: string;
18
+ icon?: IconType;
17
19
  testID?: string;
20
+ arenaClear?: boolean;
21
+ style?: StyleProp<ViewStyle>;
18
22
  }
19
23
 
20
- export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
24
+ const LABEL_HEIGHT = 18;
25
+
26
+ export function QrCode({ size, uri, imageSrc, testID, arenaClear, icon, style }: QrCodeProps) {
21
27
  const Theme = LightTheme;
22
28
  const containerPadding = Spacing.l;
23
29
  const qrSize = size - containerPadding * 2;
30
+ const logoSize = arenaClear ? 0 : qrSize / 4;
31
+
24
32
  const dots = useMemo(
25
- () => (uri ? QRCodeUtil.generate(uri, qrSize, qrSize / 4) : []),
26
- [uri, qrSize]
33
+ () => (uri ? QRCodeUtil.generate(uri, qrSize, logoSize) : []),
34
+ [uri, qrSize, logoSize]
27
35
  );
28
36
 
29
- const shimmerTemplate = () => {
30
- return <Shimmer width={size} height={size} borderRadius={BorderRadius.l} />;
31
- };
32
-
33
37
  const logoTemplate = () => {
38
+ if (arenaClear) {
39
+ return null;
40
+ }
41
+
34
42
  if (imageSrc) {
35
43
  return (
36
44
  <Image
@@ -45,7 +53,7 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
45
53
 
46
54
  return (
47
55
  <Icon
48
- name="walletConnect"
56
+ name={icon ?? 'walletConnect'}
49
57
  color="accent-100"
50
58
  height={qrSize / 3.5}
51
59
  width={qrSize / 3.5}
@@ -58,7 +66,8 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
58
66
  <View
59
67
  style={[
60
68
  styles.container,
61
- { width: size, backgroundColor: Theme['bg-100'], padding: containerPadding }
69
+ { width: size, backgroundColor: Theme['bg-100'], padding: containerPadding },
70
+ style
62
71
  ]}
63
72
  testID={testID}
64
73
  >
@@ -68,7 +77,7 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
68
77
  </Svg>
69
78
  {logoTemplate()}
70
79
  </FlexView>
71
- <Text variant="small-500" color="fg-150" style={styles.label}>
80
+ <Text variant="small-500" color="fg-150" style={[styles.label, { height: LABEL_HEIGHT }]}>
72
81
  UX by{' '}
73
82
  <Text variant="small-500" color="inverse-000">
74
83
  Reown
@@ -76,6 +85,6 @@ export function QrCode({ size, uri, imageSrc, testID }: QrCodeProps) {
76
85
  </Text>
77
86
  </View>
78
87
  ) : (
79
- shimmerTemplate()
88
+ <Shimmer width={size} height={size + LABEL_HEIGHT} borderRadius={BorderRadius.l} />
80
89
  );
81
90
  }
@@ -10,15 +10,13 @@ export interface SearchBarProps {
10
10
  onSubmitEditing?: TextInputProps['onSubmitEditing'];
11
11
  onChangeText?: TextInputProps['onChangeText'];
12
12
  inputStyle?: TextInputProps['style'];
13
- testID?: string;
14
13
  }
15
14
 
16
15
  export function SearchBar({
17
16
  placeholder = 'Search wallet',
18
17
  onSubmitEditing,
19
18
  onChangeText,
20
- inputStyle,
21
- testID
19
+ inputStyle
22
20
  }: SearchBarProps) {
23
21
  const [showClear, setShowClear] = useState(false);
24
22
  const inputRef = useRef<TextInput>(null);
@@ -38,7 +36,6 @@ export function SearchBar({
38
36
  inputStyle={inputStyle}
39
37
  returnKeyType="search"
40
38
  disableFullscreenUI
41
- testID={testID}
42
39
  >
43
40
  {showClear && (
44
41
  <InputElement
@@ -17,6 +17,7 @@ export function Snackbar({ message, iconColor, icon, style }: SnackbarProps) {
17
17
 
18
18
  return (
19
19
  <Animated.View
20
+ pointerEvents="none"
20
21
  style={[
21
22
  styles.container,
22
23
  { backgroundColor: Theme['bg-175'], borderColor: Theme['gray-glass-005'] },
@@ -24,7 +25,12 @@ export function Snackbar({ message, iconColor, icon, style }: SnackbarProps) {
24
25
  ]}
25
26
  >
26
27
  <IconBox icon={icon} iconColor={iconColor} size="sm" background />
27
- <Text variant="paragraph-500" color="fg-100" style={styles.text}>
28
+ <Text
29
+ variant="paragraph-500"
30
+ color="fg-100"
31
+ style={styles.text}
32
+ testID="wui-snackbar-message"
33
+ >
28
34
  {message}
29
35
  </Text>
30
36
  </Animated.View>
@@ -1,12 +1,13 @@
1
1
  import { StyleSheet } from 'react-native';
2
+ import { BorderRadius } from '../../utils/ThemeUtil';
2
3
 
3
4
  export default StyleSheet.create({
4
5
  container: {
5
6
  height: 40,
6
7
  flexDirection: 'row',
7
8
  paddingHorizontal: 8,
8
- borderRadius: 100,
9
- borderWidth: 1,
9
+ borderRadius: BorderRadius.full,
10
+ borderWidth: StyleSheet.hairlineWidth,
10
11
  alignItems: 'center'
11
12
  },
12
13
  text: {
@@ -1,5 +1,12 @@
1
1
  import { useRef, useState } from 'react';
2
- import { Animated, Pressable, View } from 'react-native';
2
+ import {
3
+ Animated,
4
+ Pressable,
5
+ View,
6
+ type LayoutChangeEvent,
7
+ type StyleProp,
8
+ type ViewStyle
9
+ } from 'react-native';
3
10
  import { Icon } from '../../components/wui-icon';
4
11
  import { Text } from '../../components/wui-text';
5
12
  import { useTheme } from '../../hooks/useTheme';
@@ -8,13 +15,16 @@ import styles from './styles';
8
15
 
9
16
  export interface TabsProps {
10
17
  onTabChange: (index: number) => void;
11
- tabs: TabOptionType[];
18
+ tabs: TabOptionType[] | string[];
19
+ style?: StyleProp<ViewStyle>;
12
20
  }
13
21
 
14
- export function Tabs({ tabs, onTabChange }: TabsProps) {
22
+ export function Tabs({ tabs, onTabChange, style }: TabsProps) {
15
23
  const Theme = useTheme();
16
24
  const [activeTab, setActiveTab] = useState(0);
17
25
  const animatedPosition = useRef(new Animated.Value(0));
26
+ const [viewWidth, setViewWidth] = useState(1);
27
+ const tabWidth = Math.trunc(viewWidth / tabs.length) - 2;
18
28
 
19
29
  const onTabPress = (index: number) => {
20
30
  setActiveTab(index);
@@ -28,27 +38,41 @@ export function Tabs({ tabs, onTabChange }: TabsProps) {
28
38
 
29
39
  const markPosition = animatedPosition.current.interpolate({
30
40
  inputRange: [0, tabs.length - 1],
31
- outputRange: [0, 100 * (tabs.length - 1)]
41
+ outputRange: [0, tabWidth * (tabs.length - 1)]
32
42
  });
33
43
 
44
+ const onLayout = (event: LayoutChangeEvent) => {
45
+ const { width } = event.nativeEvent.layout;
46
+ setViewWidth(width);
47
+ };
48
+
34
49
  return (
35
- <View style={[styles.container, { backgroundColor: Theme['gray-glass-002'] }]}>
50
+ <View
51
+ style={[styles.container, { backgroundColor: Theme['gray-glass-002'] }, style]}
52
+ onLayout={onLayout}
53
+ >
36
54
  <Animated.View
37
55
  style={[
38
56
  styles.activeMark,
39
57
  {
40
58
  backgroundColor: Theme['gray-glass-005'],
41
59
  borderColor: Theme['gray-glass-005'],
42
- left: markPosition
60
+ left: markPosition,
61
+ width: tabWidth
43
62
  }
44
63
  ]}
45
64
  />
46
65
  {tabs.map((option, index) => {
47
66
  const isActive = index === activeTab;
67
+ const isString = typeof option === 'string';
48
68
 
49
69
  return (
50
- <Pressable onPress={() => onTabPress(index)} key={option.label} style={styles.tabItem}>
51
- {option.icon && (
70
+ <Pressable
71
+ onPress={() => onTabPress(index)}
72
+ key={isString ? option : option.label}
73
+ style={[styles.tabItem, { width: tabWidth }]}
74
+ >
75
+ {!isString && option.icon && (
52
76
  <Icon
53
77
  name={option.icon}
54
78
  size="xs"
@@ -57,7 +81,7 @@ export function Tabs({ tabs, onTabChange }: TabsProps) {
57
81
  />
58
82
  )}
59
83
  <Text variant="small-600" color={isActive ? 'fg-100' : 'fg-200'}>
60
- {option.label}
84
+ {isString ? option : option.label}
61
85
  </Text>
62
86
  </Pressable>
63
87
  );
@@ -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,23 @@ 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 { ListItemLoader, type ListItemLoaderProps } from './composites/wui-list-item-loader';
44
+ export { ListSocial, type ListSocialProps } from './composites/wui-list-social';
45
+ export { ListToken, type ListTokenProps } from './composites/wui-list-token';
46
+ export { ListTransaction, type ListTransactionProps } from './composites/wui-list-transaction';
36
47
  export { ListWallet, type ListWalletProps } from './composites/wui-list-wallet';
37
48
  export { Logo, type LogoProps } from './composites/wui-logo';
38
49
  export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
39
50
  export { NetworkButton, type NetworkButtonProps } from './composites/wui-network-button';
40
51
  export { NetworkImage, type NetworkImageProps } from './composites/wui-network-image';
41
52
  export { Otp, type OtpProps } from './composites/wui-otp';
53
+ export { Promo, type PromoProps } from './composites/wui-promo';
42
54
  export { QrCode, type QrCodeProps } from './composites/wui-qr-code';
43
55
  export { SearchBar, type SearchBarProps } from './composites/wui-search-bar';
44
56
  export { Snackbar, type SnackbarProps } from './composites/wui-snackbar';
45
57
  export { Tabs, type TabsProps } from './composites/wui-tabs';
46
58
  export { Tag, type TagProps } from './composites/wui-tag';
59
+ export { TokenButton, type TokenButtonProps } from './composites/wui-token-button';
47
60
  export { Tooltip, type TooltipProps } from './composites/wui-tooltip';
48
61
  export { WalletImage, type WalletImageProps } from './composites/wui-wallet-image';
49
62
 
@@ -66,6 +79,7 @@ export type {
66
79
  VisualType
67
80
  } from './utils/TypesUtil';
68
81
  export { UiUtil } from './utils/UiUtil';
82
+ export { TransactionUtil } from './utils/TransactionUtil';
69
83
  export { Spacing, BorderRadius } from './utils/ThemeUtil';
70
84
 
71
85
  export { useTheme } from './hooks/useTheme';