@times-design-system/components-wordpress 0.4.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/BLOCK_CREATION_CHECKLIST.md +160 -0
  2. package/BUILD.md +411 -0
  3. package/CHANGELOG.md +32 -0
  4. package/LICENSE +29 -0
  5. package/README.md +972 -5
  6. package/TRANSFORMATION_GUIDE.md +635 -0
  7. package/block.json +10 -0
  8. package/dist/block.json +10 -0
  9. package/dist/blocks/ad-container/block.json +28 -0
  10. package/dist/blocks/ad-container/edit.js +42 -0
  11. package/dist/blocks/ad-container/index.js +10 -0
  12. package/dist/blocks/ad-container/save.js +16 -0
  13. package/dist/blocks/ad-container/style-editor.css +4 -0
  14. package/dist/blocks/ad-container/style.css +27 -0
  15. package/dist/blocks/button/block.json +89 -0
  16. package/dist/blocks/button/edit.js +187 -0
  17. package/dist/blocks/button/index.js +11 -0
  18. package/dist/blocks/button/save.js +52 -0
  19. package/dist/blocks/button/style-editor.css +15 -0
  20. package/dist/blocks/button/style.css +37 -0
  21. package/dist/blocks/chip/block.json +57 -0
  22. package/dist/blocks/chip/edit.js +113 -0
  23. package/dist/blocks/chip/index.js +10 -0
  24. package/dist/blocks/chip/save.js +36 -0
  25. package/dist/blocks/chip/style-editor.css +5 -0
  26. package/dist/blocks/chip/style.css +48 -0
  27. package/dist/blocks/divider/block.json +31 -0
  28. package/dist/blocks/divider/edit.js +42 -0
  29. package/dist/blocks/divider/index.js +10 -0
  30. package/dist/blocks/divider/save.js +18 -0
  31. package/dist/blocks/divider/style-editor.css +4 -0
  32. package/dist/blocks/divider/style.css +25 -0
  33. package/dist/blocks/flag/block.json +48 -0
  34. package/dist/blocks/flag/edit.js +82 -0
  35. package/dist/blocks/flag/index.js +10 -0
  36. package/dist/blocks/flag/save.js +25 -0
  37. package/dist/blocks/flag/style-editor.css +5 -0
  38. package/dist/blocks/flag/style.css +45 -0
  39. package/dist/blocks/icon-button/block.json +43 -0
  40. package/dist/blocks/icon-button/edit.js +82 -0
  41. package/dist/blocks/icon-button/index.js +10 -0
  42. package/dist/blocks/icon-button/save.js +29 -0
  43. package/dist/blocks/icon-button/style-editor.css +5 -0
  44. package/dist/blocks/icon-button/style.css +32 -0
  45. package/dist/blocks/input/block.json +47 -0
  46. package/dist/blocks/input/edit.js +78 -0
  47. package/dist/blocks/input/index.js +10 -0
  48. package/dist/blocks/input/save.js +27 -0
  49. package/dist/blocks/input/style-editor.css +8 -0
  50. package/dist/blocks/input/style.css +30 -0
  51. package/dist/blocks/link/block.json +71 -0
  52. package/dist/blocks/link/edit.js +151 -0
  53. package/dist/blocks/link/index.js +10 -0
  54. package/dist/blocks/link/save.js +46 -0
  55. package/dist/blocks/link/style-editor.css +5 -0
  56. package/dist/blocks/link/style.css +66 -0
  57. package/dist/blocks/text/block.json +32 -0
  58. package/dist/blocks/text/edit.js +56 -0
  59. package/dist/blocks/text/index.js +10 -0
  60. package/dist/blocks/text/save.js +18 -0
  61. package/dist/blocks/text/style-editor.css +4 -0
  62. package/dist/blocks/text/style.css +20 -0
  63. package/dist/blocks/toast/block.json +39 -0
  64. package/dist/blocks/toast/edit.js +85 -0
  65. package/dist/blocks/toast/index.js +10 -0
  66. package/dist/blocks/toast/save.js +29 -0
  67. package/dist/blocks/toast/style-editor.css +4 -0
  68. package/dist/blocks/toast/style.css +51 -0
  69. package/dist/index.cjs +2232 -0
  70. package/dist/index.cjs.map +1 -0
  71. package/dist/index.css +2 -0
  72. package/dist/index.css.map +1 -0
  73. package/dist/index.js +2196 -255
  74. package/dist/index.js.map +1 -1
  75. package/dist/plugin.php +79 -0
  76. package/dist/utils/classBuilder.js +53 -0
  77. package/package.json +39 -7
  78. package/plugin.php +79 -0
  79. package/rollup.config.js +39 -22
  80. package/scripts/build-plugin.cjs +121 -0
  81. package/scripts/create-block.sh +141 -0
  82. package/src/blocks/ad-container/block.json +28 -0
  83. package/src/blocks/ad-container/edit.js +42 -0
  84. package/src/blocks/ad-container/index.js +10 -0
  85. package/src/blocks/ad-container/save.js +16 -0
  86. package/src/blocks/ad-container/style-editor.css +4 -0
  87. package/src/blocks/ad-container/style.css +27 -0
  88. package/src/blocks/button/block.json +89 -0
  89. package/src/blocks/button/edit.js +187 -0
  90. package/src/blocks/button/index.js +11 -0
  91. package/src/blocks/button/save.js +52 -0
  92. package/src/blocks/button/style-editor.css +15 -0
  93. package/src/blocks/button/style.css +37 -0
  94. package/src/blocks/chip/block.json +57 -0
  95. package/src/blocks/chip/edit.js +113 -0
  96. package/src/blocks/chip/index.js +10 -0
  97. package/src/blocks/chip/save.js +36 -0
  98. package/src/blocks/chip/style-editor.css +5 -0
  99. package/src/blocks/chip/style.css +48 -0
  100. package/src/blocks/divider/block.json +31 -0
  101. package/src/blocks/divider/edit.js +42 -0
  102. package/src/blocks/divider/index.js +10 -0
  103. package/src/blocks/divider/save.js +18 -0
  104. package/src/blocks/divider/style-editor.css +4 -0
  105. package/src/blocks/divider/style.css +25 -0
  106. package/src/blocks/flag/block.json +48 -0
  107. package/src/blocks/flag/edit.js +82 -0
  108. package/src/blocks/flag/index.js +10 -0
  109. package/src/blocks/flag/save.js +25 -0
  110. package/src/blocks/flag/style-editor.css +5 -0
  111. package/src/blocks/flag/style.css +45 -0
  112. package/src/blocks/icon-button/block.json +43 -0
  113. package/src/blocks/icon-button/edit.js +82 -0
  114. package/src/blocks/icon-button/index.js +10 -0
  115. package/src/blocks/icon-button/save.js +29 -0
  116. package/src/blocks/icon-button/style-editor.css +5 -0
  117. package/src/blocks/icon-button/style.css +32 -0
  118. package/src/blocks/input/block.json +47 -0
  119. package/src/blocks/input/edit.js +78 -0
  120. package/src/blocks/input/index.js +10 -0
  121. package/src/blocks/input/save.js +27 -0
  122. package/src/blocks/input/style-editor.css +8 -0
  123. package/src/blocks/input/style.css +30 -0
  124. package/src/blocks/link/block.json +71 -0
  125. package/src/blocks/link/edit.js +151 -0
  126. package/src/blocks/link/index.js +10 -0
  127. package/src/blocks/link/save.js +46 -0
  128. package/src/blocks/link/style-editor.css +5 -0
  129. package/src/blocks/link/style.css +66 -0
  130. package/src/blocks/text/block.json +32 -0
  131. package/src/blocks/text/edit.js +56 -0
  132. package/src/blocks/text/index.js +10 -0
  133. package/src/blocks/text/save.js +18 -0
  134. package/src/blocks/text/style-editor.css +4 -0
  135. package/src/blocks/text/style.css +20 -0
  136. package/src/blocks/toast/block.json +39 -0
  137. package/src/blocks/toast/edit.js +85 -0
  138. package/src/blocks/toast/index.js +10 -0
  139. package/src/blocks/toast/save.js +29 -0
  140. package/src/blocks/toast/style-editor.css +4 -0
  141. package/src/blocks/toast/style.css +51 -0
  142. package/src/index.js +15 -12
  143. package/src/utils/classBuilder.js +53 -0
  144. package/tsconfig.json +4 -4
  145. package/__tests__/wordpress.test.js +0 -0
  146. package/dist/AdContainer/AdContainer.d.ts +0 -9
  147. package/dist/Article/ArticleMetaContainer/ArticleMetaContainer.d.ts +0 -8
  148. package/dist/Article/UpNextArticles/UpNextArticles.d.ts +0 -13
  149. package/dist/Button/Button.d.ts +0 -15
  150. package/dist/CommentsDisabled/CommentsDisabled.d.ts +0 -10
  151. package/dist/CommentsDisabled/CommentsDisabled.stories.d.ts +0 -44
  152. package/dist/CommentsDisabled/index.d.ts +0 -2
  153. package/dist/Divider/Divider.d.ts +0 -15
  154. package/dist/Input/Input.d.ts +0 -25
  155. package/dist/Link/Link.d.ts +0 -18
  156. package/dist/Text/Text.d.ts +0 -14
  157. package/dist/index.cjs.js +0 -299
  158. package/dist/index.cjs.js.map +0 -1
  159. package/dist/styles.css +0 -151
  160. package/dist/typographyStyles.css +0 -30
  161. package/dist/utils/cn.d.ts +0 -1
  162. package/dist/utils/hooks.d.ts +0 -8
  163. package/src/AdContainer/AdContainer.tsx +0 -31
  164. package/src/AdContainer/styles.css +0 -58
  165. package/src/Article/ArticleMetaContainer/ArticleMetaContainer.tsx +0 -14
  166. package/src/Article/ArticleMetaContainer/styles.css +0 -151
  167. package/src/Article/UpNextArticles/UpNextArticles.tsx +0 -69
  168. package/src/Article/UpNextArticles/styles.css +0 -151
  169. package/src/Button/Button.tsx +0 -36
  170. package/src/Button/styles.css +0 -30
  171. package/src/CommentsDisabled/CommentsDisabled.stories.tsx +0 -178
  172. package/src/CommentsDisabled/CommentsDisabled.tsx +0 -63
  173. package/src/CommentsDisabled/IMPLEMENTATION_SUMMARY.md +0 -305
  174. package/src/CommentsDisabled/README.md +0 -284
  175. package/src/CommentsDisabled/TOKEN_MAPPING.md +0 -269
  176. package/src/CommentsDisabled/index.ts +0 -2
  177. package/src/CommentsDisabled/styles.css +0 -82
  178. package/src/Divider/Divider.tsx +0 -41
  179. package/src/Divider/styles.css +0 -80
  180. package/src/Input/Input.tsx +0 -62
  181. package/src/Input/styles.css +0 -69
  182. package/src/Link/Link.tsx +0 -49
  183. package/src/Link/styles.css +0 -111
  184. package/src/Text/Text.tsx +0 -38
  185. package/src/Text/styles.css +0 -30
  186. package/src/Text/typographyStyles.css +0 -30
  187. package/src/utils/cn.js +0 -3
  188. package/src/utils/cn.tsx +0 -3
  189. package/src/utils/hooks.ts +0 -34
