@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,13 +1,11 @@
1
+ import type { BadgeIconPropsShared } from "@metamask-previews/design-system-shared";
1
2
  import type { ComponentProps } from "react";
2
- import type { IconName, IconProps } from "../Icon/index.mjs";
3
+ import type { IconProps } from "../Icon/index.mjs";
3
4
  /**
4
- * BadgeIcon component props.
5
+ * BadgeIcon component props (React platform-specific)
6
+ * Extends shared props from @metamask-previews/design-system-shared with React-specific platform concerns
5
7
  */
6
- export type BadgeIconProps = ComponentProps<'div'> & {
7
- /**
8
- * Required prop to specify an icon to show
9
- */
10
- iconName: IconName;
8
+ export type BadgeIconProps = ComponentProps<'div'> & BadgeIconPropsShared & {
11
9
  /**
12
10
  * Optional prop to pass additional properties to the icon
13
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACnD;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"BadgeIcon.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gDAAgD;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAChD,oBAAoB,GAAG;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { IconName, IconProps } from '../Icon';\n\n/**\n * BadgeIcon component props.\n */\nexport type BadgeIconProps = ComponentProps<'div'> & {\n /**\n * Required prop to specify an icon to show\n */\n iconName: IconName;\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Omit<IconProps, 'name'>;\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeIcon 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"]}
1
+ {"version":3,"file":"BadgeIcon.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeIcon/BadgeIcon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BadgeIconPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ComponentProps } from 'react';\n\nimport type { IconProps } from '../Icon';\n\n/**\n * BadgeIcon component props (React platform-specific)\n * Extends shared props from @metamask-previews/design-system-shared with React-specific platform concerns\n */\nexport type BadgeIconProps = ComponentProps<'div'> &\n BadgeIconPropsShared & {\n /**\n * Optional prop to pass additional properties to the icon\n */\n iconProps?: Omit<IconProps, 'name'>;\n /**\n * Optional prop for additional CSS classes to be applied to the BadgeIcon 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"]}
@@ -16,15 +16,15 @@ exports.MAP_BANNER_ALERT_SEVERITY_ICON_COLOR = {
16
16
  danger: types_1.IconColor.ErrorDefault,
17
17
  };
18
18
  exports.MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR = {
19
- info: types_1.BoxBackgroundColor.PrimaryMuted,
20
- success: types_1.BoxBackgroundColor.SuccessMuted,
21
- warning: types_1.BoxBackgroundColor.WarningMuted,
22
- danger: types_1.BoxBackgroundColor.ErrorMuted,
19
+ info: design_system_shared_1.BoxBackgroundColor.PrimaryMuted,
20
+ success: design_system_shared_1.BoxBackgroundColor.SuccessMuted,
21
+ warning: design_system_shared_1.BoxBackgroundColor.WarningMuted,
22
+ danger: design_system_shared_1.BoxBackgroundColor.ErrorMuted,
23
23
  };
24
24
  exports.MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR = {
25
- info: types_1.BoxBorderColor.PrimaryDefault,
26
- success: types_1.BoxBorderColor.SuccessDefault,
27
- warning: types_1.BoxBorderColor.WarningDefault,
28
- danger: types_1.BoxBorderColor.ErrorDefault,
25
+ info: design_system_shared_1.BoxBorderColor.PrimaryDefault,
26
+ success: design_system_shared_1.BoxBorderColor.SuccessDefault,
27
+ warning: design_system_shared_1.BoxBorderColor.WarningDefault,
28
+ danger: design_system_shared_1.BoxBorderColor.ErrorDefault,
29
29
  };
30
30
  //# sourceMappingURL=BannerAlert.constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.constants.cjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":";;;AAAA,kFAA8E;AAE9E,iDAKqB;AAER,QAAA,mCAAmC,GAG5C;IACF,IAAI,EAAE,gBAAQ,CAAC,IAAI;IACnB,OAAO,EAAE,gBAAQ,CAAC,YAAY;IAC9B,OAAO,EAAE,gBAAQ,CAAC,MAAM;IACxB,MAAM,EAAE,gBAAQ,CAAC,MAAM;CACxB,CAAC;AAEW,QAAA,oCAAoC,GAG7C;IACF,IAAI,EAAE,iBAAS,CAAC,cAAc;IAC9B,OAAO,EAAE,iBAAS,CAAC,cAAc;IACjC,OAAO,EAAE,iBAAS,CAAC,cAAc;IACjC,MAAM,EAAE,iBAAS,CAAC,YAAY;CAC/B,CAAC;AAEW,QAAA,0CAA0C,GAGnD;IACF,IAAI,EAAE,0BAAkB,CAAC,YAAY;IACrC,OAAO,EAAE,0BAAkB,CAAC,YAAY;IACxC,OAAO,EAAE,0BAAkB,CAAC,YAAY;IACxC,MAAM,EAAE,0BAAkB,CAAC,UAAU;CACtC,CAAC;AAEW,QAAA,sCAAsC,GAG/C;IACF,IAAI,EAAE,sBAAc,CAAC,cAAc;IACnC,OAAO,EAAE,sBAAc,CAAC,cAAc;IACtC,OAAO,EAAE,sBAAc,CAAC,cAAc;IACtC,MAAM,EAAE,sBAAc,CAAC,YAAY;CACpC,CAAC","sourcesContent":["import { BannerAlertSeverity } from '@metamask-previews/design-system-shared';\n\nimport {\n BoxBackgroundColor,\n BoxBorderColor,\n IconColor,\n IconName,\n} from '../../types';\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconName\n> = {\n info: IconName.Info,\n success: IconName.Confirmation,\n warning: IconName.Danger,\n danger: IconName.Danger,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconColor\n> = {\n info: IconColor.PrimaryDefault,\n success: IconColor.SuccessDefault,\n warning: IconColor.WarningDefault,\n danger: IconColor.ErrorDefault,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBackgroundColor\n> = {\n info: BoxBackgroundColor.PrimaryMuted,\n success: BoxBackgroundColor.SuccessMuted,\n warning: BoxBackgroundColor.WarningMuted,\n danger: BoxBackgroundColor.ErrorMuted,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBorderColor\n> = {\n info: BoxBorderColor.PrimaryDefault,\n success: BoxBorderColor.SuccessDefault,\n warning: BoxBorderColor.WarningDefault,\n danger: BoxBorderColor.ErrorDefault,\n};\n"]}
1
+ {"version":3,"file":"BannerAlert.constants.cjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":";;;AAAA,kFAIiD;AAEjD,iDAAkD;AAErC,QAAA,mCAAmC,GAG5C;IACF,IAAI,EAAE,gBAAQ,CAAC,IAAI;IACnB,OAAO,EAAE,gBAAQ,CAAC,YAAY;IAC9B,OAAO,EAAE,gBAAQ,CAAC,MAAM;IACxB,MAAM,EAAE,gBAAQ,CAAC,MAAM;CACxB,CAAC;AAEW,QAAA,oCAAoC,GAG7C;IACF,IAAI,EAAE,iBAAS,CAAC,cAAc;IAC9B,OAAO,EAAE,iBAAS,CAAC,cAAc;IACjC,OAAO,EAAE,iBAAS,CAAC,cAAc;IACjC,MAAM,EAAE,iBAAS,CAAC,YAAY;CAC/B,CAAC;AAEW,QAAA,0CAA0C,GAGnD;IACF,IAAI,EAAE,yCAAkB,CAAC,YAAY;IACrC,OAAO,EAAE,yCAAkB,CAAC,YAAY;IACxC,OAAO,EAAE,yCAAkB,CAAC,YAAY;IACxC,MAAM,EAAE,yCAAkB,CAAC,UAAU;CACtC,CAAC;AAEW,QAAA,sCAAsC,GAG/C;IACF,IAAI,EAAE,qCAAc,CAAC,cAAc;IACnC,OAAO,EAAE,qCAAc,CAAC,cAAc;IACtC,OAAO,EAAE,qCAAc,CAAC,cAAc;IACtC,MAAM,EAAE,qCAAc,CAAC,YAAY;CACpC,CAAC","sourcesContent":["import {\n BannerAlertSeverity,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '@metamask-previews/design-system-shared';\n\nimport { IconColor, IconName } from '../../types';\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconName\n> = {\n info: IconName.Info,\n success: IconName.Confirmation,\n warning: IconName.Danger,\n danger: IconName.Danger,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconColor\n> = {\n info: IconColor.PrimaryDefault,\n success: IconColor.SuccessDefault,\n warning: IconColor.WarningDefault,\n danger: IconColor.ErrorDefault,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBackgroundColor\n> = {\n info: BoxBackgroundColor.PrimaryMuted,\n success: BoxBackgroundColor.SuccessMuted,\n warning: BoxBackgroundColor.WarningMuted,\n danger: BoxBackgroundColor.ErrorMuted,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBorderColor\n> = {\n info: BoxBorderColor.PrimaryDefault,\n success: BoxBorderColor.SuccessDefault,\n warning: BoxBorderColor.WarningDefault,\n danger: BoxBorderColor.ErrorDefault,\n};\n"]}
@@ -1,5 +1,5 @@
1
- import { BannerAlertSeverity } from "@metamask-previews/design-system-shared";
2
- import { BoxBackgroundColor, BoxBorderColor, IconColor, IconName } from "../../types/index.cjs";
1
+ import { BannerAlertSeverity, BoxBackgroundColor, BoxBorderColor } from "@metamask-previews/design-system-shared";
2
+ import { IconColor, IconName } from "../../types/index.cjs";
3
3
  export declare const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], IconName>;
4
4
  export declare const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], IconColor>;
