@metamask-previews/design-system-react 0.17.0-preview.ba86146 → 0.20.0-preview.f515a62

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 (292) hide show
  1. package/CHANGELOG.md +56 -11
  2. package/dist/components/AvatarIcon/AvatarIcon.cjs +2 -2
  3. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  4. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +16 -16
  5. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  6. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts +1 -1
  7. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts +1 -1
  9. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +1 -1
  11. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  12. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  13. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  14. package/dist/components/AvatarIcon/AvatarIcon.mjs +1 -1
  15. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  16. package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
  17. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +3 -19
  18. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
  19. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +3 -19
  20. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
  21. package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
  22. package/dist/components/AvatarIcon/index.cjs +4 -4
  23. package/dist/components/AvatarIcon/index.cjs.map +1 -1
  24. package/dist/components/AvatarIcon/index.d.cts +1 -1
  25. package/dist/components/AvatarIcon/index.d.cts.map +1 -1
  26. package/dist/components/AvatarIcon/index.d.mts +1 -1
  27. package/dist/components/AvatarIcon/index.d.mts.map +1 -1
  28. package/dist/components/AvatarIcon/index.mjs +1 -1
  29. package/dist/components/AvatarIcon/index.mjs.map +1 -1
  30. package/dist/components/BadgeIcon/BadgeIcon.cjs +2 -1
  31. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  32. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  33. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  34. package/dist/components/BadgeIcon/BadgeIcon.mjs +2 -1
  35. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  36. package/dist/components/BadgeIcon/BadgeIcon.types.cjs.map +1 -1
  37. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +5 -7
  38. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  39. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +5 -7
  40. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  41. package/dist/components/BadgeIcon/BadgeIcon.types.mjs.map +1 -1
  42. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  43. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  44. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  45. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  46. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  47. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  48. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  49. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  50. package/dist/components/BannerAlert/BannerAlert.d.cts +10 -10
  51. package/dist/components/BannerAlert/BannerAlert.d.mts +10 -10
  52. package/dist/components/BannerBase/BannerBase.cjs +3 -4
  53. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  54. package/dist/components/BannerBase/BannerBase.d.cts +7 -7
  55. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  56. package/dist/components/BannerBase/BannerBase.d.mts +7 -7
  57. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  58. package/dist/components/BannerBase/BannerBase.mjs +1 -2
  59. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  60. package/dist/components/Box/Box.constants.cjs.map +1 -1
  61. package/dist/components/Box/Box.constants.d.cts +1 -1
  62. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  63. package/dist/components/Box/Box.constants.d.mts +1 -1
  64. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  65. package/dist/components/Box/Box.constants.mjs.map +1 -1
  66. package/dist/components/Box/Box.types.cjs.map +1 -1
  67. package/dist/components/Box/Box.types.d.cts +2 -106
  68. package/dist/components/Box/Box.types.d.cts.map +1 -1
  69. package/dist/components/Box/Box.types.d.mts +2 -106
  70. package/dist/components/Box/Box.types.d.mts.map +1 -1
  71. package/dist/components/Box/Box.types.mjs.map +1 -1
  72. package/dist/components/Box/index.cjs +7 -7
  73. package/dist/components/Box/index.cjs.map +1 -1
  74. package/dist/components/Box/index.d.cts +1 -2
  75. package/dist/components/Box/index.d.cts.map +1 -1
  76. package/dist/components/Box/index.d.mts +1 -2
  77. package/dist/components/Box/index.d.mts.map +1 -1
  78. package/dist/components/Box/index.mjs +1 -1
  79. package/dist/components/Box/index.mjs.map +1 -1
  80. package/dist/components/Button/Button.cjs +5 -5
  81. package/dist/components/Button/Button.cjs.map +1 -1
  82. package/dist/components/Button/Button.d.cts.map +1 -1
  83. package/dist/components/Button/Button.d.mts.map +1 -1
  84. package/dist/components/Button/Button.mjs +1 -1
  85. package/dist/components/Button/Button.mjs.map +1 -1
  86. package/dist/components/Button/Button.types.cjs.map +1 -1
  87. package/dist/components/Button/Button.types.d.cts +5 -12
  88. package/dist/components/Button/Button.types.d.cts.map +1 -1
  89. package/dist/components/Button/Button.types.d.mts +5 -12
  90. package/dist/components/Button/Button.types.d.mts.map +1 -1
  91. package/dist/components/Button/Button.types.mjs.map +1 -1
  92. package/dist/components/Button/index.cjs +3 -3
  93. package/dist/components/Button/index.cjs.map +1 -1
  94. package/dist/components/Button/index.d.cts +1 -1
  95. package/dist/components/Button/index.d.cts.map +1 -1
  96. package/dist/components/Button/index.d.mts +1 -1
  97. package/dist/components/Button/index.d.mts.map +1 -1
  98. package/dist/components/Button/index.mjs +1 -1
  99. package/dist/components/Button/index.mjs.map +1 -1
  100. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +2 -0
  101. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
  102. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
  103. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
  104. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs +2 -0
  105. package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
  106. package/dist/components/Button/variants/ButtonPrimary/index.cjs +1 -3
  107. package/dist/components/Button/variants/ButtonPrimary/index.cjs.map +1 -1
  108. package/dist/components/Button/variants/ButtonPrimary/index.d.cts +0 -1
  109. package/dist/components/Button/variants/ButtonPrimary/index.d.cts.map +1 -1
  110. package/dist/components/Button/variants/ButtonPrimary/index.d.mts +0 -1
  111. package/dist/components/Button/variants/ButtonPrimary/index.d.mts.map +1 -1
  112. package/dist/components/Button/variants/ButtonPrimary/index.mjs +0 -1
  113. package/dist/components/Button/variants/ButtonPrimary/index.mjs.map +1 -1
  114. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +2 -0
  115. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
  116. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
  117. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
  118. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs +2 -0
  119. package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
  120. package/dist/components/Button/variants/ButtonSecondary/index.cjs +1 -3
  121. package/dist/components/Button/variants/ButtonSecondary/index.cjs.map +1 -1
  122. package/dist/components/Button/variants/ButtonSecondary/index.d.cts +0 -1
  123. package/dist/components/Button/variants/ButtonSecondary/index.d.cts.map +1 -1
  124. package/dist/components/Button/variants/ButtonSecondary/index.d.mts +0 -1
  125. package/dist/components/Button/variants/ButtonSecondary/index.d.mts.map +1 -1
  126. package/dist/components/Button/variants/ButtonSecondary/index.mjs +0 -1
  127. package/dist/components/Button/variants/ButtonSecondary/index.mjs.map +1 -1
  128. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +3 -1
  129. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  130. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  131. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  132. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +3 -1
  133. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  134. package/dist/components/Button/variants/ButtonTertiary/index.cjs +1 -3
  135. package/dist/components/Button/variants/ButtonTertiary/index.cjs.map +1 -1
  136. package/dist/components/Button/variants/ButtonTertiary/index.d.cts +0 -1
  137. package/dist/components/Button/variants/ButtonTertiary/index.d.cts.map +1 -1
  138. package/dist/components/Button/variants/ButtonTertiary/index.d.mts +0 -1
  139. package/dist/components/Button/variants/ButtonTertiary/index.d.mts.map +1 -1
  140. package/dist/components/Button/variants/ButtonTertiary/index.mjs +0 -1
  141. package/dist/components/Button/variants/ButtonTertiary/index.mjs.map +1 -1
  142. package/dist/components/ButtonBase/ButtonBase.cjs +3 -3
  143. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  144. package/dist/components/ButtonBase/ButtonBase.constants.cjs +4 -4
  145. package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
  146. package/dist/components/ButtonBase/ButtonBase.constants.d.cts +1 -1
  147. package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
  148. package/dist/components/ButtonBase/ButtonBase.constants.d.mts +1 -1
  149. package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
  150. package/dist/components/ButtonBase/ButtonBase.constants.mjs +1 -1
  151. package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
  152. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  153. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  154. package/dist/components/ButtonBase/ButtonBase.mjs +2 -2
  155. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  156. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  157. package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -35
  158. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  159. package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -35
  160. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  161. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  162. package/dist/components/ButtonBase/index.cjs +2 -2
  163. package/dist/components/ButtonBase/index.cjs.map +1 -1
  164. package/dist/components/ButtonBase/index.d.cts +1 -1
  165. package/dist/components/ButtonBase/index.d.cts.map +1 -1
  166. package/dist/components/ButtonBase/index.d.mts +1 -1
  167. package/dist/components/ButtonBase/index.d.mts.map +1 -1
  168. package/dist/components/ButtonBase/index.mjs +1 -1
  169. package/dist/components/ButtonBase/index.mjs.map +1 -1
  170. package/dist/components/ButtonHero/index.cjs +2 -2
  171. package/dist/components/ButtonHero/index.cjs.map +1 -1
  172. package/dist/components/ButtonHero/index.d.cts +1 -1
  173. package/dist/components/ButtonHero/index.d.cts.map +1 -1
  174. package/dist/components/ButtonHero/index.d.mts +1 -1
  175. package/dist/components/ButtonHero/index.d.mts.map +1 -1
  176. package/dist/components/ButtonHero/index.mjs +1 -1
  177. package/dist/components/ButtonHero/index.mjs.map +1 -1
  178. package/dist/components/ButtonIcon/ButtonIcon.cjs +5 -5
  179. package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
  180. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +7 -8
  181. package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
  182. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +3 -4
  183. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  184. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +3 -4
  185. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  186. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +1 -2
  187. package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.map +1 -1
  188. package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
  189. package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
  190. package/dist/components/ButtonIcon/ButtonIcon.mjs +1 -1
  191. package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
  192. package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
  193. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +5 -27
  194. package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
  195. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +5 -27
  196. package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
  197. package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
  198. package/dist/components/ButtonIcon/index.cjs +3 -3
  199. package/dist/components/ButtonIcon/index.cjs.map +1 -1
  200. package/dist/components/ButtonIcon/index.d.cts +1 -1
  201. package/dist/components/ButtonIcon/index.d.cts.map +1 -1
  202. package/dist/components/ButtonIcon/index.d.mts +1 -1
  203. package/dist/components/ButtonIcon/index.d.mts.map +1 -1
  204. package/dist/components/ButtonIcon/index.mjs +1 -1
  205. package/dist/components/ButtonIcon/index.mjs.map +1 -1
  206. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  207. package/dist/components/Icon/Icon.types.d.cts +2 -19
  208. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  209. package/dist/components/Icon/Icon.types.d.mts +2 -19
  210. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  211. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  212. package/dist/components/Icon/icons/Telegram.cjs +32 -0
  213. package/dist/components/Icon/icons/Telegram.cjs.map +1 -0
  214. package/dist/components/Icon/icons/Telegram.d.cts +4 -0
  215. package/dist/components/Icon/icons/Telegram.d.cts.map +1 -0
  216. package/dist/components/Icon/icons/Telegram.d.mts +4 -0
  217. package/dist/components/Icon/icons/Telegram.d.mts.map +1 -0
  218. package/dist/components/Icon/icons/Telegram.mjs +7 -0
  219. package/dist/components/Icon/icons/Telegram.mjs.map +1 -0
  220. package/dist/components/Icon/icons/index.cjs +78 -76
  221. package/dist/components/Icon/icons/index.cjs.map +1 -1
  222. package/dist/components/Icon/icons/index.d.cts +39 -38
  223. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  224. package/dist/components/Icon/icons/index.d.mts +39 -38
  225. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  226. package/dist/components/Icon/icons/index.mjs +78 -76
  227. package/dist/components/Icon/icons/index.mjs.map +1 -1
  228. package/dist/components/ModalBody/ModalBody.cjs +32 -0
  229. package/dist/components/ModalBody/ModalBody.cjs.map +1 -0
  230. package/dist/components/ModalBody/ModalBody.d.cts +4 -0
  231. package/dist/components/ModalBody/ModalBody.d.cts.map +1 -0
  232. package/dist/components/ModalBody/ModalBody.d.mts +4 -0
  233. package/dist/components/ModalBody/ModalBody.d.mts.map +1 -0
  234. package/dist/components/ModalBody/ModalBody.mjs +13 -0
  235. package/dist/components/ModalBody/ModalBody.mjs.map +1 -0
  236. package/dist/components/ModalBody/ModalBody.types.cjs +3 -0
  237. package/dist/components/ModalBody/ModalBody.types.cjs.map +1 -0
  238. package/dist/components/ModalBody/ModalBody.types.d.cts +13 -0
  239. package/dist/components/ModalBody/ModalBody.types.d.cts.map +1 -0
  240. package/dist/components/ModalBody/ModalBody.types.d.mts +13 -0
  241. package/dist/components/ModalBody/ModalBody.types.d.mts.map +1 -0
  242. package/dist/components/ModalBody/ModalBody.types.mjs +2 -0
  243. package/dist/components/ModalBody/ModalBody.types.mjs.map +1 -0
  244. package/dist/components/ModalBody/index.cjs +6 -0
  245. package/dist/components/ModalBody/index.cjs.map +1 -0
  246. package/dist/components/ModalBody/index.d.cts +3 -0
  247. package/dist/components/ModalBody/index.d.cts.map +1 -0
  248. package/dist/components/ModalBody/index.d.mts +3 -0
  249. package/dist/components/ModalBody/index.d.mts.map +1 -0
  250. package/dist/components/ModalBody/index.mjs +2 -0
  251. package/dist/components/ModalBody/index.mjs.map +1 -0
  252. package/dist/components/ModalOverlay/ModalOverlay.cjs +32 -0
  253. package/dist/components/ModalOverlay/ModalOverlay.cjs.map +1 -0
  254. package/dist/components/ModalOverlay/ModalOverlay.d.cts +4 -0
  255. package/dist/components/ModalOverlay/ModalOverlay.d.cts.map +1 -0
  256. package/dist/components/ModalOverlay/ModalOverlay.d.mts +4 -0
  257. package/dist/components/ModalOverlay/ModalOverlay.d.mts.map +1 -0
  258. package/dist/components/ModalOverlay/ModalOverlay.mjs +13 -0
  259. package/dist/components/ModalOverlay/ModalOverlay.mjs.map +1 -0
  260. package/dist/components/ModalOverlay/ModalOverlay.types.cjs +3 -0
  261. package/dist/components/ModalOverlay/ModalOverlay.types.cjs.map +1 -0
  262. package/dist/components/ModalOverlay/ModalOverlay.types.d.cts +9 -0
  263. package/dist/components/ModalOverlay/ModalOverlay.types.d.cts.map +1 -0
  264. package/dist/components/ModalOverlay/ModalOverlay.types.d.mts +9 -0
  265. package/dist/components/ModalOverlay/ModalOverlay.types.d.mts.map +1 -0
  266. package/dist/components/ModalOverlay/ModalOverlay.types.mjs +2 -0
  267. package/dist/components/ModalOverlay/ModalOverlay.types.mjs.map +1 -0
  268. package/dist/components/ModalOverlay/index.cjs +6 -0
  269. package/dist/components/ModalOverlay/index.cjs.map +1 -0
  270. package/dist/components/ModalOverlay/index.d.cts +3 -0
  271. package/dist/components/ModalOverlay/index.d.cts.map +1 -0
  272. package/dist/components/ModalOverlay/index.d.mts +3 -0
  273. package/dist/components/ModalOverlay/index.d.mts.map +1 -0
  274. package/dist/components/ModalOverlay/index.mjs +2 -0
  275. package/dist/components/ModalOverlay/index.mjs.map +1 -0
  276. package/dist/components/index.cjs +5 -1
  277. package/dist/components/index.cjs.map +1 -1
  278. package/dist/components/index.d.cts +5 -1
  279. package/dist/components/index.d.cts.map +1 -1
  280. package/dist/components/index.d.mts +5 -1
  281. package/dist/components/index.d.mts.map +1 -1
  282. package/dist/components/index.mjs +2 -0
  283. package/dist/components/index.mjs.map +1 -1
  284. package/dist/types/index.cjs +8 -593
  285. package/dist/types/index.cjs.map +1 -1
  286. package/dist/types/index.d.cts +4 -587
  287. package/dist/types/index.d.cts.map +1 -1
  288. package/dist/types/index.d.mts +4 -587
  289. package/dist/types/index.d.mts.map +1 -1
  290. package/dist/types/index.mjs +4 -596
  291. package/dist/types/index.mjs.map +1 -1
  292. package/package.json +6 -9
