@metamask/design-system-react-native 0.9.0 → 0.11.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 (469) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/dist/components/ActionListItem/ActionListItem.cjs +86 -0
  3. package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -0
  4. package/dist/components/ActionListItem/ActionListItem.d.cts +4 -0
  5. package/dist/components/ActionListItem/ActionListItem.d.cts.map +1 -0
  6. package/dist/components/ActionListItem/ActionListItem.d.mts +4 -0
  7. package/dist/components/ActionListItem/ActionListItem.d.mts.map +1 -0
  8. package/dist/components/ActionListItem/ActionListItem.mjs +66 -0
  9. package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -0
  10. package/dist/components/ActionListItem/ActionListItem.types.cjs +3 -0
  11. package/dist/components/ActionListItem/ActionListItem.types.cjs.map +1 -0
  12. package/dist/components/ActionListItem/ActionListItem.types.d.cts +73 -0
  13. package/dist/components/ActionListItem/ActionListItem.types.d.cts.map +1 -0
  14. package/dist/components/ActionListItem/ActionListItem.types.d.mts +73 -0
  15. package/dist/components/ActionListItem/ActionListItem.types.d.mts.map +1 -0
  16. package/dist/components/ActionListItem/ActionListItem.types.mjs +2 -0
  17. package/dist/components/ActionListItem/ActionListItem.types.mjs.map +1 -0
  18. package/dist/components/ActionListItem/index.cjs +6 -0
  19. package/dist/components/ActionListItem/index.cjs.map +1 -0
  20. package/dist/components/ActionListItem/index.d.cts +3 -0
  21. package/dist/components/ActionListItem/index.d.cts.map +1 -0
  22. package/dist/components/ActionListItem/index.d.mts +3 -0
  23. package/dist/components/ActionListItem/index.d.mts.map +1 -0
  24. package/dist/components/ActionListItem/index.mjs +2 -0
  25. package/dist/components/ActionListItem/index.mjs.map +1 -0
  26. package/dist/components/BadgeCount/BadgeCount.cjs +3 -3
  27. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  28. package/dist/components/BadgeCount/BadgeCount.constants.cjs +6 -10
  29. package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
  30. package/dist/components/BadgeCount/BadgeCount.constants.d.cts +1 -2
  31. package/dist/components/BadgeCount/BadgeCount.constants.d.cts.map +1 -1
  32. package/dist/components/BadgeCount/BadgeCount.constants.d.mts +1 -2
  33. package/dist/components/BadgeCount/BadgeCount.constants.d.mts.map +1 -1
  34. package/dist/components/BadgeCount/BadgeCount.constants.mjs +3 -7
  35. package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
  36. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  37. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  38. package/dist/components/BadgeCount/BadgeCount.mjs +3 -3
  39. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  40. package/dist/components/BadgeCount/BadgeCount.types.cjs.map +1 -1
  41. package/dist/components/BadgeCount/BadgeCount.types.d.cts +5 -22
  42. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  43. package/dist/components/BadgeCount/BadgeCount.types.d.mts +5 -22
  44. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  45. package/dist/components/BadgeCount/BadgeCount.types.mjs.map +1 -1
  46. package/dist/components/BadgeCount/index.cjs +2 -2
  47. package/dist/components/BadgeCount/index.cjs.map +1 -1
  48. package/dist/components/BadgeCount/index.d.cts +1 -1
  49. package/dist/components/BadgeCount/index.d.cts.map +1 -1
  50. package/dist/components/BadgeCount/index.d.mts +1 -1
  51. package/dist/components/BadgeCount/index.d.mts.map +1 -1
  52. package/dist/components/BadgeCount/index.mjs +1 -1
  53. package/dist/components/BadgeCount/index.mjs.map +1 -1
  54. package/dist/components/BannerBase/BannerBase.cjs +63 -0
  55. package/dist/components/BannerBase/BannerBase.cjs.map +1 -0
  56. package/dist/components/BannerBase/BannerBase.d.cts +4 -0
  57. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -0
  58. package/dist/components/BannerBase/BannerBase.d.mts +4 -0
  59. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -0
  60. package/dist/components/BannerBase/BannerBase.mjs +63 -0
  61. package/dist/components/BannerBase/BannerBase.mjs.map +1 -0
  62. package/dist/components/BannerBase/BannerBase.types.cjs +3 -0
  63. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -0
  64. package/dist/components/BannerBase/BannerBase.types.d.cts +53 -0
  65. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -0
  66. package/dist/components/BannerBase/BannerBase.types.d.mts +53 -0
  67. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -0
  68. package/dist/components/BannerBase/BannerBase.types.mjs +2 -0
  69. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -0
  70. package/dist/components/BannerBase/index.cjs +6 -0
  71. package/dist/components/BannerBase/index.cjs.map +1 -0
  72. package/dist/components/BannerBase/index.d.cts +3 -0
  73. package/dist/components/BannerBase/index.d.cts.map +1 -0
  74. package/dist/components/BannerBase/index.d.mts +3 -0
  75. package/dist/components/BannerBase/index.d.mts.map +1 -0
  76. package/dist/components/BannerBase/index.mjs +2 -0
  77. package/dist/components/BannerBase/index.mjs.map +1 -0
  78. package/dist/components/BottomSheet/BottomSheet.cjs +109 -0
  79. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -0
  80. package/dist/components/BottomSheet/BottomSheet.d.cts +16 -0
  81. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -0
  82. package/dist/components/BottomSheet/BottomSheet.d.mts +16 -0
  83. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -0
  84. package/dist/components/BottomSheet/BottomSheet.mjs +87 -0
  85. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -0
  86. package/dist/components/BottomSheet/BottomSheet.types.cjs +3 -0
  87. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -0
  88. package/dist/components/BottomSheet/BottomSheet.types.d.cts +28 -0
  89. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -0
  90. package/dist/components/BottomSheet/BottomSheet.types.d.mts +28 -0
  91. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -0
  92. package/dist/components/BottomSheet/BottomSheet.types.mjs +2 -0
  93. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -0
  94. package/dist/components/BottomSheet/index.cjs +6 -0
  95. package/dist/components/BottomSheet/index.cjs.map +1 -0
  96. package/dist/components/BottomSheet/index.d.cts +3 -0
  97. package/dist/components/BottomSheet/index.d.cts.map +1 -0
  98. package/dist/components/BottomSheet/index.d.mts +3 -0
  99. package/dist/components/BottomSheet/index.d.mts.map +1 -0
  100. package/dist/components/BottomSheet/index.mjs +2 -0
  101. package/dist/components/BottomSheet/index.mjs.map +1 -0
  102. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +207 -0
  103. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -0
  104. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs +18 -0
  105. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.cjs.map +1 -0
  106. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts +14 -0
  107. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.cts.map +1 -0
  108. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts +14 -0
  109. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.d.mts.map +1 -0
  110. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs +15 -0
  111. package/dist/components/BottomSheetDialog/BottomSheetDialog.constants.mjs.map +1 -0
  112. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +13 -0
  113. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -0
  114. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +13 -0
  115. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -0
  116. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +190 -0
  117. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -0
  118. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs +3 -0
  119. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.cjs.map +1 -0
  120. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts +56 -0
  121. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.cts.map +1 -0
  122. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts +56 -0
  123. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.d.mts.map +1 -0
  124. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs +2 -0
  125. package/dist/components/BottomSheetDialog/BottomSheetDialog.types.mjs.map +1 -0
  126. package/dist/components/BottomSheetDialog/index.cjs +9 -0
  127. package/dist/components/BottomSheetDialog/index.cjs.map +1 -0
  128. package/dist/components/BottomSheetDialog/index.d.cts +3 -0
  129. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -0
  130. package/dist/components/BottomSheetDialog/index.d.mts +3 -0
  131. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -0
  132. package/dist/components/BottomSheetDialog/index.mjs +2 -0
  133. package/dist/components/BottomSheetDialog/index.mjs.map +1 -0
  134. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +27 -0
  135. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -0
  136. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +15 -0
  137. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +1 -0
  138. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +7 -0
  139. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +1 -0
  140. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +7 -0
  141. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +1 -0
  142. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +12 -0
  143. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +1 -0
  144. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts +4 -0
  145. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -0
  146. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts +4 -0
  147. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -0
  148. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +27 -0
  149. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -0
  150. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +14 -0
  151. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -0
  152. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +50 -0
  153. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -0
  154. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +50 -0
  155. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -0
  156. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +11 -0
  157. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -0
  158. package/dist/components/BottomSheetHeader/index.cjs +8 -0
  159. package/dist/components/BottomSheetHeader/index.cjs.map +1 -0
  160. package/dist/components/BottomSheetHeader/index.d.cts +4 -0
  161. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -0
  162. package/dist/components/BottomSheetHeader/index.d.mts +4 -0
  163. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -0
  164. package/dist/components/BottomSheetHeader/index.mjs +3 -0
  165. package/dist/components/BottomSheetHeader/index.mjs.map +1 -0
  166. package/dist/components/ButtonBase/ButtonBase.cjs +2 -9
  167. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  168. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  169. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  170. package/dist/components/ButtonBase/ButtonBase.mjs +3 -10
  171. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  172. package/dist/components/ButtonFilter/ButtonFilter.cjs +28 -0
  173. package/dist/components/ButtonFilter/ButtonFilter.cjs.map +1 -0
  174. package/dist/components/ButtonFilter/ButtonFilter.d.cts +4 -0
  175. package/dist/components/ButtonFilter/ButtonFilter.d.cts.map +1 -0
  176. package/dist/components/ButtonFilter/ButtonFilter.d.mts +4 -0
  177. package/dist/components/ButtonFilter/ButtonFilter.d.mts.map +1 -0
  178. package/dist/components/ButtonFilter/ButtonFilter.mjs +28 -0
  179. package/dist/components/ButtonFilter/ButtonFilter.mjs.map +1 -0
  180. package/dist/components/ButtonFilter/ButtonFilter.types.cjs +3 -0
  181. package/dist/components/ButtonFilter/ButtonFilter.types.cjs.map +1 -0
  182. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts +9 -0
  183. package/dist/components/ButtonFilter/ButtonFilter.types.d.cts.map +1 -0
  184. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts +9 -0
  185. package/dist/components/ButtonFilter/ButtonFilter.types.d.mts.map +1 -0
  186. package/dist/components/ButtonFilter/ButtonFilter.types.mjs +2 -0
  187. package/dist/components/ButtonFilter/ButtonFilter.types.mjs.map +1 -0
  188. package/dist/components/ButtonFilter/index.cjs +6 -0
  189. package/dist/components/ButtonFilter/index.cjs.map +1 -0
  190. package/dist/components/ButtonFilter/index.d.cts +3 -0
  191. package/dist/components/ButtonFilter/index.d.cts.map +1 -0
  192. package/dist/components/ButtonFilter/index.d.mts +3 -0
  193. package/dist/components/ButtonFilter/index.d.mts.map +1 -0
  194. package/dist/components/ButtonFilter/index.mjs +2 -0
  195. package/dist/components/ButtonFilter/index.mjs.map +1 -0
  196. package/dist/components/ButtonHero/ButtonHero.cjs +37 -0
  197. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -0
  198. package/dist/components/ButtonHero/ButtonHero.d.cts +13 -0
  199. package/dist/components/ButtonHero/ButtonHero.d.cts.map +1 -0
  200. package/dist/components/ButtonHero/ButtonHero.d.mts +13 -0
  201. package/dist/components/ButtonHero/ButtonHero.d.mts.map +1 -0
  202. package/dist/components/ButtonHero/ButtonHero.mjs +37 -0
  203. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -0
  204. package/dist/components/ButtonHero/ButtonHero.types.cjs +3 -0
  205. package/dist/components/ButtonHero/ButtonHero.types.cjs.map +1 -0
  206. package/dist/components/ButtonHero/ButtonHero.types.d.cts +3 -0
  207. package/dist/components/ButtonHero/ButtonHero.types.d.cts.map +1 -0
  208. package/dist/components/ButtonHero/ButtonHero.types.d.mts +3 -0
  209. package/dist/components/ButtonHero/ButtonHero.types.d.mts.map +1 -0
  210. package/dist/components/ButtonHero/ButtonHero.types.mjs +2 -0
  211. package/dist/components/ButtonHero/ButtonHero.types.mjs.map +1 -0
  212. package/dist/components/ButtonHero/index.cjs +8 -0
  213. package/dist/components/ButtonHero/index.cjs.map +1 -0
  214. package/dist/components/ButtonHero/index.d.cts +4 -0
  215. package/dist/components/ButtonHero/index.d.cts.map +1 -0
  216. package/dist/components/ButtonHero/index.d.mts +4 -0
  217. package/dist/components/ButtonHero/index.d.mts.map +1 -0
  218. package/dist/components/ButtonHero/index.mjs +3 -0
  219. package/dist/components/ButtonHero/index.mjs.map +1 -0
  220. package/dist/components/ButtonIcon/ButtonIcon.cjs +10 -4
  221. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  222. package/dist/components/ButtonIcon/ButtonIcon.d.cts +1 -1
  223. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  224. package/dist/components/ButtonIcon/ButtonIcon.d.mts +1 -1
  225. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  226. package/dist/components/ButtonIcon/ButtonIcon.mjs +11 -5
  227. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  228. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  229. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +4 -11
  230. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  231. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +4 -11
  232. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  233. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  234. package/dist/components/ButtonIcon/index.cjs +2 -1
  235. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  236. package/dist/components/ButtonIcon/index.d.cts +1 -1
  237. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  238. package/dist/components/ButtonIcon/index.d.mts +1 -1
  239. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  240. package/dist/components/ButtonIcon/index.mjs +1 -1
  241. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  242. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +64 -0
  243. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -0
  244. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs +17 -0
  245. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs.map +1 -0
  246. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts +5 -0
  247. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts.map +1 -0
  248. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts +5 -0
  249. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts.map +1 -0
  250. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs +14 -0
  251. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs.map +1 -0
  252. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts +4 -0
  253. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -0
  254. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts +4 -0
  255. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -0
  256. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +44 -0
  257. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -0
  258. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs +18 -0
  259. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs.map +1 -0
  260. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts +30 -0
  261. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts.map +1 -0
  262. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts +30 -0
  263. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts.map +1 -0
  264. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs +15 -0
  265. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs.map +1 -0
  266. package/dist/components/ButtonSemantic/index.cjs +8 -0
  267. package/dist/components/ButtonSemantic/index.cjs.map +1 -0
  268. package/dist/components/ButtonSemantic/index.d.cts +4 -0
  269. package/dist/components/ButtonSemantic/index.d.cts.map +1 -0
  270. package/dist/components/ButtonSemantic/index.d.mts +4 -0
  271. package/dist/components/ButtonSemantic/index.d.mts.map +1 -0
  272. package/dist/components/ButtonSemantic/index.mjs +3 -0
  273. package/dist/components/ButtonSemantic/index.mjs.map +1 -0
  274. package/dist/components/HeaderBase/HeaderBase.cjs +17 -8
  275. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
  276. package/dist/components/HeaderBase/HeaderBase.constants.cjs +15 -0
  277. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +1 -0
  278. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +7 -0
  279. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +1 -0
  280. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +7 -0
  281. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +1 -0
  282. package/dist/components/HeaderBase/HeaderBase.constants.mjs +12 -0
  283. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +1 -0
  284. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -1
  285. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -1
  286. package/dist/components/HeaderBase/HeaderBase.mjs +18 -9
  287. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
  288. package/dist/components/HeaderBase/HeaderBase.types.cjs +12 -0
  289. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -1
  290. package/dist/components/HeaderBase/HeaderBase.types.d.cts +16 -0
  291. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -1
  292. package/dist/components/HeaderBase/HeaderBase.types.d.mts +16 -0
  293. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -1
  294. package/dist/components/HeaderBase/HeaderBase.types.mjs +11 -1
  295. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -1
  296. package/dist/components/HeaderBase/index.cjs +3 -1
  297. package/dist/components/HeaderBase/index.cjs.map +1 -1
  298. package/dist/components/HeaderBase/index.d.cts +1 -0
  299. package/dist/components/HeaderBase/index.d.cts.map +1 -1
  300. package/dist/components/HeaderBase/index.d.mts +1 -0
  301. package/dist/components/HeaderBase/index.d.mts.map +1 -1
  302. package/dist/components/HeaderBase/index.mjs +1 -0
  303. package/dist/components/HeaderBase/index.mjs.map +1 -1
  304. package/dist/components/Icon/assets/ai.svg +1 -1
  305. package/dist/components/Input/Input.cjs +12 -2
  306. package/dist/components/Input/Input.cjs.map +1 -1
  307. package/dist/components/Input/Input.d.cts +2 -1
  308. package/dist/components/Input/Input.d.cts.map +1 -1
  309. package/dist/components/Input/Input.d.mts +2 -1
  310. package/dist/components/Input/Input.d.mts.map +1 -1
  311. package/dist/components/Input/Input.mjs +12 -2
  312. package/dist/components/Input/Input.mjs.map +1 -1
  313. package/dist/components/Input/Input.types.cjs.map +1 -1
  314. package/dist/components/Input/Input.types.d.cts +5 -1
  315. package/dist/components/Input/Input.types.d.cts.map +1 -1
  316. package/dist/components/Input/Input.types.d.mts +5 -1
  317. package/dist/components/Input/Input.types.d.mts.map +1 -1
  318. package/dist/components/Input/Input.types.mjs.map +1 -1
  319. package/dist/components/ListItem/ListItem.cjs +61 -0
  320. package/dist/components/ListItem/ListItem.cjs.map +1 -0
  321. package/dist/components/ListItem/ListItem.constants.cjs +14 -0
  322. package/dist/components/ListItem/ListItem.constants.cjs.map +1 -0
  323. package/dist/components/ListItem/ListItem.constants.d.cts +8 -0
  324. package/dist/components/ListItem/ListItem.constants.d.cts.map +1 -0
  325. package/dist/components/ListItem/ListItem.constants.d.mts +8 -0
  326. package/dist/components/ListItem/ListItem.constants.d.mts.map +1 -0
  327. package/dist/components/ListItem/ListItem.constants.mjs +11 -0
  328. package/dist/components/ListItem/ListItem.constants.mjs.map +1 -0
  329. package/dist/components/ListItem/ListItem.d.cts +4 -0
  330. package/dist/components/ListItem/ListItem.d.cts.map +1 -0
  331. package/dist/components/ListItem/ListItem.d.mts +4 -0
  332. package/dist/components/ListItem/ListItem.d.mts.map +1 -0
  333. package/dist/components/ListItem/ListItem.mjs +41 -0
  334. package/dist/components/ListItem/ListItem.mjs.map +1 -0
  335. package/dist/components/ListItem/ListItem.types.cjs +12 -0
  336. package/dist/components/ListItem/ListItem.types.cjs.map +1 -0
  337. package/dist/components/ListItem/ListItem.types.d.cts +60 -0
  338. package/dist/components/ListItem/ListItem.types.d.cts.map +1 -0
  339. package/dist/components/ListItem/ListItem.types.d.mts +60 -0
  340. package/dist/components/ListItem/ListItem.types.d.mts.map +1 -0
  341. package/dist/components/ListItem/ListItem.types.mjs +9 -0
  342. package/dist/components/ListItem/ListItem.types.mjs.map +1 -0
  343. package/dist/components/ListItem/index.cjs +8 -0
  344. package/dist/components/ListItem/index.cjs.map +1 -0
  345. package/dist/components/ListItem/index.d.cts +4 -0
  346. package/dist/components/ListItem/index.d.cts.map +1 -0
  347. package/dist/components/ListItem/index.d.mts +4 -0
  348. package/dist/components/ListItem/index.d.mts.map +1 -0
  349. package/dist/components/ListItem/index.mjs +3 -0
  350. package/dist/components/ListItem/index.mjs.map +1 -0
  351. package/dist/components/MainActionButton/MainActionButton.cjs +28 -0
  352. package/dist/components/MainActionButton/MainActionButton.cjs.map +1 -0
  353. package/dist/components/MainActionButton/MainActionButton.d.cts +4 -0
  354. package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -0
  355. package/dist/components/MainActionButton/MainActionButton.d.mts +4 -0
  356. package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -0
  357. package/dist/components/MainActionButton/MainActionButton.mjs +28 -0
  358. package/dist/components/MainActionButton/MainActionButton.mjs.map +1 -0
  359. package/dist/components/MainActionButton/MainActionButton.types.cjs +3 -0
  360. package/dist/components/MainActionButton/MainActionButton.types.cjs.map +1 -0
  361. package/dist/components/MainActionButton/MainActionButton.types.d.cts +41 -0
  362. package/dist/components/MainActionButton/MainActionButton.types.d.cts.map +1 -0
  363. package/dist/components/MainActionButton/MainActionButton.types.d.mts +41 -0
  364. package/dist/components/MainActionButton/MainActionButton.types.d.mts.map +1 -0
  365. package/dist/components/MainActionButton/MainActionButton.types.mjs +2 -0
  366. package/dist/components/MainActionButton/MainActionButton.types.mjs.map +1 -0
  367. package/dist/components/MainActionButton/index.cjs +6 -0
  368. package/dist/components/MainActionButton/index.cjs.map +1 -0
  369. package/dist/components/MainActionButton/index.d.cts +3 -0
  370. package/dist/components/MainActionButton/index.d.cts.map +1 -0
  371. package/dist/components/MainActionButton/index.d.mts +3 -0
  372. package/dist/components/MainActionButton/index.d.mts.map +1 -0
  373. package/dist/components/MainActionButton/index.mjs +2 -0
  374. package/dist/components/MainActionButton/index.mjs.map +1 -0
  375. package/dist/components/SensitiveText/SensitiveText.cjs +47 -0
  376. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -0
  377. package/dist/components/SensitiveText/SensitiveText.constants.cjs +14 -0
  378. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +1 -0
  379. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +11 -0
  380. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +1 -0
  381. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +11 -0
  382. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +1 -0
  383. package/dist/components/SensitiveText/SensitiveText.constants.mjs +11 -0
  384. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +1 -0
  385. package/dist/components/SensitiveText/SensitiveText.d.cts +4 -0
  386. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -0
  387. package/dist/components/SensitiveText/SensitiveText.d.mts +4 -0
  388. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -0
  389. package/dist/components/SensitiveText/SensitiveText.mjs +27 -0
  390. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -0
  391. package/dist/components/SensitiveText/SensitiveText.types.cjs +3 -0
  392. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -0
  393. package/dist/components/SensitiveText/SensitiveText.types.d.cts +38 -0
  394. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  395. package/dist/components/SensitiveText/SensitiveText.types.d.mts +38 -0
  396. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  397. package/dist/components/SensitiveText/SensitiveText.types.mjs +2 -0
  398. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -0
  399. package/dist/components/SensitiveText/index.cjs +8 -0
  400. package/dist/components/SensitiveText/index.cjs.map +1 -0
  401. package/dist/components/SensitiveText/index.d.cts +4 -0
  402. package/dist/components/SensitiveText/index.d.cts.map +1 -0
  403. package/dist/components/SensitiveText/index.d.mts +4 -0
  404. package/dist/components/SensitiveText/index.d.mts.map +1 -0
  405. package/dist/components/SensitiveText/index.mjs +3 -0
  406. package/dist/components/SensitiveText/index.mjs.map +1 -0
  407. package/dist/components/TabEmptyState/TabEmptyState.cjs +22 -0
  408. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -0
  409. package/dist/components/TabEmptyState/TabEmptyState.d.cts +4 -0
  410. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -0
  411. package/dist/components/TabEmptyState/TabEmptyState.d.mts +4 -0
  412. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -0
  413. package/dist/components/TabEmptyState/TabEmptyState.mjs +22 -0
  414. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -0
  415. package/dist/components/TabEmptyState/TabEmptyState.types.cjs +3 -0
  416. package/dist/components/TabEmptyState/TabEmptyState.types.cjs.map +1 -0
  417. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts +45 -0
  418. package/dist/components/TabEmptyState/TabEmptyState.types.d.cts.map +1 -0
  419. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts +45 -0
  420. package/dist/components/TabEmptyState/TabEmptyState.types.d.mts.map +1 -0
  421. package/dist/components/TabEmptyState/TabEmptyState.types.mjs +2 -0
  422. package/dist/components/TabEmptyState/TabEmptyState.types.mjs.map +1 -0
  423. package/dist/components/TabEmptyState/index.cjs +6 -0
  424. package/dist/components/TabEmptyState/index.cjs.map +1 -0
  425. package/dist/components/TabEmptyState/index.d.cts +3 -0
  426. package/dist/components/TabEmptyState/index.d.cts.map +1 -0
  427. package/dist/components/TabEmptyState/index.d.mts +3 -0
  428. package/dist/components/TabEmptyState/index.d.mts.map +1 -0
  429. package/dist/components/TabEmptyState/index.mjs +2 -0
  430. package/dist/components/TabEmptyState/index.mjs.map +1 -0
  431. package/dist/components/Toast/Toast.cjs +3 -2
  432. package/dist/components/Toast/Toast.cjs.map +1 -1
  433. package/dist/components/Toast/Toast.d.cts.map +1 -1
  434. package/dist/components/Toast/Toast.d.mts.map +1 -1
  435. package/dist/components/Toast/Toast.mjs +4 -3
  436. package/dist/components/Toast/Toast.mjs.map +1 -1
  437. package/dist/components/Toast/Toast.types.cjs +5 -5
  438. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  439. package/dist/components/Toast/Toast.types.d.cts +5 -4
  440. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  441. package/dist/components/Toast/Toast.types.d.mts +5 -4
  442. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  443. package/dist/components/Toast/Toast.types.mjs +4 -4
  444. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  445. package/dist/components/Toast/index.cjs +2 -2
  446. package/dist/components/Toast/index.cjs.map +1 -1
  447. package/dist/components/Toast/index.d.cts +1 -1
  448. package/dist/components/Toast/index.d.cts.map +1 -1
  449. package/dist/components/Toast/index.d.mts +1 -1
  450. package/dist/components/Toast/index.d.mts.map +1 -1
  451. package/dist/components/Toast/index.mjs +1 -1
  452. package/dist/components/Toast/index.mjs.map +1 -1
  453. package/dist/components/index.cjs +42 -2
  454. package/dist/components/index.cjs.map +1 -1
  455. package/dist/components/index.d.cts +33 -5
  456. package/dist/components/index.d.cts.map +1 -1
  457. package/dist/components/index.d.mts +33 -5
  458. package/dist/components/index.d.mts.map +1 -1
  459. package/dist/components/index.mjs +17 -3
  460. package/dist/components/index.mjs.map +1 -1
  461. package/dist/types/index.cjs +11 -16
  462. package/dist/types/index.cjs.map +1 -1
  463. package/dist/types/index.d.cts +9 -13
  464. package/dist/types/index.d.cts.map +1 -1
  465. package/dist/types/index.d.mts +9 -13
  466. package/dist/types/index.d.mts.map +1 -1
  467. package/dist/types/index.mjs +10 -14
  468. package/dist/types/index.mjs.map +1 -1
  469. package/package.json +2 -2
