@reown/appkit-ui-react-native 1.2.6 → 1.3.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 (325) hide show
  1. package/lib/commonjs/assets/svg/ArrowBottom.js +1 -1
  2. package/lib/commonjs/assets/svg/ArrowBottomCircle.js +1 -1
  3. package/lib/commonjs/assets/svg/ArrowLeft.js +1 -1
  4. package/lib/commonjs/assets/svg/ArrowRight.js +1 -1
  5. package/lib/commonjs/assets/svg/ArrowTop.js +1 -1
  6. package/lib/commonjs/assets/svg/Browser.js +2 -2
  7. package/lib/commonjs/assets/svg/Card.js +21 -0
  8. package/lib/commonjs/assets/svg/Card.js.map +1 -0
  9. package/lib/commonjs/assets/svg/Checkmark.js +1 -1
  10. package/lib/commonjs/assets/svg/ChevronBottom.js +1 -1
  11. package/lib/commonjs/assets/svg/ChevronLeft.js +1 -1
  12. package/lib/commonjs/assets/svg/ChevronRight.js +1 -1
  13. package/lib/commonjs/assets/svg/ChevronRightSmall.js +1 -1
  14. package/lib/commonjs/assets/svg/ChevronTop.js +1 -1
  15. package/lib/commonjs/assets/svg/Clock.js +4 -4
  16. package/lib/commonjs/assets/svg/Clock.js.map +1 -1
  17. package/lib/commonjs/assets/svg/Close.js +1 -1
  18. package/lib/commonjs/assets/svg/CoinPlaceholder.js +1 -1
  19. package/lib/commonjs/assets/svg/Compass.js +1 -1
  20. package/lib/commonjs/assets/svg/Copy.js +1 -1
  21. package/lib/commonjs/assets/svg/CopySmall.js +1 -1
  22. package/lib/commonjs/assets/svg/CurrencyDollar.js +21 -0
  23. package/lib/commonjs/assets/svg/CurrencyDollar.js.map +1 -0
  24. package/lib/commonjs/assets/svg/Cursor.js +1 -1
  25. package/lib/commonjs/assets/svg/Desktop.js +2 -2
  26. package/lib/commonjs/assets/svg/Disconnect.js +1 -1
  27. package/lib/commonjs/assets/svg/Etherscan.js +1 -1
  28. package/lib/commonjs/assets/svg/Extension.js +1 -1
  29. package/lib/commonjs/assets/svg/ExternalLink.js +1 -1
  30. package/lib/commonjs/assets/svg/Filters.js +1 -1
  31. package/lib/commonjs/assets/svg/HelpCircle.js +2 -2
  32. package/lib/commonjs/assets/svg/InfoCircle.js +2 -2
  33. package/lib/commonjs/assets/svg/Mail.js +1 -1
  34. package/lib/commonjs/assets/svg/Mobile.js +2 -2
  35. package/lib/commonjs/assets/svg/More.js +1 -1
  36. package/lib/commonjs/assets/svg/NetworkPlaceholder.js +2 -2
  37. package/lib/commonjs/assets/svg/NftPlaceholder.js +1 -1
  38. package/lib/commonjs/assets/svg/Off.js +1 -1
  39. package/lib/commonjs/assets/svg/Paperplane.js +1 -1
  40. package/lib/commonjs/assets/svg/Plus.js +1 -1
  41. package/lib/commonjs/assets/svg/QrCode.js +1 -1
  42. package/lib/commonjs/assets/svg/RecycleHorizontal.js +1 -1
  43. package/lib/commonjs/assets/svg/Refresh.js +1 -1
  44. package/lib/commonjs/assets/svg/Search.js +1 -1
  45. package/lib/commonjs/assets/svg/Settings.js +21 -0
  46. package/lib/commonjs/assets/svg/Settings.js.map +1 -0
  47. package/lib/commonjs/assets/svg/SwapHorizontal.js +1 -1
  48. package/lib/commonjs/assets/svg/SwapVertical.js +1 -1
  49. package/lib/commonjs/assets/svg/Verify.js +1 -1
  50. package/lib/commonjs/assets/svg/Wallet.js +1 -1
  51. package/lib/commonjs/assets/svg/WalletConnect.js +1 -1
  52. package/lib/commonjs/assets/svg/WalletPlaceholder.js +1 -1
  53. package/lib/commonjs/assets/svg/WalletSmall.js +1 -1
  54. package/lib/commonjs/assets/svg/WarningCircle.js +2 -2
  55. package/lib/commonjs/components/wui-icon/index.js +6 -0
  56. package/lib/commonjs/components/wui-icon/index.js.map +1 -1
  57. package/lib/commonjs/components/wui-pressable/index.js +5 -2
  58. package/lib/commonjs/components/wui-pressable/index.js.map +1 -1
  59. package/lib/commonjs/composites/wui-button/index.js +3 -1
  60. package/lib/commonjs/composites/wui-button/index.js.map +1 -1
  61. package/lib/commonjs/composites/wui-button/styles.js +1 -1
  62. package/lib/commonjs/composites/wui-card-select/index.js +1 -1
  63. package/lib/commonjs/composites/wui-card-select/index.js.map +1 -1
  64. package/lib/commonjs/composites/wui-double-image-loader/index.js +57 -0
  65. package/lib/commonjs/composites/wui-double-image-loader/index.js.map +1 -0
  66. package/lib/commonjs/composites/wui-double-image-loader/index.native.js +94 -0
  67. package/lib/commonjs/composites/wui-double-image-loader/index.native.js.map +1 -0
  68. package/lib/commonjs/composites/wui-double-image-loader/styles.js +31 -0
  69. package/lib/commonjs/composites/wui-double-image-loader/styles.js.map +1 -0
  70. package/lib/commonjs/composites/wui-icon-box/index.js +4 -2
  71. package/lib/commonjs/composites/wui-icon-box/index.js.map +1 -1
  72. package/lib/commonjs/composites/wui-list-item/index.js +13 -8
  73. package/lib/commonjs/composites/wui-list-item/index.js.map +1 -1
  74. package/lib/commonjs/composites/wui-list-social/styles.js +1 -1
  75. package/lib/commonjs/composites/wui-list-social/styles.js.map +1 -1
  76. package/lib/commonjs/composites/wui-list-token/index.js +1 -3
  77. package/lib/commonjs/composites/wui-list-token/index.js.map +1 -1
  78. package/lib/commonjs/composites/wui-network-button/styles.js +1 -2
  79. package/lib/commonjs/composites/wui-network-button/styles.js.map +1 -1
  80. package/lib/commonjs/composites/wui-network-image/index.js +31 -28
  81. package/lib/commonjs/composites/wui-network-image/index.js.map +1 -1
  82. package/lib/commonjs/composites/wui-numeric-keyboard/index.js +56 -0
  83. package/lib/commonjs/composites/wui-numeric-keyboard/index.js.map +1 -0
  84. package/lib/commonjs/composites/wui-search-bar/index.js +8 -4
  85. package/lib/commonjs/composites/wui-search-bar/index.js.map +1 -1
  86. package/lib/commonjs/composites/wui-tag/index.js +3 -2
  87. package/lib/commonjs/composites/wui-tag/index.js.map +1 -1
  88. package/lib/commonjs/composites/wui-toggle/index.js +3 -2
  89. package/lib/commonjs/composites/wui-toggle/index.js.map +1 -1
  90. package/lib/commonjs/composites/wui-token-button/index.js +32 -10
  91. package/lib/commonjs/composites/wui-token-button/index.js.map +1 -1
  92. package/lib/commonjs/composites/wui-token-button/styles.js +14 -1
  93. package/lib/commonjs/composites/wui-token-button/styles.js.map +1 -1
  94. package/lib/commonjs/index.js +14 -0
  95. package/lib/commonjs/index.js.map +1 -1
  96. package/lib/commonjs/layout/wui-flex/index.js +2 -1
  97. package/lib/commonjs/layout/wui-flex/index.js.map +1 -1
  98. package/lib/commonjs/layout/wui-separator/index.js +5 -4
  99. package/lib/commonjs/layout/wui-separator/index.js.map +1 -1
  100. package/lib/module/assets/svg/ArrowBottom.js +1 -1
  101. package/lib/module/assets/svg/ArrowBottomCircle.js +1 -1
  102. package/lib/module/assets/svg/ArrowLeft.js +1 -1
  103. package/lib/module/assets/svg/ArrowRight.js +1 -1
  104. package/lib/module/assets/svg/ArrowTop.js +1 -1
  105. package/lib/module/assets/svg/Browser.js +2 -2
  106. package/lib/module/assets/svg/Card.js +13 -0
  107. package/lib/module/assets/svg/Card.js.map +1 -0
  108. package/lib/module/assets/svg/Checkmark.js +1 -1
  109. package/lib/module/assets/svg/ChevronBottom.js +1 -1
  110. package/lib/module/assets/svg/ChevronLeft.js +1 -1
  111. package/lib/module/assets/svg/ChevronRight.js +1 -1
  112. package/lib/module/assets/svg/ChevronRightSmall.js +1 -1
  113. package/lib/module/assets/svg/ChevronTop.js +1 -1
  114. package/lib/module/assets/svg/Clock.js +4 -4
  115. package/lib/module/assets/svg/Clock.js.map +1 -1
  116. package/lib/module/assets/svg/Close.js +1 -1
  117. package/lib/module/assets/svg/CoinPlaceholder.js +1 -1
  118. package/lib/module/assets/svg/Compass.js +1 -1
  119. package/lib/module/assets/svg/Copy.js +1 -1
  120. package/lib/module/assets/svg/CopySmall.js +1 -1
  121. package/lib/module/assets/svg/CurrencyDollar.js +13 -0
  122. package/lib/module/assets/svg/CurrencyDollar.js.map +1 -0
  123. package/lib/module/assets/svg/Cursor.js +1 -1
  124. package/lib/module/assets/svg/Desktop.js +2 -2
  125. package/lib/module/assets/svg/Disconnect.js +1 -1
  126. package/lib/module/assets/svg/Etherscan.js +1 -1
  127. package/lib/module/assets/svg/Extension.js +1 -1
  128. package/lib/module/assets/svg/ExternalLink.js +1 -1
  129. package/lib/module/assets/svg/Filters.js +1 -1
  130. package/lib/module/assets/svg/HelpCircle.js +2 -2
  131. package/lib/module/assets/svg/InfoCircle.js +2 -2
  132. package/lib/module/assets/svg/Mail.js +1 -1
  133. package/lib/module/assets/svg/Mobile.js +2 -2
  134. package/lib/module/assets/svg/More.js +1 -1
  135. package/lib/module/assets/svg/NetworkPlaceholder.js +2 -2
  136. package/lib/module/assets/svg/NftPlaceholder.js +1 -1
  137. package/lib/module/assets/svg/Off.js +1 -1
  138. package/lib/module/assets/svg/Paperplane.js +1 -1
  139. package/lib/module/assets/svg/Plus.js +1 -1
  140. package/lib/module/assets/svg/QrCode.js +1 -1
  141. package/lib/module/assets/svg/RecycleHorizontal.js +1 -1
  142. package/lib/module/assets/svg/Refresh.js +1 -1
  143. package/lib/module/assets/svg/Search.js +1 -1
  144. package/lib/module/assets/svg/Settings.js +13 -0
  145. package/lib/module/assets/svg/Settings.js.map +1 -0
  146. package/lib/module/assets/svg/SwapHorizontal.js +1 -1
  147. package/lib/module/assets/svg/SwapVertical.js +1 -1
  148. package/lib/module/assets/svg/Verify.js +1 -1
  149. package/lib/module/assets/svg/Wallet.js +1 -1
  150. package/lib/module/assets/svg/WalletConnect.js +1 -1
  151. package/lib/module/assets/svg/WalletPlaceholder.js +1 -1
  152. package/lib/module/assets/svg/WalletSmall.js +1 -1
  153. package/lib/module/assets/svg/WarningCircle.js +2 -2
  154. package/lib/module/components/wui-icon/index.js +6 -0
  155. package/lib/module/components/wui-icon/index.js.map +1 -1
  156. package/lib/module/components/wui-pressable/index.js +5 -2
  157. package/lib/module/components/wui-pressable/index.js.map +1 -1
  158. package/lib/module/composites/wui-button/index.js +3 -1
  159. package/lib/module/composites/wui-button/index.js.map +1 -1
  160. package/lib/module/composites/wui-button/styles.js +1 -1
  161. package/lib/module/composites/wui-card-select/index.js +1 -1
  162. package/lib/module/composites/wui-card-select/index.js.map +1 -1
  163. package/lib/module/composites/wui-double-image-loader/index.js +50 -0
  164. package/lib/module/composites/wui-double-image-loader/index.js.map +1 -0
  165. package/lib/module/composites/wui-double-image-loader/index.native.js +87 -0
  166. package/lib/module/composites/wui-double-image-loader/index.native.js.map +1 -0
  167. package/lib/module/composites/wui-double-image-loader/styles.js +25 -0
  168. package/lib/module/composites/wui-double-image-loader/styles.js.map +1 -0
  169. package/lib/module/composites/wui-icon-box/index.js +4 -2
  170. package/lib/module/composites/wui-icon-box/index.js.map +1 -1
  171. package/lib/module/composites/wui-list-item/index.js +13 -8
  172. package/lib/module/composites/wui-list-item/index.js.map +1 -1
  173. package/lib/module/composites/wui-list-social/styles.js +1 -1
  174. package/lib/module/composites/wui-list-social/styles.js.map +1 -1
  175. package/lib/module/composites/wui-list-token/index.js +1 -3
  176. package/lib/module/composites/wui-list-token/index.js.map +1 -1
  177. package/lib/module/composites/wui-network-button/styles.js +1 -2
  178. package/lib/module/composites/wui-network-button/styles.js.map +1 -1
  179. package/lib/module/composites/wui-network-image/index.js +31 -29
  180. package/lib/module/composites/wui-network-image/index.js.map +1 -1
  181. package/lib/module/composites/wui-numeric-keyboard/index.js +50 -0
  182. package/lib/module/composites/wui-numeric-keyboard/index.js.map +1 -0
  183. package/lib/module/composites/wui-search-bar/index.js +8 -4
  184. package/lib/module/composites/wui-search-bar/index.js.map +1 -1
  185. package/lib/module/composites/wui-tag/index.js +3 -2
  186. package/lib/module/composites/wui-tag/index.js.map +1 -1
  187. package/lib/module/composites/wui-toggle/index.js +3 -2
  188. package/lib/module/composites/wui-toggle/index.js.map +1 -1
  189. package/lib/module/composites/wui-token-button/index.js +29 -7
  190. package/lib/module/composites/wui-token-button/index.js.map +1 -1
  191. package/lib/module/composites/wui-token-button/styles.js +14 -1
  192. package/lib/module/composites/wui-token-button/styles.js.map +1 -1
  193. package/lib/module/index.js +2 -0
  194. package/lib/module/index.js.map +1 -1
  195. package/lib/module/layout/wui-flex/index.js +2 -1
  196. package/lib/module/layout/wui-flex/index.js.map +1 -1
  197. package/lib/module/layout/wui-separator/index.js +5 -4
  198. package/lib/module/layout/wui-separator/index.js.map +1 -1
  199. package/lib/module/utils/TransactionUtil.js.map +1 -1
  200. package/lib/typescript/assets/svg/Card.d.ts +4 -0
  201. package/lib/typescript/assets/svg/Card.d.ts.map +1 -0
  202. package/lib/typescript/assets/svg/CurrencyDollar.d.ts +4 -0
  203. package/lib/typescript/assets/svg/CurrencyDollar.d.ts.map +1 -0
  204. package/lib/typescript/assets/svg/Settings.d.ts +4 -0
  205. package/lib/typescript/assets/svg/Settings.d.ts.map +1 -0
  206. package/lib/typescript/components/wui-icon/index.d.ts.map +1 -1
  207. package/lib/typescript/components/wui-pressable/index.d.ts +2 -1
  208. package/lib/typescript/components/wui-pressable/index.d.ts.map +1 -1
  209. package/lib/typescript/components/wui-shimmer/index.d.ts +2 -2
  210. package/lib/typescript/components/wui-shimmer/index.d.ts.map +1 -1
  211. package/lib/typescript/composites/wui-button/index.d.ts +2 -1
  212. package/lib/typescript/composites/wui-button/index.d.ts.map +1 -1
  213. package/lib/typescript/composites/wui-double-image-loader/index.d.ts +16 -0
  214. package/lib/typescript/composites/wui-double-image-loader/index.d.ts.map +1 -0
  215. package/lib/typescript/composites/wui-double-image-loader/index.native.d.ts +16 -0
  216. package/lib/typescript/composites/wui-double-image-loader/index.native.d.ts.map +1 -0
  217. package/lib/typescript/composites/wui-double-image-loader/styles.d.ts +24 -0
  218. package/lib/typescript/composites/wui-double-image-loader/styles.d.ts.map +1 -0
  219. package/lib/typescript/composites/wui-icon-box/index.d.ts +2 -1
  220. package/lib/typescript/composites/wui-icon-box/index.d.ts.map +1 -1
  221. package/lib/typescript/composites/wui-list-item/index.d.ts +6 -2
  222. package/lib/typescript/composites/wui-list-item/index.d.ts.map +1 -1
  223. package/lib/typescript/composites/wui-list-token/index.d.ts.map +1 -1
  224. package/lib/typescript/composites/wui-network-button/styles.d.ts +0 -1
  225. package/lib/typescript/composites/wui-network-button/styles.d.ts.map +1 -1
  226. package/lib/typescript/composites/wui-network-image/index.d.ts.map +1 -1
  227. package/lib/typescript/composites/wui-numeric-keyboard/index.d.ts +8 -0
  228. package/lib/typescript/composites/wui-numeric-keyboard/index.d.ts.map +1 -0
  229. package/lib/typescript/composites/wui-search-bar/index.d.ts +3 -2
  230. package/lib/typescript/composites/wui-search-bar/index.d.ts.map +1 -1
  231. package/lib/typescript/composites/wui-tag/index.d.ts +3 -2
  232. package/lib/typescript/composites/wui-tag/index.d.ts.map +1 -1
  233. package/lib/typescript/composites/wui-toggle/index.d.ts +8 -1
  234. package/lib/typescript/composites/wui-toggle/index.d.ts.map +1 -1
  235. package/lib/typescript/composites/wui-token-button/index.d.ts +7 -2
  236. package/lib/typescript/composites/wui-token-button/index.d.ts.map +1 -1
  237. package/lib/typescript/composites/wui-token-button/styles.d.ts +13 -0
  238. package/lib/typescript/composites/wui-token-button/styles.d.ts.map +1 -1
  239. package/lib/typescript/index.d.ts +2 -0
  240. package/lib/typescript/index.d.ts.map +1 -1
  241. package/lib/typescript/layout/wui-flex/index.d.ts +1 -0
  242. package/lib/typescript/layout/wui-flex/index.d.ts.map +1 -1
  243. package/lib/typescript/layout/wui-separator/index.d.ts +3 -1
  244. package/lib/typescript/layout/wui-separator/index.d.ts.map +1 -1
  245. package/lib/typescript/utils/TransactionUtil.d.ts +1 -1
  246. package/lib/typescript/utils/TransactionUtil.d.ts.map +1 -1
  247. package/lib/typescript/utils/TypesUtil.d.ts +1 -1
  248. package/lib/typescript/utils/TypesUtil.d.ts.map +1 -1
  249. package/package.json +1 -1
  250. package/src/assets/svg/ArrowBottom.tsx +1 -1
  251. package/src/assets/svg/ArrowBottomCircle.tsx +1 -1
  252. package/src/assets/svg/ArrowLeft.tsx +1 -1
  253. package/src/assets/svg/ArrowRight.tsx +1 -1
  254. package/src/assets/svg/ArrowTop.tsx +1 -1
  255. package/src/assets/svg/Browser.tsx +2 -2
  256. package/src/assets/svg/Card.tsx +13 -0
  257. package/src/assets/svg/Checkmark.tsx +1 -1
  258. package/src/assets/svg/ChevronBottom.tsx +1 -1
  259. package/src/assets/svg/ChevronLeft.tsx +1 -1
  260. package/src/assets/svg/ChevronRight.tsx +1 -1
  261. package/src/assets/svg/ChevronRightSmall.tsx +1 -1
  262. package/src/assets/svg/ChevronTop.tsx +1 -1
  263. package/src/assets/svg/Clock.tsx +3 -3
  264. package/src/assets/svg/Close.tsx +1 -1
  265. package/src/assets/svg/CoinPlaceholder.tsx +1 -1
  266. package/src/assets/svg/Compass.tsx +1 -1
  267. package/src/assets/svg/Copy.tsx +1 -1
  268. package/src/assets/svg/CopySmall.tsx +1 -1
  269. package/src/assets/svg/CurrencyDollar.tsx +12 -0
  270. package/src/assets/svg/Cursor.tsx +1 -1
  271. package/src/assets/svg/Desktop.tsx +2 -2
  272. package/src/assets/svg/Disconnect.tsx +1 -1
  273. package/src/assets/svg/Etherscan.tsx +1 -1
  274. package/src/assets/svg/Extension.tsx +1 -1
  275. package/src/assets/svg/ExternalLink.tsx +1 -1
  276. package/src/assets/svg/Filters.tsx +1 -1
  277. package/src/assets/svg/HelpCircle.tsx +2 -2
  278. package/src/assets/svg/InfoCircle.tsx +2 -2
  279. package/src/assets/svg/Mail.tsx +1 -1
  280. package/src/assets/svg/Mobile.tsx +2 -2
  281. package/src/assets/svg/More.tsx +1 -1
  282. package/src/assets/svg/NetworkPlaceholder.tsx +2 -2
  283. package/src/assets/svg/NftPlaceholder.tsx +1 -1
  284. package/src/assets/svg/Off.tsx +1 -1
  285. package/src/assets/svg/Paperplane.tsx +1 -1
  286. package/src/assets/svg/Plus.tsx +1 -1
  287. package/src/assets/svg/QrCode.tsx +1 -1
  288. package/src/assets/svg/RecycleHorizontal.tsx +1 -1
  289. package/src/assets/svg/Refresh.tsx +1 -1
  290. package/src/assets/svg/Search.tsx +1 -1
  291. package/src/assets/svg/Settings.tsx +12 -0
  292. package/src/assets/svg/SwapHorizontal.tsx +1 -1
  293. package/src/assets/svg/SwapVertical.tsx +1 -1
  294. package/src/assets/svg/Verify.tsx +1 -1
  295. package/src/assets/svg/Wallet.tsx +1 -1
  296. package/src/assets/svg/WalletConnect.tsx +1 -1
  297. package/src/assets/svg/WalletPlaceholder.tsx +1 -1
  298. package/src/assets/svg/WalletSmall.tsx +1 -1
  299. package/src/assets/svg/WarningCircle.tsx +2 -2
  300. package/src/components/wui-icon/index.tsx +6 -0
  301. package/src/components/wui-pressable/index.tsx +10 -1
  302. package/src/components/wui-shimmer/index.tsx +2 -2
  303. package/src/composites/wui-button/index.tsx +3 -0
  304. package/src/composites/wui-button/styles.ts +1 -1
  305. package/src/composites/wui-card-select/index.tsx +1 -1
  306. package/src/composites/wui-double-image-loader/index.native.tsx +120 -0
  307. package/src/composites/wui-double-image-loader/index.tsx +74 -0
  308. package/src/composites/wui-double-image-loader/styles.ts +25 -0
  309. package/src/composites/wui-icon-box/index.tsx +4 -1
  310. package/src/composites/wui-list-item/index.tsx +36 -7
  311. package/src/composites/wui-list-social/styles.ts +1 -1
  312. package/src/composites/wui-list-token/index.tsx +1 -4
  313. package/src/composites/wui-network-button/styles.ts +1 -2
  314. package/src/composites/wui-network-image/index.tsx +47 -31
  315. package/src/composites/wui-numeric-keyboard/index.tsx +67 -0
  316. package/src/composites/wui-search-bar/index.tsx +30 -25
  317. package/src/composites/wui-tag/index.tsx +4 -3
  318. package/src/composites/wui-toggle/index.tsx +10 -2
  319. package/src/composites/wui-token-button/index.tsx +27 -4
  320. package/src/composites/wui-token-button/styles.ts +14 -1
  321. package/src/index.ts +2 -0
  322. package/src/layout/wui-flex/index.tsx +2 -1
  323. package/src/layout/wui-separator/index.tsx +6 -8
  324. package/src/utils/TransactionUtil.ts +6 -6
  325. package/src/utils/TypesUtil.ts +3 -0
