@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
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,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,GAAG,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,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,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,CAChB;UAAA,CAAC,iBAAiB,CACpB;QAAA,EAAE,GAAG,CAAC,CACP,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,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,IAAI,kBAAkB,CAAC,CAEvB;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;YAAA,CAAC,MAAM,CACT;UAAA,EAAE,cAAc,CAChB;UAAA,CAAC,kBAAkB,CACrB;QAAA,EAAE,GAAG,CAAC,CACP,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,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,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,cAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,GAAG,CAAC,CACP,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,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.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AAInC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,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,GAAG,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,MAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,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,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,MAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,YAAY,CAAC,CAAC,kBAAkB,CAAC,CACjC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;UAAA,CAAC,MAAM,CACT;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,MAAM,CACL,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the amount `Text` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).\n */\n amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, '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":"TitleHub.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).\n */\n amountWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { TitleHubPropsShared } 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 { SensitiveTextProps } from "../SensitiveText/index.cjs";
5
5
  import type { TextProps } from "../Text/Text.types.cjs";
6
6
  /**
@@ -9,31 +9,31 @@ import type { TextProps } from "../Text/Text.types.cjs";
9
9
  */
10
10
  export type TitleHubProps = TitleHubPropsShared & {
11
11
  /**
12
- * Optional props merged into the title `Text` when `title` is a string.
12
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
13
13
  */
14
14
  titleProps?: Omit<Partial<TextProps>, 'children'>;
15
15
  /**
16
- * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).
16
+ * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
17
17
  */
18
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
18
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
19
19
  /**
20
- * Optional props merged into the amount `Text` when `amount` is a string.
20
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
21
21
  * Supports Text props plus `isHidden` / `length`.
22
22
  */
23
23
  amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
24
24
  /**
25
- * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).
25
+ * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
26
26
  */
27
- amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
27
+ amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
28
28
  /**
29
- * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
29
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
30
30
  * Supports Text props plus `isHidden` / `length`.
31
31
  */
32
32
  bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
33
33
  /**
34
- * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).
34
+ * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
35
35
  */
36
- bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
36
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
37
37
  /**
38
38
  * Optional Tailwind class name to apply to the container.
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleHub.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { TitleHubPropsShared } 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 { SensitiveTextProps } from "../SensitiveText/index.mjs";
5
5
  import type { TextProps } from "../Text/Text.types.mjs";
6
6
  /**
@@ -9,31 +9,31 @@ import type { TextProps } from "../Text/Text.types.mjs";
9
9
  */
10
10
  export type TitleHubProps = TitleHubPropsShared & {
11
11
  /**
12
- * Optional props merged into the title `Text` when `title` is a string.
12
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
13
13
  */
14
14
  titleProps?: Omit<Partial<TextProps>, 'children'>;
15
15
  /**
16
- * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).
16
+ * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
17
17
  */
18
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
18
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
19
19
  /**
20
- * Optional props merged into the amount `Text` when `amount` is a string.
20
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
21
21
  * Supports Text props plus `isHidden` / `length`.
22
22
  */
23
23
  amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
24
24
  /**
25
- * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).
25
+ * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
26
26
  */
27
- amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
27
+ amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
28
28
  /**
29
- * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
29
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
30
30
  * Supports Text props plus `isHidden` / `length`.
31
31
  */
32
32
  bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;
33
33
  /**
34
- * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).
34
+ * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
35
35
  */
36
- bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
36
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
37
37
  /**
38
38
  * Optional Tailwind class name to apply to the container.
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleHub.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAAyB;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the amount `Text` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).\n */\n amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, '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":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).\n */\n amountWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'endAccessory' | 'textProps'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -9,7 +9,7 @@ const design_system_shared_1 = require("@metamask-previews/design-system-shared"
9
9
  const react_1 = __importDefault(require("react"));
10
10
  // Internal dependencies.
11
11
  const Box_1 = require("../Box/index.cjs");
12
- const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
12
+ const BoxRow_1 = require("../BoxRow/index.cjs");
13
13
  /**
14
14
  * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
15
15
  * Remaining `View` props are forwarded to the root `Box`.
@@ -23,8 +23,8 @@ const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
23
23
  * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
24
24
  * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `Box`
27
- * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
26
+ * @param props.titleWrapperProps - Optional props forwarded to the title row `BoxRow`
27
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
28
28
  * @param props.twClassName - Optional Tailwind classes on the root container
29
29
  *
30
30
  * @returns The rendered TitleStandard layout.
@@ -34,27 +34,21 @@ const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory
34
34
  {/* Top Accessory Slot */}
35
35
  {topAccessory}
36
36
  {/* Title Row */}
37
- <Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={2} {...titleWrapperProps}>
38
- <TextOrChildren_1.TextOrChildren textProps={{
37
+ <BoxRow_1.BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
39
38
  variant: design_system_shared_1.TextVariant.HeadingLg,
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
  {/* Bottom Label Row */}
47
- {bottomLabel && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={2} {...bottomLabelWrapperProps}>
48
- <TextOrChildren_1.TextOrChildren textProps={{
44
+ {bottomLabel && (<BoxRow_1.BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
49
45
  variant: design_system_shared_1.TextVariant.BodySm,
50
46
  fontWeight: design_system_shared_1.FontWeight.Medium,
51
47
  color: design_system_shared_1.TextColor.TextAlternative,
52
48
  ...bottomLabelProps,
53
49
  }}>
54
- {bottomLabel}
55
- </TextOrChildren_1.TextOrChildren>
56
- {bottomLabelEndAccessory}
57
- </Box_1.Box>)}
50
+ {bottomLabel}
51
+ </BoxRow_1.BoxRow>)}
58
52
  {/* Bottom Accessory Slot */}
59
53
  {!bottomLabel && bottomAccessory}
60
54
  </Box_1.Box>);
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAMiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gFAAmE;AAInE;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,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;QAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kCAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,+BAAc,CAChB;QAAA,CAAC,iBAAiB,CACpB;MAAA,EAAE,SAAG,CACL;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;AA5DW,QAAA,aAAa,iBA4DxB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, 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 - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `Box`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\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\nTitleStandard.displayName = 'TitleStandard';\n"]}
1
+ {"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAIiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kCAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,eAAM,CACR;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,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;AAlDW,QAAA,aAAa,iBAkDxB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, 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 - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <BoxRow\n gap={2}\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n gap={2}\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\nTitleStandard.displayName = 'TitleStandard';\n"]}
@@ -13,8 +13,8 @@ import type { TitleStandardProps } from "./TitleStandard.types.cjs";
13
13
  * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
