@metamask-previews/design-system-react 0.24.0-preview.f5c2542 → 0.27.0-preview.0a4d6f8

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 (306) hide show
  1. package/CHANGELOG.md +42 -1
  2. package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
  3. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  4. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  5. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  6. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +1 -1
  7. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +1 -1
  9. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  10. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +2 -2
  11. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  12. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +2 -2
  13. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  14. package/dist/components/AvatarNetwork/AvatarNetwork.cjs +2 -3
  15. package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
  16. package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
  17. package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
  18. package/dist/components/AvatarNetwork/AvatarNetwork.mjs +2 -3
  19. package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
  20. package/dist/components/AvatarNetwork/index.cjs +2 -2
  21. package/dist/components/AvatarNetwork/index.cjs.map +1 -1
  22. package/dist/components/AvatarNetwork/index.d.cts +1 -1
  23. package/dist/components/AvatarNetwork/index.d.cts.map +1 -1
  24. package/dist/components/AvatarNetwork/index.d.mts +1 -1
  25. package/dist/components/AvatarNetwork/index.d.mts.map +1 -1
  26. package/dist/components/AvatarNetwork/index.mjs +1 -1
  27. package/dist/components/AvatarNetwork/index.mjs.map +1 -1
  28. package/dist/components/AvatarToken/AvatarToken.cjs +2 -2
  29. package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
  30. package/dist/components/AvatarToken/AvatarToken.mjs +2 -2
  31. package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
  32. package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
  33. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  34. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -9
  35. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  36. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +1 -2
  37. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  38. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +1 -2
  39. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  40. package/dist/components/BannerAlert/BannerAlert.constants.mjs +1 -2
  41. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  42. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  43. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  44. package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
  45. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  46. package/dist/components/FormTextField/FormTextField.cjs +38 -0
  47. package/dist/components/FormTextField/FormTextField.cjs.map +1 -0
  48. package/dist/components/FormTextField/FormTextField.d.cts +4 -0
  49. package/dist/components/FormTextField/FormTextField.d.cts.map +1 -0
  50. package/dist/components/FormTextField/FormTextField.d.mts +4 -0
  51. package/dist/components/FormTextField/FormTextField.d.mts.map +1 -0
  52. package/dist/components/FormTextField/FormTextField.mjs +19 -0
  53. package/dist/components/FormTextField/FormTextField.mjs.map +1 -0
  54. package/dist/components/FormTextField/FormTextField.types.cjs +3 -0
  55. package/dist/components/FormTextField/FormTextField.types.cjs.map +1 -0
  56. package/dist/components/FormTextField/FormTextField.types.d.cts +50 -0
  57. package/dist/components/FormTextField/FormTextField.types.d.cts.map +1 -0
  58. package/dist/components/FormTextField/FormTextField.types.d.mts +50 -0
  59. package/dist/components/FormTextField/FormTextField.types.d.mts.map +1 -0
  60. package/dist/components/FormTextField/FormTextField.types.mjs +2 -0
  61. package/dist/components/FormTextField/FormTextField.types.mjs.map +1 -0
  62. package/dist/components/FormTextField/index.cjs +6 -0
  63. package/dist/components/FormTextField/index.cjs.map +1 -0
  64. package/dist/components/FormTextField/index.d.cts +3 -0
  65. package/dist/components/FormTextField/index.d.cts.map +1 -0
  66. package/dist/components/FormTextField/index.d.mts +3 -0
  67. package/dist/components/FormTextField/index.d.mts.map +1 -0
  68. package/dist/components/FormTextField/index.mjs +2 -0
  69. package/dist/components/FormTextField/index.mjs.map +1 -0
  70. package/dist/components/Icon/Icon.cjs +2 -2
  71. package/dist/components/Icon/Icon.cjs.map +1 -1
  72. package/dist/components/Icon/Icon.constants.cjs +6 -6
  73. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  74. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  75. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  76. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  77. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  78. package/dist/components/Icon/Icon.constants.mjs +1 -1
  79. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  80. package/dist/components/Icon/Icon.d.cts.map +1 -1
  81. package/dist/components/Icon/Icon.d.mts.map +1 -1
  82. package/dist/components/Icon/Icon.mjs +1 -1
  83. package/dist/components/Icon/Icon.mjs.map +1 -1
  84. package/dist/components/Icon/icons/Trophy.cjs +32 -0
  85. package/dist/components/Icon/icons/Trophy.cjs.map +1 -0
  86. package/dist/components/Icon/icons/Trophy.d.cts +4 -0
  87. package/dist/components/Icon/icons/Trophy.d.cts.map +1 -0
  88. package/dist/components/Icon/icons/Trophy.d.mts +4 -0
  89. package/dist/components/Icon/icons/Trophy.d.mts.map +1 -0
  90. package/dist/components/Icon/icons/Trophy.mjs +7 -0
  91. package/dist/components/Icon/icons/Trophy.mjs.map +1 -0
  92. package/dist/components/Icon/icons/index.cjs +2 -0
  93. package/dist/components/Icon/icons/index.cjs.map +1 -1
  94. package/dist/components/Icon/icons/index.d.cts +1 -0
  95. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  96. package/dist/components/Icon/icons/index.d.mts +1 -0
  97. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  98. package/dist/components/Icon/icons/index.mjs +2 -0
  99. package/dist/components/Icon/icons/index.mjs.map +1 -1
  100. package/dist/components/Icon/index.cjs +4 -4
  101. package/dist/components/Icon/index.cjs.map +1 -1
  102. package/dist/components/Icon/index.d.cts +1 -1
  103. package/dist/components/Icon/index.d.cts.map +1 -1
  104. package/dist/components/Icon/index.d.mts +1 -1
  105. package/dist/components/Icon/index.d.mts.map +1 -1
  106. package/dist/components/Icon/index.mjs +1 -1
  107. package/dist/components/Icon/index.mjs.map +1 -1
  108. package/dist/components/Popover/Popover.cjs +129 -0
  109. package/dist/components/Popover/Popover.cjs.map +1 -0
  110. package/dist/components/Popover/Popover.constants.cjs +28 -0
  111. package/dist/components/Popover/Popover.constants.cjs.map +1 -0
  112. package/dist/components/Popover/Popover.constants.d.cts +12 -0
  113. package/dist/components/Popover/Popover.constants.d.cts.map +1 -0
  114. package/dist/components/Popover/Popover.constants.d.mts +12 -0
  115. package/dist/components/Popover/Popover.constants.d.mts.map +1 -0
  116. package/dist/components/Popover/Popover.constants.mjs +25 -0
  117. package/dist/components/Popover/Popover.constants.mjs.map +1 -0
  118. package/dist/components/Popover/Popover.d.cts +4 -0
  119. package/dist/components/Popover/Popover.d.cts.map +1 -0
  120. package/dist/components/Popover/Popover.d.mts +4 -0
  121. package/dist/components/Popover/Popover.d.mts.map +1 -0
  122. package/dist/components/Popover/Popover.mjs +110 -0
  123. package/dist/components/Popover/Popover.mjs.map +1 -0
  124. package/dist/components/Popover/Popover.types.cjs +33 -0
  125. package/dist/components/Popover/Popover.types.cjs.map +1 -0
  126. package/dist/components/Popover/Popover.types.d.cts +128 -0
  127. package/dist/components/Popover/Popover.types.d.cts.map +1 -0
  128. package/dist/components/Popover/Popover.types.d.mts +128 -0
  129. package/dist/components/Popover/Popover.types.d.mts.map +1 -0
  130. package/dist/components/Popover/Popover.types.mjs +30 -0
  131. package/dist/components/Popover/Popover.types.mjs.map +1 -0
  132. package/dist/components/Popover/index.cjs +9 -0
  133. package/dist/components/Popover/index.cjs.map +1 -0
  134. package/dist/components/Popover/index.d.cts +4 -0
  135. package/dist/components/Popover/index.d.cts.map +1 -0
  136. package/dist/components/Popover/index.d.mts +4 -0
  137. package/dist/components/Popover/index.d.mts.map +1 -0
  138. package/dist/components/Popover/index.mjs +3 -0
  139. package/dist/components/Popover/index.mjs.map +1 -0
  140. package/dist/components/Tag/Tag.cjs +51 -0
  141. package/dist/components/Tag/Tag.cjs.map +1 -0
  142. package/dist/components/Tag/Tag.constants.cjs +26 -0
  143. package/dist/components/Tag/Tag.constants.cjs.map +1 -0
  144. package/dist/components/Tag/Tag.constants.d.cts +5 -0
  145. package/dist/components/Tag/Tag.constants.d.cts.map +1 -0
  146. package/dist/components/Tag/Tag.constants.d.mts +5 -0
  147. package/dist/components/Tag/Tag.constants.d.mts.map +1 -0
  148. package/dist/components/Tag/Tag.constants.mjs +23 -0
  149. package/dist/components/Tag/Tag.constants.mjs.map +1 -0
  150. package/dist/components/Tag/Tag.d.cts +4 -0
  151. package/dist/components/Tag/Tag.d.cts.map +1 -0
  152. package/dist/components/Tag/Tag.d.mts +4 -0
  153. package/dist/components/Tag/Tag.d.mts.map +1 -0
  154. package/dist/components/Tag/Tag.mjs +32 -0
  155. package/dist/components/Tag/Tag.mjs.map +1 -0
  156. package/dist/components/Tag/Tag.types.cjs +3 -0
  157. package/dist/components/Tag/Tag.types.cjs.map +1 -0
  158. package/dist/components/Tag/Tag.types.d.cts +31 -0
  159. package/dist/components/Tag/Tag.types.d.cts.map +1 -0
  160. package/dist/components/Tag/Tag.types.d.mts +31 -0
  161. package/dist/components/Tag/Tag.types.d.mts.map +1 -0
  162. package/dist/components/Tag/Tag.types.mjs +2 -0
  163. package/dist/components/Tag/Tag.types.mjs.map +1 -0
  164. package/dist/components/Tag/index.cjs +8 -0
  165. package/dist/components/Tag/index.cjs.map +1 -0
  166. package/dist/components/Tag/index.d.cts +4 -0
  167. package/dist/components/Tag/index.d.cts.map +1 -0
  168. package/dist/components/Tag/index.d.mts +4 -0
  169. package/dist/components/Tag/index.d.mts.map +1 -0
  170. package/dist/components/Tag/index.mjs +3 -0
  171. package/dist/components/Tag/index.mjs.map +1 -0
  172. package/dist/components/TextArea/TextArea.cjs +37 -0
  173. package/dist/components/TextArea/TextArea.cjs.map +1 -0
  174. package/dist/components/TextArea/TextArea.constants.cjs +35 -0
  175. package/dist/components/TextArea/TextArea.constants.cjs.map +1 -0
  176. package/dist/components/TextArea/TextArea.constants.d.cts +28 -0
  177. package/dist/components/TextArea/TextArea.constants.d.cts.map +1 -0
  178. package/dist/components/TextArea/TextArea.constants.d.mts +28 -0
  179. package/dist/components/TextArea/TextArea.constants.d.mts.map +1 -0
  180. package/dist/components/TextArea/TextArea.constants.mjs +32 -0
  181. package/dist/components/TextArea/TextArea.constants.mjs.map +1 -0
  182. package/dist/components/TextArea/TextArea.d.cts +9 -0
  183. package/dist/components/TextArea/TextArea.d.cts.map +1 -0
  184. package/dist/components/TextArea/TextArea.d.mts +9 -0
  185. package/dist/components/TextArea/TextArea.d.mts.map +1 -0
  186. package/dist/components/TextArea/TextArea.mjs +18 -0
  187. package/dist/components/TextArea/TextArea.mjs.map +1 -0
  188. package/dist/components/TextArea/TextArea.types.cjs +3 -0
  189. package/dist/components/TextArea/TextArea.types.cjs.map +1 -0
  190. package/dist/components/TextArea/TextArea.types.d.cts +33 -0
  191. package/dist/components/TextArea/TextArea.types.d.cts.map +1 -0
  192. package/dist/components/TextArea/TextArea.types.d.mts +33 -0
  193. package/dist/components/TextArea/TextArea.types.d.mts.map +1 -0
  194. package/dist/components/TextArea/TextArea.types.mjs +2 -0
  195. package/dist/components/TextArea/TextArea.types.mjs.map +1 -0
  196. package/dist/components/TextArea/index.cjs +8 -0
  197. package/dist/components/TextArea/index.cjs.map +1 -0
  198. package/dist/components/TextArea/index.d.cts +4 -0
  199. package/dist/components/TextArea/index.d.cts.map +1 -0
  200. package/dist/components/TextArea/index.d.mts +4 -0
  201. package/dist/components/TextArea/index.d.mts.map +1 -0
  202. package/dist/components/TextArea/index.mjs +3 -0
  203. package/dist/components/TextArea/index.mjs.map +1 -0
  204. package/dist/components/TextButton/TextButton.cjs +7 -28
  205. package/dist/components/TextButton/TextButton.cjs.map +1 -1
  206. package/dist/components/TextButton/TextButton.d.cts.map +1 -1
  207. package/dist/components/TextButton/TextButton.d.mts.map +1 -1
  208. package/dist/components/TextButton/TextButton.mjs +7 -28
  209. package/dist/components/TextButton/TextButton.mjs.map +1 -1
  210. package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
  211. package/dist/components/TextButton/TextButton.types.d.cts +9 -25
  212. package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
  213. package/dist/components/TextButton/TextButton.types.d.mts +9 -25
  214. package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
  215. package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
  216. package/dist/components/TextButton/index.cjs +1 -3
  217. package/dist/components/TextButton/index.cjs.map +1 -1
  218. package/dist/components/TextButton/index.d.cts +0 -1
  219. package/dist/components/TextButton/index.d.cts.map +1 -1
  220. package/dist/components/TextButton/index.d.mts +0 -1
  221. package/dist/components/TextButton/index.d.mts.map +1 -1
  222. package/dist/components/TextButton/index.mjs +0 -1
  223. package/dist/components/TextButton/index.mjs.map +1 -1
  224. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +40 -0
  225. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -0
  226. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +6 -0
  227. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -0
  228. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +6 -0
  229. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -0
  230. package/dist/components/TextFieldSearch/TextFieldSearch.mjs +21 -0
  231. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -0
  232. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs +3 -0
  233. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -0
  234. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +17 -0
  235. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -0
  236. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +17 -0
  237. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -0
  238. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs +2 -0
  239. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -0
  240. package/dist/components/TextFieldSearch/index.cjs +6 -0
  241. package/dist/components/TextFieldSearch/index.cjs.map +1 -0
  242. package/dist/components/TextFieldSearch/index.d.cts +3 -0
  243. package/dist/components/TextFieldSearch/index.d.cts.map +1 -0
  244. package/dist/components/TextFieldSearch/index.d.mts +3 -0
  245. package/dist/components/TextFieldSearch/index.d.mts.map +1 -0
  246. package/dist/components/TextFieldSearch/index.mjs +2 -0
  247. package/dist/components/TextFieldSearch/index.mjs.map +1 -0
  248. package/dist/components/Toast/Toast.cjs +8 -3
  249. package/dist/components/Toast/Toast.cjs.map +1 -1
  250. package/dist/components/Toast/Toast.constants.cjs +12 -11
  251. package/dist/components/Toast/Toast.constants.cjs.map +1 -1
  252. package/dist/components/Toast/Toast.constants.d.cts +1 -3
  253. package/dist/components/Toast/Toast.constants.d.cts.map +1 -1
  254. package/dist/components/Toast/Toast.constants.d.mts +1 -3
  255. package/dist/components/Toast/Toast.constants.d.mts.map +1 -1
  256. package/dist/components/Toast/Toast.constants.mjs +4 -5
  257. package/dist/components/Toast/Toast.constants.mjs.map +1 -1
  258. package/dist/components/Toast/Toast.d.cts.map +1 -1
  259. package/dist/components/Toast/Toast.d.mts.map +1 -1
  260. package/dist/components/Toast/Toast.mjs +8 -3
  261. package/dist/components/Toast/Toast.mjs.map +1 -1
  262. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  263. package/dist/components/Toast/Toast.types.d.cts +4 -0
  264. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  265. package/dist/components/Toast/Toast.types.d.mts +4 -0
  266. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  267. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  268. package/dist/components/Toast/Toaster.cjs +124 -54
  269. package/dist/components/Toast/Toaster.cjs.map +1 -1
  270. package/dist/components/Toast/Toaster.d.cts.map +1 -1
  271. package/dist/components/Toast/Toaster.d.mts.map +1 -1
  272. package/dist/components/Toast/Toaster.mjs +125 -55
  273. package/dist/components/Toast/Toaster.mjs.map +1 -1
  274. package/dist/components/Toast/index.cjs +1 -4
  275. package/dist/components/Toast/index.cjs.map +1 -1
  276. package/dist/components/Toast/index.d.cts +1 -2
  277. package/dist/components/Toast/index.d.cts.map +1 -1
  278. package/dist/components/Toast/index.d.mts +1 -2
  279. package/dist/components/Toast/index.d.mts.map +1 -1
  280. package/dist/components/Toast/index.mjs +0 -1
  281. package/dist/components/Toast/index.mjs.map +1 -1
  282. package/dist/components/index.cjs +16 -5
  283. package/dist/components/index.cjs.map +1 -1
  284. package/dist/components/index.d.cts +12 -3
  285. package/dist/components/index.d.cts.map +1 -1
  286. package/dist/components/index.d.mts +12 -3
  287. package/dist/components/index.d.mts.map +1 -1
  288. package/dist/components/index.mjs +6 -2
  289. package/dist/components/index.mjs.map +1 -1
  290. package/dist/types/index.cjs +2 -23
  291. package/dist/types/index.cjs.map +1 -1
  292. package/dist/types/index.d.cts +1 -14
  293. package/dist/types/index.d.cts.map +1 -1
  294. package/dist/types/index.d.mts +1 -14
  295. package/dist/types/index.d.mts.map +1 -1
  296. package/dist/types/index.mjs +1 -15
  297. package/dist/types/index.mjs.map +1 -1
  298. package/package.json +8 -5
  299. package/dist/components/TextButton/TextButton.constants.cjs +0 -12
  300. package/dist/components/TextButton/TextButton.constants.cjs.map +0 -1
  301. package/dist/components/TextButton/TextButton.constants.d.cts +0 -4
  302. package/dist/components/TextButton/TextButton.constants.d.cts.map +0 -1
  303. package/dist/components/TextButton/TextButton.constants.d.mts +0 -4
  304. package/dist/components/TextButton/TextButton.constants.d.mts.map +0 -1
  305. package/dist/components/TextButton/TextButton.constants.mjs +0 -9
  306. package/dist/components/TextButton/TextButton.constants.mjs.map +0 -1
