@patternfly/design-tokens 1.14.4 → 1.14.6
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/build/css/tokens-charts-dark.scss +1 -1
- package/build/css/tokens-charts.scss +1 -1
- package/build/css/tokens-dark.scss +1 -1
- package/build/css/tokens-default.scss +1 -1
- package/build/css/tokens-highcontrast-dark.scss +1 -1
- package/build/css/tokens-highcontrast.scss +1 -1
- package/build/css/tokens-palette.scss +1 -1
- package/package.json +1 -1
- package/patternfly-a11y.config.js +1 -1
- package/patternfly-docs/content/all-patternfly-tokens.md +4 -2
- package/patternfly-docs/content/tokensTable.js +1 -1
- package/patternfly-docs/generated/design-tokens/all-design-tokens/design-tokens.js +39 -0
- package/patternfly-docs/generated/design-tokens/all-patternfly-tokens/design-tokens.js +39 -0
- package/patternfly-docs/generated/foundations-and-styles/design-tokens/all-design-tokens/design-tokens.js +39 -0
- package/patternfly-docs/generated/index.js +7 -7
- package/patternfly-docs/patternfly-docs.config.js +1 -1
- package/patternfly-docs/patternfly-docs.source.js +1 -1
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ module.exports = {
|
|
|
13
13
|
prefix: 'http://localhost:5000',
|
|
14
14
|
waitFor,
|
|
15
15
|
crawl: false,
|
|
16
|
-
urls: ['/','/tokens/all-
|
|
16
|
+
urls: ['/','/foundations-and-styles/design-tokens/all-design-tokens'],
|
|
17
17
|
ignoreRules: [
|
|
18
18
|
'color-contrast',
|
|
19
19
|
'landmark-no-duplicate-main',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
|
|
3
|
+
import * as defaultTokens from '../../../content/./token-layers-default.json';
|
|
4
|
+
import * as darkTokens from '../../../content/./token-layers-dark.json';
|
|
5
|
+
import { TokensTable } from '../../../content/./tokensTable.js';
|
|
6
|
+
const pageData = {
|
|
7
|
+
"id": "All design tokens",
|
|
8
|
+
"section": "design-tokens",
|
|
9
|
+
"subsection": "",
|
|
10
|
+
"deprecated": false,
|
|
11
|
+
"template": false,
|
|
12
|
+
"beta": false,
|
|
13
|
+
"demo": false,
|
|
14
|
+
"newImplementationLink": false,
|
|
15
|
+
"source": "design-tokens",
|
|
16
|
+
"tabName": null,
|
|
17
|
+
"slug": "/design-tokens/all-design-tokens/design-tokens",
|
|
18
|
+
"sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/all-patternfly-tokens.md",
|
|
19
|
+
"relPath": "packages/module/patternfly-docs/content/all-patternfly-tokens.md"
|
|
20
|
+
};
|
|
21
|
+
pageData.liveContext = {
|
|
22
|
+
defaultTokens,
|
|
23
|
+
darkTokens,
|
|
24
|
+
TokensTable
|
|
25
|
+
};
|
|
26
|
+
pageData.relativeImports = "import * as defaultTokens from 'content/./token-layers-default.json';,import * as darkTokens from 'content/./token-layers-dark.json';,import { TokensTable } from 'content/./tokensTable.js';"
|
|
27
|
+
pageData.examples = {
|
|
28
|
+
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const Component = () => (
|
|
32
|
+
<React.Fragment>
|
|
33
|
+
<TokensTable tokenJson={{default: defaultTokens, dark: darkTokens}}/>
|
|
34
|
+
</React.Fragment>
|
|
35
|
+
);
|
|
36
|
+
Component.displayName = 'DesignTokensAllDesignTokensDesignTokensDocs';
|
|
37
|
+
Component.pageData = pageData;
|
|
38
|
+
|
|
39
|
+
export default Component;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
|
|
3
|
+
import * as defaultTokens from '../../../content/./token-layers-default.json';
|
|
4
|
+
import * as darkTokens from '../../../content/./token-layers-dark.json';
|
|
5
|
+
import { TokensTable } from '../../../content/./tokensTable.js';
|
|
6
|
+
const pageData = {
|
|
7
|
+
"id": "All PatternFly tokens",
|
|
8
|
+
"section": "design-tokens",
|
|
9
|
+
"subsection": "",
|
|
10
|
+
"deprecated": false,
|
|
11
|
+
"template": false,
|
|
12
|
+
"beta": false,
|
|
13
|
+
"demo": false,
|
|
14
|
+
"newImplementationLink": false,
|
|
15
|
+
"source": "design-tokens",
|
|
16
|
+
"tabName": null,
|
|
17
|
+
"slug": "/design-tokens/all-patternfly-tokens/design-tokens",
|
|
18
|
+
"sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/all-patternfly-tokens.md",
|
|
19
|
+
"relPath": "packages/module/patternfly-docs/content/all-patternfly-tokens.md"
|
|
20
|
+
};
|
|
21
|
+
pageData.liveContext = {
|
|
22
|
+
defaultTokens,
|
|
23
|
+
darkTokens,
|
|
24
|
+
TokensTable
|
|
25
|
+
};
|
|
26
|
+
pageData.relativeImports = "import * as defaultTokens from 'content/./token-layers-default.json';,import * as darkTokens from 'content/./token-layers-dark.json';,import { TokensTable } from 'content/./tokensTable.js';"
|
|
27
|
+
pageData.examples = {
|
|
28
|
+
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const Component = () => (
|
|
32
|
+
<React.Fragment>
|
|
33
|
+
<TokensTable tokenJson={{default: defaultTokens, dark: darkTokens}}/>
|
|
34
|
+
</React.Fragment>
|
|
35
|
+
);
|
|
36
|
+
Component.displayName = 'DesignTokensAllPatternflyTokensDesignTokensDocs';
|
|
37
|
+
Component.pageData = pageData;
|
|
38
|
+
|
|
39
|
+
export default Component;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
|
|
3
|
+
import * as defaultTokens from '../../../../content/./token-layers-default.json';
|
|
4
|
+
import * as darkTokens from '../../../../content/./token-layers-dark.json';
|
|
5
|
+
import { TokensTable } from '../../../../content/./tokensTable.js';
|
|
6
|
+
const pageData = {
|
|
7
|
+
"id": "All design tokens",
|
|
8
|
+
"section": "foundations-and-styles",
|
|
9
|
+
"subsection": "design-tokens",
|
|
10
|
+
"deprecated": false,
|
|
11
|
+
"template": false,
|
|
12
|
+
"beta": false,
|
|
13
|
+
"demo": false,
|
|
14
|
+
"newImplementationLink": false,
|
|
15
|
+
"source": "design-tokens",
|
|
16
|
+
"tabName": null,
|
|
17
|
+
"slug": "/foundations-and-styles/design-tokens/all-design-tokens/design-tokens",
|
|
18
|
+
"sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/all-patternfly-tokens.md",
|
|
19
|
+
"relPath": "packages/module/patternfly-docs/content/all-patternfly-tokens.md"
|
|
20
|
+
};
|
|
21
|
+
pageData.liveContext = {
|
|
22
|
+
defaultTokens,
|
|
23
|
+
darkTokens,
|
|
24
|
+
TokensTable
|
|
25
|
+
};
|
|
26
|
+
pageData.relativeImports = "import * as defaultTokens from 'content/./token-layers-default.json';,import * as darkTokens from 'content/./token-layers-dark.json';,import { TokensTable } from 'content/./tokensTable.js';"
|
|
27
|
+
pageData.examples = {
|
|
28
|
+
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const Component = () => (
|
|
32
|
+
<React.Fragment>
|
|
33
|
+
<TokensTable tokenJson={{default: defaultTokens, dark: darkTokens}}/>
|
|
34
|
+
</React.Fragment>
|
|
35
|
+
);
|
|
36
|
+
Component.displayName = 'FoundationsAndStylesDesignTokensAllDesignTokensDesignTokensDocs';
|
|
37
|
+
Component.pageData = pageData;
|
|
38
|
+
|
|
39
|
+
export default Component;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
'/tokens/all-
|
|
3
|
-
id: "All
|
|
4
|
-
title: "All
|
|
2
|
+
'/foundations-and-styles/design-tokens/all-design-tokens/design-tokens': {
|
|
3
|
+
id: "All design tokens",
|
|
4
|
+
title: "All design tokens",
|
|
5
5
|
toc: [],
|
|
6
|
-
section: "
|
|
7
|
-
subsection: "",
|
|
8
|
-
source: "tokens",
|
|
6
|
+
section: "foundations-and-styles",
|
|
7
|
+
subsection: "design-tokens",
|
|
8
|
+
source: "design-tokens",
|
|
9
9
|
tabName: null,
|
|
10
|
-
Component: () => import(/* webpackChunkName: "tokens/all-
|
|
10
|
+
Component: () => import(/* webpackChunkName: "foundations-and-styles/design-tokens/all-design-tokens/design-tokens/index" */ './foundations-and-styles/design-tokens/all-design-tokens/design-tokens')
|
|
11
11
|
}
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ module.exports = (sourceMD) => {
|
|
|
4
4
|
|
|
5
5
|
// Parse md files
|
|
6
6
|
const contentBase = path.join(__dirname, './content');
|
|
7
|
-
sourceMD(path.join(contentBase, '/*.md'), 'tokens');
|
|
7
|
+
sourceMD(path.join(contentBase, '/*.md'), 'design-tokens');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
If you want to parse content from node_modules instead of providing a relative/absolute path,
|