@metamask-previews/design-system-react-native 0.18.0-preview.ba86146 → 0.19.0-preview.1679aa9

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 (76) hide show
  1. package/CHANGELOG.md +28 -16
  2. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +1 -1
  3. package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
  4. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +1 -1
  5. package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
  6. package/dist/components/Icon/Icon.cjs +1 -2
  7. package/dist/components/Icon/Icon.cjs.map +1 -1
  8. package/dist/components/Icon/Icon.d.cts.map +1 -1
  9. package/dist/components/Icon/Icon.d.mts.map +1 -1
  10. package/dist/components/Icon/Icon.mjs +1 -2
  11. package/dist/components/Icon/Icon.mjs.map +1 -1
  12. package/dist/components/Tag/Tag.cjs +45 -0
  13. package/dist/components/Tag/Tag.cjs.map +1 -0
  14. package/dist/components/Tag/Tag.constants.cjs +27 -0
  15. package/dist/components/Tag/Tag.constants.cjs.map +1 -0
  16. package/dist/components/Tag/Tag.constants.d.cts +6 -0
  17. package/dist/components/Tag/Tag.constants.d.cts.map +1 -0
  18. package/dist/components/Tag/Tag.constants.d.mts +6 -0
  19. package/dist/components/Tag/Tag.constants.d.mts.map +1 -0
  20. package/dist/components/Tag/Tag.constants.mjs +24 -0
  21. package/dist/components/Tag/Tag.constants.mjs.map +1 -0
  22. package/dist/components/Tag/Tag.d.cts +4 -0
  23. package/dist/components/Tag/Tag.d.cts.map +1 -0
  24. package/dist/components/Tag/Tag.d.mts +4 -0
  25. package/dist/components/Tag/Tag.d.mts.map +1 -0
  26. package/dist/components/Tag/Tag.mjs +45 -0
  27. package/dist/components/Tag/Tag.mjs.map +1 -0
  28. package/dist/components/Tag/Tag.types.cjs +3 -0
  29. package/dist/components/Tag/Tag.types.cjs.map +1 -0
  30. package/dist/components/Tag/Tag.types.d.cts +38 -0
  31. package/dist/components/Tag/Tag.types.d.cts.map +1 -0
  32. package/dist/components/Tag/Tag.types.d.mts +38 -0
  33. package/dist/components/Tag/Tag.types.d.mts.map +1 -0
  34. package/dist/components/Tag/Tag.types.mjs +2 -0
  35. package/dist/components/Tag/Tag.types.mjs.map +1 -0
  36. package/dist/components/Tag/index.cjs +8 -0
  37. package/dist/components/Tag/index.cjs.map +1 -0
  38. package/dist/components/Tag/index.d.cts +4 -0
  39. package/dist/components/Tag/index.d.cts.map +1 -0
  40. package/dist/components/Tag/index.d.mts +4 -0
  41. package/dist/components/Tag/index.d.mts.map +1 -0
  42. package/dist/components/Tag/index.mjs +3 -0
  43. package/dist/components/Tag/index.mjs.map +1 -0
  44. package/dist/components/TitleHub/TitleHub.cjs +65 -0
  45. package/dist/components/TitleHub/TitleHub.cjs.map +1 -0
  46. package/dist/components/TitleHub/TitleHub.d.cts +26 -0
  47. package/dist/components/TitleHub/TitleHub.d.cts.map +1 -0
  48. package/dist/components/TitleHub/TitleHub.d.mts +26 -0
  49. package/dist/components/TitleHub/TitleHub.d.mts.map +1 -0
  50. package/dist/components/TitleHub/TitleHub.mjs +65 -0
  51. package/dist/components/TitleHub/TitleHub.mjs.map +1 -0
  52. package/dist/components/TitleHub/TitleHub.types.cjs +3 -0
  53. package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -0
  54. package/dist/components/TitleHub/TitleHub.types.d.cts +39 -0
  55. package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -0
  56. package/dist/components/TitleHub/TitleHub.types.d.mts +39 -0
  57. package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -0
  58. package/dist/components/TitleHub/TitleHub.types.mjs +2 -0
  59. package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -0
  60. package/dist/components/TitleHub/index.cjs +6 -0
  61. package/dist/components/TitleHub/index.cjs.map +1 -0
  62. package/dist/components/TitleHub/index.d.cts +4 -0
  63. package/dist/components/TitleHub/index.d.cts.map +1 -0
  64. package/dist/components/TitleHub/index.d.mts +4 -0
  65. package/dist/components/TitleHub/index.d.mts.map +1 -0
  66. package/dist/components/TitleHub/index.mjs +2 -0
  67. package/dist/components/TitleHub/index.mjs.map +1 -0
  68. package/dist/components/index.cjs +7 -2
  69. package/dist/components/index.cjs.map +1 -1
  70. package/dist/components/index.d.cts +4 -0
  71. package/dist/components/index.d.cts.map +1 -1
  72. package/dist/components/index.d.mts +4 -0
  73. package/dist/components/index.d.mts.map +1 -1
  74. package/dist/components/index.mjs +2 -0
  75. package/dist/components/index.mjs.map +1 -1
  76. package/package.json +5 -5