@@ -1 +1 @@
1
- {"version":3,"file":"Box.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAE9D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAczD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAchE,CAAC;AAEF,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T,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;CACd,CAAC","sourcesContent":["import type { BoxSpacing, BoxBorderWidth } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string> = {\n 0: 'm-0',\n 1: 'm-1',\n 2: 'm-2',\n 3: 'm-3',\n 4: 'm-4',\n 5: 'm-5',\n 6: 'm-6',\n 7: 'm-7',\n 8: 'm-8',\n 9: 'm-9',\n 10: 'm-10',\n 11: 'm-11',\n 12: 'm-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string> = {\n 0: 'mt-0',\n 1: 'mt-1',\n 2: 'mt-2',\n 3: 'mt-3',\n 4: 'mt-4',\n 5: 'mt-5',\n 6: 'mt-6',\n 7: 'mt-7',\n 8: 'mt-8',\n 9: 'mt-9',\n 10: 'mt-10',\n 11: 'mt-11',\n 12: 'mt-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string> = {\n 0: 'mr-0',\n 1: 'mr-1',\n 2: 'mr-2',\n 3: 'mr-3',\n 4: 'mr-4',\n 5: 'mr-5',\n 6: 'mr-6',\n 7: 'mr-7',\n 8: 'mr-8',\n 9: 'mr-9',\n 10: 'mr-10',\n 11: 'mr-11',\n 12: 'mr-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'mb-0',\n 1: 'mb-1',\n 2: 'mb-2',\n 3: 'mb-3',\n 4: 'mb-4',\n 5: 'mb-5',\n 6: 'mb-6',\n 7: 'mb-7',\n 8: 'mb-8',\n 9: 'mb-9',\n 10: 'mb-10',\n 11: 'mb-11',\n 12: 'mb-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string> = {\n 0: 'ml-0',\n 1: 'ml-1',\n 2: 'ml-2',\n 3: 'ml-3',\n 4: 'ml-4',\n 5: 'ml-5',\n 6: 'ml-6',\n 7: 'ml-7',\n 8: 'ml-8',\n 9: 'ml-9',\n 10: 'ml-10',\n 11: 'ml-11',\n 12: 'ml-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'mx-0',\n 1: 'mx-1',\n 2: 'mx-2',\n 3: 'mx-3',\n 4: 'mx-4',\n 5: 'mx-5',\n 6: 'mx-6',\n 7: 'mx-7',\n 8: 'mx-8',\n 9: 'mx-9',\n 10: 'mx-10',\n 11: 'mx-11',\n 12: 'mx-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'my-0',\n 1: 'my-1',\n 2: 'my-2',\n 3: 'my-3',\n 4: 'my-4',\n 5: 'my-5',\n 6: 'my-6',\n 7: 'my-7',\n 8: 'my-8',\n 9: 'my-9',\n 10: 'my-10',\n 11: 'my-11',\n 12: 'my-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string> = {\n 0: 'p-0',\n 1: 'p-1',\n 2: 'p-2',\n 3: 'p-3',\n 4: 'p-4',\n 5: 'p-5',\n 6: 'p-6',\n 7: 'p-7',\n 8: 'p-8',\n 9: 'p-9',\n 10: 'p-10',\n 11: 'p-11',\n 12: 'p-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string> = {\n 0: 'pt-0',\n 1: 'pt-1',\n 2: 'pt-2',\n 3: 'pt-3',\n 4: 'pt-4',\n 5: 'pt-5',\n 6: 'pt-6',\n 7: 'pt-7',\n 8: 'pt-8',\n 9: 'pt-9',\n 10: 'pt-10',\n 11: 'pt-11',\n 12: 'pt-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string> = {\n 0: 'pr-0',\n 1: 'pr-1',\n 2: 'pr-2',\n 3: 'pr-3',\n 4: 'pr-4',\n 5: 'pr-5',\n 6: 'pr-6',\n 7: 'pr-7',\n 8: 'pr-8',\n 9: 'pr-9',\n 10: 'pr-10',\n 11: 'pr-11',\n 12: 'pr-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'pb-0',\n 1: 'pb-1',\n 2: 'pb-2',\n 3: 'pb-3',\n 4: 'pb-4',\n 5: 'pb-5',\n 6: 'pb-6',\n 7: 'pb-7',\n 8: 'pb-8',\n 9: 'pb-9',\n 10: 'pb-10',\n 11: 'pb-11',\n 12: 'pb-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string> = {\n 0: 'pl-0',\n 1: 'pl-1',\n 2: 'pl-2',\n 3: 'pl-3',\n 4: 'pl-4',\n 5: 'pl-5',\n 6: 'pl-6',\n 7: 'pl-7',\n 8: 'pl-8',\n 9: 'pl-9',\n 10: 'pl-10',\n 11: 'pl-11',\n 12: 'pl-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'px-0',\n 1: 'px-1',\n 2: 'px-2',\n 3: 'px-3',\n 4: 'px-4',\n 5: 'px-5',\n 6: 'px-6',\n 7: 'px-7',\n 8: 'px-8',\n 9: 'px-9',\n 10: 'px-10',\n 11: 'px-11',\n 12: 'px-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'py-0',\n 1: 'py-1',\n 2: 'py-2',\n 3: 'py-3',\n 4: 'py-4',\n 5: 'py-5',\n 6: 'py-6',\n 7: 'py-7',\n 8: 'py-8',\n 9: 'py-9',\n 10: 'py-10',\n 11: 'py-11',\n 12: 'py-12',\n};\n\nexport const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string> = {\n 0: 'border-0',\n 1: 'border',\n 2: 'border-2',\n 4: 'border-4',\n 8: 'border-8',\n};\n"]}
1
+ {"version":3,"file":"Box.constants.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA+B;IAC/D,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAA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E,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAA+B;IAC3E,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAA+B;IACzE,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;CACd,CAAC","sourcesContent":["import type {\n BoxSpacing,\n BoxBorderWidth,\n} from '@metamask-previews/design-system-shared';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string> = {\n 0: 'm-0',\n 1: 'm-1',\n 2: 'm-2',\n 3: 'm-3',\n 4: 'm-4',\n 5: 'm-5',\n 6: 'm-6',\n 7: 'm-7',\n 8: 'm-8',\n 9: 'm-9',\n 10: 'm-10',\n 11: 'm-11',\n 12: 'm-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string> = {\n 0: 'mt-0',\n 1: 'mt-1',\n 2: 'mt-2',\n 3: 'mt-3',\n 4: 'mt-4',\n 5: 'mt-5',\n 6: 'mt-6',\n 7: 'mt-7',\n 8: 'mt-8',\n 9: 'mt-9',\n 10: 'mt-10',\n 11: 'mt-11',\n 12: 'mt-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string> = {\n 0: 'mr-0',\n 1: 'mr-1',\n 2: 'mr-2',\n 3: 'mr-3',\n 4: 'mr-4',\n 5: 'mr-5',\n 6: 'mr-6',\n 7: 'mr-7',\n 8: 'mr-8',\n 9: 'mr-9',\n 10: 'mr-10',\n 11: 'mr-11',\n 12: 'mr-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'mb-0',\n 1: 'mb-1',\n 2: 'mb-2',\n 3: 'mb-3',\n 4: 'mb-4',\n 5: 'mb-5',\n 6: 'mb-6',\n 7: 'mb-7',\n 8: 'mb-8',\n 9: 'mb-9',\n 10: 'mb-10',\n 11: 'mb-11',\n 12: 'mb-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string> = {\n 0: 'ml-0',\n 1: 'ml-1',\n 2: 'ml-2',\n 3: 'ml-3',\n 4: 'ml-4',\n 5: 'ml-5',\n 6: 'ml-6',\n 7: 'ml-7',\n 8: 'ml-8',\n 9: 'ml-9',\n 10: 'ml-10',\n 11: 'ml-11',\n 12: 'ml-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'mx-0',\n 1: 'mx-1',\n 2: 'mx-2',\n 3: 'mx-3',\n 4: 'mx-4',\n 5: 'mx-5',\n 6: 'mx-6',\n 7: 'mx-7',\n 8: 'mx-8',\n 9: 'mx-9',\n 10: 'mx-10',\n 11: 'mx-11',\n 12: 'mx-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'my-0',\n 1: 'my-1',\n 2: 'my-2',\n 3: 'my-3',\n 4: 'my-4',\n 5: 'my-5',\n 6: 'my-6',\n 7: 'my-7',\n 8: 'my-8',\n 9: 'my-9',\n 10: 'my-10',\n 11: 'my-11',\n 12: 'my-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string> = {\n 0: 'p-0',\n 1: 'p-1',\n 2: 'p-2',\n 3: 'p-3',\n 4: 'p-4',\n 5: 'p-5',\n 6: 'p-6',\n 7: 'p-7',\n 8: 'p-8',\n 9: 'p-9',\n 10: 'p-10',\n 11: 'p-11',\n 12: 'p-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string> = {\n 0: 'pt-0',\n 1: 'pt-1',\n 2: 'pt-2',\n 3: 'pt-3',\n 4: 'pt-4',\n 5: 'pt-5',\n 6: 'pt-6',\n 7: 'pt-7',\n 8: 'pt-8',\n 9: 'pt-9',\n 10: 'pt-10',\n 11: 'pt-11',\n 12: 'pt-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string> = {\n 0: 'pr-0',\n 1: 'pr-1',\n 2: 'pr-2',\n 3: 'pr-3',\n 4: 'pr-4',\n 5: 'pr-5',\n 6: 'pr-6',\n 7: 'pr-7',\n 8: 'pr-8',\n 9: 'pr-9',\n 10: 'pr-10',\n 11: 'pr-11',\n 12: 'pr-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'pb-0',\n 1: 'pb-1',\n 2: 'pb-2',\n 3: 'pb-3',\n 4: 'pb-4',\n 5: 'pb-5',\n 6: 'pb-6',\n 7: 'pb-7',\n 8: 'pb-8',\n 9: 'pb-9',\n 10: 'pb-10',\n 11: 'pb-11',\n 12: 'pb-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string> = {\n 0: 'pl-0',\n 1: 'pl-1',\n 2: 'pl-2',\n 3: 'pl-3',\n 4: 'pl-4',\n 5: 'pl-5',\n 6: 'pl-6',\n 7: 'pl-7',\n 8: 'pl-8',\n 9: 'pl-9',\n 10: 'pl-10',\n 11: 'pl-11',\n 12: 'pl-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'px-0',\n 1: 'px-1',\n 2: 'px-2',\n 3: 'px-3',\n 4: 'px-4',\n 5: 'px-5',\n 6: 'px-6',\n 7: 'px-7',\n 8: 'px-8',\n 9: 'px-9',\n 10: 'px-10',\n 11: 'px-11',\n 12: 'px-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'py-0',\n 1: 'py-1',\n 2: 'py-2',\n 3: 'py-3',\n 4: 'py-4',\n 5: 'py-5',\n 6: 'py-6',\n 7: 'py-7',\n 8: 'py-8',\n 9: 'py-9',\n 10: 'py-10',\n 11: 'py-11',\n 12: 'py-12',\n};\n\nexport const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string> = {\n 0: 'border-0',\n 1: 'border',\n 2: 'border-2',\n 4: 'border-4',\n 8: 'border-8',\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxBorderWidth,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\n\nexport type BoxProps = ComponentProps<'div'> & {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n /**\n * Optional prop for additional CSS classes to be applied to the Box component.\n */\n className?: string;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n *\n * @default false\n */\n asChild?: boolean;\n};\n"]}
1
+ {"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nexport type BoxProps = ComponentProps<'div'> &\n BoxPropsShared & {\n /**\n * Optional prop for additional CSS classes to be applied to the Box component.\n */\n className?: string;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n *\n * @default false\n */\n asChild?: boolean;\n };\n"]}
@@ -1,110 +1,6 @@
1
+ import type { BoxPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxBorderWidth, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.cjs";
3
- export type BoxProps = ComponentProps<'div'> & {
4
- /**
5
- * The flex-direction style of the component.
6
- */
7
- flexDirection?: BoxFlexDirection;
8
- /**
9
- * The flex-wrap style of the component.
10
- */
11
- flexWrap?: BoxFlexWrap;
12
- /**
13
- * The gap between the component's children.
14
- * Use 0-12 for a gap of 0px-48px.
15
- */
16
- gap?: BoxSpacing;
17
- /**
18
- * The align-items style of the component.
19
- */
20
- alignItems?: BoxAlignItems;
21
- /**
22
- * The justify-content style of the component.
23
- */
24
- justifyContent?: BoxJustifyContent;
25
- /**
26
- * The margin of the component.
27
- * Use 0-12 for margin of 0px-48px.
28
- */
29
- margin?: BoxSpacing;
30
- /**
31
- * The top margin of the component.
32
- * Use 0-12 for margin of 0px-48px.
33
- */
34
- marginTop?: BoxSpacing;
35
- /**
36
- * The right margin of the component.
37
- * Use 0-12 for margin of 0px-48px.
38
- */
39
- marginRight?: BoxSpacing;
40
- /**
41
- * The bottom margin of the component.
42
- * Use 0-12 for margin of 0px-48px.
43
- */
44
- marginBottom?: BoxSpacing;
45
- /**
46
- * The left margin of the component.
47
- * Use 0-12 for margin of 0px-48px.
48
- */
49
- marginLeft?: BoxSpacing;
50
- /**
51
- * The horizontal margin of the component.
52
- * Use 0-12 for margin of 0px-48px.
53
- */
54
- marginHorizontal?: BoxSpacing;
55
- /**
56
- * The vertical margin of the component.
57
- * Use 0-12 for margin of 0px-48px.
58
- */
59
- marginVertical?: BoxSpacing;
60
- /**
61
- * The padding of the component.
62
- * Use 0-12 for padding of 0px-48px.
63
- */
64
- padding?: BoxSpacing;
65
- /**
66
- * The top padding of the component.
67
- * Use 0-12 for padding of 0px-48px.
68
- */
69
- paddingTop?: BoxSpacing;
70
- /**
71
- * The right padding of the component.
72
- * Use 0-12 for padding of 0px-48px.
73
- */
74
- paddingRight?: BoxSpacing;
75
- /**
76
- * The bottom padding of the component.
77
- * Use 0-12 for padding of 0px-48px.
78
- */
79
- paddingBottom?: BoxSpacing;
80
- /**
81
- * The left padding of the component.
82
- * Use 0-12 for padding of 0px-48px.
83
- */
84
- paddingLeft?: BoxSpacing;
85
- /**
86
- * The horizontal padding of the component.
87
- * Use 0-12 for padding of 0px-48px.
88
- */
89
- paddingHorizontal?: BoxSpacing;
90
- /**
91
- * The vertical padding of the component.
92
- * Use 0-12 for padding of 0px-48px.
93
- */
94
- paddingVertical?: BoxSpacing;
95
- /**
96
- * The border width of the component.
97
- * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.
98
- */
99
- borderWidth?: BoxBorderWidth;
100
- /**
101
- * The border color of the component.
102
- */
103
- borderColor?: BoxBorderColor;
104
- /**
105
- * The background color of the component.
106
- */
107
- backgroundColor?: BoxBackgroundColor;
3
+ export type BoxProps = ComponentProps<'div'> & BoxPropsShared & {
108
4
  /**
109
5
  * Optional prop for additional CSS classes to be applied to the Box component.
110
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"Box.types.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gDAAgD;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,GAC1C,cAAc,GAAG;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1,110 +1,6 @@
1
+ import type { BoxPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { BoxFlexDirection, BoxFlexWrap, BoxSpacing, BoxBorderWidth, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.mjs";
3
- export type BoxProps = ComponentProps<'div'> & {
4
- /**
5
- * The flex-direction style of the component.
6
- */
7
- flexDirection?: BoxFlexDirection;
8
- /**
9
- * The flex-wrap style of the component.
10
- */
11
- flexWrap?: BoxFlexWrap;
12
- /**
13
- * The gap between the component's children.
14
- * Use 0-12 for a gap of 0px-48px.
15
- */
16
- gap?: BoxSpacing;
17
- /**
18
- * The align-items style of the component.
19
- */
20
- alignItems?: BoxAlignItems;
21
- /**
22
- * The justify-content style of the component.
23
- */
24
- justifyContent?: BoxJustifyContent;
25
- /**
26
- * The margin of the component.
27
- * Use 0-12 for margin of 0px-48px.
28
- */
29
- margin?: BoxSpacing;
30
- /**
31
- * The top margin of the component.
32
- * Use 0-12 for margin of 0px-48px.
33
- */
34
- marginTop?: BoxSpacing;
35
- /**
36
- * The right margin of the component.
37
- * Use 0-12 for margin of 0px-48px.
38
- */
39
- marginRight?: BoxSpacing;
40
- /**
41
- * The bottom margin of the component.
42
- * Use 0-12 for margin of 0px-48px.
43
- */
44
- marginBottom?: BoxSpacing;
45
- /**
46
- * The left margin of the component.
47
- * Use 0-12 for margin of 0px-48px.
48
- */
49
- marginLeft?: BoxSpacing;
50
- /**
51
- * The horizontal margin of the component.
52
- * Use 0-12 for margin of 0px-48px.
53
- */
54
- marginHorizontal?: BoxSpacing;
55
- /**
56
- * The vertical margin of the component.
57
- * Use 0-12 for margin of 0px-48px.
58
- */
59
- marginVertical?: BoxSpacing;
60
- /**
61
- * The padding of the component.
62
- * Use 0-12 for padding of 0px-48px.
63
- */
64
- padding?: BoxSpacing;
65
- /**
66
- * The top padding of the component.
67
- * Use 0-12 for padding of 0px-48px.
68
- */
69
- paddingTop?: BoxSpacing;
70
- /**
71
- * The right padding of the component.
72
- * Use 0-12 for padding of 0px-48px.
73
- */
74
- paddingRight?: BoxSpacing;
75
- /**
76
- * The bottom padding of the component.
77
- * Use 0-12 for padding of 0px-48px.
78
- */
79
- paddingBottom?: BoxSpacing;
80
- /**
81
- * The left padding of the component.
82
- * Use 0-12 for padding of 0px-48px.
83
- */
84
- paddingLeft?: BoxSpacing;
85
- /**
86
- * The horizontal padding of the component.
87
- * Use 0-12 for padding of 0px-48px.
88
- */
89
- paddingHorizontal?: BoxSpacing;
90
- /**
91
- * The vertical padding of the component.
92
- * Use 0-12 for padding of 0px-48px.
93
- */
94
- paddingVertical?: BoxSpacing;
95
- /**
96
- * The border width of the component.
97
- * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.
98
- */
99
- borderWidth?: BoxBorderWidth;
100
- /**
101
- * The border color of the component.
102
- */
103
- borderColor?: BoxBorderColor;
104
- /**
105
- * The background color of the component.
106
- */
107
- backgroundColor?: BoxBackgroundColor;
3
+ export type BoxProps = ComponentProps<'div'> & BoxPropsShared & {
108
4
  /**
109
5
  * Optional prop for additional CSS classes to be applied to the Box component.
110
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;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C,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxSpacing,\n BoxBorderWidth,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\n\nexport type BoxProps = ComponentProps<'div'> & {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n /**\n * Optional prop for additional CSS classes to be applied to the Box component.\n */\n className?: string;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n *\n * @default false\n */\n asChild?: boolean;\n};\n"]}
1
+ {"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nexport type BoxProps = ComponentProps<'div'> &\n BoxPropsShared & {\n /**\n * Optional prop for additional CSS classes to be applied to the Box component.\n */\n className?: string;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n *\n * @default false\n */\n asChild?: boolean;\n };\n"]}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Box = exports.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return types_1.BoxFlexDirection; } });
6
- Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return types_1.BoxFlexWrap; } });
7
- Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return types_1.BoxAlignItems; } });
8
- Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return types_1.BoxJustifyContent; } });
9
- Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return types_1.BoxBackgroundColor; } });
10
- Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return types_1.BoxBorderColor; } });
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "BoxFlexDirection", { enumerable: true, get: function () { return design_system_shared_1.BoxFlexDirection; } });
6
+ Object.defineProperty(exports, "BoxFlexWrap", { enumerable: true, get: function () { return design_system_shared_1.BoxFlexWrap; } });
7
+ Object.defineProperty(exports, "BoxAlignItems", { enumerable: true, get: function () { return design_system_shared_1.BoxAlignItems; } });
8
+ Object.defineProperty(exports, "BoxJustifyContent", { enumerable: true, get: function () { return design_system_shared_1.BoxJustifyContent; } });
9
+ Object.defineProperty(exports, "BoxBackgroundColor", { enumerable: true, get: function () { return design_system_shared_1.BoxBackgroundColor; } });
10
+ Object.defineProperty(exports, "BoxBorderColor", { enumerable: true, get: function () { return design_system_shared_1.BoxBorderColor; } });
11
11
  var Box_1 = require("./Box.cjs");
