@metamask-previews/design-system-react-native 0.13.0-preview.69c659c → 0.13.0-preview.beee588

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 (279) hide show
  1. package/dist/components/AvatarAccount/AvatarAccount.cjs +4 -3
  2. package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
  3. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs +9 -1
  4. package/dist/components/AvatarAccount/AvatarAccount.constants.cjs.map +1 -1
  5. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts +2 -0
  6. package/dist/components/AvatarAccount/AvatarAccount.constants.d.cts.map +1 -1
  7. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts +2 -0
  8. package/dist/components/AvatarAccount/AvatarAccount.constants.d.mts.map +1 -1
  9. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs +8 -0
  10. package/dist/components/AvatarAccount/AvatarAccount.constants.mjs.map +1 -1
  11. package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
  12. package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
  13. package/dist/components/AvatarAccount/AvatarAccount.mjs +4 -3
  14. package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
  15. package/dist/components/AvatarBase/AvatarBase.cjs +3 -3
  16. package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
  17. package/dist/components/AvatarBase/AvatarBase.constants.cjs +21 -21
  18. package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
  19. package/dist/components/AvatarBase/AvatarBase.constants.d.cts +1 -1
  20. package/dist/components/AvatarBase/AvatarBase.constants.d.cts.map +1 -1
  21. package/dist/components/AvatarBase/AvatarBase.constants.d.mts +1 -1
  22. package/dist/components/AvatarBase/AvatarBase.constants.d.mts.map +1 -1
  23. package/dist/components/AvatarBase/AvatarBase.constants.mjs +1 -1
  24. package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
  25. package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
  26. package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
  27. package/dist/components/AvatarBase/AvatarBase.mjs +1 -1
  28. package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
  29. package/dist/components/AvatarBase/AvatarBase.types.cjs.map +1 -1
  30. package/dist/components/AvatarBase/AvatarBase.types.d.cts +3 -39
  31. package/dist/components/AvatarBase/AvatarBase.types.d.cts.map +1 -1
  32. package/dist/components/AvatarBase/AvatarBase.types.d.mts +3 -39
  33. package/dist/components/AvatarBase/AvatarBase.types.d.mts.map +1 -1
  34. package/dist/components/AvatarBase/AvatarBase.types.mjs.map +1 -1
  35. package/dist/components/AvatarBase/index.cjs +3 -3
  36. package/dist/components/AvatarBase/index.cjs.map +1 -1
  37. package/dist/components/AvatarBase/index.d.cts +1 -1
  38. package/dist/components/AvatarBase/index.d.cts.map +1 -1
  39. package/dist/components/AvatarBase/index.d.mts +1 -1
  40. package/dist/components/AvatarBase/index.d.mts.map +1 -1
  41. package/dist/components/AvatarBase/index.mjs +1 -1
  42. package/dist/components/AvatarBase/index.mjs.map +1 -1
  43. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  44. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  45. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  46. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  47. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  48. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  49. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  50. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  51. package/dist/components/BannerBase/BannerBase.cjs +1 -2
  52. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  53. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  54. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  55. package/dist/components/BannerBase/BannerBase.mjs +1 -2
  56. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  57. package/dist/components/BottomSheet/BottomSheet.cjs +7 -10
  58. package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
  59. package/dist/components/BottomSheet/BottomSheet.d.cts +1 -2
  60. package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
  61. package/dist/components/BottomSheet/BottomSheet.d.mts +1 -2
  62. package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
  63. package/dist/components/BottomSheet/BottomSheet.mjs +5 -5
  64. package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
  65. package/dist/components/BottomSheet/BottomSheet.types.cjs.map +1 -1
  66. package/dist/components/BottomSheet/BottomSheet.types.d.cts +3 -8
  67. package/dist/components/BottomSheet/BottomSheet.types.d.cts.map +1 -1
  68. package/dist/components/BottomSheet/BottomSheet.types.d.mts +3 -8
  69. package/dist/components/BottomSheet/BottomSheet.types.d.mts.map +1 -1
  70. package/dist/components/BottomSheet/BottomSheet.types.mjs.map +1 -1
  71. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +2 -2
  72. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  73. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +1 -2
  74. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
  75. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +1 -2
  76. package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
  77. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +1 -2
  78. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  79. package/dist/components/BottomSheetDialog/index.cjs +2 -5
  80. package/dist/components/BottomSheetDialog/index.cjs.map +1 -1
  81. package/dist/components/BottomSheetDialog/index.d.cts +1 -1
  82. package/dist/components/BottomSheetDialog/index.d.cts.map +1 -1
  83. package/dist/components/BottomSheetDialog/index.d.mts +1 -1
  84. package/dist/components/BottomSheetDialog/index.d.mts.map +1 -1
  85. package/dist/components/BottomSheetDialog/index.mjs +1 -1
  86. package/dist/components/BottomSheetDialog/index.mjs.map +1 -1
  87. package/dist/components/Box/Box.constants.cjs.map +1 -1
  88. package/dist/components/Box/Box.constants.d.cts +1 -1
  89. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  90. package/dist/components/Box/Box.constants.d.mts +1 -1
  91. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  92. package/dist/components/Box/Box.constants.mjs.map +1 -1
  93. package/dist/components/Box/Box.types.cjs.map +1 -1
  94. package/dist/components/Box/Box.types.d.cts +107 -3
  95. package/dist/components/Box/Box.types.d.cts.map +1 -1
  96. package/dist/components/Box/Box.types.d.mts +107 -3
  97. package/dist/components/Box/Box.types.d.mts.map +1 -1
  98. package/dist/components/Box/Box.types.mjs.map +1 -1
  99. package/dist/components/Box/index.cjs +7 -7
  100. package/dist/components/Box/index.cjs.map +1 -1
  101. package/dist/components/Box/index.d.cts +2 -1
  102. package/dist/components/Box/index.d.cts.map +1 -1
  103. package/dist/components/Box/index.d.mts +2 -1
  104. package/dist/components/Box/index.d.mts.map +1 -1
  105. package/dist/components/Box/index.mjs +1 -1
  106. package/dist/components/Box/index.mjs.map +1 -1
  107. package/dist/components/BoxHorizontal/BoxHorizontal.cjs +2 -2
  108. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +1 -1
  109. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +1 -1
  110. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +1 -1
  111. package/dist/components/BoxHorizontal/BoxHorizontal.mjs +1 -1
  112. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +1 -1
  113. package/dist/components/BoxVertical/BoxVertical.cjs +2 -2
  114. package/dist/components/BoxVertical/BoxVertical.cjs.map +1 -1
  115. package/dist/components/BoxVertical/BoxVertical.d.cts.map +1 -1
  116. package/dist/components/BoxVertical/BoxVertical.d.mts.map +1 -1
  117. package/dist/components/BoxVertical/BoxVertical.mjs +1 -1
  118. package/dist/components/BoxVertical/BoxVertical.mjs.map +1 -1
  119. package/dist/components/HeaderRoot/HeaderRoot.cjs +61 -0
  120. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -0
  121. package/dist/components/HeaderRoot/HeaderRoot.d.cts +7 -0
  122. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -0
  123. package/dist/components/HeaderRoot/HeaderRoot.d.mts +7 -0
  124. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -0
  125. package/dist/components/HeaderRoot/HeaderRoot.mjs +61 -0
  126. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -0
  127. package/dist/components/HeaderRoot/HeaderRoot.types.cjs +3 -0
  128. package/dist/components/HeaderRoot/HeaderRoot.types.cjs.map +1 -0
  129. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts +60 -0
  130. package/dist/components/HeaderRoot/HeaderRoot.types.d.cts.map +1 -0
  131. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts +60 -0
  132. package/dist/components/HeaderRoot/HeaderRoot.types.d.mts.map +1 -0
  133. package/dist/components/HeaderRoot/HeaderRoot.types.mjs +2 -0
  134. package/dist/components/HeaderRoot/HeaderRoot.types.mjs.map +1 -0
  135. package/dist/components/HeaderRoot/index.cjs +6 -0
  136. package/dist/components/HeaderRoot/index.cjs.map +1 -0
  137. package/dist/components/HeaderRoot/index.d.cts +3 -0
  138. package/dist/components/HeaderRoot/index.d.cts.map +1 -0
  139. package/dist/components/HeaderRoot/index.d.mts +3 -0
  140. package/dist/components/HeaderRoot/index.d.mts.map +1 -0
  141. package/dist/components/HeaderRoot/index.mjs +2 -0
  142. package/dist/components/HeaderRoot/index.mjs.map +1 -0
  143. package/dist/components/HeaderStandard/HeaderStandard.cjs +101 -0
  144. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -0
  145. package/dist/components/HeaderStandard/HeaderStandard.d.cts +4 -0
  146. package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -0
  147. package/dist/components/HeaderStandard/HeaderStandard.d.mts +4 -0
  148. package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -0
  149. package/dist/components/HeaderStandard/HeaderStandard.mjs +81 -0
  150. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -0
  151. package/dist/components/HeaderStandard/HeaderStandard.types.cjs +8 -0
  152. package/dist/components/HeaderStandard/HeaderStandard.types.cjs.map +1 -0
  153. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts +55 -0
  154. package/dist/components/HeaderStandard/HeaderStandard.types.d.cts.map +1 -0
  155. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts +55 -0
  156. package/dist/components/HeaderStandard/HeaderStandard.types.d.mts.map +1 -0
  157. package/dist/components/HeaderStandard/HeaderStandard.types.mjs +10 -0
  158. package/dist/components/HeaderStandard/HeaderStandard.types.mjs.map +1 -0
  159. package/dist/components/HeaderStandard/index.cjs +6 -0
  160. package/dist/components/HeaderStandard/index.cjs.map +1 -0
  161. package/dist/components/HeaderStandard/index.d.cts +3 -0
  162. package/dist/components/HeaderStandard/index.d.cts.map +1 -0
  163. package/dist/components/HeaderStandard/index.d.mts +3 -0
  164. package/dist/components/HeaderStandard/index.d.mts.map +1 -0
  165. package/dist/components/HeaderStandard/index.mjs +2 -0
  166. package/dist/components/HeaderStandard/index.mjs.map +1 -0
  167. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +2 -1
  168. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +1 -1
  169. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +1 -2
  170. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +1 -1
  171. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +1 -2
  172. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +1 -1
  173. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +1 -2
  174. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +1 -1
  175. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +2 -1
  176. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +1 -1
  177. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +1 -2
  178. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +1 -1
  179. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +1 -2
  180. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +1 -1
  181. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +1 -2
  182. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +1 -1
  183. package/dist/components/KeyValueRow/KeyValueRow.cjs +17 -17
  184. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  185. package/dist/components/KeyValueRow/KeyValueRow.d.cts +1 -2
  186. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  187. package/dist/components/KeyValueRow/KeyValueRow.d.mts +1 -2
  188. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  189. package/dist/components/KeyValueRow/KeyValueRow.mjs +4 -5
  190. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  191. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +2 -1
  192. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +1 -1
  193. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +1 -2
  194. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +1 -1
  195. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +1 -2
  196. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +1 -1
  197. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +1 -2
  198. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +1 -1
  199. package/dist/components/KeyValueRow/index.cjs +2 -5
  200. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  201. package/dist/components/KeyValueRow/index.d.cts +1 -1
  202. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  203. package/dist/components/KeyValueRow/index.d.mts +1 -1
  204. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  205. package/dist/components/KeyValueRow/index.mjs +1 -1
  206. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  207. package/dist/components/Skeleton/Skeleton.cjs +2 -1
  208. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  209. package/dist/components/Skeleton/Skeleton.d.cts +1 -2
  210. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -1
  211. package/dist/components/Skeleton/Skeleton.d.mts +1 -2
  212. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -1
  213. package/dist/components/Skeleton/Skeleton.mjs +1 -2
  214. package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
  215. package/dist/components/Skeleton/index.cjs +1 -4
  216. package/dist/components/Skeleton/index.cjs.map +1 -1
  217. package/dist/components/Skeleton/index.d.cts +1 -1
  218. package/dist/components/Skeleton/index.d.cts.map +1 -1
  219. package/dist/components/Skeleton/index.d.mts +1 -1
  220. package/dist/components/Skeleton/index.d.mts.map +1 -1
  221. package/dist/components/Skeleton/index.mjs +1 -1
  222. package/dist/components/Skeleton/index.mjs.map +1 -1
  223. package/dist/components/TextFieldSearch/TextFieldSearch.cjs +45 -0
  224. package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -0
  225. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +14 -0
  226. package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -0
  227. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +14 -0
  228. package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -0
  229. package/dist/components/TextFieldSearch/TextFieldSearch.mjs +26 -0
  230. package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -0
  231. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs +3 -0
  232. package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -0
  233. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +17 -0
  234. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -0
  235. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +17 -0
  236. package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -0
  237. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs +2 -0
  238. package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -0
  239. package/dist/components/TextFieldSearch/index.cjs +6 -0
  240. package/dist/components/TextFieldSearch/index.cjs.map +1 -0
  241. package/dist/components/TextFieldSearch/index.d.cts +3 -0
  242. package/dist/components/TextFieldSearch/index.d.cts.map +1 -0
  243. package/dist/components/TextFieldSearch/index.d.mts +3 -0
  244. package/dist/components/TextFieldSearch/index.d.mts.map +1 -0
  245. package/dist/components/TextFieldSearch/index.mjs +2 -0
  246. package/dist/components/TextFieldSearch/index.mjs.map +1 -0
  247. package/dist/components/Toast/Toast.cjs +2 -2
  248. package/dist/components/Toast/Toast.cjs.map +1 -1
  249. package/dist/components/Toast/Toast.d.cts +1 -2
  250. package/dist/components/Toast/Toast.d.cts.map +1 -1
  251. package/dist/components/Toast/Toast.d.mts +1 -2
  252. package/dist/components/Toast/Toast.d.mts.map +1 -1
  253. package/dist/components/Toast/Toast.mjs +1 -2
  254. package/dist/components/Toast/Toast.mjs.map +1 -1
  255. package/dist/components/Toast/index.cjs +1 -4
  256. package/dist/components/Toast/index.cjs.map +1 -1
  257. package/dist/components/Toast/index.d.cts +1 -1
  258. package/dist/components/Toast/index.d.cts.map +1 -1
  259. package/dist/components/Toast/index.d.mts +1 -1
  260. package/dist/components/Toast/index.d.mts.map +1 -1
  261. package/dist/components/Toast/index.mjs +1 -1
  262. package/dist/components/Toast/index.mjs.map +1 -1
  263. package/dist/components/index.cjs +9 -5
  264. package/dist/components/index.cjs.map +1 -1
  265. package/dist/components/index.d.cts +7 -1
  266. package/dist/components/index.d.cts.map +1 -1
  267. package/dist/components/index.d.mts +7 -1
  268. package/dist/components/index.d.mts.map +1 -1
  269. package/dist/components/index.mjs +4 -1
  270. package/dist/components/index.mjs.map +1 -1
  271. package/dist/types/index.cjs +190 -41
  272. package/dist/types/index.cjs.map +1 -1
  273. package/dist/types/index.d.cts +182 -46
  274. package/dist/types/index.d.cts.map +1 -1
  275. package/dist/types/index.d.mts +182 -46
  276. package/dist/types/index.d.mts.map +1 -1
  277. package/dist/types/index.mjs +180 -48
  278. package/dist/types/index.mjs.map +1 -1
  279. package/package.json +6 -6
