@metamask-previews/design-system-react-native 0.15.0-preview.a73a010 → 0.16.0-preview.d854123

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 (283) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/dist/components/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -1
  3. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts +6 -15
  4. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -1
  5. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts +6 -15
  6. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -1
  7. package/dist/components/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -1
  8. package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
  9. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  10. package/dist/components/BannerAlert/BannerAlert.constants.cjs +16 -16
  11. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  12. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  13. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  14. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  15. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  16. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  17. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  18. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  19. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  20. package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
  21. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  22. package/dist/components/BannerBase/BannerBase.cjs +2 -2
  23. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  24. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  25. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  26. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  27. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  28. package/dist/components/Box/Box.constants.cjs.map +1 -1
  29. package/dist/components/Box/Box.constants.d.cts +1 -1
  30. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  31. package/dist/components/Box/Box.constants.d.mts +1 -1
  32. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  33. package/dist/components/Box/Box.constants.mjs.map +1 -1
  34. package/dist/components/Box/Box.types.cjs.map +1 -1
  35. package/dist/components/Box/Box.types.d.cts +107 -3
  36. package/dist/components/Box/Box.types.d.cts.map +1 -1
  37. package/dist/components/Box/Box.types.d.mts +107 -3
  38. package/dist/components/Box/Box.types.d.mts.map +1 -1
  39. package/dist/components/Box/Box.types.mjs.map +1 -1
  40. package/dist/components/Box/index.cjs +7 -7
  41. package/dist/components/Box/index.cjs.map +1 -1
  42. package/dist/components/Box/index.d.cts +2 -1
  43. package/dist/components/Box/index.d.cts.map +1 -1
  44. package/dist/components/Box/index.d.mts +2 -1
  45. package/dist/components/Box/index.d.mts.map +1 -1
  46. package/dist/components/Box/index.mjs +1 -1
  47. package/dist/components/Box/index.mjs.map +1 -1
  48. package/dist/components/{BoxVertical/BoxVertical.cjs → BoxColumn/BoxColumn.cjs} +6 -6
  49. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -0
  50. package/dist/components/BoxColumn/BoxColumn.d.cts +7 -0
  51. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -0
  52. package/dist/components/BoxColumn/BoxColumn.d.mts +7 -0
  53. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -0
  54. package/dist/components/{BoxVertical/BoxVertical.mjs → BoxColumn/BoxColumn.mjs} +4 -4
  55. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -0
  56. package/dist/components/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
  57. package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -0
  58. package/dist/components/BoxColumn/BoxColumn.types.d.cts +13 -0
  59. package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -0
  60. package/dist/components/BoxColumn/BoxColumn.types.d.mts +13 -0
  61. package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -0
  62. package/dist/components/BoxColumn/BoxColumn.types.mjs +2 -0
  63. package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -0
  64. package/dist/components/BoxColumn/index.cjs +6 -0
  65. package/dist/components/BoxColumn/index.cjs.map +1 -0
  66. package/dist/components/BoxColumn/index.d.cts +3 -0
  67. package/dist/components/BoxColumn/index.d.cts.map +1 -0
  68. package/dist/components/BoxColumn/index.d.mts +3 -0
  69. package/dist/components/BoxColumn/index.d.mts.map +1 -0
  70. package/dist/components/BoxColumn/index.mjs +2 -0
  71. package/dist/components/BoxColumn/index.mjs.map +1 -0
  72. package/dist/components/{BoxHorizontal/BoxHorizontal.cjs → BoxRow/BoxRow.cjs} +6 -6
  73. package/dist/components/BoxRow/BoxRow.cjs.map +1 -0
  74. package/dist/components/BoxRow/BoxRow.d.cts +7 -0
  75. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -0
  76. package/dist/components/BoxRow/BoxRow.d.mts +7 -0
  77. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -0
  78. package/dist/components/{BoxHorizontal/BoxHorizontal.mjs → BoxRow/BoxRow.mjs} +4 -4
  79. package/dist/components/BoxRow/BoxRow.mjs.map +1 -0
  80. package/dist/components/{BoxHorizontal/BoxHorizontal.types.cjs → BoxRow/BoxRow.types.cjs} +1 -1
  81. package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -0
  82. package/dist/components/BoxRow/BoxRow.types.d.cts +13 -0
  83. package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -0
  84. package/dist/components/BoxRow/BoxRow.types.d.mts +13 -0
  85. package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -0
  86. package/dist/components/BoxRow/BoxRow.types.mjs +2 -0
  87. package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -0
  88. package/dist/components/BoxRow/index.cjs +6 -0
  89. package/dist/components/BoxRow/index.cjs.map +1 -0
  90. package/dist/components/BoxRow/index.d.cts +3 -0
  91. package/dist/components/BoxRow/index.d.cts.map +1 -0
  92. package/dist/components/BoxRow/index.d.mts +3 -0
  93. package/dist/components/BoxRow/index.d.mts.map +1 -0
  94. package/dist/components/BoxRow/index.mjs +2 -0
  95. package/dist/components/BoxRow/index.mjs.map +1 -0
  96. package/dist/components/HeaderRoot/HeaderRoot.cjs +3 -3
  97. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  98. package/dist/components/HeaderRoot/HeaderRoot.mjs +3 -3
  99. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  100. package/dist/components/HeaderSearch/HeaderSearch.cjs +80 -0
  101. package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -0
  102. package/dist/components/HeaderSearch/HeaderSearch.d.cts +37 -0
  103. package/dist/components/HeaderSearch/HeaderSearch.d.cts.map +1 -0
  104. package/dist/components/HeaderSearch/HeaderSearch.d.mts +37 -0
  105. package/dist/components/HeaderSearch/HeaderSearch.d.mts.map +1 -0
  106. package/dist/components/HeaderSearch/HeaderSearch.mjs +80 -0
  107. package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -0
  108. package/dist/components/HeaderSearch/HeaderSearch.types.cjs +3 -0
  109. package/dist/components/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
  110. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts +33 -0
  111. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
  112. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts +33 -0
  113. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
  114. package/dist/components/HeaderSearch/HeaderSearch.types.mjs +2 -0
  115. package/dist/components/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
  116. package/dist/components/HeaderSearch/index.cjs +8 -0
  117. package/dist/components/HeaderSearch/index.cjs.map +1 -0
  118. package/dist/components/HeaderSearch/index.d.cts +4 -0
  119. package/dist/components/HeaderSearch/index.d.cts.map +1 -0
  120. package/dist/components/HeaderSearch/index.d.mts +4 -0
  121. package/dist/components/HeaderSearch/index.d.mts.map +1 -0
  122. package/dist/components/HeaderSearch/index.mjs +3 -0
  123. package/dist/components/HeaderSearch/index.mjs.map +1 -0
  124. package/dist/components/HeaderStandard/HeaderStandard.cjs +3 -3
  125. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  126. package/dist/components/HeaderStandard/HeaderStandard.mjs +3 -3
  127. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  128. package/dist/components/Icon/Icon.assets.cjs +285 -281
  129. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  130. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  131. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  132. package/dist/components/Icon/Icon.assets.mjs +6 -2
  133. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  134. package/dist/components/Icon/Icon.cjs +2 -2
  135. package/dist/components/Icon/Icon.cjs.map +1 -1
  136. package/dist/components/Icon/Icon.constants.cjs +6 -6
  137. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  138. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  139. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  140. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  141. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  142. package/dist/components/Icon/Icon.constants.mjs +1 -1
  143. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  144. package/dist/components/Icon/Icon.d.cts.map +1 -1
  145. package/dist/components/Icon/Icon.d.mts.map +1 -1
  146. package/dist/components/Icon/Icon.mjs +1 -1
  147. package/dist/components/Icon/Icon.mjs.map +1 -1
  148. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  149. package/dist/components/Icon/Icon.types.d.cts +2 -2
  150. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  151. package/dist/components/Icon/Icon.types.d.mts +2 -2
  152. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  153. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  154. package/dist/components/Icon/assets/after-hours.svg +1 -1
  155. package/dist/components/Icon/assets/pop-up.svg +1 -0
  156. package/dist/components/Icon/assets/side-panel.svg +1 -0
  157. package/dist/components/Icon/index.cjs +4 -4
  158. package/dist/components/Icon/index.cjs.map +1 -1
  159. package/dist/components/Icon/index.d.cts +1 -1
  160. package/dist/components/Icon/index.d.cts.map +1 -1
  161. package/dist/components/Icon/index.d.mts +1 -1
  162. package/dist/components/Icon/index.d.mts.map +1 -1
  163. package/dist/components/Icon/index.mjs +1 -1
  164. package/dist/components/Icon/index.mjs.map +1 -1
  165. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +8 -8
  166. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  167. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +8 -8
  168. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  169. package/dist/components/KeyValueRow/KeyValueRow.cjs +43 -64
  170. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  171. package/dist/components/KeyValueRow/KeyValueRow.d.cts +3 -20
  172. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  173. package/dist/components/KeyValueRow/KeyValueRow.d.mts +3 -20
  174. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  175. package/dist/components/KeyValueRow/KeyValueRow.mjs +42 -63
  176. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  177. package/dist/components/KeyValueRow/KeyValueRow.types.cjs +0 -26
  178. package/dist/components/KeyValueRow/KeyValueRow.types.cjs.map +1 -1
  179. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +14 -174
  180. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  181. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +14 -174
  182. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  183. package/dist/components/KeyValueRow/KeyValueRow.types.mjs +1 -25
  184. package/dist/components/KeyValueRow/KeyValueRow.types.mjs.map +1 -1
  185. package/dist/components/KeyValueRow/index.cjs +3 -7
  186. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  187. package/dist/components/KeyValueRow/index.d.cts +3 -2
  188. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  189. package/dist/components/KeyValueRow/index.d.mts +3 -2
  190. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  191. package/dist/components/KeyValueRow/index.mjs +2 -2
  192. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  193. package/dist/components/index.cjs +13 -7
  194. package/dist/components/index.cjs.map +1 -1
  195. package/dist/components/index.d.cts +8 -4
  196. package/dist/components/index.d.cts.map +1 -1
  197. package/dist/components/index.d.mts +8 -4
  198. package/dist/components/index.d.mts.map +1 -1
  199. package/dist/components/index.mjs +4 -2
  200. package/dist/components/index.mjs.map +1 -1
  201. package/dist/types/index.cjs +177 -354
  202. package/dist/types/index.cjs.map +1 -1
  203. package/dist/types/index.d.cts +175 -344
  204. package/dist/types/index.d.cts.map +1 -1
  205. package/dist/types/index.d.mts +175 -344
  206. package/dist/types/index.d.mts.map +1 -1
  207. package/dist/types/index.mjs +173 -353
  208. package/dist/types/index.mjs.map +1 -1
  209. package/package.json +5 -6
  210. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +0 -1
  211. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +0 -7
  212. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +0 -1
  213. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +0 -7
  214. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +0 -1
  215. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +0 -1
  216. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
  217. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +0 -13
  218. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
  219. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +0 -13
  220. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
  221. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
  222. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
  223. package/dist/components/BoxHorizontal/index.cjs +0 -6
  224. package/dist/components/BoxHorizontal/index.cjs.map +0 -1
  225. package/dist/components/BoxHorizontal/index.d.cts +0 -3
  226. package/dist/components/BoxHorizontal/index.d.cts.map +0 -1
  227. package/dist/components/BoxHorizontal/index.d.mts +0 -3
  228. package/dist/components/BoxHorizontal/index.d.mts.map +0 -1
  229. package/dist/components/BoxHorizontal/index.mjs +0 -2
  230. package/dist/components/BoxHorizontal/index.mjs.map +0 -1
  231. package/dist/components/BoxVertical/BoxVertical.cjs.map +0 -1
  232. package/dist/components/BoxVertical/BoxVertical.d.cts +0 -7
  233. package/dist/components/BoxVertical/BoxVertical.d.cts.map +0 -1
  234. package/dist/components/BoxVertical/BoxVertical.d.mts +0 -7
  235. package/dist/components/BoxVertical/BoxVertical.d.mts.map +0 -1
  236. package/dist/components/BoxVertical/BoxVertical.mjs.map +0 -1
  237. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +0 -1
  238. package/dist/components/BoxVertical/BoxVertical.types.d.cts +0 -13
  239. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +0 -1
  240. package/dist/components/BoxVertical/BoxVertical.types.d.mts +0 -13
  241. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +0 -1
  242. package/dist/components/BoxVertical/BoxVertical.types.mjs +0 -2
  243. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +0 -1
  244. package/dist/components/BoxVertical/index.cjs +0 -6
  245. package/dist/components/BoxVertical/index.cjs.map +0 -1
  246. package/dist/components/BoxVertical/index.d.cts +0 -3
  247. package/dist/components/BoxVertical/index.d.cts.map +0 -1
  248. package/dist/components/BoxVertical/index.d.mts +0 -3
  249. package/dist/components/BoxVertical/index.d.mts.map +0 -1
  250. package/dist/components/BoxVertical/index.mjs +0 -2
  251. package/dist/components/BoxVertical/index.mjs.map +0 -1
  252. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +0 -34
  253. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +0 -1
  254. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +0 -13
  255. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +0 -1
  256. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +0 -13
  257. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +0 -1
  258. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +0 -34
  259. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +0 -1
  260. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +0 -40
  261. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +0 -1
  262. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +0 -24
  263. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +0 -1
  264. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +0 -24
  265. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +0 -1
  266. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +0 -40
  267. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +0 -1
  268. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs +0 -6
  269. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs.map +0 -1
  270. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts +0 -3
  271. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts.map +0 -1
  272. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts +0 -3
  273. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts.map +0 -1
  274. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs +0 -2
  275. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs.map +0 -1
  276. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +0 -30
  277. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +0 -1
  278. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +0 -16
  279. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +0 -1
  280. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +0 -16
  281. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +0 -1
  282. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +0 -30
  283. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +0 -1