@@ -0,0 +1,51 @@
1
+ /* Toast Block Styles */
2
+ .tds-toast {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ gap: var(--spacing-m);
7
+ padding: var(--spacing-m);
8
+ border-radius: var(--border-radius-s);
9
+ background-color: var(--color-fill-secondary);
10
+ color: var(--color-text-primary);
11
+ font: var(--typography-body-standard);
12
+ margin-bottom: var(--spacing-m);
13
+ }
14
+
15
+ .tds-toast--intent-success {
16
+ background-color: var(--color-fill-positive);
17
+ color: var(--color-text-on-positive);
18
+ }
19
+
20
+ .tds-toast--intent-warning {
21
+ background-color: var(--color-fill-warning);
22
+ color: var(--color-text-on-warning);
23
+ }
24
+
25
+ .tds-toast--intent-error {
26
+ background-color: var(--color-fill-negative);
27
+ color: var(--color-text-on-negative);
28
+ }
29
+
30
+ .tds-toast__content {
31
+ flex: 1;
32
+ }
33
+
34
+ .tds-toast__label {
35
+ margin: 0;
36
+ }
37
+
38
+ .tds-toast__link {
39
+ padding: var(--spacing-xs) var(--spacing-s);
40
+ border: none;
41
+ border-radius: var(--border-radius-xs);
42
+ background-color: rgba(255, 255, 255, 0.1);
43
+ color: inherit;
44
+ cursor: pointer;
45
+ transition: all 0.2s ease-in-out;
46
+ white-space: nowrap;
47
+ }
48
+
49
+ .tds-toast__link:hover {
50
+ background-color: rgba(255, 255, 255, 0.2);
51
+ }
package/src/index.js CHANGED
@@ -1,13 +1,16 @@
1
- export * from './Button/Button.js';
2
- export * from './AdContainer/AdContainer.js';
3
- export * from './CommentsDisabled/CommentsDisabled.js';
4
- export * from './Text/Text.js';
5
- export * from './Input/Input.tsx';
6
- export * from './Divider/Divider.tsx';
7
- export * from './Link/Link.tsx';
1
+ /**
2
+ * WordPress Blocks Entry Point
3
+ * Registers all Times Design System blocks with Gutenberg
4
+ */
8
5
 
