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

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 (515) 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 +9 -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 +9 -6
  69. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +29 -18
  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 +31 -20
  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 +2 -2
  93. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
  94. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts.map +1 -1
  95. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts.map +1 -1
  96. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +3 -3
  97. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -1
  98. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +1 -1
  99. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -1
  100. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +1 -1
  101. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -1
  102. package/dist/components/Box/Box.cjs +1 -1
  103. package/dist/components/Box/Box.cjs.map +1 -1
  104. package/dist/components/Box/Box.d.cts +1 -1
  105. package/dist/components/Box/Box.d.cts.map +1 -1
  106. package/dist/components/Box/Box.d.mts +1 -1
  107. package/dist/components/Box/Box.d.mts.map +1 -1
  108. package/dist/components/Box/Box.mjs +1 -1
  109. package/dist/components/Box/Box.mjs.map +1 -1
  110. package/dist/components/Box/Box.types.d.cts +1 -1
  111. package/dist/components/Box/Box.types.d.cts.map +1 -1
  112. package/dist/components/Box/Box.types.d.mts +1 -1
  113. package/dist/components/Box/Box.types.d.mts.map +1 -1
  114. package/dist/components/ButtonBase/ButtonBase.types.d.cts +1 -2
  115. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  116. package/dist/components/ButtonBase/ButtonBase.types.d.mts +1 -2
  117. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  118. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +1 -1
  119. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  120. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +1 -1
  121. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  122. package/dist/components/Card/Card.cjs +2 -2
  123. package/dist/components/Card/Card.cjs.map +1 -1
  124. package/dist/components/Card/Card.mjs +2 -2
  125. package/dist/components/Card/Card.mjs.map +1 -1
  126. package/dist/components/Card/Card.types.cjs.map +1 -1
  127. package/dist/components/Card/Card.types.d.cts +2 -2
  128. package/dist/components/Card/Card.types.d.cts.map +1 -1
  129. package/dist/components/Card/Card.types.d.mts +2 -2
  130. package/dist/components/Card/Card.types.d.mts.map +1 -1
  131. package/dist/components/Card/Card.types.mjs.map +1 -1
  132. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  133. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  134. package/dist/components/Checkbox/Checkbox.d.cts +1 -1
  135. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  136. package/dist/components/Checkbox/Checkbox.d.mts +1 -1
  137. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  138. package/dist/components/Checkbox/Checkbox.mjs +1 -1
  139. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  140. package/dist/components/Checkbox/Checkbox.types.d.cts +1 -1
  141. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  142. package/dist/components/Checkbox/Checkbox.types.d.mts +1 -1
  143. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  144. package/dist/components/HeaderBase/HeaderBase.cjs +1 -1
  145. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  146. package/dist/components/HeaderBase/HeaderBase.mjs +1 -1
  147. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  148. package/dist/components/HeaderBase/HeaderBase.types.d.cts +1 -1
  149. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  150. package/dist/components/HeaderBase/HeaderBase.types.d.mts +1 -1
  151. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  152. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +1 -1
  153. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -1
  154. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +1 -1
  155. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -1
  156. package/dist/components/Icon/Icon.cjs +3 -1
  157. package/dist/components/Icon/Icon.cjs.map +1 -1
  158. package/dist/components/Icon/Icon.d.cts.map +1 -1
  159. package/dist/components/Icon/Icon.d.mts.map +1 -1
  160. package/dist/components/Icon/Icon.mjs +3 -1
  161. package/dist/components/Icon/Icon.mjs.map +1 -1
  162. package/dist/components/Icon/assets/telegram.svg +1 -3
  163. package/dist/components/Input/Input.cjs +1 -1
  164. package/dist/components/Input/Input.cjs.map +1 -1
  165. package/dist/components/Input/Input.d.cts +1 -2
  166. package/dist/components/Input/Input.d.cts.map +1 -1
  167. package/dist/components/Input/Input.d.mts +1 -2
  168. package/dist/components/Input/Input.d.mts.map +1 -1
  169. package/dist/components/Input/Input.mjs +1 -1
  170. package/dist/components/Input/Input.mjs.map +1 -1
  171. package/dist/components/Input/Input.types.d.cts +1 -1
  172. package/dist/components/Input/Input.types.d.cts.map +1 -1
  173. package/dist/components/Input/Input.types.d.mts +1 -1
  174. package/dist/components/Input/Input.types.d.mts.map +1 -1
  175. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +1 -1
  176. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -1
  177. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +1 -1
  178. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -1
  179. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +1 -1
  180. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  181. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +1 -1
  182. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  183. package/dist/components/ListItem/ListItem.cjs +1 -1
  184. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  185. package/dist/components/ListItem/ListItem.mjs +1 -1
  186. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  187. package/dist/components/ListItem/ListItem.types.d.cts +1 -1
  188. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  189. package/dist/components/ListItem/ListItem.types.d.mts +1 -1
  190. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  191. package/dist/components/MainActionButton/MainActionButton.types.d.cts +1 -1
  192. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -1
  193. package/dist/components/MainActionButton/MainActionButton.types.d.mts +1 -1
  194. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -1
  195. package/dist/components/RadioButton/RadioButton.cjs +1 -1
  196. package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
  197. package/dist/components/RadioButton/RadioButton.mjs +1 -1
  198. package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
  199. package/dist/components/RadioButton/RadioButton.types.d.cts +1 -2
  200. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -1
  201. package/dist/components/RadioButton/RadioButton.types.d.mts +1 -2
  202. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -1
  203. package/dist/components/SectionDivider/SectionDivider.cjs +47 -0
  204. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -0
  205. package/dist/components/SectionDivider/SectionDivider.d.cts +6 -0
  206. package/dist/components/SectionDivider/SectionDivider.d.cts.map +1 -0
  207. package/dist/components/SectionDivider/SectionDivider.d.mts +6 -0
  208. package/dist/components/SectionDivider/SectionDivider.d.mts.map +1 -0
  209. package/dist/components/SectionDivider/SectionDivider.mjs +28 -0
  210. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -0
  211. package/dist/components/SectionDivider/SectionDivider.types.cjs +3 -0
  212. package/dist/components/SectionDivider/SectionDivider.types.cjs.map +1 -0
  213. package/dist/components/SectionDivider/SectionDivider.types.d.cts +3 -0
  214. package/dist/components/SectionDivider/SectionDivider.types.d.cts.map +1 -0
  215. package/dist/components/SectionDivider/SectionDivider.types.d.mts +3 -0
  216. package/dist/components/SectionDivider/SectionDivider.types.d.mts.map +1 -0
  217. package/dist/components/SectionDivider/SectionDivider.types.mjs +2 -0
  218. package/dist/components/SectionDivider/SectionDivider.types.mjs.map +1 -0
  219. package/dist/components/SectionDivider/index.cjs +6 -0
  220. package/dist/components/SectionDivider/index.cjs.map +1 -0
  221. package/dist/components/SectionDivider/index.d.cts +3 -0
  222. package/dist/components/SectionDivider/index.d.cts.map +1 -0
  223. package/dist/components/SectionDivider/index.d.mts +3 -0
  224. package/dist/components/SectionDivider/index.d.mts.map +1 -0
  225. package/dist/components/SectionDivider/index.mjs +2 -0
  226. package/dist/components/SectionDivider/index.mjs.map +1 -0
  227. package/dist/components/SectionHeader/SectionHeader.cjs +45 -0
  228. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -0
  229. package/dist/components/SectionHeader/SectionHeader.d.cts +23 -0
  230. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -0
  231. package/dist/components/SectionHeader/SectionHeader.d.mts +23 -0
  232. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -0
  233. package/dist/components/SectionHeader/SectionHeader.mjs +45 -0
  234. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -0
  235. package/dist/components/SectionHeader/SectionHeader.types.cjs +3 -0
  236. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -0
  237. package/dist/components/SectionHeader/SectionHeader.types.d.cts +32 -0
  238. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  239. package/dist/components/SectionHeader/SectionHeader.types.d.mts +32 -0
  240. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  241. package/dist/components/SectionHeader/SectionHeader.types.mjs +2 -0
  242. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -0
  243. package/dist/components/SectionHeader/index.cjs +6 -0
  244. package/dist/components/SectionHeader/index.cjs.map +1 -0
  245. package/dist/components/SectionHeader/index.d.cts +3 -0
  246. package/dist/components/SectionHeader/index.d.cts.map +1 -0
  247. package/dist/components/SectionHeader/index.d.mts +3 -0
  248. package/dist/components/SectionHeader/index.d.mts.map +1 -0
  249. package/dist/components/SectionHeader/index.mjs +2 -0
  250. package/dist/components/SectionHeader/index.mjs.map +1 -0
  251. package/dist/components/SegmentButton/SegmentButton.cjs +86 -0
  252. package/dist/components/SegmentButton/SegmentButton.cjs.map +1 -0
  253. package/dist/components/SegmentButton/SegmentButton.d.cts +7 -0
  254. package/dist/components/SegmentButton/SegmentButton.d.cts.map +1 -0
  255. package/dist/components/SegmentButton/SegmentButton.d.mts +7 -0
  256. package/dist/components/SegmentButton/SegmentButton.d.mts.map +1 -0
  257. package/dist/components/SegmentButton/SegmentButton.mjs +66 -0
  258. package/dist/components/SegmentButton/SegmentButton.mjs.map +1 -0
  259. package/dist/components/SegmentButton/SegmentButton.types.cjs +3 -0
  260. package/dist/components/SegmentButton/SegmentButton.types.cjs.map +1 -0
  261. package/dist/components/SegmentButton/SegmentButton.types.d.cts +9 -0
  262. package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +1 -0
  263. package/dist/components/SegmentButton/SegmentButton.types.d.mts +9 -0
  264. package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +1 -0
  265. package/dist/components/SegmentButton/SegmentButton.types.mjs +2 -0
  266. package/dist/components/SegmentButton/SegmentButton.types.mjs.map +1 -0
  267. package/dist/components/SegmentButton/index.cjs +8 -0
  268. package/dist/components/SegmentButton/index.cjs.map +1 -0
  269. package/dist/components/SegmentButton/index.d.cts +4 -0
  270. package/dist/components/SegmentButton/index.d.cts.map +1 -0
  271. package/dist/components/SegmentButton/index.d.mts +4 -0
  272. package/dist/components/SegmentButton/index.d.mts.map +1 -0
  273. package/dist/components/SegmentButton/index.mjs +3 -0
  274. package/dist/components/SegmentButton/index.mjs.map +1 -0
  275. package/dist/components/SegmentGroup/SegmentGroup.cjs +47 -0
  276. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -0
  277. package/dist/components/SegmentGroup/SegmentGroup.d.cts +7 -0
  278. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -0
  279. package/dist/components/SegmentGroup/SegmentGroup.d.mts +7 -0
  280. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -0
  281. package/dist/components/SegmentGroup/SegmentGroup.mjs +27 -0
  282. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -0
  283. package/dist/components/SegmentGroup/SegmentGroup.types.cjs +3 -0
  284. package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +1 -0
  285. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +12 -0
  286. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -0
  287. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +12 -0
  288. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -0
  289. package/dist/components/SegmentGroup/SegmentGroup.types.mjs +2 -0
  290. package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +1 -0
  291. package/dist/components/SegmentGroup/index.cjs +6 -0
  292. package/dist/components/SegmentGroup/index.cjs.map +1 -0
  293. package/dist/components/SegmentGroup/index.d.cts +3 -0
  294. package/dist/components/SegmentGroup/index.d.cts.map +1 -0
  295. package/dist/components/SegmentGroup/index.d.mts +3 -0
  296. package/dist/components/SegmentGroup/index.d.mts.map +1 -0
  297. package/dist/components/SegmentGroup/index.mjs +2 -0
  298. package/dist/components/SegmentGroup/index.mjs.map +1 -0
  299. package/dist/components/SelectButton/SelectButton.cjs +53 -0
  300. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  301. package/dist/components/SelectButton/SelectButton.constants.cjs +12 -0
  302. package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -0
  303. package/dist/components/SelectButton/SelectButton.constants.d.cts +4 -0
  304. package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -0
  305. package/dist/components/SelectButton/SelectButton.constants.d.mts +4 -0
  306. package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -0
  307. package/dist/components/SelectButton/SelectButton.constants.mjs +9 -0
  308. package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -0
  309. package/dist/components/SelectButton/SelectButton.d.cts +7 -0
  310. package/dist/components/SelectButton/SelectButton.d.cts.map +1 -0
  311. package/dist/components/SelectButton/SelectButton.d.mts +7 -0
  312. package/dist/components/SelectButton/SelectButton.d.mts.map +1 -0
  313. package/dist/components/SelectButton/SelectButton.mjs +53 -0
  314. package/dist/components/SelectButton/SelectButton.mjs.map +1 -0
  315. package/dist/components/SelectButton/SelectButton.types.cjs +3 -0
  316. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -0
  317. package/dist/components/SelectButton/SelectButton.types.d.cts +13 -0
  318. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -0
  319. package/dist/components/SelectButton/SelectButton.types.d.mts +13 -0
  320. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -0
  321. package/dist/components/SelectButton/SelectButton.types.mjs +2 -0
  322. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -0
  323. package/dist/components/SelectButton/index.cjs +10 -0
  324. package/dist/components/SelectButton/index.cjs.map +1 -0
  325. package/dist/components/SelectButton/index.d.cts +4 -0
  326. package/dist/components/SelectButton/index.d.cts.map +1 -0
  327. package/dist/components/SelectButton/index.d.mts +4 -0
  328. package/dist/components/SelectButton/index.d.mts.map +1 -0
  329. package/dist/components/SelectButton/index.mjs +3 -0
  330. package/dist/components/SelectButton/index.mjs.map +1 -0
  331. package/dist/components/SensitiveText/SensitiveText.cjs +4 -4
  332. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  333. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -1
  334. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -1
  335. package/dist/components/SensitiveText/SensitiveText.mjs +1 -1
  336. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  337. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -1
  338. package/dist/components/SensitiveText/SensitiveText.types.d.cts +6 -34
  339. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -1
  340. package/dist/components/SensitiveText/SensitiveText.types.d.mts +6 -34
  341. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -1
  342. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -1
  343. package/dist/components/SensitiveText/index.cjs +3 -3
  344. package/dist/components/SensitiveText/index.cjs.map +1 -1
  345. package/dist/components/SensitiveText/index.d.cts +1 -1
  346. package/dist/components/SensitiveText/index.d.cts.map +1 -1
  347. package/dist/components/SensitiveText/index.d.mts +1 -1
  348. package/dist/components/SensitiveText/index.d.mts.map +1 -1
  349. package/dist/components/SensitiveText/index.mjs +1 -1
  350. package/dist/components/SensitiveText/index.mjs.map +1 -1
  351. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  352. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  353. package/dist/components/Skeleton/Skeleton.mjs +1 -1
  354. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  355. package/dist/components/Skeleton/Skeleton.types.d.cts +1 -1
  356. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -1
  357. package/dist/components/Skeleton/Skeleton.types.d.mts +1 -1
  358. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -1
  359. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +1 -1
  360. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -1
  361. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +1 -1
  362. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -1
  363. package/dist/components/Tag/Tag.types.d.cts +1 -1
  364. package/dist/components/Tag/Tag.types.d.cts.map +1 -1
  365. package/dist/components/Tag/Tag.types.d.mts +1 -1
  366. package/dist/components/Tag/Tag.types.d.mts.map +1 -1
  367. package/dist/components/Text/Text.cjs +1 -1
  368. package/dist/components/Text/Text.cjs.map +1 -1
  369. package/dist/components/Text/Text.mjs +1 -1
  370. package/dist/components/Text/Text.mjs.map +1 -1
  371. package/dist/components/Text/Text.types.d.cts +1 -1
  372. package/dist/components/Text/Text.types.d.cts.map +1 -1
  373. package/dist/components/Text/Text.types.d.mts +1 -1
  374. package/dist/components/Text/Text.types.d.mts.map +1 -1
  375. package/dist/components/TextArea/TextArea.cjs +1 -1
  376. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  377. package/dist/components/TextArea/TextArea.d.cts +20 -16
  378. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  379. package/dist/components/TextArea/TextArea.d.mts +20 -16
  380. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  381. package/dist/components/TextArea/TextArea.mjs +1 -1
  382. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  383. package/dist/components/TextArea/TextArea.types.d.cts +1 -1
  384. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  385. package/dist/components/TextArea/TextArea.types.d.mts +1 -1
  386. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  387. package/dist/components/TextButton/TextButton.types.d.cts +0 -1
  388. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  389. package/dist/components/TextButton/TextButton.types.d.mts +0 -1
  390. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  391. package/dist/components/TextField/TextField.cjs +1 -1
  392. package/dist/components/TextField/TextField.cjs.map +1 -1
  393. package/dist/components/TextField/TextField.d.cts +20 -16
  394. package/dist/components/TextField/TextField.d.cts.map +1 -1
  395. package/dist/components/TextField/TextField.d.mts +20 -16
  396. package/dist/components/TextField/TextField.d.mts.map +1 -1
  397. package/dist/components/TextField/TextField.mjs +1 -1
  398. package/dist/components/TextField/TextField.mjs.map +1 -1
  399. package/dist/components/TextField/TextField.types.d.cts +1 -1
  400. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  401. package/dist/components/TextField/TextField.types.d.mts +1 -1
  402. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  403. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +20 -15
  404. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  405. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +20 -15
  406. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  407. package/dist/components/TitleAlert/TitleAlert.cjs +54 -0
  408. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -0
  409. package/dist/components/TitleAlert/TitleAlert.d.cts +21 -0
  410. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -0
  411. package/dist/components/TitleAlert/TitleAlert.d.mts +21 -0
  412. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -0
  413. package/dist/components/TitleAlert/TitleAlert.mjs +54 -0
  414. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -0
  415. package/dist/components/TitleAlert/TitleAlert.types.cjs +3 -0
  416. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -0
  417. package/dist/components/TitleAlert/TitleAlert.types.d.cts +31 -0
  418. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  419. package/dist/components/TitleAlert/TitleAlert.types.d.mts +31 -0
  420. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  421. package/dist/components/TitleAlert/TitleAlert.types.mjs +2 -0
  422. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -0
  423. package/dist/components/TitleAlert/index.cjs +6 -0
  424. package/dist/components/TitleAlert/index.cjs.map +1 -0
  425. package/dist/components/TitleAlert/index.d.cts +3 -0
  426. package/dist/components/TitleAlert/index.d.cts.map +1 -0
  427. package/dist/components/TitleAlert/index.d.mts +3 -0
  428. package/dist/components/TitleAlert/index.d.mts.map +1 -0
  429. package/dist/components/TitleAlert/index.mjs +2 -0
  430. package/dist/components/TitleAlert/index.mjs.map +1 -0
  431. package/dist/components/TitleHub/TitleHub.types.d.cts +1 -1
  432. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  433. package/dist/components/TitleHub/TitleHub.types.d.mts +1 -1
  434. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  435. package/dist/components/TitleStandard/TitleStandard.types.d.cts +1 -1
  436. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  437. package/dist/components/TitleStandard/TitleStandard.types.d.mts +1 -1
  438. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  439. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +1 -1
  440. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  441. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +1 -1
  442. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  443. package/dist/components/Toast/Toast.types.d.cts +1 -1
  444. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  445. package/dist/components/Toast/Toast.types.d.mts +1 -1
  446. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  447. package/dist/components/Toast/Toaster.cjs +1 -1
  448. package/dist/components/Toast/Toaster.cjs.map +1 -1
  449. package/dist/components/Toast/Toaster.mjs +1 -1
  450. package/dist/components/Toast/Toaster.mjs.map +1 -1
  451. package/dist/components/index.cjs +18 -2
  452. package/dist/components/index.cjs.map +1 -1
  453. package/dist/components/index.d.cts +12 -0
  454. package/dist/components/index.d.cts.map +1 -1
  455. package/dist/components/index.d.mts +12 -0
  456. package/dist/components/index.d.mts.map +1 -1
  457. package/dist/components/index.mjs +6 -0
  458. package/dist/components/index.mjs.map +1 -1
  459. package/dist/components/temp-components/Blockies/Blockies.cjs +1 -1
  460. package/dist/components/temp-components/Blockies/Blockies.cjs.map +1 -1
  461. package/dist/components/temp-components/Blockies/Blockies.mjs +1 -1
  462. package/dist/components/temp-components/Blockies/Blockies.mjs.map +1 -1
  463. package/dist/components/temp-components/Blockies/Blockies.types.d.cts +1 -1
  464. package/dist/components/temp-components/Blockies/Blockies.types.d.cts.map +1 -1
  465. package/dist/components/temp-components/Blockies/Blockies.types.d.mts +1 -1
  466. package/dist/components/temp-components/Blockies/Blockies.types.d.mts.map +1 -1
  467. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +2 -2
  468. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  469. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +2 -2
  470. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  471. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts +1 -1
  472. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts.map +1 -1
  473. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts +1 -1
  474. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts.map +1 -1
  475. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +1 -1
  476. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
  477. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs +1 -1
  478. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
  479. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +1 -2
  480. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  481. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +1 -2
  482. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  483. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
  484. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  485. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
  486. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  487. package/dist/components/temp-components/Maskicon/Maskicon.cjs +1 -1
  488. package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
  489. package/dist/components/temp-components/Maskicon/Maskicon.mjs +1 -1
  490. package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
  491. package/dist/components/temp-components/Spinner/Spinner.cjs +2 -2
  492. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  493. package/dist/components/temp-components/Spinner/Spinner.mjs +2 -2
  494. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  495. package/dist/components/temp-components/Spinner/Spinner.types.d.cts +1 -1
  496. package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +1 -1
  497. package/dist/components/temp-components/Spinner/Spinner.types.d.mts +1 -1
  498. package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +1 -1
  499. package/dist/test-utils/createRenderer.cjs +41 -0
  500. package/dist/test-utils/createRenderer.cjs.map +1 -0
  501. package/dist/test-utils/createRenderer.d.cts +4 -0
  502. package/dist/test-utils/createRenderer.d.cts.map +1 -0
  503. package/dist/test-utils/createRenderer.d.mts +4 -0
  504. package/dist/test-utils/createRenderer.d.mts.map +1 -0
  505. package/dist/test-utils/createRenderer.mjs +18 -0
  506. package/dist/test-utils/createRenderer.mjs.map +1 -0
  507. package/package.json +19 -20
  508. package/dist/components/SensitiveText/SensitiveText.constants.cjs +0 -14
  509. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +0 -1
  510. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +0 -11
  511. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +0 -1
  512. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +0 -11
  513. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +0 -1
  514. package/dist/components/SensitiveText/SensitiveText.constants.mjs +0 -11
  515. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,OAAO,EAAE,mBAAmB,EAAE,sCAAkC","sourcesContent":["export { SensitiveText } from './SensitiveText';\nexport { SensitiveTextLength } from './SensitiveText.constants';\nexport type { SensitiveTextProps } from './SensitiveText.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/SensitiveText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAC9E,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { SensitiveTextLength } from '@metamask-previews/design-system-shared';\nexport { SensitiveText } from './SensitiveText';\nexport type { SensitiveTextProps } from './SensitiveText.types';\n"]}
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Skeleton = 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 Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
31
31
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
32
32
  const opacityAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0.2)).current;
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAiD;AACjD,wDAA8C;AAIvC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,uBAAQ,CAAC,QAAQ,CAAC;YAChB,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;SACH,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,E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AC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAxFW,QAAA,QAAQ,YAwFnB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAiD;AACjD,+CAA8C;AAIvC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,uBAAQ,CAAC,QAAQ,CAAC;YAChB,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,uBAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;SACH,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;YACxB,2EAA2E;YAC3E,IAAI,QAAQ,EAAE;gBACZ,cAAc,EAAE,CAAC;aAClB;QACH,CAAC,CAAC,CAAC;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C;AACJ,CAAC,CAAC;AAxFW,QAAA,QAAQ,YAwFnB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\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, useRef } from "react";
9
9
  const React = $importDefault($React);