12
12
  Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return Box_1.Box; } });
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,+CAOqB;AANnB,yGAAA,gBAAgB,OAAA;AAChB,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AACjB,2GAAA,kBAAkB,OAAA;AAClB,uGAAA,cAAc,OAAA;AAGhB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\nexport type { BoxSpacing } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":";;;AAAA,gFASiD;AAR/C,wHAAA,gBAAgB,OAAA;AAChB,mHAAA,WAAW,OAAA;AACX,qHAAA,aAAa,OAAA;AACb,yHAAA,iBAAiB,OAAA;AACjB,0HAAA,kBAAkB,OAAA;AAClB,sHAAA,cAAc,OAAA;AAIhB,iCAA4B;AAAnB,0FAAA,GAAG,OAAA","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n} from '@metamask-previews/design-system-shared';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -1,5 +1,4 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, } from "../../types/index.cjs";
2
- export type { BoxSpacing } from "../../types/index.cjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, } from "@metamask-previews/design-system-shared";
3
2
  export { Box } from "./Box.cjs";
4
3
  export type { BoxProps } from "./Box.types.cjs";
5
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,8BAAoB;AAC9C,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,gDAAgD;AACjD,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1,5 +1,4 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, } from "../../types/index.mjs";
2
- export type { BoxSpacing } from "../../types/index.mjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor, type BoxSpacing, type BoxBorderWidth, } from "@metamask-previews/design-system-shared";
3
2
  export { Box } from "./Box.mjs";
