@metamask/design-system-react-native 0.15.0 → 0.16.0

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 (218) 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/{BoxVertical/BoxVertical.cjs → BoxColumn/BoxColumn.cjs} +5 -5
  9. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -0
  10. package/dist/components/BoxColumn/BoxColumn.d.cts +7 -0
  11. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -0
  12. package/dist/components/BoxColumn/BoxColumn.d.mts +7 -0
  13. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -0
  14. package/dist/components/{BoxVertical/BoxVertical.mjs → BoxColumn/BoxColumn.mjs} +3 -3
  15. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -0
  16. package/dist/components/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
  17. package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -0
  18. package/dist/components/BoxColumn/BoxColumn.types.d.cts +13 -0
  19. package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -0
  20. package/dist/components/BoxColumn/BoxColumn.types.d.mts +13 -0
  21. package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -0
  22. package/dist/components/BoxColumn/BoxColumn.types.mjs +2 -0
  23. package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -0
  24. package/dist/components/BoxColumn/index.cjs +6 -0
  25. package/dist/components/BoxColumn/index.cjs.map +1 -0
  26. package/dist/components/BoxColumn/index.d.cts +3 -0
  27. package/dist/components/BoxColumn/index.d.cts.map +1 -0
  28. package/dist/components/BoxColumn/index.d.mts +3 -0
  29. package/dist/components/BoxColumn/index.d.mts.map +1 -0
  30. package/dist/components/BoxColumn/index.mjs +2 -0
  31. package/dist/components/BoxColumn/index.mjs.map +1 -0
  32. package/dist/components/{BoxHorizontal/BoxHorizontal.cjs → BoxRow/BoxRow.cjs} +5 -5
  33. package/dist/components/BoxRow/BoxRow.cjs.map +1 -0
  34. package/dist/components/BoxRow/BoxRow.d.cts +7 -0
  35. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -0
  36. package/dist/components/BoxRow/BoxRow.d.mts +7 -0
  37. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -0
  38. package/dist/components/{BoxHorizontal/BoxHorizontal.mjs → BoxRow/BoxRow.mjs} +3 -3
  39. package/dist/components/BoxRow/BoxRow.mjs.map +1 -0
  40. package/dist/components/{BoxHorizontal/BoxHorizontal.types.cjs → BoxRow/BoxRow.types.cjs} +1 -1
  41. package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -0
  42. package/dist/components/BoxRow/BoxRow.types.d.cts +13 -0
  43. package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -0
  44. package/dist/components/BoxRow/BoxRow.types.d.mts +13 -0
  45. package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -0
  46. package/dist/components/BoxRow/BoxRow.types.mjs +2 -0
  47. package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -0
  48. package/dist/components/BoxRow/index.cjs +6 -0
  49. package/dist/components/BoxRow/index.cjs.map +1 -0
  50. package/dist/components/BoxRow/index.d.cts +3 -0
  51. package/dist/components/BoxRow/index.d.cts.map +1 -0
  52. package/dist/components/BoxRow/index.d.mts +3 -0
  53. package/dist/components/BoxRow/index.d.mts.map +1 -0
  54. package/dist/components/BoxRow/index.mjs +2 -0
  55. package/dist/components/BoxRow/index.mjs.map +1 -0
  56. package/dist/components/HeaderRoot/HeaderRoot.cjs +3 -3
  57. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  58. package/dist/components/HeaderRoot/HeaderRoot.mjs +3 -3
  59. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  60. package/dist/components/HeaderSearch/HeaderSearch.cjs +80 -0
  61. package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -0
  62. package/dist/components/HeaderSearch/HeaderSearch.d.cts +37 -0
  63. package/dist/components/HeaderSearch/HeaderSearch.d.cts.map +1 -0
  64. package/dist/components/HeaderSearch/HeaderSearch.d.mts +37 -0
  65. package/dist/components/HeaderSearch/HeaderSearch.d.mts.map +1 -0
  66. package/dist/components/HeaderSearch/HeaderSearch.mjs +80 -0
  67. package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -0
  68. package/dist/components/HeaderSearch/HeaderSearch.types.cjs +3 -0
  69. package/dist/components/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
  70. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts +33 -0
  71. package/dist/components/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
  72. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts +33 -0
  73. package/dist/components/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
  74. package/dist/components/HeaderSearch/HeaderSearch.types.mjs +2 -0
  75. package/dist/components/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
  76. package/dist/components/HeaderSearch/index.cjs +8 -0
  77. package/dist/components/HeaderSearch/index.cjs.map +1 -0
  78. package/dist/components/HeaderSearch/index.d.cts +4 -0
  79. package/dist/components/HeaderSearch/index.d.cts.map +1 -0
  80. package/dist/components/HeaderSearch/index.d.mts +4 -0
  81. package/dist/components/HeaderSearch/index.d.mts.map +1 -0
  82. package/dist/components/HeaderSearch/index.mjs +3 -0
  83. package/dist/components/HeaderSearch/index.mjs.map +1 -0
  84. package/dist/components/HeaderStandard/HeaderStandard.cjs +3 -3
  85. package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
  86. package/dist/components/HeaderStandard/HeaderStandard.mjs +3 -3
  87. package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
  88. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +43 -0
  89. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -0
  90. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts +7 -0
  91. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -0
  92. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts +7 -0
  93. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -0
  94. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +43 -0
  95. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -0
  96. package/dist/components/KeyValueColumn/KeyValueColumn.types.cjs +3 -0
  97. package/dist/components/KeyValueColumn/KeyValueColumn.types.cjs.map +1 -0
  98. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +17 -0
  99. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -0
  100. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +17 -0
  101. package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -0
  102. package/dist/components/KeyValueColumn/KeyValueColumn.types.mjs +2 -0
  103. package/dist/components/KeyValueColumn/KeyValueColumn.types.mjs.map +1 -0
  104. package/dist/components/KeyValueColumn/index.cjs +6 -0
  105. package/dist/components/KeyValueColumn/index.cjs.map +1 -0
  106. package/dist/components/KeyValueColumn/index.d.cts +3 -0
  107. package/dist/components/KeyValueColumn/index.d.cts.map +1 -0
  108. package/dist/components/KeyValueColumn/index.d.mts +3 -0
  109. package/dist/components/KeyValueColumn/index.d.mts.map +1 -0
  110. package/dist/components/KeyValueColumn/index.mjs +2 -0
  111. package/dist/components/KeyValueColumn/index.mjs.map +1 -0
  112. package/dist/components/KeyValueRow/KeyValueRow.cjs +43 -64
  113. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  114. package/dist/components/KeyValueRow/KeyValueRow.d.cts +3 -20
  115. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  116. package/dist/components/KeyValueRow/KeyValueRow.d.mts +3 -20
  117. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  118. package/dist/components/KeyValueRow/KeyValueRow.mjs +42 -63
  119. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  120. package/dist/components/KeyValueRow/KeyValueRow.types.cjs +0 -26
  121. package/dist/components/KeyValueRow/KeyValueRow.types.cjs.map +1 -1
  122. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +14 -174
  123. package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
  124. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +14 -174
  125. package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
  126. package/dist/components/KeyValueRow/KeyValueRow.types.mjs +1 -25
  127. package/dist/components/KeyValueRow/KeyValueRow.types.mjs.map +1 -1
  128. package/dist/components/KeyValueRow/index.cjs +3 -7
  129. package/dist/components/KeyValueRow/index.cjs.map +1 -1
  130. package/dist/components/KeyValueRow/index.d.cts +3 -2
  131. package/dist/components/KeyValueRow/index.d.cts.map +1 -1
  132. package/dist/components/KeyValueRow/index.d.mts +3 -2
  133. package/dist/components/KeyValueRow/index.d.mts.map +1 -1
  134. package/dist/components/KeyValueRow/index.mjs +2 -2
  135. package/dist/components/KeyValueRow/index.mjs.map +1 -1
  136. package/dist/components/index.cjs +15 -7
  137. package/dist/components/index.cjs.map +1 -1
  138. package/dist/components/index.d.cts +10 -4
  139. package/dist/components/index.d.cts.map +1 -1
  140. package/dist/components/index.d.mts +10 -4
  141. package/dist/components/index.d.mts.map +1 -1
  142. package/dist/components/index.mjs +5 -2
  143. package/dist/components/index.mjs.map +1 -1
  144. package/package.json +2 -2
  145. package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +0 -1
  146. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +0 -7
  147. package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +0 -1
  148. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +0 -7
  149. package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +0 -1
  150. package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +0 -1
  151. package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
  152. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +0 -13
  153. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
  154. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +0 -13
  155. package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
  156. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
  157. package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
  158. package/dist/components/BoxHorizontal/index.cjs +0 -6
  159. package/dist/components/BoxHorizontal/index.cjs.map +0 -1
  160. package/dist/components/BoxHorizontal/index.d.cts +0 -3
  161. package/dist/components/BoxHorizontal/index.d.cts.map +0 -1
  162. package/dist/components/BoxHorizontal/index.d.mts +0 -3
  163. package/dist/components/BoxHorizontal/index.d.mts.map +0 -1
  164. package/dist/components/BoxHorizontal/index.mjs +0 -2
  165. package/dist/components/BoxHorizontal/index.mjs.map +0 -1
  166. package/dist/components/BoxVertical/BoxVertical.cjs.map +0 -1
  167. package/dist/components/BoxVertical/BoxVertical.d.cts +0 -7
  168. package/dist/components/BoxVertical/BoxVertical.d.cts.map +0 -1
  169. package/dist/components/BoxVertical/BoxVertical.d.mts +0 -7
  170. package/dist/components/BoxVertical/BoxVertical.d.mts.map +0 -1
  171. package/dist/components/BoxVertical/BoxVertical.mjs.map +0 -1
  172. package/dist/components/BoxVertical/BoxVertical.types.cjs.map +0 -1
  173. package/dist/components/BoxVertical/BoxVertical.types.d.cts +0 -13
  174. package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +0 -1
  175. package/dist/components/BoxVertical/BoxVertical.types.d.mts +0 -13
  176. package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +0 -1
  177. package/dist/components/BoxVertical/BoxVertical.types.mjs +0 -2
  178. package/dist/components/BoxVertical/BoxVertical.types.mjs.map +0 -1
  179. package/dist/components/BoxVertical/index.cjs +0 -6
  180. package/dist/components/BoxVertical/index.cjs.map +0 -1
  181. package/dist/components/BoxVertical/index.d.cts +0 -3
  182. package/dist/components/BoxVertical/index.d.cts.map +0 -1
  183. package/dist/components/BoxVertical/index.d.mts +0 -3
  184. package/dist/components/BoxVertical/index.d.mts.map +0 -1
  185. package/dist/components/BoxVertical/index.mjs +0 -2
  186. package/dist/components/BoxVertical/index.mjs.map +0 -1
  187. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +0 -34
  188. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +0 -1
  189. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +0 -13
  190. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +0 -1
  191. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +0 -13
  192. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +0 -1
  193. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +0 -34
  194. package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +0 -1
  195. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +0 -40
  196. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +0 -1
  197. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +0 -24
  198. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +0 -1
  199. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +0 -24
  200. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +0 -1
  201. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +0 -40
  202. package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +0 -1
  203. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs +0 -6
  204. package/dist/components/KeyValueRow/KeyValueRow.utils.cjs.map +0 -1
  205. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts +0 -3
  206. package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts.map +0 -1
  207. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts +0 -3
  208. package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts.map +0 -1
  209. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs +0 -2
  210. package/dist/components/KeyValueRow/KeyValueRow.utils.mjs.map +0 -1
  211. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +0 -30
  212. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +0 -1
  213. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +0 -16
  214. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +0 -1
  215. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +0 -16
  216. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +0 -1
  217. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +0 -30
  218. package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +0 -1
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueRowLabelProps } from "../KeyValueRow.types.cjs";
3
- /**
4
- * A label and optional tooltip button component.
5
- *
6
- * @param props - Component props.
7
- * @param props.label - The label content to display.
8
- * @param props.tooltip - Optional tooltip to render to the right of the label.
9
- *
10
- * @returns The rendered KeyValueRowLabel component.
11
- */
12
- export declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
13
- //# sourceMappingURL=KeyValueLabel.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueLabel.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueRowLabelProps } from "../KeyValueRow.types.mjs";
3
- /**
4
- * A label and optional tooltip button component.
5
- *
6
- * @param props - Component props.
7
- * @param props.label - The label content to display.
8
- * @param props.tooltip - Optional tooltip to render to the right of the label.
9
- *
10
- * @returns The rendered KeyValueRowLabel component.
11
- */
12
- export declare const KeyValueRowLabel: React.FC<KeyValueRowLabelProps>;
13
- //# sourceMappingURL=KeyValueLabel.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueLabel.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,iCAA6B;AAGlE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8B5D,CAAC"}
@@ -1,34 +0,0 @@
1
- function $importDefault(module) {
2
- if (module?.__esModule) {
3
- return module.default;
4
- }
5
- return module;
6
- }
7
- import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
- import $React from "react";
9
- const React = $importDefault($React);
10
- import { View } from "react-native/index.js";
11
- import { ButtonIcon, ButtonIconSize } from "../../ButtonIcon/index.mjs";
12
- import { IconName } from "../../Icon/index.mjs";
13
- import { Text, TextColor, TextVariant } from "../../Text/index.mjs";
14
- import { isPreDefinedKeyValueRowLabel } from "../KeyValueRow.utils.mjs";
15
- /**
16
- * A label and optional tooltip button component.
17
- *
18
- * @param props - Component props.
19
- * @param props.label - The label content to display.
20
- * @param props.tooltip - Optional tooltip to render to the right of the label.
21
- *
22
- * @returns The rendered KeyValueRowLabel component.
23
- */
24
- export const KeyValueRowLabel = ({ label, tooltip, }) => {
25
- const tw = useTailwind();
26
- const hasTooltip = Boolean(tooltip?.title && tooltip?.content);
27
- return (<View style={tw.style('flex-row items-center')}>
28
- {isPreDefinedKeyValueRowLabel(label) ? (<Text variant={label.variant ?? TextVariant.BodyMd} color={label.color ?? TextColor.TextDefault}>
29
- {label.text}
30
- </Text>) : (label)}
31
- {hasTooltip && tooltip && (<ButtonIcon size={tooltip.size ?? ButtonIconSize.Md} iconName={tooltip.iconName ?? IconName.Question} accessibilityLabel={`${tooltip.title} tooltip`} onPress={() => tooltip?.onPress?.()}/>)}
32
- </View>);
33
- };
34
- //# sourceMappingURL=KeyValueLabel.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueLabel.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueLabel/KeyValueLabel.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,mCAAyB;AAC9D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AACtC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6BAAmB;AAE1D,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAEpE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAChE,KAAK,EACL,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC;IAE/D,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAC7C;MAAA,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrC,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,CAC7C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,CAAC,WAAW,CAAC,CAE5C;UAAA,CAAC,KAAK,CAAC,IAAI,CACb;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,CACF,KAAK,CACN,CACD;MAAA,CAAC,UAAU,IAAI,OAAO,IAAI,CACxB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,cAAc,CAAC,EAAE,CAAC,CACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAChD,kBAAkB,CAAC,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","sourcesContent":["import { useTailwind } from '@metamask/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"]}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.KeyValueRowRoot = void 0;
7
- const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
- const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native/index.js");
10
- /**
11
- * The main container for the KeyValueRow component.
12
- * When creating custom KeyValueRow components, this must be the outermost component
13
- * wrapping the two <KeyValueSection/> components.
14
- *
15
- * e.g.
16
- * ```
17
- * <KeyValueRowRoot>
18
- * <KeyValueSection></KeyValueSection>
19
- * <KeyValueSection></KeyValueSection>
20
- * </KeyValueRowRoot>
21
- * ```
22
- *
23
- * @param props - Component props.
24
- * @param props.children - The two <KeyValueSection> children.
25
- * @param props.twClassName - Optional Tailwind class names to override root styles.
26
- * @param props.style - Optional additional styles for the root element.
27
- *
28
- * @returns The rendered Root component.
29
- */
30
- const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
31
- const tw = (0, design_system_twrnc_preset_1.useTailwind)();
32
- return (<react_native_1.View style={[
33
- tw.style('flex-row justify-between items-center overflow-hidden', twClassName),
34
- style,
35
- ]} {...props}>
36
- {children}
37
- </react_native_1.View>);
38
- };
39
- exports.KeyValueRowRoot = KeyValueRowRoot;
40
- //# sourceMappingURL=KeyValueRoot.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRoot.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,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/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"]}
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueRowRootProps } from "../KeyValueRow.types.cjs";
3
- /**
4
- * The main container for the KeyValueRow component.
5
- * When creating custom KeyValueRow components, this must be the outermost component
6
- * wrapping the two <KeyValueSection/> components.
7
- *
8
- * e.g.
9
- * ```
10
- * <KeyValueRowRoot>
11
- * <KeyValueSection></KeyValueSection>
12
- * <KeyValueSection></KeyValueSection>
13
- * </KeyValueRowRoot>
14
- * ```
15
- *
16
- * @param props - Component props.
17
- * @param props.children - The two <KeyValueSection> children.
18
- * @param props.twClassName - Optional Tailwind class names to override root styles.
19
- * @param props.style - Optional additional styles for the root element.
20
- *
21
- * @returns The rendered Root component.
22
- */
23
- export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- //# sourceMappingURL=KeyValueRoot.d.cts.map
@@ -1 +0,0 @@
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"}
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueRowRootProps } from "../KeyValueRow.types.mjs";
3
- /**
4
- * The main container for the KeyValueRow component.
5
- * When creating custom KeyValueRow components, this must be the outermost component
6
- * wrapping the two <KeyValueSection/> components.
7
- *
8
- * e.g.
9
- * ```
10
- * <KeyValueRowRoot>
11
- * <KeyValueSection></KeyValueSection>
12
- * <KeyValueSection></KeyValueSection>
13
- * </KeyValueRowRoot>
14
- * ```
15
- *
16
- * @param props - Component props.
17
- * @param props.children - The two <KeyValueSection> children.
18
- * @param props.twClassName - Optional Tailwind class names to override root styles.
19
- * @param props.style - Optional additional styles for the root element.
20
- *
21
- * @returns The rendered Root component.
22
- */
23
- export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
24
- //# sourceMappingURL=KeyValueRoot.d.mts.map
@@ -1 +0,0 @@
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"}
@@ -1,40 +0,0 @@
1
- function $importDefault(module) {
2
- if (module?.__esModule) {
3
- return module.default;
4
- }
5
- return module;
6
- }
7
- import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
- import $React from "react";
9
- const React = $importDefault($React);
10
- import { View } from "react-native/index.js";
11
- /**
12
- * The main container for the KeyValueRow component.
13
- * When creating custom KeyValueRow components, this must be the outermost component
14
- * wrapping the two <KeyValueSection/> components.
15
- *
16
- * e.g.
17
- * ```
18
- * <KeyValueRowRoot>
19
- * <KeyValueSection></KeyValueSection>
20
- * <KeyValueSection></KeyValueSection>
21
- * </KeyValueRowRoot>
22
- * ```
23
- *
24
- * @param props - Component props.
25
- * @param props.children - The two <KeyValueSection> children.
26
- * @param props.twClassName - Optional Tailwind class names to override root styles.
27
- * @param props.style - Optional additional styles for the root element.
28
- *
29
- * @returns The rendered Root component.
30
- */
31
- export const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
32
- const tw = useTailwind();
33
- return (<View style={[
34
- tw.style('flex-row justify-between items-center overflow-hidden', twClassName),
35
- style,
36
- ]} {...props}>
37
- {children}
38
- </View>);
39
- };
40
- //# sourceMappingURL=KeyValueRoot.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,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/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"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPreDefinedKeyValueRowLabel = void 0;
4
- const isPreDefinedKeyValueRowLabel = (label) => label !== null && typeof label === 'object' && 'text' in label;
5
- exports.isPreDefinedKeyValueRowLabel = isPreDefinedKeyValueRowLabel;
6
- //# sourceMappingURL=KeyValueRow.utils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRow.utils.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":";;;AAKO,MAAM,4BAA4B,GAAG,CAC1C,KAAqC,EACA,EAAE,CACvC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC;AAHpD,QAAA,4BAA4B,gCAGwB","sourcesContent":["import {\n KeyValueRowLabelProps,\n PreDefinedKeyValueRowLabel,\n} from './KeyValueRow.types';\n\nexport const isPreDefinedKeyValueRowLabel = (\n label: KeyValueRowLabelProps['label'],\n): label is PreDefinedKeyValueRowLabel =>\n label !== null && typeof label === 'object' && 'text' in label;\n"]}
@@ -1,3 +0,0 @@
1
- import { KeyValueRowLabelProps, PreDefinedKeyValueRowLabel } from "./KeyValueRow.types.cjs";
2
- export declare const isPreDefinedKeyValueRowLabel: (label: KeyValueRowLabelProps['label']) => label is PreDefinedKeyValueRowLabel;
3
- //# sourceMappingURL=KeyValueRow.utils.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRow.utils.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,gCAA4B;AAE7B,eAAO,MAAM,4BAA4B,UAChC,qBAAqB,CAAC,OAAO,CAAC,wCAEyB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { KeyValueRowLabelProps, PreDefinedKeyValueRowLabel } from "./KeyValueRow.types.mjs";
2
- export declare const isPreDefinedKeyValueRowLabel: (label: KeyValueRowLabelProps['label']) => label is PreDefinedKeyValueRowLabel;
3
- //# sourceMappingURL=KeyValueRow.utils.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRow.utils.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,gCAA4B;AAE7B,eAAO,MAAM,4BAA4B,UAChC,qBAAqB,CAAC,OAAO,CAAC,wCAEyB,CAAC"}
@@ -1,2 +0,0 @@
1
- export const isPreDefinedKeyValueRowLabel = (label) => label !== null && typeof label === 'object' && 'text' in label;
2
- //# sourceMappingURL=KeyValueRow.utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueRow.utils.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,KAAqC,EACA,EAAE,CACvC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC","sourcesContent":["import {\n KeyValueRowLabelProps,\n PreDefinedKeyValueRowLabel,\n} from './KeyValueRow.types';\n\nexport const isPreDefinedKeyValueRowLabel = (\n label: KeyValueRowLabelProps['label'],\n): label is PreDefinedKeyValueRowLabel =>\n label !== null && typeof label === 'object' && 'text' in label;\n"]}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.KeyValueSection = void 0;
7
- const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
8
- const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native/index.js");
10
- const KeyValueRow_types_1 = require("../KeyValueRow.types.cjs");
11
- /**
12
- * A container representing either the left or right side of the KeyValueRow.
13
- * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
14
- *
15
- * @param props - Component props.
16
- * @param props.children - The child components.
17
- * @param props.align - The alignment of the section.
18
- * @param props.twClassName - Optional Tailwind class names to override root styles.
19
- * @param props.style - Optional additional styles for the root element.
20
- *
21
- * @returns The rendered KeyValueSection component.
22
- */
23
- const KeyValueSection = ({ children, align = KeyValueRow_types_1.KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
24
- const tw = (0, design_system_twrnc_preset_1.useTailwind)();
25
- return (<react_native_1.View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
26
- {children}
27
- </react_native_1.View>);
28
- };
29
- exports.KeyValueSection = KeyValueSection;
30
- //# sourceMappingURL=KeyValueSection.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,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/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,16 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueSectionProps } from "../KeyValueRow.types.cjs";
3
- /**
4
- * A container representing either the left or right side of the KeyValueRow.
5
- * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
6
- *
7
- * @param props - Component props.
8
- * @param props.children - The child components.
9
- * @param props.align - The alignment of the section.
10
- * @param props.twClassName - Optional Tailwind class names to override root styles.
11
- * @param props.style - Optional additional styles for the root element.
12
- *
13
- * @returns The rendered KeyValueSection component.
14
- */
15
- export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- //# sourceMappingURL=KeyValueSection.d.cts.map
@@ -1 +0,0 @@
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"}
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import type { KeyValueSectionProps } from "../KeyValueRow.types.mjs";
3
- /**
4
- * A container representing either the left or right side of the KeyValueRow.
5
- * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
6
- *
7
- * @param props - Component props.
8
- * @param props.children - The child components.
9
- * @param props.align - The alignment of the section.
10
- * @param props.twClassName - Optional Tailwind class names to override root styles.
11
- * @param props.style - Optional additional styles for the root element.
12
- *
13
- * @returns The rendered KeyValueSection component.
14
- */
15
- export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
16
- //# sourceMappingURL=KeyValueSection.d.mts.map
@@ -1 +0,0 @@
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"}
@@ -1,30 +0,0 @@
1
- function $importDefault(module) {
2
- if (module?.__esModule) {
3
- return module.default;
4
- }
5
- return module;
6
- }
7
- import { useTailwind } from "@metamask/design-system-twrnc-preset";
8
- import $React from "react";
9
- const React = $importDefault($React);
10
- import { View } from "react-native/index.js";
11
- import { KeyValueRowSectionAlignments } from "../KeyValueRow.types.mjs";
12
- /**
13
- * A container representing either the left or right side of the KeyValueRow.
14
- * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
15
- *
16
- * @param props - Component props.
17
- * @param props.children - The child components.
18
- * @param props.align - The alignment of the section.
19
- * @param props.twClassName - Optional Tailwind class names to override root styles.
20
- * @param props.style - Optional additional styles for the root element.
21
- *
22
- * @returns The rendered KeyValueSection component.
23
- */
24
- export const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
25
- const tw = useTailwind();
26
- return (<View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
27
- {children}
28
- </View>);
29
- };
30
- //# sourceMappingURL=KeyValueSection.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,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/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"]}