@metamask-previews/design-system-react-native 0.0.0-preview.8561168 → 0.0.0-preview.95f7a6f

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 (833) hide show
  1. package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts +1 -2
  2. package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts.map +1 -1
  3. package/dist/components/AvatarAccount/AvatarAccount.constants.js +16 -9
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.js.map +1 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.d.ts +1 -2
  6. package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -1
  7. package/dist/components/AvatarAccount/AvatarAccount.js +17 -14
  8. package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -1
  9. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +18 -5
  10. package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -1
  11. package/dist/components/AvatarAccount/AvatarAccount.types.js +0 -6
  12. package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -1
  13. package/dist/components/AvatarAccount/index.d.ts +2 -3
  14. package/dist/components/AvatarAccount/index.d.ts.map +1 -1
  15. package/dist/components/AvatarAccount/index.js +5 -9
  16. package/dist/components/AvatarAccount/index.js.map +1 -1
  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/{primitives → components}/AvatarBase/AvatarBase.types.d.ts +13 -3
  26. package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
  27. package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
  28. package/dist/components/AvatarBase/index.d.ts +4 -0
  29. package/dist/components/AvatarBase/index.d.ts.map +1 -0
  30. package/dist/components/AvatarBase/index.js +9 -0
  31. package/dist/components/AvatarBase/index.js.map +1 -0
  32. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +1 -2
  33. package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -1
  34. package/dist/components/AvatarFavicon/AvatarFavicon.js +14 -17
  35. package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -1
  36. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -3
  37. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -1
  38. package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -1
  39. package/dist/components/AvatarFavicon/index.d.ts +2 -2
  40. package/dist/components/AvatarFavicon/index.d.ts.map +1 -1
  41. package/dist/components/AvatarFavicon/index.js +4 -7
  42. package/dist/components/AvatarFavicon/index.js.map +1 -1
  43. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +5 -0
  44. package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -0
  45. package/dist/components/AvatarGroup/AvatarGroup.constants.js +21 -0
  46. package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -0
  47. package/dist/components/AvatarGroup/AvatarGroup.d.ts +4 -0
  48. package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
  49. package/dist/components/AvatarGroup/AvatarGroup.js +71 -0
  50. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -0
  51. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +68 -0
  52. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -0
  53. package/dist/components/AvatarGroup/AvatarGroup.types.js +3 -0
  54. package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -0
  55. package/dist/components/AvatarGroup/index.d.ts +4 -0
  56. package/dist/components/AvatarGroup/index.d.ts.map +1 -0
  57. package/dist/components/AvatarGroup/index.js +9 -0
  58. package/dist/components/AvatarGroup/index.js.map +1 -0
  59. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +1 -4
  60. package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -1
  61. package/dist/components/AvatarIcon/AvatarIcon.constants.js +17 -24
  62. package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -1
  63. package/dist/components/AvatarIcon/AvatarIcon.d.ts +1 -2
  64. package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -1
  65. package/dist/components/AvatarIcon/AvatarIcon.js +14 -39
  66. package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -1
  67. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +5 -10
  68. package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -1
  69. package/dist/components/AvatarIcon/AvatarIcon.types.js +0 -9
  70. package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -1
  71. package/dist/components/AvatarIcon/index.d.ts +2 -3
  72. package/dist/components/AvatarIcon/index.d.ts.map +1 -1
  73. package/dist/components/AvatarIcon/index.js +5 -9
  74. package/dist/components/AvatarIcon/index.js.map +1 -1
  75. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +1 -2
  76. package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -1
  77. package/dist/components/AvatarNetwork/AvatarNetwork.js +14 -17
  78. package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -1
  79. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -3
  80. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -1
  81. package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -1
  82. package/dist/components/AvatarNetwork/index.d.ts +2 -2
  83. package/dist/components/AvatarNetwork/index.d.ts.map +1 -1
  84. package/dist/components/AvatarNetwork/index.js +4 -7
  85. package/dist/components/AvatarNetwork/index.js.map +1 -1
  86. package/dist/components/AvatarToken/AvatarToken.d.ts +1 -2
  87. package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -1
  88. package/dist/components/AvatarToken/AvatarToken.js +14 -17
  89. package/dist/components/AvatarToken/AvatarToken.js.map +1 -1
  90. package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -3
  91. package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -1
  92. package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -1
  93. package/dist/components/AvatarToken/index.d.ts +2 -2
  94. package/dist/components/AvatarToken/index.d.ts.map +1 -1
  95. package/dist/components/AvatarToken/index.js +4 -7
  96. package/dist/components/AvatarToken/index.js.map +1 -1
  97. package/dist/components/BadgeCount/BadgeCount.constants.d.ts +6 -0
  98. package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -0
  99. package/dist/components/BadgeCount/BadgeCount.constants.js +19 -0
  100. package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -0
  101. package/dist/components/BadgeCount/BadgeCount.d.ts +4 -0
  102. package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -0
  103. package/dist/components/BadgeCount/BadgeCount.js +30 -0
  104. package/dist/components/BadgeCount/BadgeCount.js.map +1 -0
  105. package/dist/components/BadgeCount/BadgeCount.types.d.ts +39 -0
  106. package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -0
  107. package/dist/components/BadgeCount/BadgeCount.types.js +3 -0
  108. package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -0
  109. package/dist/components/BadgeCount/index.d.ts +4 -0
  110. package/dist/components/BadgeCount/index.d.ts.map +1 -0
  111. package/dist/components/BadgeCount/index.js +8 -0
  112. package/dist/components/BadgeCount/index.js.map +1 -0
  113. package/dist/components/BadgeIcon/BadgeIcon.d.ts +4 -0
  114. package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -0
  115. package/dist/components/BadgeIcon/BadgeIcon.js +26 -0
  116. package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -0
  117. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +20 -0
  118. package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -0
  119. package/dist/components/BadgeIcon/BadgeIcon.types.js +3 -0
  120. package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -0
  121. package/dist/components/BadgeIcon/index.d.ts +3 -0
  122. package/dist/components/BadgeIcon/index.d.ts.map +1 -0
  123. package/dist/components/BadgeIcon/index.js +6 -0
  124. package/dist/components/BadgeIcon/index.js.map +1 -0
  125. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +4 -0
  126. package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -0
  127. package/dist/components/BadgeNetwork/BadgeNetwork.js +11 -0
  128. package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -0
  129. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +17 -0
  130. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -0
  131. package/dist/components/BadgeNetwork/BadgeNetwork.types.js +3 -0
  132. package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -0
  133. package/dist/components/BadgeNetwork/index.d.ts +3 -0
  134. package/dist/components/BadgeNetwork/index.d.ts.map +1 -0
  135. package/dist/components/BadgeNetwork/index.js +6 -0
  136. package/dist/components/BadgeNetwork/index.js.map +1 -0
  137. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +4 -0
  138. package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -0
  139. package/dist/components/BadgeStatus/BadgeStatus.constants.js +17 -0
  140. package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -0
  141. package/dist/components/BadgeStatus/BadgeStatus.d.ts +4 -0
  142. package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -0
  143. package/dist/components/BadgeStatus/BadgeStatus.js +24 -0
  144. package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -0
  145. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +37 -0
  146. package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -0
  147. package/dist/components/BadgeStatus/BadgeStatus.types.js +3 -0
  148. package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -0
  149. package/dist/components/BadgeStatus/index.d.ts +4 -0
  150. package/dist/components/BadgeStatus/index.d.ts.map +1 -0
  151. package/dist/components/BadgeStatus/index.js +9 -0
  152. package/dist/components/BadgeStatus/index.js.map +1 -0
  153. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
  154. package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
  155. package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
  156. package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
  157. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
  158. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
  159. package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
  160. package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
  161. package/dist/components/BadgeWrapper/index.d.ts +5 -0
  162. package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
  163. package/dist/components/BadgeWrapper/index.js +9 -0
  164. package/dist/components/BadgeWrapper/index.js.map +1 -0
  165. package/dist/components/Button/Button.d.ts +1 -2
  166. package/dist/components/Button/Button.d.ts.map +1 -1
  167. package/dist/components/Button/Button.js +13 -12
  168. package/dist/components/Button/Button.js.map +1 -1
  169. package/dist/components/Button/Button.types.d.ts +1 -10
  170. package/dist/components/Button/Button.types.d.ts.map +1 -1
  171. package/dist/components/Button/Button.types.js +0 -12
  172. package/dist/components/Button/Button.types.js.map +1 -1
  173. package/dist/components/Button/index.d.ts +2 -2
  174. package/dist/components/Button/index.d.ts.map +1 -1
  175. package/dist/components/Button/index.js +5 -8
  176. package/dist/components/Button/index.js.map +1 -1
  177. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +1 -2
  178. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -1
  179. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +63 -54
  180. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -1
  181. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +3 -1
  182. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -1
  183. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -1
  184. package/dist/components/Button/variants/ButtonPrimary/index.d.ts +2 -2
  185. package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -1
  186. package/dist/components/Button/variants/ButtonPrimary/index.js +4 -7
  187. package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -1
  188. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +1 -2
  189. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -1
  190. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +62 -50
  191. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -1
  192. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +3 -1
  193. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -1
  194. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -1
  195. package/dist/components/Button/variants/ButtonSecondary/index.d.ts +2 -2
  196. package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -1
  197. package/dist/components/Button/variants/ButtonSecondary/index.js +4 -7
  198. package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -1
  199. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +1 -2
  200. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -1
  201. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +69 -50
  202. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -1
  203. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +3 -1
  204. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -1
  205. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -1
  206. package/dist/components/Button/variants/ButtonTertiary/index.d.ts +2 -2
  207. package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -1
  208. package/dist/components/Button/variants/ButtonTertiary/index.js +4 -7
  209. package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -1
  210. package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
  211. package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
  212. package/dist/components/ButtonBase/ButtonBase.js +48 -0
  213. package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
  214. package/dist/{primitives → components}/ButtonBase/ButtonBase.types.d.ts +9 -17
  215. package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
  216. package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
  217. package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
  218. package/dist/components/ButtonBase/index.d.ts +4 -0
  219. package/dist/components/ButtonBase/index.d.ts.map +1 -0
  220. package/dist/components/ButtonBase/index.js +8 -0
  221. package/dist/components/ButtonBase/index.js.map +1 -0
  222. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +7 -4
  223. package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -1
  224. package/dist/components/ButtonIcon/ButtonIcon.constants.js +10 -13
  225. package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -1
  226. package/dist/components/ButtonIcon/ButtonIcon.d.ts +1 -2
  227. package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
  228. package/dist/components/ButtonIcon/ButtonIcon.js +17 -32
  229. package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -1
  230. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +8 -16
  231. package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -1
  232. package/dist/components/ButtonIcon/ButtonIcon.types.js +0 -16
  233. package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -1
  234. package/dist/components/ButtonIcon/index.d.ts +2 -2
  235. package/dist/components/ButtonIcon/index.d.ts.map +1 -1
  236. package/dist/components/ButtonIcon/index.js +4 -7
  237. package/dist/components/ButtonIcon/index.js.map +1 -1
  238. package/dist/components/Checkbox/Checkbox.d.ts +17 -0
  239. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  240. package/dist/components/Checkbox/Checkbox.js +122 -0
  241. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  242. package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
  243. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  244. package/dist/components/Checkbox/Checkbox.types.js +3 -0
  245. package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
  246. package/dist/components/Checkbox/index.d.ts +3 -0
  247. package/dist/components/Checkbox/index.d.ts.map +1 -0
  248. package/dist/components/Checkbox/index.js +6 -0
  249. package/dist/components/Checkbox/index.js.map +1 -0
  250. package/dist/components/Icon/Icon.assets.d.ts.map +1 -1
  251. package/dist/components/Icon/Icon.assets.js +403 -169
  252. package/dist/components/Icon/Icon.assets.js.map +1 -1
  253. package/dist/components/Icon/Icon.d.ts +1 -2
  254. package/dist/components/Icon/Icon.d.ts.map +1 -1
  255. package/dist/components/Icon/Icon.js +4 -3
  256. package/dist/components/Icon/Icon.js.map +1 -1
  257. package/dist/components/Icon/Icon.types.d.ts +3 -218
  258. package/dist/components/Icon/Icon.types.d.ts.map +1 -1
  259. package/dist/components/Icon/Icon.types.js +0 -226
  260. package/dist/components/Icon/Icon.types.js.map +1 -1
  261. package/dist/components/Icon/Icon.utilities.d.ts.map +1 -1
  262. package/dist/components/Icon/Icon.utilities.js +2 -2
  263. package/dist/components/Icon/Icon.utilities.js.map +1 -1
  264. package/dist/components/Icon/assets/accessibility.svg +1 -0
  265. package/dist/components/Icon/assets/activity.svg +1 -0
  266. package/dist/components/Icon/assets/add-card.svg +1 -0
  267. package/dist/components/Icon/assets/add-circle.svg +1 -0
  268. package/dist/components/Icon/assets/add-square.svg +1 -0
  269. package/dist/components/Icon/assets/add.svg +1 -0
  270. package/dist/components/Icon/assets/ai.svg +1 -0
  271. package/dist/components/Icon/assets/alternate-email.svg +1 -0
  272. package/dist/components/Icon/assets/apps.svg +1 -0
  273. package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
  274. package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
  275. package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
  276. package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
  277. package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
  278. package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
  279. package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
  280. package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
  281. package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
  282. package/dist/components/Icon/assets/arrow-down.svg +1 -0
  283. package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
  284. package/dist/components/Icon/assets/arrow-left.svg +1 -0
  285. package/dist/components/Icon/assets/arrow-right.svg +1 -0
  286. package/dist/components/Icon/assets/arrow-up.svg +1 -0
  287. package/dist/components/Icon/assets/attachment.svg +1 -0
  288. package/dist/components/Icon/assets/ban.svg +1 -0
  289. package/dist/components/Icon/assets/bank-assured.svg +1 -0
  290. package/dist/components/Icon/assets/bank.svg +1 -0
  291. package/dist/components/Icon/assets/bold.svg +1 -0
  292. package/dist/components/Icon/assets/book.svg +1 -0
  293. package/dist/components/Icon/assets/bookmark.svg +1 -0
  294. package/dist/components/Icon/assets/bridge.svg +1 -0
  295. package/dist/components/Icon/assets/briefcase.svg +1 -0
  296. package/dist/components/Icon/assets/bulb.svg +1 -0
  297. package/dist/components/Icon/assets/buy-sell.svg +1 -0
  298. package/dist/components/Icon/assets/cake.svg +1 -0
  299. package/dist/components/Icon/assets/calculator.svg +1 -0
  300. package/dist/components/Icon/assets/calendar.svg +1 -0
  301. package/dist/components/Icon/assets/call.svg +1 -0
  302. package/dist/components/Icon/assets/camera.svg +1 -0
  303. package/dist/components/Icon/assets/campaign.svg +1 -0
  304. package/dist/components/Icon/assets/card-pos.svg +1 -0
  305. package/dist/components/Icon/assets/card.svg +1 -0
  306. package/dist/components/Icon/assets/cash.svg +1 -0
  307. package/dist/components/Icon/assets/category.svg +1 -0
  308. package/dist/components/Icon/assets/chart.svg +1 -0
  309. package/dist/components/Icon/assets/check-bold.svg +1 -0
  310. package/dist/components/Icon/assets/check.svg +1 -0
  311. package/dist/components/Icon/assets/circle-x.svg +1 -0
  312. package/dist/components/Icon/assets/clock-filled.svg +1 -0
  313. package/dist/components/Icon/assets/clock.svg +1 -0
  314. package/dist/components/Icon/assets/close.svg +1 -0
  315. package/dist/components/Icon/assets/cloud-download.svg +1 -0
  316. package/dist/components/Icon/assets/cloud-upload.svg +1 -0
  317. package/dist/components/Icon/assets/cloud.svg +1 -0
  318. package/dist/components/Icon/assets/code-circle.svg +1 -0
  319. package/dist/components/Icon/assets/code.svg +1 -0
  320. package/dist/components/Icon/assets/coin.svg +1 -0
  321. package/dist/components/Icon/assets/collapse.svg +1 -0
  322. package/dist/components/Icon/assets/confirmation.svg +1 -0
  323. package/dist/components/Icon/assets/connect.svg +1 -0
  324. package/dist/components/Icon/assets/copy-success.svg +1 -0
  325. package/dist/components/Icon/assets/copy.svg +1 -0
  326. package/dist/components/Icon/assets/credit-check.svg +1 -0
  327. package/dist/components/Icon/assets/currency-franc.svg +1 -0
  328. package/dist/components/Icon/assets/currency-lira.svg +1 -0
  329. package/dist/components/Icon/assets/currency-pound.svg +1 -0
  330. package/dist/components/Icon/assets/currency-yuan.svg +3 -0
  331. package/dist/components/Icon/assets/customize.svg +1 -0
  332. package/dist/components/Icon/assets/danger.svg +1 -0
  333. package/dist/components/Icon/assets/dark-filled.svg +1 -0
  334. package/dist/components/Icon/assets/dark.svg +1 -0
  335. package/dist/components/Icon/assets/data.svg +1 -0
  336. package/dist/components/Icon/assets/description.svg +1 -0
  337. package/dist/components/Icon/assets/details.svg +1 -0
  338. package/dist/components/Icon/assets/diagram.svg +1 -0
  339. package/dist/components/Icon/assets/document-code.svg +1 -0
  340. package/dist/components/Icon/assets/download.svg +1 -0
  341. package/dist/components/Icon/assets/draft.svg +1 -0
  342. package/dist/components/Icon/assets/eco-leaf.svg +1 -0
  343. package/dist/components/Icon/assets/edit-square.svg +1 -0
  344. package/dist/components/Icon/assets/edit.svg +1 -0
  345. package/dist/components/Icon/assets/encrypted-add.svg +1 -0
  346. package/dist/components/Icon/assets/eraser.svg +1 -0
  347. package/dist/components/Icon/assets/error.svg +1 -0
  348. package/dist/components/Icon/assets/ethereum.svg +1 -0
  349. package/dist/components/Icon/assets/exchange.svg +1 -0
  350. package/dist/components/Icon/assets/expand-vertical.svg +1 -0
  351. package/dist/components/Icon/assets/expand.svg +1 -0
  352. package/dist/components/Icon/assets/explore-filled.svg +1 -0
  353. package/dist/components/Icon/assets/explore.svg +1 -0
  354. package/dist/components/Icon/assets/export.svg +1 -0
  355. package/dist/components/Icon/assets/extension.svg +1 -0
  356. package/dist/components/Icon/assets/eye-slash.svg +1 -0
  357. package/dist/components/Icon/assets/eye.svg +1 -0
  358. package/dist/components/Icon/assets/face-id.svg +1 -0
  359. package/dist/components/Icon/assets/feedback.svg +1 -0
  360. package/dist/components/Icon/assets/file.svg +1 -0
  361. package/dist/components/Icon/assets/filter.svg +1 -0
  362. package/dist/components/Icon/assets/fingerprint.svg +1 -0
  363. package/dist/components/Icon/assets/fire.svg +1 -0
  364. package/dist/components/Icon/assets/first-page.svg +1 -0
  365. package/dist/components/Icon/assets/flag.svg +1 -0
  366. package/dist/components/Icon/assets/flash-slash.svg +1 -0
  367. package/dist/components/Icon/assets/flash.svg +1 -0
  368. package/dist/components/Icon/assets/flask.svg +1 -0
  369. package/dist/components/Icon/assets/flower.svg +1 -0
  370. package/dist/components/Icon/assets/folder.svg +1 -0
  371. package/dist/components/Icon/assets/forest.svg +1 -0
  372. package/dist/components/Icon/assets/full-circle.svg +1 -0
  373. package/dist/components/Icon/assets/gas.svg +1 -0
  374. package/dist/components/Icon/assets/gift.svg +1 -0
  375. package/dist/components/Icon/assets/global-search.svg +1 -0
  376. package/dist/components/Icon/assets/global.svg +1 -0
  377. package/dist/components/Icon/assets/graph.svg +1 -0
  378. package/dist/components/Icon/assets/hardware.svg +1 -0
  379. package/dist/components/Icon/assets/hash-tag.svg +1 -0
  380. package/dist/components/Icon/assets/heart-filled.svg +1 -0
  381. package/dist/components/Icon/assets/heart.svg +1 -0
  382. package/dist/components/Icon/assets/hierarchy.svg +1 -0
  383. package/dist/components/Icon/assets/home-filled.svg +1 -0
  384. package/dist/components/Icon/assets/home.svg +1 -0
  385. package/dist/components/Icon/assets/image.svg +1 -0
  386. package/dist/components/Icon/assets/info.svg +1 -0
  387. package/dist/components/Icon/assets/inventory.svg +1 -0
  388. package/dist/components/Icon/assets/joystick.svg +1 -0
  389. package/dist/components/Icon/assets/keep-filled.svg +1 -0
  390. package/dist/components/Icon/assets/keep.svg +1 -0
  391. package/dist/components/Icon/assets/key.svg +1 -0
  392. package/dist/components/Icon/assets/last-page.svg +1 -0
  393. package/dist/components/Icon/assets/light-filled.svg +1 -0
  394. package/dist/components/Icon/assets/light.svg +1 -0
  395. package/dist/components/Icon/assets/link.svg +1 -0
  396. package/dist/components/Icon/assets/loading.svg +1 -0
  397. package/dist/components/Icon/assets/location.svg +1 -0
  398. package/dist/components/Icon/assets/lock-slash.svg +1 -0
  399. package/dist/components/Icon/assets/lock.svg +1 -0
  400. package/dist/components/Icon/assets/locked-filled.svg +1 -0
  401. package/dist/components/Icon/assets/login.svg +1 -0
  402. package/dist/components/Icon/assets/logout.svg +1 -0
  403. package/dist/components/Icon/assets/mail.svg +1 -0
  404. package/dist/components/Icon/assets/map.svg +1 -0
  405. package/dist/components/Icon/assets/menu.svg +1 -0
  406. package/dist/components/Icon/assets/message-question.svg +1 -0
  407. package/dist/components/Icon/assets/messages.svg +1 -0
  408. package/dist/components/Icon/assets/mic.svg +1 -0
  409. package/dist/components/Icon/assets/minus-bold.svg +1 -0
  410. package/dist/components/Icon/assets/minus-square.svg +1 -0
  411. package/dist/components/Icon/assets/minus.svg +1 -0
  412. package/dist/components/Icon/assets/mobile.svg +1 -0
  413. package/dist/components/Icon/assets/money-bag.svg +1 -0
  414. package/dist/components/Icon/assets/money.svg +1 -0
  415. package/dist/components/Icon/assets/monitor.svg +1 -0
  416. package/dist/components/Icon/assets/more-horizontal.svg +1 -0
  417. package/dist/components/Icon/assets/more-vertical.svg +1 -0
  418. package/dist/components/Icon/assets/mountain-flag.svg +1 -0
  419. package/dist/components/Icon/assets/music-note.svg +1 -0
  420. package/dist/components/Icon/assets/notification.svg +1 -0
  421. package/dist/components/Icon/assets/page-info.svg +1 -0
  422. package/dist/components/Icon/assets/palette.svg +1 -0
  423. package/dist/components/Icon/assets/password-check.svg +1 -0
  424. package/dist/components/Icon/assets/pending.svg +1 -0
  425. package/dist/components/Icon/assets/people.svg +1 -0
  426. package/dist/components/Icon/assets/person-cancel.svg +1 -0
  427. package/dist/components/Icon/assets/pin.svg +1 -0
  428. package/dist/components/Icon/assets/plant.svg +1 -0
  429. package/dist/components/Icon/assets/plug.svg +1 -0
  430. package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
  431. package/dist/components/Icon/assets/policy-alert.svg +1 -0
  432. package/dist/components/Icon/assets/print.svg +1 -0
  433. package/dist/components/Icon/assets/priority-high.svg +1 -0
  434. package/dist/components/Icon/assets/privacy-tip.svg +1 -0
  435. package/dist/components/Icon/assets/programming-arrows.svg +1 -0
  436. package/dist/components/Icon/assets/publish.svg +1 -0
  437. package/dist/components/Icon/assets/qr-code.svg +1 -0
  438. package/dist/components/Icon/assets/question.svg +1 -0
  439. package/dist/components/Icon/assets/receive.svg +1 -0
  440. package/dist/components/Icon/assets/received.svg +1 -0
  441. package/dist/components/Icon/assets/refresh.svg +1 -0
  442. package/dist/components/Icon/assets/remove-minus.svg +1 -0
  443. package/dist/components/Icon/assets/report.svg +1 -0
  444. package/dist/components/Icon/assets/rocket.svg +1 -0
  445. package/dist/components/Icon/assets/save-filled.svg +1 -0
  446. package/dist/components/Icon/assets/save.svg +1 -0
  447. package/dist/components/Icon/assets/saving.svg +1 -0
  448. package/dist/components/Icon/assets/scan-barcode.svg +1 -0
  449. package/dist/components/Icon/assets/scan-focus.svg +1 -0
  450. package/dist/components/Icon/assets/scan.svg +1 -0
  451. package/dist/components/Icon/assets/search.svg +1 -0
  452. package/dist/components/Icon/assets/security-alert.svg +1 -0
  453. package/dist/components/Icon/assets/security-cross.svg +1 -0
  454. package/dist/components/Icon/assets/security-key.svg +1 -0
  455. package/dist/components/Icon/assets/security-search.svg +1 -0
  456. package/dist/components/Icon/assets/security-slash.svg +1 -0
  457. package/dist/components/Icon/assets/security-tick.svg +1 -0
  458. package/dist/components/Icon/assets/security-time.svg +1 -0
  459. package/dist/components/Icon/assets/security-user.svg +1 -0
  460. package/dist/components/Icon/assets/security.svg +1 -0
  461. package/dist/components/Icon/assets/send.svg +1 -0
  462. package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
  463. package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
  464. package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
  465. package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
  466. package/dist/components/Icon/assets/setting-filled.svg +1 -0
  467. package/dist/components/Icon/assets/setting.svg +1 -0
  468. package/dist/components/Icon/assets/share.svg +1 -0
  469. package/dist/components/Icon/assets/shield-lock.svg +1 -0
  470. package/dist/components/Icon/assets/shopping-bag.svg +1 -0
  471. package/dist/components/Icon/assets/shopping-cart.svg +1 -0
  472. package/dist/components/Icon/assets/signal-cellular.svg +1 -0
  473. package/dist/components/Icon/assets/slash.svg +1 -0
  474. package/dist/components/Icon/assets/sms.svg +1 -0
  475. package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
  476. package/dist/components/Icon/assets/snaps-plus.svg +1 -0
  477. package/dist/components/Icon/assets/snaps-round.svg +1 -0
  478. package/dist/components/Icon/assets/snaps.svg +1 -0
  479. package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
  480. package/dist/components/Icon/assets/sort.svg +1 -0
  481. package/dist/components/Icon/assets/sparkle.svg +1 -0
  482. package/dist/components/Icon/assets/speed.svg +1 -0
  483. package/dist/components/Icon/assets/speedometer.svg +1 -0
  484. package/dist/components/Icon/assets/square.svg +1 -0
  485. package/dist/components/Icon/assets/stake.svg +1 -0
  486. package/dist/components/Icon/assets/star-filled.svg +1 -0
  487. package/dist/components/Icon/assets/star.svg +1 -0
  488. package/dist/components/Icon/assets/start.svg +1 -0
  489. package/dist/components/Icon/assets/storefront.svg +1 -0
  490. package/dist/components/Icon/assets/student.svg +1 -0
  491. package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
  492. package/dist/components/Icon/assets/swap-vertical.svg +3 -0
  493. package/dist/components/Icon/assets/tab-close.svg +1 -0
  494. package/dist/components/Icon/assets/table-row.svg +1 -0
  495. package/dist/components/Icon/assets/tablet.svg +1 -0
  496. package/dist/components/Icon/assets/tag.svg +1 -0
  497. package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
  498. package/dist/components/Icon/assets/thumb-down.svg +1 -0
  499. package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
  500. package/dist/components/Icon/assets/thumb-up.svg +1 -0
  501. package/dist/components/Icon/assets/tint.svg +1 -0
  502. package/dist/components/Icon/assets/tooltip.svg +1 -0
  503. package/dist/components/Icon/assets/translate.svg +1 -0
  504. package/dist/components/Icon/assets/trash.svg +1 -0
  505. package/dist/components/Icon/assets/trend-down.svg +1 -0
  506. package/dist/components/Icon/assets/trend-up.svg +1 -0
  507. package/dist/components/Icon/assets/undo.svg +1 -0
  508. package/dist/components/Icon/assets/unfold.svg +1 -0
  509. package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
  510. package/dist/components/Icon/assets/unpin.svg +1 -0
  511. package/dist/components/Icon/assets/upload-file.svg +1 -0
  512. package/dist/components/Icon/assets/upload.svg +1 -0
  513. package/dist/components/Icon/assets/usb.svg +1 -0
  514. package/dist/components/Icon/assets/user-check.svg +1 -0
  515. package/dist/components/Icon/assets/user-circle-add.svg +1 -0
  516. package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
  517. package/dist/components/Icon/assets/user-circle.svg +1 -0
  518. package/dist/components/Icon/assets/user.svg +1 -0
  519. package/dist/components/Icon/assets/verified-filled.svg +1 -0
  520. package/dist/components/Icon/assets/verified.svg +1 -0
  521. package/dist/components/Icon/assets/videocam.svg +1 -0
  522. package/dist/components/Icon/assets/view-column.svg +1 -0
  523. package/dist/components/Icon/assets/view-in-ar.svg +1 -0
  524. package/dist/components/Icon/assets/volume-off.svg +1 -0
  525. package/dist/components/Icon/assets/volume-up.svg +1 -0
  526. package/dist/components/Icon/assets/wallet-filled.svg +1 -0
  527. package/dist/components/Icon/assets/wallet.svg +1 -0
  528. package/dist/components/Icon/assets/warning.svg +1 -0
  529. package/dist/components/Icon/assets/web-traffic.svg +1 -0
  530. package/dist/components/Icon/assets/widgets.svg +1 -0
  531. package/dist/components/Icon/assets/wifi-off.svg +1 -0
  532. package/dist/components/Icon/assets/wifi.svg +1 -0
  533. package/dist/components/Icon/assets/x.svg +1 -0
  534. package/dist/components/Icon/index.d.ts +2 -2
  535. package/dist/components/Icon/index.d.ts.map +1 -1
  536. package/dist/components/Icon/index.js +6 -9
  537. package/dist/components/Icon/index.js.map +1 -1
  538. package/dist/components/Text/Text.constants.d.ts +5 -6
  539. package/dist/components/Text/Text.constants.d.ts.map +1 -1
  540. package/dist/components/Text/Text.constants.js +17 -15
  541. package/dist/components/Text/Text.constants.js.map +1 -1
  542. package/dist/components/Text/Text.d.ts +1 -2
  543. package/dist/components/Text/Text.d.ts.map +1 -1
  544. package/dist/components/Text/Text.js +38 -13
  545. package/dist/components/Text/Text.js.map +1 -1
  546. package/dist/components/Text/Text.types.d.ts +14 -79
  547. package/dist/components/Text/Text.types.d.ts.map +1 -1
  548. package/dist/components/Text/Text.types.js +0 -86
  549. package/dist/components/Text/Text.types.js.map +1 -1
  550. package/dist/components/Text/Text.utilities.d.ts +4 -2
  551. package/dist/components/Text/Text.utilities.d.ts.map +1 -1
  552. package/dist/components/Text/Text.utilities.js +7 -6
  553. package/dist/components/Text/Text.utilities.js.map +1 -1
  554. package/dist/components/Text/index.d.ts +2 -2
  555. package/dist/components/Text/index.d.ts.map +1 -1
  556. package/dist/components/Text/index.js +8 -10
  557. package/dist/components/Text/index.js.map +1 -1
  558. package/dist/components/TextButton/TextButton.constants.d.ts +3 -2
  559. package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -1
  560. package/dist/components/TextButton/TextButton.constants.js +7 -24
  561. package/dist/components/TextButton/TextButton.constants.js.map +1 -1
  562. package/dist/components/TextButton/TextButton.d.ts +1 -2
  563. package/dist/components/TextButton/TextButton.d.ts.map +1 -1
  564. package/dist/components/TextButton/TextButton.js +33 -152
  565. package/dist/components/TextButton/TextButton.js.map +1 -1
  566. package/dist/components/TextButton/TextButton.types.d.ts +11 -15
  567. package/dist/components/TextButton/TextButton.types.d.ts.map +1 -1
  568. package/dist/components/TextButton/TextButton.types.js.map +1 -1
  569. package/dist/components/TextButton/index.d.ts +2 -1
  570. package/dist/components/TextButton/index.d.ts.map +1 -1
  571. package/dist/components/TextButton/index.js +4 -5
  572. package/dist/components/TextButton/index.js.map +1 -1
  573. package/dist/components/index.d.ts +49 -0
  574. package/dist/components/index.d.ts.map +1 -0
  575. package/dist/components/index.js +81 -0
  576. package/dist/components/index.js.map +1 -0
  577. package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
  578. package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
  579. package/dist/{primitives → components/temp-components}/Blockies/Blockies.js +4 -5
  580. package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
  581. package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.d.ts +1 -1
  582. package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
  583. package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
  584. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
  585. package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
  586. package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
  587. package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
  588. package/dist/components/temp-components/Blockies/index.d.ts +3 -0
  589. package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
  590. package/dist/components/temp-components/Blockies/index.js +6 -0
  591. package/dist/components/temp-components/Blockies/index.js.map +1 -0
  592. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
  593. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
  594. package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.js +2 -1
  595. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
  596. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
  597. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
  598. package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
  599. package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
  600. package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
  601. package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
  602. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
  603. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
  604. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.js +3 -5
  605. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
  606. package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.d.ts +7 -7
  607. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
  608. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
  609. package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
  610. package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
  611. package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
  612. package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
  613. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
  614. package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
  615. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.js +2 -2
  616. package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
  617. package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.d.ts +1 -1
  618. package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
  619. package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
  620. package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
  621. package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
  622. package/dist/components/temp-components/Jazzicon/index.js +6 -0
  623. package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
  624. package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
  625. package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
  626. package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
  627. package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
  628. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
  629. package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
  630. package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
  631. package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
  632. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
  633. package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
  634. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
  635. package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
  636. package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
  637. package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
  638. package/dist/components/temp-components/Maskicon/index.js +6 -0
  639. package/dist/components/temp-components/Maskicon/index.js.map +1 -0
  640. package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
  641. package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
  642. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.js +13 -13
  643. package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
  644. package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.d.ts +3 -2
  645. package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
  646. package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
  647. package/dist/components/temp-components/Spinner/index.d.ts +3 -0
  648. package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
  649. package/dist/components/temp-components/Spinner/index.js +6 -0
  650. package/dist/components/temp-components/Spinner/index.js.map +1 -0
  651. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
  652. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
  653. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.js +5 -4
  654. package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
  655. package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.d.ts +2 -1
  656. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
  657. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
  658. package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
  659. package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
  660. package/dist/components/temp-components/TextOrChildren/index.js +6 -0
  661. package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
  662. package/dist/index.d.ts +1 -107
  663. package/dist/index.d.ts.map +1 -1
  664. package/dist/index.js +14 -66
  665. package/dist/index.js.map +1 -1
  666. package/dist/types/index.d.ts +618 -0
  667. package/dist/types/index.d.ts.map +1 -0
  668. package/dist/types/index.js +629 -0
  669. package/dist/types/index.js.map +1 -0
  670. package/package.json +9 -3
  671. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +0 -3
  672. package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +0 -1
  673. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +0 -12
  674. package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +0 -1
  675. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +0 -24
  676. package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +0 -1
  677. package/dist/components/AvatarIcon/AvatarIcon.utilities.js +0 -30
  678. package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +0 -1
  679. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +0 -3
  680. package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +0 -1
  681. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +0 -12
  682. package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +0 -1
  683. package/dist/components/AvatarToken/AvatarToken.constants.d.ts +0 -3
  684. package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +0 -1
  685. package/dist/components/AvatarToken/AvatarToken.constants.js +0 -12
  686. package/dist/components/AvatarToken/AvatarToken.constants.js.map +0 -1
  687. package/dist/components/Button/Button.constants.d.ts +0 -2
  688. package/dist/components/Button/Button.constants.d.ts.map +0 -1
  689. package/dist/components/Button/Button.constants.js +0 -7
  690. package/dist/components/Button/Button.constants.js.map +0 -1
  691. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +0 -3
  692. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +0 -1
  693. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +0 -29
  694. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +0 -1
  695. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +0 -78
  696. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +0 -1
  697. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +0 -122
  698. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +0 -1
  699. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +0 -3
  700. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +0 -1
  701. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +0 -29
  702. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +0 -1
  703. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +0 -90
  704. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +0 -1
  705. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +0 -145
  706. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +0 -1
  707. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +0 -3
  708. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +0 -1
  709. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +0 -29
  710. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +0 -1
  711. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +0 -88
  712. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +0 -1
  713. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +0 -147
  714. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +0 -1
  715. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +0 -55
  716. package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +0 -1
  717. package/dist/components/ButtonIcon/ButtonIcon.utilities.js +0 -73
  718. package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +0 -1
  719. package/dist/components/Icon/Icon.constants.d.ts +0 -7
  720. package/dist/components/Icon/Icon.constants.d.ts.map +0 -1
  721. package/dist/components/Icon/Icon.constants.js +0 -15
  722. package/dist/components/Icon/Icon.constants.js.map +0 -1
  723. package/dist/components/TextButton/TextButton.utilities.d.ts +0 -55
  724. package/dist/components/TextButton/TextButton.utilities.d.ts.map +0 -1
  725. package/dist/components/TextButton/TextButton.utilities.js +0 -77
  726. package/dist/components/TextButton/TextButton.utilities.js.map +0 -1
  727. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +0 -5
  728. package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +0 -1
  729. package/dist/primitives/AvatarBase/AvatarBase.constants.js +0 -25
  730. package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +0 -1
  731. package/dist/primitives/AvatarBase/AvatarBase.d.ts +0 -5
  732. package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +0 -1
  733. package/dist/primitives/AvatarBase/AvatarBase.js +0 -52
  734. package/dist/primitives/AvatarBase/AvatarBase.js.map +0 -1
  735. package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +0 -1
  736. package/dist/primitives/AvatarBase/AvatarBase.types.js.map +0 -1
  737. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +0 -26
  738. package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +0 -1
  739. package/dist/primitives/AvatarBase/AvatarBase.utilities.js +0 -43
  740. package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +0 -1
  741. package/dist/primitives/AvatarBase/index.d.ts +0 -4
  742. package/dist/primitives/AvatarBase/index.d.ts.map +0 -1
  743. package/dist/primitives/AvatarBase/index.js +0 -11
  744. package/dist/primitives/AvatarBase/index.js.map +0 -1
  745. package/dist/primitives/Blockies/Blockies.d.ts +0 -5
  746. package/dist/primitives/Blockies/Blockies.d.ts.map +0 -1
  747. package/dist/primitives/Blockies/Blockies.js.map +0 -1
  748. package/dist/primitives/Blockies/Blockies.types.d.ts.map +0 -1
  749. package/dist/primitives/Blockies/Blockies.types.js.map +0 -1
  750. package/dist/primitives/Blockies/index.d.ts +0 -3
  751. package/dist/primitives/Blockies/index.d.ts.map +0 -1
  752. package/dist/primitives/Blockies/index.js +0 -9
  753. package/dist/primitives/Blockies/index.js.map +0 -1
  754. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +0 -5
  755. package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +0 -1
  756. package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +0 -1
  757. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +0 -1
  758. package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +0 -1
  759. package/dist/primitives/ButtonAnimated/index.d.ts +0 -3
  760. package/dist/primitives/ButtonAnimated/index.d.ts.map +0 -1
  761. package/dist/primitives/ButtonAnimated/index.js +0 -9
  762. package/dist/primitives/ButtonAnimated/index.js.map +0 -1
  763. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +0 -3
  764. package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +0 -1
  765. package/dist/primitives/ButtonBase/ButtonBase.constants.js +0 -32
  766. package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +0 -1
  767. package/dist/primitives/ButtonBase/ButtonBase.d.ts +0 -5
  768. package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +0 -1
  769. package/dist/primitives/ButtonBase/ButtonBase.js +0 -84
  770. package/dist/primitives/ButtonBase/ButtonBase.js.map +0 -1
  771. package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +0 -1
  772. package/dist/primitives/ButtonBase/ButtonBase.types.js +0 -19
  773. package/dist/primitives/ButtonBase/ButtonBase.types.js.map +0 -1
  774. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +0 -28
  775. package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +0 -1
  776. package/dist/primitives/ButtonBase/ButtonBase.utilities.js +0 -41
  777. package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +0 -1
  778. package/dist/primitives/ButtonBase/index.d.ts +0 -4
  779. package/dist/primitives/ButtonBase/index.d.ts.map +0 -1
  780. package/dist/primitives/ButtonBase/index.js +0 -11
  781. package/dist/primitives/ButtonBase/index.js.map +0 -1
  782. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +0 -5
  783. package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +0 -1
  784. package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +0 -1
  785. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +0 -1
  786. package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +0 -1
  787. package/dist/primitives/ImageOrSvg/index.d.ts +0 -3
  788. package/dist/primitives/ImageOrSvg/index.d.ts.map +0 -1
  789. package/dist/primitives/ImageOrSvg/index.js +0 -9
  790. package/dist/primitives/ImageOrSvg/index.js.map +0 -1
  791. package/dist/primitives/Jazzicon/Jazzicon.d.ts +0 -5
  792. package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +0 -1
  793. package/dist/primitives/Jazzicon/Jazzicon.js.map +0 -1
  794. package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +0 -1
  795. package/dist/primitives/Jazzicon/Jazzicon.types.js.map +0 -1
  796. package/dist/primitives/Jazzicon/index.d.ts +0 -3
  797. package/dist/primitives/Jazzicon/index.d.ts.map +0 -1
  798. package/dist/primitives/Jazzicon/index.js +0 -9
  799. package/dist/primitives/Jazzicon/index.js.map +0 -1
  800. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +0 -5
  801. package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +0 -1
  802. package/dist/primitives/TextOrChildren/TextOrChildren.js.map +0 -1
  803. package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +0 -1
  804. package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +0 -1
  805. package/dist/primitives/TextOrChildren/index.d.ts +0 -3
  806. package/dist/primitives/TextOrChildren/index.d.ts.map +0 -1
  807. package/dist/primitives/TextOrChildren/index.js +0 -9
  808. package/dist/primitives/TextOrChildren/index.js.map +0 -1
  809. package/dist/shared/enums.d.ts +0 -46
  810. package/dist/shared/enums.d.ts.map +0 -1
  811. package/dist/shared/enums.js +0 -44
  812. package/dist/shared/enums.js.map +0 -1
  813. package/dist/temp-components/Spinner/Spinner.constants.d.ts +0 -3
  814. package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +0 -1
  815. package/dist/temp-components/Spinner/Spinner.constants.js +0 -21
  816. package/dist/temp-components/Spinner/Spinner.constants.js.map +0 -1
  817. package/dist/temp-components/Spinner/Spinner.d.ts +0 -5
  818. package/dist/temp-components/Spinner/Spinner.d.ts.map +0 -1
  819. package/dist/temp-components/Spinner/Spinner.js.map +0 -1
  820. package/dist/temp-components/Spinner/Spinner.types.d.ts.map +0 -1
  821. package/dist/temp-components/Spinner/Spinner.types.js.map +0 -1
  822. package/dist/temp-components/Spinner/index.d.ts +0 -3
  823. package/dist/temp-components/Spinner/index.d.ts.map +0 -1
  824. package/dist/temp-components/Spinner/index.js +0 -9
  825. package/dist/temp-components/Spinner/index.js.map +0 -1
  826. /package/dist/{primitives → components}/AvatarBase/AvatarBase.types.js +0 -0
  827. /package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.js +0 -0
  828. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.d.ts +0 -0
  829. /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.js +0 -0
  830. /package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.js +0 -0
  831. /package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.js +0 -0
  832. /package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.js +0 -0
  833. /package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":";;;;;;AAAA,iDAA0C;AAAjC,yHAAA,OAAO,OAAA;AAEhB,4CAAuD;AAA9C,0GAAA,iBAAiB,OAAA","sourcesContent":["export { default } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon.types';\nexport { AvatarFaviconSize } from '../../shared/enums';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/index.ts"],"names":[],"mappings":";;;AAAA,qCAAgD;AAAvC,0GAAA,iBAAiB,OAAA;AAC1B,iDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { AvatarFaviconSize } from '../../types';\nexport { AvatarFavicon } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon.types';\n"]}