@@ -21,7 +21,7 @@ import { isPreDefinedKeyValueRowLabel } from "../KeyValueRow.utils.mjs";
21
21
  *
22
22
  * @returns The rendered KeyValueRowLabel component.
23
23
  */
24
- const KeyValueRowLabel = ({ label, tooltip, }) => {
24
+ export const KeyValueRowLabel = ({ label, tooltip, }) => {
25
25
  const tw = useTailwind();
26
26
  const hasTooltip = Boolean(tooltip?.title && tooltip?.content);
27
27
  return (<View style={tw.style('flex-row items-center')}>
@@ -31,5 +31,4 @@ const KeyValueRowLabel = ({ label, tooltip, }) => {
31
31
  {hasTooltip && tooltip && (<ButtonIcon size={tooltip.size ?? ButtonIconSize.Md} iconName={tooltip.iconName ?? IconName.Question} accessibilityLabel={`${tooltip.title} tooltip`} onPress={() => tooltip?.onPress?.()}/>)}
32
32
  </View>);
33
33
  };
34
- export default KeyValueRowLabel;
35
34
  //# sourceMappingURL=KeyValueLabel.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueLabel.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueR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C,CAAC,GAAG,OAAO,CAAC,KAAK,UAAU,CAAC,CAC/C,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nconst KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n\nexport default KeyValueRowLabel;\n"]}
1
+ {"version":3,"file":"KeyValueLabel.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E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CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EACpC,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../../ButtonIcon';\nimport { IconName } from '../../Icon';\nimport { Text, TextColor, TextVariant } from '../../Text';\nimport type { KeyValueRowLabelProps } from '../KeyValueRow.types';\nimport { isPreDefinedKeyValueRowLabel } from '../KeyValueRow.utils';\n\n/**\n * A label and optional tooltip button component.\n *\n * @param props - Component props.\n * @param props.label - The label content to display.\n * @param props.tooltip - Optional tooltip to render to the right of the label.\n *\n * @returns The rendered KeyValueRowLabel component.\n */\nexport const KeyValueRowLabel: React.FC<KeyValueRowLabelProps> = ({\n label,\n tooltip,\n}) => {\n const tw = useTailwind();\n\n const hasTooltip = Boolean(tooltip?.title && tooltip?.content);\n\n return (\n <View style={tw.style('flex-row items-center')}>\n {isPreDefinedKeyValueRowLabel(label) ? (\n <Text\n variant={label.variant ?? TextVariant.BodyMd}\n color={label.color ?? TextColor.TextDefault}\n >\n {label.text}\n </Text>\n ) : (\n label\n )}\n {hasTooltip && tooltip && (\n <ButtonIcon\n size={tooltip.size ?? ButtonIconSize.Md}\n iconName={tooltip.iconName ?? IconName.Question}\n accessibilityLabel={`${tooltip.title} tooltip`}\n onPress={() => tooltip?.onPress?.()}\n />\n )}\n </View>\n );\n};\n"]}
@@ -3,6 +3,7 @@ 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.KeyValueRowRoot = void 0;
6
7
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const react_native_1 = require("react-native/index.js");
@@ -35,5 +36,5 @@ const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
35
36
  {children}
36
37
  </react_native_1.View>);
