@metamask-previews/design-system-react-native 0.56.1-preview-00dfeb8 → 0.56.1-preview-7d5964a

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 (161) hide show
  1. package/dist/components/BoxColumn/BoxColumn.cjs +0 -13
  2. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
  3. package/dist/components/BoxColumn/BoxColumn.d.cts +0 -13
  4. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
  5. package/dist/components/BoxColumn/BoxColumn.d.mts +0 -13
  6. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
  7. package/dist/components/BoxColumn/BoxColumn.mjs +0 -13
  8. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
  9. package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -1
  10. package/dist/components/BoxColumn/BoxColumn.types.d.cts +0 -2
  11. package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -1
  12. package/dist/components/BoxColumn/BoxColumn.types.d.mts +0 -2
  13. package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -1
  14. package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -1
  15. package/dist/components/BoxRow/BoxRow.cjs +0 -13
  16. package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
  17. package/dist/components/BoxRow/BoxRow.d.cts +0 -13
  18. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
  19. package/dist/components/BoxRow/BoxRow.d.mts +0 -13
  20. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
  21. package/dist/components/BoxRow/BoxRow.mjs +0 -13
  22. package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
  23. package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -1
  24. package/dist/components/BoxRow/BoxRow.types.d.cts +0 -2
  25. package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -1
  26. package/dist/components/BoxRow/BoxRow.types.d.mts +0 -2
  27. package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -1
  28. package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -1
  29. package/dist/components/ButtonBase/ButtonBase.cjs +5 -9
  30. package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
  31. package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
  32. package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
  33. package/dist/components/ButtonBase/ButtonBase.mjs +6 -10
  34. package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
  35. package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
  36. package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -2
  37. package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
  38. package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -2
  39. package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
  40. package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
  41. package/dist/components/Content/Content.cjs +32 -40
  42. package/dist/components/Content/Content.cjs.map +1 -1
  43. package/dist/components/Content/Content.d.cts.map +1 -1
  44. package/dist/components/Content/Content.d.mts.map +1 -1
  45. package/dist/components/Content/Content.mjs +32 -40
  46. package/dist/components/Content/Content.mjs.map +1 -1
  47. package/dist/components/HeaderRoot/HeaderRoot.cjs +5 -8
  48. package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
  49. package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
  50. package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
  51. package/dist/components/HeaderRoot/HeaderRoot.mjs +5 -8
  52. package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
  53. package/dist/components/KeyValueColumn/KeyValueColumn.cjs +12 -21
  54. package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
  55. package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
  56. package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
  57. package/dist/components/KeyValueColumn/KeyValueColumn.mjs +13 -22
  58. package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
  59. package/dist/components/KeyValueRow/KeyValueRow.cjs +10 -19
  60. package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
  61. package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
  62. package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
  63. package/dist/components/KeyValueRow/KeyValueRow.mjs +11 -20
  64. package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
  65. package/dist/components/ListItem/ListItem.cjs +3 -4
  66. package/dist/components/ListItem/ListItem.cjs.map +1 -1
  67. package/dist/components/ListItem/ListItem.d.cts.map +1 -1
  68. package/dist/components/ListItem/ListItem.d.mts.map +1 -1
  69. package/dist/components/ListItem/ListItem.mjs +4 -5
  70. package/dist/components/ListItem/ListItem.mjs.map +1 -1
  71. package/dist/components/SectionHeader/SectionHeader.cjs +10 -17
  72. package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
  73. package/dist/components/SectionHeader/SectionHeader.d.cts +2 -2
  74. package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
  75. package/dist/components/SectionHeader/SectionHeader.d.mts +2 -2
  76. package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
  77. package/dist/components/SectionHeader/SectionHeader.mjs +11 -18
  78. package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
  79. package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
  80. package/dist/components/SectionHeader/SectionHeader.types.d.cts +5 -5
  81. package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
  82. package/dist/components/SectionHeader/SectionHeader.types.d.mts +5 -5
  83. package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
  84. package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
  85. package/dist/components/Tag/Tag.cjs +18 -12
  86. package/dist/components/Tag/Tag.cjs.map +1 -1
  87. package/dist/components/Tag/Tag.d.cts.map +1 -1
  88. package/dist/components/Tag/Tag.d.mts.map +1 -1
  89. package/dist/components/Tag/Tag.mjs +19 -13
  90. package/dist/components/Tag/Tag.mjs.map +1 -1
  91. package/dist/components/TitleAlert/TitleAlert.cjs +18 -20
  92. package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -1
  93. package/dist/components/TitleAlert/TitleAlert.d.cts +3 -3
  94. package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -1
  95. package/dist/components/TitleAlert/TitleAlert.d.mts +3 -3
  96. package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -1
  97. package/dist/components/TitleAlert/TitleAlert.mjs +19 -21
  98. package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -1
  99. package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -1
  100. package/dist/components/TitleAlert/TitleAlert.types.d.cts +7 -6
  101. package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -1
  102. package/dist/components/TitleAlert/TitleAlert.types.d.mts +7 -6
  103. package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -1
  104. package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -1
  105. package/dist/components/TitleHub/TitleHub.cjs +13 -22
  106. package/dist/components/TitleHub/TitleHub.cjs.map +1 -1
  107. package/dist/components/TitleHub/TitleHub.d.cts +3 -3
  108. package/dist/components/TitleHub/TitleHub.d.cts.map +1 -1
  109. package/dist/components/TitleHub/TitleHub.d.mts +3 -3
  110. package/dist/components/TitleHub/TitleHub.d.mts.map +1 -1
  111. package/dist/components/TitleHub/TitleHub.mjs +14 -23
  112. package/dist/components/TitleHub/TitleHub.mjs.map +1 -1
  113. package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -1
  114. package/dist/components/TitleHub/TitleHub.types.d.cts +10 -10
  115. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
  116. package/dist/components/TitleHub/TitleHub.types.d.mts +10 -10
  117. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
  118. package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -1
  119. package/dist/components/TitleStandard/TitleStandard.cjs +9 -15
  120. package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -1
  121. package/dist/components/TitleStandard/TitleStandard.d.cts +2 -2
  122. package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -1
  123. package/dist/components/TitleStandard/TitleStandard.d.mts +2 -2
  124. package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -1
  125. package/dist/components/TitleStandard/TitleStandard.mjs +10 -16
  126. package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -1
  127. package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -1
  128. package/dist/components/TitleStandard/TitleStandard.types.d.cts +7 -7
  129. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
  130. package/dist/components/TitleStandard/TitleStandard.types.d.mts +7 -7
  131. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
  132. package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -1
  133. package/dist/components/TitleSubpage/TitleSubpage.cjs +18 -31
  134. package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -1
  135. package/dist/components/TitleSubpage/TitleSubpage.d.cts +3 -3
  136. package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -1
  137. package/dist/components/TitleSubpage/TitleSubpage.d.mts +3 -3
  138. package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -1
  139. package/dist/components/TitleSubpage/TitleSubpage.mjs +19 -32
  140. package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -1
  141. package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -1
  142. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +9 -8
  143. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
  144. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +9 -8
  145. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
  146. package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -1
  147. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +7 -9
  148. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -1
  149. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -1
  150. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -1
  151. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +8 -10
  152. package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -1
  153. package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs +1 -1
  154. package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs.map +1 -1
  155. package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs +1 -1
  156. package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs.map +1 -1
  157. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
  158. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +1 -1
  159. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +1 -1
  160. package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
  161. package/package.json +4 -4
