@metamask-previews/design-system-react-native 0.5.1-preview.abc15cd → 0.9.0-preview.694a8ed

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 (657) hide show
  1. package/CHANGELOG.md +76 -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/AvatarBase/AvatarBase.cjs +9 -11
  27. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  28. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  29. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  30. package/dist/components/AvatarBase/AvatarBase.mjs +9 -11
  31. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  32. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +2 -2
  33. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  34. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts +1 -1
  35. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  36. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts +1 -1
  37. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  38. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +2 -2
  39. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  40. package/dist/components/AvatarGroup/AvatarGroup.cjs +4 -5
  41. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  42. package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
  43. package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  44. package/dist/components/AvatarGroup/AvatarGroup.mjs +4 -5
  45. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  46. package/dist/components/AvatarIcon/AvatarIcon.cjs +5 -6
  47. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  48. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  49. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  50. package/dist/components/AvatarIcon/AvatarIcon.mjs +5 -6
  51. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  52. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -2
  53. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  54. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts +1 -1
  55. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  56. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts +1 -1
  57. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  58. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -2
  59. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  60. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  61. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  62. package/dist/components/AvatarToken/AvatarToken.d.cts +1 -1
  63. package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
  64. package/dist/components/AvatarToken/AvatarToken.d.mts +1 -1
  65. package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
  66. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  67. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  68. package/dist/components/BadgeCount/BadgeCount.cjs +7 -12
  69. package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
  70. package/dist/components/BadgeCount/BadgeCount.constants.cjs +6 -10
  71. package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
  72. package/dist/components/BadgeCount/BadgeCount.constants.d.cts +1 -2
  73. package/dist/components/BadgeCount/BadgeCount.constants.d.cts.map +1 -1
  74. package/dist/components/BadgeCount/BadgeCount.constants.d.mts +1 -2
  75. package/dist/components/BadgeCount/BadgeCount.constants.d.mts.map +1 -1
  76. package/dist/components/BadgeCount/BadgeCount.constants.mjs +3 -7
  77. package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
  78. package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
  79. package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
  80. package/dist/components/BadgeCount/BadgeCount.mjs +8 -13
  81. package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
  82. package/dist/components/BadgeCount/BadgeCount.types.cjs.map +1 -1
  83. package/dist/components/BadgeCount/BadgeCount.types.d.cts +5 -22
  84. package/dist/components/BadgeCount/BadgeCount.types.d.cts.map +1 -1
  85. package/dist/components/BadgeCount/BadgeCount.types.d.mts +5 -22
  86. package/dist/components/BadgeCount/BadgeCount.types.d.mts.map +1 -1
  87. package/dist/components/BadgeCount/BadgeCount.types.mjs.map +1 -1
  88. package/dist/components/BadgeCount/index.cjs +2 -2
  89. package/dist/components/BadgeCount/index.cjs.map +1 -1
  90. package/dist/components/BadgeCount/index.d.cts +1 -1
  91. package/dist/components/BadgeCount/index.d.cts.map +1 -1
  92. package/dist/components/BadgeCount/index.d.mts +1 -1
  93. package/dist/components/BadgeCount/index.d.mts.map +1 -1
  94. package/dist/components/BadgeCount/index.mjs +1 -1
  95. package/dist/components/BadgeCount/index.mjs.map +1 -1
  96. package/dist/components/BadgeIcon/BadgeIcon.cjs +5 -10
  97. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  98. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  99. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  100. package/dist/components/BadgeIcon/BadgeIcon.mjs +5 -10
  101. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  102. package/dist/components/BadgeStatus/BadgeStatus.cjs +6 -6
  103. package/dist/components/BadgeStatus/BadgeStatus.cjs.map +1 -1
  104. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +8 -8
  105. package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
  106. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts +1 -1
  107. package/dist/components/BadgeStatus/BadgeStatus.constants.d.cts.map +1 -1
  108. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts +1 -1
  109. package/dist/components/BadgeStatus/BadgeStatus.constants.d.mts.map +1 -1
  110. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
  111. package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
  112. package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
  113. package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
  114. package/dist/components/BadgeStatus/BadgeStatus.mjs +6 -6
  115. package/dist/components/BadgeStatus/BadgeStatus.mjs.map +1 -1
  116. package/dist/components/BadgeStatus/BadgeStatus.types.cjs.map +1 -1
  117. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts +5 -29
  118. package/dist/components/BadgeStatus/BadgeStatus.types.d.cts.map +1 -1
  119. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts +5 -29
  120. package/dist/components/BadgeStatus/BadgeStatus.types.d.mts.map +1 -1
  121. package/dist/components/BadgeStatus/BadgeStatus.types.mjs.map +1 -1
  122. package/dist/components/BadgeStatus/index.cjs +4 -4
  123. package/dist/components/BadgeStatus/index.cjs.map +1 -1
  124. package/dist/components/BadgeStatus/index.d.cts +1 -1
  125. package/dist/components/BadgeStatus/index.d.cts.map +1 -1
  126. package/dist/components/BadgeStatus/index.d.mts +1 -1
  127. package/dist/components/BadgeStatus/index.d.mts.map +1 -1
  128. package/dist/components/BadgeStatus/index.mjs +1 -1
  129. package/dist/components/BadgeStatus/index.mjs.map +1 -1
  130. package/dist/components/BadgeWrapper/BadgeWrapper.cjs +3 -3
  131. package/dist/components/BadgeWrapper/BadgeWrapper.cjs.map +1 -1
  132. package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
  133. package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
  134. package/dist/components/BadgeWrapper/BadgeWrapper.mjs +3 -3
  135. package/dist/components/BadgeWrapper/BadgeWrapper.mjs.map +1 -1
  136. package/dist/components/BannerBase/BannerBase.cjs +63 -0
  137. package/dist/components/BannerBase/BannerBase.cjs.map +1 -0
  138. package/dist/components/BannerBase/BannerBase.d.cts +4 -0
  139. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -0
  140. package/dist/components/BannerBase/BannerBase.d.mts +4 -0
  141. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -0
  142. package/dist/components/BannerBase/BannerBase.mjs +63 -0
  143. package/dist/components/BannerBase/BannerBase.mjs.map +1 -0
  144. package/dist/components/BannerBase/BannerBase.types.cjs +3 -0
  145. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -0
  146. package/dist/components/BannerBase/BannerBase.types.d.cts +53 -0
  147. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -0
  148. package/dist/components/BannerBase/BannerBase.types.d.mts +53 -0
  149. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -0
  150. package/dist/components/BannerBase/BannerBase.types.mjs +2 -0
  151. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -0
  152. package/dist/components/BannerBase/index.cjs +6 -0
  153. package/dist/components/BannerBase/index.cjs.map +1 -0
  154. package/dist/components/BannerBase/index.d.cts +3 -0
  155. package/dist/components/BannerBase/index.d.cts.map +1 -0
  156. package/dist/components/BannerBase/index.d.mts +3 -0
  157. package/dist/components/BannerBase/index.d.mts.map +1 -0
  158. package/dist/components/BannerBase/index.mjs +2 -0
  159. package/dist/components/BannerBase/index.mjs.map +1 -0
  160. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs +35 -0
  161. package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -0
  162. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts +4 -0
  163. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.cts.map +1 -0
  164. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts +4 -0
  165. package/dist/components/BottomSheetFooter/BottomSheetFooter.d.mts.map +1 -0
  166. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs +35 -0
  167. package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -0
  168. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs +12 -0
  169. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.cjs.map +1 -0
  170. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts +41 -0
  171. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.cts.map +1 -0
  172. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts +41 -0
  173. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.d.mts.map +1 -0
  174. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs +9 -0
  175. package/dist/components/BottomSheetFooter/BottomSheetFooter.types.mjs.map +1 -0
  176. package/dist/components/BottomSheetFooter/index.cjs +8 -0
  177. package/dist/components/BottomSheetFooter/index.cjs.map +1 -0
  178. package/dist/components/BottomSheetFooter/index.d.cts +4 -0
  179. package/dist/components/BottomSheetFooter/index.d.cts.map +1 -0
  180. package/dist/components/BottomSheetFooter/index.d.mts +4 -0
  181. package/dist/components/BottomSheetFooter/index.d.mts.map +1 -0
  182. package/dist/components/BottomSheetFooter/index.mjs +3 -0
  183. package/dist/components/BottomSheetFooter/index.mjs.map +1 -0
  184. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs +27 -0
  185. package/dist/components/BottomSheetHeader/BottomSheetHeader.cjs.map +1 -0
  186. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs +15 -0
  187. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.cjs.map +1 -0
  188. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts +7 -0
  189. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.cts.map +1 -0
  190. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts +7 -0
  191. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.d.mts.map +1 -0
  192. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs +12 -0
  193. package/dist/components/BottomSheetHeader/BottomSheetHeader.constants.mjs.map +1 -0
  194. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts +4 -0
  195. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.cts.map +1 -0
  196. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts +4 -0
  197. package/dist/components/BottomSheetHeader/BottomSheetHeader.d.mts.map +1 -0
  198. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs +27 -0
  199. package/dist/components/BottomSheetHeader/BottomSheetHeader.mjs.map +1 -0
  200. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs +14 -0
  201. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.cjs.map +1 -0
  202. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts +50 -0
  203. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.cts.map +1 -0
  204. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts +50 -0
  205. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.d.mts.map +1 -0
  206. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs +11 -0
  207. package/dist/components/BottomSheetHeader/BottomSheetHeader.types.mjs.map +1 -0
  208. package/dist/components/BottomSheetHeader/index.cjs +8 -0
  209. package/dist/components/BottomSheetHeader/index.cjs.map +1 -0
  210. package/dist/components/BottomSheetHeader/index.d.cts +4 -0
  211. package/dist/components/BottomSheetHeader/index.d.cts.map +1 -0
  212. package/dist/components/BottomSheetHeader/index.d.mts +4 -0
  213. package/dist/components/BottomSheetHeader/index.d.mts.map +1 -0
  214. package/dist/components/BottomSheetHeader/index.mjs +3 -0
  215. package/dist/components/BottomSheetHeader/index.mjs.map +1 -0
  216. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +51 -0
  217. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -0
  218. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs +7 -0
  219. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.cjs.map +1 -0
  220. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts +3 -0
  221. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.cts.map +1 -0
  222. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts +3 -0
  223. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.d.mts.map +1 -0
  224. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs +4 -0
  225. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.constants.mjs.map +1 -0
  226. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts +4 -0
  227. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.cts.map +1 -0
  228. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts +4 -0
  229. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.d.mts.map +1 -0
  230. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs +31 -0
  231. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.mjs.map +1 -0
  232. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs +3 -0
  233. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.cjs.map +1 -0
  234. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts +20 -0
  235. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.cts.map +1 -0
  236. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts +20 -0
  237. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.d.mts.map +1 -0
  238. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs +2 -0
  239. package/dist/components/BottomSheetOverlay/BottomSheetOverlay.types.mjs.map +1 -0
  240. package/dist/components/BottomSheetOverlay/index.cjs +6 -0
  241. package/dist/components/BottomSheetOverlay/index.cjs.map +1 -0
  242. package/dist/components/BottomSheetOverlay/index.d.cts +3 -0
  243. package/dist/components/BottomSheetOverlay/index.d.cts.map +1 -0
  244. package/dist/components/BottomSheetOverlay/index.d.mts +3 -0
  245. package/dist/components/BottomSheetOverlay/index.d.mts.map +1 -0
  246. package/dist/components/BottomSheetOverlay/index.mjs +2 -0
  247. package/dist/components/BottomSheetOverlay/index.mjs.map +1 -0
  248. package/dist/components/Box/Box.cjs +12 -27
  249. package/dist/components/Box/Box.cjs.map +1 -1
  250. package/dist/components/Box/Box.d.cts.map +1 -1
  251. package/dist/components/Box/Box.d.mts.map +1 -1
  252. package/dist/components/Box/Box.mjs +12 -27
  253. package/dist/components/Box/Box.mjs.map +1 -1
  254. package/dist/components/ButtonBase/ButtonBase.cjs +50 -41
  255. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  256. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  257. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  258. package/dist/components/ButtonBase/ButtonBase.mjs +50 -41
  259. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  260. package/dist/components/ButtonHero/ButtonHero.cjs +37 -0
  261. package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -0
  262. package/dist/components/ButtonHero/ButtonHero.d.cts +13 -0
  263. package/dist/components/ButtonHero/ButtonHero.d.cts.map +1 -0
  264. package/dist/components/ButtonHero/ButtonHero.d.mts +13 -0
  265. package/dist/components/ButtonHero/ButtonHero.d.mts.map +1 -0
  266. package/dist/components/ButtonHero/ButtonHero.mjs +37 -0
  267. package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -0
  268. package/dist/components/ButtonHero/ButtonHero.types.cjs +3 -0
  269. package/dist/components/ButtonHero/ButtonHero.types.cjs.map +1 -0
  270. package/dist/components/ButtonHero/ButtonHero.types.d.cts +3 -0
  271. package/dist/components/ButtonHero/ButtonHero.types.d.cts.map +1 -0
  272. package/dist/components/ButtonHero/ButtonHero.types.d.mts +3 -0
  273. package/dist/components/ButtonHero/ButtonHero.types.d.mts.map +1 -0
  274. package/dist/components/ButtonHero/ButtonHero.types.mjs +2 -0
  275. package/dist/components/ButtonHero/ButtonHero.types.mjs.map +1 -0
  276. package/dist/components/ButtonHero/index.cjs +8 -0
  277. package/dist/components/ButtonHero/index.cjs.map +1 -0
  278. package/dist/components/ButtonHero/index.d.cts +4 -0
  279. package/dist/components/ButtonHero/index.d.cts.map +1 -0
  280. package/dist/components/ButtonHero/index.d.mts +4 -0
  281. package/dist/components/ButtonHero/index.d.mts.map +1 -0
  282. package/dist/components/ButtonHero/index.mjs +3 -0
  283. package/dist/components/ButtonHero/index.mjs.map +1 -0
  284. package/dist/components/ButtonIcon/ButtonIcon.cjs +5 -10
  285. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  286. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  287. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  288. package/dist/components/ButtonIcon/ButtonIcon.mjs +5 -10
  289. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  290. package/dist/components/ButtonSemantic/ButtonSemantic.cjs +64 -0
  291. package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -0
  292. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs +17 -0
  293. package/dist/components/ButtonSemantic/ButtonSemantic.constants.cjs.map +1 -0
  294. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts +5 -0
  295. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.cts.map +1 -0
  296. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts +5 -0
  297. package/dist/components/ButtonSemantic/ButtonSemantic.constants.d.mts.map +1 -0
  298. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs +14 -0
  299. package/dist/components/ButtonSemantic/ButtonSemantic.constants.mjs.map +1 -0
  300. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts +4 -0
  301. package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -0
  302. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts +4 -0
  303. package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -0
  304. package/dist/components/ButtonSemantic/ButtonSemantic.mjs +44 -0
  305. package/dist/components/ButtonSemantic/ButtonSemantic.mjs.map +1 -0
  306. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs +18 -0
  307. package/dist/components/ButtonSemantic/ButtonSemantic.types.cjs.map +1 -0
  308. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts +30 -0
  309. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.cts.map +1 -0
  310. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts +30 -0
  311. package/dist/components/ButtonSemantic/ButtonSemantic.types.d.mts.map +1 -0
  312. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs +15 -0
  313. package/dist/components/ButtonSemantic/ButtonSemantic.types.mjs.map +1 -0
  314. package/dist/components/ButtonSemantic/index.cjs +8 -0
  315. package/dist/components/ButtonSemantic/index.cjs.map +1 -0
  316. package/dist/components/ButtonSemantic/index.d.cts +4 -0
  317. package/dist/components/ButtonSemantic/index.d.cts.map +1 -0
  318. package/dist/components/ButtonSemantic/index.d.mts +4 -0
  319. package/dist/components/ButtonSemantic/index.d.mts.map +1 -0
  320. package/dist/components/ButtonSemantic/index.mjs +3 -0
  321. package/dist/components/ButtonSemantic/index.mjs.map +1 -0
  322. package/dist/components/Card/Card.cjs +26 -0
  323. package/dist/components/Card/Card.cjs.map +1 -0
  324. package/dist/components/Card/Card.d.cts +4 -0
  325. package/dist/components/Card/Card.d.cts.map +1 -0
  326. package/dist/components/Card/Card.d.mts +4 -0
  327. package/dist/components/Card/Card.d.mts.map +1 -0
  328. package/dist/components/Card/Card.mjs +26 -0
  329. package/dist/components/Card/Card.mjs.map +1 -0
  330. package/dist/components/Card/Card.types.cjs +3 -0
  331. package/dist/components/Card/Card.types.cjs.map +1 -0
  332. package/dist/components/Card/Card.types.d.cts +25 -0
  333. package/dist/components/Card/Card.types.d.cts.map +1 -0
  334. package/dist/components/Card/Card.types.d.mts +25 -0
  335. package/dist/components/Card/Card.types.d.mts.map +1 -0
  336. package/dist/components/Card/Card.types.mjs +2 -0
  337. package/dist/components/Card/Card.types.mjs.map +1 -0
  338. package/dist/components/Card/index.cjs +6 -0
  339. package/dist/components/Card/index.cjs.map +1 -0
  340. package/dist/components/Card/index.d.cts +3 -0
  341. package/dist/components/Card/index.d.cts.map +1 -0
  342. package/dist/components/Card/index.d.mts +3 -0
  343. package/dist/components/Card/index.d.mts.map +1 -0
  344. package/dist/components/Card/index.mjs +2 -0
  345. package/dist/components/Card/index.mjs.map +1 -0
  346. package/dist/components/Checkbox/Checkbox.cjs +4 -4
  347. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  348. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  349. package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
  350. package/dist/components/Checkbox/Checkbox.mjs +4 -4
  351. package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
  352. package/dist/components/HeaderBase/HeaderBase.cjs +132 -0
  353. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -0
  354. package/dist/components/HeaderBase/HeaderBase.constants.cjs +15 -0
  355. package/dist/components/HeaderBase/HeaderBase.constants.cjs.map +1 -0
  356. package/dist/components/HeaderBase/HeaderBase.constants.d.cts +7 -0
  357. package/dist/components/HeaderBase/HeaderBase.constants.d.cts.map +1 -0
  358. package/dist/components/HeaderBase/HeaderBase.constants.d.mts +7 -0
  359. package/dist/components/HeaderBase/HeaderBase.constants.d.mts.map +1 -0
  360. package/dist/components/HeaderBase/HeaderBase.constants.mjs +12 -0
  361. package/dist/components/HeaderBase/HeaderBase.constants.mjs.map +1 -0
  362. package/dist/components/HeaderBase/HeaderBase.d.cts +4 -0
  363. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -0
  364. package/dist/components/HeaderBase/HeaderBase.d.mts +4 -0
  365. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -0
  366. package/dist/components/HeaderBase/HeaderBase.mjs +112 -0
  367. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -0
  368. package/dist/components/HeaderBase/HeaderBase.types.cjs +15 -0
  369. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -0
  370. package/dist/components/HeaderBase/HeaderBase.types.d.cts +87 -0
  371. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -0
  372. package/dist/components/HeaderBase/HeaderBase.types.d.mts +87 -0
  373. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -0
  374. package/dist/components/HeaderBase/HeaderBase.types.mjs +12 -0
  375. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -0
  376. package/dist/components/HeaderBase/index.cjs +8 -0
  377. package/dist/components/HeaderBase/index.cjs.map +1 -0
  378. package/dist/components/HeaderBase/index.d.cts +4 -0
  379. package/dist/components/HeaderBase/index.d.cts.map +1 -0
  380. package/dist/components/HeaderBase/index.d.mts +4 -0
  381. package/dist/components/HeaderBase/index.d.mts.map +1 -0
  382. package/dist/components/HeaderBase/index.mjs +3 -0
  383. package/dist/components/HeaderBase/index.mjs.map +1 -0
  384. package/dist/components/Icon/Icon.assets.cjs +2 -0
  385. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  386. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  387. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  388. package/dist/components/Icon/Icon.assets.mjs +2 -0
  389. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  390. package/dist/components/Icon/Icon.cjs +4 -32
  391. package/dist/components/Icon/Icon.cjs.map +1 -1
  392. package/dist/components/Icon/Icon.d.cts.map +1 -1
  393. package/dist/components/Icon/Icon.d.mts.map +1 -1
  394. package/dist/components/Icon/Icon.mjs +2 -10
  395. package/dist/components/Icon/Icon.mjs.map +1 -1
  396. package/dist/components/Icon/assets/corporate-fare.svg +1 -0
  397. package/dist/components/Input/Input.cjs +53 -0
  398. package/dist/components/Input/Input.cjs.map +1 -0
  399. package/dist/components/Input/Input.d.cts +10 -0
  400. package/dist/components/Input/Input.d.cts.map +1 -0
  401. package/dist/components/Input/Input.d.mts +10 -0
  402. package/dist/components/Input/Input.d.mts.map +1 -0
  403. package/dist/components/Input/Input.mjs +50 -0
  404. package/dist/components/Input/Input.mjs.map +1 -0
  405. package/dist/components/Input/Input.types.cjs +3 -0
  406. package/dist/components/Input/Input.types.cjs.map +1 -0
  407. package/dist/components/Input/Input.types.d.cts +33 -0
  408. package/dist/components/Input/Input.types.d.cts.map +1 -0
  409. package/dist/components/Input/Input.types.d.mts +33 -0
  410. package/dist/components/Input/Input.types.d.mts.map +1 -0
  411. package/dist/components/Input/Input.types.mjs +2 -0
  412. package/dist/components/Input/Input.types.mjs.map +1 -0
  413. package/dist/components/Input/index.cjs +6 -0
  414. package/dist/components/Input/index.cjs.map +1 -0
  415. package/dist/components/Input/index.d.cts +3 -0
  416. package/dist/components/Input/index.d.cts.map +1 -0
  417. package/dist/components/Input/index.d.mts +3 -0
  418. package/dist/components/Input/index.d.mts.map +1 -0
  419. package/dist/components/Input/index.mjs +2 -0
  420. package/dist/components/Input/index.mjs.map +1 -0
  421. package/dist/components/Label/Label.cjs +11 -0
  422. package/dist/components/Label/Label.cjs.map +1 -0
  423. package/dist/components/Label/Label.d.cts +4 -0
  424. package/dist/components/Label/Label.d.cts.map +1 -0
  425. package/dist/components/Label/Label.d.mts +4 -0
  426. package/dist/components/Label/Label.d.mts.map +1 -0
  427. package/dist/components/Label/Label.mjs +11 -0
  428. package/dist/components/Label/Label.mjs.map +1 -0
  429. package/dist/components/Label/Label.types.cjs +3 -0
  430. package/dist/components/Label/Label.types.cjs.map +1 -0
  431. package/dist/components/Label/Label.types.d.cts +9 -0
  432. package/dist/components/Label/Label.types.d.cts.map +1 -0
  433. package/dist/components/Label/Label.types.d.mts +9 -0
  434. package/dist/components/Label/Label.types.d.mts.map +1 -0
  435. package/dist/components/Label/Label.types.mjs +2 -0
  436. package/dist/components/Label/Label.types.mjs.map +1 -0
  437. package/dist/components/Label/index.cjs +6 -0
  438. package/dist/components/Label/index.cjs.map +1 -0
  439. package/dist/components/Label/index.d.cts +3 -0
  440. package/dist/components/Label/index.d.cts.map +1 -0
  441. package/dist/components/Label/index.d.mts +3 -0
  442. package/dist/components/Label/index.d.mts.map +1 -0
  443. package/dist/components/Label/index.mjs +2 -0
  444. package/dist/components/Label/index.mjs.map +1 -0
  445. package/dist/components/RadioButton/RadioButton.cjs +58 -0
  446. package/dist/components/RadioButton/RadioButton.cjs.map +1 -0
  447. package/dist/components/RadioButton/RadioButton.constants.cjs +12 -0
  448. package/dist/components/RadioButton/RadioButton.constants.cjs.map +1 -0
  449. package/dist/components/RadioButton/RadioButton.constants.d.cts +3 -0
  450. package/dist/components/RadioButton/RadioButton.constants.d.cts.map +1 -0
  451. package/dist/components/RadioButton/RadioButton.constants.d.mts +3 -0
  452. package/dist/components/RadioButton/RadioButton.constants.d.mts.map +1 -0
  453. package/dist/components/RadioButton/RadioButton.constants.mjs +9 -0
  454. package/dist/components/RadioButton/RadioButton.constants.mjs.map +1 -0
  455. package/dist/components/RadioButton/RadioButton.d.cts +4 -0
  456. package/dist/components/RadioButton/RadioButton.d.cts.map +1 -0
  457. package/dist/components/RadioButton/RadioButton.d.mts +4 -0
  458. package/dist/components/RadioButton/RadioButton.d.mts.map +1 -0
  459. package/dist/components/RadioButton/RadioButton.mjs +58 -0
  460. package/dist/components/RadioButton/RadioButton.mjs.map +1 -0
  461. package/dist/components/RadioButton/RadioButton.types.cjs +3 -0
  462. package/dist/components/RadioButton/RadioButton.types.cjs.map +1 -0
  463. package/dist/components/RadioButton/RadioButton.types.d.cts +64 -0
  464. package/dist/components/RadioButton/RadioButton.types.d.cts.map +1 -0
  465. package/dist/components/RadioButton/RadioButton.types.d.mts +64 -0
  466. package/dist/components/RadioButton/RadioButton.types.d.mts.map +1 -0
  467. package/dist/components/RadioButton/RadioButton.types.mjs +2 -0
  468. package/dist/components/RadioButton/RadioButton.types.mjs.map +1 -0
  469. package/dist/components/RadioButton/index.cjs +6 -0
  470. package/dist/components/RadioButton/index.cjs.map +1 -0
  471. package/dist/components/RadioButton/index.d.cts +3 -0
  472. package/dist/components/RadioButton/index.d.cts.map +1 -0
  473. package/dist/components/RadioButton/index.d.mts +3 -0
  474. package/dist/components/RadioButton/index.d.mts.map +1 -0
  475. package/dist/components/RadioButton/index.mjs +2 -0
  476. package/dist/components/RadioButton/index.mjs.map +1 -0
  477. package/dist/components/SensitiveText/SensitiveText.cjs +47 -0
  478. package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -0
  479. package/dist/components/SensitiveText/SensitiveText.constants.cjs +14 -0
  480. package/dist/components/SensitiveText/SensitiveText.constants.cjs.map +1 -0
  481. package/dist/components/SensitiveText/SensitiveText.constants.d.cts +11 -0
  482. package/dist/components/SensitiveText/SensitiveText.constants.d.cts.map +1 -0
  483. package/dist/components/SensitiveText/SensitiveText.constants.d.mts +11 -0
  484. package/dist/components/SensitiveText/SensitiveText.constants.d.mts.map +1 -0
  485. package/dist/components/SensitiveText/SensitiveText.constants.mjs +11 -0
  486. package/dist/components/SensitiveText/SensitiveText.constants.mjs.map +1 -0
  487. package/dist/components/SensitiveText/SensitiveText.d.cts +4 -0
  488. package/dist/components/SensitiveText/SensitiveText.d.cts.map +1 -0
  489. package/dist/components/SensitiveText/SensitiveText.d.mts +4 -0
  490. package/dist/components/SensitiveText/SensitiveText.d.mts.map +1 -0
  491. package/dist/components/SensitiveText/SensitiveText.mjs +27 -0
  492. package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -0
  493. package/dist/components/SensitiveText/SensitiveText.types.cjs +3 -0
  494. package/dist/components/SensitiveText/SensitiveText.types.cjs.map +1 -0
  495. package/dist/components/SensitiveText/SensitiveText.types.d.cts +38 -0
  496. package/dist/components/SensitiveText/SensitiveText.types.d.cts.map +1 -0
  497. package/dist/components/SensitiveText/SensitiveText.types.d.mts +38 -0
  498. package/dist/components/SensitiveText/SensitiveText.types.d.mts.map +1 -0
  499. package/dist/components/SensitiveText/SensitiveText.types.mjs +2 -0
  500. package/dist/components/SensitiveText/SensitiveText.types.mjs.map +1 -0
  501. package/dist/components/SensitiveText/index.cjs +8 -0
  502. package/dist/components/SensitiveText/index.cjs.map +1 -0
  503. package/dist/components/SensitiveText/index.d.cts +4 -0
  504. package/dist/components/SensitiveText/index.d.cts.map +1 -0
  505. package/dist/components/SensitiveText/index.d.mts +4 -0
  506. package/dist/components/SensitiveText/index.d.mts.map +1 -0
  507. package/dist/components/SensitiveText/index.mjs +3 -0
  508. package/dist/components/SensitiveText/index.mjs.map +1 -0
  509. package/dist/components/Skeleton/Skeleton.cjs +86 -0
  510. package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
  511. package/dist/components/Skeleton/Skeleton.d.cts +5 -0
  512. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  513. package/dist/components/Skeleton/Skeleton.d.mts +5 -0
  514. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  515. package/dist/components/Skeleton/Skeleton.mjs +68 -0
  516. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  517. package/dist/components/Skeleton/Skeleton.types.cjs +3 -0
  518. package/dist/components/Skeleton/Skeleton.types.cjs.map +1 -0
  519. package/dist/components/Skeleton/Skeleton.types.d.cts +51 -0
  520. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -0
  521. package/dist/components/Skeleton/Skeleton.types.d.mts +51 -0
  522. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -0
  523. package/dist/components/Skeleton/Skeleton.types.mjs +2 -0
  524. package/dist/components/Skeleton/Skeleton.types.mjs.map +1 -0
  525. package/dist/components/Skeleton/index.cjs +9 -0
  526. package/dist/components/Skeleton/index.cjs.map +1 -0
  527. package/dist/components/Skeleton/index.d.cts +3 -0
  528. package/dist/components/Skeleton/index.d.cts.map +1 -0
  529. package/dist/components/Skeleton/index.d.mts +3 -0
  530. package/dist/components/Skeleton/index.d.mts.map +1 -0
  531. package/dist/components/Skeleton/index.mjs +2 -0
  532. package/dist/components/Skeleton/index.mjs.map +1 -0
  533. package/dist/components/Text/Text.cjs +9 -14
  534. package/dist/components/Text/Text.cjs.map +1 -1
  535. package/dist/components/Text/Text.d.cts.map +1 -1
  536. package/dist/components/Text/Text.d.mts.map +1 -1
  537. package/dist/components/Text/Text.mjs +10 -15
  538. package/dist/components/Text/Text.mjs.map +1 -1
  539. package/dist/components/TextField/TextField.cjs +42 -0
  540. package/dist/components/TextField/TextField.cjs.map +1 -0
  541. package/dist/components/TextField/TextField.constants.cjs +13 -0
  542. package/dist/components/TextField/TextField.constants.cjs.map +1 -0
  543. package/dist/components/TextField/TextField.constants.d.cts +6 -0
  544. package/dist/components/TextField/TextField.constants.d.cts.map +1 -0
  545. package/dist/components/TextField/TextField.constants.d.mts +6 -0
  546. package/dist/components/TextField/TextField.constants.d.mts.map +1 -0
  547. package/dist/components/TextField/TextField.constants.mjs +10 -0
  548. package/dist/components/TextField/TextField.constants.mjs.map +1 -0
  549. package/dist/components/TextField/TextField.d.cts +12 -0
  550. package/dist/components/TextField/TextField.d.cts.map +1 -0
  551. package/dist/components/TextField/TextField.d.mts +12 -0
  552. package/dist/components/TextField/TextField.d.mts.map +1 -0
  553. package/dist/components/TextField/TextField.mjs +39 -0
  554. package/dist/components/TextField/TextField.mjs.map +1 -0
  555. package/dist/components/TextField/TextField.types.cjs +13 -0
  556. package/dist/components/TextField/TextField.types.cjs.map +1 -0
  557. package/dist/components/TextField/TextField.types.d.cts +49 -0
  558. package/dist/components/TextField/TextField.types.d.cts.map +1 -0
  559. package/dist/components/TextField/TextField.types.d.mts +49 -0
  560. package/dist/components/TextField/TextField.types.d.mts.map +1 -0
  561. package/dist/components/TextField/TextField.types.mjs +10 -0
  562. package/dist/components/TextField/TextField.types.mjs.map +1 -0
  563. package/dist/components/TextField/index.cjs +8 -0
  564. package/dist/components/TextField/index.cjs.map +1 -0
  565. package/dist/components/TextField/index.d.cts +4 -0
  566. package/dist/components/TextField/index.d.cts.map +1 -0
  567. package/dist/components/TextField/index.d.mts +4 -0
  568. package/dist/components/TextField/index.d.mts.map +1 -0
  569. package/dist/components/TextField/index.mjs +3 -0
  570. package/dist/components/TextField/index.mjs.map +1 -0
  571. package/dist/components/Toast/Toast.cjs +174 -0
  572. package/dist/components/Toast/Toast.cjs.map +1 -0
  573. package/dist/components/Toast/Toast.constants.cjs +12 -0
  574. package/dist/components/Toast/Toast.constants.cjs.map +1 -0
  575. package/dist/components/Toast/Toast.constants.d.cts +8 -0
  576. package/dist/components/Toast/Toast.constants.d.cts.map +1 -0
  577. package/dist/components/Toast/Toast.constants.d.mts +8 -0
  578. package/dist/components/Toast/Toast.constants.d.mts.map +1 -0
  579. package/dist/components/Toast/Toast.constants.mjs +9 -0
  580. package/dist/components/Toast/Toast.constants.mjs.map +1 -0
  581. package/dist/components/Toast/Toast.context.cjs +40 -0
  582. package/dist/components/Toast/Toast.context.cjs.map +1 -0
  583. package/dist/components/Toast/Toast.context.d.cts +7 -0
  584. package/dist/components/Toast/Toast.context.d.cts.map +1 -0
  585. package/dist/components/Toast/Toast.context.d.mts +7 -0
  586. package/dist/components/Toast/Toast.context.d.mts.map +1 -0
  587. package/dist/components/Toast/Toast.context.mjs +20 -0
  588. package/dist/components/Toast/Toast.context.mjs.map +1 -0
  589. package/dist/components/Toast/Toast.d.cts +8 -0
  590. package/dist/components/Toast/Toast.d.cts.map +1 -0
  591. package/dist/components/Toast/Toast.d.mts +8 -0
  592. package/dist/components/Toast/Toast.d.mts.map +1 -0
  593. package/dist/components/Toast/Toast.mjs +156 -0
  594. package/dist/components/Toast/Toast.mjs.map +1 -0
  595. package/dist/components/Toast/Toast.types.cjs +19 -0
  596. package/dist/components/Toast/Toast.types.cjs.map +1 -0
  597. package/dist/components/Toast/Toast.types.d.cts +123 -0
  598. package/dist/components/Toast/Toast.types.d.cts.map +1 -0
  599. package/dist/components/Toast/Toast.types.d.mts +123 -0
  600. package/dist/components/Toast/Toast.types.d.mts.map +1 -0
  601. package/dist/components/Toast/Toast.types.mjs +16 -0
  602. package/dist/components/Toast/Toast.types.mjs.map +1 -0
  603. package/dist/components/Toast/index.cjs +19 -0
  604. package/dist/components/Toast/index.cjs.map +1 -0
  605. package/dist/components/Toast/index.d.cts +6 -0
  606. package/dist/components/Toast/index.d.cts.map +1 -0
  607. package/dist/components/Toast/index.d.mts +6 -0
  608. package/dist/components/Toast/index.d.mts.map +1 -0
  609. package/dist/components/Toast/index.mjs +5 -0
  610. package/dist/components/Toast/index.mjs.map +1 -0
  611. package/dist/components/index.cjs +40 -2
  612. package/dist/components/index.cjs.map +1 -1
  613. package/dist/components/index.d.cts +30 -0
  614. package/dist/components/index.d.cts.map +1 -1
  615. package/dist/components/index.d.mts +30 -0
  616. package/dist/components/index.d.mts.map +1 -1
  617. package/dist/components/index.mjs +15 -0
  618. package/dist/components/index.mjs.map +1 -1
  619. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +17 -9
  620. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
  621. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts +1 -1
  622. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts.map +1 -1
  623. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts +1 -1
  624. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts.map +1 -1
  625. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs +17 -6
  626. package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.mjs.map +1 -1
  627. package/dist/components/temp-components/Spinner/Spinner.cjs +2 -2
  628. package/dist/components/temp-components/Spinner/Spinner.cjs.map +1 -1
  629. package/dist/components/temp-components/Spinner/Spinner.d.cts.map +1 -1
  630. package/dist/components/temp-components/Spinner/Spinner.d.mts.map +1 -1
  631. package/dist/components/temp-components/Spinner/Spinner.mjs +2 -2
  632. package/dist/components/temp-components/Spinner/Spinner.mjs.map +1 -1
  633. package/dist/types/index.cjs +16 -54
  634. package/dist/types/index.cjs.map +1 -1
  635. package/dist/types/index.d.cts +15 -49
  636. package/dist/types/index.d.cts.map +1 -1
  637. package/dist/types/index.d.mts +15 -49
  638. package/dist/types/index.d.mts.map +1 -1
  639. package/dist/types/index.mjs +15 -52
  640. package/dist/types/index.mjs.map +1 -1
  641. package/package.json +14 -10
  642. package/dist/components/Icon/Icon.utilities.cjs +0 -31
  643. package/dist/components/Icon/Icon.utilities.cjs.map +0 -1
  644. package/dist/components/Icon/Icon.utilities.d.cts +0 -22
  645. package/dist/components/Icon/Icon.utilities.d.cts.map +0 -1
  646. package/dist/components/Icon/Icon.utilities.d.mts +0 -22
  647. package/dist/components/Icon/Icon.utilities.d.mts.map +0 -1
  648. package/dist/components/Icon/Icon.utilities.mjs +0 -27
  649. package/dist/components/Icon/Icon.utilities.mjs.map +0 -1
  650. package/dist/components/Text/Text.utilities.cjs +0 -46
  651. package/dist/components/Text/Text.utilities.cjs.map +0 -1
  652. package/dist/components/Text/Text.utilities.d.cts +0 -32
  653. package/dist/components/Text/Text.utilities.d.cts.map +0 -1
  654. package/dist/components/Text/Text.utilities.d.mts +0 -32
  655. package/dist/components/Text/Text.utilities.d.mts.map +0 -1
  656. package/dist/components/Text/Text.utilities.mjs +0 -42
  657. package/dist/components/Text/Text.utilities.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,77 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.9.0]