@@ -0,0 +1,5 @@
1
+ import { AvatarGroupSize } from '../../types';
2
+ import { TextVariant } from '../Text';
3
+ export declare const TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS: Record<AvatarGroupSize, string>;
4
+ export declare const MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT: Record<AvatarGroupSize, TextVariant>;
5
+ //# sourceMappingURL=AvatarGroup.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.constants.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAO,MAAM,+CAA+C,EAAE,MAAM,CAClE,eAAe,EACf,MAAM,CAOP,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,MAAM,CAChE,eAAe,EACf,WAAW,CAOZ,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT = exports.TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS = void 0;
4
+ const types_1 = require("../../types");
5
+ const Text_1 = require("../Text");
6
+ // Mappings
7
+ exports.TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS = {
8
+ [types_1.AvatarGroupSize.Xs]: 'gap-[-6px]',
9
+ [types_1.AvatarGroupSize.Sm]: 'gap-[-10px]',
10
+ [types_1.AvatarGroupSize.Md]: 'gap-[-14px]',
11
+ [types_1.AvatarGroupSize.Lg]: 'gap-[-18px]',
12
+ [types_1.AvatarGroupSize.Xl]: 'gap-[-22px]',
13
+ };
14
+ exports.MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT = {
15
+ [types_1.AvatarGroupSize.Xs]: Text_1.TextVariant.BodyXs,
16
+ [types_1.AvatarGroupSize.Sm]: Text_1.TextVariant.BodySm,
17
+ [types_1.AvatarGroupSize.Md]: Text_1.TextVariant.BodyMd,
18
+ [types_1.AvatarGroupSize.Lg]: Text_1.TextVariant.HeadingMd,
19
+ [types_1.AvatarGroupSize.Xl]: Text_1.TextVariant.HeadingMd,
20
+ };
21
+ //# sourceMappingURL=AvatarGroup.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.constants.js","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.constants.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAC9C,kCAAsC;AAEtC,WAAW;AACE,QAAA,+CAA+C,GAGxD;IACF,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,YAAY;IAClC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,aAAa;IACnC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,aAAa;IACnC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,aAAa;IACnC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,aAAa;CACpC,CAAC;AAEW,QAAA,6CAA6C,GAGtD;IACF,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,kBAAW,CAAC,MAAM;IACxC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,kBAAW,CAAC,MAAM;IACxC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,kBAAW,CAAC,MAAM;IACxC,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,kBAAW,CAAC,SAAS;IAC3C,CAAC,uBAAe,CAAC,EAAE,CAAC,EAAE,kBAAW,CAAC,SAAS;CAC5C,CAAC","sourcesContent":["import { AvatarGroupSize } from '../../types';\nimport { TextVariant } from '../Text';\n\n// Mappings\nexport const TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS: Record<\n AvatarGroupSize,\n string\n> = {\n [AvatarGroupSize.Xs]: 'gap-[-6px]',\n [AvatarGroupSize.Sm]: 'gap-[-10px]',\n [AvatarGroupSize.Md]: 'gap-[-14px]',\n [AvatarGroupSize.Lg]: 'gap-[-18px]',\n [AvatarGroupSize.Xl]: 'gap-[-22px]',\n};\n\nexport const MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT: Record<\n AvatarGroupSize,\n TextVariant\n> = {\n [AvatarGroupSize.Xs]: TextVariant.BodyXs,\n [AvatarGroupSize.Sm]: TextVariant.BodySm,\n [AvatarGroupSize.Md]: TextVariant.BodyMd,\n [AvatarGroupSize.Lg]: TextVariant.HeadingMd,\n [AvatarGroupSize.Xl]: TextVariant.HeadingMd,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { AvatarGroupProps } from './AvatarGroup.types';
3
+ export declare const AvatarGroup: ({ variant, avatarPropsArr, size, max, isReverse, overflowTextProps, style, twClassName, ...props }: AvatarGroupProps) => React.JSX.Element;
4
+ //# sourceMappingURL=AvatarGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAmB3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,uGAUrB,gBAAgB,sBAiFlB,CAAC"}
@@ -0,0 +1,71 @@
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.AvatarGroup = 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 types_1 = require("../../types");
31
+ const AvatarAccount_1 = require("../AvatarAccount");
32
+ const AvatarBase_1 = require("../AvatarBase");
33
+ const AvatarFavicon_1 = require("../AvatarFavicon");
34
+ const AvatarNetwork_1 = require("../AvatarNetwork");
35
+ const AvatarToken_1 = require("../AvatarToken");
36
+ const Text_1 = require("../Text");
37
+ const AvatarGroup_constants_1 = require("./AvatarGroup.constants");
38
+ const AvatarGroup = ({ variant, avatarPropsArr, size = types_1.AvatarGroupSize.Md, max = 4, isReverse = false, overflowTextProps, style, twClassName, ...props }) => {
39
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
40
+ const overflowCounter = avatarPropsArr.length - max;
41
+ const shouldRenderOverflowCounter = overflowCounter > 0;
42
+ const twContainerClassNames = `
43
+ ${isReverse ? 'flex-row-reverse' : 'flex-row'}
44
+ ${AvatarGroup_constants_1.TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS[size]}
45
+ `;
46
+ const renderAvatarList = (0, react_1.useCallback)(() => avatarPropsArr.slice(0, max).map((avatarProps, index) => {
47
+ switch (variant) {
48
+ case types_1.AvatarGroupVariant.Account:
49
+ return (<AvatarAccount_1.AvatarAccount key={`avatar-${index}`} {...avatarProps} size={size} hasBorder/>);
50
+ case types_1.AvatarGroupVariant.Favicon:
51
+ return (<AvatarFavicon_1.AvatarFavicon key={`avatar-${index}`} {...avatarProps} size={size} hasBorder/>);
52
+ case types_1.AvatarGroupVariant.Network:
53
+ return (<AvatarNetwork_1.AvatarNetwork key={`avatar-${index}`} {...avatarProps} size={size} hasBorder/>);
54
+ case types_1.AvatarGroupVariant.Token:
55
+ return (<AvatarToken_1.AvatarToken key={`avatar-${index}`} {...avatarProps} size={size} hasBorder/>);
56
+ default:
57
+ throw new Error(`Invalid Avatar Variant: ${variant}. Expected one of: ${Object.values(types_1.AvatarGroupVariant).join(', ')}`);
58
+ }
59
+ }), [avatarPropsArr, max, size, tw]);
60
+ return (<react_native_1.View style={[tw `${twContainerClassNames}`, style]} {...props}>
61
+ {renderAvatarList()}
62
+ {shouldRenderOverflowCounter && (<AvatarBase_1.AvatarBase twClassName="bg-icon-default" hasBorder fallbackText={`+${overflowCounter}`} fallbackTextProps={{
63
+ variant: AvatarGroup_constants_1.MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT[size],
64
+ color: Text_1.TextColor.PrimaryInverse,
65
+ }} size={size} shape={variant === types_1.AvatarGroupVariant.Network
66
+ ? AvatarBase_1.AvatarBaseShape.Square
67
+ : AvatarBase_1.AvatarBaseShape.Circle} {...overflowTextProps}/>)}
68
+ </react_native_1.View>);
69
+ };
70
+ exports.AvatarGroup = AvatarGroup;
71
+ //# sourceMappingURL=AvatarGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.js","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAA2C;AAC3C,+CAAoC;AAEpC,uCAAkE;AAElE,oDAAiD;AACjD,8CAA4D;AAE5D,oDAAiD;AAEjD,oDAAiD;AAEjD,gDAA6C;AAC7C,kCAA0C;AAE1C,mEAGiC;AAG1B,MAAM,WAAW,GAAG,CAAC,EAC1B,OAAO,EACP,cAAc,EACd,IAAI,GAAG,uBAAe,CAAC,EAAE,EACzB,GAAG,GAAG,CAAC,EACP,SAAS,GAAG,KAAK,EACjB,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,GAAG,KAAK,EACS,EAAE,EAAE;IACrB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,eAAe,GAAG,cAAc,CAAC,MAAM,GAAG,GAAG,CAAC;IACpD,MAAM,2BAA2B,GAAG,eAAe,GAAG,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG;MAC1B,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU;MAC3C,uEAA+C,CAAC,IAAI,CAAC;GACxD,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAClC,GAAG,EAAE,CACH,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;QACtD,QAAQ,OAAO,EAAE;YACf,KAAK,0BAAkB,CAAC,OAAO;gBAC7B,OAAO,CACL,CAAC,6BAAa,CACZ,GAAG,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CACvB,IAAK,WAAkC,CAAC,CACxC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,EACT,CACH,CAAC;YACJ,KAAK,0BAAkB,CAAC,OAAO;gBAC7B,OAAO,CACL,CAAC,6BAAa,CACZ,GAAG,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CACvB,IAAK,WAAkC,CAAC,CACxC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,EACT,CACH,CAAC;YACJ,KAAK,0BAAkB,CAAC,OAAO;gBAC7B,OAAO,CACL,CAAC,6BAAa,CACZ,GAAG,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CACvB,IAAK,WAAkC,CAAC,CACxC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,EACT,CACH,CAAC;YACJ,KAAK,0BAAkB,CAAC,KAAK;gBAC3B,OAAO,CACL,CAAC,yBAAW,CACV,GAAG,CAAC,CAAC,UAAU,KAAK,EAAE,CAAC,CACvB,IAAK,WAAgC,CAAC,CACtC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,EACT,CACH,CAAC;YACJ;gBACE,MAAM,IAAI,KAAK,CACb,2BAA2B,OAAO,sBAAsB,MAAM,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvG,CAAC;SACL;IACH,CAAC,CAAC,EACJ,CAAC,cAAc,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAChC,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC5D;MAAA,CAAC,gBAAgB,EAAE,CACnB;MAAA,CAAC,2BAA2B,IAAI,CAC9B,CAAC,uBAAU,CACT,WAAW,CAAC,iBAAiB,CAC7B,SAAS,CACT,YAAY,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CACpC,iBAAiB,CAAC,CAAC;gBACjB,OAAO,EAAE,qEAA6C,CAAC,IAAI,CAAC;gBAC5D,KAAK,EAAE,gBAAS,CAAC,cAAc;aAChC,CAAC,CACF,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CACJ,OAAO,KAAK,0BAAkB,CAAC,OAAO;gBACpC,CAAC,CAAC,4BAAe,CAAC,MAAM;gBACxB,CAAC,CAAC,4BAAe,CAAC,MAAM,CAC3B,CACD,IAAI,iBAAiB,CAAC,EACtB,CACH,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA3FW,QAAA,WAAW,eA2FtB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { View } from 'react-native';\n\nimport { AvatarGroupSize, AvatarGroupVariant } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport { AvatarAccount } from '../AvatarAccount';\nimport { AvatarBase, AvatarBaseShape } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport { AvatarFavicon } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport { AvatarNetwork } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\nimport { AvatarToken } from '../AvatarToken';\nimport { Text, TextColor } from '../Text';\n\nimport {\n MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT,\n TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS,\n} from './AvatarGroup.constants';\nimport type { AvatarGroupProps } from './AvatarGroup.types';\n\nexport const AvatarGroup = ({\n variant,\n avatarPropsArr,\n size = AvatarGroupSize.Md,\n max = 4,\n isReverse = false,\n overflowTextProps,\n style,\n twClassName,\n ...props\n}: AvatarGroupProps) => {\n const tw = useTailwind();\n const overflowCounter = avatarPropsArr.length - max;\n const shouldRenderOverflowCounter = overflowCounter > 0;\n const twContainerClassNames = `\n ${isReverse ? 'flex-row-reverse' : 'flex-row'}\n ${TWCLASSMAP_AVATARGROUP_SIZE_SPACEBETWEENAVATARS[size]}\n `;\n\n const renderAvatarList = useCallback(\n () =>\n avatarPropsArr.slice(0, max).map((avatarProps, index) => {\n switch (variant) {\n case AvatarGroupVariant.Account:\n return (\n <AvatarAccount\n key={`avatar-${index}`}\n {...(avatarProps as AvatarAccountProps)}\n size={size}\n hasBorder\n />\n );\n case AvatarGroupVariant.Favicon:\n return (\n <AvatarFavicon\n key={`avatar-${index}`}\n {...(avatarProps as AvatarFaviconProps)}\n size={size}\n hasBorder\n />\n );\n case AvatarGroupVariant.Network:\n return (\n <AvatarNetwork\n key={`avatar-${index}`}\n {...(avatarProps as AvatarNetworkProps)}\n size={size}\n hasBorder\n />\n );\n case AvatarGroupVariant.Token:\n return (\n <AvatarToken\n key={`avatar-${index}`}\n {...(avatarProps as AvatarTokenProps)}\n size={size}\n hasBorder\n />\n );\n default:\n throw new Error(\n `Invalid Avatar Variant: ${variant}. Expected one of: ${Object.values(AvatarGroupVariant).join(', ')}`,\n );\n }\n }),\n [avatarPropsArr, max, size, tw],\n );\n\n return (\n <View style={[tw`${twContainerClassNames}`, style]} {...props}>\n {renderAvatarList()}\n {shouldRenderOverflowCounter && (\n <AvatarBase\n twClassName=\"bg-icon-default\"\n hasBorder\n fallbackText={`+${overflowCounter}`}\n fallbackTextProps={{\n variant: MAP_AVATARGROUP_SIZE_OVERFLOWTEXT_TEXTVARIANT[size],\n color: TextColor.PrimaryInverse,\n }}\n size={size}\n shape={\n variant === AvatarGroupVariant.Network\n ? AvatarBaseShape.Square\n : AvatarBaseShape.Circle\n }\n {...overflowTextProps}\n />\n )}\n </View>\n );\n};\n"]}
@@ -0,0 +1,68 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import type { AvatarGroupSize, AvatarGroupVariant } from '../../types';
3
+ import type { AvatarAccountProps } from '../AvatarAccount';
4
+ import type { AvatarBaseProps } from '../AvatarBase';
5
+ import type { AvatarFaviconProps } from '../AvatarFavicon';
6
+ import type { AvatarNetworkProps } from '../AvatarNetwork';
7
+ import type { AvatarTokenProps } from '../AvatarToken';
8
+ type BaseAvatarGroupProps = {
9
+ /**
10
+ * Optional enum to select between Avatar Group sizes.
11
+ *
12
+ * @default AvatarGroupSize.Md
13
+ */
14
+ size?: AvatarGroupSize;
15
+ /**
16
+ * Optional enum to select max number of Avatars visible,
17
+ * before the overflow counter being displayed
18
+ *
19
+ * @default 4
20
+ */
21
+ max?: number;
22
+ /**
23
+ * Optional prop to reverse the direction of the AvatarGroup
24
+ */
25
+ isReverse?: boolean;
26
+ /**
27
+ * Optional prop to pass additional AvatarBase props to the overflow Text element
28
+ */
29
+ overflowTextProps?: AvatarBaseProps;
30
+ /**
31
+ * Optional prop to add twrnc overriding classNames.
32
+ */
33
+ twClassName?: string;
34
+ } & ViewProps;
35
+ /**
36
+ * AvatarGroup props.
37
+ */
38
+ export type AvatarGroupProps = BaseAvatarGroupProps & ({
39
+ variant: AvatarGroupVariant.Account;
40
+ /**
41
+ * A list of Avatars to be horizontally stacked.
42
+ * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
43
+ */
44
+ avatarPropsArr: AvatarAccountProps[];
45
+ } | {
46
+ variant: AvatarGroupVariant.Favicon;
47
+ /**
48
+ * A list of Avatars to be horizontally stacked.
49
+ * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
50
+ */
51
+ avatarPropsArr: AvatarFaviconProps[];
52
+ } | {
53
+ variant: AvatarGroupVariant.Network;
54
+ /**
55
+ * A list of Avatars to be horizontally stacked.
56
+ * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
57
+ */
58
+ avatarPropsArr: AvatarNetworkProps[];
59
+ } | {
60
+ variant: AvatarGroupVariant.Token;
61
+ /**
62
+ * A list of Avatars to be horizontally stacked.
63
+ * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.
64
+ */
65
+ avatarPropsArr: AvatarTokenProps[];
66
+ });
67
+ export {};
68
+ //# sourceMappingURL=AvatarGroup.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,KAAK,oBAAoB,GAAG;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,CACI;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACpC;;;OAGG;IACH,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACtC,GACD;IACE,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC;IAClC;;;OAGG;IACH,cAAc,EAAE,gBAAgB,EAAE,CAAC;CACpC,CACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=AvatarGroup.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarGroup.types.js","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps } from 'react-native';\n\nimport type { AvatarGroupSize, AvatarGroupVariant } from '../../types';\nimport type { AvatarAccountProps } from '../AvatarAccount';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { AvatarFaviconProps } from '../AvatarFavicon';\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { AvatarTokenProps } from '../AvatarToken';\n\ntype BaseAvatarGroupProps = {\n /**\n * Optional enum to select between Avatar Group sizes.\n *\n * @default AvatarGroupSize.Md\n */\n size?: AvatarGroupSize;\n /**\n * Optional enum to select max number of Avatars visible,\n * before the overflow counter being displayed\n *\n * @default 4\n */\n max?: number;\n /**\n * Optional prop to reverse the direction of the AvatarGroup\n */\n isReverse?: boolean;\n /**\n * Optional prop to pass additional AvatarBase props to the overflow Text element\n */\n overflowTextProps?: AvatarBaseProps;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * AvatarGroup props.\n */\nexport type AvatarGroupProps = BaseAvatarGroupProps &\n (\n | {\n variant: AvatarGroupVariant.Account;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarAccountProps[];\n }\n | {\n variant: AvatarGroupVariant.Favicon;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarFaviconProps[];\n }\n | {\n variant: AvatarGroupVariant.Network;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarNetworkProps[];\n }\n | {\n variant: AvatarGroupVariant.Token;\n /**\n * A list of Avatars to be horizontally stacked.\n * Note: AvatarGroupProps's size prop will overwrite each individual avatarProp's size.\n */\n avatarPropsArr: AvatarTokenProps[];\n }\n );\n"]}
@@ -0,0 +1,4 @@
1
+ export { AvatarGroupSize, AvatarGroupVariant } from '../../types';
2
+ export { AvatarGroup } from './AvatarGroup';
3
+ export type { AvatarGroupProps } from './AvatarGroup.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AvatarGroup = exports.AvatarGroupVariant = exports.AvatarGroupSize = void 0;
4
+ var types_1 = require("../../types");
5
+ Object.defineProperty(exports, "AvatarGroupSize", { enumerable: true, get: function () { return types_1.AvatarGroupSize; } });
6
+ Object.defineProperty(exports, "AvatarGroupVariant", { enumerable: true, get: function () { return types_1.AvatarGroupVariant; } });
7
+ var AvatarGroup_1 = require("./AvatarGroup");
8
+ Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroup; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarGroup/index.ts"],"names":[],"mappings":";;;AAAA,qCAAkE;AAAzD,wGAAA,eAAe,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAC5C,6CAA4C;AAAnC,0GAAA,WAAW,OAAA","sourcesContent":["export { AvatarGroupSize, AvatarGroupVariant } from '../../types';\nexport { AvatarGroup } from './AvatarGroup';\nexport type { AvatarGroupProps } from './AvatarGroup.types';\n"]}
@@ -1,9 +1,6 @@
1
- import type { AvatarIconProps } from './AvatarIcon.types';
2
- import { AvatarIconSeverity } from './AvatarIcon.types';
1
+ import { AvatarIconSize, AvatarIconSeverity } from '../../types';
3
2
  import { IconSize, IconColor } from '../Icon';