@@ -7,47 +7,45 @@ exports.TitleAlert = void 0;
7
7
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const Box_1 = require("../Box/index.cjs");
10
+ const BoxColumn_1 = require("../BoxColumn/index.cjs");
11
+ const BoxRow_1 = require("../BoxRow/index.cjs");
10
12
  const IconAlert_1 = require("../IconAlert/index.cjs");
11
13
  const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
12
14
  /**
13
15
  * Displays a severity-based {@link IconAlert} above a centered title row.
14
- * Remaining `View` props are forwarded to the root {@link Box}.
16
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
15
17
  *
16
18
  * @param props - Component props
17
19
  * @param props.severity - Passed to {@link IconAlert} for glyph and color
18
20
  * @param props.title - Title row content; row renders only when `title` is renderable
19
- * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}
21
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
20
22
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
21
23
  * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}
22
24
  * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
23
- * @param props.twClassName - Optional Tailwind classes on the root Box
25
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
24
26
  *
25
27
  * @returns The rendered TitleAlert layout.
26
28
  */
27
29
  const TitleAlert = ({ severity, title, titleProps, titleWrapperProps, description, descriptionProps, twClassName = '', ...props }) => {
28
- return (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Column} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} twClassName={twClassName} {...props}>
29
- <IconAlert_1.IconAlert severity={severity} size={design_system_shared_1.IconSize.Xl}/>
30
- {title ? (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} justifyContent={design_system_shared_1.BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps}>
31
- <TextOrChildren_1.TextOrChildren textProps={{
32
- variant: design_system_shared_1.TextVariant.HeadingLg,
33
- color: design_system_shared_1.TextColor.TextDefault,
34
- ...titleProps,
35
- }}>
36
- {title}
37
- </TextOrChildren_1.TextOrChildren>
38
- </Box_1.Box>) : null}
39
- {description ? (<Box_1.Box twClassName="self-stretch">
40
- <TextOrChildren_1.TextOrChildren textProps={{
30
+ return (<BoxColumn_1.BoxColumn alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} topAccessory={<IconAlert_1.IconAlert severity={severity} size={design_system_shared_1.IconSize.Xl}/>} bottomAccessory={description ? (<Box_1.Box twClassName="self-stretch">
31
+ <TextOrChildren_1.TextOrChildren textProps={{
41
32
  variant: design_system_shared_1.TextVariant.BodySm,
42
33
  color: design_system_shared_1.TextColor.TextAlternative,
43
34
  fontWeight: design_system_shared_1.FontWeight.Medium,
44
35
  ...descriptionProps,
45
36
  style: [{ textAlign: 'center' }, descriptionProps?.style],
46
37
  }}>
47
- {description}
48
- </TextOrChildren_1.TextOrChildren>
49
- </Box_1.Box>) : null}
50
- </Box_1.Box>);
38
+ {description}
39
+ </TextOrChildren_1.TextOrChildren>
40
+ </Box_1.Box>) : undefined} twClassName={twClassName} {...props}>
41
+ {title ? (<BoxRow_1.BoxRow justifyContent={design_system_shared_1.BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps} textProps={{
42
+ variant: design_system_shared_1.TextVariant.HeadingLg,
43
+ color: design_system_shared_1.TextColor.TextDefault,
44
+ ...titleProps,
45
+ }}>
46
+ {title}
47
+ </BoxRow_1.BoxRow>) : null}
48
+ </BoxColumn_1.BoxColumn>);
51
49
  };
