@patternfly/documentation-framework 6.0.0-alpha.57 → 6.0.0-alpha.59
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 +19 -0
- package/components/cssVariables/cssVariables.css +9 -11
- package/components/cssVariables/cssVariables.js +13 -26
- package/components/example/example.css +1 -1
- package/components/tableOfContents/tableOfContents.css +4 -0
- package/layouts/sideNavLayout/sideNavLayout.css +0 -35
- package/layouts/sideNavLayout/sideNavLayout.js +4 -7
- package/package.json +3 -3
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.59 (2024-07-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* css clean up - esp sidenavlayout.css ([#4129](https://github.com/patternfly/patternfly-org/issues/4129)) ([fc9d721](https://github.com/patternfly/patternfly-org/commit/fc9d721d9d4a1a14ab0bb2d66d1c68fb2d90ca7c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 6.0.0-alpha.58 (2024-07-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# 6.0.0-alpha.57 (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>
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
box-shadow: var(--pf-t--global--box-shadow--sm--bottom)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.ws-toc .pf-v6-c-jump-links__toggle {
|
|
23
|
+
background-color: var(--pf-t--global--background--color--secondary--default);
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
/* Mobile jumplinks */
|
|
23
27
|
@media (max-width: 1450px) {
|
|
24
28
|
.ws-toc.pf-m-expanded .pf-v6-c-jump-links__main {
|
|
@@ -8,43 +8,8 @@
|
|
|
8
8
|
flex: 1;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.ws-switcher-divider {
|
|
12
|
-
padding: 0 var(--pf-t--global--spacer--md);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media (min-width: 1200px) {
|
|
16
|
-
.ws-page-sidebar {
|
|
17
|
-
box-shadow: none !important;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ws-page-sidebar > .pf-v6-c-page__sidebar-body {
|
|
22
|
-
padding-top: var(--pf-t--global--spacer--md);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
11
|
/* Search */
|
|
26
12
|
#algolia-autocomplete-listbox-0 {
|
|
27
13
|
/* Fix search results overflowing page */
|
|
28
14
|
min-width: 480px !important;
|
|
29
15
|
}
|
|
30
|
-
.ws-global-search.pf-v6-c-input-group {
|
|
31
|
-
/* remove white background on dark Masthead */
|
|
32
|
-
--pf-v6-c-input-group--BackgroundColor: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* For tiny (200px) viewports */
|
|
36
|
-
.ws-masthead .pf-v6-c-toolbar__item {
|
|
37
|
-
min-width: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ws-masthead .pf-v6-c-switch {
|
|
41
|
-
align-items: center;
|
|
42
|
-
/* --pf-v6-c-switch__input--not-checked__label--Color: var(--pf-v6-global--Color--100); */
|
|
43
|
-
/* --pf-v6-c-switch__input--checked__label--Color: var(--pf-v6-global--Color--100); */
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.ws-masthead .pf-v6-c-toggle-group {
|
|
47
|
-
/* --pf-v6-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v6-global--palette--blue-400); */
|
|
48
|
-
--pf-v6-c-toggle-group__button--focus--BackgroundColor: transparent;
|
|
49
|
-
--pf-v6-c-toggle-group__button--hover--BackgroundColor: transparent;
|
|
50
|
-
}
|
|
@@ -163,7 +163,7 @@ const HeaderTools = ({
|
|
|
163
163
|
</DropdownList>
|
|
164
164
|
</DropdownGroup>
|
|
165
165
|
)}
|
|
166
|
-
<Divider key="divider1"
|
|
166
|
+
<Divider key="divider1"/>
|
|
167
167
|
<DropdownGroup key="Alpha preview version" label="Alpha preview version">
|
|
168
168
|
<DropdownList>
|
|
169
169
|
<DropdownItem
|
|
@@ -177,7 +177,7 @@ const HeaderTools = ({
|
|
|
177
177
|
</DropdownItem>
|
|
178
178
|
</DropdownList>
|
|
179
179
|
</DropdownGroup>
|
|
180
|
-
<Divider key="divider2"
|
|
180
|
+
<Divider key="divider2"/>
|
|
181
181
|
<DropdownGroup key="Previous versions" label="Previous versions">
|
|
182
182
|
<DropdownList>
|
|
183
183
|
<DropdownItem
|
|
@@ -263,10 +263,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
263
263
|
}, []);
|
|
264
264
|
|
|
265
265
|
const SideBar = (
|
|
266
|
-
<PageSidebar
|
|
267
|
-
className="ws-page-sidebar"
|
|
268
|
-
theme="light"
|
|
269
|
-
>
|
|
266
|
+
<PageSidebar>
|
|
270
267
|
<PageSidebarBody>
|
|
271
268
|
<SideNav navItems={sideNavItems} groupedRoutes={groupedRoutes} />
|
|
272
269
|
</PageSidebarBody>
|
|
@@ -274,7 +271,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
274
271
|
);
|
|
275
272
|
|
|
276
273
|
const masthead = (
|
|
277
|
-
<Masthead
|
|
274
|
+
<Masthead>
|
|
278
275
|
<MastheadToggle>
|
|
279
276
|
<PageToggleButton variant="plain" aria-label="Global navigation">
|
|
280
277
|
<BarsIcon />
|
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.59",
|
|
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.48",
|
|
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": "96fb4d85450d4108a9197a11d7c15717a2c05a1b"
|
|
84
84
|
}
|