@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,4 @@
1
+ import React from "react";
2
+ import type { MainActionButtonProps } from "./MainActionButton.types.cjs";
3
+ export declare const MainActionButton: ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled, twClassName, ...props }: MainActionButtonProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MainActionButton.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,qCAAiC;AAEtE,eAAO,MAAM,gBAAgB,yHAY1B,qBAAqB,sBA8CvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { MainActionButtonProps } from "./MainActionButton.types.mjs";
3
+ export declare const MainActionButton: ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled, twClassName, ...props }: MainActionButtonProps) => React.JSX.Element;
4
+ //# sourceMappingURL=MainActionButton.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAO1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,qCAAiC;AAEtE,eAAO,MAAM,gBAAgB,yHAY1B,qBAAqB,sBA8CvB,CAAC"}
@@ -0,0 +1,28 @@
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 { Icon, IconColor, IconSize } from "../Icon/index.mjs";
11
+ import { ButtonAnimated } from "../temp-components/ButtonAnimated/index.mjs";
12
+ import { Text, FontWeight, TextColor, TextVariant } from "../Text/index.mjs";
13
+ export const MainActionButton = ({ iconName, label, iconProps, labelProps, onPress, onPressIn, onPressOut, style, isDisabled = false, twClassName = '', ...props }) => {
14
+ const tw = useTailwind();
15
+ return (<ButtonAnimated disabled={isDisabled} accessible onPress={!isDisabled ? onPress : undefined} onPressIn={!isDisabled ? onPressIn : undefined} onPressOut={!isDisabled ? onPressOut : undefined} style={({ pressed }) => {
16
+ 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);
17
+ const additionalStyle = typeof style === 'function' ? style({ pressed }) : style;
18
+ return additionalStyle ? [baseStyle, additionalStyle] : [baseStyle];
19
+ }} {...props}>
20
+ <>
21
+ <Icon {...iconProps} name={iconName} size={IconSize.Lg} color={IconColor.IconAlternative}/>
22
+ <Text {...labelProps} variant={TextVariant.BodySm} fontWeight={FontWeight.Medium} color={TextColor.TextDefault} twClassName="mt-0.5 w-full text-center shrink" numberOfLines={1} ellipsizeMode="tail">
23
+ {label}
24
+ </Text>
25
+ </>
26
+ </ButtonAnimated>);
27
+ };
28
+ //# sourceMappingURL=MainActionButton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAG1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACpD,OAAO,EAAE,cAAc,EAAE,oDAA0C;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,0BAAgB;AAInE,MAAM,CAAC,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,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,cAAc,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,IAAI,CACH,IAAI,SAAS,CAAC,CACd,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,EAEnC;QAAA,CAAC,IAAI,CACH,IAAI,UAAU,CAAC,CACf,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAC9B,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAC7B,WAAW,CAAC,kCAAkC,CAC9C,aAAa,CAAC,CAAC,CAAC,CAAC,CACjB,aAAa,CAAC,MAAM,CAEpB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,IAAI,CACR;MAAA,GACF;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC","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"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=MainActionButton.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PressableProps,\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * MainActionButton component props.\n */\nexport type MainActionButtonProps = {\n /**\n * Icon name rendered above the label.\n */\n iconName: IconName;\n /**\n * Label text rendered below the icon.\n */\n label: string;\n /**\n * Optional props forwarded to the internal Icon component.\n * Useful for test IDs and accessibility metadata.\n */\n iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;\n /**\n * Optional props forwarded to the internal Text component.\n * Useful for test IDs and accessibility metadata.\n */\n labelProps?: Omit<\n Partial<TextProps>,\n 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'\n >;\n /**\n * Disables the button interaction and applies disabled styling.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional Tailwind classes to extend or override container styles.\n */\n twClassName?: string;\n /**\n * Optional React Native style for the button container.\n */\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n} & Omit<PressableProps, 'children' | 'disabled' | 'style'>;\n"]}
@@ -0,0 +1,41 @@
1
+ import type { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { IconName, IconProps } from "../Icon/index.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * MainActionButton component props.
6
+ */
7
+ export type MainActionButtonProps = {
8
+ /**
9
+ * Icon name rendered above the label.
10
+ */
11
+ iconName: IconName;
12
+ /**
13
+ * Label text rendered below the icon.
14
+ */
15
+ label: string;
16
+ /**
17
+ * Optional props forwarded to the internal Icon component.
18
+ * Useful for test IDs and accessibility metadata.
19
+ */
20
+ iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;
21
+ /**
22
+ * Optional props forwarded to the internal Text component.
23
+ * Useful for test IDs and accessibility metadata.
24
+ */
25
+ labelProps?: Omit<Partial<TextProps>, 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'>;
26
+ /**
27
+ * Disables the button interaction and applies disabled styling.
28
+ *
29
+ * @default false
30
+ */
31
+ isDisabled?: boolean;
32
+ /**
33
+ * Optional Tailwind classes to extend or override container styles.
34
+ */
35
+ twClassName?: string;
36
+ /**
37
+ * Optional React Native style for the button container.
38
+ */
39
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
40
+ } & Omit<PressableProps, 'children' | 'disabled' | 'style'>;
41
+ //# sourceMappingURL=MainActionButton.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,8BAAqB;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAChE;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CACf,OAAO,CAAC,SAAS,CAAC,EAClB,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,CAChE,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,CAAC,SAAS,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACnE,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from "react-native/index.js";
2
+ import type { IconName, IconProps } from "../Icon/index.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * MainActionButton component props.
6
+ */
7
+ export type MainActionButtonProps = {
8
+ /**
9
+ * Icon name rendered above the label.
10
+ */
11
+ iconName: IconName;
12
+ /**
13
+ * Label text rendered below the icon.
14
+ */
15
+ label: string;
16
+ /**
17
+ * Optional props forwarded to the internal Icon component.
18
+ * Useful for test IDs and accessibility metadata.
19
+ */
20
+ iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;
21
+ /**
22
+ * Optional props forwarded to the internal Text component.
23
+ * Useful for test IDs and accessibility metadata.
24
+ */
25
+ labelProps?: Omit<Partial<TextProps>, 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'>;
26
+ /**
27
+ * Disables the button interaction and applies disabled styling.
28
+ *
29
+ * @default false
30
+ */
31
+ isDisabled?: boolean;
32
+ /**
33
+ * Optional Tailwind classes to extend or override container styles.
34
+ */
35
+ twClassName?: string;
36
+ /**
37
+ * Optional React Native style for the button container.
38
+ */
39
+ style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);
40
+ } & Omit<PressableProps, 'children' | 'disabled' | 'style'>;
41
+ //# sourceMappingURL=MainActionButton.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC1B,SAAS,EACT,SAAS,EACV,8BAAqB;AAEtB,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAChE;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CACf,OAAO,CAAC,SAAS,CAAC,EAClB,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,CAChE,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,CAAC,SAAS,CAAC,GACpB,CAAC,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACnE,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MainActionButton.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainActionButton.types.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/MainActionButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PressableProps,\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * MainActionButton component props.\n */\nexport type MainActionButtonProps = {\n /**\n * Icon name rendered above the label.\n */\n iconName: IconName;\n /**\n * Label text rendered below the icon.\n */\n label: string;\n /**\n * Optional props forwarded to the internal Icon component.\n * Useful for test IDs and accessibility metadata.\n */\n iconProps?: Omit<Partial<IconProps>, 'name' | 'size' | 'color'>;\n /**\n * Optional props forwarded to the internal Text component.\n * Useful for test IDs and accessibility metadata.\n */\n labelProps?: Omit<\n Partial<TextProps>,\n 'children' | 'variant' | 'fontWeight' | 'color' | 'twClassName'\n >;\n /**\n * Disables the button interaction and applies disabled styling.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional Tailwind classes to extend or override container styles.\n */\n twClassName?: string;\n /**\n * Optional React Native style for the button container.\n */\n style?:\n | StyleProp<ViewStyle>\n | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>);\n} & Omit<PressableProps, 'children' | 'disabled' | 'style'>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MainActionButton = void 0;
4
+ var MainActionButton_1 = require("./MainActionButton.cjs");
5
+ Object.defineProperty(exports, "MainActionButton", { enumerable: true, get: function () { return MainActionButton_1.MainActionButton; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAA7C,oHAAA,gBAAgB,OAAA","sourcesContent":["export { MainActionButton } from './MainActionButton';\nexport type { MainActionButtonProps } from './MainActionButton.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { MainActionButton } from "./MainActionButton.cjs";
2
+ export type { MainActionButtonProps } from "./MainActionButton.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
@@ -0,0 +1,3 @@
1
+ export { MainActionButton } from "./MainActionButton.mjs";
2
+ export type { MainActionButtonProps } from "./MainActionButton.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
@@ -0,0 +1,2 @@
1
+ export { MainActionButton } from "./MainActionButton.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/MainActionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B","sourcesContent":["export { MainActionButton } from './MainActionButton';\nexport type { MainActionButtonProps } from './MainActionButton.types';\n"]}
@@ -0,0 +1,22 @@
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.TabEmptyState = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const Box_1 = require("../Box/index.cjs");
9
+ const Button_1 = require("../Button/index.cjs");
10
+ const Text_1 = require("../Text/index.cjs");
11
+ const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box_1.Box flexDirection={Box_1.BoxFlexDirection.Column} alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Center} backgroundColor={Box_1.BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={`max-w-64 ${twClassName}`} style={style} {...props}>
12
+ {icon}
13
+ {description && (<Text_1.Text variant={Text_1.TextVariant.BodyMd} color={Text_1.TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
14
+ {description}
15
+ </Text_1.Text>)}
16
+ {actionButtonText && onAction && (<Button_1.Button variant={Button_1.ButtonVariant.Secondary} onPress={onAction} {...actionButtonProps}>
17
+ {actionButtonText}
18
+ </Button_1.Button>)}
19
+ {children}
20
+ </Box_1.Box>);
21
+ exports.TabEmptyState = TabEmptyState;
22
+ //# sourceMappingURL=TabEmptyState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0CAMgB;AAChB,gDAAkD;AAClD,4CAAuD;AAIhD,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,wBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,YAAY,WAAW,EAAE,CAAC,CACvC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,WAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,eAAM,CACL,OAAO,CAAC,CAAC,sBAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,eAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AA5CW,QAAA,aAAa,iBA4CxB","sourcesContent":["import React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={`max-w-64 ${twClassName}`}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TabEmptyStateProps } from "./TabEmptyState.types.cjs";
3
+ export declare const TabEmptyState: ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName, ...props }: TabEmptyStateProps) => React.JSX.Element;
4
+ //# sourceMappingURL=TabEmptyState.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAiCpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { TabEmptyStateProps } from "./TabEmptyState.types.mjs";
3
+ export declare const TabEmptyState: ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName, ...props }: TabEmptyStateProps) => React.JSX.Element;
4
+ //# sourceMappingURL=TabEmptyState.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAiCpB,CAAC"}
@@ -0,0 +1,22 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React from "react";
8
+ const React = $importDefault($React);
9
+ import { Box, BoxFlexDirection, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor } from "../Box/index.mjs";
10
+ import { Button, ButtonVariant } from "../Button/index.mjs";
11
+ import { Text, TextVariant, TextColor } from "../Text/index.mjs";
12
+ export const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box flexDirection={BoxFlexDirection.Column} alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Center} backgroundColor={BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={`max-w-64 ${twClassName}`} style={style} {...props}>
13
+ {icon}
14
+ {description && (<Text variant={TextVariant.BodyMd} color={TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
15
+ {description}
16
+ </Text>)}
17
+ {actionButtonText && onAction && (<Button variant={ButtonVariant.Secondary} onPress={onAction} {...actionButtonProps}>
18
+ {actionButtonText}
19
+ </Button>)}
20
+ {children}
21
+ </Box>);
22
+ //# sourceMappingURL=TabEmptyState.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,yBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,4BAAkB;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAAgB;AAIvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,YAAY,WAAW,EAAE,CAAC,CACvC,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,IAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,MAAM,CACL,OAAO,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,MAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,GAAG,CAAC,CACP,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={`max-w-64 ${twClassName}`}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TabEmptyState.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonProps } from '../Button/Button.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TabEmptyState component props.\n */\nexport type TabEmptyStateProps = {\n /**\n * Optional icon to display in the empty state.\n * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.\n */\n icon?: ReactNode;\n /**\n * Optional description text to display in the empty state.\n */\n description?: string;\n /**\n * Optional props to pass to the description Text component.\n */\n descriptionProps?: Partial<TextProps>;\n /**\n * Optional label for the action button.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n actionButtonText?: string;\n /**\n * Optional props to pass to the action Button component.\n */\n actionButtonProps?: Partial<ButtonProps>;\n /**\n * Optional callback when the action button is pressed.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n onAction?: () => void;\n /**\n * Optional additional content to display below the action button.\n */\n children?: ReactNode;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { ButtonProps } from "../Button/Button.types.cjs";
4
+ import type { TextProps } from "../Text/Text.types.cjs";
5
+ /**
6
+ * TabEmptyState component props.
7
+ */
8
+ export type TabEmptyStateProps = {
9
+ /**
10
+ * Optional icon to display in the empty state.
11
+ * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.
12
+ */
13
+ icon?: ReactNode;
14
+ /**
15
+ * Optional description text to display in the empty state.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Optional props to pass to the description Text component.
20
+ */
21
+ descriptionProps?: Partial<TextProps>;
22
+ /**
23
+ * Optional label for the action button.
24
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
25
+ */
26
+ actionButtonText?: string;
27
+ /**
28
+ * Optional props to pass to the action Button component.
29
+ */
30
+ actionButtonProps?: Partial<ButtonProps>;
31
+ /**
32
+ * Optional callback when the action button is pressed.
33
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
34
+ */
35
+ onAction?: () => void;
36
+ /**
37
+ * Optional additional content to display below the action button.
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Optional prop to add twrnc overriding classNames.
42
+ */
43
+ twClassName?: string;
44
+ } & ViewProps;
45
+ //# sourceMappingURL=TabEmptyState.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { ButtonProps } from "../Button/Button.types.mjs";
4
+ import type { TextProps } from "../Text/Text.types.mjs";
5
+ /**
6
+ * TabEmptyState component props.
7
+ */
8
+ export type TabEmptyStateProps = {
9
+ /**
10
+ * Optional icon to display in the empty state.
11
+ * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.
12
+ */
13
+ icon?: ReactNode;
14
+ /**
15
+ * Optional description text to display in the empty state.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Optional props to pass to the description Text component.
20
+ */
21
+ descriptionProps?: Partial<TextProps>;
22
+ /**
23
+ * Optional label for the action button.
24
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
25
+ */
26
+ actionButtonText?: string;
27
+ /**
28
+ * Optional props to pass to the action Button component.
29
+ */
30
+ actionButtonProps?: Partial<ButtonProps>;
31
+ /**
32
+ * Optional callback when the action button is pressed.
33
+ * The button is only rendered when both `actionButtonText` and `onAction` are provided.
34
+ */
35
+ onAction?: () => void;
36
+ /**
37
+ * Optional additional content to display below the action button.
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Optional prop to add twrnc overriding classNames.
42
+ */
43
+ twClassName?: string;
44
+ } & ViewProps;
45
+ //# sourceMappingURL=TabEmptyState.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TabEmptyState.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabEmptyState.types.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { ViewProps } from 'react-native';\n\nimport type { ButtonProps } from '../Button/Button.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TabEmptyState component props.\n */\nexport type TabEmptyStateProps = {\n /**\n * Optional icon to display in the empty state.\n * If using a PNG/JPG image, use `useAssetFromTheme` to handle light/dark themes.\n */\n icon?: ReactNode;\n /**\n * Optional description text to display in the empty state.\n */\n description?: string;\n /**\n * Optional props to pass to the description Text component.\n */\n descriptionProps?: Partial<TextProps>;\n /**\n * Optional label for the action button.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n actionButtonText?: string;\n /**\n * Optional props to pass to the action Button component.\n */\n actionButtonProps?: Partial<ButtonProps>;\n /**\n * Optional callback when the action button is pressed.\n * The button is only rendered when both `actionButtonText` and `onAction` are provided.\n */\n onAction?: () => void;\n /**\n * Optional additional content to display below the action button.\n */\n children?: ReactNode;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TabEmptyState = void 0;
4
+ var TabEmptyState_1 = require("./TabEmptyState.cjs");
5
+ Object.defineProperty(exports, "TabEmptyState", { enumerable: true, get: function () { return TabEmptyState_1.TabEmptyState; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { TabEmptyState } from './TabEmptyState';\nexport type { TabEmptyStateProps } from './TabEmptyState.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TabEmptyState } from "./TabEmptyState.cjs";
2
+ export type { TabEmptyStateProps } from "./TabEmptyState.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,3 @@
1
+ export { TabEmptyState } from "./TabEmptyState.mjs";
2
+ export type { TabEmptyStateProps } from "./TabEmptyState.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { TabEmptyState } from "./TabEmptyState.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { TabEmptyState } from './TabEmptyState';\nexport type { TabEmptyStateProps } from './TabEmptyState.types';\n"]}
@@ -24,45 +24,21 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.TextButton = void 0;
27
- const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
28
27
  const react_1 = __importStar(require("react"));
29
- const react_native_1 = require("react-native/index.js");
30
28
  const types_1 = require("../../types/index.cjs");
31
- const Icon_1 = require("../Icon/index.cjs");
32
29
  const Text_1 = require("../Text/index.cjs");
33
- const TextButton_constants_1 = require("./TextButton.constants.cjs");
34
- const TextButton = ({ children, size = types_1.TextButtonSize.BodyMd, textProps, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, isDisabled = false, isInverse = false, twClassName = '', accessibilityRole, accessibilityLabel, style, ...props }) => {
35
- const tw = (0, design_system_twrnc_preset_1.useTailwind)();
36
- /**
37
- * Calculating the baselineOffset. This baselineOffset is needed to make sure
38
- * the TextButton aligns perfectly when placed within Text elements
39
- */
40
- // eslint-disable-next-line tailwindcss/no-custom-classname
41
- const { fontSize, lineHeight } = tw `text-${TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}`;
42
- const baselineOffset = (lineHeight - fontSize) / 2;
43
- const getTextColor = (0, react_1.useCallback)((pressed) => {
44
- if (isInverse) {
45
- return 'text-primary-inverse';
46
- }
47
- return pressed ? 'text-primary-default-pressed' : 'text-primary-default';
48
- }, [isInverse]);
49
- const getTextDecoration = (0, react_1.useCallback)((pressed) => isInverse || pressed ? 'underline' : 'no-underline', [isInverse]);
50
- return (<Text_1.Text>
51
- <react_native_1.Pressable accessibilityRole={accessibilityRole ?? 'button'} accessibilityLabel={accessibilityLabel} disabled={isDisabled} style={({ pressed }) => [
52
- { transform: [{ translateY: baselineOffset }] },
53
- tw `flex-row items-center ${pressed ? 'bg-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,
54
- style,
55
- ]} {...props}>
56
- {({ pressed }) => (<>
57
- {startIconName ? (<Icon_1.Icon name={startIconName} size={Icon_1.IconSize.Sm} testID="start-icon" twClassName={`${getTextColor(pressed)} mr-1`} {...startIconProps}/>) : (startAccessory)}
58
-
59
- <Text_1.Text variant={TextButton_constants_1.MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]} fontWeight={Text_1.FontWeight.Medium} {...textProps} twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}>
60
- {children}
61
- </Text_1.Text>
62
-
63
- {endIconName ? (<Icon_1.Icon name={endIconName} size={Icon_1.IconSize.Sm} testID="end-icon" twClassName={`${getTextColor(pressed)} ml-1`} {...endIconProps}/>) : (endAccessory)}
64
- </>)}
65
- </react_native_1.Pressable>
30
+ const TextButton = ({ children, variant = types_1.TextVariant.BodyMd, fontWeight = Text_1.FontWeight.Medium, twClassName, accessibilityRole = 'link', onPress, onPressIn, onPressOut, suppressHighlighting = true, ...rest }) => {
31
+ const [pressed, setPressed] = (0, react_1.useState)(false);
32
+ const handlePressIn = (e) => {
33
+ setPressed(true);
34
+ onPressIn?.(e);
35
+ };
36
+ const handlePressOut = (e) => {
37
+ setPressed(false);
38
+ onPressOut?.(e);
39
+ };
40
+ return (<Text_1.Text {...rest} accessibilityRole={accessibilityRole} variant={variant} fontWeight={fontWeight} color={pressed ? types_1.TextColor.PrimaryDefaultPressed : types_1.TextColor.PrimaryDefault} twClassName={twClassName} onPress={onPress} onPressIn={handlePressIn} onPressOut={handlePressOut} suppressHighlighting={suppressHighlighting}>
41
+ {children}
66
42
  </Text_1.Text>);
67
43
  };
68
44
  exports.TextButton = TextButton;
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.cjs","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAA2C;AAC3C,wDAAyC;AAEzC,iDAA6C;AAC7C,4CAAyC;AACzC,4CAA2C;AAE3C,qEAAyE;AAGlE,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,IAAI,GAAG,sBAAc,CAAC,MAAM,EAC5B,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB;;;OAGG;IACH,2DAA2D;IAC3D,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAA,QACjC,sDAA+B,CAAC,IAAI,CACtC,EAGC,CAAC;IACF,MAAM,cAAc,GAAG,CAAC,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEnD,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CAAC,OAAgB,EAAU,EAAE;QAC3B,IAAI,SAAS,EAAE;YACb,OAAO,sBAAsB,CAAC;SAC/B;QACD,OAAO,OAAO,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC3E,CAAC,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,MAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,CAAC,OAAgB,EAAU,EAAE,CAC3B,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,EACrD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,CACL,CAAC,WAAI,CACH;MAAA,CAAC,wBAAS,CACR,iBAAiB,CAAC,CAAC,iBAAiB,IAAI,QAAQ,CAAC,CACjD,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;YACtB,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,EAAE;YAC/C,EAAE,CAAA,yBAAyB,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,gBAAgB,IAAI,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,IAAI,WAAW,EAAE;YAClI,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;QAAA,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChB,EACE;YAAA,CAAC,aAAa,CAAC,CAAC,CAAC,CACf,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,aAAa,CAAC,CACpB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,MAAM,CAAC,YAAY,CACnB,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAC7C,IAAI,cAAc,CAAC,EACnB,CACH,CAAC,CAAC,CAAC,CACF,cAAc,CACf,CAED;;YAAA,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,sDAA+B,CAAC,IAAI,CAAC,CAAC,CAC/C,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,SAAS,CAAC,CACd,WAAW,CAAC,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,WAAW,IAAI,EAAE,GAAG,CAAC,CAExG;cAAA,CAAC,QAAQ,CACX;YAAA,EAAE,WAAI,CAEN;;YAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,WAAW,CAAC,CAClB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,MAAM,CAAC,UAAU,CACjB,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAC7C,IAAI,YAAY,CAAC,EACjB,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CACH;UAAA,GAAG,CACJ,CACH;MAAA,EAAE,wBAAS,CACb;IAAA,EAAE,WAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AApGW,QAAA,UAAU,cAoGrB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { Pressable } from 'react-native';\n\nimport { TextButtonSize } from '../../types';\nimport { Icon, IconSize } from '../Icon';\nimport { Text, FontWeight } from '../Text';\n\nimport { MAP_TEXTBUTTON_SIZE_TEXTVARIANT } from './TextButton.constants';\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton: React.FC<TextButtonProps> = ({\n children,\n size = TextButtonSize.BodyMd,\n textProps,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n isDisabled = false,\n isInverse = false,\n twClassName = '',\n accessibilityRole,\n accessibilityLabel,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n /**\n * Calculating the baselineOffset. This baselineOffset is needed to make sure\n * the TextButton aligns perfectly when placed within Text elements\n */\n // eslint-disable-next-line tailwindcss/no-custom-classname\n const { fontSize, lineHeight } = tw`text-${\n MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size] as string\n }` as {\n fontSize: number;\n lineHeight: number;\n };\n const baselineOffset = (lineHeight - fontSize) / 2;\n\n const getTextColor = useCallback(\n (pressed: boolean): string => {\n if (isInverse) {\n return 'text-primary-inverse';\n }\n return pressed ? 'text-primary-default-pressed' : 'text-primary-default';\n },\n [isInverse],\n );\n\n const getTextDecoration = useCallback(\n (pressed: boolean): string =>\n isInverse || pressed ? 'underline' : 'no-underline',\n [isInverse],\n );\n\n return (\n <Text>\n <Pressable\n accessibilityRole={accessibilityRole ?? 'button'}\n accessibilityLabel={accessibilityLabel}\n disabled={isDisabled}\n style={({ pressed }) => [\n { transform: [{ translateY: baselineOffset }] },\n tw`flex-row items-center ${pressed ? 'bg-pressed' : 'bg-transparent'} ${isDisabled ? 'opacity-50' : 'opacity-100'} ${twClassName}`,\n style,\n ]}\n {...props}\n >\n {({ pressed }) => (\n <>\n {startIconName ? (\n <Icon\n name={startIconName}\n size={IconSize.Sm}\n testID=\"start-icon\"\n twClassName={`${getTextColor(pressed)} mr-1`}\n {...startIconProps}\n />\n ) : (\n startAccessory\n )}\n\n <Text\n variant={MAP_TEXTBUTTON_SIZE_TEXTVARIANT[size]}\n fontWeight={FontWeight.Medium}\n {...textProps}\n twClassName={` ${getTextColor(pressed)} ${getTextDecoration(pressed)} ${textProps?.twClassName ?? ''} `}\n >\n {children}\n </Text>\n\n {endIconName ? (\n <Icon\n name={endIconName}\n size={IconSize.Sm}\n testID=\"end-icon\"\n twClassName={`${getTextColor(pressed)} ml-1`}\n {...endIconProps}\n />\n ) : (\n endAccessory\n )}\n </>\n )}\n </Pressable>\n </Text>\n );\n};\n"]}
1
+ {"version":3,"file":"TextButton.cjs","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,iDAAqD;AACrD,4CAA2C;AAIpC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,OAAO,GAAG,mBAAW,CAAC,MAAM,EAC5B,UAAU,GAAG,iBAAU,CAAC,MAAM,EAC9B,WAAW,EACX,iBAAiB,GAAG,MAAM,EAC1B,OAAO,EACP,SAAS,EACT,UAAU,EACV,oBAAoB,GAAG,IAAI,EAC3B,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,aAAa,GAA8C,CAAC,CAAC,EAAE,EAAE;QACrE,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC;IAEF,MAAM,cAAc,GAA+C,CAAC,CAAC,EAAE,EAAE;QACvE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,WAAI,CACH,IAAI,IAAI,CAAC,CACT,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,KAAK,CAAC,CACJ,OAAO,CAAC,CAAC,CAAC,iBAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC,iBAAS,CAAC,cAAc,CACrE,CACD,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,SAAS,CAAC,CAAC,aAAa,CAAC,CACzB,UAAU,CAAC,CAAC,cAAc,CAAC,CAC3B,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAE3C;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,WAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,UAAU,cA0CrB","sourcesContent":["import React, { useState } from 'react';\n\nimport { TextVariant, TextColor } from '../../types';\nimport { Text, FontWeight } from '../Text';\n\nimport type { TextButtonProps } from './TextButton.types';\n\nexport const TextButton: React.FC<TextButtonProps> = ({\n children,\n variant = TextVariant.BodyMd,\n fontWeight = FontWeight.Medium,\n twClassName,\n accessibilityRole = 'link',\n onPress,\n onPressIn,\n onPressOut,\n suppressHighlighting = true,\n ...rest\n}) => {\n const [pressed, setPressed] = useState(false);\n\n const handlePressIn: NonNullable<TextButtonProps['onPressIn']> = (e) => {\n setPressed(true);\n onPressIn?.(e);\n };\n\n const handlePressOut: NonNullable<TextButtonProps['onPressOut']> = (e) => {\n setPressed(false);\n onPressOut?.(e);\n };\n\n return (\n <Text\n {...rest}\n accessibilityRole={accessibilityRole}\n variant={variant}\n fontWeight={fontWeight}\n color={\n pressed ? TextColor.PrimaryDefaultPressed : TextColor.PrimaryDefault\n }\n twClassName={twClassName}\n onPress={onPress}\n onPressIn={handlePressIn}\n onPressOut={handlePressOut}\n suppressHighlighting={suppressHighlighting}\n >\n {children}\n </Text>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.d.cts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,cAAc;AAQ3C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoGhD,CAAC"}
1
+ {"version":3,"file":"TextButton.d.cts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAKxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0ChD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextButton.d.mts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,cAAc;AAQ3C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoGhD,CAAC"}
1
+ {"version":3,"file":"TextButton.d.mts","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,cAAc;AAKxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0ChD,CAAC"}