37
38
  };
38
- exports.default = KeyValueRowRoot;
39
+ exports.KeyValueRowRoot = KeyValueRowRoot;
39
40
  //# sourceMappingURL=KeyValueRoot.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nconst KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n\nexport default KeyValueRowRoot;\n"]}
1
+ {"version":3,"file":"KeyValueRoot.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,eAAe,mBAsB1B","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nexport const KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n"]}
@@ -20,6 +20,5 @@ import type { KeyValueRowRootProps } from "../KeyValueRow.types.cjs";
20
20
  *
21
21
  * @returns The rendered Root component.
22
22
  */
23
- declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- export default KeyValueRowRoot;
23
+ export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
25
24
  //# sourceMappingURL=KeyValueRoot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueRoot.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
@@ -20,6 +20,5 @@ import type { KeyValueRowRootProps } from "../KeyValueRow.types.mjs";
20
20
  *
21
21
  * @returns The rendered Root component.
22
22
  */
23
- declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- export default KeyValueRowRoot;
23
+ export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
25
24
  //# sourceMappingURL=KeyValueRoot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueRoot.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
@@ -28,7 +28,7 @@ import { View } from "react-native/index.js";
28
28
  *
29
29
  * @returns The rendered Root component.
30
30
  */
31
- const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
31
+ export const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
32
32
  const tw = useTailwind();
