@metamask-previews/design-system-react-native 0.56.0-preview.12867efa → 0.56.1-preview-00dfeb8

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 (498) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +17 -7
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -1
  4. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
  7. package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  9. package/dist/components/AvatarBase/AvatarBase.constants.cjs +16 -16
  10. package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
  11. package/dist/components/AvatarBase/AvatarBase.constants.mjs +16 -16
  12. package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
  13. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  14. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  15. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +17 -7
  16. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  17. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  18. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  19. package/dist/components/AvatarGroup/AvatarGroup.cjs +17 -7
  20. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  21. package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
  22. package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  23. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  24. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +4 -4
  25. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  26. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +4 -4
  27. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  28. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  29. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  30. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +17 -7
  31. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  32. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  33. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  34. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  35. package/dist/components/AvatarToken/AvatarToken.cjs +17 -7
  36. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  37. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  38. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  39. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  40. package/dist/components/BadgeCount/BadgeCount.constants.cjs +1 -1
  41. package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
  42. package/dist/components/BadgeCount/BadgeCount.constants.mjs +1 -1
  43. package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
  44. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  45. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  46. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  47. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  48. package/dist/components/BadgeNetwork/BadgeNetwork.d.cts.map +1 -1
  49. package/dist/components/BadgeNetwork/BadgeNetwork.d.mts.map +1 -1
  50. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +1 -1
  51. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
  52. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
  53. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
  54. package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
  55. package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
  56. package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
  57. package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
  58. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  59. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  60. package/dist/components/BannerBase/BannerBase.cjs +17 -7
  61. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  62. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  63. package/dist/components/BottomSheet/BottomSheet.cjs +17 -7
  64. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  65. package/dist/components/BottomSheet/BottomSheet.d.cts +8 -8
  66. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  67. package/dist/components/BottomSheet/BottomSheet.d.mts +8 -8
  68. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  69. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +17 -7
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +6 -6
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +6 -6
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  77. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
  78. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
  79. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +17 -7
  80. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
  81. package/dist/components/Box/Box.cjs +17 -7
  82. package/dist/components/Box/Box.cjs.map +1 -1
  83. package/dist/components/Box/Box.d.cts +1 -1
  84. package/dist/components/Box/Box.d.mts +1 -1
  85. package/dist/components/BoxColumn/BoxColumn.cjs +13 -0
  86. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
  87. package/dist/components/BoxColumn/BoxColumn.d.cts +13 -0
  88. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
  89. package/dist/components/BoxColumn/BoxColumn.d.mts +13 -0
  90. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
  91. package/dist/components/BoxColumn/BoxColumn.mjs +13 -0
  92. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
  93. package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -1
  94. package/dist/components/BoxColumn/BoxColumn.types.d.cts +2 -0
  95. package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -1
  96. package/dist/components/BoxColumn/BoxColumn.types.d.mts +2 -0
  97. package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -1
  98. package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -1
  99. package/dist/components/BoxRow/BoxRow.cjs +13 -0
  100. package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
  101. package/dist/components/BoxRow/BoxRow.d.cts +13 -0
  102. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
  103. package/dist/components/BoxRow/BoxRow.d.mts +13 -0
  104. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
  105. package/dist/components/BoxRow/BoxRow.mjs +13 -0
  106. package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
  107. package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -1
  108. package/dist/components/BoxRow/BoxRow.types.d.cts +2 -0
  109. package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -1
  110. package/dist/components/BoxRow/BoxRow.types.d.mts +2 -0
  111. package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -1
  112. package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -1
  113. package/dist/components/Button/Button.cjs.map +1 -1
  114. package/dist/components/Button/Button.d.cts.map +1 -1
  115. package/dist/components/Button/Button.d.mts.map +1 -1
  116. package/dist/components/Button/Button.mjs.map +1 -1
  117. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +17 -7
  118. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  119. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  120. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  121. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  122. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +17 -7
  123. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  124. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  125. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  126. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  127. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +17 -7
  128. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  129. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  130. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  131. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  132. package/dist/components/ButtonBase/ButtonBase.cjs +27 -13
  133. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  134. package/dist/components/ButtonBase/ButtonBase.constants.cjs +2 -2
  135. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  136. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  137. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  138. package/dist/components/ButtonBase/ButtonBase.constants.mjs +2 -2
  139. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  140. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  141. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  142. package/dist/components/ButtonBase/ButtonBase.mjs +11 -7
  143. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  144. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  145. package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -4
  146. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  147. package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -4
  148. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  149. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  150. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -1
  151. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -1
  152. package/dist/components/ButtonIcon/ButtonIcon.cjs +17 -7
  153. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  154. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  155. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  156. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  157. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +17 -7
  158. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -1
  159. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -1
  160. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -1
  161. package/dist/components/Card/Card.cjs.map +1 -1
  162. package/dist/components/Card/Card.mjs.map +1 -1
  163. package/dist/components/Checkbox/Checkbox.cjs +17 -7
  164. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  165. package/dist/components/Checkbox/Checkbox.d.cts +5 -6
  166. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  167. package/dist/components/Checkbox/Checkbox.d.mts +5 -6
  168. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  169. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  170. package/dist/components/Content/Content.cjs +40 -32
  171. package/dist/components/Content/Content.cjs.map +1 -1
  172. package/dist/components/Content/Content.d.cts.map +1 -1
  173. package/dist/components/Content/Content.d.mts.map +1 -1
  174. package/dist/components/Content/Content.mjs +40 -32
  175. package/dist/components/Content/Content.mjs.map +1 -1
  176. package/dist/components/FilterButton/FilterButton.cjs +17 -7
  177. package/dist/components/FilterButton/FilterButton.cjs.map +1 -1
  178. package/dist/components/FilterButton/FilterButton.mjs.map +1 -1
  179. package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs +17 -7
  180. package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs.map +1 -1
  181. package/dist/components/HeaderBase/HeaderBase.cjs +17 -7
  182. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  183. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  184. package/dist/components/HeaderRoot/HeaderRoot.cjs +8 -5
  185. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  186. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
  187. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
  188. package/dist/components/HeaderRoot/HeaderRoot.mjs +8 -5
  189. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  190. package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -1
  191. package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -1
  192. package/dist/components/HeaderStandard/HeaderStandard.cjs +17 -7
  193. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  194. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  195. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs +17 -7
  196. package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs.map +1 -1
  197. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs +1 -2
  198. package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs.map +1 -1
  199. package/dist/components/HeaderSubpage/HeaderSubpage.cjs +17 -7
  200. package/dist/components/HeaderSubpage/HeaderSubpage.cjs.map +1 -1
  201. package/dist/components/HeaderSubpage/HeaderSubpage.mjs.map +1 -1
  202. package/dist/components/HelpText/HelpText.cjs.map +1 -1
  203. package/dist/components/HelpText/HelpText.mjs.map +1 -1
  204. package/dist/components/Icon/Icon.constants.cjs +4 -4
  205. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  206. package/dist/components/Icon/Icon.constants.mjs +4 -4
  207. package/dist/components/Icon/Icon.constants.mjs.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/assets/musd-filled.svg +1 -1
  211. package/dist/components/Input/Input.cjs.map +1 -1
  212. package/dist/components/Input/Input.d.cts +1 -1
  213. package/dist/components/Input/Input.d.mts +1 -1
  214. package/dist/components/Input/Input.mjs.map +1 -1
  215. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +21 -12
  216. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  217. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  218. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  219. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +22 -13
  220. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  221. package/dist/components/KeyValueRow/KeyValueRow.cjs +19 -10
  222. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  223. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  224. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  225. package/dist/components/KeyValueRow/KeyValueRow.mjs +20 -11
  226. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  227. package/dist/components/KeyValueSelect/KeyValueSelect.cjs +17 -7
  228. package/dist/components/KeyValueSelect/KeyValueSelect.cjs.map +1 -1
  229. package/dist/components/KeyValueSelect/KeyValueSelect.d.cts +5 -5
  230. package/dist/components/KeyValueSelect/KeyValueSelect.d.mts +5 -5
  231. package/dist/components/KeyValueSelect/KeyValueSelect.mjs.map +1 -1
  232. package/dist/components/ListItem/ListItem.cjs +4 -3
  233. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  234. package/dist/components/ListItem/ListItem.d.cts.map +1 -1
  235. package/dist/components/ListItem/ListItem.d.mts.map +1 -1
  236. package/dist/components/ListItem/ListItem.mjs +5 -4
  237. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  238. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs.map +1 -1
  239. package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs.map +1 -1
  240. package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -1
  241. package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -1
  242. package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
  243. package/dist/components/RadioButton/RadioButton.d.cts.map +1 -1
  244. package/dist/components/RadioButton/RadioButton.d.mts.map +1 -1
  245. package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
  246. package/dist/components/SectionDivider/SectionDivider.cjs +17 -7
  247. package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -1
  248. package/dist/components/SectionDivider/SectionDivider.d.cts +1 -1
  249. package/dist/components/SectionDivider/SectionDivider.d.mts +1 -1
  250. package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -1
  251. package/dist/components/SectionHeader/SectionHeader.cjs +17 -10
  252. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  253. package/dist/components/SectionHeader/SectionHeader.d.cts +2 -2
  254. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
  255. package/dist/components/SectionHeader/SectionHeader.d.mts +2 -2
  256. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
  257. package/dist/components/SectionHeader/SectionHeader.mjs +18 -11
  258. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
  259. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
  260. package/dist/components/SectionHeader/SectionHeader.types.d.cts +5 -5
  261. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
  262. package/dist/components/SectionHeader/SectionHeader.types.d.mts +5 -5
  263. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
  264. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
  265. package/dist/components/SegmentedControl/SegmentedControl.cjs +17 -7
  266. package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  267. package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
  268. package/dist/components/SelectButton/SelectButton.mjs.map +1 -1
  269. package/dist/components/SensitiveText/SensitiveText.cjs +17 -7
  270. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
  271. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
  272. package/dist/components/Skeleton/Skeleton.cjs +17 -7
  273. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  274. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  275. package/dist/components/Slider/Slider.cjs +17 -7
  276. package/dist/components/Slider/Slider.cjs.map +1 -1
  277. package/dist/components/Slider/Slider.constants.cjs +5 -6
  278. package/dist/components/Slider/Slider.constants.cjs.map +1 -1
  279. package/dist/components/Slider/Slider.constants.d.cts +5 -6
  280. package/dist/components/Slider/Slider.constants.d.cts.map +1 -1
  281. package/dist/components/Slider/Slider.constants.d.mts +5 -6
  282. package/dist/components/Slider/Slider.constants.d.mts.map +1 -1
  283. package/dist/components/Slider/Slider.constants.mjs +5 -6
  284. package/dist/components/Slider/Slider.constants.mjs.map +1 -1
  285. package/dist/components/Slider/Slider.mjs.map +1 -1
  286. package/dist/components/Slider/Slider.types.cjs.map +1 -1
  287. package/dist/components/Slider/Slider.types.d.cts +4 -5
  288. package/dist/components/Slider/Slider.types.d.cts.map +1 -1
  289. package/dist/components/Slider/Slider.types.d.mts +4 -5
  290. package/dist/components/Slider/Slider.types.d.mts.map +1 -1
  291. package/dist/components/Slider/Slider.types.mjs.map +1 -1
  292. package/dist/components/Slider/Slider.utilities.cjs +55 -26
  293. package/dist/components/Slider/Slider.utilities.cjs.map +1 -1
  294. package/dist/components/Slider/Slider.utilities.d.cts +24 -3
  295. package/dist/components/Slider/Slider.utilities.d.cts.map +1 -1
  296. package/dist/components/Slider/Slider.utilities.d.mts +24 -3
  297. package/dist/components/Slider/Slider.utilities.d.mts.map +1 -1
  298. package/dist/components/Slider/Slider.utilities.mjs +38 -8
  299. package/dist/components/Slider/Slider.utilities.mjs.map +1 -1
  300. package/dist/components/Slider/useSliderGesture.cjs +1 -2
  301. package/dist/components/Slider/useSliderGesture.cjs.map +1 -1
  302. package/dist/components/Slider/useSliderGesture.mjs.map +1 -1
  303. package/dist/components/Spinner/Spinner.cjs +95 -0
  304. package/dist/components/Spinner/Spinner.cjs.map +1 -0
  305. package/dist/components/Spinner/Spinner.d.cts.map +1 -0
  306. package/dist/components/Spinner/Spinner.d.mts.map +1 -0
  307. package/dist/components/Spinner/Spinner.mjs +65 -0
  308. package/dist/components/Spinner/Spinner.mjs.map +1 -0
  309. package/dist/components/Spinner/Spinner.types.cjs.map +1 -0
  310. package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.d.cts +2 -2
  311. package/dist/components/Spinner/Spinner.types.d.cts.map +1 -0
  312. package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.d.mts +2 -2
  313. package/dist/components/Spinner/Spinner.types.d.mts.map +1 -0
  314. package/dist/components/Spinner/Spinner.types.mjs.map +1 -0
  315. package/dist/components/Spinner/index.cjs.map +1 -0
  316. package/dist/components/Spinner/index.d.cts.map +1 -0
  317. package/dist/components/Spinner/index.d.mts.map +1 -0
  318. package/dist/components/Spinner/index.mjs.map +1 -0
  319. package/dist/components/Switch/Switch.d.cts.map +1 -1
  320. package/dist/components/Switch/Switch.d.mts.map +1 -1
  321. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
  322. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
  323. package/dist/components/Tag/Tag.cjs +12 -18
  324. package/dist/components/Tag/Tag.cjs.map +1 -1
  325. package/dist/components/Tag/Tag.d.cts.map +1 -1
  326. package/dist/components/Tag/Tag.d.mts.map +1 -1
  327. package/dist/components/Tag/Tag.mjs +13 -19
  328. package/dist/components/Tag/Tag.mjs.map +1 -1
  329. package/dist/components/Text/Text.cjs +17 -7
  330. package/dist/components/Text/Text.cjs.map +1 -1
  331. package/dist/components/TextArea/TextArea.cjs.map +1 -1
  332. package/dist/components/TextArea/TextArea.d.cts +131 -130
  333. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  334. package/dist/components/TextArea/TextArea.d.mts +131 -130
  335. package/dist/components/TextArea/TextArea.d.mts.map +1 -1
  336. package/dist/components/TextArea/TextArea.mjs.map +1 -1
  337. package/dist/components/TextButton/TextButton.cjs +17 -7
  338. package/dist/components/TextButton/TextButton.cjs.map +1 -1
  339. package/dist/components/TextButton/TextButton.mjs.map +1 -1
  340. package/dist/components/TextField/TextField.cjs.map +1 -1
  341. package/dist/components/TextField/TextField.d.cts +136 -135
  342. package/dist/components/TextField/TextField.d.cts.map +1 -1
  343. package/dist/components/TextField/TextField.d.mts +136 -135
  344. package/dist/components/TextField/TextField.d.mts.map +1 -1
  345. package/dist/components/TextField/TextField.mjs.map +1 -1
  346. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +17 -7
  347. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -1
  348. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +136 -136
  349. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  350. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +136 -136
  351. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  352. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -1
  353. package/dist/components/TitleAlert/TitleAlert.cjs +20 -18
  354. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -1
  355. package/dist/components/TitleAlert/TitleAlert.d.cts +3 -3
  356. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -1
  357. package/dist/components/TitleAlert/TitleAlert.d.mts +3 -3
  358. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -1
  359. package/dist/components/TitleAlert/TitleAlert.mjs +21 -19
  360. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -1
  361. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -1
  362. package/dist/components/TitleAlert/TitleAlert.types.d.cts +6 -7
  363. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -1
  364. package/dist/components/TitleAlert/TitleAlert.types.d.mts +6 -7
  365. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -1
  366. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -1
  367. package/dist/components/TitleHub/TitleHub.cjs +22 -13
  368. package/dist/components/TitleHub/TitleHub.cjs.map +1 -1
  369. package/dist/components/TitleHub/TitleHub.d.cts +3 -3
  370. package/dist/components/TitleHub/TitleHub.d.cts.map +1 -1
  371. package/dist/components/TitleHub/TitleHub.d.mts +3 -3
  372. package/dist/components/TitleHub/TitleHub.d.mts.map +1 -1
  373. package/dist/components/TitleHub/TitleHub.mjs +23 -14
  374. package/dist/components/TitleHub/TitleHub.mjs.map +1 -1
  375. package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -1
  376. package/dist/components/TitleHub/TitleHub.types.d.cts +10 -10
  377. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  378. package/dist/components/TitleHub/TitleHub.types.d.mts +10 -10
  379. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  380. package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -1
  381. package/dist/components/TitleStandard/TitleStandard.cjs +15 -9
  382. package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -1
  383. package/dist/components/TitleStandard/TitleStandard.d.cts +2 -2
  384. package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -1
  385. package/dist/components/TitleStandard/TitleStandard.d.mts +2 -2
  386. package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -1
  387. package/dist/components/TitleStandard/TitleStandard.mjs +16 -10
  388. package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -1
  389. package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -1
  390. package/dist/components/TitleStandard/TitleStandard.types.d.cts +7 -7
  391. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  392. package/dist/components/TitleStandard/TitleStandard.types.d.mts +7 -7
  393. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  394. package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -1
  395. package/dist/components/TitleSubpage/TitleSubpage.cjs +31 -18
  396. package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -1
  397. package/dist/components/TitleSubpage/TitleSubpage.d.cts +3 -3
  398. package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -1
  399. package/dist/components/TitleSubpage/TitleSubpage.d.mts +3 -3
  400. package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -1
  401. package/dist/components/TitleSubpage/TitleSubpage.mjs +32 -19
  402. package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -1
  403. package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -1
  404. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +8 -9
  405. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  406. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +8 -9
  407. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  408. package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -1
  409. package/dist/components/Toast/Toast.cjs.map +1 -1
  410. package/dist/components/Toast/Toast.mjs.map +1 -1
  411. package/dist/components/Toast/Toaster.cjs +17 -7
  412. package/dist/components/Toast/Toaster.cjs.map +1 -1
  413. package/dist/components/Toast/Toaster.d.cts +1 -1
  414. package/dist/components/Toast/Toaster.d.cts.map +1 -1
  415. package/dist/components/Toast/Toaster.d.mts +1 -1
  416. package/dist/components/Toast/Toaster.d.mts.map +1 -1
  417. package/dist/components/Toast/Toaster.mjs.map +1 -1
  418. package/dist/components/index.cjs +1 -1
  419. package/dist/components/index.cjs.map +1 -1
  420. package/dist/components/index.d.cts +2 -2
  421. package/dist/components/index.d.cts.map +1 -1
  422. package/dist/components/index.d.mts +2 -2
  423. package/dist/components/index.d.mts.map +1 -1
  424. package/dist/components/index.mjs +1 -1
  425. package/dist/components/index.mjs.map +1 -1
  426. package/dist/components/temp-components/Blockies/Blockies.d.cts.map +1 -1
  427. package/dist/components/temp-components/Blockies/Blockies.d.mts.map +1 -1
  428. package/dist/components/temp-components/Blockies/Blockies.utilities.cjs +2 -2
  429. package/dist/components/temp-components/Blockies/Blockies.utilities.cjs.map +1 -1
  430. package/dist/components/temp-components/Blockies/Blockies.utilities.mjs.map +1 -1
  431. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +17 -7
  432. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  433. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts.map +1 -1
  434. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts.map +1 -1
  435. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +10 -9
  436. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -1
  437. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -1
  438. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -1
  439. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +10 -8
  440. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -1
  441. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs +0 -5
  442. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs.map +1 -1
  443. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +17 -7
  444. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
  445. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.cts.map +1 -1
  446. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.mts.map +1 -1
  447. package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
  448. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
  449. package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
  450. package/dist/components/temp-components/Jazzicon/Jazzicon.d.cts.map +1 -1
  451. package/dist/components/temp-components/Jazzicon/Jazzicon.d.mts.map +1 -1
  452. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
  453. package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
  454. package/dist/components/temp-components/Maskicon/Maskicon.cjs +17 -7
  455. package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
  456. package/dist/components/temp-components/Maskicon/Maskicon.d.cts.map +1 -1
  457. package/dist/components/temp-components/Maskicon/Maskicon.d.mts.map +1 -1
  458. package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
  459. package/dist/components/temp-components/Maskicon/Maskicon.utilities.cjs +4 -5
  460. package/dist/components/temp-components/Maskicon/Maskicon.utilities.cjs.map +1 -1
  461. package/dist/components/temp-components/Maskicon/Maskicon.utilities.mjs.map +1 -1
  462. package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs +1 -1
  463. package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs.map +1 -1
  464. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.cts.map +1 -1
  465. package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.mts.map +1 -1
  466. package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs +1 -1
  467. package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs.map +1 -1
  468. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
  469. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +1 -1
  470. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +1 -1
  471. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
  472. package/dist/test-utils/createRenderer.cjs +17 -11
  473. package/dist/test-utils/createRenderer.cjs.map +1 -1
  474. package/dist/test-utils/createRenderer.d.cts.map +1 -1
  475. package/dist/test-utils/createRenderer.d.mts.map +1 -1
  476. package/package.json +5 -5
  477. package/dist/components/temp-components/Spinner/Spinner.cjs +0 -68
  478. package/dist/components/temp-components/Spinner/Spinner.cjs.map +0 -1
  479. package/dist/components/temp-components/Spinner/Spinner.d.cts.map +0 -1
  480. package/dist/components/temp-components/Spinner/Spinner.d.mts.map +0 -1
  481. package/dist/components/temp-components/Spinner/Spinner.mjs +0 -48
  482. package/dist/components/temp-components/Spinner/Spinner.mjs.map +0 -1
  483. package/dist/components/temp-components/Spinner/Spinner.types.cjs.map +0 -1
  484. package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +0 -1
  485. package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +0 -1
  486. package/dist/components/temp-components/Spinner/Spinner.types.mjs.map +0 -1
  487. package/dist/components/temp-components/Spinner/index.cjs.map +0 -1
  488. package/dist/components/temp-components/Spinner/index.d.cts.map +0 -1
  489. package/dist/components/temp-components/Spinner/index.d.mts.map +0 -1
  490. package/dist/components/temp-components/Spinner/index.mjs.map +0 -1
  491. /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.d.cts +0 -0
  492. /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.d.mts +0 -0
  493. /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.cjs +0 -0
  494. /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.mjs +0 -0
  495. /package/dist/components/{temp-components/Spinner → Spinner}/index.cjs +0 -0
  496. /package/dist/components/{temp-components/Spinner → Spinner}/index.d.cts +0 -0
  497. /package/dist/components/{temp-components/Spinner → Spinner}/index.d.mts +0 -0
  498. /package/dist/components/{temp-components/Spinner → Spinner}/index.mjs +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAS,CACR,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,C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ight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link BoxColumn}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root BoxColumn\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <BoxColumn\n alignItems={BoxAlignItems.Center}\n gap={1}\n topAccessory={<IconAlert severity={severity} size={IconSize.Xl} />}\n bottomAccessory={\n description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : undefined\n }\n twClassName={twClassName}\n {...props}\n >\n {title ? (\n <BoxRow\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxColumn>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
1
+ {"version":3,"file":"TitleAlert.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EACjD;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,cAAc,CAClB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,cAAc,CAClB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link Box}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root Box\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...props}\n >\n <IconAlert severity={severity} size={IconSize.Xl} />\n {title ? (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n </Box>\n ) : null}\n {description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : null}\n </Box>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link BoxColumn}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,\n * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults\n * `justifyContent` to center and `twClassName`\n * to include `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link Box}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via\n * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`\n * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -1,20 +1,19 @@
1
1
  import type { TitleAlertPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
3
+ import type { BoxProps } from "../Box/Box.types.cjs";
4
4
  import type { TextProps } from "../Text/Text.types.cjs";
5
5
  /**
6
6
  * TitleAlert component props (React Native).
7
7
  * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props
8
- * forwarded to the root {@link BoxColumn}.
8
+ * forwarded to the root {@link Box}.
9
9
  */
10
10
  export type TitleAlertProps = TitleAlertPropsShared & {
11
11
  /**
12
- * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,
13
- * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults
14
- * `justifyContent` to center and `twClassName`
15
- * to include `self-stretch`; values on this object override those defaults when set.
12
+ * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via
13
+ * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`
14
+ * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.
16
15
  */
17
- titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'endAccessory' | 'textProps'>;
16
+ titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
18
17
  /**
19
18
  * Optional props merged into title row `Text` when `title` is a string.
20
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,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C,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1,20 +1,19 @@
1
1
  import type { TitleAlertPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
3
+ import type { BoxProps } from "../Box/Box.types.mjs";
4
4
  import type { TextProps } from "../Text/Text.types.mjs";
5
5
  /**
6
6
  * TitleAlert component props (React Native).
7
7
  * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props
8
- * forwarded to the root {@link BoxColumn}.
8
+ * forwarded to the root {@link Box}.
9
9
  */
10
10
  export type TitleAlertProps = TitleAlertPropsShared & {
11
11
  /**
12
- * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,
13
- * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults
14
- * `justifyContent` to center and `twClassName`
15
- * to include `self-stretch`; values on this object override those defaults when set.
12
+ * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via
13
+ * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`
14
+ * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.
16
15
  */
17
- titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'endAccessory' | 'textProps'>;
16
+ titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
18
17
  /**
19
18
  * Optional props merged into title row `Text` when `title` is a string.
20
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;GAIG;AAC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@@
1
- {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link BoxColumn}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,\n * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults\n * `justifyContent` to center and `twClassName`\n * to include `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link Box}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via\n * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`\n * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -7,7 +7,7 @@ exports.TitleHub = void 0;
7
7
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const Box_1 = require("../Box/index.cjs");
10
- const BoxRow_1 = require("../BoxRow/index.cjs");
10
+ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
11
  /**
12
12
  * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
13
13
  * Remaining `View` props are forwarded to the root `Box`.
@@ -23,9 +23,9 @@ const BoxRow_1 = require("../BoxRow/index.cjs");
23
23
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
24
24
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
25
25
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
26
- * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
27
- * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
28
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
26
+ * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
27
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
28
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
29
29
  * @param props.twClassName - Optional Tailwind classes on the root container
30
30
  *
31
31
  * @returns The rendered TitleHub layout.
@@ -33,29 +33,38 @@ const BoxRow_1 = require("../BoxRow/index.cjs");
33
33
  const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
34
34
  return (<Box_1.Box gap={1} twClassName={twClassName} {...props}>
35
35
  {/* Title Row */}
36
- {title && (<BoxRow_1.BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
36
+ {title && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...titleWrapperProps}>
37
+ <TextOrChildren_1.TextOrChildren textProps={{
37
38
  variant: design_system_shared_1.TextVariant.HeadingMd,
38
39
  color: design_system_shared_1.TextColor.TextDefault,
39
40
  ...titleProps,
40
41
  }}>
41
- {title}
42
- </BoxRow_1.BoxRow>)}
42
+ {title}
43
+ </TextOrChildren_1.TextOrChildren>
44
+ {titleEndAccessory}
45
+ </Box_1.Box>)}
43
46
  {/* Amount Row */}
44
- {amount && (<BoxRow_1.BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
47
+ {amount && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...amountWrapperProps}>
48
+ <TextOrChildren_1.TextOrChildren textProps={{
45
49
  variant: design_system_shared_1.TextVariant.DisplayLg,
46
50
  ...amountProps,
47
51
  }}>
48
- {amount}
49
- </BoxRow_1.BoxRow>)}
52
+ {amount}
53
+ </TextOrChildren_1.TextOrChildren>
54
+ {amountEndAccessory}
55
+ </Box_1.Box>)}
50
56
  {/* Bottom Label Row */}
51
- {bottomLabel && (<BoxRow_1.BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
57
+ {bottomLabel && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...bottomLabelWrapperProps}>
58
+ <TextOrChildren_1.TextOrChildren textProps={{
52
59
  variant: design_system_shared_1.TextVariant.BodySm,
53
60
  fontWeight: design_system_shared_1.FontWeight.Medium,
54
61
  color: design_system_shared_1.TextColor.TextAlternative,
55
62
  ...bottomLabelProps,
56
63
  }}>
57
- {bottomLabel}
58
- </BoxRow_1.BoxRow>)}
64
+ {bottomLabel}
65
+ </TextOrChildren_1.TextOrChildren>
66
+ {bottomLabelEndAccessory}
67
+ </Box_1.Box>)}
59
68
  {/* Bottom Accessory Slot */}
