@metamask-previews/design-system-react-native 0.24.0-preview.178e60f → 0.26.0-preview.047f96c

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 (507) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +1 -1
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -1
  4. package/dist/components/ActionListItem/ActionListItem.mjs +1 -1
  5. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -1
  6. package/dist/components/ActionListItem/ActionListItem.types.d.cts +1 -1
  7. package/dist/components/ActionListItem/ActionListItem.types.d.cts.map +1 -1
  8. package/dist/components/ActionListItem/ActionListItem.types.d.mts +1 -1
  9. package/dist/components/ActionListItem/ActionListItem.types.d.mts.map +1 -1
  10. package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
  11. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  12. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  13. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  14. package/dist/components/AvatarBase/AvatarBase.types.d.cts +1 -1
  15. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  16. package/dist/components/AvatarBase/AvatarBase.types.d.mts +1 -1
  17. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  18. package/dist/components/AvatarGroup/AvatarGroup.cjs +1 -1
  19. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  20. package/dist/components/AvatarGroup/AvatarGroup.mjs +1 -1
  21. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  22. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +1 -1
  23. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
  24. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +1 -1
  25. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
  26. package/dist/components/BadgeCount/BadgeCount.cjs +1 -1
  27. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  28. package/dist/components/BadgeCount/BadgeCount.mjs +1 -1
  29. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  30. package/dist/components/BadgeCount/BadgeCount.types.d.cts +1 -1
  31. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  32. package/dist/components/BadgeCount/BadgeCount.types.d.mts +1 -1
  33. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  34. package/dist/components/BadgeIcon/BadgeIcon.cjs +1 -1
  35. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  36. package/dist/components/BadgeIcon/BadgeIcon.mjs +1 -1
  37. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  38. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +1 -1
  39. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  40. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +1 -1
  41. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  42. package/dist/components/BadgeStatus/BadgeStatus.cjs +1 -1
  43. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  44. package/dist/components/BadgeStatus/BadgeStatus.mjs +1 -1
  45. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  46. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +1 -1
  47. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  48. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +1 -1
  49. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  50. package/dist/components/BadgeWrapper/BadgeWrapper.cjs +1 -1
  51. package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
  52. package/dist/components/BadgeWrapper/BadgeWrapper.mjs +1 -1
  53. package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
  54. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts +1 -1
  55. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.cts.map +1 -1
  56. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts +1 -1
  57. package/dist/components/BadgeWrapper/BadgeWrapper.types.d.mts.map +1 -1
  58. package/dist/components/BannerBase/BannerBase.types.d.cts +1 -1
  59. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -1
  60. package/dist/components/BannerBase/BannerBase.types.d.mts +1 -1
  61. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -1
  62. package/dist/components/BottomSheet/BottomSheet.cjs +6 -6
  63. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  64. package/dist/components/BottomSheet/BottomSheet.d.cts +0 -35
  65. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  66. package/dist/components/BottomSheet/BottomSheet.d.mts +0 -35
  67. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  68. package/dist/components/BottomSheet/BottomSheet.mjs +6 -6
  69. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +28 -17
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +0 -35
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +0 -35
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +30 -19
  77. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  79. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +1 -9
  80. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  81. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +1 -9
  82. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  83. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  84. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +1 -1
  85. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
  86. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +1 -1
  87. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
  88. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +1 -1
  89. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -1
  90. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +1 -1
  91. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -1
  92. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +1 -1
  93. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
  94. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +1 -1
  95. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -1
  96. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +1 -1
  97. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -1
  98. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +1 -1
  99. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -1
  100. package/dist/components/Box/Box.cjs +1 -1
  101. package/dist/components/Box/Box.cjs.map +1 -1
  102. package/dist/components/Box/Box.d.cts +1 -1
  103. package/dist/components/Box/Box.d.cts.map +1 -1
  104. package/dist/components/Box/Box.d.mts +1 -1
  105. package/dist/components/Box/Box.d.mts.map +1 -1
  106. package/dist/components/Box/Box.mjs +1 -1
  107. package/dist/components/Box/Box.mjs.map +1 -1
  108. package/dist/components/Box/Box.types.d.cts +1 -1
  109. package/dist/components/Box/Box.types.d.cts.map +1 -1
  110. package/dist/components/Box/Box.types.d.mts +1 -1
  111. package/dist/components/Box/Box.types.d.mts.map +1 -1
  112. package/dist/components/ButtonBase/ButtonBase.types.d.cts +1 -2
  113. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  114. package/dist/components/ButtonBase/ButtonBase.types.d.mts +1 -2
  115. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  116. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +1 -1
  117. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  118. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +1 -1
  119. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  120. package/dist/components/Card/Card.cjs +2 -2
  121. package/dist/components/Card/Card.cjs.map +1 -1
  122. package/dist/components/Card/Card.mjs +2 -2
  123. package/dist/components/Card/Card.mjs.map +1 -1
  124. package/dist/components/Card/Card.types.cjs.map +1 -1
  125. package/dist/components/Card/Card.types.d.cts +2 -2
  126. package/dist/components/Card/Card.types.d.cts.map +1 -1
  127. package/dist/components/Card/Card.types.d.mts +2 -2
  128. package/dist/components/Card/Card.types.d.mts.map +1 -1
  129. package/dist/components/Card/Card.types.mjs.map +1 -1
  130. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  131. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  132. package/dist/components/Checkbox/Checkbox.d.cts +1 -1
  133. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  134. package/dist/components/Checkbox/Checkbox.d.mts +1 -1
  135. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  136. package/dist/components/Checkbox/Checkbox.mjs +1 -1
  137. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  138. package/dist/components/Checkbox/Checkbox.types.d.cts +1 -1
  139. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  140. package/dist/components/Checkbox/Checkbox.types.d.mts +1 -1
  141. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  142. package/dist/components/HeaderBase/HeaderBase.cjs +1 -1
  143. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  144. package/dist/components/HeaderBase/HeaderBase.mjs +1 -1
  145. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  146. package/dist/components/HeaderBase/HeaderBase.types.d.cts +1 -1
  147. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  148. package/dist/components/HeaderBase/HeaderBase.types.d.mts +1 -1
  149. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  150. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +1 -1
  151. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -1
  152. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +1 -1
  153. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -1
  154. package/dist/components/Icon/assets/telegram.svg +1 -3
  155. package/dist/components/Input/Input.cjs +1 -1
  156. package/dist/components/Input/Input.cjs.map +1 -1
  157. package/dist/components/Input/Input.d.cts +1 -2
  158. package/dist/components/Input/Input.d.cts.map +1 -1
  159. package/dist/components/Input/Input.d.mts +1 -2
  160. package/dist/components/Input/Input.d.mts.map +1 -1
  161. package/dist/components/Input/Input.mjs +1 -1
  162. package/dist/components/Input/Input.mjs.map +1 -1
  163. package/dist/components/Input/Input.types.d.cts +1 -1
  164. package/dist/components/Input/Input.types.d.cts.map +1 -1
  165. package/dist/components/Input/Input.types.d.mts +1 -1
  166. package/dist/components/Input/Input.types.d.mts.map +1 -1
  167. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +1 -1
  168. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -1
  169. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +1 -1
  170. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -1
  171. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +1 -1
  172. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  173. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +1 -1
  174. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  175. package/dist/components/ListItem/ListItem.cjs +1 -1
  176. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  177. package/dist/components/ListItem/ListItem.mjs +1 -1
  178. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  179. package/dist/components/ListItem/ListItem.types.d.cts +1 -1
  180. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  181. package/dist/components/ListItem/ListItem.types.d.mts +1 -1
  182. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  183. package/dist/components/MainActionButton/MainActionButton.types.d.cts +1 -1
  184. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -1
  185. package/dist/components/MainActionButton/MainActionButton.types.d.mts +1 -1
  186. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -1
  187. package/dist/components/RadioButton/RadioButton.cjs +1 -1
  188. package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
  189. package/dist/components/RadioButton/RadioButton.mjs +1 -1
  190. package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
  191. package/dist/components/RadioButton/RadioButton.types.d.cts +1 -2
  192. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -1
  193. package/dist/components/RadioButton/RadioButton.types.d.mts +1 -2
  194. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -1
  195. package/dist/components/SectionDivider/SectionDivider.cjs +47 -0
  196. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -0
  197. package/dist/components/SectionDivider/SectionDivider.d.cts +6 -0
  198. package/dist/components/SectionDivider/SectionDivider.d.cts.map +1 -0
  199. package/dist/components/SectionDivider/SectionDivider.d.mts +6 -0
  200. package/dist/components/SectionDivider/SectionDivider.d.mts.map +1 -0
  201. package/dist/components/SectionDivider/SectionDivider.mjs +28 -0
  202. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -0
  203. package/dist/components/SectionDivider/SectionDivider.types.cjs +3 -0
  204. package/dist/components/SectionDivider/SectionDivider.types.cjs.map +1 -0
  205. package/dist/components/SectionDivider/SectionDivider.types.d.cts +3 -0
  206. package/dist/components/SectionDivider/SectionDivider.types.d.cts.map +1 -0
  207. package/dist/components/SectionDivider/SectionDivider.types.d.mts +3 -0
  208. package/dist/components/SectionDivider/SectionDivider.types.d.mts.map +1 -0
  209. package/dist/components/SectionDivider/SectionDivider.types.mjs +2 -0
  210. package/dist/components/SectionDivider/SectionDivider.types.mjs.map +1 -0
  211. package/dist/components/SectionDivider/index.cjs +6 -0
  212. package/dist/components/SectionDivider/index.cjs.map +1 -0
  213. package/dist/components/SectionDivider/index.d.cts +3 -0
  214. package/dist/components/SectionDivider/index.d.cts.map +1 -0
  215. package/dist/components/SectionDivider/index.d.mts +3 -0
  216. package/dist/components/SectionDivider/index.d.mts.map +1 -0
  217. package/dist/components/SectionDivider/index.mjs +2 -0
  218. package/dist/components/SectionDivider/index.mjs.map +1 -0
  219. package/dist/components/SectionHeader/SectionHeader.cjs +45 -0
  220. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -0
  221. package/dist/components/SectionHeader/SectionHeader.d.cts +23 -0
  222. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -0
  223. package/dist/components/SectionHeader/SectionHeader.d.mts +23 -0
  224. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -0
  225. package/dist/components/SectionHeader/SectionHeader.mjs +45 -0
  226. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -0
  227. package/dist/components/SectionHeader/SectionHeader.types.cjs +3 -0
  228. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -0
  229. package/dist/components/SectionHeader/SectionHeader.types.d.cts +32 -0
  230. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  231. package/dist/components/SectionHeader/SectionHeader.types.d.mts +32 -0
  232. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  233. package/dist/components/SectionHeader/SectionHeader.types.mjs +2 -0
  234. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -0
  235. package/dist/components/SectionHeader/index.cjs +6 -0
  236. package/dist/components/SectionHeader/index.cjs.map +1 -0
  237. package/dist/components/SectionHeader/index.d.cts +3 -0
  238. package/dist/components/SectionHeader/index.d.cts.map +1 -0
  239. package/dist/components/SectionHeader/index.d.mts +3 -0
  240. package/dist/components/SectionHeader/index.d.mts.map +1 -0
  241. package/dist/components/SectionHeader/index.mjs +2 -0
  242. package/dist/components/SectionHeader/index.mjs.map +1 -0
  243. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  244. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  245. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  246. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  247. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  248. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  249. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  250. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  251. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  252. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  253. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  254. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  255. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  256. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  257. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  258. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  259. package/dist/components/SegmentButton/index.cjs +8 -0
  260. package/dist/components/SegmentButton/index.cjs.map +1 -0
  261. package/dist/components/SegmentButton/index.d.cts +4 -0
  262. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  263. package/dist/components/SegmentButton/index.d.mts +4 -0
  264. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  265. package/dist/components/SegmentButton/index.mjs +3 -0
  266. package/dist/components/SegmentButton/index.mjs.map +1 -0
  267. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  268. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  269. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  270. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  271. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  272. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  273. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  274. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  275. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  276. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  277. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  278. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  279. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  280. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  281. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  282. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  283. package/dist/components/SegmentGroup/index.cjs +6 -0
  284. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  285. package/dist/components/SegmentGroup/index.d.cts +3 -0
  286. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  287. package/dist/components/SegmentGroup/index.d.mts +3 -0
  288. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  289. package/dist/components/SegmentGroup/index.mjs +2 -0
  290. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  291. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  292. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  293. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  294. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  295. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  296. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  297. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  298. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  299. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  300. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  301. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  302. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  303. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  304. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  305. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  306. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  307. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  308. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  309. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  310. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  311. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  312. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  313. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  314. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  315. package/dist/components/SelectButton/index.cjs +10 -0
  316. package/dist/components/SelectButton/index.cjs.map +1 -0
  317. package/dist/components/SelectButton/index.d.cts +4 -0
  318. package/dist/components/SelectButton/index.d.cts.map +1 -0
  319. package/dist/components/SelectButton/index.d.mts +4 -0
  320. package/dist/components/SelectButton/index.d.mts.map +1 -0
  321. package/dist/components/SelectButton/index.mjs +3 -0
  322. package/dist/components/SelectButton/index.mjs.map +1 -0
  323. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  324. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  325. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  326. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  327. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  328. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  329. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  330. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  331. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  332. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  333. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  334. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  335. package/dist/components/SensitiveText/index.cjs +3 -3
  336. package/dist/components/SensitiveText/index.cjs.map +1 -1
  337. package/dist/components/SensitiveText/index.d.cts +1 -1
  338. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  339. package/dist/components/SensitiveText/index.d.mts +1 -1
  340. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  341. package/dist/components/SensitiveText/index.mjs +1 -1
  342. package/dist/components/SensitiveText/index.mjs.map +1 -1
  343. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  344. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  345. package/dist/components/Skeleton/Skeleton.mjs +1 -1
  346. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  347. package/dist/components/Skeleton/Skeleton.types.d.cts +1 -1
  348. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -1
  349. package/dist/components/Skeleton/Skeleton.types.d.mts +1 -1
  350. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -1
  351. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +1 -1
  352. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -1
  353. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +1 -1
  354. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -1
  355. package/dist/components/Tag/Tag.types.d.cts +1 -1
  356. package/dist/components/Tag/Tag.types.d.cts.map +1 -1
  357. package/dist/components/Tag/Tag.types.d.mts +1 -1
  358. package/dist/components/Tag/Tag.types.d.mts.map +1 -1
  359. package/dist/components/Text/Text.cjs +1 -1
  360. package/dist/components/Text/Text.cjs.map +1 -1
  361. package/dist/components/Text/Text.mjs +1 -1
  362. package/dist/components/Text/Text.mjs.map +1 -1
  363. package/dist/components/Text/Text.types.d.cts +1 -1
  364. package/dist/components/Text/Text.types.d.cts.map +1 -1
  365. package/dist/components/Text/Text.types.d.mts +1 -1
  366. package/dist/components/Text/Text.types.d.mts.map +1 -1
  367. package/dist/components/TextArea/TextArea.cjs +1 -1
  368. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  369. package/dist/components/TextArea/TextArea.d.cts +20 -16
  370. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  371. package/dist/components/TextArea/TextArea.d.mts +20 -16
  372. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  373. package/dist/components/TextArea/TextArea.mjs +1 -1
  374. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  375. package/dist/components/TextArea/TextArea.types.d.cts +1 -1
  376. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  377. package/dist/components/TextArea/TextArea.types.d.mts +1 -1
  378. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  379. package/dist/components/TextButton/TextButton.types.d.cts +0 -1
  380. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  381. package/dist/components/TextButton/TextButton.types.d.mts +0 -1
  382. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  383. package/dist/components/TextField/TextField.cjs +1 -1
  384. package/dist/components/TextField/TextField.cjs.map +1 -1
  385. package/dist/components/TextField/TextField.d.cts +20 -16
  386. package/dist/components/TextField/TextField.d.cts.map +1 -1
  387. package/dist/components/TextField/TextField.d.mts +20 -16
  388. package/dist/components/TextField/TextField.d.mts.map +1 -1
  389. package/dist/components/TextField/TextField.mjs +1 -1
  390. package/dist/components/TextField/TextField.mjs.map +1 -1
  391. package/dist/components/TextField/TextField.types.d.cts +1 -1
  392. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  393. package/dist/components/TextField/TextField.types.d.mts +1 -1
  394. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  395. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +20 -15
  396. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  397. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +20 -15
  398. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  399. package/dist/components/TitleAlert/TitleAlert.cjs +54 -0
  400. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -0
  401. package/dist/components/TitleAlert/TitleAlert.d.cts +21 -0
  402. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -0
  403. package/dist/components/TitleAlert/TitleAlert.d.mts +21 -0
  404. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -0
  405. package/dist/components/TitleAlert/TitleAlert.mjs +54 -0
  406. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -0
  407. package/dist/components/TitleAlert/TitleAlert.types.cjs +3 -0
  408. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -0
  409. package/dist/components/TitleAlert/TitleAlert.types.d.cts +31 -0
  410. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  411. package/dist/components/TitleAlert/TitleAlert.types.d.mts +31 -0
  412. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  413. package/dist/components/TitleAlert/TitleAlert.types.mjs +2 -0
  414. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -0
  415. package/dist/components/TitleAlert/index.cjs +6 -0
  416. package/dist/components/TitleAlert/index.cjs.map +1 -0
  417. package/dist/components/TitleAlert/index.d.cts +3 -0
  418. package/dist/components/TitleAlert/index.d.cts.map +1 -0
  419. package/dist/components/TitleAlert/index.d.mts +3 -0
  420. package/dist/components/TitleAlert/index.d.mts.map +1 -0
  421. package/dist/components/TitleAlert/index.mjs +2 -0
  422. package/dist/components/TitleAlert/index.mjs.map +1 -0
  423. package/dist/components/TitleHub/TitleHub.types.d.cts +1 -1
  424. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  425. package/dist/components/TitleHub/TitleHub.types.d.mts +1 -1
  426. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  427. package/dist/components/TitleStandard/TitleStandard.types.d.cts +1 -1
  428. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  429. package/dist/components/TitleStandard/TitleStandard.types.d.mts +1 -1
  430. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  431. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +1 -1
  432. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  433. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +1 -1
  434. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  435. package/dist/components/Toast/Toast.types.d.cts +1 -1
  436. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  437. package/dist/components/Toast/Toast.types.d.mts +1 -1
  438. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  439. package/dist/components/Toast/Toaster.cjs +1 -1
  440. package/dist/components/Toast/Toaster.cjs.map +1 -1
  441. package/dist/components/Toast/Toaster.mjs +1 -1
  442. package/dist/components/Toast/Toaster.mjs.map +1 -1
  443. package/dist/components/index.cjs +18 -2
  444. package/dist/components/index.cjs.map +1 -1
  445. package/dist/components/index.d.cts +12 -0
  446. package/dist/components/index.d.cts.map +1 -1
  447. package/dist/components/index.d.mts +12 -0
  448. package/dist/components/index.d.mts.map +1 -1
  449. package/dist/components/index.mjs +6 -0
  450. package/dist/components/index.mjs.map +1 -1
  451. package/dist/components/temp-components/Blockies/Blockies.cjs +1 -1
  452. package/dist/components/temp-components/Blockies/Blockies.cjs.map +1 -1
  453. package/dist/components/temp-components/Blockies/Blockies.mjs +1 -1
  454. package/dist/components/temp-components/Blockies/Blockies.mjs.map +1 -1
  455. package/dist/components/temp-components/Blockies/Blockies.types.d.cts +1 -1
  456. package/dist/components/temp-components/Blockies/Blockies.types.d.cts.map +1 -1
  457. package/dist/components/temp-components/Blockies/Blockies.types.d.mts +1 -1
  458. package/dist/components/temp-components/Blockies/Blockies.types.d.mts.map +1 -1
  459. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +1 -1
  460. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  461. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +1 -1
  462. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  463. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts +1 -1
  464. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts.map +1 -1
  465. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts +1 -1
  466. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts.map +1 -1
  467. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +1 -1
  468. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
  469. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs +1 -1
  470. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
  471. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +1 -2
  472. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  473. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +1 -2
  474. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  475. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
  476. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  477. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
  478. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  479. package/dist/components/temp-components/Maskicon/Maskicon.cjs +1 -1
  480. package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
  481. package/dist/components/temp-components/Maskicon/Maskicon.mjs +1 -1
  482. package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
  483. package/dist/components/temp-components/Spinner/Spinner.cjs +1 -1
  484. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  485. package/dist/components/temp-components/Spinner/Spinner.mjs +1 -1
  486. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  487. package/dist/components/temp-components/Spinner/Spinner.types.d.cts +1 -1
  488. package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +1 -1
  489. package/dist/components/temp-components/Spinner/Spinner.types.d.mts +1 -1
  490. package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +1 -1
  491. package/dist/test-utils/createRenderer.cjs +41 -0
  492. package/dist/test-utils/createRenderer.cjs.map +1 -0
  493. package/dist/test-utils/createRenderer.d.cts +4 -0
  494. package/dist/test-utils/createRenderer.d.cts.map +1 -0
  495. package/dist/test-utils/createRenderer.d.mts +4 -0
  496. package/dist/test-utils/createRenderer.d.mts.map +1 -0
  497. package/dist/test-utils/createRenderer.mjs +18 -0
  498. package/dist/test-utils/createRenderer.mjs.map +1 -0
  499. package/package.json +19 -20
  500. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  501. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  502. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  503. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  504. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  505. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  506. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  507. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ImageOrSvg.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,wDAAqC;AACrC,uDAA0C;AAInC,MAAM,UAAU,GAAG,CAAC,EACzB,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,KAAK,EACL,UAAU,EACV,QAAQ,GACQ,EAAE,EAAE;IACpB,wCAAwC;IACxC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,GAAG,CAAC,CACZ,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,KAAK,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;KACH;IAED,yDAAyD;IACzD,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC;QACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,QAAQ,CAAC,EAAG,CAAC;KACjE;IAED,4DAA4D;IAC5D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAEnD,MAAM,mBAAmB,GA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CAAC,CACf,OAAO,CAAC,CAAC,UAAU,CAAC,CACpB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,QAAQ,CAAC,EACb,CACH,CAAC;KACH;IACD,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,GAAU,CAAC,CACnB,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,KAAK,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;AACJ,CAAC,CAAC;AAlFW,QAAA,UAAU,cAkFrB","sourcesContent":["import React, { useState, useCallback, useEffect } from 'react';\nimport { Image } from 'react-native';\nimport { SvgUri } from 'react-native-svg';\n\nimport type { ImageOrSvgProps } from './ImageOrSvg.types';\n\nexport const ImageOrSvg = ({\n src,\n width,\n height,\n onImageLoad,\n onImageError,\n onSvgError,\n style,\n imageProps,\n svgProps,\n}: ImageOrSvgProps) => {\n // CASE 1: local image (src is a number)\n if (typeof src === 'number') {\n return (\n <Image\n source={src}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n }\n\n // CASE 2: Local SVG component (src is a React component)\n if (typeof src === 'function') {\n const LocalSvg = src;\n return <LocalSvg width={width} height={height} {...svgProps} />;\n }\n\n // CASE 3: Remote image or SVG (src is an object with a uri)\n const [isSvg, setIsSvg] = useState<boolean>(false);\n\n const checkSvgContentType = useCallback(async (uri: string) => {\n try {\n const response = await fetch(uri, { method: 'HEAD' });\n // If no header is returned, fallback to an empty string.\n const contentType = response.headers.get('Content-Type') || '';\n return contentType.includes('image/svg+xml');\n } catch {\n return false;\n }\n }, []);\n\n useEffect(() => {\n if (src.uri) {\n const uriLower = src.uri.toLowerCase();\n const isLikelySvg =\n uriLower.endsWith('.svg') || uriLower.startsWith('data:image/svg+xml');\n if (!src.uri.startsWith('data:')) {\n checkSvgContentType(src.uri).then(setIsSvg);\n } else {\n setIsSvg(isLikelySvg);\n }\n } else {\n setIsSvg(false);\n }\n }, [src, checkSvgContentType]);\n\n if (isSvg && typeof src === 'object' && 'uri' in src && src.uri) {\n return (\n <SvgUri\n uri={src.uri}\n width={width}\n height={height}\n onError={onSvgError}\n style={style}\n {...svgProps}\n />\n );\n }\n return (\n <Image\n source={src as any}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"ImageOrSvg.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,+CAAqC;AACrC,uDAA0C;AAInC,MAAM,UAAU,GAAG,CAAC,EACzB,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,KAAK,EACL,UAAU,EACV,QAAQ,GACQ,EAAE,EAAE;IACpB,wCAAwC;IACxC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,GAAG,CAAC,CACZ,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,KAAK,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;KACH;IAED,yDAAyD;IACzD,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC;QACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,M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,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE;QAC/D,OAAO,CACL,CAAC,yBAAM,CACL,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CACb,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,OAAO,CAAC,CAAC,UAAU,CAAC,CACpB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,QAAQ,CAAC,EACb,CACH,CAAC;KACH;IACD,OAAO,CACL,CAAC,oBAAK,CACJ,MAAM,CAAC,CAAC,GAAU,CAAC,CACnB,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,KAAK,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;AACJ,CAAC,CAAC;AAlFW,QAAA,UAAU,cAkFrB","sourcesContent":["import React, { useState, useCallback, useEffect } from 'react';\nimport { Image } from 'react-native';\nimport { SvgUri } from 'react-native-svg';\n\nimport type { ImageOrSvgProps } from './ImageOrSvg.types';\n\nexport const ImageOrSvg = ({\n src,\n width,\n height,\n onImageLoad,\n onImageError,\n onSvgError,\n style,\n imageProps,\n svgProps,\n}: ImageOrSvgProps) => {\n // CASE 1: local image (src is a number)\n if (typeof src === 'number') {\n return (\n <Image\n source={src}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n }\n\n // CASE 2: Local SVG component (src is a React component)\n if (typeof src === 'function') {\n const LocalSvg = src;\n return <LocalSvg width={width} height={height} {...svgProps} />;\n }\n\n // CASE 3: Remote image or SVG (src is an object with a uri)\n const [isSvg, setIsSvg] = useState<boolean>(false);\n\n const checkSvgContentType = useCallback(async (uri: string) => {\n try {\n const response = await fetch(uri, { method: 'HEAD' });\n // If no header is returned, fallback to an empty string.\n const contentType = response.headers.get('Content-Type') || '';\n return contentType.includes('image/svg+xml');\n } catch {\n return false;\n }\n }, []);\n\n useEffect(() => {\n if (src.uri) {\n const uriLower = src.uri.toLowerCase();\n const isLikelySvg =\n uriLower.endsWith('.svg') || uriLower.startsWith('data:image/svg+xml');\n if (!src.uri.startsWith('data:')) {\n checkSvgContentType(src.uri).then(setIsSvg);\n } else {\n setIsSvg(isLikelySvg);\n }\n } else {\n setIsSvg(false);\n }\n }, [src, checkSvgContentType]);\n\n if (isSvg && typeof src === 'object' && 'uri' in src && src.uri) {\n return (\n <SvgUri\n uri={src.uri}\n width={width}\n height={height}\n onError={onSvgError}\n style={style}\n {...svgProps}\n />\n );\n }\n return (\n <Image\n source={src as any}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n};\n"]}
@@ -6,7 +6,7 @@ function $importDefault(module) {
6
6
  }
7
7
  import $React, { useState, useCallback, useEffect } from "react";
8
8
  const React = $importDefault($React);
9
- import { Image } from "react-native/index.js";
9
+ import { Image } from "react-native";
10
10
  import { SvgUri } from "react-native-svg";
11
11
  export const ImageOrSvg = ({ src, width, height, onImageLoad, onImageError, onSvgError, style, imageProps, svgProps, }) => {
12
12
  // CASE 1: local image (src is a number)
@@ -1 +1 @@
1
- {"version":3,"file":"ImageOrSvg.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc;;AAChE,OAAO,EAAE,KAAK,EAAE,8BAAqB;AACrC,OAAO,EAAE,MAAM,EAAE,yBAAyB;AAI1C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,UAAU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AAQ,GAAG,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YACvC,MAAM,WAAW,GACf,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;YACzE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;gBAChC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC7C;iBAAM;gBACL,QAAQ,CAAC,WAAW,CAAC,CAAC;aACvB;SACF;aAAM;YACL,QAAQ,CAAC,KAAK,CAAC,CAAC;SACjB;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE/B,IAAI,KAAK,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE;QAC/D,OAAO,CACL,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CACb,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,OAAO,CAAC,CAAC,UAAU,CAAC,CACpB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,QAAQ,CAAC,EACb,CACH,CAAC;KACH;IACD,OAAO,CACL,CAAC,KAAK,CACJ,MAAM,CAAC,CAAC,GAAU,CAAC,CACnB,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,KAAK,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState, useCallback, useEffect } from 'react';\nimport { Image } from 'react-native';\nimport { SvgUri } from 'react-native-svg';\n\nimport type { ImageOrSvgProps } from './ImageOrSvg.types';\n\nexport const ImageOrSvg = ({\n src,\n width,\n height,\n onImageLoad,\n onImageError,\n onSvgError,\n style,\n imageProps,\n svgProps,\n}: ImageOrSvgProps) => {\n // CASE 1: local image (src is a number)\n if (typeof src === 'number') {\n return (\n <Image\n source={src}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n }\n\n // CASE 2: Local SVG component (src is a React component)\n if (typeof src === 'function') {\n const LocalSvg = src;\n return <LocalSvg width={width} height={height} {...svgProps} />;\n }\n\n // CASE 3: Remote image or SVG (src is an object with a uri)\n const [isSvg, setIsSvg] = useState<boolean>(false);\n\n const checkSvgContentType = useCallback(async (uri: string) => {\n try {\n const response = await fetch(uri, { method: 'HEAD' });\n // If no header is returned, fallback to an empty string.\n const contentType = response.headers.get('Content-Type') || '';\n return contentType.includes('image/svg+xml');\n } catch {\n return false;\n }\n }, []);\n\n useEffect(() => {\n if (src.uri) {\n const uriLower = src.uri.toLowerCase();\n const isLikelySvg =\n uriLower.endsWith('.svg') || uriLower.startsWith('data:image/svg+xml');\n if (!src.uri.startsWith('data:')) {\n checkSvgContentType(src.uri).then(setIsSvg);\n } else {\n setIsSvg(isLikelySvg);\n }\n } else {\n setIsSvg(false);\n }\n }, [src, checkSvgContentType]);\n\n if (isSvg && typeof src === 'object' && 'uri' in src && src.uri) {\n return (\n <SvgUri\n uri={src.uri}\n width={width}\n height={height}\n onError={onSvgError}\n style={style}\n {...svgProps}\n />\n );\n }\n return (\n <Image\n source={src as any}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"ImageOrSvg.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,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K,CAAC,CAAC,CACzC,UAAU,CAAC,SAAS,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,UAAU,CAAC,EACf,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useState, useCallback, useEffect } from 'react';\nimport { Image } from 'react-native';\nimport { SvgUri } from 'react-native-svg';\n\nimport type { ImageOrSvgProps } from './ImageOrSvg.types';\n\nexport const ImageOrSvg = ({\n src,\n width,\n height,\n onImageLoad,\n onImageError,\n onSvgError,\n style,\n imageProps,\n svgProps,\n}: ImageOrSvgProps) => {\n // CASE 1: local image (src is a number)\n if (typeof src === 'number') {\n return (\n <Image\n source={src}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n }\n\n // CASE 2: Local SVG component (src is a React component)\n if (typeof src === 'function') {\n const LocalSvg = src;\n return <LocalSvg width={width} height={height} {...svgProps} />;\n }\n\n // CASE 3: Remote image or SVG (src is an object with a uri)\n const [isSvg, setIsSvg] = useState<boolean>(false);\n\n const checkSvgContentType = useCallback(async (uri: string) => {\n try {\n const response = await fetch(uri, { method: 'HEAD' });\n // If no header is returned, fallback to an empty string.\n const contentType = response.headers.get('Content-Type') || '';\n return contentType.includes('image/svg+xml');\n } catch {\n return false;\n }\n }, []);\n\n useEffect(() => {\n if (src.uri) {\n const uriLower = src.uri.toLowerCase();\n const isLikelySvg =\n uriLower.endsWith('.svg') || uriLower.startsWith('data:image/svg+xml');\n if (!src.uri.startsWith('data:')) {\n checkSvgContentType(src.uri).then(setIsSvg);\n } else {\n setIsSvg(isLikelySvg);\n }\n } else {\n setIsSvg(false);\n }\n }, [src, checkSvgContentType]);\n\n if (isSvg && typeof src === 'object' && 'uri' in src && src.uri) {\n return (\n <SvgUri\n uri={src.uri}\n width={width}\n height={height}\n onError={onSvgError}\n style={style}\n {...svgProps}\n />\n );\n }\n return (\n <Image\n source={src as any}\n style={[{ width, height } as any, style]}\n resizeMode=\"contain\"\n onLoad={onImageLoad}\n onError={onImageError}\n {...imageProps}\n />\n );\n};\n"]}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import type { ImageErrorEventData, ImageLoadEventData, NativeSyntheticEvent, StyleProp, ImageStyle, ImageProps } from "react-native/index.js";
1
+ import type { ImageErrorEventData, ImageLoadEventData, NativeSyntheticEvent, StyleProp, ImageStyle, ImageProps } from "react-native";
3
2
  import type { SvgProps } from "react-native-svg";
4
3
  /**
5
4
  * Base props common to all variations.
@@ -1 +1 @@
1
- {"version":3,"file":"ImageOrSvg.types.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,UAAU,EACX,8BAAqB;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,KAClD,IAAI,CAAC;IACV;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC7B;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,GAAG,EAAE,aAAa,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"ImageOrSvg.types.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,UAAU,EACX,qBAAqB;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,KAClD,IAAI,CAAC;IACV;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC7B;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,GAAG,EAAE,aAAa,CAAC;CACpB,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import type { ImageErrorEventData, ImageLoadEventData, NativeSyntheticEvent, StyleProp, ImageStyle, ImageProps } from "react-native/index.js";
1
+ import type { ImageErrorEventData, ImageLoadEventData, NativeSyntheticEvent, StyleProp, ImageStyle, ImageProps } from "react-native";
3
2
  import type { SvgProps } from "react-native-svg";
4
3
  /**
5
4
  * Base props common to all variations.
@@ -1 +1 @@
1
- {"version":3,"file":"ImageOrSvg.types.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,UAAU,EACX,8BAAqB;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,KAClD,IAAI,CAAC;IACV;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC7B;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,GAAG,EAAE,aAAa,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"ImageOrSvg.types.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/ImageOrSvg/ImageOrSvg.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,UAAU,EACX,qBAAqB;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,KAClD,IAAI,CAAC;IACV;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC7B;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,GAAG,EAAE,aAAa,CAAC;CACpB,CAAC"}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Jazzicon = void 0;
7
7
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
8
  const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native/index.js");
9
+ const react_native_1 = require("react-native");
10
10
  const react_native_jazzicon_1 = __importDefault(require("react-native-jazzicon"));
11
11
  const Jazzicon = ({ testID, address, ...props }) => {
12
12
  // Extract the account address from CAIP-10 format if needed
@@ -1 +1 @@
1
- {"version":3,"file":"Jazzicon.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAGiD;AACjD,kDAA0B;AAC1B,wDAAoC;AAEpC,kFAA+C;AAIxC,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACvE,4DAA4D;IAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,IAAA,4CAAqB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAErE,8EAA8E;IAC9E,MAAM,IAAI,GAAG,IAAA,uCAAgB,EAAC,cAAc,CAAC,CAAC;IAE9C,OAAO,CACL,CAAC,mBAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnB;MAAA,CAAC,+BAAU,CACT,IAAI,KAAK,CAAC;IACV,0GAA0G;IAC1G,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,cAAc,CAAC,CAAC;YACd,YAAY,EAAE,CAAC;YACf,GAAI,KAAK,CAAC,cAA4B;SACvC,CAAC,EAEN;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,QAAQ,YAoBnB","sourcesContent":["import {\n extractAccountAddress,\n generateIconSeed,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { View } from 'react-native';\nimport type { ViewStyle } from 'react-native';\nimport RNJazzicon from 'react-native-jazzicon';\n\nimport type { JazziconProps } from './Jazzicon.types';\n\nexport const Jazzicon = ({ testID, address, ...props }: JazziconProps) => {\n // Extract the account address from CAIP-10 format if needed\n const accountAddress = address ? extractAccountAddress(address) : '';\n\n // Generate appropriate seed based on address format (matches MetaMask Mobile)\n const seed = generateIconSeed(accountAddress);\n\n return (\n <View testID={testID}>\n <RNJazzicon\n {...props}\n // @ts-expect-error The underlying PRNG supports the seed being an array but the component is typed wrong.\n seed={seed}\n containerStyle={{\n borderRadius: 0, // Override circular border radius to make it square\n ...(props.containerStyle as ViewStyle),\n }}\n />\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Jazzicon.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAGiD;AACjD,kDAA0B;AAC1B,+CAAoC;AAEpC,kFAA+C;AAIxC,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACvE,4DAA4D;IAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,IAAA,4CAAqB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAErE,8EAA8E;IAC9E,MAAM,IAAI,GAAG,IAAA,uCAAgB,EAAC,cAAc,CAAC,CAAC;IAE9C,OAAO,CACL,CAAC,mBAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnB;MAAA,CAAC,+BAAU,CACT,IAAI,KAAK,CAAC;IACV,0GAA0G;IAC1G,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,cAAc,CAAC,CAAC;YACd,YAAY,EAAE,CAAC;YACf,GAAI,KAAK,CAAC,cAA4B;SACvC,CAAC,EAEN;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,QAAQ,YAoBnB","sourcesContent":["import {\n extractAccountAddress,\n generateIconSeed,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { View } from 'react-native';\nimport type { ViewStyle } from 'react-native';\nimport RNJazzicon from 'react-native-jazzicon';\n\nimport type { JazziconProps } from './Jazzicon.types';\n\nexport const Jazzicon = ({ testID, address, ...props }: JazziconProps) => {\n // Extract the account address from CAIP-10 format if needed\n const accountAddress = address ? extractAccountAddress(address) : '';\n\n // Generate appropriate seed based on address format (matches MetaMask Mobile)\n const seed = generateIconSeed(accountAddress);\n\n return (\n <View testID={testID}>\n <RNJazzicon\n {...props}\n // @ts-expect-error The underlying PRNG supports the seed being an array but the component is typed wrong.\n seed={seed}\n containerStyle={{\n borderRadius: 0, // Override circular border radius to make it square\n ...(props.containerStyle as ViewStyle),\n }}\n />\n </View>\n );\n};\n"]}
@@ -7,7 +7,7 @@ function $importDefault(module) {
7
7
  import { extractAccountAddress, generateIconSeed } from "@metamask-previews/design-system-shared";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
- import { View } from "react-native/index.js";
10
+ import { View } from "react-native";
11
11
  import $RNJazzicon from "react-native-jazzicon";
12
12
  const RNJazzicon = $importDefault($RNJazzicon);
13
13
  export const Jazzicon = ({ testID, address, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Jazzicon.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EACjB,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,WAAU,8BAA8B;;AAI/C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACvE,4DAA4D;IAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAErE,8EAA8E;IAC9E,MAAM,IAAI,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAE9C,OAAO,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnB;MAAA,CAAC,UAAU,CACT,IAAI,KAAK,CAAC;IACV,0GAA0G;IAC1G,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,cAAc,CAAC,CAAC;YACd,YAAY,EAAE,CAAC;YACf,GAAI,KAAK,CAAC,cAA4B;SACvC,CAAC,EAEN;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n extractAccountAddress,\n generateIconSeed,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { View } from 'react-native';\nimport type { ViewStyle } from 'react-native';\nimport RNJazzicon from 'react-native-jazzicon';\n\nimport type { JazziconProps } from './Jazzicon.types';\n\nexport const Jazzicon = ({ testID, address, ...props }: JazziconProps) => {\n // Extract the account address from CAIP-10 format if needed\n const accountAddress = address ? extractAccountAddress(address) : '';\n\n // Generate appropriate seed based on address format (matches MetaMask Mobile)\n const seed = generateIconSeed(accountAddress);\n\n return (\n <View testID={testID}>\n <RNJazzicon\n {...props}\n // @ts-expect-error The underlying PRNG supports the seed being an array but the component is typed wrong.\n seed={seed}\n containerStyle={{\n borderRadius: 0, // Override circular border radius to make it square\n ...(props.containerStyle as ViewStyle),\n }}\n />\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Jazzicon.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Jazzicon/Jazzicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EACjB,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAEpC,OAAO,WAAU,8BAA8B;;AAI/C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IACvE,4DAA4D;IAC5D,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAErE,8EAA8E;IAC9E,MAAM,IAAI,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAE9C,OAAO,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACnB;MAAA,CAAC,UAAU,CACT,IAAI,KAAK,CAAC;IACV,0GAA0G;IAC1G,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,cAAc,CAAC,CAAC;YACd,YAAY,EAAE,CAAC;YACf,GAAI,KAAK,CAAC,cAA4B;SACvC,CAAC,EAEN;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n extractAccountAddress,\n generateIconSeed,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { View } from 'react-native';\nimport type { ViewStyle } from 'react-native';\nimport RNJazzicon from 'react-native-jazzicon';\n\nimport type { JazziconProps } from './Jazzicon.types';\n\nexport const Jazzicon = ({ testID, address, ...props }: JazziconProps) => {\n // Extract the account address from CAIP-10 format if needed\n const accountAddress = address ? extractAccountAddress(address) : '';\n\n // Generate appropriate seed based on address format (matches MetaMask Mobile)\n const seed = generateIconSeed(accountAddress);\n\n return (\n <View testID={testID}>\n <RNJazzicon\n {...props}\n // @ts-expect-error The underlying PRNG supports the seed being an array but the component is typed wrong.\n seed={seed}\n containerStyle={{\n borderRadius: 0, // Override circular border radius to make it square\n ...(props.containerStyle as ViewStyle),\n }}\n />\n </View>\n );\n};\n"]}
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Maskicon = void 0;
27
27
  const react_1 = __importStar(require("react"));
28
- const react_native_1 = require("react-native/index.js");
28
+ const react_native_1 = require("react-native");
29
29
  const react_native_svg_1 = require("react-native-svg");
30
30
  const Maskicon_utilities_1 = require("./Maskicon.utilities.cjs");
31
31
  const Maskicon = ({ address, size = 32, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Maskicon.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/Maskicon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,wDAAoC;AACpC,uDAA0C;AAG1C,iEAAsD;AAE/C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAE/C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,mCAAmC;QACnC,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAc,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnD,IAAI,CAAC,SAAS,EAAE;gBACd,YAAY,CAAC,MAAM,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAG,CAAC;KACvD;IAED,OAAO,CAAC,yBAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC1E,CAAC,CAAC;AAtBW,QAAA,QAAQ,YAsBnB","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { View } from 'react-native';\nimport { SvgXml } from 'react-native-svg';\n\nimport type { MaskiconProps } from './Maskicon.types';\nimport { getMaskiconSVG } from './Maskicon.utilities';\n\nexport const Maskicon = ({ address, size = 32, ...props }: MaskiconProps) => {\n const [svgString, setSvgString] = useState('');\n\n useEffect(() => {\n let cancelled = false;\n // eslint-disable-next-line no-void\n void (async () => {\n const newSvg = await getMaskiconSVG(address, size);\n if (!cancelled) {\n setSvgString(newSvg);\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [address, size]);\n\n if (!svgString) {\n return <View style={{ width: size, height: size }} />;\n }\n\n return <SvgXml xml={svgString} width={size} height={size} {...props} />;\n};\n"]}
1
+ {"version":3,"file":"Maskicon.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/Maskicon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,+CAAoC;AACpC,uDAA0C;AAG1C,iEAAsD;AAE/C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAE/C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,mCAAmC;QACnC,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAc,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnD,IAAI,CAAC,SAAS,EAAE;gBACd,YAAY,CAAC,MAAM,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAG,CAAC;KACvD;IAED,OAAO,CAAC,yBAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC1E,CAAC,CAAC;AAtBW,QAAA,QAAQ,YAsBnB","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { View } from 'react-native';\nimport { SvgXml } from 'react-native-svg';\n\nimport type { MaskiconProps } from './Maskicon.types';\nimport { getMaskiconSVG } from './Maskicon.utilities';\n\nexport const Maskicon = ({ address, size = 32, ...props }: MaskiconProps) => {\n const [svgString, setSvgString] = useState('');\n\n useEffect(() => {\n let cancelled = false;\n // eslint-disable-next-line no-void\n void (async () => {\n const newSvg = await getMaskiconSVG(address, size);\n if (!cancelled) {\n setSvgString(newSvg);\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [address, size]);\n\n if (!svgString) {\n return <View style={{ width: size, height: size }} />;\n }\n\n return <SvgXml xml={svgString} width={size} height={size} {...props} />;\n};\n"]}
@@ -6,7 +6,7 @@ function $importDefault(module) {
6
6
  }
7
7
  import $React, { useEffect, useState } from "react";
8
8
  const React = $importDefault($React);
9
- import { View } from "react-native/index.js";
9
+ import { View } from "react-native";
10
10
  import { SvgXml } from "react-native-svg";
11
11
  import { getMaskiconSVG } from "./Maskicon.utilities.mjs";
12
12
  export const Maskicon = ({ address, size = 32, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Maskicon.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/Maskicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc;;AACnD,OAAO,EAAE,IAAI,EAAE,8BAAqB;AACpC,OAAO,EAAE,MAAM,EAAE,yBAAyB;AAG1C,OAAO,EAAE,cAAc,EAAE,iCAA6B;AAEtD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE/C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,mCAAmC;QACnC,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnD,IAAI,CAAC,SAAS,EAAE;gBACd,YAAY,CAAC,MAAM,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAG,CAAC;KACvD;IAED,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC1E,CAAC,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { View } from 'react-native';\nimport { SvgXml } from 'react-native-svg';\n\nimport type { MaskiconProps } from './Maskicon.types';\nimport { getMaskiconSVG } from './Maskicon.utilities';\n\nexport const Maskicon = ({ address, size = 32, ...props }: MaskiconProps) => {\n const [svgString, setSvgString] = useState('');\n\n useEffect(() => {\n let cancelled = false;\n // eslint-disable-next-line no-void\n void (async () => {\n const newSvg = await getMaskiconSVG(address, size);\n if (!cancelled) {\n setSvgString(newSvg);\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [address, size]);\n\n if (!svgString) {\n return <View style={{ width: size, height: size }} />;\n }\n\n return <SvgXml xml={svgString} width={size} height={size} {...props} />;\n};\n"]}
1
+ {"version":3,"file":"Maskicon.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Maskicon/Maskicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc;;AACnD,OAAO,EAAE,IAAI,EAAE,qBAAqB;AACpC,OAAO,EAAE,MAAM,EAAE,yBAAyB;AAG1C,OAAO,EAAE,cAAc,EAAE,iCAA6B;AAEtD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE/C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,mCAAmC;QACnC,KAAK,CAAC,KAAK,IAAI,EAAE;YACf,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACnD,IAAI,CAAC,SAAS,EAAE;gBACd,YAAY,CAAC,MAAM,CAAC,CAAC;aACtB;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAG,CAAC;KACvD;IAED,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AAC1E,CAAC,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { View } from 'react-native';\nimport { SvgXml } from 'react-native-svg';\n\nimport type { MaskiconProps } from './Maskicon.types';\nimport { getMaskiconSVG } from './Maskicon.utilities';\n\nexport const Maskicon = ({ address, size = 32, ...props }: MaskiconProps) => {\n const [svgString, setSvgString] = useState('');\n\n useEffect(() => {\n let cancelled = false;\n // eslint-disable-next-line no-void\n void (async () => {\n const newSvg = await getMaskiconSVG(address, size);\n if (!cancelled) {\n setSvgString(newSvg);\n }\n })();\n return () => {\n cancelled = true;\n };\n }, [address, size]);\n\n if (!svgString) {\n return <View style={{ width: size, height: size }} />;\n }\n\n return <SvgXml xml={svgString} width={size} height={size} {...props} />;\n};\n"]}
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Spinner = void 0;
27
27
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
28
28
  const react_1 = __importStar(require("react"));
29
- const react_native_1 = require("react-native/index.js");
29
+ const react_native_1 = require("react-native");
30
30
  const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
31
31
  const Icon_1 = require("../../Icon/index.cjs");
32
32
  const Text_1 = require("../../Text/index.cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAyC;AACzC,wDAAoC;AACpC,mFAMiC;AAGjC,+CAAiE;AAEjE,+CAA0D;AAInD,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,gBAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACK,EAAE,EAAE;IACjB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,qCAAqC;IACrC,MAAM,QAAQ,GAAG,IAAA,wCAAc,EAAC,CAAC,CAAC,CAAC;IAEnC,gDAAgD;IAChD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,GAAG,IAAA,oCAAU,EACzB,IAAA,oCAAU,EAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,gCAAM,CAAC,MAAM,EAAE,CAAC,EAAE,mCAAmC;QAC/F,CA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{ useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAyC;AACzC,+CAAoC;AACpC,mFAMiC;AAGjC,+CAAiE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,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAEvE;MAAA,CAAC,iCAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,iCAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,WAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,WAAI,CAAC,CACvE;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,OAAO,WAsDlB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
@@ -7,7 +7,7 @@ function $importDefault(module) {
7
7
  import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
8
  import $React, { useEffect } from "react";
9
9
  const React = $importDefault($React);
10
- import { View } from "react-native/index.js";
10
+ import { View } from "react-native";
11
11
  import Animated, { useSharedValue, useAnimatedStyle, withRepeat, withTiming, Easing } from "react-native-reanimated";
12
12
  import { Icon, IconColor, IconName, IconSize } from "../../Icon/index.mjs";
13
13
  import { Text, TextVariant, TextColor } from "../../Text/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,SAAS,EAAE,cAAc;;AACzC,OAAO,EAAE,IAAI,EAAE,8BAAqB;AACpC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,MAAM,EACP,gCAAgC;AAGjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,6BAAmB;AAEjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,6BAAmB;AAI1D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,gBAAgB,EACh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CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,QAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,SAAS,EAAE,cAAc;;AACzC,OAAO,EAAE,IAAI,EAAE,qBAAqB;AACpC,OAAO,QAAQ,EAAE,EACf,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,MAAM,EACP,gCAAgC;AAGjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,6BAAmB;AAEjE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,6BAAmB;AAI1D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACK,EAAE,EAAE;IACjB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,qCAAqC;IACrC,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAEnC,gDAAgD;IAChD,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,GAAG,UAAU,CACzB,UAAU,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,mCAAmC;QAC/F,CAAC,CAAC,EAAE,uBAAuB;QAC3B,KAAK,CACN,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,4BAA4B;IAC5B,MAAM,aAAa,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,GAAG,GAAG,KAAK,EAAE,CAAC;KACtD,CAAC,CAAC,CAAC;IAEJ,MAAM,qBAAqB,GAAc;QACvC,IAAI,EAAE,QAAQ,CAAC,EAAE;QACjB,IAAI,EAAE,QAAQ,CAAC,OAAO;QACtB,MAAM,EAAE,cAAc;QACtB,KAAK;QACL,GAAG,gBAAgB;KACpB,CAAC;IAEF,MAAM,qBAAqB,GAAuB;QAChD,OAAO,EAAE,WAAW,CAAC,MAAM;QAC3B,KAAK,EAAE,SAAS,CAAC,WAAW;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,gBAAgB;KACpB,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,+BAA+B,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAEvE;MAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,uBAAuB,CACnE;QAAA,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAClC;MAAA,EAAE,QAAQ,CAAC,IAAI,CACf;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect } from 'react';\nimport { View } from 'react-native';\nimport Animated, {\n useSharedValue,\n useAnimatedStyle,\n withRepeat,\n withTiming,\n Easing,\n} from 'react-native-reanimated';\n\nimport type { IconProps } from '../../Icon';\nimport { Icon, IconColor, IconName, IconSize } from '../../Icon';\nimport type { TextProps } from '../../Text';\nimport { Text, TextVariant, TextColor } from '../../Text';\n\nimport type { SpinnerProps } from './Spinner.types';\n\nexport const Spinner = ({\n color = IconColor.IconDefault,\n spinnerIconProps,\n loadingText,\n loadingTextProps,\n twClassName,\n style,\n ...props\n}: SpinnerProps) => {\n const tw = useTailwind();\n\n // Create a shared value for rotation\n const rotation = useSharedValue(0);\n\n // Start the animation when the component mounts\n useEffect(() => {\n rotation.value = withRepeat(\n withTiming(360, { duration: 1000, easing: Easing.linear }), // Complete a full spin in 1 second\n -1, // Infinite repetitions\n false, // Do not reverse the animation\n );\n }, []);\n\n // Define the animated style\n const animatedStyle = useAnimatedStyle(() => ({\n transform: [{ rotate: `${rotation.value % 360}deg` }],\n }));\n\n const finalSpinnerIconProps: IconProps = {\n size: IconSize.Md,\n name: IconName.Loading,\n testID: 'spinner-icon',\n color,\n ...spinnerIconProps,\n };\n\n const finalLoadingTextProps: Partial<TextProps> = {\n variant: TextVariant.BodyMd,\n color: TextColor.TextDefault,\n testID: 'spinner-text',\n ...loadingTextProps,\n };\n\n return (\n <View\n {...props}\n style={[tw.style('flex-row items-center gap-x-2', twClassName), style]}\n >\n <Animated.View style={[animatedStyle]} testID=\"spinner-animated-view\">\n <Icon {...finalSpinnerIconProps} />\n </Animated.View>\n {loadingText && <Text {...finalLoadingTextProps}>{loadingText}</Text>}\n </View>\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
- import type { ViewProps } from "react-native/index.js";
1
+ import type { ViewProps } from "react-native";
2
2
  import type { IconProps, IconColor } from "../../Icon/index.cjs";
3
3
  import type { TextProps } from "../../Text/index.cjs";
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.types.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,6BAAmB;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,6BAAmB;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Spinner.types.d.cts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,6BAAmB;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,6BAAmB;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ViewProps } from "react-native/index.js";
1
+ import type { ViewProps } from "react-native";
2
2
  import type { IconProps, IconColor } from "../../Icon/index.mjs";
3
3
  import type { TextProps } from "../../Text/index.mjs";
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.types.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,6BAAmB;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,6BAAmB;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Spinner.types.d.mts","sourceRoot":"","sources":["../../../../src/components/temp-components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,6BAAmB;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,6BAAmB;AAE5C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.createRenderer = void 0;
30
+ const react_1 = __importDefault(require("react"));
31
+ const ReactTestRenderer = __importStar(require("react-test-renderer"));
32
+ // Wraps ReactTestRenderer.create in act() as required by React 19.
33
+ const createRenderer = (element) => {
34
+ let tree;
35
+ ReactTestRenderer.act(() => {
36
+ tree = ReactTestRenderer.create(element);
37
+ });
38
+ return tree;
39
+ };
40
+ exports.createRenderer = createRenderer;
41
+ //# sourceMappingURL=createRenderer.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRenderer.cjs","sourceRoot":"","sources":["../../src/test-utils/createRenderer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,uEAAyD;AAEzD,mEAAmE;AAC5D,MAAM,cAAc,GAAG,CAAC,OAA2B,EAAE,EAAE;IAC5D,IAAI,IAA0C,CAAC;IAC/C,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB","sourcesContent":["import React from 'react';\nimport * as ReactTestRenderer from 'react-test-renderer';\n\n// Wraps ReactTestRenderer.create in act() as required by React 19.\nexport const createRenderer = (element: React.ReactElement) => {\n let tree!: ReactTestRenderer.ReactTestRenderer;\n ReactTestRenderer.act(() => {\n tree = ReactTestRenderer.create(element);\n });\n return tree;\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import * as ReactTestRenderer from "react-test-renderer";
3
+ export declare const createRenderer: (element: React.ReactElement) => ReactTestRenderer.ReactTestRenderer;
4
+ //# sourceMappingURL=createRenderer.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRenderer.d.cts","sourceRoot":"","sources":["../../src/test-utils/createRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAC1B,OAAO,KAAK,iBAAiB,4BAA4B;AAGzD,eAAO,MAAM,cAAc,YAAa,MAAM,YAAY,wCAMzD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import * as ReactTestRenderer from "react-test-renderer";
3
+ export declare const createRenderer: (element: React.ReactElement) => ReactTestRenderer.ReactTestRenderer;
4
+ //# sourceMappingURL=createRenderer.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRenderer.d.mts","sourceRoot":"","sources":["../../src/test-utils/createRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAC1B,OAAO,KAAK,iBAAiB,4BAA4B;AAGzD,eAAO,MAAM,cAAc,YAAa,MAAM,YAAY,wCAMzD,CAAC"}
@@ -0,0 +1,18 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const React = $importDefault($React);
9
+ import * as ReactTestRenderer from "react-test-renderer";
10
+ // Wraps ReactTestRenderer.create in act() as required by React 19.
11
+ export const createRenderer = (element) => {
12
+ let tree;
13
+ ReactTestRenderer.act(() => {
14
+ tree = ReactTestRenderer.create(element);
15
+ });
16
+ return tree;
17
+ };
18
+ //# sourceMappingURL=createRenderer.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRenderer.mjs","sourceRoot":"","sources":["../../src/test-utils/createRenderer.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAC1B,OAAO,KAAK,iBAAiB,4BAA4B;AAEzD,mEAAmE;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAA2B,EAAE,EAAE;IAC5D,IAAI,IAA0C,CAAC;IAC/C,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport * as ReactTestRenderer from 'react-test-renderer';\n\n// Wraps ReactTestRenderer.create in act() as required by React 19.\nexport const createRenderer = (element: React.ReactElement) => {\n let tree!: ReactTestRenderer.ReactTestRenderer;\n ReactTestRenderer.act(() => {\n tree = ReactTestRenderer.create(element);\n });\n return tree;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-react-native",
3
- "version": "0.24.0-preview.178e60f",
3
+ "version": "0.26.0-preview.047f96c",
4
4
  "description": "Design System React Native",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -47,7 +47,7 @@
47
47
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
48
48
  },
49
49
  "dependencies": {
50
- "@metamask-previews/design-system-shared": "0.17.0-preview.178e60f",
50
+ "@metamask-previews/design-system-shared": "0.19.0-preview.047f96c",
51
51
  "fast-text-encoding": "^1.0.6",
52
52
  "react-native-jazzicon": "^0.1.2"
53
53
  },
@@ -57,34 +57,33 @@
57
57
  "@babel/preset-react": "^7.25.9",
58
58
  "@babel/preset-typescript": "^7.23.3",
59
59
  "@figma/code-connect": "^1.0.0",
60
- "@metamask-previews/design-system-twrnc-preset": "0.4.2-preview.178e60f",
61
- "@metamask-previews/design-tokens": "8.4.0-preview.178e60f",
62
- "@metamask/auto-changelog": "^6.1.0",
60
+ "@metamask-previews/design-system-twrnc-preset": "0.4.2-preview.047f96c",
61
+ "@metamask-previews/design-tokens": "8.4.0-preview.047f96c",
62
+ "@metamask/auto-changelog": "^6.1.1",
63
63
  "@metamask/utils": "^11.11.0",
64
- "@react-native/babel-preset": "0.76.9",
65
- "@react-native/typescript-config": "0.76.9",
66
- "@storybook/react-native": "^10",
67
- "@testing-library/react-hooks": "^8.0.1",
64
+ "@react-native/babel-preset": "0.81.5",
65
+ "@react-native/typescript-config": "0.81.5",
66
+ "@storybook/react-native": "10.4.0",
68
67
  "@testing-library/react-native": "^13.3.3",
69
68
  "@ts-bridge/cli": "^0.6.3",
70
69
  "@types/babel__preset-env": "^7",
71
70
  "@types/fast-text-encoding": "^1",
72
71
  "@types/jest": "^27.4.1",
73
72
  "@types/node": "^16.18.54",
74
- "@types/react": "^18.2.0",
75
- "@types/react-test-renderer": "^18",
73
+ "@types/react": "^19.1.0",
74
+ "@types/react-test-renderer": "^19.1.0",
76
75
  "babel-jest": "^29.7.0",
77
76
  "deepmerge": "^4.2.2",
78
77
  "jest": "^29.7.0",
79
- "metro-react-native-babel-transformer": "0.76.9",
80
- "react": "18.3.1",
81
- "react-native": "0.76.9",
82
- "react-native-gesture-handler": "~2.25.0",
83
- "react-native-reanimated": "~3.17.2",
84
- "react-native-safe-area-context": "^5.4.0",
85
- "react-native-svg": "~15.11.2",
86
- "react-native-svg-transformer": "^1.5.0",
87
- "react-test-renderer": "^18.3.1",
78
+ "react": "19.1.0",
79
+ "react-native": "0.81.5",
80
+ "react-native-gesture-handler": "~2.28.0",
81
+ "react-native-reanimated": "~4.1.1",
82
+ "react-native-safe-area-context": "~5.6.0",
83
+ "react-native-svg": "15.12.1",
84
+ "react-native-svg-transformer": "^1.5.3",
85
+ "react-native-worklets": "0.5.1",
86
+ "react-test-renderer": "19.1.0",
88
87
  "ts-jest": "^29.2.5",
89
88
  "tsx": "^4.20.6",
90
89
  "typescript": "~5.2.2"
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SensitiveTextLength = void 0;
4
- /**
5
- * Predefined length options for SensitiveText hidden content.
6
- * Values represent the number of bullet characters displayed when text is hidden.
7
- */
8
- exports.SensitiveTextLength = {
9
- Short: '6',
10
- Medium: '9',
11
- Long: '12',
12
- ExtraLong: '20',
13
- };
14
- //# sourceMappingURL=SensitiveText.constants.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SensitiveText.constants.cjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CACP,CAAC","sourcesContent":["/**\n * Predefined length options for SensitiveText hidden content.\n * Values represent the number of bullet characters displayed when text is hidden.\n */\nexport const SensitiveTextLength = {\n Short: '6',\n Medium: '9',\n Long: '12',\n ExtraLong: '20',\n} as const;\n"]}
@@ -1,11 +0,0 @@
1
- /**
2
- * Predefined length options for SensitiveText hidden content.
3
- * Values represent the number of bullet characters displayed when text is hidden.
4
- */
5
- export declare const SensitiveTextLength: {
6
- readonly Short: "6";
7
- readonly Medium: "9";
8
- readonly Long: "12";
9
- readonly ExtraLong: "20";
10
- };
11
- //# sourceMappingURL=SensitiveText.constants.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SensitiveText.constants.d.cts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Predefined length options for SensitiveText hidden content.
3
- * Values represent the number of bullet characters displayed when text is hidden.
4
- */
5
- export declare const SensitiveTextLength: {
6
- readonly Short: "6";
7
- readonly Medium: "9";
8
- readonly Long: "12";
9
- readonly ExtraLong: "20";
10
- };
11
- //# sourceMappingURL=SensitiveText.constants.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SensitiveText.constants.d.mts","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Predefined length options for SensitiveText hidden content.
3
- * Values represent the number of bullet characters displayed when text is hidden.
4
- */
5
- export const SensitiveTextLength = {
6
- Short: '6',
7
- Medium: '9',
8
- Long: '12',
9
- ExtraLong: '20',
10
- };
11
- //# sourceMappingURL=SensitiveText.constants.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SensitiveText.constants.mjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/SensitiveText.constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;CACP,CAAC","sourcesContent":["/**\n * Predefined length options for SensitiveText hidden content.\n * Values represent the number of bullet characters displayed when text is hidden.\n */\nexport const SensitiveTextLength = {\n Short: '6',\n Medium: '9',\n Long: '12',\n ExtraLong: '20',\n} as const;\n"]}