@metamask-previews/design-system-react-native 0.6.0-preview.3dc70e1 → 0.11.0-preview.3aca0bd

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 (704) hide show
  1. package/CHANGELOG.md +119 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +86 -0
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -0
  4. package/dist/components/ActionListItem/ActionListItem.d.cts +4 -0
  5. package/dist/components/ActionListItem/ActionListItem.d.cts.map +1 -0
  6. package/dist/components/ActionListItem/ActionListItem.d.mts +4 -0
  7. package/dist/components/ActionListItem/ActionListItem.d.mts.map +1 -0
  8. package/dist/components/ActionListItem/ActionListItem.mjs +66 -0
  9. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -0
  10. package/dist/components/ActionListItem/ActionListItem.types.cjs +3 -0
  11. package/dist/components/ActionListItem/ActionListItem.types.cjs.map +1 -0
  12. package/dist/components/ActionListItem/ActionListItem.types.d.cts +73 -0
  13. package/dist/components/ActionListItem/ActionListItem.types.d.cts.map +1 -0
  14. package/dist/components/ActionListItem/ActionListItem.types.d.mts +73 -0
  15. package/dist/components/ActionListItem/ActionListItem.types.d.mts.map +1 -0
  16. package/dist/components/ActionListItem/ActionListItem.types.mjs +2 -0
  17. package/dist/components/ActionListItem/ActionListItem.types.mjs.map +1 -0
  18. package/dist/components/ActionListItem/index.cjs +6 -0
  19. package/dist/components/ActionListItem/index.cjs.map +1 -0
  20. package/dist/components/ActionListItem/index.d.cts +3 -0
  21. package/dist/components/ActionListItem/index.d.cts.map +1 -0
  22. package/dist/components/ActionListItem/index.d.mts +3 -0
  23. package/dist/components/ActionListItem/index.d.mts.map +1 -0
  24. package/dist/components/ActionListItem/index.mjs +2 -0
  25. package/dist/components/ActionListItem/index.mjs.map +1 -0
  26. package/dist/components/BadgeCount/BadgeCount.cjs +3 -3
  27. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  28. package/dist/components/BadgeCount/BadgeCount.constants.cjs +6 -10
  29. package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
  30. package/dist/components/BadgeCount/BadgeCount.constants.d.cts +1 -2
  31. package/dist/components/BadgeCount/BadgeCount.constants.d.cts.map +1 -1
  32. package/dist/components/BadgeCount/BadgeCount.constants.d.mts +1 -2
  33. package/dist/components/BadgeCount/BadgeCount.constants.d.mts.map +1 -1
  34. package/dist/components/BadgeCount/BadgeCount.constants.mjs +3 -7
  35. package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
  36. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  37. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  38. package/dist/components/BadgeCount/BadgeCount.mjs +3 -3
  39. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  40. package/dist/components/BadgeCount/BadgeCount.types.cjs.map +1 -1
  41. package/dist/components/BadgeCount/BadgeCount.types.d.cts +5 -22
  42. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  43. package/dist/components/BadgeCount/BadgeCount.types.d.mts +5 -22
  44. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  45. package/dist/components/BadgeCount/BadgeCount.types.mjs.map +1 -1
  46. package/dist/components/BadgeCount/index.cjs +2 -2
  47. package/dist/components/BadgeCount/index.cjs.map +1 -1
  48. package/dist/components/BadgeCount/index.d.cts +1 -1
  49. package/dist/components/BadgeCount/index.d.cts.map +1 -1
  50. package/dist/components/BadgeCount/index.d.mts +1 -1
  51. package/dist/components/BadgeCount/index.d.mts.map +1 -1
  52. package/dist/components/BadgeCount/index.mjs +1 -1
  53. package/dist/components/BadgeCount/index.mjs.map +1 -1
  54. package/dist/components/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  55. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +1 -1
  56. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  57. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +1 -1
  58. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  59. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  60. package/dist/components/BannerAlert/BannerAlert.cjs +23 -0
  61. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -0
  62. package/dist/components/BannerAlert/BannerAlert.constants.cjs +30 -0
  63. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -0
  64. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +7 -0
  65. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -0
  66. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +7 -0
  67. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -0
  68. package/dist/components/BannerAlert/BannerAlert.constants.mjs +27 -0
  69. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -0
  70. package/dist/components/BannerAlert/BannerAlert.d.cts +4 -0
  71. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -0
  72. package/dist/components/BannerAlert/BannerAlert.d.mts +4 -0
  73. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -0
  74. package/dist/components/BannerAlert/BannerAlert.mjs +23 -0
  75. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -0
  76. package/dist/components/BannerAlert/BannerAlert.types.cjs +3 -0
  77. package/dist/components/BannerAlert/BannerAlert.types.cjs.map +1 -0
  78. package/dist/components/BannerAlert/BannerAlert.types.d.cts +10 -0
  79. package/dist/components/BannerAlert/BannerAlert.types.d.cts.map +1 -0
  80. package/dist/components/BannerAlert/BannerAlert.types.d.mts +10 -0
  81. package/dist/components/BannerAlert/BannerAlert.types.d.mts.map +1 -0
  82. package/dist/components/BannerAlert/BannerAlert.types.mjs +2 -0
  83. package/dist/components/BannerAlert/BannerAlert.types.mjs.map +1 -0
  84. package/dist/components/BannerAlert/index.cjs +8 -0
  85. package/dist/components/BannerAlert/index.cjs.map +1 -0
  86. package/dist/components/BannerAlert/index.d.cts +4 -0
  87. package/dist/components/BannerAlert/index.d.cts.map +1 -0
  88. package/dist/components/BannerAlert/index.d.mts +4 -0
  89. package/dist/components/BannerAlert/index.d.mts.map +1 -0
  90. package/dist/components/BannerAlert/index.mjs +3 -0
  91. package/dist/components/BannerAlert/index.mjs.map +1 -0
  92. package/dist/components/BannerBase/BannerBase.cjs +63 -0
  93. package/dist/components/BannerBase/BannerBase.cjs.map +1 -0
  94. package/dist/components/BannerBase/BannerBase.d.cts +4 -0
  95. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -0
  96. package/dist/components/BannerBase/BannerBase.d.mts +4 -0
  97. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -0
  98. package/dist/components/BannerBase/BannerBase.mjs +63 -0
  99. package/dist/components/BannerBase/BannerBase.mjs.map +1 -0
  100. package/dist/components/BannerBase/BannerBase.types.cjs +3 -0
  101. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -0
  102. package/dist/components/BannerBase/BannerBase.types.d.cts +53 -0
  103. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -0
  104. package/dist/components/BannerBase/BannerBase.types.d.mts +53 -0
  105. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -0
  106. package/dist/components/BannerBase/BannerBase.types.mjs +2 -0
  107. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -0
  108. package/dist/components/BannerBase/index.cjs +6 -0
  109. package/dist/components/BannerBase/index.cjs.map +1 -0
  110. package/dist/components/BannerBase/index.d.cts +3 -0
  111. package/dist/components/BannerBase/index.d.cts.map +1 -0
  112. package/dist/components/BannerBase/index.d.mts +3 -0
  113. package/dist/components/BannerBase/index.d.mts.map +1 -0
  114. package/dist/components/BannerBase/index.mjs +2 -0
  115. package/dist/components/BannerBase/index.mjs.map +1 -0
  116. package/dist/components/BottomSheet/BottomSheet.cjs +109 -0
  117. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -0
  118. package/dist/components/BottomSheet/BottomSheet.d.cts +16 -0
  119. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -0
  120. package/dist/components/BottomSheet/BottomSheet.d.mts +16 -0
  121. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -0
  122. package/dist/components/BottomSheet/BottomSheet.mjs +87 -0
  123. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
  124. package/dist/components/BottomSheet/BottomSheet.types.cjs +3 -0
  125. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -0
  126. package/dist/components/BottomSheet/BottomSheet.types.d.cts +28 -0
  127. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -0
  128. package/dist/components/BottomSheet/BottomSheet.types.d.mts +28 -0
  129. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -0
  130. package/dist/components/BottomSheet/BottomSheet.types.mjs +2 -0
  131. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -0
  132. package/dist/components/BottomSheet/index.cjs +6 -0
  133. package/dist/components/BottomSheet/index.cjs.map +1 -0
  134. package/dist/components/BottomSheet/index.d.cts +3 -0
  135. package/dist/components/BottomSheet/index.d.cts.map +1 -0
  136. package/dist/components/BottomSheet/index.d.mts +3 -0
  137. package/dist/components/BottomSheet/index.d.mts.map +1 -0
  138. package/dist/components/BottomSheet/index.mjs +2 -0
  139. package/dist/components/BottomSheet/index.mjs.map +1 -0
  140. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +207 -0
  141. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -0
  142. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs +18 -0
  143. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs.map +1 -0
  144. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts +14 -0
  145. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts.map +1 -0
  146. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts +14 -0
  147. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts.map +1 -0
  148. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs +15 -0
  149. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs.map +1 -0
  150. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +13 -0
  151. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -0
  152. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +13 -0
  153. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -0
  154. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +190 -0
  155. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -0
  156. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs +3 -0
  157. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -0
  158. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +56 -0
  159. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -0
  160. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +56 -0
  161. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -0
  162. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs +2 -0
  163. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -0
  164. package/dist/components/BottomSheetDialog/index.cjs +9 -0
  165. package/dist/components/BottomSheetDialog/index.cjs.map +1 -0
  166. package/dist/components/BottomSheetDialog/index.d.cts +3 -0
  167. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -0
  168. package/dist/components/BottomSheetDialog/index.d.mts +3 -0
  169. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -0
  170. package/dist/components/BottomSheetDialog/index.mjs +2 -0
  171. package/dist/components/BottomSheetDialog/index.mjs.map +1 -0
  172. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +35 -0
  173. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -0
  174. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts +4 -0
  175. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts.map +1 -0
  176. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts +4 -0
  177. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts.map +1 -0
  178. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +35 -0
  179. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -0
  180. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs +12 -0
  181. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs.map +1 -0
  182. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +41 -0
  183. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -0
  184. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +41 -0
  185. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -0
  186. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs +9 -0
  187. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs.map +1 -0
  188. package/dist/components/BottomSheetFooter/index.cjs +8 -0
  189. package/dist/components/BottomSheetFooter/index.cjs.map +1 -0
  190. package/dist/components/BottomSheetFooter/index.d.cts +4 -0
  191. package/dist/components/BottomSheetFooter/index.d.cts.map +1 -0
  192. package/dist/components/BottomSheetFooter/index.d.mts +4 -0
  193. package/dist/components/BottomSheetFooter/index.d.mts.map +1 -0
  194. package/dist/components/BottomSheetFooter/index.mjs +3 -0
  195. package/dist/components/BottomSheetFooter/index.mjs.map +1 -0
  196. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +27 -0
  197. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -0
  198. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +15 -0
  199. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +1 -0
  200. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +7 -0
  201. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +1 -0
  202. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +7 -0
  203. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +1 -0
  204. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +12 -0
  205. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +1 -0
  206. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts +4 -0
  207. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -0
  208. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts +4 -0
  209. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -0
  210. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +27 -0
  211. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -0
  212. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +14 -0
  213. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -0
  214. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +50 -0
  215. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -0
  216. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +50 -0
  217. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -0
  218. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +11 -0
  219. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -0
  220. package/dist/components/BottomSheetHeader/index.cjs +8 -0
  221. package/dist/components/BottomSheetHeader/index.cjs.map +1 -0
  222. package/dist/components/BottomSheetHeader/index.d.cts +4 -0
  223. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -0
  224. package/dist/components/BottomSheetHeader/index.d.mts +4 -0
  225. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -0
  226. package/dist/components/BottomSheetHeader/index.mjs +3 -0
  227. package/dist/components/BottomSheetHeader/index.mjs.map +1 -0
  228. package/dist/components/ButtonBase/ButtonBase.cjs +2 -9
  229. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  230. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  231. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  232. package/dist/components/ButtonBase/ButtonBase.mjs +3 -10
  233. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  234. package/dist/components/ButtonFilter/ButtonFilter.cjs +28 -0
  235. package/dist/components/ButtonFilter/ButtonFilter.cjs.map +1 -0
  236. package/dist/components/ButtonFilter/ButtonFilter.d.cts +4 -0
  237. package/dist/components/ButtonFilter/ButtonFilter.d.cts.map +1 -0
  238. package/dist/components/ButtonFilter/ButtonFilter.d.mts +4 -0
  239. package/dist/components/ButtonFilter/ButtonFilter.d.mts.map +1 -0
  240. package/dist/components/ButtonFilter/ButtonFilter.mjs +28 -0
  241. package/dist/components/ButtonFilter/ButtonFilter.mjs.map +1 -0
  242. package/dist/components/ButtonFilter/ButtonFilter.types.cjs +3 -0
  243. package/dist/components/ButtonFilter/ButtonFilter.types.cjs.map +1 -0
  244. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts +9 -0
  245. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts.map +1 -0
  246. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts +9 -0
  247. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts.map +1 -0
  248. package/dist/components/ButtonFilter/ButtonFilter.types.mjs +2 -0
  249. package/dist/components/ButtonFilter/ButtonFilter.types.mjs.map +1 -0
  250. package/dist/components/ButtonFilter/index.cjs +6 -0
  251. package/dist/components/ButtonFilter/index.cjs.map +1 -0
  252. package/dist/components/ButtonFilter/index.d.cts +3 -0
  253. package/dist/components/ButtonFilter/index.d.cts.map +1 -0
  254. package/dist/components/ButtonFilter/index.d.mts +3 -0
  255. package/dist/components/ButtonFilter/index.d.mts.map +1 -0
  256. package/dist/components/ButtonFilter/index.mjs +2 -0
  257. package/dist/components/ButtonFilter/index.mjs.map +1 -0
  258. package/dist/components/ButtonHero/ButtonHero.cjs +37 -0
  259. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -0
  260. package/dist/components/ButtonHero/ButtonHero.d.cts +13 -0
  261. package/dist/components/ButtonHero/ButtonHero.d.cts.map +1 -0
  262. package/dist/components/ButtonHero/ButtonHero.d.mts +13 -0
  263. package/dist/components/ButtonHero/ButtonHero.d.mts.map +1 -0
  264. package/dist/components/ButtonHero/ButtonHero.mjs +37 -0
  265. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -0
  266. package/dist/components/ButtonHero/ButtonHero.types.cjs +3 -0
  267. package/dist/components/ButtonHero/ButtonHero.types.cjs.map +1 -0
  268. package/dist/components/ButtonHero/ButtonHero.types.d.cts +3 -0
  269. package/dist/components/ButtonHero/ButtonHero.types.d.cts.map +1 -0
  270. package/dist/components/ButtonHero/ButtonHero.types.d.mts +3 -0
  271. package/dist/components/ButtonHero/ButtonHero.types.d.mts.map +1 -0
  272. package/dist/components/ButtonHero/ButtonHero.types.mjs +2 -0
  273. package/dist/components/ButtonHero/ButtonHero.types.mjs.map +1 -0
  274. package/dist/components/ButtonHero/index.cjs +8 -0
  275. package/dist/components/ButtonHero/index.cjs.map +1 -0
  276. package/dist/components/ButtonHero/index.d.cts +4 -0
  277. package/dist/components/ButtonHero/index.d.cts.map +1 -0
  278. package/dist/components/ButtonHero/index.d.mts +4 -0
  279. package/dist/components/ButtonHero/index.d.mts.map +1 -0
  280. package/dist/components/ButtonHero/index.mjs +3 -0
  281. package/dist/components/ButtonHero/index.mjs.map +1 -0
  282. package/dist/components/ButtonIcon/ButtonIcon.cjs +10 -4
  283. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  284. package/dist/components/ButtonIcon/ButtonIcon.d.cts +1 -1
  285. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  286. package/dist/components/ButtonIcon/ButtonIcon.d.mts +1 -1
  287. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  288. package/dist/components/ButtonIcon/ButtonIcon.mjs +11 -5
  289. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  290. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  291. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +4 -11
  292. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  293. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +4 -11
  294. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  295. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  296. package/dist/components/ButtonIcon/index.cjs +2 -1
  297. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  298. package/dist/components/ButtonIcon/index.d.cts +1 -1
  299. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  300. package/dist/components/ButtonIcon/index.d.mts +1 -1
  301. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  302. package/dist/components/ButtonIcon/index.mjs +1 -1
  303. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  304. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +64 -0
  305. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -0
  306. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs +17 -0
  307. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs.map +1 -0
  308. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts +5 -0
  309. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts.map +1 -0
  310. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts +5 -0
  311. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts.map +1 -0
  312. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs +14 -0
  313. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs.map +1 -0
  314. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts +4 -0
  315. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -0
  316. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts +4 -0
  317. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -0
  318. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +44 -0
  319. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -0
  320. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs +18 -0
  321. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs.map +1 -0
  322. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts +30 -0
  323. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts.map +1 -0
  324. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts +30 -0
  325. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts.map +1 -0
  326. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs +15 -0
  327. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs.map +1 -0
  328. package/dist/components/ButtonSemantic/index.cjs +8 -0
  329. package/dist/components/ButtonSemantic/index.cjs.map +1 -0
  330. package/dist/components/ButtonSemantic/index.d.cts +4 -0
  331. package/dist/components/ButtonSemantic/index.d.cts.map +1 -0
  332. package/dist/components/ButtonSemantic/index.d.mts +4 -0
  333. package/dist/components/ButtonSemantic/index.d.mts.map +1 -0
  334. package/dist/components/ButtonSemantic/index.mjs +3 -0
  335. package/dist/components/ButtonSemantic/index.mjs.map +1 -0
  336. package/dist/components/Card/Card.cjs +26 -0
  337. package/dist/components/Card/Card.cjs.map +1 -0
  338. package/dist/components/Card/Card.d.cts +4 -0
  339. package/dist/components/Card/Card.d.cts.map +1 -0
  340. package/dist/components/Card/Card.d.mts +4 -0
  341. package/dist/components/Card/Card.d.mts.map +1 -0
  342. package/dist/components/Card/Card.mjs +26 -0
  343. package/dist/components/Card/Card.mjs.map +1 -0
  344. package/dist/components/Card/Card.types.cjs +3 -0
  345. package/dist/components/Card/Card.types.cjs.map +1 -0
  346. package/dist/components/Card/Card.types.d.cts +25 -0
  347. package/dist/components/Card/Card.types.d.cts.map +1 -0
  348. package/dist/components/Card/Card.types.d.mts +25 -0
  349. package/dist/components/Card/Card.types.d.mts.map +1 -0
  350. package/dist/components/Card/Card.types.mjs +2 -0
  351. package/dist/components/Card/Card.types.mjs.map +1 -0
  352. package/dist/components/Card/index.cjs +6 -0
  353. package/dist/components/Card/index.cjs.map +1 -0
  354. package/dist/components/Card/index.d.cts +3 -0
  355. package/dist/components/Card/index.d.cts.map +1 -0
  356. package/dist/components/Card/index.d.mts +3 -0
  357. package/dist/components/Card/index.d.mts.map +1 -0
  358. package/dist/components/Card/index.mjs +2 -0
  359. package/dist/components/Card/index.mjs.map +1 -0
  360. package/dist/components/HeaderBase/HeaderBase.cjs +132 -0
  361. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -0
  362. package/dist/components/HeaderBase/HeaderBase.constants.cjs +15 -0
  363. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +1 -0
  364. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +7 -0
  365. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +1 -0
  366. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +7 -0
  367. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +1 -0
  368. package/dist/components/HeaderBase/HeaderBase.constants.mjs +12 -0
  369. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +1 -0
  370. package/dist/components/HeaderBase/HeaderBase.d.cts +4 -0
  371. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -0
  372. package/dist/components/HeaderBase/HeaderBase.d.mts +4 -0
  373. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -0
  374. package/dist/components/HeaderBase/HeaderBase.mjs +112 -0
  375. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -0
  376. package/dist/components/HeaderBase/HeaderBase.types.cjs +15 -0
  377. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -0
  378. package/dist/components/HeaderBase/HeaderBase.types.d.cts +87 -0
  379. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -0
  380. package/dist/components/HeaderBase/HeaderBase.types.d.mts +87 -0
  381. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -0
  382. package/dist/components/HeaderBase/HeaderBase.types.mjs +12 -0
  383. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -0
  384. package/dist/components/HeaderBase/index.cjs +8 -0
  385. package/dist/components/HeaderBase/index.cjs.map +1 -0
  386. package/dist/components/HeaderBase/index.d.cts +4 -0
  387. package/dist/components/HeaderBase/index.d.cts.map +1 -0
  388. package/dist/components/HeaderBase/index.d.mts +4 -0
  389. package/dist/components/HeaderBase/index.d.mts.map +1 -0
  390. package/dist/components/HeaderBase/index.mjs +3 -0
  391. package/dist/components/HeaderBase/index.mjs.map +1 -0
  392. package/dist/components/Icon/Icon.assets.cjs +2 -0
  393. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  394. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  395. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  396. package/dist/components/Icon/Icon.assets.mjs +2 -0
  397. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  398. package/dist/components/Icon/assets/ai.svg +1 -1
  399. package/dist/components/Icon/assets/corporate-fare.svg +1 -0
  400. package/dist/components/Input/Input.cjs +63 -0
  401. package/dist/components/Input/Input.cjs.map +1 -0
  402. package/dist/components/Input/Input.d.cts +11 -0
  403. package/dist/components/Input/Input.d.cts.map +1 -0
  404. package/dist/components/Input/Input.d.mts +11 -0
  405. package/dist/components/Input/Input.d.mts.map +1 -0
  406. package/dist/components/Input/Input.mjs +60 -0
  407. package/dist/components/Input/Input.mjs.map +1 -0
  408. package/dist/components/Input/Input.types.cjs +3 -0
  409. package/dist/components/Input/Input.types.cjs.map +1 -0
  410. package/dist/components/Input/Input.types.d.cts +37 -0
  411. package/dist/components/Input/Input.types.d.cts.map +1 -0
  412. package/dist/components/Input/Input.types.d.mts +37 -0
  413. package/dist/components/Input/Input.types.d.mts.map +1 -0
  414. package/dist/components/Input/Input.types.mjs +2 -0
  415. package/dist/components/Input/Input.types.mjs.map +1 -0
  416. package/dist/components/Input/index.cjs +6 -0
  417. package/dist/components/Input/index.cjs.map +1 -0
  418. package/dist/components/Input/index.d.cts +3 -0
  419. package/dist/components/Input/index.d.cts.map +1 -0
  420. package/dist/components/Input/index.d.mts +3 -0
  421. package/dist/components/Input/index.d.mts.map +1 -0
  422. package/dist/components/Input/index.mjs +2 -0
  423. package/dist/components/Input/index.mjs.map +1 -0
  424. package/dist/components/Label/Label.cjs +11 -0
  425. package/dist/components/Label/Label.cjs.map +1 -0
  426. package/dist/components/Label/Label.d.cts +4 -0
  427. package/dist/components/Label/Label.d.cts.map +1 -0
  428. package/dist/components/Label/Label.d.mts +4 -0
  429. package/dist/components/Label/Label.d.mts.map +1 -0
  430. package/dist/components/Label/Label.mjs +11 -0
  431. package/dist/components/Label/Label.mjs.map +1 -0
  432. package/dist/components/Label/Label.types.cjs +3 -0
  433. package/dist/components/Label/Label.types.cjs.map +1 -0
  434. package/dist/components/Label/Label.types.d.cts +9 -0
  435. package/dist/components/Label/Label.types.d.cts.map +1 -0
  436. package/dist/components/Label/Label.types.d.mts +9 -0
  437. package/dist/components/Label/Label.types.d.mts.map +1 -0
  438. package/dist/components/Label/Label.types.mjs +2 -0
  439. package/dist/components/Label/Label.types.mjs.map +1 -0
  440. package/dist/components/Label/index.cjs +6 -0
  441. package/dist/components/Label/index.cjs.map +1 -0
  442. package/dist/components/Label/index.d.cts +3 -0
  443. package/dist/components/Label/index.d.cts.map +1 -0
  444. package/dist/components/Label/index.d.mts +3 -0
  445. package/dist/components/Label/index.d.mts.map +1 -0
  446. package/dist/components/Label/index.mjs +2 -0
  447. package/dist/components/Label/index.mjs.map +1 -0
  448. package/dist/components/ListItem/ListItem.cjs +61 -0
  449. package/dist/components/ListItem/ListItem.cjs.map +1 -0
  450. package/dist/components/ListItem/ListItem.constants.cjs +14 -0
  451. package/dist/components/ListItem/ListItem.constants.cjs.map +1 -0
  452. package/dist/components/ListItem/ListItem.constants.d.cts +8 -0
  453. package/dist/components/ListItem/ListItem.constants.d.cts.map +1 -0
  454. package/dist/components/ListItem/ListItem.constants.d.mts +8 -0
  455. package/dist/components/ListItem/ListItem.constants.d.mts.map +1 -0
  456. package/dist/components/ListItem/ListItem.constants.mjs +11 -0
  457. package/dist/components/ListItem/ListItem.constants.mjs.map +1 -0
  458. package/dist/components/ListItem/ListItem.d.cts +4 -0
  459. package/dist/components/ListItem/ListItem.d.cts.map +1 -0
  460. package/dist/components/ListItem/ListItem.d.mts +4 -0
  461. package/dist/components/ListItem/ListItem.d.mts.map +1 -0
  462. package/dist/components/ListItem/ListItem.mjs +41 -0
  463. package/dist/components/ListItem/ListItem.mjs.map +1 -0
  464. package/dist/components/ListItem/ListItem.types.cjs +12 -0
  465. package/dist/components/ListItem/ListItem.types.cjs.map +1 -0
  466. package/dist/components/ListItem/ListItem.types.d.cts +60 -0
  467. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -0
  468. package/dist/components/ListItem/ListItem.types.d.mts +60 -0
  469. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -0
  470. package/dist/components/ListItem/ListItem.types.mjs +9 -0
  471. package/dist/components/ListItem/ListItem.types.mjs.map +1 -0
  472. package/dist/components/ListItem/index.cjs +8 -0
  473. package/dist/components/ListItem/index.cjs.map +1 -0
  474. package/dist/components/ListItem/index.d.cts +4 -0
  475. package/dist/components/ListItem/index.d.cts.map +1 -0
  476. package/dist/components/ListItem/index.d.mts +4 -0
  477. package/dist/components/ListItem/index.d.mts.map +1 -0
  478. package/dist/components/ListItem/index.mjs +3 -0
  479. package/dist/components/ListItem/index.mjs.map +1 -0
  480. package/dist/components/MainActionButton/MainActionButton.cjs +28 -0
  481. package/dist/components/MainActionButton/MainActionButton.cjs.map +1 -0
  482. package/dist/components/MainActionButton/MainActionButton.d.cts +4 -0
  483. package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -0
  484. package/dist/components/MainActionButton/MainActionButton.d.mts +4 -0
  485. package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -0
  486. package/dist/components/MainActionButton/MainActionButton.mjs +28 -0
  487. package/dist/components/MainActionButton/MainActionButton.mjs.map +1 -0
  488. package/dist/components/MainActionButton/MainActionButton.types.cjs +3 -0
  489. package/dist/components/MainActionButton/MainActionButton.types.cjs.map +1 -0
  490. package/dist/components/MainActionButton/MainActionButton.types.d.cts +41 -0
  491. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -0
  492. package/dist/components/MainActionButton/MainActionButton.types.d.mts +41 -0
  493. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -0
  494. package/dist/components/MainActionButton/MainActionButton.types.mjs +2 -0
  495. package/dist/components/MainActionButton/MainActionButton.types.mjs.map +1 -0
  496. package/dist/components/MainActionButton/index.cjs +6 -0
  497. package/dist/components/MainActionButton/index.cjs.map +1 -0
  498. package/dist/components/MainActionButton/index.d.cts +3 -0
  499. package/dist/components/MainActionButton/index.d.cts.map +1 -0
  500. package/dist/components/MainActionButton/index.d.mts +3 -0
  501. package/dist/components/MainActionButton/index.d.mts.map +1 -0
  502. package/dist/components/MainActionButton/index.mjs +2 -0
  503. package/dist/components/MainActionButton/index.mjs.map +1 -0
  504. package/dist/components/RadioButton/RadioButton.cjs +58 -0
  505. package/dist/components/RadioButton/RadioButton.cjs.map +1 -0
  506. package/dist/components/RadioButton/RadioButton.constants.cjs +12 -0
  507. package/dist/components/RadioButton/RadioButton.constants.cjs.map +1 -0
  508. package/dist/components/RadioButton/RadioButton.constants.d.cts +3 -0
  509. package/dist/components/RadioButton/RadioButton.constants.d.cts.map +1 -0
  510. package/dist/components/RadioButton/RadioButton.constants.d.mts +3 -0
  511. package/dist/components/RadioButton/RadioButton.constants.d.mts.map +1 -0
  512. package/dist/components/RadioButton/RadioButton.constants.mjs +9 -0
  513. package/dist/components/RadioButton/RadioButton.constants.mjs.map +1 -0
  514. package/dist/components/RadioButton/RadioButton.d.cts +4 -0
  515. package/dist/components/RadioButton/RadioButton.d.cts.map +1 -0
  516. package/dist/components/RadioButton/RadioButton.d.mts +4 -0
  517. package/dist/components/RadioButton/RadioButton.d.mts.map +1 -0
  518. package/dist/components/RadioButton/RadioButton.mjs +58 -0
  519. package/dist/components/RadioButton/RadioButton.mjs.map +1 -0
  520. package/dist/components/RadioButton/RadioButton.types.cjs +3 -0
  521. package/dist/components/RadioButton/RadioButton.types.cjs.map +1 -0
  522. package/dist/components/RadioButton/RadioButton.types.d.cts +64 -0
  523. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -0
  524. package/dist/components/RadioButton/RadioButton.types.d.mts +64 -0
  525. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -0
  526. package/dist/components/RadioButton/RadioButton.types.mjs +2 -0
  527. package/dist/components/RadioButton/RadioButton.types.mjs.map +1 -0
  528. package/dist/components/RadioButton/index.cjs +6 -0
  529. package/dist/components/RadioButton/index.cjs.map +1 -0
  530. package/dist/components/RadioButton/index.d.cts +3 -0
  531. package/dist/components/RadioButton/index.d.cts.map +1 -0
  532. package/dist/components/RadioButton/index.d.mts +3 -0
  533. package/dist/components/RadioButton/index.d.mts.map +1 -0
  534. package/dist/components/RadioButton/index.mjs +2 -0
  535. package/dist/components/RadioButton/index.mjs.map +1 -0
  536. package/dist/components/SensitiveText/SensitiveText.cjs +47 -0
  537. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -0
  538. package/dist/components/SensitiveText/SensitiveText.constants.cjs +14 -0
  539. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +1 -0
  540. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +11 -0
  541. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +1 -0
  542. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +11 -0
  543. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +1 -0
  544. package/dist/components/SensitiveText/SensitiveText.constants.mjs +11 -0
  545. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +1 -0
  546. package/dist/components/SensitiveText/SensitiveText.d.cts +4 -0
  547. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -0
  548. package/dist/components/SensitiveText/SensitiveText.d.mts +4 -0
  549. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -0
  550. package/dist/components/SensitiveText/SensitiveText.mjs +27 -0
  551. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -0
  552. package/dist/components/SensitiveText/SensitiveText.types.cjs +3 -0
  553. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -0
  554. package/dist/components/SensitiveText/SensitiveText.types.d.cts +38 -0
  555. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  556. package/dist/components/SensitiveText/SensitiveText.types.d.mts +38 -0
  557. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  558. package/dist/components/SensitiveText/SensitiveText.types.mjs +2 -0
  559. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -0
  560. package/dist/components/SensitiveText/index.cjs +8 -0
  561. package/dist/components/SensitiveText/index.cjs.map +1 -0
  562. package/dist/components/SensitiveText/index.d.cts +4 -0
  563. package/dist/components/SensitiveText/index.d.cts.map +1 -0
  564. package/dist/components/SensitiveText/index.d.mts +4 -0
  565. package/dist/components/SensitiveText/index.d.mts.map +1 -0
  566. package/dist/components/SensitiveText/index.mjs +3 -0
  567. package/dist/components/SensitiveText/index.mjs.map +1 -0
  568. package/dist/components/Skeleton/Skeleton.cjs +86 -0
  569. package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
  570. package/dist/components/Skeleton/Skeleton.d.cts +5 -0
  571. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  572. package/dist/components/Skeleton/Skeleton.d.mts +5 -0
  573. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  574. package/dist/components/Skeleton/Skeleton.mjs +68 -0
  575. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  576. package/dist/components/Skeleton/Skeleton.types.cjs +3 -0
  577. package/dist/components/Skeleton/Skeleton.types.cjs.map +1 -0
  578. package/dist/components/Skeleton/Skeleton.types.d.cts +51 -0
  579. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -0
  580. package/dist/components/Skeleton/Skeleton.types.d.mts +51 -0
  581. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -0
  582. package/dist/components/Skeleton/Skeleton.types.mjs +2 -0
  583. package/dist/components/Skeleton/Skeleton.types.mjs.map +1 -0
  584. package/dist/components/Skeleton/index.cjs +9 -0
  585. package/dist/components/Skeleton/index.cjs.map +1 -0
  586. package/dist/components/Skeleton/index.d.cts +3 -0
  587. package/dist/components/Skeleton/index.d.cts.map +1 -0
  588. package/dist/components/Skeleton/index.d.mts +3 -0
  589. package/dist/components/Skeleton/index.d.mts.map +1 -0
  590. package/dist/components/Skeleton/index.mjs +2 -0
  591. package/dist/components/Skeleton/index.mjs.map +1 -0
  592. package/dist/components/TabEmptyState/TabEmptyState.cjs +22 -0
  593. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -0
  594. package/dist/components/TabEmptyState/TabEmptyState.d.cts +4 -0
  595. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -0
  596. package/dist/components/TabEmptyState/TabEmptyState.d.mts +4 -0
  597. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -0
  598. package/dist/components/TabEmptyState/TabEmptyState.mjs +22 -0
  599. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -0
  600. package/dist/components/TabEmptyState/TabEmptyState.types.cjs +3 -0
  601. package/dist/components/TabEmptyState/TabEmptyState.types.cjs.map +1 -0
  602. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +45 -0
  603. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -0
  604. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +45 -0
  605. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -0
  606. package/dist/components/TabEmptyState/TabEmptyState.types.mjs +2 -0
  607. package/dist/components/TabEmptyState/TabEmptyState.types.mjs.map +1 -0
  608. package/dist/components/TabEmptyState/index.cjs +6 -0
  609. package/dist/components/TabEmptyState/index.cjs.map +1 -0
  610. package/dist/components/TabEmptyState/index.d.cts +3 -0
  611. package/dist/components/TabEmptyState/index.d.cts.map +1 -0
  612. package/dist/components/TabEmptyState/index.d.mts +3 -0
  613. package/dist/components/TabEmptyState/index.d.mts.map +1 -0
  614. package/dist/components/TabEmptyState/index.mjs +2 -0
  615. package/dist/components/TabEmptyState/index.mjs.map +1 -0
  616. package/dist/components/TextField/TextField.cjs +42 -0
  617. package/dist/components/TextField/TextField.cjs.map +1 -0
  618. package/dist/components/TextField/TextField.constants.cjs +13 -0
  619. package/dist/components/TextField/TextField.constants.cjs.map +1 -0
  620. package/dist/components/TextField/TextField.constants.d.cts +6 -0
  621. package/dist/components/TextField/TextField.constants.d.cts.map +1 -0
  622. package/dist/components/TextField/TextField.constants.d.mts +6 -0
  623. package/dist/components/TextField/TextField.constants.d.mts.map +1 -0
  624. package/dist/components/TextField/TextField.constants.mjs +10 -0
  625. package/dist/components/TextField/TextField.constants.mjs.map +1 -0
  626. package/dist/components/TextField/TextField.d.cts +12 -0
  627. package/dist/components/TextField/TextField.d.cts.map +1 -0
  628. package/dist/components/TextField/TextField.d.mts +12 -0
  629. package/dist/components/TextField/TextField.d.mts.map +1 -0
  630. package/dist/components/TextField/TextField.mjs +39 -0
  631. package/dist/components/TextField/TextField.mjs.map +1 -0
  632. package/dist/components/TextField/TextField.types.cjs +13 -0
  633. package/dist/components/TextField/TextField.types.cjs.map +1 -0
  634. package/dist/components/TextField/TextField.types.d.cts +49 -0
  635. package/dist/components/TextField/TextField.types.d.cts.map +1 -0
  636. package/dist/components/TextField/TextField.types.d.mts +49 -0
  637. package/dist/components/TextField/TextField.types.d.mts.map +1 -0
  638. package/dist/components/TextField/TextField.types.mjs +10 -0
  639. package/dist/components/TextField/TextField.types.mjs.map +1 -0
  640. package/dist/components/TextField/index.cjs +8 -0
  641. package/dist/components/TextField/index.cjs.map +1 -0
  642. package/dist/components/TextField/index.d.cts +4 -0
  643. package/dist/components/TextField/index.d.cts.map +1 -0
  644. package/dist/components/TextField/index.d.mts +4 -0
  645. package/dist/components/TextField/index.d.mts.map +1 -0
  646. package/dist/components/TextField/index.mjs +3 -0
  647. package/dist/components/TextField/index.mjs.map +1 -0
  648. package/dist/components/Toast/Toast.cjs +175 -0
  649. package/dist/components/Toast/Toast.cjs.map +1 -0
  650. package/dist/components/Toast/Toast.constants.cjs +12 -0
  651. package/dist/components/Toast/Toast.constants.cjs.map +1 -0
  652. package/dist/components/Toast/Toast.constants.d.cts +8 -0
  653. package/dist/components/Toast/Toast.constants.d.cts.map +1 -0
  654. package/dist/components/Toast/Toast.constants.d.mts +8 -0
  655. package/dist/components/Toast/Toast.constants.d.mts.map +1 -0
  656. package/dist/components/Toast/Toast.constants.mjs +9 -0
  657. package/dist/components/Toast/Toast.constants.mjs.map +1 -0
  658. package/dist/components/Toast/Toast.context.cjs +40 -0
  659. package/dist/components/Toast/Toast.context.cjs.map +1 -0
  660. package/dist/components/Toast/Toast.context.d.cts +7 -0
  661. package/dist/components/Toast/Toast.context.d.cts.map +1 -0
  662. package/dist/components/Toast/Toast.context.d.mts +7 -0
  663. package/dist/components/Toast/Toast.context.d.mts.map +1 -0
  664. package/dist/components/Toast/Toast.context.mjs +20 -0
  665. package/dist/components/Toast/Toast.context.mjs.map +1 -0
  666. package/dist/components/Toast/Toast.d.cts +8 -0
  667. package/dist/components/Toast/Toast.d.cts.map +1 -0
  668. package/dist/components/Toast/Toast.d.mts +8 -0
  669. package/dist/components/Toast/Toast.d.mts.map +1 -0
  670. package/dist/components/Toast/Toast.mjs +157 -0
  671. package/dist/components/Toast/Toast.mjs.map +1 -0
  672. package/dist/components/Toast/Toast.types.cjs +19 -0
  673. package/dist/components/Toast/Toast.types.cjs.map +1 -0
  674. package/dist/components/Toast/Toast.types.d.cts +124 -0
  675. package/dist/components/Toast/Toast.types.d.cts.map +1 -0
  676. package/dist/components/Toast/Toast.types.d.mts +124 -0
  677. package/dist/components/Toast/Toast.types.d.mts.map +1 -0
  678. package/dist/components/Toast/Toast.types.mjs +16 -0
  679. package/dist/components/Toast/Toast.types.mjs.map +1 -0
  680. package/dist/components/Toast/index.cjs +19 -0
  681. package/dist/components/Toast/index.cjs.map +1 -0
  682. package/dist/components/Toast/index.d.cts +6 -0
  683. package/dist/components/Toast/index.d.cts.map +1 -0
  684. package/dist/components/Toast/index.d.mts +6 -0
  685. package/dist/components/Toast/index.d.mts.map +1 -0
  686. package/dist/components/Toast/index.mjs +5 -0
  687. package/dist/components/Toast/index.mjs.map +1 -0
  688. package/dist/components/index.cjs +67 -2
  689. package/dist/components/index.cjs.map +1 -1
  690. package/dist/components/index.d.cts +50 -2
  691. package/dist/components/index.d.cts.map +1 -1
  692. package/dist/components/index.d.mts +50 -2
  693. package/dist/components/index.d.mts.map +1 -1
  694. package/dist/components/index.mjs +25 -1
  695. package/dist/components/index.mjs.map +1 -1
  696. package/dist/types/index.cjs +12 -16
  697. package/dist/types/index.cjs.map +1 -1
  698. package/dist/types/index.d.cts +10 -13
  699. package/dist/types/index.d.cts.map +1 -1
  700. package/dist/types/index.d.mts +10 -13
  701. package/dist/types/index.d.mts.map +1 -1
  702. package/dist/types/index.mjs +11 -14
  703. package/dist/types/index.mjs.map +1 -1
  704. package/package.json +6 -5
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { CardProps } from "./Card.types.cjs";
3
+ export declare const Card: ({ children, onPress, twClassName, touchableOpacityProps, style, ...props }: CardProps) => React.JSX.Element;
4
+ //# sourceMappingURL=Card.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.cts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,+EAOd,SAAS,sBA0BX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { CardProps } from "./Card.types.mjs";
3
+ export declare const Card: ({ children, onPress, twClassName, touchableOpacityProps, style, ...props }: CardProps) => React.JSX.Element;
4
+ //# sourceMappingURL=Card.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.mts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,+EAOd,SAAS,sBA0BX,CAAC"}
@@ -0,0 +1,26 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { TouchableOpacity, View } from "react-native/index.js";
11
+ export const Card = ({ children, onPress, twClassName, touchableOpacityProps, style, ...props }) => {
12
+ const tw = useTailwind();
13
+ const cardStyle = [
14
+ tw.style('p-4 rounded border border-default bg-default', twClassName),
15
+ style,
16
+ ];
17
+ if (onPress) {
18
+ return (<TouchableOpacity onPress={onPress} style={cardStyle} {...touchableOpacityProps} {...props}>
19
+ {children}
20
+ </TouchableOpacity>);
21
+ }
22
+ return (<View style={cardStyle} {...props}>
23
+ {children}
24
+ </View>);
25
+ };
26
+ //# sourceMappingURL=Card.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,8BAAqB;AAItD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,SAAS,GAAG;QAChB,EAAE,CAAC,KAAK,CAAC,8CAA8C,EAAE,WAAW,CAAC;QACrE,KAAK;KACN,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,CAAC,gBAAgB,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,qBAAqB,CAAC,CAC1B,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,gBAAgB,CAAC,CACpB,CAAC;KACH;IAED,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAChC;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nimport type { CardProps } from './Card.types';\n\nexport const Card = ({\n children,\n onPress,\n twClassName,\n touchableOpacityProps,\n style,\n ...props\n}: CardProps) => {\n const tw = useTailwind();\n\n const cardStyle = [\n tw.style('p-4 rounded border border-default bg-default', twClassName),\n style,\n ];\n\n if (onPress) {\n return (\n <TouchableOpacity\n onPress={onPress}\n style={cardStyle}\n {...touchableOpacityProps}\n {...props}\n >\n {children}\n </TouchableOpacity>\n );\n }\n\n return (\n <View style={cardStyle} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Card.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.types.cjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps, ViewProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & ViewProps;\n"]}
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from "react";
2
+ import type { TouchableOpacityProps, ViewProps } from "react-native/index.js";
3
+ /**
4
+ * Card component props.
5
+ */
6
+ export type CardProps = {
7
+ /**
8
+ * Content to display inside the card.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Optional callback when the card is pressed.
13
+ * When provided, the card wraps content in a TouchableOpacity.
14
+ */
15
+ onPress?: () => void;
16
+ /**
17
+ * Optional prop to add twrnc overriding classNames.
18
+ */
19
+ twClassName?: string;
20
+ /**
21
+ * Optional props to pass to the underlying TouchableOpacity when onPress is provided.
22
+ */
23
+ touchableOpacityProps?: Omit<TouchableOpacityProps, 'onPress' | 'style' | 'children'>;
24
+ } & ViewProps;
25
+ //# sourceMappingURL=Card.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.types.d.cts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,8BAAqB;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,SAAS,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from "react";
2
+ import type { TouchableOpacityProps, ViewProps } from "react-native/index.js";
3
+ /**
4
+ * Card component props.
5
+ */
6
+ export type CardProps = {
7
+ /**
8
+ * Content to display inside the card.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Optional callback when the card is pressed.
13
+ * When provided, the card wraps content in a TouchableOpacity.
14
+ */
15
+ onPress?: () => void;
16
+ /**
17
+ * Optional prop to add twrnc overriding classNames.
18
+ */
19
+ twClassName?: string;
20
+ /**
21
+ * Optional props to pass to the underlying TouchableOpacity when onPress is provided.
22
+ */
23
+ touchableOpacityProps?: Omit<TouchableOpacityProps, 'onPress' | 'style' | 'children'>;
24
+ } & ViewProps;
25
+ //# sourceMappingURL=Card.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.types.d.mts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,8BAAqB;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,IAAI,CAC1B,qBAAqB,EACrB,SAAS,GAAG,OAAO,GAAG,UAAU,CACjC,CAAC;CACH,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Card.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.types.mjs","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { TouchableOpacityProps, ViewProps } from 'react-native';\n\n/**\n * Card component props.\n */\nexport type CardProps = {\n /**\n * Content to display inside the card.\n */\n children: ReactNode;\n /**\n * Optional callback when the card is pressed.\n * When provided, the card wraps content in a TouchableOpacity.\n */\n onPress?: () => void;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional props to pass to the underlying TouchableOpacity when onPress is provided.\n */\n touchableOpacityProps?: Omit<\n TouchableOpacityProps,\n 'onPress' | 'style' | 'children'\n >;\n} & ViewProps;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Card = void 0;
4
+ var Card_1 = require("./Card.cjs");
5
+ Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export { Card } from './Card';\nexport type { CardProps } from './Card.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { Card } from "./Card.cjs";
2
+ export type { CardProps } from "./Card.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -0,0 +1,3 @@
1
+ export { Card } from "./Card.mjs";
2
+ export type { CardProps } from "./Card.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -0,0 +1,2 @@
1
+ export { Card } from "./Card.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export { Card } from './Card';\nexport type { CardProps } from './Card.types';\n"]}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.HeaderBase = void 0;
27
+ // Third party dependencies.
28
+ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
29
+ const react_1 = __importStar(require("react"));
30
+ const react_native_1 = require("react-native/index.js");
31
+ const react_native_safe_area_context_1 = require("react-native-safe-area-context");
32
+ // External dependencies.
33
+ const Box_1 = require("../Box/index.cjs");
34
+ const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
35
+ const Text_1 = require("../Text/index.cjs");
36
+ // Internal dependencies.
37
+ const HeaderBase_constants_1 = require("./HeaderBase.constants.cjs");
38
+ const HeaderBase_types_1 = require("./HeaderBase.types.cjs");
39
+ const HeaderBase = ({ children, style, variant = HeaderBase_types_1.HeaderBaseVariant.Compact, startAccessory, endAccessory, startButtonIconProps, endButtonIconProps, includesTopInset = false, startAccessoryWrapperProps, endAccessoryWrapperProps, titleTestID, twClassName, ...props }) => {
40
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
41
+ const insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
42
+ const [startAccessoryWidth, setStartAccessoryWidth] = (0, react_1.useState)(0);
43
+ const [endAccessoryWidth, setEndAccessoryWidth] = (0, react_1.useState)(0);
44
+ const handleStartAccessoryLayout = (0, react_1.useCallback)((e) => {
45
+ setStartAccessoryWidth(e.nativeEvent.layout.width);
46
+ }, []);
47
+ const handleEndAccessoryLayout = (0, react_1.useCallback)((e) => {
48
+ setEndAccessoryWidth(e.nativeEvent.layout.width);
49
+ }, []);
50
+ // Determine what to render for start/end
51
+ const hasStartContent = startAccessory || startButtonIconProps;
52
+ const hasEndContent = endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);
53
+ const hasAnyAccessory = hasStartContent || hasEndContent;
54
+ const isCompact = variant === HeaderBase_types_1.HeaderBaseVariant.Compact;
55
+ // For Compact variant, render both wrappers if any accessory exists (for centering)
56
+ // For Display variant, only render wrappers when they have content
57
+ const shouldRenderStartWrapper = isCompact
58
+ ? Boolean(hasAnyAccessory)
59
+ : Boolean(hasStartContent);
60
+ const shouldRenderEndWrapper = isCompact
61
+ ? Boolean(hasAnyAccessory)
62
+ : Boolean(hasEndContent);
63
+ // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)
64
+ const accessoryWrapperWidth = isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)
65
+ ? Math.max(startAccessoryWidth, endAccessoryWidth)
66
+ : undefined;
67
+ const renderStartContent = () => {
68
+ if (startAccessory) {
69
+ return startAccessory;
70
+ }
71
+ if (startButtonIconProps) {
72
+ return <ButtonIcon_1.ButtonIcon size={ButtonIcon_1.ButtonIconSize.Md} {...startButtonIconProps}/>;
73
+ }
74
+ return null;
75
+ };
76
+ const renderEndContent = () => {
77
+ if (endAccessory) {
78
+ return endAccessory;
79
+ }
80
+ if (endButtonIconProps && endButtonIconProps.length > 0) {
81
+ // Reverse the array so first item appears rightmost
82
+ // Use original index (before reversal) for stable React keys
83
+ const reversedProps = endButtonIconProps
84
+ .map((iconProps, originalIndex) => ({
85
+ iconProps,
86
+ originalIndex,
87
+ }))
88
+ .reverse();
89
+ return reversedProps.map(({ iconProps, originalIndex }) => (<ButtonIcon_1.ButtonIcon key={`end-button-icon-${originalIndex}`} size={ButtonIcon_1.ButtonIconSize.Md} {...iconProps}/>));
90
+ }
91
+ return null;
92
+ };
93
+ // Check if we have multiple end buttons for layout styling
94
+ const hasMultipleEndButtons = !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;
95
+ // Merge default styles with passed-in twClassName
96
+ const baseStyles = 'flex-row items-center gap-4 h-14';
97
+ const resolvedTwClassName = twClassName
98
+ ? `${baseStyles} ${twClassName}`
99
+ : baseStyles;
100
+ return (<react_native_1.View style={[
101
+ tw.style(resolvedTwClassName),
102
+ includesTopInset && { marginTop: insets.top },
103
+ style,
104
+ ]} {...props}>
105
+ {/* Start accessory */}
106
+ {shouldRenderStartWrapper && (<react_native_1.View style={accessoryWrapperWidth
107
+ ? tw.style('items-start', { width: accessoryWrapperWidth })
108
+ : undefined} {...startAccessoryWrapperProps}>
109
+ <react_native_1.View onLayout={handleStartAccessoryLayout}>
110
+ {renderStartContent()}
111
+ </react_native_1.View>
112
+ </react_native_1.View>)}
113
+
114
+ {/* Title */}
115
+ <Box_1.Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>
116
+ {typeof children === 'string' ? (<Text_1.Text variant={HeaderBase_constants_1.HEADERBASE_VARIANT_TEXT_VARIANTS[variant]} testID={titleTestID} style={isCompact ? tw.style('text-center') : undefined}>
117
+ {children}
118
+ </Text_1.Text>) : (children)}
119
+ </Box_1.Box>
120
+
121
+ {/* End accessory */}
122
+ {shouldRenderEndWrapper && (<react_native_1.View style={accessoryWrapperWidth
123
+ ? tw.style('items-end', { width: accessoryWrapperWidth })
124
+ : undefined} {...endAccessoryWrapperProps}>
125
+ <react_native_1.View onLayout={handleEndAccessoryLayout} style={hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined}>
126
+ {renderEndContent()}
127
+ </react_native_1.View>
128
+ </react_native_1.View>)}
129
+ </react_native_1.View>);
130
+ };
131
+ exports.HeaderBase = HeaderBase;
132
+ //# sourceMappingURL=HeaderBase.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAA4B;AAC5B,8FAA4E;AAC5E,+CAAqD;AAErD,wDAAoC;AACpC,mFAAmE;AAEnE,yBAAyB;AACzB,0CAA6B;AAC7B,wDAA2D;AAC3D,4CAA+B;AAE/B,yBAAyB;AACzB,qEAA0E;AAE1E,6DAAuD;AAEhD,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,K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AgC,CAAC,OAAO,CAAC,CAAC,CACnD,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEvD;YAAA,CAAC,QAAQ,CACX;UAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;MAAA,EAAE,SAAG,CAEL;;MAAA,CAAC,mBAAmB,CACpB;MAAA,CAAC,sBAAsB,IAAI,CACzB,CAAC,mBAAI,CACH,KAAK,CAAC,CACJ,qBAAqB;gBACnB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;gBACzD,CAAC,CAAC,SAAS,CACd,CACD,IAAI,wBAAwB,CAAC,CAE7B;UAAA,CAAC,mBAAI,CACH,QAAQ,CAAC,CAAC,wBAAwB,CAAC,CACnC,KAAK,CAAC,CACJ,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAC/D,CAED;YAAA,CAAC,gBAAgB,EAAE,CACrB;UAAA,EAAE,mBAAI,CACR;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA9JW,QAAA,UAAU,cA8JrB","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback, useState } from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport { View } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box } from '../Box';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Text } from '../Text';\n\n// Internal dependencies.\nimport { HEADERBASE_VARIANT_TEXT_VARIANTS } from './HeaderBase.constants';\nimport type { HeaderBaseProps } from './HeaderBase.types';\nimport { HeaderBaseVariant } from './HeaderBase.types';\n\nexport const HeaderBase: React.FC<HeaderBaseProps> = ({\n children,\n style,\n variant = HeaderBaseVariant.Compact,\n startAccessory,\n endAccessory,\n startButtonIconProps,\n endButtonIconProps,\n includesTopInset = false,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n titleTestID,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const insets = useSafeAreaInsets();\n\n const [startAccessoryWidth, setStartAccessoryWidth] = useState(0);\n const [endAccessoryWidth, setEndAccessoryWidth] = useState(0);\n\n const handleStartAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setStartAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n const handleEndAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setEndAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n // Determine what to render for start/end\n const hasStartContent = startAccessory || startButtonIconProps;\n const hasEndContent =\n endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);\n const hasAnyAccessory = hasStartContent || hasEndContent;\n\n const isCompact = variant === HeaderBaseVariant.Compact;\n\n // For Compact variant, render both wrappers if any accessory exists (for centering)\n // For Display variant, only render wrappers when they have content\n const shouldRenderStartWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasStartContent);\n const shouldRenderEndWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasEndContent);\n\n // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)\n const accessoryWrapperWidth =\n isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)\n ? Math.max(startAccessoryWidth, endAccessoryWidth)\n : undefined;\n\n const renderStartContent = () => {\n if (startAccessory) {\n return startAccessory;\n }\n if (startButtonIconProps) {\n return <ButtonIcon size={ButtonIconSize.Md} {...startButtonIconProps} />;\n }\n return null;\n };\n\n const renderEndContent = () => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n // Reverse the array so first item appears rightmost\n // Use original index (before reversal) for stable React keys\n const reversedProps = endButtonIconProps\n .map((iconProps, originalIndex) => ({\n iconProps,\n originalIndex,\n }))\n .reverse();\n return reversedProps.map(({ iconProps, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...iconProps}\n />\n ));\n }\n return null;\n };\n\n // Check if we have multiple end buttons for layout styling\n const hasMultipleEndButtons =\n !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;\n\n // Merge default styles with passed-in twClassName\n const baseStyles = 'flex-row items-center gap-4 h-14';\n const resolvedTwClassName = twClassName\n ? `${baseStyles} ${twClassName}`\n : baseStyles;\n\n return (\n <View\n style={[\n tw.style(resolvedTwClassName),\n includesTopInset && { marginTop: insets.top },\n style,\n ]}\n {...props}\n >\n {/* Start accessory */}\n {shouldRenderStartWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-start', { width: accessoryWrapperWidth })\n : undefined\n }\n {...startAccessoryWrapperProps}\n >\n <View onLayout={handleStartAccessoryLayout}>\n {renderStartContent()}\n </View>\n </View>\n )}\n\n {/* Title */}\n <Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>\n {typeof children === 'string' ? (\n <Text\n variant={HEADERBASE_VARIANT_TEXT_VARIANTS[variant]}\n testID={titleTestID}\n style={isCompact ? tw.style('text-center') : undefined}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Box>\n\n {/* End accessory */}\n {shouldRenderEndWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-end', { width: accessoryWrapperWidth })\n : undefined\n }\n {...endAccessoryWrapperProps}\n >\n <View\n onLayout={handleEndAccessoryLayout}\n style={\n hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined\n }\n >\n {renderEndContent()}\n </View>\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HEADERBASE_VARIANT_TEXT_VARIANTS = void 0;
4
+ // External dependencies.
5
+ const Text_1 = require("../Text/index.cjs");
6
+ // Internal dependencies.
7
+ const HeaderBase_types_1 = require("./HeaderBase.types.cjs");
8
+ /**
9
+ * Text variant mapping based on HeaderBase variant.
10
+ */
11
+ exports.HEADERBASE_VARIANT_TEXT_VARIANTS = {
12
+ [HeaderBase_types_1.HeaderBaseVariant.Compact]: Text_1.TextVariant.HeadingSm,
13
+ [HeaderBase_types_1.HeaderBaseVariant.Display]: Text_1.TextVariant.HeadingLg,
14
+ };
15
+ //# sourceMappingURL=HeaderBase.constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.constants.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.constants.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,4CAAsC;AAEtC,yBAAyB;AACzB,6DAAuD;AAEvD;;GAEG;AACU,QAAA,gCAAgC,GAGzC;IACF,CAAC,oCAAiB,CAAC,OAAO,CAAC,EAAE,kBAAW,CAAC,SAAS;IAClD,CAAC,oCAAiB,CAAC,OAAO,CAAC,EAAE,kBAAW,CAAC,SAAS;CACnD,CAAC","sourcesContent":["// External dependencies.\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport { HeaderBaseVariant } from './HeaderBase.types';\n\n/**\n * Text variant mapping based on HeaderBase variant.\n */\nexport const HEADERBASE_VARIANT_TEXT_VARIANTS: Record<\n HeaderBaseVariant,\n TextVariant\n> = {\n [HeaderBaseVariant.Compact]: TextVariant.HeadingSm,\n [HeaderBaseVariant.Display]: TextVariant.HeadingLg,\n};\n"]}
@@ -0,0 +1,7 @@
1
+ import { TextVariant } from "../Text/index.cjs";
2
+ import { HeaderBaseVariant } from "./HeaderBase.types.cjs";
3
+ /**
4
+ * Text variant mapping based on HeaderBase variant.
5
+ */
6
+ export declare const HEADERBASE_VARIANT_TEXT_VARIANTS: Record<HeaderBaseVariant, TextVariant>;
7
+ //# sourceMappingURL=HeaderBase.constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.constants.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,0BAAgB;AAGtC,OAAO,EAAE,iBAAiB,EAAE,+BAA2B;AAEvD;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CACnD,iBAAiB,EACjB,WAAW,CAIZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TextVariant } from "../Text/index.mjs";
2
+ import { HeaderBaseVariant } from "./HeaderBase.types.mjs";
3
+ /**
4
+ * Text variant mapping based on HeaderBase variant.
5
+ */
6
+ export declare const HEADERBASE_VARIANT_TEXT_VARIANTS: Record<HeaderBaseVariant, TextVariant>;
7
+ //# sourceMappingURL=HeaderBase.constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.constants.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,0BAAgB;AAGtC,OAAO,EAAE,iBAAiB,EAAE,+BAA2B;AAEvD;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,MAAM,CACnD,iBAAiB,EACjB,WAAW,CAIZ,CAAC"}
@@ -0,0 +1,12 @@
1
+ // External dependencies.
2
+ import { TextVariant } from "../Text/index.mjs";
3
+ // Internal dependencies.
4
+ import { HeaderBaseVariant } from "./HeaderBase.types.mjs";
5
+ /**
6
+ * Text variant mapping based on HeaderBase variant.
7
+ */
8
+ export const HEADERBASE_VARIANT_TEXT_VARIANTS = {
9
+ [HeaderBaseVariant.Compact]: TextVariant.HeadingSm,
10
+ [HeaderBaseVariant.Display]: TextVariant.HeadingLg,
11
+ };
12
+ //# sourceMappingURL=HeaderBase.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.constants.mjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.constants.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,OAAO,EAAE,WAAW,EAAE,0BAAgB;AAEtC,yBAAyB;AACzB,OAAO,EAAE,iBAAiB,EAAE,+BAA2B;AAEvD;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAGzC;IACF,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS;IAClD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS;CACnD,CAAC","sourcesContent":["// External dependencies.\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport { HeaderBaseVariant } from './HeaderBase.types';\n\n/**\n * Text variant mapping based on HeaderBase variant.\n */\nexport const HEADERBASE_VARIANT_TEXT_VARIANTS: Record<\n HeaderBaseVariant,\n TextVariant\n> = {\n [HeaderBaseVariant.Compact]: TextVariant.HeadingSm,\n [HeaderBaseVariant.Display]: TextVariant.HeadingLg,\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderBaseProps } from "./HeaderBase.types.cjs";
3
+ export declare const HeaderBase: React.FC<HeaderBaseProps>;
4
+ //# sourceMappingURL=HeaderBase.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,cAAc;AAYrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8JhD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderBaseProps } from "./HeaderBase.types.mjs";
3
+ export declare const HeaderBase: React.FC<HeaderBaseProps>;
4
+ //# sourceMappingURL=HeaderBase.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,cAAc;AAYrD,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAG1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8JhD,CAAC"}
@@ -0,0 +1,112 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
9
+ import $React, { useCallback, useState } from "react";
10
+ const React = $importDefault($React);
11
+ import { View } from "react-native/index.js";
12
+ import { useSafeAreaInsets } from "react-native-safe-area-context";
13
+ // External dependencies.
14
+ import { Box } from "../Box/index.mjs";
15
+ import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
16
+ import { Text } from "../Text/index.mjs";
17
+ // Internal dependencies.
18
+ import { HEADERBASE_VARIANT_TEXT_VARIANTS } from "./HeaderBase.constants.mjs";
19
+ import { HeaderBaseVariant } from "./HeaderBase.types.mjs";
20
+ export const HeaderBase = ({ children, style, variant = HeaderBaseVariant.Compact, startAccessory, endAccessory, startButtonIconProps, endButtonIconProps, includesTopInset = false, startAccessoryWrapperProps, endAccessoryWrapperProps, titleTestID, twClassName, ...props }) => {
21
+ const tw = useTailwind();
22
+ const insets = useSafeAreaInsets();
23
+ const [startAccessoryWidth, setStartAccessoryWidth] = useState(0);
24
+ const [endAccessoryWidth, setEndAccessoryWidth] = useState(0);
25
+ const handleStartAccessoryLayout = useCallback((e) => {
26
+ setStartAccessoryWidth(e.nativeEvent.layout.width);
27
+ }, []);
28
+ const handleEndAccessoryLayout = useCallback((e) => {
29
+ setEndAccessoryWidth(e.nativeEvent.layout.width);
30
+ }, []);
31
+ // Determine what to render for start/end
32
+ const hasStartContent = startAccessory || startButtonIconProps;
33
+ const hasEndContent = endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);
34
+ const hasAnyAccessory = hasStartContent || hasEndContent;
35
+ const isCompact = variant === HeaderBaseVariant.Compact;
36
+ // For Compact variant, render both wrappers if any accessory exists (for centering)
37
+ // For Display variant, only render wrappers when they have content
38
+ const shouldRenderStartWrapper = isCompact
39
+ ? Boolean(hasAnyAccessory)
40
+ : Boolean(hasStartContent);
41
+ const shouldRenderEndWrapper = isCompact
42
+ ? Boolean(hasAnyAccessory)
43
+ : Boolean(hasEndContent);
44
+ // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)
45
+ const accessoryWrapperWidth = isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)
46
+ ? Math.max(startAccessoryWidth, endAccessoryWidth)
47
+ : undefined;
48
+ const renderStartContent = () => {
49
+ if (startAccessory) {
50
+ return startAccessory;
51
+ }
52
+ if (startButtonIconProps) {
53
+ return <ButtonIcon size={ButtonIconSize.Md} {...startButtonIconProps}/>;
54
+ }
55
+ return null;
56
+ };
57
+ const renderEndContent = () => {
58
+ if (endAccessory) {
59
+ return endAccessory;
60
+ }
61
+ if (endButtonIconProps && endButtonIconProps.length > 0) {
62
+ // Reverse the array so first item appears rightmost
63
+ // Use original index (before reversal) for stable React keys
64
+ const reversedProps = endButtonIconProps
65
+ .map((iconProps, originalIndex) => ({
66
+ iconProps,
67
+ originalIndex,
68
+ }))
69
+ .reverse();
70
+ return reversedProps.map(({ iconProps, originalIndex }) => (<ButtonIcon key={`end-button-icon-${originalIndex}`} size={ButtonIconSize.Md} {...iconProps}/>));
71
+ }
72
+ return null;
73
+ };
74
+ // Check if we have multiple end buttons for layout styling
75
+ const hasMultipleEndButtons = !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;
76
+ // Merge default styles with passed-in twClassName
77
+ const baseStyles = 'flex-row items-center gap-4 h-14';
78
+ const resolvedTwClassName = twClassName
79
+ ? `${baseStyles} ${twClassName}`
80
+ : baseStyles;
81
+ return (<View style={[
82
+ tw.style(resolvedTwClassName),
83
+ includesTopInset && { marginTop: insets.top },
84
+ style,
85
+ ]} {...props}>
86
+ {/* Start accessory */}
87
+ {shouldRenderStartWrapper && (<View style={accessoryWrapperWidth
88
+ ? tw.style('items-start', { width: accessoryWrapperWidth })
89
+ : undefined} {...startAccessoryWrapperProps}>
90
+ <View onLayout={handleStartAccessoryLayout}>
91
+ {renderStartContent()}
92
+ </View>
93
+ </View>)}
94
+
95
+ {/* Title */}
96
+ <Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>
97
+ {typeof children === 'string' ? (<Text variant={HEADERBASE_VARIANT_TEXT_VARIANTS[variant]} testID={titleTestID} style={isCompact ? tw.style('text-center') : undefined}>
98
+ {children}
99
+ </Text>) : (children)}
100
+ </Box>
101
+
102
+ {/* End accessory */}
103
+ {shouldRenderEndWrapper && (<View style={accessoryWrapperWidth
104
+ ? tw.style('items-end', { width: accessoryWrapperWidth })
105
+ : undefined} {...endAccessoryWrapperProps}>
106
+ <View onLayout={handleEndAccessoryLayout} style={hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined}>
107
+ {renderEndContent()}
108
+ </View>
109
+ </View>)}
110
+ </View>);
111
+ };
112
+ //# sourceMappingURL=HeaderBase.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.mjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc;;AAErD,OAAO,EAAE,IAAI,EAAE,8BAAqB;AACpC,OAAO,EAAE,iBAAiB,EAAE,uCAAuC;AAEnE,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAA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AC,CAAC,QAAQ,CAAC,CAC7D;QAAA,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC9B,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CACnD,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAEvD;YAAA,CAAC,QAAQ,CACX;UAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;MAAA,EAAE,GAAG,CAEL;;MAAA,CAAC,mBAAmB,CACpB;MAAA,CAAC,sBAAsB,IAAI,CACzB,CAAC,IAAI,CACH,KAAK,CAAC,CACJ,qBAAqB;gBACnB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;gBACzD,CAAC,CAAC,SAAS,CACd,CACD,IAAI,wBAAwB,CAAC,CAE7B;UAAA,CAAC,IAAI,CACH,QAAQ,CAAC,CAAC,wBAAwB,CAAC,CACnC,KAAK,CAAC,CACJ,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,CAC/D,CAED;YAAA,CAAC,gBAAgB,EAAE,CACrB;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Third party dependencies.\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback, useState } from 'react';\nimport type { LayoutChangeEvent } from 'react-native';\nimport { View } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box } from '../Box';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Text } from '../Text';\n\n// Internal dependencies.\nimport { HEADERBASE_VARIANT_TEXT_VARIANTS } from './HeaderBase.constants';\nimport type { HeaderBaseProps } from './HeaderBase.types';\nimport { HeaderBaseVariant } from './HeaderBase.types';\n\nexport const HeaderBase: React.FC<HeaderBaseProps> = ({\n children,\n style,\n variant = HeaderBaseVariant.Compact,\n startAccessory,\n endAccessory,\n startButtonIconProps,\n endButtonIconProps,\n includesTopInset = false,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n titleTestID,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const insets = useSafeAreaInsets();\n\n const [startAccessoryWidth, setStartAccessoryWidth] = useState(0);\n const [endAccessoryWidth, setEndAccessoryWidth] = useState(0);\n\n const handleStartAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setStartAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n const handleEndAccessoryLayout = useCallback((e: LayoutChangeEvent) => {\n setEndAccessoryWidth(e.nativeEvent.layout.width);\n }, []);\n\n // Determine what to render for start/end\n const hasStartContent = startAccessory || startButtonIconProps;\n const hasEndContent =\n endAccessory || (endButtonIconProps && endButtonIconProps.length > 0);\n const hasAnyAccessory = hasStartContent || hasEndContent;\n\n const isCompact = variant === HeaderBaseVariant.Compact;\n\n // For Compact variant, render both wrappers if any accessory exists (for centering)\n // For Display variant, only render wrappers when they have content\n const shouldRenderStartWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasStartContent);\n const shouldRenderEndWrapper = isCompact\n ? Boolean(hasAnyAccessory)\n : Boolean(hasEndContent);\n\n // Calculate equal width for both accessory wrappers to ensure title stays centered (Compact only)\n const accessoryWrapperWidth =\n isCompact && hasAnyAccessory && (startAccessoryWidth || endAccessoryWidth)\n ? Math.max(startAccessoryWidth, endAccessoryWidth)\n : undefined;\n\n const renderStartContent = () => {\n if (startAccessory) {\n return startAccessory;\n }\n if (startButtonIconProps) {\n return <ButtonIcon size={ButtonIconSize.Md} {...startButtonIconProps} />;\n }\n return null;\n };\n\n const renderEndContent = () => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n // Reverse the array so first item appears rightmost\n // Use original index (before reversal) for stable React keys\n const reversedProps = endButtonIconProps\n .map((iconProps, originalIndex) => ({\n iconProps,\n originalIndex,\n }))\n .reverse();\n return reversedProps.map(({ iconProps, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...iconProps}\n />\n ));\n }\n return null;\n };\n\n // Check if we have multiple end buttons for layout styling\n const hasMultipleEndButtons =\n !endAccessory && endButtonIconProps && endButtonIconProps.length > 1;\n\n // Merge default styles with passed-in twClassName\n const baseStyles = 'flex-row items-center gap-4 h-14';\n const resolvedTwClassName = twClassName\n ? `${baseStyles} ${twClassName}`\n : baseStyles;\n\n return (\n <View\n style={[\n tw.style(resolvedTwClassName),\n includesTopInset && { marginTop: insets.top },\n style,\n ]}\n {...props}\n >\n {/* Start accessory */}\n {shouldRenderStartWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-start', { width: accessoryWrapperWidth })\n : undefined\n }\n {...startAccessoryWrapperProps}\n >\n <View onLayout={handleStartAccessoryLayout}>\n {renderStartContent()}\n </View>\n </View>\n )}\n\n {/* Title */}\n <Box twClassName={isCompact ? 'flex-1 items-center' : 'flex-1'}>\n {typeof children === 'string' ? (\n <Text\n variant={HEADERBASE_VARIANT_TEXT_VARIANTS[variant]}\n testID={titleTestID}\n style={isCompact ? tw.style('text-center') : undefined}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n </Box>\n\n {/* End accessory */}\n {shouldRenderEndWrapper && (\n <View\n style={\n accessoryWrapperWidth\n ? tw.style('items-end', { width: accessoryWrapperWidth })\n : undefined\n }\n {...endAccessoryWrapperProps}\n >\n <View\n onLayout={handleEndAccessoryLayout}\n style={\n hasMultipleEndButtons ? tw.style('flex-row gap-2') : undefined\n }\n >\n {renderEndContent()}\n </View>\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderBaseVariant = void 0;
4
+ /**
5
+ * Variant options for HeaderBase component.
6
+ * Controls title text size and alignment.
7
+ */
8
+ var HeaderBaseVariant;
9
+ (function (HeaderBaseVariant) {
10
+ /** Center-aligned title with HeadingSm text */
11
+ HeaderBaseVariant["Compact"] = "compact";
12
+ /** Left-aligned title with HeadingLg text */
13
+ HeaderBaseVariant["Display"] = "display";
14
+ })(HeaderBaseVariant || (exports.HeaderBaseVariant = HeaderBaseVariant = {}));
15
+ //# sourceMappingURL=HeaderBase.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.types.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.types.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,+CAA+C;IAC/C,wCAAmB,CAAA;IACnB,6CAA6C;IAC7C,wCAAmB,CAAA;AACrB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B","sourcesContent":["// Third party dependencies.\nimport type { ReactNode } from 'react';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\n// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\n\n/**\n * Variant options for HeaderBase component.\n * Controls title text size and alignment.\n */\nexport enum HeaderBaseVariant {\n /** Center-aligned title with HeadingSm text */\n Compact = 'compact',\n /** Left-aligned title with HeadingLg text */\n Display = 'display',\n}\n\n/**\n * HeaderBase component props.\n *\n * Extends React Native's ViewProps to inherit standard props such as\n * `testID`, `accessibilityLabel`, and other View props.\n */\nexport type HeaderBaseProps = ViewProps & {\n /**\n * Variant controlling header text size.\n *\n * @default HeaderBaseVariant.Compact\n */\n variant?: HeaderBaseVariant;\n /**\n * Title of the HeaderBase. Pass a string for automatic Text rendering,\n * or a ReactNode for custom content.\n */\n children?: ReactNode | string;\n /**\n * Optional style for the header container.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Optional prop to include content to be displayed before the title.\n * Takes priority over startButtonIconProps if both are provided.\n */\n startAccessory?: ReactNode;\n /**\n * Optional prop to include content to be displayed after the title.\n * Takes priority over endButtonIconProps if both are provided.\n */\n endAccessory?: ReactNode;\n /**\n * Optional ButtonIcon props to render a ButtonIcon as the start accessory.\n * Only used if startAccessory is not provided.\n *\n * @default size: ButtonIconSize.Md\n */\n startButtonIconProps?: ButtonIconProps;\n /**\n * Optional array of ButtonIcon props to render multiple ButtonIcons as end accessories.\n * Rendered in reverse order (first item appears rightmost).\n * Only used if endAccessory is not provided.\n *\n * @default size: ButtonIconSize.Md for each\n */\n endButtonIconProps?: ButtonIconProps[];\n /**\n * Optional prop to include the top inset to make sure the header is visible\n * below device's notch.\n *\n * @default false\n */\n includesTopInset?: boolean;\n /**\n * Optional props to pass to the start accessory wrapper View.\n */\n startAccessoryWrapperProps?: ViewProps;\n /**\n * Optional props to pass to the end accessory wrapper View.\n */\n endAccessoryWrapperProps?: ViewProps;\n /**\n * Optional test ID for the title Text element.\n * Only used when children is a string.\n */\n titleTestID?: string;\n /**\n * Optional Tailwind class names for the header container.\n * Merged with default styles using tw.style().\n */\n twClassName?: string;\n};\n"]}