@metamask-previews/design-system-react 0.15.0-preview.a73a010 → 0.17.0-preview.9d477a9

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 (168) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/components/AvatarFavicon/AvatarFavicon.cjs +1 -2
  3. package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
  4. package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
  5. package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
  6. package/dist/components/AvatarFavicon/AvatarFavicon.mjs +1 -2
  7. package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
  8. package/dist/components/AvatarFavicon/AvatarFavicon.types.cjs.map +1 -1
  9. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts +6 -6
  10. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts.map +1 -1
  11. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts +6 -6
  12. package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts.map +1 -1
  13. package/dist/components/AvatarFavicon/AvatarFavicon.types.mjs.map +1 -1
  14. package/dist/components/AvatarFavicon/index.cjs +2 -2
  15. package/dist/components/AvatarFavicon/index.cjs.map +1 -1
  16. package/dist/components/AvatarFavicon/index.d.cts +1 -1
  17. package/dist/components/AvatarFavicon/index.d.cts.map +1 -1
  18. package/dist/components/AvatarFavicon/index.d.mts +1 -1
  19. package/dist/components/AvatarFavicon/index.d.mts.map +1 -1
  20. package/dist/components/AvatarFavicon/index.mjs +1 -1
  21. package/dist/components/AvatarFavicon/index.mjs.map +1 -1
  22. package/dist/components/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -1
  23. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts +6 -16
  24. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -1
  25. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts +6 -16
  26. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -1
  27. package/dist/components/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -1
  28. package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
  29. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  30. package/dist/components/BannerAlert/BannerAlert.constants.cjs +16 -16
  31. package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
  32. package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
  33. package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
  34. package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
  35. package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
  36. package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
  37. package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
  38. package/dist/components/BannerAlert/BannerAlert.d.cts +6 -6
  39. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  40. package/dist/components/BannerAlert/BannerAlert.d.mts +6 -6
  41. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  42. package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
  43. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  44. package/dist/components/BannerBase/BannerBase.cjs +5 -5
  45. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  46. package/dist/components/BannerBase/BannerBase.d.cts +2 -1
  47. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  48. package/dist/components/BannerBase/BannerBase.d.mts +2 -1
  49. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  50. package/dist/components/BannerBase/BannerBase.mjs +2 -2
  51. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  52. package/dist/components/Box/Box.constants.cjs.map +1 -1
  53. package/dist/components/Box/Box.constants.d.cts +1 -1
  54. package/dist/components/Box/Box.constants.d.cts.map +1 -1
  55. package/dist/components/Box/Box.constants.d.mts +1 -1
  56. package/dist/components/Box/Box.constants.d.mts.map +1 -1
  57. package/dist/components/Box/Box.constants.mjs.map +1 -1
  58. package/dist/components/Box/Box.types.cjs.map +1 -1
  59. package/dist/components/Box/Box.types.d.cts +106 -2
  60. package/dist/components/Box/Box.types.d.cts.map +1 -1
  61. package/dist/components/Box/Box.types.d.mts +106 -2
  62. package/dist/components/Box/Box.types.d.mts.map +1 -1
  63. package/dist/components/Box/Box.types.mjs.map +1 -1
  64. package/dist/components/Box/index.cjs +7 -7
  65. package/dist/components/Box/index.cjs.map +1 -1
  66. package/dist/components/Box/index.d.cts +2 -1
  67. package/dist/components/Box/index.d.cts.map +1 -1
  68. package/dist/components/Box/index.d.mts +2 -1
  69. package/dist/components/Box/index.d.mts.map +1 -1
  70. package/dist/components/Box/index.mjs +1 -1
  71. package/dist/components/Box/index.mjs.map +1 -1
  72. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +3 -4
  73. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  74. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +3 -4
  75. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  76. package/dist/components/Checkbox/Checkbox.types.cjs.map +1 -1
  77. package/dist/components/Checkbox/Checkbox.types.d.cts +2 -28
  78. package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
  79. package/dist/components/Checkbox/Checkbox.types.d.mts +2 -28
  80. package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
  81. package/dist/components/Checkbox/Checkbox.types.mjs.map +1 -1
  82. package/dist/components/Icon/Icon.cjs +2 -2
  83. package/dist/components/Icon/Icon.cjs.map +1 -1
  84. package/dist/components/Icon/Icon.constants.cjs +6 -6
  85. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  86. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  87. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  88. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  89. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  90. package/dist/components/Icon/Icon.constants.mjs +1 -1
  91. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  92. package/dist/components/Icon/Icon.d.cts.map +1 -1
  93. package/dist/components/Icon/Icon.d.mts.map +1 -1
  94. package/dist/components/Icon/Icon.mjs +1 -1
  95. package/dist/components/Icon/Icon.mjs.map +1 -1
  96. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  97. package/dist/components/Icon/Icon.types.d.cts +2 -19
  98. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  99. package/dist/components/Icon/Icon.types.d.mts +2 -19
  100. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  101. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  102. package/dist/components/Icon/icons/index.cjs +76 -76
  103. package/dist/components/Icon/icons/index.cjs.map +1 -1
  104. package/dist/components/Icon/icons/index.d.cts +38 -38
  105. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  106. package/dist/components/Icon/icons/index.d.mts +38 -38
  107. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  108. package/dist/components/Icon/icons/index.mjs +76 -76
  109. package/dist/components/Icon/icons/index.mjs.map +1 -1
  110. package/dist/components/Icon/index.cjs +5 -5
  111. package/dist/components/Icon/index.cjs.map +1 -1
  112. package/dist/components/Icon/index.d.cts +1 -1
  113. package/dist/components/Icon/index.d.cts.map +1 -1
  114. package/dist/components/Icon/index.d.mts +1 -1
  115. package/dist/components/Icon/index.d.mts.map +1 -1
  116. package/dist/components/Icon/index.mjs +1 -1
  117. package/dist/components/Icon/index.mjs.map +1 -1
  118. package/dist/components/Input/Input.cjs +3 -3
  119. package/dist/components/Input/Input.cjs.map +1 -1
  120. package/dist/components/Input/Input.d.cts +1 -1
  121. package/dist/components/Input/Input.d.cts.map +1 -1
  122. package/dist/components/Input/Input.d.mts +1 -1
  123. package/dist/components/Input/Input.d.mts.map +1 -1
  124. package/dist/components/Input/Input.mjs +3 -3
  125. package/dist/components/Input/Input.mjs.map +1 -1
  126. package/dist/components/Input/Input.types.cjs.map +1 -1
  127. package/dist/components/Input/Input.types.d.cts +1 -1
  128. package/dist/components/Input/Input.types.d.cts.map +1 -1
  129. package/dist/components/Input/Input.types.d.mts +1 -1
  130. package/dist/components/Input/Input.types.d.mts.map +1 -1
  131. package/dist/components/Input/Input.types.mjs.map +1 -1
  132. package/dist/components/Text/Text.cjs +5 -3
  133. package/dist/components/Text/Text.cjs.map +1 -1
  134. package/dist/components/Text/Text.constants.cjs +60 -46
  135. package/dist/components/Text/Text.constants.cjs.map +1 -1
  136. package/dist/components/Text/Text.constants.d.cts +6 -3
  137. package/dist/components/Text/Text.constants.d.cts.map +1 -1
  138. package/dist/components/Text/Text.constants.d.mts +6 -3
  139. package/dist/components/Text/Text.constants.d.mts.map +1 -1
  140. package/dist/components/Text/Text.constants.mjs +17 -3
  141. package/dist/components/Text/Text.constants.mjs.map +1 -1
  142. package/dist/components/Text/Text.d.cts.map +1 -1
  143. package/dist/components/Text/Text.d.mts.map +1 -1
  144. package/dist/components/Text/Text.mjs +5 -3
  145. package/dist/components/Text/Text.mjs.map +1 -1
  146. package/dist/components/Text/Text.types.cjs.map +1 -1
  147. package/dist/components/Text/Text.types.d.cts +4 -39
  148. package/dist/components/Text/Text.types.d.cts.map +1 -1
  149. package/dist/components/Text/Text.types.d.mts +4 -39
  150. package/dist/components/Text/Text.types.d.mts.map +1 -1
  151. package/dist/components/Text/Text.types.mjs.map +1 -1
  152. package/dist/components/Text/index.cjs +7 -6
  153. package/dist/components/Text/index.cjs.map +1 -1
  154. package/dist/components/Text/index.d.cts +2 -1
  155. package/dist/components/Text/index.d.cts.map +1 -1
  156. package/dist/components/Text/index.d.mts +2 -1
  157. package/dist/components/Text/index.d.mts.map +1 -1
  158. package/dist/components/Text/index.mjs +2 -1
  159. package/dist/components/Text/index.mjs.map +1 -1
  160. package/dist/types/index.cjs +194 -488
  161. package/dist/types/index.cjs.map +1 -1
  162. package/dist/types/index.d.cts +194 -462
  163. package/dist/types/index.d.cts.map +1 -1
  164. package/dist/types/index.d.mts +194 -462
  165. package/dist/types/index.d.mts.map +1 -1
  166. package/dist/types/index.mjs +189 -482
  167. package/dist/types/index.mjs.map +1 -1
  168. package/package.json +5 -8
