@metamask/design-system-react-native 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/CHANGELOG.md +37 -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 +28 -17
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +0 -35
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +0 -35
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +30 -19
  77. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  79. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +1 -9
  80. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  81. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +1 -9
  82. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  83. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  84. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +1 -1
  85. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
  86. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +1 -1
  87. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
  88. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +1 -1
  89. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -1
  90. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +1 -1
  91. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -1
  92. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +2 -6
  93. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -1
  94. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -1
  95. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -1
  96. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +2 -6
  97. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -1
  98. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +0 -11
  99. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -1
  100. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +6 -20
  101. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -1
  102. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +6 -20
  103. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -1
  104. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +1 -10
  105. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -1
  106. package/dist/components/BottomSheetHeader/index.cjs +1 -3
  107. package/dist/components/BottomSheetHeader/index.cjs.map +1 -1
  108. package/dist/components/BottomSheetHeader/index.d.cts +0 -1
  109. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -1
  110. package/dist/components/BottomSheetHeader/index.d.mts +0 -1
  111. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -1
  112. package/dist/components/BottomSheetHeader/index.mjs +0 -1
  113. package/dist/components/BottomSheetHeader/index.mjs.map +1 -1
  114. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +2 -2
  115. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
  116. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts.map +1 -1
  117. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts.map +1 -1
  118. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +3 -3
  119. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -1
  120. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +1 -1
  121. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -1
  122. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +1 -1
  123. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -1
  124. package/dist/components/Box/Box.cjs +1 -1
  125. package/dist/components/Box/Box.cjs.map +1 -1
  126. package/dist/components/Box/Box.d.cts +1 -1
  127. package/dist/components/Box/Box.d.cts.map +1 -1
  128. package/dist/components/Box/Box.d.mts +1 -1
  129. package/dist/components/Box/Box.d.mts.map +1 -1
  130. package/dist/components/Box/Box.mjs +1 -1
  131. package/dist/components/Box/Box.mjs.map +1 -1
  132. package/dist/components/Box/Box.types.d.cts +1 -1
  133. package/dist/components/Box/Box.types.d.cts.map +1 -1
  134. package/dist/components/Box/Box.types.d.mts +1 -1
  135. package/dist/components/Box/Box.types.d.mts.map +1 -1
  136. package/dist/components/ButtonBase/ButtonBase.types.d.cts +1 -2
  137. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  138. package/dist/components/ButtonBase/ButtonBase.types.d.mts +1 -2
  139. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  140. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +1 -1
  141. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  142. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +1 -1
  143. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  144. package/dist/components/Card/Card.cjs +2 -2
  145. package/dist/components/Card/Card.cjs.map +1 -1
  146. package/dist/components/Card/Card.mjs +2 -2
  147. package/dist/components/Card/Card.mjs.map +1 -1
  148. package/dist/components/Card/Card.types.cjs.map +1 -1
  149. package/dist/components/Card/Card.types.d.cts +2 -2
  150. package/dist/components/Card/Card.types.d.cts.map +1 -1
  151. package/dist/components/Card/Card.types.d.mts +2 -2
  152. package/dist/components/Card/Card.types.d.mts.map +1 -1
  153. package/dist/components/Card/Card.types.mjs.map +1 -1
  154. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  155. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  156. package/dist/components/Checkbox/Checkbox.d.cts +1 -1
  157. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  158. package/dist/components/Checkbox/Checkbox.d.mts +1 -1
  159. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  160. package/dist/components/Checkbox/Checkbox.mjs +1 -1
  161. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  162. package/dist/components/Checkbox/Checkbox.types.d.cts +1 -1
  163. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  164. package/dist/components/Checkbox/Checkbox.types.d.mts +1 -1
  165. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  166. package/dist/components/HeaderBase/HeaderBase.cjs +94 -73
  167. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  168. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -1
  169. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -1
  170. package/dist/components/HeaderBase/HeaderBase.mjs +94 -73
  171. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  172. package/dist/components/HeaderBase/HeaderBase.types.cjs +0 -12
  173. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -1
  174. package/dist/components/HeaderBase/HeaderBase.types.d.cts +12 -20
  175. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  176. package/dist/components/HeaderBase/HeaderBase.types.d.mts +12 -20
  177. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  178. package/dist/components/HeaderBase/HeaderBase.types.mjs +1 -11
  179. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -1
  180. package/dist/components/HeaderBase/index.cjs +1 -3
  181. package/dist/components/HeaderBase/index.cjs.map +1 -1
  182. package/dist/components/HeaderBase/index.d.cts +0 -1
  183. package/dist/components/HeaderBase/index.d.cts.map +1 -1
  184. package/dist/components/HeaderBase/index.d.mts +0 -1
  185. package/dist/components/HeaderBase/index.d.mts.map +1 -1
  186. package/dist/components/HeaderBase/index.mjs +0 -1
  187. package/dist/components/HeaderBase/index.mjs.map +1 -1
  188. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +1 -1
  189. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -1
  190. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +1 -1
  191. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -1
  192. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs +4 -12
  193. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs.map +1 -1
  194. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts +0 -8
  195. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.cts.map +1 -1
  196. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts +0 -8
  197. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.d.mts.map +1 -1
  198. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs +3 -10
  199. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.mjs.map +1 -1
  200. package/dist/components/Icon/Icon.assets.cjs +2 -0
  201. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  202. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  203. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  204. package/dist/components/Icon/Icon.assets.mjs +2 -0
  205. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  206. package/dist/components/Icon/Icon.cjs +3 -1
  207. package/dist/components/Icon/Icon.cjs.map +1 -1
  208. package/dist/components/Icon/Icon.d.cts.map +1 -1
  209. package/dist/components/Icon/Icon.d.mts.map +1 -1
  210. package/dist/components/Icon/Icon.mjs +3 -1
  211. package/dist/components/Icon/Icon.mjs.map +1 -1
  212. package/dist/components/Icon/assets/flash-filled.svg +1 -0
  213. package/dist/components/Icon/assets/telegram.svg +1 -3
  214. package/dist/components/Input/Input.cjs +1 -1
  215. package/dist/components/Input/Input.cjs.map +1 -1
  216. package/dist/components/Input/Input.d.cts +1 -2
  217. package/dist/components/Input/Input.d.cts.map +1 -1
  218. package/dist/components/Input/Input.d.mts +1 -2
  219. package/dist/components/Input/Input.d.mts.map +1 -1
  220. package/dist/components/Input/Input.mjs +1 -1
  221. package/dist/components/Input/Input.mjs.map +1 -1
  222. package/dist/components/Input/Input.types.d.cts +1 -1
  223. package/dist/components/Input/Input.types.d.cts.map +1 -1
  224. package/dist/components/Input/Input.types.d.mts +1 -1
  225. package/dist/components/Input/Input.types.d.mts.map +1 -1
  226. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +1 -1
  227. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -1
  228. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +1 -1
  229. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -1
  230. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +1 -1
  231. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  232. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +1 -1
  233. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  234. package/dist/components/ListItem/ListItem.cjs +1 -1
  235. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  236. package/dist/components/ListItem/ListItem.mjs +1 -1
  237. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  238. package/dist/components/ListItem/ListItem.types.d.cts +1 -1
  239. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
  240. package/dist/components/ListItem/ListItem.types.d.mts +1 -1
  241. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
  242. package/dist/components/MainActionButton/MainActionButton.types.d.cts +1 -1
  243. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -1
  244. package/dist/components/MainActionButton/MainActionButton.types.d.mts +1 -1
  245. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -1
  246. package/dist/components/RadioButton/RadioButton.cjs +1 -1
  247. package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
  248. package/dist/components/RadioButton/RadioButton.mjs +1 -1
  249. package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
  250. package/dist/components/RadioButton/RadioButton.types.d.cts +1 -2
  251. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -1
  252. package/dist/components/RadioButton/RadioButton.types.d.mts +1 -2
  253. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -1
  254. package/dist/components/SectionDivider/SectionDivider.cjs +47 -0
  255. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -0
  256. package/dist/components/SectionDivider/SectionDivider.d.cts +6 -0
  257. package/dist/components/SectionDivider/SectionDivider.d.cts.map +1 -0
  258. package/dist/components/SectionDivider/SectionDivider.d.mts +6 -0
  259. package/dist/components/SectionDivider/SectionDivider.d.mts.map +1 -0
  260. package/dist/components/SectionDivider/SectionDivider.mjs +28 -0
  261. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -0
  262. package/dist/components/SectionDivider/SectionDivider.types.cjs +3 -0
  263. package/dist/components/SectionDivider/SectionDivider.types.cjs.map +1 -0
  264. package/dist/components/SectionDivider/SectionDivider.types.d.cts +3 -0
  265. package/dist/components/SectionDivider/SectionDivider.types.d.cts.map +1 -0
  266. package/dist/components/SectionDivider/SectionDivider.types.d.mts +3 -0
  267. package/dist/components/SectionDivider/SectionDivider.types.d.mts.map +1 -0
  268. package/dist/components/SectionDivider/SectionDivider.types.mjs +2 -0
  269. package/dist/components/SectionDivider/SectionDivider.types.mjs.map +1 -0
  270. package/dist/components/SectionDivider/index.cjs +6 -0
  271. package/dist/components/SectionDivider/index.cjs.map +1 -0
  272. package/dist/components/SectionDivider/index.d.cts +3 -0
  273. package/dist/components/SectionDivider/index.d.cts.map +1 -0
  274. package/dist/components/SectionDivider/index.d.mts +3 -0
  275. package/dist/components/SectionDivider/index.d.mts.map +1 -0
  276. package/dist/components/SectionDivider/index.mjs +2 -0
  277. package/dist/components/SectionDivider/index.mjs.map +1 -0
  278. package/dist/components/SectionHeader/SectionHeader.cjs +45 -0
  279. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -0
  280. package/dist/components/SectionHeader/SectionHeader.d.cts +23 -0
  281. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -0
  282. package/dist/components/SectionHeader/SectionHeader.d.mts +23 -0
  283. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -0
  284. package/dist/components/SectionHeader/SectionHeader.mjs +45 -0
  285. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -0
  286. package/dist/components/SectionHeader/SectionHeader.types.cjs +3 -0
  287. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -0
  288. package/dist/components/SectionHeader/SectionHeader.types.d.cts +32 -0
  289. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -0
  290. package/dist/components/SectionHeader/SectionHeader.types.d.mts +32 -0
  291. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -0
  292. package/dist/components/SectionHeader/SectionHeader.types.mjs +2 -0
  293. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -0
  294. package/dist/components/SectionHeader/index.cjs +6 -0
  295. package/dist/components/SectionHeader/index.cjs.map +1 -0
  296. package/dist/components/SectionHeader/index.d.cts +3 -0
  297. package/dist/components/SectionHeader/index.d.cts.map +1 -0
  298. package/dist/components/SectionHeader/index.d.mts +3 -0
  299. package/dist/components/SectionHeader/index.d.mts.map +1 -0
  300. package/dist/components/SectionHeader/index.mjs +2 -0
  301. package/dist/components/SectionHeader/index.mjs.map +1 -0
  302. package/dist/components/SegmentGroup/SegmentGroup.cjs +5 -7
  303. package/dist/components/SegmentGroup/SegmentGroup.cjs.map +1 -1
  304. package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +1 -1
  305. package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +1 -1
  306. package/dist/components/SegmentGroup/SegmentGroup.mjs +6 -8
  307. package/dist/components/SegmentGroup/SegmentGroup.mjs.map +1 -1
  308. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +1 -1
  309. package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +1 -1
  310. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +1 -1
  311. package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +1 -1
  312. package/dist/components/SelectButton/SelectButton.cjs +1 -1
  313. package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
  314. package/dist/components/SelectButton/SelectButton.mjs +2 -2
  315. package/dist/components/SelectButton/SelectButton.mjs.map +1 -1
  316. package/dist/components/SelectButton/SelectButton.types.cjs.map +1 -1
  317. package/dist/components/SelectButton/SelectButton.types.d.cts +1 -1
  318. package/dist/components/SelectButton/SelectButton.types.d.cts.map +1 -1
  319. package/dist/components/SelectButton/SelectButton.types.d.mts +1 -1
  320. package/dist/components/SelectButton/SelectButton.types.d.mts.map +1 -1
  321. package/dist/components/SelectButton/SelectButton.types.mjs.map +1 -1
  322. package/dist/components/SelectButton/index.cjs +2 -1
  323. package/dist/components/SelectButton/index.cjs.map +1 -1
  324. package/dist/components/SelectButton/index.d.cts +1 -1
  325. package/dist/components/SelectButton/index.d.cts.map +1 -1
  326. package/dist/components/SelectButton/index.d.mts +1 -1
  327. package/dist/components/SelectButton/index.d.mts.map +1 -1
  328. package/dist/components/SelectButton/index.mjs +1 -1
  329. package/dist/components/SelectButton/index.mjs.map +1 -1
  330. package/dist/components/Skeleton/Skeleton.cjs +1 -1
  331. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  332. package/dist/components/Skeleton/Skeleton.mjs +1 -1
  333. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  334. package/dist/components/Skeleton/Skeleton.types.d.cts +1 -1
  335. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -1
  336. package/dist/components/Skeleton/Skeleton.types.d.mts +1 -1
  337. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -1
  338. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +1 -1
  339. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -1
  340. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +1 -1
  341. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -1
  342. package/dist/components/Tag/Tag.types.d.cts +1 -1
  343. package/dist/components/Tag/Tag.types.d.cts.map +1 -1
  344. package/dist/components/Tag/Tag.types.d.mts +1 -1
  345. package/dist/components/Tag/Tag.types.d.mts.map +1 -1
  346. package/dist/components/Text/Text.cjs +1 -1
  347. package/dist/components/Text/Text.cjs.map +1 -1
  348. package/dist/components/Text/Text.mjs +1 -1
  349. package/dist/components/Text/Text.mjs.map +1 -1
  350. package/dist/components/Text/Text.types.d.cts +1 -1
  351. package/dist/components/Text/Text.types.d.cts.map +1 -1
  352. package/dist/components/Text/Text.types.d.mts +1 -1
  353. package/dist/components/Text/Text.types.d.mts.map +1 -1
  354. package/dist/components/TextArea/TextArea.cjs +1 -1
  355. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  356. package/dist/components/TextArea/TextArea.d.cts +20 -16
  357. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  358. package/dist/components/TextArea/TextArea.d.mts +20 -16
  359. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  360. package/dist/components/TextArea/TextArea.mjs +1 -1
  361. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  362. package/dist/components/TextArea/TextArea.types.d.cts +1 -1
  363. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -1
  364. package/dist/components/TextArea/TextArea.types.d.mts +1 -1
  365. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -1
  366. package/dist/components/TextButton/TextButton.types.d.cts +0 -1
  367. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  368. package/dist/components/TextButton/TextButton.types.d.mts +0 -1
  369. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  370. package/dist/components/TextField/TextField.cjs +1 -1
  371. package/dist/components/TextField/TextField.cjs.map +1 -1
  372. package/dist/components/TextField/TextField.d.cts +20 -16
  373. package/dist/components/TextField/TextField.d.cts.map +1 -1
  374. package/dist/components/TextField/TextField.d.mts +20 -16
  375. package/dist/components/TextField/TextField.d.mts.map +1 -1
  376. package/dist/components/TextField/TextField.mjs +1 -1
  377. package/dist/components/TextField/TextField.mjs.map +1 -1
  378. package/dist/components/TextField/TextField.types.d.cts +1 -1
  379. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  380. package/dist/components/TextField/TextField.types.d.mts +1 -1
  381. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  382. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +20 -15
  383. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  384. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +20 -15
  385. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  386. package/dist/components/TitleAlert/TitleAlert.cjs +54 -0
  387. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -0
  388. package/dist/components/TitleAlert/TitleAlert.d.cts +21 -0
  389. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -0
  390. package/dist/components/TitleAlert/TitleAlert.d.mts +21 -0
  391. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -0
  392. package/dist/components/TitleAlert/TitleAlert.mjs +54 -0
  393. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -0
  394. package/dist/components/TitleAlert/TitleAlert.types.cjs +3 -0
  395. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -0
  396. package/dist/components/TitleAlert/TitleAlert.types.d.cts +31 -0
  397. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -0
  398. package/dist/components/TitleAlert/TitleAlert.types.d.mts +31 -0
  399. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -0
  400. package/dist/components/TitleAlert/TitleAlert.types.mjs +2 -0
  401. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -0
  402. package/dist/components/TitleAlert/index.cjs +6 -0
  403. package/dist/components/TitleAlert/index.cjs.map +1 -0
  404. package/dist/components/TitleAlert/index.d.cts +3 -0
  405. package/dist/components/TitleAlert/index.d.cts.map +1 -0
  406. package/dist/components/TitleAlert/index.d.mts +3 -0
  407. package/dist/components/TitleAlert/index.d.mts.map +1 -0
  408. package/dist/components/TitleAlert/index.mjs +2 -0
  409. package/dist/components/TitleAlert/index.mjs.map +1 -0
  410. package/dist/components/TitleHub/TitleHub.types.d.cts +1 -1
  411. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  412. package/dist/components/TitleHub/TitleHub.types.d.mts +1 -1
  413. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  414. package/dist/components/TitleStandard/TitleStandard.types.d.cts +1 -1
  415. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  416. package/dist/components/TitleStandard/TitleStandard.types.d.mts +1 -1
  417. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  418. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +1 -1
  419. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  420. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +1 -1
  421. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  422. package/dist/components/Toast/Toast.types.d.cts +1 -1
  423. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  424. package/dist/components/Toast/Toast.types.d.mts +1 -1
  425. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  426. package/dist/components/Toast/Toaster.cjs +1 -1
  427. package/dist/components/Toast/Toaster.cjs.map +1 -1
  428. package/dist/components/Toast/Toaster.mjs +1 -1
  429. package/dist/components/Toast/Toaster.mjs.map +1 -1
  430. package/dist/components/index.cjs +10 -5
  431. package/dist/components/index.cjs.map +1 -1
  432. package/dist/components/index.d.cts +9 -3
  433. package/dist/components/index.d.cts.map +1 -1
  434. package/dist/components/index.d.mts +9 -3
  435. package/dist/components/index.d.mts.map +1 -1
  436. package/dist/components/index.mjs +6 -3
  437. package/dist/components/index.mjs.map +1 -1
  438. package/dist/components/temp-components/Blockies/Blockies.cjs +1 -1
  439. package/dist/components/temp-components/Blockies/Blockies.cjs.map +1 -1
  440. package/dist/components/temp-components/Blockies/Blockies.mjs +1 -1
  441. package/dist/components/temp-components/Blockies/Blockies.mjs.map +1 -1
  442. package/dist/components/temp-components/Blockies/Blockies.types.d.cts +1 -1
  443. package/dist/components/temp-components/Blockies/Blockies.types.d.cts.map +1 -1
  444. package/dist/components/temp-components/Blockies/Blockies.types.d.mts +1 -1
  445. package/dist/components/temp-components/Blockies/Blockies.types.d.mts.map +1 -1
  446. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +2 -2
  447. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  448. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +2 -2
  449. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  450. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts +1 -1
  451. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.cts.map +1 -1
  452. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts +1 -1
  453. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.mts.map +1 -1
  454. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +1 -1
  455. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
  456. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs +1 -1
  457. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
  458. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts +1 -2
  459. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.cts.map +1 -1
  460. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts +1 -2
  461. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.mts.map +1 -1
  462. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
  463. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  464. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
  465. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  466. package/dist/components/temp-components/Maskicon/Maskicon.cjs +1 -1
  467. package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
  468. package/dist/components/temp-components/Maskicon/Maskicon.mjs +1 -1
  469. package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
  470. package/dist/components/temp-components/Spinner/Spinner.cjs +2 -2
  471. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  472. package/dist/components/temp-components/Spinner/Spinner.mjs +2 -2
  473. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  474. package/dist/components/temp-components/Spinner/Spinner.types.d.cts +1 -1
  475. package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +1 -1
  476. package/dist/components/temp-components/Spinner/Spinner.types.d.mts +1 -1
  477. package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +1 -1
  478. package/dist/test-utils/createRenderer.cjs +41 -0
  479. package/dist/test-utils/createRenderer.cjs.map +1 -0
  480. package/dist/test-utils/createRenderer.d.cts +4 -0
  481. package/dist/test-utils/createRenderer.d.cts.map +1 -0
  482. package/dist/test-utils/createRenderer.d.mts +4 -0
  483. package/dist/test-utils/createRenderer.d.mts.map +1 -0
  484. package/dist/test-utils/createRenderer.mjs +18 -0
  485. package/dist/test-utils/createRenderer.mjs.map +1 -0
  486. package/package.json +17 -18
  487. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +0 -15
  488. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +0 -1
  489. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +0 -7
  490. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +0 -1
  491. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +0 -7
  492. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +0 -1
  493. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +0 -12
  494. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +0 -1
  495. package/dist/components/HeaderBase/HeaderBase.constants.cjs +0 -15
  496. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +0 -1
  497. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +0 -7
  498. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +0 -1
  499. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +0 -7
  500. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +0 -1
  501. package/dist/components/HeaderBase/HeaderBase.constants.mjs +0 -12
  502. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +0 -1
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Card = void 0;
7
7
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
8
  const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native/index.js");