4
- import { AvatarIconSize } from '../../shared/enums';
5
3
  export declare const TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR: Record<AvatarIconSeverity, string>;
6
4
  export declare const MAP_AVATARICON_SIZE_ICONSIZE: Record<AvatarIconSize, IconSize>;
7
5
  export declare const MAP_AVATARICON_SEVERITY_ICONCOLOR: Record<AvatarIconSeverity, IconColor>;
8
- export declare const DEFAULT_AVATARICON_PROPS: Required<Pick<AvatarIconProps, 'size' | 'shape' | 'severity'>>;
9
6
  //# sourceMappingURL=AvatarIcon.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.constants.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAGrE,eAAO,MAAM,8CAA8C,EAAE,MAAM,CACjE,kBAAkB,EAClB,MAAM,CAOP,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,cAAc,EAAE,QAAQ,CAMzE,CAAC;AACF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,kBAAkB,EAClB,SAAS,CAOV,CAAC;AAGF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAC7C,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAKrD,CAAC"}
1
+ {"version":3,"file":"AvatarIcon.constants.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,8CAA8C,EAAE,MAAM,CACjE,kBAAkB,EAClB,MAAM,CAOP,CAAC;AACF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,cAAc,EAAE,QAAQ,CAMzE,CAAC;AACF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,kBAAkB,EAClB,SAAS,CAOV,CAAC"}
@@ -1,35 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_AVATARICON_PROPS = exports.MAP_AVATARICON_SEVERITY_ICONCOLOR = exports.MAP_AVATARICON_SIZE_ICONSIZE = exports.TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR = void 0;
4
- const AvatarIcon_types_1 = require("./AvatarIcon.types");
3
+ exports.MAP_AVATARICON_SEVERITY_ICONCOLOR = exports.MAP_AVATARICON_SIZE_ICONSIZE = exports.TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR = void 0;
4
+ const types_1 = require("../../types");
5
5
  const Icon_1 = require("../Icon");
