@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
package/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.16.0]
11
+
12
+ ### Added
13
+
14
+ - Added `HeaderSearch` component for in-screen and inline search experiences ([#1031](https://github.com/MetaMask/metamask-design-system/pull/1031))
15
+ - Added `KeyValueColumn` component for vertically-stacked key/value layouts ([#1046](https://github.com/MetaMask/metamask-design-system/pull/1046))
16
+
17
+ ### Changed
18
+
19
+ - **BREAKING:** Renamed `BoxHorizontal` to `BoxRow` and `BoxVertical` to `BoxColumn` ([#1050](https://github.com/MetaMask/metamask-design-system/pull/1050))
20
+ - See [Migration Guide](./MIGRATION.md#from-version-0150-to-0160)
21
+ - **BREAKING:** Refactored `KeyValueRow` API — removed the legacy stub-based composition (`KeyValueRowStubs`, `field`/`value` objects); use `keyLabel`, `value`, `variant`, and accessory props directly ([#1023](https://github.com/MetaMask/metamask-design-system/pull/1023))
22
+ - See [Migration Guide](./MIGRATION.md#from-version-0150-to-0160)
23
+ - Updated `BadgeNetwork` type internals; imports from `@metamask/design-system-react-native` are unchanged ([#1021](https://github.com/MetaMask/metamask-design-system/pull/1021))
24
+
10
25
  ## [0.15.0]
11
26
 
12
27
  ### Added
@@ -299,7 +314,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
299
314
  - Full TypeScript support with type definitions and enums
300
315
  - React Native integration with TWRNC preset support
301
316
 
302
- [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.15.0...HEAD
317
+ [Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.16.0...HEAD
318
+ [0.16.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.15.0...@metamask/design-system-react-native@0.16.0
303
319
  [0.15.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.14.0...@metamask/design-system-react-native@0.15.0
304
320
  [0.14.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.13.0...@metamask/design-system-react-native@0.14.0
305
321
  [0.13.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.12.0...@metamask/design-system-react-native@0.13.0
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeNetwork.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { ImageOrSvgSrc } from '../temp-components/ImageOrSvg';\n\nexport type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional props for network name, to be used to calculate the fallbackText.\n */\n name?: string;\n /**\n * Optional text to be rendered when the content fails to render\n */\n fallbackText?: string;\n};\n"]}
1
+ {"version":3,"file":"BadgeNetwork.types.cjs","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BadgeNetworkPropsShared } from '@metamask/design-system-shared';\n\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\n\n/**\n * BadgeNetwork component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns\n */\nexport type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> &\n BadgeNetworkPropsShared;\n"]}
@@ -1,17 +1,8 @@
1
+ import type { BadgeNetworkPropsShared } from "@metamask/design-system-shared";
1
2
  import type { AvatarNetworkProps } from "../AvatarNetwork/index.cjs";
2
- import type { ImageOrSvgSrc } from "../temp-components/ImageOrSvg/index.cjs";
3
- export type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & {
4
- /**
5
- * Optional prop for the source of the image or SVG.
6
- */
7
- src?: ImageOrSvgSrc;
8
- /**
9
- * Optional props for network name, to be used to calculate the fallbackText.
10
- */
11
- name?: string;
12
- /**
13
- * Optional text to be rendered when the content fails to render
14
- */
15
- fallbackText?: string;
16
- };
3
+ /**
4
+ * BadgeNetwork component props (React Native platform-specific)
5
+ * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns
6
+ */
7
+ export type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & BadgeNetworkPropsShared;
17
8
  //# sourceMappingURL=BadgeNetwork.types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeNetwork.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,gDAAsC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IAC3E;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"BadgeNetwork.types.d.cts","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,GACxE,uBAAuB,CAAC"}
@@ -1,17 +1,8 @@
1
+ import type { BadgeNetworkPropsShared } from "@metamask/design-system-shared";
1
2
  import type { AvatarNetworkProps } from "../AvatarNetwork/index.mjs";
2
- import type { ImageOrSvgSrc } from "../temp-components/ImageOrSvg/index.mjs";
3
- export type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & {
4
- /**
5
- * Optional prop for the source of the image or SVG.
6
- */
7
- src?: ImageOrSvgSrc;
8
- /**
9
- * Optional props for network name, to be used to calculate the fallbackText.
10
- */
11
- name?: string;
12
- /**
13
- * Optional text to be rendered when the content fails to render
14
- */
15
- fallbackText?: string;
16
- };
3
+ /**
4
+ * BadgeNetwork component props (React Native platform-specific)
5
+ * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns
6
+ */
7
+ export type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & BadgeNetworkPropsShared;
17
8
  //# sourceMappingURL=BadgeNetwork.types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeNetwork.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,gDAAsC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG;IAC3E;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"BadgeNetwork.types.d.mts","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uCAAuC;AAE9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,GACxE,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeNetwork.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AvatarNetworkProps } from '../AvatarNetwork';\nimport type { ImageOrSvgSrc } from '../temp-components/ImageOrSvg';\n\nexport type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> & {\n /**\n * Optional prop for the source of the image or SVG.\n */\n src?: ImageOrSvgSrc;\n /**\n * Optional props for network name, to be used to calculate the fallbackText.\n */\n name?: string;\n /**\n * Optional text to be rendered when the content fails to render\n */\n fallbackText?: string;\n};\n"]}
1
+ {"version":3,"file":"BadgeNetwork.types.mjs","sourceRoot":"","sources":["../../../src/components/BadgeNetwork/BadgeNetwork.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BadgeNetworkPropsShared } from '@metamask/design-system-shared';\n\nimport type { AvatarNetworkProps } from '../AvatarNetwork';\n\n/**\n * BadgeNetwork component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native-specific platform concerns\n */\nexport type BadgeNetworkProps = Omit<AvatarNetworkProps, 'size' | 'shape'> &\n BadgeNetworkPropsShared;\n"]}
@@ -3,16 +3,16 @@ 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.BoxVertical = void 0;
6
+ exports.BoxColumn = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const types_1 = require("../../types/index.cjs");
9
9
  const Box_1 = require("../Box/index.cjs");
10
10
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
- const BoxVertical = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
11
+ const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
12
12
  {topAccessory}
13
13
  <TextOrChildren_1.TextOrChildren textProps={textProps}>{children}</TextOrChildren_1.TextOrChildren>
14
14
  {bottomAccessory}
15
15
  </Box_1.Box>);
16
- exports.BoxVertical = BoxVertical;
17
- exports.BoxVertical.displayName = 'BoxVertical';
18
- //# sourceMappingURL=BoxVertical.cjs.map
16
+ exports.BoxColumn = BoxColumn;
17
+ exports.BoxColumn.displayName = 'BoxColumn';
18
+ //# sourceMappingURL=BoxColumn.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA+C;AAC/C,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,wBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAjBW,QAAA,SAAS,aAiBpB;AAEF,iBAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxColumnProps } from "./BoxColumn.types.cjs";
3
+ export declare const BoxColumn: {
4
+ ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }: BoxColumnProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxColumn.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxColumnProps } from "./BoxColumn.types.mjs";
3
+ export declare const BoxColumn: {
4
+ ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }: BoxColumnProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxColumn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA0B;AAExD,eAAO,MAAM,SAAS;mFAOnB,cAAc;;CAUhB,CAAC"}
@@ -9,10 +9,10 @@ const React = $importDefault($React);
9
9
  import { BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
- export const BoxVertical = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
12
+ export const BoxColumn = ({ children, textProps, topAccessory, bottomAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Column} twClassName={twClassName} {...rest}>
13
13
  {topAccessory}
14
14
  <TextOrChildren textProps={textProps}>{children}</TextOrChildren>
15
15
  {bottomAccessory}
16
16
  </Box>);
17
- BoxVertical.displayName = 'BoxVertical';
18
- //# sourceMappingURL=BoxVertical.mjs.map
17
+ BoxColumn.displayName = 'BoxColumn';
18
+ //# sourceMappingURL=BoxColumn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,gBAAgB,EAAE,8BAAoB;AAC/C,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,GAAG,IAAI,EACQ,EAAE,EAAE,CAAC,CACpB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,YAAY,CACb;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,eAAe,CAClB;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxColumnProps } from './BoxColumn.types';\n\nexport const BoxColumn = ({\n children,\n textProps,\n topAccessory,\n bottomAccessory,\n twClassName,\n ...rest\n}: BoxColumnProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n twClassName={twClassName}\n {...rest}\n >\n {topAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {bottomAccessory}\n </Box>\n);\n\nBoxColumn.displayName = 'BoxColumn';\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BoxVertical.types.cjs.map
3
+ //# sourceMappingURL=BoxColumn.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxColumnPropsShared } from '@metamask/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxColumn component props.\n */\nexport type BoxColumnProps = BoxColumnPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,13 @@
1
+ import type { BoxColumnPropsShared } from "@metamask/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * BoxColumn component props.
6
+ */
7
+ export type BoxColumnProps = BoxColumnPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxColumn.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAE3E,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAC/C,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { BoxColumnPropsShared } from "@metamask/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * BoxColumn component props.
6
+ */
7
+ export type BoxColumnProps = BoxColumnPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxColumn.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uCAAuC;AAE3E,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAC/C,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BoxColumn.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxColumn.types.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/BoxColumn.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxColumnPropsShared } from '@metamask/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxColumn component props.\n */\nexport type BoxColumnProps = BoxColumnPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoxColumn = void 0;
4
+ var BoxColumn_1 = require("./BoxColumn.cjs");
5
+ Object.defineProperty(exports, "BoxColumn", { enumerable: true, get: function () { return BoxColumn_1.BoxColumn; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAA/B,sGAAA,SAAS,OAAA","sourcesContent":["export { BoxColumn } from './BoxColumn';\nexport type { BoxColumnProps } from './BoxColumn.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { BoxColumn } from "./BoxColumn.cjs";
2
+ export type { BoxColumnProps } from "./BoxColumn.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,YAAY,EAAE,cAAc,EAAE,8BAA0B"}
@@ -0,0 +1,3 @@
1
+ export { BoxColumn } from "./BoxColumn.mjs";
2
+ export type { BoxColumnProps } from "./BoxColumn.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,YAAY,EAAE,cAAc,EAAE,8BAA0B"}
@@ -0,0 +1,2 @@
1
+ export { BoxColumn } from "./BoxColumn.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BoxColumn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,wBAAoB","sourcesContent":["export { BoxColumn } from './BoxColumn';\nexport type { BoxColumnProps } from './BoxColumn.types';\n"]}
@@ -3,16 +3,16 @@ 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.BoxHorizontal = void 0;
6
+ exports.BoxRow = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const types_1 = require("../../types/index.cjs");
9
9
  const Box_1 = require("../Box/index.cjs");
10
10
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
11
- const BoxHorizontal = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Row} alignItems={types_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
11
+ const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box_1.Box flexDirection={types_1.BoxFlexDirection.Row} alignItems={types_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
12
12
  {startAccessory}
13
13
  <TextOrChildren_1.TextOrChildren textProps={textProps}>{children}</TextOrChildren_1.TextOrChildren>
14
14
  {endAccessory}
15
15
  </Box_1.Box>);
16
- exports.BoxHorizontal = BoxHorizontal;
17
- exports.BoxHorizontal.displayName = 'BoxHorizontal';
18
- //# sourceMappingURL=BoxHorizontal.cjs.map
16
+ exports.BoxRow = BoxRow;
17
+ exports.BoxRow.displayName = 'BoxRow';
18
+ //# sourceMappingURL=BoxRow.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA8D;AAC9D,0CAA6B;AAC7B,gFAAmE;AAI5D,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,wBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,qBAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,+BAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,+BAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AAnBW,QAAA,MAAM,UAmBjB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxRowProps } from "./BoxRow.types.cjs";
3
+ export declare const BoxRow: {
4
+ ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }: BoxRowProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxRow.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { BoxRowProps } from "./BoxRow.types.mjs";
3
+ export declare const BoxRow: {
4
+ ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }: BoxRowProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ //# sourceMappingURL=BoxRow.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAElD,eAAO,MAAM,MAAM;kFAOhB,WAAW;;CAYb,CAAC"}
@@ -9,10 +9,10 @@ const React = $importDefault($React);
9
9
  import { BoxAlignItems, BoxFlexDirection } from "../../types/index.mjs";
10
10
  import { Box } from "../Box/index.mjs";
11
11
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
12
- export const BoxHorizontal = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
12
+ export const BoxRow = ({ children, textProps, startAccessory, endAccessory, twClassName, ...rest }) => (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...rest}>
13
13
  {startAccessory}
14
14
  <TextOrChildren textProps={textProps}>{children}</TextOrChildren>
15
15
  {endAccessory}
16
16
  </Box>);
17
- BoxHorizontal.displayName = 'BoxHorizontal';
18
- //# sourceMappingURL=BoxHorizontal.mjs.map
17
+ BoxRow.displayName = 'BoxRow';
18
+ //# sourceMappingURL=BoxRow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,8BAAoB;AAC9D,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,YAAY,EACZ,WAAW,EACX,GAAG,IAAI,EACK,EAAE,EAAE,CAAC,CACjB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,IAAI,CAAC,CAET;IAAA,CAAC,cAAc,CACf;IAAA,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAChE;IAAA,CAAC,YAAY,CACf;EAAA,EAAE,GAAG,CAAC,CACP,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { BoxAlignItems, BoxFlexDirection } from '../../types';\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { BoxRowProps } from './BoxRow.types';\n\nexport const BoxRow = ({\n children,\n textProps,\n startAccessory,\n endAccessory,\n twClassName,\n ...rest\n}: BoxRowProps) => (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...rest}\n >\n {startAccessory}\n <TextOrChildren textProps={textProps}>{children}</TextOrChildren>\n {endAccessory}\n </Box>\n);\n\nBoxRow.displayName = 'BoxRow';\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BoxHorizontal.types.cjs.map
3
+ //# sourceMappingURL=BoxRow.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxRowPropsShared } from '@metamask/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxRow component props.\n */\nexport type BoxRowProps = BoxRowPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,13 @@
1
+ import type { BoxRowPropsShared } from "@metamask/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.cjs";
3
+ import type { TextProps } from "../Text/index.cjs";
4
+ /**
5
+ * BoxRow component props.
6
+ */
7
+ export type BoxRowProps = BoxRowPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxRow.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uCAAuC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { BoxRowPropsShared } from "@metamask/design-system-shared";
2
+ import type { BoxProps } from "../Box/Box.types.mjs";
3
+ import type { TextProps } from "../Text/index.mjs";
4
+ /**
5
+ * BoxRow component props.
6
+ */
7
+ export type BoxRowProps = BoxRowPropsShared & Omit<BoxProps, 'children' | 'flexDirection'> & {
8
+ /**
9
+ * Optional props passed to `Text` when `children` is a string.
10
+ */
11
+ textProps?: Omit<Partial<TextProps>, 'children'>;
12
+ };
13
+ //# sourceMappingURL=BoxRow.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uCAAuC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,eAAe,CAAC,GAAG;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BoxRow.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoxRow.types.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/BoxRow.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxRowPropsShared } from '@metamask/design-system-shared';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text';\n\n/**\n * BoxRow component props.\n */\nexport type BoxRowProps = BoxRowPropsShared &\n Omit<BoxProps, 'children' | 'flexDirection'> & {\n /**\n * Optional props passed to `Text` when `children` is a string.\n */\n textProps?: Omit<Partial<TextProps>, 'children'>;\n };\n"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoxRow = void 0;
4
+ var BoxRow_1 = require("./BoxRow.cjs");
5
+ Object.defineProperty(exports, "BoxRow", { enumerable: true, get: function () { return BoxRow_1.BoxRow; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAAzB,gGAAA,MAAM,OAAA","sourcesContent":["export { BoxRow } from './BoxRow';\nexport type { BoxRowProps } from './BoxRow.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { BoxRow } from "./BoxRow.cjs";
2
+ export type { BoxRowProps } from "./BoxRow.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
@@ -0,0 +1,3 @@
1
+ export { BoxRow } from "./BoxRow.mjs";
2
+ export type { BoxRowProps } from "./BoxRow.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
@@ -0,0 +1,2 @@
1
+ export { BoxRow } from "./BoxRow.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/BoxRow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB","sourcesContent":["export { BoxRow } from './BoxRow';\nexport type { BoxRowProps } from './BoxRow.types';\n"]}
@@ -10,7 +10,7 @@ const react_1 = __importDefault(require("react"));
10
10
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
11
11
  // External dependencies.
12
12
  const Box_1 = require("../Box/index.cjs");
13
- const BoxHorizontal_1 = require("../BoxHorizontal/index.cjs");
13
+ const BoxRow_1 = require("../BoxRow/index.cjs");
14
14
  const ButtonIcon_1 = require("../ButtonIcon/index.cjs");
15
15
  const Text_1 = require("../Text/index.cjs");
16
16
  const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory, endButtonIconProps, includesTopInset = false, style, testID, twClassName, ...viewProps }) => {
@@ -38,12 +38,12 @@ const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory,
38
38
  }
39
39
  if (shouldRenderTitleRow) {
40
40
  const titleNode = (0, design_system_shared_1.isReactNodeRenderable)(title) && title !== '' ? title : null;
41
- return (<BoxHorizontal_1.BoxHorizontal endAccessory={titleAccessory} textProps={{
41
+ return (<BoxRow_1.BoxRow endAccessory={titleAccessory} textProps={{
42
42
  variant: Text_1.TextVariant.HeadingLg,
43
43
  ...titleProps,
44
44
  }}>
45
45
  {titleNode}
46
- </BoxHorizontal_1.BoxHorizontal>);
46
+ </BoxRow_1.BoxRow>);
47
47
  }
48
48
  return null;
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../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,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CACvD;QAAA,CAAC,iBAAiB,EAAE,CACtB;MAAA,EAAE,SAAG,CACL;MAAA,CAAC,aAAa,CAAC,CAAC,CAAC,CACf,CAAC,SAAG,CAAC,aAAa,CAAC,CAAC,sBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/C;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAxFW,QAAA,UAAU,cAwFrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxHorizontal } from '../BoxHorizontal';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxHorizontal\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxHorizontal>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
1
+ {"version":3,"file":"HeaderRoot.cjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,yEAAuE;AACvE,kDAA0B;AAC1B,mFAAmE;AAEnE,yBAAyB;AACzB,0CAA8D;AAC9D,gDAAmC;AACnC,wDAA2D;AAC3D,4CAAsC;AAK/B,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GAAG,KAAK,EACxB,KAAK,EACL,MAAM,EACN,WAAW,EACX,GAAG,SAAS,EACI,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,IAAA,kDAAi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C;AAxFW,QAAA,UAAU,cAwFrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxRow\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxRow>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
@@ -11,7 +11,7 @@ const React = $importDefault($React);
11
11
  import { useSafeAreaInsets } from "react-native-safe-area-context";
12
12
  // External dependencies.
13
13
  import { Box, BoxAlignItems, BoxFlexDirection } from "../Box/index.mjs";
14
- import { BoxHorizontal } from "../BoxHorizontal/index.mjs";
14
+ import { BoxRow } from "../BoxRow/index.mjs";
15
15
  import { ButtonIcon, ButtonIconSize } from "../ButtonIcon/index.mjs";
16
16
  import { TextVariant } from "../Text/index.mjs";
17
17
  export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAccessory, endButtonIconProps, includesTopInset = false, style, testID, twClassName, ...viewProps }) => {
@@ -39,12 +39,12 @@ export const HeaderRoot = ({ children, title, titleProps, titleAccessory, endAcc
39
39
  }
40
40
  if (shouldRenderTitleRow) {
41
41
  const titleNode = isReactNodeRenderable(title) && title !== '' ? title : null;
42
- return (<BoxHorizontal endAccessory={titleAccessory} textProps={{
42
+ return (<BoxRow endAccessory={titleAccessory} textProps={{
43
43
  variant: TextVariant.HeadingLg,
44
44
  ...titleProps,
45
45
  }}>
46
46
  {titleNode}
47
- </BoxHorizontal>);
47
+ </BoxRow>);
48
48
  }
49
49
  return null;
50
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderRoot.mjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,qBAAqB,EAAE,uCAAuC;AAC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AS,CAAC,CAEd;MAAA,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CACvD;QAAA,CAAC,iBAAiB,EAAE,CACtB;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,aAAa,CAAC,CAAC,CAAC,CACf,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/C;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxHorizontal } from '../BoxHorizontal';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxHorizontal\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxHorizontal>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}
1
+ {"version":3,"file":"HeaderRoot.mjs","sourceRoot":"","sources":["../../../src/components/HeaderRoot/HeaderRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EAAE,qBAAqB,EAAE,uCAAuC;AACvE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,iBAAiB,EAAE,uCAAuC;AAEnE,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,gBAAgB,EAAE,yBAAe;AAC9D,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,WAAW,EAAE,0BAAgB;A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C,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAC/C;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["// Third party dependencies.\nimport { isReactNodeRenderable } from '@metamask/design-system-shared';\nimport React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\n// External dependencies.\nimport { Box, BoxAlignItems, BoxFlexDirection } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { TextVariant } from '../Text';\n\n// Internal dependencies.\nimport type { HeaderRootProps } from './HeaderRoot.types';\n\nexport const HeaderRoot = ({\n children,\n title,\n titleProps,\n titleAccessory,\n endAccessory,\n endButtonIconProps,\n includesTopInset = false,\n style,\n testID,\n twClassName,\n ...viewProps\n}: HeaderRootProps) => {\n const insets = useSafeAreaInsets();\n\n const hasRenderableChildren = isReactNodeRenderable(children);\n\n const hasTitleContent =\n title !== false &&\n (isReactNodeRenderable(title) || isReactNodeRenderable(titleAccessory));\n\n const shouldRenderTitleRow = !hasRenderableChildren && hasTitleContent;\n\n const endSectionContent = (() => {\n if (endAccessory) {\n return endAccessory;\n }\n if (endButtonIconProps && endButtonIconProps.length > 0) {\n const reversedProps = endButtonIconProps\n .map((props, originalIndex) => ({ props, originalIndex }))\n .reverse();\n return reversedProps.map(({ props, originalIndex }) => (\n <ButtonIcon\n key={`end-button-icon-${originalIndex}`}\n size={ButtonIconSize.Md}\n {...props}\n />\n ));\n }\n return null;\n })();\n\n const hasEndSection = Boolean(endSectionContent);\n\n const renderLeftSection = () => {\n if (hasRenderableChildren) {\n return children;\n }\n if (shouldRenderTitleRow) {\n const titleNode =\n isReactNodeRenderable(title) && title !== '' ? title : null;\n return (\n <BoxRow\n endAccessory={titleAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {titleNode}\n </BoxRow>\n );\n }\n return null;\n };\n\n return (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n paddingLeft={4}\n paddingRight={2}\n twClassName={`min-h-14 ${twClassName ?? ''}`.trim()}\n style={[includesTopInset && { marginTop: insets.top }, style]}\n testID={testID}\n {...viewProps}\n >\n <Box alignItems={BoxAlignItems.Start} style={{ flex: 1 }}>\n {renderLeftSection()}\n </Box>\n {hasEndSection ? (\n <Box flexDirection={BoxFlexDirection.Row} gap={2}>\n {endSectionContent}\n </Box>\n ) : null}\n </Box>\n );\n};\n\nHeaderRoot.displayName = 'HeaderRoot';\n"]}