9
+ const react_native_1 = require("react-native");
10
10
  const Card = ({ children, onPress, twClassName, touchableOpacityProps, style, ...props }) => {
11
11
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
12
12
  const cardStyle = [
@@ -14,7 +14,7 @@ const Card = ({ children, onPress, twClassName, touchableOpacityProps, style, ..
14
14
  style,
15
15
  ];
16
16
  if (onPress) {
17
- return (<react_native_1.TouchableOpacity onPress={onPress} style={cardStyle} {...touchableOpacityProps} {...props}>
17
+ return (<react_native_1.TouchableOpacity {...props} onPress={onPress} style={cardStyle} {...touchableOpacityProps}>
18
18
  {children}
19
19
  </react_native_1.TouchableOpacity>);
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Card.cjs","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAsD;AAI/C,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,SAAS,GAAG;QAChB,EAAE,CAAC,KAAK,CAAC,8CAA8C,EAAE,WAAW,CAAC;QACrE,KAAK;KACN,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,CAAC,+BAAgB,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,qBAAqB,CAAC,CAC1B,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,+BAAgB,CAAC,CACpB,CAAC;KACH;IAED,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAChC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAjCW,QAAA,IAAI,QAiCf","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nimport type { CardProps } from './Card.types';\n\nexport const Card = ({\n children,\n onPress,\n twClassName,\n touchableOpacityProps,\n style,\n ...props\n}: CardProps) => {\n const tw = useTailwind();\n\n const cardStyle = [\n tw.style('p-4 rounded border border-default bg-default', twClassName),\n style,\n ];\n\n if (onPress) {\n return (\n <TouchableOpacity\n onPress={onPress}\n style={cardStyle}\n {...touchableOpacityProps}\n {...props}\n >\n {children}\n </TouchableOpacity>\n );\n }\n\n return (\n <View style={cardStyle} {...props}>\n {children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Card.cjs","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,+CAAsD;AAI/C,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,SAAS,GAAG;QAChB,EAAE,CAAC,KAAK,CAAC,8CAA8C,EAAE,WAAW,CAAC;QACrE,KAAK;KACN,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,CAAC,+BAAgB,CACf,IAAI,KAAK,CAAC,CACV,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,qBAAqB,CAAC,CAE1B;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,+BAAgB,CAAC,CACpB,CAAC;KACH;IAED,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAChC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAjCW,QAAA,IAAI,QAiCf","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nimport type { CardProps } from './Card.types';\n\nexport const Card = ({\n children,\n onPress,\n twClassName,\n touchableOpacityProps,\n style,\n ...props\n}: CardProps) => {\n const tw = useTailwind();\n\n const cardStyle = [\n tw.style('p-4 rounded border border-default bg-default', twClassName),\n style,\n ];\n\n if (onPress) {\n return (\n <TouchableOpacity\n {...props}\n onPress={onPress}\n style={cardStyle}\n {...touchableOpacityProps}\n >\n {children}\n </TouchableOpacity>\n );\n }\n\n return (\n <View style={cardStyle} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -7,7 +7,7 @@ function $importDefault(module) {
7
7
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
- import { TouchableOpacity, View } from "react-native/index.js";
10
+ import { TouchableOpacity, View } from "react-native";
11
11
  export const Card = ({ children, onPress, twClassName, touchableOpacityProps, style, ...props }) => {
12
12
  const tw = useTailwind();
13
13
  const cardStyle = [
@@ -15,7 +15,7 @@ export const Card = ({ children, onPress, twClassName, touchableOpacityProps, st
15
15
  style,
16
16
  ];
17
17
  if (onPress) {
18
- return (<TouchableOpacity onPress={onPress} style={cardStyle} {...touchableOpacityProps} {...props}>
18
+ return (<TouchableOpacity {...props} onPress={onPress} style={cardStyle} {...touchableOpacityProps}>
19
19
  {children}
20
20
  </TouchableOpacity>);
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Card.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,8BAAqB;AAItD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,SAAS,GAAG;QAChB,EAAE,CAAC,KAAK,CAAC,8CAA8C,EAAE,WAAW,CAAC;QACrE,KAAK;KACN,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,CAAC,gBAAgB,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,qBAAqB,CAAC,CAC1B,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;KACH;IAED,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAChC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nimport type { CardProps } from './Card.types';\n\nexport const Card = ({\n children,\n onPress,\n twClassName,\n touchableOpacityProps,\n style,\n ...props\n}: CardProps) => {\n const tw = useTailwind();\n\n const cardStyle = [\n tw.style('p-4 rounded border border-default bg-default', twClassName),\n style,\n ];\n\n if (onPress) {\n return (\n <TouchableOpacity\n onPress={onPress}\n style={cardStyle}\n {...touchableOpacityProps}\n {...props}\n >\n {children}\n </TouchableOpacity>\n );\n }\n\n return (\n <View style={cardStyle} {...props}>\n {children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"Card.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,qBAAqB;AAItD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,SAAS,GAAG;QAChB,EAAE,CAAC,KAAK,CAAC,8CAA8C,EAAE,WAAW,CAAC;QACrE,KAAK;KACN,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,CAAC,gBAAgB,CACf,IAAI,KAAK,CAAC,CACV,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,qBAAqB,CAAC,CAE1B;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;KACH;IAED,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAChC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nimport type { CardProps } from './Card.types';\n\nexport const Card = ({\n children,\n onPress,\n twClassName,\n touchableOpacityProps,\n style,\n ...props\n}: CardProps) => {\n const tw = useTailwind();\n\n const cardStyle = [\n tw.style('p-4 rounded border border-default bg-default', twClassName),\n style,\n ];\n\n if (onPress) {\n return (\n <TouchableOpacity\n {...props}\n onPress={onPress}\n style={cardStyle}\n {...touchableOpacityProps}\n >\n {children}\n </TouchableOpacity>\n );\n }\n\n return (\n <View style={cardStyle} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.types.cjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps, ViewProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"Card.types.cjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & TouchableOpacityProps;\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { TouchableOpacityProps, ViewProps } from "react-native/index.js";
2
+ import type { TouchableOpacityProps } from "react-native";
3
3
  /**
4
4
  * Card component props.
5
5
  */
@@ -21,5 +21,5 @@ export type CardProps = {
21
21
  * Optional props to pass to the underlying TouchableOpacity when onPress is provided.
22
22
  */
23
23
  touchableOpacityProps?: Omit<TouchableOpacityProps, 'onPress' | 'style' | 'children'>;
24
- } & ViewProps;
24
+ } & TouchableOpacityProps;
25
25
  //# sourceMappingURL=Card.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.types.d.cts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,8BAAqB;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Card.types.d.cts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB;AAE1D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
- import type { TouchableOpacityProps, ViewProps } from "react-native/index.js";
2
+ import type { TouchableOpacityProps } from "react-native";
3
3
  /**
4
4
  * Card component props.
5
5
  */
@@ -21,5 +21,5 @@ export type CardProps = {
21
21
  * Optional props to pass to the underlying TouchableOpacity when onPress is provided.
22
22
  */
23
23
  touchableOpacityProps?: Omit<TouchableOpacityProps, 'onPress' | 'style' | 'children'>;
24
- } & ViewProps;
24
+ } & TouchableOpacityProps;
25
25
  //# sourceMappingURL=Card.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.types.d.mts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,8BAAqB;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"Card.types.d.mts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB;AAE1D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.types.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps, ViewProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"Card.types.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & TouchableOpacityProps;\n"]}
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Checkbox = void 0;
27
27
  const design_system_twrnc_preset_1 = require("@metamask/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 Icon_1 = require("../Icon/index.cjs");
31
31
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
32
32
  const AnimatedView = react_native_1.Animated.View;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAMe;AAEf,wDAA2D;AAE3D,4CAA8D;AAC9D,gFAAmE;AAInE,MAAM,YAAY,GAAG,uBAAQ,CAAC,IAAI,CAAC;AAEtB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,UAAU,EACV,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,KAAK,GAAG,EAAE,EACV,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,mBAAmB;IACnB,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IACxD,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAC,IAAI,uBAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAExE,+CAA+C;IAC/C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,uBAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,UA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KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;SACnD,CAAC,CAEF;QAAA,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChB,EACE;YAAA,CAAC,YAAY,CACX,IAAI,sBAAsB,CAAC,CAC3B,KAAK,CAAC,CAAC;gBACL,EAAE,CAAA,GAAG,yBAAyB,CAAC,OAAO,CAAC,gEAAgE;gBACvG,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;aACtC,CAAC,CAEF;cAAA,CAAC,oDAAoD,CACrD;cAAA,CAAC,uBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAC1C;gBAAA,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,eAAQ,CAAC,KAAK,CAAC,CACrB,KAAK,CAAC,CAAC,gBAAS,CAAC,cAAc,CAAC,CAChC,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,IAAI,gBAAgB,CAAC,EAEzB;cAAA,EAAE,uBAAQ,CAAC,IAAI,CACjB;YAAA,EAAE,YAAY,CACd;YAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAElD;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,+BAAc,CAAC,CAClB,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,wBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, {\n forwardRef,\n useRef,\n useImperativeHandle,\n useCallback,\n useEffect,\n} from 'react';\nimport type { PressableStateCallbackType } from 'react-native';\nimport { Pressable, Animated, Easing } from 'react-native';\n\nimport { Icon, IconName, IconColor, IconSize } from '../Icon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { CheckboxProps } from './Checkbox.types';\n\nconst AnimatedView = Animated.View;\n\nexport const Checkbox = forwardRef<{ toggle: () => void }, CheckboxProps>(\n (\n {\n isSelected,\n isDisabled = false,\n isInvalid = false,\n label = '',\n labelProps,\n onChange,\n checkboxContainerProps,\n checkedIconProps,\n twClassName,\n style,\n ...props\n },\n ref,\n ) => {\n // Animation values\n const scaleAnim = useRef(new Animated.Value(1)).current;\n const iconAnim = useRef(new Animated.Value(isSelected ? 1 : 0)).current;\n\n // Sync icon opacity whenever selection changes\n useEffect(() => {\n Animated.timing(iconAnim, {\n toValue: isSelected ? 1 : 0,\n duration: 300,\n easing: Easing.ease,\n useNativeDriver: true,\n }).start();\n }, [isSelected, iconAnim]);\n\n // Bounce effect when toggling\n const animateScale = useCallback(() => {\n Animated.sequence([\n Animated.timing(scaleAnim, {\n toValue: 1.15,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n ]).start();\n }, [scaleAnim]);\n\n // Press handler: notify parent, then bounce\n const handlePress = () => {\n if (isDisabled) {\n return;\n }\n onChange?.(!isSelected);\n animateScale();\n };\n\n useImperativeHandle(ref, () => ({ toggle: handlePress }), [handlePress]);\n\n const tw = useTailwind();\n const twContainerClassNames = tw.style(\n 'flex-row items-center',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n );\n\n const getCheckboxContainerStyle = useCallback(\n (pressed: boolean): string => {\n const baseBg = isSelected ? 'bg-primary-default' : 'bg-default';\n let baseBorder = 'border-default';\n if (isSelected) {\n baseBorder = 'border-primary-default';\n } else if (isInvalid) {\n baseBorder = 'border-error-default';\n }\n const pressedBg = isSelected\n ? 'bg-primary-default-pressed'\n : 'bg-default-pressed';\n let pressedBorder = 'border-default';\n if (isSelected) {\n pressedBorder = 'border-primary-default-pressed';\n } else if (isInvalid) {\n pressedBorder = 'border-error-default';\n }\n return pressed\n ? `${pressedBg} ${pressedBorder}`\n : `${baseBg} ${baseBorder}`;\n },\n [isSelected, isInvalid],\n );\n\n return (\n <Pressable\n onPress={handlePress}\n accessible\n accessibilityRole=\"checkbox\"\n accessibilityState={{\n checked: isSelected,\n disabled: isDisabled,\n }}\n accessibilityLabel={typeof label === 'string' ? label : undefined}\n disabled={isDisabled}\n {...props}\n style={(state: PressableStateCallbackType) => [\n twContainerClassNames,\n typeof style === 'function' ? style(state) : style,\n ]}\n >\n {({ pressed }) => (\n <>\n <AnimatedView\n {...checkboxContainerProps}\n style={[\n tw`${getCheckboxContainerStyle(pressed)} flex size-[22px] items-center justify-center rounded border-2`,\n { transform: [{ scale: scaleAnim }] },\n ]}\n >\n {/* Always render icon, opacity driven by iconAnim */}\n <Animated.View style={{ opacity: iconAnim }}>\n <Icon\n name={IconName.Check}\n color={IconColor.PrimaryInverse}\n size={IconSize.Sm}\n {...checkedIconProps}\n />\n </Animated.View>\n </AnimatedView>\n {label ? (\n <TextOrChildren\n textProps={{ ...labelProps, twClassName: 'ml-3' }}\n >\n {label}\n </TextOrChildren>\n ) : null}\n </>\n )}\n </Pressable>\n );\n },\n);\n"]}
1
+ {"version":3,"file":"Checkbox.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAMe;AAEf,+CAA2D;AAE3D,4CAA8D;AAC9D,gFAAmE;AAInE,MAAM,YAAY,GAAG,uBAAQ,CAAC,IAAI,CAAC;AAEtB,QAAA,QAAQ,GAAG,IAAA,kBAAU,EAChC,CACE,EACE,UAAU,EACV,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,KAAK,GAAG,EAAE,EACV,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB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AA,EAAE,YAAY,CACd;YAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAElD;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,+BAAc,CAAC,CAClB,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,wBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, {\n forwardRef,\n useRef,\n useImperativeHandle,\n useCallback,\n useEffect,\n} from 'react';\nimport type { PressableStateCallbackType } from 'react-native';\nimport { Pressable, Animated, Easing } from 'react-native';\n\nimport { Icon, IconName, IconColor, IconSize } from '../Icon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { CheckboxProps } from './Checkbox.types';\n\nconst AnimatedView = Animated.View;\n\nexport const Checkbox = forwardRef<{ toggle: () => void }, CheckboxProps>(\n (\n {\n isSelected,\n isDisabled = false,\n isInvalid = false,\n label = '',\n labelProps,\n onChange,\n checkboxContainerProps,\n checkedIconProps,\n twClassName,\n style,\n ...props\n },\n ref,\n ) => {\n // Animation values\n const scaleAnim = useRef(new Animated.Value(1)).current;\n const iconAnim = useRef(new Animated.Value(isSelected ? 1 : 0)).current;\n\n // Sync icon opacity whenever selection changes\n useEffect(() => {\n Animated.timing(iconAnim, {\n toValue: isSelected ? 1 : 0,\n duration: 300,\n easing: Easing.ease,\n useNativeDriver: true,\n }).start();\n }, [isSelected, iconAnim]);\n\n // Bounce effect when toggling\n const animateScale = useCallback(() => {\n Animated.sequence([\n Animated.timing(scaleAnim, {\n toValue: 1.15,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n ]).start();\n }, [scaleAnim]);\n\n // Press handler: notify parent, then bounce\n const handlePress = () => {\n if (isDisabled) {\n return;\n }\n onChange?.(!isSelected);\n animateScale();\n };\n\n useImperativeHandle(ref, () => ({ toggle: handlePress }), [handlePress]);\n\n const tw = useTailwind();\n const twContainerClassNames = tw.style(\n 'flex-row items-center',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n );\n\n const getCheckboxContainerStyle = useCallback(\n (pressed: boolean): string => {\n const baseBg = isSelected ? 'bg-primary-default' : 'bg-default';\n let baseBorder = 'border-default';\n if (isSelected) {\n baseBorder = 'border-primary-default';\n } else if (isInvalid) {\n baseBorder = 'border-error-default';\n }\n const pressedBg = isSelected\n ? 'bg-primary-default-pressed'\n : 'bg-default-pressed';\n let pressedBorder = 'border-default';\n if (isSelected) {\n pressedBorder = 'border-primary-default-pressed';\n } else if (isInvalid) {\n pressedBorder = 'border-error-default';\n }\n return pressed\n ? `${pressedBg} ${pressedBorder}`\n : `${baseBg} ${baseBorder}`;\n },\n [isSelected, isInvalid],\n );\n\n return (\n <Pressable\n onPress={handlePress}\n accessible\n accessibilityRole=\"checkbox\"\n accessibilityState={{\n checked: isSelected,\n disabled: isDisabled,\n }}\n accessibilityLabel={typeof label === 'string' ? label : undefined}\n disabled={isDisabled}\n {...props}\n style={(state: PressableStateCallbackType) => [\n twContainerClassNames,\n typeof style === 'function' ? style(state) : style,\n ]}\n >\n {({ pressed }) => (\n <>\n <AnimatedView\n {...checkboxContainerProps}\n style={[\n tw`${getCheckboxContainerStyle(pressed)} flex size-[22px] items-center justify-center rounded border-2`,\n { transform: [{ scale: scaleAnim }] },\n ]}\n >\n {/* Always render icon, opacity driven by iconAnim */}\n <Animated.View style={{ opacity: iconAnim }}>\n <Icon\n name={IconName.Check}\n color={IconColor.PrimaryInverse}\n size={IconSize.Sm}\n {...checkedIconProps}\n />\n </Animated.View>\n </AnimatedView>\n {label ? (\n <TextOrChildren\n textProps={{ ...labelProps, twClassName: 'ml-3' }}\n >\n {label}\n </TextOrChildren>\n ) : null}\n </>\n )}\n </Pressable>\n );\n },\n);\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { PressableStateCallbackType } from "react-native/index.js";
2
+ import type { PressableStateCallbackType } from "react-native";
3
3
  export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").CheckboxPropsShared & {
4
4
  labelProps?: Omit<Partial<import("../index.cjs").TextProps>, "children"> | undefined;
5
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { PressableStateCallbackType } from "react-native/index.js";
2
+ import type { PressableStateCallbackType } from "react-native";
3
3
  export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask/design-system-shared").CheckboxPropsShared & {
4
4
  labelProps?: Omit<Partial<import("../index.mjs").TextProps>, "children"> | undefined;
5
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -7,7 +7,7 @@ function $importDefault(module) {
7
7
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
8
  import $React, { forwardRef, useRef, useImperativeHandle, useCallback, useEffect } from "react";
9
9
  const React = $importDefault($React);
10
- import { Pressable, Animated, Easing } from "react-native/index.js";
10
+ import { Pressable, Animated, Easing } from "react-native";
11
11
  import { Icon, IconName, IconColor, IconSize } from "../Icon/index.mjs";
12
12
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
13
13
  const AnimatedView = Animated.View;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.mjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EACZ,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACV,cAAc;;AAEf,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,8BAAqB;AAE3D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;AAEnC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAChC,CACE,EACE,UAAU,EACV,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,KAAK,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YAAY,CACd;YAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,cAAc,CACb,SAAS,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAElD;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,cAAc,CAAC,CAClB,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, {\n forwardRef,\n useRef,\n useImperativeHandle,\n useCallback,\n useEffect,\n} from 'react';\nimport type { PressableStateCallbackType } from 'react-native';\nimport { Pressable, Animated, Easing } from 'react-native';\n\nimport { Icon, IconName, IconColor, IconSize } from '../Icon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { CheckboxProps } from './Checkbox.types';\n\nconst AnimatedView = Animated.View;\n\nexport const Checkbox = forwardRef<{ toggle: () => void }, CheckboxProps>(\n (\n {\n isSelected,\n isDisabled = false,\n isInvalid = false,\n label = '',\n labelProps,\n onChange,\n checkboxContainerProps,\n checkedIconProps,\n twClassName,\n style,\n ...props\n },\n ref,\n ) => {\n // Animation values\n const scaleAnim = useRef(new Animated.Value(1)).current;\n const iconAnim = useRef(new Animated.Value(isSelected ? 1 : 0)).current;\n\n // Sync icon opacity whenever selection changes\n useEffect(() => {\n Animated.timing(iconAnim, {\n toValue: isSelected ? 1 : 0,\n duration: 300,\n easing: Easing.ease,\n useNativeDriver: true,\n }).start();\n }, [isSelected, iconAnim]);\n\n // Bounce effect when toggling\n const animateScale = useCallback(() => {\n Animated.sequence([\n Animated.timing(scaleAnim, {\n toValue: 1.15,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n ]).start();\n }, [scaleAnim]);\n\n // Press handler: notify parent, then bounce\n const handlePress = () => {\n if (isDisabled) {\n return;\n }\n onChange?.(!isSelected);\n animateScale();\n };\n\n useImperativeHandle(ref, () => ({ toggle: handlePress }), [handlePress]);\n\n const tw = useTailwind();\n const twContainerClassNames = tw.style(\n 'flex-row items-center',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n );\n\n const getCheckboxContainerStyle = useCallback(\n (pressed: boolean): string => {\n const baseBg = isSelected ? 'bg-primary-default' : 'bg-default';\n let baseBorder = 'border-default';\n if (isSelected) {\n baseBorder = 'border-primary-default';\n } else if (isInvalid) {\n baseBorder = 'border-error-default';\n }\n const pressedBg = isSelected\n ? 'bg-primary-default-pressed'\n : 'bg-default-pressed';\n let pressedBorder = 'border-default';\n if (isSelected) {\n pressedBorder = 'border-primary-default-pressed';\n } else if (isInvalid) {\n pressedBorder = 'border-error-default';\n }\n return pressed\n ? `${pressedBg} ${pressedBorder}`\n : `${baseBg} ${baseBorder}`;\n },\n [isSelected, isInvalid],\n );\n\n return (\n <Pressable\n onPress={handlePress}\n accessible\n accessibilityRole=\"checkbox\"\n accessibilityState={{\n checked: isSelected,\n disabled: isDisabled,\n }}\n accessibilityLabel={typeof label === 'string' ? label : undefined}\n disabled={isDisabled}\n {...props}\n style={(state: PressableStateCallbackType) => [\n twContainerClassNames,\n typeof style === 'function' ? style(state) : style,\n ]}\n >\n {({ pressed }) => (\n <>\n <AnimatedView\n {...checkboxContainerProps}\n style={[\n tw`${getCheckboxContainerStyle(pressed)} flex size-[22px] items-center justify-center rounded border-2`,\n { transform: [{ scale: scaleAnim }] },\n ]}\n >\n {/* Always render icon, opacity driven by iconAnim */}\n <Animated.View style={{ opacity: iconAnim }}>\n <Icon\n name={IconName.Check}\n color={IconColor.PrimaryInverse}\n size={IconSize.Sm}\n {...checkedIconProps}\n />\n </Animated.View>\n </AnimatedView>\n {label ? (\n <TextOrChildren\n textProps={{ ...labelProps, twClassName: 'ml-3' }}\n >\n {label}\n </TextOrChildren>\n ) : null}\n </>\n )}\n </Pressable>\n );\n },\n);\n"]}
1
+ {"version":3,"file":"Checkbox.mjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EACZ,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACV,cAAc;;AAEf,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,qBAAqB;AAE3D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC;AAEnC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAChC,CACE,EACE,UAAU,EACV,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,KAAK,GAAG,EAAE,EACV,UAAU,EACV,QAAQ,EACR,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,mBAAmB;IACnB,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IACxD,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAExE,+CAA+C;IAC/C,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;YACxB,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3B,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,MA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AAE,EAAE,EAAE,CAAC,CAChB,EACE;YAAA,CAAC,YAAY,CACX,IAAI,sBAAsB,CAAC,CAC3B,KAAK,CAAC,CAAC;gBACL,EAAE,CAAA,GAAG,yBAAyB,CAAC,OAAO,CAAC,gEAAgE;gBACvG,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE;aACtC,CAAC,CAEF;cAAA,CAAC,oDAAoD,CACrD;cAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAC1C;gBAAA,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACrB,KAAK,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,IAAI,gBAAgB,CAAC,EAEzB;cAAA,EAAE,QAAQ,CAAC,IAAI,CACjB;YAAA,EAAE,YAAY,CACd;YAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,cAAc,CACb,SAAS,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAElD;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,cAAc,CAAC,CAClB,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, {\n forwardRef,\n useRef,\n useImperativeHandle,\n useCallback,\n useEffect,\n} from 'react';\nimport type { PressableStateCallbackType } from 'react-native';\nimport { Pressable, Animated, Easing } from 'react-native';\n\nimport { Icon, IconName, IconColor, IconSize } from '../Icon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { CheckboxProps } from './Checkbox.types';\n\nconst AnimatedView = Animated.View;\n\nexport const Checkbox = forwardRef<{ toggle: () => void }, CheckboxProps>(\n (\n {\n isSelected,\n isDisabled = false,\n isInvalid = false,\n label = '',\n labelProps,\n onChange,\n checkboxContainerProps,\n checkedIconProps,\n twClassName,\n style,\n ...props\n },\n ref,\n ) => {\n // Animation values\n const scaleAnim = useRef(new Animated.Value(1)).current;\n const iconAnim = useRef(new Animated.Value(isSelected ? 1 : 0)).current;\n\n // Sync icon opacity whenever selection changes\n useEffect(() => {\n Animated.timing(iconAnim, {\n toValue: isSelected ? 1 : 0,\n duration: 300,\n easing: Easing.ease,\n useNativeDriver: true,\n }).start();\n }, [isSelected, iconAnim]);\n\n // Bounce effect when toggling\n const animateScale = useCallback(() => {\n Animated.sequence([\n Animated.timing(scaleAnim, {\n toValue: 1.15,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n Animated.timing(scaleAnim, {\n toValue: 1,\n duration: 100,\n easing: Easing.ease,\n useNativeDriver: true,\n }),\n ]).start();\n }, [scaleAnim]);\n\n // Press handler: notify parent, then bounce\n const handlePress = () => {\n if (isDisabled) {\n return;\n }\n onChange?.(!isSelected);\n animateScale();\n };\n\n useImperativeHandle(ref, () => ({ toggle: handlePress }), [handlePress]);\n\n const tw = useTailwind();\n const twContainerClassNames = tw.style(\n 'flex-row items-center',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n );\n\n const getCheckboxContainerStyle = useCallback(\n (pressed: boolean): string => {\n const baseBg = isSelected ? 'bg-primary-default' : 'bg-default';\n let baseBorder = 'border-default';\n if (isSelected) {\n baseBorder = 'border-primary-default';\n } else if (isInvalid) {\n baseBorder = 'border-error-default';\n }\n const pressedBg = isSelected\n ? 'bg-primary-default-pressed'\n : 'bg-default-pressed';\n let pressedBorder = 'border-default';\n if (isSelected) {\n pressedBorder = 'border-primary-default-pressed';\n } else if (isInvalid) {\n pressedBorder = 'border-error-default';\n }\n return pressed\n ? `${pressedBg} ${pressedBorder}`\n : `${baseBg} ${baseBorder}`;\n },\n [isSelected, isInvalid],\n );\n\n return (\n <Pressable\n onPress={handlePress}\n accessible\n accessibilityRole=\"checkbox\"\n accessibilityState={{\n checked: isSelected,\n disabled: isDisabled,\n }}\n accessibilityLabel={typeof label === 'string' ? label : undefined}\n disabled={isDisabled}\n {...props}\n style={(state: PressableStateCallbackType) => [\n twContainerClassNames,\n typeof style === 'function' ? style(state) : style,\n ]}\n >\n {({ pressed }) => (\n <>\n <AnimatedView\n {...checkboxContainerProps}\n style={[\n tw`${getCheckboxContainerStyle(pressed)} flex size-[22px] items-center justify-center rounded border-2`,\n { transform: [{ scale: scaleAnim }] },\n ]}\n >\n {/* Always render icon, opacity driven by iconAnim */}\n <Animated.View style={{ opacity: iconAnim }}>\n <Icon\n name={IconName.Check}\n color={IconColor.PrimaryInverse}\n size={IconSize.Sm}\n {...checkedIconProps}\n />\n </Animated.View>\n </AnimatedView>\n {label ? (\n <TextOrChildren\n textProps={{ ...labelProps, twClassName: 'ml-3' }}\n >\n {label}\n </TextOrChildren>\n ) : null}\n </>\n )}\n </Pressable>\n );\n },\n);\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { CheckboxPropsShared } from "@metamask/design-system-shared";
2
- import type { PressableProps, ViewProps } from "react-native/index.js";
2
+ import type { PressableProps, ViewProps } from "react-native";
3
3
  import type { IconProps } from "../Icon/index.cjs";
4
4
  import type { TextProps } from "../Text/index.cjs";
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAA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,5 @@
1
1
  import type { CheckboxPropsShared } from "@metamask/design-system-shared";
2
- import type { PressableProps, ViewProps } from "react-native/index.js";
2
+ import type { PressableProps, ViewProps } from "react-native";
3
3
  import type { IconProps } from "../Icon/index.mjs";
4
4
  import type { TextProps } from "../Text/index.mjs";
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Checkbox.types.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,qBAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -25,18 +25,54 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.HeaderBase = void 0;
27
27
  // Third party dependencies.
28
+ const design_system_shared_1 = require("@metamask/design-system-shared");
28
29
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
29
30
  const react_1 = __importStar(require("react"));
30
- const react_native_1 = require("react-native/index.js");
31
+ const react_native_1 = require("react-native");
31
32
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
32
33
  // External dependencies.
33
- const Box_1 = require("../Box/index.cjs");
34
34
  const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
35
- const Text_1 = require("../Text/index.cjs");
36
- // Internal dependencies.
37
- const HeaderBase_constants_1 = require("./HeaderBase.constants.cjs");
38
- const HeaderBase_types_1 = require("./HeaderBase.types.cjs");
39
- const HeaderBase = ({ children, style, variant = HeaderBase_types_1.HeaderBaseVariant.Compact, startAccessory, endAccessory, startButtonIconProps, endButtonIconProps, includesTopInset = false, startAccessoryWrapperProps, endAccessoryWrapperProps, titleTestID, twClassName, ...props }) => {
35
+ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
36
+ // `startAccessory` is the primary escape hatch. `startButtonIconProps`
37
+ // remains as a convenience path for the common single-back-button case.
38
+ const resolveStartAccessory = ({ startAccessory, startButtonIconProps, }) => {
39
+ if (startAccessory) {
40
+ return startAccessory;
41
+ }
42
+ if (startButtonIconProps) {
43
+ return <ButtonIcon_1.ButtonIcon size={ButtonIcon_1.ButtonIconSize.Md} {...startButtonIconProps}/>;
44
+ }
45
+ return null;
46
+ };
47
+ // Only the end side supports built-in multiple buttons. More complex
48
+ // start-side layouts should be composed explicitly with `startAccessory`.
49
+ const renderEndButtonIcons = (endButtonIconProps) => endButtonIconProps
50
+ .map((iconProps, originalIndex) => ({
51
+ iconProps,
52
+ originalIndex,
53
+ }))
54
+ .reverse()
55
+ .map(({ iconProps, originalIndex }) => (<ButtonIcon_1.ButtonIcon key={`end-button-icon-${originalIndex}`} size={ButtonIcon_1.ButtonIconSize.Md} {...iconProps}/>));
56
+ // `endAccessory` takes precedence over the shorthand icon-props array.
57
+ const resolveEndAccessory = ({ endAccessory, endButtonIconProps, }) => {
58
+ if (endAccessory) {
59
+ return {
60
+ resolvedEndAccessory: endAccessory,
61
+ hasMultipleEndButtons: false,
62
+ };
63
+ }
64
+ if (endButtonIconProps && endButtonIconProps.length > 0) {
65
+ return {
66
+ resolvedEndAccessory: renderEndButtonIcons(endButtonIconProps),
67
+ hasMultipleEndButtons: endButtonIconProps.length > 1,
68
+ };
69
+ }
70
+ return {
71
+ resolvedEndAccessory: null,
72
+ hasMultipleEndButtons: false,
73
+ };
74
+ };
75
+ const HeaderBase = ({ children, style, startAccessory, endAccessory, startButtonIconProps, endButtonIconProps, includesTopInset = false, startAccessoryWrapperProps, endAccessoryWrapperProps, childrenWrapperProps, textProps, twClassName, ...props }) => {
40
76
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
41
77
  const insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
42
78
  const [startAccessoryWidth, setStartAccessoryWidth] = (0, react_1.useState)(0);
@@ -47,86 +83,71 @@ const HeaderBase = ({ children, style, variant = HeaderBase_types_1.HeaderBaseVa
47
83
  const handleEndAccessoryLayout = (0, react_1.useCallback)((e) => {
48
84
  setEndAccessoryWidth(e.nativeEvent.layout.width);
49
85
  }, []);
50
- // Determine what to render for start/end
51
- const hasStartContent = startAccessory || startButtonIconProps;
52
- const hasEndContent = endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);
53
- const hasAnyAccessory = hasStartContent || hasEndContent;
54
- const isCompact = variant === HeaderBase_types_1.HeaderBaseVariant.Compact;
55
- // For Compact variant, render both wrappers if any accessory exists (for centering)
56
- // For Display variant, only render wrappers when they have content
57
- const shouldRenderStartWrapper = isCompact
58
- ? Boolean(hasAnyAccessory)
59
- : Boolean(hasStartContent);
60
- const shouldRenderEndWrapper = isCompact
61
- ? Boolean(hasAnyAccessory)
62
- : Boolean(hasEndContent);
63
- // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)
64
- const accessoryWrapperWidth = isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)
86
+ // Normalize the public API into resolved slots so the render path only deals
87
+ // with layout and title rendering.
88
+ const resolvedStartAccessory = resolveStartAccessory({
89
+ startAccessory,
90
+ startButtonIconProps,
91
+ });
92
+ const { resolvedEndAccessory, hasMultipleEndButtons } = resolveEndAccessory({
93
+ endAccessory,
94
+ endButtonIconProps,
95
+ });
96
+ const hasStartAccessory = Boolean(resolvedStartAccessory);
97
+ const hasEndAccessory = Boolean(resolvedEndAccessory);
98
+ const hasAnyAccessory = hasStartAccessory || hasEndAccessory;
99
+ // Calculate equal width for both accessory wrappers to ensure title stays centered.
100
+ const accessoryWrapperWidth = hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)
65
101
  ? Math.max(startAccessoryWidth, endAccessoryWidth)
66
102
  : undefined;
67
- const renderStartContent = () => {
68
- if (startAccessory) {
69
- return startAccessory;
70
- }
71
- if (startButtonIconProps) {
72
- return <ButtonIcon_1.ButtonIcon size={ButtonIcon_1.ButtonIconSize.Md} {...startButtonIconProps}/>;
73
- }
74
- return null;
75
- };
76
- const renderEndContent = () => {
77
- if (endAccessory) {
78
- return endAccessory;
79
- }
80
- if (endButtonIconProps && endButtonIconProps.length > 0) {
81
- // Reverse the array so first item appears rightmost
82
- // Use original index (before reversal) for stable React keys
83
- const reversedProps = endButtonIconProps
84
- .map((iconProps, originalIndex) => ({
85
- iconProps,
86
- originalIndex,
87
- }))
88
- .reverse();
89
- return reversedProps.map(({ iconProps, originalIndex }) => (<ButtonIcon_1.ButtonIcon key={`end-button-icon-${originalIndex}`} size={ButtonIcon_1.ButtonIconSize.Md} {...iconProps}/>));
103
+ const renderAccessoryWrapper = ({ wrapperProps, alignment, onLayout, content, measuredContentStyle, }) => {
104
+ if (!hasAnyAccessory) {
105
+ return null;
90
106
  }
91
- return null;
107
+ return (<react_native_1.View style={accessoryWrapperWidth
108
+ ? tw.style(alignment, { width: accessoryWrapperWidth })
109
+ : undefined} {...wrapperProps}>
110
+ <react_native_1.View onLayout={onLayout} style={measuredContentStyle}>
111
+ {content}
112
+ </react_native_1.View>
113
+ </react_native_1.View>);
92
114
  };
93
- // Check if we have multiple end buttons for layout styling
94
- const hasMultipleEndButtons = !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;
95
- // Merge default styles with passed-in twClassName
96
- const baseStyles = 'flex-row items-center gap-4 h-14';
97
- const resolvedTwClassName = twClassName
98
- ? `${baseStyles} ${twClassName}`
99
- : baseStyles;
100
115
  return (<react_native_1.View style={[
101
- tw.style(resolvedTwClassName),
116
+ tw.style('flex-row items-center gap-4 h-14', twClassName),
102
117
  includesTopInset && { marginTop: insets.top },
103
118
  style,
104
119
  ]} {...props}>
105
120
  {/* Start accessory */}
106
- {shouldRenderStartWrapper && (<react_native_1.View style={accessoryWrapperWidth
107
- ? tw.style('items-start', { width: accessoryWrapperWidth })
108
- : undefined} {...startAccessoryWrapperProps}>
109
- <react_native_1.View onLayout={handleStartAccessoryLayout}>
110
- {renderStartContent()}
111
- </react_native_1.View>
112
- </react_native_1.View>)}
121
+ {renderAccessoryWrapper({
122
+ wrapperProps: startAccessoryWrapperProps,
123
+ alignment: 'items-start',
124
+ onLayout: handleStartAccessoryLayout,
125
+ content: resolvedStartAccessory,
126
+ })}
113
127
 
114
128
  {/* Title */}
115
- <Box_1.Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>
116
- {typeof children === 'string' ? (<Text_1.Text variant={HeaderBase_constants_1.HEADERBASE_VARIANT_TEXT_VARIANTS[variant]} testID={titleTestID} style={isCompact ? tw.style('text-center') : undefined}>
117
- {children}
118
- </Text_1.Text>) : (children)}
119
- </Box_1.Box>
129
+ <react_native_1.View style={tw.style('flex-1 items-center')} {...childrenWrapperProps}>
130
+ <TextOrChildren_1.TextOrChildren textProps={{
131
+ variant: design_system_shared_1.TextVariant.HeadingSm,
132
+ ...textProps,
133
+ style: [tw.style('text-center'), textProps?.style],
134
+ }}>
135
+ {children}
136
+ </TextOrChildren_1.TextOrChildren>
137
+ </react_native_1.View>
120
138
 
121
139
  {/* End accessory */}
122
- {shouldRenderEndWrapper && (<react_native_1.View style={accessoryWrapperWidth
123
- ? tw.style('items-end', { width: accessoryWrapperWidth })
124
- : undefined} {...endAccessoryWrapperProps}>
125
- <react_native_1.View onLayout={handleEndAccessoryLayout} style={hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined}>
126
- {renderEndContent()}
127
- </react_native_1.View>
128
- </react_native_1.View>)}
140
+ {renderAccessoryWrapper({
141
+ wrapperProps: endAccessoryWrapperProps,
142
+ alignment: 'items-end',
143
+ onLayout: handleEndAccessoryLayout,
144
+ content: resolvedEndAccessory,
145
+ measuredContentStyle: hasMultipleEndButtons
146
+ ? tw.style('flex-row gap-2')
147
+ : undefined,
148
+ })}
129
149
  </react_native_1.View>);
130
150
  };
131
151
  exports.HeaderBase = HeaderBase;
152
+ exports.HeaderBase.displayName = 'HeaderBase';
132
153
  //# sourceMappingURL=HeaderBase.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderBase.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA4B;AAC5B,qFAAmE;AACnE,+CAAqD;AAErD,wDAAoC;AACpC,mFAAmE;AAEnE,yBAAyB;AACzB,0CAA6B;AAC7B,wDAA2D;AAC3D,4CAA+B;AAE/B,yBAAyB;AACzB,qEAA0E;AAE1E,6DAAuD;AAEhD,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,OAAO,GAAG,oCAAiB,CAAC,OAAO,EACnC,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,GAAG,KAAK,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,WAAW,EACX,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,MAAM,GAAG,IAAA,kDAAiB,GAAE,CAAC;IAEnC,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAClE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAE9D,MAAM,0BAA0B,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAoB,EAAE,EAAE;QACtE,sBAAsB,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,wBAAwB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAoB,EAAE,EAAE;QACpE,oBAAoB,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC,EAAE,E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;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA9JW,QAAA,UAAU,cA8JrB","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useCallback, useState } from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport { View } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box } from '../Box';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Text } from '../Text';\n\n// Internal dependencies.\nimport { HEADERBASE_VARIANT_TEXT_VARIANTS } from './HeaderBase.constants';\nimport type { HeaderBaseProps } from './HeaderBase.types';\nimport { HeaderBaseVariant } from './HeaderBase.types';\n\nexport const HeaderBase: React.FC<HeaderBaseProps> = ({\n children,\n style,\n variant = HeaderBaseVariant.Compact,\n startAccessory,\n endAccessory,\n startButtonIconProps,\n endButtonIconProps,\n includesTopInset = false,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n titleTestID,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const insets = useSafeAreaInsets();\n\n const [startAccessoryWidth, setStartAccessoryWidth] = useState(0);\n const [endAccessoryWidth, setEndAccessoryWidth] = useState(0);\n\n const handleStartAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setStartAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n const handleEndAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setEndAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n // Determine what to render for start/end\n const hasStartContent = startAccessory || startButtonIconProps;\n const hasEndContent =\n endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);\n const hasAnyAccessory = hasStartContent || hasEndContent;\n\n const isCompact = variant === HeaderBaseVariant.Compact;\n\n // For Compact variant, render both wrappers if any accessory exists (for centering)\n // For Display variant, only render wrappers when they have content\n const shouldRenderStartWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasStartContent);\n const shouldRenderEndWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasEndContent);\n\n // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)\n const accessoryWrapperWidth =\n isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)\n ? Math.max(startAccessoryWidth, endAccessoryWidth)\n : undefined;\n\n const renderStartContent = () => {\n if (startAccessory) {\n return startAccessory;\n }\n if (startButtonIconProps) {\n return <ButtonIcon size={ButtonIconSize.Md} {...startButtonIconProps} />;\n }\n return null;\n };\n\n const renderEndContent = () => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n // Reverse the array so first item appears rightmost\n // Use original index (before reversal) for stable React keys\n const reversedProps = endButtonIconProps\n .map((iconProps, originalIndex) => ({\n iconProps,\n originalIndex,\n }))\n .reverse();\n return reversedProps.map(({ iconProps, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...iconProps}\n />\n ));\n }\n return null;\n };\n\n // Check if we have multiple end buttons for layout styling\n const hasMultipleEndButtons =\n !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;\n\n // Merge default styles with passed-in twClassName\n const baseStyles = 'flex-row items-center gap-4 h-14';\n const resolvedTwClassName = twClassName\n ? `${baseStyles} ${twClassName}`\n : baseStyles;\n\n return (\n <View\n style={[\n tw.style(resolvedTwClassName),\n includesTopInset && { marginTop: insets.top },\n style,\n ]}\n {...props}\n >\n {/* Start accessory */}\n {shouldRenderStartWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-start', { width: accessoryWrapperWidth })\n : undefined\n }\n {...startAccessoryWrapperProps}\n >\n <View onLayout={handleStartAccessoryLayout}>\n {renderStartContent()}\n </View>\n </View>\n )}\n\n {/* Title */}\n <Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>\n {typeof children === 'string' ? (\n <Text\n variant={HEADERBASE_VARIANT_TEXT_VARIANTS[variant]}\n testID={titleTestID}\n style={isCompact ? tw.style('text-center') : undefined}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Box>\n\n {/* End accessory */}\n {shouldRenderEndWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-end', { width: accessoryWrapperWidth })\n : undefined\n }\n {...endAccessoryWrapperProps}\n >\n <View\n onLayout={handleEndAccessoryLayout}\n style={\n hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined\n }\n >\n {renderEndContent()}\n </View>\n </View>\n )}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"HeaderBase.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA4B;AAC5B,yEAA6D;AAC7D,qFAAmE;AACnE,+CAAqD;AAErD,+CAAoC;AACpC,mFAAmE;AAEnE,yBAAyB;AACzB,wDAA2D;AAE3D,gFAAmE;AAInE,uEAAuE;AACvE,wEAAwE;AACxE,MAAM,qBAAqB,GAAG,CAAC,EAC7B,cAAc,EACd,oBAAoB,GAC6C,EAAE,EAAE;IACrE,IAAI,cAAc,EAAE;QAClB,OAAO,cAAc,CAAC;KACvB;IAED,IAAI,oBAAoB,EAAE;QACxB,OAAO,CAAC,uBAAU,CAAC,IAAI,CAAC,CAAC,2BAAc,CAAC,EAAE,CAAC,CAAC,IAAI,oBAAoB,CAAC,EAAG,CAAC;KAC1E;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,qEAAqE;AACrE,0EAA0E;AAC1E,MAAM,oBAAoB,GAAG,CAAC,kBAAqC,EAAE,EAAE,CACrE,kBAAkB;KACf,GAAG,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC;IAClC,SAAS;IACT,aAAa;CACd,CAAC,CAAC;KACF,OAAO,EAAE;KACT,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,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OAAO,EAAE,oBAAoB;YAC7B,oBAAoB,EAAE,qBAAqB;gBACzC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC;gBAC5B,CAAC,CAAC,SAAS;SACd,CAAC,CACJ;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA7HW,QAAA,UAAU,cA6HrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { TextVariant } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useCallback, useState } from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport { View } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { HeaderBaseProps } from './HeaderBase.types';\n\n// `startAccessory` is the primary escape hatch. `startButtonIconProps`\n// remains as a convenience path for the common single-back-button case.\nconst resolveStartAccessory = ({\n startAccessory,\n startButtonIconProps,\n}: Pick<HeaderBaseProps, 'startAccessory' | 'startButtonIconProps'>) => {\n if (startAccessory) {\n return startAccessory;\n }\n\n if (startButtonIconProps) {\n return <ButtonIcon size={ButtonIconSize.Md} {...startButtonIconProps} />;\n }\n\n return null;\n};\n\n// Only the end side supports built-in multiple buttons. More complex\n// start-side layouts should be composed explicitly with `startAccessory`.\nconst renderEndButtonIcons = (endButtonIconProps: ButtonIconProps[]) =>\n endButtonIconProps\n .map((iconProps, originalIndex) => ({\n iconProps,\n originalIndex,\n }))\n .reverse()\n .map(({ iconProps, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...iconProps}\n />\n ));\n\n// `endAccessory` takes precedence over the shorthand icon-props array.\nconst resolveEndAccessory = ({\n endAccessory,\n endButtonIconProps,\n}: Pick<HeaderBaseProps, 'endAccessory' | 'endButtonIconProps'>) => {\n if (endAccessory) {\n return {\n resolvedEndAccessory: endAccessory,\n hasMultipleEndButtons: false,\n };\n }\n\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n return {\n resolvedEndAccessory: renderEndButtonIcons(endButtonIconProps),\n hasMultipleEndButtons: endButtonIconProps.length > 1,\n };\n }\n\n return {\n resolvedEndAccessory: null,\n hasMultipleEndButtons: false,\n };\n};\n\nexport const HeaderBase: React.FC<HeaderBaseProps> = ({\n children,\n style,\n startAccessory,\n endAccessory,\n startButtonIconProps,\n endButtonIconProps,\n includesTopInset = false,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n childrenWrapperProps,\n textProps,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const insets = useSafeAreaInsets();\n\n const [startAccessoryWidth, setStartAccessoryWidth] = useState(0);\n const [endAccessoryWidth, setEndAccessoryWidth] = useState(0);\n\n const handleStartAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setStartAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n const handleEndAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setEndAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n // Normalize the public API into resolved slots so the render path only deals\n // with layout and title rendering.\n const resolvedStartAccessory = resolveStartAccessory({\n startAccessory,\n startButtonIconProps,\n });\n const { resolvedEndAccessory, hasMultipleEndButtons } = resolveEndAccessory({\n endAccessory,\n endButtonIconProps,\n });\n\n const hasStartAccessory = Boolean(resolvedStartAccessory);\n const hasEndAccessory = Boolean(resolvedEndAccessory);\n const hasAnyAccessory = hasStartAccessory || hasEndAccessory;\n\n // Calculate equal width for both accessory wrappers to ensure title stays centered.\n const accessoryWrapperWidth =\n hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)\n ? Math.max(startAccessoryWidth, endAccessoryWidth)\n : undefined;\n\n const renderAccessoryWrapper = ({\n wrapperProps,\n alignment,\n onLayout,\n content,\n measuredContentStyle,\n }: {\n wrapperProps?: HeaderBaseProps['startAccessoryWrapperProps'];\n alignment: 'items-start' | 'items-end';\n onLayout: (e: LayoutChangeEvent) => void;\n content: React.ReactNode;\n measuredContentStyle?: ReturnType<typeof tw.style>;\n }) => {\n if (!hasAnyAccessory) {\n return null;\n }\n\n return (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style(alignment, { width: accessoryWrapperWidth })\n : undefined\n }\n {...wrapperProps}\n >\n <View onLayout={onLayout} style={measuredContentStyle}>\n {content}\n </View>\n </View>\n );\n };\n\n return (\n <View\n style={[\n tw.style('flex-row items-center gap-4 h-14', twClassName),\n includesTopInset && { marginTop: insets.top },\n style,\n ]}\n {...props}\n >\n {/* Start accessory */}\n {renderAccessoryWrapper({\n wrapperProps: startAccessoryWrapperProps,\n alignment: 'items-start',\n onLayout: handleStartAccessoryLayout,\n content: resolvedStartAccessory,\n })}\n\n {/* Title */}\n <View style={tw.style('flex-1 items-center')} {...childrenWrapperProps}>\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingSm,\n ...textProps,\n style: [tw.style('text-center'), textProps?.style],\n }}\n >\n {children}\n </TextOrChildren>\n </View>\n\n {/* End accessory */}\n {renderAccessoryWrapper({\n wrapperProps: endAccessoryWrapperProps,\n alignment: 'items-end',\n onLayout: handleEndAccessoryLayout,\n content: resolvedEndAccessory,\n measuredContentStyle: hasMultipleEndButtons\n ? tw.style('flex-row gap-2')\n : undefined,\n })}\n </View>\n );\n};\n\nHeaderBase.displayName = 'HeaderBase';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderBase.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,cAAc;AAYrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8JhD,CAAC"}
1
+ {"version":3,"file":"HeaderBase.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgC,cAAc;AAUrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AA6D1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6HhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderBase.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,cAAc;AAYrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8JhD,CAAC"}
1
+ {"version":3,"file":"HeaderBase.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgC,cAAc;AAUrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AA6D1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6HhD,CAAC"}