@metamask-previews/design-system-react-native 0.15.0-preview.a73a010 → 0.18.0-preview.9d477a9

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 (407) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +1 -2
  3. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  4. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  5. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  6. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +1 -2
  7. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.types.cjs.map +1 -1
  9. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts +5 -7
  10. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts.map +1 -1
  11. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts +5 -7
  12. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts.map +1 -1
  13. package/dist/components/AvatarFavicon/AvatarFavicon.types.mjs.map +1 -1
  14. package/dist/components/AvatarFavicon/index.cjs +2 -2
  15. package/dist/components/AvatarFavicon/index.cjs.map +1 -1
  16. package/dist/components/AvatarFavicon/index.d.cts +1 -1
  17. package/dist/components/AvatarFavicon/index.d.cts.map +1 -1
  18. package/dist/components/AvatarFavicon/index.d.mts +1 -1
  19. package/dist/components/AvatarFavicon/index.d.mts.map +1 -1
  20. package/dist/components/AvatarFavicon/index.mjs +1 -1
  21. package/dist/components/AvatarFavicon/index.mjs.map +1 -1
  22. package/dist/components/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -1
  23. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts +6 -15
  24. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -1
  25. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts +6 -15
  26. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -1
  27. package/dist/components/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -1
  28. package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
  29. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  30. package/dist/components/BannerAlert/BannerAlert.constants.cjs +16 -16
  31. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  32. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  33. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  34. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  35. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  36. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  37. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  38. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  39. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  40. package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
  41. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  42. package/dist/components/BannerBase/BannerBase.cjs +5 -5
  43. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  44. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  45. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  46. package/dist/components/Box/Box.constants.cjs.map +1 -1
  47. package/dist/components/Box/Box.constants.d.cts +1 -1
  48. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  49. package/dist/components/Box/Box.constants.d.mts +1 -1
  50. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  51. package/dist/components/Box/Box.constants.mjs.map +1 -1
  52. package/dist/components/Box/Box.types.cjs.map +1 -1
  53. package/dist/components/Box/Box.types.d.cts +107 -3
  54. package/dist/components/Box/Box.types.d.cts.map +1 -1
  55. package/dist/components/Box/Box.types.d.mts +107 -3
  56. package/dist/components/Box/Box.types.d.mts.map +1 -1
  57. package/dist/components/Box/Box.types.mjs.map +1 -1
  58. package/dist/components/Box/index.cjs +7 -7
  59. package/dist/components/Box/index.cjs.map +1 -1
  60. package/dist/components/Box/index.d.cts +2 -1
  61. package/dist/components/Box/index.d.cts.map +1 -1
  62. package/dist/components/Box/index.d.mts +2 -1
  63. package/dist/components/Box/index.d.mts.map +1 -1
  64. package/dist/components/Box/index.mjs +1 -1
  65. package/dist/components/Box/index.mjs.map +1 -1
  66. package/dist/components/{BoxVertical/BoxVertical.cjs → BoxColumn/BoxColumn.cjs} +6 -6
  67. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -0
  68. package/dist/components/BoxColumn/BoxColumn.d.cts +7 -0
  69. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -0
  70. package/dist/components/BoxColumn/BoxColumn.d.mts +7 -0
  71. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -0
  72. package/dist/components/{BoxVertical/BoxVertical.mjs → BoxColumn/BoxColumn.mjs} +4 -4
  73. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -0
  74. package/dist/components/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
  75. package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -0
  76. package/dist/components/BoxColumn/BoxColumn.types.d.cts +13 -0
  77. package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -0
  78. package/dist/components/BoxColumn/BoxColumn.types.d.mts +13 -0
  79. package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -0
  80. package/dist/components/BoxColumn/BoxColumn.types.mjs +2 -0
  81. package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -0
  82. package/dist/components/BoxColumn/index.cjs +6 -0
  83. package/dist/components/BoxColumn/index.cjs.map +1 -0
  84. package/dist/components/BoxColumn/index.d.cts +3 -0
  85. package/dist/components/BoxColumn/index.d.cts.map +1 -0
  86. package/dist/components/BoxColumn/index.d.mts +3 -0
  87. package/dist/components/BoxColumn/index.d.mts.map +1 -0
  88. package/dist/components/BoxColumn/index.mjs +2 -0
  89. package/dist/components/BoxColumn/index.mjs.map +1 -0
  90. package/dist/components/{BoxHorizontal/BoxHorizontal.cjs → BoxRow/BoxRow.cjs} +6 -6
  91. package/dist/components/BoxRow/BoxRow.cjs.map +1 -0
  92. package/dist/components/BoxRow/BoxRow.d.cts +7 -0
  93. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -0
  94. package/dist/components/BoxRow/BoxRow.d.mts +7 -0
  95. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -0
  96. package/dist/components/{BoxHorizontal/BoxHorizontal.mjs → BoxRow/BoxRow.mjs} +4 -4
  97. package/dist/components/BoxRow/BoxRow.mjs.map +1 -0
  98. package/dist/components/{BoxHorizontal/BoxHorizontal.types.cjs → BoxRow/BoxRow.types.cjs} +1 -1
  99. package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -0
  100. package/dist/components/BoxRow/BoxRow.types.d.cts +13 -0
  101. package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -0
  102. package/dist/components/BoxRow/BoxRow.types.d.mts +13 -0
  103. package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -0
  104. package/dist/components/BoxRow/BoxRow.types.mjs +2 -0
  105. package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -0
  106. package/dist/components/BoxRow/index.cjs +6 -0
  107. package/dist/components/BoxRow/index.cjs.map +1 -0
  108. package/dist/components/BoxRow/index.d.cts +3 -0
  109. package/dist/components/BoxRow/index.d.cts.map +1 -0
  110. package/dist/components/BoxRow/index.d.mts +3 -0
  111. package/dist/components/BoxRow/index.d.mts.map +1 -0
  112. package/dist/components/BoxRow/index.mjs +2 -0
  113. package/dist/components/BoxRow/index.mjs.map +1 -0
  114. package/dist/components/Checkbox/Checkbox.d.cts +1 -6
  115. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  116. package/dist/components/Checkbox/Checkbox.d.mts +1 -6
  117. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  118. package/dist/components/Checkbox/Checkbox.types.cjs.map +1 -1
  119. package/dist/components/Checkbox/Checkbox.types.d.cts +2 -28
  120. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  121. package/dist/components/Checkbox/Checkbox.types.d.mts +2 -28
  122. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  123. package/dist/components/Checkbox/Checkbox.types.mjs.map +1 -1
  124. package/dist/components/HeaderRoot/HeaderRoot.cjs +3 -3
  125. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  126. package/dist/components/HeaderRoot/HeaderRoot.mjs +3 -3
  127. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  128. package/dist/components/HeaderSearch/HeaderSearch.cjs +80 -0
  129. package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -0
  130. package/dist/components/HeaderSearch/HeaderSearch.d.cts +37 -0
  131. package/dist/components/HeaderSearch/HeaderSearch.d.cts.map +1 -0
  132. package/dist/components/HeaderSearch/HeaderSearch.d.mts +37 -0
  133. package/dist/components/HeaderSearch/HeaderSearch.d.mts.map +1 -0
  134. package/dist/components/HeaderSearch/HeaderSearch.mjs +80 -0
  135. package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -0
  136. package/dist/components/HeaderSearch/HeaderSearch.types.cjs +3 -0
  137. package/dist/components/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
  138. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts +33 -0
  139. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
  140. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts +33 -0
  141. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
  142. package/dist/components/HeaderSearch/HeaderSearch.types.mjs +2 -0
  143. package/dist/components/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
  144. package/dist/components/HeaderSearch/index.cjs +8 -0
  145. package/dist/components/HeaderSearch/index.cjs.map +1 -0
  146. package/dist/components/HeaderSearch/index.d.cts +4 -0
  147. package/dist/components/HeaderSearch/index.d.cts.map +1 -0
  148. package/dist/components/HeaderSearch/index.d.mts +4 -0
  149. package/dist/components/HeaderSearch/index.d.mts.map +1 -0
  150. package/dist/components/HeaderSearch/index.mjs +3 -0
  151. package/dist/components/HeaderSearch/index.mjs.map +1 -0
  152. package/dist/components/HeaderStandard/HeaderStandard.cjs +3 -3
  153. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  154. package/dist/components/HeaderStandard/HeaderStandard.mjs +3 -3
  155. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  156. package/dist/components/Icon/Icon.assets.cjs +284 -281
  157. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  158. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  159. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  160. package/dist/components/Icon/Icon.assets.mjs +284 -281
  161. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  162. package/dist/components/Icon/Icon.cjs +2 -2
  163. package/dist/components/Icon/Icon.cjs.map +1 -1
  164. package/dist/components/Icon/Icon.constants.cjs +6 -6
  165. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  166. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  167. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  168. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  169. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  170. package/dist/components/Icon/Icon.constants.mjs +1 -1
  171. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  172. package/dist/components/Icon/Icon.d.cts.map +1 -1
  173. package/dist/components/Icon/Icon.d.mts.map +1 -1
  174. package/dist/components/Icon/Icon.mjs +1 -1
  175. package/dist/components/Icon/Icon.mjs.map +1 -1
  176. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  177. package/dist/components/Icon/Icon.types.d.cts +2 -19
  178. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  179. package/dist/components/Icon/Icon.types.d.mts +2 -19
  180. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  181. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  182. package/dist/components/Icon/assets/after-hours.svg +1 -1
  183. package/dist/components/Icon/assets/pop-up.svg +1 -0
  184. package/dist/components/Icon/assets/side-panel.svg +1 -0
  185. package/dist/components/Icon/index.cjs +4 -4
  186. package/dist/components/Icon/index.cjs.map +1 -1
  187. package/dist/components/Icon/index.d.cts +1 -1
  188. package/dist/components/Icon/index.d.cts.map +1 -1
  189. package/dist/components/Icon/index.d.mts +1 -1
  190. package/dist/components/Icon/index.d.mts.map +1 -1
  191. package/dist/components/Icon/index.mjs +1 -1
  192. package/dist/components/Icon/index.mjs.map +1 -1
  193. package/dist/components/IconAlert/IconAlert.cjs +16 -0
  194. package/dist/components/IconAlert/IconAlert.cjs.map +1 -0
  195. package/dist/components/IconAlert/IconAlert.constants.cjs +23 -0
  196. package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -0
  197. package/dist/components/IconAlert/IconAlert.constants.d.cts +6 -0
  198. package/dist/components/IconAlert/IconAlert.constants.d.cts.map +1 -0
  199. package/dist/components/IconAlert/IconAlert.constants.d.mts +6 -0
  200. package/dist/components/IconAlert/IconAlert.constants.d.mts.map +1 -0
  201. package/dist/components/IconAlert/IconAlert.constants.mjs +20 -0
  202. package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -0
  203. package/dist/components/IconAlert/IconAlert.d.cts +7 -0
  204. package/dist/components/IconAlert/IconAlert.d.cts.map +1 -0
  205. package/dist/components/IconAlert/IconAlert.d.mts +7 -0
  206. package/dist/components/IconAlert/IconAlert.d.mts.map +1 -0
  207. package/dist/components/IconAlert/IconAlert.mjs +16 -0
  208. package/dist/components/IconAlert/IconAlert.mjs.map +1 -0
  209. package/dist/components/IconAlert/IconAlert.types.cjs +3 -0
  210. package/dist/components/IconAlert/IconAlert.types.cjs.map +1 -0
  211. package/dist/components/IconAlert/IconAlert.types.d.cts +4 -0
  212. package/dist/components/IconAlert/IconAlert.types.d.cts.map +1 -0
  213. package/dist/components/IconAlert/IconAlert.types.d.mts +4 -0
  214. package/dist/components/IconAlert/IconAlert.types.d.mts.map +1 -0
  215. package/dist/components/IconAlert/IconAlert.types.mjs +2 -0
  216. package/dist/components/IconAlert/IconAlert.types.mjs.map +1 -0
  217. package/dist/components/IconAlert/index.cjs +8 -0
  218. package/dist/components/IconAlert/index.cjs.map +1 -0
  219. package/dist/components/IconAlert/index.d.cts +4 -0
  220. package/dist/components/IconAlert/index.d.cts.map +1 -0
  221. package/dist/components/IconAlert/index.d.mts +4 -0
  222. package/dist/components/IconAlert/index.d.mts.map +1 -0
  223. package/dist/components/IconAlert/index.mjs +3 -0
  224. package/dist/components/IconAlert/index.mjs.map +1 -0
  225. package/dist/components/Input/Input.cjs +4 -4
  226. package/dist/components/Input/Input.cjs.map +1 -1
  227. package/dist/components/Input/Input.constants.cjs +15 -15
  228. package/dist/components/Input/Input.constants.cjs.map +1 -1
  229. package/dist/components/Input/Input.constants.d.cts +1 -1
  230. package/dist/components/Input/Input.constants.d.cts.map +1 -1
  231. package/dist/components/Input/Input.constants.d.mts +1 -1
  232. package/dist/components/Input/Input.constants.d.mts.map +1 -1
  233. package/dist/components/Input/Input.constants.mjs +1 -1
  234. package/dist/components/Input/Input.constants.mjs.map +1 -1
  235. package/dist/components/Input/Input.d.cts +1 -1
  236. package/dist/components/Input/Input.d.cts.map +1 -1
  237. package/dist/components/Input/Input.d.mts +1 -1
  238. package/dist/components/Input/Input.d.mts.map +1 -1
  239. package/dist/components/Input/Input.mjs +3 -3
  240. package/dist/components/Input/Input.mjs.map +1 -1
  241. package/dist/components/Input/Input.types.cjs.map +1 -1
  242. package/dist/components/Input/Input.types.d.cts +1 -1
  243. package/dist/components/Input/Input.types.d.cts.map +1 -1
  244. package/dist/components/Input/Input.types.d.mts +1 -1
  245. package/dist/components/Input/Input.types.d.mts.map +1 -1
  246. package/dist/components/Input/Input.types.mjs.map +1 -1
  247. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +17 -16
  248. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  249. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  250. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  251. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +10 -9
  252. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  253. package/dist/components/KeyValueRow/KeyValueRow.cjs +43 -64
  254. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  255. package/dist/components/KeyValueRow/KeyValueRow.d.cts +3 -20
  256. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  257. package/dist/components/KeyValueRow/KeyValueRow.d.mts +3 -20
  258. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  259. package/dist/components/KeyValueRow/KeyValueRow.mjs +42 -63
  260. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  261. package/dist/components/KeyValueRow/KeyValueRow.types.cjs +0 -26
  262. package/dist/components/KeyValueRow/KeyValueRow.types.cjs.map +1 -1
  263. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +14 -174
  264. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  265. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +14 -174
  266. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  267. package/dist/components/KeyValueRow/KeyValueRow.types.mjs +1 -25
  268. package/dist/components/KeyValueRow/KeyValueRow.types.mjs.map +1 -1
  269. package/dist/components/KeyValueRow/index.cjs +3 -7
  270. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  271. package/dist/components/KeyValueRow/index.d.cts +3 -2
  272. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  273. package/dist/components/KeyValueRow/index.d.mts +3 -2
  274. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  275. package/dist/components/KeyValueRow/index.mjs +2 -2
  276. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  277. package/dist/components/Text/Text.cjs +5 -5
  278. package/dist/components/Text/Text.cjs.map +1 -1
  279. package/dist/components/Text/Text.constants.cjs +20 -25
  280. package/dist/components/Text/Text.constants.cjs.map +1 -1
  281. package/dist/components/Text/Text.constants.d.cts +2 -2
  282. package/dist/components/Text/Text.constants.d.cts.map +1 -1
  283. package/dist/components/Text/Text.constants.d.mts +2 -2
  284. package/dist/components/Text/Text.constants.d.mts.map +1 -1
  285. package/dist/components/Text/Text.constants.mjs +16 -21
  286. package/dist/components/Text/Text.constants.mjs.map +1 -1
  287. package/dist/components/Text/Text.d.cts.map +1 -1
  288. package/dist/components/Text/Text.d.mts.map +1 -1
  289. package/dist/components/Text/Text.mjs +3 -3
  290. package/dist/components/Text/Text.mjs.map +1 -1
  291. package/dist/components/Text/Text.types.cjs.map +1 -1
  292. package/dist/components/Text/Text.types.d.cts +3 -35
  293. package/dist/components/Text/Text.types.d.cts.map +1 -1
  294. package/dist/components/Text/Text.types.d.mts +3 -35
  295. package/dist/components/Text/Text.types.d.mts.map +1 -1
  296. package/dist/components/Text/Text.types.mjs.map +1 -1
  297. package/dist/components/Text/index.cjs +7 -7
  298. package/dist/components/Text/index.cjs.map +1 -1
  299. package/dist/components/Text/index.d.cts +1 -1
  300. package/dist/components/Text/index.d.cts.map +1 -1
  301. package/dist/components/Text/index.d.mts +1 -1
  302. package/dist/components/Text/index.d.mts.map +1 -1
  303. package/dist/components/Text/index.mjs +1 -1
  304. package/dist/components/Text/index.mjs.map +1 -1
  305. package/dist/components/TextButton/TextButton.cjs +3 -3
  306. package/dist/components/TextButton/TextButton.cjs.map +1 -1
  307. package/dist/components/TextButton/TextButton.d.cts.map +1 -1
  308. package/dist/components/TextButton/TextButton.d.mts.map +1 -1
  309. package/dist/components/TextButton/TextButton.mjs +1 -1
  310. package/dist/components/TextButton/TextButton.mjs.map +1 -1
  311. package/dist/components/TextField/TextField.cjs +2 -2
  312. package/dist/components/TextField/TextField.cjs.map +1 -1
  313. package/dist/components/TextField/TextField.d.cts.map +1 -1
  314. package/dist/components/TextField/TextField.d.mts.map +1 -1
  315. package/dist/components/TextField/TextField.mjs +1 -1
  316. package/dist/components/TextField/TextField.mjs.map +1 -1
  317. package/dist/components/index.cjs +16 -7
  318. package/dist/components/index.cjs.map +1 -1
  319. package/dist/components/index.d.cts +10 -4
  320. package/dist/components/index.d.cts.map +1 -1
  321. package/dist/components/index.d.mts +10 -4
  322. package/dist/components/index.d.mts.map +1 -1
  323. package/dist/components/index.mjs +5 -2
  324. package/dist/components/index.mjs.map +1 -1
  325. package/dist/types/index.cjs +177 -467
  326. package/dist/types/index.cjs.map +1 -1
  327. package/dist/types/index.d.cts +174 -443
  328. package/dist/types/index.d.cts.map +1 -1
  329. package/dist/types/index.d.mts +174 -443
  330. package/dist/types/index.d.mts.map +1 -1
  331. package/dist/types/index.mjs +172 -461
  332. package/dist/types/index.mjs.map +1 -1
  333. package/package.json +6 -7
  334. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +0 -1
  335. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +0 -7
  336. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +0 -1
  337. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +0 -7
  338. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +0 -1
  339. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +0 -1
  340. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
  341. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +0 -13
  342. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
  343. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +0 -13
  344. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
  345. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
  346. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
  347. package/dist/components/BoxHorizontal/index.cjs +0 -6
  348. package/dist/components/BoxHorizontal/index.cjs.map +0 -1
  349. package/dist/components/BoxHorizontal/index.d.cts +0 -3
  350. package/dist/components/BoxHorizontal/index.d.cts.map +0 -1
  351. package/dist/components/BoxHorizontal/index.d.mts +0 -3
  352. package/dist/components/BoxHorizontal/index.d.mts.map +0 -1
  353. package/dist/components/BoxHorizontal/index.mjs +0 -2
  354. package/dist/components/BoxHorizontal/index.mjs.map +0 -1
  355. package/dist/components/BoxVertical/BoxVertical.cjs.map +0 -1
  356. package/dist/components/BoxVertical/BoxVertical.d.cts +0 -7
  357. package/dist/components/BoxVertical/BoxVertical.d.cts.map +0 -1
  358. package/dist/components/BoxVertical/BoxVertical.d.mts +0 -7
  359. package/dist/components/BoxVertical/BoxVertical.d.mts.map +0 -1
  360. package/dist/components/BoxVertical/BoxVertical.mjs.map +0 -1
  361. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +0 -1
  362. package/dist/components/BoxVertical/BoxVertical.types.d.cts +0 -13
  363. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +0 -1
  364. package/dist/components/BoxVertical/BoxVertical.types.d.mts +0 -13
  365. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +0 -1
  366. package/dist/components/BoxVertical/BoxVertical.types.mjs +0 -2
  367. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +0 -1
  368. package/dist/components/BoxVertical/index.cjs +0 -6
  369. package/dist/components/BoxVertical/index.cjs.map +0 -1
  370. package/dist/components/BoxVertical/index.d.cts +0 -3
  371. package/dist/components/BoxVertical/index.d.cts.map +0 -1
  372. package/dist/components/BoxVertical/index.d.mts +0 -3
  373. package/dist/components/BoxVertical/index.d.mts.map +0 -1
  374. package/dist/components/BoxVertical/index.mjs +0 -2
  375. package/dist/components/BoxVertical/index.mjs.map +0 -1
  376. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +0 -34
  377. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +0 -1
  378. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +0 -13
  379. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +0 -1
  380. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +0 -13
  381. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +0 -1
  382. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +0 -34
  383. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +0 -1
  384. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +0 -40
  385. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +0 -1
  386. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +0 -24
  387. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +0 -1
  388. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +0 -24
  389. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +0 -1
  390. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +0 -40
  391. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +0 -1
  392. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs +0 -6
  393. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs.map +0 -1
  394. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts +0 -3
  395. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts.map +0 -1
  396. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts +0 -3
  397. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts.map +0 -1
  398. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs +0 -2
  399. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs.map +0 -1
  400. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +0 -30
  401. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +0 -1
  402. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +0 -16
  403. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +0 -1
  404. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +0 -16
  405. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +0 -1
  406. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +0 -30
  407. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +0 -1