@@ -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":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
1
+ {"version":3,"file":"Icon.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
1
+ {"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
@@ -4,10 +4,10 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
+ import { IconColor, IconSize } from "@metamask-previews/design-system-shared";
7
8
  import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
9
  import $React from "react";
9
10
  const React = $importDefault($React);
10
- import { IconColor, IconSize } from "../../types/index.mjs";
11
11
  import { assetByIconName } from "./Icon.assets.mjs";
12
12
  import { TWCLASSMAP_ICON_SIZE_DIMENSION } from "./Icon.constants.mjs";
13
13
  export const Icon = ({ size = IconSize.Md, name, color = IconColor.IconDefault, twClassName, style, ...props }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,8BAAoB;AAElD,OAAO,EAAE,eAAe,EAAE,0BAAsB;AAChD,OAAO,EAAE,8BAA8B,EAAE,6BAAyB;AAGlE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,IAAI,EACJ,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CACtB,KAAK,EACL,8BAA8B,CAAC,IAAI,CAAC,EACpC,WAAW,CACZ,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAC5E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { IconColor, IconSize } from '../../types';\n\nimport { assetByIconName } from './Icon.assets';\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\n\nexport const Icon = ({\n size = IconSize.Md,\n name,\n color = IconColor.IconDefault,\n twClassName,\n style,\n ...props\n}: IconProps) => {\n const tw = useTailwind();\n const SVG = assetByIconName[name];\n const twStyle = tw.style(\n color,\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n twClassName,\n );\n\n return (\n <SVG name={name} fill=\"currentColor\" style={[twStyle, style]} {...props} />\n );\n};\n"]}
1
+ {"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,gDAAgD;AAC9E,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,eAAe,EAAE,0BAAsB;AAChD,OAAO,EAAE,8BAA8B,EAAE,6BAAyB;AAGlE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,IAAI,EACJ,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CACtB,KAAK,EACL,8BAA8B,CAAC,IAAI,CAAC,EACpC,WAAW,CACZ,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAC5E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconColor, IconSize } from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { assetByIconName } from './Icon.assets';\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\n\nexport const Icon = ({\n size = IconSize.Md,\n name,\n color = IconColor.IconDefault,\n twClassName,\n style,\n ...props\n}: IconProps) => {\n const tw = useTailwind();\n const SVG = assetByIconName[name];\n const twStyle = tw.style(\n color,\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n twClassName,\n );\n\n return (\n <SVG name={name} fill=\"currentColor\" style={[twStyle, style]} {...props} />\n );\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\nimport type { IconColor, IconName, IconSize } from '../../types';\n\n/**\n * Icon component props.\n */\nexport type IconProps = {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
1
+ {"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n IconColor,\n IconName,\n IconPropsShared,\n IconSize,\n} from '@metamask-previews/design-system-shared';\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon component props.\n */\nexport type IconProps = IconPropsShared & {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
@@ -1,11 +1,11 @@
1
+ import type { IconColor, IconName, IconPropsShared, IconSize } from "@metamask-previews/design-system-shared";
1
2
  import type React from "react";
2
3
  import type { ViewProps } from "react-native/index.js";
3
4
  import type { SvgProps } from "react-native-svg";
4
- import type { IconColor, IconName, IconSize } from "../../types/index.cjs";
5
5
  /**
6
6
  * Icon component props.
7
7
  */
8
- export type IconProps = {
8
+ export type IconProps = IconPropsShared & {
9
9
  /**
10
10
  * Required prop to specify which icon to render from the icon set
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,8BAAoB;AAEjE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
1
+ {"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,gDAAgD;AACjD,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
@@ -1,11 +1,11 @@
1
+ import type { IconColor, IconName, IconPropsShared, IconSize } from "@metamask-previews/design-system-shared";
1
2
  import type React from "react";
2
3
  import type { ViewProps } from "react-native/index.js";
3
4
  import type { SvgProps } from "react-native-svg";
4
- import type { IconColor, IconName, IconSize } from "../../types/index.mjs";
5
5
  /**
6
6
  * Icon component props.
7
7
  */
8
- export type IconProps = {
8
+ export type IconProps = IconPropsShared & {
9
9
  /**
10
10
  * Required prop to specify which icon to render from the icon set
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,8BAAoB;AAEjE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
1
+ {"version":3,"file":"Icon.types.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,gDAAgD;AACjD,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.types.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\nimport type { IconColor, IconName, IconSize } from '../../types';\n\n/**\n * Icon component props.\n */\nexport type IconProps = {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
1
+ {"version":3,"file":"Icon.types.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n IconColor,\n IconName,\n IconPropsShared,\n IconSize,\n} from '@metamask-previews/design-system-shared';\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon component props.\n */\nexport type IconProps = IconPropsShared & {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m11.9873 3.9873c-2.23105.00294-4.12144.77965-5.67089 2.32911-1.5524 1.55239-2.32911 3.44701-2.32911 5.68359 0 2.2366.77671 4.1312 2.32911 5.6836 1.54945 1.5494 3.43984 2.3252 5.67089 2.3281v1.9746c-1.377-.0016-2.6715-.2624-3.88281-.7851-1.21513-.5244-2.27214-1.236-3.1709-2.1348-.89875-.8987-1.61038-1.9558-2.13476-3.1709-.5243-1.215-.78613-2.5138-.78613-3.8955s.26183-2.68047.78613-3.89551c.52438-1.21513 1.23601-2.27214 2.13476-3.1709.89876-.89875 1.95577-1.61038 3.1709-2.13476 1.21131-.52269 2.50581-.78453 3.88281-.78613zm3.2627 15.0254c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm4-3.5c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-6.2627-8.5v4.5869h-.0049l3.7002 3.7002-1.3828 1.3828-4.2871-4.2871v-5.3828zm7.7627 3.75c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-1.5-4.75c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839zm-4-3.5c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839z" /></svg>
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m11.9873 3.9873c-2.23105.00294-4.12144.77965-5.67089 2.32911-1.5524 1.55239-2.32911 3.44701-2.32911 5.68359 0 2.2366.77671 4.1312 2.32911 5.6836 1.54945 1.5494 3.43984 2.3252 5.67089 2.3281v1.9746c-1.377-.0016-2.6715-.2624-3.88281-.7851-1.21513-.5244-2.27214-1.236-3.1709-2.1348-.89875-.8987-1.61038-1.9558-2.13476-3.1709-.5243-1.215-.78613-2.5138-.78613-3.8955s.26183-2.68047.78613-3.89551c.52438-1.21513 1.23601-2.27214 2.13476-3.1709.89876-.89875 1.95577-1.61038 3.1709-2.13476 1.21131-.52269 2.50581-.78453 3.88281-.78613zm3.2627 15.0254c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm4-3.5c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-6.2627-8.5v4.5869h-.0049l3.7002 3.7002-1.3828 1.3828-4.2871-4.2871v-5.3828zm7.7627 3.75c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-1.5-4.75c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839zm-4-3.5c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839z" stroke-width=".025"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 14H18V8H13V14ZM4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM4 18H20V6H4V18Z" /></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM16 19H19V5H16V19ZM14 19V5H5V19H14Z"/></svg>
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Icon = exports.IconSize = exports.IconName = exports.IconColor = void 0;
4
- var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return types_1.IconColor; } });
6
- Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return types_1.IconName; } });
7
- Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return types_1.IconSize; } });
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return design_system_shared_1.IconColor; } });
6
+ Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return design_system_shared_1.IconName; } });
7
+ Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return design_system_shared_1.IconSize; } });
8
8
  var Icon_1 = require("./Icon.cjs");