@@ -1,44 +1,15 @@
1
1
  /// <reference types="react" />
2
- import type { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.cjs";
3
- export type TextProps = {
2
+ import type { TextPropsShared } from "@metamask-previews/design-system-shared";
3
+ import type { OverflowWrap, TextAlign, TextTransform } from "../../types/index.cjs";
4
+ export type TextProps = TextPropsShared & {
4
5
  /**
5
6
  * Optional prop for inline styles
6
7
  */
7
8
  style?: React.CSSProperties;
8
- /**
9
- * Optional prop to change the font size of the component. The Text component uses responsive font sizes.
10
- * Different variants map to specific HTML elements by default.
11
- *
12
- * @default TextVariant.BodyMd
13
- */
14
- variant?: TextVariant;
15
- /**
16
- * The text content or elements to be rendered within the component.
17
- */
18
- children: React.ReactNode;
19
9
  /**
20
10
  * Optional prop for additional CSS classes to be applied to the Text component.
21
11
  */
22
12
  className?: string;
23
- /**
24
- * Optional prop to control the font weight of the text.
25
- * Regular: 400
26
- * Medium: 500
27
- * Bold: 600
28
- */
29
- fontWeight?: FontWeight;
30
- /**
31
- * Optional prop to adjust the font family.
32
- * Default: Geist
33
- * Accent: MM Sans
34
- * Hero: MM Poly
35
- */
36
- fontFamily?: FontFamily;
37
- /**
38
- * Optional prop to control the font style of the text.
39
- * Options: Normal, Italic
40
- */
41
- fontStyle?: FontStyle;
42
13
  /**
43
14
  * Optional prop to apply text transformation to the content.
44
15
  * Options: Uppercase, Lowercase, Capitalize, Normal
@@ -55,7 +26,7 @@ export type TextProps = {
55
26
  */
56
27
  overflowWrap?: OverflowWrap;
57
28
  /**
58
- * Optional prop that when true, adds an ellipsis (...) when text overflows its container.
29
+ * Optional boolean that adds an ellipsis (...) when text overflows its container.
59
30
  *
60
31
  * @default false
61
32
  */
@@ -67,12 +38,6 @@ export type TextProps = {
67
38
  * @default false
68
39
  */
69
40
  asChild?: boolean;
70
- /**
71
- * Optional prop that sets the color of the text using predefined theme colors.
72
- *
73
- * @default TextColor.TextDefault
74
- */
75
- color?: TextColor;
76
41
  /**
77
42
  * Optional prop for testing purposes
78
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,EACV,8BAAoB;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"Text.types.d.cts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,8BAAoB;AAE1E,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -1,44 +1,15 @@
1
1
  /// <reference types="react" />
2
- import type { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.mjs";
3
- export type TextProps = {
2
+ import type { TextPropsShared } from "@metamask-previews/design-system-shared";
3
+ import type { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
4
+ export type TextProps = TextPropsShared & {
4
5
  /**
5
6
  * Optional prop for inline styles
6
7
  */
7
8
  style?: React.CSSProperties;
8
- /**
9
- * Optional prop to change the font size of the component. The Text component uses responsive font sizes.
10
- * Different variants map to specific HTML elements by default.
11
- *
12
- * @default TextVariant.BodyMd
13
- */
14
- variant?: TextVariant;
15
- /**
16
- * The text content or elements to be rendered within the component.
17
- */
18
- children: React.ReactNode;
19
9
  /**
20
10
  * Optional prop for additional CSS classes to be applied to the Text component.
21
11
  */
22
12
  className?: string;
23
- /**
24
- * Optional prop to control the font weight of the text.
25
- * Regular: 400
26
- * Medium: 500
27
- * Bold: 600
28
- */
29
- fontWeight?: FontWeight;
30
- /**
31
- * Optional prop to adjust the font family.
32
- * Default: Geist
33
- * Accent: MM Sans
34
- * Hero: MM Poly
35
- */
36
- fontFamily?: FontFamily;
37
- /**
38
- * Optional prop to control the font style of the text.
39
- * Options: Normal, Italic
40
- */
41
- fontStyle?: FontStyle;
42
13
  /**
43
14
  * Optional prop to apply text transformation to the content.
44
15
  * Options: Uppercase, Lowercase, Capitalize, Normal
@@ -55,7 +26,7 @@ export type TextProps = {
55
26
  */
56
27
  overflowWrap?: OverflowWrap;
57
28
  /**
58
- * Optional prop that when true, adds an ellipsis (...) when text overflows its container.
29
+ * Optional boolean that adds an ellipsis (...) when text overflows its container.
59
30
  *
60
31
  * @default false
61
32
  */
@@ -67,12 +38,6 @@ export type TextProps = {
67
38
  * @default false
68
39
  */
69
40
  asChild?: boolean;
70
- /**
71
- * Optional prop that sets the color of the text using predefined theme colors.
72
- *
73
- * @default TextColor.TextDefault
74
- */
75
- color?: TextColor;
76
41
  /**
77
42
  * Optional prop for testing purposes
78
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,EACV,8BAAoB;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"Text.types.d.mts","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gDAAgD;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,8BAAoB;AAE1E,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n FontFamily,\n FontStyle,\n FontWeight,\n OverflowWrap,\n TextAlign,\n TextVariant,\n TextTransform,\n TextColor,\n} from '../../types';\n\nexport type TextProps = {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop to change the font size of the component. The Text component uses responsive font sizes.\n * Different variants map to specific HTML elements by default.\n *\n * @default TextVariant.BodyMd\n */\n variant?: TextVariant;\n /**\n * The text content or elements to be rendered within the component.\n */\n children: React.ReactNode;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to control the font weight of the text.\n * Regular: 400\n * Medium: 500\n * Bold: 600\n */\n fontWeight?: FontWeight;\n /**\n * Optional prop to adjust the font family.\n * Default: Geist\n * Accent: MM Sans\n * Hero: MM Poly\n */\n fontFamily?: FontFamily;\n /**\n * Optional prop to control the font style of the text.\n * Options: Normal, Italic\n */\n fontStyle?: FontStyle;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional prop that when true, adds an ellipsis (...) when text overflows its container.\n *\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n *\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop that sets the color of the text using predefined theme colors.\n *\n * @default TextColor.TextDefault\n */\n color?: TextColor;\n /**\n * Optional prop for testing purposes\n */\n 'data-testid'?: string;\n};\n"]}
1
+ {"version":3,"file":"Text.types.mjs","sourceRoot":"","sources":["../../../src/components/Text/Text.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextPropsShared } from '@metamask-previews/design-system-shared';\n\nimport type { OverflowWrap, TextAlign, TextTransform } from '../../types';\n\nexport type TextProps = TextPropsShared & {\n /**\n * Optional prop for inline styles\n */\n style?: React.CSSProperties;\n /**\n * Optional prop for additional CSS classes to be applied to the Text component.\n */\n className?: string;\n /**\n * Optional prop to apply text transformation to the content.\n * Options: Uppercase, Lowercase, Capitalize, Normal\n */\n textTransform?: TextTransform;\n /**\n * Optional prop to control the text alignment within its container.\n * Options: Left, Center, Right, Justify\n */\n textAlign?: TextAlign;\n /**\n * Optional prop to determine how text should wrap when it reaches the edge of its container.\n * Options: BreakWord, Anywhere, Normal\n */\n overflowWrap?: OverflowWrap;\n /**\n * Optional boolean that adds an ellipsis (...) when text overflows its container.\n *\n * @default false\n */\n ellipsis?: boolean;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a default DOM element.\n *\n * @default false\n */\n asChild?: boolean;\n /**\n * Optional prop for testing purposes\n */\n 'data-testid'?: string;\n};\n"]}
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Text = exports.TextColor = exports.TextTransform = exports.TextVariant = exports.TextAlign = exports.OverflowWrap = exports.FontWeight = exports.FontStyle = exports.FontFamily = void 0;
3
+ exports.Text = exports.TextTransform = exports.TextAlign = exports.OverflowWrap = exports.FontWeight = exports.FontStyle = exports.FontFamily = exports.TextVariant = exports.TextColor = void 0;
4
+ var design_system_shared_1 = require("@metamask-previews/design-system-shared");
5
+ Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return design_system_shared_1.TextColor; } });
6
+ Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return design_system_shared_1.TextVariant; } });
7
+ Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return design_system_shared_1.FontFamily; } });
8
+ Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return design_system_shared_1.FontStyle; } });
9
+ Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return design_system_shared_1.FontWeight; } });
4
10
  var types_1 = require("../../types/index.cjs");