33
33
  return (<View style={[
34
34
  tw.style('flex-row justify-between items-center overflow-hidden', twClassName),
@@ -37,5 +37,4 @@ const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
37
37
  {children}
38
38
  </View>);
39
39
  };
40
- export default KeyValueRowRoot;
41
40
  //# sourceMappingURL=KeyValueRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nconst KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n\nexport default KeyValueRowRoot;\n"]}
1
+ {"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nexport const KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n"]}
@@ -3,15 +3,15 @@ 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 = void 0;
6
+ exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
7
7
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const react_native_1 = require("react-native/index.js");
10
10
  const Icon_1 = require("../Icon/index.cjs");
11
- const KeyValueLabel_1 = __importDefault(require("./KeyValueLabel/KeyValueLabel.cjs"));
12
- const KeyValueRoot_1 = __importDefault(require("./KeyValueRoot/KeyValueRoot.cjs"));
11
+ const KeyValueLabel_1 = require("./KeyValueLabel/KeyValueLabel.cjs");
12
+ const KeyValueRoot_1 = require("./KeyValueRoot/KeyValueRoot.cjs");
13
13
  const KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
14
- const KeyValueSection_1 = __importDefault(require("./KeyValueSection/KeyValueSection.cjs"));
14
+ const KeyValueSection_1 = require("./KeyValueSection/KeyValueSection.cjs");
15
15
  const renderIcon = (icon) => {
16
16
  const { side: _side, ...iconProps } = icon;
17
17
  return <Icon_1.Icon {...iconProps}/>;
@@ -32,45 +32,45 @@ const KeyValueRow = ({ field, value, twClassName, style, ...props }) => {
32
32
  const tw = (0, design_system_twrnc_preset_1.useTailwind)();
33
33
  const fieldIcon = field?.icon;
34
34
  const valueIcon = value?.icon;
35
- return (<KeyValueRoot_1.default twClassName={twClassName} style={style} {...props}>
36
- <KeyValueSection_1.default>
35
+ return (<KeyValueRoot_1.KeyValueRowRoot twClassName={twClassName} style={style} {...props}>
36
+ <KeyValueSection_1.KeyValueSection>
37
37
  <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
38
38
  {fieldIcon?.name &&
39
39
  (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
40
40
  fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
41
41
  !fieldIcon.side) &&
42
42
  renderIcon(fieldIcon)}
43
- <KeyValueLabel_1.default label={field.label} tooltip={field.tooltip}/>
43
+ <KeyValueLabel_1.KeyValueRowLabel label={field.label} tooltip={field.tooltip}/>
44
44
  {fieldIcon?.name &&
45
45
  (fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
46
46
  fieldIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
47
47
  renderIcon(fieldIcon)}
48
48
  </react_native_1.View>
49
- </KeyValueSection_1.default>
50
- <KeyValueSection_1.default align={KeyValueRow_types_1.KeyValueRowSectionAlignments.Right}>
49
+ </KeyValueSection_1.KeyValueSection>
50
+ <KeyValueSection_1.KeyValueSection align={KeyValueRow_types_1.KeyValueRowSectionAlignments.Right}>
51
51
  <react_native_1.View style={tw.style('flex-row items-center gap-2')}>
52
52
  {valueIcon?.name &&
53
53
  (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Left ||
54
54
  valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both ||
55
55
  !valueIcon.side) &&
56
56
  renderIcon(valueIcon)}
57
- <KeyValueLabel_1.default label={value.label} tooltip={value.tooltip}/>
57
+ <KeyValueLabel_1.KeyValueRowLabel label={value.label} tooltip={value.tooltip}/>
58
58
  {valueIcon?.name &&
59
59
  (valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Right ||
60
60
  valueIcon.side === KeyValueRow_types_1.KeyValueRowFieldIconSides.Both) &&
61
61
  renderIcon(valueIcon)}
62
62
  </react_native_1.View>
63
- </KeyValueSection_1.default>
64
- </KeyValueRoot_1.default>);
63
+ </KeyValueSection_1.KeyValueSection>
64
+ </KeyValueRoot_1.KeyValueRowRoot>);
65
65
  };
66
- KeyValueRow.displayName = 'KeyValueRow';
66
+ exports.KeyValueRow = KeyValueRow;
67
+ exports.KeyValueRow.displayName = 'KeyValueRow';
67
68
  /**
68
69
  * Exported sub-components to provide a base for new KeyValueRow variants.
69
70
  */
70
71
  exports.KeyValueRowStubs = {
71
- Root: KeyValueRoot_1.default,
72
- Section: KeyValueSection_1.default,
73
- Label: KeyValueLabel_1.default,
72
+ Root: KeyValueRoot_1.KeyValueRowRoot,
73
+ Section: KeyValueSection_1.KeyValueSection,
74
+ Label: KeyValueLabel_1.KeyValueRowLabel,
74
75
  };
75
- exports.default = KeyValueRow;
76
76
  //# sourceMappingURL=KeyValueRow.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,4CAA+B;AAG/B,sFAA6D;AAC7D,mFAA0D;AAE1D,+DAG6B;AAC7B,4FAAgE;AAIhE,MAAM,UAAU,GAAG,CAAC,IAAkB,EAAE,EAAE;IACxC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IAC3C,OAAO,CAAC,WAAI,CAAC,IAAI,SAAS,CAAC,EAAG,CAAC;AACjC,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,GAA+B,CAAC,EAC/C,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,MAAM,SAAS,GAAG,KAAK,EAAE,IAAI,CAAC;IAC9B,MAAM,SAAS,GAAG,KAAK,EAAE,IAAI,CAAC;IAE9B,OAAO,CACL,CAAC,sBAAe,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,CACjE;MAAA,CAAC,yB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AK,6CAAyB,CAAC,KAAK;gBACjD,SAAS,CAAC,IAAI,KAAK,6CAAyB,CAAC,IAAI,CAAC;YACpD,UAAU,CAAC,SAAS,CAAC,CACzB;QAAA,EAAE,mBAAI,CACR;MAAA,EAAE,yBAAe,CACnB;IAAA,EAAE,sBAAe,CAAC,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,sBAAe;IACrB,OAAO,EAAE,yBAAe;IACxB,KAAK,EAAE,uBAAgB;CACxB,CAAC;AAEF,kBAAe,WAAW,CAAC","sourcesContent":["import { 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 */\nconst 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\nexport default KeyValueRow;\n"]}
1
+ {"version":3,"file":"KeyValueRow.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,4CAA+B;AAG/B,qEAAiE;AACjE,kEAA8D;AAE9D,+DAG6B;AAC7B,2EAAoE;AAIpE,MAAM,UAAU,GAAG,CAAC,IAAkB,EAAE,EAAE;IACxC,MAAM,EAAE,IAAI,EA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AAC,iCAAe,CAAC,KAAK,CAAC,CAAC,gDAA4B,CAAC,KAAK,CAAC,CACzD;QAAA,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,CACnD;UAAA,CAAC,SAAS,EAAE,IAAI;YACd,CAAC,SAAS,CAAC,IAAI,KAAK,6CAAyB,CAAC,IAAI;gBAChD,SAAS,CAAC,IAAI,KAAK,6CAAyB,CAAC,IAAI;gBACjD,CAAC,SAAS,CAAC,IAAI,CAAC;YAClB,UAAU,CAAC,SAAS,CAAC,CACvB;UAAA,CAAC,gCAAgB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAC7D;UAAA,CAAC,SAAS,EAAE,IAAI;YACd,CAAC,SAAS,CAAC,IAAI,KAAK,6CAAyB,CAAC,KAAK;gBACjD,SAAS,CAAC,IAAI,KAAK,6CAAyB,CAAC,IAAI,CAAC;YACpD,UAAU,CAAC,SAAS,CAAC,CACzB;QAAA,EAAE,mBAAI,CACR;MAAA,EAAE,iCAAe,CACnB;IAAA,EAAE,8BAAe,CAAC,CACnB,CAAC;AACJ,CAAC,CAAC;AA5CW,QAAA,WAAW,eA4CtB;AAEF,mBAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,8BAAe;IACrB,OAAO,EAAE,iCAAe;IACxB,KAAK,EAAE,gCAAgB;CACxB,CAAC","sourcesContent":["import { 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"]}
@@ -12,7 +12,7 @@ import type { KeyValueRowProps } from "./KeyValueRow.types.cjs";
12
12
  *
13
13
  * @returns The rendered KeyValueRow component.
14
14
  */
15
- declare const KeyValueRow: React.FC<KeyValueRowProps>;
15
+ export declare const KeyValueRow: React.FC<KeyValueRowProps>;
16
16
  /**
17
17
  * Exported sub-components to provide a base for new KeyValueRow variants.
18
18
  */
@@ -21,5 +21,4 @@ export declare const KeyValueRowStubs: {
21
21
  Section: React.FC<import("./KeyValueRow.types.cjs").KeyValueSectionProps>;
22
22
  Label: React.FC<import("./KeyValueRow.types.cjs").KeyValueRowLabelProps>;
23
23
  };
24
- export default KeyValueRow;
25
24
  //# 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,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4C3C,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
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"}
@@ -12,7 +12,7 @@ import type { KeyValueRowProps } from "./KeyValueRow.types.mjs";
12
12
  *
13
13
  * @returns The rendered KeyValueRow component.
14
14
  */
15
- declare const KeyValueRow: React.FC<KeyValueRowProps>;
15
+ export declare const KeyValueRow: React.FC<KeyValueRowProps>;
16
16
  /**
17
17
  * Exported sub-components to provide a base for new KeyValueRow variants.
18
18
  */
@@ -21,5 +21,4 @@ export declare const KeyValueRowStubs: {
21
21
  Section: React.FC<import("./KeyValueRow.types.mjs").KeyValueSectionProps>;
22
22
  Label: React.FC<import("./KeyValueRow.types.mjs").KeyValueRowLabelProps>;
23
23
  };
24
- export default KeyValueRow;
25
24
  //# 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,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4C3C,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAe,WAAW,CAAC"}
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"}
@@ -9,10 +9,10 @@ import $React from "react";
9
9
  const React = $importDefault($React);
10
10
  import { View } from "react-native/index.js";
11
11
  import { Icon } from "../Icon/index.mjs";
12
- import KeyValueRowLabel from "./KeyValueLabel/KeyValueLabel.mjs";
13
- import KeyValueRowRoot from "./KeyValueRoot/KeyValueRoot.mjs";
12
+ import { KeyValueRowLabel } from "./KeyValueLabel/KeyValueLabel.mjs";
13
+ import { KeyValueRowRoot } from "./KeyValueRoot/KeyValueRoot.mjs";
14
14
  import { KeyValueRowFieldIconSides, KeyValueRowSectionAlignments } from "./KeyValueRow.types.mjs";
15
- import KeyValueSection from "./KeyValueSection/KeyValueSection.mjs";
15
+ import { KeyValueSection } from "./KeyValueSection/KeyValueSection.mjs";
16
16
  const renderIcon = (icon) => {
17
17
  const { side: _side, ...iconProps } = icon;
18
18
  return <Icon {...iconProps}/>;
@@ -29,7 +29,7 @@ const renderIcon = (icon) => {
29
29
  *
30
30
  * @returns The rendered KeyValueRow component.
31
31
  */
32
- const KeyValueRow = ({ field, value, twClassName, style, ...props }) => {
32
+ export const KeyValueRow = ({ field, value, twClassName, style, ...props }) => {
33
33
  const tw = useTailwind();
34
34
  const fieldIcon = field?.icon;
35
35
  const valueIcon = value?.icon;
@@ -73,5 +73,4 @@ export const KeyValueRowStubs = {
73
73
  Section: KeyValueSection,
74
74
  Label: KeyValueRowLabel,
75
75
  };
76
- export default KeyValueRow;
77
76
  //# sourceMappingURL=KeyValueRow.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueRow.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAG/B,OAAO,gB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port { 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 */\nconst 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\nexport default KeyValueRow;\n"]}
1
+ {"version":3,"file":"KeyValueRow.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,IAAI,EAAE,0BAAgB;AAG/B,OAAO,EAAE,gBAAgB,EAAE,0CAAsC;AACjE,OAAO,EAAE,eAAe,EAAE,wCAAoC;AAE9D,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC7B,gCAA4B;AAC7B,OAAO,EAAE,eAAe,EAAE,8CAA0C;AAIpE,MAAM,UAAU,GAAG,CAAC,IAAkB,EAAE,EAAE;IACxC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,IAAI,CAAC;IAC3C,OAAO,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,EAAG,CAAC;AACjC,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,M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B,CAAC,IAAI;gBACjD,CAAC,SAAS,CAAC,IAAI,CAAC;YAClB,UAAU,CAAC,SAAS,CAAC,CACvB;UAAA,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAC7D;UAAA,CAAC,SAAS,EAAE,IAAI;YACd,CAAC,SAAS,CAAC,IAAI,KAAK,yBAAyB,CAAC,KAAK;gBACjD,SAAS,CAAC,IAAI,KAAK,yBAAyB,CAAC,IAAI,CAAC;YACpD,UAAU,CAAC,SAAS,CAAC,CACzB;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,eAAe,CACnB;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,gBAAgB;CACxB,CAAC","sourcesContent":["import { 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"]}
@@ -3,6 +3,7 @@ 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.KeyValueSection = void 0;
6
7
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
7
8
  const react_1 = __importDefault(require("react"));
8
9
  const react_native_1 = require("react-native/index.js");
@@ -25,5 +26,5 @@ const KeyValueSection = ({ children, align = KeyValueRow_types_1.KeyValueRowSect
25
26
  {children}
26
27
  </react_native_1.View>);
27
28
  };
28
- exports.default = KeyValueSection;
29
+ exports.KeyValueSection = KeyValueSection;
29
30
  //# sourceMappingURL=KeyValueSection.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,gEAAoE;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,KAAK,GAAG,gDAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nconst KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n\nexport default KeyValueSection;\n"]}
1
+ {"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,gEAAoE;AAGpE;;;;;;;;;;;GAWG;AACI,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,gDAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,eAAe,mBAc1B","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -12,6 +12,5 @@ import type { KeyValueSectionProps } from "../KeyValueRow.types.cjs";
12
12
  *
13
13
  * @returns The rendered KeyValueSection component.
14
14
  */
15
- declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- export default KeyValueSection;
15
+ export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
17
16
  //# sourceMappingURL=KeyValueSection.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
@@ -12,6 +12,5 @@ import type { KeyValueSectionProps } from "../KeyValueRow.types.mjs";
12
12
  *
13
13
  * @returns The rendered KeyValueSection component.
14
14
  */
15
- declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- export default KeyValueSection;
15
+ export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
17
16
  //# sourceMappingURL=KeyValueSection.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAcnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
@@ -21,11 +21,10 @@ import { KeyValueRowSectionAlignments } from "../KeyValueRow.types.mjs";
21
21
  *
22
22
  * @returns The rendered KeyValueSection component.
23
23
  */
24
- const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
24
+ export const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
25
25
  const tw = useTailwind();
26
26
  return (<View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
27
27
  {children}
28
28
  </View>);
29
29
  };
30
- export default KeyValueSection;
31
30
  //# sourceMappingURL=KeyValueSection.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAmC,CAAC,EACvD,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nconst KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n\nexport default KeyValueSection;\n"]}
1
+ {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.default = exports.KeyValueRowStubs = void 0;
3
+ exports.IconSizes = exports.TooltipSizes = exports.KeyValueRowFieldIconSides = exports.KeyValueRowSectionAlignments = exports.KeyValueRowStubs = exports.KeyValueRow = void 0;
7
4
  var KeyValueRow_1 = require("./KeyValueRow.cjs");
5
+ Object.defineProperty(exports, "KeyValueRow", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRow; } });
8
6
  Object.defineProperty(exports, "KeyValueRowStubs", { enumerable: true, get: function () { return KeyValueRow_1.KeyValueRowStubs; } });
9
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(KeyValueRow_1).default; } });
10
7
  var KeyValueRow_types_1 = require("./KeyValueRow.types.cjs");
11
8
  Object.defineProperty(exports, "KeyValueRowSectionAlignments", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowSectionAlignments; } });