9
9
  Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":";;;AAAA,+CAA4D;AAAnD,kGAAA,SAAS,OAAA;AAAE,iGAAA,QAAQ,OAAA;AAAE,iGAAA,QAAQ,OAAA;AACtC,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export { IconColor, IconName, IconSize } from '../../types';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":";;;AAAA,gFAAwF;AAA/E,iHAAA,SAAS,OAAA;AAAE,gHAAA,QAAQ,OAAA;AAAE,gHAAA,QAAQ,OAAA;AACtC,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export { IconColor, IconName, IconSize } from '@metamask-previews/design-system-shared';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
@@ -1,4 +1,4 @@
1
- export { IconColor, IconName, IconSize } from "../../types/index.cjs";
1
+ export { IconColor, IconName, IconSize } from "@metamask-previews/design-system-shared";
2
2
  export { Icon } from "./Icon.cjs";
3
3
  export type { IconProps } from "./Icon.types.cjs";
4
4
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,8BAAoB;AAC5D,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,4 +1,4 @@
1
- export { IconColor, IconName, IconSize } from "../../types/index.mjs";
1
+ export { IconColor, IconName, IconSize } from "@metamask-previews/design-system-shared";
2
2
  export { Icon } from "./Icon.mjs";
3
3
  export type { IconProps } from "./Icon.types.mjs";