@@ -1 +1 @@
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"]}
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,EACd,SAAS,EACT,QAAQ,EACT,gDAAgD;AAEjD,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 IconColor,\n IconName,\n} from '@metamask-previews/design-system-shared';\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 +1 @@
1
- {"version":3,"file":"BannerAlert.d.cts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAC9E,OAAO,KAAqB,cAAc;AAe1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA8BvB,CAAC"}
1
+ {"version":3,"file":"BannerAlert.d.cts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,gDAAgD;AACxF,OAAO,KAAqB,cAAc;AAc1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA8BvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.d.mts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAC9E,OAAO,KAAqB,cAAc;AAe1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA8BvB,CAAC"}
1
+ {"version":3,"file":"BannerAlert.d.mts","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,gDAAgD;AACxF,OAAO,KAAqB,cAAc;AAc1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA8BvB,CAAC"}
@@ -4,10 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { BannerAlertSeverity } from "@metamask-previews/design-system-shared";
7
+ import { BannerAlertSeverity, IconSize } from "@metamask-previews/design-system-shared";
8
8
  import $React, { forwardRef } from "react";
9
9
  const React = $importDefault($React);
10
- import { IconSize } from "../../types/index.mjs";
11
10
  import { twMerge } from "../../utils/tw-merge.mjs";