12
9
  Object.defineProperty(exports, "KeyValueRowFieldIconSides", { enumerable: true, get: function () { return KeyValueRow_types_1.KeyValueRowFieldIconSides; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;;;;AAAA,iDAA0D;AAAjD,+GAAA,gBAAgB,OAAA;AAAE,uHAAA,OAAO,OAAA;AAClC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRowStubs, default } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":";;;AAAA,iDAA8D;AAArD,0GAAA,WAAW,OAAA;AAAE,+GAAA,gBAAgB,OAAA;AACtC,6DAY6B;AAX3B,iIAAA,4BAA4B,OAAA;AAC5B,8HAAA,yBAAyB,OAAA;AACzB,iHAAA,YAAY,OAAA;AACZ,8GAAA,SAAS,OAAA","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.cjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.cjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.cjs";
3
3
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.mjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes, type KeyValueRowTooltip, type KeyValueRowField, type PreDefinedKeyValueRowLabel, type KeyValueRowLabelProps, type KeyValueRowRootProps, type KeyValueSectionProps, type KeyValueRowProps, } from "./KeyValueRow.types.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,GACtB,gCAA4B"}
@@ -1,3 +1,3 @@
1
- export { KeyValueRowStubs, default } from "./KeyValueRow.mjs";
1
+ export { KeyValueRow, KeyValueRowStubs } from "./KeyValueRow.mjs";
2
2
  export { KeyValueRowSectionAlignments, KeyValueRowFieldIconSides, TooltipSizes, IconSizes } from "./KeyValueRow.types.mjs";
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,0BAAsB;AAC1D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRowStubs, default } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,0BAAsB;AAC9D,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EACZ,SAAS,EAQV,gCAA4B","sourcesContent":["export { KeyValueRow, KeyValueRowStubs } from './KeyValueRow';\nexport {\n KeyValueRowSectionAlignments,\n KeyValueRowFieldIconSides,\n TooltipSizes,\n IconSizes,\n type KeyValueRowTooltip,\n type KeyValueRowField,\n type PreDefinedKeyValueRowLabel,\n type KeyValueRowLabelProps,\n type KeyValueRowRootProps,\n type KeyValueSectionProps,\n type KeyValueRowProps,\n} from './KeyValueRow.types';\n"]}
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Skeleton = void 0;
26
27
  const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