6
- const enums_1 = require("../../shared/enums");
7
6
  // Mappings
8
7
  exports.TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR = {
9
- [AvatarIcon_types_1.AvatarIconSeverity.Default]: 'bg-background-muted',
10
- [AvatarIcon_types_1.AvatarIconSeverity.Info]: 'bg-info-muted',
11
- [AvatarIcon_types_1.AvatarIconSeverity.Success]: 'bg-success-muted',
12
- [AvatarIcon_types_1.AvatarIconSeverity.Error]: 'bg-error-muted',
13
- [AvatarIcon_types_1.AvatarIconSeverity.Warning]: 'bg-warning-muted',
8
+ [types_1.AvatarIconSeverity.Neutral]: 'bg-background-muted',
9
+ [types_1.AvatarIconSeverity.Info]: 'bg-info-muted',
10
+ [types_1.AvatarIconSeverity.Success]: 'bg-success-muted',
11
+ [types_1.AvatarIconSeverity.Error]: 'bg-error-muted',
12
+ [types_1.AvatarIconSeverity.Warning]: 'bg-warning-muted',
14
13
  };
15
14
  exports.MAP_AVATARICON_SIZE_ICONSIZE = {
16
- [enums_1.AvatarIconSize.Xs]: Icon_1.IconSize.Xs,
17
- [enums_1.AvatarIconSize.Sm]: Icon_1.IconSize.Sm,
18
- [enums_1.AvatarIconSize.Md]: Icon_1.IconSize.Md,
19
- [enums_1.AvatarIconSize.Lg]: Icon_1.IconSize.Lg,
20
- [enums_1.AvatarIconSize.Xl]: Icon_1.IconSize.Xl, // 48px avatar -> 32px icon
15
+ [types_1.AvatarIconSize.Xs]: Icon_1.IconSize.Xs,
16
+ [types_1.AvatarIconSize.Sm]: Icon_1.IconSize.Sm,
17
+ [types_1.AvatarIconSize.Md]: Icon_1.IconSize.Md,
18
+ [types_1.AvatarIconSize.Lg]: Icon_1.IconSize.Lg,
19
+ [types_1.AvatarIconSize.Xl]: Icon_1.IconSize.Xl, // 48px avatar -> 32px icon
21
20
  };