9
- // ARTICLE COMPONENTS
10
- export * from './Article/UpNextArticles/UpNextArticles.js';
11
-
12
- // UTILS
13
- export * from './utils/hooks.js';
6
+ // Register blocks
7
+ import './blocks/button/index.js';
8
+ import './blocks/divider/index.js';
9
+ import './blocks/text/index.js';
10
+ import './blocks/input/index.js';
11
+ import './blocks/icon-button/index.js';
12
+ import './blocks/chip/index.js';
13
+ import './blocks/flag/index.js';
14
+ import './blocks/toast/index.js';
15
+ import './blocks/link/index.js';
16
+ import './blocks/ad-container/index.js';
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Build className string for Button component based on attributes.
3
+ * Maps component properties to TDS (Times Design System) SCSS classes.
4
+ *
5
+ * @param {Object} options - Button configuration options
6
+ * @param {string} options.intent - Visual style variant (primary, secondary, negative)
7
+ * @param {string} options.size - Button size (small, medium, large)
8
+ * @param {string} options.behaviour - Width behaviour (hug, full)
9
+ * @param {string} options.state - Interaction state (base, hover, pressed, loading, disabled, focus)
10
+ * @param {boolean} options.disabled - Whether button is disabled
11
+ * @returns {string} Complete className string
12
+ */
13
+ export function buildButtonClass({
14
+ intent = 'primary',
15
+ size = 'large',
16
+ behaviour = 'hug',
17
+ state = 'base',
18
+ disabled = false
19
+ }) {
20
+ const classes = [
21
+ 'tds-button',
22
+ `tds-button--intent-${intent}`,
23
+ `tds-button--size-${size}`,
24
+ `tds-button--behaviour-${behaviour}`,
25
+ `tds-button--state-${state}`
26
+ ];
27
+
28
+ if (disabled) {
29
+ classes.push('tds-button--disabled');
30
+ }
31
+
32
+ return classes.join(' ');
33
+ }
34
+
35
+ /**
36
+ * Generic class builder utility for consistent naming conventions.
37
+ * Creates BEM-style className strings.
38
+ *
39
+ * @param {string} blockName - Base block name (e.g., 'tds-button')
40
+ * @param {Object} modifiers - Object with modifier names as keys
41
+ * @returns {string} Complete className string
42
+ */
43
+ export function buildClassName(blockName, modifiers = {}) {
44
+ const classes = [blockName];
45
+
46
+ Object.entries(modifiers).forEach(([key, value]) => {
47
+ if (value && value !== '') {
48
+ classes.push(`${blockName}--${key}-${value}`);
49
+ }
50
+ });
51
+
52
+ return classes.join(' ');
53
+ }
package/tsconfig.json CHANGED
@@ -25,9 +25,9 @@
25
25
  // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