5
- Object.defineProperty(exports, "FontFamily", { enumerable: true, get: function () { return types_1.FontFamily; } });
6
- Object.defineProperty(exports, "FontStyle", { enumerable: true, get: function () { return types_1.FontStyle; } });
7
- Object.defineProperty(exports, "FontWeight", { enumerable: true, get: function () { return types_1.FontWeight; } });
8
11
  Object.defineProperty(exports, "OverflowWrap", { enumerable: true, get: function () { return types_1.OverflowWrap; } });
9
12
  Object.defineProperty(exports, "TextAlign", { enumerable: true, get: function () { return types_1.TextAlign; } });
10
- Object.defineProperty(exports, "TextVariant", { enumerable: true, get: function () { return types_1.TextVariant; } });
11
13
  Object.defineProperty(exports, "TextTransform", { enumerable: true, get: function () { return types_1.TextTransform; } });
12
- Object.defineProperty(exports, "TextColor", { enumerable: true, get: function () { return types_1.TextColor; } });
13
14
  var Text_1 = require("./Text.cjs");
14
15
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
15
16
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;AAAA,+CASqB;AARnB,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,qGAAA,YAAY,OAAA;AACZ,kGAAA,SAAS,OAAA;AACT,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,kGAAA,SAAS,OAAA;AAEX,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export {\n FontFamily,\n FontStyle,\n FontWeight,\n OverflowWrap,\n TextAlign,\n TextVariant,\n TextTransform,\n TextColor,\n} from '../../types';\nexport { Text } from './Text';\nexport type { TextProps } from './Text.types';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":";;;AAAA,gFAOiD;AAN/C,iHAAA,SAAS,OAAA;AACT,mHAAA,WAAW,OAAA;AACX,kHAAA,UAAU,OAAA;AACV,iHAAA,SAAS,OAAA;AACT,kHAAA,UAAU,OAAA;AAGZ,+CAAqE;AAA5D,qGAAA,YAAY,OAAA;AAAE,kGAAA,SAAS,OAAA;AAAE,sGAAA,aAAa,OAAA;AAC/C,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export {\n TextColor,\n TextVariant,\n FontFamily,\n FontStyle,\n FontWeight,\n type TextPropsShared,\n} from '@metamask-previews/design-system-shared';\nexport { OverflowWrap, TextAlign, TextTransform } from '../../types';\nexport { Text } from './Text';\nexport type { TextProps } from './Text.types';\n"]}
@@ -1,4 +1,5 @@
1
- export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor, } from "../../types/index.cjs";
1
+ export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight, type TextPropsShared, } from "@metamask-previews/design-system-shared";
2
+ export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.cjs";
2
3
  export { Text } from "./Text.cjs";