@@ -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 { ButtonBase } from "../ButtonBase/index.mjs";
11
+ export const ButtonFilter = ({ isActive = false, twClassName, textProps, style, ...props }) => {
12
+ const tw = useTailwind();
13
+ const mergedStyle = [
14
+ tw.style(isActive ? 'bg-icon-default' : 'bg-background-muted', twClassName),
15
+ style,
16
+ ];
17
+ const mergedTextProps = {
18
+ ...textProps,
19
+ twClassName: [
20
+ isActive ? 'text-icon-inverse' : 'text-default',
21
+ textProps?.twClassName,
22
+ ]
23
+ .filter(Boolean)
24
+ .join(' '),
25
+ };
26
+ return (<ButtonBase textProps={mergedTextProps} style={mergedStyle} {...props}/>);
27
+ };
28
+ //# sourceMappingURL=ButtonFilter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonFilter.mjs","sourceRoot":"","sources":["../../../src/components/ButtonFilter/ButtonFilter.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAI3C,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,QAAQ,GAAG,KAAK,EAChB,WAAW,EACX,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,WAAW,GAAG;QAClB,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,qBAAqB,EAAE,WAAW,CAAC;QAC3E,KAAK;KACN,CAAC;IAEF,MAAM,eAAe,GAAG;QACtB,GAAG,SAAS;QACZ,WAAW,EAAE;YACX,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,cAAc;YAC/C,SAAS,EAAE,WAAW;SACvB;aACE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC;KACb,CAAC;IAEF,OAAO,CACL,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAC1E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\n\nimport type { ButtonFilterProps } from './ButtonFilter.types';\n\nexport const ButtonFilter: React.FC<ButtonFilterProps> = ({\n isActive = false,\n twClassName,\n textProps,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n const mergedStyle = [\n tw.style(isActive ? 'bg-icon-default' : 'bg-background-muted', twClassName),\n style,\n ];\n\n const mergedTextProps = {\n ...textProps,\n twClassName: [\n isActive ? 'text-icon-inverse' : 'text-default',\n textProps?.twClassName,\n ]\n .filter(Boolean)\n .join(' '),\n };\n\n return (\n <ButtonBase textProps={mergedTextProps} style={mergedStyle} {...props} />\n );\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ButtonFilter.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonFilter.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonFilter/ButtonFilter.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonFilterPropsShared } from '@metamask/design-system-shared';\n\nimport type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonFilterProps = Omit<\n ButtonBaseProps,\n 'twClassName' | 'textClassName'\n> &\n ButtonFilterPropsShared & {\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n };\n"]}
@@ -0,0 +1,9 @@
1
+ import type { ButtonFilterPropsShared } from "@metamask/design-system-shared";
2
+ import type { ButtonBaseProps } from "../ButtonBase/index.cjs";
3
+ export type ButtonFilterProps = Omit<ButtonBaseProps, 'twClassName' | 'textClassName'> & ButtonFilterPropsShared & {
4
+ /**
5
+ * Optional prop to add twrnc overriding classNames.
6
+ */
7
+ twClassName?: string;
8
+ };
9
+ //# sourceMappingURL=ButtonFilter.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonFilter.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonFilter/ButtonFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,eAAe,EACf,aAAa,GAAG,eAAe,CAChC,GACC,uBAAuB,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ButtonFilterPropsShared } from "@metamask/design-system-shared";
2
+ import type { ButtonBaseProps } from "../ButtonBase/index.mjs";
3
+ export type ButtonFilterProps = Omit<ButtonBaseProps, 'twClassName' | 'textClassName'> & ButtonFilterPropsShared & {
4
+ /**
5
+ * Optional prop to add twrnc overriding classNames.
6
+ */
7
+ twClassName?: string;
8
+ };
9
+ //# sourceMappingURL=ButtonFilter.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonFilter.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonFilter/ButtonFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,eAAe,EACf,aAAa,GAAG,eAAe,CAChC,GACC,uBAAuB,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonFilter.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonFilter.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonFilter/ButtonFilter.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonFilterPropsShared } from '@metamask/design-system-shared';\n\nimport type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonFilterProps = Omit<\n ButtonBaseProps,\n 'twClassName' | 'textClassName'\n> &\n ButtonFilterPropsShared & {\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonFilter = void 0;
4
+ var ButtonFilter_1 = require("./ButtonFilter.cjs");
5
+ Object.defineProperty(exports, "ButtonFilter", { enumerable: true, get: function () { return ButtonFilter_1.ButtonFilter; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ButtonFilter/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAArC,4GAAA,YAAY,OAAA","sourcesContent":["export { ButtonFilter } from './ButtonFilter';\nexport type { ButtonFilterProps } from './ButtonFilter.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { ButtonFilter } from "./ButtonFilter.cjs";
2
+ export type { ButtonFilterProps } from "./ButtonFilter.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,3 @@
1
+ export { ButtonFilter } from "./ButtonFilter.mjs";
2
+ export type { ButtonFilterProps } from "./ButtonFilter.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,YAAY,EAAE,iBAAiB,EAAE,iCAA6B"}
@@ -0,0 +1,2 @@
1
+ export { ButtonFilter } from "./ButtonFilter.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ButtonFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB","sourcesContent":["export { ButtonFilter } from './ButtonFilter';\nexport type { ButtonFilterProps } from './ButtonFilter.types';\n"]}
@@ -0,0 +1,37 @@
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.ButtonHero = void 0;
7
+ const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
+ const react_1 = __importDefault(require("react"));
9
+ const ButtonBase_1 = require("../ButtonBase/index.cjs");
10
+ /**
11
+ * Inner component that uses the locked light theme from ThemeProvider.
12
+ * Destructures and ignores twClassName, textClassName, and iconClassName to prevent
13
+ * overriding the hero-specific styling (light theme lock).
14
+ *
15
+ * @param props - Component props destructured below
16
+ * @param props.isDisabled - Whether the button is disabled
17
+ * @param props.isLoading - Whether the button is in a loading state
18
+ * @param props.twClassName - Ignored to prevent override of hero styling
19
+ * @param props.textClassName - Ignored to prevent override of hero styling
20
+ * @param props.iconClassName - Ignored to prevent override of hero styling
21
+ * @returns ButtonBase component with locked light theme styles
22
+ */
23
+ const ButtonHeroInner = ({ isDisabled, isLoading, twClassName: _twClassName, textClassName: _textClassName, iconClassName: _iconClassName, ...props }) => (<ButtonBase_1.ButtonBase twClassName={(pressed) => `bg-primary-default ${pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''}`} textClassName={(_pressed) => 'text-primary-inverse'} iconClassName={(_pressed) => 'text-primary-inverse'} isDisabled={isDisabled} isLoading={isLoading} {...props}/>);
24
+ /**
25
+ * ButtonHero component - Hero button with locked light theme
26
+ *
27
+ * Used for primary marketing and call-to-action use cases.
28
+ * The button is locked to light theme colors regardless of the app's theme setting.
29
+ *
30
+ * @param props - ButtonHero props extending ButtonBaseProps
31
+ * @returns ButtonHero component wrapped in light ThemeProvider
32
+ */
33
+ const ButtonHero = (props) => (<design_system_twrnc_preset_1.ThemeProvider theme={design_system_twrnc_preset_1.Theme.Light}>
34
+ <ButtonHeroInner {...props}/>
35
+ </design_system_twrnc_preset_1.ThemeProvider>);
36
+ exports.ButtonHero = ButtonHero;
37
+ //# sourceMappingURL=ButtonHero.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAA4E;AAC5E,kDAA0B;AAE1B,wDAA2C;AAI3C;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAA8B,CAAC,EAClD,UAAU,EACV,SAAS,EACT,WAAW,EAAE,YAAY,EACzB,aAAa,EAAE,cAAc,EAC7B,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,CAAC,uBAAU,CACT,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CACvB,sBACE,OAAO,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EACxE,EAAE,CACH,CACD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF;;;;;;;;GAQG;AACI,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9D,CAAC,0CAAa,CAAC,KAAK,CAAC,CAAC,kCAAK,CAAC,KAAK,CAAC,CAChC;IAAA,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,EAC7B;EAAA,EAAE,0CAAa,CAAC,CACjB,CAAC;AAJW,QAAA,UAAU,cAIrB","sourcesContent":["import { Theme, ThemeProvider } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\n\nimport type { ButtonHeroProps } from './ButtonHero.types';\n\n/**\n * Inner component that uses the locked light theme from ThemeProvider.\n * Destructures and ignores twClassName, textClassName, and iconClassName to prevent\n * overriding the hero-specific styling (light theme lock).\n *\n * @param props - Component props destructured below\n * @param props.isDisabled - Whether the button is disabled\n * @param props.isLoading - Whether the button is in a loading state\n * @param props.twClassName - Ignored to prevent override of hero styling\n * @param props.textClassName - Ignored to prevent override of hero styling\n * @param props.iconClassName - Ignored to prevent override of hero styling\n * @returns ButtonBase component with locked light theme styles\n */\nconst ButtonHeroInner: React.FC<ButtonHeroProps> = ({\n isDisabled,\n isLoading,\n twClassName: _twClassName,\n textClassName: _textClassName,\n iconClassName: _iconClassName,\n ...props\n}) => (\n <ButtonBase\n twClassName={(pressed) =>\n `bg-primary-default ${\n pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''\n }`\n }\n textClassName={(_pressed) => 'text-primary-inverse'}\n iconClassName={(_pressed) => 'text-primary-inverse'}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n);\n\n/**\n * ButtonHero component - Hero button with locked light theme\n *\n * Used for primary marketing and call-to-action use cases.\n * The button is locked to light theme colors regardless of the app's theme setting.\n *\n * @param props - ButtonHero props extending ButtonBaseProps\n * @returns ButtonHero component wrapped in light ThemeProvider\n */\nexport const ButtonHero: React.FC<ButtonHeroProps> = (props) => (\n <ThemeProvider theme={Theme.Light}>\n <ButtonHeroInner {...props} />\n </ThemeProvider>\n);\n"]}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import type { ButtonHeroProps } from "./ButtonHero.types.cjs";
3
+ /**
4
+ * ButtonHero component - Hero button with locked light theme
5
+ *
6
+ * Used for primary marketing and call-to-action use cases.
7
+ * The button is locked to light theme colors regardless of the app's theme setting.
8
+ *
9
+ * @param props - ButtonHero props extending ButtonBaseProps
10
+ * @returns ButtonHero component wrapped in light ThemeProvider
11
+ */
12
+ export declare const ButtonHero: React.FC<ButtonHeroProps>;
13
+ //# sourceMappingURL=ButtonHero.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAqC1D;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import type { ButtonHeroProps } from "./ButtonHero.types.mjs";
3
+ /**
4
+ * ButtonHero component - Hero button with locked light theme
5
+ *
6
+ * Used for primary marketing and call-to-action use cases.
7
+ * The button is locked to light theme colors regardless of the app's theme setting.
8
+ *
9
+ * @param props - ButtonHero props extending ButtonBaseProps
10
+ * @returns ButtonHero component wrapped in light ThemeProvider
11
+ */
12
+ export declare const ButtonHero: React.FC<ButtonHeroProps>;
13
+ //# sourceMappingURL=ButtonHero.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAqC1D;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,37 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { Theme, ThemeProvider } from "@metamask/design-system-twrnc-preset";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { ButtonBase } from "../ButtonBase/index.mjs";
11
+ /**
12
+ * Inner component that uses the locked light theme from ThemeProvider.
13
+ * Destructures and ignores twClassName, textClassName, and iconClassName to prevent
14
+ * overriding the hero-specific styling (light theme lock).
15
+ *
16
+ * @param props - Component props destructured below
17
+ * @param props.isDisabled - Whether the button is disabled
18
+ * @param props.isLoading - Whether the button is in a loading state
19
+ * @param props.twClassName - Ignored to prevent override of hero styling
20
+ * @param props.textClassName - Ignored to prevent override of hero styling
21
+ * @param props.iconClassName - Ignored to prevent override of hero styling
22
+ * @returns ButtonBase component with locked light theme styles
23
+ */
24
+ const ButtonHeroInner = ({ isDisabled, isLoading, twClassName: _twClassName, textClassName: _textClassName, iconClassName: _iconClassName, ...props }) => (<ButtonBase twClassName={(pressed) => `bg-primary-default ${pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''}`} textClassName={(_pressed) => 'text-primary-inverse'} iconClassName={(_pressed) => 'text-primary-inverse'} isDisabled={isDisabled} isLoading={isLoading} {...props}/>);
25
+ /**
26
+ * ButtonHero component - Hero button with locked light theme
27
+ *
28
+ * Used for primary marketing and call-to-action use cases.
29
+ * The button is locked to light theme colors regardless of the app's theme setting.
30
+ *
31
+ * @param props - ButtonHero props extending ButtonBaseProps
32
+ * @returns ButtonHero component wrapped in light ThemeProvider
33
+ */
34
+ export const ButtonHero = (props) => (<ThemeProvider theme={Theme.Light}>
35
+ <ButtonHeroInner {...props}/>
36
+ </ThemeProvider>);
37
+ //# sourceMappingURL=ButtonHero.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,6CAA6C;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAI3C;;;;;;;;;;;;GAYG;AACH,MAAM,eAAe,GAA8B,CAAC,EAClD,UAAU,EACV,SAAS,EACT,WAAW,EAAE,YAAY,EACzB,aAAa,EAAE,cAAc,EAC7B,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,CAAC,UAAU,CACT,WAAW,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CACvB,sBACE,OAAO,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EACxE,EAAE,CACH,CACD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,CACpD,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,KAAK,EAAE,EAAE,CAAC,CAC9D,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAChC;IAAA,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,EAC7B;EAAA,EAAE,aAAa,CAAC,CACjB,CAAC","sourcesContent":["import { Theme, ThemeProvider } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { ButtonBase } from '../ButtonBase';\n\nimport type { ButtonHeroProps } from './ButtonHero.types';\n\n/**\n * Inner component that uses the locked light theme from ThemeProvider.\n * Destructures and ignores twClassName, textClassName, and iconClassName to prevent\n * overriding the hero-specific styling (light theme lock).\n *\n * @param props - Component props destructured below\n * @param props.isDisabled - Whether the button is disabled\n * @param props.isLoading - Whether the button is in a loading state\n * @param props.twClassName - Ignored to prevent override of hero styling\n * @param props.textClassName - Ignored to prevent override of hero styling\n * @param props.iconClassName - Ignored to prevent override of hero styling\n * @returns ButtonBase component with locked light theme styles\n */\nconst ButtonHeroInner: React.FC<ButtonHeroProps> = ({\n isDisabled,\n isLoading,\n twClassName: _twClassName,\n textClassName: _textClassName,\n iconClassName: _iconClassName,\n ...props\n}) => (\n <ButtonBase\n twClassName={(pressed) =>\n `bg-primary-default ${\n pressed && !isDisabled && !isLoading ? 'bg-primary-default-pressed' : ''\n }`\n }\n textClassName={(_pressed) => 'text-primary-inverse'}\n iconClassName={(_pressed) => 'text-primary-inverse'}\n isDisabled={isDisabled}\n isLoading={isLoading}\n {...props}\n />\n);\n\n/**\n * ButtonHero component - Hero button with locked light theme\n *\n * Used for primary marketing and call-to-action use cases.\n * The button is locked to light theme colors regardless of the app's theme setting.\n *\n * @param props - ButtonHero props extending ButtonBaseProps\n * @returns ButtonHero component wrapped in light ThemeProvider\n */\nexport const ButtonHero: React.FC<ButtonHeroProps> = (props) => (\n <ThemeProvider theme={Theme.Light}>\n <ButtonHeroInner {...props} />\n </ThemeProvider>\n);\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ButtonHero.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonHeroProps = ButtonBaseProps;\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ButtonBaseProps } from "../ButtonBase/index.cjs";
2
+ export type ButtonHeroProps = ButtonBaseProps;
3
+ //# sourceMappingURL=ButtonHero.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonBaseProps } from "../ButtonBase/index.mjs";
2
+ export type ButtonHeroProps = ButtonBaseProps;
3
+ //# sourceMappingURL=ButtonHero.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gCAAsB;AAErD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ButtonHero.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonHero.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/ButtonHero.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../ButtonBase';\n\nexport type ButtonHeroProps = ButtonBaseProps;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonHeroSize = exports.ButtonHero = void 0;
4
+ var ButtonHero_1 = require("./ButtonHero.cjs");
5
+ Object.defineProperty(exports, "ButtonHero", { enumerable: true, get: function () { return ButtonHero_1.ButtonHero; } });
6
+ var types_1 = require("../../types/index.cjs");
7
+ Object.defineProperty(exports, "ButtonHeroSize", { enumerable: true, get: function () { return types_1.ButtonHeroSize; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAEnB,+CAA6C;AAApC,uGAAA,cAAc,OAAA","sourcesContent":["export { ButtonHero } from './ButtonHero';\nexport type { ButtonHeroProps } from './ButtonHero.types';\nexport { ButtonHeroSize } from '../../types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { ButtonHero } from "./ButtonHero.cjs";
2
+ export type { ButtonHeroProps } from "./ButtonHero.types.cjs";
3
+ export { ButtonHeroSize } from "../../types/index.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,8BAAoB"}
@@ -0,0 +1,4 @@
1
+ export { ButtonHero } from "./ButtonHero.mjs";
2
+ export type { ButtonHeroProps } from "./ButtonHero.types.mjs";
3
+ export { ButtonHeroSize } from "../../types/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,8BAAoB"}
@@ -0,0 +1,3 @@
1
+ export { ButtonHero } from "./ButtonHero.mjs";
2
+ export { ButtonHeroSize } from "../../types/index.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ButtonHero/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAE1C,OAAO,EAAE,cAAc,EAAE,8BAAoB","sourcesContent":["export { ButtonHero } from './ButtonHero';\nexport type { ButtonHeroProps } from './ButtonHero.types';\nexport { ButtonHeroSize } from '../../types';\n"]}
@@ -30,17 +30,23 @@ const types_1 = require("../../types/index.cjs");
30
30
  const Icon_1 = require("../Icon/index.cjs");
31
31
  const ButtonAnimated_1 = require("../temp-components/ButtonAnimated/index.cjs");
32
32
  const ButtonIcon_constants_1 = require("./ButtonIcon.constants.cjs");
33
- const ButtonIcon = ({ size = types_1.ButtonIconSize.Md, iconName, iconProps, isDisabled = false, isInverse = false, isFloating = false, onPressIn, onPressOut, twClassName, style, ...props }) => {
33
+ const ButtonIcon = ({ size = types_1.ButtonIconSize.Md, iconName, iconProps, isDisabled = false, variant = types_1.ButtonIconVariant.Default, onPressIn, onPressOut, twClassName, style, ...props }) => {
34
34
  const [isPressed, setIsPressed] = (0, react_1.useState)(false);
35
35
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
36
36
  let backgroundColor = 'bg-transparent';
37
- if (isFloating) {
37
+ if (variant === types_1.ButtonIconVariant.Floating) {
38
38
  backgroundColor = 'bg-icon-default';
39
39
  }
40
+ else if (variant === types_1.ButtonIconVariant.Filled) {
41
+ backgroundColor = isPressed ? 'bg-muted-pressed' : 'bg-muted';
42
+ }
40
43
  else if (isPressed) {
41
44
  backgroundColor = 'bg-pressed';
42
45
  }
43
- const twIconColorClassNames = isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';
46
+ const twIconColorClassNames = variant === types_1.ButtonIconVariant.Floating
47
+ ? 'text-primary-inverse'
48
+ : 'text-icon-default';
49
+ const borderRadiusClass = variant === types_1.ButtonIconVariant.Default ? 'rounded-lg' : 'rounded-full';
44
50
  const onPressInHandler = (event) => {
45
51
  setIsPressed(true);
46
52
  onPressIn?.(event);
@@ -50,7 +56,7 @@ const ButtonIcon = ({ size = types_1.ButtonIconSize.Md, iconName, iconProps, isD
50
56
  onPressOut?.(event);
51
57
  };
52
58
  return (<ButtonAnimated_1.ButtonAnimated disabled={isDisabled} onPressIn={onPressInHandler} onPressOut={onPressOutHandler} accessible testID="button-icon" {...props} style={[
53
- tw.style('items-center justify-center', ButtonIcon_constants_1.TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size], isFloating ? 'rounded-full' : 'rounded-lg', backgroundColor, isDisabled ? 'opacity-50' : 'opacity-100', twClassName),
59
+ tw.style('items-center justify-center', ButtonIcon_constants_1.TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size], borderRadiusClass, backgroundColor, isDisabled ? 'opacity-50' : 'opacity-100', twClassName),
54
60
  style,
55
61
  ]}>
56
62
  <Icon_1.Icon name={iconName} color={twIconColorClassNames} size={ButtonIcon_constants_1.MAP_BUTTONICON_SIZE_ICONSIZE[size]} {...iconProps}/>
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAwC;AAGxC,iDAA6C;AAE7C,4CAA+B;AAC/B,gFAAmE;AAEnE,qEAGgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,KAAK,EAClB,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAI,eAAe,GAAG,gBAAgB,CAAC;IACvC,IAAI,UAAU,EAAE;QACd,eAAe,GAAG,iBAAiB,CAAC;KACrC;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,YAAY,CAAC;KAChC;IAED,MAAM,qBAAqB,GACzB,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAEzE,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,+BAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,UAAU,CACV,MAAM,CAAC,aAAa,CACpB,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,6BAA6B,EAC7B,2DAAoC,CAAC,IAAI,CAAC,EAC1C,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,EAC1C,eAAe,EACf,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,KAAK,CAAC,CAAC,qBAAkC,CAAC,CAC1C,IAAI,CAAC,CAAC,mDAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,+BAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AAhEW,QAAA,UAAU,cAgErB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\n\nimport { ButtonIconSize } from '../../types';\nimport type { IconColor } from '../Icon';\nimport { Icon } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\n\nimport {\n MAP_BUTTONICON_SIZE_ICONSIZE,\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = ({\n size = ButtonIconSize.Md,\n iconName,\n iconProps,\n isDisabled = false,\n isInverse = false,\n isFloating = false,\n onPressIn,\n onPressOut,\n twClassName,\n style,\n ...props\n}: ButtonIconProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n let backgroundColor = 'bg-transparent';\n if (isFloating) {\n backgroundColor = 'bg-icon-default';\n } else if (isPressed) {\n backgroundColor = 'bg-pressed';\n }\n\n const twIconColorClassNames =\n isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n onPressOut?.(event);\n };\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n accessible\n testID=\"button-icon\"\n {...props}\n style={[\n tw.style(\n 'items-center justify-center',\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n isFloating ? 'rounded-full' : 'rounded-lg',\n backgroundColor,\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ),\n style,\n ]}\n >\n <Icon\n name={iconName}\n color={twIconColorClassNames as IconColor}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n {...iconProps}\n />\n </ButtonAnimated>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonIcon.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,+CAAwC;AAGxC,iDAAgE;AAEhE,4CAA+B;AAC/B,gFAAmE;AAEnE,qEAGgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,yBAAiB,CAAC,OAAO,EACnC,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,IAAI,eAAe,GAAG,gBAAgB,CAAC;IACvC,IAAI,OAAO,KAAK,yBAAiB,CAAC,QAAQ,EAAE;QAC1C,eAAe,GAAG,iBAAiB,CAAC;KACrC;SAAM,IAAI,OAAO,KAAK,yBAAiB,CAAC,MAAM,EAAE;QAC/C,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,CAAC;KAC/D;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,YAAY,CAAC;KAChC;IAED,MAAM,qBAAqB,GACzB,OAAO,KAAK,yBAAiB,CAAC,QAAQ;QACpC,CAAC,CAAC,sBAAsB;QACxB,CAAC,CAAC,mBAAmB,CAAC;IAE1B,MAAM,iBAAiB,GACrB,OAAO,KAAK,yBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;IAExE,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,+BAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,UAAU,CACV,MAAM,CAAC,aAAa,CACpB,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,6BAA6B,EAC7B,2DAAoC,CAAC,IAAI,CAAC,EAC1C,iBAAiB,EACjB,eAAe,EACf,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,KAAK,CAAC,CAAC,qBAAkC,CAAC,CAC1C,IAAI,CAAC,CAAC,mDAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,+BAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,UAAU,cAsErB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\n\nimport { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconColor } from '../Icon';\nimport { Icon } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\n\nimport {\n MAP_BUTTONICON_SIZE_ICONSIZE,\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = ({\n size = ButtonIconSize.Md,\n iconName,\n iconProps,\n isDisabled = false,\n variant = ButtonIconVariant.Default,\n onPressIn,\n onPressOut,\n twClassName,\n style,\n ...props\n}: ButtonIconProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n let backgroundColor = 'bg-transparent';\n if (variant === ButtonIconVariant.Floating) {\n backgroundColor = 'bg-icon-default';\n } else if (variant === ButtonIconVariant.Filled) {\n backgroundColor = isPressed ? 'bg-muted-pressed' : 'bg-muted';\n } else if (isPressed) {\n backgroundColor = 'bg-pressed';\n }\n\n const twIconColorClassNames =\n variant === ButtonIconVariant.Floating\n ? 'text-primary-inverse'\n : 'text-icon-default';\n\n const borderRadiusClass =\n variant === ButtonIconVariant.Default ? 'rounded-lg' : 'rounded-full';\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n onPressOut?.(event);\n };\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n accessible\n testID=\"button-icon\"\n {...props}\n style={[\n tw.style(\n 'items-center justify-center',\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n borderRadiusClass,\n backgroundColor,\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ),\n style,\n ]}\n >\n <Icon\n name={iconName}\n color={twIconColorClassNames as IconColor}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n {...iconProps}\n />\n </ButtonAnimated>\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { ButtonIconProps } from "./ButtonIcon.types.cjs";
3
- export declare const ButtonIcon: ({ size, iconName, iconProps, isDisabled, isInverse, isFloating, onPressIn, onPressOut, twClassName, style, ...props }: ButtonIconProps) => React.JSX.Element;
3
+ export declare const ButtonIcon: ({ size, iconName, iconProps, isDisabled, variant, onPressIn, onPressOut, twClassName, style, ...props }: ButtonIconProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=ButtonIcon.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,0HAYpB,eAAe,sBAoDjB,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,4GAWpB,eAAe,sBA2DjB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import type { ButtonIconProps } from "./ButtonIcon.types.mjs";
3
- export declare const ButtonIcon: ({ size, iconName, iconProps, isDisabled, isInverse, isFloating, onPressIn, onPressOut, twClassName, style, ...props }: ButtonIconProps) => React.JSX.Element;
3
+ export declare const ButtonIcon: ({ size, iconName, iconProps, isDisabled, variant, onPressIn, onPressOut, twClassName, style, ...props }: ButtonIconProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=ButtonIcon.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,0HAYpB,eAAe,sBAoDjB,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,cAAc;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,4GAWpB,eAAe,sBA2DjB,CAAC"}
@@ -7,21 +7,27 @@ function $importDefault(module) {
7
7
  import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
8
  import $React, { useState } from "react";
9
9
  const React = $importDefault($React);
10
- import { ButtonIconSize } from "../../types/index.mjs";
10
+ import { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
11
11
  import { Icon } from "../Icon/index.mjs";
12
12
  import { ButtonAnimated } from "../temp-components/ButtonAnimated/index.mjs";
13
13
  import { MAP_BUTTONICON_SIZE_ICONSIZE, TWCLASSMAP_BUTTONICON_SIZE_DIMENSION } from "./ButtonIcon.constants.mjs";
14
- export const ButtonIcon = ({ size = ButtonIconSize.Md, iconName, iconProps, isDisabled = false, isInverse = false, isFloating = false, onPressIn, onPressOut, twClassName, style, ...props }) => {
14
+ export const ButtonIcon = ({ size = ButtonIconSize.Md, iconName, iconProps, isDisabled = false, variant = ButtonIconVariant.Default, onPressIn, onPressOut, twClassName, style, ...props }) => {
15
15
  const [isPressed, setIsPressed] = useState(false);
16
16
  const tw = useTailwind();
17
17
  let backgroundColor = 'bg-transparent';
18
- if (isFloating) {
18
+ if (variant === ButtonIconVariant.Floating) {
19
19
  backgroundColor = 'bg-icon-default';
20
20
  }
21
+ else if (variant === ButtonIconVariant.Filled) {
22
+ backgroundColor = isPressed ? 'bg-muted-pressed' : 'bg-muted';
23
+ }
21
24
  else if (isPressed) {
22
25
  backgroundColor = 'bg-pressed';
23
26
  }
24
- const twIconColorClassNames = isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';
27
+ const twIconColorClassNames = variant === ButtonIconVariant.Floating
28
+ ? 'text-primary-inverse'
29
+ : 'text-icon-default';
30
+ const borderRadiusClass = variant === ButtonIconVariant.Default ? 'rounded-lg' : 'rounded-full';
25
31
  const onPressInHandler = (event) => {
26
32
  setIsPressed(true);
27
33
  onPressIn?.(event);
@@ -31,7 +37,7 @@ export const ButtonIcon = ({ size = ButtonIconSize.Md, iconName, iconProps, isDi
31
37
  onPressOut?.(event);
32
38
  };
33
39
  return (<ButtonAnimated disabled={isDisabled} onPressIn={onPressInHandler} onPressOut={onPressOutHandler} accessible testID="button-icon" {...props} style={[
34
- tw.style('items-center justify-center', TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size], isFloating ? 'rounded-full' : 'rounded-lg', backgroundColor, isDisabled ? 'opacity-50' : 'opacity-100', twClassName),
40
+ tw.style('items-center justify-center', TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size], borderRadiusClass, backgroundColor, isDisabled ? 'opacity-50' : 'opacity-100', twClassName),
35
41
  style,
36
42
  ]}>
37
43
  <Icon name={iconName} color={twIconColorClassNames} size={MAP_BUTTONICON_SIZE_ICONSIZE[size]} {...iconProps}/>
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAE7C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAC/B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAEnE,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACrC,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,KAAK,EAClB,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,IAAI,eAAe,GAAG,gBAAgB,CAAC;IACvC,IAAI,UAAU,EAAE;QACd,eAAe,GAAG,iBAAiB,CAAC;KACrC;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,YAAY,CAAC;KAChC;IAED,MAAM,qBAAqB,GACzB,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAEzE,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,cAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,UAAU,CACV,MAAM,CAAC,aAAa,CACpB,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,6BAA6B,EAC7B,oCAAoC,CAAC,IAAI,CAAC,EAC1C,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,EAC1C,eAAe,EACf,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,KAAK,CAAC,CAAC,qBAAkC,CAAC,CAC1C,IAAI,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\n\nimport { ButtonIconSize } from '../../types';\nimport type { IconColor } from '../Icon';\nimport { Icon } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\n\nimport {\n MAP_BUTTONICON_SIZE_ICONSIZE,\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = ({\n size = ButtonIconSize.Md,\n iconName,\n iconProps,\n isDisabled = false,\n isInverse = false,\n isFloating = false,\n onPressIn,\n onPressOut,\n twClassName,\n style,\n ...props\n}: ButtonIconProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n let backgroundColor = 'bg-transparent';\n if (isFloating) {\n backgroundColor = 'bg-icon-default';\n } else if (isPressed) {\n backgroundColor = 'bg-pressed';\n }\n\n const twIconColorClassNames =\n isInverse || isFloating ? 'text-primary-inverse' : 'text-icon-default';\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n onPressOut?.(event);\n };\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n accessible\n testID=\"button-icon\"\n {...props}\n style={[\n tw.style(\n 'items-center justify-center',\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n isFloating ? 'rounded-full' : 'rounded-lg',\n backgroundColor,\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ),\n style,\n ]}\n >\n <Icon\n name={iconName}\n color={twIconColorClassNames as IconColor}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n {...iconProps}\n />\n </ButtonAnimated>\n );\n};\n"]}
1
+ {"version":3,"file":"ButtonIcon.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,QAAO,EAAE,QAAQ,EAAE,cAAc;;AAGxC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AAEhE,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAC/B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAEnE,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACrC,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,iBAAiB,CAAC,OAAO,EACnC,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,IAAI,eAAe,GAAG,gBAAgB,CAAC;IACvC,IAAI,OAAO,KAAK,iBAAiB,CAAC,QAAQ,EAAE;QAC1C,eAAe,GAAG,iBAAiB,CAAC;KACrC;SAAM,IAAI,OAAO,KAAK,iBAAiB,CAAC,MAAM,EAAE;QAC/C,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,CAAC;KAC/D;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,YAAY,CAAC;KAChC;IAED,MAAM,qBAAqB,GACzB,OAAO,KAAK,iBAAiB,CAAC,QAAQ;QACpC,CAAC,CAAC,sBAAsB;QACxB,CAAC,CAAC,mBAAmB,CAAC;IAE1B,MAAM,iBAAiB,GACrB,OAAO,KAAK,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;IAExE,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAE,EAAE;QACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,cAAc,CACb,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,UAAU,CACV,MAAM,CAAC,aAAa,CACpB,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,6BAA6B,EAC7B,oCAAoC,CAAC,IAAI,CAAC,EAC1C,iBAAiB,EACjB,eAAe,EACf,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACzC,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,CACf,KAAK,CAAC,CAAC,qBAAkC,CAAC,CAC1C,IAAI,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CACzC,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,cAAc,CAAC,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React, { useState } from 'react';\nimport type { GestureResponderEvent } from 'react-native';\n\nimport { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconColor } from '../Icon';\nimport { Icon } from '../Icon';\nimport { ButtonAnimated } from '../temp-components/ButtonAnimated';\n\nimport {\n MAP_BUTTONICON_SIZE_ICONSIZE,\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = ({\n size = ButtonIconSize.Md,\n iconName,\n iconProps,\n isDisabled = false,\n variant = ButtonIconVariant.Default,\n onPressIn,\n onPressOut,\n twClassName,\n style,\n ...props\n}: ButtonIconProps) => {\n const [isPressed, setIsPressed] = useState(false);\n const tw = useTailwind();\n\n let backgroundColor = 'bg-transparent';\n if (variant === ButtonIconVariant.Floating) {\n backgroundColor = 'bg-icon-default';\n } else if (variant === ButtonIconVariant.Filled) {\n backgroundColor = isPressed ? 'bg-muted-pressed' : 'bg-muted';\n } else if (isPressed) {\n backgroundColor = 'bg-pressed';\n }\n\n const twIconColorClassNames =\n variant === ButtonIconVariant.Floating\n ? 'text-primary-inverse'\n : 'text-icon-default';\n\n const borderRadiusClass =\n variant === ButtonIconVariant.Default ? 'rounded-lg' : 'rounded-full';\n\n const onPressInHandler = (event: GestureResponderEvent) => {\n setIsPressed(true);\n onPressIn?.(event);\n };\n\n const onPressOutHandler = (event: GestureResponderEvent) => {\n setIsPressed(false);\n onPressOut?.(event);\n };\n\n return (\n <ButtonAnimated\n disabled={isDisabled}\n onPressIn={onPressInHandler}\n onPressOut={onPressOutHandler}\n accessible\n testID=\"button-icon\"\n {...props}\n style={[\n tw.style(\n 'items-center justify-center',\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n borderRadiusClass,\n backgroundColor,\n isDisabled ? 'opacity-50' : 'opacity-100',\n twClassName,\n ),\n style,\n ]}\n >\n <Icon\n name={iconName}\n color={twIconColorClassNames as IconColor}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n {...iconProps}\n />\n </ButtonAnimated>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { ButtonIconSize } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { ButtonAnimatedProps } from '../temp-components/ButtonAnimated';\n\n/**\n * ButtonIcon component props.\n */\nexport type ButtonIconProps = {\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.\n *\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop to show the floating/contained state of the button, which is reserved for floating buttons.\n * Note: This prop provides styling only. There is no positioning logic.\n *\n * @default false\n */\n isFloating?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ButtonAnimatedProps, 'children'>;\n"]}
1
+ {"version":3,"file":"ButtonIcon.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { ButtonAnimatedProps } from '../temp-components/ButtonAnimated';\n\n/**\n * ButtonIcon component props.\n */\nexport type ButtonIconProps = {\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to control the visual variant of the button.\n *\n * @default ButtonIconVariant.Default\n */\n variant?: ButtonIconVariant;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ButtonAnimatedProps, 'children'>;\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { ButtonIconSize } from "../../types/index.cjs";
2
+ import type { ButtonIconSize, ButtonIconVariant } from "../../types/index.cjs";
3
3
  import type { IconProps, IconName } from "../Icon/index.cjs";
4
4
  import type { ButtonAnimatedProps } from "../temp-components/ButtonAnimated/index.cjs";
5
5
  /**
@@ -28,18 +28,11 @@ export type ButtonIconProps = {
28
28
  */
29
29
  isDisabled?: boolean;
30
30
  /**
31
- * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.
31
+ * Optional prop to control the visual variant of the button.
32
32
  *
33
- * @default false
34
- */
35
- isInverse?: boolean;
36
- /**
37
- * Optional prop to show the floating/contained state of the button, which is reserved for floating buttons.
38
- * Note: This prop provides styling only. There is no positioning logic.
39
- *
40
- * @default false
33
+ * @default ButtonIconVariant.Default
41
34
  */
42
- isFloating?: boolean;
35
+ variant?: ButtonIconVariant;
43
36
  /**
44
37
  * Optional prop to add twrnc overriding classNames.
45
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oDAA0C;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oDAA0C;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { StyleProp, ViewStyle } from "react-native/index.js";
2
- import type { ButtonIconSize } from "../../types/index.mjs";
2
+ import type { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
3
3
  import type { IconProps, IconName } from "../Icon/index.mjs";
4
4
  import type { ButtonAnimatedProps } from "../temp-components/ButtonAnimated/index.mjs";
5
5
  /**
@@ -28,18 +28,11 @@ export type ButtonIconProps = {
28
28
  */
29
29
  isDisabled?: boolean;
30
30
  /**
31
- * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.
31
+ * Optional prop to control the visual variant of the button.
32
32
  *
33
- * @default false
34
- */
35
- isInverse?: boolean;
36
- /**
37
- * Optional prop to show the floating/contained state of the button, which is reserved for floating buttons.
38
- * Note: This prop provides styling only. There is no positioning logic.
39
- *
40
- * @default false
33
+ * @default ButtonIconVariant.Default
41
34
  */
42
- isFloating?: boolean;
35
+ variant?: ButtonIconVariant;
43
36
  /**
44
37
  * Optional prop to add twrnc overriding classNames.
45
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAoB;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oDAA0C;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,oDAA0C;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { ButtonIconSize } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { ButtonAnimatedProps } from '../temp-components/ButtonAnimated';\n\n/**\n * ButtonIcon component props.\n */\nexport type ButtonIconProps = {\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to show the inverse state of the button, which is reserved for buttons on colored backgrounds.\n *\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop to show the floating/contained state of the button, which is reserved for floating buttons.\n * Note: This prop provides styling only. There is no positioning logic.\n *\n * @default false\n */\n isFloating?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ButtonAnimatedProps, 'children'>;\n"]}
1
+ {"version":3,"file":"ButtonIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconProps, IconName } from '../Icon';\nimport type { ButtonAnimatedProps } from '../temp-components/ButtonAnimated';\n\n/**\n * ButtonIcon component props.\n */\nexport type ButtonIconProps = {\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to control the visual variant of the button.\n *\n * @default ButtonIconVariant.Default\n */\n variant?: ButtonIconVariant;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n /**\n * Optional prop to control the style.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ButtonAnimatedProps, 'children'>;\n"]}