26
 
27
27
  /* Modules */
28
- "module": "es2015" /* Specify what module code is generated. */,
28
+ "module": "node16" /* Specify what module code is generated. */,
29
29
  // "rootDir": "./", /* Specify the root folder within your source files. */
30
- "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
30
+ "moduleResolution": "node16" /* Specify how TypeScript looks up a file from a given module specifier. */,
31
31
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
32
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
33
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -44,7 +44,7 @@
44
44
  // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
45
 
46
46
  /* JavaScript Support */
47
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
47
+ "allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
48
48
  // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
49
  // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
50
 
@@ -57,7 +57,7 @@
57
57
  // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
58
  // "outDir": "./", /* Specify an output folder for all emitted files. */
59
59
  // "removeComments": true, /* Disable emitting comments. */
60
- // "noEmit": true, /* Disable emitting files from a compilation. */
60
+ "noEmit": true /* Disable emitting files from a compilation. */,
61
61
  // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
62
  // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
63
  // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
File without changes
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface AdContainerProps {
4
- type?: 'header' | 'inline';
5
- slotID?: string;
6
- }
7
- /** Primary AdContainer UI component for user interaction */
8
- export declare const AdContainer: React.FC<AdContainerProps>;
9
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface ArticleMetaProps {
4
- children?: React.ReactNode;
5
- }
6
- /** Primary ArticleMeta UI component for user interaction */
7
- export declare const ArticleMetaContainer: React.FC<ArticleMetaProps>;
8
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface UpNextArticlesProps {
4
- upNextArticles: {
5
- url: string;
6
- headline: string;
7
- duration?: string;
8
- thumbnail: string;
9
- }[];
10
- }
11
- /** Primary UpNextArticles UI component for user interaction */
12
- export declare const UpNextArticles: React.FC<UpNextArticlesProps>;
13
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface ButtonProps {
4
- /** Is this the principal call to action on the page? */
5
- primary?: boolean;
6
- /** How large should the button be? */
7
- size?: 'small' | 'medium' | 'large';
8
- /** Button contents */
9
- label: string;
10
- /** Optional click handler */
11
- onClick?: () => void;
12
- }
13
- /** Primary UI component for user interaction */
14
- export declare const Button: React.FC<ButtonProps>;
15
- export {};
@@ -1,10 +0,0 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import './styles.css';
3
- export interface CommentsDisabledProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
4
- heading?: string;
5
- contentText?: React.ReactNode;
6
- guidelinesUrl?: string;
7
- guidelinesLinkText?: string;
8
- className?: string;
9
- }
10
- export declare const CommentsDisabled: React.ForwardRefExoticComponent<CommentsDisabledProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,44 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { CommentsDisabled } from './CommentsDisabled';
3
- /**
4
- * CommentsDisabled Component Storybook Stories
5
- * Showcases the component in various states and configurations
6
- */
7
- declare const meta: Meta<typeof CommentsDisabled>;
8
- export default meta;
9
- type Story = StoryObj<typeof meta>;
10
- /**
11
- * Default
12
- * The default state of the CommentsDisabled component with all default text
13
- */
14
- export declare const Default: Story;
15
- /**
16
- * With Custom Heading
17
- * Demonstrates customizing the heading text
18
- */
19
- export declare const CustomHeading: Story;
20
- /**
21
- * With Custom Content
22
- * Demonstrates customizing the content text
23
- */
24
- export declare const CustomContent: Story;
25
- /**
26
- * With External Link
27
- * Demonstrates opening the guidelines in a new window
28
- */
29
- export declare const ExternalLink: Story;
30
- /**
31
- * Minimal
32
- * Minimal version with shorter content
33
- */
34
- export declare const Minimal: Story;
35
- /**
36
- * All Variations
37
- * Showcases different variations side-by-side
38
- */
39
- export declare const AllVariations: Story;
40
- /**
41
- * Interactive
42
- * Interactive story showing all customizable props
43
- */
44
- export declare const Interactive: Story;
@@ -1,2 +0,0 @@
1
- export { CommentsDisabled } from './CommentsDisabled';
2
- export type { CommentsDisabledProps } from './CommentsDisabled';
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface DividerProps {
4
- /** Whether the divider should span full width of its container */
5
- fullWidth?: boolean;
6
- /** Orientation of the divider */
7
- orientation?: 'horizontal' | 'vertical';
8
- /** Custom spacing/margin */
9
- spacing?: 'small' | 'medium' | 'large';
10
- /** CSS class for additional styling */
11
- className?: string;
12
- }
13
- /** Divider component that uses design tokens for styling */
14
- export declare const Divider: React.FC<DividerProps>;
15
- export {};
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface InputProps {
4
- /** Label text for the input */
5
- label?: string;
6
- /** Input placeholder text */
7
- placeholder?: string;
8
- /** Input type */
9
- type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
10
- /** Input value */
11
- value?: string;
12
- /** Change handler */
13
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
14
- /** Disabled state */
15
- disabled?: boolean;
16
- /** Required state */
17
- required?: boolean;
18
- /** Input name attribute */
19
- name?: string;
20
- /** Input id attribute */
21
- id?: string;
22
- }
23
- /** Input component with label using design tokens */
24
- export declare const Input: React.FC<InputProps>;
25
- export {};
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- interface LinkProps {
4
- href: string;
5
- variant?: 'primary' | 'secondary' | 'danger';
6
- onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
7
- target?: '_self' | '_blank' | '_parent' | '_top';
8
- rel?: string;
9
- className?: string;
10
- classes?: string;
11
- styles?: {
12
- [key: string]: string;
13
- };
14
- children?: React.ReactNode;
15
- }
16
- /** Link UI component for navigation and interactive linking */
17
- export declare const Link: React.FC<LinkProps>;
18
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './styles.css';
3
- import './typographyStyles.css';
4
- interface TextProps {
5
- as?: 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
6
- typographyStyle?: string;
7
- classes?: string;
8
- styles?: {
9
- [key: string]: string;
10
- };
11
- children?: React.ReactNode;
12
- }
13
- export declare const Text: React.FC<TextProps>;
14
- export {};