@metamask-previews/design-system-react 0.14.0-preview.dff9dce → 0.16.0-preview.d854123

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 (120) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/components/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -1
  3. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts +6 -16
  4. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -1
  5. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts +6 -16
  6. package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -1
  7. package/dist/components/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -1
  8. package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
  9. package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
  10. package/dist/components/BannerAlert/BannerAlert.d.cts +6 -6
  11. package/dist/components/BannerAlert/BannerAlert.d.cts.map +1 -1
  12. package/dist/components/BannerAlert/BannerAlert.d.mts +6 -6
  13. package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
  14. package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
  15. package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
  16. package/dist/components/BannerBase/BannerBase.cjs +3 -4
  17. package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
  18. package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
  19. package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
  20. package/dist/components/BannerBase/BannerBase.mjs +1 -2
  21. package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
  22. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +3 -4
  23. package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
  24. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +3 -4
  25. package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
  26. package/dist/components/Icon/Icon.cjs +2 -2
  27. package/dist/components/Icon/Icon.cjs.map +1 -1
  28. package/dist/components/Icon/Icon.constants.cjs +6 -6
  29. package/dist/components/Icon/Icon.constants.cjs.map +1 -1
  30. package/dist/components/Icon/Icon.constants.d.cts +1 -1
  31. package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
  32. package/dist/components/Icon/Icon.constants.d.mts +1 -1
  33. package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
  34. package/dist/components/Icon/Icon.constants.mjs +1 -1
  35. package/dist/components/Icon/Icon.constants.mjs.map +1 -1
  36. package/dist/components/Icon/Icon.d.cts.map +1 -1
  37. package/dist/components/Icon/Icon.d.mts.map +1 -1
  38. package/dist/components/Icon/Icon.mjs +1 -1
  39. package/dist/components/Icon/Icon.mjs.map +1 -1
  40. package/dist/components/Icon/Icon.types.cjs.map +1 -1
  41. package/dist/components/Icon/Icon.types.d.cts +3 -2
  42. package/dist/components/Icon/Icon.types.d.cts.map +1 -1
  43. package/dist/components/Icon/Icon.types.d.mts +3 -2
  44. package/dist/components/Icon/Icon.types.d.mts.map +1 -1
  45. package/dist/components/Icon/Icon.types.mjs.map +1 -1
  46. package/dist/components/Icon/icons/NoPhotography.cjs +32 -0
  47. package/dist/components/Icon/icons/NoPhotography.cjs.map +1 -0
  48. package/dist/components/Icon/icons/NoPhotography.d.cts +4 -0
  49. package/dist/components/Icon/icons/NoPhotography.d.cts.map +1 -0
  50. package/dist/components/Icon/icons/NoPhotography.d.mts +4 -0
  51. package/dist/components/Icon/icons/NoPhotography.d.mts.map +1 -0
  52. package/dist/components/Icon/icons/NoPhotography.mjs +7 -0
  53. package/dist/components/Icon/icons/NoPhotography.mjs.map +1 -0
  54. package/dist/components/Icon/icons/index.cjs +78 -76
  55. package/dist/components/Icon/icons/index.cjs.map +1 -1
  56. package/dist/components/Icon/icons/index.d.cts +39 -38
  57. package/dist/components/Icon/icons/index.d.cts.map +1 -1
  58. package/dist/components/Icon/icons/index.d.mts +39 -38
  59. package/dist/components/Icon/icons/index.d.mts.map +1 -1
  60. package/dist/components/Icon/icons/index.mjs +78 -76
  61. package/dist/components/Icon/icons/index.mjs.map +1 -1
  62. package/dist/components/Icon/index.cjs +5 -5
  63. package/dist/components/Icon/index.cjs.map +1 -1
  64. package/dist/components/Icon/index.d.cts +1 -1
  65. package/dist/components/Icon/index.d.cts.map +1 -1
  66. package/dist/components/Icon/index.d.mts +1 -1
  67. package/dist/components/Icon/index.d.mts.map +1 -1
  68. package/dist/components/Icon/index.mjs +1 -1
  69. package/dist/components/Icon/index.mjs.map +1 -1
  70. package/dist/components/Input/Input.cjs +2 -2
  71. package/dist/components/Input/Input.cjs.map +1 -1
  72. package/dist/components/Input/Input.d.cts +1 -1
  73. package/dist/components/Input/Input.d.cts.map +1 -1
  74. package/dist/components/Input/Input.d.mts +1 -1
  75. package/dist/components/Input/Input.d.mts.map +1 -1
  76. package/dist/components/Input/Input.mjs +1 -1
  77. package/dist/components/Input/Input.mjs.map +1 -1
  78. package/dist/components/Input/Input.types.cjs.map +1 -1
  79. package/dist/components/Input/Input.types.d.cts +1 -1
  80. package/dist/components/Input/Input.types.d.cts.map +1 -1
  81. package/dist/components/Input/Input.types.d.mts +1 -1
  82. package/dist/components/Input/Input.types.d.mts.map +1 -1
  83. package/dist/components/Input/Input.types.mjs.map +1 -1
  84. package/dist/components/Text/Text.cjs +3 -5
  85. package/dist/components/Text/Text.cjs.map +1 -1
  86. package/dist/components/Text/Text.constants.cjs +44 -58
  87. package/dist/components/Text/Text.constants.cjs.map +1 -1
  88. package/dist/components/Text/Text.constants.d.cts +1 -4
  89. package/dist/components/Text/Text.constants.d.cts.map +1 -1
  90. package/dist/components/Text/Text.constants.d.mts +1 -4
  91. package/dist/components/Text/Text.constants.d.mts.map +1 -1
  92. package/dist/components/Text/Text.constants.mjs +1 -15
  93. package/dist/components/Text/Text.constants.mjs.map +1 -1
  94. package/dist/components/Text/Text.d.cts.map +1 -1
  95. package/dist/components/Text/Text.d.mts.map +1 -1
  96. package/dist/components/Text/Text.mjs +3 -5
  97. package/dist/components/Text/Text.mjs.map +1 -1
  98. package/dist/components/Text/Text.types.cjs.map +1 -1
  99. package/dist/components/Text/Text.types.d.cts +20 -4
  100. package/dist/components/Text/Text.types.d.cts.map +1 -1
  101. package/dist/components/Text/Text.types.d.mts +20 -4
  102. package/dist/components/Text/Text.types.d.mts.map +1 -1
  103. package/dist/components/Text/Text.types.mjs.map +1 -1
  104. package/dist/components/Text/index.cjs +6 -7
  105. package/dist/components/Text/index.cjs.map +1 -1
  106. package/dist/components/Text/index.d.cts +1 -2
  107. package/dist/components/Text/index.d.cts.map +1 -1
  108. package/dist/components/Text/index.d.mts +1 -2
  109. package/dist/components/Text/index.d.mts.map +1 -1
  110. package/dist/components/Text/index.mjs +1 -2
  111. package/dist/components/Text/index.mjs.map +1 -1
  112. package/dist/types/index.cjs +143 -360
  113. package/dist/types/index.cjs.map +1 -1
  114. package/dist/types/index.d.cts +107 -340
  115. package/dist/types/index.d.cts.map +1 -1
  116. package/dist/types/index.d.mts +107 -340
  117. package/dist/types/index.d.mts.map +1 -1
  118. package/dist/types/index.mjs +139 -359
  119. package/dist/types/index.mjs.map +1 -1
  120. package/package.json +4 -7
