@metamask-previews/design-system-react-native 0.0.0-preview.52473ea → 0.0.0-preview.58198a0

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 (695) hide show
  1. package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts +2 -0
  2. package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts.map +1 -0
  3. package/dist/components/AvatarAccount/AvatarAccount.constants.js +19 -0
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.js.map +1 -0
  5. package/dist/components/AvatarAccount/AvatarAccount.d.ts +4 -0
  6. package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -0
  7. package/dist/components/AvatarAccount/AvatarAccount.js +32 -0
  8. package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -0
  9. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +33 -0
  10. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -0
  11. package/dist/components/AvatarAccount/AvatarAccount.types.js +3 -0
  12. package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -0
  13. package/dist/components/AvatarAccount/index.d.ts +4 -0
  14. package/dist/components/AvatarAccount/index.d.ts.map +1 -0
  15. package/dist/components/AvatarAccount/index.js +9 -0
  16. package/dist/components/AvatarAccount/index.js.map +1 -0
  17. package/dist/components/AvatarBase/AvatarBase.constants.d.ts +6 -0
  18. package/dist/components/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
  19. package/dist/components/AvatarBase/AvatarBase.constants.js +33 -0
  20. package/dist/components/AvatarBase/AvatarBase.constants.js.map +1 -0
  21. package/dist/components/AvatarBase/AvatarBase.d.ts +4 -0
  22. package/dist/components/AvatarBase/AvatarBase.d.ts.map +1 -0
  23. package/dist/components/AvatarBase/AvatarBase.js +31 -0
  24. package/dist/components/AvatarBase/AvatarBase.js.map +1 -0
  25. package/dist/components/AvatarBase/AvatarBase.types.d.ts +59 -0
  26. package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
  27. package/dist/components/AvatarBase/AvatarBase.types.js +3 -0
  28. package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
  29. package/dist/components/AvatarBase/index.d.ts +4 -0
  30. package/dist/components/AvatarBase/index.d.ts.map +1 -0
  31. package/dist/components/AvatarBase/index.js +9 -0
  32. package/dist/components/AvatarBase/index.js.map +1 -0
  33. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +4 -0
  34. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -0
  35. package/dist/components/AvatarFavicon/AvatarFavicon.js +50 -0
  36. package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -0
  37. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +21 -0
  38. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -0
  39. package/dist/components/AvatarFavicon/AvatarFavicon.types.js +3 -0
  40. package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -0
  41. package/dist/components/AvatarFavicon/index.d.ts +4 -0
  42. package/dist/components/AvatarFavicon/index.d.ts.map +1 -0
  43. package/dist/components/AvatarFavicon/index.js +8 -0
  44. package/dist/components/AvatarFavicon/index.js.map +1 -0
  45. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +5 -0
  46. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -0
  47. package/dist/components/AvatarGroup/AvatarGroup.constants.js +21 -0
  48. package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -0
  49. package/dist/components/AvatarGroup/AvatarGroup.d.ts +4 -0
  50. package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
  51. package/dist/components/AvatarGroup/AvatarGroup.js +71 -0
  52. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -0
  53. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +68 -0
  54. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -0
  55. package/dist/components/AvatarGroup/AvatarGroup.types.js +3 -0
  56. package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -0
  57. package/dist/components/AvatarGroup/index.d.ts +4 -0
  58. package/dist/components/AvatarGroup/index.d.ts.map +1 -0
  59. package/dist/components/AvatarGroup/index.js +9 -0
  60. package/dist/components/AvatarGroup/index.js.map +1 -0
  61. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +6 -0
  62. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -0
  63. package/dist/components/AvatarIcon/AvatarIcon.constants.js +28 -0
  64. package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -0
  65. package/dist/components/AvatarIcon/AvatarIcon.d.ts +4 -0
  66. package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -0
  67. package/dist/components/AvatarIcon/AvatarIcon.js +24 -0
  68. package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -0
  69. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +23 -0
  70. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -0
  71. package/dist/components/AvatarIcon/AvatarIcon.types.js +3 -0
  72. package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -0
  73. package/dist/components/AvatarIcon/index.d.ts +4 -0
  74. package/dist/components/AvatarIcon/index.d.ts.map +1 -0
  75. package/dist/components/AvatarIcon/index.js +9 -0
  76. package/dist/components/AvatarIcon/index.js.map +1 -0
  77. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +4 -0
  78. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -0
  79. package/dist/components/AvatarNetwork/AvatarNetwork.js +50 -0
  80. package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -0
  81. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +21 -0
  82. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -0
  83. package/dist/components/AvatarNetwork/AvatarNetwork.types.js +3 -0
  84. package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -0
  85. package/dist/components/AvatarNetwork/index.d.ts +4 -0
  86. package/dist/components/AvatarNetwork/index.d.ts.map +1 -0
  87. package/dist/components/AvatarNetwork/index.js +8 -0
  88. package/dist/components/AvatarNetwork/index.js.map +1 -0
  89. package/dist/components/AvatarToken/AvatarToken.d.ts +4 -0
  90. package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -0
  91. package/dist/components/AvatarToken/AvatarToken.js +50 -0
  92. package/dist/components/AvatarToken/AvatarToken.js.map +1 -0
  93. package/dist/components/AvatarToken/AvatarToken.types.d.ts +21 -0
  94. package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -0
  95. package/dist/components/AvatarToken/AvatarToken.types.js +3 -0
  96. package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -0
  97. package/dist/components/AvatarToken/index.d.ts +4 -0
  98. package/dist/components/AvatarToken/index.d.ts.map +1 -0
  99. package/dist/components/AvatarToken/index.js +8 -0
  100. package/dist/components/AvatarToken/index.js.map +1 -0
  101. package/dist/components/BadgeCount/BadgeCount.constants.d.ts +6 -0
  102. package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -0
  103. package/dist/components/BadgeCount/BadgeCount.constants.js +19 -0
  104. package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -0
  105. package/dist/components/BadgeCount/BadgeCount.d.ts +4 -0
  106. package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -0
  107. package/dist/components/BadgeCount/BadgeCount.js +30 -0
  108. package/dist/components/BadgeCount/BadgeCount.js.map +1 -0
  109. package/dist/components/BadgeCount/BadgeCount.types.d.ts +39 -0
  110. package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -0
  111. package/dist/components/BadgeCount/BadgeCount.types.js +3 -0
  112. package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -0
  113. package/dist/components/BadgeCount/index.d.ts +4 -0
  114. package/dist/components/BadgeCount/index.d.ts.map +1 -0
  115. package/dist/components/BadgeCount/index.js +8 -0
  116. package/dist/components/BadgeCount/index.js.map +1 -0
  117. package/dist/components/BadgeIcon/BadgeIcon.d.ts +4 -0
  118. package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -0
  119. package/dist/components/BadgeIcon/BadgeIcon.js +26 -0
  120. package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -0
  121. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +20 -0
  122. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -0
  123. package/dist/components/BadgeIcon/BadgeIcon.types.js +3 -0
  124. package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -0
  125. package/dist/components/BadgeIcon/index.d.ts +3 -0
  126. package/dist/components/BadgeIcon/index.d.ts.map +1 -0
  127. package/dist/components/BadgeIcon/index.js +6 -0
  128. package/dist/components/BadgeIcon/index.js.map +1 -0
  129. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +4 -0
  130. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -0
  131. package/dist/components/BadgeNetwork/BadgeNetwork.js +11 -0
  132. package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -0
  133. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +17 -0
  134. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -0
  135. package/dist/components/BadgeNetwork/BadgeNetwork.types.js +3 -0
  136. package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -0
  137. package/dist/components/BadgeNetwork/index.d.ts +3 -0
  138. package/dist/components/BadgeNetwork/index.d.ts.map +1 -0
  139. package/dist/components/BadgeNetwork/index.js +6 -0
  140. package/dist/components/BadgeNetwork/index.js.map +1 -0
  141. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +4 -0
  142. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -0
  143. package/dist/components/BadgeStatus/BadgeStatus.constants.js +17 -0
  144. package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -0
  145. package/dist/components/BadgeStatus/BadgeStatus.d.ts +4 -0
  146. package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -0
  147. package/dist/components/BadgeStatus/BadgeStatus.js +24 -0
  148. package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -0
  149. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +37 -0
  150. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -0
  151. package/dist/components/BadgeStatus/BadgeStatus.types.js +3 -0
  152. package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -0
  153. package/dist/components/BadgeStatus/index.d.ts +4 -0
  154. package/dist/components/BadgeStatus/index.d.ts.map +1 -0
  155. package/dist/components/BadgeStatus/index.js +9 -0
  156. package/dist/components/BadgeStatus/index.js.map +1 -0
  157. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
  158. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
  159. package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
  160. package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
  161. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
  162. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
  163. package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
  164. package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
  165. package/dist/components/BadgeWrapper/index.d.ts +5 -0
  166. package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
  167. package/dist/components/BadgeWrapper/index.js +9 -0
  168. package/dist/components/BadgeWrapper/index.js.map +1 -0
  169. package/dist/components/Button/Button.d.ts +4 -0
  170. package/dist/components/Button/Button.d.ts.map +1 -0
  171. package/dist/components/Button/Button.js +26 -0
  172. package/dist/components/Button/Button.js.map +1 -0
  173. package/dist/components/Button/Button.types.d.ts +14 -0
  174. package/dist/components/Button/Button.types.d.ts.map +1 -0
  175. package/dist/components/Button/Button.types.js +3 -0
  176. package/dist/components/Button/Button.types.js.map +1 -0
  177. package/dist/components/Button/index.d.ts +4 -0
  178. package/dist/components/Button/index.d.ts.map +1 -0
  179. package/dist/components/Button/index.js +9 -0
  180. package/dist/components/Button/index.js.map +1 -0
  181. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +4 -0
  182. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -0
  183. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +106 -0
  184. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -0
  185. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +19 -0
  186. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -0
  187. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js +3 -0
  188. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -0
  189. package/dist/components/Button/variants/ButtonPrimary/index.d.ts +4 -0
  190. package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -0
  191. package/dist/components/Button/variants/ButtonPrimary/index.js +8 -0
  192. package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -0
  193. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +4 -0
  194. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -0
  195. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +102 -0
  196. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -0
  197. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +19 -0
  198. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -0
  199. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js +3 -0
  200. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -0
  201. package/dist/components/Button/variants/ButtonSecondary/index.d.ts +4 -0
  202. package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -0
  203. package/dist/components/Button/variants/ButtonSecondary/index.js +8 -0
  204. package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -0
  205. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +4 -0
  206. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -0
  207. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +109 -0
  208. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -0
  209. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +19 -0
  210. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -0
  211. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js +3 -0
  212. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -0
  213. package/dist/components/Button/variants/ButtonTertiary/index.d.ts +4 -0
  214. package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -0
  215. package/dist/components/Button/variants/ButtonTertiary/index.js +8 -0
  216. package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -0
  217. package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
  218. package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
  219. package/dist/components/ButtonBase/ButtonBase.js +48 -0
  220. package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
  221. package/dist/components/ButtonBase/ButtonBase.types.d.ts +85 -0
  222. package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
  223. package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
  224. package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
  225. package/dist/components/ButtonBase/index.d.ts +4 -0
  226. package/dist/components/ButtonBase/index.d.ts.map +1 -0
  227. package/dist/components/ButtonBase/index.js +8 -0
  228. package/dist/components/ButtonBase/index.js.map +1 -0
  229. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +9 -0
  230. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -0
  231. package/dist/components/ButtonIcon/ButtonIcon.constants.js +17 -0
  232. package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -0
  233. package/dist/components/ButtonIcon/ButtonIcon.d.ts +4 -0
  234. package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -0
  235. package/dist/components/ButtonIcon/ButtonIcon.js +57 -0
  236. package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -0
  237. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +52 -0
  238. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
  239. package/dist/components/ButtonIcon/ButtonIcon.types.js +3 -0
  240. package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -0
  241. package/dist/components/ButtonIcon/index.d.ts +4 -0
  242. package/dist/components/ButtonIcon/index.d.ts.map +1 -0
  243. package/dist/components/ButtonIcon/index.js +8 -0
  244. package/dist/components/ButtonIcon/index.js.map +1 -0
  245. package/dist/components/Checkbox/Checkbox.d.ts +17 -0
  246. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  247. package/dist/components/Checkbox/Checkbox.js +122 -0
  248. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  249. package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
  250. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  251. package/dist/components/Checkbox/Checkbox.types.js +3 -0
  252. package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
  253. package/dist/components/Checkbox/index.d.ts +3 -0
  254. package/dist/components/Checkbox/index.d.ts.map +1 -0
  255. package/dist/components/Checkbox/index.js +6 -0
  256. package/dist/components/Checkbox/index.js.map +1 -0
  257. package/dist/components/Icon/Icon.assets.d.ts +6 -0
  258. package/dist/components/Icon/Icon.assets.d.ts.map +1 -0
  259. package/dist/components/Icon/Icon.assets.js +558 -0
  260. package/dist/components/Icon/Icon.assets.js.map +1 -0
  261. package/dist/components/Icon/Icon.d.ts +4 -0
  262. package/dist/components/Icon/Icon.d.ts.map +1 -0
  263. package/dist/components/Icon/Icon.js +46 -0
  264. package/dist/components/Icon/Icon.js.map +1 -0
  265. package/dist/components/Icon/Icon.types.d.ts +39 -0
  266. package/dist/components/Icon/Icon.types.d.ts.map +1 -0
  267. package/dist/components/Icon/Icon.types.js +3 -0
  268. package/dist/components/Icon/Icon.types.js.map +1 -0
  269. package/dist/components/Icon/Icon.utilities.d.ts +22 -0
  270. package/dist/components/Icon/Icon.utilities.d.ts.map +1 -0
  271. package/dist/components/Icon/Icon.utilities.js +31 -0
  272. package/dist/components/Icon/Icon.utilities.js.map +1 -0
  273. package/dist/components/Icon/assets/accessibility.svg +1 -0
  274. package/dist/components/Icon/assets/activity.svg +1 -0
  275. package/dist/components/Icon/assets/add-card.svg +1 -0
  276. package/dist/components/Icon/assets/add-circle.svg +1 -0
  277. package/dist/components/Icon/assets/add-square.svg +1 -0
  278. package/dist/components/Icon/assets/add.svg +1 -0
  279. package/dist/components/Icon/assets/ai.svg +1 -0
  280. package/dist/components/Icon/assets/alternate-email.svg +1 -0
  281. package/dist/components/Icon/assets/apps.svg +1 -0
  282. package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
  283. package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
  284. package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
  285. package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
  286. package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
  287. package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
  288. package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
  289. package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
  290. package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
  291. package/dist/components/Icon/assets/arrow-down.svg +1 -0
  292. package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
  293. package/dist/components/Icon/assets/arrow-left.svg +1 -0
  294. package/dist/components/Icon/assets/arrow-right.svg +1 -0
  295. package/dist/components/Icon/assets/arrow-up.svg +1 -0
  296. package/dist/components/Icon/assets/attachment.svg +1 -0
  297. package/dist/components/Icon/assets/ban.svg +1 -0
  298. package/dist/components/Icon/assets/bank-assured.svg +1 -0
  299. package/dist/components/Icon/assets/bank.svg +1 -0
  300. package/dist/components/Icon/assets/bold.svg +1 -0
  301. package/dist/components/Icon/assets/book.svg +1 -0
  302. package/dist/components/Icon/assets/bookmark.svg +1 -0
  303. package/dist/components/Icon/assets/bridge.svg +1 -0
  304. package/dist/components/Icon/assets/briefcase.svg +1 -0
  305. package/dist/components/Icon/assets/bulb.svg +1 -0
  306. package/dist/components/Icon/assets/buy-sell.svg +1 -0
  307. package/dist/components/Icon/assets/cake.svg +1 -0
  308. package/dist/components/Icon/assets/calculator.svg +1 -0
  309. package/dist/components/Icon/assets/calendar.svg +1 -0
  310. package/dist/components/Icon/assets/call.svg +1 -0
  311. package/dist/components/Icon/assets/camera.svg +1 -0
  312. package/dist/components/Icon/assets/campaign.svg +1 -0
  313. package/dist/components/Icon/assets/card-pos.svg +1 -0
  314. package/dist/components/Icon/assets/card.svg +1 -0
  315. package/dist/components/Icon/assets/cash.svg +1 -0
  316. package/dist/components/Icon/assets/category.svg +1 -0
  317. package/dist/components/Icon/assets/chart.svg +1 -0
  318. package/dist/components/Icon/assets/check-bold.svg +1 -0
  319. package/dist/components/Icon/assets/check.svg +1 -0
  320. package/dist/components/Icon/assets/circle-x.svg +1 -0
  321. package/dist/components/Icon/assets/clock-filled.svg +1 -0
  322. package/dist/components/Icon/assets/clock.svg +1 -0
  323. package/dist/components/Icon/assets/close.svg +1 -0
  324. package/dist/components/Icon/assets/cloud-download.svg +1 -0
  325. package/dist/components/Icon/assets/cloud-upload.svg +1 -0
  326. package/dist/components/Icon/assets/cloud.svg +1 -0
  327. package/dist/components/Icon/assets/code-circle.svg +1 -0
  328. package/dist/components/Icon/assets/code.svg +1 -0
  329. package/dist/components/Icon/assets/coin.svg +1 -0
  330. package/dist/components/Icon/assets/collapse.svg +1 -0
  331. package/dist/components/Icon/assets/confirmation.svg +1 -0
  332. package/dist/components/Icon/assets/connect.svg +1 -0
  333. package/dist/components/Icon/assets/copy-success.svg +1 -0
  334. package/dist/components/Icon/assets/copy.svg +1 -0
  335. package/dist/components/Icon/assets/credit-check.svg +1 -0
  336. package/dist/components/Icon/assets/currency-franc.svg +1 -0
  337. package/dist/components/Icon/assets/currency-lira.svg +1 -0
  338. package/dist/components/Icon/assets/currency-pound.svg +1 -0
  339. package/dist/components/Icon/assets/currency-yuan.svg +3 -0
  340. package/dist/components/Icon/assets/customize.svg +1 -0
  341. package/dist/components/Icon/assets/danger.svg +1 -0
  342. package/dist/components/Icon/assets/dark-filled.svg +1 -0
  343. package/dist/components/Icon/assets/dark.svg +1 -0
  344. package/dist/components/Icon/assets/data.svg +1 -0
  345. package/dist/components/Icon/assets/description.svg +1 -0
  346. package/dist/components/Icon/assets/details.svg +1 -0
  347. package/dist/components/Icon/assets/diagram.svg +1 -0
  348. package/dist/components/Icon/assets/document-code.svg +1 -0
  349. package/dist/components/Icon/assets/download.svg +1 -0
  350. package/dist/components/Icon/assets/draft.svg +1 -0
  351. package/dist/components/Icon/assets/eco-leaf.svg +1 -0
  352. package/dist/components/Icon/assets/edit-square.svg +1 -0
  353. package/dist/components/Icon/assets/edit.svg +1 -0
  354. package/dist/components/Icon/assets/encrypted-add.svg +1 -0
  355. package/dist/components/Icon/assets/eraser.svg +1 -0
  356. package/dist/components/Icon/assets/error.svg +1 -0
  357. package/dist/components/Icon/assets/ethereum.svg +1 -0
  358. package/dist/components/Icon/assets/exchange.svg +1 -0
  359. package/dist/components/Icon/assets/expand-vertical.svg +1 -0
  360. package/dist/components/Icon/assets/expand.svg +1 -0
  361. package/dist/components/Icon/assets/explore-filled.svg +1 -0
  362. package/dist/components/Icon/assets/explore.svg +1 -0
  363. package/dist/components/Icon/assets/export.svg +1 -0
  364. package/dist/components/Icon/assets/extension.svg +1 -0
  365. package/dist/components/Icon/assets/eye-slash.svg +1 -0
  366. package/dist/components/Icon/assets/eye.svg +1 -0
  367. package/dist/components/Icon/assets/face-id.svg +1 -0
  368. package/dist/components/Icon/assets/feedback.svg +1 -0
  369. package/dist/components/Icon/assets/file.svg +1 -0
  370. package/dist/components/Icon/assets/filter.svg +1 -0
  371. package/dist/components/Icon/assets/fingerprint.svg +1 -0
  372. package/dist/components/Icon/assets/fire.svg +1 -0
  373. package/dist/components/Icon/assets/first-page.svg +1 -0
  374. package/dist/components/Icon/assets/flag.svg +1 -0
  375. package/dist/components/Icon/assets/flash-slash.svg +1 -0
  376. package/dist/components/Icon/assets/flash.svg +1 -0
  377. package/dist/components/Icon/assets/flask.svg +1 -0
  378. package/dist/components/Icon/assets/flower.svg +1 -0
  379. package/dist/components/Icon/assets/folder.svg +1 -0
  380. package/dist/components/Icon/assets/forest.svg +1 -0
  381. package/dist/components/Icon/assets/full-circle.svg +1 -0
  382. package/dist/components/Icon/assets/gas.svg +1 -0
  383. package/dist/components/Icon/assets/gift.svg +1 -0
  384. package/dist/components/Icon/assets/global-search.svg +1 -0
  385. package/dist/components/Icon/assets/global.svg +1 -0
  386. package/dist/components/Icon/assets/graph.svg +1 -0
  387. package/dist/components/Icon/assets/hardware.svg +1 -0
  388. package/dist/components/Icon/assets/hash-tag.svg +1 -0
  389. package/dist/components/Icon/assets/heart-filled.svg +1 -0
  390. package/dist/components/Icon/assets/heart.svg +1 -0
  391. package/dist/components/Icon/assets/hierarchy.svg +1 -0
  392. package/dist/components/Icon/assets/home-filled.svg +1 -0
  393. package/dist/components/Icon/assets/home.svg +1 -0
  394. package/dist/components/Icon/assets/image.svg +1 -0
  395. package/dist/components/Icon/assets/info.svg +1 -0
  396. package/dist/components/Icon/assets/inventory.svg +1 -0
  397. package/dist/components/Icon/assets/joystick.svg +1 -0
  398. package/dist/components/Icon/assets/keep-filled.svg +1 -0
  399. package/dist/components/Icon/assets/keep.svg +1 -0
  400. package/dist/components/Icon/assets/key.svg +1 -0
  401. package/dist/components/Icon/assets/last-page.svg +1 -0
  402. package/dist/components/Icon/assets/light-filled.svg +1 -0
  403. package/dist/components/Icon/assets/light.svg +1 -0
  404. package/dist/components/Icon/assets/link.svg +1 -0
  405. package/dist/components/Icon/assets/loading.svg +1 -0
  406. package/dist/components/Icon/assets/location.svg +1 -0
  407. package/dist/components/Icon/assets/lock-slash.svg +1 -0
  408. package/dist/components/Icon/assets/lock.svg +1 -0
  409. package/dist/components/Icon/assets/locked-filled.svg +1 -0
  410. package/dist/components/Icon/assets/login.svg +1 -0
  411. package/dist/components/Icon/assets/logout.svg +1 -0
  412. package/dist/components/Icon/assets/mail.svg +1 -0
  413. package/dist/components/Icon/assets/map.svg +1 -0
  414. package/dist/components/Icon/assets/menu.svg +1 -0
  415. package/dist/components/Icon/assets/message-question.svg +1 -0
  416. package/dist/components/Icon/assets/messages.svg +1 -0
  417. package/dist/components/Icon/assets/mic.svg +1 -0
  418. package/dist/components/Icon/assets/minus-bold.svg +1 -0
  419. package/dist/components/Icon/assets/minus-square.svg +1 -0
  420. package/dist/components/Icon/assets/minus.svg +1 -0
  421. package/dist/components/Icon/assets/mobile.svg +1 -0
  422. package/dist/components/Icon/assets/money-bag.svg +1 -0
  423. package/dist/components/Icon/assets/money.svg +1 -0
  424. package/dist/components/Icon/assets/monitor.svg +1 -0
  425. package/dist/components/Icon/assets/more-horizontal.svg +1 -0
  426. package/dist/components/Icon/assets/more-vertical.svg +1 -0
  427. package/dist/components/Icon/assets/mountain-flag.svg +1 -0
  428. package/dist/components/Icon/assets/music-note.svg +1 -0
  429. package/dist/components/Icon/assets/notification.svg +1 -0
  430. package/dist/components/Icon/assets/page-info.svg +1 -0
  431. package/dist/components/Icon/assets/palette.svg +1 -0
  432. package/dist/components/Icon/assets/password-check.svg +1 -0
  433. package/dist/components/Icon/assets/pending.svg +1 -0
  434. package/dist/components/Icon/assets/people.svg +1 -0
  435. package/dist/components/Icon/assets/person-cancel.svg +1 -0
  436. package/dist/components/Icon/assets/pin.svg +1 -0
  437. package/dist/components/Icon/assets/plant.svg +1 -0
  438. package/dist/components/Icon/assets/plug.svg +1 -0
  439. package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
  440. package/dist/components/Icon/assets/policy-alert.svg +1 -0
  441. package/dist/components/Icon/assets/print.svg +1 -0
  442. package/dist/components/Icon/assets/priority-high.svg +1 -0
  443. package/dist/components/Icon/assets/privacy-tip.svg +1 -0
  444. package/dist/components/Icon/assets/programming-arrows.svg +1 -0
  445. package/dist/components/Icon/assets/publish.svg +1 -0
  446. package/dist/components/Icon/assets/qr-code.svg +1 -0
  447. package/dist/components/Icon/assets/question.svg +1 -0
  448. package/dist/components/Icon/assets/receive.svg +1 -0
  449. package/dist/components/Icon/assets/received.svg +1 -0
  450. package/dist/components/Icon/assets/refresh.svg +1 -0
  451. package/dist/components/Icon/assets/remove-minus.svg +1 -0
  452. package/dist/components/Icon/assets/report.svg +1 -0
  453. package/dist/components/Icon/assets/rocket.svg +1 -0
  454. package/dist/components/Icon/assets/save-filled.svg +1 -0
  455. package/dist/components/Icon/assets/save.svg +1 -0
  456. package/dist/components/Icon/assets/saving.svg +1 -0
  457. package/dist/components/Icon/assets/scan-barcode.svg +1 -0
  458. package/dist/components/Icon/assets/scan-focus.svg +1 -0
  459. package/dist/components/Icon/assets/scan.svg +1 -0
  460. package/dist/components/Icon/assets/search.svg +1 -0
  461. package/dist/components/Icon/assets/security-alert.svg +1 -0
  462. package/dist/components/Icon/assets/security-cross.svg +1 -0
  463. package/dist/components/Icon/assets/security-key.svg +1 -0
  464. package/dist/components/Icon/assets/security-search.svg +1 -0
  465. package/dist/components/Icon/assets/security-slash.svg +1 -0
  466. package/dist/components/Icon/assets/security-tick.svg +1 -0
  467. package/dist/components/Icon/assets/security-time.svg +1 -0
  468. package/dist/components/Icon/assets/security-user.svg +1 -0
  469. package/dist/components/Icon/assets/security.svg +1 -0
  470. package/dist/components/Icon/assets/send.svg +1 -0
  471. package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
  472. package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
  473. package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
  474. package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
  475. package/dist/components/Icon/assets/setting-filled.svg +1 -0
  476. package/dist/components/Icon/assets/setting.svg +1 -0
  477. package/dist/components/Icon/assets/share.svg +1 -0
  478. package/dist/components/Icon/assets/shield-lock.svg +1 -0
  479. package/dist/components/Icon/assets/shopping-bag.svg +1 -0
  480. package/dist/components/Icon/assets/shopping-cart.svg +1 -0
  481. package/dist/components/Icon/assets/signal-cellular.svg +1 -0
  482. package/dist/components/Icon/assets/slash.svg +1 -0
  483. package/dist/components/Icon/assets/sms.svg +1 -0
  484. package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
  485. package/dist/components/Icon/assets/snaps-plus.svg +1 -0
  486. package/dist/components/Icon/assets/snaps-round.svg +1 -0
  487. package/dist/components/Icon/assets/snaps.svg +1 -0
  488. package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
  489. package/dist/components/Icon/assets/sort.svg +1 -0
  490. package/dist/components/Icon/assets/sparkle.svg +1 -0
  491. package/dist/components/Icon/assets/speed.svg +1 -0
  492. package/dist/components/Icon/assets/speedometer.svg +1 -0
  493. package/dist/components/Icon/assets/square.svg +1 -0
  494. package/dist/components/Icon/assets/stake.svg +1 -0
  495. package/dist/components/Icon/assets/star-filled.svg +1 -0
  496. package/dist/components/Icon/assets/star.svg +1 -0
  497. package/dist/components/Icon/assets/start.svg +1 -0
  498. package/dist/components/Icon/assets/storefront.svg +1 -0
  499. package/dist/components/Icon/assets/student.svg +1 -0
  500. package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
  501. package/dist/components/Icon/assets/swap-vertical.svg +3 -0
  502. package/dist/components/Icon/assets/tab-close.svg +1 -0
  503. package/dist/components/Icon/assets/table-row.svg +1 -0
  504. package/dist/components/Icon/assets/tablet.svg +1 -0
  505. package/dist/components/Icon/assets/tag.svg +1 -0
  506. package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
  507. package/dist/components/Icon/assets/thumb-down.svg +1 -0
  508. package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
  509. package/dist/components/Icon/assets/thumb-up.svg +1 -0
  510. package/dist/components/Icon/assets/tint.svg +1 -0
  511. package/dist/components/Icon/assets/tooltip.svg +1 -0
  512. package/dist/components/Icon/assets/translate.svg +1 -0
  513. package/dist/components/Icon/assets/trash.svg +1 -0
  514. package/dist/components/Icon/assets/trend-down.svg +1 -0
  515. package/dist/components/Icon/assets/trend-up.svg +1 -0
  516. package/dist/components/Icon/assets/undo.svg +1 -0
  517. package/dist/components/Icon/assets/unfold.svg +1 -0
  518. package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
  519. package/dist/components/Icon/assets/unpin.svg +1 -0
  520. package/dist/components/Icon/assets/upload-file.svg +1 -0
  521. package/dist/components/Icon/assets/upload.svg +1 -0
  522. package/dist/components/Icon/assets/usb.svg +1 -0
  523. package/dist/components/Icon/assets/user-check.svg +1 -0
  524. package/dist/components/Icon/assets/user-circle-add.svg +1 -0
  525. package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
  526. package/dist/components/Icon/assets/user-circle.svg +1 -0
  527. package/dist/components/Icon/assets/user.svg +1 -0
  528. package/dist/components/Icon/assets/verified-filled.svg +1 -0
  529. package/dist/components/Icon/assets/verified.svg +1 -0
  530. package/dist/components/Icon/assets/videocam.svg +1 -0
  531. package/dist/components/Icon/assets/view-column.svg +1 -0
  532. package/dist/components/Icon/assets/view-in-ar.svg +1 -0
  533. package/dist/components/Icon/assets/volume-off.svg +1 -0
  534. package/dist/components/Icon/assets/volume-up.svg +1 -0
  535. package/dist/components/Icon/assets/wallet-filled.svg +1 -0
  536. package/dist/components/Icon/assets/wallet.svg +1 -0
  537. package/dist/components/Icon/assets/warning.svg +1 -0
  538. package/dist/components/Icon/assets/web-traffic.svg +1 -0
  539. package/dist/components/Icon/assets/widgets.svg +1 -0
  540. package/dist/components/Icon/assets/wifi-off.svg +1 -0
  541. package/dist/components/Icon/assets/wifi.svg +1 -0
  542. package/dist/components/Icon/assets/x.svg +1 -0
  543. package/dist/components/Icon/index.d.ts +4 -0
  544. package/dist/components/Icon/index.d.ts.map +1 -0
  545. package/dist/components/Icon/index.js +10 -0
  546. package/dist/components/Icon/index.js.map +1 -0
  547. package/dist/components/Text/Text.constants.d.ts +8 -0
  548. package/dist/components/Text/Text.constants.d.ts.map +1 -0
  549. package/dist/components/Text/Text.constants.js +23 -0
  550. package/dist/components/Text/Text.constants.js.map +1 -0
  551. package/dist/components/Text/Text.d.ts +4 -0
  552. package/dist/components/Text/Text.d.ts.map +1 -0
  553. package/dist/components/Text/Text.js +51 -0
  554. package/dist/components/Text/Text.js.map +1 -0
  555. package/dist/components/Text/Text.types.d.ts +45 -0
  556. package/dist/components/Text/Text.types.d.ts.map +1 -0
  557. package/dist/components/Text/Text.types.js +3 -0
  558. package/dist/components/Text/Text.types.js.map +1 -0
  559. package/dist/components/Text/Text.utilities.d.ts +32 -0
  560. package/dist/components/Text/Text.utilities.d.ts.map +1 -0
  561. package/dist/components/Text/Text.utilities.js +46 -0
  562. package/dist/components/Text/Text.utilities.js.map +1 -0
  563. package/dist/components/Text/index.d.ts +4 -0
  564. package/dist/components/Text/index.d.ts.map +1 -0
  565. package/dist/components/Text/index.js +12 -0
  566. package/dist/components/Text/index.js.map +1 -0
  567. package/dist/components/TextButton/TextButton.constants.d.ts +4 -0
  568. package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -0
  569. package/dist/components/TextButton/TextButton.constants.js +12 -0
  570. package/dist/components/TextButton/TextButton.constants.js.map +1 -0
  571. package/dist/components/TextButton/TextButton.d.ts +4 -0
  572. package/dist/components/TextButton/TextButton.d.ts.map +1 -0
  573. package/dist/components/TextButton/TextButton.js +68 -0
  574. package/dist/components/TextButton/TextButton.js.map +1 -0
  575. package/dist/components/TextButton/TextButton.types.d.ts +69 -0
  576. package/dist/components/TextButton/TextButton.types.d.ts.map +1 -0
  577. package/dist/components/TextButton/TextButton.types.js +3 -0
  578. package/dist/components/TextButton/TextButton.types.js.map +1 -0
  579. package/dist/components/TextButton/index.d.ts +4 -0
  580. package/dist/components/TextButton/index.d.ts.map +1 -0
  581. package/dist/components/TextButton/index.js +8 -0
  582. package/dist/components/TextButton/index.js.map +1 -0
  583. package/dist/components/index.d.ts +49 -0
  584. package/dist/components/index.d.ts.map +1 -0
  585. package/dist/components/index.js +81 -0
  586. package/dist/components/index.js.map +1 -0
  587. package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
  588. package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
  589. package/dist/components/temp-components/Blockies/Blockies.js +14 -0
  590. package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
  591. package/dist/components/temp-components/Blockies/Blockies.types.d.ts +15 -0
  592. package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
  593. package/dist/components/temp-components/Blockies/Blockies.types.js +3 -0
  594. package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
  595. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
  596. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
  597. package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
  598. package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
  599. package/dist/components/temp-components/Blockies/index.d.ts +3 -0
  600. package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
  601. package/dist/components/temp-components/Blockies/index.js +6 -0
  602. package/dist/components/temp-components/Blockies/index.js.map +1 -0
  603. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
  604. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
  605. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js +59 -0
  606. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
  607. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts +6 -0
  608. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
  609. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js +3 -0
  610. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
  611. package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
  612. package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
  613. package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
  614. package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
  615. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
  616. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
  617. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js +74 -0
  618. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
  619. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts +64 -0
  620. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
  621. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js +3 -0
  622. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
  623. package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
  624. package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
  625. package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
  626. package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
  627. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
  628. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
  629. package/dist/components/temp-components/Jazzicon/Jazzicon.js +14 -0
  630. package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
  631. package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts +11 -0
  632. package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
  633. package/dist/components/temp-components/Jazzicon/Jazzicon.types.js +3 -0
  634. package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
  635. package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
  636. package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
  637. package/dist/components/temp-components/Jazzicon/index.js +6 -0
  638. package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
  639. package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
  640. package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
  641. package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
  642. package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
  643. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
  644. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
  645. package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
  646. package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
  647. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
  648. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
  649. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
  650. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
  651. package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
  652. package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
  653. package/dist/components/temp-components/Maskicon/index.js +6 -0
  654. package/dist/components/temp-components/Maskicon/index.js.map +1 -0
  655. package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
  656. package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
  657. package/dist/components/temp-components/Spinner/Spinner.js +68 -0
  658. package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
  659. package/dist/components/temp-components/Spinner/Spinner.types.d.ts +31 -0
  660. package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
  661. package/dist/components/temp-components/Spinner/Spinner.types.js +3 -0
  662. package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
  663. package/dist/components/temp-components/Spinner/index.d.ts +3 -0
  664. package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
  665. package/dist/components/temp-components/Spinner/index.js +6 -0
  666. package/dist/components/temp-components/Spinner/index.js.map +1 -0
  667. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
  668. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
  669. package/dist/components/temp-components/TextOrChildren/TextOrChildren.js +16 -0
  670. package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
  671. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts +16 -0
  672. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
  673. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js +3 -0
  674. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
  675. package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
  676. package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
  677. package/dist/components/temp-components/TextOrChildren/index.js +6 -0
  678. package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
  679. package/dist/index.d.ts +2 -0
  680. package/dist/index.d.ts.map +1 -0
  681. package/dist/index.js +18 -0
  682. package/dist/index.js.map +1 -0
  683. package/dist/types/index.d.ts +618 -0
  684. package/dist/types/index.d.ts.map +1 -0
  685. package/dist/types/index.js +629 -0
  686. package/dist/types/index.js.map +1 -0
  687. package/package.json +39 -16
  688. package/dist/index.cjs +0 -13
  689. package/dist/index.cjs.map +0 -1
  690. package/dist/index.d.cts +0 -8
  691. package/dist/index.d.cts.map +0 -1
  692. package/dist/index.d.mts +0 -8
  693. package/dist/index.d.mts.map +0 -1
  694. package/dist/index.mjs +0 -10
  695. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMaskiconSVG = exports.createMaskiconSVG = exports.seedToString = exports.sdbmHash = exports.getCaipNamespaceFromAddress = exports.generateSeedNonEthereum = exports.generateSeedEthereum = void 0;