@@ -1,29 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeyValueRowSectionAlignments = exports.TooltipSizes = exports.IconSizes = exports.KeyValueRowFieldIconSides = void 0;
4
- const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
5
- const Icon_1 = require("../Icon/index.cjs");
6
- /**
7
- * Used to position an icon in a KeyValueRowField.
8
- */
9
- exports.KeyValueRowFieldIconSides = {
10
- Left: 'left',
11
- Right: 'right',
12
- Both: 'both',
13
- };
14
- /**
15
- * Re-exported for backwards compatibility.
16
- */
17
- exports.IconSizes = Icon_1.IconSize;
18
- /**
19
- * Re-exported for backwards compatibility.
20
- */
21
- exports.TooltipSizes = ButtonIcon_1.ButtonIconSize;
22
- /**
23
- * Represents the valid KeyValueSection alignments.
24
- */
25
- exports.KeyValueRowSectionAlignments = {
26
- Left: 'items-start',
27
- Right: 'items-end',
28
- };
29
3
  //# sourceMappingURL=KeyValueRow.types.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.types.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":";;;AAGA,wDAA+C;AAC/C,4CAA6C;AAsC7C;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAuBX;;GAEG;AACU,QAAA,SAAS,GAAG,eAAQ,CAAC;AAElC;;GAEG;AACU,QAAA,YAAY,GAAG,2BAAc,CAAC;AAsC3C;;GAEG;AACU,QAAA,4BAA4B,GAAG;IAC1C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,WAAW;CACV,CAAC","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport { ButtonIconSize } from '../ButtonIcon';\nimport { IconName, IconSize } from '../Icon';\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * The optional tooltip that can be displayed within a KeyValueRowField.\n */\nexport type KeyValueRowTooltip = {\n /**\n * The title displayed at the top of the tooltip.\n */\n title: string;\n /**\n * The content displayed within the tooltip body.\n */\n content: string | ReactNode;\n /**\n * Optional size of the tooltip icon button.\n *\n * @default ButtonIconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional icon name for the tooltip icon.\n *\n * @default IconName.Question\n */\n iconName?: IconName;\n /**\n * Optional onPress handler called when the tooltip icon is pressed.\n */\n onPress?: (...args: unknown[]) => unknown;\n /**\n * Optional bottom padding for the tooltip modal.\n */\n bottomPadding?: number;\n};\n\n/**\n * Used to position an icon in a KeyValueRowField.\n */\nexport const KeyValueRowFieldIconSides = {\n Left: 'left',\n Right: 'right',\n Both: 'both',\n} as const;\n\nexport type KeyValueRowFieldIconSides =\n (typeof KeyValueRowFieldIconSides)[keyof typeof KeyValueRowFieldIconSides];\n\n/**\n * Represents a field displayed within KeyValueRowProps.\n */\nexport type KeyValueRowField = {\n /**\n * The label content displayed.\n */\n label: PreDefinedKeyValueRowLabel | ReactNode;\n /**\n * Optional icon to display. If undefined, no icon is displayed.\n */\n icon?: IconProps & { side?: KeyValueRowFieldIconSides };\n /**\n * Optional tooltip to display. If undefined, no tooltip is displayed.\n */\n tooltip?: KeyValueRowTooltip;\n};\n\n/**\n * Re-exported for backwards compatibility.\n */\nexport const IconSizes = IconSize;\n\n/**\n * Re-exported for backwards compatibility.\n */\nexport const TooltipSizes = ButtonIconSize;\n\n/**\n * A predefined label object with text, variant, and color.\n */\nexport type PreDefinedKeyValueRowLabel = {\n /**\n * Text to display.\n */\n text: string;\n /**\n * Optional text variant.\n *\n * @default TextVariant.BodyMd\n */\n variant?: TextProps['variant'];\n /**\n * Optional text color.\n *\n * @default TextColor.TextDefault\n */\n color?: TextProps['color'];\n};\n\n/**\n * The KeyValueRowLabel component props.\n */\nexport type KeyValueRowLabelProps = {\n /**\n * The label content displayed.\n */\n label: PreDefinedKeyValueRowLabel | ReactNode;\n /**\n * Optional tooltip. If undefined, the tooltip won't be displayed.\n */\n tooltip?: KeyValueRowTooltip;\n};\n\n/**\n * Represents the valid KeyValueSection alignments.\n */\nexport const KeyValueRowSectionAlignments = {\n Left: 'items-start',\n Right: 'items-end',\n} as const;\n\nexport type KeyValueRowSectionAlignments =\n (typeof KeyValueRowSectionAlignments)[keyof typeof KeyValueRowSectionAlignments];\n\n/**\n * Represents the main container for the KeyValueRow component.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueRowRootProps = {\n /**\n * Must have exactly two children. Adding more will lead to an undesired outcome.\n */\n children: [ReactNode, ReactNode];\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * The KeyValueSection component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueSectionProps = {\n /**\n * Child components.\n */\n children: ReactNode;\n /**\n * Optional content alignment.\n *\n * @default KeyValueRowSectionAlignments.Left\n */\n align?: KeyValueRowSectionAlignments;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * The KeyValueRow component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueRowProps = {\n /**\n * The \"key\" portion of the KeyValueRow (left side).\n * Using the variable name field because key is reserved.\n */\n field: KeyValueRowField;\n /**\n * The \"value\" portion of the KeyValueRow (right side).\n */\n value: KeyValueRowField;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"KeyValueRow.types.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { KeyValueRowPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { TextProps } from '../Text/Text.types';\n\nexport type KeyValueRowProps = KeyValueRowPropsShared &\n Omit<ViewProps, 'children'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** Optional props for the value Text when value is a string. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** Optional Tailwind class names applied to the outer BoxHorizontal. Merged with base styles. */\n twClassName?: string;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** When set, renders a ButtonIcon as the value endAccessory (takes precedence over valueEndAccessory). */\n valueEndButtonIconProps?: Partial<ButtonIconProps>;\n };\n"]}