60
69
  {!bottomLabel && bottomAccessory}
61
70
  </Box_1.Box>);
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAIiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,eAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,eAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,YAAY,CAAC,CAAC,kBAAkB,CAAC,CACjC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;UAAA,CAAC,MAAM,CACT;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,eAAM,CACL,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,QAAQ,YAiEnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <BoxRow\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Amount Row */}\n {amount && (\n <BoxRow\n {...amountWrapperProps}\n endAccessory={amountEndAccessory}\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </BoxRow>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
1
+ {"version":3,"file":"TitleHub.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAMiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,gFAAmE;AAInE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,iBAAiB,CACpB;QAAA,EA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["import {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `Box`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n )}\n {/* Amount Row */}\n {amount && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...amountWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </TextOrChildren>\n {amountEndAccessory}\n </Box>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
@@ -15,9 +15,9 @@ import type { TitleHubProps } from "./TitleHub.types.cjs";
15
15
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
16
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
17
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
- * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
- * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
21
21
  * @param props.twClassName - Optional Tailwind classes on the root container
22
22
  *
23
23
  * @returns The rendered TitleHub layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
1
+ {"version":3,"file":"TitleHub.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmF5C,CAAC"}
@@ -15,9 +15,9 @@ import type { TitleHubProps } from "./TitleHub.types.mjs";
15
15
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
16
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
17
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
- * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
- * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
21
21
  * @param props.twClassName - Optional Tailwind classes on the root container
22
22
  *
23
23
  * @returns The rendered TitleHub layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
1
+ {"version":3,"file":"TitleHub.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmF5C,CAAC"}
@@ -4,11 +4,11 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
7
+ import { BoxAlignItems, BoxFlexDirection, FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
10
  import { Box } from "../Box/index.mjs";
11
- import { BoxRow } from "../BoxRow/index.mjs";
11
+ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
12
  /**
13
13
  * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
14
14
  * Remaining `View` props are forwarded to the root `Box`.
@@ -24,9 +24,9 @@ import { BoxRow } from "../BoxRow/index.mjs";
24
24
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
25
25
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
26
26
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
27
- * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
28
- * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
29
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
27
+ * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
28
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
29
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
30
30
  * @param props.twClassName - Optional Tailwind classes on the root container
31
31
  *
32
32
  * @returns The rendered TitleHub layout.
@@ -34,29 +34,38 @@ import { BoxRow } from "../BoxRow/index.mjs";
34
34
  export const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
35
35
  return (<Box gap={1} twClassName={twClassName} {...props}>
36
36
  {/* Title Row */}
37
- {title && (<BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
37
+ {title && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...titleWrapperProps}>
38
+ <TextOrChildren textProps={{
38
39
  variant: TextVariant.HeadingMd,
39
40
  color: TextColor.TextDefault,
40
41
  ...titleProps,
41
42
  }}>
42
- {title}
43
- </BoxRow>)}
43
+ {title}
44
+ </TextOrChildren>
45
+ {titleEndAccessory}
46
+ </Box>)}
44
47
  {/* Amount Row */}
45
- {amount && (<BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
48
+ {amount && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...amountWrapperProps}>
49
+ <TextOrChildren textProps={{
46
50
  variant: TextVariant.DisplayLg,
47
51
  ...amountProps,
48
52
  }}>
49
- {amount}
50
- </BoxRow>)}
53
+ {amount}
54
+ </TextOrChildren>
55
+ {amountEndAccessory}
56
+ </Box>)}
51
57
  {/* Bottom Label Row */}