@@ -1,11 +1,21 @@
1
1
  /// <reference types="react" />
2
- import type { FontFamily, FontStyle, FontWeight, TextPropsShared } from "@metamask-previews/design-system-shared";
3
- import type { OverflowWrap, TextAlign, TextTransform } from "../../types/index.cjs";
4
- export type TextProps = TextPropsShared & {
2
+ import type { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.cjs";
3
+ export type TextProps = {
5
4
  /**
6
5
  * Optional prop for inline styles
7
6
  */
8
7
  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;
9
19
  /**
10
20
  * Optional prop for additional CSS classes to be applied to the Text component.
11
21
  */
@@ -45,7 +55,7 @@ export type TextProps = TextPropsShared & {
45
55
  */
46
56
  overflowWrap?: OverflowWrap;
47
57
  /**
48
- * Optional boolean that adds an ellipsis (...) when text overflows its container.
58
+ * Optional prop that when true, adds an ellipsis (...) when text overflows its container.
49
59
  *
50
60
  * @default false
51
61
  */
@@ -57,6 +67,12 @@ export type TextProps = TextPropsShared & {
57
67
  * @default false
58
68
  */
59
69
  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;
60
76
  /**
61
77
  * Optional prop for testing purposes
62
78
  */
@@ -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,eAAe,EAChB,gDAAgD;AAEjD,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;;;;;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;;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,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,11 +1,21 @@
1
1
  /// <reference types="react" />
2
- import type { FontFamily, FontStyle, FontWeight, TextPropsShared } from "@metamask-previews/design-system-shared";
3
- import type { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
4
- export type TextProps = TextPropsShared & {
2
+ import type { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.mjs";
3
+ export type TextProps = {
5
4
  /**
6
5
  * Optional prop for inline styles
7
6
  */
8
7
  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;
9
19
  /**
10
20
  * Optional prop for additional CSS classes to be applied to the Text component.
11
21
  */
@@ -45,7 +55,7 @@ export type TextProps = TextPropsShared & {
45
55
  */
46
56
  overflowWrap?: OverflowWrap;
47
57
  /**
48
- * Optional boolean that adds an ellipsis (...) when text overflows its container.
58
+ * Optional prop that when true, adds an ellipsis (...) when text overflows its container.
49
59
  *
50
60
  * @default false
51
61
  */
@@ -57,6 +67,12 @@ export type TextProps = TextPropsShared & {
57
67
  * @default false
58
68
  */
59
69
  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;
60
76
  /**
61
77
  * Optional prop for testing purposes
62
78
  */
@@ -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,eAAe,EAChB,gDAAgD;AAEjD,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;;;;;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;;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,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 +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 TextPropsShared,\n} 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 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 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
+ {"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,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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; } });
3
+ exports.Text = exports.TextColor = exports.TextTransform = exports.TextVariant = exports.TextAlign = exports.OverflowWrap = exports.FontWeight = exports.FontStyle = exports.FontFamily = void 0;
10
4
  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; } });
11
8
  Object.defineProperty(exports, "OverflowWrap", { enumerable: true, get: function () { return types_1.OverflowWrap; } });
12
9
  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; } });
13
11
  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; } });
14
13
  var Text_1 = require("./Text.cjs");
15
14
  Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
16
15
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
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
+ {"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,5 +1,4 @@
1
- export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight, type TextPropsShared, } from "@metamask-previews/design-system-shared";
2
- export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.cjs";
1
+ export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor, } from "../../types/index.cjs";
3
2
  export { Text } from "./Text.cjs";
4
3
  export type { TextProps } from "./Text.types.cjs";
5
4
  //# 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,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
+ {"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,5 +1,4 @@
1
- export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight, type TextPropsShared, } from "@metamask-previews/design-system-shared";
2
- export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
1
+ export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor, } from "../../types/index.mjs";
3
2
  export { Text } from "./Text.mjs";
4
3
  export type { TextProps } from "./Text.types.mjs";
5
4
  //# 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,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
+ {"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,4 +1,3 @@
1
- export { TextColor, TextVariant, FontFamily, FontStyle, FontWeight } from "@metamask-previews/design-system-shared";
2
- export { OverflowWrap, TextAlign, TextTransform } from "../../types/index.mjs";
1
+ export { FontFamily, FontStyle, FontWeight, OverflowWrap, TextAlign, TextVariant, TextTransform, TextColor } from "../../types/index.mjs";
3
2
  export { Text } from "./Text.mjs";
4
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
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"]}
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"]}