22
21
  exports.MAP_AVATARICON_SEVERITY_ICONCOLOR = {
23
- [AvatarIcon_types_1.AvatarIconSeverity.Default]: Icon_1.IconColor.IconAlternative,
24
- [AvatarIcon_types_1.AvatarIconSeverity.Info]: Icon_1.IconColor.InfoDefault,
25
- [AvatarIcon_types_1.AvatarIconSeverity.Success]: Icon_1.IconColor.SuccessDefault,
26
- [AvatarIcon_types_1.AvatarIconSeverity.Error]: Icon_1.IconColor.ErrorDefault,
27
- [AvatarIcon_types_1.AvatarIconSeverity.Warning]: Icon_1.IconColor.WarningDefault,
28
- };
29
- // Defaults
30
- exports.DEFAULT_AVATARICON_PROPS = {
31
- size: enums_1.AvatarIconSize.Md,
32
- shape: enums_1.AvatarBaseShape.Circle,
33
- severity: AvatarIcon_types_1.AvatarIconSeverity.Default,
22
+ [types_1.AvatarIconSeverity.Neutral]: Icon_1.IconColor.IconAlternative,
23
+ [types_1.AvatarIconSeverity.Info]: Icon_1.IconColor.InfoDefault,
24
+ [types_1.AvatarIconSeverity.Success]: Icon_1.IconColor.SuccessDefault,
25
+ [types_1.AvatarIconSeverity.Error]: Icon_1.IconColor.ErrorDefault,
26
+ [types_1.AvatarIconSeverity.Warning]: Icon_1.IconColor.WarningDefault,
34
27
  };
