@metamask-previews/design-system-react-native 0.0.0-preview.7df341a → 0.0.0-preview.85a0952

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 (831) hide show
  1. package/README.md +18 -0
  2. package/dist/components/AvatarAccount/AvatarAccount.d.ts +1 -2
  3. package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.js +17 -14
  5. package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +18 -5
  7. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.types.js +0 -6
  9. package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -1
  10. package/dist/components/AvatarAccount/index.d.ts +2 -3
  11. package/dist/components/AvatarAccount/index.d.ts.map +1 -1
  12. package/dist/components/AvatarAccount/index.js +5 -9
  13. package/dist/components/AvatarAccount/index.js.map +1 -1
  14. package/dist/components/AvatarBase/AvatarBase.constants.d.ts +6 -0
  15. package/dist/components/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
  16. package/dist/components/AvatarBase/AvatarBase.constants.js +33 -0
  17. package/dist/components/AvatarBase/AvatarBase.constants.js.map +1 -0
  18. package/dist/components/AvatarBase/AvatarBase.d.ts +4 -0
  19. package/dist/components/AvatarBase/AvatarBase.d.ts.map +1 -0
  20. package/dist/components/AvatarBase/AvatarBase.js +31 -0
  21. package/dist/components/AvatarBase/AvatarBase.js.map +1 -0
  22. package/dist/{primitives → components}/AvatarBase/AvatarBase.types.d.ts +7 -9
  23. package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
  24. package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
  25. package/dist/components/AvatarBase/index.d.ts +4 -0
  26. package/dist/components/AvatarBase/index.d.ts.map +1 -0
  27. package/dist/components/AvatarBase/index.js +9 -0
  28. package/dist/components/AvatarBase/index.js.map +1 -0
  29. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +1 -2
  30. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -1
  31. package/dist/components/AvatarFavicon/AvatarFavicon.js +14 -17
  32. package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -1
  33. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -3
  34. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -1
  35. package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -1
  36. package/dist/components/AvatarFavicon/index.d.ts +2 -2
  37. package/dist/components/AvatarFavicon/index.d.ts.map +1 -1
  38. package/dist/components/AvatarFavicon/index.js +4 -7
  39. package/dist/components/AvatarFavicon/index.js.map +1 -1
  40. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +2 -10
  41. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -1
  42. package/dist/components/AvatarGroup/AvatarGroup.constants.js +13 -160
  43. package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -1
  44. package/dist/components/AvatarGroup/AvatarGroup.d.ts +2 -3
  45. package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  46. package/dist/components/AvatarGroup/AvatarGroup.js +30 -39
  47. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
  48. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +13 -15
  49. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -1
  50. package/dist/components/AvatarGroup/AvatarGroup.types.js +0 -11
  51. package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -1
  52. package/dist/components/AvatarGroup/index.d.ts +2 -3
  53. package/dist/components/AvatarGroup/index.d.ts.map +1 -1
  54. package/dist/components/AvatarGroup/index.js +5 -9
  55. package/dist/components/AvatarGroup/index.js.map +1 -1
  56. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +1 -2
  57. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -1
  58. package/dist/components/AvatarIcon/AvatarIcon.constants.js +16 -17
  59. package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -1
  60. package/dist/components/AvatarIcon/AvatarIcon.d.ts +1 -2
  61. package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -1
  62. package/dist/components/AvatarIcon/AvatarIcon.js +14 -41
  63. package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -1
  64. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +5 -10
  65. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -1
  66. package/dist/components/AvatarIcon/AvatarIcon.types.js +0 -9
  67. package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -1
  68. package/dist/components/AvatarIcon/index.d.ts +2 -3
  69. package/dist/components/AvatarIcon/index.d.ts.map +1 -1
  70. package/dist/components/AvatarIcon/index.js +5 -9
  71. package/dist/components/AvatarIcon/index.js.map +1 -1
  72. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +1 -2
  73. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -1
  74. package/dist/components/AvatarNetwork/AvatarNetwork.js +14 -17
  75. package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -1
  76. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -3
  77. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -1
  78. package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -1
  79. package/dist/components/AvatarNetwork/index.d.ts +2 -2
  80. package/dist/components/AvatarNetwork/index.d.ts.map +1 -1
  81. package/dist/components/AvatarNetwork/index.js +4 -7
  82. package/dist/components/AvatarNetwork/index.js.map +1 -1
  83. package/dist/components/AvatarToken/AvatarToken.d.ts +1 -2
  84. package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -1
  85. package/dist/components/AvatarToken/AvatarToken.js +14 -17
  86. package/dist/components/AvatarToken/AvatarToken.js.map +1 -1
  87. package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -3
  88. package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -1
  89. package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -1
  90. package/dist/components/AvatarToken/index.d.ts +2 -2
  91. package/dist/components/AvatarToken/index.d.ts.map +1 -1
  92. package/dist/components/AvatarToken/index.js +4 -7
  93. package/dist/components/AvatarToken/index.js.map +1 -1
  94. package/dist/components/BadgeCount/BadgeCount.constants.d.ts +1 -1
  95. package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -1
  96. package/dist/components/BadgeCount/BadgeCount.constants.js +7 -7
  97. package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -1
  98. package/dist/components/BadgeCount/BadgeCount.d.ts +1 -2
  99. package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -1
  100. package/dist/components/BadgeCount/BadgeCount.js +7 -30
  101. package/dist/components/BadgeCount/BadgeCount.js.map +1 -1
  102. package/dist/components/BadgeCount/BadgeCount.types.d.ts +3 -10
  103. package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -1
  104. package/dist/components/BadgeCount/BadgeCount.types.js +0 -12
  105. package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -1
  106. package/dist/components/BadgeCount/index.d.ts +2 -2
  107. package/dist/components/BadgeCount/index.d.ts.map +1 -1
  108. package/dist/components/BadgeCount/index.js +4 -7
  109. package/dist/components/BadgeCount/index.js.map +1 -1
  110. package/dist/components/BadgeIcon/BadgeIcon.d.ts +1 -2
  111. package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -1
  112. package/dist/components/BadgeIcon/BadgeIcon.js +4 -27
  113. package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -1
  114. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +2 -2
  115. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -1
  116. package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -1
  117. package/dist/components/BadgeIcon/index.d.ts +1 -1
  118. package/dist/components/BadgeIcon/index.d.ts.map +1 -1
  119. package/dist/components/BadgeIcon/index.js +2 -5
  120. package/dist/components/BadgeIcon/index.js.map +1 -1
  121. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +1 -2
  122. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -1
  123. package/dist/components/BadgeNetwork/BadgeNetwork.js +4 -27
  124. package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -1
  125. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +16 -2
  126. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -1
  127. package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -1
  128. package/dist/components/BadgeNetwork/index.d.ts +1 -1
  129. package/dist/components/BadgeNetwork/index.d.ts.map +1 -1
  130. package/dist/components/BadgeNetwork/index.js +2 -5
  131. package/dist/components/BadgeNetwork/index.js.map +1 -1
  132. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +1 -1
  133. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -1
  134. package/dist/components/BadgeStatus/BadgeStatus.constants.js +8 -8
  135. package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -1
  136. package/dist/components/BadgeStatus/BadgeStatus.d.ts +1 -2
  137. package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -1
  138. package/dist/components/BadgeStatus/BadgeStatus.js +6 -16
  139. package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -1
  140. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +7 -27
  141. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -1
  142. package/dist/components/BadgeStatus/BadgeStatus.types.js +0 -26
  143. package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -1
  144. package/dist/components/BadgeStatus/index.d.ts +2 -2
  145. package/dist/components/BadgeStatus/index.d.ts.map +1 -1
  146. package/dist/components/BadgeStatus/index.js +5 -8
  147. package/dist/components/BadgeStatus/index.js.map +1 -1
  148. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
  149. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
  150. package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
  151. package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
  152. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
  153. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
  154. package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
  155. package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
  156. package/dist/components/BadgeWrapper/index.d.ts +5 -0
  157. package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
  158. package/dist/components/BadgeWrapper/index.js +9 -0
  159. package/dist/components/BadgeWrapper/index.js.map +1 -0
  160. package/dist/components/Button/Button.d.ts +1 -2
  161. package/dist/components/Button/Button.d.ts.map +1 -1
  162. package/dist/components/Button/Button.js +13 -12
  163. package/dist/components/Button/Button.js.map +1 -1
  164. package/dist/components/Button/Button.types.d.ts +1 -10
  165. package/dist/components/Button/Button.types.d.ts.map +1 -1
  166. package/dist/components/Button/Button.types.js +0 -12
  167. package/dist/components/Button/Button.types.js.map +1 -1
  168. package/dist/components/Button/index.d.ts +2 -2
  169. package/dist/components/Button/index.d.ts.map +1 -1
  170. package/dist/components/Button/index.js +5 -8
  171. package/dist/components/Button/index.js.map +1 -1
  172. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +1 -2
  173. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -1
  174. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +63 -54
  175. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -1
  176. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +3 -1
  177. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -1
  178. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -1
  179. package/dist/components/Button/variants/ButtonPrimary/index.d.ts +2 -2
  180. package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -1
  181. package/dist/components/Button/variants/ButtonPrimary/index.js +4 -7
  182. package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -1
  183. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +1 -2
  184. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -1
  185. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +62 -50
  186. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -1
  187. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +3 -1
  188. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -1
  189. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -1
  190. package/dist/components/Button/variants/ButtonSecondary/index.d.ts +2 -2
  191. package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -1
  192. package/dist/components/Button/variants/ButtonSecondary/index.js +4 -7
  193. package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -1
  194. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +1 -2
  195. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -1
  196. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +69 -50
  197. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -1
  198. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +3 -1
  199. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -1
  200. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -1
  201. package/dist/components/Button/variants/ButtonTertiary/index.d.ts +2 -2
  202. package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -1
  203. package/dist/components/Button/variants/ButtonTertiary/index.js +4 -7
  204. package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -1
  205. package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
  206. package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
  207. package/dist/components/ButtonBase/ButtonBase.js +48 -0
  208. package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
  209. package/dist/{primitives → components}/ButtonBase/ButtonBase.types.d.ts +9 -17
  210. package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
  211. package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
  212. package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
  213. package/dist/components/ButtonBase/index.d.ts +4 -0
  214. package/dist/components/ButtonBase/index.d.ts.map +1 -0
  215. package/dist/components/ButtonBase/index.js +8 -0
  216. package/dist/components/ButtonBase/index.js.map +1 -0
  217. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +7 -4
  218. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -1
  219. package/dist/components/ButtonIcon/ButtonIcon.constants.js +10 -13
  220. package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -1
  221. package/dist/components/ButtonIcon/ButtonIcon.d.ts +1 -2
  222. package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
  223. package/dist/components/ButtonIcon/ButtonIcon.js +17 -32
  224. package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -1
  225. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +8 -16
  226. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -1
  227. package/dist/components/ButtonIcon/ButtonIcon.types.js +0 -16
  228. package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -1
  229. package/dist/components/ButtonIcon/index.d.ts +2 -2
  230. package/dist/components/ButtonIcon/index.d.ts.map +1 -1
  231. package/dist/components/ButtonIcon/index.js +4 -7
  232. package/dist/components/ButtonIcon/index.js.map +1 -1
  233. package/dist/components/Checkbox/Checkbox.d.ts +17 -0
  234. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  235. package/dist/components/Checkbox/Checkbox.js +122 -0
  236. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  237. package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
  238. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  239. package/dist/components/Checkbox/Checkbox.types.js +3 -0
  240. package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
  241. package/dist/components/Checkbox/index.d.ts +3 -0
  242. package/dist/components/Checkbox/index.d.ts.map +1 -0
  243. package/dist/components/Checkbox/index.js +6 -0
  244. package/dist/components/Checkbox/index.js.map +1 -0
  245. package/dist/components/Icon/Icon.assets.d.ts.map +1 -1
  246. package/dist/components/Icon/Icon.assets.js +401 -171
  247. package/dist/components/Icon/Icon.assets.js.map +1 -1
  248. package/dist/components/Icon/Icon.d.ts +1 -2
  249. package/dist/components/Icon/Icon.d.ts.map +1 -1
  250. package/dist/components/Icon/Icon.js +4 -3
  251. package/dist/components/Icon/Icon.js.map +1 -1
  252. package/dist/components/Icon/Icon.types.d.ts +3 -220
  253. package/dist/components/Icon/Icon.types.d.ts.map +1 -1
  254. package/dist/components/Icon/Icon.types.js +0 -228
  255. package/dist/components/Icon/Icon.types.js.map +1 -1
  256. package/dist/components/Icon/Icon.utilities.d.ts.map +1 -1
  257. package/dist/components/Icon/Icon.utilities.js +2 -2
  258. package/dist/components/Icon/Icon.utilities.js.map +1 -1
  259. package/dist/components/Icon/assets/accessibility.svg +1 -0
  260. package/dist/components/Icon/assets/activity.svg +1 -0
  261. package/dist/components/Icon/assets/add-card.svg +1 -0
  262. package/dist/components/Icon/assets/add-circle.svg +1 -0
  263. package/dist/components/Icon/assets/add-square.svg +1 -0
  264. package/dist/components/Icon/assets/add.svg +1 -0
  265. package/dist/components/Icon/assets/ai.svg +1 -0
  266. package/dist/components/Icon/assets/alternate-email.svg +1 -0
  267. package/dist/components/Icon/assets/apps.svg +1 -0
  268. package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
  269. package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
  270. package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
  271. package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
  272. package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
  273. package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
  274. package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
  275. package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
  276. package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
  277. package/dist/components/Icon/assets/arrow-down.svg +1 -0
  278. package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
  279. package/dist/components/Icon/assets/arrow-left.svg +1 -0
  280. package/dist/components/Icon/assets/arrow-right.svg +1 -0
  281. package/dist/components/Icon/assets/arrow-up.svg +1 -0
  282. package/dist/components/Icon/assets/attachment.svg +1 -0
  283. package/dist/components/Icon/assets/ban.svg +1 -0
  284. package/dist/components/Icon/assets/bank-assured.svg +1 -0
  285. package/dist/components/Icon/assets/bank.svg +1 -0
  286. package/dist/components/Icon/assets/bold.svg +1 -0
  287. package/dist/components/Icon/assets/book.svg +1 -0
  288. package/dist/components/Icon/assets/bookmark.svg +1 -0
  289. package/dist/components/Icon/assets/bridge.svg +1 -0
  290. package/dist/components/Icon/assets/briefcase.svg +1 -0
  291. package/dist/components/Icon/assets/bulb.svg +1 -0
  292. package/dist/components/Icon/assets/buy-sell.svg +1 -0
  293. package/dist/components/Icon/assets/cake.svg +1 -0
  294. package/dist/components/Icon/assets/calculator.svg +1 -0
  295. package/dist/components/Icon/assets/calendar.svg +1 -0
  296. package/dist/components/Icon/assets/call.svg +1 -0
  297. package/dist/components/Icon/assets/camera.svg +1 -0
  298. package/dist/components/Icon/assets/campaign.svg +1 -0
  299. package/dist/components/Icon/assets/card-pos.svg +1 -0
  300. package/dist/components/Icon/assets/card.svg +1 -0
  301. package/dist/components/Icon/assets/cash.svg +1 -0
  302. package/dist/components/Icon/assets/category.svg +1 -0
  303. package/dist/components/Icon/assets/chart.svg +1 -0
  304. package/dist/components/Icon/assets/check-bold.svg +1 -0
  305. package/dist/components/Icon/assets/check.svg +1 -0
  306. package/dist/components/Icon/assets/circle-x.svg +1 -0
  307. package/dist/components/Icon/assets/clock-filled.svg +1 -0
  308. package/dist/components/Icon/assets/clock.svg +1 -0
  309. package/dist/components/Icon/assets/close.svg +1 -0
  310. package/dist/components/Icon/assets/cloud-download.svg +1 -0
  311. package/dist/components/Icon/assets/cloud-upload.svg +1 -0
  312. package/dist/components/Icon/assets/cloud.svg +1 -0
  313. package/dist/components/Icon/assets/code-circle.svg +1 -0
  314. package/dist/components/Icon/assets/code.svg +1 -0
  315. package/dist/components/Icon/assets/coin.svg +1 -0
  316. package/dist/components/Icon/assets/collapse.svg +1 -0
  317. package/dist/components/Icon/assets/confirmation.svg +1 -0
  318. package/dist/components/Icon/assets/connect.svg +1 -0
  319. package/dist/components/Icon/assets/copy-success.svg +1 -0
  320. package/dist/components/Icon/assets/copy.svg +1 -0
  321. package/dist/components/Icon/assets/credit-check.svg +1 -0
  322. package/dist/components/Icon/assets/currency-franc.svg +1 -0
  323. package/dist/components/Icon/assets/currency-lira.svg +1 -0
  324. package/dist/components/Icon/assets/currency-pound.svg +1 -0
  325. package/dist/components/Icon/assets/currency-yuan.svg +3 -0
  326. package/dist/components/Icon/assets/customize.svg +1 -0
  327. package/dist/components/Icon/assets/danger.svg +1 -0
  328. package/dist/components/Icon/assets/dark-filled.svg +1 -0
  329. package/dist/components/Icon/assets/dark.svg +1 -0
  330. package/dist/components/Icon/assets/data.svg +1 -0
  331. package/dist/components/Icon/assets/description.svg +1 -0
  332. package/dist/components/Icon/assets/details.svg +1 -0
  333. package/dist/components/Icon/assets/diagram.svg +1 -0
  334. package/dist/components/Icon/assets/document-code.svg +1 -0
  335. package/dist/components/Icon/assets/download.svg +1 -0
  336. package/dist/components/Icon/assets/draft.svg +1 -0
  337. package/dist/components/Icon/assets/eco-leaf.svg +1 -0
  338. package/dist/components/Icon/assets/edit-square.svg +1 -0
  339. package/dist/components/Icon/assets/edit.svg +1 -0
  340. package/dist/components/Icon/assets/encrypted-add.svg +1 -0
  341. package/dist/components/Icon/assets/eraser.svg +1 -0
  342. package/dist/components/Icon/assets/error.svg +1 -0
  343. package/dist/components/Icon/assets/ethereum.svg +1 -0
  344. package/dist/components/Icon/assets/exchange.svg +1 -0
  345. package/dist/components/Icon/assets/expand-vertical.svg +1 -0
  346. package/dist/components/Icon/assets/expand.svg +1 -0
  347. package/dist/components/Icon/assets/explore-filled.svg +1 -0
  348. package/dist/components/Icon/assets/explore.svg +1 -0
  349. package/dist/components/Icon/assets/export.svg +1 -0
  350. package/dist/components/Icon/assets/extension.svg +1 -0
  351. package/dist/components/Icon/assets/eye-slash.svg +1 -0
  352. package/dist/components/Icon/assets/eye.svg +1 -0
  353. package/dist/components/Icon/assets/face-id.svg +1 -0
  354. package/dist/components/Icon/assets/feedback.svg +1 -0
  355. package/dist/components/Icon/assets/file.svg +1 -0
  356. package/dist/components/Icon/assets/filter.svg +1 -0
  357. package/dist/components/Icon/assets/fingerprint.svg +1 -0
  358. package/dist/components/Icon/assets/fire.svg +1 -0
  359. package/dist/components/Icon/assets/first-page.svg +1 -0
  360. package/dist/components/Icon/assets/flag.svg +1 -0
  361. package/dist/components/Icon/assets/flash-slash.svg +1 -0
  362. package/dist/components/Icon/assets/flash.svg +1 -0
  363. package/dist/components/Icon/assets/flask.svg +1 -0
  364. package/dist/components/Icon/assets/flower.svg +1 -0
  365. package/dist/components/Icon/assets/folder.svg +1 -0
  366. package/dist/components/Icon/assets/forest.svg +1 -0
  367. package/dist/components/Icon/assets/full-circle.svg +1 -0
  368. package/dist/components/Icon/assets/gas.svg +1 -0
  369. package/dist/components/Icon/assets/gift.svg +1 -0
  370. package/dist/components/Icon/assets/global-search.svg +1 -0
  371. package/dist/components/Icon/assets/global.svg +1 -0
  372. package/dist/components/Icon/assets/graph.svg +1 -0
  373. package/dist/components/Icon/assets/hardware.svg +1 -0
  374. package/dist/components/Icon/assets/hash-tag.svg +1 -0
  375. package/dist/components/Icon/assets/heart-filled.svg +1 -0
  376. package/dist/components/Icon/assets/heart.svg +1 -0
  377. package/dist/components/Icon/assets/hierarchy.svg +1 -0
  378. package/dist/components/Icon/assets/home-filled.svg +1 -0
  379. package/dist/components/Icon/assets/home.svg +1 -0
  380. package/dist/components/Icon/assets/image.svg +1 -0
  381. package/dist/components/Icon/assets/info.svg +1 -0
  382. package/dist/components/Icon/assets/inventory.svg +1 -0
  383. package/dist/components/Icon/assets/joystick.svg +1 -0
  384. package/dist/components/Icon/assets/keep-filled.svg +1 -0
  385. package/dist/components/Icon/assets/keep.svg +1 -0
  386. package/dist/components/Icon/assets/key.svg +1 -0
  387. package/dist/components/Icon/assets/last-page.svg +1 -0
  388. package/dist/components/Icon/assets/light-filled.svg +1 -0
  389. package/dist/components/Icon/assets/light.svg +1 -0
  390. package/dist/components/Icon/assets/link.svg +1 -0
  391. package/dist/components/Icon/assets/loading.svg +1 -0
  392. package/dist/components/Icon/assets/location.svg +1 -0
  393. package/dist/components/Icon/assets/lock-slash.svg +1 -0
  394. package/dist/components/Icon/assets/lock.svg +1 -0
  395. package/dist/components/Icon/assets/locked-filled.svg +1 -0
  396. package/dist/components/Icon/assets/login.svg +1 -0
  397. package/dist/components/Icon/assets/logout.svg +1 -0
  398. package/dist/components/Icon/assets/mail.svg +1 -0
  399. package/dist/components/Icon/assets/map.svg +1 -0
  400. package/dist/components/Icon/assets/menu.svg +1 -0
  401. package/dist/components/Icon/assets/message-question.svg +1 -0
  402. package/dist/components/Icon/assets/messages.svg +1 -0
  403. package/dist/components/Icon/assets/mic.svg +1 -0
  404. package/dist/components/Icon/assets/minus-bold.svg +1 -0
  405. package/dist/components/Icon/assets/minus-square.svg +1 -0
  406. package/dist/components/Icon/assets/minus.svg +1 -0
  407. package/dist/components/Icon/assets/mobile.svg +1 -0
  408. package/dist/components/Icon/assets/money-bag.svg +1 -0
  409. package/dist/components/Icon/assets/money.svg +1 -0
  410. package/dist/components/Icon/assets/monitor.svg +1 -0
  411. package/dist/components/Icon/assets/more-horizontal.svg +1 -0
  412. package/dist/components/Icon/assets/more-vertical.svg +1 -0
  413. package/dist/components/Icon/assets/mountain-flag.svg +1 -0
  414. package/dist/components/Icon/assets/music-note.svg +1 -0
  415. package/dist/components/Icon/assets/notification.svg +1 -0
  416. package/dist/components/Icon/assets/page-info.svg +1 -0
  417. package/dist/components/Icon/assets/palette.svg +1 -0
  418. package/dist/components/Icon/assets/password-check.svg +1 -0
  419. package/dist/components/Icon/assets/pending.svg +1 -0
  420. package/dist/components/Icon/assets/people.svg +1 -0
  421. package/dist/components/Icon/assets/person-cancel.svg +1 -0
  422. package/dist/components/Icon/assets/pin.svg +1 -0
  423. package/dist/components/Icon/assets/plant.svg +1 -0
  424. package/dist/components/Icon/assets/plug.svg +1 -0
  425. package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
  426. package/dist/components/Icon/assets/policy-alert.svg +1 -0
  427. package/dist/components/Icon/assets/print.svg +1 -0
  428. package/dist/components/Icon/assets/priority-high.svg +1 -0
  429. package/dist/components/Icon/assets/privacy-tip.svg +1 -0
  430. package/dist/components/Icon/assets/programming-arrows.svg +1 -0
  431. package/dist/components/Icon/assets/publish.svg +1 -0
  432. package/dist/components/Icon/assets/qr-code.svg +1 -0
  433. package/dist/components/Icon/assets/question.svg +1 -0
  434. package/dist/components/Icon/assets/receive.svg +1 -0
  435. package/dist/components/Icon/assets/received.svg +1 -0
  436. package/dist/components/Icon/assets/refresh.svg +1 -0
  437. package/dist/components/Icon/assets/remove-minus.svg +1 -0
  438. package/dist/components/Icon/assets/report.svg +1 -0
  439. package/dist/components/Icon/assets/rocket.svg +1 -0
  440. package/dist/components/Icon/assets/save-filled.svg +1 -0
  441. package/dist/components/Icon/assets/save.svg +1 -0
  442. package/dist/components/Icon/assets/saving.svg +1 -0
  443. package/dist/components/Icon/assets/scan-barcode.svg +1 -0
  444. package/dist/components/Icon/assets/scan-focus.svg +1 -0
  445. package/dist/components/Icon/assets/scan.svg +1 -0
  446. package/dist/components/Icon/assets/search.svg +1 -0
  447. package/dist/components/Icon/assets/security-alert.svg +1 -0
  448. package/dist/components/Icon/assets/security-cross.svg +1 -0
  449. package/dist/components/Icon/assets/security-key.svg +1 -0
  450. package/dist/components/Icon/assets/security-search.svg +1 -0
  451. package/dist/components/Icon/assets/security-slash.svg +1 -0
  452. package/dist/components/Icon/assets/security-tick.svg +1 -0
  453. package/dist/components/Icon/assets/security-time.svg +1 -0
  454. package/dist/components/Icon/assets/security-user.svg +1 -0
  455. package/dist/components/Icon/assets/security.svg +1 -0
  456. package/dist/components/Icon/assets/send.svg +1 -0
  457. package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
  458. package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
  459. package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
  460. package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
  461. package/dist/components/Icon/assets/setting-filled.svg +1 -0
  462. package/dist/components/Icon/assets/setting.svg +1 -0
  463. package/dist/components/Icon/assets/share.svg +1 -0
  464. package/dist/components/Icon/assets/shield-lock.svg +1 -0
  465. package/dist/components/Icon/assets/shopping-bag.svg +1 -0
  466. package/dist/components/Icon/assets/shopping-cart.svg +1 -0
  467. package/dist/components/Icon/assets/signal-cellular.svg +1 -0
  468. package/dist/components/Icon/assets/slash.svg +1 -0
  469. package/dist/components/Icon/assets/sms.svg +1 -0
  470. package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
  471. package/dist/components/Icon/assets/snaps-plus.svg +1 -0
  472. package/dist/components/Icon/assets/snaps-round.svg +1 -0
  473. package/dist/components/Icon/assets/snaps.svg +1 -0
  474. package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
  475. package/dist/components/Icon/assets/sort.svg +1 -0
  476. package/dist/components/Icon/assets/sparkle.svg +1 -0
  477. package/dist/components/Icon/assets/speed.svg +1 -0
  478. package/dist/components/Icon/assets/speedometer.svg +1 -0
  479. package/dist/components/Icon/assets/square.svg +1 -0
  480. package/dist/components/Icon/assets/stake.svg +1 -0
  481. package/dist/components/Icon/assets/star-filled.svg +1 -0
  482. package/dist/components/Icon/assets/star.svg +1 -0
  483. package/dist/components/Icon/assets/start.svg +1 -0
  484. package/dist/components/Icon/assets/storefront.svg +1 -0
  485. package/dist/components/Icon/assets/student.svg +1 -0
  486. package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
  487. package/dist/components/Icon/assets/swap-vertical.svg +3 -0
  488. package/dist/components/Icon/assets/tab-close.svg +1 -0
  489. package/dist/components/Icon/assets/table-row.svg +1 -0
  490. package/dist/components/Icon/assets/tablet.svg +1 -0
  491. package/dist/components/Icon/assets/tag.svg +1 -0
  492. package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
  493. package/dist/components/Icon/assets/thumb-down.svg +1 -0
  494. package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
  495. package/dist/components/Icon/assets/thumb-up.svg +1 -0
  496. package/dist/components/Icon/assets/tint.svg +1 -0
  497. package/dist/components/Icon/assets/tooltip.svg +1 -0
  498. package/dist/components/Icon/assets/translate.svg +1 -0
  499. package/dist/components/Icon/assets/trash.svg +1 -0
  500. package/dist/components/Icon/assets/trend-down.svg +1 -0
  501. package/dist/components/Icon/assets/trend-up.svg +1 -0
  502. package/dist/components/Icon/assets/undo.svg +1 -0
  503. package/dist/components/Icon/assets/unfold.svg +1 -0
  504. package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
  505. package/dist/components/Icon/assets/unpin.svg +1 -0
  506. package/dist/components/Icon/assets/upload-file.svg +1 -0
  507. package/dist/components/Icon/assets/upload.svg +1 -0
  508. package/dist/components/Icon/assets/usb.svg +1 -0
  509. package/dist/components/Icon/assets/user-check.svg +1 -0
  510. package/dist/components/Icon/assets/user-circle-add.svg +1 -0
  511. package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
  512. package/dist/components/Icon/assets/user-circle.svg +1 -0
  513. package/dist/components/Icon/assets/user.svg +1 -0
  514. package/dist/components/Icon/assets/verified-filled.svg +1 -0
  515. package/dist/components/Icon/assets/verified.svg +1 -0
  516. package/dist/components/Icon/assets/videocam.svg +1 -0
  517. package/dist/components/Icon/assets/view-column.svg +1 -0
  518. package/dist/components/Icon/assets/view-in-ar.svg +1 -0
  519. package/dist/components/Icon/assets/volume-off.svg +1 -0
  520. package/dist/components/Icon/assets/volume-up.svg +1 -0
  521. package/dist/components/Icon/assets/wallet-filled.svg +1 -0
  522. package/dist/components/Icon/assets/wallet.svg +1 -0
  523. package/dist/components/Icon/assets/warning.svg +1 -0
  524. package/dist/components/Icon/assets/web-traffic.svg +1 -0
  525. package/dist/components/Icon/assets/widgets.svg +1 -0
  526. package/dist/components/Icon/assets/wifi-off.svg +1 -0
  527. package/dist/components/Icon/assets/wifi.svg +1 -0
  528. package/dist/components/Icon/assets/x.svg +1 -0
  529. package/dist/components/Icon/index.d.ts +2 -2
  530. package/dist/components/Icon/index.d.ts.map +1 -1
  531. package/dist/components/Icon/index.js +6 -9
  532. package/dist/components/Icon/index.js.map +1 -1
  533. package/dist/components/Text/Text.constants.d.ts +5 -4
  534. package/dist/components/Text/Text.constants.d.ts.map +1 -1
  535. package/dist/components/Text/Text.constants.js +18 -10
  536. package/dist/components/Text/Text.constants.js.map +1 -1
  537. package/dist/components/Text/Text.d.ts +1 -2
  538. package/dist/components/Text/Text.d.ts.map +1 -1
  539. package/dist/components/Text/Text.js +7 -5
  540. package/dist/components/Text/Text.js.map +1 -1
  541. package/dist/components/Text/Text.types.d.ts +9 -89
  542. package/dist/components/Text/Text.types.d.ts.map +1 -1
  543. package/dist/components/Text/Text.types.js +0 -92
  544. package/dist/components/Text/Text.types.js.map +1 -1
  545. package/dist/components/Text/Text.utilities.d.ts.map +1 -1
  546. package/dist/components/Text/Text.utilities.js +4 -4
  547. package/dist/components/Text/Text.utilities.js.map +1 -1
  548. package/dist/components/Text/index.d.ts +2 -2
  549. package/dist/components/Text/index.d.ts.map +1 -1
  550. package/dist/components/Text/index.js +8 -11
  551. package/dist/components/Text/index.js.map +1 -1
  552. package/dist/components/TextButton/TextButton.constants.d.ts +3 -2
  553. package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -1
  554. package/dist/components/TextButton/TextButton.constants.js +7 -24
  555. package/dist/components/TextButton/TextButton.constants.js.map +1 -1
  556. package/dist/components/TextButton/TextButton.d.ts +1 -2
  557. package/dist/components/TextButton/TextButton.d.ts.map +1 -1
  558. package/dist/components/TextButton/TextButton.js +33 -152
  559. package/dist/components/TextButton/TextButton.js.map +1 -1
  560. package/dist/components/TextButton/TextButton.types.d.ts +11 -15
  561. package/dist/components/TextButton/TextButton.types.d.ts.map +1 -1
  562. package/dist/components/TextButton/TextButton.types.js.map +1 -1
  563. package/dist/components/TextButton/index.d.ts +2 -1
  564. package/dist/components/TextButton/index.d.ts.map +1 -1
  565. package/dist/components/TextButton/index.js +4 -5
  566. package/dist/components/TextButton/index.js.map +1 -1
  567. package/dist/components/index.d.ts +49 -0
  568. package/dist/components/index.d.ts.map +1 -0
  569. package/dist/components/index.js +81 -0
  570. package/dist/components/index.js.map +1 -0
  571. package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
  572. package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
  573. package/dist/{primitives → components/temp-components}/Blockies/Blockies.js +2 -3
  574. package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
  575. package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.d.ts +1 -1
  576. package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
  577. package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
  578. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
  579. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
  580. package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
  581. package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
  582. package/dist/components/temp-components/Blockies/index.d.ts +3 -0
  583. package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
  584. package/dist/components/temp-components/Blockies/index.js +6 -0
  585. package/dist/components/temp-components/Blockies/index.js.map +1 -0
  586. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
  587. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
  588. package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.js +2 -1
  589. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
  590. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
  591. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
  592. package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
  593. package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
  594. package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
  595. package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
  596. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
  597. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
  598. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.js +3 -5
  599. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
  600. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.d.ts +7 -7
  601. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
  602. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
  603. package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
  604. package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
  605. package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
  606. package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
  607. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
  608. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
  609. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.js +2 -2
  610. package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
  611. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.d.ts +1 -1
  612. package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
  613. package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
  614. package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
  615. package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
  616. package/dist/components/temp-components/Jazzicon/index.js +6 -0
  617. package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
  618. package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
  619. package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
  620. package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
  621. package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
  622. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
  623. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
  624. package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
  625. package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
  626. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
  627. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
  628. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
  629. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
  630. package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
  631. package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
  632. package/dist/components/temp-components/Maskicon/index.js +6 -0
  633. package/dist/components/temp-components/Maskicon/index.js.map +1 -0
  634. package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
  635. package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
  636. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.js +13 -13
  637. package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
  638. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.d.ts +3 -2
  639. package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
  640. package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
  641. package/dist/components/temp-components/Spinner/index.d.ts +3 -0
  642. package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
  643. package/dist/components/temp-components/Spinner/index.js +6 -0
  644. package/dist/components/temp-components/Spinner/index.js.map +1 -0
  645. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
  646. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
  647. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.js +5 -4
  648. package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
  649. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.d.ts +2 -1
  650. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
  651. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
  652. package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
  653. package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
  654. package/dist/components/temp-components/TextOrChildren/index.js +6 -0
  655. package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
  656. package/dist/index.d.ts +1 -136
  657. package/dist/index.d.ts.map +1 -1
  658. package/dist/index.js +14 -85
  659. package/dist/index.js.map +1 -1
  660. package/dist/types/index.d.ts +618 -0
  661. package/dist/types/index.d.ts.map +1 -0
  662. package/dist/types/index.js +629 -0
  663. package/dist/types/index.js.map +1 -0
  664. package/package.json +15 -5
  665. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +0 -2
  666. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +0 -1
  667. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +0 -14
  668. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +0 -1
  669. package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts +0 -48
  670. package/dist/components/AvatarGroup/AvatarGroup.utilities.d.ts.map +0 -1
  671. package/dist/components/AvatarGroup/AvatarGroup.utilities.js +0 -72
  672. package/dist/components/AvatarGroup/AvatarGroup.utilities.js.map +0 -1
  673. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +0 -24
  674. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +0 -1
  675. package/dist/components/AvatarIcon/AvatarIcon.utilities.js +0 -31
  676. package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +0 -1
  677. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +0 -2
  678. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +0 -1
  679. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +0 -14
  680. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +0 -1
  681. package/dist/components/AvatarToken/AvatarToken.constants.d.ts +0 -2
  682. package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +0 -1
  683. package/dist/components/AvatarToken/AvatarToken.constants.js +0 -14
  684. package/dist/components/AvatarToken/AvatarToken.constants.js.map +0 -1
  685. package/dist/components/Button/Button.constants.d.ts +0 -2
  686. package/dist/components/Button/Button.constants.d.ts.map +0 -1
  687. package/dist/components/Button/Button.constants.js +0 -7
  688. package/dist/components/Button/Button.constants.js.map +0 -1
  689. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +0 -3
  690. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +0 -1
  691. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +0 -29
  692. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +0 -1
  693. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +0 -78
  694. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +0 -1
  695. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +0 -122
  696. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +0 -1
  697. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +0 -3
  698. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +0 -1
  699. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +0 -29
  700. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +0 -1
  701. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +0 -90
  702. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +0 -1
  703. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +0 -145
  704. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +0 -1
  705. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +0 -3
  706. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +0 -1
  707. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +0 -29
  708. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +0 -1
  709. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +0 -88
  710. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +0 -1
  711. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +0 -147
  712. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +0 -1
  713. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +0 -55
  714. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +0 -1
  715. package/dist/components/ButtonIcon/ButtonIcon.utilities.js +0 -73
  716. package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +0 -1
  717. package/dist/components/Icon/Icon.constants.d.ts +0 -7
  718. package/dist/components/Icon/Icon.constants.d.ts.map +0 -1
  719. package/dist/components/Icon/Icon.constants.js +0 -15
  720. package/dist/components/Icon/Icon.constants.js.map +0 -1
  721. package/dist/components/TextButton/TextButton.utilities.d.ts +0 -55
  722. package/dist/components/TextButton/TextButton.utilities.d.ts.map +0 -1
  723. package/dist/components/TextButton/TextButton.utilities.js +0 -77
  724. package/dist/components/TextButton/TextButton.utilities.js.map +0 -1
  725. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +0 -6
  726. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +0 -1
  727. package/dist/primitives/AvatarBase/AvatarBase.constants.js +0 -34
  728. package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +0 -1
  729. package/dist/primitives/AvatarBase/AvatarBase.d.ts +0 -5
  730. package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +0 -1
  731. package/dist/primitives/AvatarBase/AvatarBase.js +0 -55
  732. package/dist/primitives/AvatarBase/AvatarBase.js.map +0 -1
  733. package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +0 -1
  734. package/dist/primitives/AvatarBase/AvatarBase.types.js.map +0 -1
  735. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +0 -30
  736. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +0 -1
  737. package/dist/primitives/AvatarBase/AvatarBase.utilities.js +0 -60
  738. package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +0 -1
  739. package/dist/primitives/AvatarBase/index.d.ts +0 -4
  740. package/dist/primitives/AvatarBase/index.d.ts.map +0 -1
  741. package/dist/primitives/AvatarBase/index.js +0 -11
  742. package/dist/primitives/AvatarBase/index.js.map +0 -1
  743. package/dist/primitives/Blockies/Blockies.d.ts +0 -5
  744. package/dist/primitives/Blockies/Blockies.d.ts.map +0 -1
  745. package/dist/primitives/Blockies/Blockies.js.map +0 -1
  746. package/dist/primitives/Blockies/Blockies.types.d.ts.map +0 -1
  747. package/dist/primitives/Blockies/Blockies.types.js.map +0 -1
  748. package/dist/primitives/Blockies/index.d.ts +0 -3
  749. package/dist/primitives/Blockies/index.d.ts.map +0 -1
  750. package/dist/primitives/Blockies/index.js +0 -9
  751. package/dist/primitives/Blockies/index.js.map +0 -1
  752. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +0 -5
  753. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +0 -1
  754. package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +0 -1
  755. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +0 -1
  756. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +0 -1
  757. package/dist/primitives/ButtonAnimated/index.d.ts +0 -3
  758. package/dist/primitives/ButtonAnimated/index.d.ts.map +0 -1
  759. package/dist/primitives/ButtonAnimated/index.js +0 -9
  760. package/dist/primitives/ButtonAnimated/index.js.map +0 -1
  761. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +0 -3
  762. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +0 -1
  763. package/dist/primitives/ButtonBase/ButtonBase.constants.js +0 -32
  764. package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +0 -1
  765. package/dist/primitives/ButtonBase/ButtonBase.d.ts +0 -5
  766. package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +0 -1
  767. package/dist/primitives/ButtonBase/ButtonBase.js +0 -84
  768. package/dist/primitives/ButtonBase/ButtonBase.js.map +0 -1
  769. package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +0 -1
  770. package/dist/primitives/ButtonBase/ButtonBase.types.js +0 -19
  771. package/dist/primitives/ButtonBase/ButtonBase.types.js.map +0 -1
  772. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +0 -28
  773. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +0 -1
  774. package/dist/primitives/ButtonBase/ButtonBase.utilities.js +0 -41
  775. package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +0 -1
  776. package/dist/primitives/ButtonBase/index.d.ts +0 -4
  777. package/dist/primitives/ButtonBase/index.d.ts.map +0 -1
  778. package/dist/primitives/ButtonBase/index.js +0 -11
  779. package/dist/primitives/ButtonBase/index.js.map +0 -1
  780. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +0 -5
  781. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +0 -1
  782. package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +0 -1
  783. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +0 -1
  784. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +0 -1
  785. package/dist/primitives/ImageOrSvg/index.d.ts +0 -3
  786. package/dist/primitives/ImageOrSvg/index.d.ts.map +0 -1
  787. package/dist/primitives/ImageOrSvg/index.js +0 -9
  788. package/dist/primitives/ImageOrSvg/index.js.map +0 -1
  789. package/dist/primitives/Jazzicon/Jazzicon.d.ts +0 -5
  790. package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +0 -1
  791. package/dist/primitives/Jazzicon/Jazzicon.js.map +0 -1
  792. package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +0 -1
  793. package/dist/primitives/Jazzicon/Jazzicon.types.js.map +0 -1
  794. package/dist/primitives/Jazzicon/index.d.ts +0 -3
  795. package/dist/primitives/Jazzicon/index.d.ts.map +0 -1
  796. package/dist/primitives/Jazzicon/index.js +0 -9
  797. package/dist/primitives/Jazzicon/index.js.map +0 -1
  798. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +0 -5
  799. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +0 -1
  800. package/dist/primitives/TextOrChildren/TextOrChildren.js.map +0 -1
  801. package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +0 -1
  802. package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +0 -1
  803. package/dist/primitives/TextOrChildren/index.d.ts +0 -3
  804. package/dist/primitives/TextOrChildren/index.d.ts.map +0 -1
  805. package/dist/primitives/TextOrChildren/index.js +0 -9
  806. package/dist/primitives/TextOrChildren/index.js.map +0 -1
  807. package/dist/shared/enums.d.ts +0 -47
  808. package/dist/shared/enums.d.ts.map +0 -1
  809. package/dist/shared/enums.js +0 -44
  810. package/dist/shared/enums.js.map +0 -1
  811. package/dist/temp-components/Spinner/Spinner.constants.d.ts +0 -3
  812. package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +0 -1
  813. package/dist/temp-components/Spinner/Spinner.constants.js +0 -21
  814. package/dist/temp-components/Spinner/Spinner.constants.js.map +0 -1
  815. package/dist/temp-components/Spinner/Spinner.d.ts +0 -5
  816. package/dist/temp-components/Spinner/Spinner.d.ts.map +0 -1
  817. package/dist/temp-components/Spinner/Spinner.js.map +0 -1
  818. package/dist/temp-components/Spinner/Spinner.types.d.ts.map +0 -1
  819. package/dist/temp-components/Spinner/Spinner.types.js.map +0 -1
  820. package/dist/temp-components/Spinner/index.d.ts +0 -3
  821. package/dist/temp-components/Spinner/index.d.ts.map +0 -1
  822. package/dist/temp-components/Spinner/index.js +0 -9
  823. package/dist/temp-components/Spinner/index.js.map +0 -1
  824. /package/dist/{primitives → components}/AvatarBase/AvatarBase.types.js +0 -0
  825. /package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.js +0 -0
  826. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.d.ts +0 -0
  827. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.js +0 -0
  828. /package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.js +0 -0
  829. /package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.js +0 -0
  830. /package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.js +0 -0
  831. /package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.js +0 -0