10
- import { Animated, View } from "react-native/index.js";
10
+ import { Animated, View } from "react-native";
11
11
  export const Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
12
12
  const tw = useTailwind();
13
13
  const opacityAnim = useRef(new Animated.Value(0.2)).current;
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;;AACjD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,8BAAqB;AAI9C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,QAAQ,CAAC,QAAQ,CAAC;YAChB,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,QAAQ,CAAC,MAAM,C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AAC,CACzB,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;gBACnC,oBAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;;AACjD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB;AAI9C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC;IAC5D,MAAM,WAAW,GAAG,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,CAAC;IAEhE,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,QAAQ,CAAC,QAAQ,CAAC;YAChB,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,aAAa,EAAE,KAAK;aACrB,CAAC;YACF,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC3B,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;gBACb,eAAe,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BAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ViewProps } from "react-native/index.js";
2
+ import type { ViewProps } from "react-native";
3
3
  /**
4
4
  * Skeleton component props.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.types.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Skeleton.types.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ViewProps } from "react-native/index.js";
2
+ import type { ViewProps } from "react-native";
3
3
  /**
4
4
  * Skeleton component props.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.types.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Skeleton.types.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ViewProps } from "react-native/index.js";
2
+ import type { ViewProps } from "react-native";
3
3
  import type { ButtonProps } from "../Button/Button.types.cjs";
4
4
  import type { TextProps } from "../Text/Text.types.cjs";
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"TabEmptyState.types.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"TabEmptyState.types.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ViewProps } from "react-native/index.js";
2
+ import type { ViewProps } from "react-native";
3
3
  import type { ButtonProps } from "../Button/Button.types.mjs";
4
4
  import type { TextProps } from "../Text/Text.types.mjs";
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"TabEmptyState.types.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"TabEmptyState.types.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { TagPropsShared } from "@metamask-previews/design-system-shared";
2
- import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { ViewProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { IconName, IconProps } from "../Icon/index.cjs";
4
4
  /**
5
5
  * Tag component props (React Native platform-specific).
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.types.d.cts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gDAAgD;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"Tag.types.d.cts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gDAAgD;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { TagPropsShared } from "@metamask-previews/design-system-shared";
2
- import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { ViewProps, StyleProp, ViewStyle } from "react-native";
3
3
  import type { IconName, IconProps } from "../Icon/index.mjs";
4
4
  /**
5
5
  * Tag component props (React Native platform-specific).
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.types.d.mts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gDAAgD;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"Tag.types.d.mts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gDAAgD;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -27,7 +27,7 @@ exports.Text = void 0;
27
27
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
28
28
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
29
29
  const react_1 = __importStar(require("react"));
30
- const react_native_1 = require("react-native/index.js");
30
+ const react_native_1 = require("react-native");
31
31
  const Text_constants_1 = require("./Text.constants.cjs");
32
32
  const Text = ({ variant = design_system_shared_1.TextVariant.BodyMd, color = design_system_shared_1.TextColor.TextDefault, style, children, fontWeight, fontFamily = design_system_shared_1.FontFamily.Default, fontStyle = design_system_shared_1.FontStyle.Normal, twClassName, ...props }) => {
33
33
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
@@ -1 +1 @@
1
- {"version":3,"file":"Text.cjs","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAKiD;AACjD,8FAA4E;AAC5E,+CAAuC;AACvC,wDAA8C;AAE9C,yDAG0B;AAGnB,MAAM,IAAI,GAAwB,CAAC,EACxC,OAAO,GAAG,kCAAW,CAAC,MAAM,EAC5B,KAAK,GAAG,gCAAS,CAAC,WAAW,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,iCAAU,CAAC,OAAO,EAC/B,SAAS,GAAG,gCAAS,CAAC,MAAM,EAC5B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,eAAe,GACnB,UAAU,IAAI,mDAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC7B,MAAM,QAAQ,GAAG,SAAS,KAAK,gCAAS,CAAC,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,GAAG,2CAA0B,CAAC,eAAe,CAAC,GAC/D,QAAQ,IAAI,UAAU,KAAK,iCAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC9D,EAAE,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,UAAU,GAAG,UAAU,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,mBAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,IAAI,QA6Bf","sourcesContent":["import {\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport {\n TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight =\n fontWeight ?? TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}
1
+ {"version":3,"file":"Text.cjs","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAKiD;AACjD,8FAA4E;AAC5E,+CAAuC;AACvC,+CAA8C;AAE9C,yDAG0B;AAGnB,MAAM,IAAI,GAAwB,CAAC,EACxC,OAAO,GAAG,kCAAW,CAAC,MAAM,EAC5B,KAAK,GAAG,gCAAS,CAAC,WAAW,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,iCAAU,CAAC,OAAO,EAC/B,SAAS,GAAG,gCAAS,CAAC,MAAM,EAC5B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,eAAe,GACnB,UAAU,IAAI,mDAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC7B,MAAM,QAAQ,GAAG,SAAS,KAAK,gCAAS,CAAC,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,GAAG,2CAA0B,CAAC,eAAe,CAAC,GAC/D,QAAQ,IAAI,UAAU,KAAK,iCAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC9D,EAAE,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,UAAU,GAAG,UAAU,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,mBAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,IAAI,QA6Bf","sourcesContent":["import {\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport {\n TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight =\n fontWeight ?? TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}
@@ -8,7 +8,7 @@ import { FontFamily, FontStyle, TextColor, TextVariant } from "@metamask-preview
8
8
  import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
9
9
  import $React, { useMemo } from "react";
10
10
  const React = $importDefault($React);
11
- import { Text as RNText } from "react-native/index.js";
11
+ import { Text as RNText } from "react-native";
12
12
  import { TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT, TWCLASSMAP_TEXT_FONTWEIGHT } from "./Text.constants.mjs";
13
13
  export const Text = ({ variant = TextVariant.BodyMd, color = TextColor.TextDefault, style, children, fontWeight, fontFamily = FontFamily.Default, fontStyle = FontStyle.Normal, twClassName, ...props }) => {
14
14
  const tw = useTailwind();
@@ -1 +1 @@
1
- {"version":3,"file":"Text.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,OAAO,EAAE,cAAc;;AACvC,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,8BAAqB;AAE9C,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC3B,6BAAyB;AAG1B,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,OAAO,GAAG,WAAW,CAAC,MAAM,EAC5B,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,UAAU,CAAC,OAAO,EAC/B,SAAS,GAAG,SAAS,CAAC,MAAM,EAC5B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,eAAe,GACnB,UAAU,IAAI,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,MAAM,QAAQ,GAAG,SAAS,KAAK,SAAS,CAAC,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,GAAG,0BAA0B,CAAC,eAAe,CAAC,GAC/D,QAAQ,IAAI,UAAU,KAAK,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC9D,EAAE,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,UAAU,GAAG,UAAU,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport {\n TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight =\n fontWeight ?? TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}
1
+ {"version":3,"file":"Text.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,OAAO,EAAE,cAAc;;AACvC,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,qBAAqB;AAE9C,OAAO,EACL,kCAAkC,EAClC,0BAA0B,EAC3B,6BAAyB;AAG1B,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,OAAO,GAAG,WAAW,CAAC,MAAM,EAC5B,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,UAAU,CAAC,OAAO,EAC/B,SAAS,GAAG,SAAS,CAAC,MAAM,EAC5B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,eAAe,GACnB,UAAU,IAAI,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,MAAM,QAAQ,GAAG,SAAS,KAAK,SAAS,CAAC,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,GAAG,0BAA0B,CAAC,eAAe,CAAC,GAC/D,QAAQ,IAAI,UAAU,KAAK,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC9D,EAAE,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,UAAU,GAAG,UAAU,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport {\n TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight =\n fontWeight ?? TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { TextPropsShared } from "@metamask-previews/design-system-shared";
2
- import type { TextProps as RNTextProps } from "react-native/index.js";
2
+ import type { TextProps as RNTextProps } from "react-native";
3
3
  /**
4
4
  * Text component props.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAC/E,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,8BAAqB;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GACrC,WAAW,GAAG;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAC/E,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,qBAAqB;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GACrC,WAAW,GAAG;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { TextPropsShared } from "@metamask-previews/design-system-shared";
2
- import type { TextProps as RNTextProps } from "react-native/index.js";
2
+ import type { TextProps as RNTextProps } from "react-native";
3
3
  /**
4
4
  * Text component props.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAC/E,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,8BAAqB;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GACrC,WAAW,GAAG;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAC/E,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,qBAAqB;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GACrC,WAAW,GAAG;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextArea = void 0;
4
4
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
5
5
  const react_1 = require("react");
6
- const react_native_1 = require("react-native/index.js");
6
+ const react_native_1 = require("react-native");
7
7
  const Box_1 = require("../Box/index.cjs");
8
8
  const Input_1 = require("../Input/index.cjs");
9
9
  exports.TextArea = (0, react_1.forwardRef)(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, textVariant, inputElement, style, twClassName, testID, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;AAAA,8FAA4E;AAC5E,iCAAqE;AACrE,wDAAoC;AAEpC,0CAA6B;AAC7B,8CAAiC;AAKpB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,UAAU,EAAE;YAC5B,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,MAAM,EACJ,WAAW,EAAE,yBAAyB,EACtC,GAAG,2BAA2B,EAC/B,GAAG,UAAU,IAAI,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CAAC,CAAmD,EAAE,EAAE;QACtD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;SACb;IACH,CA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CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,WAAW,CAAC,CAAC,uEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,EACH,CACH,CACH;MAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
1
+ {"version":3,"file":"TextArea.cjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";;;AAAA,8FAA4E;AAC5E,iCAAqE;AACrE,+CAAoC;AAEpC,0CAA6B;AAC7B,8CAAiC;AAKpB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,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N,CAAC,CAEF;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,aAAK,CACJ,IAAI,2BAA2B,CAAC,CAChC,GAAG,CAAC,CAAC,QAAQ,CAAC,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,WAAW,CAAC,CAAC,uEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,EACH,CACH,CACH;MAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import { View } from "react-native/index.js";
1
+ import { View } from "react-native";
3
2
  export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "isStateStylesDisabled"> & {
4
3
  isError?: boolean | undefined;
5
4
  inputElement?: import("react").ReactNode;
6
5
  } & {
7
6
  onChangeText?: ((text: string) => void) | undefined;
8
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
9
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
7
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
8
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
10
9
  inputProps?: {
11
10
  children?: import("react").ReactNode;
12
11
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -87,6 +86,7 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
87
86
  'aria-labelledby'?: string | undefined;
88
87
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
89
88
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
89
+ screenReaderFocusable?: boolean | undefined;
90
90
  accessibilityElementsHidden?: boolean | undefined;
91
91
  accessibilityViewIsModal?: boolean | undefined;
92
92
  onAccessibilityEscape?: (() => void) | undefined;
@@ -96,6 +96,7 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
96
96
  accessibilityLanguage?: string | undefined;
97
97
  accessibilityShowsLargeContentViewer?: boolean | undefined;
98
98
  accessibilityLargeContentTitle?: string | undefined;
99
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
99
100
  twClassName?: string | undefined;
100
101
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
101
102
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -106,8 +107,11 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
106
107
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
107
108
  selectionColor?: import("react-native").ColorValue | undefined;
108
109
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
110
+ textAlign?: "center" | "left" | "right" | undefined;
111
+ textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
112
+ verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
109
113
  rejectResponderTermination?: boolean | null | undefined;
110
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
114
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
111
115
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
112
116
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
113
117
  autoCorrect?: boolean | undefined;
@@ -118,12 +122,12 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
118
122
  keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
119
123
  inputMode?: import("react-native").InputModeOptions | undefined;
120
124
  maxLength?: number | undefined;
121
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
122
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
123
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
124
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
125
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
126
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
125
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
126
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
127
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
128
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
129
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
130
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
127
131
  readOnly?: boolean | undefined;
128
132
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
129
133
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -133,8 +137,9 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
133
137
  start: number;
134
138
  end?: number | undefined;
135
139
  } | undefined;
136
- textAlign?: "center" | "left" | "right" | undefined;
137
140
  inputAccessoryViewID?: string | undefined;
141
+ inputAccessoryViewButtonLabel?: string | undefined;
142
+ disableKeyboardShortcuts?: boolean | undefined;
138
143
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
139
144
  clearTextOnFocus?: boolean | undefined;
140
145
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -143,8 +148,9 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
143
148
  passwordRules?: string | null | undefined;
144
149
  selectionState?: import("react-native").DocumentSelectionState | undefined;
145
150
  spellCheck?: boolean | undefined;
146
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
151
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
147
152
  scrollEnabled?: boolean | undefined;
153
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
148
154
  smartInsertDelete?: boolean | undefined;
149
155
  cursorColor?: import("react-native").ColorValue | null | undefined;
150
156
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -154,13 +160,11 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
154
160
  inlineImagePadding?: number | undefined;
155
161
  returnKeyLabel?: string | undefined;
156
162
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
157
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
158
163
  showSoftInputOnFocus?: boolean | undefined;
159
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
160
164
  } | undefined;
161
165
  inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
162
166
  twClassName?: string | undefined;
163
167
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
164
168
  testID?: string | undefined;
165
- } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
169
+ } & Omit<import("../Box/index.cjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
166
170
  //# sourceMappingURL=TextArea.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.cts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
@@ -1,12 +1,11 @@
1
- /// <reference types="react" />
2
- import { View } from "react-native/index.js";
1
+ import { View } from "react-native";
3
2
  export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<import("@metamask-previews/design-system-shared").InputPropsShared, "isStateStylesDisabled"> & {
4
3
  isError?: boolean | undefined;
5
4
  inputElement?: import("react").ReactNode;
6
5
  } & {
7
6
  onChangeText?: ((text: string) => void) | undefined;
8
- onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
9
- onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
7
+ onFocus?: ((e: import("react-native").FocusEvent) => void) | undefined;
8
+ onBlur?: ((e: import("react-native").BlurEvent) => void) | undefined;
10
9
  inputProps?: {
11
10
  children?: import("react").ReactNode;
12
11
  hitSlop?: number | import("react-native").Insets | null | undefined;
@@ -87,6 +86,7 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
87
86
  'aria-labelledby'?: string | undefined;
88
87
  accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
89
88
  'aria-live'?: "polite" | "assertive" | "off" | undefined;
89
+ screenReaderFocusable?: boolean | undefined;
90
90
  accessibilityElementsHidden?: boolean | undefined;
91
91
  accessibilityViewIsModal?: boolean | undefined;
92
92
  onAccessibilityEscape?: (() => void) | undefined;
@@ -96,6 +96,7 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
96
96
  accessibilityLanguage?: string | undefined;
97
97
  accessibilityShowsLargeContentViewer?: boolean | undefined;
98
98
  accessibilityLargeContentTitle?: string | undefined;
99
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
99
100
  twClassName?: string | undefined;
100
101
  onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
101
102
  onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
@@ -106,8 +107,11 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
106
107
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
107
108
  selectionColor?: import("react-native").ColorValue | undefined;
108
109
  textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
110
+ textAlign?: "center" | "left" | "right" | undefined;
111
+ textAlignVertical?: "auto" | "center" | "bottom" | "top" | undefined;
112
+ verticalAlign?: "auto" | "bottom" | "top" | "middle" | undefined;
109
113
  rejectResponderTermination?: boolean | null | undefined;
110
- onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
114
+ onChange?: ((e: import("react-native").TextInputChangeEvent) => void) | undefined;
111
115
  autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
112
116
  autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
113
117
  autoCorrect?: boolean | undefined;
@@ -118,12 +122,12 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
118
122
  keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
119
123
  inputMode?: import("react-native").InputModeOptions | undefined;
120
124
  maxLength?: number | undefined;
121
- onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
122
- onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
123
- onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
124
- onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
125
- onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
126
- onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
125
+ onContentSizeChange?: ((e: import("react-native").TextInputContentSizeChangeEvent) => void) | undefined;
126
+ onEndEditing?: ((e: import("react-native").TextInputEndEditingEvent) => void) | undefined;
127
+ onSelectionChange?: ((e: import("react-native").TextInputSelectionChangeEvent) => void) | undefined;
128
+ onSubmitEditing?: ((e: import("react-native").TextInputSubmitEditingEvent) => void) | undefined;
129
+ onScroll?: ((e: import("react-native").TextInputScrollEvent) => void) | undefined;
130
+ onKeyPress?: ((e: import("react-native").TextInputKeyPressEvent) => void) | undefined;
127
131
  readOnly?: boolean | undefined;
128
132
  returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
129
133
  enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
@@ -133,8 +137,9 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
133
137
  start: number;
134
138
  end?: number | undefined;
135
139
  } | undefined;
136
- textAlign?: "center" | "left" | "right" | undefined;
137
140
  inputAccessoryViewID?: string | undefined;
141
+ inputAccessoryViewButtonLabel?: string | undefined;
142
+ disableKeyboardShortcuts?: boolean | undefined;
138
143
  clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
139
144
  clearTextOnFocus?: boolean | undefined;
140
145
  dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
@@ -143,8 +148,9 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
143
148
  passwordRules?: string | null | undefined;
144
149
  selectionState?: import("react-native").DocumentSelectionState | undefined;
145
150
  spellCheck?: boolean | undefined;
146
- textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
151
+ textContentType?: "none" | "name" | "nickname" | "password" | "username" | "flightNumber" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | "cellularEID" | "cellularIMEI" | "dateTime" | "shipmentTrackingNumber" | undefined;
147
152
  scrollEnabled?: boolean | undefined;
153
+ lineBreakModeIOS?: "head" | "middle" | "tail" | "clip" | "wordWrapping" | "char" | undefined;
148
154
  smartInsertDelete?: boolean | undefined;
149
155
  cursorColor?: import("react-native").ColorValue | null | undefined;
150
156
  selectionHandleColor?: import("react-native").ColorValue | null | undefined;
@@ -154,13 +160,11 @@ export declare const TextArea: import("react").ForwardRefExoticComponent<Omit<im
154
160
  inlineImagePadding?: number | undefined;
155
161
  returnKeyLabel?: string | undefined;
156
162
  underlineColorAndroid?: import("react-native").ColorValue | undefined;
157
- textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
158
163
  showSoftInputOnFocus?: boolean | undefined;
159
- verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
160
164
  } | undefined;
161
165
  inputRef?: import("react").Ref<import("react-native").TextInput> | undefined;
162
166
  twClassName?: string | undefined;
163
167
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
164
168
  testID?: string | undefined;
165
- } & Omit<import("../Box/index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
169
+ } & Omit<import("../Box/index.mjs").BoxProps, "children" | "style" | "testID" | "onBlur" | "onFocus" | "accessible" | "twClassName" | "isDisabled" | "value" | "autoFocus" | "onChangeText" | "placeholder" | "textVariant" | "isReadOnly" | "isError" | "inputElement" | "inputProps" | "inputRef"> & import("react").RefAttributes<View>>;
166
170
  //# sourceMappingURL=TextArea.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.mts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.mts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAQpC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iUAyGpB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
2
2
  import { forwardRef, useCallback, useEffect, useState } from "react";
3
- import { View } from "react-native/index.js";
3
+ import { View } from "react-native";
4
4
  import { Box } from "../Box/index.mjs";
5
5
  import { Input } from "../Input/index.mjs";
6
6
  export const TextArea = forwardRef(({ value, onChangeText, placeholder, isReadOnly, onBlur, onFocus, autoFocus = false, inputProps, inputRef, isDisabled = false, isError = false, textVariant, inputElement, style, twClassName, testID, ...props }, ref) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.mjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc;AACrE,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,KAAK,EAAE,2BAAiB;AAKjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU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AM,CAAC,CACf,UAAU,CAAC,CAAC,KAAK,CAAC,CAClB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,IAAI,cAAc,EAC5B,CAAC,UAAU,IAAI,OAAO,IAAI,sBAAsB,EAChD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,SAAS,IAAI,gBAAgB,EACxD,CAAC,UAAU,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,IAAI,cAAc,EACvD,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;QAAA,CAAC,YAAY,IAAI,CACf,CAAC,KAAK,CACJ,IAAI,2BAA2B,CAAC,CAChC,GAAG,CAAC,CAAC,QAAQ,CAAC,CACd,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,WAAW,CAAC,CAAC,uEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,EACH,CACH,CACH;MAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
1
+ {"version":3,"file":"TextArea.mjs","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc;AACrE,OAAO,EAAE,IAAI,EAAE,qBAAqB;AAEpC,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,KAAK,EAAE,2BAAiB;AAKjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAChC,CACE,EACE,KAAK,EACL,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,UAAU,EACV,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,KAAK,EACf,WAAW,EACX,YAAY,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,UAAU,EAAE;YAC5B,YAAY,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,MAAM,EACJ,WAAW,EAAE,yBAAyB,EACtC,GAAG,2BAA2B,EAC/B,GAAG,UAAU,IAAI,EAAE,CAAC;IAErB,MAAM,aAAa,GAAG,WAAW,CAC/B,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AAC,WAAW,CAAC,CACzB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,qBAAqB,CACrB,SAAS,CACT,iBAAiB,CAAC,KAAK,CACvB,WAAW,CAAC,CAAC,uEACX,yBAAyB,CAAC,CAAC,CAAC,IAAI,yBAAyB,EAAE,CAAC,CAAC,CAAC,EAChE,EAAE,CAAC,EACH,CACH,CACH;MAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport { forwardRef, useCallback, useEffect, useState } from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../Box';\nimport { Input } from '../Input';\nimport type { InputProps } from '../Input/Input.types';\n\nimport type { TextAreaProps } from './TextArea.types';\n\nexport const TextArea = forwardRef<View, TextAreaProps>(\n (\n {\n value,\n onChangeText,\n placeholder,\n isReadOnly,\n onBlur,\n onFocus,\n autoFocus = false,\n inputProps,\n inputRef,\n isDisabled = false,\n isError = false,\n textVariant,\n inputElement,\n style,\n twClassName,\n testID,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n\n useEffect(() => {\n if (isDisabled || isReadOnly) {\n setIsFocused(false);\n }\n }, [isDisabled, isReadOnly]);\n\n const {\n twClassName: inputTwClassNameFromProps,\n ...inputRestWithoutTwClassName\n } = inputProps ?? {};\n\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n\n return (\n <Box\n ref={ref}\n {...props}\n testID={testID}\n accessible={false}\n style={[\n tw.style(\n 'rounded-lg',\n 'min-h-24',\n 'border',\n 'px-4',\n 'py-3',\n 'bg-muted',\n isDisabled && 'border-muted',\n !isDisabled && isError && 'border-error-default',\n !isDisabled && !isError && isFocused && 'border-default',\n !isDisabled && !isError && !isFocused && 'border-muted',\n isDisabled && 'opacity-50',\n twClassName,\n ),\n style,\n ]}\n >\n {inputElement || (\n <Input\n {...inputRestWithoutTwClassName}\n ref={inputRef}\n value={value}\n onChangeText={onChangeText}\n placeholder={placeholder}\n isReadOnly={isReadOnly}\n textVariant={textVariant}\n isDisabled={isDisabled}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n isStateStylesDisabled\n multiline\n textAlignVertical=\"top\"\n twClassName={`min-h-[88px] w-full flex-1 self-stretch bg-transparent border-0 py-1${\n inputTwClassNameFromProps ? ` ${inputTwClassNameFromProps}` : ''\n }`}\n />\n )}\n </Box>\n );\n },\n);\n\nTextArea.displayName = 'TextArea';\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { TextAreaPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { Ref } from "react";
3
- import type { StyleProp, TextInput, ViewStyle } from "react-native/index.js";
3
+ import type { StyleProp, TextInput, ViewStyle } from "react-native";
4
4
  import type { BoxProps } from "../Box/Box.types.cjs";
5
5
  import type { InputProps } from "../Input/Input.types.cjs";
6
6
  /**