@metamask/design-system-react-native 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/dist/components/AvatarAccount/AvatarAccount.cjs +4 -3
  3. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs +9 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs.map +1 -1
  6. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts +2 -0
  7. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts +2 -0
  9. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs +8 -0
  11. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs.map +1 -1
  12. package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
  13. package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
  14. package/dist/components/AvatarAccount/AvatarAccount.mjs +4 -3
  15. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  16. package/dist/components/AvatarBase/AvatarBase.cjs +3 -3
  17. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  18. package/dist/components/AvatarBase/AvatarBase.constants.cjs +21 -21
  19. package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
  20. package/dist/components/AvatarBase/AvatarBase.constants.d.cts +1 -1
  21. package/dist/components/AvatarBase/AvatarBase.constants.d.cts.map +1 -1
  22. package/dist/components/AvatarBase/AvatarBase.constants.d.mts +1 -1
  23. package/dist/components/AvatarBase/AvatarBase.constants.d.mts.map +1 -1
  24. package/dist/components/AvatarBase/AvatarBase.constants.mjs +1 -1
  25. package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
  26. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  27. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  28. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  29. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  30. package/dist/components/AvatarBase/AvatarBase.types.cjs.map +1 -1
  31. package/dist/components/AvatarBase/AvatarBase.types.d.cts +3 -39
  32. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  33. package/dist/components/AvatarBase/AvatarBase.types.d.mts +3 -39
  34. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  35. package/dist/components/AvatarBase/AvatarBase.types.mjs.map +1 -1
  36. package/dist/components/AvatarBase/index.cjs +3 -3
  37. package/dist/components/AvatarBase/index.cjs.map +1 -1
  38. package/dist/components/AvatarBase/index.d.cts +1 -1
  39. package/dist/components/AvatarBase/index.d.cts.map +1 -1
  40. package/dist/components/AvatarBase/index.d.mts +1 -1
  41. package/dist/components/AvatarBase/index.d.mts.map +1 -1
  42. package/dist/components/AvatarBase/index.mjs +1 -1
  43. package/dist/components/AvatarBase/index.mjs.map +1 -1
  44. package/dist/components/BottomSheet/BottomSheet.cjs +7 -10
  45. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  46. package/dist/components/BottomSheet/BottomSheet.d.cts +31 -2
  47. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  48. package/dist/components/BottomSheet/BottomSheet.d.mts +31 -2
  49. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  50. package/dist/components/BottomSheet/BottomSheet.mjs +6 -6
  51. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  52. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -1
  53. package/dist/components/BottomSheet/BottomSheet.types.d.cts +3 -8
  54. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -1
  55. package/dist/components/BottomSheet/BottomSheet.types.d.mts +3 -8
  56. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -1
  57. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -1
  58. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +3 -3
  59. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  60. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +31 -2
  61. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  62. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +31 -2
  63. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  64. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +2 -3
  65. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  66. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -1
  67. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +7 -0
  68. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -1
  69. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +7 -0
  70. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -1
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -1
  72. package/dist/components/BottomSheetDialog/index.cjs +2 -5
  73. package/dist/components/BottomSheetDialog/index.cjs.map +1 -1
  74. package/dist/components/BottomSheetDialog/index.d.cts +1 -1
  75. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -1
  76. package/dist/components/BottomSheetDialog/index.d.mts +1 -1
  77. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -1
  78. package/dist/components/BottomSheetDialog/index.mjs +1 -1
  79. package/dist/components/BottomSheetDialog/index.mjs.map +1 -1
  80. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +2 -2
  81. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -1
  82. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +2 -2
  83. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -1
  84. package/dist/components/BoxHorizontal/BoxHorizontal.cjs +18 -0
  85. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +1 -0
  86. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +7 -0
  87. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +1 -0
  88. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +7 -0
  89. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +1 -0
  90. package/dist/components/BoxHorizontal/BoxHorizontal.mjs +18 -0
  91. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +1 -0
  92. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs +3 -0
  93. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +1 -0
  94. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +13 -0
  95. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +1 -0
  96. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +13 -0
  97. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +1 -0
  98. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +2 -0
  99. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +1 -0
  100. package/dist/components/BoxHorizontal/index.cjs +6 -0
  101. package/dist/components/BoxHorizontal/index.cjs.map +1 -0
  102. package/dist/components/BoxHorizontal/index.d.cts +3 -0
  103. package/dist/components/BoxHorizontal/index.d.cts.map +1 -0
  104. package/dist/components/BoxHorizontal/index.d.mts +3 -0
  105. package/dist/components/BoxHorizontal/index.d.mts.map +1 -0
  106. package/dist/components/BoxHorizontal/index.mjs +2 -0
  107. package/dist/components/BoxHorizontal/index.mjs.map +1 -0
  108. package/dist/components/BoxVertical/BoxVertical.cjs +18 -0
  109. package/dist/components/BoxVertical/BoxVertical.cjs.map +1 -0
  110. package/dist/components/BoxVertical/BoxVertical.d.cts +7 -0
  111. package/dist/components/BoxVertical/BoxVertical.d.cts.map +1 -0
  112. package/dist/components/BoxVertical/BoxVertical.d.mts +7 -0
  113. package/dist/components/BoxVertical/BoxVertical.d.mts.map +1 -0
  114. package/dist/components/BoxVertical/BoxVertical.mjs +18 -0
  115. package/dist/components/BoxVertical/BoxVertical.mjs.map +1 -0
  116. package/dist/components/BoxVertical/BoxVertical.types.cjs +3 -0
  117. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +1 -0
  118. package/dist/components/BoxVertical/BoxVertical.types.d.cts +13 -0
  119. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +1 -0
  120. package/dist/components/BoxVertical/BoxVertical.types.d.mts +13 -0
  121. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +1 -0
  122. package/dist/components/BoxVertical/BoxVertical.types.mjs +2 -0
  123. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +1 -0
  124. package/dist/components/BoxVertical/index.cjs +6 -0
  125. package/dist/components/BoxVertical/index.cjs.map +1 -0
  126. package/dist/components/BoxVertical/index.d.cts +3 -0
  127. package/dist/components/BoxVertical/index.d.cts.map +1 -0
  128. package/dist/components/BoxVertical/index.d.mts +3 -0
  129. package/dist/components/BoxVertical/index.d.mts.map +1 -0
  130. package/dist/components/BoxVertical/index.mjs +2 -0
  131. package/dist/components/BoxVertical/index.mjs.map +1 -0
  132. package/dist/components/HeaderRoot/HeaderRoot.cjs +61 -0
  133. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -0
  134. package/dist/components/HeaderRoot/HeaderRoot.d.cts +7 -0
  135. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -0
  136. package/dist/components/HeaderRoot/HeaderRoot.d.mts +7 -0
  137. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -0
  138. package/dist/components/HeaderRoot/HeaderRoot.mjs +61 -0
  139. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -0
  140. package/dist/components/HeaderRoot/HeaderRoot.types.cjs +3 -0
  141. package/dist/components/HeaderRoot/HeaderRoot.types.cjs.map +1 -0
  142. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +60 -0
  143. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -0
  144. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +60 -0
  145. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -0
  146. package/dist/components/HeaderRoot/HeaderRoot.types.mjs +2 -0
  147. package/dist/components/HeaderRoot/HeaderRoot.types.mjs.map +1 -0
  148. package/dist/components/HeaderRoot/index.cjs +6 -0
  149. package/dist/components/HeaderRoot/index.cjs.map +1 -0
  150. package/dist/components/HeaderRoot/index.d.cts +3 -0
  151. package/dist/components/HeaderRoot/index.d.cts.map +1 -0
  152. package/dist/components/HeaderRoot/index.d.mts +3 -0
  153. package/dist/components/HeaderRoot/index.d.mts.map +1 -0
  154. package/dist/components/HeaderRoot/index.mjs +2 -0
  155. package/dist/components/HeaderRoot/index.mjs.map +1 -0
  156. package/dist/components/HeaderStandard/HeaderStandard.cjs +101 -0
  157. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -0
  158. package/dist/components/HeaderStandard/HeaderStandard.d.cts +4 -0
  159. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -0
  160. package/dist/components/HeaderStandard/HeaderStandard.d.mts +4 -0
  161. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -0
  162. package/dist/components/HeaderStandard/HeaderStandard.mjs +81 -0
  163. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -0
  164. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +8 -0
  165. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -0
  166. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +55 -0
  167. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -0
  168. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +55 -0
  169. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -0
  170. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +10 -0
  171. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -0
  172. package/dist/components/HeaderStandard/index.cjs +6 -0
  173. package/dist/components/HeaderStandard/index.cjs.map +1 -0
  174. package/dist/components/HeaderStandard/index.d.cts +3 -0
  175. package/dist/components/HeaderStandard/index.d.cts.map +1 -0
  176. package/dist/components/HeaderStandard/index.d.mts +3 -0
  177. package/dist/components/HeaderStandard/index.d.mts.map +1 -0
  178. package/dist/components/HeaderStandard/index.mjs +2 -0
  179. package/dist/components/HeaderStandard/index.mjs.map +1 -0
  180. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +2 -1
  181. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +1 -1
  182. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +1 -2
  183. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +1 -1
  184. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +1 -2
  185. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +1 -1
  186. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +1 -2
  187. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +1 -1
  188. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +2 -1
  189. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +1 -1
  190. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +1 -2
  191. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +1 -1
  192. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +1 -2
  193. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +1 -1
  194. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +1 -2
  195. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +1 -1
  196. package/dist/components/KeyValueRow/KeyValueRow.cjs +17 -17
  197. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  198. package/dist/components/KeyValueRow/KeyValueRow.d.cts +1 -2
  199. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  200. package/dist/components/KeyValueRow/KeyValueRow.d.mts +1 -2
  201. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  202. package/dist/components/KeyValueRow/KeyValueRow.mjs +4 -5
  203. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  204. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +2 -1
  205. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +1 -1
  206. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +1 -2
  207. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +1 -1
  208. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +1 -2
  209. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +1 -1
  210. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +1 -2
  211. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +1 -1
  212. package/dist/components/KeyValueRow/index.cjs +2 -5
  213. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  214. package/dist/components/KeyValueRow/index.d.cts +1 -1
  215. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  216. package/dist/components/KeyValueRow/index.d.mts +1 -1
  217. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  218. package/dist/components/KeyValueRow/index.mjs +1 -1
  219. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  220. package/dist/components/Skeleton/Skeleton.cjs +2 -1
  221. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  222. package/dist/components/Skeleton/Skeleton.d.cts +1 -2
  223. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -1
  224. package/dist/components/Skeleton/Skeleton.d.mts +1 -2
  225. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -1
  226. package/dist/components/Skeleton/Skeleton.mjs +1 -2
  227. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  228. package/dist/components/Skeleton/index.cjs +1 -4
  229. package/dist/components/Skeleton/index.cjs.map +1 -1
  230. package/dist/components/Skeleton/index.d.cts +1 -1
  231. package/dist/components/Skeleton/index.d.cts.map +1 -1
  232. package/dist/components/Skeleton/index.d.mts +1 -1
  233. package/dist/components/Skeleton/index.d.mts.map +1 -1
  234. package/dist/components/Skeleton/index.mjs +1 -1
  235. package/dist/components/Skeleton/index.mjs.map +1 -1
  236. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +45 -0
  237. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -0
  238. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +14 -0
  239. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -0
  240. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +14 -0
  241. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -0
  242. package/dist/components/TextFieldSearch/TextFieldSearch.mjs +26 -0
  243. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -0
  244. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs +3 -0
  245. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -0
  246. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +17 -0
  247. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -0
  248. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +17 -0
  249. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -0
  250. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs +2 -0
  251. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -0
  252. package/dist/components/TextFieldSearch/index.cjs +6 -0
  253. package/dist/components/TextFieldSearch/index.cjs.map +1 -0
  254. package/dist/components/TextFieldSearch/index.d.cts +3 -0
  255. package/dist/components/TextFieldSearch/index.d.cts.map +1 -0
  256. package/dist/components/TextFieldSearch/index.d.mts +3 -0
  257. package/dist/components/TextFieldSearch/index.d.mts.map +1 -0
  258. package/dist/components/TextFieldSearch/index.mjs +2 -0
  259. package/dist/components/TextFieldSearch/index.mjs.map +1 -0
  260. package/dist/components/Toast/Toast.cjs +2 -2
  261. package/dist/components/Toast/Toast.cjs.map +1 -1
  262. package/dist/components/Toast/Toast.d.cts +1 -2
  263. package/dist/components/Toast/Toast.d.cts.map +1 -1
  264. package/dist/components/Toast/Toast.d.mts +1 -2
  265. package/dist/components/Toast/Toast.d.mts.map +1 -1
  266. package/dist/components/Toast/Toast.mjs +1 -2
  267. package/dist/components/Toast/Toast.mjs.map +1 -1
  268. package/dist/components/Toast/index.cjs +1 -4
  269. package/dist/components/Toast/index.cjs.map +1 -1
  270. package/dist/components/Toast/index.d.cts +1 -1
  271. package/dist/components/Toast/index.d.cts.map +1 -1
  272. package/dist/components/Toast/index.d.mts +1 -1
  273. package/dist/components/Toast/index.d.mts.map +1 -1
  274. package/dist/components/Toast/index.mjs +1 -1
  275. package/dist/components/Toast/index.mjs.map +1 -1
  276. package/dist/components/index.cjs +14 -6
  277. package/dist/components/index.cjs.map +1 -1
  278. package/dist/components/index.d.cts +11 -1
  279. package/dist/components/index.d.cts.map +1 -1
  280. package/dist/components/index.d.mts +11 -1
  281. package/dist/components/index.d.mts.map +1 -1
  282. package/dist/components/index.mjs +6 -1
  283. package/dist/components/index.mjs.map +1 -1
  284. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
  285. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +2 -5
  286. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts.map +1 -1
  287. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +2 -5
  288. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts.map +1 -1
  289. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
  290. package/dist/types/index.cjs +18 -41
  291. package/dist/types/index.cjs.map +1 -1
  292. package/dist/types/index.d.cts +8 -46
  293. package/dist/types/index.d.cts.map +1 -1
  294. package/dist/types/index.d.mts +8 -46
  295. package/dist/types/index.d.mts.map +1 -1
  296. package/dist/types/index.mjs +8 -48
  297. package/dist/types/index.mjs.map +1 -1
  298. package/package.json +5 -5
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderStandardProps } from "./HeaderStandard.types.cjs";
3
+ export declare const HeaderStandard: React.FC<HeaderStandardProps>;
4
+ //# sourceMappingURL=HeaderStandard.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,cAAc;AAavC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsGxD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderStandardProps } from "./HeaderStandard.types.mjs";
3
+ export declare const HeaderStandard: React.FC<HeaderStandardProps>;
4
+ //# sourceMappingURL=HeaderStandard.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,cAAc;AAavC,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsGxD,CAAC"}
@@ -0,0 +1,81 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import $React, { useMemo } from "react";
9
+ const React = $importDefault($React);
10
+ // External dependencies.
11
+ import { BoxAlignItems } from "../Box/index.mjs";
12
+ import { BoxVertical } from "../BoxVertical/index.mjs";
13
+ import { HeaderBase } from "../HeaderBase/index.mjs";
14
+ import { IconName } from "../Icon/index.mjs";
15
+ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
16
+ import { FontWeight, TextColor, TextVariant } from "../Text/index.mjs";
17
+ export const HeaderStandard = ({ title, titleProps, subtitle, subtitleProps, children, onBack, backButtonProps, onClose, closeButtonProps, endButtonIconProps, startButtonIconProps, twClassName = '', testID, ...headerBaseProps }) => {
18
+ const resolvedStartButtonIconProps = useMemo(() => {
19
+ if (startButtonIconProps) {
20
+ return startButtonIconProps;
21
+ }
22
+ if (onBack || backButtonProps) {
23
+ const startProps = {
24
+ iconName: IconName.ArrowLeft,
25
+ ...(backButtonProps ?? {}),
26
+ onPress: backButtonProps?.onPress ?? onBack,
27
+ };
28
+ return startProps;
29
+ }
30
+ return undefined;
31
+ }, [onBack, backButtonProps, startButtonIconProps]);
32
+ const resolvedEndButtonIconProps = useMemo(() => {
33
+ const props = [];
34
+ if (onClose || closeButtonProps) {
35
+ const closeProps = {
36
+ iconName: IconName.Close,
37
+ ...(closeButtonProps || {}),
38
+ onPress: closeButtonProps?.onPress ?? onClose,
39
+ };
40
+ props.push(closeProps);
41
+ }
42
+ if (endButtonIconProps) {
43
+ props.push(...endButtonIconProps);
44
+ }
45
+ return props.length > 0 ? props : undefined;
46
+ }, [endButtonIconProps, onClose, closeButtonProps]);
47
+ const renderContent = () => {
48
+ if (children) {
49
+ return children;
50
+ }
51
+ if (title) {
52
+ let subtitleTextProps;
53
+ if (subtitle && typeof subtitle === 'string') {
54
+ const { twClassName: subtitleTwClassName, ...subtitleTextRest } = subtitleProps ?? {};
55
+ subtitleTextProps = {
56
+ variant: TextVariant.BodySm,
57
+ color: TextColor.TextAlternative,
58
+ ...subtitleTextRest,
59
+ twClassName: ['-mt-0.5', subtitleTwClassName]
60
+ .filter(Boolean)
61
+ .join(' '),
62
+ };
63
+ }
64
+ return (<BoxVertical alignItems={BoxAlignItems.Center} textProps={{
65
+ variant: TextVariant.BodyMd,
66
+ fontWeight: FontWeight.Bold,
67
+ ...titleProps,
68
+ }} bottomAccessory={subtitle ? (<TextOrChildren textProps={subtitleTextProps}>
69
+ {subtitle}
70
+ </TextOrChildren>) : undefined}>
71
+ {title}
72
+ </BoxVertical>);
73
+ }
74
+ return null;
75
+ };
76
+ return (<HeaderBase testID={testID} startButtonIconProps={resolvedStartButtonIconProps} endButtonIconProps={resolvedEndButtonIconProps} {...headerBaseProps} twClassName={`px-2 ${twClassName}`}>
77
+ {renderContent()}
78
+ </HeaderBase>);
79
+ };
80
+ HeaderStandard.displayName = 'HeaderStandard';
81
+ //# sourceMappingURL=HeaderStandard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,QAAO,EAAE,OAAO,EAAE,cAAc;;AAEvC,yBAAyB;AACzB,OAAO,EAAE,aAAa,EAAE,yBAAe;AACvC,OAAO,EAAE,WAAW,EAAE,iCAAuB;AAE7C,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,QAAQ,EAAE,0BAAgB;AACnC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAEnE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,0BAAgB;AAK7D,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,KAAK,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,MAAM,EACN,eAAe,EACf,OAAO,EACP,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,GAAG,eAAe,EACnB,EAAE,EAAE;IACH,MAAM,4BAA4B,GAAG,OAAO,CAAC,GAAG,EAAE;QAChD,IAAI,oBAAoB,EAAE;YACxB,OAAO,oBAAoB,CAAC;SAC7B;QACD,IAAI,MAAM,IAAI,eAAe,EAAE;YAC7B,MAAM,UAAU,GAAoB;gBAClC,QAAQ,EAAE,QAAQ,CAAC,SAAS;gBAC5B,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;gBAC1B,OAAO,EAAE,eAAe,EAAE,OAAO,IAAI,MAAM;aAC5C,CAAC;YACF,OAAO,UAAU,CAAC;SACnB;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAEpD,MAAM,0BAA0B,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9C,MAAM,KAAK,GAAsB,EAAE,CAAC;QAEpC,IAAI,OAAO,IAAI,gBAAgB,EAAE;YAC/B,MAAM,UAAU,GAAoB;gBAClC,QAAQ,EAAE,QAAQ,CAAC,KAAK;gBACxB,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;gBAC3B,OAAO,EAAE,gBAAgB,EAAE,OAAO,IAAI,OAAO;aAC9C,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACxB;QAED,IAAI,kBAAkB,EAAE;YACtB,KAAK,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;SACnC;QACD,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9C,CAAC,EAAE,CAAC,kBAAkB,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAEpD,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,QAAQ,EAAE;YACZ,OAAO,QAAQ,CAAC;SACjB;QACD,IAAI,KAAK,EAAE;YACT,IAAI,iBAAmE,CAAC;YACxE,IAAI,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;gBAC5C,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,EAAE,GAC7D,aAAa,IAAI,EAAE,CAAC;gBACtB,iBAAiB,GAAG;oBAClB,OAAO,EAAE,WAAW,CAAC,MAAM;oBAC3B,KAAK,EAAE,SAAS,CAAC,eAAe;oBAChC,GAAG,gBAAgB;oBACnB,WAAW,EAAE,CAAC,SAAS,EAAE,mBAAmB,CAAC;yBAC1C,MAAM,CAAC,OAAO,CAAC;yBACf,IAAI,CAAC,GAAG,CAAC;iBACb,CAAC;aACH;YAED,OAAO,CACL,CAAC,WAAW,CACV,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,SAAS,CAAC,CAAC;oBACT,OAAO,EAAE,WAAW,CAAC,MAAM;oBAC3B,UAAU,EAAE,UAAU,CAAC,IAAI;oBAC3B,GAAG,UAAU;iBACd,CAAC,CACF,eAAe,CAAC,CACd,QAAQ,CAAC,CAAC,CAAC,CACT,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAC3C;gBAAA,CAAC,QAAQ,CACX;cAAA,EAAE,cAAc,CAAC,CAClB,CAAC,CAAC,CAAC,SAAS,CACd,CAED;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,WAAW,CAAC,CACf,CAAC;SACH;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CACT,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,oBAAoB,CAAC,CAAC,4BAA4B,CAAC,CACnD,kBAAkB,CAAC,CAAC,0BAA0B,CAAC,CAC/C,IAAI,eAAe,CAAC,CACpB,WAAW,CAAC,CAAC,QAAQ,WAAW,EAAE,CAAC,CAEnC;MAAA,CAAC,aAAa,EAAE,CAClB;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["// Third party dependencies.\nimport React, { useMemo } from 'react';\n\n// External dependencies.\nimport { BoxAlignItems } from '../Box';\nimport { BoxVertical } from '../BoxVertical';\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport { HeaderBase } from '../HeaderBase';\nimport { IconName } from '../Icon';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\nimport type { TextProps } from '../Text';\nimport { FontWeight, TextColor, TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderStandardProps } from './HeaderStandard.types';\n\nexport const HeaderStandard: React.FC<HeaderStandardProps> = ({\n title,\n titleProps,\n subtitle,\n subtitleProps,\n children,\n onBack,\n backButtonProps,\n onClose,\n closeButtonProps,\n endButtonIconProps,\n startButtonIconProps,\n twClassName = '',\n testID,\n ...headerBaseProps\n}) => {\n const resolvedStartButtonIconProps = useMemo(() => {\n if (startButtonIconProps) {\n return startButtonIconProps;\n }\n if (onBack || backButtonProps) {\n const startProps: ButtonIconProps = {\n iconName: IconName.ArrowLeft,\n ...(backButtonProps ?? {}),\n onPress: backButtonProps?.onPress ?? onBack,\n };\n return startProps;\n }\n return undefined;\n }, [onBack, backButtonProps, startButtonIconProps]);\n\n const resolvedEndButtonIconProps = useMemo(() => {\n const props: ButtonIconProps[] = [];\n\n if (onClose || closeButtonProps) {\n const closeProps: ButtonIconProps = {\n iconName: IconName.Close,\n ...(closeButtonProps || {}),\n onPress: closeButtonProps?.onPress ?? onClose,\n };\n props.push(closeProps);\n }\n\n if (endButtonIconProps) {\n props.push(...endButtonIconProps);\n }\n return props.length > 0 ? props : undefined;\n }, [endButtonIconProps, onClose, closeButtonProps]);\n\n const renderContent = () => {\n if (children) {\n return children;\n }\n if (title) {\n let subtitleTextProps: Omit<Partial<TextProps>, 'children'> | undefined;\n if (subtitle && typeof subtitle === 'string') {\n const { twClassName: subtitleTwClassName, ...subtitleTextRest } =\n subtitleProps ?? {};\n subtitleTextProps = {\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n ...subtitleTextRest,\n twClassName: ['-mt-0.5', subtitleTwClassName]\n .filter(Boolean)\n .join(' '),\n };\n }\n\n return (\n <BoxVertical\n alignItems={BoxAlignItems.Center}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Bold,\n ...titleProps,\n }}\n bottomAccessory={\n subtitle ? (\n <TextOrChildren textProps={subtitleTextProps}>\n {subtitle}\n </TextOrChildren>\n ) : undefined\n }\n >\n {title}\n </BoxVertical>\n );\n }\n return null;\n };\n\n return (\n <HeaderBase\n testID={testID}\n startButtonIconProps={resolvedStartButtonIconProps}\n endButtonIconProps={resolvedEndButtonIconProps}\n {...headerBaseProps}\n twClassName={`px-2 ${twClassName}`}\n >\n {renderContent()}\n </HeaderBase>\n );\n};\n\nHeaderStandard.displayName = 'HeaderStandard';\n"]}
@@ -0,0 +1,8 @@
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
+ // Third party dependencies.
7
+ const react_1 = __importDefault(require("react"));
8
+ //# sourceMappingURL=HeaderStandard.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.types.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":";;;;;AAAA,4BAA4B;AAC5B,kDAA0B","sourcesContent":["// Third party dependencies.\nimport React from 'react';\n\n// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { HeaderBaseProps } from '../HeaderBase';\nimport type { TextProps } from '../Text';\n\n/**\n * HeaderStandard component props.\n */\nexport type HeaderStandardProps = HeaderBaseProps & {\n /**\n * Title to display in the header. Can be a string or a React node.\n * Used as children if children prop is not provided.\n * When string: rendered with TextVariant.BodyMd and FontWeight.Bold by default; titleProps apply.\n * When node: rendered as-is; titleProps are not applied.\n */\n title?: string | React.ReactNode;\n /**\n * Additional props to pass to the title Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when title is a string.\n */\n titleProps?: Partial<TextProps>;\n /**\n * Subtitle to display below the title. Can be a string or a React node.\n * When string: rendered with TextVariant.BodySm and TextColor.TextAlternative by default; subtitleProps apply.\n * When node: rendered as-is; subtitleProps are not applied (add spacing on your root if needed, e.g. twClassName).\n */\n subtitle?: string | React.ReactNode;\n /**\n * Additional props to pass to the subtitle Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when subtitle is a string.\n */\n subtitleProps?: Partial<TextProps>;\n /**\n * Callback when the back button is pressed.\n * If provided, a back button will be rendered as startButtonIconProps.\n */\n onBack?: () => void;\n /**\n * Additional props to pass to the back ButtonIcon.\n * If provided, a back button will be rendered as startButtonIconProps with these props spread.\n */\n backButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n /**\n * Callback when the close button is pressed.\n * If provided, a close button will be added to endButtonIconProps.\n */\n onClose?: () => void;\n /**\n * Additional props to pass to the close ButtonIcon.\n * If provided, a close button will be added to endButtonIconProps with these props spread.\n */\n closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n};\n"]}
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import type { ButtonIconProps } from "../ButtonIcon/index.cjs";
3
+ import type { HeaderBaseProps } from "../HeaderBase/index.cjs";
4
+ import type { TextProps } from "../Text/index.cjs";
5
+ /**
6
+ * HeaderStandard component props.
7
+ */
8
+ export type HeaderStandardProps = HeaderBaseProps & {
9
+ /**
10
+ * Title to display in the header. Can be a string or a React node.
11
+ * Used as children if children prop is not provided.
12
+ * When string: rendered with TextVariant.BodyMd and FontWeight.Bold by default; titleProps apply.
13
+ * When node: rendered as-is; titleProps are not applied.
14
+ */
15
+ title?: string | React.ReactNode;
16
+ /**
17
+ * Additional props to pass to the title Text component.
18
+ * Props are spread to the Text component and can override default values.
19
+ * Only applied when title is a string.
20
+ */
21
+ titleProps?: Partial<TextProps>;
22
+ /**
23
+ * Subtitle to display below the title. Can be a string or a React node.
24
+ * When string: rendered with TextVariant.BodySm and TextColor.TextAlternative by default; subtitleProps apply.
25
+ * When node: rendered as-is; subtitleProps are not applied (add spacing on your root if needed, e.g. twClassName).
26
+ */
27
+ subtitle?: string | React.ReactNode;
28
+ /**
29
+ * Additional props to pass to the subtitle Text component.
30
+ * Props are spread to the Text component and can override default values.
31
+ * Only applied when subtitle is a string.
32
+ */
33
+ subtitleProps?: Partial<TextProps>;
34
+ /**
35
+ * Callback when the back button is pressed.
36
+ * If provided, a back button will be rendered as startButtonIconProps.
37
+ */
38
+ onBack?: () => void;
39
+ /**
40
+ * Additional props to pass to the back ButtonIcon.
41
+ * If provided, a back button will be rendered as startButtonIconProps with these props spread.
42
+ */
43
+ backButtonProps?: Omit<ButtonIconProps, 'iconName'>;
44
+ /**
45
+ * Callback when the close button is pressed.
46
+ * If provided, a close button will be added to endButtonIconProps.
47
+ */
48
+ onClose?: () => void;
49
+ /**
50
+ * Additional props to pass to the close ButtonIcon.
51
+ * If provided, a close button will be added to endButtonIconProps with these props spread.
52
+ */
53
+ closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;
54
+ };
55
+ //# sourceMappingURL=HeaderStandard.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;CACtD,CAAC"}
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import type { ButtonIconProps } from "../ButtonIcon/index.mjs";
3
+ import type { HeaderBaseProps } from "../HeaderBase/index.mjs";
4
+ import type { TextProps } from "../Text/index.mjs";
5
+ /**
6
+ * HeaderStandard component props.
7
+ */
8
+ export type HeaderStandardProps = HeaderBaseProps & {
9
+ /**
10
+ * Title to display in the header. Can be a string or a React node.
11
+ * Used as children if children prop is not provided.
12
+ * When string: rendered with TextVariant.BodyMd and FontWeight.Bold by default; titleProps apply.
13
+ * When node: rendered as-is; titleProps are not applied.
14
+ */
15
+ title?: string | React.ReactNode;
16
+ /**
17
+ * Additional props to pass to the title Text component.
18
+ * Props are spread to the Text component and can override default values.
19
+ * Only applied when title is a string.
20
+ */
21
+ titleProps?: Partial<TextProps>;
22
+ /**
23
+ * Subtitle to display below the title. Can be a string or a React node.
24
+ * When string: rendered with TextVariant.BodySm and TextColor.TextAlternative by default; subtitleProps apply.
25
+ * When node: rendered as-is; subtitleProps are not applied (add spacing on your root if needed, e.g. twClassName).
26
+ */
27
+ subtitle?: string | React.ReactNode;
28
+ /**
29
+ * Additional props to pass to the subtitle Text component.
30
+ * Props are spread to the Text component and can override default values.
31
+ * Only applied when subtitle is a string.
32
+ */
33
+ subtitleProps?: Partial<TextProps>;
34
+ /**
35
+ * Callback when the back button is pressed.
36
+ * If provided, a back button will be rendered as startButtonIconProps.
37
+ */
38
+ onBack?: () => void;
39
+ /**
40
+ * Additional props to pass to the back ButtonIcon.
41
+ * If provided, a back button will be rendered as startButtonIconProps with these props spread.
42
+ */
43
+ backButtonProps?: Omit<ButtonIconProps, 'iconName'>;
44
+ /**
45
+ * Callback when the close button is pressed.
46
+ * If provided, a close button will be added to endButtonIconProps.
47
+ */
48
+ onClose?: () => void;
49
+ /**
50
+ * Additional props to pass to the close ButtonIcon.
51
+ * If provided, a close button will be added to endButtonIconProps with these props spread.
52
+ */
53
+ closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;
54
+ };
55
+ //# sourceMappingURL=HeaderStandard.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAClD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;CACtD,CAAC"}
@@ -0,0 +1,10 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ //# sourceMappingURL=HeaderStandard.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/HeaderStandard.types.ts"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,MAAK,cAAc","sourcesContent":["// Third party dependencies.\nimport React from 'react';\n\n// External dependencies.\nimport type { ButtonIconProps } from '../ButtonIcon';\nimport type { HeaderBaseProps } from '../HeaderBase';\nimport type { TextProps } from '../Text';\n\n/**\n * HeaderStandard component props.\n */\nexport type HeaderStandardProps = HeaderBaseProps & {\n /**\n * Title to display in the header. Can be a string or a React node.\n * Used as children if children prop is not provided.\n * When string: rendered with TextVariant.BodyMd and FontWeight.Bold by default; titleProps apply.\n * When node: rendered as-is; titleProps are not applied.\n */\n title?: string | React.ReactNode;\n /**\n * Additional props to pass to the title Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when title is a string.\n */\n titleProps?: Partial<TextProps>;\n /**\n * Subtitle to display below the title. Can be a string or a React node.\n * When string: rendered with TextVariant.BodySm and TextColor.TextAlternative by default; subtitleProps apply.\n * When node: rendered as-is; subtitleProps are not applied (add spacing on your root if needed, e.g. twClassName).\n */\n subtitle?: string | React.ReactNode;\n /**\n * Additional props to pass to the subtitle Text component.\n * Props are spread to the Text component and can override default values.\n * Only applied when subtitle is a string.\n */\n subtitleProps?: Partial<TextProps>;\n /**\n * Callback when the back button is pressed.\n * If provided, a back button will be rendered as startButtonIconProps.\n */\n onBack?: () => void;\n /**\n * Additional props to pass to the back ButtonIcon.\n * If provided, a back button will be rendered as startButtonIconProps with these props spread.\n */\n backButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n /**\n * Callback when the close button is pressed.\n * If provided, a close button will be added to endButtonIconProps.\n */\n onClose?: () => void;\n /**\n * Additional props to pass to the close ButtonIcon.\n * If provided, a close button will be added to endButtonIconProps with these props spread.\n */\n closeButtonProps?: Omit<ButtonIconProps, 'iconName'>;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderStandard = void 0;
4
+ var HeaderStandard_1 = require("./HeaderStandard.cjs");
5
+ Object.defineProperty(exports, "HeaderStandard", { enumerable: true, get: function () { return HeaderStandard_1.HeaderStandard; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["export { HeaderStandard } from './HeaderStandard';\nexport type { HeaderStandardProps } from './HeaderStandard.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { HeaderStandard } from "./HeaderStandard.cjs";
2
+ export type { HeaderStandardProps } from "./HeaderStandard.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,3 @@
1
+ export { HeaderStandard } from "./HeaderStandard.mjs";
2
+ export type { HeaderStandardProps } from "./HeaderStandard.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export { HeaderStandard } from "./HeaderStandard.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/HeaderStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB","sourcesContent":["export { HeaderStandard } from './HeaderStandard';\nexport type { HeaderStandardProps } from './HeaderStandard.types';\n"]}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KeyValueRowLabel = void 0;
6
7
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const react_native_1 = require("react-native/index.js");
@@ -29,5 +30,5 @@ const KeyValueRowLabel = ({ label, tooltip, }) => {
29
30
  {hasTooltip && tooltip && (<ButtonIcon_1.ButtonIcon size={tooltip.size ?? ButtonIcon_1.ButtonIconSize.Md} iconName={tooltip.iconName ?? Icon_1.IconName.Question} accessibilityLabel={`${tooltip.title} tooltip`} onPress={() => tooltip?.onPress?.()}/>)}
30
31
  </react_native_1.View>);
31
32
  };
32
- exports.default = KeyValueRowLabel;
33
+ exports.KeyValueRowLabel = KeyValueRowLabel;
33
34
  //# sourceMappingURL=KeyValueLabel.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueLabel.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAEpC,2DAA8D;AAC9D,+CAAsC;AACtC,+CAA0D;AAE1D,gEAAoE;AAEpE;;;;;;;;GAQG;AACH,MAAM,gBAAgB,GAAoC,CAAC,EACzD,KAAK,EACL,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAC7C;MAAA,CAAC,IAAA,gDAA4B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrC,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,kBAAW,CAAC,MAAM,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,gBAAS,CAAC,WAAW,CAAC,CAE5C;UAAA,CAAC,KAAK,CAAC,IAAI,CACb;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CACD;MAAA,CAAC,UAAU,IAAI,OAAO,IAAI,CACxB,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,2BAAc,CAAC,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,eAAQ,CAAC,QAAQ,CAAC,CAChD,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,UAAU,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nconst KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n\nexport default KeyValueRowLabel;\n"]}
1
+ {"version":3,"file":"KeyValueLabel.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAEpC,2DAA8D;AAC9D,+CAAsC;AACtC,+CAA0D;AAE1D,gEAAoE;AAEpE;;;;;;;;GAQG;AACI,MAAM,gBAAgB,GAAoC,CAAC,EAChE,KAAK,EACL,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAC7C;MAAA,CAAC,IAAA,gDAA4B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrC,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,kBAAW,CAAC,MAAM,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,gBAAS,CAAC,WAAW,CAAC,CAE5C;UAAA,CAAC,KAAK,CAAC,IAAI,CACb;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CACD;MAAA,CAAC,UAAU,IAAI,OAAO,IAAI,CACxB,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,2BAAc,CAAC,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,eAAQ,CAAC,QAAQ,CAAC,CAChD,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,UAAU,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,gBAAgB,oBA8B3B","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nexport const KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n"]}
@@ -9,6 +9,5 @@ import type { KeyValueRowLabelProps } from "../KeyValueRow.types.cjs";
9
9
  *
10
10
  * @returns The rendered KeyValueRowLabel component.
11
11
  */
12
- declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
13
- export default KeyValueRowLabel;
12
+ export declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
14
13
  //# sourceMappingURL=KeyValueLabel.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueLabel.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8BrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"KeyValueLabel.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAC"}
@@ -9,6 +9,5 @@ import type { KeyValueRowLabelProps } from "../KeyValueRow.types.mjs";
9
9
  *
10
10
  * @returns The rendered KeyValueRowLabel component.
11
11
  */
12
- declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
13
- export default KeyValueRowLabel;
12
+ export declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
14
13
  //# sourceMappingURL=KeyValueLabel.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueLabel.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8BrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"KeyValueLabel.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAC"}
@@ -21,7 +21,7 @@ import { isPreDefinedKeyValueRowLabel } from "../KeyValueRow.utils.mjs";
21
21
  *
22
22
  * @returns The rendered KeyValueRowLabel component.
23
23
  */
24
- const KeyValueRowLabel = ({ label, tooltip, }) => {
24
+ export const KeyValueRowLabel = ({ label, tooltip, }) => {
25
25
  const tw = useTailwind();
26
26
  const hasTooltip = Boolean(tooltip?.title && tooltip?.content);
27
27
  return (<View style={tw.style('flex-row items-center')}>
@@ -31,5 +31,4 @@ const KeyValueRowLabel = ({ label, tooltip, }) => {
31
31
  {hasTooltip && tooltip && (<ButtonIcon size={tooltip.size ?? ButtonIconSize.Md} iconName={tooltip.iconName ?? IconName.Question} accessibilityLabel={`${tooltip.title} tooltip`} onPress={() => tooltip?.onPress?.()}/>)}
32
32
  </View>);
33
33
  };
34
- export default KeyValueRowLabel;
35
34
  //# sourceMappingURL=KeyValueLabel.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueLabel.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,mCAAyB;AAC9D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AACtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6BAAmB;AAE1D,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAEpE;;;;;;;;GAQG;AACH,MAAM,gBAAgB,GAAoC,CAAC,EACzD,KAAK,EACL,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAC7C;MAAA,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrC,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,CAAC,WAAW,CAAC,CAE5C;UAAA,CAAC,KAAK,CAAC,IAAI,CACb;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CACD;MAAA,CAAC,UAAU,IAAI,OAAO,IAAI,CACxB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,cAAc,CAAC,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAChD,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,UAAU,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nconst KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n\nexport default KeyValueRowLabel;\n"]}
1
+ {"version":3,"file":"KeyValueLabel.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,mCAAyB;AAC9D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AACtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6BAAmB;AAE1D,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAEpE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAChE,KAAK,EACL,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAC7C;MAAA,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrC,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,CAAC,WAAW,CAAC,CAE5C;UAAA,CAAC,KAAK,CAAC,IAAI,CACb;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CACD;MAAA,CAAC,UAAU,IAAI,OAAO,IAAI,CACxB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,cAAc,CAAC,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAChD,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,UAAU,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nexport const KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n"]}
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KeyValueRowRoot = void 0;
6
7
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const react_native_1 = require("react-native/index.js");
@@ -35,5 +36,5 @@ const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
35
36
  {children}
36
37
  </react_native_1.View>);
37
38
  };
38
- exports.default = KeyValueRowRoot;
39
+ exports.KeyValueRowRoot = KeyValueRowRoot;
39
40
  //# sourceMappingURL=KeyValueRoot.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nconst KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n\nexport default KeyValueRowRoot;\n"]}
1
+ {"version":3,"file":"KeyValueRoot.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,wDAAoC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,eAAe,mBAsB1B","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nexport const KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n"]}
@@ -20,6 +20,5 @@ import type { KeyValueRowRootProps } from "../KeyValueRow.types.cjs";
20
20
  *