@@ -0,0 +1,38 @@
1
+ import type { TagPropsShared } from "@metamask-previews/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-previews/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,gDAAgD;AAC9E,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-previews/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-previews/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,gDAAgD;AAC9E,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-previews/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-previews/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-previews/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,gFAAsE;AAA7D,mHAAA,WAAW,OAAA","sourcesContent":["export { Tag } from './Tag';\nexport { TagSeverity } from '@metamask-previews/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-previews/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,gDAAgD;AACtE,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -0,0 +1,4 @@
1
+ export { Tag } from "./Tag.mjs";
2
+ export { TagSeverity } from "@metamask-previews/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,gDAAgD;AACtE,YAAY,EAAE,QAAQ,EAAE,wBAAoB"}
@@ -0,0 +1,3 @@
1
+ export { Tag } from "./Tag.mjs";
2
+ export { TagSeverity } from "@metamask-previews/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,gDAAgD","sourcesContent":["export { Tag } from './Tag';\nexport { TagSeverity } from '@metamask-previews/design-system-shared';\nexport type { TagProps } from './Tag.types';\n"]}
@@ -0,0 +1,65 @@
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.TitleHub = void 0;
7
+ const design_system_shared_1 = require("@metamask-previews/design-system-shared");
8
+ const react_1 = __importDefault(require("react"));
9
+ const Box_1 = require("../Box/index.cjs");
10
+ const BoxRow_1 = require("../BoxRow/index.cjs");
11
+ /**
12
+ * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
13
+ * Remaining `View` props are forwarded to the root `Box`.
14
+ *
15
+ * @param props - Component props
16
+ * @param props.title - Title row content (required)
17
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
18
+ * @param props.amount - Optional primary amount below the title
19
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
20
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
21
+ * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row
22
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)
23
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
24
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` 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 spread onto the title row `BoxRow`
27
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
28
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
29
+ * @param props.twClassName - Optional Tailwind classes on the root container
30
+ *
31
+ * @returns The rendered TitleHub layout.
32
+ */
33
+ const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
34
+ return (<Box_1.Box gap={1} twClassName={twClassName} {...props}>
35
+ {/* Title Row */}
36
+ {title && (<BoxRow_1.BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
37
+ variant: design_system_shared_1.TextVariant.HeadingMd,
38
+ color: design_system_shared_1.TextColor.TextDefault,
39
+ ...titleProps,
40
+ }}>
41
+ {title}
42
+ </BoxRow_1.BoxRow>)}
43
+ {/* Amount Row */}
44
+ {amount && (<BoxRow_1.BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
45
+ variant: design_system_shared_1.TextVariant.DisplayLg,
46
+ ...amountProps,
47
+ }}>
48
+ {amount}
49
+ </BoxRow_1.BoxRow>)}
50
+ {/* Bottom Label Row */}
51
+ {bottomLabel && (<BoxRow_1.BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
52
+ variant: design_system_shared_1.TextVariant.BodySm,
53
+ fontWeight: design_system_shared_1.FontWeight.Medium,
54
+ color: design_system_shared_1.TextColor.TextAlternative,
55
+ ...bottomLabelProps,
56
+ }}>
57
+ {bottomLabel}
58
+ </BoxRow_1.BoxRow>)}
59
+ {/* Bottom Accessory Slot */}
60
+ {!bottomLabel && bottomAccessory}
61
+ </Box_1.Box>);
62
+ };
63
+ exports.TitleHub = TitleHub;
64
+ exports.TitleHub.displayName = 'TitleHub';
65
+ //# sourceMappingURL=TitleHub.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleHub.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":";;;;;;AAAA,kFAIiD;AACjD,kDAA0B;AAE1B,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACI,MAAM,QAAQ,GAA4B,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,eAAM,CACL,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,eAAM,CACL,IAAI,kBAAkB,CAAC,CACvB,YAAY,CAAC,CAAC,kBAAkB,CAAC,CACjC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;UAAA,CAAC,MAAM,CACT;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,eAAM,CACL,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,QAAQ,YAiEnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import {\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\n\nimport type { TitleHubProps } from './TitleHub.types';\n\n/**\n * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`\n * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleHub layout.\n */\nexport const TitleHub: React.FC<TitleHubProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n bottomLabelProps,\n titleWrapperProps,\n amountWrapperProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box gap={1} twClassName={twClassName} {...props}>\n {/* Title Row */}\n {title && (\n <BoxRow\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingMd,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n )}\n {/* Amount Row */}\n {amount && (\n <BoxRow\n {...amountWrapperProps}\n endAccessory={amountEndAccessory}\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </BoxRow>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleHub.displayName = 'TitleHub';\n"]}
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import type { TitleHubProps } from "./TitleHub.types.cjs";
3
+ /**
4
+ * Displays a required title row with optional amount, inline accessories, 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 - Title row content (required)
9
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
10
+ * @param props.amount - Optional primary amount below the title
11
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
12
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
13
+ * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row
14
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)
15
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
21
+ * @param props.twClassName - Optional Tailwind classes on the root container
22
+ *
23
+ * @returns The rendered TitleHub layout.
24
+ */
25
+ export declare const TitleHub: React.FC<TitleHubProps>;
26
+ //# sourceMappingURL=TitleHub.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleHub.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import type { TitleHubProps } from "./TitleHub.types.mjs";
3
+ /**
4
+ * Displays a required title row with optional amount, inline accessories, 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 - Title row content (required)
9
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
10
+ * @param props.amount - Optional primary amount below the title
11
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
12
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
13
+ * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row
14
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)
15
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
16
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string
17
+ * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
18
+ * @param props.titleWrapperProps - Optional props spread onto the title row `BoxRow`
19
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
20
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
21
+ * @param props.twClassName - Optional Tailwind classes on the root container
22
+ *
23
+ * @returns The rendered TitleHub layout.
24
+ */
25
+ export declare const TitleHub: React.FC<TitleHubProps>;
26
+ //# sourceMappingURL=TitleHub.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TitleHub.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiE5C,CAAC"}
@@ -0,0 +1,65 @@
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
8
+ import $React from "react";
9
+ const React = $importDefault($React);
10
+ import { Box } from "../Box/index.mjs";
11
+ import { BoxRow } from "../BoxRow/index.mjs";
12
+ /**
13
+ * Displays a required title row with optional amount, inline accessories, and bottom rows in a left-aligned layout.
14
+ * Remaining `View` props are forwarded to the root `Box`.
15
+ *
16
+ * @param props - Component props
17
+ * @param props.title - Title row content (required)
18
+ * @param props.titleEndAccessory - Optional inline accessory to the right of `title`
19
+ * @param props.amount - Optional primary amount below the title
20
+ * @param props.amountEndAccessory - Optional inline accessory to the right of the amount
21
+ * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
22
+ * @param props.bottomLabel - Optional secondary label below the amount row; when renderable, shows the bottom label row
23
+ * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel` (ignored without a renderable `bottomLabel`)
24
+ * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string
25
+ * @param props.amountProps - Optional props merged into amount `Text` when `amount` 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 spread onto the title row `BoxRow`
28
+ * @param props.amountWrapperProps - Optional props spread onto the amount row `BoxRow`
29
+ * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `BoxRow`
30
+ * @param props.twClassName - Optional Tailwind classes on the root container
31
+ *
32
+ * @returns The rendered TitleHub layout.
33
+ */
34
+ export const TitleHub = ({ amount, amountEndAccessory, title, titleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, bottomLabelProps, titleWrapperProps, amountWrapperProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
35
+ return (<Box gap={1} twClassName={twClassName} {...props}>
36
+ {/* Title Row */}
37
+ {title && (<BoxRow {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
38
+ variant: TextVariant.HeadingMd,
39
+ color: TextColor.TextDefault,
40
+ ...titleProps,
41
+ }}>
42
+ {title}
43
+ </BoxRow>)}
44
+ {/* Amount Row */}
45
+ {amount && (<BoxRow {...amountWrapperProps} endAccessory={amountEndAccessory} textProps={{
46
+ variant: TextVariant.DisplayLg,
47
+ ...amountProps,
48
+ }}>
49
+ {amount}
50
+ </BoxRow>)}
51
+ {/* Bottom Label Row */}
52
+ {bottomLabel && (<BoxRow {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
53
+ variant: TextVariant.BodySm,
54
+ fontWeight: FontWeight.Medium,
55
+ color: TextColor.TextAlternative,
56
+ ...bottomLabelProps,
57
+ }}>
58
+ {bottomLabel}
59
+ </BoxRow>)}
60
+ {/* Bottom Accessory Slot */}
61
+ {!bottomLabel && bottomAccessory}
62
+ </Box>);
63
+ };
64
+ TitleHub.displayName = 'TitleHub';
65
+ //# sourceMappingURL=TitleHub.mjs.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TitleHub.types.cjs.map
@@ -0,0 +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 { BoxRowProps } from '../BoxRow/BoxRow.types';\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 */\n amountProps?: Omit<Partial<TextProps>, '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 */\n bottomLabelProps?: Omit<Partial<TextProps>, '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"]}
@@ -0,0 +1,39 @@
1
+ import type { TitleHubPropsShared } from "@metamask-previews/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
+ * TitleHub component props (React Native).
7
+ * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleHubProps = TitleHubPropsShared & {
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 spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
20
+ */
21
+ amountProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
23
+ * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
24
+ */
25
+ amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
26
+ /**
27
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
28
+ */
29
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
30
+ /**
31
+ * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
32
+ */
33
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
34
+ /**
35
+ * Optional Tailwind class name to apply to the container.
36
+ */
37
+ twClassName?: string;
38
+ } & Omit<ViewProps, 'children'>;
39
+ //# sourceMappingURL=TitleHub.types.d.cts.map
@@ -0,0 +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,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,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;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACnD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,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,cAAc,GAAG,WAAW,CAC1C,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { TitleHubPropsShared } from "@metamask-previews/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
+ * TitleHub component props (React Native).
7
+ * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.
8
+ */
9
+ export type TitleHubProps = TitleHubPropsShared & {
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 spread onto the title row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `title`, `titleEndAccessory`, and `titleProps`).
16
+ */
17
+ titleWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
18
+ /**
19
+ * Optional props merged into {@link BoxRow} `textProps` when `amount` is a string.
20
+ */
21
+ amountProps?: Omit<Partial<TextProps>, 'children'>;
22
+ /**
23
+ * Optional props spread onto the amount row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `amount`, `amountEndAccessory`, and `amountProps`).
24
+ */
25
+ amountWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
26
+ /**
27
+ * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.
28
+ */
29
+ bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
30
+ /**
31
+ * Optional props spread onto the bottom label row {@link BoxRow}. Omits `children`, `endAccessory`, and `textProps` (TitleHub sets those via `bottomLabel`, `bottomLabelEndAccessory`, and `bottomLabelProps`).
32
+ */
33
+ bottomLabelWrapperProps?: Omit<Partial<BoxRowProps>, 'children' | 'endAccessory' | 'textProps'>;
34
+ /**
35
+ * Optional Tailwind class name to apply to the container.
36
+ */
37
+ twClassName?: string;
38
+ } & Omit<ViewProps, 'children'>;
39
+ //# sourceMappingURL=TitleHub.types.d.mts.map
@@ -0,0 +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,8BAAqB;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,mCAA+B;AAC1D,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;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACnD;;OAEG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,OAAO,CAAC,WAAW,CAAC,EACpB,UAAU,GAAG,cAAc,GAAG,WAAW,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,cAAc,GAAG,WAAW,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=TitleHub.types.mjs.map
@@ -0,0 +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 { BoxRowProps } from '../BoxRow/BoxRow.types';\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 */\n amountProps?: Omit<Partial<TextProps>, '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 */\n bottomLabelProps?: Omit<Partial<TextProps>, '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"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TitleHub = void 0;
4
+ var TitleHub_1 = require("./TitleHub.cjs");
5
+ Object.defineProperty(exports, "TitleHub", { enumerable: true, get: function () { return TitleHub_1.TitleHub; } });
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/TitleHub/index.ts"],"names":[],"mappings":";;;AACA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nexport { TitleHub } from './TitleHub';\nexport type { TitleHubProps } from './TitleHub.types';\n"]}
@@ -0,0 +1,4 @@
1
+ export type { TitleHubPropsShared } from "@metamask-previews/design-system-shared";
2
+ export { TitleHub } from "./TitleHub.cjs";
3
+ export type { TitleHubProps } from "./TitleHub.types.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/TitleHub/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,4 @@
1
+ export type { TitleHubPropsShared } from "@metamask-previews/design-system-shared";
2
+ export { TitleHub } from "./TitleHub.mjs";
3
+ export type { TitleHubProps } from "./TitleHub.types.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/TitleHub/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,gDAAgD;AACnF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
@@ -0,0 +1,2 @@
1
+ export { TitleHub } from "./TitleHub.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nexport { TitleHub } from './TitleHub';\nexport type { TitleHubProps } from './TitleHub.types';\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ButtonBase = exports.ButtonAnimated = exports.Card = exports.BoxColumn = exports.BoxRow = exports.BoxBorderColor = exports.BoxBackgroundColor = exports.BoxJustifyContent = exports.BoxAlignItems = exports.BoxFlexWrap = exports.BoxFlexDirection = exports.Box = exports.Blockies = exports.BottomSheetOverlay = exports.BottomSheetHeaderVariant = exports.BottomSheetHeader = exports.ButtonsAlignment = exports.BottomSheetFooter = exports.BottomSheetDialog = exports.BottomSheet = exports.BannerBase = exports.BadgeWrapperPositionAnchorShape = exports.BadgeWrapperPosition = exports.BadgeWrapper = exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeStatus = exports.BadgeNetwork = exports.BadgeIcon = exports.BadgeCountSize = exports.BadgeCount = exports.AvatarTokenSize = exports.AvatarToken = exports.AvatarNetworkSize = exports.AvatarNetwork = exports.AvatarIconSize = exports.AvatarIconSeverity = exports.AvatarIcon = exports.AvatarGroupVariant = exports.AvatarGroupSize = exports.AvatarGroup = exports.AvatarFaviconSize = exports.AvatarFavicon = exports.AvatarBaseShape = exports.AvatarBaseSize = exports.AvatarBase = exports.AvatarAccountSize = exports.AvatarAccountVariant = exports.AvatarAccount = exports.ActionListItem = void 0;
4
- exports.ToastCloseButtonVariant = exports.ToastVariant = exports.Toast = exports.TextOrChildren = exports.TextFieldSearch = exports.TextField = exports.TextVariant = exports.TextColor = exports.FontStyle = exports.FontFamily = exports.FontWeight = exports.Text = exports.TextButton = exports.TabEmptyState = exports.SensitiveTextLength = exports.SensitiveText = exports.Skeleton = exports.MainActionButton = exports.Maskicon = exports.Jazzicon = exports.RadioButton = exports.ListItemVerticalAlignment = exports.ListItem = exports.Label = exports.KeyValueRowVariant = exports.KeyValueRow = exports.KeyValueColumn = exports.Input = exports.IconAlertSeverity = exports.IconAlert = exports.IconSize = exports.IconName = exports.IconColor = exports.Icon = exports.HeaderStandard = exports.HeaderSearchVariant = exports.HeaderSearch = exports.HeaderRoot = exports.HeaderBaseVariant = exports.HeaderBase = exports.Checkbox = exports.ButtonSemanticSeverity = exports.ButtonSemantic = exports.ButtonIconVariant = exports.ButtonIconSize = exports.ButtonIcon = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonBaseSize = void 0;
5
- exports.BannerAlertSeverity = exports.BannerAlert = exports.Spinner = exports.ImageOrSvg = exports.ButtonFilter = exports.ButtonHeroSize = exports.ButtonHero = exports.ToastContextWrapper = exports.ToastContext = void 0;
4
+ exports.ToastVariant = exports.Toast = exports.TitleHub = exports.TextOrChildren = exports.TextFieldSearch = exports.TextField = exports.TextVariant = exports.TextColor = exports.FontStyle = exports.FontFamily = exports.FontWeight = exports.Text = exports.TextButton = exports.TabEmptyState = exports.SensitiveTextLength = exports.SensitiveText = exports.Skeleton = exports.MainActionButton = exports.Maskicon = exports.Jazzicon = exports.RadioButton = exports.ListItemVerticalAlignment = exports.ListItem = exports.Label = exports.KeyValueRowVariant = exports.KeyValueRow = exports.KeyValueColumn = exports.Input = exports.IconAlertSeverity = exports.IconAlert = exports.IconSize = exports.IconName = exports.IconColor = exports.Icon = exports.HeaderStandard = exports.HeaderSearchVariant = exports.HeaderSearch = exports.HeaderRoot = exports.HeaderBaseVariant = exports.HeaderBase = exports.Checkbox = exports.ButtonSemanticSeverity = exports.ButtonSemantic = exports.ButtonIconVariant = exports.ButtonIconSize = exports.ButtonIcon = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonBaseSize = void 0;
5
+ exports.TagSeverity = exports.Tag = exports.BannerAlertSeverity = exports.BannerAlert = exports.Spinner = exports.ImageOrSvg = exports.ButtonFilter = exports.ButtonHeroSize = exports.ButtonHero = exports.ToastContextWrapper = exports.ToastContext = exports.ToastCloseButtonVariant = void 0;
6
6
  var ActionListItem_1 = require("./ActionListItem/index.cjs");
