@metamask/design-system-react-native 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/CHANGELOG.md +53 -1
  2. package/dist/components/AvatarNetwork/AvatarNetwork.types.cjs.map +1 -1
  3. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.cts +7 -9
  4. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.cts.map +1 -1
  5. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.mts +7 -9
  6. package/dist/components/AvatarNetwork/AvatarNetwork.types.d.mts.map +1 -1
  7. package/dist/components/AvatarNetwork/AvatarNetwork.types.mjs.map +1 -1
  8. package/dist/components/BannerAlert/BannerAlert.cjs +23 -0
  9. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -0
  10. package/dist/components/BannerAlert/BannerAlert.constants.cjs +30 -0
  11. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -0
  12. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +7 -0
  13. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -0
  14. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +7 -0
  15. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -0
  16. package/dist/components/BannerAlert/BannerAlert.constants.mjs +27 -0
  17. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -0
  18. package/dist/components/BannerAlert/BannerAlert.d.cts +4 -0
  19. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -0
  20. package/dist/components/BannerAlert/BannerAlert.d.mts +4 -0
  21. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -0
  22. package/dist/components/BannerAlert/BannerAlert.mjs +23 -0
  23. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -0
  24. package/dist/components/BannerAlert/BannerAlert.types.cjs +3 -0
  25. package/dist/components/BannerAlert/BannerAlert.types.cjs.map +1 -0
  26. package/dist/components/BannerAlert/BannerAlert.types.d.cts +10 -0
  27. package/dist/components/BannerAlert/BannerAlert.types.d.cts.map +1 -0
  28. package/dist/components/BannerAlert/BannerAlert.types.d.mts +10 -0
  29. package/dist/components/BannerAlert/BannerAlert.types.d.mts.map +1 -0
  30. package/dist/components/BannerAlert/BannerAlert.types.mjs +2 -0
  31. package/dist/components/BannerAlert/BannerAlert.types.mjs.map +1 -0
  32. package/dist/components/BannerAlert/index.cjs +8 -0
  33. package/dist/components/BannerAlert/index.cjs.map +1 -0
  34. package/dist/components/BannerAlert/index.d.cts +4 -0
  35. package/dist/components/BannerAlert/index.d.cts.map +1 -0
  36. package/dist/components/BannerAlert/index.d.mts +4 -0
  37. package/dist/components/BannerAlert/index.d.mts.map +1 -0
  38. package/dist/components/BannerAlert/index.mjs +3 -0
  39. package/dist/components/BannerAlert/index.mjs.map +1 -0
  40. package/dist/components/BannerBase/BannerBase.cjs +63 -0
  41. package/dist/components/BannerBase/BannerBase.cjs.map +1 -0
  42. package/dist/components/BannerBase/BannerBase.d.cts +4 -0
  43. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -0
  44. package/dist/components/BannerBase/BannerBase.d.mts +4 -0
  45. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -0
  46. package/dist/components/BannerBase/BannerBase.mjs +63 -0
  47. package/dist/components/BannerBase/BannerBase.mjs.map +1 -0
  48. package/dist/components/BannerBase/BannerBase.types.cjs +3 -0
  49. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -0
  50. package/dist/components/BannerBase/BannerBase.types.d.cts +53 -0
  51. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -0
  52. package/dist/components/BannerBase/BannerBase.types.d.mts +53 -0
  53. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -0
  54. package/dist/components/BannerBase/BannerBase.types.mjs +2 -0
  55. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -0
  56. package/dist/components/BannerBase/index.cjs +6 -0
  57. package/dist/components/BannerBase/index.cjs.map +1 -0
  58. package/dist/components/BannerBase/index.d.cts +3 -0
  59. package/dist/components/BannerBase/index.d.cts.map +1 -0
  60. package/dist/components/BannerBase/index.d.mts +3 -0
  61. package/dist/components/BannerBase/index.d.mts.map +1 -0
  62. package/dist/components/BannerBase/index.mjs +2 -0
  63. package/dist/components/BannerBase/index.mjs.map +1 -0
  64. package/dist/components/BottomSheet/BottomSheet.cjs +109 -0
  65. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -0
  66. package/dist/components/BottomSheet/BottomSheet.d.cts +16 -0
  67. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -0
  68. package/dist/components/BottomSheet/BottomSheet.d.mts +16 -0
  69. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -0
  70. package/dist/components/BottomSheet/BottomSheet.mjs +87 -0
  71. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
  72. package/dist/components/BottomSheet/BottomSheet.types.cjs +3 -0
  73. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -0
  74. package/dist/components/BottomSheet/BottomSheet.types.d.cts +28 -0
  75. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -0
  76. package/dist/components/BottomSheet/BottomSheet.types.d.mts +28 -0
  77. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -0
  78. package/dist/components/BottomSheet/BottomSheet.types.mjs +2 -0
  79. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -0
  80. package/dist/components/BottomSheet/index.cjs +6 -0
  81. package/dist/components/BottomSheet/index.cjs.map +1 -0
  82. package/dist/components/BottomSheet/index.d.cts +3 -0
  83. package/dist/components/BottomSheet/index.d.cts.map +1 -0
  84. package/dist/components/BottomSheet/index.d.mts +3 -0
  85. package/dist/components/BottomSheet/index.d.mts.map +1 -0
  86. package/dist/components/BottomSheet/index.mjs +2 -0
  87. package/dist/components/BottomSheet/index.mjs.map +1 -0
  88. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +207 -0
  89. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -0
  90. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs +18 -0
  91. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs.map +1 -0
  92. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts +14 -0
  93. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts.map +1 -0
  94. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts +14 -0
  95. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts.map +1 -0
  96. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs +15 -0
  97. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs.map +1 -0
  98. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +13 -0
  99. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -0
  100. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +13 -0
  101. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -0
  102. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +190 -0
  103. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -0
  104. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs +3 -0
  105. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -0
  106. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +56 -0
  107. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -0
  108. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +56 -0
  109. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -0
  110. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs +2 -0
  111. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -0
  112. package/dist/components/BottomSheetDialog/index.cjs +9 -0
  113. package/dist/components/BottomSheetDialog/index.cjs.map +1 -0
  114. package/dist/components/BottomSheetDialog/index.d.cts +3 -0
  115. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -0
  116. package/dist/components/BottomSheetDialog/index.d.mts +3 -0
  117. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -0
  118. package/dist/components/BottomSheetDialog/index.mjs +2 -0
  119. package/dist/components/BottomSheetDialog/index.mjs.map +1 -0
  120. package/dist/components/ButtonBase/ButtonBase.cjs +2 -9
  121. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  122. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  123. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  124. package/dist/components/ButtonBase/ButtonBase.mjs +3 -10
  125. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  126. package/dist/components/ButtonFilter/ButtonFilter.cjs +28 -0
  127. package/dist/components/ButtonFilter/ButtonFilter.cjs.map +1 -0
  128. package/dist/components/ButtonFilter/ButtonFilter.d.cts +4 -0
  129. package/dist/components/ButtonFilter/ButtonFilter.d.cts.map +1 -0
  130. package/dist/components/ButtonFilter/ButtonFilter.d.mts +4 -0
  131. package/dist/components/ButtonFilter/ButtonFilter.d.mts.map +1 -0
  132. package/dist/components/ButtonFilter/ButtonFilter.mjs +28 -0
  133. package/dist/components/ButtonFilter/ButtonFilter.mjs.map +1 -0
  134. package/dist/components/ButtonFilter/ButtonFilter.types.cjs +3 -0
  135. package/dist/components/ButtonFilter/ButtonFilter.types.cjs.map +1 -0
  136. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts +9 -0
  137. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts.map +1 -0
  138. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts +9 -0
  139. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts.map +1 -0
  140. package/dist/components/ButtonFilter/ButtonFilter.types.mjs +2 -0
  141. package/dist/components/ButtonFilter/ButtonFilter.types.mjs.map +1 -0
  142. package/dist/components/ButtonFilter/index.cjs +6 -0
  143. package/dist/components/ButtonFilter/index.cjs.map +1 -0
  144. package/dist/components/ButtonFilter/index.d.cts +3 -0
  145. package/dist/components/ButtonFilter/index.d.cts.map +1 -0
  146. package/dist/components/ButtonFilter/index.d.mts +3 -0
  147. package/dist/components/ButtonFilter/index.d.mts.map +1 -0
  148. package/dist/components/ButtonFilter/index.mjs +2 -0
  149. package/dist/components/ButtonFilter/index.mjs.map +1 -0
  150. package/dist/components/ButtonIcon/ButtonIcon.cjs +10 -4
  151. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  152. package/dist/components/ButtonIcon/ButtonIcon.d.cts +1 -1
  153. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  154. package/dist/components/ButtonIcon/ButtonIcon.d.mts +1 -1
  155. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  156. package/dist/components/ButtonIcon/ButtonIcon.mjs +11 -5
  157. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  158. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  159. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +4 -11
  160. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  161. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +4 -11
  162. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  163. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  164. package/dist/components/ButtonIcon/index.cjs +2 -1
  165. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  166. package/dist/components/ButtonIcon/index.d.cts +1 -1
  167. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  168. package/dist/components/ButtonIcon/index.d.mts +1 -1
  169. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  170. package/dist/components/ButtonIcon/index.mjs +1 -1
  171. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  172. package/dist/components/Icon/assets/ai.svg +1 -1
  173. package/dist/components/Icon/assets/candlestick.svg +1 -1
  174. package/dist/components/Input/Input.cjs +16 -5
  175. package/dist/components/Input/Input.cjs.map +1 -1
  176. package/dist/components/Input/Input.constants.cjs +69 -0
  177. package/dist/components/Input/Input.constants.cjs.map +1 -0
  178. package/dist/components/Input/Input.constants.d.cts +11 -0
  179. package/dist/components/Input/Input.constants.d.cts.map +1 -0
  180. package/dist/components/Input/Input.constants.d.mts +11 -0
  181. package/dist/components/Input/Input.constants.d.mts.map +1 -0
  182. package/dist/components/Input/Input.constants.mjs +66 -0
  183. package/dist/components/Input/Input.constants.mjs.map +1 -0
  184. package/dist/components/Input/Input.d.cts +2 -1
  185. package/dist/components/Input/Input.d.cts.map +1 -1
  186. package/dist/components/Input/Input.d.mts +2 -1
  187. package/dist/components/Input/Input.d.mts.map +1 -1
  188. package/dist/components/Input/Input.mjs +16 -5
  189. package/dist/components/Input/Input.mjs.map +1 -1
  190. package/dist/components/Input/Input.types.cjs.map +1 -1
  191. package/dist/components/Input/Input.types.d.cts +5 -1
  192. package/dist/components/Input/Input.types.d.cts.map +1 -1
  193. package/dist/components/Input/Input.types.d.mts +5 -1
  194. package/dist/components/Input/Input.types.d.mts.map +1 -1
  195. package/dist/components/Input/Input.types.mjs.map +1 -1
  196. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +33 -0
  197. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +1 -0
  198. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +14 -0
  199. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +1 -0
  200. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +14 -0
  201. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +1 -0
  202. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +35 -0
  203. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +1 -0
  204. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +39 -0
  205. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +1 -0
  206. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +25 -0
  207. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +1 -0
  208. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +25 -0
  209. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +1 -0
  210. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +41 -0
  211. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +1 -0
  212. package/dist/components/KeyValueRow/KeyValueRow.cjs +76 -0
  213. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -0
  214. package/dist/components/KeyValueRow/KeyValueRow.d.cts +25 -0
  215. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -0
  216. package/dist/components/KeyValueRow/KeyValueRow.d.mts +25 -0
  217. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -0
  218. package/dist/components/KeyValueRow/KeyValueRow.mjs +77 -0
  219. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -0
  220. package/dist/components/KeyValueRow/KeyValueRow.types.cjs +29 -0
  221. package/dist/components/KeyValueRow/KeyValueRow.types.cjs.map +1 -0
  222. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +177 -0
  223. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -0
  224. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +177 -0
  225. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -0
  226. package/dist/components/KeyValueRow/KeyValueRow.types.mjs +26 -0
  227. package/dist/components/KeyValueRow/KeyValueRow.types.mjs.map +1 -0
  228. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs +6 -0
  229. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs.map +1 -0
  230. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts +3 -0
  231. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts.map +1 -0
  232. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts +3 -0
  233. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts.map +1 -0
  234. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs +2 -0
  235. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs.map +1 -0
  236. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +29 -0
  237. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +1 -0
  238. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +17 -0
  239. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +1 -0
  240. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +17 -0
  241. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +1 -0
  242. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +31 -0
  243. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +1 -0
  244. package/dist/components/KeyValueRow/index.cjs +15 -0
  245. package/dist/components/KeyValueRow/index.cjs.map +1 -0
  246. package/dist/components/KeyValueRow/index.d.cts +3 -0
  247. package/dist/components/KeyValueRow/index.d.cts.map +1 -0
  248. package/dist/components/KeyValueRow/index.d.mts +3 -0
  249. package/dist/components/KeyValueRow/index.d.mts.map +1 -0
  250. package/dist/components/KeyValueRow/index.mjs +3 -0
  251. package/dist/components/KeyValueRow/index.mjs.map +1 -0
  252. package/dist/components/ListItem/ListItem.cjs +61 -0
  253. package/dist/components/ListItem/ListItem.cjs.map +1 -0
  254. package/dist/components/ListItem/ListItem.constants.cjs +14 -0
  255. package/dist/components/ListItem/ListItem.constants.cjs.map +1 -0
  256. package/dist/components/ListItem/ListItem.constants.d.cts +8 -0
  257. package/dist/components/ListItem/ListItem.constants.d.cts.map +1 -0
  258. package/dist/components/ListItem/ListItem.constants.d.mts +8 -0
  259. package/dist/components/ListItem/ListItem.constants.d.mts.map +1 -0
  260. package/dist/components/ListItem/ListItem.constants.mjs +11 -0
  261. package/dist/components/ListItem/ListItem.constants.mjs.map +1 -0
  262. package/dist/components/ListItem/ListItem.d.cts +4 -0
  263. package/dist/components/ListItem/ListItem.d.cts.map +1 -0
  264. package/dist/components/ListItem/ListItem.d.mts +4 -0
  265. package/dist/components/ListItem/ListItem.d.mts.map +1 -0
  266. package/dist/components/ListItem/ListItem.mjs +41 -0
  267. package/dist/components/ListItem/ListItem.mjs.map +1 -0
  268. package/dist/components/ListItem/ListItem.types.cjs +12 -0
  269. package/dist/components/ListItem/ListItem.types.cjs.map +1 -0
  270. package/dist/components/ListItem/ListItem.types.d.cts +60 -0
  271. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -0
  272. package/dist/components/ListItem/ListItem.types.d.mts +60 -0
  273. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -0
  274. package/dist/components/ListItem/ListItem.types.mjs +9 -0
  275. package/dist/components/ListItem/ListItem.types.mjs.map +1 -0
  276. package/dist/components/ListItem/index.cjs +8 -0
  277. package/dist/components/ListItem/index.cjs.map +1 -0
  278. package/dist/components/ListItem/index.d.cts +4 -0
  279. package/dist/components/ListItem/index.d.cts.map +1 -0
  280. package/dist/components/ListItem/index.d.mts +4 -0
  281. package/dist/components/ListItem/index.d.mts.map +1 -0
  282. package/dist/components/ListItem/index.mjs +3 -0
  283. package/dist/components/ListItem/index.mjs.map +1 -0
  284. package/dist/components/MainActionButton/MainActionButton.cjs +28 -0
  285. package/dist/components/MainActionButton/MainActionButton.cjs.map +1 -0
  286. package/dist/components/MainActionButton/MainActionButton.d.cts +4 -0
  287. package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -0
  288. package/dist/components/MainActionButton/MainActionButton.d.mts +4 -0
  289. package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -0
  290. package/dist/components/MainActionButton/MainActionButton.mjs +28 -0
  291. package/dist/components/MainActionButton/MainActionButton.mjs.map +1 -0
  292. package/dist/components/MainActionButton/MainActionButton.types.cjs +3 -0
  293. package/dist/components/MainActionButton/MainActionButton.types.cjs.map +1 -0
  294. package/dist/components/MainActionButton/MainActionButton.types.d.cts +41 -0
  295. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -0
  296. package/dist/components/MainActionButton/MainActionButton.types.d.mts +41 -0
  297. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -0
  298. package/dist/components/MainActionButton/MainActionButton.types.mjs +2 -0
  299. package/dist/components/MainActionButton/MainActionButton.types.mjs.map +1 -0
  300. package/dist/components/MainActionButton/index.cjs +6 -0
  301. package/dist/components/MainActionButton/index.cjs.map +1 -0
  302. package/dist/components/MainActionButton/index.d.cts +3 -0
  303. package/dist/components/MainActionButton/index.d.cts.map +1 -0
  304. package/dist/components/MainActionButton/index.d.mts +3 -0
  305. package/dist/components/MainActionButton/index.d.mts.map +1 -0
  306. package/dist/components/MainActionButton/index.mjs +2 -0
  307. package/dist/components/MainActionButton/index.mjs.map +1 -0
  308. package/dist/components/TabEmptyState/TabEmptyState.cjs +22 -0
  309. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -0
  310. package/dist/components/TabEmptyState/TabEmptyState.d.cts +4 -0
  311. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -0
  312. package/dist/components/TabEmptyState/TabEmptyState.d.mts +4 -0
  313. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -0
  314. package/dist/components/TabEmptyState/TabEmptyState.mjs +22 -0
  315. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -0
  316. package/dist/components/TabEmptyState/TabEmptyState.types.cjs +3 -0
  317. package/dist/components/TabEmptyState/TabEmptyState.types.cjs.map +1 -0
  318. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +45 -0
  319. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -0
  320. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +45 -0
  321. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -0
  322. package/dist/components/TabEmptyState/TabEmptyState.types.mjs +2 -0
  323. package/dist/components/TabEmptyState/TabEmptyState.types.mjs.map +1 -0
  324. package/dist/components/TabEmptyState/index.cjs +6 -0
  325. package/dist/components/TabEmptyState/index.cjs.map +1 -0
  326. package/dist/components/TabEmptyState/index.d.cts +3 -0
  327. package/dist/components/TabEmptyState/index.d.cts.map +1 -0
  328. package/dist/components/TabEmptyState/index.d.mts +3 -0
  329. package/dist/components/TabEmptyState/index.d.mts.map +1 -0
  330. package/dist/components/TabEmptyState/index.mjs +2 -0
  331. package/dist/components/TabEmptyState/index.mjs.map +1 -0
  332. package/dist/components/TextButton/TextButton.cjs +12 -36
  333. package/dist/components/TextButton/TextButton.cjs.map +1 -1
  334. package/dist/components/TextButton/TextButton.d.cts.map +1 -1
  335. package/dist/components/TextButton/TextButton.d.mts.map +1 -1
  336. package/dist/components/TextButton/TextButton.mjs +14 -38
  337. package/dist/components/TextButton/TextButton.mjs.map +1 -1
  338. package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
  339. package/dist/components/TextButton/TextButton.types.d.cts +8 -60
  340. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  341. package/dist/components/TextButton/TextButton.types.d.mts +8 -60
  342. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  343. package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
  344. package/dist/components/TextButton/index.cjs +1 -3
  345. package/dist/components/TextButton/index.cjs.map +1 -1
  346. package/dist/components/TextButton/index.d.cts +0 -1
  347. package/dist/components/TextButton/index.d.cts.map +1 -1
  348. package/dist/components/TextButton/index.d.mts +0 -1
  349. package/dist/components/TextButton/index.d.mts.map +1 -1
  350. package/dist/components/TextButton/index.mjs +0 -1
  351. package/dist/components/TextButton/index.mjs.map +1 -1
  352. package/dist/components/TextField/TextField.cjs +22 -8
  353. package/dist/components/TextField/TextField.cjs.map +1 -1
  354. package/dist/components/TextField/TextField.d.cts +0 -2
  355. package/dist/components/TextField/TextField.d.cts.map +1 -1
  356. package/dist/components/TextField/TextField.d.mts +0 -2
  357. package/dist/components/TextField/TextField.d.mts.map +1 -1
  358. package/dist/components/TextField/TextField.mjs +22 -8
  359. package/dist/components/TextField/TextField.mjs.map +1 -1
  360. package/dist/components/TextField/TextField.types.cjs +0 -10
  361. package/dist/components/TextField/TextField.types.cjs.map +1 -1
  362. package/dist/components/TextField/TextField.types.d.cts +0 -14
  363. package/dist/components/TextField/TextField.types.d.cts.map +1 -1
  364. package/dist/components/TextField/TextField.types.d.mts +0 -14
  365. package/dist/components/TextField/TextField.types.d.mts.map +1 -1
  366. package/dist/components/TextField/TextField.types.mjs +1 -9
  367. package/dist/components/TextField/TextField.types.mjs.map +1 -1
  368. package/dist/components/TextField/index.cjs +1 -3
  369. package/dist/components/TextField/index.cjs.map +1 -1
  370. package/dist/components/TextField/index.d.cts +0 -1
  371. package/dist/components/TextField/index.d.cts.map +1 -1
  372. package/dist/components/TextField/index.d.mts +0 -1
  373. package/dist/components/TextField/index.d.mts.map +1 -1
  374. package/dist/components/TextField/index.mjs +0 -1
  375. package/dist/components/TextField/index.mjs.map +1 -1
  376. package/dist/components/Toast/Toast.cjs +3 -2
  377. package/dist/components/Toast/Toast.cjs.map +1 -1
  378. package/dist/components/Toast/Toast.d.cts.map +1 -1
  379. package/dist/components/Toast/Toast.d.mts.map +1 -1
  380. package/dist/components/Toast/Toast.mjs +4 -3
  381. package/dist/components/Toast/Toast.mjs.map +1 -1
  382. package/dist/components/Toast/Toast.types.cjs +5 -5
  383. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  384. package/dist/components/Toast/Toast.types.d.cts +5 -4
  385. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  386. package/dist/components/Toast/Toast.types.d.mts +5 -4
  387. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  388. package/dist/components/Toast/Toast.types.mjs +4 -4
  389. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  390. package/dist/components/Toast/index.cjs +2 -2
  391. package/dist/components/Toast/index.cjs.map +1 -1
  392. package/dist/components/Toast/index.d.cts +1 -1
  393. package/dist/components/Toast/index.d.cts.map +1 -1
  394. package/dist/components/Toast/index.d.mts +1 -1
  395. package/dist/components/Toast/index.d.mts.map +1 -1
  396. package/dist/components/Toast/index.mjs +1 -1
  397. package/dist/components/Toast/index.mjs.map +1 -1
  398. package/dist/components/index.cjs +33 -4
  399. package/dist/components/index.cjs.map +1 -1
  400. package/dist/components/index.d.cts +28 -6
  401. package/dist/components/index.d.cts.map +1 -1
  402. package/dist/components/index.d.mts +28 -6
  403. package/dist/components/index.d.mts.map +1 -1
  404. package/dist/components/index.mjs +15 -4
  405. package/dist/components/index.mjs.map +1 -1
  406. package/dist/types/index.cjs +10 -11
  407. package/dist/types/index.cjs.map +1 -1
  408. package/dist/types/index.d.cts +8 -9
  409. package/dist/types/index.d.cts.map +1 -1
  410. package/dist/types/index.d.mts +8 -9
  411. package/dist/types/index.d.mts.map +1 -1
  412. package/dist/types/index.mjs +9 -10
  413. package/dist/types/index.mjs.map +1 -1
  414. package/package.json +2 -2
  415. package/dist/components/TextButton/TextButton.constants.cjs +0 -12
  416. package/dist/components/TextButton/TextButton.constants.cjs.map +0 -1
  417. package/dist/components/TextButton/TextButton.constants.d.cts +0 -4
  418. package/dist/components/TextButton/TextButton.constants.d.cts.map +0 -1
  419. package/dist/components/TextButton/TextButton.constants.d.mts +0 -4
  420. package/dist/components/TextButton/TextButton.constants.d.mts.map +0 -1
  421. package/dist/components/TextButton/TextButton.constants.mjs +0 -9
  422. package/dist/components/TextButton/TextButton.constants.mjs.map +0 -1
  423. package/dist/components/TextField/TextField.constants.cjs +0 -13
  424. package/dist/components/TextField/TextField.constants.cjs.map +0 -1
  425. package/dist/components/TextField/TextField.constants.d.cts +0 -6
  426. package/dist/components/TextField/TextField.constants.d.cts.map +0 -1
  427. package/dist/components/TextField/TextField.constants.d.mts +0 -6
  428. package/dist/components/TextField/TextField.constants.d.mts.map +0 -1
  429. package/dist/components/TextField/TextField.constants.mjs +0 -10
  430. package/dist/components/TextField/TextField.constants.mjs.map +0 -1
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import type { KeyValueSectionProps } from "../KeyValueRow.types.cjs";
3
+ /**
4
+ * A container representing either the left or right side of the KeyValueRow.
5
+ * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
6
+ *
7
+ * @param props - Component props.
8
+ * @param props.children - The child components.
9
+ * @param props.align - The alignment of the section.
10
+ * @param props.twClassName - Optional Tailwind class names to override root styles.
11
+ * @param props.style - Optional additional styles for the root element.
12
+ *
13
+ * @returns The rendered KeyValueSection component.
14
+ */
15
+ declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
+ export default KeyValueSection;
17
+ //# sourceMappingURL=KeyValueSection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import type { KeyValueSectionProps } from "../KeyValueRow.types.mjs";
3
+ /**
4
+ * A container representing either the left or right side of the KeyValueRow.
5
+ * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
6
+ *
7
+ * @param props - Component props.
8
+ * @param props.children - The child components.
9
+ * @param props.align - The alignment of the section.
10
+ * @param props.twClassName - Optional Tailwind class names to override root styles.
11
+ * @param props.style - Optional additional styles for the root element.
12
+ *
13
+ * @returns The rendered KeyValueSection component.
14
+ */
15
+ declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
+ export default KeyValueSection;
17
+ //# sourceMappingURL=KeyValueSection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,31 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { View } from "react-native/index.js";
11
+ import { KeyValueRowSectionAlignments } from "../KeyValueRow.types.mjs";
12
+ /**
13
+ * A container representing either the left or right side of the KeyValueRow.
14
+ * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
15
+ *
16
+ * @param props - Component props.
17
+ * @param props.children - The child components.
18
+ * @param props.align - The alignment of the section.
19
+ * @param props.twClassName - Optional Tailwind class names to override root styles.
20
+ * @param props.style - Optional additional styles for the root element.
21
+ *
22
+ * @returns The rendered KeyValueSection component.
23
+ */
24
+ const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
25
+ const tw = useTailwind();
26
+ return (<View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
27
+ {children}
28
+ </View>);
29
+ };
30
+ export default KeyValueSection;
31
+ //# sourceMappingURL=KeyValueSection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nconst KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n\nexport default KeyValueSection;\n"]}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.default = exports.KeyValueRowStubs = void 0;
7
+ var KeyValueRow_1 = require("./KeyValueRow.cjs");
8
+ Object.defineProperty(exports, "KeyValueRowStubs", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRowStubs; } });
9
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(KeyValueRow_1).default; } });
10
+ var KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
11
+ Object.defineProperty(exports, "KeyValueRowSectionAlignments", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowSectionAlignments; } });
12
+ Object.defineProperty(exports, "KeyValueRowFieldIconSides", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowFieldIconSides; } });
13
+ Object.defineProperty(exports, "TooltipSizes", { enumerable: true, get: function () { return KeyValueRow_types_1.TooltipSizes; } });
14
+ Object.defineProperty(exports, "IconSizes", { enumerable: true, get: function () { return KeyValueRow_types_1.IconSizes; } });
15
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;;;;AAAA,iDAA0D;AAAjD,+GAAA,gBAAgB,OAAA;AAAE,uHAAA,OAAO,OAAA;AAClC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRowStubs, default } 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"]}
@@ -0,0 +1,3 @@
1
+ export { KeyValueRowStubs, default } 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";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,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"}
@@ -0,0 +1,3 @@
1
+ export { KeyValueRowStubs, default } 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";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,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"}
@@ -0,0 +1,3 @@
1
+ export { KeyValueRowStubs, default } from "./KeyValueRow.mjs";
2
+ export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes } from "./KeyValueRow.types.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRowStubs, default } 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"]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ListItem = void 0;
27
+ const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
28
+ const react_1 = __importStar(require("react"));
29
+ const react_native_1 = require("react-native/index.js");
30
+ const Box_1 = require("../Box/index.cjs");
31
+ const ListItem_constants_1 = require("./ListItem.constants.cjs");
32
+ const ListItem_types_1 = require("./ListItem.types.cjs");
33
+ const VERTICAL_ALIGNMENT_MAP = {
34
+ [ListItem_types_1.ListItemVerticalAlignment.Top]: Box_1.BoxAlignItems.Start,
35
+ [ListItem_types_1.ListItemVerticalAlignment.Center]: Box_1.BoxAlignItems.Center,
36
+ [ListItem_types_1.ListItemVerticalAlignment.Bottom]: Box_1.BoxAlignItems.End,
37
+ };
38
+ const ListItem = ({ children, topAccessory, bottomAccessory, topAccessoryGap = ListItem_constants_1.DEFAULT_LISTITEM_TOPACCESSORYGAP, bottomAccessoryGap = ListItem_constants_1.DEFAULT_LISTITEM_BOTTOMACCESSORYGAP, gap = ListItem_constants_1.DEFAULT_LISTITEM_GAP, verticalAlignment = ListItem_constants_1.DEFAULT_LISTITEM_VERTICALALIGNMENT, twClassName, style, ...props }) => {
39
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
40
+ return (<Box_1.Box style={style
41
+ ? [tw.style('p-4', twClassName), style]
42
+ : tw.style('p-4', twClassName)} {...props}>
43
+ {topAccessory && (<react_native_1.View testID={ListItem_constants_1.TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER} style={{ marginBottom: topAccessoryGap }}>
44
+ {topAccessory}
45
+ </react_native_1.View>)}
46
+ <Box_1.Box flexDirection={Box_1.BoxFlexDirection.Row} alignItems={VERTICAL_ALIGNMENT_MAP[verticalAlignment]}>
47
+ {react_1.Children.toArray(children)
48
+ .filter((child) => Boolean(child))
49
+ .map((child, index) => (<react_1.default.Fragment key={index}>
50
+ {index > 0 && (<react_native_1.View style={{ width: gap }} testID={ListItem_constants_1.TESTID_LISTITEM_GAP} accessible={false}/>)}
51
+ {child}
52
+ </react_1.default.Fragment>))}
53
+ </Box_1.Box>
54
+ {bottomAccessory && (<react_native_1.View testID={ListItem_constants_1.TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER} style={{ marginTop: bottomAccessoryGap }}>
55
+ {bottomAccessory}
56
+ </react_native_1.View>)}
57
+ </Box_1.Box>);
58
+ };
59
+ exports.ListItem = ListItem;
60
+ exports.ListItem.displayName = 'ListItem';
61
+ //# sourceMappingURL=ListItem.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAwC;AACxC,wDAAoD;AAEpD,0CAA8D;AAE9D,iEAQ8B;AAE9B,yDAA6D;AAE7D,MAAM,sBAAsB,GAC1B;IACE,CAAC,0CAAyB,CAAC,GAAG,CAAC,EAAE,mBAAa,CAAC,KAAK;IACpD,CAAC,0CAAyB,CAAC,MAAM,CAAC,EAAE,mBAAa,CAAC,MAAM;IACxD,CAAC,0CAAyB,CAAC,MAAM,CAAC,EAAE,mBAAa,CAAC,GAAG;CACtD,CAAC;AAEG,MAAM,QAAQ,GAA4B,CAAC,EAChD,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,eAAe,GAAG,qDAAgC,EAClD,kBAAkB,GAAG,wDAAmC,EACxD,GAAG,GAAG,yCAAoB,EAC1B,iBAAiB,GAAG,uDAAkC,EACtD,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,SAAG,CACF,KAAK,CAAC,CACJ,KAAK;YACH,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;YACvC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CACjC,CACD,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,YAAY,IAAI,CACf,CAAC,mBAAI,CACH,MAAM,CAAC,CAAC,0DAAqC,CAAC,CAC9C,KAAK,CAAC,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,CAEzC;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,mBAAI,CAAC,CACR,CACD;MAAA,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC,CAEtD;QAAA,CAAC,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;aACxB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aACjC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACrB,CAAC,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CACzB;cAAA,CAAC,KAAK,GAAG,CAAC,IAAI,CACZ,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,GAAqB,EAAE,CAAC,CACxC,MAAM,CAAC,CAAC,wCAAmB,CAAC,CAC5B,UAAU,CAAC,CAAC,KAAK,CAAC,EAClB,CACH,CACD;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,eAAK,CAAC,QAAQ,CAAC,CAClB,CAAC,CACN;MAAA,EAAE,SAAG,CACL;MAAA,CAAC,eAAe,IAAI,CAClB,CAAC,mBAAI,CACH,MAAM,CAAC,CAAC,6DAAwC,CAAC,CACjD,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,CAEzC;UAAA,CAAC,eAAe,CAClB;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,QAAQ,YA4DnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { Children } from 'react';\nimport { DimensionValue, View } from 'react-native';\n\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\n\nimport {\n DEFAULT_LISTITEM_BOTTOMACCESSORYGAP,\n DEFAULT_LISTITEM_GAP,\n DEFAULT_LISTITEM_TOPACCESSORYGAP,\n DEFAULT_LISTITEM_VERTICALALIGNMENT,\n TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER,\n TESTID_LISTITEM_GAP,\n TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER,\n} from './ListItem.constants';\nimport type { ListItemProps } from './ListItem.types';\nimport { ListItemVerticalAlignment } from './ListItem.types';\n\nconst VERTICAL_ALIGNMENT_MAP: Record<ListItemVerticalAlignment, BoxAlignItems> =\n {\n [ListItemVerticalAlignment.Top]: BoxAlignItems.Start,\n [ListItemVerticalAlignment.Center]: BoxAlignItems.Center,\n [ListItemVerticalAlignment.Bottom]: BoxAlignItems.End,\n };\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n topAccessory,\n bottomAccessory,\n topAccessoryGap = DEFAULT_LISTITEM_TOPACCESSORYGAP,\n bottomAccessoryGap = DEFAULT_LISTITEM_BOTTOMACCESSORYGAP,\n gap = DEFAULT_LISTITEM_GAP,\n verticalAlignment = DEFAULT_LISTITEM_VERTICALALIGNMENT,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <Box\n style={\n style\n ? [tw.style('p-4', twClassName), style]\n : tw.style('p-4', twClassName)\n }\n {...props}\n >\n {topAccessory && (\n <View\n testID={TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER}\n style={{ marginBottom: topAccessoryGap }}\n >\n {topAccessory}\n </View>\n )}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={VERTICAL_ALIGNMENT_MAP[verticalAlignment]}\n >\n {Children.toArray(children)\n .filter((child) => Boolean(child))\n .map((child, index) => (\n <React.Fragment key={index}>\n {index > 0 && (\n <View\n style={{ width: gap as DimensionValue }}\n testID={TESTID_LISTITEM_GAP}\n accessible={false}\n />\n )}\n {child}\n </React.Fragment>\n ))}\n </Box>\n {bottomAccessory && (\n <View\n testID={TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER}\n style={{ marginTop: bottomAccessoryGap }}\n >\n {bottomAccessory}\n </View>\n )}\n </Box>\n );\n};\n\nListItem.displayName = 'ListItem';\n"]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = exports.DEFAULT_LISTITEM_TOPACCESSORYGAP = exports.DEFAULT_LISTITEM_VERTICALALIGNMENT = exports.DEFAULT_LISTITEM_GAP = exports.TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER = exports.TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER = exports.TESTID_LISTITEM_GAP = void 0;
4
+ const ListItem_types_1 = require("./ListItem.types.cjs");
5
+ // Test IDs
6
+ exports.TESTID_LISTITEM_GAP = 'listitem-gap';
7
+ exports.TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER = 'listitem-top-accessory-wrapper';
8
+ exports.TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER = 'listitem-bottom-accessory-wrapper';
9
+ // Defaults
10
+ exports.DEFAULT_LISTITEM_GAP = 16;
11
+ exports.DEFAULT_LISTITEM_VERTICALALIGNMENT = ListItem_types_1.ListItemVerticalAlignment.Center;
12
+ exports.DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;
13
+ exports.DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;
14
+ //# sourceMappingURL=ListItem.constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.constants.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.constants.ts"],"names":[],"mappings":";;;AAAA,yDAA6D;AAE7D,WAAW;AACE,QAAA,mBAAmB,GAAG,cAAc,CAAC;AACrC,QAAA,qCAAqC,GAChD,gCAAgC,CAAC;AACtB,QAAA,wCAAwC,GACnD,mCAAmC,CAAC;AAEtC,WAAW;AACE,QAAA,oBAAoB,GAAG,EAAE,CAAC;AAC1B,QAAA,kCAAkC,GAC7C,0CAAyB,CAAC,MAAM,CAAC;AACtB,QAAA,gCAAgC,GAAG,CAAC,CAAC;AACrC,QAAA,mCAAmC,GAAG,CAAC,CAAC","sourcesContent":["import { ListItemVerticalAlignment } from './ListItem.types';\n\n// Test IDs\nexport const TESTID_LISTITEM_GAP = 'listitem-gap';\nexport const TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER =\n 'listitem-top-accessory-wrapper';\nexport const TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER =\n 'listitem-bottom-accessory-wrapper';\n\n// Defaults\nexport const DEFAULT_LISTITEM_GAP = 16;\nexport const DEFAULT_LISTITEM_VERTICALALIGNMENT =\n ListItemVerticalAlignment.Center;\nexport const DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;\nexport const DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;\n"]}
@@ -0,0 +1,8 @@
1
+ export declare const TESTID_LISTITEM_GAP = "listitem-gap";
2
+ export declare const TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER = "listitem-top-accessory-wrapper";
3
+ export declare const TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER = "listitem-bottom-accessory-wrapper";
4
+ export declare const DEFAULT_LISTITEM_GAP = 16;
5
+ export declare const DEFAULT_LISTITEM_VERTICALALIGNMENT: "center";
6
+ export declare const DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;
7
+ export declare const DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;
8
+ //# sourceMappingURL=ListItem.constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.constants.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qCAAqC,mCAChB,CAAC;AACnC,eAAO,MAAM,wCAAwC,sCAChB,CAAC;AAGtC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,kCAAkC,UACb,CAAC;AACnC,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAClD,eAAO,MAAM,mCAAmC,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const TESTID_LISTITEM_GAP = "listitem-gap";
2
+ export declare const TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER = "listitem-top-accessory-wrapper";
3
+ export declare const TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER = "listitem-bottom-accessory-wrapper";
4
+ export declare const DEFAULT_LISTITEM_GAP = 16;
5
+ export declare const DEFAULT_LISTITEM_VERTICALALIGNMENT: "center";
6
+ export declare const DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;
7
+ export declare const DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;
8
+ //# sourceMappingURL=ListItem.constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.constants.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qCAAqC,mCAChB,CAAC;AACnC,eAAO,MAAM,wCAAwC,sCAChB,CAAC;AAGtC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,kCAAkC,UACb,CAAC;AACnC,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAClD,eAAO,MAAM,mCAAmC,IAAI,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ListItemVerticalAlignment } from "./ListItem.types.mjs";
2
+ // Test IDs
3
+ export const TESTID_LISTITEM_GAP = 'listitem-gap';
4
+ export const TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER = 'listitem-top-accessory-wrapper';
5
+ export const TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER = 'listitem-bottom-accessory-wrapper';
6
+ // Defaults
7
+ export const DEFAULT_LISTITEM_GAP = 16;
8
+ export const DEFAULT_LISTITEM_VERTICALALIGNMENT = ListItemVerticalAlignment.Center;
9
+ export const DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;
10
+ export const DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;
11
+ //# sourceMappingURL=ListItem.constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.constants.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAE7D,WAAW;AACX,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAClD,MAAM,CAAC,MAAM,qCAAqC,GAChD,gCAAgC,CAAC;AACnC,MAAM,CAAC,MAAM,wCAAwC,GACnD,mCAAmC,CAAC;AAEtC,WAAW;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,kCAAkC,GAC7C,yBAAyB,CAAC,MAAM,CAAC;AACnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAClD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC","sourcesContent":["import { ListItemVerticalAlignment } from './ListItem.types';\n\n// Test IDs\nexport const TESTID_LISTITEM_GAP = 'listitem-gap';\nexport const TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER =\n 'listitem-top-accessory-wrapper';\nexport const TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER =\n 'listitem-bottom-accessory-wrapper';\n\n// Defaults\nexport const DEFAULT_LISTITEM_GAP = 16;\nexport const DEFAULT_LISTITEM_VERTICALALIGNMENT =\n ListItemVerticalAlignment.Center;\nexport const DEFAULT_LISTITEM_TOPACCESSORYGAP = 0;\nexport const DEFAULT_LISTITEM_BOTTOMACCESSORYGAP = 0;\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ListItemProps } from "./ListItem.types.cjs";
3
+ export declare const ListItem: React.FC<ListItemProps>;
4
+ //# sourceMappingURL=ListItem.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAcxC,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAUtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4D5C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ListItemProps } from "./ListItem.types.mjs";
3
+ export declare const ListItem: React.FC<ListItemProps>;
4
+ //# sourceMappingURL=ListItem.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAcxC,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAUtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4D5C,CAAC"}
@@ -0,0 +1,41 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
+ import $React, { Children } from "react";
9
+ const React = $importDefault($React);
10
+ import { View } from "react-native/index.js";
11
+ import { Box, BoxAlignItems, BoxFlexDirection } from "../Box/index.mjs";
12
+ import { DEFAULT_LISTITEM_BOTTOMACCESSORYGAP, DEFAULT_LISTITEM_GAP, DEFAULT_LISTITEM_TOPACCESSORYGAP, DEFAULT_LISTITEM_VERTICALALIGNMENT, TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER, TESTID_LISTITEM_GAP, TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER } from "./ListItem.constants.mjs";
13
+ import { ListItemVerticalAlignment } from "./ListItem.types.mjs";
14
+ const VERTICAL_ALIGNMENT_MAP = {
15
+ [ListItemVerticalAlignment.Top]: BoxAlignItems.Start,
16
+ [ListItemVerticalAlignment.Center]: BoxAlignItems.Center,
17
+ [ListItemVerticalAlignment.Bottom]: BoxAlignItems.End,
18
+ };
19
+ export const ListItem = ({ children, topAccessory, bottomAccessory, topAccessoryGap = DEFAULT_LISTITEM_TOPACCESSORYGAP, bottomAccessoryGap = DEFAULT_LISTITEM_BOTTOMACCESSORYGAP, gap = DEFAULT_LISTITEM_GAP, verticalAlignment = DEFAULT_LISTITEM_VERTICALALIGNMENT, twClassName, style, ...props }) => {
20
+ const tw = useTailwind();
21
+ return (<Box style={style
22
+ ? [tw.style('p-4', twClassName), style]
23
+ : tw.style('p-4', twClassName)} {...props}>
24
+ {topAccessory && (<View testID={TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER} style={{ marginBottom: topAccessoryGap }}>
25
+ {topAccessory}
26
+ </View>)}
27
+ <Box flexDirection={BoxFlexDirection.Row} alignItems={VERTICAL_ALIGNMENT_MAP[verticalAlignment]}>
28
+ {Children.toArray(children)
29
+ .filter((child) => Boolean(child))
30
+ .map((child, index) => (<React.Fragment key={index}>
31
+ {index > 0 && (<View style={{ width: gap }} testID={TESTID_LISTITEM_GAP} accessible={false}/>)}
32
+ {child}
33
+ </React.Fragment>))}
34
+ </Box>
35
+ {bottomAccessory && (<View testID={TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER} style={{ marginTop: bottomAccessoryGap }}>
36
+ {bottomAccessory}
37
+ </View>)}
38
+ </Box>);
39
+ };
40
+ ListItem.displayName = 'ListItem';
41
+ //# sourceMappingURL=ListItem.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AACxC,OAAO,EAAkB,IAAI,EAAE,8BAAqB;AAEpD,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,yBAAe;AAE9D,OAAO,EACL,mCAAmC,EACnC,oBAAoB,EACpB,gCAAgC,EAChC,kCAAkC,EAClC,wCAAwC,EACxC,mBAAmB,EACnB,qCAAqC,EACtC,iCAA6B;AAE9B,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAE7D,MAAM,sBAAsB,GAC1B;IACE,CAAC,yBAAyB,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK;IACpD,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM;IACxD,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAAG;CACtD,CAAC;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,eAAe,GAAG,gCAAgC,EAClD,kBAAkB,GAAG,mCAAmC,EACxD,GAAG,GAAG,oBAAoB,EAC1B,iBAAiB,GAAG,kCAAkC,EACtD,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,GAAG,CACF,KAAK,CAAC,CACJ,KAAK;YACH,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;YACvC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CACjC,CACD,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,YAAY,IAAI,CACf,CAAC,IAAI,CACH,MAAM,CAAC,CAAC,qCAAqC,CAAC,CAC9C,KAAK,CAAC,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,CAEzC;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,IAAI,CAAC,CACR,CACD;MAAA,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC,CAEtD;QAAA,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;aACxB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aACjC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACrB,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CACzB;cAAA,CAAC,KAAK,GAAG,CAAC,IAAI,CACZ,CAAC,IAAI,CACH,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,GAAqB,EAAE,CAAC,CACxC,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAC5B,UAAU,CAAC,CAAC,KAAK,CAAC,EAClB,CACH,CACD;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,KAAK,CAAC,QAAQ,CAAC,CAClB,CAAC,CACN;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,eAAe,IAAI,CAClB,CAAC,IAAI,CACH,MAAM,CAAC,CAAC,wCAAwC,CAAC,CACjD,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,CAEzC;UAAA,CAAC,eAAe,CAClB;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { Children } from 'react';\nimport { DimensionValue, View } from 'react-native';\n\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\n\nimport {\n DEFAULT_LISTITEM_BOTTOMACCESSORYGAP,\n DEFAULT_LISTITEM_GAP,\n DEFAULT_LISTITEM_TOPACCESSORYGAP,\n DEFAULT_LISTITEM_VERTICALALIGNMENT,\n TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER,\n TESTID_LISTITEM_GAP,\n TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER,\n} from './ListItem.constants';\nimport type { ListItemProps } from './ListItem.types';\nimport { ListItemVerticalAlignment } from './ListItem.types';\n\nconst VERTICAL_ALIGNMENT_MAP: Record<ListItemVerticalAlignment, BoxAlignItems> =\n {\n [ListItemVerticalAlignment.Top]: BoxAlignItems.Start,\n [ListItemVerticalAlignment.Center]: BoxAlignItems.Center,\n [ListItemVerticalAlignment.Bottom]: BoxAlignItems.End,\n };\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n topAccessory,\n bottomAccessory,\n topAccessoryGap = DEFAULT_LISTITEM_TOPACCESSORYGAP,\n bottomAccessoryGap = DEFAULT_LISTITEM_BOTTOMACCESSORYGAP,\n gap = DEFAULT_LISTITEM_GAP,\n verticalAlignment = DEFAULT_LISTITEM_VERTICALALIGNMENT,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <Box\n style={\n style\n ? [tw.style('p-4', twClassName), style]\n : tw.style('p-4', twClassName)\n }\n {...props}\n >\n {topAccessory && (\n <View\n testID={TESTID_LISTITEM_TOP_ACCESSORY_WRAPPER}\n style={{ marginBottom: topAccessoryGap }}\n >\n {topAccessory}\n </View>\n )}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={VERTICAL_ALIGNMENT_MAP[verticalAlignment]}\n >\n {Children.toArray(children)\n .filter((child) => Boolean(child))\n .map((child, index) => (\n <React.Fragment key={index}>\n {index > 0 && (\n <View\n style={{ width: gap as DimensionValue }}\n testID={TESTID_LISTITEM_GAP}\n accessible={false}\n />\n )}\n {child}\n </React.Fragment>\n ))}\n </Box>\n {bottomAccessory && (\n <View\n testID={TESTID_LISTITEM_BOTTOM_ACCESSORY_WRAPPER}\n style={{ marginTop: bottomAccessoryGap }}\n >\n {bottomAccessory}\n </View>\n )}\n </Box>\n );\n};\n\nListItem.displayName = 'ListItem';\n"]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListItemVerticalAlignment = void 0;
4
+ /**
5
+ * Vertical alignment options for children inside the ListItem row.
6
+ */
7
+ exports.ListItemVerticalAlignment = {
8
+ Top: 'top',
9
+ Center: 'center',
10
+ Bottom: 'bottom',
11
+ };
12
+ //# sourceMappingURL=ListItem.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\n/**\n * Vertical alignment options for children inside the ListItem row.\n */\nexport const ListItemVerticalAlignment = {\n Top: 'top',\n Center: 'center',\n Bottom: 'bottom',\n} as const;\n\nexport type ListItemVerticalAlignment =\n (typeof ListItemVerticalAlignment)[keyof typeof ListItemVerticalAlignment];\n\n/**\n * ListItem component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type ListItemProps = {\n /**\n * Content to display inside the list item row.\n */\n children?: ReactNode;\n /**\n * Optional content displayed above the list item row.\n */\n topAccessory?: ReactNode;\n /**\n * Optional content displayed below the list item row.\n */\n bottomAccessory?: ReactNode;\n /**\n * Gap in pixels between the topAccessory and the row.\n *\n * @default 0\n */\n topAccessoryGap?: number;\n /**\n * Gap in pixels between the row and the bottomAccessory.\n *\n * @default 0\n */\n bottomAccessoryGap?: number;\n /**\n * Horizontal spacing between each child inside the row.\n *\n * @default 16\n */\n gap?: number | string;\n /**\n * Vertical alignment of children inside the row.\n *\n * @default ListItemVerticalAlignment.Center\n */\n verticalAlignment?: ListItemVerticalAlignment;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,60 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ /**
4
+ * Vertical alignment options for children inside the ListItem row.
5
+ */
6
+ export declare const ListItemVerticalAlignment: {
7
+ readonly Top: "top";
8
+ readonly Center: "center";
9
+ readonly Bottom: "bottom";
10
+ };
11
+ export type ListItemVerticalAlignment = (typeof ListItemVerticalAlignment)[keyof typeof ListItemVerticalAlignment];
12
+ /**
13
+ * ListItem component props.
14
+ *
15
+ * Extends `ViewProps` so the root View inherits standard React Native
16
+ * props such as `testID` and `accessibilityLabel`.
17
+ */
18
+ export type ListItemProps = {
19
+ /**
20
+ * Content to display inside the list item row.
21
+ */
22
+ children?: ReactNode;
23
+ /**
24
+ * Optional content displayed above the list item row.
25
+ */
26
+ topAccessory?: ReactNode;
27
+ /**
28
+ * Optional content displayed below the list item row.
29
+ */
30
+ bottomAccessory?: ReactNode;
31
+ /**
32
+ * Gap in pixels between the topAccessory and the row.
33
+ *
34
+ * @default 0
35
+ */
36
+ topAccessoryGap?: number;
37
+ /**
38
+ * Gap in pixels between the row and the bottomAccessory.
39
+ *
40
+ * @default 0
41
+ */
42
+ bottomAccessoryGap?: number;
43
+ /**
44
+ * Horizontal spacing between each child inside the row.
45
+ *
46
+ * @default 16
47
+ */
48
+ gap?: number | string;
49
+ /**
50
+ * Vertical alignment of children inside the row.
51
+ *
52
+ * @default ListItemVerticalAlignment.Center
53
+ */
54
+ verticalAlignment?: ListItemVerticalAlignment;
55
+ /**
56
+ * Optional Tailwind class names to override default styles on the root element.
57
+ */
58
+ twClassName?: string;
59
+ } & ViewProps;
60
+ //# sourceMappingURL=ListItem.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,60 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ /**
4
+ * Vertical alignment options for children inside the ListItem row.
5
+ */
6
+ export declare const ListItemVerticalAlignment: {
7
+ readonly Top: "top";
8
+ readonly Center: "center";
9
+ readonly Bottom: "bottom";
10
+ };
11
+ export type ListItemVerticalAlignment = (typeof ListItemVerticalAlignment)[keyof typeof ListItemVerticalAlignment];
12
+ /**
13
+ * ListItem component props.
14
+ *
15
+ * Extends `ViewProps` so the root View inherits standard React Native
16
+ * props such as `testID` and `accessibilityLabel`.
17
+ */
18
+ export type ListItemProps = {
19
+ /**
20
+ * Content to display inside the list item row.
21
+ */
22
+ children?: ReactNode;
23
+ /**
24
+ * Optional content displayed above the list item row.
25
+ */
26
+ topAccessory?: ReactNode;
27
+ /**
28
+ * Optional content displayed below the list item row.
29
+ */
30
+ bottomAccessory?: ReactNode;
31
+ /**
32
+ * Gap in pixels between the topAccessory and the row.
33
+ *
34
+ * @default 0
35
+ */
36
+ topAccessoryGap?: number;
37
+ /**
38
+ * Gap in pixels between the row and the bottomAccessory.
39
+ *
40
+ * @default 0
41
+ */
42
+ bottomAccessoryGap?: number;
43
+ /**
44
+ * Horizontal spacing between each child inside the row.
45
+ *
46
+ * @default 16
47
+ */
48
+ gap?: number | string;
49
+ /**
50
+ * Vertical alignment of children inside the row.
51
+ *
52
+ * @default ListItemVerticalAlignment.Center
53
+ */
54
+ verticalAlignment?: ListItemVerticalAlignment;
55
+ /**
56
+ * Optional Tailwind class names to override default styles on the root element.
57
+ */
58
+ twClassName?: string;
59
+ } & ViewProps;
60
+ //# sourceMappingURL=ListItem.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;IAC9C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Vertical alignment options for children inside the ListItem row.
3
+ */
4
+ export const ListItemVerticalAlignment = {
5
+ Top: 'top',
6
+ Center: 'center',
7
+ Bottom: 'bottom',
8
+ };
9
+ //# sourceMappingURL=ListItem.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\n/**\n * Vertical alignment options for children inside the ListItem row.\n */\nexport const ListItemVerticalAlignment = {\n Top: 'top',\n Center: 'center',\n Bottom: 'bottom',\n} as const;\n\nexport type ListItemVerticalAlignment =\n (typeof ListItemVerticalAlignment)[keyof typeof ListItemVerticalAlignment];\n\n/**\n * ListItem component props.\n *\n * Extends `ViewProps` so the root View inherits standard React Native\n * props such as `testID` and `accessibilityLabel`.\n */\nexport type ListItemProps = {\n /**\n * Content to display inside the list item row.\n */\n children?: ReactNode;\n /**\n * Optional content displayed above the list item row.\n */\n topAccessory?: ReactNode;\n /**\n * Optional content displayed below the list item row.\n */\n bottomAccessory?: ReactNode;\n /**\n * Gap in pixels between the topAccessory and the row.\n *\n * @default 0\n */\n topAccessoryGap?: number;\n /**\n * Gap in pixels between the row and the bottomAccessory.\n *\n * @default 0\n */\n bottomAccessoryGap?: number;\n /**\n * Horizontal spacing between each child inside the row.\n *\n * @default 16\n */\n gap?: number | string;\n /**\n * Vertical alignment of children inside the row.\n *\n * @default ListItemVerticalAlignment.Center\n */\n verticalAlignment?: ListItemVerticalAlignment;\n /**\n * Optional Tailwind class names to override default styles on the root element.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListItemVerticalAlignment = exports.ListItem = void 0;
4
+ var ListItem_1 = require("./ListItem.cjs");
5
+ Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return ListItem_1.ListItem; } });
6
+ var ListItem_types_1 = require("./ListItem.types.cjs");
7
+ Object.defineProperty(exports, "ListItemVerticalAlignment", { enumerable: true, get: function () { return ListItem_types_1.ListItemVerticalAlignment; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uDAA6D;AAApD,2HAAA,yBAAyB,OAAA","sourcesContent":["export { ListItem } from './ListItem';\nexport { ListItemVerticalAlignment } from './ListItem.types';\nexport type { ListItemProps } from './ListItem.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { ListItem } from "./ListItem.cjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.cjs";
3
+ export type { ListItemProps } from "./ListItem.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAC7D,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,4 @@
1
+ export { ListItem } from "./ListItem.mjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.mjs";
3
+ export type { ListItemProps } from "./ListItem.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB;AAC7D,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,3 @@
1
+ export { ListItem } from "./ListItem.mjs";
2
+ export { ListItemVerticalAlignment } from "./ListItem.types.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,yBAAyB,EAAE,6BAAyB","sourcesContent":["export { ListItem } from './ListItem';\nexport { ListItemVerticalAlignment } from './ListItem.types';\nexport type { ListItemProps } from './ListItem.types';\n"]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MainActionButton = void 0;
7
+ const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
+ const react_1 = __importDefault(require("react"));
9
+ const Icon_1 = require("../Icon/index.cjs");
10
+ const ButtonAnimated_1 = require("../temp-components/ButtonAnimated/index.cjs");
11
+ const Text_1 = require("../Text/index.cjs");
12
+ const MainActionButton = ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled = false, twClassName = '', ...props }) => {
13
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
14
+ return (<ButtonAnimated_1.ButtonAnimated disabled={isDisabled} accessible onPress={!isDisabled ? onPress : undefined} onPressIn={!isDisabled ? onPressIn : undefined} onPressOut={!isDisabled ? onPressOut : undefined} style={({ pressed }) => {
15
+ const baseStyle = tw.style('items-center justify-center rounded-xl px-1 py-4 min-w-[68px]', pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted', isDisabled ? 'opacity-50' : 'opacity-100', twClassName);
16
+ const additionalStyle = typeof style === 'function' ? style({ pressed }) : style;
17
+ return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];
18
+ }} {...props}>
19
+ <>
20
+ <Icon_1.Icon {...iconProps} name={iconName} size={Icon_1.IconSize.Lg} color={Icon_1.IconColor.IconAlternative}/>
21
+ <Text_1.Text {...labelProps} variant={Text_1.TextVariant.BodySm} fontWeight={Text_1.FontWeight.Medium} color={Text_1.TextColor.TextDefault} twClassName="mt-0.5 w-full text-center shrink" numberOfLines={1} ellipsizeMode="tail">
22
+ {label}
23
+ </Text_1.Text>
24
+ </>
25
+ </ButtonAnimated_1.ButtonAnimated>);
26
+ };
27
+ exports.MainActionButton = MainActionButton;
28
+ //# sourceMappingURL=MainActionButton.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAG1B,4CAAoD;AACpD,gFAAmE;AACnE,4CAAmE;AAI5D,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACc,EAAE,EAAE;IAC1B,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,+BAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,UAAU,CACV,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3C,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAC/C,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CACjD,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CACxB,+DAA+D,EAC/D,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EACxD,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACY,CAAC;YAE1B,MAAM,eAAe,GACnB,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YAE3D,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,CAAC,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,EACE;QAAA,CAAC,WAAI,CACH,IAAI,SAAS,CAAC,CACd,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,EAEnC;QAAA,CAAC,WAAI,CACH,IAAI,UAAU,CAAC,CACf,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,KAAK,CAAC,CAAC,gBAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,kCAAkC,CAC9C,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,MAAM,CAEpB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,WAAI,CACR;MAAA,GACF;IAAA,EAAE,+BAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AA1DW,QAAA,gBAAgB,oBA0D3B","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport { Icon, IconColor, IconSize } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\nimport { Text, FontWeight, TextColor, TextVariant } from '../Text';\n\nimport type { MainActionButtonProps } from './MainActionButton.types';\n\nexport const MainActionButton = ({\n iconName,\n label,\n iconProps,\n labelProps,\n onPress,\n onPressIn,\n onPressOut,\n style,\n isDisabled = false,\n twClassName = '',\n ...props\n}: MainActionButtonProps) => {\n const tw = useTailwind();\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n accessible\n onPress={!isDisabled ? onPress : undefined}\n onPressIn={!isDisabled ? onPressIn : undefined}\n onPressOut={!isDisabled ? onPressOut : undefined}\n style={({ pressed }) => {\n const baseStyle = tw.style(\n 'items-center justify-center rounded-xl px-1 py-4 min-w-[68px]',\n pressed && !isDisabled ? 'bg-muted-pressed' : 'bg-muted',\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ) as StyleProp<ViewStyle>;\n\n const additionalStyle =\n typeof style === 'function' ? style({ pressed }) : style;\n\n return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];\n }}\n {...props}\n >\n <>\n <Icon\n {...iconProps}\n name={iconName}\n size={IconSize.Lg}\n color={IconColor.IconAlternative}\n />\n <Text\n {...labelProps}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n color={TextColor.TextDefault}\n twClassName=\"mt-0.5 w-full text-center shrink\"\n numberOfLines={1}\n ellipsizeMode=\"tail\"\n >\n {label}\n </Text>\n </>\n </ButtonAnimated>\n );\n};\n"]}