@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
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxColumnProps } from "./BoxColumn.types.cjs";
3
+ export declare const BoxColumn: {
4
+ ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }: BoxColumnProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxColumn.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxColumnProps } from "./BoxColumn.types.mjs";
3
+ export declare const BoxColumn: {
4
+ ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }: BoxColumnProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxColumn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -4,15 +4,15 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { BoxFlexDirection } from "@metamask-previews/design-system-shared";
8
7
  import $React from "react";
9
8
  const React = $importDefault($React);
9
+ import { BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
- export const BoxVertical = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
12
+ export const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
13
13
  {topAccessory}
14
14
  <TextOrChildren textProps={textProps}>{children}</TextOrChildren>
15
15
  {bottomAccessory}
16
16
  </Box>);
17
- BoxVertical.displayName = 'BoxVertical';
18
- //# sourceMappingURL=BoxVertical.mjs.map
17
+ BoxColumn.displayName = 'BoxColumn';
18
+ //# sourceMappingURL=BoxColumn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,gBAAgB,EAAE,8BAAoB;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BoxVertical.types.cjs.map
3
+ //# sourceMappingURL=BoxColumn.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxColumnPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxColumn component props.\n */\nexport type BoxColumnProps = BoxColumnPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,13 @@
1
+ import type { BoxColumnPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * BoxColumn component props.
6
+ */
7
+ export type BoxColumnProps = BoxColumnPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxColumn.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gDAAgD;AAEpF,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAC/C,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { BoxColumnPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * BoxColumn component props.
6
+ */
7
+ export type BoxColumnProps = BoxColumnPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxColumn.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gDAAgD;AAEpF,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAC/C,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BoxColumn.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxColumnPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxColumn component props.\n */\nexport type BoxColumnProps = BoxColumnPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoxColumn = void 0;
4
+ var BoxColumn_1 = require("./BoxColumn.cjs");
5
+ Object.defineProperty(exports, "BoxColumn", { enumerable: true, get: function () { return BoxColumn_1.BoxColumn; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAA/B,sGAAA,SAAS,OAAA","sourcesContent":["export { BoxColumn } from './BoxColumn';\nexport type { BoxColumnProps } from './BoxColumn.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { BoxColumn } from "./BoxColumn.cjs";
2
+ export type { BoxColumnProps } from "./BoxColumn.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,YAAY,EAAE,cAAc,EAAE,8BAA0B"}
@@ -0,0 +1,3 @@
1
+ export { BoxColumn } from "./BoxColumn.mjs";
2
+ export type { BoxColumnProps } from "./BoxColumn.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,YAAY,EAAE,cAAc,EAAE,8BAA0B"}
@@ -0,0 +1,2 @@
1
+ export { BoxColumn } from "./BoxColumn.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB","sourcesContent":["export { BoxColumn } from './BoxColumn';\nexport type { BoxColumnProps } from './BoxColumn.types';\n"]}
@@ -3,16 +3,16 @@ 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.BoxHorizontal = void 0;
7
- const design_system_shared_1 = require("@metamask-previews/design-system-shared");
6
+ exports.BoxRow = void 0;
8
7
  const react_1 = __importDefault(require("react"));
8
+ const types_1 = require("../../types/index.cjs");
9
9
  const Box_1 = require("../Box/index.cjs");
10
10
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
- const BoxHorizontal = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
11
+ const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Row} alignItems={types_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
12
12
  {startAccessory}
13
13
  <TextOrChildren_1.TextOrChildren textProps={textProps}>{children}</TextOrChildren_1.TextOrChildren>
14
14
  {endAccessory}
15
15
  </Box_1.Box>);
16
- exports.BoxHorizontal = BoxHorizontal;
17
- exports.BoxHorizontal.displayName = 'BoxHorizontal';
18
- //# sourceMappingURL=BoxHorizontal.cjs.map
16
+ exports.BoxRow = BoxRow;
17
+ exports.BoxRow.displayName = 'BoxRow';
18
+ //# sourceMappingURL=BoxRow.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA8D;AAC9D,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,wBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,qBAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAnBW,QAAA,MAAM,UAmBjB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxRowProps } from "./BoxRow.types.cjs";
3
+ export declare const BoxRow: {
4
+ ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }: BoxRowProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxRow.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxRowProps } from "./BoxRow.types.mjs";
3
+ export declare const BoxRow: {
4
+ ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }: BoxRowProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxRow.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -4,15 +4,15 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { BoxAlignItems, BoxFlexDirection } from "@metamask-previews/design-system-shared";
8
7
  import $React from "react";