12
11
  import { BannerBase } from "../BannerBase/index.mjs";
13
12
  import { Icon } from "../Icon/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"BannerAlert.mjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,gDAAgD;AAC9E,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AACvC,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAE/B,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,oCAAoC,EACpC,mCAAmC,EACpC,oCAAgC;AAGjC,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CACE,EAAE,QAAQ,GAAG,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACvE,GAAG,EACH,EAAE;IACF,MAAM,QAAQ,GAAG,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,oCAAoC,CAAC,QAAQ,CAAC,CAAC;IACjE,MAAM,eAAe,GACnB,0CAA0C,CAAC,QAAQ,CAAC,CAAC;IACvD,MAAM,gBAAgB,GAAG,sCAAsC,CAAC,QAAQ,CAAC,CAAC;IAC1E,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAE3E,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,cAAc,EACZ,oBAAC,IAAI,IACH,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,CAAC,EAAE,KACb,SAAS,GACb,EAEJ,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,CAAC,EACd,SAAS,EAAE,eAAe,KACtB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import { BannerAlertSeverity } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { IconSize } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\nimport { BannerBase } from '../BannerBase';\nimport { Icon } from '../Icon';\n\nimport {\n MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR,\n MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR,\n MAP_BANNER_ALERT_SEVERITY_ICON_COLOR,\n MAP_BANNER_ALERT_SEVERITY_ICON_NAME,\n} from './BannerAlert.constants';\nimport type { BannerAlertProps } from './BannerAlert.types';\n\nexport const BannerAlert = forwardRef<HTMLDivElement, BannerAlertProps>(\n (\n { severity = BannerAlertSeverity.Info, iconProps, className, ...props },\n ref,\n ) => {\n const iconName = MAP_BANNER_ALERT_SEVERITY_ICON_NAME[severity];\n const iconColor = MAP_BANNER_ALERT_SEVERITY_ICON_COLOR[severity];\n const backgroundColor =\n MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR[severity];\n const borderColorClass = MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR[severity];\n const mergedClassName = twMerge('border-l-4', borderColorClass, className);\n\n return (\n <BannerBase\n ref={ref}\n startAccessory={\n <Icon\n name={iconName}\n color={iconColor}\n size={IconSize.Lg}\n {...iconProps}\n />\n }\n backgroundColor={backgroundColor}\n paddingLeft={2}\n className={mergedClassName}\n {...props}\n />\n );\n },\n);\n\nBannerAlert.displayName = 'BannerAlert';\n"]}