4
3
  export type { BoxProps } from "./Box.types.mjs";
5
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,GACf,8BAAoB;AACrB,YAAY,EAAE,UAAU,EAAE,8BAAoB;AAC9C,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,gDAAgD;AACjD,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -1,3 +1,3 @@
1
- export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "../../types/index.mjs";
1
+ export { BoxFlexDirection, BoxFlexWrap, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor, BoxBorderColor } from "@metamask-previews/design-system-shared";
2
2
  export { Box } from "./Box.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACf,8BAAoB;AAErB,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '../../types';\nexport type { BoxSpacing } from '../../types';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Box/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAGf,gDAAgD;AACjD,OAAO,EAAE,GAAG,EAAE,kBAAc","sourcesContent":["export {\n BoxFlexDirection,\n BoxFlexWrap,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n BoxBorderColor,\n type BoxSpacing,\n type BoxBorderWidth,\n} from '@metamask-previews/design-system-shared';\nexport { Box } from './Box';\nexport type { BoxProps } from './Box.types';\n"]}
@@ -24,18 +24,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Button = void 0;
27
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
27
28
  const react_1 = __importStar(require("react"));
28
- const types_1 = require("../../types/index.cjs");
29
29
  const ButtonPrimary_1 = require("./variants/ButtonPrimary/index.cjs");