9
8
  const React = $importDefault($React);
9
+ import { BoxAlignItems, BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
- export const BoxHorizontal = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
12
+ export const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
13
13
  {startAccessory}
14
14
  <TextOrChildren textProps={textProps}>{children}</TextOrChildren>
15
15
  {endAccessory}
16
16
  </Box>);
17
- BoxHorizontal.displayName = 'BoxHorizontal';
18
- //# sourceMappingURL=BoxHorizontal.mjs.map
17
+ BoxRow.displayName = 'BoxRow';
18
+ //# sourceMappingURL=BoxRow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BoxHorizontal.types.cjs.map
3
+ //# sourceMappingURL=BoxRow.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxRowPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxRow component props.\n */\nexport type BoxRowProps = BoxRowPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,13 @@
1
+ import type { BoxRowPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * BoxRow component props.
6
+ */
7
+ export type BoxRowProps = BoxRowPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxRow.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gDAAgD;AAEjF,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { BoxRowPropsShared } from "@metamask-previews/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * BoxRow component props.
6
+ */
7
+ export type BoxRowProps = BoxRowPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxRow.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gDAAgD;AAEjF,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BoxRow.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxRowPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxRow component props.\n */\nexport type BoxRowProps = BoxRowPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoxRow = void 0;
4
+ var BoxRow_1 = require("./BoxRow.cjs");
5
+ Object.defineProperty(exports, "BoxRow", { enumerable: true, get: function () { return BoxRow_1.BoxRow; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAAzB,gGAAA,MAAM,OAAA","sourcesContent":["export { BoxRow } from './BoxRow';\nexport type { BoxRowProps } from './BoxRow.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { BoxRow } from "./BoxRow.cjs";
2
+ export type { BoxRowProps } from "./BoxRow.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
@@ -0,0 +1,3 @@
1
+ export { BoxRow } from "./BoxRow.mjs";
2
+ export type { BoxRowProps } from "./BoxRow.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
@@ -0,0 +1,2 @@
1
+ export { BoxRow } from "./BoxRow.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB","sourcesContent":["export { BoxRow } from './BoxRow';\nexport type { BoxRowProps } from './BoxRow.types';\n"]}
@@ -1,12 +1,7 @@
1
1
  import React from "react";
2
2
  import type { PressableStateCallbackType } from "react-native/index.js";
3
- export declare const Checkbox: React.ForwardRefExoticComponent<{
4
- isSelected: boolean;
5
- isDisabled?: boolean | undefined;
6
- isInvalid?: boolean | undefined;
7
- label?: React.ReactNode;
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask-previews/design-system-shared").CheckboxPropsShared & {
8
4
  labelProps?: Omit<Partial<import("../index.cjs").TextProps>, "children"> | undefined;
9
- onChange: (isSelected: boolean) => void;
10
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
11
6
  checkedIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
12
7
  twClassName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -1,12 +1,7 @@
1
1
  import React from "react";
2
2
  import type { PressableStateCallbackType } from "react-native/index.js";
3
- export declare const Checkbox: React.ForwardRefExoticComponent<{
4
- isSelected: boolean;
5
- isDisabled?: boolean | undefined;
6
- isInvalid?: boolean | undefined;
7
- label?: React.ReactNode;
3
+ export declare const Checkbox: React.ForwardRefExoticComponent<import("@metamask-previews/design-system-shared").CheckboxPropsShared & {
8
4
  labelProps?: Omit<Partial<import("../index.mjs").TextProps>, "children"> | undefined;
9
- onChange: (isSelected: boolean) => void;
10
5
  checkboxContainerProps?: Omit<Partial<import("react-native").ViewProps>, "children"> | undefined;
11
6
  checkedIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
12
7
  twClassName?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
1
+ {"version":3,"file":"Checkbox.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,cAAc;AACf,OAAO,KAAK,EAAE,0BAA0B,EAAE,8BAAqB;AAU/D,eAAO,MAAM,QAAQ;;;;;;;YAAwB,MAAM,IAAI;GA4ItD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n/**\n * Checkbox component props.\n */\n\nexport type CheckboxProps = {\n /**\n * Required prop to determine whether the checkbox is currently selected.\n * This component is fully controlled, so you must manage this state\n * in your parent component.\n */\n isSelected: boolean;\n\n /**\n * Optional prop that when true, disables the checkbox.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * Optional prop that when true, displays the invalid/error state of the checkbox.\n *\n * @default false\n */\n isInvalid?: boolean;\n\n /**\n * Optional label prop that renders text or a React node as a label beside the checkbox.\n */\n label?: React.ReactNode | string;\n\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Required callback for when the checked state changes.\n * Use this to update your state.\n */\n onChange: (isSelected: boolean) => void;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
1
+ {"version":3,"file":"Checkbox.types.cjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CheckboxPropsShared } from '@metamask-previews/design-system-shared';\nimport type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * Checkbox component props.\n */\nexport type CheckboxProps = CheckboxPropsShared & {\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
@@ -1,41 +1,15 @@
1
+ import type { CheckboxPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { PressableProps, ViewProps } from "react-native/index.js";
2
3
  import type { IconProps } from "../Icon/index.cjs";
3
4
  import type { TextProps } from "../Text/index.cjs";
4
5
  /**
5
6
  * Checkbox component props.
6
7
  */
7
- export type CheckboxProps = {
8
- /**
9
- * Required prop to determine whether the checkbox is currently selected.
10
- * This component is fully controlled, so you must manage this state
11
- * in your parent component.
12
- */
13
- isSelected: boolean;
14
- /**
15
- * Optional prop that when true, disables the checkbox.
16
- *
17
- * @default false
18
- */
19
- isDisabled?: boolean;
20
- /**
21
- * Optional prop that when true, displays the invalid/error state of the checkbox.
22
- *
23
- * @default false
24
- */
25
- isInvalid?: boolean;
26
- /**
27
- * Optional label prop that renders text or a React node as a label beside the checkbox.
28
- */
29
- label?: React.ReactNode | string;
8
+ export type CheckboxProps = CheckboxPropsShared & {
30
9
  /**
31
10
  * Optional props to be passed to the label's Text component.
32
11
  */
33
12
  labelProps?: Omit<Partial<TextProps>, 'children'>;
34
- /**
35
- * Required callback for when the checked state changes.
36
- * Use this to update your state.
37
- */
38
- onChange: (isSelected: boolean) => void;
39
13
  /**
40
14
  * Optional props passed to the container view wrapping the checkbox icon.
41
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC;;GAEG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Checkbox.types.d.cts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -1,41 +1,15 @@
1
+ import type { CheckboxPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { PressableProps, ViewProps } from "react-native/index.js";
2
3
  import type { IconProps } from "../Icon/index.mjs";
3
4
  import type { TextProps } from "../Text/index.mjs";
4
5
  /**
5
6
  * Checkbox component props.
6
7
  */
7
- export type CheckboxProps = {
8
- /**
9
- * Required prop to determine whether the checkbox is currently selected.
10
- * This component is fully controlled, so you must manage this state
11
- * in your parent component.
12
- */
13
- isSelected: boolean;
14
- /**
15
- * Optional prop that when true, disables the checkbox.
16
- *
17
- * @default false
18
- */
19
- isDisabled?: boolean;
20
- /**
21
- * Optional prop that when true, displays the invalid/error state of the checkbox.
22
- *
23
- * @default false
24
- */
25
- isInvalid?: boolean;
26
- /**
27
- * Optional label prop that renders text or a React node as a label beside the checkbox.
28
- */
29
- label?: React.ReactNode | string;
8
+ export type CheckboxProps = CheckboxPropsShared & {
30
9
  /**
31
10
  * Optional props to be passed to the label's Text component.
32
11
  */
33
12
  labelProps?: Omit<Partial<TextProps>, 'children'>;
34
- /**
35
- * Required callback for when the checked state changes.
36
- * Use this to update your state.
37
- */
38
- onChange: (isSelected: boolean) => void;
39
13
  /**
40
14
  * Optional props passed to the container view wrapping the checkbox icon.
41
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC;;GAEG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAEjC;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAExC;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Checkbox.types.d.mts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAElD;;OAEG;IACH,sBAAsB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAE9D;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.types.mjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n/**\n * Checkbox component props.\n */\n\nexport type CheckboxProps = {\n /**\n * Required prop to determine whether the checkbox is currently selected.\n * This component is fully controlled, so you must manage this state\n * in your parent component.\n */\n isSelected: boolean;\n\n /**\n * Optional prop that when true, disables the checkbox.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * Optional prop that when true, displays the invalid/error state of the checkbox.\n *\n * @default false\n */\n isInvalid?: boolean;\n\n /**\n * Optional label prop that renders text or a React node as a label beside the checkbox.\n */\n label?: React.ReactNode | string;\n\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Required callback for when the checked state changes.\n * Use this to update your state.\n */\n onChange: (isSelected: boolean) => void;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
1
+ {"version":3,"file":"Checkbox.types.mjs","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CheckboxPropsShared } from '@metamask-previews/design-system-shared';\nimport type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * Checkbox component props.\n */\nexport type CheckboxProps = CheckboxPropsShared & {\n /**\n * Optional props to be passed to the label's Text component.\n */\n labelProps?: Omit<Partial<TextProps>, 'children'>;\n\n /**\n * Optional props passed to the container view wrapping the checkbox icon.\n */\n checkboxContainerProps?: Omit<Partial<ViewProps>, 'children'>;\n\n /**\n * Optional props to be passed to the check Icon component.\n */\n checkedIconProps?: Partial<IconProps>;\n\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n\n /**\n * Optional prop to control the style.\n */\n style?: PressableProps['style'];\n} & Omit<PressableProps, 'children'>;\n"]}
@@ -10,7 +10,7 @@ const react_1 = __importDefault(require("react"));
10
10
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
11
11
  // External dependencies.
12
12
  const Box_1 = require("../Box/index.cjs");
13
- const BoxHorizontal_1 = require("../BoxHorizontal/index.cjs");
13
+ const BoxRow_1 = require("../BoxRow/index.cjs");
14
14
  const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
15
15
  const Text_1 = require("../Text/index.cjs");
16
16
  const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory, endButtonIconProps, includesTopInset = false, style, testID, twClassName, ...viewProps }) => {
@@ -38,12 +38,12 @@ const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory,
38
38
  }
39
39
  if (shouldRenderTitleRow) {
40
40
  const titleNode = (0, design_system_shared_1.isReactNodeRenderable)(title) && title !== '' ? title : null;
41
- return (<BoxHorizontal_1.BoxHorizontal endAccessory={titleAccessory} textProps={{
41
+ return (<BoxRow_1.BoxRow endAccessory={titleAccessory} textProps={{
42
42
  variant: Text_1.TextVariant.HeadingLg,
43
43
  ...titleProps,
44
44
  }}>
45
45
  {titleNode}
46
- </BoxHorizontal_1.BoxHorizontal>);
46
+ </BoxRow_1.BoxRow>);
47
47
  }
48
48
  return null;
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"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","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxHorizontal } from '../BoxHorizontal';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxHorizontal\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxHorizontal>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
1
+ {"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":"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","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask-previews/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxRow\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxRow>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
@@ -11,7 +11,7 @@ const React = $importDefault($React);
11
11
  import { useSafeAreaInsets } from "react-native-safe-area-context";
12
12
  // External dependencies.
13
13
  import { Box, BoxAlignItems, BoxFlexDirection } from "../Box/index.mjs";
14
- import { BoxHorizontal } from "../BoxHorizontal/index.mjs";
14
+ import { BoxRow } from "../BoxRow/index.mjs";
15
15
  import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
16
16
  import { TextVariant } from "../Text/index.mjs";
17
17
  export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory, endButtonIconProps, includesTopInset = false, style, testID, twClassName, ...viewProps }) => {
@@ -39,12 +39,12 @@ export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAcc
39
39
  }
40
40
  if (shouldRenderTitleRow) {
41
41
  const titleNode = isReactNodeRenderable(title) && title !== '' ? title : null;
42
- return (<BoxHorizontal endAccessory={titleAccessory} textProps={{
42
+ return (<BoxRow endAccessory={titleAccessory} textProps={{
43
43
  variant: TextVariant.HeadingLg,
44
44
  ...titleProps,
45
45
  }}>
46
46
  {titleNode}
47
- </BoxHorizontal>);
47
+ </BoxRow>);
48
48
  }
49
49
  return null;
50
50
  };