4
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,8BAAoB;AAC5D,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,3 +1,3 @@
1
- export { IconColor, IconName, IconSize } from "../../types/index.mjs";
1
+ export { IconColor, IconName, IconSize } from "@metamask-previews/design-system-shared";
2
2
  export { Icon } from "./Icon.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,8BAAoB;AAC5D,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export { IconColor, IconName, IconSize } from '../../types';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export { IconColor, IconName, IconSize } from '@metamask-previews/design-system-shared';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.KeyValueColumn = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const types_1 = require("../../types/index.cjs");
9
- const BoxHorizontal_1 = require("../BoxHorizontal/index.cjs");
10
- const BoxVertical_1 = require("../BoxVertical/index.cjs");
9
+ const BoxColumn_1 = require("../BoxColumn/index.cjs");
10
+ const BoxRow_1 = require("../BoxRow/index.cjs");
11
11
  const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
12
12
  const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, twClassName, ...viewProps }) => {
13
13
  const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
14
14
  keyEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={types_1.ButtonIconSize.Sm} iconProps={{ color: types_1.IconColor.IconAlternative }} {...keyEndButtonIconProps} iconName={keyEndButtonIconProps.iconName}/>) : (keyEndAccessory);
15
15
  const valueEndAccessoryNode = valueEndButtonIconProps?.iconName !== undefined &&
16
16
  valueEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={types_1.ButtonIconSize.Sm} iconProps={{ color: types_1.IconColor.IconDefault }} {...valueEndButtonIconProps} iconName={valueEndButtonIconProps.iconName}/>) : (valueEndAccessory);