5
5
  export declare const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], BoxBackgroundColor>;
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.constants.d.cts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAE9E,OAAO,EACL,kBAAkB,EAClB,cAAc,EAC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AC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,cAAc,CAMf,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BannerAlertSeverity } from "@metamask-previews/design-system-shared";
2
- import { BoxBackgroundColor, BoxBorderColor, IconColor, IconName } from "../../types/index.mjs";
1
+ import { BannerAlertSeverity, BoxBackgroundColor, BoxBorderColor } from "@metamask-previews/design-system-shared";
2
+ import { IconColor, IconName } from "../../types/index.mjs";
3
3
  export declare const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], IconName>;
4
4
  export declare const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], IconColor>;
5
5
  export declare const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<(typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity], BoxBackgroundColor>;
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.constants.d.mts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAE9E,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,EACT,8BAAoB;AAErB,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACtD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,QAAQ,CAMT,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CACvD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,SAAS,CAMV,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC7D,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,kBAAkB,CAMnB,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CACzD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,cAAc,CAMf,CAAC"}
1
+ {"version":3,"file":"BannerAlert.constants.d.mts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACf,gDAAgD;AAEjD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,8BAAoB;AAElD,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACtD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,QAAQ,CAMT,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAM,CACvD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,SAAS,CAMV,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC7D,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,kBAAkB,CAMnB,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CACzD,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAC9D,cAAc,CAMf,CAAC"}
@@ -1,5 +1,5 @@
1
- import { BannerAlertSeverity } from "@metamask-previews/design-system-shared";
2
- import { BoxBackgroundColor, BoxBorderColor, IconColor, IconName } from "../../types/index.mjs";
1
+ import { BannerAlertSeverity, BoxBackgroundColor, BoxBorderColor } from "@metamask-previews/design-system-shared";
2
+ import { IconColor, IconName } from "../../types/index.mjs";
3
3
  export const MAP_BANNER_ALERT_SEVERITY_ICON_NAME = {
4
4
  info: IconName.Info,
5
5
  success: IconName.Confirmation,
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.constants.mjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAE9E,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,EACT,8BAAoB;AAErB,MAAM,CAAC,MAAM,mCAAmC,GAG5C;IACF,IAAI,EAAE,QAAQ,CAAC,IAAI;IACnB,OAAO,EAAE,QAAQ,CAAC,YAAY;IAC9B,OAAO,EAAE,QAAQ,CAAC,MAAM;IACxB,MAAM,EAAE,QAAQ,CAAC,MAAM;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAG7C;IACF,IAAI,EAAE,SAAS,CAAC,cAAc;IAC9B,OAAO,EAAE,SAAS,CAAC,cAAc;IACjC,OAAO,EAAE,SAAS,CAAC,cAAc;IACjC,MAAM,EAAE,SAAS,CAAC,YAAY;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAGnD;IACF,IAAI,EAAE,kBAAkB,CAAC,YAAY;IACrC,OAAO,EAAE,kBAAkB,CAAC,YAAY;IACxC,OAAO,EAAE,kBAAkB,CAAC,YAAY;IACxC,MAAM,EAAE,kBAAkB,CAAC,UAAU;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAG/C;IACF,IAAI,EAAE,cAAc,CAAC,cAAc;IACnC,OAAO,EAAE,cAAc,CAAC,cAAc;IACtC,OAAO,EAAE,cAAc,CAAC,cAAc;IACtC,MAAM,EAAE,cAAc,CAAC,YAAY;CACpC,CAAC","sourcesContent":["import { BannerAlertSeverity } from '@metamask-previews/design-system-shared';\n\nimport {\n BoxBackgroundColor,\n BoxBorderColor,\n IconColor,\n IconName,\n} from '../../types';\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconName\n> = {\n info: IconName.Info,\n success: IconName.Confirmation,\n warning: IconName.Danger,\n danger: IconName.Danger,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconColor\n> = {\n info: IconColor.PrimaryDefault,\n success: IconColor.SuccessDefault,\n warning: IconColor.WarningDefault,\n danger: IconColor.ErrorDefault,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBackgroundColor\n> = {\n info: BoxBackgroundColor.PrimaryMuted,\n success: BoxBackgroundColor.SuccessMuted,\n warning: BoxBackgroundColor.WarningMuted,\n danger: BoxBackgroundColor.ErrorMuted,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBorderColor\n> = {\n info: BoxBorderColor.PrimaryDefault,\n success: BoxBorderColor.SuccessDefault,\n warning: BoxBorderColor.WarningDefault,\n danger: BoxBorderColor.ErrorDefault,\n};\n"]}
1
+ {"version":3,"file":"BannerAlert.constants.mjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACf,gDAAgD;AAEjD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,8BAAoB;AAElD,MAAM,CAAC,MAAM,mCAAmC,GAG5C;IACF,IAAI,EAAE,QAAQ,CAAC,IAAI;IACnB,OAAO,EAAE,QAAQ,CAAC,YAAY;IAC9B,OAAO,EAAE,QAAQ,CAAC,MAAM;IACxB,MAAM,EAAE,QAAQ,CAAC,MAAM;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAG7C;IACF,IAAI,EAAE,SAAS,CAAC,cAAc;IAC9B,OAAO,EAAE,SAAS,CAAC,cAAc;IACjC,OAAO,EAAE,SAAS,CAAC,cAAc;IACjC,MAAM,EAAE,SAAS,CAAC,YAAY;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAGnD;IACF,IAAI,EAAE,kBAAkB,CAAC,YAAY;IACrC,OAAO,EAAE,kBAAkB,CAAC,YAAY;IACxC,OAAO,EAAE,kBAAkB,CAAC,YAAY;IACxC,MAAM,EAAE,kBAAkB,CAAC,UAAU;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAG/C;IACF,IAAI,EAAE,cAAc,CAAC,cAAc;IACnC,OAAO,EAAE,cAAc,CAAC,cAAc;IACtC,OAAO,EAAE,cAAc,CAAC,cAAc;IACtC,MAAM,EAAE,cAAc,CAAC,YAAY;CACpC,CAAC","sourcesContent":["import {\n BannerAlertSeverity,\n BoxBackgroundColor,\n BoxBorderColor,\n} from '@metamask-previews/design-system-shared';\n\nimport { IconColor, IconName } from '../../types';\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_NAME: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconName\n> = {\n info: IconName.Info,\n success: IconName.Confirmation,\n warning: IconName.Danger,\n danger: IconName.Danger,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_ICON_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n IconColor\n> = {\n info: IconColor.PrimaryDefault,\n success: IconColor.SuccessDefault,\n warning: IconColor.WarningDefault,\n danger: IconColor.ErrorDefault,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBackgroundColor\n> = {\n info: BoxBackgroundColor.PrimaryMuted,\n success: BoxBackgroundColor.SuccessMuted,\n warning: BoxBackgroundColor.WarningMuted,\n danger: BoxBackgroundColor.ErrorMuted,\n};\n\nexport const MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR: Record<\n (typeof BannerAlertSeverity)[keyof typeof BannerAlertSeverity],\n BoxBorderColor\n> = {\n info: BoxBorderColor.PrimaryDefault,\n success: BoxBorderColor.SuccessDefault,\n warning: BoxBorderColor.WarningDefault,\n danger: BoxBorderColor.ErrorDefault,\n};\n"]}
@@ -42,7 +42,7 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
42
42
  nonce?: string | undefined;
43
43
  tabIndex?: number | undefined;
44
44
  disabled?: boolean | undefined;
45
- size?: import("../../types/index.cjs").ButtonBaseSize | undefined;
45
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
46
46
  formAction?: string | undefined;
47
47
  formEncType?: string | undefined;
48
48
  formMethod?: string | undefined;
@@ -293,17 +293,17 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
293
293
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
294
294
  asChild?: boolean | undefined;
295
295
  textProps?: Partial<import("../index.cjs").TextProps> | undefined;
296
- isFullWidth?: boolean | undefined;
297
296
  isLoading?: boolean | undefined;
298
297
  loadingText?: string | undefined;
298
+ isDisabled?: boolean | undefined;
299
+ isFullWidth?: boolean | undefined;
299
300
  loadingTextProps?: Partial<import("../index.cjs").TextProps> | undefined;
300
- startIconName?: import("../Icon/index.cjs").IconName | undefined;
301
+ startIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
301
302
  startIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
302
303
  startAccessory?: React.ReactNode;
303
- endIconName?: import("../Icon/index.cjs").IconName | undefined;
304
+ endIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
304
305
  endIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
305
306
  endAccessory?: React.ReactNode;
306
- isDisabled?: boolean | undefined;
307
307
  loadingIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
308
308
  isDanger?: boolean | undefined;
309
309
  isInverse?: boolean | undefined;
@@ -352,7 +352,7 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
352
352
  nonce?: string | undefined;
353
353
  tabIndex?: number | undefined;
354
354
  disabled?: boolean | undefined;
355
- size?: import("../../types/index.cjs").ButtonBaseSize | undefined;
355
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
356
356
  formAction?: string | undefined;
357
357
  formEncType?: string | undefined;
358
358
  formMethod?: string | undefined;
@@ -603,17 +603,17 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
603
603
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
604
604
  asChild?: boolean | undefined;
605
605
  textProps?: Partial<import("../index.cjs").TextProps> | undefined;
606
- isFullWidth?: boolean | undefined;
607
606
  isLoading?: boolean | undefined;
608
607
  loadingText?: string | undefined;
608
+ isDisabled?: boolean | undefined;
609
+ isFullWidth?: boolean | undefined;
609
610
  loadingTextProps?: Partial<import("../index.cjs").TextProps> | undefined;
610
- startIconName?: import("../Icon/index.cjs").IconName | undefined;
611
+ startIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
611
612
  startIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
612
613
  startAccessory?: React.ReactNode;
613
- endIconName?: import("../Icon/index.cjs").IconName | undefined;
614
+ endIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
614
615
  endIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
615
616
  endAccessory?: React.ReactNode;
616
- isDisabled?: boolean | undefined;
617
617
  loadingIconProps?: Partial<import("../Icon/index.cjs").IconProps> | undefined;
618
618
  isDanger?: boolean | undefined;
619
619
  isInverse?: boolean | undefined;
@@ -42,7 +42,7 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
42
42
  nonce?: string | undefined;
43
43
  tabIndex?: number | undefined;
44
44
  disabled?: boolean | undefined;
45
- size?: import("../../types/index.mjs").ButtonBaseSize | undefined;
45
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
46
46
  formAction?: string | undefined;
47
47
  formEncType?: string | undefined;
48
48
  formMethod?: string | undefined;
@@ -293,17 +293,17 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
293
293
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
294
294
  asChild?: boolean | undefined;
295
295
  textProps?: Partial<import("../index.mjs").TextProps> | undefined;
296
- isFullWidth?: boolean | undefined;
297
296
  isLoading?: boolean | undefined;
298
297
  loadingText?: string | undefined;
298
+ isDisabled?: boolean | undefined;
299
+ isFullWidth?: boolean | undefined;
299
300
  loadingTextProps?: Partial<import("../index.mjs").TextProps> | undefined;
300
- startIconName?: import("../Icon/index.mjs").IconName | undefined;
301
+ startIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
301
302
  startIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
302
303
  startAccessory?: React.ReactNode;
303
- endIconName?: import("../Icon/index.mjs").IconName | undefined;
304
+ endIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
304
305
  endIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
305
306
  endAccessory?: React.ReactNode;
306
- isDisabled?: boolean | undefined;
307
307
  loadingIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
308
308
  isDanger?: boolean | undefined;
309
309
  isInverse?: boolean | undefined;
@@ -352,7 +352,7 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
352
352
  nonce?: string | undefined;
353
353
  tabIndex?: number | undefined;
354
354
  disabled?: boolean | undefined;
355
- size?: import("../../types/index.mjs").ButtonBaseSize | undefined;
355
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
356
356
  formAction?: string | undefined;
357
357
  formEncType?: string | undefined;
358
358
  formMethod?: string | undefined;
@@ -603,17 +603,17 @@ export declare const BannerAlert: React.ForwardRefExoticComponent<(Omit<import("
603
603
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
604
604
  asChild?: boolean | undefined;
605
605
  textProps?: Partial<import("../index.mjs").TextProps> | undefined;
606
- isFullWidth?: boolean | undefined;
607
606
  isLoading?: boolean | undefined;
608
607
  loadingText?: string | undefined;
608
+ isDisabled?: boolean | undefined;
609
+ isFullWidth?: boolean | undefined;
609
610
  loadingTextProps?: Partial<import("../index.mjs").TextProps> | undefined;
610
- startIconName?: import("../Icon/index.mjs").IconName | undefined;
611
+ startIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
611
612
  startIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
612
613
  startAccessory?: React.ReactNode;
613
- endIconName?: import("../Icon/index.mjs").IconName | undefined;
614
+ endIconName?: import("@metamask-previews/design-system-shared").IconName | undefined;
614
615
  endIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
615
616
  endAccessory?: React.ReactNode;
616
- isDisabled?: boolean | undefined;
617
617
  loadingIconProps?: Partial<import("../Icon/index.mjs").IconProps> | undefined;
618
618
  isDanger?: boolean | undefined;
619
619
  isInverse?: boolean | undefined;
@@ -26,7 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.BannerBase = void 0;
27
27
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
28
28
  const react_1 = __importStar(require("react"));
29
- const types_1 = require("../../types/index.cjs");
30
29
  const tw_merge_1 = require("../../utils/tw-merge.cjs");
31
30
  const Box_1 = require("../Box/index.cjs");
32
31
  const Button_1 = require("../Button/index.cjs");
@@ -39,7 +38,7 @@ exports.BannerBase = (0, react_1.forwardRef)(({ title, titleProps, description,
39
38
  const { ariaLabel: closeButtonAriaLabel = 'Close banner', onClick: closeButtonPropsOnClick, className: closeButtonClassName, ...resolvedCloseButtonProps } = closeButtonProps ?? {};
40
39
  const shouldShowCloseButton = Boolean(onClose || closeButtonProps);
41
40
  const shouldShowActionButton = Boolean(actionButtonOnClick);
42
- return (react_1.default.createElement(Box_1.Box, { ref: ref, flexDirection: types_1.BoxFlexDirection.Row, alignItems: types_1.BoxAlignItems.Start, gap: 2, backgroundColor: types_1.BoxBackgroundColor.BackgroundDefault, padding: 3, className: (0, tw_merge_1.twMerge)('rounded-sm', className), ...props },
41
+ return (react_1.default.createElement(Box_1.Box, { ref: ref, flexDirection: design_system_shared_1.BoxFlexDirection.Row, alignItems: design_system_shared_1.BoxAlignItems.Start, gap: 2, backgroundColor: design_system_shared_1.BoxBackgroundColor.BackgroundDefault, padding: 3, className: (0, tw_merge_1.twMerge)('rounded-sm', className), ...props },
43
42
  startAccessory,
44
43
  react_1.default.createElement(Box_1.Box, { className: "min-w-0 flex-1" },
45
44
  hasContent(title) &&
@@ -48,8 +47,8 @@ exports.BannerBase = (0, react_1.forwardRef)(({ title, titleProps, description,
48
47
  hasContent(children) &&
49
48
  (isTextContent(children) ? (react_1.default.createElement(Text_1.Text, { variant: design_system_shared_1.TextVariant.BodyMd, ...childrenWrapperProps }, children)) : (children)),
50
49
  shouldShowActionButton && (react_1.default.createElement(Box_1.Box, { className: "mt-4" },
51
- react_1.default.createElement(Button_1.Button, { size: types_1.ButtonSize.Md, onClick: actionButtonOnClick, ...resolvedActionButtonProps }, actionButtonLabel)))),
52
- shouldShowCloseButton && (react_1.default.createElement(ButtonIcon_1.ButtonIcon, { className: (0, tw_merge_1.twMerge)('ml-3 self-start', closeButtonClassName), iconName: types_1.IconName.Close, size: types_1.ButtonIconSize.Sm, ariaLabel: closeButtonAriaLabel, onClick: onClose ?? closeButtonPropsOnClick, ...resolvedCloseButtonProps }))));
50
+ react_1.default.createElement(Button_1.Button, { size: design_system_shared_1.ButtonSize.Md, onClick: actionButtonOnClick, ...resolvedActionButtonProps }, actionButtonLabel)))),
51
+ shouldShowCloseButton && (react_1.default.createElement(ButtonIcon_1.ButtonIcon, { className: (0, tw_merge_1.twMerge)('ml-3 self-start', closeButtonClassName), iconName: design_system_shared_1.IconName.Close, size: design_system_shared_1.ButtonIconSize.Sm, ariaLabel: closeButtonAriaLabel, onClick: onClose ?? closeButtonPropsOnClick, ...resolvedCloseButtonProps }))));
53
52
  });
54
53
  exports.BannerBase.displayName = 'BannerBase';
55
54
  //# sourceMappingURL=BannerBase.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BannerBase.cjs","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkF;AAClF,+CAA0C;AAE1C,iDAOqB;AACrB,uDAA+C;AAC/C,0CAA6B;AAC7B,gDAAmC;AACnC,wDAA2C;AAC3C,4CAA+B;AAI/B,MAAM,aAAa,GAAG,CAAC,OAAwB,EAA8B,EAAE,CAC7E,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC;AAE7D,MAAM,UAAU,GAAG,CAAC,OAAwB,EAAE,EAAE,CAC9C,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AAE/B,QAAA,UAAU,GAAG,IAAA,kBAAU,EAClC,CACE,EACE,KAAK,EACL,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,yBAAyB,GAAG,iBAAiB,IAAI,EAAE,CAAC;IAE1D,MAAM,EACJ,SAAS,EAAE,oBAAoB,GAAG,cAAc,EAChD,OAAO,EAAE,uBAAuB,EAChC,SAAS,EAAE,oBAAoB,EAC/B,GAAG,wBAAwB,EAC5B,GAAG,gBAAgB,IAAI,EAAE,CAAC;IAE3B,MAAM,qBAAqB,GAAG,OAAO,CAAC,OAAO,IAAI,gBAAgB,CAAC,CAAC;IACnE,MAAM,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE5D,OAAO,CACL,8BAAC,SAAG,IACF,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,wBAAgB,CAAC,GAAG,EACnC,UAAU,E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X,CACL,CACP,CACG;QAEL,qBAAqB,IAAI,CACxB,8BAAC,uBAAU,IACT,SAAS,EAAE,IAAA,kBAAO,EAAC,iBAAiB,EAAE,oBAAoB,CAAC,EAC3D,QAAQ,EAAE,gBAAQ,CAAC,KAAK,EACxB,IAAI,EAAE,sBAAc,CAAC,EAAE,EACvB,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,OAAO,IAAI,uBAAuB,KACvC,wBAAwB,GAC5B,CACH,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import { FontWeight, TextVariant } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport {\n BoxAlignItems,\n BoxBackgroundColor,\n ButtonIconSize,\n ButtonSize,\n BoxFlexDirection,\n IconName,\n} from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Text } from '../Text';\n\nimport type { BannerBaseProps } from './BannerBase.types';\n\nconst isTextContent = (content: React.ReactNode): content is string | number =>\n typeof content === 'string' || typeof content === 'number';\n\nconst hasContent = (content: React.ReactNode) =>\n content !== null && content !== undefined;\n\nexport const BannerBase = forwardRef<HTMLDivElement, BannerBaseProps>(\n (\n {\n title,\n titleProps,\n description,\n descriptionProps,\n children,\n childrenWrapperProps,\n actionButtonLabel,\n actionButtonOnClick,\n actionButtonProps,\n startAccessory,\n onClose,\n closeButtonProps,\n className,\n ...props\n },\n ref,\n ) => {\n const resolvedActionButtonProps = actionButtonProps ?? {};\n\n const {\n ariaLabel: closeButtonAriaLabel = 'Close banner',\n onClick: closeButtonPropsOnClick,\n className: closeButtonClassName,\n ...resolvedCloseButtonProps\n } = closeButtonProps ?? {};\n\n const shouldShowCloseButton = Boolean(onClose || closeButtonProps);\n const shouldShowActionButton = Boolean(actionButtonOnClick);\n\n return (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n gap={2}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n padding={3}\n className={twMerge('rounded-sm', className)}\n {...props}\n >\n {startAccessory}\n\n <Box className=\"min-w-0 flex-1\">\n {hasContent(title) &&\n (isTextContent(title) ? (\n <Text\n variant={TextVariant.BodyMd}\n fontWeight={FontWeight.Medium}\n {...titleProps}\n >\n {title}\n </Text>\n ) : (\n title\n ))}\n\n {hasContent(description) && (\n <Box className={hasContent(title) ? 'mt-1' : undefined}>\n {isTextContent(description) ? (\n <Text variant={TextVariant.BodySm} {...descriptionProps}>\n {description}\n </Text>\n ) : (\n description\n )}\n </Box>\n )}\n\n {hasContent(children) &&\n (isTextContent(children) ? (\n <Text variant={TextVariant.BodyMd} {...childrenWrapperProps}>\n {children}\n </Text>\n ) : (\n children\n ))}\n\n {shouldShowActionButton && (\n <Box className=\"mt-4\">\n <Button\n size={ButtonSize.Md}\n onClick={actionButtonOnClick}\n {...resolvedActionButtonProps}\n >\n {actionButtonLabel}\n </Button>\n </Box>\n )}\n </Box>\n\n {shouldShowCloseButton && (\n <ButtonIcon\n className={twMerge('ml-3 self-start', closeButtonClassName)}\n iconName={IconName.Close}\n size={ButtonIconSize.Sm}\n ariaLabel={closeButtonAriaLabel}\n onClick={onClose ?? closeButtonPropsOnClick}\n {...resolvedCloseButtonProps}\n />\n )}\n </Box>\n );\n },\n);\n\nBannerBase.displayName = 'BannerBase';\n"]}
1
+ {"version":3,"file":"BannerBase.cjs","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFASiD;AACjD,+CAA0C;AAE1C,uDAA+C;AAC/C,0CAA6B;AAC7B,gDAAmC;AACnC,wDAA2C;AAC3C,4CAA+B;AAI/B,MAAM,aAAa,GAAG,CAAC,OAAwB,EAA8B,EAAE,CAC7E,OAAO,OAAO,KAAK,QAAQ,IAAI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["import {\n BoxAlignItems,\n BoxBackgroundColor,\n BoxFlexDirection,\n ButtonIconSize,\n ButtonSize,\n FontWeight,\n IconName,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Text } from '../Text';\n\nimport type { BannerBaseProps } from './BannerBase.types';\n\nconst isTextContent = (content: React.ReactNode): content is string | number =>\n typeof content === 'string' || typeof content === 'number';\n\nconst hasContent = (content: React.ReactNode) =>\n content !== null && content !== undefined;\n\nexport const BannerBase = forwardRef<HTMLDivElement, BannerBaseProps>(\n (\n {\n title,\n titleProps,\n description,\n descriptionProps,\n children,\n childrenWrapperProps,\n actionButtonLabel,\n actionButtonOnClick,\n actionButtonProps,\n startAccessory,\n onClose,\n closeButtonProps,\n className,\n ...props\n },\n ref,\n ) => {\n const resolvedActionButtonProps = actionButtonProps ?? {};\n\n const {\n ariaLabel: closeButtonAriaLabel = 'Close banner',\n onClick: closeButtonPropsOnClick,\n className: closeButtonClassName,\n ...resolvedCloseButtonProps\n } = closeButtonProps ?? {};\n\n const shouldShowCloseButton = Boolean(onClose || closeButtonProps);\n const shouldShowActionButton = Boolean(actionButtonOnClick);\n\n return (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n gap={2}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n padding={3}\n className={twMerge('rounded-sm', className)}\n {...props}\n >\n {startAccessory}\n\n <Box className=\"min-w-0 flex-1\">\n {hasContent(title) &&\n (isTextContent(title) ? (\n <Text\n variant={TextVariant.BodyMd}\n fontWeight={FontWeight.Medium}\n {...titleProps}\n >\n {title}\n </Text>\n ) : (\n title\n ))}\n\n {hasContent(description) && (\n <Box className={hasContent(title) ? 'mt-1' : undefined}>\n {isTextContent(description) ? (\n <Text variant={TextVariant.BodySm} {...descriptionProps}>\n {description}\n </Text>\n ) : (\n description\n )}\n </Box>\n )}\n\n {hasContent(children) &&\n (isTextContent(children) ? (\n <Text variant={TextVariant.BodyMd} {...childrenWrapperProps}>\n {children}\n </Text>\n ) : (\n children\n ))}\n\n {shouldShowActionButton && (\n <Box className=\"mt-4\">\n <Button\n size={ButtonSize.Md}\n onClick={actionButtonOnClick}\n {...resolvedActionButtonProps}\n >\n {actionButtonLabel}\n </Button>\n </Box>\n )}\n </Box>\n\n {shouldShowCloseButton && (\n <ButtonIcon\n className={twMerge('ml-3 self-start', closeButtonClassName)}\n iconName={IconName.Close}\n size={ButtonIconSize.Sm}\n ariaLabel={closeButtonAriaLabel}\n onClick={onClose ?? closeButtonPropsOnClick}\n {...resolvedCloseButtonProps}\n />\n )}\n </Box>\n );\n },\n);\n\nBannerBase.displayName = 'BannerBase';\n"]}
@@ -1,5 +1,5 @@
1
+ import { IconName } from "@metamask-previews/design-system-shared";
1
2
  import React from "react";
2
- import { ButtonSize, IconName } from "../../types/index.cjs";
3
3
  export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@metamask-previews/design-system-shared").BannerBasePropsShared & Omit<import("../Box/index.cjs").BoxProps, "children"> & {
4
4
  titleProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
5
5
  descriptionProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
@@ -40,7 +40,7 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
40
40
  nonce?: string | undefined;
41
41
  tabIndex?: number | undefined;
42
42
  disabled?: boolean | undefined;
43
- size?: ButtonSize | undefined;
43
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
44
44
  formAction?: string | undefined;
45
45
  formEncType?: string | undefined;
46
46
  formMethod?: string | undefined;
@@ -291,9 +291,10 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
291
291
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
292
292
  asChild?: boolean | undefined;
293
293
  textProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
294
- isFullWidth?: boolean | undefined;
295
294
  isLoading?: boolean | undefined;
296
295
  loadingText?: string | undefined;
296
+ isDisabled?: boolean | undefined;
297
+ isFullWidth?: boolean | undefined;
297
298
  loadingTextProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
298
299
  startIconName?: IconName | undefined;
299
300
  startIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
@@ -301,7 +302,6 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
301
302
  endIconName?: IconName | undefined;
302
303
  endIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
303
304
  endAccessory?: React.ReactNode;
304
- isDisabled?: boolean | undefined;
305
305
  loadingIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
306
306
  isDanger?: boolean | undefined;
307
307
  isInverse?: boolean | undefined;
@@ -346,7 +346,7 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
346
346
  nonce?: string | undefined;
347
347
  tabIndex?: number | undefined;
348
348
  disabled?: boolean | undefined;
349
- size?: ButtonSize | undefined;
349
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
350
350
  formAction?: string | undefined;
351
351
  formEncType?: string | undefined;
352
352
  formMethod?: string | undefined;
@@ -597,9 +597,10 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
597
597
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
598
598
  asChild?: boolean | undefined;
599
599
  textProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
600
- isFullWidth?: boolean | undefined;
601
600
  isLoading?: boolean | undefined;
602
601
  loadingText?: string | undefined;
602
+ isDisabled?: boolean | undefined;
603
+ isFullWidth?: boolean | undefined;
603
604
  loadingTextProps?: Partial<import("../Text/index.cjs").TextProps> | undefined;
604
605
  startIconName?: IconName | undefined;
605
606
  startIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
@@ -607,7 +608,6 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
607
608
  endIconName?: IconName | undefined;
608
609
  endIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
609
610
  endAccessory?: React.ReactNode;
610
- isDisabled?: boolean | undefined;
611
611
  loadingIconProps?: Partial<import("../index.cjs").IconProps> | undefined;
612
612
  isDanger?: boolean | undefined;
613
613
  isInverse?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BannerBase.d.cts","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAE1C,OAAO,EAIL,UAAU,EAEV,QAAQ,EACT,8BAAoB;AAerB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0GtB,CAAC"}
1
+ {"version":3,"file":"BannerBase.d.cts","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,QAAQ,EAET,gDAAgD;AACjD,OAAO,KAAqB,cAAc;AAgB1C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0GtB,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { IconName } from "@metamask-previews/design-system-shared";
1
2
  import React from "react";
2
- import { ButtonSize, IconName } from "../../types/index.mjs";
3
3
  export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@metamask-previews/design-system-shared").BannerBasePropsShared & Omit<import("../Box/index.mjs").BoxProps, "children"> & {
4
4
  titleProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
5
5
  descriptionProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
@@ -40,7 +40,7 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
40
40
  nonce?: string | undefined;
41
41
  tabIndex?: number | undefined;
42
42
  disabled?: boolean | undefined;
43
- size?: ButtonSize | undefined;
43
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
44
44
  formAction?: string | undefined;
45
45
  formEncType?: string | undefined;
46
46
  formMethod?: string | undefined;
@@ -291,9 +291,10 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
291
291
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
292
292
  asChild?: boolean | undefined;
293
293
  textProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
294
- isFullWidth?: boolean | undefined;
295
294
  isLoading?: boolean | undefined;
296
295
  loadingText?: string | undefined;
296
+ isDisabled?: boolean | undefined;
297
+ isFullWidth?: boolean | undefined;
297
298
  loadingTextProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
298
299
  startIconName?: IconName | undefined;
299
300
  startIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
@@ -301,7 +302,6 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
301
302
  endIconName?: IconName | undefined;
302
303
  endIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
303
304
  endAccessory?: React.ReactNode;
304
- isDisabled?: boolean | undefined;
305
305
  loadingIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
306
306
  isDanger?: boolean | undefined;
307
307
  isInverse?: boolean | undefined;
@@ -346,7 +346,7 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
346
346
  nonce?: string | undefined;
347
347
  tabIndex?: number | undefined;
348
348
  disabled?: boolean | undefined;
349
- size?: ButtonSize | undefined;
349
+ size?: import("@metamask-previews/design-system-shared").ButtonBaseSize | undefined;
350
350
  formAction?: string | undefined;
351
351
  formEncType?: string | undefined;
352
352
  formMethod?: string | undefined;
@@ -597,9 +597,10 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
597
597
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
598
598
  asChild?: boolean | undefined;
599
599
  textProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
600
- isFullWidth?: boolean | undefined;
601
600
  isLoading?: boolean | undefined;
602
601
  loadingText?: string | undefined;
602
+ isDisabled?: boolean | undefined;
603
+ isFullWidth?: boolean | undefined;
603
604
  loadingTextProps?: Partial<import("../Text/index.mjs").TextProps> | undefined;
604
605
  startIconName?: IconName | undefined;
605
606
  startIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
@@ -607,7 +608,6 @@ export declare const BannerBase: React.ForwardRefExoticComponent<(Omit<import("@
607
608
  endIconName?: IconName | undefined;
608
609
  endIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
609
610
  endAccessory?: React.ReactNode;
610
- isDisabled?: boolean | undefined;
611
611
  loadingIconProps?: Partial<import("../index.mjs").IconProps> | undefined;
612
612
  isDanger?: boolean | undefined;
613
613
  isInverse?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BannerBase.d.mts","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,cAAc;AAE1C,OAAO,EAIL,UAAU,EAEV,QAAQ,EACT,8BAAoB;AAerB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0GtB,CAAC"}
@@ -4,10 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { FontWeight, TextVariant } from "@metamask-previews/design-system-shared";
7
+ import { BoxAlignItems, BoxBackgroundColor, BoxFlexDirection, ButtonIconSize, ButtonSize, FontWeight, IconName, TextVariant } from "@metamask-previews/design-system-shared";
8
8
  import $React, { forwardRef } from "react";
9
9
  const React = $importDefault($React);
10
- import { BoxAlignItems, BoxBackgroundColor, ButtonIconSize, ButtonSize, BoxFlexDirection, IconName } from "../../types/index.mjs";
11
10
  import { twMerge } from "../../utils/tw-merge.mjs";
12
11
  import { Box } from "../Box/index.mjs";
13
12
  import { Button } from "../Button/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"BannerBase.mjs","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,gDAAgD;AAClF,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACT,8BAAoB;AACrB,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAI/B,MAAM,aAAa,GAAG,CAAC,OAAwB,EAA8B,EAAE,CAC7E,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC;AAE7D,MAAM,UAAU,GAAG,CAAC,OAAwB,EAAE,EAAE,CAC9C,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AAE5C,MAAM,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AAC,GAAG,IAAC,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,IACnD,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAC5B,oBAAC,IAAI,IAAC,OAAO,EAAE,WAAW,CAAC,MAAM,KAAM,gBAAgB,IACpD,WAAW,CACP,CACR,CAAC,CAAC,CAAC,CACF,WAAW,CACZ,CACG,CACP;YAEA,UAAU,CAAC,QAAQ,CAAC;gBACnB,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CACzB,oBAAC,IAAI,IAAC,OAAO,EAAE,WAAW,CAAC,MAAM,KAAM,oBAAoB,IACxD,QAAQ,CACJ,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CAAC;YAEH,sBAAsB,IAAI,CACzB,oBAAC,GAAG,IAAC,SAAS,EAAC,MAAM;gBACnB,oBAAC,MAAM,IACL,IAAI,EAAE,UAAU,CAAC,EAAE,EACnB,OAAO,EAAE,mBAAmB,KACxB,yBAAyB,IAE5B,iBAAiB,CACX,CACL,CACP,CACG;QAEL,qBAAqB,IAAI,CACxB,oBAAC,UAAU,IACT,SAAS,EAAE,OAAO,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,EAC3D,QAAQ,EAAE,QAAQ,CAAC,KAAK,EACxB,IAAI,EAAE,cAAc,CAAC,EAAE,EACvB,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,OAAO,IAAI,uBAAuB,KACvC,wBAAwB,GAC5B,CACH,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import { FontWeight, TextVariant } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport {\n BoxAlignItems,\n BoxBackgroundColor,\n ButtonIconSize,\n ButtonSize,\n BoxFlexDirection,\n IconName,\n} from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Text } from '../Text';\n\nimport type { BannerBaseProps } from './BannerBase.types';\n\nconst isTextContent = (content: React.ReactNode): content is string | number =>\n typeof content === 'string' || typeof content === 'number';\n\nconst hasContent = (content: React.ReactNode) =>\n content !== null && content !== undefined;\n\nexport const BannerBase = forwardRef<HTMLDivElement, BannerBaseProps>(\n (\n {\n title,\n titleProps,\n description,\n descriptionProps,\n children,\n childrenWrapperProps,\n actionButtonLabel,\n actionButtonOnClick,\n actionButtonProps,\n startAccessory,\n onClose,\n closeButtonProps,\n className,\n ...props\n },\n ref,\n ) => {\n const resolvedActionButtonProps = actionButtonProps ?? {};\n\n const {\n ariaLabel: closeButtonAriaLabel = 'Close banner',\n onClick: closeButtonPropsOnClick,\n className: closeButtonClassName,\n ...resolvedCloseButtonProps\n } = closeButtonProps ?? {};\n\n const shouldShowCloseButton = Boolean(onClose || closeButtonProps);\n const shouldShowActionButton = Boolean(actionButtonOnClick);\n\n return (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n gap={2}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n padding={3}\n className={twMerge('rounded-sm', className)}\n {...props}\n >\n {startAccessory}\n\n <Box className=\"min-w-0 flex-1\">\n {hasContent(title) &&\n (isTextContent(title) ? (\n <Text\n variant={TextVariant.BodyMd}\n fontWeight={FontWeight.Medium}\n {...titleProps}\n >\n {title}\n </Text>\n ) : (\n title\n ))}\n\n {hasContent(description) && (\n <Box className={hasContent(title) ? 'mt-1' : undefined}>\n {isTextContent(description) ? (\n <Text variant={TextVariant.BodySm} {...descriptionProps}>\n {description}\n </Text>\n ) : (\n description\n )}\n </Box>\n )}\n\n {hasContent(children) &&\n (isTextContent(children) ? (\n <Text variant={TextVariant.BodyMd} {...childrenWrapperProps}>\n {children}\n </Text>\n ) : (\n children\n ))}\n\n {shouldShowActionButton && (\n <Box className=\"mt-4\">\n <Button\n size={ButtonSize.Md}\n onClick={actionButtonOnClick}\n {...resolvedActionButtonProps}\n >\n {actionButtonLabel}\n </Button>\n </Box>\n )}\n </Box>\n\n {shouldShowCloseButton && (\n <ButtonIcon\n className={twMerge('ml-3 self-start', closeButtonClassName)}\n iconName={IconName.Close}\n size={ButtonIconSize.Sm}\n ariaLabel={closeButtonAriaLabel}\n onClick={onClose ?? closeButtonPropsOnClick}\n {...resolvedCloseButtonProps}\n />\n )}\n </Box>\n );\n },\n);\n\nBannerBase.displayName = 'BannerBase';\n"]}
1
+ {"version":3,"file":"BannerBase.mjs","sourceRoot":"","sources":["../../../src/components/BannerBase/BannerBase.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACZ,gDAAgD;AACjD,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAI/B,MAAM,aAAa,GAAG,CAAC,OAAwB,EAA8B,EAAE,CAC7E,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ,CAAC;AAE7D,MAAM,UAAU,GAAG,CAAC,OAAwB,EAAE,EAAE,CAC9C,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,KAAK,EACL,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,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C,OAAO,EAAE,WAAW,CAAC,MAAM,KAAM,gBAAgB,IACpD,WAAW,CACP,CACR,CAAC,CAAC,CAAC,CACF,WAAW,CACZ,CACG,CACP;YAEA,UAAU,CAAC,QAAQ,CAAC;gBACnB,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CACzB,oBAAC,IAAI,IAAC,OAAO,EAAE,WAAW,CAAC,MAAM,KAAM,oBAAoB,IACxD,QAAQ,CACJ,CACR,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CAAC;YAEH,sBAAsB,IAAI,CACzB,oBAAC,GAAG,IAAC,SAAS,EAAC,MAAM;gBACnB,oBAAC,MAAM,IACL,IAAI,EAAE,UAAU,CAAC,EAAE,EACnB,OAAO,EAAE,mBAAmB,KACxB,yBAAyB,IAE5B,iBAAiB,CACX,CACL,CACP,CACG;QAEL,qBAAqB,IAAI,CACxB,oBAAC,UAAU,IACT,SAAS,EAAE,OAAO,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,EAC3D,QAAQ,EAAE,QAAQ,CAAC,KAAK,EACxB,IAAI,EAAE,cAAc,CAAC,EAAE,EACvB,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,OAAO,IAAI,uBAAuB,KACvC,wBAAwB,GAC5B,CACH,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxBackgroundColor,\n BoxFlexDirection,\n ButtonIconSize,\n ButtonSize,\n FontWeight,\n IconName,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { ButtonIcon } from '../ButtonIcon';\nimport { Text } from '../Text';\n\nimport type { BannerBaseProps } from './BannerBase.types';\n\nconst isTextContent = (content: React.ReactNode): content is string | number =>\n typeof content === 'string' || typeof content === 'number';\n\nconst hasContent = (content: React.ReactNode) =>\n content !== null && content !== undefined;\n\nexport const BannerBase = forwardRef<HTMLDivElement, BannerBaseProps>(\n (\n {\n title,\n titleProps,\n description,\n descriptionProps,\n children,\n childrenWrapperProps,\n actionButtonLabel,\n actionButtonOnClick,\n actionButtonProps,\n startAccessory,\n onClose,\n closeButtonProps,\n className,\n ...props\n },\n ref,\n ) => {\n const resolvedActionButtonProps = actionButtonProps ?? {};\n\n const {\n ariaLabel: closeButtonAriaLabel = 'Close banner',\n onClick: closeButtonPropsOnClick,\n className: closeButtonClassName,\n ...resolvedCloseButtonProps\n } = closeButtonProps ?? {};\n\n const shouldShowCloseButton = Boolean(onClose || closeButtonProps);\n const shouldShowActionButton = Boolean(actionButtonOnClick);\n\n return (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Start}\n gap={2}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n padding={3}\n className={twMerge('rounded-sm', className)}\n {...props}\n >\n {startAccessory}\n\n <Box className=\"min-w-0 flex-1\">\n {hasContent(title) &&\n (isTextContent(title) ? (\n <Text\n variant={TextVariant.BodyMd}\n fontWeight={FontWeight.Medium}\n {...titleProps}\n >\n {title}\n </Text>\n ) : (\n title\n ))}\n\n {hasContent(description) && (\n <Box className={hasContent(title) ? 'mt-1' : undefined}>\n {isTextContent(description) ? (\n <Text variant={TextVariant.BodySm} {...descriptionProps}>\n {description}\n </Text>\n ) : (\n description\n )}\n </Box>\n )}\n\n {hasContent(children) &&\n (isTextContent(children) ? (\n <Text variant={TextVariant.BodyMd} {...childrenWrapperProps}>\n {children}\n </Text>\n ) : (\n children\n ))}\n\n {shouldShowActionButton && (\n <Box className=\"mt-4\">\n <Button\n size={ButtonSize.Md}\n onClick={actionButtonOnClick}\n {...resolvedActionButtonProps}\n >\n {actionButtonLabel}\n </Button>\n </Box>\n )}\n </Box>\n\n {shouldShowCloseButton && (\n <ButtonIcon\n className={twMerge('ml-3 self-start', closeButtonClassName)}\n iconName={IconName.Close}\n size={ButtonIconSize.Sm}\n ariaLabel={closeButtonAriaLabel}\n onClick={onClose ?? closeButtonPropsOnClick}\n {...resolvedCloseButtonProps}\n />\n )}\n </Box>\n );\n },\n);\n\nBannerBase.displayName = 'BannerBase';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Box.constants.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,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;AAEW,QAAA,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,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;CACX,CAAC;AAEW,QAAA,yBAAyB,GAA+B;IACnE,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,E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EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEW,QAAA,+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;AAEW,QAAA,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.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":";;;AAKa,QAAA,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;AAEW,QAAA,qBAAqB,GAA+B;IAC/D,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC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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;AAEW,QAAA,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;AAEW,QAAA,+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;AAEW,QAAA,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,4 +1,4 @@
1
- import type { BoxSpacing, BoxBorderWidth } from "../../types/index.cjs";
1
+ import type { BoxSpacing, BoxBorderWidth } from "@metamask-previews/design-system-shared";
2
2
  export declare const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string>;
3
3
  export declare const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string>;
4
4
  export declare const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"Box.constants.d.cts","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,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcvE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,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,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcpE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcxE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CActE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAMtE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BoxSpacing, BoxBorderWidth } from "../../types/index.mjs";
1
+ import type { BoxSpacing, BoxBorderWidth } from "@metamask-previews/design-system-shared";
2
2
  export declare const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string>;
3
3
  export declare const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string>;
4
4
  export declare const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string>;