@metamask/design-system-react-native 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/dist/components/AvatarAccount/AvatarAccount.cjs +10 -9
  3. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs +9 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts +2 -0
  7. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts +2 -0
  9. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs +8 -0
  11. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs.map +1 -1
  12. package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
  13. package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
  14. package/dist/components/AvatarAccount/AvatarAccount.mjs +5 -4
  15. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  16. package/dist/components/AvatarAccount/AvatarAccount.types.cjs.map +1 -1
  17. package/dist/components/AvatarAccount/AvatarAccount.types.d.cts +2 -12
  18. package/dist/components/AvatarAccount/AvatarAccount.types.d.cts.map +1 -1
  19. package/dist/components/AvatarAccount/AvatarAccount.types.d.mts +2 -12
  20. package/dist/components/AvatarAccount/AvatarAccount.types.d.mts.map +1 -1
  21. package/dist/components/AvatarAccount/AvatarAccount.types.mjs.map +1 -1
  22. package/dist/components/AvatarAccount/index.cjs +3 -3
  23. package/dist/components/AvatarAccount/index.cjs.map +1 -1
  24. package/dist/components/AvatarAccount/index.d.cts +1 -1
  25. package/dist/components/AvatarAccount/index.d.cts.map +1 -1
  26. package/dist/components/AvatarAccount/index.d.mts +1 -1
  27. package/dist/components/AvatarAccount/index.d.mts.map +1 -1
  28. package/dist/components/AvatarAccount/index.mjs +1 -1
  29. package/dist/components/AvatarAccount/index.mjs.map +1 -1
  30. package/dist/components/AvatarBase/AvatarBase.cjs +3 -3
  31. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  32. package/dist/components/AvatarBase/AvatarBase.constants.cjs +21 -21
  33. package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
  34. package/dist/components/AvatarBase/AvatarBase.constants.d.cts +1 -1
  35. package/dist/components/AvatarBase/AvatarBase.constants.d.cts.map +1 -1
  36. package/dist/components/AvatarBase/AvatarBase.constants.d.mts +1 -1
  37. package/dist/components/AvatarBase/AvatarBase.constants.d.mts.map +1 -1
  38. package/dist/components/AvatarBase/AvatarBase.constants.mjs +1 -1
  39. package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
  40. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  41. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  42. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  43. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  44. package/dist/components/AvatarBase/AvatarBase.types.cjs.map +1 -1
  45. package/dist/components/AvatarBase/AvatarBase.types.d.cts +3 -39
  46. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  47. package/dist/components/AvatarBase/AvatarBase.types.d.mts +3 -39
  48. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  49. package/dist/components/AvatarBase/AvatarBase.types.mjs.map +1 -1
  50. package/dist/components/AvatarBase/index.cjs +3 -3
  51. package/dist/components/AvatarBase/index.cjs.map +1 -1
  52. package/dist/components/AvatarBase/index.d.cts +1 -1
  53. package/dist/components/AvatarBase/index.d.cts.map +1 -1
  54. package/dist/components/AvatarBase/index.d.mts +1 -1
  55. package/dist/components/AvatarBase/index.d.mts.map +1 -1
  56. package/dist/components/AvatarBase/index.mjs +1 -1
  57. package/dist/components/AvatarBase/index.mjs.map +1 -1
  58. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -1
  59. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  60. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  61. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  62. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -1
  63. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  64. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -1
  65. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  66. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  67. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  68. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -1
  69. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  70. package/dist/components/AvatarToken/AvatarToken.cjs +3 -3
  71. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  72. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  73. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  74. package/dist/components/AvatarToken/AvatarToken.mjs +1 -1
  75. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  76. package/dist/components/AvatarToken/AvatarToken.types.cjs.map +1 -1
  77. package/dist/components/AvatarToken/AvatarToken.types.d.cts +5 -7
  78. package/dist/components/AvatarToken/AvatarToken.types.d.cts.map +1 -1
  79. package/dist/components/AvatarToken/AvatarToken.types.d.mts +5 -7
  80. package/dist/components/AvatarToken/AvatarToken.types.d.mts.map +1 -1
  81. package/dist/components/AvatarToken/AvatarToken.types.mjs.map +1 -1
  82. package/dist/components/AvatarToken/index.cjs +2 -2
  83. package/dist/components/AvatarToken/index.cjs.map +1 -1
  84. package/dist/components/AvatarToken/index.d.cts +1 -1
  85. package/dist/components/AvatarToken/index.d.cts.map +1 -1
  86. package/dist/components/AvatarToken/index.d.mts +1 -1
  87. package/dist/components/AvatarToken/index.d.mts.map +1 -1
  88. package/dist/components/AvatarToken/index.mjs +1 -1
  89. package/dist/components/AvatarToken/index.mjs.map +1 -1
  90. package/dist/components/BottomSheet/BottomSheet.cjs +7 -10
  91. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  92. package/dist/components/BottomSheet/BottomSheet.d.cts +31 -2
  93. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  94. package/dist/components/BottomSheet/BottomSheet.d.mts +31 -2
  95. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  96. package/dist/components/BottomSheet/BottomSheet.mjs +6 -6
  97. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  98. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -1
  99. package/dist/components/BottomSheet/BottomSheet.types.d.cts +3 -8
  100. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -1
  101. package/dist/components/BottomSheet/BottomSheet.types.d.mts +3 -8
  102. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -1
  103. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -1
  104. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +3 -3
  105. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  106. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +31 -2
  107. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  108. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +31 -2
  109. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  110. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +2 -3
  111. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  112. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  113. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +7 -0
  114. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  115. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +7 -0
  116. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  117. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  118. package/dist/components/BottomSheetDialog/index.cjs +2 -5
  119. package/dist/components/BottomSheetDialog/index.cjs.map +1 -1
  120. package/dist/components/BottomSheetDialog/index.d.cts +1 -1
  121. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -1
  122. package/dist/components/BottomSheetDialog/index.d.mts +1 -1
  123. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -1
  124. package/dist/components/BottomSheetDialog/index.mjs +1 -1
  125. package/dist/components/BottomSheetDialog/index.mjs.map +1 -1
  126. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +2 -2
  127. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -1
  128. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +2 -2
  129. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -1
  130. package/dist/components/BoxHorizontal/BoxHorizontal.cjs +18 -0
  131. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +1 -0
  132. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +7 -0
  133. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +1 -0
  134. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +7 -0
  135. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +1 -0
  136. package/dist/components/BoxHorizontal/BoxHorizontal.mjs +18 -0
  137. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +1 -0
  138. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs +3 -0
  139. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +1 -0
  140. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +13 -0
  141. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +1 -0
  142. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +13 -0
  143. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +1 -0
  144. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +2 -0
  145. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +1 -0
  146. package/dist/components/BoxHorizontal/index.cjs +6 -0
  147. package/dist/components/BoxHorizontal/index.cjs.map +1 -0
  148. package/dist/components/BoxHorizontal/index.d.cts +3 -0
  149. package/dist/components/BoxHorizontal/index.d.cts.map +1 -0
  150. package/dist/components/BoxHorizontal/index.d.mts +3 -0
  151. package/dist/components/BoxHorizontal/index.d.mts.map +1 -0
  152. package/dist/components/BoxHorizontal/index.mjs +2 -0
  153. package/dist/components/BoxHorizontal/index.mjs.map +1 -0
  154. package/dist/components/BoxVertical/BoxVertical.cjs +18 -0
  155. package/dist/components/BoxVertical/BoxVertical.cjs.map +1 -0
  156. package/dist/components/BoxVertical/BoxVertical.d.cts +7 -0
  157. package/dist/components/BoxVertical/BoxVertical.d.cts.map +1 -0
  158. package/dist/components/BoxVertical/BoxVertical.d.mts +7 -0
  159. package/dist/components/BoxVertical/BoxVertical.d.mts.map +1 -0
  160. package/dist/components/BoxVertical/BoxVertical.mjs +18 -0
  161. package/dist/components/BoxVertical/BoxVertical.mjs.map +1 -0
  162. package/dist/components/BoxVertical/BoxVertical.types.cjs +3 -0
  163. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +1 -0
  164. package/dist/components/BoxVertical/BoxVertical.types.d.cts +13 -0
  165. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +1 -0
  166. package/dist/components/BoxVertical/BoxVertical.types.d.mts +13 -0
  167. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +1 -0
  168. package/dist/components/BoxVertical/BoxVertical.types.mjs +2 -0
  169. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +1 -0
  170. package/dist/components/BoxVertical/index.cjs +6 -0
  171. package/dist/components/BoxVertical/index.cjs.map +1 -0
  172. package/dist/components/BoxVertical/index.d.cts +3 -0
  173. package/dist/components/BoxVertical/index.d.cts.map +1 -0
  174. package/dist/components/BoxVertical/index.d.mts +3 -0
  175. package/dist/components/BoxVertical/index.d.mts.map +1 -0
  176. package/dist/components/BoxVertical/index.mjs +2 -0
  177. package/dist/components/BoxVertical/index.mjs.map +1 -0
  178. package/dist/components/HeaderRoot/HeaderRoot.cjs +61 -0
  179. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -0
  180. package/dist/components/HeaderRoot/HeaderRoot.d.cts +7 -0
  181. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -0
  182. package/dist/components/HeaderRoot/HeaderRoot.d.mts +7 -0
  183. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -0
  184. package/dist/components/HeaderRoot/HeaderRoot.mjs +61 -0
  185. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -0
  186. package/dist/components/HeaderRoot/HeaderRoot.types.cjs +3 -0
  187. package/dist/components/HeaderRoot/HeaderRoot.types.cjs.map +1 -0
  188. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +60 -0
  189. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -0
  190. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +60 -0
  191. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -0
  192. package/dist/components/HeaderRoot/HeaderRoot.types.mjs +2 -0
  193. package/dist/components/HeaderRoot/HeaderRoot.types.mjs.map +1 -0
  194. package/dist/components/HeaderRoot/index.cjs +6 -0
  195. package/dist/components/HeaderRoot/index.cjs.map +1 -0
  196. package/dist/components/HeaderRoot/index.d.cts +3 -0
  197. package/dist/components/HeaderRoot/index.d.cts.map +1 -0
  198. package/dist/components/HeaderRoot/index.d.mts +3 -0
  199. package/dist/components/HeaderRoot/index.d.mts.map +1 -0
  200. package/dist/components/HeaderRoot/index.mjs +2 -0
  201. package/dist/components/HeaderRoot/index.mjs.map +1 -0
  202. package/dist/components/HeaderStandard/HeaderStandard.cjs +101 -0
  203. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -0
  204. package/dist/components/HeaderStandard/HeaderStandard.d.cts +4 -0
  205. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -0
  206. package/dist/components/HeaderStandard/HeaderStandard.d.mts +4 -0
  207. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -0
  208. package/dist/components/HeaderStandard/HeaderStandard.mjs +81 -0
  209. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -0
  210. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +8 -0
  211. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -0
  212. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +55 -0
  213. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -0
  214. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +55 -0
  215. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -0
  216. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +10 -0
  217. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -0
  218. package/dist/components/HeaderStandard/index.cjs +6 -0
  219. package/dist/components/HeaderStandard/index.cjs.map +1 -0
  220. package/dist/components/HeaderStandard/index.d.cts +3 -0
  221. package/dist/components/HeaderStandard/index.d.cts.map +1 -0
  222. package/dist/components/HeaderStandard/index.d.mts +3 -0
  223. package/dist/components/HeaderStandard/index.d.mts.map +1 -0
  224. package/dist/components/HeaderStandard/index.mjs +2 -0
  225. package/dist/components/HeaderStandard/index.mjs.map +1 -0
  226. package/dist/components/Icon/Icon.assets.cjs +2 -0
  227. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  228. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  229. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  230. package/dist/components/Icon/Icon.assets.mjs +2 -0
  231. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  232. package/dist/components/Icon/Icon.cjs +2 -1
  233. package/dist/components/Icon/Icon.cjs.map +1 -1
  234. package/dist/components/Icon/Icon.constants.cjs +12 -0
  235. package/dist/components/Icon/Icon.constants.cjs.map +1 -0
  236. package/dist/components/Icon/Icon.constants.d.cts +3 -0
  237. package/dist/components/Icon/Icon.constants.d.cts.map +1 -0
  238. package/dist/components/Icon/Icon.constants.d.mts +3 -0
  239. package/dist/components/Icon/Icon.constants.d.mts.map +1 -0
  240. package/dist/components/Icon/Icon.constants.mjs +9 -0
  241. package/dist/components/Icon/Icon.constants.mjs.map +1 -0
  242. package/dist/components/Icon/Icon.d.cts.map +1 -1
  243. package/dist/components/Icon/Icon.d.mts.map +1 -1
  244. package/dist/components/Icon/Icon.mjs +2 -1
  245. package/dist/components/Icon/Icon.mjs.map +1 -1
  246. package/dist/components/Icon/assets/no-photography.svg +1 -0
  247. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +2 -1
  248. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +1 -1
  249. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +1 -2
  250. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +1 -1
  251. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +1 -2
  252. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +1 -1
  253. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +1 -2
  254. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +1 -1
  255. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +2 -1
  256. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +1 -1
  257. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +1 -2
  258. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +1 -1
  259. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +1 -2
  260. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +1 -1
  261. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +1 -2
  262. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +1 -1
  263. package/dist/components/KeyValueRow/KeyValueRow.cjs +17 -17
  264. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  265. package/dist/components/KeyValueRow/KeyValueRow.d.cts +1 -2
  266. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  267. package/dist/components/KeyValueRow/KeyValueRow.d.mts +1 -2
  268. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  269. package/dist/components/KeyValueRow/KeyValueRow.mjs +4 -5
  270. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  271. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +2 -1
  272. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +1 -1
  273. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +1 -2
  274. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +1 -1
  275. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +1 -2
  276. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +1 -1
  277. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +1 -2
  278. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +1 -1
  279. package/dist/components/KeyValueRow/index.cjs +2 -5
  280. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  281. package/dist/components/KeyValueRow/index.d.cts +1 -1
  282. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  283. package/dist/components/KeyValueRow/index.d.mts +1 -1
  284. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  285. package/dist/components/KeyValueRow/index.mjs +1 -1
  286. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  287. package/dist/components/Skeleton/Skeleton.cjs +2 -1
  288. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  289. package/dist/components/Skeleton/Skeleton.d.cts +1 -2
  290. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -1
  291. package/dist/components/Skeleton/Skeleton.d.mts +1 -2
  292. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -1
  293. package/dist/components/Skeleton/Skeleton.mjs +1 -2
  294. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  295. package/dist/components/Skeleton/index.cjs +1 -4
  296. package/dist/components/Skeleton/index.cjs.map +1 -1
  297. package/dist/components/Skeleton/index.d.cts +1 -1
  298. package/dist/components/Skeleton/index.d.cts.map +1 -1
  299. package/dist/components/Skeleton/index.d.mts +1 -1
  300. package/dist/components/Skeleton/index.d.mts.map +1 -1
  301. package/dist/components/Skeleton/index.mjs +1 -1
  302. package/dist/components/Skeleton/index.mjs.map +1 -1
  303. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +45 -0
  304. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -0
  305. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +14 -0
  306. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -0
  307. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +14 -0
  308. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -0
  309. package/dist/components/TextFieldSearch/TextFieldSearch.mjs +26 -0
  310. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -0
  311. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs +3 -0
  312. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -0
  313. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +17 -0
  314. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -0
  315. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +17 -0
  316. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -0
  317. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs +2 -0
  318. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -0
  319. package/dist/components/TextFieldSearch/index.cjs +6 -0
  320. package/dist/components/TextFieldSearch/index.cjs.map +1 -0
  321. package/dist/components/TextFieldSearch/index.d.cts +3 -0
  322. package/dist/components/TextFieldSearch/index.d.cts.map +1 -0
  323. package/dist/components/TextFieldSearch/index.d.mts +3 -0
  324. package/dist/components/TextFieldSearch/index.d.mts.map +1 -0
  325. package/dist/components/TextFieldSearch/index.mjs +2 -0
  326. package/dist/components/TextFieldSearch/index.mjs.map +1 -0
  327. package/dist/components/Toast/Toast.cjs +2 -2
  328. package/dist/components/Toast/Toast.cjs.map +1 -1
  329. package/dist/components/Toast/Toast.d.cts +1 -2
  330. package/dist/components/Toast/Toast.d.cts.map +1 -1
  331. package/dist/components/Toast/Toast.d.mts +1 -2
  332. package/dist/components/Toast/Toast.d.mts.map +1 -1
  333. package/dist/components/Toast/Toast.mjs +1 -2
  334. package/dist/components/Toast/Toast.mjs.map +1 -1
  335. package/dist/components/Toast/index.cjs +1 -4
  336. package/dist/components/Toast/index.cjs.map +1 -1
  337. package/dist/components/Toast/index.d.cts +1 -1
  338. package/dist/components/Toast/index.d.cts.map +1 -1
  339. package/dist/components/Toast/index.d.mts +1 -1
  340. package/dist/components/Toast/index.d.mts.map +1 -1
  341. package/dist/components/Toast/index.mjs +1 -1
  342. package/dist/components/Toast/index.mjs.map +1 -1
  343. package/dist/components/index.cjs +14 -6
  344. package/dist/components/index.cjs.map +1 -1
  345. package/dist/components/index.d.cts +11 -1
  346. package/dist/components/index.d.cts.map +1 -1
  347. package/dist/components/index.d.mts +11 -1
  348. package/dist/components/index.d.mts.map +1 -1
  349. package/dist/components/index.mjs +6 -1
  350. package/dist/components/index.mjs.map +1 -1
  351. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
  352. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +2 -5
  353. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts.map +1 -1
  354. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +2 -5
  355. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts.map +1 -1
  356. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
  357. package/dist/types/index.cjs +20 -55
  358. package/dist/types/index.cjs.map +1 -1
  359. package/dist/types/index.d.cts +12 -59
  360. package/dist/types/index.d.cts.map +1 -1
  361. package/dist/types/index.d.mts +12 -59
  362. package/dist/types/index.d.mts.map +1 -1
  363. package/dist/types/index.mjs +12 -62
  364. package/dist/types/index.mjs.map +1 -1
  365. package/package.json +5 -5