14
14
  * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
15
15
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
16
- * @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
17
- * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
16
+ * @param props.titleWrapperProps - Optional props forwarded to the title row `BoxRow`
17
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
18
18
  * @param props.twClassName - Optional Tailwind classes on the root container
19
19
  *
20
20
  * @returns The rendered TitleStandard layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4DtD,CAAC"}
1
+ {"version":3,"file":"TitleStandard.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkDtD,CAAC"}
@@ -13,8 +13,8 @@ import type { TitleStandardProps } from "./TitleStandard.types.mjs";
13
13
  * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
14
14
  * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
15
15
  * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
16
- * @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
17
- * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
16
+ * @param props.titleWrapperProps - Optional props forwarded to the title row `BoxRow`
17
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
18
18
  * @param props.twClassName - Optional Tailwind classes on the root container
19
19
  *
20
20
  * @returns The rendered TitleStandard layout.
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4DtD,CAAC"}
1
+ {"version":3,"file":"TitleStandard.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkDtD,CAAC"}
@@ -5,12 +5,12 @@ function $importDefault(module) {
5
5
  return module;
6
6
  }
7
7
  // Third party dependencies.
8
- import { BoxAlignItems, BoxFlexDirection, FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
8
+ import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
9
9
  import $React from "react";
10
10
  const React = $importDefault($React);
11
11
  // Internal dependencies.
12
12
  import { Box } from "../Box/index.mjs";
13
- import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
13
+ import { BoxRow } from "../BoxRow/index.mjs";
14
14
  /**
15
15
  * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
16
16
  * Remaining `View` props are forwarded to the root `Box`.
@@ -24,8 +24,8 @@ import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
24
24
  * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
25
25
  * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `Box`
28
- * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
27
+ * @param props.titleWrapperProps - Optional props forwarded to the title row `BoxRow`
28
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
29
29
  * @param props.twClassName - Optional Tailwind classes on the root container
30
30
  *
31
31
  * @returns The rendered TitleStandard layout.
@@ -35,27 +35,21 @@ export const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAc
35
35
  {/* Top Accessory Slot */}