27
28
  const react_1 = __importStar(require("react"));
28
29
  const react_native_1 = require("react-native/index.js");
@@ -82,5 +83,5 @@ const Skeleton = ({ height, width, children, hideChildren = false, style, childr
82
83
  </react_native_1.View>)}
83
84
  </react_native_1.View>);
84
85
  };
85
- exports.default = Skeleton;
86
+ exports.Skeleton = Skeleton;
86
87
  //# sourceMappingURL=Skeleton.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAiD;AACjD,wDAA8C;AAI9C,MAAM,QAAQ,GAA4B,CAAC,EACzC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE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CAAC;YACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,EAAE,WAAW,CAAC;YAChD,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE;YAClC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE;YAChC,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,uBAAQ,CAAC,IAAI,CACZ,IAAI,iBAAiB,CAAC,CACtB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,8CAA8C,CAAC;YACxD,EAAE,OAAO,EAAE,WAAW,EAAE;YACxB,iBAAiB,EAAE,KAAK;SACzB,CAAC,CACF,aAAa,CAAC,MAAM,EAGtB;;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,mBAAI,CACH,IAAI,oBAAoB,CAAC,CACzB,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;gBACnC,oBAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nconst Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n\nexport default Skeleton;\n"]}
1
+ {"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA4E;AAC5E,+CAAiD;AACjD,wDAA8C;AAIvC,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,KAAK,EACpB,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,QAAQ,GAAG,IAAI,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,WAAW,GAAG,IAAA,cAAM,EAAC,IAAI,uB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AM,EAAE;YAClC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE;YAChC,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,uBAAQ,CAAC,IAAI,CACZ,IAAI,iBAAiB,CAAC,CACtB,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CAAC,8CAA8C,CAAC;YACxD,EAAE,OAAO,EAAE,WAAW,EAAE;YACxB,iBAAiB,EAAE,KAAK;SACzB,CAAC,CACF,aAAa,CAAC,MAAM,EAGtB;;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,mBAAI,CACH,IAAI,oBAAoB,CAAC,CACzB,KAAK,CAAC,CAAC;gBACL,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;gBACnC,oBAAoB,EAAE,KAAK;aAC5B,CAAC,CACF,aAAa,CAAC,MAAM,CACpB,2BAA2B,CAC3B,yBAAyB,CAAC,qBAAqB,CAE/C;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,mBAAI,CAAC,CACR,CACH;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAxFW,QAAA,QAAQ,YAwFnB","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { useEffect, useRef } from 'react';\nimport { Animated, View } from 'react-native';\n\nimport type { SkeletonProps } from './Skeleton.types';\n\nexport const Skeleton: React.FC<SkeletonProps> = ({\n height,\n width,\n children,\n hideChildren = false,\n style,\n childrenWrapperProps,\n animatedViewProps,\n twClassName,\n autoPlay = true,\n ...props\n}) => {\n const tw = useTailwind();\n const opacityAnim = useRef(new Animated.Value(0.2)).current;\n const hasChildren = children !== null && children !== undefined;\n\n const startAnimation = () => {\n Animated.sequence([\n Animated.timing(opacityAnim, {\n toValue: 0.1,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n Animated.timing(opacityAnim, {\n toValue: 0.2,\n duration: 700,\n useNativeDriver: true,\n isInteraction: false,\n }),\n ]).start(({ finished }) => {\n /* istanbul ignore next - animation interruption is not testable in Jest */\n if (finished) {\n startAnimation();\n }\n });\n };\n\n useEffect(() => {\n if (autoPlay && (!hasChildren || hideChildren)) {\n startAnimation();\n }\n\n return () => {\n opacityAnim.stopAnimation();\n };\n }, [hasChildren, hideChildren, autoPlay]);\n\n if (!hideChildren && hasChildren) {\n return <>{children}</>;\n }\n\n return (\n <View\n style={[\n tw.style('rounded overflow-hidden', twClassName),\n height !== undefined && { height },\n width !== undefined && { width },\n style,\n ]}\n {...props}\n >\n <Animated.View\n {...animatedViewProps}\n style={[\n tw.style('absolute inset-0 rounded bg-icon-alternative'),\n { opacity: opacityAnim },\n animatedViewProps?.style,\n ]}\n pointerEvents=\"none\"\n />\n\n {hasChildren && (\n <View\n {...childrenWrapperProps}\n style={[\n tw.style('relative z-10 opacity-0'),\n childrenWrapperProps?.style,\n ]}\n pointerEvents=\"none\"\n accessibilityElementsHidden\n importantForAccessibility=\"no-hide-descendants\"\n >\n {children}\n </View>\n )}\n </View>\n );\n};\n"]}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
2
  import type { SkeletonProps } from "./Skeleton.types.cjs";