21
21
  * @returns The rendered Root component.
22
22
  */
23
- declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- export default KeyValueRowRoot;
23
+ export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
25
24
  //# sourceMappingURL=KeyValueRoot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueRoot.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
@@ -20,6 +20,5 @@ import type { KeyValueRowRootProps } from "../KeyValueRow.types.mjs";
20
20
  *
21
21
  * @returns The rendered Root component.
22
22
  */
23
- declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- export default KeyValueRowRoot;
23
+ export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
25
24
  //# sourceMappingURL=KeyValueRoot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueRoot.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
@@ -28,7 +28,7 @@ import { View } from "react-native/index.js";
28
28
  *
29
29
  * @returns The rendered Root component.
30
30
  */
31
- const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
31
+ export const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
32
32
  const tw = useTailwind();
33
33
  return (<View style={[
34
34
  tw.style('flex-row justify-between items-center overflow-hidden', twClassName),
@@ -37,5 +37,4 @@ const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
37
37
  {children}
38
38
  </View>);
39
39
  };
40
- export default KeyValueRowRoot;
41
40
  //# sourceMappingURL=KeyValueRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nconst KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n\nexport default KeyValueRowRoot;\n"]}
1
+ {"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nexport const KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n"]}
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.KeyValueRowStubs = void 0;
6
+ exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
7
7
  const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const react_native_1 = require("react-native/index.js");