1
+ {"version":3,"file":"BannerAlert.mjs","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAE/B,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,oCAAoC,EACpC,mCAAmC,EACpC,oCAAgC;AAGjC,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CACE,EAAE,QAAQ,GAAG,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EACvE,GAAG,EACH,EAAE;IACF,MAAM,QAAQ,GAAG,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,oCAAoC,CAAC,QAAQ,CAAC,CAAC;IACjE,MAAM,eAAe,GACnB,0CAA0C,CAAC,QAAQ,CAAC,CAAC;IACvD,MAAM,gBAAgB,GAAG,sCAAsC,CAAC,QAAQ,CAAC,CAAC;IAC1E,MAAM,eAAe,GAAG,OAAO,CAAC,YAAY,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAE3E,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,cAAc,EACZ,oBAAC,IAAI,IACH,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,CAAC,EAAE,KACb,SAAS,GACb,EAEJ,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,CAAC,EACd,SAAS,EAAE,eAAe,KACtB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import { BannerAlertSeverity, IconSize } from '@metamask-previews/design-system-shared';\nimport React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { BannerBase } from '../BannerBase';\nimport { Icon } from '../Icon';\n\nimport {\n MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR,\n MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR,\n MAP_BANNER_ALERT_SEVERITY_ICON_COLOR,\n MAP_BANNER_ALERT_SEVERITY_ICON_NAME,\n} from './BannerAlert.constants';\nimport type { BannerAlertProps } from './BannerAlert.types';\n\nexport const BannerAlert = forwardRef<HTMLDivElement, BannerAlertProps>(\n (\n { severity = BannerAlertSeverity.Info, iconProps, className, ...props },\n ref,\n ) => {\n const iconName = MAP_BANNER_ALERT_SEVERITY_ICON_NAME[severity];\n const iconColor = MAP_BANNER_ALERT_SEVERITY_ICON_COLOR[severity];\n const backgroundColor =\n MAP_BANNER_ALERT_SEVERITY_BACKGROUND_COLOR[severity];\n const borderColorClass = MAP_BANNER_ALERT_SEVERITY_BORDER_COLOR[severity];\n const mergedClassName = twMerge('border-l-4', borderColorClass, className);\n\n return (\n <BannerBase\n ref={ref}\n startAccessory={\n <Icon\n name={iconName}\n color={iconColor}\n size={IconSize.Lg}\n {...iconProps}\n />\n }\n backgroundColor={backgroundColor}\n paddingLeft={2}\n className={mergedClassName}\n {...props}\n />\n );\n },\n);\n\nBannerAlert.displayName = 'BannerAlert';\n"]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.FormTextField = void 0;
27
+ const react_1 = __importStar(require("react"));
28
+ const tw_merge_1 = require("../../utils/tw-merge.cjs");
29
+ const Box_1 = require("../Box/index.cjs");
30
+ const HelpText_1 = require("../HelpText/index.cjs");
31
+ const Label_1 = require("../Label/index.cjs");
32
+ const TextField_1 = require("../TextField/index.cjs");
33
+ exports.FormTextField = (0, react_1.forwardRef)(({ className, endAccessory, helpText, helpTextProps, id, inputElement, inputProps, inputRef, isDisabled, isError, isReadOnly, label, labelProps, maxLength, name, onBlur, onChange, onFocus, placeholder, required, size, startAccessory, style, textFieldProps, truncate, type, value, autoFocus, ...rest }, ref) => (react_1.default.createElement(Box_1.Box, { ref: ref, flexDirection: Box_1.BoxFlexDirection.Column, className: className, style: style, ...rest },
34
+ label && (react_1.default.createElement(Label_1.Label, { htmlFor: id, ...labelProps, className: (0, tw_merge_1.twMerge)('mb-1', labelProps?.className) }, label)),
35
+ react_1.default.createElement(TextField_1.TextField, { ...textFieldProps, autoFocus: autoFocus, endAccessory: endAccessory, id: id, inputElement: inputElement, inputProps: inputProps, inputRef: inputRef, isDisabled: isDisabled, isError: isError, isReadOnly: isReadOnly, maxLength: maxLength, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, placeholder: placeholder, required: required, size: size, startAccessory: startAccessory, truncate: truncate, type: type, value: value }),
36
+ helpText && (react_1.default.createElement(HelpText_1.HelpText, { severity: isError ? HelpText_1.HelpTextSeverity.Danger : undefined, ...helpTextProps, className: (0, tw_merge_1.twMerge)('mt-1', helpTextProps?.className) }, helpText)))));
37
+ exports.FormTextField.displayName = 'FormTextField';
38
+ //# sourceMappingURL=FormTextField.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.cjs","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,uDAA+C;AAC/C,0CAA+C;AAC/C,oDAAyD;AACzD,8CAAiC;AACjC,sDAAyC;AAI5B,QAAA,aAAa,GAAG,IAAA,kBAAU,EACrC,CACE,EACE,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,EAAE,EACF,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,OAAO,EACP,UAAU,EACV,KAAK,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,KAAK,EACL,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE,CAAC,CACH,8BAAC,SAAG,IACF,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,sBAAgB,CAAC,MAAM,EACtC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,KACR,IAAI;IAEP,KAAK,IAAI,CACR,8BAAC,aAAK,IACJ,OAAO,EAAE,EAAE,KACP,UAAU,EACd,SAAS,EAAE,IAAA,kBAAO,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,IAEhD,KAAK,CACA,CACT;IACD,8BAAC,qBAAS,OACJ,cAAc,EAClB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,GACZ;IACD,QAAQ,IAAI,CACX,8BAAC,mBAAQ,IACP,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,2BAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,KACnD,aAAa,EACjB,SAAS,EAAE,IAAA,kBAAO,EAAC,MAAM,EAAE,aAAa,EAAE,SAAS,CAAC,IAEnD,QAAQ,CACA,CACZ,CACG,CACP,CACF,CAAC;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box, BoxFlexDirection } from '../Box';\nimport { HelpText, HelpTextSeverity } from '../HelpText';\nimport { Label } from '../Label';\nimport { TextField } from '../TextField';\n\nimport type { FormTextFieldProps } from './FormTextField.types';\n\nexport const FormTextField = forwardRef<HTMLDivElement, FormTextFieldProps>(\n (\n {\n className,\n endAccessory,\n helpText,\n helpTextProps,\n id,\n inputElement,\n inputProps,\n inputRef,\n isDisabled,\n isError,\n isReadOnly,\n label,\n labelProps,\n maxLength,\n name,\n onBlur,\n onChange,\n onFocus,\n placeholder,\n required,\n size,\n startAccessory,\n style,\n textFieldProps,\n truncate,\n type,\n value,\n autoFocus,\n ...rest\n },\n ref,\n ) => (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Column}\n className={className}\n style={style}\n {...rest}\n >\n {label && (\n <Label\n htmlFor={id}\n {...labelProps}\n className={twMerge('mb-1', labelProps?.className)}\n >\n {label}\n </Label>\n )}\n <TextField\n {...textFieldProps}\n autoFocus={autoFocus}\n endAccessory={endAccessory}\n id={id}\n inputElement={inputElement}\n inputProps={inputProps}\n inputRef={inputRef}\n isDisabled={isDisabled}\n isError={isError}\n isReadOnly={isReadOnly}\n maxLength={maxLength}\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n placeholder={placeholder}\n required={required}\n size={size}\n startAccessory={startAccessory}\n truncate={truncate}\n type={type}\n value={value}\n />\n {helpText && (\n <HelpText\n severity={isError ? HelpTextSeverity.Danger : undefined}\n {...helpTextProps}\n className={twMerge('mt-1', helpTextProps?.className)}\n >\n {helpText}\n </HelpText>\n )}\n </Box>\n ),\n);\n\nFormTextField.displayName = 'FormTextField';\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { FormTextFieldProps } from "./FormTextField.types.cjs";
3
+ export declare const FormTextField: React.ForwardRefExoticComponent<FormTextFieldProps & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=FormTextField.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.d.cts","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAQ1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,2FAsFzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { FormTextFieldProps } from "./FormTextField.types.mjs";
3
+ export declare const FormTextField: React.ForwardRefExoticComponent<FormTextFieldProps & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=FormTextField.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.d.mts","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAQ1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,2FAsFzB,CAAC"}
@@ -0,0 +1,19 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $React, { forwardRef } from "react";
8
+ const React = $importDefault($React);
9
+ import { twMerge } from "../../utils/tw-merge.mjs";
10
+ import { Box, BoxFlexDirection } from "../Box/index.mjs";
11
+ import { HelpText, HelpTextSeverity } from "../HelpText/index.mjs";
12
+ import { Label } from "../Label/index.mjs";
13
+ import { TextField } from "../TextField/index.mjs";
14
+ export const FormTextField = forwardRef(({ className, endAccessory, helpText, helpTextProps, id, inputElement, inputProps, inputRef, isDisabled, isError, isReadOnly, label, labelProps, maxLength, name, onBlur, onChange, onFocus, placeholder, required, size, startAccessory, style, textFieldProps, truncate, type, value, autoFocus, ...rest }, ref) => (React.createElement(Box, { ref: ref, flexDirection: BoxFlexDirection.Column, className: className, style: style, ...rest },
15
+ label && (React.createElement(Label, { htmlFor: id, ...labelProps, className: twMerge('mb-1', labelProps?.className) }, label)),
16
+ React.createElement(TextField, { ...textFieldProps, autoFocus: autoFocus, endAccessory: endAccessory, id: id, inputElement: inputElement, inputProps: inputProps, inputRef: inputRef, isDisabled: isDisabled, isError: isError, isReadOnly: isReadOnly, maxLength: maxLength, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, placeholder: placeholder, required: required, size: size, startAccessory: startAccessory, truncate: truncate, type: type, value: value }),
17
+ helpText && (React.createElement(HelpText, { severity: isError ? HelpTextSeverity.Danger : undefined, ...helpTextProps, className: twMerge('mt-1', helpTextProps?.className) }, helpText)))));
18
+ FormTextField.displayName = 'FormTextField';
19
+ //# sourceMappingURL=FormTextField.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.mjs","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,QAAO,EAAE,UAAU,EAAE,cAAc;;AAE1C,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAC/C,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,yBAAe;AAC/C,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,8BAAoB;AACzD,OAAO,EAAE,KAAK,EAAE,2BAAiB;AACjC,OAAO,EAAE,SAAS,EAAE,+BAAqB;AAIzC,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CACrC,CACE,EACE,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,EAAE,EACF,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,OAAO,EACP,UAAU,EACV,KAAK,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,KAAK,EACL,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE,CAAC,CACH,oBAAC,GAAG,IACF,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,gBAAgB,CAAC,MAAM,EACtC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,KACR,IAAI;IAEP,KAAK,IAAI,CACR,oBAAC,KAAK,IACJ,OAAO,EAAE,EAAE,KACP,UAAU,EACd,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,IAEhD,KAAK,CACA,CACT;IACD,oBAAC,SAAS,OACJ,cAAc,EAClB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,GACZ;IACD,QAAQ,IAAI,CACX,oBAAC,QAAQ,IACP,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,KACnD,aAAa,EACjB,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,CAAC,IAEnD,QAAQ,CACA,CACZ,CACG,CACP,CACF,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\nimport { Box, BoxFlexDirection } from '../Box';\nimport { HelpText, HelpTextSeverity } from '../HelpText';\nimport { Label } from '../Label';\nimport { TextField } from '../TextField';\n\nimport type { FormTextFieldProps } from './FormTextField.types';\n\nexport const FormTextField = forwardRef<HTMLDivElement, FormTextFieldProps>(\n (\n {\n className,\n endAccessory,\n helpText,\n helpTextProps,\n id,\n inputElement,\n inputProps,\n inputRef,\n isDisabled,\n isError,\n isReadOnly,\n label,\n labelProps,\n maxLength,\n name,\n onBlur,\n onChange,\n onFocus,\n placeholder,\n required,\n size,\n startAccessory,\n style,\n textFieldProps,\n truncate,\n type,\n value,\n autoFocus,\n ...rest\n },\n ref,\n ) => (\n <Box\n ref={ref}\n flexDirection={BoxFlexDirection.Column}\n className={className}\n style={style}\n {...rest}\n >\n {label && (\n <Label\n htmlFor={id}\n {...labelProps}\n className={twMerge('mb-1', labelProps?.className)}\n >\n {label}\n </Label>\n )}\n <TextField\n {...textFieldProps}\n autoFocus={autoFocus}\n endAccessory={endAccessory}\n id={id}\n inputElement={inputElement}\n inputProps={inputProps}\n inputRef={inputRef}\n isDisabled={isDisabled}\n isError={isError}\n isReadOnly={isReadOnly}\n maxLength={maxLength}\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n placeholder={placeholder}\n required={required}\n size={size}\n startAccessory={startAccessory}\n truncate={truncate}\n type={type}\n value={value}\n />\n {helpText && (\n <HelpText\n severity={isError ? HelpTextSeverity.Danger : undefined}\n {...helpTextProps}\n className={twMerge('mt-1', helpTextProps?.className)}\n >\n {helpText}\n </HelpText>\n )}\n </Box>\n ),\n);\n\nFormTextField.displayName = 'FormTextField';\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FormTextField.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.types.cjs","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CSSProperties, ReactNode } from 'react';\n\nimport type { HelpTextProps } from '../HelpText';\nimport type { LabelProps } from '../Label';\nimport type { TextFieldProps } from '../TextField';\n\n/**\n * Props forwarded to the inner `TextField`. Omits every key that\n * `FormTextField` already owns at the top level — passing those via\n * `textFieldProps` would either be silently overridden by the explicit prop\n * or, in the case of `isError`, desynchronize the `TextField` from the\n * `HelpText` severity. `className` / `style` remain available here to style\n * the inner `TextField` (merged with its own defaults).\n */\ntype FormTextFieldInnerTextFieldProps = Omit<\n TextFieldProps,\n | 'autoFocus'\n | 'endAccessory'\n | 'id'\n | 'inputElement'\n | 'inputProps'\n | 'inputRef'\n | 'isDisabled'\n | 'isError'\n | 'isReadOnly'\n | 'maxLength'\n | 'name'\n | 'onBlur'\n | 'onChange'\n | 'onFocus'\n | 'placeholder'\n | 'required'\n | 'size'\n | 'startAccessory'\n | 'truncate'\n | 'type'\n | 'value'\n>;\n\ntype FormTextFieldBaseProps = Omit<TextFieldProps, 'className' | 'style'> & {\n /** Optional additional CSS classes for the root container. */\n className?: string;\n /** Optional inline styles for the root container. */\n style?: CSSProperties;\n /**\n * Help text rendered below the field. Renders with error styling when\n * `isError` is true.\n */\n helpText?: ReactNode;\n /** Additional props forwarded to the rendered `HelpText`. */\n helpTextProps?: Omit<HelpTextProps, 'severity' | 'children'>;\n /** Additional props forwarded to the inner `TextField`. */\n textFieldProps?: FormTextFieldInnerTextFieldProps;\n};\n\ntype FormTextFieldWithLabelProps = FormTextFieldBaseProps & {\n /**\n * Label rendered above the field. When set, `id` is required so the label\n * can be associated with the inner `<input>`.\n */\n label: ReactNode;\n /** Additional props forwarded to the rendered `Label`. */\n labelProps?: Omit<LabelProps, 'htmlFor' | 'children'>;\n /**\n * Required when `label` is provided. Used as the `htmlFor` target of the\n * label and the `id` of the inner `<input>`.\n */\n id: string;\n};\n\ntype FormTextFieldWithoutLabelProps = FormTextFieldBaseProps & {\n label?: never;\n labelProps?: never;\n id?: string;\n};\n\nexport type FormTextFieldProps =\n | FormTextFieldWithLabelProps\n | FormTextFieldWithoutLabelProps;\n"]}
@@ -0,0 +1,50 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ import type { HelpTextProps } from "../HelpText/index.cjs";
3
+ import type { LabelProps } from "../Label/index.cjs";
4
+ import type { TextFieldProps } from "../TextField/index.cjs";
5
+ /**
6
+ * Props forwarded to the inner `TextField`. Omits every key that
7
+ * `FormTextField` already owns at the top level — passing those via
8
+ * `textFieldProps` would either be silently overridden by the explicit prop
9
+ * or, in the case of `isError`, desynchronize the `TextField` from the
10
+ * `HelpText` severity. `className` / `style` remain available here to style
11
+ * the inner `TextField` (merged with its own defaults).
12
+ */
13
+ type FormTextFieldInnerTextFieldProps = Omit<TextFieldProps, 'autoFocus' | 'endAccessory' | 'id' | 'inputElement' | 'inputProps' | 'inputRef' | 'isDisabled' | 'isError' | 'isReadOnly' | 'maxLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'placeholder' | 'required' | 'size' | 'startAccessory' | 'truncate' | 'type' | 'value'>;
14
+ type FormTextFieldBaseProps = Omit<TextFieldProps, 'className' | 'style'> & {
15
+ /** Optional additional CSS classes for the root container. */
16
+ className?: string;
17
+ /** Optional inline styles for the root container. */
18
+ style?: CSSProperties;
19
+ /**
20
+ * Help text rendered below the field. Renders with error styling when
21
+ * `isError` is true.
22
+ */
23
+ helpText?: ReactNode;
24
+ /** Additional props forwarded to the rendered `HelpText`. */
25
+ helpTextProps?: Omit<HelpTextProps, 'severity' | 'children'>;
26
+ /** Additional props forwarded to the inner `TextField`. */
27
+ textFieldProps?: FormTextFieldInnerTextFieldProps;
28
+ };
29
+ type FormTextFieldWithLabelProps = FormTextFieldBaseProps & {
30
+ /**
31
+ * Label rendered above the field. When set, `id` is required so the label
32
+ * can be associated with the inner `<input>`.
33
+ */
34
+ label: ReactNode;
35
+ /** Additional props forwarded to the rendered `Label`. */
36
+ labelProps?: Omit<LabelProps, 'htmlFor' | 'children'>;
37
+ /**
38
+ * Required when `label` is provided. Used as the `htmlFor` target of the
39
+ * label and the `id` of the inner `<input>`.
40
+ */
41
+ id: string;
42
+ };
43
+ type FormTextFieldWithoutLabelProps = FormTextFieldBaseProps & {
44
+ label?: never;
45
+ labelProps?: never;
46
+ id?: string;
47
+ };
48
+ export type FormTextFieldProps = FormTextFieldWithLabelProps | FormTextFieldWithoutLabelProps;
49
+ export {};
50
+ //# sourceMappingURL=FormTextField.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.types.d.cts","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,8BAAoB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,2BAAiB;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,+BAAqB;AAEnD;;;;;;;GAOG;AACH,KAAK,gCAAgC,GAAG,IAAI,CAC1C,cAAc,EACZ,WAAW,GACX,cAAc,GACd,IAAI,GACJ,cAAc,GACd,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,WAAW,GACX,MAAM,GACN,QAAQ,GACR,UAAU,GACV,SAAS,GACT,aAAa,GACb,UAAU,GACV,MAAM,GACN,gBAAgB,GAChB,UAAU,GACV,MAAM,GACN,OAAO,CACV,CAAC;AAEF,KAAK,sBAAsB,GAAG,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IAC1E,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IAC7D,2DAA2D;IAC3D,cAAc,CAAC,EAAE,gCAAgC,CAAC;CACnD,CAAC;AAEF,KAAK,2BAA2B,GAAG,sBAAsB,GAAG;IAC1D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IACtD;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,8BAA8B,GAAG,sBAAsB,GAAG;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,2BAA2B,GAC3B,8BAA8B,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ import type { HelpTextProps } from "../HelpText/index.mjs";
3
+ import type { LabelProps } from "../Label/index.mjs";
4
+ import type { TextFieldProps } from "../TextField/index.mjs";
5
+ /**
6
+ * Props forwarded to the inner `TextField`. Omits every key that
7
+ * `FormTextField` already owns at the top level — passing those via
8
+ * `textFieldProps` would either be silently overridden by the explicit prop
9
+ * or, in the case of `isError`, desynchronize the `TextField` from the
10
+ * `HelpText` severity. `className` / `style` remain available here to style
11
+ * the inner `TextField` (merged with its own defaults).
12
+ */
13
+ type FormTextFieldInnerTextFieldProps = Omit<TextFieldProps, 'autoFocus' | 'endAccessory' | 'id' | 'inputElement' | 'inputProps' | 'inputRef' | 'isDisabled' | 'isError' | 'isReadOnly' | 'maxLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'placeholder' | 'required' | 'size' | 'startAccessory' | 'truncate' | 'type' | 'value'>;
14
+ type FormTextFieldBaseProps = Omit<TextFieldProps, 'className' | 'style'> & {
15
+ /** Optional additional CSS classes for the root container. */
16
+ className?: string;
17
+ /** Optional inline styles for the root container. */
18
+ style?: CSSProperties;
19
+ /**
20
+ * Help text rendered below the field. Renders with error styling when
21
+ * `isError` is true.
22
+ */
23
+ helpText?: ReactNode;
24
+ /** Additional props forwarded to the rendered `HelpText`. */
25
+ helpTextProps?: Omit<HelpTextProps, 'severity' | 'children'>;
26
+ /** Additional props forwarded to the inner `TextField`. */
27
+ textFieldProps?: FormTextFieldInnerTextFieldProps;
28
+ };
29
+ type FormTextFieldWithLabelProps = FormTextFieldBaseProps & {
30
+ /**
31
+ * Label rendered above the field. When set, `id` is required so the label
32
+ * can be associated with the inner `<input>`.
33
+ */
34
+ label: ReactNode;
35
+ /** Additional props forwarded to the rendered `Label`. */
36
+ labelProps?: Omit<LabelProps, 'htmlFor' | 'children'>;
37
+ /**
38
+ * Required when `label` is provided. Used as the `htmlFor` target of the
39
+ * label and the `id` of the inner `<input>`.
40
+ */
41
+ id: string;
42
+ };
43
+ type FormTextFieldWithoutLabelProps = FormTextFieldBaseProps & {
44
+ label?: never;
45
+ labelProps?: never;
46
+ id?: string;
47
+ };
48
+ export type FormTextFieldProps = FormTextFieldWithLabelProps | FormTextFieldWithoutLabelProps;
49
+ export {};
50
+ //# sourceMappingURL=FormTextField.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.types.d.mts","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,8BAAoB;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,2BAAiB;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,+BAAqB;AAEnD;;;;;;;GAOG;AACH,KAAK,gCAAgC,GAAG,IAAI,CAC1C,cAAc,EACZ,WAAW,GACX,cAAc,GACd,IAAI,GACJ,cAAc,GACd,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,WAAW,GACX,MAAM,GACN,QAAQ,GACR,UAAU,GACV,SAAS,GACT,aAAa,GACb,UAAU,GACV,MAAM,GACN,gBAAgB,GAChB,UAAU,GACV,MAAM,GACN,OAAO,CACV,CAAC;AAEF,KAAK,sBAAsB,GAAG,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IAC1E,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;IAC7D,2DAA2D;IAC3D,cAAc,CAAC,EAAE,gCAAgC,CAAC;CACnD,CAAC;AAEF,KAAK,2BAA2B,GAAG,sBAAsB,GAAG;IAC1D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC;IACtD;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,KAAK,8BAA8B,GAAG,sBAAsB,GAAG;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,2BAA2B,GAC3B,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FormTextField.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormTextField.types.mjs","sourceRoot":"","sources":["../../../src/components/FormTextField/FormTextField.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CSSProperties, ReactNode } from 'react';\n\nimport type { HelpTextProps } from '../HelpText';\nimport type { LabelProps } from '../Label';\nimport type { TextFieldProps } from '../TextField';\n\n/**\n * Props forwarded to the inner `TextField`. Omits every key that\n * `FormTextField` already owns at the top level — passing those via\n * `textFieldProps` would either be silently overridden by the explicit prop\n * or, in the case of `isError`, desynchronize the `TextField` from the\n * `HelpText` severity. `className` / `style` remain available here to style\n * the inner `TextField` (merged with its own defaults).\n */\ntype FormTextFieldInnerTextFieldProps = Omit<\n TextFieldProps,\n | 'autoFocus'\n | 'endAccessory'\n | 'id'\n | 'inputElement'\n | 'inputProps'\n | 'inputRef'\n | 'isDisabled'\n | 'isError'\n | 'isReadOnly'\n | 'maxLength'\n | 'name'\n | 'onBlur'\n | 'onChange'\n | 'onFocus'\n | 'placeholder'\n | 'required'\n | 'size'\n | 'startAccessory'\n | 'truncate'\n | 'type'\n | 'value'\n>;\n\ntype FormTextFieldBaseProps = Omit<TextFieldProps, 'className' | 'style'> & {\n /** Optional additional CSS classes for the root container. */\n className?: string;\n /** Optional inline styles for the root container. */\n style?: CSSProperties;\n /**\n * Help text rendered below the field. Renders with error styling when\n * `isError` is true.\n */\n helpText?: ReactNode;\n /** Additional props forwarded to the rendered `HelpText`. */\n helpTextProps?: Omit<HelpTextProps, 'severity' | 'children'>;\n /** Additional props forwarded to the inner `TextField`. */\n textFieldProps?: FormTextFieldInnerTextFieldProps;\n};\n\ntype FormTextFieldWithLabelProps = FormTextFieldBaseProps & {\n /**\n * Label rendered above the field. When set, `id` is required so the label\n * can be associated with the inner `<input>`.\n */\n label: ReactNode;\n /** Additional props forwarded to the rendered `Label`. */\n labelProps?: Omit<LabelProps, 'htmlFor' | 'children'>;\n /**\n * Required when `label` is provided. Used as the `htmlFor` target of the\n * label and the `id` of the inner `<input>`.\n */\n id: string;\n};\n\ntype FormTextFieldWithoutLabelProps = FormTextFieldBaseProps & {\n label?: never;\n labelProps?: never;\n id?: string;\n};\n\nexport type FormTextFieldProps =\n | FormTextFieldWithLabelProps\n | FormTextFieldWithoutLabelProps;\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormTextField = void 0;
4
+ var FormTextField_1 = require("./FormTextField.cjs");
5
+ Object.defineProperty(exports, "FormTextField", { enumerable: true, get: function () { return FormTextField_1.FormTextField; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/FormTextField/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { FormTextField } from './FormTextField';\nexport type { FormTextFieldProps } from './FormTextField.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { FormTextField } from "./FormTextField.cjs";
2
+ export type { FormTextFieldProps } from "./FormTextField.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/FormTextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,3 @@
1
+ export { FormTextField } from "./FormTextField.mjs";
2
+ export type { FormTextFieldProps } from "./FormTextField.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/FormTextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { FormTextField } from "./FormTextField.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/FormTextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { FormTextField } from './FormTextField';\nexport type { FormTextFieldProps } from './FormTextField.types';\n"]}
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Icon = void 0;
7
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
7
8
  const react_1 = __importDefault(require("react"));
8
- const types_1 = require("../../types/index.cjs");
9
9
  const tw_merge_1 = require("../../utils/tw-merge.cjs");
10
10
  const Icon_constants_1 = require("./Icon.constants.cjs");
11
11
  const icons_1 = require("./icons/index.cjs");
12
- const Icon = ({ name, size = types_1.IconSize.Md, color = types_1.IconColor.IconDefault, className, style, ...props }) => {
12
+ const Icon = ({ name, size = design_system_shared_1.IconSize.Md, color = design_system_shared_1.IconColor.IconDefault, className, style, ...props }) => {
13
13
  if (!name) {
14
14
  console.warn('Icon name is required');
15
15
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAAkD;AAClD,uDAA+C;AAE/C,yDAAkE;AAElE,6CAAgC;AAEzB,MAAM,IAAI,GAAwB,CAAC,EACxC,IAAI,EACJ,IAAI,GAAG,gBAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,iBAAS,CAAC,WAAW,EAC7B,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,aAAK,CAAC,IAAI,CAAC,CAAC;IAElC,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,aAAa,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,eAAe,GAAG,IAAA,kBAAO,EAC7B,cAAc,EACd,+CAA8B,CAAC,IAAI,CAAC,EACpC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,OAAO,CACL,8BAAC,aAAa,IACZ,SAAS,EAAE,eAAe,KACrB,KAAuC,EAC5C,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,IAAI,QAkCf","sourcesContent":["import React from 'react';\n\nimport { IconSize, IconColor } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\n\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\nimport { Icons } from './icons';\n\nexport const Icon: React.FC<IconProps> = ({\n name,\n size = IconSize.Md,\n color = IconColor.IconDefault,\n className,\n style,\n ...props\n}) => {\n if (!name) {\n console.warn('Icon name is required');\n return null;\n }\n\n const IconComponent = Icons[name];\n\n if (!IconComponent) {\n console.warn(`Icon \"${name}\" not found`);\n return null;\n }\n\n const mergedClassName = twMerge(\n 'inline-block',\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n color,\n className,\n );\n\n return (\n <IconComponent\n className={mergedClassName}\n {...(props as React.SVGProps<SVGSVGElement>)}\n style={style}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAA8E;AAC9E,kDAA0B;AAE1B,uDAA+C;AAE/C,yDAAkE;AAElE,6CAAgC;AAEzB,MAAM,IAAI,GAAwB,CAAC,EACxC,IAAI,EACJ,IAAI,GAAG,+BAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,gCAAS,CAAC,WAAW,EAC7B,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,aAAK,CAAC,IAAI,CAAC,CAAC;IAElC,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,aAAa,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,eAAe,GAAG,IAAA,kBAAO,EAC7B,cAAc,EACd,+CAA8B,CAAC,IAAI,CAAC,EACpC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,OAAO,CACL,8BAAC,aAAa,IACZ,SAAS,EAAE,eAAe,KACrB,KAAuC,EAC5C,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAlCW,QAAA,IAAI,QAkCf","sourcesContent":["import { IconSize, IconColor } from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\n\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\nimport { Icons } from './icons';\n\nexport const Icon: React.FC<IconProps> = ({\n name,\n size = IconSize.Md,\n color = IconColor.IconDefault,\n className,\n style,\n ...props\n}) => {\n if (!name) {\n console.warn('Icon name is required');\n return null;\n }\n\n const IconComponent = Icons[name];\n\n if (!IconComponent) {\n console.warn(`Icon \"${name}\" not found`);\n return null;\n }\n\n const mergedClassName = twMerge(\n 'inline-block',\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n color,\n className,\n );\n\n return (\n <IconComponent\n className={mergedClassName}\n {...(props as React.SVGProps<SVGSVGElement>)}\n style={style}\n />\n );\n};\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TWCLASSMAP_ICON_SIZE_DIMENSION = void 0;
4
- const types_1 = require("../../types/index.cjs");
4
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
5
  exports.TWCLASSMAP_ICON_SIZE_DIMENSION = {
6
- [types_1.IconSize.Xs]: 'w-3 h-3',
7
- [types_1.IconSize.Sm]: 'w-4 h-4',
8
- [types_1.IconSize.Md]: 'w-5 h-5',
9
- [types_1.IconSize.Lg]: 'w-6 h-6',
10
- [types_1.IconSize.Xl]: 'w-8 h-8', // 32px
6
+ [design_system_shared_1.IconSize.Xs]: 'w-3 h-3',
7
+ [design_system_shared_1.IconSize.Sm]: 'w-4 h-4',
8
+ [design_system_shared_1.IconSize.Md]: 'w-5 h-5',
9
+ [design_system_shared_1.IconSize.Lg]: 'w-6 h-6',
10
+ [design_system_shared_1.IconSize.Xl]: 'w-8 h-8', // 32px
11
11
  };
12
12
  //# sourceMappingURL=Icon.constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.constants.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":";;;AAAA,iDAAuC;AAE1B,QAAA,8BAA8B,GAA6B;IACtE,CAAC,gBAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,gBAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,gBAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,gBAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,gBAAQ,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO;CAClC,CAAC","sourcesContent":["import { IconSize } from '../../types';\n\nexport const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-3 h-3', // 12px\n [IconSize.Sm]: 'w-4 h-4', // 16px\n [IconSize.Md]: 'w-5 h-5', // 20px\n [IconSize.Lg]: 'w-6 h-6', // 24px\n [IconSize.Xl]: 'w-8 h-8', // 32px\n};\n"]}
1
+ {"version":3,"file":"Icon.constants.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":";;;AAAA,kFAAmE;AAEtD,QAAA,8BAA8B,GAA6B;IACtE,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO;CAClC,CAAC","sourcesContent":["import { IconSize } from '@metamask-previews/design-system-shared';\n\nexport const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-3 h-3', // 12px\n [IconSize.Sm]: 'w-4 h-4', // 16px\n [IconSize.Md]: 'w-5 h-5', // 20px\n [IconSize.Lg]: 'w-6 h-6', // 24px\n [IconSize.Xl]: 'w-8 h-8', // 32px\n};\n"]}
@@ -1,3 +1,3 @@
1
- import { IconSize } from "../../types/index.cjs";
1
+ import { IconSize } from "@metamask-previews/design-system-shared";
2
2
  export declare const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string>;
3
3
  //# sourceMappingURL=Icon.constants.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnE,CAAC"}
1
+ {"version":3,"file":"Icon.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gDAAgD;AAEnE,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnE,CAAC"}
@@ -1,3 +1,3 @@
1
- import { IconSize } from "../../types/index.mjs";
1
+ import { IconSize } from "@metamask-previews/design-system-shared";
2
2
  export declare const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string>;
3
3
  //# sourceMappingURL=Icon.constants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnE,CAAC"}
1
+ {"version":3,"file":"Icon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gDAAgD;AAEnE,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IconSize } from "../../types/index.mjs";
1
+ import { IconSize } from "@metamask-previews/design-system-shared";
2
2
  export const TWCLASSMAP_ICON_SIZE_DIMENSION = {
3
3
  [IconSize.Xs]: 'w-3 h-3',
4
4
  [IconSize.Sm]: 'w-4 h-4',
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.constants.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAEvC,MAAM,CAAC,MAAM,8BAA8B,GAA6B;IACtE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO;CAClC,CAAC","sourcesContent":["import { IconSize } from '../../types';\n\nexport const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-3 h-3', // 12px\n [IconSize.Sm]: 'w-4 h-4', // 16px\n [IconSize.Md]: 'w-5 h-5', // 20px\n [IconSize.Lg]: 'w-6 h-6', // 24px\n [IconSize.Xl]: 'w-8 h-8', // 32px\n};\n"]}
1
+ {"version":3,"file":"Icon.constants.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gDAAgD;AAEnE,MAAM,CAAC,MAAM,8BAA8B,GAA6B;IACtE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO;CAClC,CAAC","sourcesContent":["import { IconSize } from '@metamask-previews/design-system-shared';\n\nexport const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-3 h-3', // 12px\n [IconSize.Sm]: 'w-4 h-4', // 16px\n [IconSize.Md]: 'w-5 h-5', // 20px\n [IconSize.Lg]: 'w-6 h-6', // 24px\n [IconSize.Xl]: 'w-8 h-8', // 32px\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAG9C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkCpC,CAAC"}
1
+ {"version":3,"file":"Icon.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAG9C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkCpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAG9C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkCpC,CAAC"}
1
+ {"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAG9C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkCpC,CAAC"}
@@ -4,9 +4,9 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { IconSize, IconColor } from "@metamask-previews/design-system-shared";
7
8
  import $React from "react";
8
9
  const React = $importDefault($React);
9
- import { IconSize, IconColor } from "../../types/index.mjs";
10
10
  import { twMerge } from "../../utils/tw-merge.mjs";
11
11
  import { TWCLASSMAP_ICON_SIZE_DIMENSION } from "./Icon.constants.mjs";
12
12
  import { Icons } from "./icons/index.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,8BAAoB;AAClD,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAE/C,OAAO,EAAE,8BAA8B,EAAE,6BAAyB;AAElE,OAAO,EAAE,KAAK,EAAE,0BAAgB;AAEhC,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,IAAI,EACJ,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAElC,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,aAAa,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,eAAe,GAAG,OAAO,CAC7B,cAAc,EACd,8BAA8B,CAAC,IAAI,CAAC,EACpC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,eAAe,KACrB,KAAuC,EAC5C,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { IconSize, IconColor } from '../../types';\nimport { twMerge } from '../../utils/tw-merge';\n\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\nimport { Icons } from './icons';\n\nexport const Icon: React.FC<IconProps> = ({\n name,\n size = IconSize.Md,\n color = IconColor.IconDefault,\n className,\n style,\n ...props\n}) => {\n if (!name) {\n console.warn('Icon name is required');\n return null;\n }\n\n const IconComponent = Icons[name];\n\n if (!IconComponent) {\n console.warn(`Icon \"${name}\" not found`);\n return null;\n }\n\n const mergedClassName = twMerge(\n 'inline-block',\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n color,\n className,\n );\n\n return (\n <IconComponent\n className={mergedClassName}\n {...(props as React.SVGProps<SVGSVGElement>)}\n style={style}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,gDAAgD;AAC9E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,OAAO,EAAE,iCAA6B;AAE/C,OAAO,EAAE,8BAA8B,EAAE,6BAAyB;AAElE,OAAO,EAAE,KAAK,EAAE,0BAAgB;AAEhC,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EACxC,IAAI,EACJ,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAElC,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,aAAa,CAAC,CAAC;QACzC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,eAAe,GAAG,OAAO,CAC7B,cAAc,EACd,8BAA8B,CAAC,IAAI,CAAC,EACpC,KAAK,EACL,SAAS,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,eAAe,KACrB,KAAuC,EAC5C,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconSize, IconColor } from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\n\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\nimport { Icons } from './icons';\n\nexport const Icon: React.FC<IconProps> = ({\n name,\n size = IconSize.Md,\n color = IconColor.IconDefault,\n className,\n style,\n ...props\n}) => {\n if (!name) {\n console.warn('Icon name is required');\n return null;\n }\n\n const IconComponent = Icons[name];\n\n if (!IconComponent) {\n console.warn(`Icon \"${name}\" not found`);\n return null;\n }\n\n const mergedClassName = twMerge(\n 'inline-block',\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n color,\n className,\n );\n\n return (\n <IconComponent\n className={mergedClassName}\n {...(props as React.SVGProps<SVGSVGElement>)}\n style={style}\n />\n );\n};\n"]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const React = __importStar(require("react"));
27
+ const react_1 = require("react");
28
+ const SvgTrophy = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", ref: ref, ...props },
29
+ React.createElement("path", { d: "M7 21v-2h4v-3.1q-1.226-.275-2.187-1.037C7.85 14.1 7.7 13.717 7.4 12.95q-1.875-.225-3.137-1.637C3 9.9 3 9.267 3 8V7q0-.825.588-1.412C4.175 5 4.45 5 5 5h2V3h10v2h2q.824 0 1.413.588C21.002 6.176 21 6.45 21 7v1q0 1.9-1.262 3.313C18.476 12.726 17.85 12.8 16.6 12.95q-.45 1.15-1.412 1.913c-.962.763-1.371.854-2.188 1.037V19h4v2zm0-10.2V7H5v1q0 .95.55 1.713.55.762 1.45 1.087m7.125 2.325A2.9 2.9 0 0 0 15 11V5H9v6q0 1.25.875 2.125T12 14c1.25 0 1.542-.292 2.125-.875M17 10.8q.9-.326 1.45-1.087Q19 8.95 19 8V7h-2z" }));
30
+ const ForwardRef = (0, react_1.forwardRef)(SvgTrophy);
31
+ exports.default = ForwardRef;
32
+ //# sourceMappingURL=Trophy.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trophy.cjs","sourceRoot":"","sources":["../../../../src/components/Icon/icons/Trophy.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,iCAAwC;AACxC,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,CAAC,EAAC,0fAA0f,GAAG,CAAM,CAAC;AAChsB,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAC,SAAS,CAAC,CAAC;AACzC,kBAAe,UAAU,CAAC","sourcesContent":["import * as React from \"react\";\nimport type { SVGProps } from \"react\";\nimport { Ref, forwardRef } from \"react\";\nconst SvgTrophy = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" ref={ref} {...props}><path d=\"M7 21v-2h4v-3.1q-1.226-.275-2.187-1.037C7.85 14.1 7.7 13.717 7.4 12.95q-1.875-.225-3.137-1.637C3 9.9 3 9.267 3 8V7q0-.825.588-1.412C4.175 5 4.45 5 5 5h2V3h10v2h2q.824 0 1.413.588C21.002 6.176 21 6.45 21 7v1q0 1.9-1.262 3.313C18.476 12.726 17.85 12.8 16.6 12.95q-.45 1.15-1.412 1.913c-.962.763-1.371.854-2.188 1.037V19h4v2zm0-10.2V7H5v1q0 .95.55 1.713.55.762 1.45 1.087m7.125 2.325A2.9 2.9 0 0 0 15 11V5H9v6q0 1.25.875 2.125T12 14c1.25 0 1.542-.292 2.125-.875M17 10.8q.9-.326 1.45-1.087Q19 8.95 19 8V7h-2z\" /></svg>;\nconst ForwardRef = forwardRef(SvgTrophy);\nexport default ForwardRef;"]}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
3
+ export default ForwardRef;
4
+ //# sourceMappingURL=Trophy.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trophy.d.cts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/Trophy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAI/B,QAAA,MAAM,UAAU,kHAAwB,CAAC;AACzC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ declare const ForwardRef: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
3
+ export default ForwardRef;
4
+ //# sourceMappingURL=Trophy.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trophy.d.mts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/Trophy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAI/B,QAAA,MAAM,UAAU,kHAAwB,CAAC;AACzC,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { forwardRef } from "react";
3
+ const SvgTrophy = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", ref: ref, ...props },
4
+ React.createElement("path", { d: "M7 21v-2h4v-3.1q-1.226-.275-2.187-1.037C7.85 14.1 7.7 13.717 7.4 12.95q-1.875-.225-3.137-1.637C3 9.9 3 9.267 3 8V7q0-.825.588-1.412C4.175 5 4.45 5 5 5h2V3h10v2h2q.824 0 1.413.588C21.002 6.176 21 6.45 21 7v1q0 1.9-1.262 3.313C18.476 12.726 17.85 12.8 16.6 12.95q-.45 1.15-1.412 1.913c-.962.763-1.371.854-2.188 1.037V19h4v2zm0-10.2V7H5v1q0 .95.55 1.713.55.762 1.45 1.087m7.125 2.325A2.9 2.9 0 0 0 15 11V5H9v6q0 1.25.875 2.125T12 14c1.25 0 1.542-.292 2.125-.875M17 10.8q.9-.326 1.45-1.087Q19 8.95 19 8V7h-2z" }));
5
+ const ForwardRef = forwardRef(SvgTrophy);
6
+ export default ForwardRef;
7
+ //# sourceMappingURL=Trophy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trophy.mjs","sourceRoot":"","sources":["../../../../src/components/Icon/icons/Trophy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAE/B,OAAO,EAAO,UAAU,EAAE,cAAc;AACxC,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,cAAc,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,CAAC,EAAC,0fAA0f,GAAG,CAAM,CAAC;AAChsB,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,eAAe,UAAU,CAAC","sourcesContent":["import * as React from \"react\";\nimport type { SVGProps } from \"react\";\nimport { Ref, forwardRef } from \"react\";\nconst SvgTrophy = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" ref={ref} {...props}><path d=\"M7 21v-2h4v-3.1q-1.226-.275-2.187-1.037C7.85 14.1 7.7 13.717 7.4 12.95q-1.875-.225-3.137-1.637C3 9.9 3 9.267 3 8V7q0-.825.588-1.412C4.175 5 4.45 5 5 5h2V3h10v2h2q.824 0 1.413.588C21.002 6.176 21 6.45 21 7v1q0 1.9-1.262 3.313C18.476 12.726 17.85 12.8 16.6 12.95q-.45 1.15-1.412 1.913c-.962.763-1.371.854-2.188 1.037V19h4v2zm0-10.2V7H5v1q0 .95.55 1.713.55.762 1.45 1.087m7.125 2.325A2.9 2.9 0 0 0 15 11V5H9v6q0 1.25.875 2.125T12 14c1.25 0 1.542-.292 2.125-.875M17 10.8q.9-.326 1.45-1.087Q19 8.95 19 8V7h-2z\" /></svg>;\nconst ForwardRef = forwardRef(SvgTrophy);\nexport default ForwardRef;"]}
@@ -267,6 +267,7 @@ const Translate_1 = __importDefault(require("./Translate.cjs"));
267
267
  const Trash_1 = __importDefault(require("./Trash.cjs"));
268
268
  const TrendDown_1 = __importDefault(require("./TrendDown.cjs"));
269
269
  const TrendUp_1 = __importDefault(require("./TrendUp.cjs"));
270
+ const Trophy_1 = __importDefault(require("./Trophy.cjs"));
270
271
  const Undo_1 = __importDefault(require("./Undo.cjs"));
271
272
  const Unfold_1 = __importDefault(require("./Unfold.cjs"));
272
273
  const UnlockedFilled_1 = __importDefault(require("./UnlockedFilled.cjs"));
@@ -558,6 +559,7 @@ exports.Icons = {
558
559
  Trash: Trash_1.default,
559
560
  TrendDown: TrendDown_1.default,
560
561
  TrendUp: TrendUp_1.default,
562
+ Trophy: Trophy_1.default,
561
563
  Undo: Undo_1.default,
562
564
  Unfold: Unfold_1.default,
563
565
  UnlockedFilled: UnlockedFilled_1.default,