@@ -1,177 +1,17 @@
1
- import type { ReactNode } from "react";
1
+ import type { KeyValueRowPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native/index.js";
3
- import { ButtonIconSize } from "../ButtonIcon/index.cjs";
4
- import { IconName, IconSize } from "../Icon/index.cjs";
5
- import type { IconProps } from "../Icon/index.cjs";
6
- import type { TextProps } from "../Text/index.cjs";
7
- /**
8
- * The optional tooltip that can be displayed within a KeyValueRowField.
9
- */
10
- export type KeyValueRowTooltip = {
11
- /**
12
- * The title displayed at the top of the tooltip.
13
- */
14
- title: string;
15
- /**
16
- * The content displayed within the tooltip body.
17
- */
18
- content: string | ReactNode;
19
- /**
20
- * Optional size of the tooltip icon button.
21
- *
22
- * @default ButtonIconSize.Md
23
- */
24
- size?: ButtonIconSize;
25
- /**
26
- * Optional icon name for the tooltip icon.
27
- *
28
- * @default IconName.Question
29
- */
30
- iconName?: IconName;
31
- /**
32
- * Optional onPress handler called when the tooltip icon is pressed.
33
- */
34
- onPress?: (...args: unknown[]) => unknown;
35
- /**
36
- * Optional bottom padding for the tooltip modal.
37
- */
38
- bottomPadding?: number;
39
- };
40
- /**
41
- * Used to position an icon in a KeyValueRowField.
42
- */
43
- export declare const KeyValueRowFieldIconSides: {
44
- readonly Left: "left";
45
- readonly Right: "right";
46
- readonly Both: "both";
47
- };
48
- export type KeyValueRowFieldIconSides = (typeof KeyValueRowFieldIconSides)[keyof typeof KeyValueRowFieldIconSides];
49
- /**
50
- * Represents a field displayed within KeyValueRowProps.
51
- */
52
- export type KeyValueRowField = {
53
- /**
54
- * The label content displayed.
55
- */
56
- label: PreDefinedKeyValueRowLabel | ReactNode;
57
- /**
58
- * Optional icon to display. If undefined, no icon is displayed.
59
- */
60
- icon?: IconProps & {
61
- side?: KeyValueRowFieldIconSides;
62
- };
63
- /**
64
- * Optional tooltip to display. If undefined, no tooltip is displayed.
65
- */
66
- tooltip?: KeyValueRowTooltip;
67
- };
68
- /**
69
- * Re-exported for backwards compatibility.
70
- */
71
- export declare const IconSizes: typeof IconSize;
72
- /**
73
- * Re-exported for backwards compatibility.
74
- */
75
- export declare const TooltipSizes: typeof ButtonIconSize;
76
- /**
77
- * A predefined label object with text, variant, and color.
78
- */
79
- export type PreDefinedKeyValueRowLabel = {
80
- /**
81
- * Text to display.
82
- */
83
- text: string;
84
- /**
85
- * Optional text variant.
86
- *
87
- * @default TextVariant.BodyMd
88
- */
89
- variant?: TextProps['variant'];
90
- /**
91
- * Optional text color.
92
- *
93
- * @default TextColor.TextDefault
94
- */
95
- color?: TextProps['color'];
96
- };
97
- /**
98
- * The KeyValueRowLabel component props.
99
- */
100
- export type KeyValueRowLabelProps = {
101
- /**
102
- * The label content displayed.
103
- */
104
- label: PreDefinedKeyValueRowLabel | ReactNode;
105
- /**
106
- * Optional tooltip. If undefined, the tooltip won't be displayed.
107
- */
108
- tooltip?: KeyValueRowTooltip;
109
- };
110
- /**
111
- * Represents the valid KeyValueSection alignments.
112
- */
113
- export declare const KeyValueRowSectionAlignments: {
114
- readonly Left: "items-start";
115
- readonly Right: "items-end";
116
- };
117
- export type KeyValueRowSectionAlignments = (typeof KeyValueRowSectionAlignments)[keyof typeof KeyValueRowSectionAlignments];
118
- /**
119
- * Represents the main container for the KeyValueRow component.
120
- *
121
- * Extends `ViewProps` so the root View inherits standard React Native
122
- * props such as `testID` and `accessibilityLabel`.
123
- */
124
- export type KeyValueRowRootProps = {
125
- /**
126
- * Must have exactly two children. Adding more will lead to an undesired outcome.
127
- */
128
- children: [ReactNode, ReactNode];
129
- /**
130
- * Optional Tailwind class names to override default styles on the root element.
131
- */
132
- twClassName?: string;
133
- } & ViewProps;
134
- /**
135
- * The KeyValueSection component props.
136
- *
137
- * Extends `ViewProps` so the root View inherits standard React Native
138
- * props such as `testID` and `accessibilityLabel`.
139
- */
140
- export type KeyValueSectionProps = {
141
- /**
142
- * Child components.
143
- */
144
- children: ReactNode;
145
- /**
146
- * Optional content alignment.
147
- *
148
- * @default KeyValueRowSectionAlignments.Left
149
- */
150
- align?: KeyValueRowSectionAlignments;
151
- /**
152
- * Optional Tailwind class names to override default styles on the root element.
153
- */
3
+ import type { ButtonIconProps } from "../ButtonIcon/ButtonIcon.types.cjs";
4
+ import type { TextProps } from "../Text/Text.types.cjs";
5
+ export type KeyValueRowProps = KeyValueRowPropsShared & Omit<ViewProps, 'children'> & {
6
+ /** Optional props for the key Text when key is a string. */
7
+ keyTextProps?: Partial<Omit<TextProps, 'children'>>;
8
+ /** Optional props for the value Text when value is a string. */
9
+ valueTextProps?: Partial<Omit<TextProps, 'children'>>;
10
+ /** Optional Tailwind class names applied to the outer BoxHorizontal. Merged with base styles. */
154
11
  twClassName?: string;
155
- } & ViewProps;
156
- /**
157
- * The KeyValueRow component props.
158
- *
159
- * Extends `ViewProps` so the root View inherits standard React Native
160
- * props such as `testID` and `accessibilityLabel`.
161
- */
162
- export type KeyValueRowProps = {
163
- /**
164
- * The "key" portion of the KeyValueRow (left side).
165
- * Using the variable name field because key is reserved.
166
- */
167
- field: KeyValueRowField;
168
- /**
169
- * The "value" portion of the KeyValueRow (right side).
170
- */
171
- value: KeyValueRowField;
172
- /**
173
- * Optional Tailwind class names to override default styles on the root element.
174
- */
175
- twClassName?: string;
176
- } & ViewProps;
12
+ /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */
13
+ keyEndButtonIconProps?: Partial<ButtonIconProps>;
14
+ /** When set, renders a ButtonIcon as the value endAccessory (takes precedence over valueEndAccessory). */
15
+ valueEndButtonIconProps?: Partial<ButtonIconProps>;
16
+ };
177
17
  //# sourceMappingURL=KeyValueRow.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.types.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,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SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACpD,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,qBAAqB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,0GAA0G;IAC1G,uBAAuB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACpD,CAAC"}
@@ -1,177 +1,17 @@
1
- import type { ReactNode } from "react";
1
+ import type { KeyValueRowPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native/index.js";
3
- import { ButtonIconSize } from "../ButtonIcon/index.mjs";
4
- import { IconName, IconSize } from "../Icon/index.mjs";
5
- import type { IconProps } from "../Icon/index.mjs";
6
- import type { TextProps } from "../Text/index.mjs";
7
- /**
8
- * The optional tooltip that can be displayed within a KeyValueRowField.
9
- */
10
- export type KeyValueRowTooltip = {
11
- /**
12
- * The title displayed at the top of the tooltip.
13
- */
14
- title: string;
15
- /**
16
- * The content displayed within the tooltip body.
17
- */
18
- content: string | ReactNode;
19
- /**
20
- * Optional size of the tooltip icon button.
21
- *
22
- * @default ButtonIconSize.Md
23
- */
24
- size?: ButtonIconSize;
25
- /**
26
- * Optional icon name for the tooltip icon.
27
- *
28
- * @default IconName.Question
29
- */
30
- iconName?: IconName;
31
- /**
32
- * Optional onPress handler called when the tooltip icon is pressed.
33
- */
34
- onPress?: (...args: unknown[]) => unknown;
35
- /**
36
- * Optional bottom padding for the tooltip modal.
37
- */
38
- bottomPadding?: number;
39
- };
40
- /**
41
- * Used to position an icon in a KeyValueRowField.
42
- */
43
- export declare const KeyValueRowFieldIconSides: {
44
- readonly Left: "left";
45
- readonly Right: "right";
46
- readonly Both: "both";
47
- };
48
- export type KeyValueRowFieldIconSides = (typeof KeyValueRowFieldIconSides)[keyof typeof KeyValueRowFieldIconSides];
49
- /**
50
- * Represents a field displayed within KeyValueRowProps.
51
- */
52
- export type KeyValueRowField = {
53
- /**
54
- * The label content displayed.
55
- */
56
- label: PreDefinedKeyValueRowLabel | ReactNode;
57
- /**
58
- * Optional icon to display. If undefined, no icon is displayed.
59
- */
60
- icon?: IconProps & {
61
- side?: KeyValueRowFieldIconSides;
62
- };
63
- /**
64
- * Optional tooltip to display. If undefined, no tooltip is displayed.
65
- */
66
- tooltip?: KeyValueRowTooltip;
67
- };
68
- /**
69
- * Re-exported for backwards compatibility.
70
- */
71
- export declare const IconSizes: typeof IconSize;
72
- /**
73
- * Re-exported for backwards compatibility.
74
- */
75
- export declare const TooltipSizes: typeof ButtonIconSize;
76
- /**
77
- * A predefined label object with text, variant, and color.
78
- */
79
- export type PreDefinedKeyValueRowLabel = {
80
- /**
81
- * Text to display.
82
- */
83
- text: string;
84
- /**
85
- * Optional text variant.
86
- *
87
- * @default TextVariant.BodyMd
88
- */
89
- variant?: TextProps['variant'];
90
- /**
91
- * Optional text color.
92
- *
93
- * @default TextColor.TextDefault
94
- */
95
- color?: TextProps['color'];
96
- };
97
- /**
98
- * The KeyValueRowLabel component props.
99
- */
100
- export type KeyValueRowLabelProps = {
101
- /**
102
- * The label content displayed.
103
- */
104
- label: PreDefinedKeyValueRowLabel | ReactNode;
105
- /**
106
- * Optional tooltip. If undefined, the tooltip won't be displayed.
107
- */
108
- tooltip?: KeyValueRowTooltip;
109
- };
110
- /**
111
- * Represents the valid KeyValueSection alignments.
112
- */
113
- export declare const KeyValueRowSectionAlignments: {
114
- readonly Left: "items-start";
115
- readonly Right: "items-end";
116
- };
117
- export type KeyValueRowSectionAlignments = (typeof KeyValueRowSectionAlignments)[keyof typeof KeyValueRowSectionAlignments];
118
- /**
119
- * Represents the main container for the KeyValueRow component.
120
- *
121
- * Extends `ViewProps` so the root View inherits standard React Native
122
- * props such as `testID` and `accessibilityLabel`.
123
- */
124
- export type KeyValueRowRootProps = {
125
- /**
126
- * Must have exactly two children. Adding more will lead to an undesired outcome.
127
- */
128
- children: [ReactNode, ReactNode];
129
- /**
130
- * Optional Tailwind class names to override default styles on the root element.
131
- */
132
- twClassName?: string;
133
- } & ViewProps;
134
- /**
135
- * The KeyValueSection component props.
136
- *
137
- * Extends `ViewProps` so the root View inherits standard React Native
138
- * props such as `testID` and `accessibilityLabel`.
139
- */
140
- export type KeyValueSectionProps = {
141
- /**
142
- * Child components.
143
- */
144
- children: ReactNode;
145
- /**
146
- * Optional content alignment.
147
- *
148
- * @default KeyValueRowSectionAlignments.Left
149
- */
150
- align?: KeyValueRowSectionAlignments;
151
- /**
152
- * Optional Tailwind class names to override default styles on the root element.
153
- */
3
+ import type { ButtonIconProps } from "../ButtonIcon/ButtonIcon.types.mjs";
4
+ import type { TextProps } from "../Text/Text.types.mjs";
5
+ export type KeyValueRowProps = KeyValueRowPropsShared & Omit<ViewProps, 'children'> & {
6
+ /** Optional props for the key Text when key is a string. */
7
+ keyTextProps?: Partial<Omit<TextProps, 'children'>>;
8
+ /** Optional props for the value Text when value is a string. */
9
+ valueTextProps?: Partial<Omit<TextProps, 'children'>>;
10
+ /** Optional Tailwind class names applied to the outer BoxHorizontal. Merged with base styles. */
154
11
  twClassName?: string;
155
- } & ViewProps;
156
- /**
157
- * The KeyValueRow component props.
158
- *
159
- * Extends `ViewProps` so the root View inherits standard React Native
160
- * props such as `testID` and `accessibilityLabel`.
161
- */
162
- export type KeyValueRowProps = {
163
- /**
164
- * The "key" portion of the KeyValueRow (left side).
165
- * Using the variable name field because key is reserved.
166
- */
167
- field: KeyValueRowField;
168
- /**
169
- * The "value" portion of the KeyValueRow (right side).
170
- */
171
- value: KeyValueRowField;
172
- /**
173
- * Optional Tailwind class names to override default styles on the root element.
174
- */
175
- twClassName?: string;
176
- } & ViewProps;
12
+ /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */
13
+ keyEndButtonIconProps?: Partial<ButtonIconProps>;
14
+ /** When set, renders a ButtonIcon as the value endAccessory (takes precedence over valueEndAccessory). */
15
+ valueEndButtonIconProps?: Partial<ButtonIconProps>;
16
+ };
177
17
  //# sourceMappingURL=KeyValueRow.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.types.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC1C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG;QAAE,IAAI,CAAC,EAAE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,gBAAgB,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"KeyValueRow.types.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gDAAgD;AACtF,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,2CAAuC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACnD,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B,4DAA4D;IAC5D,YAAY,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACpD,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,qBAAqB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACjD,0GAA0G;IAC1G,uBAAuB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACpD,CAAC"}
@@ -1,26 +1,2 @@
1
- import { ButtonIconSize } from "../ButtonIcon/index.mjs";
2
- import { IconName, IconSize } from "../Icon/index.mjs";
3
- /**
4
- * Used to position an icon in a KeyValueRowField.
5
- */
6
- export const KeyValueRowFieldIconSides = {
7
- Left: 'left',
8
- Right: 'right',
9
- Both: 'both',
10
- };
11
- /**
12
- * Re-exported for backwards compatibility.
13
- */
14
- export const IconSizes = IconSize;
15
- /**
16
- * Re-exported for backwards compatibility.
17
- */
18
- export const TooltipSizes = ButtonIconSize;
19
- /**
20
- * Represents the valid KeyValueSection alignments.
21
- */
22
- export const KeyValueRowSectionAlignments = {
23
- Left: 'items-start',
24
- Right: 'items-end',
25
- };
1
+ export {};
26
2
  //# sourceMappingURL=KeyValueRow.types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.types.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAsC7C;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAuBX;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC;AAsC3C;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,WAAW;CACV,CAAC","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport { ButtonIconSize } from '../ButtonIcon';\nimport { IconName, IconSize } from '../Icon';\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * The optional tooltip that can be displayed within a KeyValueRowField.\n */\nexport type KeyValueRowTooltip = {\n /**\n * The title displayed at the top of the tooltip.\n */\n title: string;\n /**\n * The content displayed within the tooltip body.\n */\n content: string | ReactNode;\n /**\n * Optional size of the tooltip icon button.\n *\n * @default ButtonIconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional icon name for the tooltip icon.\n *\n * @default IconName.Question\n */\n iconName?: IconName;\n /**\n * Optional onPress handler called when the tooltip icon is pressed.\n */\n onPress?: (...args: unknown[]) => unknown;\n /**\n * Optional bottom padding for the tooltip modal.\n */\n bottomPadding?: number;\n};\n\n/**\n * Used to position an icon in a KeyValueRowField.\n */\nexport const KeyValueRowFieldIconSides = {\n Left: 'left',\n Right: 'right',\n Both: 'both',\n} as const;\n\nexport type KeyValueRowFieldIconSides =\n (typeof KeyValueRowFieldIconSides)[keyof typeof KeyValueRowFieldIconSides];\n\n/**\n * Represents a field displayed within KeyValueRowProps.\n */\nexport type KeyValueRowField = {\n /**\n * The label content displayed.\n */\n label: PreDefinedKeyValueRowLabel | ReactNode;\n /**\n * Optional icon to display. If undefined, no icon is displayed.\n */\n icon?: IconProps & { side?: KeyValueRowFieldIconSides };\n /**\n * Optional tooltip to display. If undefined, no tooltip is displayed.\n */\n tooltip?: KeyValueRowTooltip;\n};\n\n/**\n * Re-exported for backwards compatibility.\n */\nexport const IconSizes = IconSize;\n\n/**\n * Re-exported for backwards compatibility.\n */\nexport const TooltipSizes = ButtonIconSize;\n\n/**\n * A predefined label object with text, variant, and color.\n */\nexport type PreDefinedKeyValueRowLabel = {\n /**\n * Text to display.\n */\n text: string;\n /**\n * Optional text variant.\n *\n * @default TextVariant.BodyMd\n */\n variant?: TextProps['variant'];\n /**\n * Optional text color.\n *\n * @default TextColor.TextDefault\n */\n color?: TextProps['color'];\n};\n\n/**\n * The KeyValueRowLabel component props.\n */\nexport type KeyValueRowLabelProps = {\n /**\n * The label content displayed.\n */\n label: PreDefinedKeyValueRowLabel | ReactNode;\n /**\n * Optional tooltip. If undefined, the tooltip won't be displayed.\n */\n tooltip?: KeyValueRowTooltip;\n};\n\n/**\n * Represents the valid KeyValueSection alignments.\n */\nexport const KeyValueRowSectionAlignments = {\n Left: 'items-start',\n Right: 'items-end',\n} as const;\n\nexport type KeyValueRowSectionAlignments =\n (typeof KeyValueRowSectionAlignments)[keyof typeof KeyValueRowSectionAlignments];\n\n/**\n * Represents the main container for the KeyValueRow component.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueRowRootProps = {\n /**\n * Must have exactly two children. Adding more will lead to an undesired outcome.\n */\n children: [ReactNode, ReactNode];\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * The KeyValueSection component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueSectionProps = {\n /**\n * Child components.\n */\n children: ReactNode;\n /**\n * Optional content alignment.\n *\n * @default KeyValueRowSectionAlignments.Left\n */\n align?: KeyValueRowSectionAlignments;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * The KeyValueRow component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type KeyValueRowProps = {\n /**\n * The \"key\" portion of the KeyValueRow (left side).\n * Using the variable name field because key is reserved.\n */\n field: KeyValueRowField;\n /**\n * The \"value\" portion of the KeyValueRow (right side).\n */\n value: KeyValueRowField;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
1
+ {"version":3,"file":"KeyValueRow.types.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { KeyValueRowPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonIconProps } from '../ButtonIcon/ButtonIcon.types';\nimport type { TextProps } from '../Text/Text.types';\n\nexport type KeyValueRowProps = KeyValueRowPropsShared &\n Omit<ViewProps, 'children'> & {\n /** Optional props for the key Text when key is a string. */\n keyTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** Optional props for the value Text when value is a string. */\n valueTextProps?: Partial<Omit<TextProps, 'children'>>;\n /** Optional Tailwind class names applied to the outer BoxHorizontal. Merged with base styles. */\n twClassName?: string;\n /** When set, renders a ButtonIcon as the key endAccessory (takes precedence over keyEndAccessory). */\n keyEndButtonIconProps?: Partial<ButtonIconProps>;\n /** When set, renders a ButtonIcon as the value endAccessory (takes precedence over valueEndAccessory). */\n valueEndButtonIconProps?: Partial<ButtonIconProps>;\n };\n"]}
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
3
+ exports.KeyValueRow = exports.KeyValueRowVariant = void 0;
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "KeyValueRowVariant", { enumerable: true, get: function () { return design_system_shared_1.KeyValueRowVariant; } });
4
6
  var KeyValueRow_1 = require("./KeyValueRow.cjs");