35
28
  //# sourceMappingURL=AvatarIcon.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.constants.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.constants.ts"],"names":[],"mappings":";;;AACA,yDAAwD;AACxD,kCAA8C;AAC9C,8CAAqE;AAErE,WAAW;AACE,QAAA,8CAA8C,GAGvD;IACF,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,qBAAqB;IACnD,CAAC,qCAAkB,CAAC,IAAI,CAAC,EAAE,eAAe;IAC1C,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,kBAAkB;IAChD,CAAC,qCAAkB,CAAC,KAAK,CAAC,EAAE,gBAAgB;IAC5C,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,kBAAkB;CACjD,CAAC;AACW,QAAA,4BAA4B,GAAqC;IAC5E,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE,EAAE,2BAA2B;CAC9D,CAAC;AACW,QAAA,iCAAiC,GAG1C;IACF,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,eAAe;IACvD,CAAC,qCAAkB,CAAC,IAAI,CAAC,EAAE,gBAAS,CAAC,WAAW;IAChD,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,cAAc;IACtD,CAAC,qCAAkB,CAAC,KAAK,CAAC,EAAE,gBAAS,CAAC,YAAY;IAClD,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,cAAc;CACvD,CAAC;AAEF,WAAW;AACE,QAAA,wBAAwB,GAEjC;IACF,IAAI,EAAE,sBAAc,CAAC,EAAE;IACvB,KAAK,EAAE,uBAAe,CAAC,MAAM;IAC7B,QAAQ,EAAE,qCAAkB,CAAC,OAAO;CACrC,CAAC","sourcesContent":["import type { AvatarIconProps } from './AvatarIcon.types';\nimport { AvatarIconSeverity } from './AvatarIcon.types';\nimport { IconSize, IconColor } from '../Icon';\nimport { AvatarIconSize, AvatarBaseShape } from '../../shared/enums';\n\n// Mappings\nexport const TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR: Record<\n AvatarIconSeverity,\n string\n> = {\n [AvatarIconSeverity.Default]: 'bg-background-muted',\n [AvatarIconSeverity.Info]: 'bg-info-muted',\n [AvatarIconSeverity.Success]: 'bg-success-muted',\n [AvatarIconSeverity.Error]: 'bg-error-muted',\n [AvatarIconSeverity.Warning]: 'bg-warning-muted',\n};\nexport const MAP_AVATARICON_SIZE_ICONSIZE: Record<AvatarIconSize, IconSize> = {\n [AvatarIconSize.Xs]: IconSize.Xs, // 16px avatar -> 12px icon\n [AvatarIconSize.Sm]: IconSize.Sm, // 24px avatar -> 16px icon\n [AvatarIconSize.Md]: IconSize.Md, // 32px avatar -> 20px icon\n [AvatarIconSize.Lg]: IconSize.Lg, // 40px avatar -> 24px icon\n [AvatarIconSize.Xl]: IconSize.Xl, // 48px avatar -> 32px icon\n};\nexport const MAP_AVATARICON_SEVERITY_ICONCOLOR: Record<\n AvatarIconSeverity,\n IconColor\n> = {\n [AvatarIconSeverity.Default]: IconColor.IconAlternative,\n [AvatarIconSeverity.Info]: IconColor.InfoDefault,\n [AvatarIconSeverity.Success]: IconColor.SuccessDefault,\n [AvatarIconSeverity.Error]: IconColor.ErrorDefault,\n [AvatarIconSeverity.Warning]: IconColor.WarningDefault,\n};\n\n// Defaults\nexport const DEFAULT_AVATARICON_PROPS: Required<\n Pick<AvatarIconProps, 'size' | 'shape' | 'severity'>\n> = {\n size: AvatarIconSize.Md,\n shape: AvatarBaseShape.Circle,\n severity: AvatarIconSeverity.Default,\n};\n"]}