@@ -4,11 +4,11 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { AvatarBaseSize, AvatarBaseShape } from "@metamask/design-system-shared";
7
8
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
9
  import $React from "react";
9
10
  const React = $importDefault($React);
10
11
  import { View } from "react-native/index.js";
11
- import { AvatarBaseSize, AvatarBaseShape } from "../../types/index.mjs";
12
12
  import { Text, TextColor, TextVariant, FontWeight } from "../Text/index.mjs";
13
13
  import { TWCLASSMAP_AVATARBASE_SIZE_DIMENSION, TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION, TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE, TWCLASSMAP_AVATARBASE_SIZE_BORDER } from "./AvatarBase.constants.mjs";
14
14
  export const AvatarBase = ({ children, size = AvatarBaseSize.Md, shape = AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName, style, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AAC9D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,0BAAgB;AAEnE,OAAO,EACL,oCAAoC,EACpC,8CAA8C,EAC9C,+CAA+C,EAC/C,iCAAiC,EAClC,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,GAAG,eAAe,CAAC,MAAM,EAC9B,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,wDAAwD,EACxD,KAAK,KAAK,eAAe,CAAC,MAAM;gBAC9B,CAAC,CAAC,cAAc;gBAChB,CAAC,CAAC,+CAA+C,CAAC,IAAI,CAAC,EACzD,SAAS;gBACP,CAAC,CAAC,8CAA8C,CAAC,IAAI,CAAC;gBACtD,CAAC,CAAC,oCAAoC,CAAC,IAAI,CAAC,EAC9C,SAAS,IAAI,iCAAiC,CAAC,IAAI,CAAC,EACpD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,IAAI,CACH,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAC3B,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,iBAAiB,CAAC,CACtB,WAAW,CAAC,CAAC,aAAa,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAE7G;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport { Text, TextColor, TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_AVATARBASE_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE,\n TWCLASSMAP_AVATARBASE_SIZE_BORDER,\n} from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\n\nexport const AvatarBase = ({\n children,\n size = AvatarBaseSize.Md,\n shape = AvatarBaseShape.Circle,\n fallbackText,\n fallbackTextProps,\n hasBorder = false,\n twClassName,\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n\n return (\n <View\n {...props}\n style={[\n tw.style(\n 'items-center justify-center overflow-hidden bg-section',\n shape === AvatarBaseShape.Circle\n ? 'rounded-full'\n : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size],\n hasBorder\n ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size]\n : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size],\n hasBorder && TWCLASSMAP_AVATARBASE_SIZE_BORDER[size],\n twClassName,\n ),\n style,\n ]}\n >\n {fallbackText ? (\n <Text\n color={TextColor.TextMuted}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n {...fallbackTextProps}\n twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarBase.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,cAAc,EACd,eAAe,EAChB,uCAAuC;AACxC,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,0BAAgB;AAEnE,OAAO,EACL,oCAAoC,EACpC,8CAA8C,EAC9C,+CAA+C,EAC/C,iCAAiC,EAClC,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,GAAG,eAAe,CAAC,MAAM,EAC9B,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,wDAAwD,EACxD,KAAK,KAAK,eAAe,CAAC,MAAM;gBAC9B,CAAC,CAAC,cAAc;gBAChB,CAAC,CAAC,+CAA+C,CAAC,IAAI,CAAC,EACzD,SAAS;gBACP,CAAC,CAAC,8CAA8C,CAAC,IAAI,CAAC;gBACtD,CAAC,CAAC,oCAAoC,CAAC,IAAI,CAAC,EAC9C,SAAS,IAAI,iCAAiC,CAAC,IAAI,CAAC,EACpD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,IAAI,CACH,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAC3B,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,iBAAiB,CAAC,CACtB,WAAW,CAAC,CAAC,aAAa,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAE7G;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n AvatarBaseSize,\n AvatarBaseShape,\n} from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { Text, TextColor, TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_AVATARBASE_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE,\n TWCLASSMAP_AVATARBASE_SIZE_BORDER,\n} from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\n\nexport const AvatarBase = ({\n children,\n size = AvatarBaseSize.Md,\n shape = AvatarBaseShape.Circle,\n fallbackText,\n fallbackTextProps,\n hasBorder = false,\n twClassName,\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n\n return (\n <View\n {...props}\n style={[\n tw.style(\n 'items-center justify-center overflow-hidden bg-section',\n shape === AvatarBaseShape.Circle\n ? 'rounded-full'\n : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size],\n hasBorder\n ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size]\n : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size],\n hasBorder && TWCLASSMAP_AVATARBASE_SIZE_BORDER[size],\n twClassName,\n ),\n style,\n ]}\n >\n {fallbackText ? (\n <Text\n color={TextColor.TextMuted}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n {...fallbackTextProps}\n twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport type { TextProps } from '../Text';\n\n/**\n * AvatarBase component props.\n */\nexport type AvatarBaseProps = {\n /**\n * Required prop for the content to be rendered within the AvatarBase\n */\n children?: React.ReactNode;\n /**\n * Optional prop to control the size of the AvatarBase\n * Possible values:\n * AvatarBaseSize.Xs (16px),\n * - AvatarBaseSize.Sm (24px),\n * - AvatarBaseSize.Md (32px).\n * - AvatarBaseSize.Lg (40px),\n * - AvatarBaseSize.Xl (48px),\n *\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional prop to control the shape of the AvatarBase\n * Possible values:\n * - AvatarBaseShape.Circle\n * - AvatarBaseShape.Square\n *\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n /**\n * Optional text to be rendered when the content fails to render\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the fallbackText when the content\n * fails to render\n */\n fallbackTextProps?: Omit<TextProps, 'children'>;\n /**\n * Optional prop to include the border with the Avatar.\n * For internal use only\n *\n * @default false\n */\n hasBorder?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"AvatarBase.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBasePropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextProps } from '../Text';\n\n/**\n * AvatarBase component props.\n */\nexport type AvatarBaseProps = AvatarBasePropsShared &\n Omit<ViewProps, 'children'> & {\n /**\n * Optional props to be passed to the fallbackText when the content\n * fails to render\n */\n fallbackTextProps?: Omit<TextProps, 'children'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n };\n"]}
@@ -1,51 +1,15 @@
1
+ import type { AvatarBasePropsShared } from "@metamask/design-system-shared";
1
2
  import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { AvatarBaseSize, AvatarBaseShape } from "../../types/index.cjs";
3
3
  import type { TextProps } from "../Text/index.cjs";
4
4
  /**
5
5
  * AvatarBase component props.
6
6
  */
7
- export type AvatarBaseProps = {
8
- /**
9
- * Required prop for the content to be rendered within the AvatarBase
10
- */
11
- children?: React.ReactNode;
12
- /**
13
- * Optional prop to control the size of the AvatarBase
14
- * Possible values:
15
- * AvatarBaseSize.Xs (16px),
16
- * - AvatarBaseSize.Sm (24px),
17
- * - AvatarBaseSize.Md (32px).
18
- * - AvatarBaseSize.Lg (40px),
19
- * - AvatarBaseSize.Xl (48px),
20
- *
21
- * @default AvatarBaseSize.Md
22
- */
23
- size?: AvatarBaseSize;
24
- /**
25
- * Optional prop to control the shape of the AvatarBase
26
- * Possible values:
27
- * - AvatarBaseShape.Circle
28
- * - AvatarBaseShape.Square
29
- *
30
- * @default AvatarBaseShape.Circle
31
- */
32
- shape?: AvatarBaseShape;
33
- /**
34
- * Optional text to be rendered when the content fails to render
35
- */
36
- fallbackText?: string;
7
+ export type AvatarBaseProps = AvatarBasePropsShared & Omit<ViewProps, 'children'> & {
37
8
  /**
38
9
  * Optional props to be passed to the fallbackText when the content
39
10
  * fails to render
40
11
  */
41
12
  fallbackTextProps?: Omit<TextProps, 'children'>;
42
- /**
43
- * Optional prop to include the border with the Avatar.
44
- * For internal use only
45
- *
46
- * @default false
47
- */
48
- hasBorder?: boolean;
49
13
  /**
50
14
  * Optional prop to add twrnc overriding classNames.
51
15
  */
@@ -54,5 +18,5 @@ export type AvatarBaseProps = {
54
18
  * Optional prop to control the style.
55
19
  */
56
20
  style?: StyleProp<ViewStyle>;
57
- } & ViewProps;
21
+ };
58
22
  //# sourceMappingURL=AvatarBase.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"AvatarBase.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uCAAuC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
@@ -1,51 +1,15 @@
1
+ import type { AvatarBasePropsShared } from "@metamask/design-system-shared";
1
2
  import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { AvatarBaseSize, AvatarBaseShape } from "../../types/index.mjs";
3
3
  import type { TextProps } from "../Text/index.mjs";
4
4
  /**
5
5
  * AvatarBase component props.
6
6
  */
7
- export type AvatarBaseProps = {
8
- /**
9
- * Required prop for the content to be rendered within the AvatarBase
10
- */
11
- children?: React.ReactNode;
12
- /**
13
- * Optional prop to control the size of the AvatarBase
14
- * Possible values:
15
- * AvatarBaseSize.Xs (16px),
16
- * - AvatarBaseSize.Sm (24px),
17
- * - AvatarBaseSize.Md (32px).
18
- * - AvatarBaseSize.Lg (40px),
19
- * - AvatarBaseSize.Xl (48px),
20
- *
21
- * @default AvatarBaseSize.Md
22
- */
23
- size?: AvatarBaseSize;
24
- /**
25
- * Optional prop to control the shape of the AvatarBase
26
- * Possible values:
27
- * - AvatarBaseShape.Circle
28
- * - AvatarBaseShape.Square
29
- *
30
- * @default AvatarBaseShape.Circle
31
- */
32
- shape?: AvatarBaseShape;
33
- /**
34
- * Optional text to be rendered when the content fails to render
35
- */
36
- fallbackText?: string;
7
+ export type AvatarBaseProps = AvatarBasePropsShared & Omit<ViewProps, 'children'> & {
37
8
  /**
38
9
  * Optional props to be passed to the fallbackText when the content
39
10
  * fails to render
40
11
  */
41
12
  fallbackTextProps?: Omit<TextProps, 'children'>;
42
- /**
43
- * Optional prop to include the border with the Avatar.
44
- * For internal use only
45
- *
46
- * @default false
47
- */
48
- hasBorder?: boolean;
49
13
  /**
50
14
  * Optional prop to add twrnc overriding classNames.
51
15
  */
@@ -54,5 +18,5 @@ export type AvatarBaseProps = {
54
18
  * Optional prop to control the style.
55
19
  */
56
20
  style?: StyleProp<ViewStyle>;
57
- } & ViewProps;
21
+ };
58
22
  //# sourceMappingURL=AvatarBase.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"AvatarBase.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uCAAuC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GACjD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport type { TextProps } from '../Text';\n\n/**\n * AvatarBase component props.\n */\nexport type AvatarBaseProps = {\n /**\n * Required prop for the content to be rendered within the AvatarBase\n */\n children?: React.ReactNode;\n /**\n * Optional prop to control the size of the AvatarBase\n * Possible values:\n * AvatarBaseSize.Xs (16px),\n * - AvatarBaseSize.Sm (24px),\n * - AvatarBaseSize.Md (32px).\n * - AvatarBaseSize.Lg (40px),\n * - AvatarBaseSize.Xl (48px),\n *\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional prop to control the shape of the AvatarBase\n * Possible values:\n * - AvatarBaseShape.Circle\n * - AvatarBaseShape.Square\n *\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n /**\n * Optional text to be rendered when the content fails to render\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the fallbackText when the content\n * fails to render\n */\n fallbackTextProps?: Omit<TextProps, 'children'>;\n /**\n * Optional prop to include the border with the Avatar.\n * For internal use only\n *\n * @default false\n */\n hasBorder?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"AvatarBase.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBasePropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { TextProps } from '../Text';\n\n/**\n * AvatarBase component props.\n */\nexport type AvatarBaseProps = AvatarBasePropsShared &\n Omit<ViewProps, 'children'> & {\n /**\n * Optional props to be passed to the fallbackText when the content\n * fails to render\n */\n fallbackTextProps?: Omit<TextProps, 'children'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n };\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AvatarBase = exports.AvatarBaseShape = exports.AvatarBaseSize = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return types_1.AvatarBaseSize; } });
6
- Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return types_1.AvatarBaseShape; } });
4
+ var design_system_shared_1 = require("@metamask/design-system-shared");
5
+ Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return design_system_shared_1.AvatarBaseSize; } });
6
+ Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return design_system_shared_1.AvatarBaseShape; } });
7
7
  var AvatarBase_1 = require("./AvatarBase.cjs");