11
+
12
+ ### Added
13
+
14
+ - Added `TextField` component for text input fields ([#910](https://github.com/MetaMask/metamask-design-system/pull/910))
15
+ - Boxed, press-to-focus wrapper around `Input` component
16
+ - Supports configurable sizes, optional start/end accessories
17
+ - Includes error and disabled states with custom styling
18
+ - Full accessibility support and comprehensive test coverage
19
+
20
+ ## [0.8.0]
21
+
22
+ ### Added
23
+
24
+ - Added `RadioButton` component for radio button form controls ([#926](https://github.com/MetaMask/metamask-design-system/pull/926))
25
+ - Supports checked, disabled, read-only, and danger states
26
+ - Full accessibility support with `role="radio"` and `accessibilityState`
27
+ - Optional label rendering for improved usability
28
+
29
+ ### Changed
30
+
31
+ - **BREAKING:** Migrated `BadgeStatus` component from TypeScript enums to string union types with const objects ([#912](https://github.com/MetaMask/metamask-design-system/pull/912))
32
+ - `BadgeStatusStatus` and `BadgeStatusSize` enums replaced with const objects and derived string union types
33
+ - **No migration required** - continue importing from `@metamask/design-system-react-native` as usual
34
+ - Const object values remain the same (e.g., `BadgeStatusStatus.Active` still works)
35
+ - String literals now also accepted thanks to structural typing (e.g., `'active'` works where `BadgeStatusStatus.Active` is expected)
36
+ - We are still evaluating best practices for const objects vs string literals - use whichever approach works best for your codebase
37
+ - This change implements [ADR-0003](https://github.com/MetaMask/decisions/blob/main/decisions/design-system/0003-enum-to-string-union-migration.md) and [ADR-0004](https://github.com/MetaMask/decisions/blob/main/decisions/design-system/0004-centralized-types-architecture.md)
38
+ - Refactored `BottomSheetFooter` component location for better organization ([#933](https://github.com/MetaMask/metamask-design-system/pull/933))
39
+ - Moved from `BottomSheets/BottomSheetFooter/` to `BottomSheetFooter/`
40
+ - Updated import paths and Storybook title
41
+ - No breaking changes - all imports from package entry point continue to work
42
+
43
+ ## [0.7.0]
44
+
45
+ ### Added
46
+
47
+ - Added `Label` component for form labels and descriptive text ([#907](https://github.com/MetaMask/metamask-design-system/pull/907))
48
+ - Added `HeaderBase` component for consistent header layouts ([#902](https://github.com/MetaMask/metamask-design-system/pull/902))
49
+ - Added `Skeleton` component for loading states ([#891](https://github.com/MetaMask/metamask-design-system/pull/891))
50
+ - Added `Card` component for grouped content sections ([#923](https://github.com/MetaMask/metamask-design-system/pull/923))
51
+ - Added `BottomSheetFooter` component for bottom sheet actions ([#899](https://github.com/MetaMask/metamask-design-system/pull/899))
52
+ - Added `Toast` component for temporary notification messages ([#892](https://github.com/MetaMask/metamask-design-system/pull/892))
53
+ - Added `Input` component for text input fields ([#909](https://github.com/MetaMask/metamask-design-system/pull/909))
54
+ - Added `CorporateFare` icon to represent stocks ([#920](https://github.com/MetaMask/metamask-design-system/pull/920))
55
+ - Added `BottomSheetOverlay` component for modal bottom sheet interactions ([#897](https://github.com/MetaMask/metamask-design-system/pull/897))
56
+ - Provides consistent overlay pattern for bottom sheet components
57
+ - Includes press-to-dismiss functionality and accessibility features
58
+
59
+ ### Changed
60
+
61
+ - **BREAKING:** Standardized non-icon enum runtime values to use kebab-case format ([#894](https://github.com/MetaMask/metamask-design-system/pull/894))
62
+ - Enum values now use lowercase/kebab-case (e.g., `'primary'` instead of `'Primary'`, `'top-right'` instead of `'TopRight'`)
63
+ - **Migration likely not needed** - continue using enum constants (e.g., `ButtonVariant.Primary`)
64
+ - **Migration needed** only if your app persists or transmits these enum values (localStorage, databases, APIs)
65
+ - This prepares for migration from enums to string union types per ADR #127
66
+ - Updated component styling to use `tw.style()` instead of string-based `twClassName` for better type safety and conditional styling ([#889](https://github.com/MetaMask/metamask-design-system/pull/889))
67
+ - Updated `@metamask/design-tokens` peer dependency from ^8.1.0 to ^8.2.0 to support `AnimationDuration` enum used by `BottomSheetOverlay`
68
+ - Updated `@metamask/utils` peer dependency from 11.9.0 to 11.10.0 ([#903](https://github.com/MetaMask/metamask-design-system/pull/903))
69
+ - Reorganized peer dependencies for better dependency management ([#901](https://github.com/MetaMask/metamask-design-system/pull/901))
70
+
71
+ ### Fixed
72
+
73
+ - Fixed `ButtonBase` component sizing issues in flex layouts to prevent unexpected shrinking ([#870](https://github.com/MetaMask/metamask-design-system/pull/870))
74
+
75
+ ## [0.6.0]
76
+
77
+ ### Added
78
+
79
+ - Added `AfterHours` icon ([#879](https://github.com/MetaMask/metamask-design-system/pull/879))
80
+
10
81
  ## [0.5.1]
11
82
 
12
83
  ### Changed
@@ -116,7 +187,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
116
187
  - Full TypeScript support with type definitions and enums
117
188
  - React Native integration with TWRNC preset support
118
189
 
119
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.5.1...HEAD
190
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.9.0...HEAD
191
+ [0.9.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.8.0...@metamask/design-system-react-native@0.9.0
192
+ [0.8.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.7.0...@metamask/design-system-react-native@0.8.0
193
+ [0.7.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.6.0...@metamask/design-system-react-native@0.7.0
194
+ [0.6.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.5.1...@metamask/design-system-react-native@0.6.0
120
195
  [0.5.1]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.5.0...@metamask/design-system-react-native@0.5.1
121
196
  [0.5.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.4.1...@metamask/design-system-react-native@0.5.0
122
197
  [0.4.1]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.4.0...@metamask/design-system-react-native@0.4.1
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ActionListItem = void 0;
27
+ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
28
+ const react_1 = __importStar(require("react"));
29
+ const react_native_1 = require("react-native/index.js");
30
+ const Box_1 = require("../Box/index.cjs");
31
+ const Icon_1 = require("../Icon/index.cjs");
32
+ const Text_1 = require("../Text/index.cjs");
33
+ const ActionListItem = ({ label, description, startAccessory, endAccessory, iconName, labelTextProps, descriptionTextProps, iconProps, isDisabled = false, onPress, pressableProps, twClassName, style, ...props }) => {
34
+ const tw = (0, design_system_twrnc_preset_1.useTailwind)();
35
+ const renderLabel = () => {
36
+ if (typeof label === 'string') {
37
+ return (<Text_1.Text variant={Text_1.TextVariant.BodyMd} {...labelTextProps}>
38
+ {label}
39
+ </Text_1.Text>);
40
+ }
41
+ return label;
42
+ };
43
+ const renderDescription = () => {
44
+ if (!description) {
45
+ return null;
46
+ }
47
+ if (typeof description === 'string') {
48
+ return (<Text_1.Text variant={Text_1.TextVariant.BodySm} color={Text_1.TextColor.TextAlternative} {...descriptionTextProps}>
49
+ {description}
50
+ </Text_1.Text>);
51
+ }
52
+ return description;
53
+ };
54
+ const renderStartContent = () => {
55
+ if (startAccessory) {
56
+ return startAccessory;
57
+ }
58
+ if (iconName) {
59
+ return (<Box_1.Box alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Center} twClassName="h-6">
60
+ <Icon_1.Icon name={iconName} size={Icon_1.IconSize.Md} {...iconProps}/>
61
+ </Box_1.Box>);
62
+ }
63
+ return null;
64
+ };
65
+ const getPressableStyle = (0, react_1.useCallback)(({ pressed }) => {
66
+ const baseStyle = tw.style('bg-default px-4 py-3', pressed && !isDisabled && 'bg-default-pressed', isDisabled && 'opacity-50', twClassName);
67
+ return style ? [baseStyle, style] : baseStyle;
68
+ }, [tw, isDisabled, twClassName, style]);
69
+ return (<react_native_1.Pressable onPress={onPress} disabled={isDisabled} style={getPressableStyle} {...pressableProps} {...props}>
70
+ <Box_1.Box flexDirection={Box_1.BoxFlexDirection.Row} alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Between} gap={4}>
71
+ {/* Left side content (start accessory/icon + label/description) */}
72
+ <Box_1.Box flexDirection={Box_1.BoxFlexDirection.Row} alignItems={Box_1.BoxAlignItems.Start} twClassName="flex-1" gap={4}>
73
+ {renderStartContent()}
74
+ <Box_1.Box twClassName="flex-1">
75
+ {renderLabel()}
76
+ {renderDescription()}
77
+ </Box_1.Box>
78
+ </Box_1.Box>
79
+
80
+ {/* End accessory */}
81
+ {endAccessory && <Box_1.Box>{endAccessory}</Box_1.Box>}
82
+ </Box_1.Box>
83
+ </react_native_1.Pressable>);
84
+ };
85
+ exports.ActionListItem = ActionListItem;
86
+ //# sourceMappingURL=ActionListItem.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.cjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAA2C;AAC3C,wDAAyC;AAEzC,0CAKgB;AAChB,4CAAyC;AACzC,4CAAuD;AAIhD,MAAM,cAAc,GAAkC,CAAC,EAC5D,KAAK,EACL,WAAW,EACX,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,OAAO,EACP,cAAc,EACd,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,CACL,CAAC,WAAI,CAAC,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAAC,IAAI,cAAc,CAAC,CACpD;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,WAAI,CAAC,CACR,CAAC;SACH;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC7B,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,IAAI,CAAC;SACb;QAED,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,OAAO,CACL,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,CACjC,IAAI,oBAAoB,CAAC,CAEzB;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,WAAI,CAAC,CACR,CAAC;SACH;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,cAAc,EAAE;YAClB,OAAO,cAAc,CAAC;SACvB;QAED,IAAI,QAAQ,EAAE;YACZ,OAAO,CACL,CAAC,SAAG,CACF,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,KAAK,CAEjB;UAAA,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAAC,IAAI,SAAS,CAAC,EACzD;QAAA,EAAE,SAAG,CAAC,CACP,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,IAAA,mBAAW,EACnC,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;QACpC,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CACxB,sBAAsB,EACtB,OAAO,IAAI,CAAC,UAAU,IAAI,oBAAoB,EAC9C,UAAU,IAAI,YAAY,EAC1B,WAAW,CACZ,CAAC;QAEF,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAChD,CAAC,EACD,CAAC,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,CACrC,CAAC;IAEF,OAAO,CACL,CAAC,wBAAS,CACR,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,CAAC,iBAAiB,CAAC,CACzB,IAAI,cAAc,CAAC,CACnB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,OAAO,CAAC,CAC1C,GAAG,CAAC,CAAC,CAAC,CAAC,CAEP;QAAA,CAAC,kEAAkE,CACnE;QAAA,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,mBAAa,CAAC,KAAK,CAAC,CAChC,WAAW,CAAC,QAAQ,CACpB,GAAG,CAAC,CAAC,CAAC,CAAC,CAEP;UAAA,CAAC,kBAAkB,EAAE,CACrB;UAAA,CAAC,SAAG,CAAC,WAAW,CAAC,QAAQ,CACvB;YAAA,CAAC,WAAW,EAAE,CACd;YAAA,CAAC,iBAAiB,EAAE,CACtB;UAAA,EAAE,SAAG,CACP;QAAA,EAAE,SAAG,CAEL;;QAAA,CAAC,mBAAmB,CACpB;QAAA,CAAC,YAAY,IAAI,CAAC,SAAG,CAAC,CAAC,YAAY,CAAC,EAAE,SAAG,CAAC,CAC5C;MAAA,EAAE,SAAG,CACP;IAAA,EAAE,wBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAnHW,QAAA,cAAc,kBAmHzB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { Pressable } from 'react-native';\n\nimport {\n Box,\n BoxAlignItems,\n BoxFlexDirection,\n BoxJustifyContent,\n} from '../Box';\nimport { Icon, IconSize } from '../Icon';\nimport { Text, TextColor, TextVariant } from '../Text';\n\nimport type { ActionListItemProps } from './ActionListItem.types';\n\nexport const ActionListItem: React.FC<ActionListItemProps> = ({\n label,\n description,\n startAccessory,\n endAccessory,\n iconName,\n labelTextProps,\n descriptionTextProps,\n iconProps,\n isDisabled = false,\n onPress,\n pressableProps,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n const renderLabel = () => {\n if (typeof label === 'string') {\n return (\n <Text variant={TextVariant.BodyMd} {...labelTextProps}>\n {label}\n </Text>\n );\n }\n return label;\n };\n\n const renderDescription = () => {\n if (!description) {\n return null;\n }\n\n if (typeof description === 'string') {\n return (\n <Text\n variant={TextVariant.BodySm}\n color={TextColor.TextAlternative}\n {...descriptionTextProps}\n >\n {description}\n </Text>\n );\n }\n return description;\n };\n\n const renderStartContent = () => {\n if (startAccessory) {\n return startAccessory;\n }\n\n if (iconName) {\n return (\n <Box\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"h-6\"\n >\n <Icon name={iconName} size={IconSize.Md} {...iconProps} />\n </Box>\n );\n }\n\n return null;\n };\n\n const getPressableStyle = useCallback(\n ({ pressed }: { pressed: boolean }) => {\n const baseStyle = tw.style(\n 'bg-default px-4 py-3',\n pressed && !isDisabled && 'bg-default-pressed',\n isDisabled && 'opacity-50',\n twClassName,\n );\n\n return style ? [baseStyle, style] : baseStyle;\n },\n [tw, isDisabled, twClassName, style],\n );\n\n return (\n <Pressable\n onPress={onPress}\n disabled={isDisabled}\n style={getPressableStyle}\n {...pressableProps}\n {...props}\n >\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Between}\n gap={4}\n >\n {/* Left side content (start accessory/icon + label/description) */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n twClassName=\"flex-1\"\n gap={4}\n >\n {renderStartContent()}\n <Box twClassName=\"flex-1\">\n {renderLabel()}\n {renderDescription()}\n </Box>\n </Box>\n\n {/* End accessory */}\n {endAccessory && <Box>{endAccessory}</Box>}\n </Box>\n </Pressable>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ActionListItemProps } from "./ActionListItem.types.cjs";
3
+ export declare const ActionListItem: React.FC<ActionListItemProps>;
4
+ //# sourceMappingURL=ActionListItem.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.d.cts","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,cAAc;AAY3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmHxD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ActionListItemProps } from "./ActionListItem.types.mjs";
3
+ export declare const ActionListItem: React.FC<ActionListItemProps>;
4
+ //# sourceMappingURL=ActionListItem.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.d.mts","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,cAAc;AAY3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmHxD,CAAC"}
@@ -0,0 +1,66 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
+ import $React, { useCallback } from "react";
9
+ const React = $importDefault($React);
10
+ import { Pressable } from "react-native/index.js";
11
+ import { Box, BoxAlignItems, BoxFlexDirection, BoxJustifyContent } from "../Box/index.mjs";
12
+ import { Icon, IconSize } from "../Icon/index.mjs";
13
+ import { Text, TextColor, TextVariant } from "../Text/index.mjs";
14
+ export const ActionListItem = ({ label, description, startAccessory, endAccessory, iconName, labelTextProps, descriptionTextProps, iconProps, isDisabled = false, onPress, pressableProps, twClassName, style, ...props }) => {
15
+ const tw = useTailwind();
16
+ const renderLabel = () => {
17
+ if (typeof label === 'string') {
18
+ return (<Text variant={TextVariant.BodyMd} {...labelTextProps}>
19
+ {label}
20
+ </Text>);
21
+ }
22
+ return label;
23
+ };
24
+ const renderDescription = () => {
25
+ if (!description) {
26
+ return null;
27
+ }
28
+ if (typeof description === 'string') {
29
+ return (<Text variant={TextVariant.BodySm} color={TextColor.TextAlternative} {...descriptionTextProps}>
30
+ {description}
31
+ </Text>);
32
+ }
33
+ return description;
34
+ };
35
+ const renderStartContent = () => {
36
+ if (startAccessory) {
37
+ return startAccessory;
38
+ }
39
+ if (iconName) {
40
+ return (<Box alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Center} twClassName="h-6">
41
+ <Icon name={iconName} size={IconSize.Md} {...iconProps}/>
42
+ </Box>);
43
+ }
44
+ return null;
45
+ };
46
+ const getPressableStyle = useCallback(({ pressed }) => {
47
+ const baseStyle = tw.style('bg-default px-4 py-3', pressed && !isDisabled && 'bg-default-pressed', isDisabled && 'opacity-50', twClassName);
48
+ return style ? [baseStyle, style] : baseStyle;
49
+ }, [tw, isDisabled, twClassName, style]);
50
+ return (<Pressable onPress={onPress} disabled={isDisabled} style={getPressableStyle} {...pressableProps} {...props}>
51
+ <Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Between} gap={4}>
52
+ {/* Left side content (start accessory/icon + label/description) */}
53
+ <Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Start} twClassName="flex-1" gap={4}>
54
+ {renderStartContent()}
55
+ <Box twClassName="flex-1">
56
+ {renderLabel()}
57
+ {renderDescription()}
58
+ </Box>
59
+ </Box>
60
+
61
+ {/* End accessory */}
62
+ {endAccessory && <Box>{endAccessory}</Box>}
63
+ </Box>
64
+ </Pressable>);
65
+ };
66
+ //# sourceMappingURL=ActionListItem.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.mjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useCallback } from 'react';\nimport { Pressable } from 'react-native';\n\nimport {\n Box,\n BoxAlignItems,\n BoxFlexDirection,\n BoxJustifyContent,\n} from '../Box';\nimport { Icon, IconSize } from '../Icon';\nimport { Text, TextColor, TextVariant } from '../Text';\n\nimport type { ActionListItemProps } from './ActionListItem.types';\n\nexport const ActionListItem: React.FC<ActionListItemProps> = ({\n label,\n description,\n startAccessory,\n endAccessory,\n iconName,\n labelTextProps,\n descriptionTextProps,\n iconProps,\n isDisabled = false,\n onPress,\n pressableProps,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n const renderLabel = () => {\n if (typeof label === 'string') {\n return (\n <Text variant={TextVariant.BodyMd} {...labelTextProps}>\n {label}\n </Text>\n );\n }\n return label;\n };\n\n const renderDescription = () => {\n if (!description) {\n return null;\n }\n\n if (typeof description === 'string') {\n return (\n <Text\n variant={TextVariant.BodySm}\n color={TextColor.TextAlternative}\n {...descriptionTextProps}\n >\n {description}\n </Text>\n );\n }\n return description;\n };\n\n const renderStartContent = () => {\n if (startAccessory) {\n return startAccessory;\n }\n\n if (iconName) {\n return (\n <Box\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"h-6\"\n >\n <Icon name={iconName} size={IconSize.Md} {...iconProps} />\n </Box>\n );\n }\n\n return null;\n };\n\n const getPressableStyle = useCallback(\n ({ pressed }: { pressed: boolean }) => {\n const baseStyle = tw.style(\n 'bg-default px-4 py-3',\n pressed && !isDisabled && 'bg-default-pressed',\n isDisabled && 'opacity-50',\n twClassName,\n );\n\n return style ? [baseStyle, style] : baseStyle;\n },\n [tw, isDisabled, twClassName, style],\n );\n\n return (\n <Pressable\n onPress={onPress}\n disabled={isDisabled}\n style={getPressableStyle}\n {...pressableProps}\n {...props}\n >\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Between}\n gap={4}\n >\n {/* Left side content (start accessory/icon + label/description) */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n twClassName=\"flex-1\"\n gap={4}\n >\n {renderStartContent()}\n <Box twClassName=\"flex-1\">\n {renderLabel()}\n {renderDescription()}\n </Box>\n </Box>\n\n {/* End accessory */}\n {endAccessory && <Box>{endAccessory}</Box>}\n </Box>\n </Pressable>\n );\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ActionListItem.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.types.cjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * ActionListItem component props.\n *\n * Extends `ViewProps` so the root Pressable inherits standard React Native\n * props such as `testID` and `accessibilityLabel`. The `onPress` callback\n * is a top-level prop, while `pressableProps` provides additional\n * Pressable-specific overrides.\n */\nexport type ActionListItemProps = {\n /**\n * Label for the list item — can be a string or React node.\n * When a string, it is wrapped in a Text component with default styling.\n * When a ReactNode, it is rendered as-is and `labelTextProps` is ignored.\n */\n label: string | ReactNode;\n /**\n * Optional description for the list item — can be a string or React node.\n * When a string, it is wrapped in a Text component with default styling.\n * When a ReactNode, it is rendered as-is and `descriptionTextProps` is ignored.\n */\n description?: string | ReactNode;\n /**\n * Optional start accessory (left side) — React node.\n * Takes priority over `iconName` when both are provided.\n */\n startAccessory?: ReactNode;\n /**\n * Optional end accessory (right side) — React node.\n */\n endAccessory?: ReactNode;\n /**\n * Optional icon name from the design system icon library.\n * Renders an icon with `IconSize.Md`. Ignored when `startAccessory` is provided.\n */\n iconName?: IconName;\n /**\n * Optional props spread to the label Text component (only when label is a string).\n */\n labelTextProps?: Partial<TextProps>;\n /**\n * Optional props spread to the description Text component (only when description is a string).\n */\n descriptionTextProps?: Partial<TextProps>;\n /**\n * Optional props spread to the Icon component (only when iconName is provided).\n */\n iconProps?: Partial<IconProps>;\n /**\n * Whether the list item is disabled.\n * When true, applies 50% opacity and disables interactions.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional callback when the list item is pressed.\n */\n onPress?: PressableProps['onPress'];\n /**\n * Optional props to pass to the underlying Pressable.\n * Use this for Pressable-specific props such as testID for the interactive element.\n */\n pressableProps?: Omit<PressableProps, 'onPress' | 'disabled' | 'style'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -0,0 +1,73 @@
1
+ import type { ReactNode } from "react";
2
+ import type { PressableProps, ViewProps } from "react-native/index.js";
3
+ import type { IconName, IconProps } from "../Icon/index.cjs";
4
+ import type { TextProps } from "../Text/index.cjs";
5
+ /**
6
+ * ActionListItem component props.
7
+ *
8
+ * Extends `ViewProps` so the root Pressable inherits standard React Native
9
+ * props such as `testID` and `accessibilityLabel`. The `onPress` callback
10
+ * is a top-level prop, while `pressableProps` provides additional
11
+ * Pressable-specific overrides.
12
+ */
13
+ export type ActionListItemProps = {
14
+ /**
15
+ * Label for the list item — can be a string or React node.
16
+ * When a string, it is wrapped in a Text component with default styling.
17
+ * When a ReactNode, it is rendered as-is and `labelTextProps` is ignored.
18
+ */
19
+ label: string | ReactNode;
20
+ /**
21
+ * Optional description for the list item — can be a string or React node.
22
+ * When a string, it is wrapped in a Text component with default styling.
23
+ * When a ReactNode, it is rendered as-is and `descriptionTextProps` is ignored.
24
+ */
25
+ description?: string | ReactNode;
26
+ /**
27
+ * Optional start accessory (left side) — React node.
28
+ * Takes priority over `iconName` when both are provided.
29
+ */
30
+ startAccessory?: ReactNode;
31
+ /**
32
+ * Optional end accessory (right side) — React node.
33
+ */
34
+ endAccessory?: ReactNode;
35
+ /**
36
+ * Optional icon name from the design system icon library.
37
+ * Renders an icon with `IconSize.Md`. Ignored when `startAccessory` is provided.
38
+ */
39
+ iconName?: IconName;
40
+ /**
41
+ * Optional props spread to the label Text component (only when label is a string).
42
+ */
43
+ labelTextProps?: Partial<TextProps>;
44
+ /**
45
+ * Optional props spread to the description Text component (only when description is a string).
46
+ */
47
+ descriptionTextProps?: Partial<TextProps>;
48
+ /**
49
+ * Optional props spread to the Icon component (only when iconName is provided).
50
+ */
51
+ iconProps?: Partial<IconProps>;
52
+ /**
53
+ * Whether the list item is disabled.
54
+ * When true, applies 50% opacity and disables interactions.
55
+ *
56
+ * @default false
57
+ */
58
+ isDisabled?: boolean;
59
+ /**
60
+ * Optional callback when the list item is pressed.
61
+ */
62
+ onPress?: PressableProps['onPress'];
63
+ /**
64
+ * Optional props to pass to the underlying Pressable.
65
+ * Use this for Pressable-specific props such as testID for the interactive element.
66
+ */
67
+ pressableProps?: Omit<PressableProps, 'onPress' | 'disabled' | 'style'>;
68
+ /**
69
+ * Optional prop to add twrnc overriding classNames.
70
+ */
71
+ twClassName?: string;
72
+ } & Omit<ViewProps, 'children'>;
73
+ //# sourceMappingURL=ActionListItem.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.types.d.cts","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import type { ReactNode } from "react";
2
+ import type { PressableProps, ViewProps } from "react-native/index.js";
3
+ import type { IconName, IconProps } from "../Icon/index.mjs";
4
+ import type { TextProps } from "../Text/index.mjs";
5
+ /**
6
+ * ActionListItem component props.
7
+ *
8
+ * Extends `ViewProps` so the root Pressable inherits standard React Native
9
+ * props such as `testID` and `accessibilityLabel`. The `onPress` callback
10
+ * is a top-level prop, while `pressableProps` provides additional
11
+ * Pressable-specific overrides.
12
+ */
13
+ export type ActionListItemProps = {
14
+ /**
15
+ * Label for the list item — can be a string or React node.
16
+ * When a string, it is wrapped in a Text component with default styling.
17
+ * When a ReactNode, it is rendered as-is and `labelTextProps` is ignored.
18
+ */
19
+ label: string | ReactNode;
20
+ /**
21
+ * Optional description for the list item — can be a string or React node.
22
+ * When a string, it is wrapped in a Text component with default styling.
23
+ * When a ReactNode, it is rendered as-is and `descriptionTextProps` is ignored.
24
+ */
25
+ description?: string | ReactNode;
26
+ /**
27
+ * Optional start accessory (left side) — React node.
28
+ * Takes priority over `iconName` when both are provided.
29
+ */
30
+ startAccessory?: ReactNode;
31
+ /**
32
+ * Optional end accessory (right side) — React node.
33
+ */
34
+ endAccessory?: ReactNode;
35
+ /**
36
+ * Optional icon name from the design system icon library.
37
+ * Renders an icon with `IconSize.Md`. Ignored when `startAccessory` is provided.
38
+ */
39
+ iconName?: IconName;
40
+ /**
41
+ * Optional props spread to the label Text component (only when label is a string).
42
+ */
43
+ labelTextProps?: Partial<TextProps>;
44
+ /**
45
+ * Optional props spread to the description Text component (only when description is a string).
46
+ */
47
+ descriptionTextProps?: Partial<TextProps>;
48
+ /**
49
+ * Optional props spread to the Icon component (only when iconName is provided).
50
+ */
51
+ iconProps?: Partial<IconProps>;
52
+ /**
53
+ * Whether the list item is disabled.
54
+ * When true, applies 50% opacity and disables interactions.
55
+ *
56
+ * @default false
57
+ */
58
+ isDisabled?: boolean;
59
+ /**
60
+ * Optional callback when the list item is pressed.
61
+ */
62
+ onPress?: PressableProps['onPress'];
63
+ /**
64
+ * Optional props to pass to the underlying Pressable.
65
+ * Use this for Pressable-specific props such as testID for the interactive element.
66
+ */
67
+ pressableProps?: Omit<PressableProps, 'onPress' | 'disabled' | 'style'>;
68
+ /**
69
+ * Optional prop to add twrnc overriding classNames.
70
+ */
71
+ twClassName?: string;
72
+ } & Omit<ViewProps, 'children'>;
73
+ //# sourceMappingURL=ActionListItem.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.types.d.mts","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,8BAAqB;AAE9D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ActionListItem.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionListItem.types.mjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/ActionListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type { PressableProps, ViewProps } from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\nimport type { TextProps } from '../Text';\n\n/**\n * ActionListItem component props.\n *\n * Extends `ViewProps` so the root Pressable inherits standard React Native\n * props such as `testID` and `accessibilityLabel`. The `onPress` callback\n * is a top-level prop, while `pressableProps` provides additional\n * Pressable-specific overrides.\n */\nexport type ActionListItemProps = {\n /**\n * Label for the list item — can be a string or React node.\n * When a string, it is wrapped in a Text component with default styling.\n * When a ReactNode, it is rendered as-is and `labelTextProps` is ignored.\n */\n label: string | ReactNode;\n /**\n * Optional description for the list item — can be a string or React node.\n * When a string, it is wrapped in a Text component with default styling.\n * When a ReactNode, it is rendered as-is and `descriptionTextProps` is ignored.\n */\n description?: string | ReactNode;\n /**\n * Optional start accessory (left side) — React node.\n * Takes priority over `iconName` when both are provided.\n */\n startAccessory?: ReactNode;\n /**\n * Optional end accessory (right side) — React node.\n */\n endAccessory?: ReactNode;\n /**\n * Optional icon name from the design system icon library.\n * Renders an icon with `IconSize.Md`. Ignored when `startAccessory` is provided.\n */\n iconName?: IconName;\n /**\n * Optional props spread to the label Text component (only when label is a string).\n */\n labelTextProps?: Partial<TextProps>;\n /**\n * Optional props spread to the description Text component (only when description is a string).\n */\n descriptionTextProps?: Partial<TextProps>;\n /**\n * Optional props spread to the Icon component (only when iconName is provided).\n */\n iconProps?: Partial<IconProps>;\n /**\n * Whether the list item is disabled.\n * When true, applies 50% opacity and disables interactions.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional callback when the list item is pressed.\n */\n onPress?: PressableProps['onPress'];\n /**\n * Optional props to pass to the underlying Pressable.\n * Use this for Pressable-specific props such as testID for the interactive element.\n */\n pressableProps?: Omit<PressableProps, 'onPress' | 'disabled' | 'style'>;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionListItem = void 0;
4
+ var ActionListItem_1 = require("./ActionListItem.cjs");
5
+ Object.defineProperty(exports, "ActionListItem", { enumerable: true, get: function () { return ActionListItem_1.ActionListItem; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["export { ActionListItem } from './ActionListItem';\nexport type { ActionListItemProps } from './ActionListItem.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { ActionListItem } from "./ActionListItem.cjs";
2
+ export type { ActionListItemProps } from "./ActionListItem.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ActionListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,3 @@
1
+ export { ActionListItem } from "./ActionListItem.mjs";
2
+ export type { ActionListItemProps } from "./ActionListItem.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ActionListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export { ActionListItem } from "./ActionListItem.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ActionListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB","sourcesContent":["export { ActionListItem } from './ActionListItem';\nexport type { ActionListItemProps } from './ActionListItem.types';\n"]}
@@ -10,18 +10,16 @@ const react_native_1 = require("react-native/index.js");
10
10
  const types_1 = require("../../types/index.cjs");
11
11
  const Text_1 = require("../Text/index.cjs");
12
12
  const AvatarBase_constants_1 = require("./AvatarBase.constants.cjs");
13
- const AvatarBase = ({ children, size = types_1.AvatarBaseSize.Md, shape = types_1.AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName = '', style, ...props }) => {
13
+ const AvatarBase = ({ children, size = types_1.AvatarBaseSize.Md, shape = types_1.AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName, style, ...props }) => {
14
14
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
15
- const twContainerClassNames = `
16
- items-center justify-center overflow-hidden bg-section
17
- ${shape === types_1.AvatarBaseShape.Circle
18
- ? 'rounded-full'
19
- : AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size]}
20
- ${hasBorder ? AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size] : AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size]}
21
- ${hasBorder ? AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDER[size] : ''}
22
- ${twClassName}
23
- `;
24
- return (<react_native_1.View style={[tw `${twContainerClassNames}`, style]} {...props}>
15
+ return (<react_native_1.View {...props} style={[
16
+ tw.style('items-center justify-center overflow-hidden bg-section', shape === types_1.AvatarBaseShape.Circle
17
+ ? 'rounded-full'
18
+ : AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size], hasBorder
19
+ ? AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size]
20
+ : AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size], hasBorder && AvatarBase_constants_1.TWCLASSMAP_AVATARBASE_SIZE_BORDER[size], twClassName),
21
+ style,
22
+ ]}>
25
23
  {fallbackText ? (<Text_1.Text color={Text_1.TextColor.TextMuted} variant={Text_1.TextVariant.BodySm} fontWeight={Text_1.FontWeight.Medium} {...fallbackTextProps} twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}>
26
24
  {fallbackText}
27
25
  </Text_1.Text>) : (children)}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,iDAA8D;AAC9D,4CAAmE;AAEnE,qEAKgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,KAAK,GAAG,uBAAe,CAAC,MAAM,EAC9B,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG;;MAG1B,KAAK,KAAK,uBAAe,CAAC,MAAM;QAC9B,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,sEAA+C,CAAC,IAAI,CAC1D;MACE,SAAS,CAAC,CAAC,CAAC,qEAA8C,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,2DAAoC,CAAC,IAAI,CAAC;MAC7G,SAAS,CAAC,CAAC,CAAC,wDAAiC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;MACxD,WAAW;GACd,CAAC;IAEF,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA,GAAG,qBAAqB,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC5D;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,WAAI,CACH,KAAK,CAAC,CAAC,gBAAS,CAAC,SAAS,CAAC,CAC3B,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,iBAAiB,CAAC,CACtB,WAAW,CAAC,CAAC,aAAa,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAE7G;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,UAAU,cAyCrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport { Text, TextColor, TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_AVATARBASE_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE,\n TWCLASSMAP_AVATARBASE_SIZE_BORDER,\n} from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\n\nexport const AvatarBase = ({\n children,\n size = AvatarBaseSize.Md,\n shape = AvatarBaseShape.Circle,\n fallbackText,\n fallbackTextProps,\n hasBorder = false,\n twClassName = '',\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n const twContainerClassNames = `\n items-center justify-center overflow-hidden bg-section\n ${\n shape === AvatarBaseShape.Circle\n ? 'rounded-full'\n : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size]\n }\n ${hasBorder ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size] : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size]}\n ${hasBorder ? TWCLASSMAP_AVATARBASE_SIZE_BORDER[size] : ''}\n ${twClassName}\n `;\n\n return (\n <View style={[tw`${twContainerClassNames}`, style]} {...props}>\n {fallbackText ? (\n <Text\n color={TextColor.TextMuted}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n {...fallbackTextProps}\n twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n"]}
1
+ {"version":3,"file":"AvatarBase.cjs","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,iDAA8D;AAC9D,4CAAmE;AAEnE,qEAKgC;AAGzB,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,IAAI,GAAG,sBAAc,CAAC,EAAE,EACxB,KAAK,GAAG,uBAAe,CAAC,MAAM,EAC9B,YAAY,EACZ,iBAAiB,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACQ,EAAE,EAAE;IACpB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,wDAAwD,EACxD,KAAK,KAAK,uBAAe,CAAC,MAAM;gBAC9B,CAAC,CAAC,cAAc;gBAChB,CAAC,CAAC,sEAA+C,CAAC,IAAI,CAAC,EACzD,SAAS;gBACP,CAAC,CAAC,qEAA8C,CAAC,IAAI,CAAC;gBACtD,CAAC,CAAC,2DAAoC,CAAC,IAAI,CAAC,EAC9C,SAAS,IAAI,wDAAiC,CAAC,IAAI,CAAC,EACpD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,YAAY,CAAC,CAAC,CAAC,CACd,CAAC,WAAI,CACH,KAAK,CAAC,CAAC,gBAAS,CAAC,SAAS,CAAC,CAC3B,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAU,CAAC,MAAM,CAAC,CAC9B,IAAI,iBAAiB,CAAC,CACtB,WAAW,CAAC,CAAC,aAAa,iBAAiB,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,CAE7G;UAAA,CAAC,YAAY,CACf;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,UAAU,cA8CrB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { AvatarBaseSize, AvatarBaseShape } from '../../types';\nimport { Text, TextColor, TextVariant, FontWeight } from '../Text';\n\nimport {\n TWCLASSMAP_AVATARBASE_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION,\n TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE,\n TWCLASSMAP_AVATARBASE_SIZE_BORDER,\n} from './AvatarBase.constants';\nimport type { AvatarBaseProps } from './AvatarBase.types';\n\nexport const AvatarBase = ({\n children,\n size = AvatarBaseSize.Md,\n shape = AvatarBaseShape.Circle,\n fallbackText,\n fallbackTextProps,\n hasBorder = false,\n twClassName,\n style,\n ...props\n}: AvatarBaseProps) => {\n const tw = useTailwind();\n\n return (\n <View\n {...props}\n style={[\n tw.style(\n 'items-center justify-center overflow-hidden bg-section',\n shape === AvatarBaseShape.Circle\n ? 'rounded-full'\n : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size],\n hasBorder\n ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size]\n : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size],\n hasBorder && TWCLASSMAP_AVATARBASE_SIZE_BORDER[size],\n twClassName,\n ),\n style,\n ]}\n >\n {fallbackText ? (\n <Text\n color={TextColor.TextMuted}\n variant={TextVariant.BodySm}\n fontWeight={FontWeight.Medium}\n {...fallbackTextProps}\n twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}\n >\n {fallbackText}\n </Text>\n ) : (\n children\n )}\n </View>\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGAUpB,eAAe,sBA+BjB,CAAC"}
1
+ {"version":3,"file":"AvatarBase.d.cts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGAUpB,eAAe,sBAoCjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarBase.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGAUpB,eAAe,sBA+BjB,CAAC"}
1
+ {"version":3,"file":"AvatarBase.d.mts","sourceRoot":"","sources":["../../../src/components/AvatarBase/AvatarBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGAUpB,eAAe,sBAoCjB,CAAC"}
@@ -11,18 +11,16 @@ import { View } from "react-native/index.js";
11
11
  import { AvatarBaseSize, AvatarBaseShape } from "../../types/index.mjs";
12
12
  import { Text, TextColor, TextVariant, FontWeight } from "../Text/index.mjs";
13
13
  import { TWCLASSMAP_AVATARBASE_SIZE_DIMENSION, TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION, TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE, TWCLASSMAP_AVATARBASE_SIZE_BORDER } from "./AvatarBase.constants.mjs";
14
- export const AvatarBase = ({ children, size = AvatarBaseSize.Md, shape = AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName = '', style, ...props }) => {
14
+ export const AvatarBase = ({ children, size = AvatarBaseSize.Md, shape = AvatarBaseShape.Circle, fallbackText, fallbackTextProps, hasBorder = false, twClassName, style, ...props }) => {
15
15
  const tw = useTailwind();
16
- const twContainerClassNames = `
17
- items-center justify-center overflow-hidden bg-section
18
- ${shape === AvatarBaseShape.Circle
19
- ? 'rounded-full'
20
- : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size]}
21
- ${hasBorder ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size] : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size]}
22
- ${hasBorder ? TWCLASSMAP_AVATARBASE_SIZE_BORDER[size] : ''}
23
- ${twClassName}
24
- `;
25
- return (<View style={[tw `${twContainerClassNames}`, style]} {...props}>
16
+ return (<View {...props} style={[
17
+ tw.style('items-center justify-center overflow-hidden bg-section', shape === AvatarBaseShape.Circle
18
+ ? 'rounded-full'
19
+ : TWCLASSMAP_AVATARBASE_SIZE_BORDERRADIUSS_SQUARE[size], hasBorder
20
+ ? TWCLASSMAP_AVATARBASE_HASBORDER_SIZE_DIMENSION[size]
21
+ : TWCLASSMAP_AVATARBASE_SIZE_DIMENSION[size], hasBorder && TWCLASSMAP_AVATARBASE_SIZE_BORDER[size], twClassName),
22
+ style,
23
+ ]}>
26
24
  {fallbackText ? (<Text color={TextColor.TextMuted} variant={TextVariant.BodySm} fontWeight={FontWeight.Medium} {...fallbackTextProps} twClassName={`uppercase ${fallbackTextProps?.twClassName ? ` ${fallbackTextProps.twClassName}` : ''}`.trim()}>
27
25
  {fallbackText}
28
26
  </Text>) : (children)}