52
50
  exports.TitleAlert = TitleAlert;
53
51
  exports.TitleAlert.displayName = 'TitleAlert';
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAQiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,sDAAyC;AACzC,gFAAmE;AAInE;;;;;;;;;;;;;;GAcG;AACI,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,qBAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,EACjD;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,cAAc,CAAC,CAAC,wCAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,+BAAc,CAClB;QAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,SAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,+BAAc,CAClB;QAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAxDW,QAAA,UAAU,cAwDrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link Box}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root Box\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...props}\n >\n <IconAlert severity={severity} size={IconSize.Xl} />\n {title ? (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n </Box>\n ) : null}\n {description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : null}\n </Box>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
1
+ {"version":3,"file":"TitleAlert.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAOiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,sDAAyC;AACzC,gDAAmC;AACnC,sDAAyC;AACzC,gFAAmE;AAInE;;;;;;;;;;;;;;GAcG;AACI,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,qBAAS,CACR,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,CAAC,qBAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,+BAAQ,CAAC,EAAE,CAAC,EAAG,CAAC,CACnE,eAAe,CAAC,CACd,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,SAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;YAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,+BAAc,CAClB;UAAA,EAAE,SAAG,CAAC,CACP,CAAC,CAAC,CAAC,SACN,CAAC,CACD,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,eAAM,CACL,cAAc,CAAC,CAAC,wCAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CACtB,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,qBAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAnDW,QAAA,UAAU,cAmDrB;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link BoxColumn}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root BoxColumn\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <BoxColumn\n alignItems={BoxAlignItems.Center}\n gap={1}\n topAccessory={<IconAlert severity={severity} size={IconSize.Xl} />}\n bottomAccessory={\n description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : undefined\n }\n twClassName={twClassName}\n {...props}\n >\n {title ? (\n <BoxRow\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxColumn>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
@@ -2,16 +2,16 @@ import React from "react";
2
2
  import type { TitleAlertProps } from "./TitleAlert.types.cjs";
3
3
  /**
4
4
  * Displays a severity-based {@link IconAlert} above a centered title row.
5
- * Remaining `View` props are forwarded to the root {@link Box}.
5
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
6
6
  *
7
7
  * @param props - Component props
8
8
  * @param props.severity - Passed to {@link IconAlert} for glyph and color
9
9
  * @param props.title - Title row content; row renders only when `title` is renderable
10
- * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}
10
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
11
11
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
12
12
  * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}
13
13
  * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
14
- * @param props.twClassName - Optional Tailwind classes on the root Box
14
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
15
15
  *
16
16
  * @returns The rendered TitleAlert layout.
17
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwDhD,CAAC"}
1
+ {"version":3,"file":"TitleAlert.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmDhD,CAAC"}
@@ -2,16 +2,16 @@ import React from "react";
2
2
  import type { TitleAlertProps } from "./TitleAlert.types.mjs";
3
3
  /**
4
4
  * Displays a severity-based {@link IconAlert} above a centered title row.
5
- * Remaining `View` props are forwarded to the root {@link Box}.
5
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
6
6
  *
7
7
  * @param props - Component props
8
8
  * @param props.severity - Passed to {@link IconAlert} for glyph and color
9
9
  * @param props.title - Title row content; row renders only when `title` is renderable
10
- * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}
10
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
11
11
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
12
12
  * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}
13
13
  * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
14
- * @param props.twClassName - Optional Tailwind classes on the root Box
14
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
15
15
  *
16
16
  * @returns The rendered TitleAlert layout.
17
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwDhD,CAAC"}
1
+ {"version":3,"file":"TitleAlert.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,eAAe,EAAE,+BAA2B;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmDhD,CAAC"}
@@ -4,51 +4,49 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { BoxAlignItems, BoxFlexDirection, BoxJustifyContent, FontWeight, IconSize, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
7
+ import { BoxAlignItems, BoxJustifyContent, FontWeight, IconSize, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
10
  import { Box } from "../Box/index.mjs";
11
+ import { BoxColumn } from "../BoxColumn/index.mjs";
12
+ import { BoxRow } from "../BoxRow/index.mjs";
11
13
  import { IconAlert } from "../IconAlert/index.mjs";
12
14
  import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
13
15
  /**
14
16
  * Displays a severity-based {@link IconAlert} above a centered title row.
15
- * Remaining `View` props are forwarded to the root {@link Box}.
17
+ * Remaining `View` props are forwarded to the root {@link BoxColumn}.
16
18
  *
17
19
  * @param props - Component props
18
20
  * @param props.severity - Passed to {@link IconAlert} for glyph and color
19
21
  * @param props.title - Title row content; row renders only when `title` is renderable
20
- * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}
22
+ * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}
21
23
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
22
24
  * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}
23
25
  * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string
24
- * @param props.twClassName - Optional Tailwind classes on the root Box
26
+ * @param props.twClassName - Optional Tailwind classes on the root BoxColumn
25
27
  *
26
28
  * @returns The rendered TitleAlert layout.
27
29
  */
28
30
  export const TitleAlert = ({ severity, title, titleProps, titleWrapperProps, description, descriptionProps, twClassName = '', ...props }) => {
29
- return (<Box flexDirection={BoxFlexDirection.Column} alignItems={BoxAlignItems.Center} gap={1} twClassName={twClassName} {...props}>
30
- <IconAlert severity={severity} size={IconSize.Xl}/>
31
- {title ? (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} justifyContent={BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps}>
32
- <TextOrChildren textProps={{
33
- variant: TextVariant.HeadingLg,
34
- color: TextColor.TextDefault,
35
- ...titleProps,
36
- }}>
37
- {title}
38
- </TextOrChildren>
39
- </Box>) : null}
40
- {description ? (<Box twClassName="self-stretch">
41
- <TextOrChildren textProps={{
31
+ return (<BoxColumn alignItems={BoxAlignItems.Center} gap={1} topAccessory={<IconAlert severity={severity} size={IconSize.Xl}/>} bottomAccessory={description ? (<Box twClassName="self-stretch">
32
+ <TextOrChildren textProps={{
42
33
  variant: TextVariant.BodySm,
43
34
  color: TextColor.TextAlternative,
44
35
  fontWeight: FontWeight.Medium,
45
36
  ...descriptionProps,
46
37
  style: [{ textAlign: 'center' }, descriptionProps?.style],
47
38
  }}>
48
- {description}
49
- </TextOrChildren>
50
- </Box>) : null}
51
- </Box>);
39
+ {description}
40
+ </TextOrChildren>
41
+ </Box>) : undefined} twClassName={twClassName} {...props}>
42
+ {title ? (<BoxRow justifyContent={BoxJustifyContent.Center} twClassName="self-stretch" {...titleWrapperProps} textProps={{
43
+ variant: TextVariant.HeadingLg,
44
+ color: TextColor.TextDefault,
45
+ ...titleProps,
46
+ }}>
47
+ {title}
48
+ </BoxRow>) : null}
49
+ </BoxColumn>);
52
50
  };
53
51
  TitleAlert.displayName = 'TitleAlert';
54
52
  //# sourceMappingURL=TitleAlert.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EACjD;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,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,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,cAAc,CAClB;QAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,cAAc,CAClB;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":["import {\n BoxAlignItems,\n BoxFlexDirection,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link Box}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link Box}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root Box\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n gap={1}\n twClassName={twClassName}\n {...props}\n >\n <IconAlert severity={severity} size={IconSize.Xl} />\n {title ? (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n </Box>\n ) : null}\n {description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : null}\n </Box>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
1
+ {"version":3,"file":"TitleAlert.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAS,CACR,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAG,CAAC,CACnE,eAAe,CAAC,CACd,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,GAAG,CAAC,WAAW,CAAC,cAAc,CAC7B;YAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,GAAG,gBAAgB;gBACnB,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,gBAAgB,EAAE,KAAK,CAAC;aAC1D,CAAC,CAEF;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,cAAc,CAClB;UAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,SACN,CAAC,CACD,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,MAAM,CACL,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,WAAW,CAAC,cAAc,CAC1B,IAAI,iBAAiB,CAAC,CACtB,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,SAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxJustifyContent,\n FontWeight,\n IconSize,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxColumn } from '../BoxColumn';\nimport { BoxRow } from '../BoxRow';\nimport { IconAlert } from '../IconAlert';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleAlertProps } from './TitleAlert.types';\n\n/**\n * Displays a severity-based {@link IconAlert} above a centered title row.\n * Remaining `View` props are forwarded to the root {@link BoxColumn}.\n *\n * @param props - Component props\n * @param props.severity - Passed to {@link IconAlert} for glyph and color\n * @param props.title - Title row content; row renders only when `title` is renderable\n * @param props.titleWrapperProps - Optional props spread onto the title row {@link BoxRow}\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.description - Optional text-centered description below the title; uses {@link TextOrChildren}\n * @param props.descriptionProps - Optional props merged into description `Text` when `description` is a string\n * @param props.twClassName - Optional Tailwind classes on the root BoxColumn\n *\n * @returns The rendered TitleAlert layout.\n */\nexport const TitleAlert: React.FC<TitleAlertProps> = ({\n severity,\n title,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <BoxColumn\n alignItems={BoxAlignItems.Center}\n gap={1}\n topAccessory={<IconAlert severity={severity} size={IconSize.Xl} />}\n bottomAccessory={\n description ? (\n <Box twClassName=\"self-stretch\">\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n color: TextColor.TextAlternative,\n fontWeight: FontWeight.Medium,\n ...descriptionProps,\n style: [{ textAlign: 'center' }, descriptionProps?.style],\n }}\n >\n {description}\n </TextOrChildren>\n </Box>\n ) : undefined\n }\n twClassName={twClassName}\n {...props}\n >\n {title ? (\n <BoxRow\n justifyContent={BoxJustifyContent.Center}\n twClassName=\"self-stretch\"\n {...titleWrapperProps}\n textProps={{\n variant: TextVariant.HeadingLg,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n ) : null}\n </BoxColumn>\n );\n};\n\nTitleAlert.displayName = 'TitleAlert';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link Box}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via\n * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`\n * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleAlert.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link BoxColumn}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,\n * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults\n * `justifyContent` to center and `twClassName`\n * to include `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -1,19 +1,20 @@
1
1
  import type { TitleAlertPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxProps } from "../Box/Box.types.cjs";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
4
4
  import type { TextProps } from "../Text/Text.types.cjs";
5
5
  /**
6
6
  * TitleAlert component props (React Native).
7
7
  * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props
8
- * forwarded to the root {@link Box}.
8
+ * forwarded to the root {@link BoxColumn}.
9
9
  */
10
10
  export type TitleAlertProps = TitleAlertPropsShared & {
11
11
  /**
12
- * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via
13
- * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`
14
- * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.
12
+ * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,
13
+ * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults
14
+ * `justifyContent` to center and `twClassName`
15
+ * to include `self-stretch`; values on this object override those defaults when set.
15
16
  */
16
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'endAccessory' | 'textProps'>;
17
18
  /**
18
19
  * Optional props merged into title row `Text` when `title` is a string.
19
20
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleAlert.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAC7D,CAAC;IACF;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1,19 +1,20 @@
1
1
  import type { TitleAlertPropsShared } from "@metamask-previews/design-system-shared";
2
2
  import type { ViewProps } from "react-native";
3
- import type { BoxProps } from "../Box/Box.types.mjs";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
4
4
  import type { TextProps } from "../Text/Text.types.mjs";
5
5
  /**
6
6
  * TitleAlert component props (React Native).
7
7
  * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props
8
- * forwarded to the root {@link Box}.
8
+ * forwarded to the root {@link BoxColumn}.
9
9
  */
10
10
  export type TitleAlertProps = TitleAlertPropsShared & {
11
11
  /**
12
- * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via
13
- * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`
14
- * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.
12
+ * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,
13
+ * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults
14
+ * `justifyContent` to center and `twClassName`
15
+ * to include `self-stretch`; values on this object override those defaults when set.
15
16
  */
16
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'startAccessory' | 'endAccessory' | 'textProps'>;
17
18
  /**
18
19
  * Optional props merged into title row `Text` when `title` is a string.
19
20
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleAlert.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,gDAAgD;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAC7D,CAAC;IACF;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link Box}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link Box}. Omits `children` (TitleAlert sets it via\n * `title` and `titleProps`). Defaults to a row with centered items, `gap={1}`, `justifyContent`\n * center, and `twClassName` `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
1
+ {"version":3,"file":"TitleAlert.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleAlert/TitleAlert.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TitleAlertPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleAlert component props (React Native).\n * Extends {@link TitleAlertPropsShared} with platform `Text` passthroughs, `twClassName`, and `View` props\n * forwarded to the root {@link BoxColumn}.\n */\nexport type TitleAlertProps = TitleAlertPropsShared & {\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `startAccessory`,\n * `endAccessory`, and `textProps` (TitleAlert sets those via `title` and `titleProps`). Defaults\n * `justifyContent` to center and `twClassName`\n * to include `self-stretch`; values on this object override those defaults when set.\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'startAccessory' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into title row `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props merged into description `Text` when `description` is a string.\n */\n descriptionProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -7,7 +7,7 @@ exports.TitleHub = void 0;
7
7
  const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const Box_1 = require("../Box/index.cjs");
10
- const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
10
+ const BoxRow_1 = require("../BoxRow/index.cjs");
11
11
  /**
12
12
  * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
13
13
  * Remaining `View` props are forwarded to the root `Box`.
@@ -23,9 +23,9 @@ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
23
23
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
24
24
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
25
25
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
26
- * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
27
- * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
28
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
26
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
27
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
28
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
29
29
  * @param props.twClassName - Optional Tailwind classes on the root container
30
30
  *
31
31
  * @returns The rendered TitleHub layout.
@@ -33,38 +33,29 @@ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
33
33
  const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
34
34
  return (<Box_1.Box gap={1} twClassName={twClassName} {...props}>
35
35
  {/* Title Row */}
36
- {title && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...titleWrapperProps}>
37
- <TextOrChildren_1.TextOrChildren textProps={{
36
+ {title && (<BoxRow_1.BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
38
37
  variant: design_system_shared_1.TextVariant.HeadingMd,
39
38
  color: design_system_shared_1.TextColor.TextDefault,
40
39
  ...titleProps,
41
40
  }}>
42
- {title}
43
- </TextOrChildren_1.TextOrChildren>
44
- {titleEndAccessory}
45
- </Box_1.Box>)}
41
+ {title}
42
+ </BoxRow_1.BoxRow>)}
46
43
  {/* Amount Row */}
47
- {amount && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...amountWrapperProps}>
48
- <TextOrChildren_1.TextOrChildren textProps={{
44
+ {amount && (<BoxRow_1.BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
49
45
  variant: design_system_shared_1.TextVariant.DisplayLg,
50
46
  ...amountProps,
51
47
  }}>
52
- {amount}
53
- </TextOrChildren_1.TextOrChildren>
54
- {amountEndAccessory}
55
- </Box_1.Box>)}
48
+ {amount}
49
+ </BoxRow_1.BoxRow>)}
56
50
  {/* Bottom Label Row */}
57
- {bottomLabel && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...bottomLabelWrapperProps}>
58
- <TextOrChildren_1.TextOrChildren textProps={{
51
+ {bottomLabel && (<BoxRow_1.BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
59
52
  variant: design_system_shared_1.TextVariant.BodySm,
60
53
  fontWeight: design_system_shared_1.FontWeight.Medium,
61
54
  color: design_system_shared_1.TextColor.TextAlternative,
62
55
  ...bottomLabelProps,
63
56
  }}>
64
- {bottomLabel}
65
- </TextOrChildren_1.TextOrChildren>
66
- {bottomLabelEndAccessory}
67
- </Box_1.Box>)}
57
+ {bottomLabel}
58
+ </BoxRow_1.BoxRow>)}
68
59
  {/* Bottom Accessory Slot */}
69
60
  {!bottomLabel && bottomAccessory}
70
61
  </Box_1.Box>);
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAMiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,gFAAmE;AAInE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CAEtB;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,kBAAkB,CAAC,CAEvB;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;YAAA,CAAC,MAAM,CACT;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,kBAAkB,CACrB;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAnFW,QAAA,QAAQ,YAmFnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `Box`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n )}\n {/* Amount Row */}\n {amount && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...amountWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </TextOrChildren>\n {amountEndAccessory}\n </Box>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
1
+ {"version":3,"file":"TitleHub.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAIiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,eAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,eAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,YAAY,CAAC,CAAC,kBAAkB,CAAC,CACjC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;UAAA,CAAC,MAAM,CACT;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,eAAM,CACL,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,QAAQ,YAiEnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <BoxRow\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Amount Row */}\n {amount && (\n <BoxRow\n {...amountWrapperProps}\n endAccessory={amountEndAccessory}\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </BoxRow>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
@@ -15,9 +15,9 @@ import type { TitleHubProps } from "./TitleHub.types.cjs";
15
15
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
16
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
17
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
- * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
19
- * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
20
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
21
21
  * @param props.twClassName - Optional Tailwind classes on the root container
22
22
  *
23
23
  * @returns The rendered TitleHub layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmF5C,CAAC"}
1
+ {"version":3,"file":"TitleHub.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
@@ -15,9 +15,9 @@ import type { TitleHubProps } from "./TitleHub.types.mjs";
15
15
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
16
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
17
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
- * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
19
- * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
20
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
21
21
  * @param props.twClassName - Optional Tailwind classes on the root container
22
22
  *
23
23
  * @returns The rendered TitleHub layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmF5C,CAAC"}
1
+ {"version":3,"file":"TitleHub.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
@@ -4,11 +4,11 @@ function $importDefault(module) {
4
4
  }
5
5
  return module;
6
6
  }
7
- import { BoxAlignItems, BoxFlexDirection, FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
7
+ import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
8
8
  import $React from "react";
9
9
  const React = $importDefault($React);
10
10
  import { Box } from "../Box/index.mjs";
11
- import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
11
+ import { BoxRow } from "../BoxRow/index.mjs";
12
12
  /**
13
13
  * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
14
14
  * Remaining `View` props are forwarded to the root `Box`.
@@ -24,9 +24,9 @@ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
24
24
  * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
25
25
  * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
26
26
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
27
- * @param props.titleWrapperProps - Optional props spread onto the title row `Box`
28
- * @param props.amountWrapperProps - Optional props spread onto the amount row `Box`
29
- * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box`
27
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
28
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
29
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
30
30
  * @param props.twClassName - Optional Tailwind classes on the root container
31
31
  *
32
32
  * @returns The rendered TitleHub layout.
@@ -34,38 +34,29 @@ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
34
34
  export const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
35
35
  return (<Box gap={1} twClassName={twClassName} {...props}>
36
36
  {/* Title Row */}
37
- {title && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...titleWrapperProps}>
38
- <TextOrChildren textProps={{
37
+ {title && (<BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
39
38
  variant: TextVariant.HeadingMd,
40
39
  color: TextColor.TextDefault,
41
40
  ...titleProps,
42
41
  }}>
43
- {title}
44
- </TextOrChildren>
45
- {titleEndAccessory}
46
- </Box>)}
42
+ {title}
43
+ </BoxRow>)}
47
44
  {/* Amount Row */}
48
- {amount && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...amountWrapperProps}>
49
- <TextOrChildren textProps={{
45
+ {amount && (<BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
50
46
  variant: TextVariant.DisplayLg,
51
47
  ...amountProps,
52
48
  }}>
53
- {amount}
54
- </TextOrChildren>
55
- {amountEndAccessory}
56
- </Box>)}
49
+ {amount}
50
+ </BoxRow>)}
57
51
  {/* Bottom Label Row */}
58
- {bottomLabel && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={1} {...bottomLabelWrapperProps}>
59
- <TextOrChildren textProps={{
52
+ {bottomLabel && (<BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
60
53
  variant: TextVariant.BodySm,
61
54
  fontWeight: FontWeight.Medium,
62
55
  color: TextColor.TextAlternative,
63
56
  ...bottomLabelProps,
64
57
  }}>
65
- {bottomLabel}
66
- </TextOrChildren>
67
- {bottomLabelEndAccessory}
68
- </Box>)}
58
+ {bottomLabel}
59
+ </BoxRow>)}
69
60
  {/* Bottom Accessory Slot */}
70
61
  {!bottomLabel && bottomAccessory}
71
62
  </Box>);