5
7
  Object.defineProperty(exports, "KeyValueRow", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRow; } });
6
- Object.defineProperty(exports, "KeyValueRowStubs", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRowStubs; } });
7
- var KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
8
- Object.defineProperty(exports, "KeyValueRowSectionAlignments", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowSectionAlignments; } });
9
- Object.defineProperty(exports, "KeyValueRowFieldIconSides", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowFieldIconSides; } });
10
- Object.defineProperty(exports, "TooltipSizes", { enumerable: true, get: function () { return KeyValueRow_types_1.TooltipSizes; } });
11
- Object.defineProperty(exports, "IconSizes", { enumerable: true, get: function () { return KeyValueRow_types_1.IconSizes; } });
12
8
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;AAAA,iDAA8D;AAArD,0GAAA,WAAW,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AACtC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.ts"],"names":[],"mappings":";;;AAAA,gFAA6E;AAApE,0HAAA,kBAAkB,OAAA;AAC3B,iDAA4C;AAAnC,0GAAA,WAAW,OAAA","sourcesContent":["export { KeyValueRowVariant } from '@metamask-previews/design-system-shared';\nexport { KeyValueRow } from './KeyValueRow';\nexport type { KeyValueRowProps } from './KeyValueRow.types';\n"]}
@@ -1,3 +1,4 @@
1
- export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.cjs";
2
- export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.cjs";
1
+ export { KeyValueRowVariant } from "@metamask-previews/design-system-shared";
2
+ export { KeyValueRow } from "./KeyValueRow.cjs";
3
+ export type { KeyValueRowProps } from "./KeyValueRow.types.cjs";
3
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
@@ -1,3 +1,4 @@
1
- export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
- export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.mjs";
1
+ export { KeyValueRowVariant } from "@metamask-previews/design-system-shared";
2
+ export { KeyValueRow } from "./KeyValueRow.mjs";
3
+ export type { KeyValueRowProps } from "./KeyValueRow.types.mjs";
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
- export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes } from "./KeyValueRow.types.mjs";
1
+ export { KeyValueRowVariant } from "@metamask-previews/design-system-shared";
2
+ export { KeyValueRow } from "./KeyValueRow.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,0BAAsB","sourcesContent":["export { KeyValueRowVariant } from '@metamask-previews/design-system-shared';\nexport { KeyValueRow } from './KeyValueRow';\nexport type { KeyValueRowProps } from './KeyValueRow.types';\n"]}
@@ -24,17 +24,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Text = void 0;
27
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
27
28
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
28
29
  const react_1 = __importStar(require("react"));