4
+ const utils_1 = require("@metamask/utils");
5
+ const addresses_1 = require("@solana/addresses");
6
+ // /////////////////////////////////////////////////////
7
+ // Address validation
8
+ // /////////////////////////////////////////////////////
9
+ /**
10
+ * Generates a numeric seed for Ethereum (eip155) addresses.
11
+ *
12
+ * @param address The Ethereum address to generate a seed from
13
+ * @returns A numeric seed derived from the address
14
+ */
15
+ function generateSeedEthereum(address) {
16
+ // Example: parse the first 8 chars of the address after '0x'
17
+ const addr = address.slice(2, 10);
18
+ return parseInt(addr, 16);
19
+ }
20
+ exports.generateSeedEthereum = generateSeedEthereum;
21
+ /**
22
+ * Generates a byte-array seed for non-Ethereum addresses (Solana, Bitcoin, etc.).
23
+ *
24
+ * @param address The non-Ethereum address to generate a seed from
25
+ * @returns An array of numbers representing the byte-array seed
26
+ */
27
+ function generateSeedNonEthereum(address) {
28
+ return Array.from((0, utils_1.stringToBytes)(address.normalize('NFKC').toLowerCase()));
29
+ }
30
+ exports.generateSeedNonEthereum = generateSeedNonEthereum;
31
+ /**
32
+ * Dynamically checks if the address is Bitcoin or Solana; otherwise defaults to Ethereum.
33
+ * Returns a Promise that resolves to one of the known CAIP-2 namespaces.
34
+ *
35
+ * In this update, if the address starts with "0x", we'll assume it's Ethereum (Eip155)
36
+ * and avoid the dynamic import that can cause the "Requiring unknown module '2021'" error.
37
+ *
38
+ * @param address The address to check and determine its namespace
39
+ * @returns A promise that resolves to the detected CAIP-2 namespace
40
+ */
41
+ async function getCaipNamespaceFromAddress(address) {
42
+ // If the address starts with '0x', assume Ethereum.
43
+ if (address.startsWith('0x')) {
44
+ return utils_1.KnownCaipNamespace.Eip155;
45
+ }
46
+ // Check for CAIP-10 formatted addresses
47
+ if (address.includes(':')) {
48
+ const [namespace] = address.split(':');
49
+ const nsLower = namespace.toLowerCase();
50
+ if (nsLower === 'bip122') {
51
+ return utils_1.KnownCaipNamespace.Bip122;
52
+ }
53
+ if (nsLower === 'solana') {
54
+ return utils_1.KnownCaipNamespace.Solana;
55
+ }
56
+ }
57
+ // Attempt to use bitcoin-address-validation if available.
58
+ try {
59
+ const { validate, Network } = await import('bitcoin-address-validation');
60
+ if (validate(address, Network.mainnet) ||
61
+ validate(address, Network.testnet)) {
62
+ return utils_1.KnownCaipNamespace.Bip122;
63
+ }
64
+ }
65
+ catch {
66
+ // If the import fails, fall through.
67
+ }
68
+ // Fallback: if it looks like a Solana address, return Solana.
69
+ if ((0, addresses_1.isAddress)(address)) {
70
+ return utils_1.KnownCaipNamespace.Solana;
71
+ }
72
+ // Default to Ethereum.
73
+ return utils_1.KnownCaipNamespace.Eip155;
74
+ }
75
+ exports.getCaipNamespaceFromAddress = getCaipNamespaceFromAddress;
76
+ // /////////////////////////////////////////////////////
77
+ // Maskicon SVG Creation
78
+ // /////////////////////////////////////////////////////
79
+ // Color Palettes
80
+ const neutralPairs = [
81
+ ['#FF5C16', '#FCFCFC'],
82
+ ['#FF5C16', '#131416'],
83
+ ['#D075FF', '#FCFCFC'],
84
+ ['#D075FF', '#131416'],
85
+ ['#BAF24A', '#FCFCFC'],
86
+ ['#BAF24A', '#131416'],
87
+ ['#89B0FF', '#FCFCFC'],
88
+ ['#89B0FF', '#131416'],
89
+ ['#FCFCFC', '#FF5C16'],
90
+ ['#131416', '#FF5C16'],
91
+ ['#FCFCFC', '#D075FF'],
92
+ ['#131416', '#D075FF'],
93
+ ['#FCFCFC', '#BAF24A'],
94
+ ['#131416', '#BAF24A'],
95
+ ['#FCFCFC', '#89B0FF'],
96
+ ['#131416', '#89B0FF'],
97
+ ];
98
+ const tonalPairs = [
99
+ ['#FFA680', '#FF5C16'],
100
+ ['#661800', '#FF5C16'],
101
+ ['#EAC2FF', '#D075FF'],
102
+ ['#3D065F', '#D075FF'],
103
+ ['#E5FFC3', '#BAF24A'],
104
+ ['#013330', '#BAF24A'],
105
+ ['#CCE7FF', '#89B0FF'],
106
+ ['#190066', '#89B0FF'],
107
+ ['#FF5C16', '#FFA680'],
108
+ ['#FF5C16', '#661800'],
109
+ ['#D075FF', '#EAC2FF'],
110
+ ['#D075FF', '#3D065F'],
111
+ ['#BAF24A', '#E5FFC3'],
112
+ ['#BAF24A', '#013330'],
113
+ ['#89B0FF', '#CCE7FF'],
114
+ ['#89B0FF', '#190066'],
115
+ ['#661800', '#FFA680'],
116
+ ['#FFA680', '#661800'],
117
+ ['#3D065F', '#EAC2FF'],
118
+ ['#EAC2FF', '#3D065F'],
119
+ ['#013330', '#E5FFC3'],
120
+ ['#E5FFC3', '#013330'],
121
+ ['#190066', '#CCE7FF'],
122
+ ['#CCE7FF', '#190066'],
123
+ ];
124
+ const complementaryPairs = [
125
+ ['#EAC2FF', '#013330'],
126
+ ['#013330', '#EAC2FF'],
127
+ ['#CCE7FF', '#661800'],
128
+ ['#661800', '#CCE7FF'],
129
+ ['#E5FFC3', '#3D065F'],
130
+ ['#3D065F', '#E5FFC3'],
131
+ ['#FFA680', '#190066'],
132
+ ['#190066', '#FFA680'],
133
+ ['#CCE7FF', '#013330'],
134
+ ['#013330', '#CCE7FF'],
135
+ ];
136
+ const colorPairs = neutralPairs.concat(tonalPairs).concat(complementaryPairs);
137
+ /**
138
+ * SDBM hash function
139
+ *
140
+ * @param str The string to hash
141
+ * @returns A numeric hash value
142
+ */
143
+ function sdbmHash(str) {
144
+ let hash = 0;
145
+ for (let i = 0; i < str.length; i++) {
146
+ // eslint-disable-next-line no-bitwise
147
+ hash = str.charCodeAt(i) + (hash << 6) + (hash << 16) - hash;
148
+ }
149
+ return hash;
150
+ }
151
+ exports.sdbmHash = sdbmHash;
152
+ /**
153
+ * Convert numeric/byte-array seed to a 6+ length string
154
+ *
155
+ * @param seed The seed value to convert (either a number or array of numbers)
156
+ * @returns A string representation of the seed (minimum 6 characters)
157
+ */
158
+ function seedToString(seed) {
159
+ if (typeof seed === 'number') {
160
+ let hex = seed.toString(16);
161
+ if (hex.length < 6) {
162
+ hex = hex.padEnd(6, '0');
163
+ }
164
+ return hex;
165
+ }
166
+ if (Array.isArray(seed)) {
167
+ let hex = seed.map((b) => b.toString(16).padStart(2, '0')).join('');
168
+ if (hex.length < 6) {
169
+ hex = hex.padEnd(6, '0');
170
+ }
171
+ return hex;
172
+ }
173
+ return 'seed000';
174
+ }
175
+ exports.seedToString = seedToString;
176
+ /**
177
+ * Builds a full <svg> string containing the Maskicon shapes.
178
+ *
179
+ * @param seed The seed value used to generate the icon
180
+ * @param size The size of the SVG icon in pixels
181
+ * @returns An SVG string representing the Maskicon
182
+ */
183
+ function createMaskiconSVG(seed, size = 100) {
184
+ // 1) Convert seed to string, then hash
185
+ const str = seedToString(seed);
186
+ const hashVal = sdbmHash(str);
187
+ // 2) Pick color pair based on the hash
188
+ const colorPairIndex = Math.abs(hashVal) % colorPairs.length;
189
+ const [bgColor, fgColor] = colorPairs[colorPairIndex];
190
+ // 3) Geometry setup
191
+ const grid = 2;
192
+ const margin = size * 0.25;
193
+ const innerSize = size - 2 * margin;
194
+ const cellSize = innerSize / grid;
195
+ let pathData = '';
196
+ const filledGrid = Array.from({ length: grid }, () => Array(grid).fill(false));
197
+ const startX = Math.floor(grid / 2);
198
+ const startY = Math.floor(grid / 2);
199
+ const stack = [[startX, startY]];
200
+ filledGrid[startX][startY] = true;
201
+ while (stack.length > 0) {
202
+ // Using destructuring assignment with a non-null assertion is safe here because we've verified stack.length > 0
203
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
204
+ const [x, y] = stack.pop();
205
+ // eslint-disable-next-line no-bitwise
206
+ const cellHash = Math.abs(hashVal >> (x * 3 + y * 5)) & 15;
207
+ const neighbors = [];
208
+ const directions = [
209
+ [0, 1],
210
+ [1, 0],
211
+ [0, -1],
212
+ [-1, 0],
213
+ ];
214
+ for (const [dx, dy] of directions) {
215
+ const nx = x + dx;
216
+ const ny = y + dy;
217
+ if (nx >= 0 && nx < grid && ny >= 0 && ny < grid && !filledGrid[nx][ny]) {
218
+ neighbors.push([nx, ny]);
219
+ }
220
+ }
221
+ while (neighbors.length > 0) {
222
+ const idx = Math.abs(cellHash + neighbors.length) % neighbors.length;
223
+ const [nx, ny] = neighbors.splice(idx, 1)[0];
224
+ stack.push([nx, ny]);
225
+ filledGrid[nx][ny] = true;
226
+ }
227
+ // Determine shape: square or right triangle (with rotation)
228
+ const rotation = (cellHash % 4) * 90;
229
+ const isSquare = cellHash % 5 === 0; // ~20% chance
230
+ const cx = margin + x * cellSize;
231
+ const cy = margin + y * cellSize;
232
+ if (isSquare) {
233
+ pathData += `M${cx},${cy} h${cellSize} v${cellSize} h-${cellSize}z `;
234
+ }
235
+ else if (rotation === 0) {
236
+ pathData += `M${cx},${cy} h${cellSize} v${cellSize}z `;
237
+ }
238
+ else if (rotation === 90) {
239
+ pathData += `M${cx + cellSize},${cy} v${cellSize} h-${cellSize}z `;
240
+ }
241
+ else if (rotation === 180) {
242
+ pathData += `M${cx + cellSize},${cy + cellSize} h-${cellSize} v-${cellSize}z `;
243
+ }
244
+ else {
245
+ pathData += `M${cx},${cy + cellSize} v-${cellSize} h${cellSize}z `;
246
+ }
247
+ }
248
+ // 4) Construct final SVG string (always rectangular)
249
+ let svgString = `<svg width="${size}" height="${size}" viewBox="0 0 ${size} ${size}" xmlns="http://www.w3.org/2000/svg">`;
250
+ svgString += `<rect width="${size}" height="${size}" fill="${bgColor}" />`;
251
+ svgString += `<path d="${pathData}" fill="${fgColor}" />`;
252
+ svgString += `</svg>`;
253
+ return svgString;
254
+ }
255
+ exports.createMaskiconSVG = createMaskiconSVG;
256
+ const svgCache = {};
257
+ /**
258
+ * Returns a Promise that resolves to the final <svg> string for the given address.
259
+ *
260
+ * @param address The address to generate the Maskicon for
261
+ * @param size The size of the icon in pixels
262
+ * @returns A promise that resolves to an SVG string
263
+ */
264
+ async function getMaskiconSVG(address, size) {
265
+ const cacheKey = `${address.toLowerCase()}:${size}`;
266
+ if (svgCache[cacheKey]) {
267
+ return svgCache[cacheKey];
268
+ }
269
+ const namespace = await getCaipNamespaceFromAddress(address);
270
+ let seed;
271
+ if (namespace === utils_1.KnownCaipNamespace.Eip155) {
272
+ seed = generateSeedEthereum(address);
273
+ }
274
+ else {
275
+ seed = generateSeedNonEthereum(address);
276
+ }
277
+ const svgString = createMaskiconSVG(seed, size);
278
+ svgCache[cacheKey] = svgString;
279
+ return svgString;
280
+ }
281
+ exports.getMaskiconSVG = getMaskiconSVG;
282
+ //# sourceMappingURL=Maskicon.utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Maskicon.utilities.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/Maskicon.utilities.ts"],"names":[],"mappings":";;;AAAA,2CAAoE;AACpE,iDAAiE;AAEjE,wDAAwD;AACxD,qBAAqB;AACrB,wDAAwD;AACxD;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,OAAe;IAClD,6DAA6D;IAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClC,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC5B,CAAC;AAJD,oDAIC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAC,OAAe;IACrD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAA,qBAAa,EAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC;AAFD,0DAEC;AAED;;;;;;;;;GASG;AACI,KAAK,UAAU,2BAA2B,CAC/C,OAAe;IAEf,oDAAoD;IACpD,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,0BAAkB,CAAC,MAAM,CAAC;KACl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solana/addresses';\n\n// /////////////////////////////////////////////////////\n// Address validation\n// /////////////////////////////////////////////////////\n/**\n * Generates a numeric seed for Ethereum (eip155) addresses.\n *\n * @param address The Ethereum address to generate a seed from\n * @returns A numeric seed derived from the address\n */\nexport function generateSeedEthereum(address: string): number {\n // Example: parse the first 8 chars of the address after '0x'\n const addr = address.slice(2, 10);\n return parseInt(addr, 16);\n}\n\n/**\n * Generates a byte-array seed for non-Ethereum addresses (Solana, Bitcoin, etc.).\n *\n * @param address The non-Ethereum address to generate a seed from\n * @returns An array of numbers representing the byte-array seed\n */\nexport function generateSeedNonEthereum(address: string): number[] {\n return Array.from(stringToBytes(address.normalize('NFKC').toLowerCase()));\n}\n\n/**\n * Dynamically checks if the address is Bitcoin or Solana; otherwise defaults to Ethereum.\n * Returns a Promise that resolves to one of the known CAIP-2 namespaces.\n *\n * In this update, if the address starts with \"0x\", we'll assume it's Ethereum (Eip155)\n * and avoid the dynamic import that can cause the \"Requiring unknown module '2021'\" error.\n *\n * @param address The address to check and determine its namespace\n * @returns A promise that resolves to the detected CAIP-2 namespace\n */\nexport async function getCaipNamespaceFromAddress(\n address: string,\n): Promise<KnownCaipNamespace> {\n // If the address starts with '0x', assume Ethereum.\n if (address.startsWith('0x')) {\n return KnownCaipNamespace.Eip155;\n }\n\n // Check for CAIP-10 formatted addresses\n if (address.includes(':')) {\n const [namespace] = address.split(':');\n const nsLower = namespace.toLowerCase();\n if (nsLower === 'bip122') {\n return KnownCaipNamespace.Bip122;\n }\n if (nsLower === 'solana') {\n return KnownCaipNamespace.Solana;\n }\n }\n\n // Attempt to use bitcoin-address-validation if available.\n try {\n const { validate, Network } = await import('bitcoin-address-validation');\n if (\n validate(address, Network.mainnet) ||\n validate(address, Network.testnet)\n ) {\n return KnownCaipNamespace.Bip122;\n }\n } catch {\n // If the import fails, fall through.\n }\n\n // Fallback: if it looks like a Solana address, return Solana.\n if (isSolanaAddress(address)) {\n return KnownCaipNamespace.Solana;\n }\n\n // Default to Ethereum.\n return KnownCaipNamespace.Eip155;\n}\n\n// /////////////////////////////////////////////////////\n// Maskicon SVG Creation\n// /////////////////////////////////////////////////////\n// Color Palettes\nconst neutralPairs = [\n ['#FF5C16', '#FCFCFC'],\n ['#FF5C16', '#131416'],\n ['#D075FF', '#FCFCFC'],\n ['#D075FF', '#131416'],\n ['#BAF24A', '#FCFCFC'],\n ['#BAF24A', '#131416'],\n ['#89B0FF', '#FCFCFC'],\n ['#89B0FF', '#131416'],\n ['#FCFCFC', '#FF5C16'],\n ['#131416', '#FF5C16'],\n ['#FCFCFC', '#D075FF'],\n ['#131416', '#D075FF'],\n ['#FCFCFC', '#BAF24A'],\n ['#131416', '#BAF24A'],\n ['#FCFCFC', '#89B0FF'],\n ['#131416', '#89B0FF'],\n];\n\nconst tonalPairs = [\n ['#FFA680', '#FF5C16'],\n ['#661800', '#FF5C16'],\n ['#EAC2FF', '#D075FF'],\n ['#3D065F', '#D075FF'],\n ['#E5FFC3', '#BAF24A'],\n ['#013330', '#BAF24A'],\n ['#CCE7FF', '#89B0FF'],\n ['#190066', '#89B0FF'],\n ['#FF5C16', '#FFA680'],\n ['#FF5C16', '#661800'],\n ['#D075FF', '#EAC2FF'],\n ['#D075FF', '#3D065F'],\n ['#BAF24A', '#E5FFC3'],\n ['#BAF24A', '#013330'],\n ['#89B0FF', '#CCE7FF'],\n ['#89B0FF', '#190066'],\n ['#661800', '#FFA680'],\n ['#FFA680', '#661800'],\n ['#3D065F', '#EAC2FF'],\n ['#EAC2FF', '#3D065F'],\n ['#013330', '#E5FFC3'],\n ['#E5FFC3', '#013330'],\n ['#190066', '#CCE7FF'],\n ['#CCE7FF', '#190066'],\n];\n\nconst complementaryPairs = [\n ['#EAC2FF', '#013330'],\n ['#013330', '#EAC2FF'],\n ['#CCE7FF', '#661800'],\n ['#661800', '#CCE7FF'],\n ['#E5FFC3', '#3D065F'],\n ['#3D065F', '#E5FFC3'],\n ['#FFA680', '#190066'],\n ['#190066', '#FFA680'],\n ['#CCE7FF', '#013330'],\n ['#013330', '#CCE7FF'],\n];\n\nconst colorPairs = neutralPairs.concat(tonalPairs).concat(complementaryPairs);\n\n/**\n * SDBM hash function\n *\n * @param str The string to hash\n * @returns A numeric hash value\n */\nexport function sdbmHash(str: string): number {\n let hash = 0;\n\n for (let i = 0; i < str.length; i++) {\n // eslint-disable-next-line no-bitwise\n hash = str.charCodeAt(i) + (hash << 6) + (hash << 16) - hash;\n }\n return hash;\n}\n\n/**\n * Convert numeric/byte-array seed to a 6+ length string\n *\n * @param seed The seed value to convert (either a number or array of numbers)\n * @returns A string representation of the seed (minimum 6 characters)\n */\nexport function seedToString(seed: number | number[]): string {\n if (typeof seed === 'number') {\n let hex = seed.toString(16);\n if (hex.length < 6) {\n hex = hex.padEnd(6, '0');\n }\n return hex;\n }\n if (Array.isArray(seed)) {\n let hex = seed.map((b) => b.toString(16).padStart(2, '0')).join('');\n if (hex.length < 6) {\n hex = hex.padEnd(6, '0');\n }\n return hex;\n }\n return 'seed000';\n}\n\n/**\n * Builds a full <svg> string containing the Maskicon shapes.\n *\n * @param seed The seed value used to generate the icon\n * @param size The size of the SVG icon in pixels\n * @returns An SVG string representing the Maskicon\n */\nexport function createMaskiconSVG(seed: number | number[], size = 100): string {\n // 1) Convert seed to string, then hash\n const str = seedToString(seed);\n const hashVal = sdbmHash(str);\n\n // 2) Pick color pair based on the hash\n const colorPairIndex = Math.abs(hashVal) % colorPairs.length;\n const [bgColor, fgColor] = colorPairs[colorPairIndex];\n\n // 3) Geometry setup\n const grid = 2;\n const margin = size * 0.25;\n const innerSize = size - 2 * margin;\n const cellSize = innerSize / grid;\n\n let pathData = '';\n const filledGrid: boolean[][] = Array.from({ length: grid }, () =>\n Array(grid).fill(false),\n );\n\n const startX = Math.floor(grid / 2);\n const startY = Math.floor(grid / 2);\n const stack = [[startX, startY]];\n filledGrid[startX][startY] = true;\n\n while (stack.length > 0) {\n // Using destructuring assignment with a non-null assertion is safe here because we've verified stack.length > 0\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const [x, y] = stack.pop()!;\n // eslint-disable-next-line no-bitwise\n const cellHash = Math.abs(hashVal >> (x * 3 + y * 5)) & 15;\n\n const neighbors: [number, number][] = [];\n const directions: [number, number][] = [\n [0, 1],\n [1, 0],\n [0, -1],\n [-1, 0],\n ];\n for (const [dx, dy] of directions) {\n const nx = x + dx;\n const ny = y + dy;\n if (nx >= 0 && nx < grid && ny >= 0 && ny < grid && !filledGrid[nx][ny]) {\n neighbors.push([nx, ny]);\n }\n }\n while (neighbors.length > 0) {\n const idx = Math.abs(cellHash + neighbors.length) % neighbors.length;\n const [nx, ny] = neighbors.splice(idx, 1)[0];\n stack.push([nx, ny]);\n filledGrid[nx][ny] = true;\n }\n\n // Determine shape: square or right triangle (with rotation)\n const rotation = (cellHash % 4) * 90;\n const isSquare = cellHash % 5 === 0; // ~20% chance\n const cx = margin + x * cellSize;\n const cy = margin + y * cellSize;\n\n if (isSquare) {\n pathData += `M${cx},${cy} h${cellSize} v${cellSize} h-${cellSize}z `;\n } else if (rotation === 0) {\n pathData += `M${cx},${cy} h${cellSize} v${cellSize}z `;\n } else if (rotation === 90) {\n pathData += `M${cx + cellSize},${cy} v${cellSize} h-${cellSize}z `;\n } else if (rotation === 180) {\n pathData += `M${cx + cellSize},${cy + cellSize} h-${cellSize} v-${cellSize}z `;\n } else {\n pathData += `M${cx},${cy + cellSize} v-${cellSize} h${cellSize}z `;\n }\n }\n\n // 4) Construct final SVG string (always rectangular)\n let svgString = `<svg width=\"${size}\" height=\"${size}\" viewBox=\"0 0 ${size} ${size}\" xmlns=\"http://www.w3.org/2000/svg\">`;\n svgString += `<rect width=\"${size}\" height=\"${size}\" fill=\"${bgColor}\" />`;\n svgString += `<path d=\"${pathData}\" fill=\"${fgColor}\" />`;\n svgString += `</svg>`;\n return svgString;\n}\n\n// /////////////////////////////////////////////////////\n// Maskicon SVG Creation and Caching\n// /////////////////////////////////////////////////////\ntype CacheKey = string;\nconst svgCache: Record<CacheKey, string> = {};\n\n/**\n * Returns a Promise that resolves to the final <svg> string for the given address.\n *\n * @param address The address to generate the Maskicon for\n * @param size The size of the icon in pixels\n * @returns A promise that resolves to an SVG string\n */\nexport async function getMaskiconSVG(\n address: string,\n size: number,\n): Promise<string> {\n const cacheKey = `${address.toLowerCase()}:${size}`;\n if (svgCache[cacheKey]) {\n return svgCache[cacheKey];\n }\n\n const namespace = await getCaipNamespaceFromAddress(address);\n let seed: number | number[];\n\n if (namespace === KnownCaipNamespace.Eip155) {\n seed = generateSeedEthereum(address);\n } else {\n seed = generateSeedNonEthereum(address);\n }\n\n const svgString = createMaskiconSVG(seed, size);\n svgCache[cacheKey] = svgString;\n return svgString;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { Maskicon } from './Maskicon';
2
+ export type { MaskiconProps } from './Maskicon.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Maskicon = void 0;
4
+ var Maskicon_1 = require("./Maskicon");
5
+ Object.defineProperty(exports, "Maskicon", { enumerable: true, get: function () { return Maskicon_1.Maskicon; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { Maskicon } from './Maskicon';\nexport type { MaskiconProps } from './Maskicon.types';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { SpinnerProps } from './Spinner.types';
3
+ export declare const Spinner: ({ color, spinnerIconProps, loadingText, loadingTextProps, twClassName, style, ...props }: SpinnerProps) => React.JSX.Element;
4
+ //# sourceMappingURL=Spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAezC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,OAAO,6FAQjB,YAAY,sBA+Cd,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Spinner = void 0;
27
+ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
28
+ const react_1 = __importStar(require("react"));
29
+ const react_native_1 = require("react-native");
30
+ const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
31
+ const Icon_1 = require("../../Icon");
32
+ const Text_1 = require("../../Text");
33
+ const Spinner = ({ color = Icon_1.IconColor.IconDefault, spinnerIconProps, loadingText, loadingTextProps, twClassName = '', style, ...props }) => {
34
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
35
+ // Create a shared value for rotation
36
+ const rotation = (0, react_native_reanimated_1.useSharedValue)(0);
37
+ // Start the animation when the component mounts
38
+ (0, react_1.useEffect)(() => {
39
+ rotation.value = (0, react_native_reanimated_1.withRepeat)((0, react_native_reanimated_1.withTiming)(360, { duration: 1000, easing: react_native_reanimated_1.Easing.linear }), // Complete a full spin in 1 second
40
+ -1, // Infinite repetitions
41
+ false);
42
+ }, []);
43
+ // Define the animated style
44
+ const animatedStyle = (0, react_native_reanimated_1.useAnimatedStyle)(() => ({
45
+ transform: [{ rotate: `${rotation.value % 360}deg` }],
46
+ }));
47
+ const finalSpinnerIconProps = {
48
+ size: Icon_1.IconSize.Md,
49
+ name: Icon_1.IconName.Loading,
50
+ testID: 'spinner-icon',
51
+ color,
52
+ ...spinnerIconProps,
53
+ };
54
+ const finalLoadingTextProps = {
55
+ variant: Text_1.TextVariant.BodyMd,
56
+ color: Text_1.TextColor.TextDefault,
57
+ testID: 'spinner-text',
58
+ ...loadingTextProps,
59
+ };
60
+ return (<react_native_1.View style={[tw `flex-row items-center gap-x-2 ${twClassName}`, style]} testID="spinner" {...props}>
61
+ <react_native_reanimated_1.default.View style={[animatedStyle]} testID="spinner-animated-view">
62
+ <Icon_1.Icon {...finalSpinnerIconProps}/>
63
+ </react_native_reanimated_1.default.View>
64
+ {loadingText && <Text_1.Text {...finalLoadingTextProps}>{loadingText}</Text_1.Text>}
65
+ </react_native_1.View>);
66
+ };
67
+ exports.Spinner = Spinner;
68
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;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AE,cAAc;QACtB,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,iCAAiC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC,CACjE,MAAM,CAAC,SAAS,CAChB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,iCAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,WAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,OAAO,WAuDlB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName = '',\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n style={[tw`flex-row items-center gap-x-2 ${twClassName}`, style]}\n testID=\"spinner\"\n {...props}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
@@ -0,0 +1,31 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import type { IconProps, IconColor } from '../../Icon';
3
+ import type { TextProps } from '../../Text';
4
+ /**
5
+ * Spinner component props.
6
+ */
7
+ export type SpinnerProps = {
8
+ /**
9
+ * Optional prop that sets the color of the spinner icon using predefined theme colors
10
+ *
11
+ * @default IconColor.IconDefault
12
+ */
13
+ color?: IconColor;
14
+ /**
15
+ * Optional props to be passed to the loadingText element
16
+ */
17
+ spinnerIconProps?: Partial<IconProps>;
18
+ /**
19
+ * Optional text to display on the right of the spinner, providing additional context or information about the loading state.
20
+ */
21
+ loadingText?: string;
22
+ /**
23
+ * Optional props to be passed to the loadingText element
24
+ */
25
+ loadingTextProps?: Omit<Partial<TextProps>, 'children'>;
26
+ /**
27
+ * Optional prop to add twrnc overriding classNames.
28
+ */
29
+ twClassName?: string;
30
+ } & ViewProps;
31
+ //# sourceMappingURL=Spinner.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.types.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Spinner.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.types.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type { IconProps, IconColor } from '../../Icon';\nimport type { TextProps } from '../../Text';\n\n/**\n * Spinner component props.\n */\nexport type SpinnerProps = {\n /**\n * Optional prop that sets the color of the spinner icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional props to be passed to the loadingText element\n */\n spinnerIconProps?: Partial<IconProps>;\n /**\n * Optional text to display on the right of the spinner, providing additional context or information about the loading state.\n */\n loadingText?: string;\n /**\n * Optional props to be passed to the loadingText element\n */\n loadingTextProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,3 @@
1
+ export { Spinner } from './Spinner';
2
+ export type { SpinnerProps } from './Spinner.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Spinner = void 0;
4
+ var Spinner_1 = require("./Spinner");
5
+ Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () { return Spinner_1.Spinner; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/index.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,kGAAA,OAAO,OAAA","sourcesContent":["export { Spinner } from './Spinner';\nexport type { SpinnerProps } from './Spinner.types';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TextOrChildrenProps } from './TextOrChildren.types';
3
+ export declare const TextOrChildren: ({ children, textProps, }: TextOrChildrenProps) => React.JSX.Element;
4
+ //# sourceMappingURL=TextOrChildren.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextOrChildren.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/TextOrChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,cAAc,6BAGxB,mBAAmB,sBAKrB,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TextOrChildren = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Text_1 = require("../../Text");
9
+ const TextOrChildren = ({ children, textProps, }) => {
10
+ if (typeof children === 'string') {
11
+ return <Text_1.Text {...textProps}>{children}</Text_1.Text>;
12
+ }
13
+ return <>{children}</>;
14
+ };
15
+ exports.TextOrChildren = TextOrChildren;
16
+ //# sourceMappingURL=TextOrChildren.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextOrChildren.js","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/TextOrChildren.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,qCAAkC;AAI3B,MAAM,cAAc,GAAG,CAAC,EAC7B,QAAQ,EACR,SAAS,GACW,EAAE,EAAE;IACxB,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAChC,OAAO,CAAC,WAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAI,CAAC,CAAC;KAC/C;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;AACzB,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB","sourcesContent":["import React from 'react';\n\nimport { Text } from '../../Text';\n\nimport type { TextOrChildrenProps } from './TextOrChildren.types';\n\nexport const TextOrChildren = ({\n children,\n textProps,\n}: TextOrChildrenProps) => {\n if (typeof children === 'string') {\n return <Text {...textProps}>{children}</Text>;\n }\n return <>{children}</>;\n};\n"]}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { TextProps } from '../../Text';
3
+ /**
4
+ * TextOrChildren component props.
5
+ */
6
+ export type TextOrChildrenProps = {
7
+ /**
8
+ * Required prop for the content to be rendered
9
+ */
10
+ children: React.ReactNode | string;
11
+ /**
12
+ * Optional props to be passed to the Text component when children is a string
13
+ */
14
+ textProps?: Omit<Partial<TextProps>, 'children'>;
15
+ };
16
+ //# sourceMappingURL=TextOrChildren.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextOrChildren.types.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/TextOrChildren.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TextOrChildren.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextOrChildren.types.js","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/TextOrChildren.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextProps } from '../../Text';\n\n/**\n * TextOrChildren component props.\n */\nexport type TextOrChildrenProps = {\n /**\n * Required prop for the content to be rendered\n */\n children: React.ReactNode | 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"]}
@@ -0,0 +1,3 @@
1
+ export { TextOrChildren } from './TextOrChildren';
2
+ export type { TextOrChildrenProps } from './TextOrChildren.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextOrChildren = void 0;
4
+ var TextOrChildren_1 = require("./TextOrChildren");
5
+ Object.defineProperty(exports, "TextOrChildren", { enumerable: true, get: function () { return TextOrChildren_1.TextOrChildren; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/temp-components/TextOrChildren/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["export { TextOrChildren } from './TextOrChildren';\nexport type { TextOrChildrenProps } from './TextOrChildren.types';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B","sourcesContent":["export * from './components';\n"]}