@@ -0,0 +1,67 @@
1
+ import { memo } from 'react';
2
+ import { TouchableOpacity, StyleSheet } from 'react-native';
3
+ import { Text } from '../../components/wui-text';
4
+ import { FlexView } from '../../layout/wui-flex';
5
+ import { useTheme } from '../../hooks/useTheme';
6
+
7
+ export interface NumericKeyboardProps {
8
+ onKeyPress: (value: string) => void;
9
+ }
10
+
11
+ function _NumericKeyboard({ onKeyPress }: NumericKeyboardProps) {
12
+ const Theme = useTheme();
13
+ const keys = [
14
+ ['1', '2', '3'],
15
+ ['4', '5', '6'],
16
+ ['7', '8', '9'],
17
+ [',', '0', 'erase']
18
+ ];
19
+
20
+ const handlePress = (key: string) => {
21
+ onKeyPress(key);
22
+ };
23
+
24
+ return (
25
+ <FlexView>
26
+ {keys.map((row, rowIndex) => (
27
+ <FlexView
28
+ key={`row-${rowIndex}`}
29
+ flexDirection="row"
30
+ justifyContent="space-around"
31
+ style={styles.row}
32
+ >
33
+ {row.map(key => (
34
+ <TouchableOpacity key={key} style={styles.key} onPress={() => handlePress(key)}>
35
+ {key === 'erase' ? (
36
+ <Text testID="key-erase" style={[styles.keyText, { color: Theme['fg-100'] }]}>
37
+
38
+ </Text>
39
+ ) : (
40
+ <Text testID={`key-${key}`} style={[styles.keyText, { color: Theme['fg-100'] }]}>
41
+ {key}
42
+ </Text>
43
+ )}
44
+ </TouchableOpacity>
45
+ ))}
46
+ </FlexView>
47
+ ))}
48
+ </FlexView>
49
+ );
50
+ }
51
+
52
+ export const NumericKeyboard = memo(_NumericKeyboard);
53
+
54
+ const styles = StyleSheet.create({
55
+ row: {
56
+ marginBottom: 10
57
+ },
58
+ key: {
59
+ width: 70,
60
+ height: 50,
61
+ justifyContent: 'center',
62
+ alignItems: 'center'
63
+ },
64
+ keyText: {
65
+ fontSize: 26
66
+ }
67
+ });
@@ -1,22 +1,25 @@
1
1
  import { useRef, useState } from 'react';
