@metamask-previews/design-system-react 0.17.1-preview.1679aa9 → 0.22.0-preview.178e60f

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 (564) hide show
  1. package/CHANGELOG.md +66 -3
  2. package/dist/components/AvatarGroup/AvatarGroup.cjs +18 -13
  3. package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
  4. package/dist/components/AvatarGroup/AvatarGroup.constants.cjs +16 -17
  5. package/dist/components/AvatarGroup/AvatarGroup.constants.cjs.map +1 -1
  6. package/dist/components/AvatarGroup/AvatarGroup.constants.d.cts +1 -2
  7. package/dist/components/AvatarGroup/AvatarGroup.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarGroup/AvatarGroup.constants.d.mts +1 -2
  9. package/dist/components/AvatarGroup/AvatarGroup.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarGroup/AvatarGroup.constants.mjs +1 -2
  11. package/dist/components/AvatarGroup/AvatarGroup.constants.mjs.map +1 -1
  12. package/dist/components/AvatarGroup/AvatarGroup.d.cts +8 -21
  13. package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
  14. package/dist/components/AvatarGroup/AvatarGroup.d.mts +8 -21
  15. package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  16. package/dist/components/AvatarGroup/AvatarGroup.mjs +9 -4
  17. package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
  18. package/dist/components/AvatarGroup/AvatarGroup.types.cjs.map +1 -1
  19. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts +7 -24
  20. package/dist/components/AvatarGroup/AvatarGroup.types.d.cts.map +1 -1
  21. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts +7 -24
  22. package/dist/components/AvatarGroup/AvatarGroup.types.d.mts.map +1 -1
  23. package/dist/components/AvatarGroup/AvatarGroup.types.mjs.map +1 -1
  24. package/dist/components/AvatarGroup/index.cjs +3 -3
  25. package/dist/components/AvatarGroup/index.cjs.map +1 -1
  26. package/dist/components/AvatarGroup/index.d.cts +1 -1
  27. package/dist/components/AvatarGroup/index.d.cts.map +1 -1
  28. package/dist/components/AvatarGroup/index.d.mts +1 -1
  29. package/dist/components/AvatarGroup/index.d.mts.map +1 -1
  30. package/dist/components/AvatarGroup/index.mjs +1 -1
  31. package/dist/components/AvatarGroup/index.mjs.map +1 -1
  32. package/dist/components/AvatarIcon/AvatarIcon.cjs +2 -2
  33. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  34. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +16 -16
  35. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  36. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts +1 -1
  37. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts.map +1 -1
  38. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts +1 -1
  39. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts.map +1 -1
  40. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +1 -1
  41. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  42. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  43. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  44. package/dist/components/AvatarIcon/AvatarIcon.mjs +1 -1
  45. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  46. package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
  47. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +3 -19
  48. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
  49. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +3 -19
  50. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
  51. package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
  52. package/dist/components/AvatarIcon/index.cjs +4 -4
  53. package/dist/components/AvatarIcon/index.cjs.map +1 -1
  54. package/dist/components/AvatarIcon/index.d.cts +1 -1
  55. package/dist/components/AvatarIcon/index.d.cts.map +1 -1
  56. package/dist/components/AvatarIcon/index.d.mts +1 -1
  57. package/dist/components/AvatarIcon/index.d.mts.map +1 -1
  58. package/dist/components/AvatarIcon/index.mjs +1 -1
  59. package/dist/components/AvatarIcon/index.mjs.map +1 -1
  60. package/dist/components/BadgeIcon/BadgeIcon.cjs +2 -1
  61. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  62. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  63. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  64. package/dist/components/BadgeIcon/BadgeIcon.mjs +2 -1
  65. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  66. package/dist/components/BadgeIcon/BadgeIcon.types.cjs.map +1 -1
  67. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +5 -7
  68. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  69. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +5 -7
  70. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  71. package/dist/components/BadgeIcon/BadgeIcon.types.mjs.map +1 -1
  72. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  73. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  74. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  75. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  76. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  77. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  78. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  79. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  80. package/dist/components/BannerAlert/BannerAlert.d.cts +10 -12
  81. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  82. package/dist/components/BannerAlert/BannerAlert.d.mts +10 -12
  83. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  84. package/dist/components/BannerBase/BannerBase.cjs +5 -6
  85. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  86. package/dist/components/BannerBase/BannerBase.d.cts +7 -9
  87. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  88. package/dist/components/BannerBase/BannerBase.d.mts +7 -9
  89. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  90. package/dist/components/BannerBase/BannerBase.mjs +4 -5
  91. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  92. package/dist/components/BannerBase/BannerBase.types.cjs.map +1 -1
  93. package/dist/components/BannerBase/BannerBase.types.d.cts +1 -5
  94. package/dist/components/BannerBase/BannerBase.types.d.cts.map +1 -1
  95. package/dist/components/BannerBase/BannerBase.types.d.mts +1 -5
  96. package/dist/components/BannerBase/BannerBase.types.d.mts.map +1 -1
  97. package/dist/components/BannerBase/BannerBase.types.mjs.map +1 -1
  98. package/dist/components/Box/Box.constants.cjs.map +1 -1
  99. package/dist/components/Box/Box.constants.d.cts +1 -1
  100. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  101. package/dist/components/Box/Box.constants.d.mts +1 -1
  102. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  103. package/dist/components/Box/Box.constants.mjs.map +1 -1
  104. package/dist/components/Box/Box.types.cjs.map +1 -1
  105. package/dist/components/Box/Box.types.d.cts +2 -106
  106. package/dist/components/Box/Box.types.d.cts.map +1 -1
  107. package/dist/components/Box/Box.types.d.mts +2 -106
  108. package/dist/components/Box/Box.types.d.mts.map +1 -1
  109. package/dist/components/Box/Box.types.mjs.map +1 -1
  110. package/dist/components/Box/index.cjs +7 -7
  111. package/dist/components/Box/index.cjs.map +1 -1
  112. package/dist/components/Box/index.d.cts +1 -2
  113. package/dist/components/Box/index.d.cts.map +1 -1
  114. package/dist/components/Box/index.d.mts +1 -2
  115. package/dist/components/Box/index.d.mts.map +1 -1
  116. package/dist/components/Box/index.mjs +1 -1
  117. package/dist/components/Box/index.mjs.map +1 -1
  118. package/dist/components/Button/Button.cjs +5 -5
  119. package/dist/components/Button/Button.cjs.map +1 -1
  120. package/dist/components/Button/Button.d.cts.map +1 -1
  121. package/dist/components/Button/Button.d.mts.map +1 -1
  122. package/dist/components/Button/Button.mjs +1 -1
  123. package/dist/components/Button/Button.mjs.map +1 -1
  124. package/dist/components/Button/Button.types.cjs.map +1 -1
  125. package/dist/components/Button/Button.types.d.cts +5 -12
  126. package/dist/components/Button/Button.types.d.cts.map +1 -1
  127. package/dist/components/Button/Button.types.d.mts +5 -12
  128. package/dist/components/Button/Button.types.d.mts.map +1 -1
  129. package/dist/components/Button/Button.types.mjs.map +1 -1
  130. package/dist/components/Button/index.cjs +3 -3
  131. package/dist/components/Button/index.cjs.map +1 -1
  132. package/dist/components/Button/index.d.cts +1 -1
  133. package/dist/components/Button/index.d.cts.map +1 -1
  134. package/dist/components/Button/index.d.mts +1 -1
  135. package/dist/components/Button/index.d.mts.map +1 -1
  136. package/dist/components/Button/index.mjs +1 -1
  137. package/dist/components/Button/index.mjs.map +1 -1
  138. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +2 -0
  139. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  140. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  141. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  142. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs +2 -0
  143. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  144. package/dist/components/Button/variants/ButtonPrimary/index.cjs +1 -3
  145. package/dist/components/Button/variants/ButtonPrimary/index.cjs.map +1 -1
  146. package/dist/components/Button/variants/ButtonPrimary/index.d.cts +0 -1
  147. package/dist/components/Button/variants/ButtonPrimary/index.d.cts.map +1 -1
  148. package/dist/components/Button/variants/ButtonPrimary/index.d.mts +0 -1
  149. package/dist/components/Button/variants/ButtonPrimary/index.d.mts.map +1 -1
  150. package/dist/components/Button/variants/ButtonPrimary/index.mjs +0 -1
  151. package/dist/components/Button/variants/ButtonPrimary/index.mjs.map +1 -1
  152. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +2 -0
  153. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  154. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  155. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  156. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs +2 -0
  157. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  158. package/dist/components/Button/variants/ButtonSecondary/index.cjs +1 -3
  159. package/dist/components/Button/variants/ButtonSecondary/index.cjs.map +1 -1
  160. package/dist/components/Button/variants/ButtonSecondary/index.d.cts +0 -1
  161. package/dist/components/Button/variants/ButtonSecondary/index.d.cts.map +1 -1
  162. package/dist/components/Button/variants/ButtonSecondary/index.d.mts +0 -1
  163. package/dist/components/Button/variants/ButtonSecondary/index.d.mts.map +1 -1
  164. package/dist/components/Button/variants/ButtonSecondary/index.mjs +0 -1
  165. package/dist/components/Button/variants/ButtonSecondary/index.mjs.map +1 -1
  166. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +3 -1
  167. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  168. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  169. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  170. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +3 -1
  171. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  172. package/dist/components/Button/variants/ButtonTertiary/index.cjs +1 -3
  173. package/dist/components/Button/variants/ButtonTertiary/index.cjs.map +1 -1
  174. package/dist/components/Button/variants/ButtonTertiary/index.d.cts +0 -1
  175. package/dist/components/Button/variants/ButtonTertiary/index.d.cts.map +1 -1
  176. package/dist/components/Button/variants/ButtonTertiary/index.d.mts +0 -1
  177. package/dist/components/Button/variants/ButtonTertiary/index.d.mts.map +1 -1
  178. package/dist/components/Button/variants/ButtonTertiary/index.mjs +0 -1
  179. package/dist/components/Button/variants/ButtonTertiary/index.mjs.map +1 -1
  180. package/dist/components/ButtonBase/ButtonBase.cjs +28 -20
  181. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  182. package/dist/components/ButtonBase/ButtonBase.constants.cjs +35 -5
  183. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  184. package/dist/components/ButtonBase/ButtonBase.constants.d.cts +6 -1
  185. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  186. package/dist/components/ButtonBase/ButtonBase.constants.d.mts +6 -1
  187. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  188. package/dist/components/ButtonBase/ButtonBase.constants.mjs +29 -1
  189. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  190. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  191. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  192. package/dist/components/ButtonBase/ButtonBase.mjs +29 -21
  193. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  194. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  195. package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -35
  196. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  197. package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -35
  198. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  199. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  200. package/dist/components/ButtonBase/index.cjs +2 -2
  201. package/dist/components/ButtonBase/index.cjs.map +1 -1
  202. package/dist/components/ButtonBase/index.d.cts +1 -1
  203. package/dist/components/ButtonBase/index.d.cts.map +1 -1
  204. package/dist/components/ButtonBase/index.d.mts +1 -1
  205. package/dist/components/ButtonBase/index.d.mts.map +1 -1
  206. package/dist/components/ButtonBase/index.mjs +1 -1
  207. package/dist/components/ButtonBase/index.mjs.map +1 -1
  208. package/dist/components/ButtonHero/index.cjs +2 -2
  209. package/dist/components/ButtonHero/index.cjs.map +1 -1
  210. package/dist/components/ButtonHero/index.d.cts +1 -1
  211. package/dist/components/ButtonHero/index.d.cts.map +1 -1
  212. package/dist/components/ButtonHero/index.d.mts +1 -1
  213. package/dist/components/ButtonHero/index.d.mts.map +1 -1
  214. package/dist/components/ButtonHero/index.mjs +1 -1
  215. package/dist/components/ButtonHero/index.mjs.map +1 -1
  216. package/dist/components/ButtonIcon/ButtonIcon.cjs +5 -5
  217. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  218. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +7 -8
  219. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
  220. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +3 -4
  221. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  222. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +3 -4
  223. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  224. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +1 -2
  225. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.map +1 -1
  226. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  227. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  228. package/dist/components/ButtonIcon/ButtonIcon.mjs +1 -1
  229. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  230. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  231. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +5 -27
  232. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  233. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +5 -27
  234. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  235. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  236. package/dist/components/ButtonIcon/index.cjs +3 -3
  237. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  238. package/dist/components/ButtonIcon/index.d.cts +1 -1
  239. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  240. package/dist/components/ButtonIcon/index.d.mts +1 -1
  241. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  242. package/dist/components/ButtonIcon/index.mjs +1 -1
  243. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  244. package/dist/components/HeaderBase/HeaderBase.cjs +43 -0
  245. package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -0
  246. package/dist/components/HeaderBase/HeaderBase.d.cts +4 -0
  247. package/dist/components/HeaderBase/HeaderBase.d.cts.map +1 -0
  248. package/dist/components/HeaderBase/HeaderBase.d.mts +4 -0
  249. package/dist/components/HeaderBase/HeaderBase.d.mts.map +1 -0
  250. package/dist/components/HeaderBase/HeaderBase.mjs +24 -0
  251. package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -0
  252. package/dist/components/HeaderBase/HeaderBase.types.cjs +3 -0
  253. package/dist/components/HeaderBase/HeaderBase.types.cjs.map +1 -0
  254. package/dist/components/HeaderBase/HeaderBase.types.d.cts +51 -0
  255. package/dist/components/HeaderBase/HeaderBase.types.d.cts.map +1 -0
  256. package/dist/components/HeaderBase/HeaderBase.types.d.mts +51 -0
  257. package/dist/components/HeaderBase/HeaderBase.types.d.mts.map +1 -0
  258. package/dist/components/HeaderBase/HeaderBase.types.mjs +2 -0
  259. package/dist/components/HeaderBase/HeaderBase.types.mjs.map +1 -0
  260. package/dist/components/HeaderBase/index.cjs +6 -0
  261. package/dist/components/HeaderBase/index.cjs.map +1 -0
  262. package/dist/components/HeaderBase/index.d.cts +3 -0
  263. package/dist/components/HeaderBase/index.d.cts.map +1 -0
  264. package/dist/components/HeaderBase/index.d.mts +3 -0
  265. package/dist/components/HeaderBase/index.d.mts.map +1 -0
  266. package/dist/components/HeaderBase/index.mjs +2 -0
  267. package/dist/components/HeaderBase/index.mjs.map +1 -0
  268. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  269. package/dist/components/Icon/Icon.types.d.cts +2 -19
  270. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  271. package/dist/components/Icon/Icon.types.d.mts +2 -19
  272. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  273. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  274. package/dist/components/Icon/icons/Candlestick.cjs +1 -1
  275. package/dist/components/Icon/icons/Candlestick.cjs.map +1 -1
  276. package/dist/components/Icon/icons/Candlestick.mjs +1 -1
  277. package/dist/components/Icon/icons/Candlestick.mjs.map +1 -1
  278. package/dist/components/Icon/icons/Group.cjs +32 -0
  279. package/dist/components/Icon/icons/Group.cjs.map +1 -0
  280. package/dist/components/Icon/icons/Group.d.cts +4 -0
  281. package/dist/components/Icon/icons/Group.d.cts.map +1 -0
  282. package/dist/components/Icon/icons/Group.d.mts +4 -0
  283. package/dist/components/Icon/icons/Group.d.mts.map +1 -0
  284. package/dist/components/Icon/icons/Group.mjs +7 -0
  285. package/dist/components/Icon/icons/Group.mjs.map +1 -0
  286. package/dist/components/Icon/icons/ListArrow.cjs +32 -0
  287. package/dist/components/Icon/icons/ListArrow.cjs.map +1 -0
  288. package/dist/components/Icon/icons/ListArrow.d.cts +4 -0
  289. package/dist/components/Icon/icons/ListArrow.d.cts.map +1 -0
  290. package/dist/components/Icon/icons/ListArrow.d.mts +4 -0
  291. package/dist/components/Icon/icons/ListArrow.d.mts.map +1 -0
  292. package/dist/components/Icon/icons/ListArrow.mjs +7 -0
  293. package/dist/components/Icon/icons/ListArrow.mjs.map +1 -0
  294. package/dist/components/Icon/icons/Merge.cjs +32 -0
  295. package/dist/components/Icon/icons/Merge.cjs.map +1 -0
  296. package/dist/components/Icon/icons/Merge.d.cts +4 -0
  297. package/dist/components/Icon/icons/Merge.d.cts.map +1 -0
  298. package/dist/components/Icon/icons/Merge.d.mts +4 -0
  299. package/dist/components/Icon/icons/Merge.d.mts.map +1 -0
  300. package/dist/components/Icon/icons/Merge.mjs +7 -0
  301. package/dist/components/Icon/icons/Merge.mjs.map +1 -0
  302. package/dist/components/Icon/icons/Musd.cjs +32 -0
  303. package/dist/components/Icon/icons/Musd.cjs.map +1 -0
  304. package/dist/components/Icon/icons/Musd.d.cts +4 -0
  305. package/dist/components/Icon/icons/Musd.d.cts.map +1 -0
  306. package/dist/components/Icon/icons/Musd.d.mts +4 -0
  307. package/dist/components/Icon/icons/Musd.d.mts.map +1 -0
  308. package/dist/components/Icon/icons/Musd.mjs +7 -0
  309. package/dist/components/Icon/icons/Musd.mjs.map +1 -0
  310. package/dist/components/Icon/icons/MusdFilled.cjs +32 -0
  311. package/dist/components/Icon/icons/MusdFilled.cjs.map +1 -0
  312. package/dist/components/Icon/icons/MusdFilled.d.cts +4 -0
  313. package/dist/components/Icon/icons/MusdFilled.d.cts.map +1 -0
  314. package/dist/components/Icon/icons/MusdFilled.d.mts +4 -0
  315. package/dist/components/Icon/icons/MusdFilled.d.mts.map +1 -0
  316. package/dist/components/Icon/icons/MusdFilled.mjs +7 -0
  317. package/dist/components/Icon/icons/MusdFilled.mjs.map +1 -0
  318. package/dist/components/Icon/icons/PieChart.cjs +32 -0
  319. package/dist/components/Icon/icons/PieChart.cjs.map +1 -0
  320. package/dist/components/Icon/icons/PieChart.d.cts +4 -0
  321. package/dist/components/Icon/icons/PieChart.d.cts.map +1 -0
  322. package/dist/components/Icon/icons/PieChart.d.mts +4 -0
  323. package/dist/components/Icon/icons/PieChart.d.mts.map +1 -0
  324. package/dist/components/Icon/icons/PieChart.mjs +7 -0
  325. package/dist/components/Icon/icons/PieChart.mjs.map +1 -0
  326. package/dist/components/Icon/icons/Predictions.cjs +32 -0
  327. package/dist/components/Icon/icons/Predictions.cjs.map +1 -0
  328. package/dist/components/Icon/icons/Predictions.d.cts +4 -0
  329. package/dist/components/Icon/icons/Predictions.d.cts.map +1 -0
  330. package/dist/components/Icon/icons/Predictions.d.mts +4 -0
  331. package/dist/components/Icon/icons/Predictions.d.mts.map +1 -0
  332. package/dist/components/Icon/icons/Predictions.mjs +7 -0
  333. package/dist/components/Icon/icons/Predictions.mjs.map +1 -0
  334. package/dist/components/Icon/icons/Telegram.cjs +32 -0
  335. package/dist/components/Icon/icons/Telegram.cjs.map +1 -0
  336. package/dist/components/Icon/icons/Telegram.d.cts +4 -0
  337. package/dist/components/Icon/icons/Telegram.d.cts.map +1 -0
  338. package/dist/components/Icon/icons/Telegram.d.mts +4 -0
  339. package/dist/components/Icon/icons/Telegram.d.mts.map +1 -0
  340. package/dist/components/Icon/icons/Telegram.mjs +7 -0
  341. package/dist/components/Icon/icons/Telegram.mjs.map +1 -0
  342. package/dist/components/Icon/icons/index.cjs +92 -76
  343. package/dist/components/Icon/icons/index.cjs.map +1 -1
  344. package/dist/components/Icon/icons/index.d.cts +46 -38
  345. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  346. package/dist/components/Icon/icons/index.d.mts +46 -38
  347. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  348. package/dist/components/Icon/icons/index.mjs +92 -76
  349. package/dist/components/Icon/icons/index.mjs.map +1 -1
  350. package/dist/components/Input/Input.cjs +4 -3
  351. package/dist/components/Input/Input.cjs.map +1 -1
  352. package/dist/components/Input/Input.d.cts +1 -5
  353. package/dist/components/Input/Input.d.cts.map +1 -1
  354. package/dist/components/Input/Input.d.mts +1 -5
  355. package/dist/components/Input/Input.d.mts.map +1 -1
  356. package/dist/components/Input/Input.mjs +4 -3
  357. package/dist/components/Input/Input.mjs.map +1 -1
  358. package/dist/components/Input/Input.types.cjs.map +1 -1
  359. package/dist/components/Input/Input.types.d.cts +2 -20
  360. package/dist/components/Input/Input.types.d.cts.map +1 -1
  361. package/dist/components/Input/Input.types.d.mts +2 -20
  362. package/dist/components/Input/Input.types.d.mts.map +1 -1
  363. package/dist/components/Input/Input.types.mjs.map +1 -1
  364. package/dist/components/Modal/Modal.cjs +49 -0
  365. package/dist/components/Modal/Modal.cjs.map +1 -0
  366. package/dist/components/Modal/Modal.context.cjs +14 -0
  367. package/dist/components/Modal/Modal.context.cjs.map +1 -0
  368. package/dist/components/Modal/Modal.context.d.cts +6 -0
  369. package/dist/components/Modal/Modal.context.d.cts.map +1 -0
  370. package/dist/components/Modal/Modal.context.d.mts +6 -0
  371. package/dist/components/Modal/Modal.context.d.mts.map +1 -0
  372. package/dist/components/Modal/Modal.context.mjs +10 -0
  373. package/dist/components/Modal/Modal.context.mjs.map +1 -0
  374. package/dist/components/Modal/Modal.d.cts +4 -0
  375. package/dist/components/Modal/Modal.d.cts.map +1 -0
  376. package/dist/components/Modal/Modal.d.mts +4 -0
  377. package/dist/components/Modal/Modal.d.mts.map +1 -0
  378. package/dist/components/Modal/Modal.mjs +30 -0
  379. package/dist/components/Modal/Modal.mjs.map +1 -0
  380. package/dist/components/Modal/Modal.types.cjs +3 -0
  381. package/dist/components/Modal/Modal.types.cjs.map +1 -0
  382. package/dist/components/Modal/Modal.types.d.cts +64 -0
  383. package/dist/components/Modal/Modal.types.d.cts.map +1 -0
  384. package/dist/components/Modal/Modal.types.d.mts +64 -0
  385. package/dist/components/Modal/Modal.types.d.mts.map +1 -0
  386. package/dist/components/Modal/Modal.types.mjs +2 -0
  387. package/dist/components/Modal/Modal.types.mjs.map +1 -0
  388. package/dist/components/Modal/index.cjs +8 -0
  389. package/dist/components/Modal/index.cjs.map +1 -0
  390. package/dist/components/Modal/index.d.cts +5 -0
  391. package/dist/components/Modal/index.d.cts.map +1 -0
  392. package/dist/components/Modal/index.d.mts +5 -0
  393. package/dist/components/Modal/index.d.mts.map +1 -0
  394. package/dist/components/Modal/index.mjs +3 -0
  395. package/dist/components/Modal/index.mjs.map +1 -0
  396. package/dist/components/ModalBody/ModalBody.cjs +32 -0
  397. package/dist/components/ModalBody/ModalBody.cjs.map +1 -0
  398. package/dist/components/ModalBody/ModalBody.d.cts +4 -0
  399. package/dist/components/ModalBody/ModalBody.d.cts.map +1 -0
  400. package/dist/components/ModalBody/ModalBody.d.mts +4 -0
  401. package/dist/components/ModalBody/ModalBody.d.mts.map +1 -0
  402. package/dist/components/ModalBody/ModalBody.mjs +13 -0
  403. package/dist/components/ModalBody/ModalBody.mjs.map +1 -0
  404. package/dist/components/ModalBody/ModalBody.types.cjs +3 -0
  405. package/dist/components/ModalBody/ModalBody.types.cjs.map +1 -0
  406. package/dist/components/ModalBody/ModalBody.types.d.cts +13 -0
  407. package/dist/components/ModalBody/ModalBody.types.d.cts.map +1 -0
  408. package/dist/components/ModalBody/ModalBody.types.d.mts +13 -0
  409. package/dist/components/ModalBody/ModalBody.types.d.mts.map +1 -0
  410. package/dist/components/ModalBody/ModalBody.types.mjs +2 -0
  411. package/dist/components/ModalBody/ModalBody.types.mjs.map +1 -0
  412. package/dist/components/ModalBody/index.cjs +6 -0
  413. package/dist/components/ModalBody/index.cjs.map +1 -0
  414. package/dist/components/ModalBody/index.d.cts +3 -0
  415. package/dist/components/ModalBody/index.d.cts.map +1 -0
  416. package/dist/components/ModalBody/index.d.mts +3 -0
  417. package/dist/components/ModalBody/index.d.mts.map +1 -0
  418. package/dist/components/ModalBody/index.mjs +2 -0
  419. package/dist/components/ModalBody/index.mjs.map +1 -0
  420. package/dist/components/ModalContent/ModalContent.cjs +73 -0
  421. package/dist/components/ModalContent/ModalContent.cjs.map +1 -0
  422. package/dist/components/ModalContent/ModalContent.constants.cjs +34 -0
  423. package/dist/components/ModalContent/ModalContent.constants.cjs.map +1 -0
  424. package/dist/components/ModalContent/ModalContent.constants.d.cts +31 -0
  425. package/dist/components/ModalContent/ModalContent.constants.d.cts.map +1 -0
  426. package/dist/components/ModalContent/ModalContent.constants.d.mts +31 -0
  427. package/dist/components/ModalContent/ModalContent.constants.d.mts.map +1 -0
  428. package/dist/components/ModalContent/ModalContent.constants.mjs +31 -0
  429. package/dist/components/ModalContent/ModalContent.constants.mjs.map +1 -0
  430. package/dist/components/ModalContent/ModalContent.d.cts +4 -0
  431. package/dist/components/ModalContent/ModalContent.d.cts.map +1 -0
  432. package/dist/components/ModalContent/ModalContent.d.mts +4 -0
  433. package/dist/components/ModalContent/ModalContent.d.mts.map +1 -0
  434. package/dist/components/ModalContent/ModalContent.mjs +54 -0
  435. package/dist/components/ModalContent/ModalContent.mjs.map +1 -0
  436. package/dist/components/ModalContent/ModalContent.types.cjs +15 -0
  437. package/dist/components/ModalContent/ModalContent.types.cjs.map +1 -0
  438. package/dist/components/ModalContent/ModalContent.types.d.cts +51 -0
  439. package/dist/components/ModalContent/ModalContent.types.d.cts.map +1 -0
  440. package/dist/components/ModalContent/ModalContent.types.d.mts +51 -0
  441. package/dist/components/ModalContent/ModalContent.types.d.mts.map +1 -0
  442. package/dist/components/ModalContent/ModalContent.types.mjs +12 -0
  443. package/dist/components/ModalContent/ModalContent.types.mjs.map +1 -0
  444. package/dist/components/ModalContent/index.cjs +10 -0
  445. package/dist/components/ModalContent/index.cjs.map +1 -0
  446. package/dist/components/ModalContent/index.d.cts +5 -0
  447. package/dist/components/ModalContent/index.d.cts.map +1 -0
  448. package/dist/components/ModalContent/index.d.mts +5 -0
  449. package/dist/components/ModalContent/index.d.mts.map +1 -0
  450. package/dist/components/ModalContent/index.mjs +4 -0
  451. package/dist/components/ModalContent/index.mjs.map +1 -0
  452. package/dist/components/ModalFocus/ModalFocus.cjs +56 -0
  453. package/dist/components/ModalFocus/ModalFocus.cjs.map +1 -0
  454. package/dist/components/ModalFocus/ModalFocus.d.cts +4 -0
  455. package/dist/components/ModalFocus/ModalFocus.d.cts.map +1 -0
  456. package/dist/components/ModalFocus/ModalFocus.d.mts +4 -0
  457. package/dist/components/ModalFocus/ModalFocus.d.mts.map +1 -0
  458. package/dist/components/ModalFocus/ModalFocus.mjs +34 -0
  459. package/dist/components/ModalFocus/ModalFocus.mjs.map +1 -0
  460. package/dist/components/ModalFocus/ModalFocus.types.cjs +3 -0
  461. package/dist/components/ModalFocus/ModalFocus.types.cjs.map +1 -0
  462. package/dist/components/ModalFocus/ModalFocus.types.d.cts +36 -0
  463. package/dist/components/ModalFocus/ModalFocus.types.d.cts.map +1 -0
  464. package/dist/components/ModalFocus/ModalFocus.types.d.mts +36 -0
  465. package/dist/components/ModalFocus/ModalFocus.types.d.mts.map +1 -0
  466. package/dist/components/ModalFocus/ModalFocus.types.mjs +2 -0
  467. package/dist/components/ModalFocus/ModalFocus.types.mjs.map +1 -0
  468. package/dist/components/ModalFocus/index.cjs +6 -0
  469. package/dist/components/ModalFocus/index.cjs.map +1 -0
  470. package/dist/components/ModalFocus/index.d.cts +3 -0
  471. package/dist/components/ModalFocus/index.d.cts.map +1 -0
  472. package/dist/components/ModalFocus/index.d.mts +3 -0
  473. package/dist/components/ModalFocus/index.d.mts.map +1 -0
  474. package/dist/components/ModalFocus/index.mjs +2 -0
  475. package/dist/components/ModalFocus/index.mjs.map +1 -0
  476. package/dist/components/ModalFooter/ModalFooter.cjs +44 -0
  477. package/dist/components/ModalFooter/ModalFooter.cjs.map +1 -0
  478. package/dist/components/ModalFooter/ModalFooter.d.cts +4 -0
  479. package/dist/components/ModalFooter/ModalFooter.d.cts.map +1 -0
  480. package/dist/components/ModalFooter/ModalFooter.d.mts +4 -0
  481. package/dist/components/ModalFooter/ModalFooter.d.mts.map +1 -0
  482. package/dist/components/ModalFooter/ModalFooter.mjs +25 -0
  483. package/dist/components/ModalFooter/ModalFooter.mjs.map +1 -0
  484. package/dist/components/ModalFooter/ModalFooter.types.cjs +14 -0
  485. package/dist/components/ModalFooter/ModalFooter.types.cjs.map +1 -0
  486. package/dist/components/ModalFooter/ModalFooter.types.d.cts +63 -0
  487. package/dist/components/ModalFooter/ModalFooter.types.d.cts.map +1 -0
  488. package/dist/components/ModalFooter/ModalFooter.types.d.mts +63 -0
  489. package/dist/components/ModalFooter/ModalFooter.types.d.mts.map +1 -0
  490. package/dist/components/ModalFooter/ModalFooter.types.mjs +11 -0
  491. package/dist/components/ModalFooter/ModalFooter.types.mjs.map +1 -0
  492. package/dist/components/ModalFooter/index.cjs +8 -0
  493. package/dist/components/ModalFooter/index.cjs.map +1 -0
  494. package/dist/components/ModalFooter/index.d.cts +4 -0
  495. package/dist/components/ModalFooter/index.d.cts.map +1 -0
  496. package/dist/components/ModalFooter/index.d.mts +4 -0
  497. package/dist/components/ModalFooter/index.d.mts.map +1 -0
  498. package/dist/components/ModalFooter/index.mjs +3 -0
  499. package/dist/components/ModalFooter/index.mjs.map +1 -0
  500. package/dist/components/ModalOverlay/ModalOverlay.cjs +32 -0
  501. package/dist/components/ModalOverlay/ModalOverlay.cjs.map +1 -0
  502. package/dist/components/ModalOverlay/ModalOverlay.d.cts +4 -0
  503. package/dist/components/ModalOverlay/ModalOverlay.d.cts.map +1 -0
  504. package/dist/components/ModalOverlay/ModalOverlay.d.mts +4 -0
  505. package/dist/components/ModalOverlay/ModalOverlay.d.mts.map +1 -0
  506. package/dist/components/ModalOverlay/ModalOverlay.mjs +13 -0
  507. package/dist/components/ModalOverlay/ModalOverlay.mjs.map +1 -0
  508. package/dist/components/ModalOverlay/ModalOverlay.types.cjs +3 -0
  509. package/dist/components/ModalOverlay/ModalOverlay.types.cjs.map +1 -0
  510. package/dist/components/ModalOverlay/ModalOverlay.types.d.cts +9 -0
  511. package/dist/components/ModalOverlay/ModalOverlay.types.d.cts.map +1 -0
  512. package/dist/components/ModalOverlay/ModalOverlay.types.d.mts +9 -0
  513. package/dist/components/ModalOverlay/ModalOverlay.types.d.mts.map +1 -0
  514. package/dist/components/ModalOverlay/ModalOverlay.types.mjs +2 -0
  515. package/dist/components/ModalOverlay/ModalOverlay.types.mjs.map +1 -0
  516. package/dist/components/ModalOverlay/index.cjs +6 -0
  517. package/dist/components/ModalOverlay/index.cjs.map +1 -0
  518. package/dist/components/ModalOverlay/index.d.cts +3 -0
  519. package/dist/components/ModalOverlay/index.d.cts.map +1 -0
  520. package/dist/components/ModalOverlay/index.d.mts +3 -0
  521. package/dist/components/ModalOverlay/index.d.mts.map +1 -0
  522. package/dist/components/ModalOverlay/index.mjs +2 -0
  523. package/dist/components/ModalOverlay/index.mjs.map +1 -0
  524. package/dist/components/Skeleton/Skeleton.cjs +46 -0
  525. package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
  526. package/dist/components/Skeleton/Skeleton.d.cts +4 -0
  527. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  528. package/dist/components/Skeleton/Skeleton.d.mts +4 -0
  529. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  530. package/dist/components/Skeleton/Skeleton.mjs +27 -0
  531. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  532. package/dist/components/Skeleton/Skeleton.types.cjs +3 -0
  533. package/dist/components/Skeleton/Skeleton.types.cjs.map +1 -0
  534. package/dist/components/Skeleton/Skeleton.types.d.cts +38 -0
  535. package/dist/components/Skeleton/Skeleton.types.d.cts.map +1 -0
  536. package/dist/components/Skeleton/Skeleton.types.d.mts +38 -0
  537. package/dist/components/Skeleton/Skeleton.types.d.mts.map +1 -0
  538. package/dist/components/Skeleton/Skeleton.types.mjs +2 -0
  539. package/dist/components/Skeleton/Skeleton.types.mjs.map +1 -0
  540. package/dist/components/Skeleton/index.cjs +6 -0
  541. package/dist/components/Skeleton/index.cjs.map +1 -0
  542. package/dist/components/Skeleton/index.d.cts +3 -0
  543. package/dist/components/Skeleton/index.d.cts.map +1 -0
  544. package/dist/components/Skeleton/index.d.mts +3 -0
  545. package/dist/components/Skeleton/index.d.mts.map +1 -0
  546. package/dist/components/Skeleton/index.mjs +2 -0
  547. package/dist/components/Skeleton/index.mjs.map +1 -0
  548. package/dist/components/index.cjs +22 -2
  549. package/dist/components/index.cjs.map +1 -1
  550. package/dist/components/index.d.cts +17 -1
  551. package/dist/components/index.d.cts.map +1 -1
  552. package/dist/components/index.d.mts +17 -1
  553. package/dist/components/index.d.mts.map +1 -1
  554. package/dist/components/index.mjs +8 -0
  555. package/dist/components/index.mjs.map +1 -1
  556. package/dist/types/index.cjs +9 -606
  557. package/dist/types/index.cjs.map +1 -1
  558. package/dist/types/index.d.cts +4 -597
  559. package/dist/types/index.d.cts.map +1 -1
  560. package/dist/types/index.d.mts +4 -597
  561. package/dist/types/index.d.mts.map +1 -1
  562. package/dist/types/index.mjs +4 -607
  563. package/dist/types/index.mjs.map +1 -1
  564. package/package.json +6 -8
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,0BAAgB;AAEnC,eAAO,MAAM,oCAAoC;;;;CAIvC,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC;;;;CAIvC,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC"}
@@ -1,5 +1,4 @@
1
- import { ButtonIconSize } from "../../types/index.mjs";
2
- import { IconSize } from "../Icon/index.mjs";
1
+ import { ButtonIconSize, IconSize } from "@metamask-previews/design-system-shared";
3
2
  export const TWCLASSMAP_BUTTONICON_SIZE_DIMENSION = {
4
3
  [ButtonIconSize.Sm]: 'h-6 w-6',
5
4
  [ButtonIconSize.Md]: 'h-8 w-8',
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.constants.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,8BAAoB;AAC7C,OAAO,EAAE,QAAQ,EAAE,0BAAgB;AAEnC,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,WAAW;CACxB,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;IAChC,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;IAChC,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;CACxB,CAAC","sourcesContent":["import { ButtonIconSize } from '../../types';\nimport { IconSize } from '../Icon';\n\nexport const TWCLASSMAP_BUTTONICON_SIZE_DIMENSION = {\n [ButtonIconSize.Sm]: 'h-6 w-6',\n [ButtonIconSize.Md]: 'h-8 w-8',\n [ButtonIconSize.Lg]: 'h-10 w-10',\n} as const;\n\nexport const MAP_BUTTONICON_SIZE_ICONSIZE = {\n [ButtonIconSize.Sm]: IconSize.Md,\n [ButtonIconSize.Md]: IconSize.Lg,\n [ButtonIconSize.Lg]: IconSize.Xl,\n} as const;\n"]}
1
+ {"version":3,"file":"ButtonIcon.constants.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,gDAAgD;AAEnF,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,SAAS;IAC9B,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,WAAW;CACxB,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;IAChC,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;IAChC,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;CACxB,CAAC","sourcesContent":["import { ButtonIconSize, IconSize } from '@metamask-previews/design-system-shared';\n\nexport const TWCLASSMAP_BUTTONICON_SIZE_DIMENSION = {\n [ButtonIconSize.Sm]: 'h-6 w-6',\n [ButtonIconSize.Md]: 'h-8 w-8',\n [ButtonIconSize.Lg]: 'h-10 w-10',\n} as const;\n\nexport const MAP_BUTTONICON_SIZE_ICONSIZE = {\n [ButtonIconSize.Sm]: IconSize.Md,\n [ButtonIconSize.Md]: IconSize.Lg,\n [ButtonIconSize.Lg]: IconSize.Xl,\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAU1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA4DtB,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,cAAc;AAS1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA4DtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAU1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA4DtB,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,cAAc;AAS1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,wGA4DtB,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { ButtonIconSize, ButtonIconVariant } from "@metamask-previews/design-system-shared";
7
8
  import $React, { forwardRef } from "react";
8
9
  const React = $importDefault($React);
9
- import { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
10
10
  import { twMerge } from "../../utils/tw-merge.mjs";
11
11
  import { Icon } from "../Icon/index.mjs";
12
12
  import { TWCLASSMAP_BUTTONICON_SIZE_DIMENSION, MAP_BUTTONICON_SIZE_ICONSIZE } from "./ButtonIcon.constants.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AAChE,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAE/B,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAC7B,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,iBAAiB,CAAC,OAAO,EACnC,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,UAAU,CAAC;IAElC,MAAM,eAAe,GAAG,OAAO;IAC7B,cAAc;IACd,6CAA6C;IAC7C,cAAc;IACd,oCAAoC,CAAC,IAAI,CAAC;IAC1C,iBAAiB;IACjB,OAAO,KAAK,iBAAiB,CAAC,OAAO,IAAI;QACvC,2BAA2B;QAC3B,aAAa,IAAI,kCAAkC;QACnD,mBAAmB;KACpB,EACD,OAAO,KAAK,iBAAiB,CAAC,QAAQ,IAAI;QACxC,cAAc;QACd,yCAAyC;KAC1C,EACD,OAAO,KAAK,iBAAiB,CAAC,MAAM,IAAI;QACtC,cAAc;QACd,4BAA4B;QAC5B,aAAa,IAAI,8CAA8C;KAChE;IACD,iBAAiB;IACjB,UAAU,IAAI,+BAA+B,EAC7C,SAAS,CACV,CAAC;IAEF,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,UAAU,gBACR,SAAS,EACrB,KAAK,EAAE,KAAK,KACR,KAAK;QAET,oBAAC,IAAI,IACH,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC,EACxC,SAAS,EAAE,OAAO,CAAC,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC,KACpD,SAAS,GACb,CACK,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\nimport { Icon } from '../Icon';\n\nimport {\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n MAP_BUTTONICON_SIZE_ICONSIZE,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = forwardRef<HTMLButtonElement, ButtonIconProps>(\n (\n {\n className,\n iconName,\n iconProps,\n ariaLabel,\n isDisabled = false,\n variant = ButtonIconVariant.Default,\n size = ButtonIconSize.Md,\n style,\n ...props\n },\n ref,\n ) => {\n const isInteractive = !isDisabled;\n\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex items-center justify-center p-0',\n // Size styles\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n // Variant styles\n variant === ButtonIconVariant.Default && [\n 'rounded-lg bg-transparent',\n isInteractive && 'hover:bg-hover active:bg-pressed',\n 'text-icon-default',\n ],\n variant === ButtonIconVariant.Floating && [\n 'rounded-full',\n 'bg-icon-default text-background-default',\n ],\n variant === ButtonIconVariant.Filled && [\n 'rounded-full',\n 'bg-muted text-icon-default',\n isInteractive && 'hover:bg-muted-hover active:bg-muted-pressed',\n ],\n // Disabled state\n isDisabled && 'cursor-not-allowed opacity-50',\n className,\n );\n\n return (\n <button\n ref={ref}\n className={mergedClassName}\n disabled={isDisabled}\n aria-label={ariaLabel}\n style={style}\n {...props}\n >\n <Icon\n name={iconName}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n className={twMerge('text-inherit', iconProps?.className)}\n {...iconProps}\n />\n </button>\n );\n },\n);\n\nButtonIcon.displayName = 'ButtonIcon';\n"]}
1
+ {"version":3,"file":"ButtonIcon.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EAClB,gDAAgD;AACjD,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAE/B,OAAO,EACL,oCAAoC,EACpC,4BAA4B,EAC7B,mCAA+B;AAGhC,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,iBAAiB,CAAC,OAAO,EACnC,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,aAAa,GAAG,CAAC,UAAU,CAAC;IAElC,MAAM,eAAe,GAAG,OAAO;IAC7B,cAAc;IACd,6CAA6C;IAC7C,cAAc;IACd,oCAAoC,CAAC,IAAI,CAAC;IAC1C,iBAAiB;IACjB,OAAO,KAAK,iBAAiB,CAAC,OAAO,IAAI;QACvC,2BAA2B;QAC3B,aAAa,IAAI,kCAAkC;QACnD,mBAAmB;KACpB,EACD,OAAO,KAAK,iBAAiB,CAAC,QAAQ,IAAI;QACxC,cAAc;QACd,yCAAyC;KAC1C,EACD,OAAO,KAAK,iBAAiB,CAAC,MAAM,IAAI;QACtC,cAAc;QACd,4BAA4B;QAC5B,aAAa,IAAI,8CAA8C;KAChE;IACD,iBAAiB;IACjB,UAAU,IAAI,+BAA+B,EAC7C,SAAS,CACV,CAAC;IAEF,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,UAAU,gBACR,SAAS,EACrB,KAAK,EAAE,KAAK,KACR,KAAK;QAET,oBAAC,IAAI,IACH,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC,EACxC,SAAS,EAAE,OAAO,CAAC,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC,KACpD,SAAS,GACb,CACK,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n ButtonIconSize,\n ButtonIconVariant,\n} from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Icon } from '../Icon';\n\nimport {\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION,\n MAP_BUTTONICON_SIZE_ICONSIZE,\n} from './ButtonIcon.constants';\nimport type { ButtonIconProps } from './ButtonIcon.types';\n\nexport const ButtonIcon = forwardRef<HTMLButtonElement, ButtonIconProps>(\n (\n {\n className,\n iconName,\n iconProps,\n ariaLabel,\n isDisabled = false,\n variant = ButtonIconVariant.Default,\n size = ButtonIconSize.Md,\n style,\n ...props\n },\n ref,\n ) => {\n const isInteractive = !isDisabled;\n\n const mergedClassName = twMerge(\n // Base styles\n 'inline-flex items-center justify-center p-0',\n // Size styles\n TWCLASSMAP_BUTTONICON_SIZE_DIMENSION[size],\n // Variant styles\n variant === ButtonIconVariant.Default && [\n 'rounded-lg bg-transparent',\n isInteractive && 'hover:bg-hover active:bg-pressed',\n 'text-icon-default',\n ],\n variant === ButtonIconVariant.Floating && [\n 'rounded-full',\n 'bg-icon-default text-background-default',\n ],\n variant === ButtonIconVariant.Filled && [\n 'rounded-full',\n 'bg-muted text-icon-default',\n isInteractive && 'hover:bg-muted-hover active:bg-muted-pressed',\n ],\n // Disabled state\n isDisabled && 'cursor-not-allowed opacity-50',\n className,\n );\n\n return (\n <button\n ref={ref}\n className={mergedClassName}\n disabled={isDisabled}\n aria-label={ariaLabel}\n style={style}\n {...props}\n >\n <Icon\n name={iconName}\n size={MAP_BUTTONICON_SIZE_ICONSIZE[size]}\n className={twMerge('text-inherit', iconProps?.className)}\n {...iconProps}\n />\n </button>\n );\n },\n);\n\nButtonIcon.displayName = 'ButtonIcon';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconName, IconProps } from '../Icon';\n\nexport type ButtonIconProps = ComponentProps<'button'> & {\n /**\n * Required prop to specify the icon to show\n */\n iconName: IconName;\n /**\n * Required prop to provide an accessible label for the button\n */\n ariaLabel: string;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to control the visual variant of the button.\n *\n * @default ButtonIconVariant.Default\n */\n variant?: ButtonIconVariant;\n /**\n * Optional prop to control the size of the button\n *\n * @default ButtonIconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonIcon component\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
1
+ {"version":3,"file":"ButtonIcon.types.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nimport type { IconProps } from '../Icon';\n\nexport type ButtonIconProps = ComponentProps<'button'> &\n ButtonIconPropsShared & {\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Required prop to provide an accessible label for the button\n */\n ariaLabel: string;\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonIcon component\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n };\n"]}
@@ -1,37 +1,15 @@
1
+ import type { ButtonIconPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { ButtonIconSize, ButtonIconVariant } from "../../types/index.cjs";
3
- import type { IconName, IconProps } from "../Icon/index.cjs";
4
- export type ButtonIconProps = ComponentProps<'button'> & {
5
- /**
6
- * Required prop to specify the icon to show
7
- */
8
- iconName: IconName;
9
- /**
10
- * Required prop to provide an accessible label for the button
11
- */
12
- ariaLabel: string;
3
+ import type { IconProps } from "../Icon/index.cjs";
4
+ export type ButtonIconProps = ComponentProps<'button'> & ButtonIconPropsShared & {
13
5
  /**
14
6
  * Optional prop to pass additional properties to the icon
15
7
  */
16
8
  iconProps?: Partial<IconProps>;
17
9
  /**
18
- * Optional prop that when true, disables the button
19
- *
20
- * @default false
21
- */
22
- isDisabled?: boolean;
23
- /**
24
- * Optional prop to control the visual variant of the button.
25
- *
26
- * @default ButtonIconVariant.Default
27
- */
28
- variant?: ButtonIconVariant;
29
- /**
30
- * Optional prop to control the size of the button
31
- *
32
- * @default ButtonIconSize.Md
10
+ * Required prop to provide an accessible label for the button
33
11
  */
34
- size?: ButtonIconSize;
12
+ ariaLabel: string;
35
13
  /**
36
14
  * Optional prop for additional CSS classes to be applied to the ButtonIcon component
37
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACvD;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.types.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,GACpD,qBAAqB,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1,37 +1,15 @@
1
+ import type { ButtonIconPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
3
- import type { IconName, IconProps } from "../Icon/index.mjs";
4
- export type ButtonIconProps = ComponentProps<'button'> & {
5
- /**
6
- * Required prop to specify the icon to show
7
- */
8
- iconName: IconName;
9
- /**
10
- * Required prop to provide an accessible label for the button
11
- */
12
- ariaLabel: string;
3
+ import type { IconProps } from "../Icon/index.mjs";
4
+ export type ButtonIconProps = ComponentProps<'button'> & ButtonIconPropsShared & {
13
5
  /**
14
6
  * Optional prop to pass additional properties to the icon
15
7
  */
16
8
  iconProps?: Partial<IconProps>;
17
9
  /**
18
- * Optional prop that when true, disables the button
19
- *
20
- * @default false
21
- */
22
- isDisabled?: boolean;
23
- /**
24
- * Optional prop to control the visual variant of the button.
25
- *
26
- * @default ButtonIconVariant.Default
27
- */
28
- variant?: ButtonIconVariant;
29
- /**
30
- * Optional prop to control the size of the button
31
- *
32
- * @default ButtonIconSize.Md
10
+ * Required prop to provide an accessible label for the button
33
11
  */
34
- size?: ButtonIconSize;
12
+ ariaLabel: string;
35
13
  /**
36
14
  * Optional prop for additional CSS classes to be applied to the ButtonIcon component
37
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IACvD;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"ButtonIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,GACpD,qBAAqB,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { ButtonIconSize, ButtonIconVariant } from '../../types';\nimport type { IconName, IconProps } from '../Icon';\n\nexport type ButtonIconProps = ComponentProps<'button'> & {\n /**\n * Required prop to specify the icon to show\n */\n iconName: IconName;\n /**\n * Required prop to provide an accessible label for the button\n */\n ariaLabel: string;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Optional prop that when true, disables the button\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop to control the visual variant of the button.\n *\n * @default ButtonIconVariant.Default\n */\n variant?: ButtonIconVariant;\n /**\n * Optional prop to control the size of the button\n *\n * @default ButtonIconSize.Md\n */\n size?: ButtonIconSize;\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonIcon component\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
1
+ {"version":3,"file":"ButtonIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nimport type { IconProps } from '../Icon';\n\nexport type ButtonIconProps = ComponentProps<'button'> &\n ButtonIconPropsShared & {\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Partial<IconProps>;\n /**\n * Required prop to provide an accessible label for the button\n */\n ariaLabel: string;\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonIcon component\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n };\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ButtonIcon = exports.ButtonIconVariant = exports.ButtonIconSize = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "ButtonIconSize", { enumerable: true, get: function () { return types_1.ButtonIconSize; } });
6
- Object.defineProperty(exports, "ButtonIconVariant", { enumerable: true, get: function () { return types_1.ButtonIconVariant; } });
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "ButtonIconSize", { enumerable: true, get: function () { return design_system_shared_1.ButtonIconSize; } });
6
+ Object.defineProperty(exports, "ButtonIconVariant", { enumerable: true, get: function () { return design_system_shared_1.ButtonIconVariant; } });
7
7
  var ButtonIcon_1 = require("./ButtonIcon.cjs");
8
8
  Object.defineProperty(exports, "ButtonIcon", { enumerable: true, get: function () { return ButtonIcon_1.ButtonIcon; } });
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":";;;AAAA,+CAAgE;AAAvD,uGAAA,cAAc,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AAC1C,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { ButtonIconSize, ButtonIconVariant } from '../../types';\nexport { ButtonIcon } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":";;;AAAA,gFAGiD;AAF/C,sHAAA,cAAc,OAAA;AACd,yHAAA,iBAAiB,OAAA;AAEnB,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export {\n ButtonIconSize,\n ButtonIconVariant,\n} from '@metamask-previews/design-system-shared';\nexport { ButtonIcon } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { ButtonIconSize, ButtonIconVariant } from "../../types/index.cjs";
1
+ export { ButtonIconSize, ButtonIconVariant, } from "@metamask-previews/design-system-shared";
2
2
  export { ButtonIcon } from "./ButtonIcon.cjs";
3
3
  export type { ButtonIconProps } from "./ButtonIcon.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,GAClB,gDAAgD;AACjD,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,4 +1,4 @@
1
- export { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
1
+ export { ButtonIconSize, ButtonIconVariant, } from "@metamask-previews/design-system-shared";
2
2
  export { ButtonIcon } from "./ButtonIcon.mjs";
3
3
  export type { ButtonIconProps } from "./ButtonIcon.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,GAClB,gDAAgD;AACjD,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -1,3 +1,3 @@
1
- export { ButtonIconSize, ButtonIconVariant } from "../../types/index.mjs";
1
+ export { ButtonIconSize, ButtonIconVariant } from "@metamask-previews/design-system-shared";
2
2
  export { ButtonIcon } from "./ButtonIcon.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,8BAAoB;AAChE,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { ButtonIconSize, ButtonIconVariant } from '../../types';\nexport { ButtonIcon } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ButtonIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EAClB,gDAAgD;AACjD,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export {\n ButtonIconSize,\n ButtonIconVariant,\n} from '@metamask-previews/design-system-shared';\nexport { ButtonIcon } from './ButtonIcon';\nexport type { ButtonIconProps } from './ButtonIcon.types';\n"]}
@@ -0,0 +1,43 @@
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.HeaderBase = void 0;
27
+ const react_1 = __importStar(require("react"));
28
+ const tw_merge_1 = require("../../utils/tw-merge.cjs");
29
+ const Box_1 = require("../Box/index.cjs");
30
+ exports.HeaderBase = (0, react_1.forwardRef)(({ startAccessory, endAccessory, className, children, childrenWrapperProps, startAccessoryWrapperProps, endAccessoryWrapperProps, ...props }, ref) => (react_1.default.createElement("div", { ref: ref, className: (0, tw_merge_1.twMerge)(
31
+ // Three-column grid keeps the title horizontally centered: side
32
+ // columns each take an equal share of the remaining space, the title
33
+ // sits in the auto-sized center column. No JS measurement needed.
34
+ 'grid grid-cols-[1fr_auto_1fr] items-center', className), ...props },
35
+ startAccessory && (react_1.default.createElement(Box_1.Box, { ...startAccessoryWrapperProps, className: (0, tw_merge_1.twMerge)('col-start-1 justify-self-start', startAccessoryWrapperProps?.className) }, startAccessory)),
36
+ children && (react_1.default.createElement(Box_1.Box, { ...childrenWrapperProps, className: (0, tw_merge_1.twMerge)(
37
+ // Always pin the title to column 2 so missing side accessories
38
+ // leave their empty `1fr` track in place and keep the title
39
+ // visually centered.
40
+ 'col-start-2 col-end-3', childrenWrapperProps?.className) }, children)),
41
+ endAccessory && (react_1.default.createElement(Box_1.Box, { ...endAccessoryWrapperProps, className: (0, tw_merge_1.twMerge)('col-start-3 justify-self-end', endAccessoryWrapperProps?.className) }, endAccessory)))));
42
+ exports.HeaderBase.displayName = 'HeaderBase';
43
+ //# sourceMappingURL=HeaderBase.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,uDAA+C;AAC/C,0CAA6B;AAIhB,QAAA,UAAU,GAAG,IAAA,kBAAU,EAClC,CACE,EACE,cAAc,EACd,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE,CAAC,CACH,uCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,kBAAO;IAChB,gEAAgE;IAChE,qEAAqE;IACrE,kEAAkE;IAClE,4CAA4C,EAC5C,SAAS,CACV,KACG,KAAK;IAER,cAAc,IAAI,CACjB,8BAAC,SAAG,OACE,0BAA0B,EAC9B,SAAS,EAAE,IAAA,kBAAO,EAChB,gCAAgC,EAChC,0BAA0B,EAAE,SAAS,CACtC,IAEA,cAAc,CACX,CACP;IACA,QAAQ,IAAI,CACX,8BAAC,SAAG,OACE,oBAAoB,EACxB,SAAS,EAAE,IAAA,kBAAO;QAChB,+DAA+D;QAC/D,4DAA4D;QAC5D,qBAAqB;QACrB,uBAAuB,EACvB,oBAAoB,EAAE,SAAS,CAChC,IAEA,QAAQ,CACL,CACP;IACA,YAAY,IAAI,CACf,8BAAC,SAAG,OACE,wBAAwB,EAC5B,SAAS,EAAE,IAAA,kBAAO,EAChB,8BAA8B,EAC9B,wBAAwB,EAAE,SAAS,CACpC,IAEA,YAAY,CACT,CACP,CACG,CACP,CACF,CAAC;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\n\nimport type { HeaderBaseProps } from './HeaderBase.types';\n\nexport const HeaderBase = forwardRef<HTMLDivElement, HeaderBaseProps>(\n (\n {\n startAccessory,\n endAccessory,\n className,\n children,\n childrenWrapperProps,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n ...props\n },\n ref,\n ) => (\n <div\n ref={ref}\n className={twMerge(\n // Three-column grid keeps the title horizontally centered: side\n // columns each take an equal share of the remaining space, the title\n // sits in the auto-sized center column. No JS measurement needed.\n 'grid grid-cols-[1fr_auto_1fr] items-center',\n className,\n )}\n {...props}\n >\n {startAccessory && (\n <Box\n {...startAccessoryWrapperProps}\n className={twMerge(\n 'col-start-1 justify-self-start',\n startAccessoryWrapperProps?.className,\n )}\n >\n {startAccessory}\n </Box>\n )}\n {children && (\n <Box\n {...childrenWrapperProps}\n className={twMerge(\n // Always pin the title to column 2 so missing side accessories\n // leave their empty `1fr` track in place and keep the title\n // visually centered.\n 'col-start-2 col-end-3',\n childrenWrapperProps?.className,\n )}\n >\n {children}\n </Box>\n )}\n {endAccessory && (\n <Box\n {...endAccessoryWrapperProps}\n className={twMerge(\n 'col-start-3 justify-self-end',\n endAccessoryWrapperProps?.className,\n )}\n >\n {endAccessory}\n </Box>\n )}\n </div>\n ),\n);\n\nHeaderBase.displayName = 'HeaderBase';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderBaseProps } from "./HeaderBase.types.cjs";
3
+ export declare const HeaderBase: React.ForwardRefExoticComponent<Omit<HeaderBaseProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=HeaderBase.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAK1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,qGA+DtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { HeaderBaseProps } from "./HeaderBase.types.mjs";
3
+ export declare const HeaderBase: React.ForwardRefExoticComponent<Omit<HeaderBaseProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=HeaderBase.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAK1C,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D,eAAO,MAAM,UAAU,qGA+DtB,CAAC"}
@@ -0,0 +1,24 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React, { forwardRef } from "react";
8
+ const React = $importDefault($React);
9
+ import { twMerge } from "../../utils/tw-merge.mjs";
10
+ import { Box } from "../Box/index.mjs";
11
+ export const HeaderBase = forwardRef(({ startAccessory, endAccessory, className, children, childrenWrapperProps, startAccessoryWrapperProps, endAccessoryWrapperProps, ...props }, ref) => (React.createElement("div", { ref: ref, className: twMerge(
12
+ // Three-column grid keeps the title horizontally centered: side
13
+ // columns each take an equal share of the remaining space, the title
14
+ // sits in the auto-sized center column. No JS measurement needed.
15
+ 'grid grid-cols-[1fr_auto_1fr] items-center', className), ...props },
16
+ startAccessory && (React.createElement(Box, { ...startAccessoryWrapperProps, className: twMerge('col-start-1 justify-self-start', startAccessoryWrapperProps?.className) }, startAccessory)),
17
+ children && (React.createElement(Box, { ...childrenWrapperProps, className: twMerge(
18
+ // Always pin the title to column 2 so missing side accessories
19
+ // leave their empty `1fr` track in place and keep the title
20
+ // visually centered.
21
+ 'col-start-2 col-end-3', childrenWrapperProps?.className) }, children)),
22
+ endAccessory && (React.createElement(Box, { ...endAccessoryWrapperProps, className: twMerge('col-start-3 justify-self-end', endAccessoryWrapperProps?.className) }, endAccessory)))));
23
+ HeaderBase.displayName = 'HeaderBase';
24
+ //# sourceMappingURL=HeaderBase.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.mjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAI7B,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,cAAc,EACd,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE,CAAC,CACH,6BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO;IAChB,gEAAgE;IAChE,qEAAqE;IACrE,kEAAkE;IAClE,4CAA4C,EAC5C,SAAS,CACV,KACG,KAAK;IAER,cAAc,IAAI,CACjB,oBAAC,GAAG,OACE,0BAA0B,EAC9B,SAAS,EAAE,OAAO,CAChB,gCAAgC,EAChC,0BAA0B,EAAE,SAAS,CACtC,IAEA,cAAc,CACX,CACP;IACA,QAAQ,IAAI,CACX,oBAAC,GAAG,OACE,oBAAoB,EACxB,SAAS,EAAE,OAAO;QAChB,+DAA+D;QAC/D,4DAA4D;QAC5D,qBAAqB;QACrB,uBAAuB,EACvB,oBAAoB,EAAE,SAAS,CAChC,IAEA,QAAQ,CACL,CACP;IACA,YAAY,IAAI,CACf,oBAAC,GAAG,OACE,wBAAwB,EAC5B,SAAS,EAAE,OAAO,CAChB,8BAA8B,EAC9B,wBAAwB,EAAE,SAAS,CACpC,IAEA,YAAY,CACT,CACP,CACG,CACP,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\n\nimport type { HeaderBaseProps } from './HeaderBase.types';\n\nexport const HeaderBase = forwardRef<HTMLDivElement, HeaderBaseProps>(\n (\n {\n startAccessory,\n endAccessory,\n className,\n children,\n childrenWrapperProps,\n startAccessoryWrapperProps,\n endAccessoryWrapperProps,\n ...props\n },\n ref,\n ) => (\n <div\n ref={ref}\n className={twMerge(\n // Three-column grid keeps the title horizontally centered: side\n // columns each take an equal share of the remaining space, the title\n // sits in the auto-sized center column. No JS measurement needed.\n 'grid grid-cols-[1fr_auto_1fr] items-center',\n className,\n )}\n {...props}\n >\n {startAccessory && (\n <Box\n {...startAccessoryWrapperProps}\n className={twMerge(\n 'col-start-1 justify-self-start',\n startAccessoryWrapperProps?.className,\n )}\n >\n {startAccessory}\n </Box>\n )}\n {children && (\n <Box\n {...childrenWrapperProps}\n className={twMerge(\n // Always pin the title to column 2 so missing side accessories\n // leave their empty `1fr` track in place and keep the title\n // visually centered.\n 'col-start-2 col-end-3',\n childrenWrapperProps?.className,\n )}\n >\n {children}\n </Box>\n )}\n {endAccessory && (\n <Box\n {...endAccessoryWrapperProps}\n className={twMerge(\n 'col-start-3 justify-self-end',\n endAccessoryWrapperProps?.className,\n )}\n >\n {endAccessory}\n </Box>\n )}\n </div>\n ),\n);\n\nHeaderBase.displayName = 'HeaderBase';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HeaderBase.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.types.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport type { BoxProps } from '../Box';\n\n/**\n * Box prop bag for the three internal slot wrappers (start accessory, title,\n * end accessory). Mirrors the legacy `BoxProps<'div'>` typing but is bound to\n * the MMDS `BoxProps` shape and carries an explicit `data-*` index signature\n * so consumers can pass test ids and other dataset attributes through\n * `Partial`/`Omit` indirection.\n */\ntype SlotWrapperProps = Omit<BoxProps, 'children' | 'asChild'> & {\n [key: `data-${string}`]: string | undefined;\n};\n\nexport type HeaderBaseProps = Omit<ComponentProps<'div'>, 'children'> & {\n /**\n * Title content rendered in the centered column. The title stays\n * horizontally centered regardless of the side accessories' widths\n * (CSS Grid handles the equal-sidebar layout — no JS measurement needed).\n */\n children?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `children`. Use this to add\n * `data-testid`, override layout, or apply Tailwind utilities via\n * `className`.\n */\n childrenWrapperProps?: SlotWrapperProps;\n /**\n * Content rendered in the start (left in LTR) column. Typically a back\n * `ButtonIcon` or similar leading affordance.\n */\n startAccessory?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `startAccessory`.\n */\n startAccessoryWrapperProps?: SlotWrapperProps;\n /**\n * Content rendered in the end (right in LTR) column. Typically a close\n * `ButtonIcon` or similar trailing affordance.\n */\n endAccessory?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `endAccessory`.\n */\n endAccessoryWrapperProps?: SlotWrapperProps;\n /**\n * Optional prop for additional CSS classes to be applied to the HeaderBase\n * root. Merged with the component's defaults via `twMerge`.\n */\n className?: string;\n};\n"]}
@@ -0,0 +1,51 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { BoxProps } from "../Box/index.cjs";
3
+ /**
4
+ * Box prop bag for the three internal slot wrappers (start accessory, title,
5
+ * end accessory). Mirrors the legacy `BoxProps<'div'>` typing but is bound to
6
+ * the MMDS `BoxProps` shape and carries an explicit `data-*` index signature
7
+ * so consumers can pass test ids and other dataset attributes through
8
+ * `Partial`/`Omit` indirection.
9
+ */
10
+ type SlotWrapperProps = Omit<BoxProps, 'children' | 'asChild'> & {
11
+ [key: `data-${string}`]: string | undefined;
12
+ };
13
+ export type HeaderBaseProps = Omit<ComponentProps<'div'>, 'children'> & {
14
+ /**
15
+ * Title content rendered in the centered column. The title stays
16
+ * horizontally centered regardless of the side accessories' widths
17
+ * (CSS Grid handles the equal-sidebar layout — no JS measurement needed).
18
+ */
19
+ children?: ReactNode;
20
+ /**
21
+ * Props forwarded to the `Box` wrapping `children`. Use this to add
22
+ * `data-testid`, override layout, or apply Tailwind utilities via
23
+ * `className`.
24
+ */
25
+ childrenWrapperProps?: SlotWrapperProps;
26
+ /**
27
+ * Content rendered in the start (left in LTR) column. Typically a back
28
+ * `ButtonIcon` or similar leading affordance.
29
+ */
30
+ startAccessory?: ReactNode;
31
+ /**
32
+ * Props forwarded to the `Box` wrapping `startAccessory`.
33
+ */
34
+ startAccessoryWrapperProps?: SlotWrapperProps;
35
+ /**
36
+ * Content rendered in the end (right in LTR) column. Typically a close
37
+ * `ButtonIcon` or similar trailing affordance.
38
+ */
39
+ endAccessory?: ReactNode;
40
+ /**
41
+ * Props forwarded to the `Box` wrapping `endAccessory`.
42
+ */
43
+ endAccessoryWrapperProps?: SlotWrapperProps;
44
+ /**
45
+ * Optional prop for additional CSS classes to be applied to the HeaderBase
46
+ * root. Merged with the component's defaults via `twMerge`.
47
+ */
48
+ className?: string;
49
+ };
50
+ export {};
51
+ //# sourceMappingURL=HeaderBase.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.types.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc;AAEvD,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAe;AAEvC;;;;;;GAMG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC/D,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACtE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,0BAA0B,CAAC,EAAE,gBAAgB,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,gBAAgB,CAAC;IAC5C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { BoxProps } from "../Box/index.mjs";
3
+ /**
4
+ * Box prop bag for the three internal slot wrappers (start accessory, title,
5
+ * end accessory). Mirrors the legacy `BoxProps<'div'>` typing but is bound to
6
+ * the MMDS `BoxProps` shape and carries an explicit `data-*` index signature
7
+ * so consumers can pass test ids and other dataset attributes through
8
+ * `Partial`/`Omit` indirection.
9
+ */
10
+ type SlotWrapperProps = Omit<BoxProps, 'children' | 'asChild'> & {
11
+ [key: `data-${string}`]: string | undefined;
12
+ };
13
+ export type HeaderBaseProps = Omit<ComponentProps<'div'>, 'children'> & {
14
+ /**
15
+ * Title content rendered in the centered column. The title stays
16
+ * horizontally centered regardless of the side accessories' widths
17
+ * (CSS Grid handles the equal-sidebar layout — no JS measurement needed).
18
+ */
19
+ children?: ReactNode;
20
+ /**
21
+ * Props forwarded to the `Box` wrapping `children`. Use this to add
22
+ * `data-testid`, override layout, or apply Tailwind utilities via
23
+ * `className`.
24
+ */
25
+ childrenWrapperProps?: SlotWrapperProps;
26
+ /**
27
+ * Content rendered in the start (left in LTR) column. Typically a back
28
+ * `ButtonIcon` or similar leading affordance.
29
+ */
30
+ startAccessory?: ReactNode;
31
+ /**
32
+ * Props forwarded to the `Box` wrapping `startAccessory`.
33
+ */
34
+ startAccessoryWrapperProps?: SlotWrapperProps;
35
+ /**
36
+ * Content rendered in the end (right in LTR) column. Typically a close
37
+ * `ButtonIcon` or similar trailing affordance.
38
+ */
39
+ endAccessory?: ReactNode;
40
+ /**
41
+ * Props forwarded to the `Box` wrapping `endAccessory`.
42
+ */
43
+ endAccessoryWrapperProps?: SlotWrapperProps;
44
+ /**
45
+ * Optional prop for additional CSS classes to be applied to the HeaderBase
46
+ * root. Merged with the component's defaults via `twMerge`.
47
+ */
48
+ className?: string;
49
+ };
50
+ export {};
51
+ //# sourceMappingURL=HeaderBase.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.types.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc;AAEvD,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAe;AAEvC;;;;;;GAMG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC/D,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACtE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,0BAA0B,CAAC,EAAE,gBAAgB,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,wBAAwB,CAAC,EAAE,gBAAgB,CAAC;IAC5C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=HeaderBase.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderBase.types.mjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/HeaderBase.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport type { BoxProps } from '../Box';\n\n/**\n * Box prop bag for the three internal slot wrappers (start accessory, title,\n * end accessory). Mirrors the legacy `BoxProps<'div'>` typing but is bound to\n * the MMDS `BoxProps` shape and carries an explicit `data-*` index signature\n * so consumers can pass test ids and other dataset attributes through\n * `Partial`/`Omit` indirection.\n */\ntype SlotWrapperProps = Omit<BoxProps, 'children' | 'asChild'> & {\n [key: `data-${string}`]: string | undefined;\n};\n\nexport type HeaderBaseProps = Omit<ComponentProps<'div'>, 'children'> & {\n /**\n * Title content rendered in the centered column. The title stays\n * horizontally centered regardless of the side accessories' widths\n * (CSS Grid handles the equal-sidebar layout — no JS measurement needed).\n */\n children?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `children`. Use this to add\n * `data-testid`, override layout, or apply Tailwind utilities via\n * `className`.\n */\n childrenWrapperProps?: SlotWrapperProps;\n /**\n * Content rendered in the start (left in LTR) column. Typically a back\n * `ButtonIcon` or similar leading affordance.\n */\n startAccessory?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `startAccessory`.\n */\n startAccessoryWrapperProps?: SlotWrapperProps;\n /**\n * Content rendered in the end (right in LTR) column. Typically a close\n * `ButtonIcon` or similar trailing affordance.\n */\n endAccessory?: ReactNode;\n /**\n * Props forwarded to the `Box` wrapping `endAccessory`.\n */\n endAccessoryWrapperProps?: SlotWrapperProps;\n /**\n * Optional prop for additional CSS classes to be applied to the HeaderBase\n * root. Merged with the component's defaults via `twMerge`.\n */\n className?: string;\n};\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderBase = void 0;
4
+ var HeaderBase_1 = require("./HeaderBase.cjs");
5
+ Object.defineProperty(exports, "HeaderBase", { enumerable: true, get: function () { return HeaderBase_1.HeaderBase; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA","sourcesContent":["export { HeaderBase } from './HeaderBase';\nexport type { HeaderBaseProps } from './HeaderBase.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { HeaderBase } from "./HeaderBase.cjs";
2
+ export type { HeaderBaseProps } from "./HeaderBase.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/HeaderBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,3 @@
1
+ export { HeaderBase } from "./HeaderBase.mjs";
2
+ export type { HeaderBaseProps } from "./HeaderBase.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/HeaderBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B"}
@@ -0,0 +1,2 @@
1
+ export { HeaderBase } from "./HeaderBase.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/HeaderBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB","sourcesContent":["export { HeaderBase } from './HeaderBase';\nexport type { HeaderBaseProps } from './HeaderBase.types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SVGProps, ComponentPropsWithoutRef } from 'react';\n\nimport type { IconName, IconSize, IconColor } from '../../types';\n\n// Use ComponentPropsWithoutRef to get SVG element props without relying on global SVGElement\ntype SVGElementProps = ComponentPropsWithoutRef<'svg'>;\n\nexport type IconProps = SVGProps<SVGElementProps> & {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Additional CSS classes to be added to the component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n};\n"]}
1
+ {"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { IconPropsShared } from '@metamask-previews/design-system-shared';\nimport type { SVGProps, ComponentPropsWithoutRef } from 'react';\n\n// Use ComponentPropsWithoutRef to get SVG element props without relying on global SVGElement\ntype SVGElementProps = ComponentPropsWithoutRef<'svg'>;\n\nexport type IconProps = SVGProps<SVGElementProps> &\n IconPropsShared & {\n /**\n * Additional CSS classes to be added to the component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n };\n"]}
@@ -1,24 +1,7 @@
1
+ import type { IconPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { SVGProps, ComponentPropsWithoutRef } from "react";
2
- import type { IconName, IconSize, IconColor } from "../../types/index.cjs";
3
3
  type SVGElementProps = ComponentPropsWithoutRef<'svg'>;
4
- export type IconProps = SVGProps<SVGElementProps> & {
5
- /**
6
- * Required prop to specify which icon to render from the icon set
7
- */
8
- name: IconName;
9
- /**
10
- * Optional prop to control the size of the icon
11
- * Different sizes map to specific pixel dimensions
12
- *
13
- * @default IconSize.Md
14
- */
15
- size?: IconSize;
16
- /**
17
- * Optional prop that sets the color of the icon using predefined theme colors
18
- *
19
- * @default IconColor.IconDefault
20
- */
21
- color?: IconColor;
4
+ export type IconProps = SVGProps<SVGElementProps> & IconPropsShared & {
22
5
  /**
23
6
  * Additional CSS classes to be added to the component.
24
7
  * These classes will be merged with the component's default classes using twMerge.
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,cAAc;AAEhE,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,8BAAoB;AAGjE,KAAK,eAAe,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,GAAG;IAClD;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,cAAc;AAGhE,KAAK,eAAe,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,GAC/C,eAAe,GAAG;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}