1
+ {"version":3,"file":"AvatarIcon.constants.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.constants.ts"],"names":[],"mappings":";;;AAAA,uCAAiE;AACjE,kCAA8C;AAE9C,WAAW;AACE,QAAA,8CAA8C,GAGvD;IACF,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,qBAAqB;IACnD,CAAC,0BAAkB,CAAC,IAAI,CAAC,EAAE,eAAe;IAC1C,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,kBAAkB;IAChD,CAAC,0BAAkB,CAAC,KAAK,CAAC,EAAE,gBAAgB;IAC5C,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,kBAAkB;CACjD,CAAC;AACW,QAAA,4BAA4B,GAAqC;IAC5E,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,sBAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE,EAAE,2BAA2B;CAC9D,CAAC;AACW,QAAA,iCAAiC,GAG1C;IACF,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,eAAe;IACvD,CAAC,0BAAkB,CAAC,IAAI,CAAC,EAAE,gBAAS,CAAC,WAAW;IAChD,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,cAAc;IACtD,CAAC,0BAAkB,CAAC,KAAK,CAAC,EAAE,gBAAS,CAAC,YAAY;IAClD,CAAC,0BAAkB,CAAC,OAAO,CAAC,EAAE,gBAAS,CAAC,cAAc;CACvD,CAAC","sourcesContent":["import { AvatarIconSize, AvatarIconSeverity } from '../../types';\nimport { IconSize, IconColor } from '../Icon';\n\n// Mappings\nexport const TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR: Record<\n AvatarIconSeverity,\n string\n> = {\n [AvatarIconSeverity.Neutral]: 'bg-background-muted',\n [AvatarIconSeverity.Info]: 'bg-info-muted',\n [AvatarIconSeverity.Success]: 'bg-success-muted',\n [AvatarIconSeverity.Error]: 'bg-error-muted',\n [AvatarIconSeverity.Warning]: 'bg-warning-muted',\n};\nexport const MAP_AVATARICON_SIZE_ICONSIZE: Record<AvatarIconSize, IconSize> = {\n [AvatarIconSize.Xs]: IconSize.Xs, // 16px avatar -> 12px icon\n [AvatarIconSize.Sm]: IconSize.Sm, // 24px avatar -> 16px icon\n [AvatarIconSize.Md]: IconSize.Md, // 32px avatar -> 20px icon\n [AvatarIconSize.Lg]: IconSize.Lg, // 40px avatar -> 24px icon\n [AvatarIconSize.Xl]: IconSize.Xl, // 48px avatar -> 32px icon\n};\nexport const MAP_AVATARICON_SEVERITY_ICONCOLOR: Record<\n AvatarIconSeverity,\n IconColor\n> = {\n [AvatarIconSeverity.Neutral]: IconColor.IconAlternative,\n [AvatarIconSeverity.Info]: IconColor.InfoDefault,\n [AvatarIconSeverity.Success]: IconColor.SuccessDefault,\n [AvatarIconSeverity.Error]: IconColor.ErrorDefault,\n [AvatarIconSeverity.Warning]: IconColor.WarningDefault,\n};\n"]}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { AvatarIconProps } from './AvatarIcon.types';
3
- declare const AvatarIcon: ({ size, shape, severity, iconName, iconProps, twClassName, style, ...props }: AvatarIconProps) => React.JSX.Element;
4
- export default AvatarIcon;
3
+ export declare const AvatarIcon: ({ size, shape, severity, iconName, iconProps, twClassName, style, ...props }: AvatarIconProps) => React.JSX.Element;
5
4
  //# sourceMappingURL=AvatarIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAK1D,QAAA,MAAM,UAAU,iFASb,eAAe,sBAyBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"AvatarIcon.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,iFASpB,eAAe,sBAuBjB,CAAC"}
@@ -1,49 +1,24 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
6
+ exports.AvatarIcon = void 0;
30
7
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
31
- const react_1 = __importStar(require("react"));
8
+ const react_1 = __importDefault(require("react"));
9
+ const types_1 = require("../../types");
10
+ const AvatarBase_1 = require("../AvatarBase");
11
+ const Icon_1 = require("../Icon");
32
12
  const AvatarIcon_constants_1 = require("./AvatarIcon.constants");
