@patternfly/documentation-framework 6.0.0-alpha.56 → 6.0.0-alpha.58
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 6.0.0-alpha.58 (2024-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 6.0.0-alpha.57 (2024-07-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* clean up community and trainging card css ([#4127](https://github.com/patternfly/patternfly-org/issues/4127)) ([eb9a231](https://github.com/patternfly/patternfly-org/commit/eb9a23103cb6e54f38e2eae5056f2a53cd4a430e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# 6.0.0-alpha.56 (2024-07-10)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
.ws-color-box {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
height: 18px;
|
|
4
|
-
width: 18px;
|
|
5
|
-
/* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--200); */
|
|
6
|
-
/* border-radius: var(--pf-v6-global--BorderRadius--lg); */
|
|
7
|
-
}
|
|
8
1
|
|
|
9
|
-
.
|
|
10
|
-
|
|
2
|
+
.circle {
|
|
3
|
+
height: 1em;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
aspect-ratio: 1 / 1;
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
border: var(--pf-t--global--border--width--regular) solid var(--pf-t--global--background--color--inverse--default);
|
|
8
|
+
box-shadow: var(--pf-t--global--box-shadow--sm);
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
.
|
|
14
|
-
|
|
11
|
+
.rotate-90-deg {
|
|
12
|
+
transform: rotate(90deg);
|
|
15
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { debounce } from "@patternfly/react-core";
|
|
2
|
+
import { List, ListItem, debounce } from "@patternfly/react-core";
|
|
3
3
|
import {
|
|
4
4
|
Table,
|
|
5
5
|
Thead,
|
|
@@ -10,33 +10,22 @@ import {
|
|
|
10
10
|
} from "@patternfly/react-table";
|
|
11
11
|
import { AutoLinkHeader } from "../autoLinkHeader/autoLinkHeader";
|
|
12
12
|
import * as tokensModule from "@patternfly/react-tokens/dist/esm/componentIndex";
|
|
13
|
-
import global_spacer_md from "@patternfly/react-tokens/dist/esm/global_spacer_md";
|
|
14
13
|
import LevelUpAltIcon from "@patternfly/react-icons/dist/esm/icons/level-up-alt-icon";
|
|
15
14
|
import { CSSSearch } from './cssSearch';
|
|
16
15
|
|
|
17
16
|
const isColorRegex = /^(#|rgb)/;
|
|
18
17
|
|
|
19
18
|
const mappingAsList = (property, values) => (
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</div>
|
|
26
|
-
{values.map((entry, index) => (
|
|
27
|
-
<div
|
|
28
|
-
key={index}
|
|
29
|
-
style={{
|
|
30
|
-
padding: `4px 0 4px calc(${global_spacer_md.value} * ${index + 3})`
|
|
31
|
-
}}
|
|
19
|
+
<List isPlain>
|
|
20
|
+
<ListItem>{property}</ListItem>
|
|
21
|
+
{values.map((entry) => (
|
|
22
|
+
<ListItem
|
|
23
|
+
icon={<LevelUpAltIcon className="rotate-90-deg" />}
|
|
32
24
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{entry}
|
|
36
|
-
</span>
|
|
37
|
-
</div>
|
|
25
|
+
{entry}
|
|
26
|
+
</ListItem>
|
|
38
27
|
))}
|
|
39
|
-
</
|
|
28
|
+
</List>
|
|
40
29
|
);
|
|
41
30
|
|
|
42
31
|
const flattenList = files => {
|
|
@@ -97,6 +86,7 @@ export class CSSVariables extends React.Component {
|
|
|
97
86
|
(values && searchRE.test(JSON.stringify(values)));
|
|
98
87
|
if (passes) {
|
|
99
88
|
const rowKey = `${selector}_${property}`;
|
|
89
|
+
const isColor = isColorRegex.test(value);
|
|
100
90
|
const cells = [
|
|
101
91
|
...this.props.hideSelectorColumn ? [] : [selector],
|
|
102
92
|
property,
|
|
@@ -105,22 +95,19 @@ export class CSSVariables extends React.Component {
|
|
|
105
95
|
key={`${rowKey}_1`}
|
|
106
96
|
className="pf-v6-l-flex pf-m-space-items-sm"
|
|
107
97
|
>
|
|
108
|
-
{
|
|
98
|
+
{isColor && (
|
|
109
99
|
<div
|
|
110
100
|
key={`${rowKey}_2`}
|
|
111
101
|
className="pf-v6-l-flex pf-m-column pf-m-align-self-center"
|
|
112
102
|
>
|
|
113
|
-
<span
|
|
114
|
-
className="ws-color-box"
|
|
115
|
-
style={{ backgroundColor: value }}
|
|
116
|
-
/>
|
|
103
|
+
<span className="circle" style={{ backgroundColor: `var(${property})`}}/>
|
|
117
104
|
</div>
|
|
118
105
|
)}
|
|
119
106
|
<div
|
|
120
107
|
key={`${rowKey}_3`}
|
|
121
108
|
className="pf-v6-l-flex pf-m-column pf-m-align-self-center ws-td-text"
|
|
122
109
|
>
|
|
123
|
-
{value}
|
|
110
|
+
{isColor && '(In light theme)'} {value}
|
|
124
111
|
</div>
|
|
125
112
|
</div>
|
|
126
113
|
</div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "6.0.0-alpha.
|
|
4
|
+
"version": "6.0.0-alpha.58",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@babel/preset-env": "^7.24.3",
|
|
14
14
|
"@babel/preset-react": "^7.24.1",
|
|
15
15
|
"@mdx-js/util": "1.6.16",
|
|
16
|
-
"@patternfly/ast-helpers": "^1.4.0-alpha.
|
|
16
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.47",
|
|
17
17
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
18
18
|
"autoprefixer": "9.8.6",
|
|
19
19
|
"babel-loader": "^9.1.3",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"react": "^17.0.0 || ^18.0.0",
|
|
81
81
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "4f9777453769c49e169610d97596bb1714689a54"
|
|
84
84
|
}
|
package/templates/mdx.css
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
p.pf-v6-c-content--p.ws-p {
|
|
2
|
+
margin: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.ws-code {
|
|
2
6
|
display: inline-block;
|
|
3
7
|
background-color: var(--pf-t--global--background--color--secondary--default);
|
|
@@ -8,6 +12,10 @@
|
|
|
8
12
|
font-family: var(--pf-t--global--font--family--mono);
|
|
9
13
|
}
|
|
10
14
|
|
|
15
|
+
.ws-content-table > .ws-table {
|
|
16
|
+
margin-bottom: var(--pf-t--global--spacer--md);
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
.ws-image {
|
|
12
20
|
text-align: center;
|
|
13
21
|
}
|
package/templates/mdx.js
CHANGED
|
@@ -91,7 +91,7 @@ const MDXChildTemplate = ({
|
|
|
91
91
|
{toc.length > 1 && (
|
|
92
92
|
<TableOfContents items={toc} />
|
|
93
93
|
)}
|
|
94
|
-
<Stack hasGutter
|
|
94
|
+
<Stack hasGutter style={{...(source !== 'landing-pages' && {maxWidth: "825px"})}}>
|
|
95
95
|
{InlineAlerts}
|
|
96
96
|
<Component />
|
|
97
97
|
{functionDocumentation.length > 0 && (
|