52
- {bottomLabel && (<BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
58
+ {bottomLabel && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...bottomLabelWrapperProps}>
59
+ <TextOrChildren textProps={{
53
60
  variant: TextVariant.BodySm,
54
61
  fontWeight: FontWeight.Medium,
55
62
  color: TextColor.TextAlternative,
56
63
  ...bottomLabelProps,
57
64
  }}>
58
- {bottomLabel}
59
- </BoxRow>)}
65
+ {bottomLabel}
66
+ </TextOrChildren>
67
+ {bottomLabelEndAccessory}
68
+ </Box>)}
60
69
  {/* Bottom Accessory Slot */}
61
70
  {!bottomLabel && bottomAccessory}
62
71
  </Box>);
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AAInC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,MAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,MAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,YAAY,CAAC,CAAC,kBAAkB,CAAC,CACjC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;UAAA,CAAC,MAAM,CACT;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,MAAM,CACL,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <BoxRow\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Amount Row */}\n {amount && (\n <BoxRow\n {...amountWrapperProps}\n endAccessory={amountEndAccessory}\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </BoxRow>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
1
+ {"version":3,"file":"TitleHub.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAA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AG,UAAU,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `Box`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n )}\n {/* Amount Row */}\n {amount && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...amountWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </TextOrChildren>\n {amountEndAccessory}\n </Box>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).\n */\n amountWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleHub.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the amount `Text` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).\n */\n amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { TitleHubPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
3
+ import type { BoxProps } from "../Box/Box.types.cjs";
4
4
  import type { SensitiveTextProps } from "../SensitiveText/index.cjs";
5
5
  import type { TextProps } from "../Text/Text.types.cjs";
6
6
  /**
@@ -9,31 +9,31 @@ import type { TextProps } from "../Text/Text.types.cjs";
9
9
  */
10
10
  export type TitleHubProps = TitleHubPropsShared & {
11
11
  /**
12
- * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ * Optional props merged into the title `Text` when `title` is a string.
13
13
  */
14
14
  titleProps?: Omit<Partial<TextProps>, 'children'>;
15
15
  /**
16
- * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
16
+ * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).
17
17
  */
18
- titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
18
+ titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
19
19
  /**
20
- * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
20
+ * Optional props merged into the amount `Text` when `amount` is a string.
21
21
  * Supports Text props plus `isHidden` / `length`.
22
22
  */
23
23
  amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
24
24
  /**
25
- * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
25
+ * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).
26
26
  */
27
- amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
27
+ amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
28
28
  /**
29
- * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
29
+ * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
30
30
  * Supports Text props plus `isHidden` / `length`.
31
31
  */
32
32
  bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
33
33
  /**
34
- * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
34
+ * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).
35
35
  */
36
- bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
36
+ bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
37
37
  /**
38
38
  * Optional Tailwind class name to apply to the container.
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,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AS,EAAE,UAAU,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { TitleHubPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
3
+ import type { BoxProps } from "../Box/Box.types.mjs";
4
4
  import type { SensitiveTextProps } from "../SensitiveText/index.mjs";
5
5
  import type { TextProps } from "../Text/Text.types.mjs";
6
6
  /**
@@ -9,31 +9,31 @@ import type { TextProps } from "../Text/Text.types.mjs";
9
9
  */
10
10
  export type TitleHubProps = TitleHubPropsShared & {
11
11
  /**
12
- * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ * Optional props merged into the title `Text` when `title` is a string.
13
13
  */
14
14
  titleProps?: Omit<Partial<TextProps>, 'children'>;
15
15
  /**
16
- * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
16
+ * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).
17
17
  */
18
- titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
18
+ titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
19
19
  /**
20
- * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
20
+ * Optional props merged into the amount `Text` when `amount` is a string.
21
21
  * Supports Text props plus `isHidden` / `length`.
22
22
  */
23
23
  amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
24
24
  /**
25
- * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
25
+ * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).
26
26
  */
27
- amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
27
+ amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
28
28
  /**
29
- * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
29
+ * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
30
30
  * Supports Text props plus `isHidden` / `length`.
31
31
  */
32
32
  bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
33
33
  /**
34
- * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
34
+ * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).
35
35
  */
36
- bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
36
+ bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
37
37
  /**
38
38
  * Optional Tailwind class name to apply to the container.
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,W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,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).\n */\n amountWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the amount `Text` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).\n */\n amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}