33
- const AvatarIcon_utilities_1 = require("./AvatarIcon.utilities");
34
- const Icon_1 = __importDefault(require("../Icon"));
35
- const AvatarBase_1 = __importDefault(require("../../primitives/AvatarBase"));
36
- const AvatarIcon = ({ size = AvatarIcon_constants_1.DEFAULT_AVATARICON_PROPS.size, shape = AvatarIcon_constants_1.DEFAULT_AVATARICON_PROPS.shape, severity = AvatarIcon_constants_1.DEFAULT_AVATARICON_PROPS.severity, iconName, iconProps, twClassName = '', style, ...props }) => {
13
+ const AvatarIcon = ({ size = types_1.AvatarIconSize.Md, shape = types_1.AvatarBaseShape.Circle, severity = types_1.AvatarIconSeverity.Neutral, iconName, iconProps, twClassName = '', style, ...props }) => {
37
14
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
38
- const twContainerClassNames = (0, react_1.useMemo)(() => {
39
- return (0, AvatarIcon_utilities_1.generateAvatarIconContainerClassNames)({
40
- severity,
41
- twClassName,
42
- });
43
- }, [severity, twClassName]);
44
- return (<AvatarBase_1.default size={size} shape={shape} style={[tw `${twContainerClassNames}`, style]} accessibilityRole="image" {...props}>
45
- <Icon_1.default name={iconName} size={AvatarIcon_constants_1.MAP_AVATARICON_SIZE_ICONSIZE[size]} color={AvatarIcon_constants_1.MAP_AVATARICON_SEVERITY_ICONCOLOR[severity]} {...iconProps}/>
46
- </AvatarBase_1.default>);
15
+ const twContainerClassNames = `
16
+ ${AvatarIcon_constants_1.TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR[severity]}
17
+ ${twClassName}
18
+ `;
19
+ return (<AvatarBase_1.AvatarBase size={size} shape={shape} style={[tw `${twContainerClassNames}`, style]} accessibilityRole="image" {...props}>
20
+ <Icon_1.Icon name={iconName} size={AvatarIcon_constants_1.MAP_AVATARICON_SIZE_ICONSIZE[size]} color={AvatarIcon_constants_1.MAP_AVATARICON_SEVERITY_ICONCOLOR[severity]} {...iconProps}/>
21
+ </AvatarBase_1.AvatarBase>);
47
22
  };
48
- exports.default = AvatarIcon;
23
+ exports.AvatarIcon = AvatarIcon;
49
24
  //# sourceMappingURL=AvatarIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAiE;AACjE,8FAA4E;AAC5E,+CAAuC;AAEvC,iEAIgC;AAEhC,iEAA+E;AAC/E,mDAA0C;AAC1C,6EAAqD;AAErD,MAAM,UAAU,GAAG,CAAC,EAClB,IAAI,GAAG,+CAAwB,CAAC,IAAI,EACpC,KAAK,GAAG,+CAAwB,CAAC,KAAK,EACtC,QAAQ,GAAG,+CAAwB,CAAC,QAAQ,EAC5C,QAAQ,EACR,SAAS,EACT,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACzC,OAAO,IAAA,4DAAqC,EAAC;YAC3C,QAAQ;YACR,WAAW;SACZ,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAE5B,OAAO,CACL,CAAC,oBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAC7C,iBAAiB,CAAC,OAAO,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,cAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,mDAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,KAAK,CAAC,CAAC,wDAAiC,CAAC,QAAQ,CAAC,CAAC,CACnD,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,oBAAU,CAAC,CACd,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 } from 'react';\n\nimport {\n DEFAULT_AVATARICON_PROPS,\n MAP_AVATARICON_SIZE_ICONSIZE,\n MAP_AVATARICON_SEVERITY_ICONCOLOR,\n} from './AvatarIcon.constants';\nimport type { AvatarIconProps } from './AvatarIcon.types';\nimport { generateAvatarIconContainerClassNames } from './AvatarIcon.utilities';\nimport Icon, { IconProps } from '../Icon';\nimport AvatarBase from '../../primitives/AvatarBase';\n\nconst AvatarIcon = ({\n size = DEFAULT_AVATARICON_PROPS.size,\n shape = DEFAULT_AVATARICON_PROPS.shape,\n severity = DEFAULT_AVATARICON_PROPS.severity,\n iconName,\n iconProps,\n twClassName = '',\n style,\n ...props\n}: AvatarIconProps) => {\n const tw = useTailwind();\n const twContainerClassNames = useMemo(() => {\n return generateAvatarIconContainerClassNames({\n severity,\n twClassName,\n });\n }, [severity, twClassName]);\n\n return (\n <AvatarBase\n size={size}\n shape={shape}\n style={[tw`${twContainerClassNames}`, style]}\n accessibilityRole=\"image\"\n {...props}\n >\n <Icon\n name={iconName}\n size={MAP_AVATARICON_SIZE_ICONSIZE[size]}\n color={MAP_AVATARICON_SEVERITY_ICONCOLOR[severity]}\n {...iconProps}\n />\n </AvatarBase>\n );\n};\n\nexport default AvatarIcon;\n"]}
1
+ {"version":3,"file":"AvatarIcon.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAE1B,uCAIqB;AACrB,8CAA2C;AAC3C,kCAA+B;AAE/B,iEAIgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,KAAK,GAAG,uBAAe,CAAC,MAAM,EAC9B,QAAQ,GAAG,0BAAkB,CAAC,OAAO,EACrC,QAAQ,EACR,SAAS,EACT,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG;MAC1B,qEAA8C,CAAC,QAAQ,CAAC;MACxD,WAAW;GACd,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAC7C,iBAAiB,CAAC,OAAO,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,mDAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,KAAK,CAAC,CAAC,wDAAiC,CAAC,QAAQ,CAAC,CAAC,CACnD,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,UAAU,cAgCrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport {\n AvatarIconSize,\n AvatarBaseShape,\n AvatarIconSeverity,\n} from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { Icon } from '../Icon';\n\nimport {\n MAP_AVATARICON_SIZE_ICONSIZE,\n MAP_AVATARICON_SEVERITY_ICONCOLOR,\n TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR,\n} from './AvatarIcon.constants';\nimport type { AvatarIconProps } from './AvatarIcon.types';\n\nexport const AvatarIcon = ({\n size = AvatarIconSize.Md,\n shape = AvatarBaseShape.Circle,\n severity = AvatarIconSeverity.Neutral,\n iconName,\n iconProps,\n twClassName = '',\n style,\n ...props\n}: AvatarIconProps) => {\n const tw = useTailwind();\n const twContainerClassNames = `\n ${TWCLASSMAP_AVATARICON_SEVERITY_BACKGROUNDCOLOR[severity]}\n ${twClassName}\n `;\n\n return (\n <AvatarBase\n size={size}\n shape={shape}\n style={[tw`${twContainerClassNames}`, style]}\n accessibilityRole=\"image\"\n {...props}\n >\n <Icon\n name={iconName}\n size={MAP_AVATARICON_SIZE_ICONSIZE[size]}\n color={MAP_AVATARICON_SEVERITY_ICONCOLOR[severity]}\n {...iconProps}\n />\n </AvatarBase>\n );\n};\n"]}
@@ -1,19 +1,14 @@
1
- import { AvatarBaseProps } from '../../primitives/AvatarBase';
2
- import { IconName, IconProps } from '../Icon';
3
- export declare enum AvatarIconSeverity {
4
- Default = "default",
5
- Info = "info",
6
- Success = "success",
7
- Error = "error",
8
- Warning = "warning"
9
- }
1
+ import type { AvatarIconSeverity } from '../../types';
2
+ import type { AvatarBaseProps } from '../AvatarBase';
3
+ import type { IconName, IconProps } from '../Icon';
10
4
  /**
11
5
  * AvatarIcon component props.
12
6
  */
13
7
  export type AvatarIconProps = {
14
8
  /**
15
9
  * Optional prop to control the severity of the avatar
16
- * @default AvatarIconSeverity.Default
10
+ *
11
+ * @default AvatarIconSeverity.Neutral
17
12
  */
18
13
  severity?: AvatarIconSeverity;
19
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9C,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACrC,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"AvatarIcon.types.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACrC,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC,CAAC"}
@@ -1,12 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AvatarIconSeverity = void 0;
4
- var AvatarIconSeverity;
5
- (function (AvatarIconSeverity) {
6
- AvatarIconSeverity["Default"] = "default";
7
- AvatarIconSeverity["Info"] = "info";
8
- AvatarIconSeverity["Success"] = "success";
9
- AvatarIconSeverity["Error"] = "error";
10
- AvatarIconSeverity["Warning"] = "warning";
11
- })(AvatarIconSeverity || (exports.AvatarIconSeverity = AvatarIconSeverity = {}));
12
3
  //# sourceMappingURL=AvatarIcon.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarIcon.types.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B","sourcesContent":["import { AvatarBaseProps } from '../../primitives/AvatarBase';\nimport { IconName, IconProps } from '../Icon';\n\nexport enum AvatarIconSeverity {\n Default = 'default',\n Info = 'info',\n Success = 'success',\n Error = 'error',\n Warning = 'warning',\n}\n\n/**\n * AvatarIcon component props.\n */\nexport type AvatarIconProps = {\n /**\n * Optional prop to control the severity of the avatar\n * @default AvatarIconSeverity.Default\n */\n severity?: AvatarIconSeverity;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Omit<IconProps, 'name'>;\n} & Omit<AvatarBaseProps, 'children' | 'fallbackText' | 'fallbackTextProps'>;\n"]}
1
+ {"version":3,"file":"AvatarIcon.types.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/AvatarIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarIconSeverity } from '../../types';\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type { IconName, IconProps } from '../Icon';\n\n/**\n * AvatarIcon component props.\n */\nexport type AvatarIconProps = {\n /**\n * Optional prop to control the severity of the avatar\n *\n * @default AvatarIconSeverity.Neutral\n */\n severity?: AvatarIconSeverity;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Omit<IconProps, 'name'>;\n} & Omit<AvatarBaseProps, 'children' | 'fallbackText' | 'fallbackTextProps'>;\n"]}
@@ -1,5 +1,4 @@
1
- export { default } from './AvatarIcon';
1
+ export { AvatarIconSize, AvatarIconSeverity } from '../../types';
2
+ export { AvatarIcon } from './AvatarIcon';
2
3
  export type { AvatarIconProps } from './AvatarIcon.types';
3
- export { AvatarIconSize } from '../../shared/enums';
4
- export { AvatarIconSeverity } from './AvatarIcon.types';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,13 +1,9 @@
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.AvatarIconSeverity = exports.AvatarIconSize = exports.default = void 0;
3
+ exports.AvatarIcon = exports.AvatarIconSeverity = exports.AvatarIconSize = void 0;
4
+ var types_1 = require("../../types");
5
+ Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return types_1.AvatarIconSize; } });
6
+ Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return types_1.AvatarIconSeverity; } });
7
7
  var AvatarIcon_1 = require("./AvatarIcon");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AvatarIcon_1).default; } });
9
- var enums_1 = require("../../shared/enums");
10
- Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return enums_1.AvatarIconSize; } });
11
- var AvatarIcon_types_1 = require("./AvatarIcon.types");
12
- Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return AvatarIcon_types_1.AvatarIconSeverity; } });
8
+ Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return AvatarIcon_1.AvatarIcon; } });
13
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAuC;AAA9B,sHAAA,OAAO,OAAA;AAEhB,4CAAoD;AAA3C,uGAAA,cAAc,OAAA;AACvB,uDAAwD;AAA/C,sHAAA,kBAAkB,OAAA","sourcesContent":["export { default } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon.types';\nexport { AvatarIconSize } from '../../shared/enums';\nexport { AvatarIconSeverity } from './AvatarIcon.types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AvatarIcon/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiE;AAAxD,uGAAA,cAAc,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAC3C,2CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { AvatarIconSize, AvatarIconSeverity } from '../../types';\nexport { AvatarIcon } from './AvatarIcon';\nexport type { AvatarIconProps } from './AvatarIcon.types';\n"]}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { AvatarNetworkProps } from './AvatarNetwork.types';
3
- declare const AvatarNetwork: ({ size, shape, fallbackText, fallbackTextProps, twClassName, testID, style, width, height, name, imageProps, onImageError, onSvgError, ...restImageOrSvgProps }: AvatarNetworkProps) => React.JSX.Element;
4
- export default AvatarNetwork;
3
+ export declare const AvatarNetwork: ({ src, size, name, fallbackText, fallbackTextProps, twClassName, imageOrSvgProps, ...props }: AvatarNetworkProps) => React.JSX.Element;
5
4
  //# sourceMappingURL=AvatarNetwork.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarNetwork.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,QAAA,MAAM,aAAa,oKAehB,kBAAkB,sBAuCpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AvatarNetwork.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,iGASvB,kBAAkB,sBAyCpB,CAAC"}