8
8
  Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return AvatarBase_1.AvatarBase; } });
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":";;;AAAA,+CAA8D;AAArD,uGAAA,cAAc,OAAA;AAAE,wGAAA,eAAe,OAAA;AACxC,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { AvatarBaseSize, AvatarBaseShape } from '../../types';\nexport { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":";;;AAAA,uEAGwC;AAFtC,sHAAA,cAAc,OAAA;AACd,uHAAA,eAAe,OAAA;AAGjB,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export {\n AvatarBaseSize,\n AvatarBaseShape,\n} from '@metamask/design-system-shared';\n\nexport { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { AvatarBaseSize, AvatarBaseShape } from "../../types/index.cjs";
1
+ export { AvatarBaseSize, AvatarBaseShape, } from "@metamask/design-system-shared";
2
2
  export { AvatarBase } from "./AvatarBase.cjs";
3
3
  export type { AvatarBaseProps } from "./AvatarBase.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AAC9D,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,GAChB,uCAAuC;AAExC,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,4 +1,4 @@
1
- export { AvatarBaseSize, AvatarBaseShape } from "../../types/index.mjs";
1
+ export { AvatarBaseSize, AvatarBaseShape, } from "@metamask/design-system-shared";
2
2
  export { AvatarBase } from "./AvatarBase.mjs";
3
3
  export type { AvatarBaseProps } from "./AvatarBase.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AAC9D,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,GAChB,uCAAuC;AAExC,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,3 +1,3 @@
1
- export { AvatarBaseSize, AvatarBaseShape } from "../../types/index.mjs";
1
+ export { AvatarBaseSize, AvatarBaseShape } from "@metamask/design-system-shared";
2
2
  export { AvatarBase } from "./AvatarBase.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,8BAAoB;AAC9D,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { AvatarBaseSize, AvatarBaseShape } from '../../types';\nexport { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EAChB,uCAAuC;AAExC,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export {\n AvatarBaseSize,\n AvatarBaseShape,\n} from '@metamask/design-system-shared';\n\nexport { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\n"]}
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.AvatarFavicon = void 0;
27
+ const design_system_shared_1 = require("@metamask/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
29
  const types_1 = require("../../types/index.cjs");
29
30
  const AvatarBase_1 = require("../AvatarBase/index.cjs");
@@ -39,7 +40,7 @@ const AvatarFavicon = ({ src, size = types_1.AvatarFaviconSize.Md, name, fallbac
39
40
  setFallbackText(backupFallbackText);
40
41
  imageOrSvgProps?.onSvgError?.(e);
41
42
  };
42
- return (<AvatarBase_1.AvatarBase size={size} shape={types_1.AvatarBaseShape.Circle} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
43
+ return (<AvatarBase_1.AvatarBase size={size} shape={design_system_shared_1.AvatarBaseShape.Circle} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
43
44
  {src && (<ImageOrSvg_1.ImageOrSvg src={src} width={'100%'} height={'100%'} {...imageOrSvgProps} imageProps={{
44
45
  resizeMode: 'contain',
45
46
  ...imageOrSvgProps?.imageProps,
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarFavicon.cjs","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,iDAAiE;AACjE,wDAA2C;AAC3C,wEAA2D;AAIpD,MAAM,aAAa,GAAG,CAAC,EAC5B,GAAG,EACH,IAAI,GAAG,yBAAiB,CAAC,EAAE,EAC3B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IAElE,MAAM,kBAAkB,GAAG,YAAY,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,mBAAmB,GAAG,CAC1B,CAA4C,EAC5C,EAAE;QACF,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;QACrC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,uBAAe,CAAC,MAAM,CAAC,CAC9B,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,GAAG,IAAI,CACN,CAAC,uBAAU,CACT,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,aAAa,iBAgDxB","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarFaviconSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = ({\n src,\n size = AvatarFaviconSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarFaviconProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarFavicon.cjs","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAiE;AACjE,+CAAwC;AAGxC,iDAAgD;AAChD,wDAA2C;AAC3C,wEAA2D;AAIpD,MAAM,aAAa,GAAG,CAAC,EAC5B,GAAG,EACH,IAAI,GAAG,yBAAiB,CAAC,EAAE,EAC3B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAS,EAAE,CAAC,CAAC;IAElE,MAAM,kBAAkB,GAAG,YAAY,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,mBAAmB,GAAG,CAC1B,CAA4C,EAC5C,EAAE;QACF,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;QACrC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,sCAAe,CAAC,MAAM,CAAC,CAC9B,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,GAAG,IAAI,CACN,CAAC,uBAAU,CACT,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,aAAa,iBAgDxB","sourcesContent":["import { AvatarBaseShape } from '@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarFaviconSize } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = ({\n src,\n size = AvatarFaviconSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarFaviconProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarFavicon.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
1
+ {"version":3,"file":"AvatarFavicon.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarFavicon.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
1
+ {"version":3,"file":"AvatarFavicon.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
@@ -4,9 +4,10 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { AvatarBaseShape } from "@metamask/design-system-shared";
7
8
  import $React, { useState } from "react";
8
9
  const React = $importDefault($React);
9
- import { AvatarFaviconSize, AvatarBaseShape } from "../../types/index.mjs";
10
+ import { AvatarFaviconSize } from "../../types/index.mjs";
10
11
  import { AvatarBase } from "../AvatarBase/index.mjs";
11
12
  import { ImageOrSvg } from "../temp-components/ImageOrSvg/index.mjs";
12
13
  export const AvatarFavicon = ({ src, size = AvatarFaviconSize.Md, name, fallbackText, fallbackTextProps, imageOrSvgProps, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarFavicon.mjs","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,8BAAoB;AACjE,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,UAAU,EAAE,gDAAsC;AAI3D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,GAAG,EACH,IAAI,GAAG,iBAAiB,CAAC,EAAE,EAC3B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAElE,MAAM,kBAAkB,GAAG,YAAY,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,mBAAmB,GAAG,CAC1B,CAA4C,EAC5C,EAAE;QACF,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;QACrC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAC9B,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,GAAG,IAAI,CACN,CAAC,UAAU,CACT,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarFaviconSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = ({\n src,\n size = AvatarFaviconSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarFaviconProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarFavicon.mjs","sourceRoot":"","sources":["../../../src/components/AvatarFavicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,uCAAuC;AACjE,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,iBAAiB,EAAE,8BAAoB;AAChD,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,UAAU,EAAE,gDAAsC;AAI3D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,GAAG,EACH,IAAI,GAAG,iBAAiB,CAAC,EAAE,EAC3B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,GAAG,KAAK,EACW,EAAE,EAAE;IACvB,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAElE,MAAM,kBAAkB,GAAG,YAAY,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,mBAAmB,GAAG,CAC1B,CAA4C,EAC5C,EAAE;QACF,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;QACrC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACpC,eAAe,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAC9B,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,GAAG,IAAI,CACN,CAAC,UAAU,CACT,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,KAAK,CAAC,CAAC,MAAM,CAAC,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { AvatarBaseShape } from '@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarFaviconSize } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = ({\n src,\n size = AvatarFaviconSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarFaviconProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.AvatarNetwork = void 0;
27
+ const design_system_shared_1 = require("@metamask/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
29
  const types_1 = require("../../types/index.cjs");
29
30
  const AvatarBase_1 = require("../AvatarBase/index.cjs");
@@ -39,7 +40,7 @@ const AvatarNetwork = ({ src, size = types_1.AvatarNetworkSize.Md, name, fallbac
39
40
  setFallbackText(backupFallbackText);
40
41
  imageOrSvgProps?.onSvgError?.(e);
41
42
  };
42
- return (<AvatarBase_1.AvatarBase size={size} shape={types_1.AvatarBaseShape.Square} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
43
+ return (<AvatarBase_1.AvatarBase size={size} shape={design_system_shared_1.AvatarBaseShape.Square} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
43
44
  {src && (<ImageOrSvg_1.ImageOrSvg src={src} width={'100%'} height={'100%'} {...imageOrSvgProps} imageProps={{
44
45
  resizeMode: 'contain',
45
46
  ...imageOrSvgProps?.imageProps,
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarNetwork.cjs","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,iDA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C,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,aAAa,iBAgDxB","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarNetworkSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = ({\n src,\n size = AvatarNetworkSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarNetworkProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Square}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarNetwork.cjs","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAiE;AACjE,+CAAwC;AAGxC,iDAAgD;AAChD,wDAA2C;AAC3C,wEAA2D;AAIpD,MAAM,aA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;IAAA,EAAE,uBAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,aAAa,iBAgDxB","sourcesContent":["import { AvatarBaseShape } from '@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarNetworkSize } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = ({\n src,\n size = AvatarNetworkSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarNetworkProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Square}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarNetwork.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
1
+ {"version":3,"file":"AvatarNetwork.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarNetwork.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
1
+ {"version":3,"file":"AvatarNetwork.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,oFAQvB,kBAAkB,sBAwCpB,CAAC"}
@@ -4,9 +4,10 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { AvatarBaseShape } from "@metamask/design-system-shared";
7
8
  import $React, { useState } from "react";
8
9
  const React = $importDefault($React);
9
- import { AvatarNetworkSize, AvatarBaseShape } from "../../types/index.mjs";
10
+ import { AvatarNetworkSize } from "../../types/index.mjs";
10
11
  import { AvatarBase } from "../AvatarBase/index.mjs";
11
12
  import { ImageOrSvg } from "../temp-components/ImageOrSvg/index.mjs";
12
13
  export const AvatarNetwork = ({ src, size = AvatarNetworkSize.Md, name, fallbackText, fallbackTextProps, imageOrSvgProps, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarNetwork.mjs","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,Q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B,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarNetworkSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = ({\n src,\n size = AvatarNetworkSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarNetworkProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Square}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarNetwork.mjs","sourceRoot":"","sources":["../../../src/components/AvatarNetwork/AvatarNetwork.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EA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ACf,IAAI,eAAe,CAAC,CACpB,UAAU,CAAC,CAAC;gBACV,UAAU,EAAE,SAAS;gBACrB,GAAG,eAAe,EAAE,UAAU;aAC/B,CAAC,CACF,YAAY,CAAC,CAAC,mBAAmB,CAAC,CAClC,UAAU,CAAC,CAAC,iBAAiB,CAAC,EAC9B,CACH,CACH;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { AvatarBaseShape } from '@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarNetworkSize } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarNetworkProps } from './AvatarNetwork.types';\n\nexport const AvatarNetwork = ({\n src,\n size = AvatarNetworkSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarNetworkProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Square}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.AvatarToken = void 0;
27
+ const design_system_shared_1 = require("@metamask/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
- const types_1 = require("../../types/index.cjs");
29
29
  const AvatarBase_1 = require("../AvatarBase/index.cjs");
30
30
  const ImageOrSvg_1 = require("../temp-components/ImageOrSvg/index.cjs");
31
- const AvatarToken = ({ src, size = types_1.AvatarTokenSize.Md, name, fallbackText, fallbackTextProps, imageOrSvgProps, ...props }) => {
31
+ const AvatarToken = ({ src, size = design_system_shared_1.AvatarTokenSize.Md, name, fallbackText, fallbackTextProps, imageOrSvgProps, ...props }) => {
32
32
  const [finalFallbackText, setFallbackText] = (0, react_1.useState)('');
33
33
  const backupFallbackText = fallbackText || name?.[0] || '';
34
34
  const onImageErrorHandler = (e) => {
@@ -39,7 +39,7 @@ const AvatarToken = ({ src, size = types_1.AvatarTokenSize.Md, name, fallbackTex
39
39
  setFallbackText(backupFallbackText);
40
40
  imageOrSvgProps?.onSvgError?.(e);
41
41
  };
42
- return (<AvatarBase_1.AvatarBase size={size} shape={types_1.AvatarBaseShape.Circle} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
42
+ return (<AvatarBase_1.AvatarBase size={size} shape={design_system_shared_1.AvatarBaseShape.Circle} fallbackText={finalFallbackText} fallbackTextProps={fallbackTextProps} {...props}>
43
43
  {src && (<ImageOrSvg_1.ImageOrSvg src={src} width={'100%'} height={'100%'} {...imageOrSvgProps} imageProps={{
44
44
  resizeMode: 'contain',
45
45
  ...imageOrSvgProps?.imageProps,
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.cjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,iDAA+D;AAC/D,wDAA2C;AAC3C,wEAA2D;AAIpD,MAAM,WAAW,GAAG,CAAC,EAC1B,GAAG,EACH,IAAI,GA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AAC,CAAC;AAhDW,QAAA,WAAW,eAgDtB","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarTokenSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = ({\n src,\n size = AvatarTokenSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarTokenProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarToken.cjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAGwC;AACxC,+CAAwC;AAGxC,wDAA2C;AAC3C,wEAA2D;AAIpD,MAAM,WAAW,GAAG,CAAC,EAC1B,GAAG,EACH,IAAI,GAAG,sCAAe,CAAC,EAAE,EACzB,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,GAAG,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'@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = ({\n src,\n size = AvatarTokenSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarTokenProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,oFAQrB,gBAAgB,sBAwClB,CAAC"}
1
+ {"version":3,"file":"AvatarToken.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,cAAc;AAMxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,oFAQrB,gBAAgB,sBAwClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAOxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,oFAQrB,gBAAgB,sBAwClB,CAAC"}
1
+ {"version":3,"file":"AvatarToken.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,cAAc;AAMxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,oFAQrB,gBAAgB,sBAwClB,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { AvatarBaseShape, AvatarTokenSize } from "@metamask/design-system-shared";
7
8
  import $React, { useState } from "react";
8
9
  const React = $importDefault($React);
9
- import { AvatarTokenSize, AvatarBaseShape } from "../../types/index.mjs";
10
10
  import { AvatarBase } from "../AvatarBase/index.mjs";
11
11
  import { ImageOrSvg } from "../temp-components/ImageOrSvg/index.mjs";
12
12
  export const AvatarToken = ({ src, size = AvatarTokenSize.Md, name, fallbackText, fallbackTextProps, imageOrSvgProps, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.mjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,8BAAoB;AAC/D,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,UAAU,EAAE,gDAAsC;AAI3D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1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;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarTokenSize, AvatarBaseShape } from '../../types';\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = ({\n src,\n size = AvatarTokenSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarTokenProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarToken.mjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,eAAe,EACf,eAAe,EAChB,uCAAuC;AACxC,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,UAAU,EAAE,gDAAsC;AAI3D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,GAAG,EACH,IAAI,GAAG,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ent":["import {\n AvatarBaseShape,\n AvatarTokenSize,\n} from '@metamask/design-system-shared';\nimport React, { useState } from 'react';\nimport type { ImageErrorEventData, NativeSyntheticEvent } from 'react-native';\n\nimport { AvatarBase } from '../AvatarBase';\nimport { ImageOrSvg } from '../temp-components/ImageOrSvg';\n\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = ({\n src,\n size = AvatarTokenSize.Md,\n name,\n fallbackText,\n fallbackTextProps,\n imageOrSvgProps,\n ...props\n}: AvatarTokenProps) => {\n const [finalFallbackText, setFallbackText] = useState<string>('');\n\n const backupFallbackText = fallbackText || name?.[0] || '';\n const onImageErrorHandler = (\n e: NativeSyntheticEvent<ImageErrorEventData>,\n ) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onImageError?.(e);\n };\n\n const onSvgErrorHandler = (e: Error) => {\n setFallbackText(backupFallbackText);\n imageOrSvgProps?.onSvgError?.(e);\n };\n\n return (\n <AvatarBase\n size={size}\n shape={AvatarBaseShape.Circle}\n fallbackText={finalFallbackText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <ImageOrSvg\n src={src}\n width={'100%'}\n height={'100%'}\n {...imageOrSvgProps}\n imageProps={{\n resizeMode: 'contain',\n ...imageOrSvgProps?.imageProps,\n }}\n onImageError={onImageErrorHandler}\n onSvgError={onSvgErrorHandler}\n />\n )}\n </AvatarBase>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBaseProps } from '../AvatarBase';\nimport type {\n ImageOrSvgProps,\n ImageOrSvgSrc,\n} from '../temp-components/ImageOrSvg';\n\n/**\n * AvatarToken component props.\n */\nexport type AvatarTokenProps = {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional props for token name, to be used to calculate the fallbackText.\n */\n name?: string;\n /**\n * Optional prop to pass to the underlying ImageOrSvg element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageOrSvgProps?: Partial<ImageOrSvgProps>;\n} & Omit<AvatarBaseProps, 'children'>;\n"]}
1
+ {"version":3,"file":"AvatarToken.types.cjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarTokenPropsShared } from '@metamask/design-system-shared';\n\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type {\n ImageOrSvgProps,\n ImageOrSvgSrc,\n} from '../temp-components/ImageOrSvg';\n\n/**\n * AvatarToken component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns\n */\nexport type AvatarTokenProps = AvatarTokenPropsShared &\n Omit<AvatarBaseProps, 'children'> & {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional prop to pass to the underlying ImageOrSvg element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageOrSvgProps?: Partial<ImageOrSvgProps>;\n };\n"]}
@@ -1,21 +1,19 @@
1
+ import type { AvatarTokenPropsShared } from "@metamask/design-system-shared";
1
2
  import type { AvatarBaseProps } from "../AvatarBase/index.cjs";
2
3
  import type { ImageOrSvgProps, ImageOrSvgSrc } from "../temp-components/ImageOrSvg/index.cjs";
3
4
  /**
4
- * AvatarToken component props.
5
+ * AvatarToken component props (React Native platform-specific)
6
+ * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns
5
7
  */
6
- export type AvatarTokenProps = {
8
+ export type AvatarTokenProps = AvatarTokenPropsShared & Omit<AvatarBaseProps, 'children'> & {
7
9
  /**
8
10
  * Optional prop for the source of the image or SVG.
9
11
  */
10
12
  src?: ImageOrSvgSrc;
11
- /**
12
- * Optional props for token name, to be used to calculate the fallbackText.
13
- */
14
- name?: string;
15
13
  /**
16
14
  * Optional prop to pass to the underlying ImageOrSvg element
17
15
  * Useful for overriding the default alt text which is the dapp name
18
16
  */
19
17
  imageOrSvgProps?: Partial<ImageOrSvgProps>;
20
- } & Omit<AvatarBaseProps, 'children'>;
18
+ };
21
19
  //# sourceMappingURL=AvatarToken.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,gDAAsC;AAEvC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5C,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"AvatarToken.types.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAuC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,gDAAsC;AAEvC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACnD,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IAClC;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5C,CAAC"}
@@ -1,21 +1,19 @@
1
+ import type { AvatarTokenPropsShared } from "@metamask/design-system-shared";
1
2
  import type { AvatarBaseProps } from "../AvatarBase/index.mjs";
2
3
  import type { ImageOrSvgProps, ImageOrSvgSrc } from "../temp-components/ImageOrSvg/index.mjs";
3
4
  /**
4
- * AvatarToken component props.
5
+ * AvatarToken component props (React Native platform-specific)
6
+ * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns
5
7
  */
6
- export type AvatarTokenProps = {
8
+ export type AvatarTokenProps = AvatarTokenPropsShared & Omit<AvatarBaseProps, 'children'> & {
7
9
  /**
8
10
  * Optional prop for the source of the image or SVG.
9
11
  */
10
12
  src?: ImageOrSvgSrc;
11
- /**
12
- * Optional props for token name, to be used to calculate the fallbackText.
13
- */
14
- name?: string;
15
13
  /**
16
14
  * Optional prop to pass to the underlying ImageOrSvg element
17
15
  * Useful for overriding the default alt text which is the dapp name
18
16
  */
19
17
  imageOrSvgProps?: Partial<ImageOrSvgProps>;
20
- } & Omit<AvatarBaseProps, 'children'>;
18
+ };
21
19
  //# sourceMappingURL=AvatarToken.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,gDAAsC;AAEvC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5C,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"AvatarToken.types.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAuC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,gDAAsC;AAEvC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACnD,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IAClC;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarToken.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarBaseProps } from '../AvatarBase';\nimport type {\n ImageOrSvgProps,\n ImageOrSvgSrc,\n} from '../temp-components/ImageOrSvg';\n\n/**\n * AvatarToken component props.\n */\nexport type AvatarTokenProps = {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional props for token name, to be used to calculate the fallbackText.\n */\n name?: string;\n /**\n * Optional prop to pass to the underlying ImageOrSvg element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageOrSvgProps?: Partial<ImageOrSvgProps>;\n} & Omit<AvatarBaseProps, 'children'>;\n"]}
1
+ {"version":3,"file":"AvatarToken.types.mjs","sourceRoot":"","sources":["../../../src/components/AvatarToken/AvatarToken.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarTokenPropsShared } from '@metamask/design-system-shared';\n\nimport type { AvatarBaseProps } from '../AvatarBase';\nimport type {\n ImageOrSvgProps,\n ImageOrSvgSrc,\n} from '../temp-components/ImageOrSvg';\n\n/**\n * AvatarToken component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns\n */\nexport type AvatarTokenProps = AvatarTokenPropsShared &\n Omit<AvatarBaseProps, 'children'> & {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional prop to pass to the underlying ImageOrSvg element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageOrSvgProps?: Partial<ImageOrSvgProps>;\n };\n"]}