@@ -22,166 +22,47 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
26
+ exports.TextButton = void 0;
30
27
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
31
28
  const react_1 = __importStar(require("react"));
32
29
  const react_native_1 = require("react-native");
33
- const Spinner_1 = __importDefault(require("../../temp-components/Spinner"));
34
- const Icon_1 = __importDefault(require("../Icon"));
35
- const Text_1 = __importDefault(require("../Text/Text"));
30
+ const types_1 = require("../../types");
31
+ const Icon_1 = require("../Icon");
32
+ const Text_1 = require("../Text");
36
33
  const TextButton_constants_1 = require("./TextButton.constants");
37
- const TextButton_utilities_1 = require("./TextButton.utilities");
38
- const TextButton = ({ children, textProps, isLoading = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isLoading, loadingText, spinnerProps, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, isDisabled = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isDisabled, isInverse = TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.isInverse, onPress, onPressIn, onPressOut, onLongPress, twClassName, accessibilityRole, accessibilityLabel, style, ...props }) => {
39
- const [isPressed, setIsPressed] = (0, react_1.useState)(false);
34
+ const TextButton = ({ children, size = types_1.TextButtonSize.BodyMd, textProps, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, isDisabled = false, isInverse = false, twClassName = '', accessibilityRole, accessibilityLabel, style, ...props }) => {
40
35
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
41
- // Styling calculation for state changes
42
- const twContainerClassNames = (0, react_1.useMemo)(() => {
43
- return (0, TextButton_utilities_1.generateTextButtonContainerClassNames)({
44
- isPressed,
45
- isLoading,
46
- isDisabled,
47
- twClassName,
48
- });
49
- }, [isPressed, isLoading, isDisabled, twClassName]);
50
- const twTextClassNames = (0, react_1.useMemo)(() => {
51
- return (0, TextButton_utilities_1.generateTextButtonTextClassNames)({
52
- isPressed,
53
- isInverse,
54
- isLoading,
55
- });
56
- }, [isPressed, isInverse, isLoading]);
57
- // Merging default settings for Icons with passed in props
58
- const finalStartIconProps = {
59
- ...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.startIconProps,
60
- ...startIconProps,
61
- twClassName: `${twTextClassNames} ${startIconProps?.twClassName ?? ''}`,
62
- };
63
- const finalStartIconName = startIconName ?? startIconProps?.name;
64
- const finalEndIconProps = {
65
- ...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.endIconProps,
66
- ...endIconProps,
67
- twClassName: `${twTextClassNames} ${endIconProps?.twClassName ?? ''}`,
68
- };
69
- const finalEndIconName = endIconName ?? endIconProps?.name;
70
- const finalTextProps = {
71
- ...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.textProps,
72
- ...textProps,
73
- twClassName: `${twTextClassNames} ${textProps?.twClassName ?? ''}`,
74
- };
75
- // Merging spinner settings for Icons with passed in props
76
- const finalSpinnerProps = {
77
- ...TextButton_constants_1.DEFAULT_TEXTBUTTON_PROPS.spinnerProps,
78
- loadingText,
79
- color: twTextClassNames,
80
- loadingTextProps: {
81
- twClassName: `${twTextClassNames} mt-[2.5px]`,
82
- },
83
- ...spinnerProps,
84
- };
85
- const onPressHandler = (event) => {
86
- if (!isDisabled && !isLoading) {
87
- onPress?.(event);
88
- }
89
- };
90
- const onPressInHandler = (event) => {
91
- if (!isDisabled && !isLoading) {
92
- setIsPressed(true);
93
- onPressIn?.(event);
94
- }
95
- };
96
- const onPressOutHandler = (event) => {
97
- if (!isDisabled && !isLoading) {
98
- setIsPressed(false);
99
- onPressOut?.(event);
100
- }
101
- };
102
- const onLongPressHandler = (event) => {
103
- if (!isDisabled && !isLoading) {
104
- onLongPress?.(event);
105
- }
106
- };
107
- /**
108
- * Design Requirements
109
- * TextButton needs to be able to be placed inline with other Texts along with
110
- * accompanying icons.
111
- *
112
- * Limitations
113
- * React Native renders Texts and components nested inside Texts very differently.
114
- * In order to fulfil design requirements
115
- * - TextButton needs to be built using Text wrapping the component to ensure
116
- * when placed in line with other Texts, it can be properly displayed inline
117
- * with other Texts.
118
- * - Due to React Native Texts calculating the layout of nested components
119
- * differently, there needs to be a few styling hacks applied below
120
- */
121
- // Get the line height of the text, which is also the height of the component
122
- const finalVariant = finalTextProps.variant;
123
- const { lineHeight } = tw `text-${finalVariant}`;
124
- const componentHeight = Number(lineHeight);
125
- // Due to React Native rendering Views slightly above Texts, any non-texts
126
- // need to be moved down
127
- const nonTextOffSet = 2.5;
128
- // Get the final sizes of Icons to help with manual alignments
129
- const finalStartIconSize = finalStartIconProps.size;
130
- const finalEndIconSize = finalEndIconProps.size;
131
- // Offsets to vertically center the Icon
132
- const finalStartIconOffset = (Number(lineHeight) - Number(finalStartIconSize)) / 2;
133
- const finalEndIconOffset = (Number(lineHeight) - Number(finalEndIconSize)) / 2;
134
36
  /**
135
- * Due to Texts restricting nested components to manipulating layout with
136
- * margins/paddings, we needed to add Nested Views in order to properly add
137
- * additional margins/paddings. However, this causes the Text component to
138
- * somehow not include the Icons as part of the calculation for displaying
139
- * a change in background color onPress. Because of that, we need to mimic
140
- * the behavior on the Icon wrappers by baking the margins into the Icon
141
- * wrappers in order to display the background change properly
37
+ * Calculating the baselineOffset. This baselineOffset is needed to make sure
38
+ * the TextButton aligns perfectly when placed within Text elements
142
39
  */
143
- const marginsBetweenIconAndText = 4;
144
- const startIconWrapperWidth = Number(finalStartIconSize) + marginsBetweenIconAndText;
145
- const endIconWrapperWidth = Number(finalEndIconSize) + marginsBetweenIconAndText;
146
- return (<Text_1.default>
147
- {finalStartIconName && <Text_1.default style={tw `hidden`}> </Text_1.default>}
148
- {isLoading && (<react_native_1.View style={tw `${twContainerClassNames}`}>
149
- <Spinner_1.default {...finalSpinnerProps}/>
150
- </react_native_1.View>)}
151
- <Text_1.default onPress={onPressHandler} onPressIn={onPressInHandler} onPressOut={onPressOutHandler} onLongPress={onLongPressHandler} accessible accessibilityRole="button" accessibilityLabel={accessibilityLabel} style={[tw `${twContainerClassNames}`, style]} testID="text-button" suppressHighlighting {...props}>
152
- {!isLoading && (<>
153
- {finalStartIconName ? (
154
- // This additional View is needed, otherwise things are rendered
155
- // VERY funkily
156
- <react_native_1.View style={tw `h-[${componentHeight}px]`}>
157
- <react_native_1.View style={tw `
158
- ${twContainerClassNames}
159
- items-start mt-[${nonTextOffSet}px]
160
- pt-[${finalStartIconOffset}px]
161
- h-[${componentHeight}px]
162
- w-[${startIconWrapperWidth}px]
163
- `}>
164
- <Icon_1.default name={finalStartIconName} {...finalStartIconProps}/>
165
- </react_native_1.View>
166
- </react_native_1.View>) : (startAccessory)}
167
- <Text_1.default {...finalTextProps}>{children}</Text_1.default>
168
- {finalEndIconName ? (
169
- // This additional View is needed, otherwise things are rendered
170
- // VERY funkily
171
- <react_native_1.View style={tw `h-[${componentHeight}px]`}>
172
- <react_native_1.View style={tw `
173
- ${twContainerClassNames}
174
- items-end
175
- mt-[${nonTextOffSet}px]
176
- pt-[${finalEndIconOffset}px]
177
- h-[${componentHeight}px] w-[${endIconWrapperWidth}px]`}>
178
- <Icon_1.default name={finalEndIconName} {...finalEndIconProps}/>
179
- </react_native_1.View>
180
- </react_native_1.View>) : (endAccessory)}
40
+ const { fontSize, lineHeight } = tw `text-${TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}`;
41
+ const baselineOffset = (lineHeight - fontSize) / 2;
42
+ const getTextColor = (0, react_1.useCallback)((pressed) => {
43
+ if (isInverse) {
44
+ return 'text-primary-inverse';
45
+ }
46
+ return pressed ? 'text-primary-default-pressed' : 'text-primary-default';
47
+ }, [isInverse]);
48
+ const getTextDecoration = (0, react_1.useCallback)((pressed) => isInverse || pressed ? 'underline' : 'no-underline', [isInverse]);
49
+ return (<Text_1.Text>
50
+ <react_native_1.Pressable accessibilityRole={accessibilityRole ?? 'button'} accessibilityLabel={accessibilityLabel} disabled={isDisabled} style={({ pressed }) => [
51
+ { transform: [{ translateY: baselineOffset }] },
52
+ tw `flex-row items-center ${pressed ? 'bg-background-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,
53
+ style,
54
+ ]} {...props}>
55
+ {({ pressed }) => (<>
56
+ {startIconName ? (<Icon_1.Icon name={startIconName} size={Icon_1.IconSize.Sm} testID="start-icon" twClassName={`${getTextColor(pressed)} mr-1`} {...startIconProps}/>) : (startAccessory)}
57
+
58
+ <Text_1.Text variant={TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]} fontWeight={Text_1.FontWeight.Medium} {...textProps} twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}>
59
+ {children}
60
+ </Text_1.Text>
61
+
62
+ {endIconName ? (<Icon_1.Icon name={endIconName} size={Icon_1.IconSize.Sm} testID="end-icon" twClassName={`${getTextColor(pressed)} ml-1`} {...endIconProps}/>) : (endAccessory)}
181
63
  </>)}
182
- </Text_1.default>
183
- {finalEndIconName && <Text_1.default style={tw `hidden`}> </Text_1.default>}
184
- </Text_1.default>);
64
+ </react_native_1.Pressable>
65
+ </Text_1.Text>);
185
66
  };
186
- exports.default = TextButton;
67
+ exports.TextButton = TextButton;
187
68
  //# sourceMappingURL=TextButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.js","s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,CACf,CACD;YAAA,CAAC,cAAI,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAI,CAC1C;YAAA,CAAC,gBAAgB,CAAC,CAAC,CAAC;YAClB,gEAAgE;YAChE,eAAe;YACf,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAA,MAAM,eAAe,KAAK,CAAC,CACxC;gBAAA,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC,EAAE,CAAA;sBACL,qBAAqB;;0BAEjB,aAAa;0BACb,kBAAkB;yBACnB,eAAe,UAAU,mBAAmB,KAAK,CAAC,CAEzD;kBAAA,CAAC,cAAI,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC,IAAI,iBAAiB,CAAC,EACtD;gBAAA,EAAE,mBAAI,CACR;cAAA,EAAE,mBAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CACH;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,cAAI,CACN;MAAA,CAAC,gBAAgB,IAAI,CAAC,cAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAA,QAAQ,CAAC,CAAE,CAAA,EAAE,cAAI,CAAC,CACxD;IAAA,EAAE,cAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo, useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\nimport { View } from 'react-native';\n\nimport type { SpinnerProps } from '../../temp-components/Spinner';\nimport Spinner from '../../temp-components/Spinner';\nimport type { IconProps, IconColor } from '../Icon';\nimport Icon from '../Icon';\nimport Text from '../Text/Text';\nimport type { TextProps } from '../Text/Text.types';\nimport { DEFAULT_TEXTBUTTON_PROPS } from './TextButton.constants';\nimport type { TextButtonProps } from './TextButton.types';\nimport {\n generateTextButtonContainerClassNames,\n generateTextButtonTextClassNames,\n} from './TextButton.utilities';\n\nconst TextButton = ({\n children,\n textProps,\n isLoading = DEFAULT_TEXTBUTTON_PROPS.isLoading,\n loadingText,\n spinnerProps,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n isDisabled = DEFAULT_TEXTBUTTON_PROPS.isDisabled,\n isInverse = DEFAULT_TEXTBUTTON_PROPS.isInverse,\n onPress,\n onPressIn,\n onPressOut,\n onLongPress,\n twClassName,\n accessibilityRole,\n accessibilityLabel,\n style,\n ...props\n}: TextButtonProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n // Styling calculation for state changes\n const twContainerClassNames = useMemo(() => {\n return generateTextButtonContainerClassNames({\n isPressed,\n isLoading,\n isDisabled,\n twClassName,\n });\n }, [isPressed, isLoading, isDisabled, twClassName]);\n\n const twTextClassNames = useMemo(() => {\n return generateTextButtonTextClassNames({\n isPressed,\n isInverse,\n isLoading,\n });\n }, [isPressed, isInverse, isLoading]);\n\n // Merging default settings for Icons with passed in props\n const finalStartIconProps: Partial<IconProps> = {\n ...DEFAULT_TEXTBUTTON_PROPS.startIconProps,\n ...startIconProps,\n twClassName: `${twTextClassNames} ${startIconProps?.twClassName ?? ''}`,\n };\n const finalStartIconName = startIconName ?? startIconProps?.name;\n\n const finalEndIconProps: Partial<IconProps> = {\n ...DEFAULT_TEXTBUTTON_PROPS.endIconProps,\n ...endIconProps,\n twClassName: `${twTextClassNames} ${endIconProps?.twClassName ?? ''}`,\n };\n const finalEndIconName = endIconName ?? endIconProps?.name;\n\n const finalTextProps: Omit<Partial<TextProps>, 'children'> = {\n ...DEFAULT_TEXTBUTTON_PROPS.textProps,\n ...textProps,\n twClassName: `${twTextClassNames} ${textProps?.twClassName ?? ''}`,\n };\n\n // Merging spinner settings for Icons with passed in props\n const finalSpinnerProps: SpinnerProps = {\n ...DEFAULT_TEXTBUTTON_PROPS.spinnerProps,\n loadingText,\n color: twTextClassNames as IconColor,\n loadingTextProps: {\n twClassName: `${twTextClassNames} mt-[2.5px]`,\n },\n ...spinnerProps,\n };\n const onPressHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n onPress?.(event);\n }\n };\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n setIsPressed(true);\n onPressIn?.(event);\n }\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n setIsPressed(false);\n onPressOut?.(event);\n }\n };\n\n const onLongPressHandler = (event: GestureResponderEvent) => {\n if (!isDisabled && !isLoading) {\n onLongPress?.(event);\n }\n };\n\n /**\n * Design Requirements\n * TextButton needs to be able to be placed inline with other Texts along with\n * accompanying icons.\n *\n * Limitations\n * React Native renders Texts and components nested inside Texts very differently.\n * In order to fulfil design requirements\n * - TextButton needs to be built using Text wrapping the component to ensure\n * when placed in line with other Texts, it can be properly displayed inline\n * with other Texts.\n * - Due to React Native Texts calculating the layout of nested components\n * differently, there needs to be a few styling hacks applied below\n */\n\n // Get the line height of the text, which is also the height of the component\n const finalVariant = finalTextProps.variant;\n const { lineHeight } = tw`text-${finalVariant as string}`;\n const componentHeight = Number(lineHeight);\n\n // Due to React Native rendering Views slightly above Texts, any non-texts\n // need to be moved down\n const nonTextOffSet = 2.5;\n\n // Get the final sizes of Icons to help with manual alignments\n const finalStartIconSize = finalStartIconProps.size;\n const finalEndIconSize = finalEndIconProps.size;\n\n // Offsets to vertically center the Icon\n const finalStartIconOffset =\n (Number(lineHeight) - Number(finalStartIconSize)) / 2;\n const finalEndIconOffset =\n (Number(lineHeight) - Number(finalEndIconSize)) / 2;\n\n /**\n * Due to Texts restricting nested components to manipulating layout with\n * margins/paddings, we needed to add Nested Views in order to properly add\n * additional margins/paddings. However, this causes the Text component to\n * somehow not include the Icons as part of the calculation for displaying\n * a change in background color onPress. Because of that, we need to mimic\n * the behavior on the Icon wrappers by baking the margins into the Icon\n * wrappers in order to display the background change properly\n */\n const marginsBetweenIconAndText = 4;\n const startIconWrapperWidth =\n Number(finalStartIconSize) + marginsBetweenIconAndText;\n const endIconWrapperWidth =\n Number(finalEndIconSize) + marginsBetweenIconAndText;\n\n return (\n <Text>\n {finalStartIconName && <Text style={tw`hidden`}> </Text>}\n {isLoading && (\n <View style={tw`${twContainerClassNames}`}>\n <Spinner {...finalSpinnerProps} />\n </View>\n )}\n <Text\n onPress={onPressHandler}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n onLongPress={onLongPressHandler}\n accessible\n accessibilityRole=\"button\"\n accessibilityLabel={accessibilityLabel}\n style={[tw`${twContainerClassNames}`, style]}\n testID=\"text-button\"\n suppressHighlighting\n {...props}\n >\n {!isLoading && (\n <>\n {finalStartIconName ? (\n // This additional View is needed, otherwise things are rendered\n // VERY funkily\n <View style={tw`h-[${componentHeight}px]`}>\n <View\n style={tw`\n ${twContainerClassNames} \n items-start mt-[${nonTextOffSet}px] \n pt-[${finalStartIconOffset}px] \n h-[${componentHeight}px] \n w-[${startIconWrapperWidth}px]\n `}\n >\n <Icon name={finalStartIconName} {...finalStartIconProps} />\n </View>\n </View>\n ) : (\n startAccessory\n )}\n <Text {...finalTextProps}>{children}</Text>\n {finalEndIconName ? (\n // This additional View is needed, otherwise things are rendered\n // VERY funkily\n <View style={tw`h-[${componentHeight}px]`}>\n <View\n style={tw`\n ${twContainerClassNames} \n items-end \n mt-[${nonTextOffSet}px] \n pt-[${finalEndIconOffset}px] \n h-[${componentHeight}px] w-[${endIconWrapperWidth}px]`}\n >\n <Icon name={finalEndIconName} {...finalEndIconProps} />\n </View>\n </View>\n ) : (\n endAccessory\n )}\n </>\n )}\n </Text>\n {finalEndIconName && <Text style={tw`hidden`}> </Text>}\n </Text>\n );\n};\n\nexport default TextButton;\n"]}
1
+ {"version":3,"file":"TextButton.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4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,MAAM,CAAC,UAAU,CACjB,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAC7C,IAAI,YAAY,CAAC,EACjB,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CACH;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,wBAAS,CACb;IAAA,EAAE,WAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAnGW,QAAA,UAAU,cAmGrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { Pressable } from 'react-native';\n\nimport { TextButtonSize } from '../../types';\nimport { Icon, IconSize } from '../Icon';\nimport { Text, FontWeight } from '../Text';\n\nimport { MAP_TEXTBUTTON_SIZE_TEXTVARIANT } from './TextButton.constants';\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton: React.FC<TextButtonProps> = ({\n children,\n size = TextButtonSize.BodyMd,\n textProps,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n isDisabled = false,\n isInverse = false,\n twClassName = '',\n accessibilityRole,\n accessibilityLabel,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n /**\n * Calculating the baselineOffset. This baselineOffset is needed to make sure\n * the TextButton aligns perfectly when placed within Text elements\n */\n const { fontSize, lineHeight } = tw`text-${\n MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size] as string\n }` as {\n fontSize: number;\n lineHeight: number;\n };\n const baselineOffset = (lineHeight - fontSize) / 2;\n\n const getTextColor = useCallback(\n (pressed: boolean): string => {\n if (isInverse) {\n return 'text-primary-inverse';\n }\n return pressed ? 'text-primary-default-pressed' : 'text-primary-default';\n },\n [isInverse],\n );\n\n const getTextDecoration = useCallback(\n (pressed: boolean): string =>\n isInverse || pressed ? 'underline' : 'no-underline',\n [isInverse],\n );\n\n return (\n <Text>\n <Pressable\n accessibilityRole={accessibilityRole ?? 'button'}\n accessibilityLabel={accessibilityLabel}\n disabled={isDisabled}\n style={({ pressed }) => [\n { transform: [{ translateY: baselineOffset }] },\n tw`flex-row items-center ${pressed ? 'bg-background-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,\n style,\n ]}\n {...props}\n >\n {({ pressed }) => (\n <>\n {startIconName ? (\n <Icon\n name={startIconName}\n size={IconSize.Sm}\n testID=\"start-icon\"\n twClassName={`${getTextColor(pressed)} mr-1`}\n {...startIconProps}\n />\n ) : (\n startAccessory\n )}\n\n <Text\n variant={MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}\n fontWeight={FontWeight.Medium}\n {...textProps}\n twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}\n >\n {children}\n </Text>\n\n {endIconName ? (\n <Icon\n name={endIconName}\n size={IconSize.Sm}\n testID=\"end-icon\"\n twClassName={`${getTextColor(pressed)} ml-1`}\n {...endIconProps}\n />\n ) : (\n endAccessory\n )}\n </>\n )}\n </Pressable>\n </Text>\n );\n};\n"]}
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import type { PressableProps, StyleProp, ViewStyle } from 'react-native';
2
- import type { TextProps } from 'src/components/Text/Text.types';
3
- import type { SpinnerProps } from '../../temp-components/Spinner';
3
+ import type { TextButtonSize } from '../../types';
4
4
  import type { IconProps, IconName } from '../Icon';
5
+ import type { TextProps } from '../Text';
5
6
  /**
6
7
  * TextButton component props.
7
8
  */
@@ -11,22 +12,15 @@ export type TextButtonProps = {
11
12
  */
12
13
  children: string;
13
14
  /**
14
- * Optional props to be passed to the Text component when children is a string
15
- */
16
- textProps?: Omit<Partial<TextProps>, 'children'>;
17
- /**
18
- * Optional prop that when true, shows a loading spinner
19
- * @default false
15
+ * Optional prop to control the size of the TextButton
16
+ *
17
+ * @default TextButtonSize.BodyMd
20
18
  */
21
- isLoading?: boolean;
19
+ size?: TextButtonSize;
22
20
  /**
23
- * Optional prop for text to display when button is in loading state
24
- */
25
- loadingText?: string;
26
- /**
27
- * Optional prop to pass additional properties to the end icon
21
+ * Optional props to be passed to the Text component when children is a string
28
22
  */
29
- spinnerProps?: Partial<SpinnerProps>;
23
+ textProps?: Omit<Partial<TextProps>, 'children'>;
30
24
  /**
31
25
  * Optional prop to specify an icon to show at the start of the button
32
26
  */
@@ -53,11 +47,13 @@ export type TextButtonProps = {
53
47
  endAccessory?: React.ReactNode;
54
48
  /**
55
49
  * Optional prop that when true, disables the button
50
+ *
56
51
  * @default false
57
52
  */
58
53
  isDisabled?: boolean;
59
54
  /**
60
55
  * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.
56
+ *
61
57
  * @default false
62
58
  */
63
59
  isInverse?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACjD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACrC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TextButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.types.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, StyleProp, ViewStyle } from 'react-native';\nimport type { TextProps } from 'src/components/Text/Text.types';\n\nimport type { SpinnerProps } from '../../temp-components/Spinner';\nimport type { IconProps, IconName } from '../Icon';\n\n/**\n * TextButton component props.\n */\nexport type TextButtonProps = {\n /**\n * Required prop for the content to be rendered within the TextButton\n */\n children: string;\n /**\n * Optional props to be passed to the Text component when children is a string\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop that when true, shows a loading spinner\n * @default false\n */\n isLoading?: boolean;\n /**\n * Optional prop for text to display when button is in loading state\n */\n loadingText?: string;\n /**\n * Optional prop to pass additional properties to the end icon\n */\n spinnerProps?: Partial<SpinnerProps>;\n /**\n * Optional prop to specify an icon to show at the start of the button\n */\n startIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the start icon\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the start of the button\n */\n startAccessory?: React.ReactNode;\n /**\n * Optional prop to specify an icon to show at the end of the button\n */\n endIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the end icon\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the end of the button\n */\n endAccessory?: React.ReactNode;\n /**\n * Optional prop that when true, disables the button\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<PressableProps, 'disabled'>;\n"]}
1
+ {"version":3,"file":"TextButton.types.js","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextButtonSize } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * TextButton component props.\n */\nexport type TextButtonProps = {\n /**\n * Required prop for the content to be rendered within the TextButton\n */\n children: string;\n /**\n * Optional prop to control the size of the TextButton\n *\n * @default TextButtonSize.BodyMd\n */\n size?: TextButtonSize;\n /**\n * Optional props to be passed to the Text component when children is a string\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop to specify an icon to show at the start of the button\n */\n startIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the start icon\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the start of the button\n */\n startAccessory?: React.ReactNode;\n /**\n * Optional prop to specify an icon to show at the end of the button\n */\n endIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the end icon\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Optional prop for a custom element to show at the end of the button\n */\n endAccessory?: React.ReactNode;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.\n *\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<PressableProps, 'disabled'>;\n"]}
@@ -1,3 +1,4 @@
1
- export { default } from './TextButton';
1
+ export { TextButtonSize } from '../../types';
2
+ export { TextButton } from './TextButton';
2
3
  export type { TextButtonProps } from './TextButton.types';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
3
+ exports.TextButton = exports.TextButtonSize = void 0;
4
+ var types_1 = require("../../types");
5
+ Object.defineProperty(exports, "TextButtonSize", { enumerable: true, get: function () { return types_1.TextButtonSize; } });
7
6
  var TextButton_1 = require("./TextButton");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(TextButton_1).default; } });
7
+ Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
9
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAuC;AAA9B,sHAAA,OAAO,OAAA","sourcesContent":["export { default } from './TextButton';\nexport type { TextButtonProps } from './TextButton.types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextButton/index.ts"],"names":[],"mappings":";;;AAAA,qCAA6C;AAApC,uGAAA,cAAc,OAAA;AACvB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { TextButtonSize } from '../../types';\nexport { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton.types';\n"]}
@@ -0,0 +1,49 @@
1
+ export { AvatarAccount, AvatarAccountVariant, AvatarAccountSize, } from './AvatarAccount';
2
+ export type { AvatarAccountProps } from './AvatarAccount';
3
+ export { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './AvatarBase';
4
+ export type { AvatarBaseProps } from './AvatarBase';
5
+ export { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';
6
+ export type { AvatarFaviconProps } from './AvatarFavicon';
7
+ export { AvatarGroup, AvatarGroupSize, AvatarGroupVariant, } from './AvatarGroup';
8
+ export type { AvatarGroupProps } from './AvatarGroup';
9
+ export { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';
10
+ export type { AvatarIconProps } from './AvatarIcon';
11
+ export { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';
12
+ export type { AvatarNetworkProps } from './AvatarNetwork';
13
+ export { AvatarToken, AvatarTokenSize } from './AvatarToken';
14
+ export type { AvatarTokenProps } from './AvatarToken';
15
+ export { BadgeCount, BadgeCountSize } from './BadgeCount';
16
+ export type { BadgeCountProps } from './BadgeCount';
17
+ export { BadgeIcon } from './BadgeIcon';
18
+ export type { BadgeIconProps } from './BadgeIcon';
19
+ export { BadgeNetwork } from './BadgeNetwork';
20
+ export type { BadgeNetworkProps } from './BadgeNetwork';
21
+ export { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';
22
+ export type { BadgeStatusProps } from './BadgeStatus';
23
+ export { BadgeWrapper, BadgeWrapperPosition, BadgeWrapperPositionAnchorShape, } from './BadgeWrapper';
24
+ export type { BadgeWrapperProps, BadgeWrapperCustomPosition, } from './BadgeWrapper';
25
+ export { Blockies } from './temp-components/Blockies';
26
+ export type { BlockiesProps } from './temp-components/Blockies';
27
+ export { ButtonAnimated } from './temp-components/ButtonAnimated';
28
+ export type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';
29
+ export { ButtonBase, ButtonBaseSize } from './ButtonBase';
30
+ export type { ButtonBaseProps } from './ButtonBase';
31
+ export { Button, ButtonSize, ButtonVariant } from './Button';
32
+ export type { ButtonProps } from './Button';
33
+ export { ButtonIcon, ButtonIconSize } from './ButtonIcon';
34
+ export type { ButtonIconProps } from './ButtonIcon';
35
+ export { Checkbox } from './Checkbox';
36
+ export type { CheckboxProps } from './Checkbox';
37
+ export { Icon, IconColor, IconName, IconSize } from './Icon';
38
+ export type { IconProps } from './Icon';
39
+ export { Jazzicon } from './temp-components/Jazzicon';
40
+ export type { JazziconProps } from './temp-components/Jazzicon';
41
+ export { Maskicon } from './temp-components/Maskicon';
42
+ export type { MaskiconProps } from './temp-components/Maskicon';
43
+ export { TextButton } from './TextButton';
44
+ export type { TextButtonProps } from './TextButton';
45
+ export { Text, FontWeight, FontFamily, FontStyle, TextColor, TextVariant, } from './Text';
46
+ export type { TextProps } from './Text';
47
+ export { TextOrChildren } from './temp-components/TextOrChildren';
48
+ export type { TextOrChildrenProps } from './temp-components/TextOrChildren';
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO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AW,GACZ,MAAM,QAAQ,CAAC;AAChB,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextColor = exports.FontStyle = exports.FontFamily = exports.FontWeight = exports.Text = exports.TextButton = exports.Maskicon = exports.Jazzicon = exports.IconSize = exports.IconName = exports.IconColor = exports.Icon = exports.Checkbox = exports.ButtonIconSize = exports.ButtonIcon = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonBaseSize = exports.ButtonBase = exports.ButtonAnimated = exports.Blockies = exports.BadgeWrapperPositionAnchorShape = exports.BadgeWrapperPosition = exports.BadgeWrapper = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeStatus = exports.BadgeNetwork = exports.BadgeIcon = exports.BadgeCountSize = exports.BadgeCount = exports.AvatarTokenSize = exports.AvatarToken = exports.AvatarNetworkSize = exports.AvatarNetwork = exports.AvatarIconSize = exports.AvatarIconSeverity = exports.AvatarIcon = exports.AvatarGroupVariant = exports.AvatarGroupSize = exports.AvatarGroup = exports.AvatarFaviconSize = exports.AvatarFavicon = exports.AvatarBaseShape = exports.AvatarBaseSize = exports.AvatarBase = exports.AvatarAccountSize = exports.AvatarAccountVariant = exports.AvatarAccount = void 0;
4
+ exports.TextOrChildren = exports.TextVariant = void 0;
5
+ var AvatarAccount_1 = require("./AvatarAccount");
6
+ Object.defineProperty(exports, "AvatarAccount", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccount; } });
7
+ Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountVariant; } });
8
+ Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return AvatarAccount_1.AvatarAccountSize; } });
9
+ var AvatarBase_1 = require("./AvatarBase");
10
+ Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return AvatarBase_1.AvatarBase; } });
11
+ Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseSize; } });
12
+ Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return AvatarBase_1.AvatarBaseShape; } });
13
+ var AvatarFavicon_1 = require("./AvatarFavicon");
14
+ Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFavicon; } });
15
+ Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFaviconSize; } });
16
+ var AvatarGroup_1 = require("./AvatarGroup");
17
+ Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroup; } });
18
+ Object.defineProperty(exports, "AvatarGroupSize", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroupSize; } });
19
+ Object.defineProperty(exports, "AvatarGroupVariant", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroupVariant; } });
20
+ var AvatarIcon_1 = require("./AvatarIcon");
21
+ Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIcon; } });
22
+ Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIconSeverity; } });
23
+ Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIconSize; } });
24
+ var AvatarNetwork_1 = require("./AvatarNetwork");
25
+ Object.defineProperty(exports, "AvatarNetwork", { enumerable: true, get: function () { return AvatarNetwork_1.AvatarNetwork; } });
26
+ Object.defineProperty(exports, "AvatarNetworkSize", { enumerable: true, get: function () { return AvatarNetwork_1.AvatarNetworkSize; } });
27
+ var AvatarToken_1 = require("./AvatarToken");
28
+ Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return AvatarToken_1.AvatarToken; } });
29
+ Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return AvatarToken_1.AvatarTokenSize; } });
30
+ var BadgeCount_1 = require("./BadgeCount");
31
+ Object.defineProperty(exports, "BadgeCount", { enumerable: true, get: function () { return BadgeCount_1.BadgeCount; } });
32
+ Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return BadgeCount_1.BadgeCountSize; } });
33
+ var BadgeIcon_1 = require("./BadgeIcon");
34
+ Object.defineProperty(exports, "BadgeIcon", { enumerable: true, get: function () { return BadgeIcon_1.BadgeIcon; } });
35
+ var BadgeNetwork_1 = require("./BadgeNetwork");
36
+ Object.defineProperty(exports, "BadgeNetwork", { enumerable: true, get: function () { return BadgeNetwork_1.BadgeNetwork; } });
37
+ var BadgeStatus_1 = require("./BadgeStatus");
38
+ Object.defineProperty(exports, "BadgeStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatus; } });
39
+ Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusStatus; } });
40
+ Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return BadgeStatus_1.BadgeStatusSize; } });
41
+ var BadgeWrapper_1 = require("./BadgeWrapper");
42
+ Object.defineProperty(exports, "BadgeWrapper", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapper; } });
43
+ Object.defineProperty(exports, "BadgeWrapperPosition", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPosition; } });
44
+ Object.defineProperty(exports, "BadgeWrapperPositionAnchorShape", { enumerable: true, get: function () { return BadgeWrapper_1.BadgeWrapperPositionAnchorShape; } });
45
+ var Blockies_1 = require("./temp-components/Blockies");
46
+ Object.defineProperty(exports, "Blockies", { enumerable: true, get: function () { return Blockies_1.Blockies; } });
47
+ var ButtonAnimated_1 = require("./temp-components/ButtonAnimated");
48
+ Object.defineProperty(exports, "ButtonAnimated", { enumerable: true, get: function () { return ButtonAnimated_1.ButtonAnimated; } });
49
+ var ButtonBase_1 = require("./ButtonBase");
50
+ Object.defineProperty(exports, "ButtonBase", { enumerable: true, get: function () { return ButtonBase_1.ButtonBase; } });
51
+ Object.defineProperty(exports, "ButtonBaseSize", { enumerable: true, get: function () { return ButtonBase_1.ButtonBaseSize; } });
52
+ var Button_1 = require("./Button");
53
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
54
+ Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return Button_1.ButtonSize; } });
55
+ Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return Button_1.ButtonVariant; } });
56
+ var ButtonIcon_1 = require("./ButtonIcon");
57
+ Object.defineProperty(exports, "ButtonIcon", { enumerable: true, get: function () { return ButtonIcon_1.ButtonIcon; } });
58
+ Object.defineProperty(exports, "ButtonIconSize", { enumerable: true, get: function () { return ButtonIcon_1.ButtonIconSize; } });
59
+ var Checkbox_1 = require("./Checkbox");
60
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
61
+ var Icon_1 = require("./Icon");
62
+ Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
63
+ Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return Icon_1.IconColor; } });
64
+ Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return Icon_1.IconName; } });
65
+ Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return Icon_1.IconSize; } });
66
+ var Jazzicon_1 = require("./temp-components/Jazzicon");
67
+ Object.defineProperty(exports, "Jazzicon", { enumerable: true, get: function () { return Jazzicon_1.Jazzicon; } });
68
+ var Maskicon_1 = require("./temp-components/Maskicon");
69
+ Object.defineProperty(exports, "Maskicon", { enumerable: true, get: function () { return Maskicon_1.Maskicon; } });
70
+ var TextButton_1 = require("./TextButton");
71
+ Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return TextButton_1.TextButton; } });
72
+ var Text_1 = require("./Text");
73
+ Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
74
+ Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return Text_1.FontWeight; } });
75
+ Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return Text_1.FontFamily; } });
76
+ Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return Text_1.FontStyle; } });
77
+ Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return Text_1.TextColor; } });
78
+ Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return Text_1.TextVariant; } });
79
+ var TextOrChildren_1 = require("./temp-components/TextOrChildren");
80
+ Object.defineProperty(exports, "TextOrChildren", { enumerable: true, get: function () { return TextOrChildren_1.TextOrChildren; } });
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;AAAA,iDAIyB;AAHvB,8GAAA,aAAa,OAAA;AACb,qHAAA,oBAAoB,OAAA;AACpB,kHAAA,iBAAiB,OAAA;AAInB,2CAA2E;AAAlE,wGAAA,UAAU,OAAA;AAAE,4GAAA,cAAc,OAAA;AAAE,6GAAA,eAAe,OAAA;AAGpD,iDAAmE;AAA1D,8GAAA,aAAa,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAGzC,6CAIuB;AAHrB,0GAAA,WAAW,OAAA;AACX,8GAAA,eAAe,OAAA;AACf,iHAAA,kBAAkB,OAAA;AAIpB,2CAA8E;AAArE,wGAAA,UAAU,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,4GAAA,cAAc,OAAA;AAGvD,iDAAmE;AAA1D,8GAAA,aAAa,OAAA;AAAE,kHAAA,iBAAiB,OAAA;AAGzC,6CAA6D;AAApD,0GAAA,WAAW,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGrC,2CAA0D;AAAjD,wGAAA,UAAU,OAAA;AAAE,4GAAA,cAAc,OAAA;AAGnC,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAGlB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAGrB,6CAAgF;AAAvE,0GAAA,WAAW,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGxD,+CAIwB;AAHtB,4GAAA,YAAY,OAAA;AACZ,oHAAA,oBAAoB,OAAA;AACpB,+HAAA,+BAA+B,OAAA;AAOjC,uDAAsD;AAA7C,oGAAA,QAAQ,OAAA;AAGjB,mEAAkE;AAAzD,gHAAA,cAAc,OAAA;AAGvB,2CAA0D;AAAjD,wGAAA,UAAU,OAAA;AAAE,4GAAA,cAAc,OAAA;AAGnC,mCAA6D;AAApD,gGAAA,MAAM,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,uGAAA,aAAa,OAAA;AAG1C,2CAA0D;AAAjD,wGAAA,UAAU,OAAA;AAAE,4GAAA,cAAc,OAAA;AAGnC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAGjB,+BAA6D;AAApD,4FAAA,IAAI,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAG5C,uDAAsD;AAA7C,oGAAA,QAAQ,OAAA;AAGjB,uDAAsD;AAA7C,oGAAA,QAAQ,OAAA;AAGjB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAGnB,+BAOgB;AANd,4FAAA,IAAI,OAAA;AACJ,kGAAA,UAAU,OAAA;AACV,kGAAA,UAAU,OAAA;AACV,iGAAA,SAAS,OAAA;AACT,iGAAA,SAAS,OAAA;AACT,mGAAA,WAAW,OAAA;AAIb,mEAAkE;AAAzD,gHAAA,cAAc,OAAA","sourcesContent":["export {\n AvatarAccount,\n AvatarAccountVariant,\n AvatarAccountSize,\n} from './AvatarAccount';\nexport type { AvatarAccountProps } from './AvatarAccount';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon';\n\nexport {\n AvatarGroup,\n AvatarGroupSize,\n AvatarGroupVariant,\n} from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup';\n\nexport { AvatarIcon, AvatarIconSeverity, AvatarIconSize } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './AvatarNetwork';\nexport type { AvatarNetworkProps } from './AvatarNetwork';\n\nexport { AvatarToken, AvatarTokenSize } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken';\n\nexport { BadgeCount, BadgeCountSize } from './BadgeCount';\nexport type { BadgeCountProps } from './BadgeCount';\n\nexport { BadgeIcon } from './BadgeIcon';\nexport type { BadgeIconProps } from './BadgeIcon';\n\nexport { BadgeNetwork } from './BadgeNetwork';\nexport type { BadgeNetworkProps } from './BadgeNetwork';\n\nexport { BadgeStatus, BadgeStatusStatus, BadgeStatusSize } from './BadgeStatus';\nexport type { BadgeStatusProps } from './BadgeStatus';\n\nexport {\n BadgeWrapper,\n BadgeWrapperPosition,\n BadgeWrapperPositionAnchorShape,\n} from './BadgeWrapper';\nexport type {\n BadgeWrapperProps,\n BadgeWrapperCustomPosition,\n} from './BadgeWrapper';\n\nexport { Blockies } from './temp-components/Blockies';\nexport type { BlockiesProps } from './temp-components/Blockies';\n\nexport { ButtonAnimated } from './temp-components/ButtonAnimated';\nexport type { ButtonAnimatedProps } from './temp-components/ButtonAnimated';\n\nexport { ButtonBase, ButtonBaseSize } from './ButtonBase';\nexport type { ButtonBaseProps } from './ButtonBase';\n\nexport { Button, ButtonSize, ButtonVariant } from './Button';\nexport type { ButtonProps } from './Button';\n\nexport { ButtonIcon, ButtonIconSize } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon';\n\nexport { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox';\n\nexport { Icon, IconColor, IconName, IconSize } from './Icon';\nexport type { IconProps } from './Icon';\n\nexport { Jazzicon } from './temp-components/Jazzicon';\nexport type { JazziconProps } from './temp-components/Jazzicon';\n\nexport { Maskicon } from './temp-components/Maskicon';\nexport type { MaskiconProps } from './temp-components/Maskicon';\n\nexport { TextButton } from './TextButton';\nexport type { TextButtonProps } from './TextButton';\n\nexport {\n Text,\n FontWeight,\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from './Text';\nexport type { TextProps } from './Text';\n\nexport { TextOrChildren } from './temp-components/TextOrChildren';\nexport type { TextOrChildrenProps } from './temp-components/TextOrChildren';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { BlockiesProps } from './Blockies.types';
3
+ export declare const Blockies: ({ address, size, ...props }: BlockiesProps) => React.JSX.Element;
4
+ //# sourceMappingURL=Blockies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,gCAAsC,aAAa,sBASvE,CAAC"}
@@ -3,13 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
6
+ exports.Blockies = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
- // @ts-ignore
10
9
  const Blockies_utilities_1 = require("./Blockies.utilities");
11
10
  const Blockies = ({ address, size = 32, ...props }) => {
12
11
  return (<react_native_1.Image source={{ uri: (0, Blockies_utilities_1.toDataUrl)(address) }} width={size} height={size} {...props}/>);
13
12
  };
14
- exports.default = Blockies;
13
+ exports.Blockies = Blockies;
15
14
  //# sourceMappingURL=Blockies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAAqC;AAIrC,6DAAiD;AAE1C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,IAAA,8BAAS,EAAC,OAAO,CAAC,EAAE,CAAC,CACpC,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,MAAM,CAAC,CAAC,IAAI,CAAC,CACb,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB","sourcesContent":["import React from 'react';\nimport { Image } from 'react-native';\n\n// @ts-ignore\nimport type { BlockiesProps } from './Blockies.types';\nimport { toDataUrl } from './Blockies.utilities';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n return (\n <Image\n source={{ uri: toDataUrl(address) }}\n width={size}\n height={size}\n {...props}\n />\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { ImageProps } from 'react-native';
1
+ import type { ImageProps } from 'react-native';
2
2
  /**
3
3
  * Blockies component props.
4
4
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.types.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImageProps } from 'react-native';\n\n/**\n * Blockies component props.\n */\nexport type BlockiesProps = {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n} & Omit<ImageProps, 'source' | 'width' | 'height'>;\n"]}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A handy class to calculate color values and generate PNG images.
3
+ *
4
+ * @version 1.0.0
5
+ * @author Robert Eisele <robert@xarg.org>
6
+ * @copyright Copyright (c) 2010, Robert Eisele
7
+ * @see {@link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/}
8
+ * @license BSD-3-Clause
9
+ */
10
+ /**
11
+ * Utility class with the single responsibility
12
+ * of caching Blockies Data URIs
13
+ */
14
+ export declare class Blockies {
15
+ static cache: Record<string, string>;
16
+ }
17
+ /**
18
+ * Generate a Blockies data URL for a given address
19
+ *
20
+ * @param address The address to generate a Blockies for
21
+ * @returns A data URL string containing the Blockies image
22
+ */
23
+ export declare function toDataUrl(address: string): string;
24
+ //# sourceMappingURL=Blockies.utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockies.utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Blockies/Blockies.utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAqjBH;;;GAGG;AACH,qBAAa,QAAQ;IACnB,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;CAC3C;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAuCjD"}