36
36
  {topAccessory}
37
37
  {/* Title Row */}
38
- <Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={2} {...titleWrapperProps}>
39
- <TextOrChildren textProps={{
38
+ <BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
40
39
  variant: TextVariant.HeadingLg,
41
40
  ...titleProps,
42
41
  }}>
43
- {title}
44
- </TextOrChildren>
45
- {titleEndAccessory}
46
- </Box>
42
+ {title}
43
+ </BoxRow>
47
44
  {/* Bottom Label Row */}
48
- {bottomLabel && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={2} {...bottomLabelWrapperProps}>
49
- <TextOrChildren textProps={{
45
+ {bottomLabel && (<BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
50
46
  variant: TextVariant.BodySm,
51
47
  fontWeight: FontWeight.Medium,
52
48
  color: TextColor.TextAlternative,
53
49
  ...bottomLabelProps,
54
50
  }}>
55
- {bottomLabel}
56
- </TextOrChildren>
57
- {bottomLabelEndAccessory}
58
- </Box>)}
51
+ {bottomLabel}
52
+ </BoxRow>)}
59
53
  {/* Bottom Accessory Slot */}
60
54
  {!bottomLabel && bottomAccessory}
61
55
  </Box>);
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,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,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,cAAc,CAChB;QAAA,CAAC,iBAAiB,CACpB;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,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,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,cAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,GAAG,CAAC,CACP,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, 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 - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `Box`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\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\nTitleStandard.displayName = 'TitleStandard';\n"]}
1
+ {"version":3,"file":"TitleStandard.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AAInC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,MAAM,CACR;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,MAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, 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 - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` 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 forwarded to the title row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <BoxRow\n gap={2}\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n gap={2}\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\nTitleStandard.displayName = 'TitleStandard';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, '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":"TitleStandard.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { TitleStandardPropsShared } 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
  * TitleStandard component props (React Native).
@@ -8,21 +8,21 @@ import type { TextProps } from "../Text/Text.types.cjs";
8
8
  */
9
9
  export type TitleStandardProps = TitleStandardPropsShared & {
10
10
  /**
11
- * Optional props merged into the title `Text` when `title` is a string.
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
12
  */
13
13
  titleProps?: Omit<Partial<TextProps>, 'children'>;
14
14
  /**
15
- * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
16
  */
17
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
18
  /**
19
- * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
20
  */
21
21
  bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
22
  /**
23
- * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
23
+ * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
24
24
  */
25
- bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
26
  /**
27
27
  * Optional Tailwind class name to apply to the container.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { TitleStandardPropsShared } 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
  * TitleStandard component props (React Native).
@@ -8,21 +8,21 @@ import type { TextProps } from "../Text/Text.types.mjs";
8
8
  */
9
9
  export type TitleStandardProps = TitleStandardPropsShared & {
10
10
  /**
11
- * Optional props merged into the title `Text` when `title` is a string.
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
12
  */
13
13
  titleProps?: Omit<Partial<TextProps>, 'children'>;
14
14
  /**
15
- * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
16
  */
17
- titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
18
  /**
19
- * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
20
  */
21
21
  bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
22
  /**
23
- * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
23
+ * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
24
24
  */
25
- bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
26
  /**
27
27
  * Optional Tailwind class name to apply to the container.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"TitleStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CACtB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAC5B,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,WAAW,GAAG,cAAc,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TitleStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, '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":"TitleStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxRowProps } from '../BoxRow/BoxRow.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}