10
10
  const Icon_1 = require("../Icon/index.cjs");
11
- const KeyValueLabel_1 = __importDefault(require("./KeyValueLabel/KeyValueLabel.cjs"));
12
- const KeyValueRoot_1 = __importDefault(require("./KeyValueRoot/KeyValueRoot.cjs"));
11
+ const KeyValueLabel_1 = require("./KeyValueLabel/KeyValueLabel.cjs");
12
+ const KeyValueRoot_1 = require("./KeyValueRoot/KeyValueRoot.cjs");
13
13
  const KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
14
- const KeyValueSection_1 = __importDefault(require("./KeyValueSection/KeyValueSection.cjs"));
14
+ const KeyValueSection_1 = require("./KeyValueSection/KeyValueSection.cjs");
15
15
  const renderIcon = (icon) => {
16
16
  const { side: _side, ...iconProps } = icon;
17
17
  return <Icon_1.Icon {...iconProps}/>;
@@ -32,45 +32,45 @@ const KeyValueRow = ({ field, value, twClassName, style, ...props }) => {
32
32
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
33
33
  const fieldIcon = field?.icon;
34
34
  const valueIcon = value?.icon;
35
- return (<KeyValueRoot_1.default twClassName={twClassName} style={style} {...props}>
36
- <KeyValueSection_1.default>
35
+ return (<KeyValueRoot_1.KeyValueRowRoot twClassName={twClassName} style={style} {...props}>
36
+ <KeyValueSection_1.KeyValueSection>
37
37
  <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
38
38
  {fieldIcon?.name &&
39
39
  (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
40
40
  fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
41
41
  !fieldIcon.side) &&
42
42
  renderIcon(fieldIcon)}
43
- <KeyValueLabel_1.default label={field.label} tooltip={field.tooltip}/>
43
+ <KeyValueLabel_1.KeyValueRowLabel label={field.label} tooltip={field.tooltip}/>
44
44
  {fieldIcon?.name &&
45
45
  (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
46
46
  fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
47
47
  renderIcon(fieldIcon)}
48
48
  </react_native_1.View>
49
- </KeyValueSection_1.default>
50
- <KeyValueSection_1.default align={KeyValueRow_types_1.KeyValueRowSectionAlignments.Right}>
49
+ </KeyValueSection_1.KeyValueSection>
50
+ <KeyValueSection_1.KeyValueSection align={KeyValueRow_types_1.KeyValueRowSectionAlignments.Right}>
51
51
  <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
52
52
  {valueIcon?.name &&
53
53
  (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
54
54
  valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
55
55
  !valueIcon.side) &&
56
56
  renderIcon(valueIcon)}
57
- <KeyValueLabel_1.default label={value.label} tooltip={value.tooltip}/>
57
+ <KeyValueLabel_1.KeyValueRowLabel label={value.label} tooltip={value.tooltip}/>
58
58
  {valueIcon?.name &&
59
59
  (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
60
60
  valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
61
61
  renderIcon(valueIcon)}
62
62
  </react_native_1.View>
63
- </KeyValueSection_1.default>
64
- </KeyValueRoot_1.default>);
63
+ </KeyValueSection_1.KeyValueSection>
64
+ </KeyValueRoot_1.KeyValueRowRoot>);
65
65
  };
66
- KeyValueRow.displayName = 'KeyValueRow';
66
+ exports.KeyValueRow = KeyValueRow;
67
+ exports.KeyValueRow.displayName = 'KeyValueRow';
67
68
  /**
68
69
  * Exported sub-components to provide a base for new KeyValueRow variants.
69
70
  */
70
71
  exports.KeyValueRowStubs = {
71
- Root: KeyValueRoot_1.default,
72
- Section: KeyValueSection_1.default,
73
- Label: KeyValueLabel_1.default,
72
+ Root: KeyValueRoot_1.KeyValueRowRoot,
73
+ Section: KeyValueSection_1.KeyValueSection,
74
+ Label: KeyValueLabel_1.KeyValueRowLabel,
74
75
  };
75
- exports.default = KeyValueRow;
76
76
  //# sourceMappingURL=KeyValueRow.cjs.map