@metamask/design-system-react-native 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +35 -3
  2. package/dist/components/AvatarIcon/AvatarIcon.cjs +2 -1
  3. package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
  4. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +16 -16
  5. package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
  6. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts +1 -1
  7. package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts.map +1 -1
  8. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts +1 -1
  9. package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts.map +1 -1
  10. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +1 -1
  11. package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
  12. package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
  13. package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
  14. package/dist/components/AvatarIcon/AvatarIcon.mjs +2 -1
  15. package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
  16. package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
  17. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +3 -13
  18. package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
  19. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +3 -13
  20. package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
  21. package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
  22. package/dist/components/AvatarIcon/index.cjs +4 -4
  23. package/dist/components/AvatarIcon/index.cjs.map +1 -1
  24. package/dist/components/AvatarIcon/index.d.cts +1 -1
  25. package/dist/components/AvatarIcon/index.d.cts.map +1 -1
  26. package/dist/components/AvatarIcon/index.d.mts +1 -1
  27. package/dist/components/AvatarIcon/index.d.mts.map +1 -1
  28. package/dist/components/AvatarIcon/index.mjs +1 -1
  29. package/dist/components/AvatarIcon/index.mjs.map +1 -1
  30. package/dist/components/BadgeIcon/BadgeIcon.cjs +2 -1
  31. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  32. package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
  33. package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
  34. package/dist/components/BadgeIcon/BadgeIcon.mjs +2 -1
  35. package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
  36. package/dist/components/BadgeIcon/BadgeIcon.types.cjs.map +1 -1
  37. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +5 -7
  38. package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
  39. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +5 -7
  40. package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
  41. package/dist/components/BadgeIcon/BadgeIcon.types.mjs.map +1 -1
  42. package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
  43. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  44. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  45. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  46. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  47. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  48. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  49. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  50. package/dist/components/BannerBase/BannerBase.cjs +1 -1
  51. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  52. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  53. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  54. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  55. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  56. package/dist/components/Box/Box.cjs +35 -12
  57. package/dist/components/Box/Box.cjs.map +1 -1
  58. package/dist/components/Box/Box.constants.cjs.map +1 -1
  59. package/dist/components/Box/Box.constants.d.cts +1 -1
  60. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  61. package/dist/components/Box/Box.constants.d.mts +1 -1
  62. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  63. package/dist/components/Box/Box.constants.mjs.map +1 -1
  64. package/dist/components/Box/Box.d.cts +4 -2
  65. package/dist/components/Box/Box.d.cts.map +1 -1
  66. package/dist/components/Box/Box.d.mts +4 -2
  67. package/dist/components/Box/Box.d.mts.map +1 -1
  68. package/dist/components/Box/Box.mjs +13 -9
  69. package/dist/components/Box/Box.mjs.map +1 -1
  70. package/dist/components/Box/Box.types.cjs.map +1 -1
  71. package/dist/components/Box/Box.types.d.cts +3 -107
  72. package/dist/components/Box/Box.types.d.cts.map +1 -1
  73. package/dist/components/Box/Box.types.d.mts +3 -107
  74. package/dist/components/Box/Box.types.d.mts.map +1 -1
  75. package/dist/components/Box/Box.types.mjs.map +1 -1
  76. package/dist/components/Box/index.cjs +7 -7
  77. package/dist/components/Box/index.cjs.map +1 -1
  78. package/dist/components/Box/index.d.cts +1 -2
  79. package/dist/components/Box/index.d.cts.map +1 -1
  80. package/dist/components/Box/index.d.mts +1 -2
  81. package/dist/components/Box/index.d.mts.map +1 -1
  82. package/dist/components/Box/index.mjs +1 -1
  83. package/dist/components/Box/index.mjs.map +1 -1
  84. package/dist/components/BoxColumn/BoxColumn.cjs +2 -2
  85. package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
  86. package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
  87. package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
  88. package/dist/components/BoxColumn/BoxColumn.mjs +1 -1
  89. package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
  90. package/dist/components/BoxRow/BoxRow.cjs +2 -2
  91. package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
  92. package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
  93. package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
  94. package/dist/components/BoxRow/BoxRow.mjs +1 -1
  95. package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
  96. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +2 -3
  97. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
  98. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
  99. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
  100. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs +2 -3
  101. package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
  102. package/dist/components/Icon/Icon.assets.cjs +284 -283
  103. package/dist/components/Icon/Icon.assets.cjs.map +1 -1
  104. package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
  105. package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
  106. package/dist/components/Icon/Icon.assets.mjs +284 -283
  107. package/dist/components/Icon/Icon.assets.mjs.map +1 -1
  108. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  109. package/dist/components/Icon/Icon.types.d.cts +2 -19
  110. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  111. package/dist/components/Icon/Icon.types.d.mts +2 -19
  112. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  113. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  114. package/dist/components/Icon/assets/after-hours.svg +1 -1
  115. package/dist/components/Icon/assets/telegram.svg +3 -0
  116. package/dist/components/TabEmptyState/TabEmptyState.cjs +1 -1
  117. package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -1
  118. package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
  119. package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
  120. package/dist/components/TabEmptyState/TabEmptyState.mjs +1 -1
  121. package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -1
  122. package/dist/components/Tag/Tag.cjs +45 -0
  123. package/dist/components/Tag/Tag.cjs.map +1 -0
  124. package/dist/components/Tag/Tag.constants.cjs +27 -0
  125. package/dist/components/Tag/Tag.constants.cjs.map +1 -0
  126. package/dist/components/Tag/Tag.constants.d.cts +6 -0
  127. package/dist/components/Tag/Tag.constants.d.cts.map +1 -0
  128. package/dist/components/Tag/Tag.constants.d.mts +6 -0
  129. package/dist/components/Tag/Tag.constants.d.mts.map +1 -0
  130. package/dist/components/Tag/Tag.constants.mjs +24 -0
  131. package/dist/components/Tag/Tag.constants.mjs.map +1 -0
  132. package/dist/components/Tag/Tag.d.cts +4 -0
  133. package/dist/components/Tag/Tag.d.cts.map +1 -0
  134. package/dist/components/Tag/Tag.d.mts +4 -0
  135. package/dist/components/Tag/Tag.d.mts.map +1 -0
  136. package/dist/components/Tag/Tag.mjs +45 -0
  137. package/dist/components/Tag/Tag.mjs.map +1 -0
  138. package/dist/components/Tag/Tag.types.cjs +3 -0
  139. package/dist/components/Tag/Tag.types.cjs.map +1 -0
  140. package/dist/components/Tag/Tag.types.d.cts +38 -0
  141. package/dist/components/Tag/Tag.types.d.cts.map +1 -0
  142. package/dist/components/Tag/Tag.types.d.mts +38 -0
  143. package/dist/components/Tag/Tag.types.d.mts.map +1 -0
  144. package/dist/components/Tag/Tag.types.mjs +2 -0
  145. package/dist/components/Tag/Tag.types.mjs.map +1 -0
  146. package/dist/components/Tag/index.cjs +8 -0
  147. package/dist/components/Tag/index.cjs.map +1 -0
  148. package/dist/components/Tag/index.d.cts +4 -0
  149. package/dist/components/Tag/index.d.cts.map +1 -0
  150. package/dist/components/Tag/index.d.mts +4 -0
  151. package/dist/components/Tag/index.d.mts.map +1 -0
  152. package/dist/components/Tag/index.mjs +3 -0
  153. package/dist/components/Tag/index.mjs.map +1 -0
  154. package/dist/components/TitleStandard/TitleStandard.cjs +58 -0
  155. package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -0
  156. package/dist/components/TitleStandard/TitleStandard.d.cts +23 -0
  157. package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -0
  158. package/dist/components/TitleStandard/TitleStandard.d.mts +23 -0
  159. package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -0
  160. package/dist/components/TitleStandard/TitleStandard.mjs +58 -0
  161. package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -0
  162. package/dist/components/TitleStandard/TitleStandard.types.cjs +3 -0
  163. package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -0
  164. package/dist/components/TitleStandard/TitleStandard.types.d.cts +31 -0
  165. package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -0
  166. package/dist/components/TitleStandard/TitleStandard.types.d.mts +31 -0
  167. package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -0
  168. package/dist/components/TitleStandard/TitleStandard.types.mjs +2 -0
  169. package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -0
  170. package/dist/components/TitleStandard/index.cjs +6 -0
  171. package/dist/components/TitleStandard/index.cjs.map +1 -0
  172. package/dist/components/TitleStandard/index.d.cts +3 -0
  173. package/dist/components/TitleStandard/index.d.cts.map +1 -0
  174. package/dist/components/TitleStandard/index.d.mts +3 -0
  175. package/dist/components/TitleStandard/index.d.mts.map +1 -0
  176. package/dist/components/TitleStandard/index.mjs +2 -0
  177. package/dist/components/TitleStandard/index.mjs.map +1 -0
  178. package/dist/components/TitleSubpage/TitleSubpage.cjs +85 -0
  179. package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -0
  180. package/dist/components/TitleSubpage/TitleSubpage.d.cts +30 -0
  181. package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -0
  182. package/dist/components/TitleSubpage/TitleSubpage.d.mts +30 -0
  183. package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -0
  184. package/dist/components/TitleSubpage/TitleSubpage.mjs +85 -0
  185. package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -0
  186. package/dist/components/TitleSubpage/TitleSubpage.types.cjs +3 -0
  187. package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -0
  188. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +44 -0
  189. package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -0
  190. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +44 -0
  191. package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -0
  192. package/dist/components/TitleSubpage/TitleSubpage.types.mjs +2 -0
  193. package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -0
  194. package/dist/components/TitleSubpage/index.cjs +6 -0
  195. package/dist/components/TitleSubpage/index.cjs.map +1 -0
  196. package/dist/components/TitleSubpage/index.d.cts +3 -0
  197. package/dist/components/TitleSubpage/index.d.cts.map +1 -0
  198. package/dist/components/TitleSubpage/index.d.mts +3 -0
  199. package/dist/components/TitleSubpage/index.d.mts.map +1 -0
  200. package/dist/components/TitleSubpage/index.mjs +2 -0
  201. package/dist/components/TitleSubpage/index.mjs.map +1 -0
  202. package/dist/components/Toast/Toast.d.cts +1 -1
  203. package/dist/components/Toast/Toast.d.mts +1 -1
  204. package/dist/components/Toast/Toast.types.cjs.map +1 -1
  205. package/dist/components/Toast/Toast.types.d.cts +1 -2
  206. package/dist/components/Toast/Toast.types.d.cts.map +1 -1
  207. package/dist/components/Toast/Toast.types.d.mts +1 -2
  208. package/dist/components/Toast/Toast.types.d.mts.map +1 -1
  209. package/dist/components/Toast/Toast.types.mjs.map +1 -1
  210. package/dist/components/index.cjs +9 -2
  211. package/dist/components/index.cjs.map +1 -1
  212. package/dist/components/index.d.cts +6 -0
  213. package/dist/components/index.d.cts.map +1 -1
  214. package/dist/components/index.d.mts +6 -0
  215. package/dist/components/index.d.mts.map +1 -1
  216. package/dist/components/index.mjs +3 -0
  217. package/dist/components/index.mjs.map +1 -1
  218. package/dist/types/index.cjs +8 -542
  219. package/dist/types/index.cjs.map +1 -1
  220. package/dist/types/index.d.cts +4 -531
  221. package/dist/types/index.d.cts.map +1 -1
  222. package/dist/types/index.d.mts +4 -531
  223. package/dist/types/index.d.mts.map +1 -1
  224. package/dist/types/index.mjs +4 -540
  225. package/dist/types/index.mjs.map +1 -1
  226. package/package.json +3 -4