3
4
  export type { TextProps } from "./Text.types.cjs";
4
5
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,GACV,8BAAoB;AACrB,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,KAAK,eAAe,GACrB,gDAAgD;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,8BAAoB;AACrE,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,4 +1,5 @@
1
- export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor, } from "../../types/index.mjs";
1
+ export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight, type TextPropsShared, } from "@metamask-previews/design-system-shared";
2
+ export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
2
3
  export { Text } from "./Text.mjs";
3
4
  export type { TextProps } from "./Text.types.mjs";
4
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,GACV,8BAAoB;AACrB,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,KAAK,eAAe,GACrB,gDAAgD;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,8BAAoB;AACrE,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
@@ -1,3 +1,4 @@
1
- export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.mjs";
1
+ export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight } from "@metamask-previews/design-system-shared";
2
+ export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
2
3
  export { Text } from "./Text.mjs";
3
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,SAAS,EACV,8BAAoB;AACrB,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export {\n FontFamily,\n FontStyle,\n FontWeight,\n OverflowWrap,\n TextAlign,\n TextVariant,\n TextTransform,\n TextColor,\n} from '../../types';\nexport { Text } from './Text';\nexport type { TextProps } from './Text.types';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EAEX,gDAAgD;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,8BAAoB;AACrE,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export {\n TextColor,\n TextVariant,\n FontFamily,\n FontStyle,\n FontWeight,\n type TextPropsShared,\n} from '@metamask-previews/design-system-shared';\nexport { OverflowWrap, TextAlign, TextTransform } from '../../types';\nexport { Text } from './Text';\nexport type { TextProps } from './Text.types';\n"]}