3
- declare const Skeleton: React.FC<SkeletonProps>;
4
- export default Skeleton;
3
+ export declare const Skeleton: React.FC<SkeletonProps>;
5
4
  //# sourceMappingURL=Skeleton.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwF5C,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
2
  import type { SkeletonProps } from "./Skeleton.types.mjs";
3
- declare const Skeleton: React.FC<SkeletonProps>;
4
- export default Skeleton;
3
+ export declare const Skeleton: React.FC<SkeletonProps>;
5
4
  //# sourceMappingURL=Skeleton.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,cAAc;AAGjD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwF5C,CAAC"}
@@ -8,7 +8,7 @@ import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
8
8
  import $React, { useEffect, useRef } from "react";
9
9
  const React = $importDefault($React);
10
10
  import { Animated, View } from "react-native/index.js";
11
- const Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
11
+ export const Skeleton = ({ height, width, children, hideChildren = false, style, childrenWrapperProps, animatedViewProps, twClassName, autoPlay = true, ...props }) => {
12
12
  const tw = useTailwind();
13
13
  const opacityAnim = useRef(new Animated.Value(0.2)).current;
14
14
  const hasChildren = children !== null && children !== undefined;
@@ -64,5 +64,4 @@ const Skeleton = ({ height, width, children, hideChildren = false, style, childr
64
64
  </View>)}
65
65
  </View>);
66
66
  };
67
- export default Skeleton;
68
67
  //# sourceMappingURL=Skeleton.mjs.map