@@ -0,0 +1,45 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { FontWeight, TagSeverity, TextVariant } from "@metamask/design-system-shared";
8
+ import { useTailwind } from "@metamask/design-system-twrnc-preset";
9
+ import $React from "react";
10
+ const React = $importDefault($React);
11
+ import { Box } from "../Box/index.mjs";
12
+ import { BoxRow } from "../BoxRow/index.mjs";
13
+ import { Icon, IconSize } from "../Icon/index.mjs";
14
+ import { MAP_TAG_SEVERITY_BACKGROUND, MAP_TAG_SEVERITY_ICON_COLOR, MAP_TAG_SEVERITY_TEXT_COLOR } from "./Tag.constants.mjs";
15
+ export const Tag = ({ children, severity = TagSeverity.Neutral, startIconName, startIconProps, startAccessory, endIconName, endIconProps, endAccessory, twClassName, style, ...props }) => {
16
+ const tw = useTailwind();
17
+ const backgroundColor = MAP_TAG_SEVERITY_BACKGROUND[severity];
18
+ const textColor = MAP_TAG_SEVERITY_TEXT_COLOR[severity];
19
+ const iconColor = MAP_TAG_SEVERITY_ICON_COLOR[severity];
20
+ return (<Box {...props} backgroundColor={backgroundColor} style={[
21
+ tw.style('rounded-md self-start', (startIconName ?? startIconProps?.name) ? 'pl-1' : 'pl-1.5', (endIconName ?? endIconProps?.name) ? 'pr-1' : 'pr-1.5', twClassName),
22
+ style,
23
+ ]}>
24
+ <BoxRow textProps={{
25
+ color: textColor,
26
+ variant: TextVariant.BodyXs,
27
+ fontWeight: FontWeight.Medium,
28
+ }} startAccessory={(() => {
29
+ const name = startIconName ?? startIconProps?.name;
30
+ if (!name) {
31
+ return startAccessory ?? null;
32
+ }
33
+ return (<Icon name={name} color={iconColor} size={IconSize.Xs} twClassName="shrink-0" {...startIconProps}/>);
34
+ })()} endAccessory={(() => {
35
+ const name = endIconName ?? endIconProps?.name;
36
+ if (!name) {
37
+ return endAccessory ?? null;
38
+ }
39
+ return (<Icon name={name} color={iconColor} size={IconSize.Xs} twClassName="shrink-0" {...endIconProps}/>);
40
+ })()}>
41
+ {children}
42
+ </BoxRow>
43
+ </Box>);
44
+ };
45
+ //# sourceMappingURL=Tag.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACZ,uCAAuC;AACxC,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,MAAM,EAAE,4BAAkB;AACnC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,0BAAgB;AAEzC,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC5B,4BAAwB;AAGzB,MAAM,CAAC,MAAM,GAAG,GAAuB,CAAC,EACtC,QAAQ,EACR,QAAQ,GAAG,WAAW,CAAC,OAAO,EAC9B,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,eAAe,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC9D,MAAM,SAAS,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAExD,OAAO,CACL,CAAC,GAAG,CACF,IAAI,KAAK,CAAC,CACV,eAAe,CAAC,CAAC,eAAe,CAAC,CACjC,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uBAAuB,EACvB,CAAC,aAAa,IAAI,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAC3D,CAAC,WAAW,IAAI,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CAEF;MAAA,CAAC,MAAM,CACL,SAAS,CAAC,CAAC;YACT,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,WAAW,CAAC,MAAM;YAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;SAC9B,CAAC,CACF,cAAc,CAAC,CAAC,CAAC,GAAG,EAAE;YACpB,MAAM,IAAI,GAAG,aAAa,IAAI,cAAc,EAAE,IAAI,CAAC;YACnD,IAAI,CAAC,IAAI,EAAE;gBACT,OAAO,cAAc,IAAI,IAAI,CAAC;aAC/B;YACD,OAAO,CACL,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,WAAW,CAAC,UAAU,CACtB,IAAI,cAAc,CAAC,EACnB,CACH,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC,CACL,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE;YAClB,MAAM,IAAI,GAAG,WAAW,IAAI,YAAY,EAAE,IAAI,CAAC;YAC/C,IAAI,CAAC,IAAI,EAAE;gBACT,OAAO,YAAY,IAAI,IAAI,CAAC;aAC7B;YACD,OAAO,CACL,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,WAAW,CAAC,UAAU,CACtB,IAAI,YAAY,CAAC,EACjB,CACH,CAAC;QACJ,CAAC,CAAC,EAAE,CAAC,CAEL;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,MAAM,CACV;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {\n FontWeight,\n TagSeverity,\n TextVariant,\n} from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { Icon, IconSize } from '../Icon';\n\nimport {\n MAP_TAG_SEVERITY_BACKGROUND,\n MAP_TAG_SEVERITY_ICON_COLOR,\n MAP_TAG_SEVERITY_TEXT_COLOR,\n} from './Tag.constants';\nimport type { TagProps } from './Tag.types';\n\nexport const Tag: React.FC<TagProps> = ({\n children,\n severity = TagSeverity.Neutral,\n startIconName,\n startIconProps,\n startAccessory,\n endIconName,\n endIconProps,\n endAccessory,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n const backgroundColor = MAP_TAG_SEVERITY_BACKGROUND[severity];\n const textColor = MAP_TAG_SEVERITY_TEXT_COLOR[severity];\n const iconColor = MAP_TAG_SEVERITY_ICON_COLOR[severity];\n\n return (\n <Box\n {...props}\n backgroundColor={backgroundColor}\n style={[\n tw.style(\n 'rounded-md self-start',\n (startIconName ?? startIconProps?.name) ? 'pl-1' : 'pl-1.5',\n (endIconName ?? endIconProps?.name) ? 'pr-1' : 'pr-1.5',\n twClassName,\n ),\n style,\n ]}\n >\n <BoxRow\n textProps={{\n color: textColor,\n variant: TextVariant.BodyXs,\n fontWeight: FontWeight.Medium,\n }}\n startAccessory={(() => {\n const name = startIconName ?? startIconProps?.name;\n if (!name) {\n return startAccessory ?? null;\n }\n return (\n <Icon\n name={name}\n color={iconColor}\n size={IconSize.Xs}\n twClassName=\"shrink-0\"\n {...startIconProps}\n />\n );\n })()}\n endAccessory={(() => {\n const name = endIconName ?? endIconProps?.name;\n if (!name) {\n return endAccessory ?? null;\n }\n return (\n <Icon\n name={name}\n color={iconColor}\n size={IconSize.Xs}\n twClassName=\"shrink-0\"\n {...endIconProps}\n />\n );\n })()}\n >\n {children}\n </BoxRow>\n </Box>\n );\n};\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Tag.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.types.cjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TagPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\n\n/**\n * Tag component props (React Native platform-specific).\n * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns.\n */\nexport type TagProps = TagPropsShared & {\n /**\n * Optional prop to specify an icon to show at the start of the tag (`IconSize.Xs` unless overridden in `startIconProps`).\n */\n startIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the start icon. You may set `name` here instead of `startIconName`.\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop to specify an icon to show at the end of the tag (`IconSize.Xs` unless overridden in `endIconProps`).\n */\n endIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the end icon. You may set `name` here instead of `endIconName`.\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Additional Tailwind classes to be applied to the Tag container.\n */\n twClassName?: string;\n /**\n * Test identifier for selecting the component in tests.\n */\n testID?: string;\n /**\n * Optional container styles.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ViewProps, 'children' | 'style'>;\n"]}
@@ -0,0 +1,38 @@
1
+ import type { TagPropsShared } from "@metamask/design-system-shared";
2
+ import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
3
+ import type { IconName, IconProps } from "../Icon/index.cjs";
4
+ /**
5
+ * Tag component props (React Native platform-specific).
6
+ * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns.
7
+ */
8
+ export type TagProps = TagPropsShared & {
9
+ /**
10
+ * Optional prop to specify an icon to show at the start of the tag (`IconSize.Xs` unless overridden in `startIconProps`).
11
+ */
12
+ startIconName?: IconName;
13
+ /**
14
+ * Optional prop to pass additional properties to the start icon. You may set `name` here instead of `startIconName`.
15
+ */
16
+ startIconProps?: Partial<IconProps>;
17
+ /**
18
+ * Optional prop to specify an icon to show at the end of the tag (`IconSize.Xs` unless overridden in `endIconProps`).
19
+ */
20
+ endIconName?: IconName;
21
+ /**
22
+ * Optional prop to pass additional properties to the end icon. You may set `name` here instead of `endIconName`.
23
+ */
24
+ endIconProps?: Partial<IconProps>;
25
+ /**
26
+ * Additional Tailwind classes to be applied to the Tag container.
27
+ */
28
+ twClassName?: string;
29
+ /**
30
+ * Test identifier for selecting the component in tests.
31
+ */
32
+ testID?: string;
33
+ /**
34
+ * Optional container styles.
35
+ */
36
+ style?: StyleProp<ViewStyle>;
37
+ } & Omit<ViewProps, 'children' | 'style'>;
38
+ //# sourceMappingURL=Tag.types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.types.d.cts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,uCAAuC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { TagPropsShared } from "@metamask/design-system-shared";
2
+ import type { ViewProps, StyleProp, ViewStyle } from "react-native/index.js";
3
+ import type { IconName, IconProps } from "../Icon/index.mjs";
4
+ /**
5
+ * Tag component props (React Native platform-specific).
6
+ * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns.
7
+ */
8
+ export type TagProps = TagPropsShared & {
9
+ /**
10
+ * Optional prop to specify an icon to show at the start of the tag (`IconSize.Xs` unless overridden in `startIconProps`).
11
+ */
12
+ startIconName?: IconName;
13
+ /**
14
+ * Optional prop to pass additional properties to the start icon. You may set `name` here instead of `startIconName`.
15
+ */
16
+ startIconProps?: Partial<IconProps>;
17
+ /**
18
+ * Optional prop to specify an icon to show at the end of the tag (`IconSize.Xs` unless overridden in `endIconProps`).
19
+ */
20
+ endIconName?: IconName;
21
+ /**
22
+ * Optional prop to pass additional properties to the end icon. You may set `name` here instead of `endIconName`.
23
+ */
24
+ endIconProps?: Partial<IconProps>;
25
+ /**
26
+ * Additional Tailwind classes to be applied to the Tag container.
27
+ */
28
+ twClassName?: string;
29
+ /**
30
+ * Test identifier for selecting the component in tests.
31
+ */
32
+ testID?: string;
33
+ /**
34
+ * Optional container styles.
35
+ */
36
+ style?: StyleProp<ViewStyle>;
37
+ } & Omit<ViewProps, 'children' | 'style'>;
38
+ //# sourceMappingURL=Tag.types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.types.d.mts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,uCAAuC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,8BAAqB;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAEnD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Tag.types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.types.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TagPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps, StyleProp, ViewStyle } from 'react-native';\n\nimport type { IconName, IconProps } from '../Icon';\n\n/**\n * Tag component props (React Native platform-specific).\n * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns.\n */\nexport type TagProps = TagPropsShared & {\n /**\n * Optional prop to specify an icon to show at the start of the tag (`IconSize.Xs` unless overridden in `startIconProps`).\n */\n startIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the start icon. You may set `name` here instead of `startIconName`.\n */\n startIconProps?: Partial<IconProps>;\n /**\n * Optional prop to specify an icon to show at the end of the tag (`IconSize.Xs` unless overridden in `endIconProps`).\n */\n endIconName?: IconName;\n /**\n * Optional prop to pass additional properties to the end icon. You may set `name` here instead of `endIconName`.\n */\n endIconProps?: Partial<IconProps>;\n /**\n * Additional Tailwind classes to be applied to the Tag container.\n */\n twClassName?: string;\n /**\n * Test identifier for selecting the component in tests.\n */\n testID?: string;\n /**\n * Optional container styles.\n */\n style?: StyleProp<ViewStyle>;\n} & Omit<ViewProps, 'children' | 'style'>;\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagSeverity = exports.Tag = void 0;
4
+ var Tag_1 = require("./Tag.cjs");
5
+ Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
6
+ var design_system_shared_1 = require("@metamask/design-system-shared");
7
+ Object.defineProperty(exports, "TagSeverity", { enumerable: true, get: function () { return design_system_shared_1.TagSeverity; } });
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":";;;AAAA,iCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,uEAA6D;AAApD,mHAAA,WAAW,OAAA","sourcesContent":["export { Tag } from './Tag';\nexport { TagSeverity } from '@metamask/design-system-shared';\nexport type { TagProps } from './Tag.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export { Tag } from "./Tag.cjs";
2
+ export { TagSeverity } from "@metamask/design-system-shared";
3
+ export type { TagProps } from "./Tag.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,OAAO,EAAE,WAAW,EAAE,uCAAuC;AAC7D,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -0,0 +1,4 @@
1
+ export { Tag } from "./Tag.mjs";
2
+ export { TagSeverity } from "@metamask/design-system-shared";
3
+ export type { TagProps } from "./Tag.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,OAAO,EAAE,WAAW,EAAE,uCAAuC;AAC7D,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -0,0 +1,3 @@
1
+ export { Tag } from "./Tag.mjs";
2
+ export { TagSeverity } from "@metamask/design-system-shared";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,kBAAc;AAC5B,OAAO,EAAE,WAAW,EAAE,uCAAuC","sourcesContent":["export { Tag } from './Tag';\nexport { TagSeverity } from '@metamask/design-system-shared';\nexport type { TagProps } from './Tag.types';\n"]}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TitleStandard = void 0;
7
+ // Third party dependencies.
8
+ const design_system_shared_1 = require("@metamask/design-system-shared");
9
+ const react_1 = __importDefault(require("react"));
10
+ // Internal dependencies.
11
+ const Box_1 = require("../Box/index.cjs");
12
+ const BoxRow_1 = require("../BoxRow/index.cjs");
13
+ /**
14
+ * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
15
+ * Remaining `View` props are forwarded to the root `Box`.
16
+ *
17
+ * @param props - Component props
18
+ * @param props.title - Primary title content
19
+ * @param props.titleEndAccessory - Optional inline accessory to the right of the title
20
+ * @param props.topAccessory - Optional row above the title
21
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
22
+ * @param props.bottomLabel - Optional secondary label below the title
23
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
24
+ * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
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 `BoxRow`
27
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
28
+ * @param props.twClassName - Optional Tailwind classes on the root container
29
+ *
30
+ * @returns The rendered TitleStandard layout.
31
+ */
32
+ const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, titleProps, titleWrapperProps, bottomLabelProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
33
+ return (<Box_1.Box twClassName={twClassName} gap={1} {...props}>
34
+ {/* Top Accessory Slot */}
35
+ {topAccessory}
36
+ {/* Title Row */}
37
+ <BoxRow_1.BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
38
+ variant: design_system_shared_1.TextVariant.HeadingLg,
39
+ ...titleProps,
40
+ }}>
41
+ {title}
42
+ </BoxRow_1.BoxRow>
43
+ {/* Bottom Label Row */}
44
+ {bottomLabel && (<BoxRow_1.BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
45
+ variant: design_system_shared_1.TextVariant.BodySm,
46
+ fontWeight: design_system_shared_1.FontWeight.Medium,
47
+ color: design_system_shared_1.TextColor.TextAlternative,
48
+ ...bottomLabelProps,
49
+ }}>
50
+ {bottomLabel}
51
+ </BoxRow_1.BoxRow>)}
52
+ {/* Bottom Accessory Slot */}
53
+ {!bottomLabel && bottomAccessory}
54
+ </Box_1.Box>);
55
+ };
56
+ exports.TitleStandard = TitleStandard;
57
+ exports.TitleStandard.displayName = 'TitleStandard';
58
+ //# sourceMappingURL=TitleStandard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,yEAIwC;AACxC,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/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"]}
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import type { TitleStandardProps } from "./TitleStandard.types.cjs";
3
+ /**
4
+ * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
5
+ * Remaining `View` props are forwarded to the root `Box`.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.title - Primary title content
9
+ * @param props.titleEndAccessory - Optional inline accessory to the right of the title
10
+ * @param props.topAccessory - Optional row above the title
11
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
12
+ * @param props.bottomLabel - Optional secondary label below the title
13
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
14
+ * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
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 `BoxRow`
17
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
18
+ * @param props.twClassName - Optional Tailwind classes on the root container
19
+ *
20
+ * @returns The rendered TitleStandard layout.
21
+ */
22
+ export declare const TitleStandard: React.FC<TitleStandardProps>;
23
+ //# sourceMappingURL=TitleStandard.d.cts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import type { TitleStandardProps } from "./TitleStandard.types.mjs";
3
+ /**
4
+ * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
5
+ * Remaining `View` props are forwarded to the root `Box`.
6
+ *
7
+ * @param props - Component props
8
+ * @param props.title - Primary title content
9
+ * @param props.titleEndAccessory - Optional inline accessory to the right of the title
10
+ * @param props.topAccessory - Optional row above the title
11
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
12
+ * @param props.bottomLabel - Optional secondary label below the title
13
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
14
+ * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
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 `BoxRow`
17
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
18
+ * @param props.twClassName - Optional Tailwind classes on the root container
19
+ *
20
+ * @returns The rendered TitleStandard layout.
21
+ */
22
+ export declare const TitleStandard: React.FC<TitleStandardProps>;
23
+ //# sourceMappingURL=TitleStandard.d.mts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,58 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ // Third party dependencies.
8
+ import { FontWeight, TextColor, TextVariant } from "@metamask/design-system-shared";
9
+ import $React from "react";
10
+ const React = $importDefault($React);
11
+ // Internal dependencies.
12
+ import { Box } from "../Box/index.mjs";
13
+ import { BoxRow } from "../BoxRow/index.mjs";
14
+ /**
15
+ * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
16
+ * Remaining `View` props are forwarded to the root `Box`.
17
+ *
18
+ * @param props - Component props
19
+ * @param props.title - Primary title content
20
+ * @param props.titleEndAccessory - Optional inline accessory to the right of the title
21
+ * @param props.topAccessory - Optional row above the title
22
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
23
+ * @param props.bottomLabel - Optional secondary label below the title
24
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
25
+ * @param props.titleProps - Optional props merged into title `Text` when `title` is a string
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 `BoxRow`
28
+ * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
29
+ * @param props.twClassName - Optional Tailwind classes on the root container
30
+ *
31
+ * @returns The rendered TitleStandard layout.
32
+ */
33
+ export const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, titleProps, titleWrapperProps, bottomLabelProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
34
+ return (<Box twClassName={twClassName} gap={1} {...props}>
35
+ {/* Top Accessory Slot */}
36
+ {topAccessory}
37
+ {/* Title Row */}
38
+ <BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
39
+ variant: TextVariant.HeadingLg,
40
+ ...titleProps,
41
+ }}>
42
+ {title}
43
+ </BoxRow>
44
+ {/* Bottom Label Row */}
45
+ {bottomLabel && (<BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
46
+ variant: TextVariant.BodySm,
47
+ fontWeight: FontWeight.Medium,
48
+ color: TextColor.TextAlternative,
49
+ ...bottomLabelProps,
50
+ }}>
51
+ {bottomLabel}
52
+ </BoxRow>)}
53
+ {/* Bottom Accessory Slot */}
54
+ {!bottomLabel && bottomAccessory}
55
+ </Box>);
56
+ };
57
+ TitleStandard.displayName = 'TitleStandard';
58
+ //# sourceMappingURL=TitleStandard.mjs.map
@@ -0,0 +1 @@
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,uCAAuC;AACxC,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/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"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TitleStandard.types.cjs.map
@@ -0,0 +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/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"]}
@@ -0,0 +1,31 @@
1
+ import type { TitleStandardPropsShared } from "@metamask/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.cjs";
4
+ import type { TextProps } from "../Text/Text.types.cjs";
5
+ /**
6
+ * TitleStandard component props (React Native).
7
+ * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleStandardProps = TitleStandardPropsShared & {
10
+ /**
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ */
13
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
14
+ /**
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
+ */
21
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
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
+ */
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
+ /**
27
+ * Optional Tailwind class name to apply to the container.
28
+ */
29
+ twClassName?: string;
30
+ } & Omit<ViewProps, 'children'>;
31
+ //# sourceMappingURL=TitleStandard.types.d.cts.map
@@ -0,0 +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,uCAAuC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;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"}
@@ -0,0 +1,31 @@
1
+ import type { TitleStandardPropsShared } from "@metamask/design-system-shared";
2
+ import type { ViewProps } from "react-native/index.js";
3
+ import type { BoxRowProps } from "../BoxRow/BoxRow.types.mjs";
4
+ import type { TextProps } from "../Text/Text.types.mjs";
5
+ /**
6
+ * TitleStandard component props (React Native).
7
+ * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleStandardProps = TitleStandardPropsShared & {
10
+ /**
11
+ * Optional props merged into {@link BoxRow} `textProps` when `title` is a string.
12
+ */
13
+ titleProps?: Omit<Partial<TextProps>, 'children'>;
14
+ /**
15
+ * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
20
+ */
21
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
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
+ */
25
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'textProps' | 'endAccessory'>;
26
+ /**
27
+ * Optional Tailwind class name to apply to the container.
28
+ */
29
+ twClassName?: string;
30
+ } & Omit<ViewProps, 'children'>;
31
+ //# sourceMappingURL=TitleStandard.types.d.mts.map
@@ -0,0 +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,uCAAuC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TitleStandard.types.mjs.map
@@ -0,0 +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/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"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TitleStandard = void 0;
4
+ var TitleStandard_1 = require("./TitleStandard.cjs");
5
+ Object.defineProperty(exports, "TitleStandard", { enumerable: true, get: function () { return TitleStandard_1.TitleStandard; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA","sourcesContent":["export { TitleStandard } from './TitleStandard';\nexport type { TitleStandardProps } from './TitleStandard.types';\n"]}
@@ -0,0 +1,3 @@
1
+ export { TitleStandard } from "./TitleStandard.cjs";
2
+ export type { TitleStandardProps } from "./TitleStandard.types.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,3 @@
1
+ export { TitleStandard } from "./TitleStandard.mjs";
2
+ export type { TitleStandardProps } from "./TitleStandard.types.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B"}
@@ -0,0 +1,2 @@
1
+ export { TitleStandard } from "./TitleStandard.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB","sourcesContent":["export { TitleStandard } from './TitleStandard';\nexport type { TitleStandardProps } from './TitleStandard.types';\n"]}