17
- const keyBox = (<BoxHorizontal_1.BoxHorizontal startAccessory={keyStartAccessory} endAccessory={keyEndAccessoryNode} textProps={{
17
+ const keyBox = (<BoxRow_1.BoxRow startAccessory={keyStartAccessory} endAccessory={keyEndAccessoryNode} textProps={{
18
18
  variant: types_1.TextVariant.BodyMd,
19
19
  fontWeight: types_1.FontWeight.Medium,
20
20
  color: types_1.TextColor.TextAlternative,
@@ -23,8 +23,8 @@ const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconPr
23
23
  ...keyTextProps,
24
24
  }} twClassName="w-full min-w-0">
25
25
  {keyContent}
26
- </BoxHorizontal_1.BoxHorizontal>);
27
- const valueBox = (<BoxHorizontal_1.BoxHorizontal startAccessory={valueStartAccessory} endAccessory={valueEndAccessoryNode} textProps={{
26
+ </BoxRow_1.BoxRow>);
27
+ const valueBox = (<BoxRow_1.BoxRow startAccessory={valueStartAccessory} endAccessory={valueEndAccessoryNode} textProps={{
28
28
  variant: types_1.TextVariant.BodyMd,
29
29
  fontWeight: types_1.FontWeight.Medium,
30
30
  color: types_1.TextColor.TextDefault,
@@ -33,10 +33,10 @@ const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconPr
33
33
  ...valueTextProps,
34
34
  }} twClassName="w-full min-w-0">
35
35
  {valueContent}
36
- </BoxHorizontal_1.BoxHorizontal>);
37
- return (<BoxVertical_1.BoxVertical bottomAccessory={valueBox} twClassName={twClassName} {...viewProps}>
36
+ </BoxRow_1.BoxRow>);
37
+ return (<BoxColumn_1.BoxColumn bottomAccessory={valueBox} twClassName={twClassName} {...viewProps}>
38
38
  {keyBox}
39
- </BoxVertical_1.BoxVertical>);
39
+ </BoxColumn_1.BoxColumn>);
40
40
  };
41
41
  exports.KeyValueColumn = KeyValueColumn;
42
42
  exports.KeyValueColumn.displayName = 'KeyValueColumn';
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueColumn.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAMqB;AACrB,8DAAiD;AACjD,0DAA6C;AAC7C,wDAA2C;AAIpC,MAAM,cAAc,GAAG,CAAC,EAC7B,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EAAE,UAAU,EACpB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB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gB,CAE5B;MAAA,CAAC,UAAU,CACb;IAAA,EAAE,6BAAa,CAAC,CACjB,CAAC;IAEF,MAAM,QAAQ,GAAG,CACf,CAAC,6BAAa,CACZ,cAAc,CAAC,CAAC,mBAAmB,CAAC,CACpC,YAAY,CAAC,CAAC,qBAAqB,CAAC,CACpC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,mBAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,kBAAU,CAAC,MAAM;YAC7B,KAAK,EAAE,iBAAS,CAAC,WAAW;YAC5B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CACF,WAAW,CAAC,gBAAgB,CAE5B;MAAA,CAAC,YAAY,CACf;IAAA,EAAE,6BAAa,CAAC,CACjB,CAAC;IAEF,OAAO,CACL,CAAC,yBAAW,CACV,eAAe,CAAC,CAAC,QAAQ,CAAC,CAC1B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,yBAAW,CAAC,CACf,CAAC;AACJ,CAAC,CAAC;AArFW,QAAA,cAAc,kBAqFzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '../../types';\nimport { BoxHorizontal } from '../BoxHorizontal';\nimport { BoxVertical } from '../BoxVertical';\nimport { ButtonIcon } from '../ButtonIcon';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <BoxHorizontal\n startAccessory={keyStartAccessory}\n endAccessory={keyEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {keyContent}\n </BoxHorizontal>\n );\n\n const valueBox = (\n <BoxHorizontal\n startAccessory={valueStartAccessory}\n endAccessory={valueEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {valueContent}\n </BoxHorizontal>\n );\n\n return (\n <BoxVertical\n bottomAccessory={valueBox}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n </BoxVertical>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
1
+ {"version":3,"file":"KeyValueColumn.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAMqB;AACrB,sDAAyC;AACzC,gDAAmC;AACnC,wDAA2C;AAIpC,MAAM,cAAc,GAAG,CAAC,EAC7B,iBAAiB,EAC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YAChC,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,YAAY;SAChB,CAAC,CACF,WAAW,CAAC,gBAAgB,CAE5B;MAAA,CAAC,UAAU,CACb;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;IAEF,MAAM,QAAQ,GAAG,CACf,CAAC,eAAM,CACL,cAAc,CAAC,CAAC,mBAAmB,CAAC,CACpC,YAAY,CAAC,CAAC,qBAAqB,CAAC,CACpC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,mBAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,kBAAU,CAAC,MAAM;YAC7B,KAAK,EAAE,iBAAS,CAAC,WAAW;YAC5B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CACF,WAAW,CAAC,gBAAgB,CAE5B;MAAA,CAAC,YAAY,CACf;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;IAEF,OAAO,CACL,CAAC,qBAAS,CACR,eAAe,CAAC,CAAC,QAAQ,CAAC,CAC1B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,qBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AArFW,QAAA,cAAc,kBAqFzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '../../types';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon } from '../ButtonIcon';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <BoxRow\n startAccessory={keyStartAccessory}\n endAccessory={keyEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {keyContent}\n </BoxRow>\n );\n\n const valueBox = (\n <BoxRow\n startAccessory={valueStartAccessory}\n endAccessory={valueEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {valueContent}\n </BoxRow>\n );\n\n return (\n <BoxColumn\n bottomAccessory={valueBox}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n </BoxColumn>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
@@ -7,15 +7,15 @@ function $importDefault(module) {
7
7
  import $React from "react";
8
8
  const React = $importDefault($React);
9
9
  import { ButtonIconSize, FontWeight, IconColor, TextColor, TextVariant } from "../../types/index.mjs";
10
- import { BoxHorizontal } from "../BoxHorizontal/index.mjs";
11
- import { BoxVertical } from "../BoxVertical/index.mjs";
10
+ import { BoxColumn } from "../BoxColumn/index.mjs";
11
+ import { BoxRow } from "../BoxRow/index.mjs";
12
12
  import { ButtonIcon } from "../ButtonIcon/index.mjs";
13
13
  export const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, twClassName, ...viewProps }) => {
14
14
  const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
15
15
  keyEndButtonIconProps.iconName !== null ? (<ButtonIcon size={ButtonIconSize.Sm} iconProps={{ color: IconColor.IconAlternative }} {...keyEndButtonIconProps} iconName={keyEndButtonIconProps.iconName}/>) : (keyEndAccessory);
16
16
  const valueEndAccessoryNode = valueEndButtonIconProps?.iconName !== undefined &&
17
17
  valueEndButtonIconProps.iconName !== null ? (<ButtonIcon size={ButtonIconSize.Sm} iconProps={{ color: IconColor.IconDefault }} {...valueEndButtonIconProps} iconName={valueEndButtonIconProps.iconName}/>) : (valueEndAccessory);
18
- const keyBox = (<BoxHorizontal startAccessory={keyStartAccessory} endAccessory={keyEndAccessoryNode} textProps={{
18
+ const keyBox = (<BoxRow startAccessory={keyStartAccessory} endAccessory={keyEndAccessoryNode} textProps={{
19
19
  variant: TextVariant.BodyMd,
20
20
  fontWeight: FontWeight.Medium,
21
21
  color: TextColor.TextAlternative,
@@ -24,8 +24,8 @@ export const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButto
24
24
  ...keyTextProps,
25
25
  }} twClassName="w-full min-w-0">
26
26
  {keyContent}
27
- </BoxHorizontal>);
28
- const valueBox = (<BoxHorizontal startAccessory={valueStartAccessory} endAccessory={valueEndAccessoryNode} textProps={{
27
+ </BoxRow>);
28
+ const valueBox = (<BoxRow startAccessory={valueStartAccessory} endAccessory={valueEndAccessoryNode} textProps={{
29
29
  variant: TextVariant.BodyMd,
30
30
  fontWeight: FontWeight.Medium,
31
31
  color: TextColor.TextDefault,
@@ -34,10 +34,10 @@ export const KeyValueColumn = ({ keyStartAccessory, keyEndAccessory, keyEndButto
34
34
  ...valueTextProps,
35
35
  }} twClassName="w-full min-w-0">
36
36
  {valueContent}
37
- </BoxHorizontal>);
38
- return (<BoxVertical bottomAccessory={valueBox} twClassName={twClassName} {...viewProps}>
37
+ </BoxRow>);
38
+ return (<BoxColumn bottomAccessory={valueBox} twClassName={twClassName} {...viewProps}>
39
39
  {keyBox}
40
- </BoxVertical>);
40
+ </BoxColumn>);
41
41
  };
42
42
  KeyValueColumn.displayName = 'KeyValueColumn';
43
43
  //# sourceMappingURL=KeyValueColumn.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueColumn.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,8BAAoB;AACrB,OAAO,EAAE,aAAa,EAAE,mCAAyB;AACjD,OAAO,EAAE,WAAW,EAAE,iCAAuB;AAC7C,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAI3C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EAAE,UAAU,EACpB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,EAAE,YAAY,EACnB,cAAc,EACd,WAAW,EACX,GAAG,SAAS,EACQ,EAAE,EAAE;IACxB,MAAM,mBAAmB,GACvB,qBAAqB,EAAE,QAAQ,KAAK,SAAS;QAC7C,qBAAqB,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CACxC,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,SAAS,CA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AAK,EAAE,SAAS,CAAC,WAAW;YAC5B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CACF,WAAW,CAAC,gBAAgB,CAE5B;MAAA,CAAC,YAAY,CACf;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;IAEF,OAAO,CACL,CAAC,WAAW,CACV,eAAe,CAAC,CAAC,QAAQ,CAAC,CAC1B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,WAAW,CAAC,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '../../types';\nimport { BoxHorizontal } from '../BoxHorizontal';\nimport { BoxVertical } from '../BoxVertical';\nimport { ButtonIcon } from '../ButtonIcon';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <BoxHorizontal\n startAccessory={keyStartAccessory}\n endAccessory={keyEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {keyContent}\n </BoxHorizontal>\n );\n\n const valueBox = (\n <BoxHorizontal\n startAccessory={valueStartAccessory}\n endAccessory={valueEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {valueContent}\n </BoxHorizontal>\n );\n\n return (\n <BoxVertical\n bottomAccessory={valueBox}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n </BoxVertical>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
1
+ {"version":3,"file":"KeyValueColumn.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueColumn/KeyValueColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,8BAAoB;AACrB,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAI3C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EAAE,UAAU,EACpB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,EAAE,YAAY,EACnB,cAAc,EACd,WAAW,EACX,GAAG,SAAS,EACQ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AAQ,GAAG,CACf,CAAC,MAAM,CACL,cAAc,CAAC,CAAC,mBAAmB,CAAC,CACpC,YAAY,CAAC,CAAC,qBAAqB,CAAC,CACpC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;YAC7B,KAAK,EAAE,SAAS,CAAC,WAAW;YAC5B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CACF,WAAW,CAAC,gBAAgB,CAE5B;MAAA,CAAC,YAAY,CACf;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,eAAe,CAAC,CAAC,QAAQ,CAAC,CAC1B,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,MAAM,CACT;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import React from 'react';\n\nimport {\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '../../types';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon } from '../ButtonIcon';\n\nimport type { KeyValueColumnProps } from './KeyValueColumn.types';\n\nexport const KeyValueColumn = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n twClassName,\n ...viewProps\n}: KeyValueColumnProps) => {\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconAlternative }}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n iconProps={{ color: IconColor.IconDefault }}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <BoxRow\n startAccessory={keyStartAccessory}\n endAccessory={keyEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {keyContent}\n </BoxRow>\n );\n\n const valueBox = (\n <BoxRow\n startAccessory={valueStartAccessory}\n endAccessory={valueEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n twClassName=\"w-full min-w-0\"\n >\n {valueContent}\n </BoxRow>\n );\n\n return (\n <BoxColumn\n bottomAccessory={valueBox}\n twClassName={twClassName}\n {...viewProps}\n >\n {keyBox}\n </BoxColumn>\n );\n};\n\nKeyValueColumn.displayName = 'KeyValueColumn';\n"]}
@@ -3,74 +3,53 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
6
+ exports.KeyValueRow = void 0;
7
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
7
8
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
8
9
  const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native/index.js");
10
- const Icon_1 = require("../Icon/index.cjs");
11
- const KeyValueLabel_1 = require("./KeyValueLabel/KeyValueLabel.cjs");
12
- const KeyValueRoot_1 = require("./KeyValueRoot/KeyValueRoot.cjs");
13
- const KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
14
- const KeyValueSection_1 = require("./KeyValueSection/KeyValueSection.cjs");
15
- const renderIcon = (icon) => {
16
- const { side: _side, ...iconProps } = icon;
17
- return <Icon_1.Icon {...iconProps}/>;
18
- };
19
- /**
20
- * Prebuilt convenience component to format and render a key/value label pair.
21
- * The KeyValueRowLabel component has props to display a tooltip and icon.
22
- *
23
- * @param props - Component props
24
- * @param props.field - Represents the left side of the key value row pair
25
- * @param props.value - Represents the right side of the key value row pair
26
- * @param props.twClassName - Optional Tailwind class names for the root element
27
- * @param props.style - Optional additional styles for the root element
28
- *
29
- * @returns The rendered KeyValueRow component.
30
- */
31
- const KeyValueRow = ({ field, value, twClassName, style, ...props }) => {
10
+ const types_1 = require("../../types/index.cjs");
11
+ const Box_1 = require("../Box/index.cjs");
12
+ const BoxRow_1 = require("../BoxRow/index.cjs");
13
+ const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
14
+ const KeyValueRow = ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, variant = design_system_shared_1.KeyValueRowVariant.Summary, twClassName, style, ...viewProps }) => {
32
15
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
33
- const fieldIcon = field?.icon;
34
- const valueIcon = value?.icon;
35
- return (<KeyValueRoot_1.KeyValueRowRoot twClassName={twClassName} style={style} {...props}>
36
- <KeyValueSection_1.KeyValueSection>
37
- <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
38
- {fieldIcon?.name &&
39
- (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
40
- fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
41
- !fieldIcon.side) &&
42
- renderIcon(fieldIcon)}
43
- <KeyValueLabel_1.KeyValueRowLabel label={field.label} tooltip={field.tooltip}/>
44
- {fieldIcon?.name &&
45
- (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
46
- fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
47
- renderIcon(fieldIcon)}
48
- </react_native_1.View>
49
- </KeyValueSection_1.KeyValueSection>
50
- <KeyValueSection_1.KeyValueSection align={KeyValueRow_types_1.KeyValueRowSectionAlignments.Right}>
51
- <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
52
- {valueIcon?.name &&
53
- (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
54
- valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
55
- !valueIcon.side) &&
56
- renderIcon(valueIcon)}
57
- <KeyValueLabel_1.KeyValueRowLabel label={value.label} tooltip={value.tooltip}/>
58
- {valueIcon?.name &&
59
- (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
60
- valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
61
- renderIcon(valueIcon)}
62
- </react_native_1.View>
63
- </KeyValueSection_1.KeyValueSection>
64
- </KeyValueRoot_1.KeyValueRowRoot>);
16
+ const keyEndAccessoryNode = keyEndButtonIconProps?.iconName !== undefined &&
17
+ keyEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={types_1.ButtonIconSize.Sm} {...keyEndButtonIconProps} iconName={keyEndButtonIconProps.iconName} iconProps={{
18
+ color: types_1.IconColor.IconAlternative,
19
+ ...keyEndButtonIconProps.iconProps,
20
+ }}/>) : (keyEndAccessory);
21
+ const valueEndAccessoryNode = valueEndButtonIconProps?.iconName !== undefined &&
22
+ valueEndButtonIconProps.iconName !== null ? (<ButtonIcon_1.ButtonIcon size={types_1.ButtonIconSize.Sm} {...valueEndButtonIconProps} iconName={valueEndButtonIconProps.iconName} iconProps={{
23
+ color: types_1.IconColor.IconDefault,
24
+ ...valueEndButtonIconProps.iconProps,
25
+ }}/>) : (valueEndAccessory);
26
+ const keyBox = (<BoxRow_1.BoxRow startAccessory={keyStartAccessory} endAccessory={keyEndAccessoryNode} textProps={{
27
+ variant: types_1.TextVariant.BodyMd,
28
+ fontWeight: types_1.FontWeight.Medium,
29
+ color: types_1.TextColor.TextAlternative,
30
+ numberOfLines: 1,
31
+ ellipsizeMode: 'tail',
32
+ ...keyTextProps,
33
+ }}>
34
+ {keyContent}
35
+ </BoxRow_1.BoxRow>);
36
+ const valueBox = (<BoxRow_1.BoxRow startAccessory={valueStartAccessory} endAccessory={valueEndAccessoryNode} textProps={{
37
+ variant: types_1.TextVariant.BodyMd,
38
+ fontWeight: types_1.FontWeight.Medium,
39
+ color: types_1.TextColor.TextDefault,
40
+ numberOfLines: 1,
41
+ ellipsizeMode: 'tail',
42
+ ...valueTextProps,
43
+ }} twClassName="flex-1 min-w-0 justify-end">
44
+ {valueContent}
45
+ </BoxRow_1.BoxRow>);
46
+ return (<BoxRow_1.BoxRow endAccessory={valueBox} gap={4} style={[
47
+ tw.style(variant === design_system_shared_1.KeyValueRowVariant.Input ? 'h-12' : 'h-10', twClassName),
48
+ style,
49
+ ]} {...viewProps}>
50
+ <Box_1.Box twClassName="shrink-0">{keyBox}</Box_1.Box>
51
+ </BoxRow_1.BoxRow>);
65
52
  };
66
53
  exports.KeyValueRow = KeyValueRow;
67
54
  exports.KeyValueRow.displayName = 'KeyValueRow';
68
- /**
69
- * Exported sub-components to provide a base for new KeyValueRow variants.
70
- */
71
- exports.KeyValueRowStubs = {
72
- Root: KeyValueRoot_1.KeyValueRowRoot,
73
- Section: KeyValueSection_1.KeyValueSection,
74
- Label: KeyValueLabel_1.KeyValueRowLabel,
75
- };
76
55
  //# sourceMappingURL=KeyValueRow.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyVal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useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { Icon } from '../Icon';\nimport type { IconProps } from '../Icon';\n\nimport { KeyValueRowLabel } from './KeyValueLabel/KeyValueLabel';\nimport { KeyValueRowRoot } from './KeyValueRoot/KeyValueRoot';\nimport type { KeyValueRowProps } from './KeyValueRow.types';\nimport {\n KeyValueRowFieldIconSides,\n KeyValueRowSectionAlignments,\n} from './KeyValueRow.types';\nimport { KeyValueSection } from './KeyValueSection/KeyValueSection';\n\ntype IconWithSide = IconProps & { side?: KeyValueRowFieldIconSides };\n\nconst renderIcon = (icon: IconWithSide) => {\n const { side: _side, ...iconProps } = icon;\n return <Icon {...iconProps} />;\n};\n\n/**\n * Prebuilt convenience component to format and render a key/value label pair.\n * The KeyValueRowLabel component has props to display a tooltip and icon.\n *\n * @param props - Component props\n * @param props.field - Represents the left side of the key value row pair\n * @param props.value - Represents the right side of the key value row pair\n * @param props.twClassName - Optional Tailwind class names for the root element\n * @param props.style - Optional additional styles for the root element\n *\n * @returns The rendered KeyValueRow component.\n */\nexport const KeyValueRow: React.FC<KeyValueRowProps> = ({\n field,\n value,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n const fieldIcon = field?.icon;\n const valueIcon = value?.icon;\n\n return (\n <KeyValueRowRoot twClassName={twClassName} style={style} {...props}>\n <KeyValueSection>\n <View style={tw.style('flex-row items-center gap-2')}>\n {fieldIcon?.name &&\n (fieldIcon.side === KeyValueRowFieldIconSides.Left ||\n fieldIcon.side === KeyValueRowFieldIconSides.Both ||\n !fieldIcon.side) &&\n renderIcon(fieldIcon)}\n <KeyValueRowLabel label={field.label} tooltip={field.tooltip} />\n {fieldIcon?.name &&\n (fieldIcon.side === KeyValueRowFieldIconSides.Right ||\n fieldIcon.side === KeyValueRowFieldIconSides.Both) &&\n renderIcon(fieldIcon)}\n </View>\n </KeyValueSection>\n <KeyValueSection align={KeyValueRowSectionAlignments.Right}>\n <View style={tw.style('flex-row items-center gap-2')}>\n {valueIcon?.name &&\n (valueIcon.side === KeyValueRowFieldIconSides.Left ||\n valueIcon.side === KeyValueRowFieldIconSides.Both ||\n !valueIcon.side) &&\n renderIcon(valueIcon)}\n <KeyValueRowLabel label={value.label} tooltip={value.tooltip} />\n {valueIcon?.name &&\n (valueIcon.side === KeyValueRowFieldIconSides.Right ||\n valueIcon.side === KeyValueRowFieldIconSides.Both) &&\n renderIcon(valueIcon)}\n </View>\n </KeyValueSection>\n </KeyValueRowRoot>\n );\n};\n\nKeyValueRow.displayName = 'KeyValueRow';\n\n/**\n * Exported sub-components to provide a base for new KeyValueRow variants.\n */\nexport const KeyValueRowStubs = {\n Root: KeyValueRowRoot,\n Section: KeyValueSection,\n Label: KeyValueRowLabel,\n};\n"]}
1
+ {"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAA6E;AAC7E,8FAA4E;AAC5E,kDAA0B;AAE1B,iDAMqB;AACrB,0CAA6B;AAC7B,gDAAmC;AACnC,wDAA2C;AAIpC,MAAM,WAAW,GAAG,CAAC,EAC1B,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EAAE,UAAU,EACpB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,EAAE,YAAY,EACnB,cAAc,EACd,OAAO,GAAG,yCAAkB,CAAC,OAAO,EACpC,WAAW,EACX,KAAK,EACL,GAAG,SAAS,EACK,EAAE,EAAE;IACrB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,mBAAmB,GACvB,qBAAqB,EAAE,QAAQ,KAAK,SAAS;QAC7C,qBAAqB,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CACxC,CAAC,uBAAU,CACT,IAAI,CAAC,CAAC,sBAAc,CAAC,EAAE,CAAC,CACxB,IAAI,qB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,UAAU,EAAE,kBAAU,CAAC,MAAM;YAC7B,KAAK,EAAE,iBAAS,CAAC,WAAW;YAC5B,aAAa,EAAE,CAAC;YAChB,aAAa,EAAE,MAAM;YACrB,GAAG,cAAc;SAClB,CAAC,CACF,WAAW,CAAC,4BAA4B,CAExC;MAAA,CAAC,YAAY,CACf;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;IAEF,OAAO,CACL,CAAC,eAAM,CACL,YAAY,CAAC,CAAC,QAAQ,CAAC,CACvB,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,OAAO,KAAK,yCAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EACtD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,SAAS,CAAC,CAEd;MAAA,CAAC,SAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,SAAG,CAC3C;IAAA,EAAE,eAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AArGW,QAAA,WAAW,eAqGtB;AAEF,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import { KeyValueRowVariant } from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport {\n ButtonIconSize,\n FontWeight,\n IconColor,\n TextColor,\n TextVariant,\n} from '../../types';\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon } from '../ButtonIcon';\n\nimport type { KeyValueRowProps } from './KeyValueRow.types';\n\nexport const KeyValueRow = ({\n keyStartAccessory,\n keyEndAccessory,\n keyEndButtonIconProps,\n keyLabel: keyContent,\n keyTextProps,\n valueStartAccessory,\n valueEndAccessory,\n valueEndButtonIconProps,\n value: valueContent,\n valueTextProps,\n variant = KeyValueRowVariant.Summary,\n twClassName,\n style,\n ...viewProps\n}: KeyValueRowProps) => {\n const tw = useTailwind();\n\n const keyEndAccessoryNode =\n keyEndButtonIconProps?.iconName !== undefined &&\n keyEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...keyEndButtonIconProps}\n iconName={keyEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconAlternative,\n ...keyEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n keyEndAccessory\n );\n\n const valueEndAccessoryNode =\n valueEndButtonIconProps?.iconName !== undefined &&\n valueEndButtonIconProps.iconName !== null ? (\n <ButtonIcon\n size={ButtonIconSize.Sm}\n {...valueEndButtonIconProps}\n iconName={valueEndButtonIconProps.iconName}\n iconProps={{\n color: IconColor.IconDefault,\n ...valueEndButtonIconProps.iconProps,\n }}\n />\n ) : (\n valueEndAccessory\n );\n\n const keyBox = (\n <BoxRow\n startAccessory={keyStartAccessory}\n endAccessory={keyEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...keyTextProps,\n }}\n >\n {keyContent}\n </BoxRow>\n );\n\n const valueBox = (\n <BoxRow\n startAccessory={valueStartAccessory}\n endAccessory={valueEndAccessoryNode}\n textProps={{\n variant: TextVariant.BodyMd,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextDefault,\n numberOfLines: 1,\n ellipsizeMode: 'tail',\n ...valueTextProps,\n }}\n twClassName=\"flex-1 min-w-0 justify-end\"\n >\n {valueContent}\n </BoxRow>\n );\n\n return (\n <BoxRow\n endAccessory={valueBox}\n gap={4}\n style={[\n tw.style(\n variant === KeyValueRowVariant.Input ? 'h-12' : 'h-10',\n twClassName,\n ),\n style,\n ]}\n {...viewProps}\n >\n <Box twClassName=\"shrink-0\">{keyBox}</Box>\n </BoxRow>\n );\n};\n\nKeyValueRow.displayName = 'KeyValueRow';\n"]}
@@ -1,24 +1,7 @@
1
1
  import React from "react";
2
2
  import type { KeyValueRowProps } from "./KeyValueRow.types.cjs";
3
- /**
4
- * Prebuilt convenience component to format and render a key/value label pair.
5
- * The KeyValueRowLabel component has props to display a tooltip and icon.
6
- *
7
- * @param props - Component props
8
- * @param props.field - Represents the left side of the key value row pair
9
- * @param props.value - Represents the right side of the key value row pair
10
- * @param props.twClassName - Optional Tailwind class names for the root element
11
- * @param props.style - Optional additional styles for the root element
12
- *
13
- * @returns The rendered KeyValueRow component.
14
- */
15
- export declare const KeyValueRow: React.FC<KeyValueRowProps>;
16
- /**
17
- * Exported sub-components to provide a base for new KeyValueRow variants.
18
- */
19
- export declare const KeyValueRowStubs: {
20
- Root: React.FC<import("./KeyValueRow.types.cjs").KeyValueRowRootProps>;
21
- Section: React.FC<import("./KeyValueRow.types.cjs").KeyValueSectionProps>;
22
- Label: React.FC<import("./KeyValueRow.types.cjs").KeyValueRowLabelProps>;
3
+ export declare const KeyValueRow: {
4
+ ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, variant, twClassName, style, ...viewProps }: KeyValueRowProps): React.JSX.Element;
5
+ displayName: string;
23
6
  };
24
7
  //# sourceMappingURL=KeyValueRow.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAc5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4ClD,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC"}
1
+ {"version":3,"file":"KeyValueRow.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAa1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW;yPAerB,gBAAgB;;CAsFlB,CAAC"}
@@ -1,24 +1,7 @@
1
1
  import React from "react";
2
2
  import type { KeyValueRowProps } from "./KeyValueRow.types.mjs";
3
- /**
4
- * Prebuilt convenience component to format and render a key/value label pair.
5
- * The KeyValueRowLabel component has props to display a tooltip and icon.
6
- *
7
- * @param props - Component props
8
- * @param props.field - Represents the left side of the key value row pair
9
- * @param props.value - Represents the right side of the key value row pair
10
- * @param props.twClassName - Optional Tailwind class names for the root element
11
- * @param props.style - Optional additional styles for the root element
12
- *
13
- * @returns The rendered KeyValueRow component.
14
- */
15
- export declare const KeyValueRow: React.FC<KeyValueRowProps>;
16
- /**
17
- * Exported sub-components to provide a base for new KeyValueRow variants.
18
- */
19
- export declare const KeyValueRowStubs: {
20
- Root: React.FC<import("./KeyValueRow.types.mjs").KeyValueRowRootProps>;
21
- Section: React.FC<import("./KeyValueRow.types.mjs").KeyValueSectionProps>;
22
- Label: React.FC<import("./KeyValueRow.types.mjs").KeyValueRowLabelProps>;
3
+ export declare const KeyValueRow: {
4
+ ({ keyStartAccessory, keyEndAccessory, keyEndButtonIconProps, keyLabel: keyContent, keyTextProps, valueStartAccessory, valueEndAccessory, valueEndButtonIconProps, value: valueContent, valueTextProps, variant, twClassName, style, ...viewProps }: KeyValueRowProps): React.JSX.Element;
5
+ displayName: string;
23
6
  };
24
7
  //# sourceMappingURL=KeyValueRow.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAc5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4ClD,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC"}
1
+ {"version":3,"file":"KeyValueRow.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAa1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW;yPAerB,gBAAgB;;CAsFlB,CAAC"}