@metamask-previews/design-system-react-native 0.19.0-preview.1679aa9 → 0.22.0-preview.f515a62

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 (398) hide show
  1. package/CHANGELOG.md +49 -3
  2. package/dist/components/AvatarIcon/AvatarIcon.cjs +2 -1
  3. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  4. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +16 -16
  5. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  6. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts +1 -1
  7. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts +1 -1
  9. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +1 -1
  11. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  12. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  13. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  14. package/dist/components/AvatarIcon/AvatarIcon.mjs +2 -1
  15. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  16. package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
  17. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +3 -13
  18. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
  19. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +3 -13
  20. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
  21. package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
  22. package/dist/components/AvatarIcon/index.cjs +4 -4
  23. package/dist/components/AvatarIcon/index.cjs.map +1 -1
  24. package/dist/components/AvatarIcon/index.d.cts +1 -1
  25. package/dist/components/AvatarIcon/index.d.cts.map +1 -1
  26. package/dist/components/AvatarIcon/index.d.mts +1 -1
  27. package/dist/components/AvatarIcon/index.d.mts.map +1 -1
  28. package/dist/components/AvatarIcon/index.mjs +1 -1
  29. package/dist/components/AvatarIcon/index.mjs.map +1 -1
  30. package/dist/components/BadgeIcon/BadgeIcon.cjs +2 -1
  31. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  32. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  33. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  34. package/dist/components/BadgeIcon/BadgeIcon.mjs +2 -1
  35. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  36. package/dist/components/BadgeIcon/BadgeIcon.types.cjs.map +1 -1
  37. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +5 -7
  38. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  39. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +5 -7
  40. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  41. package/dist/components/BadgeIcon/BadgeIcon.types.mjs.map +1 -1
  42. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  43. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  44. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  45. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  46. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  47. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  48. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  49. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  50. package/dist/components/BannerBase/BannerBase.cjs +3 -4
  51. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  52. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  53. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  54. package/dist/components/BannerBase/BannerBase.mjs +1 -2
  55. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  56. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +1 -1
  57. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  58. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +1 -1
  59. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  60. package/dist/components/Box/Box.cjs +35 -12
  61. package/dist/components/Box/Box.cjs.map +1 -1
  62. package/dist/components/Box/Box.constants.cjs.map +1 -1
  63. package/dist/components/Box/Box.constants.d.cts +1 -1
  64. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  65. package/dist/components/Box/Box.constants.d.mts +1 -1
  66. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  67. package/dist/components/Box/Box.constants.mjs.map +1 -1
  68. package/dist/components/Box/Box.d.cts +4 -2
  69. package/dist/components/Box/Box.d.cts.map +1 -1
  70. package/dist/components/Box/Box.d.mts +4 -2
  71. package/dist/components/Box/Box.d.mts.map +1 -1
  72. package/dist/components/Box/Box.mjs +13 -9
  73. package/dist/components/Box/Box.mjs.map +1 -1
  74. package/dist/components/Box/Box.types.cjs.map +1 -1
  75. package/dist/components/Box/Box.types.d.cts +3 -107
  76. package/dist/components/Box/Box.types.d.cts.map +1 -1
  77. package/dist/components/Box/Box.types.d.mts +3 -107
  78. package/dist/components/Box/Box.types.d.mts.map +1 -1
  79. package/dist/components/Box/Box.types.mjs.map +1 -1
  80. package/dist/components/Box/index.cjs +7 -7
  81. package/dist/components/Box/index.cjs.map +1 -1
  82. package/dist/components/Box/index.d.cts +1 -2
  83. package/dist/components/Box/index.d.cts.map +1 -1
  84. package/dist/components/Box/index.d.mts +1 -2
  85. package/dist/components/Box/index.d.mts.map +1 -1
  86. package/dist/components/Box/index.mjs +1 -1
  87. package/dist/components/Box/index.mjs.map +1 -1
  88. package/dist/components/BoxColumn/BoxColumn.cjs +2 -2
  89. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
  90. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
  91. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
  92. package/dist/components/BoxColumn/BoxColumn.mjs +1 -1
  93. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
  94. package/dist/components/BoxRow/BoxRow.cjs +2 -2
  95. package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
  96. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
  97. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
  98. package/dist/components/BoxRow/BoxRow.mjs +1 -1
  99. package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
  100. package/dist/components/Button/Button.cjs +6 -6
  101. package/dist/components/Button/Button.cjs.map +1 -1
  102. package/dist/components/Button/Button.d.cts.map +1 -1
  103. package/dist/components/Button/Button.d.mts.map +1 -1
  104. package/dist/components/Button/Button.mjs +1 -1
  105. package/dist/components/Button/Button.mjs.map +1 -1
  106. package/dist/components/Button/Button.types.cjs.map +1 -1
  107. package/dist/components/Button/Button.types.d.cts +2 -7
  108. package/dist/components/Button/Button.types.d.cts.map +1 -1
  109. package/dist/components/Button/Button.types.d.mts +2 -7
  110. package/dist/components/Button/Button.types.d.mts.map +1 -1
  111. package/dist/components/Button/Button.types.mjs.map +1 -1
  112. package/dist/components/Button/index.cjs +3 -3
  113. package/dist/components/Button/index.cjs.map +1 -1
  114. package/dist/components/Button/index.d.cts +1 -1
  115. package/dist/components/Button/index.d.cts.map +1 -1
  116. package/dist/components/Button/index.d.mts +1 -1
  117. package/dist/components/Button/index.d.mts.map +1 -1
  118. package/dist/components/Button/index.mjs +1 -1
  119. package/dist/components/Button/index.mjs.map +1 -1
  120. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +2 -0
  121. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  122. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  123. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  124. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs +2 -0
  125. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  126. package/dist/components/Button/variants/ButtonPrimary/index.cjs +1 -3
  127. package/dist/components/Button/variants/ButtonPrimary/index.cjs.map +1 -1
  128. package/dist/components/Button/variants/ButtonPrimary/index.d.cts +0 -1
  129. package/dist/components/Button/variants/ButtonPrimary/index.d.cts.map +1 -1
  130. package/dist/components/Button/variants/ButtonPrimary/index.d.mts +0 -1
  131. package/dist/components/Button/variants/ButtonPrimary/index.d.mts.map +1 -1
  132. package/dist/components/Button/variants/ButtonPrimary/index.mjs +0 -1
  133. package/dist/components/Button/variants/ButtonPrimary/index.mjs.map +1 -1
  134. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +2 -0
  135. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  136. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  137. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  138. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs +2 -0
  139. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  140. package/dist/components/Button/variants/ButtonSecondary/index.cjs +1 -3
  141. package/dist/components/Button/variants/ButtonSecondary/index.cjs.map +1 -1
  142. package/dist/components/Button/variants/ButtonSecondary/index.d.cts +0 -1
  143. package/dist/components/Button/variants/ButtonSecondary/index.d.cts.map +1 -1
  144. package/dist/components/Button/variants/ButtonSecondary/index.d.mts +0 -1
  145. package/dist/components/Button/variants/ButtonSecondary/index.d.mts.map +1 -1
  146. package/dist/components/Button/variants/ButtonSecondary/index.mjs +0 -1
  147. package/dist/components/Button/variants/ButtonSecondary/index.mjs.map +1 -1
  148. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +4 -3
  149. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  150. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  151. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  152. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +4 -3
  153. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  154. package/dist/components/Button/variants/ButtonTertiary/index.cjs +1 -3
  155. package/dist/components/Button/variants/ButtonTertiary/index.cjs.map +1 -1
  156. package/dist/components/Button/variants/ButtonTertiary/index.d.cts +0 -1
  157. package/dist/components/Button/variants/ButtonTertiary/index.d.cts.map +1 -1
  158. package/dist/components/Button/variants/ButtonTertiary/index.d.mts +0 -1
  159. package/dist/components/Button/variants/ButtonTertiary/index.d.mts.map +1 -1
  160. package/dist/components/Button/variants/ButtonTertiary/index.mjs +0 -1
  161. package/dist/components/Button/variants/ButtonTertiary/index.mjs.map +1 -1
  162. package/dist/components/ButtonBase/ButtonBase.cjs +2 -2
  163. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  164. package/dist/components/ButtonBase/ButtonBase.constants.cjs +4 -4
  165. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  166. package/dist/components/ButtonBase/ButtonBase.constants.d.cts +1 -1
  167. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  168. package/dist/components/ButtonBase/ButtonBase.constants.d.mts +1 -1
  169. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  170. package/dist/components/ButtonBase/ButtonBase.constants.mjs +1 -1
  171. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  172. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  173. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  174. package/dist/components/ButtonBase/ButtonBase.mjs +1 -1
  175. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  176. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  177. package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -32
  178. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  179. package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -32
  180. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  181. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  182. package/dist/components/ButtonBase/index.cjs +2 -2
  183. package/dist/components/ButtonBase/index.cjs.map +1 -1
  184. package/dist/components/ButtonBase/index.d.cts +1 -1
  185. package/dist/components/ButtonBase/index.d.cts.map +1 -1
  186. package/dist/components/ButtonBase/index.d.mts +1 -1
  187. package/dist/components/ButtonBase/index.d.mts.map +1 -1
  188. package/dist/components/ButtonBase/index.mjs +1 -1
  189. package/dist/components/ButtonBase/index.mjs.map +1 -1
  190. package/dist/components/ButtonHero/index.cjs +2 -2
  191. package/dist/components/ButtonHero/index.cjs.map +1 -1
  192. package/dist/components/ButtonHero/index.d.cts +1 -1
  193. package/dist/components/ButtonHero/index.d.cts.map +1 -1
  194. package/dist/components/ButtonHero/index.d.mts +1 -1
  195. package/dist/components/ButtonHero/index.d.mts.map +1 -1
  196. package/dist/components/ButtonHero/index.mjs +1 -1
  197. package/dist/components/ButtonHero/index.mjs.map +1 -1
  198. package/dist/components/ButtonIcon/ButtonIcon.cjs +6 -6
  199. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  200. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +7 -8
  201. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
  202. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +1 -2
  203. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  204. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +1 -2
  205. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  206. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +1 -2
  207. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.map +1 -1
  208. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  209. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  210. package/dist/components/ButtonIcon/ButtonIcon.mjs +1 -1
  211. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  212. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  213. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +3 -26
  214. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  215. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +3 -26
  216. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  217. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  218. package/dist/components/ButtonIcon/index.cjs +3 -3
  219. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  220. package/dist/components/ButtonIcon/index.d.cts +1 -1
  221. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  222. package/dist/components/ButtonIcon/index.d.mts +1 -1
  223. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  224. package/dist/components/ButtonIcon/index.mjs +1 -1
  225. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  226. package/dist/components/Icon/Icon.assets.cjs +284 -283
  227. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  228. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  229. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  230. package/dist/components/Icon/Icon.assets.mjs +284 -283
  231. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  232. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  233. package/dist/components/Icon/Icon.types.d.cts +2 -19
  234. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  235. package/dist/components/Icon/Icon.types.d.mts +2 -19
  236. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  237. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  238. package/dist/components/Icon/assets/after-hours.svg +1 -1
  239. package/dist/components/Icon/assets/telegram.svg +3 -0
  240. package/dist/components/Input/Input.cjs +2 -2
  241. package/dist/components/Input/Input.cjs.map +1 -1
  242. package/dist/components/Input/Input.d.cts +1 -1
  243. package/dist/components/Input/Input.d.mts +1 -1
  244. package/dist/components/Input/Input.mjs +2 -2
  245. package/dist/components/Input/Input.mjs.map +1 -1
  246. package/dist/components/Input/Input.types.cjs.map +1 -1
  247. package/dist/components/Input/Input.types.d.cts +1 -1
  248. package/dist/components/Input/Input.types.d.mts +1 -1
  249. package/dist/components/Input/Input.types.mjs.map +1 -1
  250. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +2 -2
  251. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  252. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  253. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  254. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +2 -2
  255. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  256. package/dist/components/KeyValueRow/KeyValueRow.cjs +2 -2
  257. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  258. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  259. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  260. package/dist/components/KeyValueRow/KeyValueRow.mjs +2 -2
  261. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  262. package/dist/components/TabEmptyState/TabEmptyState.cjs +1 -1
  263. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -1
  264. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
  265. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
  266. package/dist/components/TabEmptyState/TabEmptyState.mjs +1 -1
  267. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -1
  268. package/dist/components/Tag/Tag.constants.cjs +5 -5
  269. package/dist/components/Tag/Tag.constants.cjs.map +1 -1
  270. package/dist/components/Tag/Tag.constants.d.cts +2 -2
  271. package/dist/components/Tag/Tag.constants.d.cts.map +1 -1
  272. package/dist/components/Tag/Tag.constants.d.mts +2 -2
  273. package/dist/components/Tag/Tag.constants.d.mts.map +1 -1
  274. package/dist/components/Tag/Tag.constants.mjs +2 -2
  275. package/dist/components/Tag/Tag.constants.mjs.map +1 -1
  276. package/dist/components/TextField/TextField.cjs +10 -30
  277. package/dist/components/TextField/TextField.cjs.map +1 -1
  278. package/dist/components/TextField/TextField.d.cts +159 -7
  279. package/dist/components/TextField/TextField.d.cts.map +1 -1
  280. package/dist/components/TextField/TextField.d.mts +159 -7
  281. package/dist/components/TextField/TextField.d.mts.map +1 -1
  282. package/dist/components/TextField/TextField.mjs +12 -32
  283. package/dist/components/TextField/TextField.mjs.map +1 -1
  284. package/dist/components/TextField/TextField.types.cjs.map +1 -1
  285. package/dist/components/TextField/TextField.types.d.cts +41 -16
  286. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  287. package/dist/components/TextField/TextField.types.d.mts +41 -16
  288. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  289. package/dist/components/TextField/TextField.types.mjs.map +1 -1
  290. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -1
  291. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +160 -8
  292. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
  293. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +160 -8
  294. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
  295. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -1
  296. package/dist/components/TitleStandard/TitleStandard.cjs +58 -0
  297. package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -0
  298. package/dist/components/TitleStandard/TitleStandard.d.cts +23 -0
  299. package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -0
  300. package/dist/components/TitleStandard/TitleStandard.d.mts +23 -0
  301. package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -0
  302. package/dist/components/TitleStandard/TitleStandard.mjs +58 -0
  303. package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -0
  304. package/dist/components/TitleStandard/TitleStandard.types.cjs +3 -0
  305. package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -0
  306. package/dist/components/TitleStandard/TitleStandard.types.d.cts +31 -0
  307. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -0
  308. package/dist/components/TitleStandard/TitleStandard.types.d.mts +31 -0
  309. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -0
  310. package/dist/components/TitleStandard/TitleStandard.types.mjs +2 -0
  311. package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -0
  312. package/dist/components/TitleStandard/index.cjs +6 -0
  313. package/dist/components/TitleStandard/index.cjs.map +1 -0
  314. package/dist/components/TitleStandard/index.d.cts +3 -0
  315. package/dist/components/TitleStandard/index.d.cts.map +1 -0
  316. package/dist/components/TitleStandard/index.d.mts +3 -0
  317. package/dist/components/TitleStandard/index.d.mts.map +1 -0
  318. package/dist/components/TitleStandard/index.mjs +2 -0
  319. package/dist/components/TitleStandard/index.mjs.map +1 -0
  320. package/dist/components/TitleSubpage/TitleSubpage.cjs +85 -0
  321. package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -0
  322. package/dist/components/TitleSubpage/TitleSubpage.d.cts +30 -0
  323. package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -0
  324. package/dist/components/TitleSubpage/TitleSubpage.d.mts +30 -0
  325. package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -0
  326. package/dist/components/TitleSubpage/TitleSubpage.mjs +85 -0
  327. package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -0
  328. package/dist/components/TitleSubpage/TitleSubpage.types.cjs +3 -0
  329. package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -0
  330. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +44 -0
  331. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -0
  332. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +44 -0
  333. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -0
  334. package/dist/components/TitleSubpage/TitleSubpage.types.mjs +2 -0
  335. package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -0
  336. package/dist/components/TitleSubpage/index.cjs +6 -0
  337. package/dist/components/TitleSubpage/index.cjs.map +1 -0
  338. package/dist/components/TitleSubpage/index.d.cts +3 -0
  339. package/dist/components/TitleSubpage/index.d.cts.map +1 -0
  340. package/dist/components/TitleSubpage/index.d.mts +3 -0
  341. package/dist/components/TitleSubpage/index.d.mts.map +1 -0
  342. package/dist/components/TitleSubpage/index.mjs +2 -0
  343. package/dist/components/TitleSubpage/index.mjs.map +1 -0
  344. package/dist/components/Toast/Toast.cjs +29 -142
  345. package/dist/components/Toast/Toast.cjs.map +1 -1
  346. package/dist/components/Toast/Toast.d.cts +15 -3
  347. package/dist/components/Toast/Toast.d.cts.map +1 -1
  348. package/dist/components/Toast/Toast.d.mts +15 -3
  349. package/dist/components/Toast/Toast.d.mts.map +1 -1
  350. package/dist/components/Toast/Toast.mjs +30 -143
  351. package/dist/components/Toast/Toast.mjs.map +1 -1
  352. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  353. package/dist/components/Toast/Toast.types.d.cts +1 -8
  354. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  355. package/dist/components/Toast/Toast.types.d.mts +1 -8
  356. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  357. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  358. package/dist/components/Toast/ToastView.cjs +174 -0
  359. package/dist/components/Toast/ToastView.cjs.map +1 -0
  360. package/dist/components/Toast/ToastView.d.cts +7 -0
  361. package/dist/components/Toast/ToastView.d.cts.map +1 -0
  362. package/dist/components/Toast/ToastView.d.mts +7 -0
  363. package/dist/components/Toast/ToastView.d.mts.map +1 -0
  364. package/dist/components/Toast/ToastView.mjs +155 -0
  365. package/dist/components/Toast/ToastView.mjs.map +1 -0
  366. package/dist/components/Toast/index.cjs +1 -4
  367. package/dist/components/Toast/index.cjs.map +1 -1
  368. package/dist/components/Toast/index.d.cts +1 -2
  369. package/dist/components/Toast/index.d.cts.map +1 -1
  370. package/dist/components/Toast/index.d.mts +1 -2
  371. package/dist/components/Toast/index.d.mts.map +1 -1
  372. package/dist/components/Toast/index.mjs +0 -1
  373. package/dist/components/Toast/index.mjs.map +1 -1
  374. package/dist/components/index.cjs +6 -4
  375. package/dist/components/index.cjs.map +1 -1
  376. package/dist/components/index.d.cts +6 -2
  377. package/dist/components/index.d.cts.map +1 -1
  378. package/dist/components/index.d.mts +6 -2
  379. package/dist/components/index.d.mts.map +1 -1
  380. package/dist/components/index.mjs +3 -1
  381. package/dist/components/index.mjs.map +1 -1
  382. package/dist/types/index.cjs +8 -596
  383. package/dist/types/index.cjs.map +1 -1
  384. package/dist/types/index.d.cts +4 -586
  385. package/dist/types/index.d.cts.map +1 -1
  386. package/dist/types/index.d.mts +4 -586
  387. package/dist/types/index.d.mts.map +1 -1
  388. package/dist/types/index.mjs +4 -599
  389. package/dist/types/index.mjs.map +1 -1
  390. package/package.json +5 -6
  391. package/dist/components/Toast/Toast.context.cjs +0 -40
  392. package/dist/components/Toast/Toast.context.cjs.map +0 -1
  393. package/dist/components/Toast/Toast.context.d.cts +0 -7
  394. package/dist/components/Toast/Toast.context.d.cts.map +0 -1
  395. package/dist/components/Toast/Toast.context.d.mts +0 -7
  396. package/dist/components/Toast/Toast.context.d.mts.map +0 -1
  397. package/dist/components/Toast/Toast.context.mjs +0 -20
  398. package/dist/components/Toast/Toast.context.mjs.map +0 -1