2
- import { TextInput, type TextInputProps } from 'react-native';
2
+ import { TextInput, type StyleProp, type TextInputProps, type ViewStyle } from 'react-native';
3
3
 
4
4
  import { InputElement } from '../wui-input-element';
5
5
  import { InputText } from '../wui-input-text';
6
6
  import { Spacing } from '../../utils/ThemeUtil';
7
+ import { FlexView } from '../../layout/wui-flex';
7
8
 
8
9
  export interface SearchBarProps {
9
10
  placeholder?: string;
10
11
  onSubmitEditing?: TextInputProps['onSubmitEditing'];
11
12
  onChangeText?: TextInputProps['onChangeText'];
12
13
  inputStyle?: TextInputProps['style'];
14
+ style?: StyleProp<ViewStyle>;
13
15
  }
14
16
 
15
17
  export function SearchBar({
16
- placeholder = 'Search wallet',
18
+ placeholder = 'Search',
17
19
  onSubmitEditing,
18
20
  onChangeText,
19
- inputStyle
21
+ inputStyle,
22
+ style
20
23
  }: SearchBarProps) {
21
24
  const [showClear, setShowClear] = useState(false);
22
25
  const inputRef = useRef<TextInput>(null);
@@ -27,27 +30,29 @@ export function SearchBar({
27
30
  };
28
31
 
29
32
  return (
30
- <InputText
31
- ref={inputRef}
32
- placeholder={placeholder}
33
- onChangeText={handleChangeText}
34
- onSubmitEditing={onSubmitEditing}
35
- icon="search"
36
- inputStyle={inputStyle}
37
- returnKeyType="search"
38
- disableFullscreenUI
39
- >
40
- {showClear && (
41
- <InputElement
42
- icon="close"
43
- style={{ marginRight: Spacing['4xs'] }}
44
- onPress={() => {
45
- inputRef.current?.clear();
46
- inputRef.current?.focus();
47
- handleChangeText('');
48
- }}
49
- />
50
- )}
51
- </InputText>
33
+ <FlexView style={style}>
34
+ <InputText
35
+ ref={inputRef}
36
+ placeholder={placeholder}
37
+ onChangeText={handleChangeText}
38
+ onSubmitEditing={onSubmitEditing}
39
+ icon="search"
40
+ inputStyle={inputStyle}
41
+ returnKeyType="search"
42
+ disableFullscreenUI
43
+ >
44
+ {showClear && (
45
+ <InputElement
46
+ icon="close"
47
+ style={{ marginRight: Spacing['4xs'] }}
48
+ onPress={() => {
49
+ inputRef.current?.clear();
50
+ inputRef.current?.focus();
51
+ handleChangeText('');
52
+ }}
53
+ />
54
+ )}
55
+ </InputText>
56
+ </FlexView>
52
57
  );
53
58
  }
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type StyleProp, View, type ViewStyle } from 'react-native';
2
+ import { type StyleProp, type TextStyle, View, type ViewStyle } from 'react-native';
3
3
 