30
30
  const ButtonSecondary_1 = require("./variants/ButtonSecondary/index.cjs");
31
31
  const ButtonTertiary_1 = require("./variants/ButtonTertiary/index.cjs");
32
- exports.Button = (0, react_1.forwardRef)(({ variant = types_1.ButtonVariant.Primary, ...props }, ref) => {
32
+ exports.Button = (0, react_1.forwardRef)(({ variant = design_system_shared_1.ButtonVariant.Primary, ...props }, ref) => {
33
33
  switch (variant) {
34
- case types_1.ButtonVariant.Primary:
34
+ case design_system_shared_1.ButtonVariant.Primary:
35
35
  return react_1.default.createElement(ButtonPrimary_1.ButtonPrimary, { ref: ref, ...props });
36
- case types_1.ButtonVariant.Secondary:
36
+ case design_system_shared_1.ButtonVariant.Secondary:
37
37
  return (react_1.default.createElement(ButtonSecondary_1.ButtonSecondary, { ref: ref, ...props }));
38
- case types_1.ButtonVariant.Tertiary:
38
+ case design_system_shared_1.ButtonVariant.Tertiary:
39
39
  return react_1.default.createElement(ButtonTertiary_1.ButtonTertiary, { ref: ref, ...props });
40
40
  default:
41
41
  return react_1.default.createElement(ButtonPrimary_1.ButtonPrimary, { ref: ref, ...props });
@@ -1 +1 @@
1
- {"version":3,"file":"Button.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,iDAA4C;AAG5C,sEAAyD;AAEzD,0EAA6D;AAE7D,wEAA2D;AAG9C,QAAA,MAAM,GAAG,IAAA,kBAAU,EAC9B,CAAC,EAAE,OAAO,GAAG,qBAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,qBAAa,CAAC,OAAO;YACxB,OAAO,8BAAC,6BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,qBAAa,CAAC,SAAS;YAC1B,OAAO,CACL,8BAAC,iCAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,qBAAa,CAAC,QAAQ;YACzB,OAAO,8BAAC,+BAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,8BAAC,6BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { ButtonVariant } from '../../types';\n\nimport type { ButtonProps } from './Button.types';\nimport { ButtonPrimary } from './variants/ButtonPrimary';\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport { ButtonSecondary } from './variants/ButtonSecondary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport { ButtonTertiary } from './variants/ButtonTertiary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
1
+ {"version":3,"file":"Button.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAwE;AACxE,+CAA0C;AAG1C,sEAAyD;AAEzD,0EAA6D;AAE7D,wEAA2D;AAG9C,QAAA,MAAM,GAAG,IAAA,kBAAU,EAC9B,CAAC,EAAE,OAAO,GAAG,oCAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,oCAAa,CAAC,OAAO;YACxB,OAAO,8BAAC,6BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,oCAAa,CAAC,SAAS;YAC1B,OAAO,CACL,8BAAC,iCAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,oCAAa,CAAC,QAAQ;YACzB,OAAO,8BAAC,+BAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,8BAAC,6BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import { ButtonVariant } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport type { ButtonProps } from './Button.types';\nimport { ButtonPrimary } from './variants/ButtonPrimary';\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport { ButtonSecondary } from './variants/ButtonSecondary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport { ButtonTertiary } from './variants/ButtonTertiary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.cts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAI1C,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAQlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
1
+ {"version":3,"file":"Button.d.cts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAQlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.mts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAI1C,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAQlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
1
+ {"version":3,"file":"Button.d.mts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAQlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { ButtonVariant } from "@metamask-previews/design-system-shared";
7
8
  import $React, { forwardRef } from "react";
8
9
  const React = $importDefault($React);
9
- import { ButtonVariant } from "../../types/index.mjs";
10
10
  import { ButtonPrimary } from "./variants/ButtonPrimary/index.mjs";
11
11
  import { ButtonSecondary } from "./variants/ButtonSecondary/index.mjs";
12
12
  import { ButtonTertiary } from "./variants/ButtonTertiary/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"Button.mjs","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,aAAa,EAAE,8BAAoB;AAG5C,OAAO,EAAE,aAAa,EAAE,2CAAiC;AAEzD,OAAO,EAAE,eAAe,EAAE,6CAAmC;AAE7D,OAAO,EAAE,cAAc,EAAE,4CAAkC;AAG3D,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAC9B,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,aAAa,CAAC,OAAO;YACxB,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,aAAa,CAAC,QAAQ;YACzB,OAAO,oBAAC,cAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { ButtonVariant } from '../../types';\n\nimport type { ButtonProps } from './Button.types';\nimport { ButtonPrimary } from './variants/ButtonPrimary';\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport { ButtonSecondary } from './variants/ButtonSecondary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport { ButtonTertiary } from './variants/ButtonTertiary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
1
+ {"version":3,"file":"Button.mjs","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,gDAAgD;AACxE,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAG1C,OAAO,EAAE,aAAa,EAAE,2CAAiC;AAEzD,OAAO,EAAE,eAAe,EAAE,6CAAmC;AAE7D,OAAO,EAAE,cAAc,EAAE,4CAAkC;AAG3D,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAC9B,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,aAAa,CAAC,OAAO;YACxB,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,aAAa,CAAC,QAAQ;YACzB,OAAO,oBAAC,cAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import { ButtonVariant } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport type { ButtonProps } from './Button.types';\nimport { ButtonPrimary } from './variants/ButtonPrimary';\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport { ButtonSecondary } from './variants/ButtonSecondary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport { ButtonTertiary } from './variants/ButtonTertiary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonVariant } from '../../types';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n *\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: ButtonVariant.Tertiary;\n })\n);\n"]}
1
+ {"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ButtonPropsShared,\n ButtonVariant,\n} from '@metamask-previews/design-system-shared';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = ButtonPropsShared &\n (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Tertiary;\n })\n );\n"]}
@@ -1,19 +1,12 @@
1
- import type { ButtonVariant } from "../../types/index.cjs";
1
+ import type { ButtonPropsShared, ButtonVariant } from "@metamask-previews/design-system-shared";
2
2
  import type { ButtonPrimaryProps } from "./variants/ButtonPrimary/index.cjs";
3
3
  import type { ButtonSecondaryProps } from "./variants/ButtonSecondary/index.cjs";
4
4
  import type { ButtonTertiaryProps } from "./variants/ButtonTertiary/index.cjs";
5
- export type ButtonProps = {
6
- /**
7
- * Optional prop to control the variant of the Button
8
- *
9
- * @default ButtonVariant.Primary
10
- */
11
- variant?: ButtonVariant;
12
- } & ((Omit<ButtonPrimaryProps, 'ref'> & {
13
- variant?: ButtonVariant.Primary;
5
+ export type ButtonProps = ButtonPropsShared & ((Omit<ButtonPrimaryProps, 'ref'> & {
6
+ variant?: typeof ButtonVariant.Primary;
14
7
  }) | (Omit<ButtonSecondaryProps, 'ref'> & {
15
- variant?: ButtonVariant.Secondary;
8
+ variant?: typeof ButtonVariant.Secondary;
16
9
  }) | (Omit<ButtonTertiaryProps, 'ref'> & {
17
- variant?: ButtonVariant.Tertiary;
10
+ variant?: typeof ButtonVariant.Tertiary;
18
11
  }));
19
12
  //# sourceMappingURL=Button.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.d.cts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,8BAAoB;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,2CAAiC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,6CAAmC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,4CAAkC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
1
+ {"version":3,"file":"Button.types.d.cts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACd,gDAAgD;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,2CAAiC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,6CAAmC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,4CAAkC;AAErE,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,CACI,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,OAAO,CAAC;CACxC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC;CAC1C,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,QAAQ,CAAC;CACzC,CAAC,CACL,CAAC"}
@@ -1,19 +1,12 @@
1
- import type { ButtonVariant } from "../../types/index.mjs";
1
+ import type { ButtonPropsShared, ButtonVariant } from "@metamask-previews/design-system-shared";
2
2
  import type { ButtonPrimaryProps } from "./variants/ButtonPrimary/index.mjs";
3
3
  import type { ButtonSecondaryProps } from "./variants/ButtonSecondary/index.mjs";
4
4
  import type { ButtonTertiaryProps } from "./variants/ButtonTertiary/index.mjs";
5
- export type ButtonProps = {
6
- /**
7
- * Optional prop to control the variant of the Button
8
- *
9
- * @default ButtonVariant.Primary
10
- */
11
- variant?: ButtonVariant;
12
- } & ((Omit<ButtonPrimaryProps, 'ref'> & {
13
- variant?: ButtonVariant.Primary;
5
+ export type ButtonProps = ButtonPropsShared & ((Omit<ButtonPrimaryProps, 'ref'> & {
6
+ variant?: typeof ButtonVariant.Primary;
14
7
  }) | (Omit<ButtonSecondaryProps, 'ref'> & {
15
- variant?: ButtonVariant.Secondary;
8
+ variant?: typeof ButtonVariant.Secondary;
16
9
  }) | (Omit<ButtonTertiaryProps, 'ref'> & {
17
- variant?: ButtonVariant.Tertiary;
10
+ variant?: typeof ButtonVariant.Tertiary;
18
11
  }));
19
12
  //# sourceMappingURL=Button.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.d.mts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,8BAAoB;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,2CAAiC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,6CAAmC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,4CAAkC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
1
+ {"version":3,"file":"Button.types.d.mts","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACd,gDAAgD;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,2CAAiC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,6CAAmC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,4CAAkC;AAErE,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,CACI,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,OAAO,CAAC;CACxC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC;CAC1C,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,OAAO,aAAa,CAAC,QAAQ,CAAC;CACzC,CAAC,CACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.mjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonVariant } from '../../types';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n *\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: ButtonVariant.Tertiary;\n })\n);\n"]}
1
+ {"version":3,"file":"Button.types.mjs","sourceRoot":"","sources":["../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ButtonPropsShared,\n ButtonVariant,\n} from '@metamask-previews/design-system-shared';\n\nimport type { ButtonPrimaryProps } from './variants/ButtonPrimary';\nimport type { ButtonSecondaryProps } from './variants/ButtonSecondary';\nimport type { ButtonTertiaryProps } from './variants/ButtonTertiary';\n\nexport type ButtonProps = ButtonPropsShared &\n (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: typeof ButtonVariant.Tertiary;\n })\n );\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Button = exports.ButtonSize = exports.ButtonVariant = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return types_1.ButtonVariant; } });
6
- Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return types_1.ButtonSize; } });
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return design_system_shared_1.ButtonVariant; } });
6
+ Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return design_system_shared_1.ButtonSize; } });
7
7
  var Button_1 = require("./Button.cjs");
8
8
  Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":";;;AAAA,+CAAwD;AAA/C,sGAAA,aAAa,OAAA;AAAE,mGAAA,UAAU,OAAA;AAClC,uCAAkC;AAAzB,gGAAA,MAAM,OAAA","sourcesContent":["export { ButtonVariant, ButtonSize } from '../../types';\nexport { Button } from './Button';\nexport type { ButtonProps } from './Button.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":";;;AAAA,gFAAoF;AAA3E,qHAAA,aAAa,OAAA;AAAE,kHAAA,UAAU,OAAA;AAClC,uCAAkC;AAAzB,gGAAA,MAAM,OAAA","sourcesContent":["export { ButtonVariant, ButtonSize } from '@metamask-previews/design-system-shared';\nexport { Button } from './Button';\nexport type { ButtonProps } from './Button.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { ButtonVariant, ButtonSize } from "../../types/index.cjs";
1
+ export { ButtonVariant, ButtonSize } from "@metamask-previews/design-system-shared";
2
2
  export { Button } from "./Button.cjs";
3
3
  export type { ButtonProps } from "./Button.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,8BAAoB;AACxD,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,gDAAgD;AACpF,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
@@ -1,4 +1,4 @@
1
- export { ButtonVariant, ButtonSize } from "../../types/index.mjs";
1
+ export { ButtonVariant, ButtonSize } from "@metamask-previews/design-system-shared";
2
2
  export { Button } from "./Button.mjs";
3
3
  export type { ButtonProps } from "./Button.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map