29
30
  const react_native_1 = require("react-native/index.js");
30
- const types_1 = require("../../types/index.cjs");
31
31
  const Text_constants_1 = require("./Text.constants.cjs");
32
- const Text = ({ variant = types_1.TextVariant.BodyMd, color = types_1.TextColor.TextDefault, style, children, fontWeight, fontFamily = types_1.FontFamily.Default, fontStyle = types_1.FontStyle.Normal, twClassName, ...props }) => {
32
+ const Text = ({ variant = design_system_shared_1.TextVariant.BodyMd, color = design_system_shared_1.TextColor.TextDefault, style, children, fontWeight, fontFamily = design_system_shared_1.FontFamily.Default, fontStyle = design_system_shared_1.FontStyle.Normal, twClassName, ...props }) => {
33
33
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
34
- const finalFontWeight = fontWeight ?? Text_constants_1.MAP_TEXT_VARIANT_FONTWEIGHT[variant];
34
+ const finalFontWeight = fontWeight ?? Text_constants_1.TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];
35
35
  const textStyle = (0, react_1.useMemo)(() => {
36
- const isItalic = fontStyle === types_1.FontStyle.Italic;
37
- const fontSuffix = `${Text_constants_1.TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${isItalic && fontFamily === types_1.FontFamily.Default ? '-italic' : ''}`;
36
+ const isItalic = fontStyle === design_system_shared_1.FontStyle.Italic;
37
+ const fontSuffix = `${Text_constants_1.TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${isItalic && fontFamily === design_system_shared_1.FontFamily.Default ? '-italic' : ''}`;
38
38
  const fontClass = `font-${fontFamily}${fontSuffix}`;
39
39
  return tw.style(`text-${variant}`, fontClass, color, twClassName);
40
40
  }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);
@@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C,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,IAAI,QA4Bf","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport { FontFamily, FontStyle, TextVariant, TextColor } from '../../types';\n\nimport {\n MAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight = fontWeight ?? MAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}
1
+ {"version":3,"file":"Text.cjs","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAKiD;AACjD,8FAA4E;AAC5E,+CAAuC;AACvC,wDAA8C;AAE9C,yDAG0B;AAGnB,MAAM,IAAI,GAAwB,CAAC,EACxC,OAAO,GAAG,kCAAW,CAAC,MAAM,EAC5B,KAAK,GAAG,gCAAS,CAAC,WAAW,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,iCAAU,CAAC,OAAO,EAC/B,SAAS,GAAG,gCAAS,CAAC,MAAM,EAC5B,WAAW,EACX,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,eAAe,GACnB,UAAU,IAAI,mDAAkC,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC7B,MAAM,QAAQ,GAAG,SAAS,KAAK,gCAAS,CAAC,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,GAAG,2CAA0B,CAAC,eAAe,CAAC,GAC/D,QAAQ,IAAI,UAAU,KAAK,iCAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC9D,EAAE,CAAC;QACH,MAAM,SAAS,GAAG,QAAQ,UAAU,GAAG,UAAU,EAAE,CAAC;QACpD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO,CACL,CAAC,mBAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACpE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,IAAI,QA6Bf","sourcesContent":["import {\n FontFamily,\n FontStyle,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useMemo } from 'react';\nimport { Text as RNText } from 'react-native';\n\nimport {\n TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from './Text.constants';\nimport type { TextProps } from './Text.types';\n\nexport const Text: React.FC<TextProps> = ({\n variant = TextVariant.BodyMd,\n color = TextColor.TextDefault,\n style,\n children,\n fontWeight,\n fontFamily = FontFamily.Default,\n fontStyle = FontStyle.Normal,\n twClassName,\n ...props\n}) => {\n const tw = useTailwind();\n const finalFontWeight =\n fontWeight ?? TWCLASSMAP_TEXT_VARIANT_FONTWEIGHT[variant];\n\n const textStyle = useMemo(() => {\n const isItalic = fontStyle === FontStyle.Italic;\n const fontSuffix = `${TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight]}${\n isItalic && fontFamily === FontFamily.Default ? '-italic' : ''\n }`;\n const fontClass = `font-${fontFamily}${fontSuffix}`;\n return tw.style(`text-${variant}`, fontClass, color, twClassName);\n }, [variant, color, finalFontWeight, fontFamily, fontStyle, twClassName, tw]);\n\n return (\n <RNText accessibilityRole=\"text\" {...props} style={[textStyle, style]}>\n {children}\n </RNText>\n );\n};\n"]}