4
4
  import { Text } from '../../components/wui-text';
5
5
  import { useTheme } from '../../hooks/useTheme';
@@ -11,9 +11,10 @@ export interface TagProps {
11
11
  variant?: TagType;
12
12
  disabled?: boolean;
13
13
  style?: StyleProp<ViewStyle>;
14
+ textStyle?: StyleProp<TextStyle>;
14
15
  }
15
16
 
16
- export function Tag({ variant = 'main', children, style, disabled }: TagProps) {
17
+ export function Tag({ variant = 'main', children, style, disabled, textStyle }: TagProps) {
17
18
  const Theme = useTheme();
18
19
  const colors = getThemedColors(disabled ? undefined : variant);
19
20
 
@@ -21,7 +22,7 @@ export function Tag({ variant = 'main', children, style, disabled }: TagProps) {
21
22
  <View
22
23
  style={[styles.container, { backgroundColor: Theme[colors.background as ThemeKeys] }, style]}
23
24
  >
24
- <Text style={styles.text} variant="micro-700" color={colors.text as ColorType}>
25
+ <Text style={[styles.text, textStyle]} variant="micro-700" color={colors.text as ColorType}>
25
26
  {children}
26
27
  </Text>
27
28
  </View>
@@ -13,11 +13,18 @@ import { Text } from '../../components/wui-text';
13
13
  import styles from './styles';
14
14
 
15
15
  export interface ToggleProps {
16
+ /** Content to be displayed inside the toggle when expanded */
16
17
  children?: React.ReactNode;
18
+ /** Title displayed in the toggle header. Can be a string or a custom React component */
17
19
  title?: string | React.ReactNode;
20
+ /** Custom styles for the toggle container */
18
21
  style?: StyleProp<ViewStyle>;
22
+ /** Whether the toggle should be open when first rendered */
19
23
  initialOpen?: boolean;
24
+ /** Whether the toggle can be closed after being opened. If false, toggle will remain open once expanded */
20
25
  canClose?: boolean;
26
+ /** Custom styles for the content container inside the toggle */
27
+ contentContainerStyle?: StyleProp<ViewStyle>;
21
28
  }
22
29
 
23
30
  export function Toggle({
@@ -25,7 +32,8 @@ export function Toggle({
25
32
  style,
26
33
  title = 'Details',
27
34
  initialOpen = false,
28
- canClose = true
35
+ canClose = true,
36
+ contentContainerStyle
29
37
  }: ToggleProps) {
30
38
  const [isOpen, setIsOpen] = useState(initialOpen);
31
39
  const animatedHeight = useRef(new Animated.Value(0)).current;
@@ -72,7 +80,7 @@ export function Toggle({
72
80
  </Pressable>
73
81
 
74
82
  <Animated.View style={[styles.contentWrapper, { height: animatedHeight }]}>
75
- <FlexView style={styles.content} onLayout={measureContent}>
83
+ <FlexView style={[styles.content, contentContainerStyle]} onLayout={measureContent}>
76
84
  {children}
77
85
  </FlexView>
78
86
  </Animated.View>
@@ -1,8 +1,12 @@
1
- import type { StyleProp, ViewStyle } from 'react-native';
1
+ import React from 'react';
2
+ import { View, type StyleProp, type ViewStyle } from 'react-native';
3
+
2
4
  import { Image } from '../../components/wui-image';
3
5
  import { Text } from '../../components/wui-text';
4
6
  import { Button } from '../wui-button';
7
+ import { Icon } from '../../components/wui-icon';
5
8
  import styles from './styles';
9
+ import { useTheme } from '../../context/ThemeContext';
6
10
 
7
11
  export interface TokenButtonProps {
8
12
  onPress?: () => void;
@@ -11,6 +15,10 @@ export interface TokenButtonProps {
11
15
  inverse?: boolean;
12
16
  style?: StyleProp<ViewStyle>;
13
17
  disabled?: boolean;
18
+ placeholder?: string;
19
+ chevron?: boolean;
20
+ renderClip?: React.ReactNode;
21
+ testID?: string;
14
22
  }
15
23
 
16
24
  export function TokenButton({
@@ -19,8 +27,14 @@ export function TokenButton({
19
27
  inverse,
20
28
  onPress,
21
29
  style,
22
- disabled = false
30
+ disabled = false,
31
+ placeholder = 'Select token',
32
+ chevron,
33
+ renderClip,
34
+ testID
23
35
  }: TokenButtonProps) {
36
+ const Theme = useTheme();
37
+
24
38
  if (!text) {
25
39
  return (
26
40
  <Button
@@ -31,7 +45,7 @@ export function TokenButton({
31
45
  disabled={disabled}
32
46
  >
33
47
  <Text variant="small-600" color="accent-100">
34
- Select token
48
+ {placeholder}
35
49
  </Text>
36
50
  </Button>
37
51
  );
@@ -39,7 +53,14 @@ export function TokenButton({
39
53
 
40
54
  const content = [
41
55
  imageUrl && (
42
- <Image key="image" source={imageUrl} style={[styles.image, inverse && styles.imageInverse]} />
56
+ <View key="image-container" style={[styles.imageContainer, inverse && styles.imageInverse]}>
57
+ <Image
58
+ key="image"
59
+ source={imageUrl}
60
+ style={[styles.image, { backgroundColor: Theme['inverse-100'] }]}
61
+ />
62
+ {renderClip && <View style={styles.clipContainer}>{renderClip}</View>}
63
+ </View>
43
64
  ),
44
65
  <Text key="text">{text}</Text>
45
66
  ];
@@ -51,8 +72,10 @@ export function TokenButton({
51
72
  size="sm"
52
73
  onPress={onPress}
53
74
  disabled={disabled}
75
+ testID={testID}
54
76
  >
55
77
  {inverse ? content.reverse() : content}
78
+ {chevron && <Icon name="chevronBottom" size="xxs" color="fg-150" style={styles.chevron} />}
56
79
  </Button>
57
80
  );
58
81
  }
@@ -9,14 +9,27 @@ export default StyleSheet.create({
9
9
  container: {
10
10
  height: 40
11
11
  },
12
+ imageContainer: {
13
+ position: 'relative',
14
+ marginRight: Spacing['2xs']
15
+ },
12
16
  image: {
13
17
  width: 24,
14
18
  height: 24,
15
19
  borderRadius: BorderRadius.full,
16
- marginRight: Spacing['2xs']
20
+ marginRight: 0
17
21
  },
18
22
  imageInverse: {
19
23
  marginRight: 0,
20
24
  marginLeft: Spacing['2xs']
25
+ },
26
+ clipContainer: {
27
+ position: 'absolute',
28
+ right: -4,
29
+ bottom: -4,
30
+ zIndex: 1
31
+ },
32
+ chevron: {
33
+ marginLeft: Spacing['2xs']
21
34
  }
22
35
  });
package/src/index.ts CHANGED
@@ -32,6 +32,7 @@ export {
32
32
  type CompatibleNetworkProps
33
33
  } from './composites/wui-compatible-network';
34
34
  export { ConnectButton, type ConnectButtonProps } from './composites/wui-connect-button';
35
+ export { DoubleImageLoader } from './composites/wui-double-image-loader';
35
36
  export { EmailInput, type EmailInputProps } from './composites/wui-email-input';
36
37
  export { IconBox, type IconBoxProps } from './composites/wui-icon-box';
37
38
  export { IconLink, type IconLinkProps } from './composites/wui-icon-link';
@@ -49,6 +50,7 @@ export { Logo, type LogoProps } from './composites/wui-logo';
49
50
  export { LogoSelect, type LogoSelectProps } from './composites/wui-logo-select';
50
51
  export { NetworkButton, type NetworkButtonProps } from './composites/wui-network-button';
51
52
  export { NetworkImage, type NetworkImageProps } from './composites/wui-network-image';
53
+ export { NumericKeyboard, type NumericKeyboardProps } from './composites/wui-numeric-keyboard';
52
54
  export { Otp, type OtpProps } from './composites/wui-otp';
53
55
  export { Pressable, type PressableProps } from './components/wui-pressable';
54
56
  export { Promo, type PromoProps } from './composites/wui-promo';
@@ -24,6 +24,7 @@ export interface FlexViewProps {
24
24
  padding?: SpacingType | SpacingType[];
25
25
  margin?: SpacingType | SpacingType[];
26
26
  style?: StyleProp<ViewStyle>;
27
+ testID?: string;
27
28
  }
28
29
 
29
30
  export function FlexView(props: FlexViewProps) {
@@ -46,7 +47,7 @@ export function FlexView(props: FlexViewProps) {
46
47
  };
47
48
 
48
49
  return (
49
- <View onLayout={props.onLayout} style={[styles, props.style]}>
50
+ <View onLayout={props.onLayout} style={[styles, props.style]} testID={props.testID}>
50
51
  {props.children}
51
52
  </View>
52
53
  );
@@ -2,31 +2,29 @@ import { type StyleProp, type ViewStyle, View } from 'react-native';
2
2
  import { Text } from '../../components/wui-text';
3
3
  import { FlexView } from '../../layout/wui-flex';
4
4
  import { useTheme } from '../../hooks/useTheme';
5
+ import type { ColorType } from '../../utils/TypesUtil';
5
6
  import styles from './styles';
6
7
 
7
8
  export interface SeparatorProps {
8
9
  text?: string;
10
+ color?: ColorType;
9
11
  style?: StyleProp<ViewStyle>;
10
12
  }
11
13
 
12
- export function Separator({ text, style }: SeparatorProps) {
14
+ export function Separator({ text, style, color = 'gray-glass-005' }: SeparatorProps) {
13
15
  const Theme = useTheme();
14
16
 
15
17
  if (!text) {
16
- return <View style={[styles.single, { backgroundColor: Theme['gray-glass-005'] }, style]} />;
18
+ return <View style={[styles.single, { backgroundColor: Theme[color] }, style]} />;
17
19
  }
18
20
 
19
21
  return (
20
22
  <FlexView flexDirection="row" alignItems="center" style={style}>
21
- <View
22
- style={[styles.divider, styles.marginRight, { backgroundColor: Theme['gray-glass-005'] }]}
23
- />
23
+ <View style={[styles.divider, styles.marginRight, { backgroundColor: Theme[color] }]} />
24
24
  <Text variant="small-500" color="fg-300">
25
25
  {text}
26
26
  </Text>
27
- <View
28
- style={[styles.divider, styles.marginLeft, { backgroundColor: Theme['gray-glass-005'] }]}
29
- />
27
+ <View style={[styles.divider, styles.marginLeft, { backgroundColor: Theme[color] }]} />
30
28
  </FlexView>
31
29
  );
32
30
  }
@@ -1,9 +1,9 @@
1
- import { DateUtil } from '@reown/appkit-common-react-native';
2
- import type {
3
- TransactionTransfer,
4
- Transaction,
5
- TransactionImage,
6
- TransactionMetadata
1
+ import {
2
+ type TransactionTransfer,
3
+ type Transaction,
4
+ type TransactionImage,
5
+ type TransactionMetadata,
6
+ DateUtil
7
7
  } from '@reown/appkit-common-react-native';
8
8
  import type { TransactionType } from './TypesUtil';
9
9
  import { UiUtil } from './UiUtil';
@@ -140,6 +140,7 @@ export type IconType =
140
140
  | 'arrowRight'
141
141
  | 'arrowTop'
142
142
  | 'browser'
143
+ | 'card'
143
144
  | 'checkmark'
144
145
  | 'chevronBottom'
145
146
  | 'chevronLeft'
@@ -153,6 +154,7 @@ export type IconType =
153
154
  | 'copy'
154
155
  | 'copySmall'
155
156
  | 'cursor'
157
+ | 'currencyDollar'
156
158
  | 'desktop'
157
159
  | 'disconnect'
158
160
  | 'discord'
@@ -178,6 +180,7 @@ export type IconType =
178
180
  | 'recycleHorizontal'
179
181
  | 'refresh'
180
182
  | 'search'
183
+ | 'settings'
181
184
  | 'swapHorizontal'
182
185
  | 'swapVertical'
183
186
  | 'telegram'