@times-design-system/components-wordpress 0.4.0 → 0.7.2-alpha.2
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.
- package/BLOCK_CREATION_CHECKLIST.md +160 -0
- package/BUILD.md +411 -0
- package/CHANGELOG.md +22 -0
- package/LICENSE +29 -0
- package/README.md +972 -5
- package/TRANSFORMATION_GUIDE.md +635 -0
- package/block.json +10 -0
- package/dist/block.json +10 -0
- package/dist/blocks/ad-container/block.json +28 -0
- package/dist/blocks/ad-container/edit.js +42 -0
- package/dist/blocks/ad-container/index.js +10 -0
- package/dist/blocks/ad-container/save.js +16 -0
- package/dist/blocks/ad-container/style-editor.css +4 -0
- package/dist/blocks/ad-container/style.css +27 -0
- package/dist/blocks/button/block.json +89 -0
- package/dist/blocks/button/edit.js +187 -0
- package/dist/blocks/button/index.js +11 -0
- package/dist/blocks/button/save.js +52 -0
- package/dist/blocks/button/style-editor.css +15 -0
- package/dist/blocks/button/style.css +37 -0
- package/dist/blocks/chip/block.json +57 -0
- package/dist/blocks/chip/edit.js +113 -0
- package/dist/blocks/chip/index.js +10 -0
- package/dist/blocks/chip/save.js +36 -0
- package/dist/blocks/chip/style-editor.css +5 -0
- package/dist/blocks/chip/style.css +48 -0
- package/dist/blocks/divider/block.json +31 -0
- package/dist/blocks/divider/edit.js +42 -0
- package/dist/blocks/divider/index.js +10 -0
- package/dist/blocks/divider/save.js +18 -0
- package/dist/blocks/divider/style-editor.css +4 -0
- package/dist/blocks/divider/style.css +25 -0
- package/dist/blocks/flag/block.json +48 -0
- package/dist/blocks/flag/edit.js +82 -0
- package/dist/blocks/flag/index.js +10 -0
- package/dist/blocks/flag/save.js +25 -0
- package/dist/blocks/flag/style-editor.css +5 -0
- package/dist/blocks/flag/style.css +45 -0
- package/dist/blocks/icon-button/block.json +43 -0
- package/dist/blocks/icon-button/edit.js +82 -0
- package/dist/blocks/icon-button/index.js +10 -0
- package/dist/blocks/icon-button/save.js +29 -0
- package/dist/blocks/icon-button/style-editor.css +5 -0
- package/dist/blocks/icon-button/style.css +32 -0
- package/dist/blocks/input/block.json +47 -0
- package/dist/blocks/input/edit.js +78 -0
- package/dist/blocks/input/index.js +10 -0
- package/dist/blocks/input/save.js +27 -0
- package/dist/blocks/input/style-editor.css +8 -0
- package/dist/blocks/input/style.css +30 -0
- package/dist/blocks/link/block.json +71 -0
- package/dist/blocks/link/edit.js +151 -0
- package/dist/blocks/link/index.js +10 -0
- package/dist/blocks/link/save.js +46 -0
- package/dist/blocks/link/style-editor.css +5 -0
- package/dist/blocks/link/style.css +66 -0
- package/dist/blocks/text/block.json +32 -0
- package/dist/blocks/text/edit.js +56 -0
- package/dist/blocks/text/index.js +10 -0
- package/dist/blocks/text/save.js +18 -0
- package/dist/blocks/text/style-editor.css +4 -0
- package/dist/blocks/text/style.css +20 -0
- package/dist/blocks/toast/block.json +39 -0
- package/dist/blocks/toast/edit.js +85 -0
- package/dist/blocks/toast/index.js +10 -0
- package/dist/blocks/toast/save.js +29 -0
- package/dist/blocks/toast/style-editor.css +4 -0
- package/dist/blocks/toast/style.css +51 -0
- package/dist/index.cjs +2232 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +2196 -255
- package/dist/index.js.map +1 -1
- package/dist/plugin.php +79 -0
- package/dist/utils/classBuilder.js +53 -0
- package/package.json +39 -7
- package/plugin.php +79 -0
- package/rollup.config.js +39 -22
- package/scripts/build-plugin.cjs +121 -0
- package/scripts/create-block.sh +141 -0
- package/src/blocks/ad-container/block.json +28 -0
- package/src/blocks/ad-container/edit.js +42 -0
- package/src/blocks/ad-container/index.js +10 -0
- package/src/blocks/ad-container/save.js +16 -0
- package/src/blocks/ad-container/style-editor.css +4 -0
- package/src/blocks/ad-container/style.css +27 -0
- package/src/blocks/button/block.json +89 -0
- package/src/blocks/button/edit.js +187 -0
- package/src/blocks/button/index.js +11 -0
- package/src/blocks/button/save.js +52 -0
- package/src/blocks/button/style-editor.css +15 -0
- package/src/blocks/button/style.css +37 -0
- package/src/blocks/chip/block.json +57 -0
- package/src/blocks/chip/edit.js +113 -0
- package/src/blocks/chip/index.js +10 -0
- package/src/blocks/chip/save.js +36 -0
- package/src/blocks/chip/style-editor.css +5 -0
- package/src/blocks/chip/style.css +48 -0
- package/src/blocks/divider/block.json +31 -0
- package/src/blocks/divider/edit.js +42 -0
- package/src/blocks/divider/index.js +10 -0
- package/src/blocks/divider/save.js +18 -0
- package/src/blocks/divider/style-editor.css +4 -0
- package/src/blocks/divider/style.css +25 -0
- package/src/blocks/flag/block.json +48 -0
- package/src/blocks/flag/edit.js +82 -0
- package/src/blocks/flag/index.js +10 -0
- package/src/blocks/flag/save.js +25 -0
- package/src/blocks/flag/style-editor.css +5 -0
- package/src/blocks/flag/style.css +45 -0
- package/src/blocks/icon-button/block.json +43 -0
- package/src/blocks/icon-button/edit.js +82 -0
- package/src/blocks/icon-button/index.js +10 -0
- package/src/blocks/icon-button/save.js +29 -0
- package/src/blocks/icon-button/style-editor.css +5 -0
- package/src/blocks/icon-button/style.css +32 -0
- package/src/blocks/input/block.json +47 -0
- package/src/blocks/input/edit.js +78 -0
- package/src/blocks/input/index.js +10 -0
- package/src/blocks/input/save.js +27 -0
- package/src/blocks/input/style-editor.css +8 -0
- package/src/blocks/input/style.css +30 -0
- package/src/blocks/link/block.json +71 -0
- package/src/blocks/link/edit.js +151 -0
- package/src/blocks/link/index.js +10 -0
- package/src/blocks/link/save.js +46 -0
- package/src/blocks/link/style-editor.css +5 -0
- package/src/blocks/link/style.css +66 -0
- package/src/blocks/text/block.json +32 -0
- package/src/blocks/text/edit.js +56 -0
- package/src/blocks/text/index.js +10 -0
- package/src/blocks/text/save.js +18 -0
- package/src/blocks/text/style-editor.css +4 -0
- package/src/blocks/text/style.css +20 -0
- package/src/blocks/toast/block.json +39 -0
- package/src/blocks/toast/edit.js +85 -0
- package/src/blocks/toast/index.js +10 -0
- package/src/blocks/toast/save.js +29 -0
- package/src/blocks/toast/style-editor.css +4 -0
- package/src/blocks/toast/style.css +51 -0
- package/src/index.js +15 -12
- package/src/utils/classBuilder.js +53 -0
- package/tsconfig.json +4 -4
- package/__tests__/wordpress.test.js +0 -0
- package/dist/AdContainer/AdContainer.d.ts +0 -9
- package/dist/Article/ArticleMetaContainer/ArticleMetaContainer.d.ts +0 -8
- package/dist/Article/UpNextArticles/UpNextArticles.d.ts +0 -13
- package/dist/Button/Button.d.ts +0 -15
- package/dist/CommentsDisabled/CommentsDisabled.d.ts +0 -10
- package/dist/CommentsDisabled/CommentsDisabled.stories.d.ts +0 -44
- package/dist/CommentsDisabled/index.d.ts +0 -2
- package/dist/Divider/Divider.d.ts +0 -15
- package/dist/Input/Input.d.ts +0 -25
- package/dist/Link/Link.d.ts +0 -18
- package/dist/Text/Text.d.ts +0 -14
- package/dist/index.cjs.js +0 -299
- package/dist/index.cjs.js.map +0 -1
- package/dist/styles.css +0 -151
- package/dist/typographyStyles.css +0 -30
- package/dist/utils/cn.d.ts +0 -1
- package/dist/utils/hooks.d.ts +0 -8
- package/src/AdContainer/AdContainer.tsx +0 -31
- package/src/AdContainer/styles.css +0 -58
- package/src/Article/ArticleMetaContainer/ArticleMetaContainer.tsx +0 -14
- package/src/Article/ArticleMetaContainer/styles.css +0 -151
- package/src/Article/UpNextArticles/UpNextArticles.tsx +0 -69
- package/src/Article/UpNextArticles/styles.css +0 -151
- package/src/Button/Button.tsx +0 -36
- package/src/Button/styles.css +0 -30
- package/src/CommentsDisabled/CommentsDisabled.stories.tsx +0 -178
- package/src/CommentsDisabled/CommentsDisabled.tsx +0 -63
- package/src/CommentsDisabled/IMPLEMENTATION_SUMMARY.md +0 -305
- package/src/CommentsDisabled/README.md +0 -284
- package/src/CommentsDisabled/TOKEN_MAPPING.md +0 -269
- package/src/CommentsDisabled/index.ts +0 -2
- package/src/CommentsDisabled/styles.css +0 -82
- package/src/Divider/Divider.tsx +0 -41
- package/src/Divider/styles.css +0 -80
- package/src/Input/Input.tsx +0 -62
- package/src/Input/styles.css +0 -69
- package/src/Link/Link.tsx +0 -49
- package/src/Link/styles.css +0 -111
- package/src/Text/Text.tsx +0 -38
- package/src/Text/styles.css +0 -30
- package/src/Text/typographyStyles.css +0 -30
- package/src/utils/cn.js +0 -3
- package/src/utils/cn.tsx +0 -3
- 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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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": "
|
|
28
|
+
"module": "node16" /* Specify what module code is generated. */,
|
|
29
29
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
"moduleResolution": "
|
|
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
|
-
|
|
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
|
-
|
|
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,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 {};
|
package/dist/Button/Button.d.ts
DELETED
|
@@ -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,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 {};
|
package/dist/Input/Input.d.ts
DELETED
|
@@ -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 {};
|
package/dist/Link/Link.d.ts
DELETED
|
@@ -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 {};
|
package/dist/Text/Text.d.ts
DELETED
|
@@ -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 {};
|