@@ -0,0 +1,31 @@
1
+ import type { TitleStandardPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
4
+ import type { TextProps } from "../Text/Text.types.cjs";
5
+ /**
6
+ * TitleStandard component props (React Native).
7
+ * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleStandardProps = TitleStandardPropsShared & {
10
+ /**
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ */
13
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
14
+ /**
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
+ */
21
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
23
+ * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
24
+ */
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
+ /**
27
+ * Optional Tailwind class name to apply to the container.
28
+ */
29
+ twClassName?: string;
30
+ } & Omit<ViewProps, 'children'>;
31
+ //# sourceMappingURL=TitleStandard.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;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,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { TitleStandardPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
4
+ import type { TextProps } from "../Text/Text.types.mjs";
5
+ /**
6
+ * TitleStandard component props (React Native).
7
+ * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleStandardProps = TitleStandardPropsShared & {
10
+ /**
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ */
13
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
14
+ /**
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
+ */
21
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
23
+ * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
24
+ */
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
+ /**
27
+ * Optional Tailwind class name to apply to the container.
28
+ */
29
+ twClassName?: string;
30
+ } & Omit<ViewProps, 'children'>;
31
+ //# sourceMappingURL=TitleStandard.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;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,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TitleStandard.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } 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 { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\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 forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TitleStandard = void 0;
4
+ var TitleStandard_1 = require("./TitleStandard.cjs");
5
+ Object.defineProperty(exports, "TitleStandard", { enumerable: true, get: function () { return TitleStandard_1.TitleStandard; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { TitleStandard } from './TitleStandard';\nexport type { TitleStandardProps } from './TitleStandard.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TitleStandard } from "./TitleStandard.cjs";
2
+ export type { TitleStandardProps } from "./TitleStandard.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,3 @@
1
+ export { TitleStandard } from "./TitleStandard.mjs";
2
+ export type { TitleStandardProps } from "./TitleStandard.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { TitleStandard } from "./TitleStandard.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { TitleStandard } from './TitleStandard';\nexport type { TitleStandardProps } from './TitleStandard.types';\n"]}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TitleSubpage = void 0;
7
+ // Third party dependencies.
8
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
9
+ const react_1 = __importDefault(require("react"));
10
+ // Internal dependencies.
11
+ const Box_1 = require("../Box/index.cjs");
12
+ const BoxRow_1 = require("../BoxRow/index.cjs");
13
+ /**
14
+ * Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.
15
+ * Remaining `View` props are forwarded to the root `Box`.
16
+ *
17
+ * @param props - Component props
18
+ * @param props.title - Title row content (required)
19
+ * @param props.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)
20
+ * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)
21
+ * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
22
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)
23
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
24
+ * @param props.subtitle - Optional subtitle row below the title and above the amount
25
+ * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
26
+ * @param props.amount - Optional primary amount below the title
27
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
28
+ * @param props.bottomAccessory - Optional custom bottom row when the bottom label row is not shown
29
+ * @param props.bottomLabel - Optional secondary label below the amount row
30
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`
31
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
32
+ * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` is a string
33
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
34
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
35
+ * @param props.twClassName - Optional Tailwind classes on the root container
36
+ *
37
+ * @returns The rendered TitleSubpage layout.
38
+ */
39
+ const TitleSubpage = ({ amount, amountEndAccessory, title, titleAvatar, titleEndAccessory, subtitle, subtitleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, subtitleProps, bottomLabelProps, identityRowProps, titleColumnProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
40
+ return (<Box_1.Box twClassName={twClassName} gap={1} {...props}>
41
+ {/* Identity Row */}
42
+ <BoxRow_1.BoxRow gap={4} twClassName="h-14" {...identityRowProps} startAccessory={titleAvatar}>
43
+ {/* Title and Subtitle Column */}
44
+ <Box_1.Box {...titleColumnProps}>
45
+ {/* Title Row */}
46
+ {title && (<BoxRow_1.BoxRow endAccessory={titleEndAccessory} textProps={{
47
+ variant: design_system_shared_1.TextVariant.HeadingSm,
48
+ color: design_system_shared_1.TextColor.TextDefault,
49
+ ...titleProps,
50
+ }}>
51
+ {title}
52
+ </BoxRow_1.BoxRow>)}
53
+ {/* Subtitle Row */}
54
+ {subtitle && (<BoxRow_1.BoxRow endAccessory={subtitleEndAccessory} textProps={{
55
+ variant: design_system_shared_1.TextVariant.BodySm,
56
+ fontWeight: design_system_shared_1.FontWeight.Medium,
57
+ color: design_system_shared_1.TextColor.TextAlternative,
58
+ ...subtitleProps,
59
+ }}>
60
+ {subtitle}
61
+ </BoxRow_1.BoxRow>)}
62
+ </Box_1.Box>
63
+ </BoxRow_1.BoxRow>
64
+ {/* Amount Row */}
65
+ {amount && (<BoxRow_1.BoxRow endAccessory={amountEndAccessory} textProps={{
66
+ variant: design_system_shared_1.TextVariant.DisplayLg,
67
+ ...amountProps,
68
+ }}>
69
+ {amount}
70
+ </BoxRow_1.BoxRow>)}
71
+ {/* Bottom Label Row */}
72
+ {bottomLabel && (<BoxRow_1.BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
73
+ variant: design_system_shared_1.TextVariant.BodySm,
74
+ fontWeight: design_system_shared_1.FontWeight.Medium,
75
+ color: design_system_shared_1.TextColor.TextAlternative,
76
+ ...bottomLabelProps,
77
+ }}>
78
+ {bottomLabel}
79
+ </BoxRow_1.BoxRow>)}
80
+ {!bottomLabel && bottomAccessory}
81
+ </Box_1.Box>);
82
+ };
83
+ exports.TitleSubpage = TitleSubpage;
84
+ exports.TitleSubpage.displayName = 'TitleSubpage';
85
+ //# sourceMappingURL=TitleSubpage.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.cjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAIiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACI,MAAM,YAAY,GAAgC,CAAC,EACxD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,kBAAkB,CACnB;MAAA,CAAC,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,MAAM,CAClB,IAAI,gBAAgB,CAAC,CACrB,cAAc,CAAC,CAAC,WAAW,CAAC,CAE5B;QAAA,CAAC,+BAA+B,CAChC;QAAA,CAAC,SAAG,CAAC,IAAI,gBAAgB,CAAC,CACxB;UAAA,CAAC,eAAe,CAChB;UAAA,CAAC,KAAK,IAAI,CACR,CAAC,eAAM,CACL,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;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,eAAM,CAAC,CACV,CACD;UAAA,CAAC,kBAAkB,CACnB;UAAA,CAAC,QAAQ,IAAI,CACX,CAAC,eAAM,CACL,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,aAAa;aACjB,CAAC,CAEF;cAAA,CAAC,QAAQ,CACX;YAAA,EAAE,eAAM,CAAC,CACV,CACH;QAAA,EAAE,SAAG,CACP;MAAA,EAAE,eAAM,CACR;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,eAAM,CACL,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,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AA3FW,QAAA,YAAY,gBA2FvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleSubpageProps } from './TitleSubpage.types';\n\n/**\n * Displays a required identity row (avatar + title stack) with optional subtitle, 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.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)\n * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)\n * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.subtitle - Optional subtitle row below the title and above the amount\n * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`\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 the bottom label row is not shown\n * @param props.bottomLabel - Optional secondary label below the amount row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` 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.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleSubpage layout.\n */\nexport const TitleSubpage: React.FC<TitleSubpageProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleAvatar,\n titleEndAccessory,\n subtitle,\n subtitleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n subtitleProps,\n bottomLabelProps,\n identityRowProps,\n titleColumnProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Identity Row */}\n <BoxRow\n gap={4}\n twClassName=\"h-14\"\n {...identityRowProps}\n startAccessory={titleAvatar}\n >\n {/* Title and Subtitle Column */}\n <Box {...titleColumnProps}>\n {/* Title Row */}\n {title && (\n <BoxRow\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingSm,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Subtitle Row */}\n {subtitle && (\n <BoxRow\n endAccessory={subtitleEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...subtitleProps,\n }}\n >\n {subtitle}\n </BoxRow>\n )}\n </Box>\n </BoxRow>\n {/* Amount Row */}\n {amount && (\n <BoxRow\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 {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleSubpage.displayName = 'TitleSubpage';\n"]}
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import type { TitleSubpageProps } from "./TitleSubpage.types.cjs";
3
+ /**
4
+ * Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.
5
+ * Remaining `View` props are forwarded to the root `Box`.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.title - Title row content (required)
9
+ * @param props.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)
10
+ * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)
11
+ * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
12
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)
13
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
14
+ * @param props.subtitle - Optional subtitle row below the title and above the amount
15
+ * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
16
+ * @param props.amount - Optional primary amount below the title
17
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
18
+ * @param props.bottomAccessory - Optional custom bottom row when the bottom label row is not shown
19
+ * @param props.bottomLabel - Optional secondary label below the amount row
20
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`
21
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
22
+ * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` is a string
23
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
24
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
25
+ * @param props.twClassName - Optional Tailwind classes on the root container
26
+ *
27
+ * @returns The rendered TitleSubpage layout.
28
+ */
29
+ export declare const TitleSubpage: React.FC<TitleSubpageProps>;
30
+ //# sourceMappingURL=TitleSubpage.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.d.cts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2FpD,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import type { TitleSubpageProps } from "./TitleSubpage.types.mjs";
3
+ /**
4
+ * Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.
5
+ * Remaining `View` props are forwarded to the root `Box`.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.title - Title row content (required)
9
+ * @param props.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)
10
+ * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)
11
+ * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
12
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)
13
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
14
+ * @param props.subtitle - Optional subtitle row below the title and above the amount
15
+ * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
16
+ * @param props.amount - Optional primary amount below the title
17
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
18
+ * @param props.bottomAccessory - Optional custom bottom row when the bottom label row is not shown
19
+ * @param props.bottomLabel - Optional secondary label below the amount row
20
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`
21
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
22
+ * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` is a string
23
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
24
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
25
+ * @param props.twClassName - Optional Tailwind classes on the root container
26
+ *
27
+ * @returns The rendered TitleSubpage layout.
28
+ */
29
+ export declare const TitleSubpage: React.FC<TitleSubpageProps>;
30
+ //# sourceMappingURL=TitleSubpage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.d.mts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2FpD,CAAC"}
@@ -0,0 +1,85 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
9
+ import $React from "react";
10
+ const React = $importDefault($React);
11
+ // Internal dependencies.
12
+ import { Box } from "../Box/index.mjs";
13
+ import { BoxRow } from "../BoxRow/index.mjs";
14
+ /**
15
+ * Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.
16
+ * Remaining `View` props are forwarded to the root `Box`.
17
+ *
18
+ * @param props - Component props
19
+ * @param props.title - Title row content (required)
20
+ * @param props.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)
21
+ * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)
22
+ * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
23
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)
24
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
25
+ * @param props.subtitle - Optional subtitle row below the title and above the amount
26
+ * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
27
+ * @param props.amount - Optional primary amount below the title
28
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
29
+ * @param props.bottomAccessory - Optional custom bottom row when the bottom label row is not shown
30
+ * @param props.bottomLabel - Optional secondary label below the amount row
31
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`
32
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
33
+ * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` is a string
34
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
35
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
36
+ * @param props.twClassName - Optional Tailwind classes on the root container
37
+ *
38
+ * @returns The rendered TitleSubpage layout.
39
+ */
40
+ export const TitleSubpage = ({ amount, amountEndAccessory, title, titleAvatar, titleEndAccessory, subtitle, subtitleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, subtitleProps, bottomLabelProps, identityRowProps, titleColumnProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
41
+ return (<Box twClassName={twClassName} gap={1} {...props}>
42
+ {/* Identity Row */}
43
+ <BoxRow gap={4} twClassName="h-14" {...identityRowProps} startAccessory={titleAvatar}>
44
+ {/* Title and Subtitle Column */}
45
+ <Box {...titleColumnProps}>
46
+ {/* Title Row */}
47
+ {title && (<BoxRow endAccessory={titleEndAccessory} textProps={{
48
+ variant: TextVariant.HeadingSm,
49
+ color: TextColor.TextDefault,
50
+ ...titleProps,
51
+ }}>
52
+ {title}
53
+ </BoxRow>)}
54
+ {/* Subtitle Row */}
55
+ {subtitle && (<BoxRow endAccessory={subtitleEndAccessory} textProps={{
56
+ variant: TextVariant.BodySm,
57
+ fontWeight: FontWeight.Medium,
58
+ color: TextColor.TextAlternative,
59
+ ...subtitleProps,
60
+ }}>
61
+ {subtitle}
62
+ </BoxRow>)}
63
+ </Box>
64
+ </BoxRow>
65
+ {/* Amount Row */}
66
+ {amount && (<BoxRow endAccessory={amountEndAccessory} textProps={{
67
+ variant: TextVariant.DisplayLg,
68
+ ...amountProps,
69
+ }}>
70
+ {amount}
71
+ </BoxRow>)}
72
+ {/* Bottom Label Row */}
73
+ {bottomLabel && (<BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
74
+ variant: TextVariant.BodySm,
75
+ fontWeight: FontWeight.Medium,
76
+ color: TextColor.TextAlternative,
77
+ ...bottomLabelProps,
78
+ }}>
79
+ {bottomLabel}
80
+ </BoxRow>)}
81
+ {!bottomLabel && bottomAccessory}
82
+ </Box>);
83
+ };
84
+ TitleSubpage.displayName = 'TitleSubpage';
85
+ //# sourceMappingURL=TitleSubpage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.mjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AAInC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,kBAAkB,CACnB;MAAA,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,MAAM,CAClB,IAAI,gBAAgB,CAAC,CACrB,cAAc,CAAC,CAAC,WAAW,CAAC,CAE5B;QAAA,CAAC,+BAA+B,CAChC;QAAA,CAAC,GAAG,CAAC,IAAI,gBAAgB,CAAC,CACxB;UAAA,CAAC,eAAe,CAChB;UAAA,CAAC,KAAK,IAAI,CACR,CAAC,MAAM,CACL,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;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,MAAM,CAAC,CACV,CACD;UAAA,CAAC,kBAAkB,CACnB;UAAA,CAAC,QAAQ,IAAI,CACX,CAAC,MAAM,CACL,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,aAAa;aACjB,CAAC,CAEF;cAAA,CAAC,QAAQ,CACX;YAAA,EAAE,MAAM,CAAC,CACV,CACH;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,MAAM,CACR;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,MAAM,CACL,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,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleSubpageProps } from './TitleSubpage.types';\n\n/**\n * Displays a required identity row (avatar + title stack) with optional subtitle, 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.titleAvatar - Leading visual for the identity row (required); passed through as the identity `BoxRow` `startAccessory` so callers control layout and composition (for example badges that extend past the token)\n * @param props.identityRowProps - Optional props spread onto the identity `BoxRow` after defaults (`children`, `startAccessory`, and `textProps` are reserved)\n * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `BoxRow` after defaults (`children`, `endAccessory`, and `textProps` are reserved)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.subtitle - Optional subtitle row below the title and above the amount\n * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`\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 the bottom label row is not shown\n * @param props.bottomLabel - Optional secondary label below the amount row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` 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.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleSubpage layout.\n */\nexport const TitleSubpage: React.FC<TitleSubpageProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleAvatar,\n titleEndAccessory,\n subtitle,\n subtitleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n subtitleProps,\n bottomLabelProps,\n identityRowProps,\n titleColumnProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Identity Row */}\n <BoxRow\n gap={4}\n twClassName=\"h-14\"\n {...identityRowProps}\n startAccessory={titleAvatar}\n >\n {/* Title and Subtitle Column */}\n <Box {...titleColumnProps}>\n {/* Title Row */}\n {title && (\n <BoxRow\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingSm,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Subtitle Row */}\n {subtitle && (\n <BoxRow\n endAccessory={subtitleEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...subtitleProps,\n }}\n >\n {subtitle}\n </BoxRow>\n )}\n </Box>\n </BoxRow>\n {/* Amount Row */}\n {amount && (\n <BoxRow\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 {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleSubpage.displayName = 'TitleSubpage';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TitleSubpage.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleSubpagePropsShared } 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 { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleSubpage component props (React Native).\n * Extends {@link TitleSubpagePropsShared} (requires `title` and `titleAvatar`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleSubpageProps = TitleSubpagePropsShared & {\n /**\n * Optional props spread onto the identity {@link BoxRow} (excluding `children`, `startAccessory`, and `textProps`, which the component owns).\n */\n identityRowProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'textProps'\n >;\n /**\n * Optional props spread onto the title/subtitle column {@link Box} (excluding `children`, which the component owns).\n */\n titleColumnProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props spread onto the bottom label {@link BoxRow} (excluding `children`, `endAccessory`, and `textProps`, which the component owns).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n */\n amountProps?: Omit<Partial<TextProps>, 'children'>;\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 merged into {@link BoxRow} `textProps` when `subtitle` is a string.\n */\n subtitleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -0,0 +1,44 @@
1
+ import type { TitleSubpagePropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxProps } from "../Box/Box.types.cjs";
4
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
5
+ import type { TextProps } from "../Text/Text.types.cjs";
6
+ /**
7
+ * TitleSubpage component props (React Native).
8
+ * Extends {@link TitleSubpagePropsShared} (requires `title` and `titleAvatar`) with platform `Text` passthroughs, `twClassName`, and `View` props.
9
+ */
10
+ export type TitleSubpageProps = TitleSubpagePropsShared & {
11
+ /**
12
+ * Optional props spread onto the identity {@link BoxRow} (excluding `children`, `startAccessory`, and `textProps`, which the component owns).
13
+ */
14
+ identityRowProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'textProps'>;
15
+ /**
16
+ * Optional props spread onto the title/subtitle column {@link Box} (excluding `children`, which the component owns).
17
+ */
18
+ titleColumnProps?: Omit<Partial<BoxProps>, 'children'>;
19
+ /**
20
+ * Optional props spread onto the bottom label {@link BoxRow} (excluding `children`, `endAccessory`, and `textProps`, which the component owns).
21
+ */
22
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
23
+ /**
24
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
25
+ */
26
+ amountProps?: Omit<Partial<TextProps>, 'children'>;
27
+ /**
28
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
29
+ */
30
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
31
+ /**
32
+ * Optional props merged into {@link BoxRow} `textProps` when `subtitle` is a string.
33
+ */
34
+ subtitleProps?: Omit<Partial<TextProps>, 'children'>;
35
+ /**
36
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
37
+ */
38
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
39
+ /**
40
+ * Optional Tailwind class name to apply to the container.
41
+ */
42
+ twClassName?: string;
43
+ } & Omit<ViewProps, 'children'>;
44
+ //# sourceMappingURL=TitleSubpage.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gDAAgD;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CACrB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,gBAAgB,GAAG,WAAW,CAC5C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACvD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { TitleSubpagePropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxProps } from "../Box/Box.types.mjs";
4
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
5
+ import type { TextProps } from "../Text/Text.types.mjs";
6
+ /**
7
+ * TitleSubpage component props (React Native).
8
+ * Extends {@link TitleSubpagePropsShared} (requires `title` and `titleAvatar`) with platform `Text` passthroughs, `twClassName`, and `View` props.
9
+ */
10
+ export type TitleSubpageProps = TitleSubpagePropsShared & {
11
+ /**
12
+ * Optional props spread onto the identity {@link BoxRow} (excluding `children`, `startAccessory`, and `textProps`, which the component owns).
13
+ */
14
+ identityRowProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'textProps'>;
15
+ /**
16
+ * Optional props spread onto the title/subtitle column {@link Box} (excluding `children`, which the component owns).
17
+ */
18
+ titleColumnProps?: Omit<Partial<BoxProps>, 'children'>;
19
+ /**
20
+ * Optional props spread onto the bottom label {@link BoxRow} (excluding `children`, `endAccessory`, and `textProps`, which the component owns).
21
+ */
22
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
23
+ /**
24
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
25
+ */
26
+ amountProps?: Omit<Partial<TextProps>, 'children'>;
27
+ /**
28
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
29
+ */
30
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
31
+ /**
32
+ * Optional props merged into {@link BoxRow} `textProps` when `subtitle` is a string.
33
+ */
34
+ subtitleProps?: Omit<Partial<TextProps>, 'children'>;
35
+ /**
36
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
37
+ */
38
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
39
+ /**
40
+ * Optional Tailwind class name to apply to the container.
41
+ */
42
+ twClassName?: string;
43
+ } & Omit<ViewProps, 'children'>;
44
+ //# sourceMappingURL=TitleSubpage.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,gDAAgD;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CACrB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,gBAAgB,GAAG,WAAW,CAC5C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACvD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TitleSubpage.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleSubpage.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleSubpagePropsShared } 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 { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleSubpage component props (React Native).\n * Extends {@link TitleSubpagePropsShared} (requires `title` and `titleAvatar`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleSubpageProps = TitleSubpagePropsShared & {\n /**\n * Optional props spread onto the identity {@link BoxRow} (excluding `children`, `startAccessory`, and `textProps`, which the component owns).\n */\n identityRowProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'textProps'\n >;\n /**\n * Optional props spread onto the title/subtitle column {@link Box} (excluding `children`, which the component owns).\n */\n titleColumnProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props spread onto the bottom label {@link BoxRow} (excluding `children`, `endAccessory`, and `textProps`, which the component owns).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n */\n amountProps?: Omit<Partial<TextProps>, 'children'>;\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 merged into {@link BoxRow} `textProps` when `subtitle` is a string.\n */\n subtitleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TitleSubpage = void 0;
4
+ var TitleSubpage_1 = require("./TitleSubpage.cjs");
5
+ Object.defineProperty(exports, "TitleSubpage", { enumerable: true, get: function () { return TitleSubpage_1.TitleSubpage; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAArC,4GAAA,YAAY,OAAA","sourcesContent":["export { TitleSubpage } from './TitleSubpage';\nexport type { TitleSubpageProps } from './TitleSubpage.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TitleSubpage } from "./TitleSubpage.cjs";
2
+ export type { TitleSubpageProps } from "./TitleSubpage.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,3 @@
1
+ export { TitleSubpage } from "./TitleSubpage.mjs";
2
+ export type { TitleSubpageProps } from "./TitleSubpage.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { TitleSubpage } from "./TitleSubpage.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB","sourcesContent":["export { TitleSubpage } from './TitleSubpage';\nexport type { TitleSubpageProps } from './TitleSubpage.types';\n"]}