7
7
  Object.defineProperty(exports, "ActionListItem", { enumerable: true, get: function () { return ActionListItem_1.ActionListItem; } });
8
8
  var AvatarAccount_1 = require("./AvatarAccount/index.cjs");
@@ -153,6 +153,8 @@ var TextFieldSearch_1 = require("./TextFieldSearch/index.cjs");
153
153
  Object.defineProperty(exports, "TextFieldSearch", { enumerable: true, get: function () { return TextFieldSearch_1.TextFieldSearch; } });
154
154
  var TextOrChildren_1 = require("./temp-components/TextOrChildren/index.cjs");
155
155
  Object.defineProperty(exports, "TextOrChildren", { enumerable: true, get: function () { return TextOrChildren_1.TextOrChildren; } });
156
+ var TitleHub_1 = require("./TitleHub/index.cjs");
157
+ Object.defineProperty(exports, "TitleHub", { enumerable: true, get: function () { return TitleHub_1.TitleHub; } });
156
158
  var Toast_1 = require("./Toast/index.cjs");
157
159
  Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return Toast_1.Toast; } });
158
160
  Object.defineProperty(exports, "ToastVariant", { enumerable: true, get: function () { return Toast_1.ToastVariant; } });
@@ -171,4 +173,7 @@ Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () {
171
173
  var BannerAlert_1 = require("./BannerAlert/index.cjs");
172
174
  Object.defineProperty(exports, "BannerAlert", { enumerable: true, get: function () { return BannerAlert_1.BannerAlert; } });
173
175
  Object.defineProperty(exports, "BannerAlertSeverity", { enumerable: true, get: function () { return BannerAlert_1.BannerAlertSeverity; } });
176
+ var Tag_1 = require("./Tag/index.cjs");
177
+ Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
178
+ Object.defineProperty(exports, "TagSeverity", { enumerable: true, get: function () { return Tag_1.TagSeverity; } });
174
179
  //# sourceMappingURL=index.cjs.map