@patternfly/documentation-framework 6.0.0-alpha.3 → 6.0.0-alpha.31
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 +721 -0
- package/app.js +1 -4
- package/components/autoLinkHeader/autoLinkHeader.css +2 -2
- package/components/autoLinkHeader/autoLinkHeader.js +2 -2
- package/components/cssVariables/cssVariables.css +4 -4
- package/components/cssVariables/cssVariables.js +6 -6
- package/components/example/example.css +29 -29
- package/components/example/example.js +122 -56
- package/components/example/exampleToolbar.js +3 -2
- package/components/footer/footer.css +16 -16
- package/components/footer/footer.js +13 -13
- package/components/gdprBanner/gdprBanner.css +2 -2
- package/components/gdprBanner/gdprBanner.js +4 -4
- package/components/inlineAlert/inlineAlert.js +1 -1
- package/components/propsTable/propsTable.js +3 -3
- package/components/sectionGallery/sectionDataListLayout.js +3 -3
- package/components/sectionGallery/sectionGallery.css +12 -12
- package/components/sectionGallery/sectionGalleryToolbar.js +1 -1
- package/components/sideNav/sideNav.js +3 -4
- package/components/tableOfContents/tableOfContents.css +23 -24
- package/layouts/sideNavLayout/sideNavLayout.css +14 -14
- package/layouts/sideNavLayout/sideNavLayout.js +79 -26
- package/package.json +13 -20
- package/pages/404/404.css +2 -2
- package/pages/404/index.js +3 -1
- package/routes.js +3 -1
- package/scripts/md/parseMD.js +20 -18
- package/scripts/webpack/webpack.base.config.js +7 -18
- package/scripts/writeScreenshots.js +2 -2
- package/templates/mdx.css +169 -157
- package/templates/mdx.js +16 -10
- package/versions.json +85 -9
- package/components/sideNav/sideNav.css +0 -21
- package/pages/global-css-variables.md +0 -109
- package/pages/img/component-variable-mapping.png +0 -0
|
@@ -13,15 +13,15 @@ export const Footer = () => (
|
|
|
13
13
|
sm={12}
|
|
14
14
|
md={6}
|
|
15
15
|
mdOffset={1}
|
|
16
|
-
className="pf-
|
|
16
|
+
className="pf-v6-u-mb-lg pf-v6-u-mb-0-on-sm"
|
|
17
17
|
>
|
|
18
|
-
<Grid className="pf-
|
|
18
|
+
<Grid className="pf-v6-u-py-xl">
|
|
19
19
|
<GridItem
|
|
20
20
|
sm={6}
|
|
21
21
|
md={4}
|
|
22
|
-
className="pf-
|
|
22
|
+
className="pf-v6-u-ml-md pf-v6-u-ml-0-on-md pf-v6-u-mb-xl pf-v6-u-mb-0-on-md"
|
|
23
23
|
>
|
|
24
|
-
<p className="pf-
|
|
24
|
+
<p className="pf-v6-c-title ws-org-pfsite-footer-menu-list-title">
|
|
25
25
|
QUICKLINKS
|
|
26
26
|
</p>
|
|
27
27
|
<nav aria-label="Quick Links">
|
|
@@ -68,9 +68,9 @@ export const Footer = () => (
|
|
|
68
68
|
<GridItem
|
|
69
69
|
sm={6}
|
|
70
70
|
md={4}
|
|
71
|
-
className="pf-
|
|
71
|
+
className="pf-v6-u-mt-lg pf-v6-u-mt-0-on-sm pf-v6-u-ml-md pf-v6-u-ml-0-on-md pf-v6-u-mb-xl pf-v6-u-mb-0-on-md"
|
|
72
72
|
>
|
|
73
|
-
<p className="pf-
|
|
73
|
+
<p className="pf-v6-c-title ws-org-pfsite-footer-menu-list-title">
|
|
74
74
|
CONTRIBUTE
|
|
75
75
|
</p>
|
|
76
76
|
<nav aria-label="Contribute">
|
|
@@ -109,7 +109,7 @@ export const Footer = () => (
|
|
|
109
109
|
<GridItem
|
|
110
110
|
sm={6}
|
|
111
111
|
md={4}
|
|
112
|
-
className="pf-
|
|
112
|
+
className="pf-v6-u-mt-lg pf-v6-u-mt-0-on-md pf-v6-u-ml-md pf-v6-u-ml-0-on-md"
|
|
113
113
|
>
|
|
114
114
|
<p className="ws-org-pfsite-footer-menu-list-title">
|
|
115
115
|
STAY IN TOUCH
|
|
@@ -162,10 +162,10 @@ export const Footer = () => (
|
|
|
162
162
|
</Grid>
|
|
163
163
|
</GridItem>
|
|
164
164
|
<GridItem sm={12} md={4}>
|
|
165
|
-
<Grid className="pf-
|
|
166
|
-
<GridItem className="pf-
|
|
165
|
+
<Grid className="pf-v6-u-pt-xl ws-org-pfsite-l-footer-column">
|
|
166
|
+
<GridItem className="pf-v6-u-px-xl">
|
|
167
167
|
<Link
|
|
168
|
-
className="pf-
|
|
168
|
+
className="pf-v6-c-page__header-brand-link pf-v6-c-brand ws-org-pfsite-footer-menu-about-logo pf-v6-u-pb-md"
|
|
169
169
|
to="/"
|
|
170
170
|
>
|
|
171
171
|
<Brand
|
|
@@ -185,7 +185,7 @@ export const Footer = () => (
|
|
|
185
185
|
product experiences—the open source way.
|
|
186
186
|
</Text>
|
|
187
187
|
</GridItem>
|
|
188
|
-
<GridItem className="ws-org-pfsite-footer-menu-social-links pf-
|
|
188
|
+
<GridItem className="ws-org-pfsite-footer-menu-social-links pf-v6-u-px-xl">
|
|
189
189
|
<Link
|
|
190
190
|
to="//github.com/patternfly"
|
|
191
191
|
target="top"
|
|
@@ -209,7 +209,7 @@ export const Footer = () => (
|
|
|
209
209
|
key="footer-2"
|
|
210
210
|
className="ws-org-pfsite-l-footer-dark pf-m-no-fill"
|
|
211
211
|
>
|
|
212
|
-
<Grid className="pf-
|
|
212
|
+
<Grid className="pf-v6-u-py-xl-on-sm pf-v6-u-py-0-on-md pf-v6-u-align-items-center">
|
|
213
213
|
<GridItem md={2} mdOffset={1}>
|
|
214
214
|
<Link
|
|
215
215
|
to="//www.redhat.com"
|
|
@@ -228,7 +228,7 @@ export const Footer = () => (
|
|
|
228
228
|
Copyright © 2014-{new Date().getFullYear()} Red Hat, Inc.
|
|
229
229
|
</span>
|
|
230
230
|
</GridItem>
|
|
231
|
-
<GridItem md={4} lg={5} className="pf-
|
|
231
|
+
<GridItem md={4} lg={5} className="pf-v6-u-ml-xl-on-xl">
|
|
232
232
|
<Link
|
|
233
233
|
to="//www.redhat.com/en/about/privacy-policy"
|
|
234
234
|
target="top"
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
#ws-gdpr-banner {
|
|
10
10
|
max-width: 95vw;
|
|
11
11
|
flex-wrap: nowrap;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/* background: var(--pf-v6-global--BackgroundColor--100); */
|
|
13
|
+
/* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--Color--100); */
|
|
14
14
|
}
|
|
@@ -6,16 +6,16 @@ import './gdprBanner.css';
|
|
|
6
6
|
export const GdprBanner = () => {
|
|
7
7
|
const initialBannerOpen = typeof window !== 'undefined' && window.localStorage && !localStorage.getItem('gdpr-banner-closed');
|
|
8
8
|
const [ isBannerOpen, setBannerOpen ] = React.useState(initialBannerOpen);
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
const closeBanner = () => {
|
|
11
11
|
localStorage.setItem('gdpr-banner-closed', 'true');
|
|
12
12
|
setBannerOpen(false);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
return !isBannerOpen ? null : (
|
|
16
|
-
<section aria-label="Cookies on PatternFly" className="ws-gdpr-banner-container pf-
|
|
17
|
-
<div id="ws-gdpr-banner" className="pf-
|
|
18
|
-
<p id="ws-gdpr-banner-text" className="pf-
|
|
16
|
+
<section aria-label="Cookies on PatternFly" className="ws-gdpr-banner-container pf-v6-l-flex">
|
|
17
|
+
<div id="ws-gdpr-banner" className="pf-v6-l-flex pf-v6-u-py-md pf-m-align-items-center">
|
|
18
|
+
<p id="ws-gdpr-banner-text" className="pf-v6-u-ml-xl">
|
|
19
19
|
We use cookies on our websites to deliver our online services.
|
|
20
20
|
Details about how we use cookies and how you may disable them are set out in our <a href="//www.redhat.com/en/about/privacy-policy">Privacy Statement</a>.
|
|
21
21
|
By using this website you agree to our use of cookies.
|
|
@@ -18,9 +18,9 @@ import accessibleStyles from "@patternfly/react-styles/css/utilities/Accessibili
|
|
|
18
18
|
export const PropsTable = ({ title, description, rows, allPropComponents }) => (
|
|
19
19
|
<React.Fragment>
|
|
20
20
|
<AutoLinkHeader size="h3">{title}</AutoLinkHeader>
|
|
21
|
-
<Table className="pf-
|
|
21
|
+
<Table className="pf-v6-u-mt-md pf-v6-u-mb-lg" variant="compact" aria-label={title} gridBreakPoint="grid-lg">
|
|
22
22
|
<Caption>
|
|
23
|
-
{description && <div className="pf-
|
|
23
|
+
{description && <div className="pf-v6-u-mb-md">{description}</div>}
|
|
24
24
|
<div>
|
|
25
25
|
<span className="ws-prop-required">*</span>required
|
|
26
26
|
</div>
|
|
@@ -64,7 +64,7 @@ export const PropsTable = ({ title, description, rows, allPropComponents }) => (
|
|
|
64
64
|
{row.beta && (
|
|
65
65
|
<Badge
|
|
66
66
|
key={`${row.name}-${idx}`}
|
|
67
|
-
className="ws-beta-badge pf-
|
|
67
|
+
className="ws-beta-badge pf-v6-u-ml-sm"
|
|
68
68
|
>
|
|
69
69
|
Beta
|
|
70
70
|
</Badge>
|
|
@@ -7,7 +7,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
|
|
|
7
7
|
if (layoutView !== 'list') {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
return (
|
|
12
12
|
<DataList onSelectDataListItem={() => {}}>
|
|
13
13
|
{galleryItems.map(({ idx, slug, illustration, itemName, title, isBeta, isDeprecated, isDemo, id, galleryItemsData }) => (
|
|
@@ -23,7 +23,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
|
|
|
23
23
|
</DataListCell>
|
|
24
24
|
),
|
|
25
25
|
<DataListCell width={5} key="text-description">
|
|
26
|
-
<Split className={ hasListText ? "pf-
|
|
26
|
+
<Split className={ hasListText ? "pf-v6-u-mb-md" : null }>
|
|
27
27
|
<SplitItem isFilled>
|
|
28
28
|
<TextContent>
|
|
29
29
|
<Text component={TextVariants.h2}>
|
|
@@ -32,7 +32,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
|
|
|
32
32
|
</span>
|
|
33
33
|
</Text>
|
|
34
34
|
</TextContent>
|
|
35
|
-
</SplitItem>
|
|
35
|
+
</SplitItem>
|
|
36
36
|
<SplitItem>
|
|
37
37
|
{isBeta && (<Label color="blue" isCompact>Beta</Label>)}
|
|
38
38
|
{!isBeta && isDeprecated && (<Label color="grey" isCompact>Deprecated</Label>)}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
.ws-section-gallery {
|
|
10
10
|
/* top placement */
|
|
11
|
-
margin-top: calc(var(--pf-
|
|
11
|
+
margin-top: calc(var(--pf-v6-c-page__main-section--PaddingTop) * -1);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
* + .ws-section-gallery {
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/* Toolbar styles */
|
|
20
|
-
.ws-section-gallery .pf-
|
|
21
|
-
margin-left: calc(var(--pf-
|
|
22
|
-
border-bottom: var(--pf-
|
|
23
|
-
margin-bottom: var(--pf-
|
|
24
|
-
width: calc(100% + var(--pf-
|
|
20
|
+
.ws-section-gallery .pf-v6-c-toolbar {
|
|
21
|
+
margin-left: calc(var(--pf-v6-c-page__main-section--PaddingLeft) * -1);
|
|
22
|
+
border-bottom: var(--pf-v6-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-v6-c-page__sidebar--m-light--BorderRightColor);
|
|
23
|
+
margin-bottom: var(--pf-t--global--spacer--md);
|
|
24
|
+
width: calc(100% + var(--pf-v6-c-page__main-section--PaddingLeft) + var(--pf-v6-c-page__main-section--PaddingRight));
|
|
25
25
|
/* avoid hoverable data list items overlapping toolbar */
|
|
26
|
-
|
|
26
|
+
/* z-index: calc(var(--pf-v6-global--ZIndex--xs) + 2); */
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Match toolbar left-padding to gallery left-padding */
|
|
30
|
-
.ws-section-gallery .pf-
|
|
31
|
-
--pf-
|
|
30
|
+
.ws-section-gallery .pf-v6-c-toolbar .pf-v6-c-toolbar__content {
|
|
31
|
+
--pf-v6-c-toolbar__content--PaddingLeft: var(--pf-v6-c-page__main-section--PaddingLeft);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* Avoid toolbar wrap on smaller screens */
|
|
35
|
-
.ws-section-gallery .pf-
|
|
35
|
+
.ws-section-gallery .pf-v6-c-toolbar__content-section {
|
|
36
36
|
flex-wrap: nowrap;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/* Ensure same height for all cards in a gallery row */
|
|
46
|
-
.ws-section-gallery .pf-
|
|
46
|
+
.ws-section-gallery .pf-v6-c-card {
|
|
47
47
|
height: 100%;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Limit width for data list view only */
|
|
51
|
-
.ws-section-gallery .pf-
|
|
51
|
+
.ws-section-gallery .pf-v6-c-data-list {
|
|
52
52
|
max-width: 956px;
|
|
53
53
|
}
|
|
@@ -30,7 +30,7 @@ export const SectionGalleryToolbar = ({
|
|
|
30
30
|
</ToggleGroup>
|
|
31
31
|
</ToolbarItem>
|
|
32
32
|
</ToolbarGroup>
|
|
33
|
-
<ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-
|
|
33
|
+
<ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-v6-c-toolbar__item--MinWidth': "max-content"}}>
|
|
34
34
|
<Text component={TextVariants.small}>{ galleryItems.length }{ countText }</Text>
|
|
35
35
|
</ToolbarItem>
|
|
36
36
|
</ToolbarContent>
|
|
@@ -19,14 +19,14 @@ const NavItem = ({ text, href, isDeprecated, isBeta, isDemo }) => {
|
|
|
19
19
|
return (
|
|
20
20
|
<PageContextConsumer key={href + text}>
|
|
21
21
|
{({onSidebarToggle, isSidebarOpen }) => (
|
|
22
|
-
<li key={href + text} className="pf-
|
|
22
|
+
<li key={href + text} className="pf-v6-c-nav__item" onClick={() => isMobileView && onSidebarToggle && onSidebarToggle()}>
|
|
23
23
|
<Link
|
|
24
24
|
to={href}
|
|
25
25
|
getProps={({ isCurrent, href, location }) => {
|
|
26
26
|
const { pathname } = location;
|
|
27
27
|
return {
|
|
28
28
|
className: css(
|
|
29
|
-
'pf-
|
|
29
|
+
'pf-v6-c-nav__link',
|
|
30
30
|
(isCurrent || pathname.startsWith(href + '/')) && 'pf-m-current'
|
|
31
31
|
)
|
|
32
32
|
}}
|
|
@@ -67,7 +67,6 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
|
|
|
67
67
|
key={capitalize(currentSection.replace(/-/g, ' '))}
|
|
68
68
|
isActive={isActive}
|
|
69
69
|
isExpanded={isActive}
|
|
70
|
-
className="ws-side-nav-group"
|
|
71
70
|
onClick={(event) => {
|
|
72
71
|
// Don't bubble click event up, avoids subsection triggering duplicate analtics
|
|
73
72
|
event.stopPropagation();
|
|
@@ -96,7 +95,7 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
|
|
|
96
95
|
source.source === "react-deprecated" || source.source === "html-deprecated")
|
|
97
96
|
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
|
|
98
97
|
),
|
|
99
|
-
isBeta: navObj.sources.some(source => source.beta),
|
|
98
|
+
isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next' && source.source !== 'react-templates'),
|
|
100
99
|
isDemo: navObj.sources.some(source => (
|
|
101
100
|
source.source === "react-demos" || source.source === "html-demos")
|
|
102
101
|
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
|
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
.ws-toc {
|
|
2
2
|
align-self: flex-start;
|
|
3
3
|
position: sticky;
|
|
4
|
-
width: calc(100% + var(--pf-
|
|
5
|
-
background-color: var(--pf-
|
|
4
|
+
width: calc(100% + var(--pf-v6-c-page__main-section--PaddingLeft) + var(--pf-v6-c-page__main-section--PaddingRight));
|
|
5
|
+
background-color: var(--pf-t--global--background--color--primary--default);
|
|
6
6
|
z-index: 501;
|
|
7
|
-
margin-block-start: calc(var(--pf-
|
|
8
|
-
margin-block-end: var(--pf-
|
|
9
|
-
margin-inline-start: calc(var(--pf-
|
|
10
|
-
margin-inline-end: calc(var(--pf-
|
|
11
|
-
padding-block-start: var(--pf-
|
|
12
|
-
padding-block-end: var(--pf-
|
|
13
|
-
padding-inline-start: var(--pf-
|
|
7
|
+
margin-block-start: calc(var(--pf-v6-c-page__main-section--PaddingTop) * -1);
|
|
8
|
+
margin-block-end: var(--pf-t--global--spacer--md);
|
|
9
|
+
margin-inline-start: calc(var(--pf-v6-c-page__main-section--PaddingLeft) * -1);
|
|
10
|
+
margin-inline-end: calc(var(--pf-v6-c-page__main-section--PaddingRight) * -2);
|
|
11
|
+
padding-block-start: var(--pf-t--global--spacer--md);
|
|
12
|
+
padding-block-end: var(--pf-t--global--spacer--md);
|
|
13
|
+
padding-inline-start: var(--pf-t--global--spacer--md);
|
|
14
14
|
padding-inline-end: 0;
|
|
15
|
-
|
|
15
|
+
/* box-shadow: var(--pf-v6-global--BoxShadow--lg-bottom); */
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ws-toc.pf-m-expanded {
|
|
19
|
-
|
|
19
|
+
/* box-shadow: var(--pf-v6-global--BoxShadow--sm-bottom) */
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* Mobile jumplinks */
|
|
23
23
|
@media (max-width: 1450px) {
|
|
24
|
-
.ws-toc.pf-m-expanded .pf-
|
|
24
|
+
.ws-toc.pf-m-expanded .pf-v6-c-jump-links__main {
|
|
25
25
|
max-height: 65vh;
|
|
26
|
-
overflow: auto;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
.ws-toc .pf-
|
|
27
|
+
|
|
28
|
+
.ws-toc .pf-v6-c-jump-links__header {
|
|
30
29
|
position: sticky;
|
|
31
30
|
top: 0;
|
|
32
|
-
background-color: var(--pf-
|
|
31
|
+
background-color: var(--pf-t--global--background--color--primary--default);
|
|
33
32
|
z-index: 2;
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
.ws-toc .pf-
|
|
36
|
+
.ws-toc .pf-v6-c-jump-links__main {
|
|
38
37
|
scrollbar-width: none;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
/* Hide TOC scrollbar Chrome, Safari & Opera */
|
|
42
|
-
.ws-toc .pf-
|
|
41
|
+
.ws-toc .pf-v6-c-jump-links__main::-webkit-scrollbar {
|
|
43
42
|
display: none;
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
-ms-overflow-style: none;
|
|
53
52
|
scrollbar-width: none;
|
|
54
53
|
order: 1;
|
|
55
|
-
padding: 0 var(--pf-
|
|
54
|
+
padding: 0 var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--2xl);
|
|
56
55
|
flex-grow: 1;
|
|
57
56
|
background: none;
|
|
58
57
|
margin: 0;
|
|
@@ -65,18 +64,18 @@
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
/* .ws-toc-link { */
|
|
68
|
-
.ws-toc-item .pf-
|
|
67
|
+
.ws-toc-item .pf-v6-c-jump-links__link {
|
|
69
68
|
position: relative;
|
|
70
69
|
display: block;
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
/* color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300)); */
|
|
71
|
+
/* font-size: var(--pf-v6-global--FontSize--sm); */
|
|
73
72
|
margin: -4px 0;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
|
-
.ws-toc-sublist > .ws-toc-item:first-child .pf-
|
|
75
|
+
.ws-toc-sublist > .ws-toc-item:first-child .pf-v6-c-jump-links__link {
|
|
77
76
|
margin-top: 0;
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
.ws-toc-item.pf-m-current .pf-
|
|
79
|
+
.ws-toc-item.pf-m-current .pf-v6-c-jump-links__link::before {
|
|
81
80
|
z-index: 1;
|
|
82
81
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Page layout */
|
|
2
|
-
/* tells .pf-
|
|
2
|
+
/* tells .pf-v6-c-page to consume the available space left over from the banners/footers */
|
|
3
3
|
#ws-router {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ws-switcher-divider {
|
|
12
|
-
padding: 0 var(--pf-
|
|
12
|
+
padding: 0 var(--pf-t--global--spacer--md);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@media (min-width: 1200px) {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.ws-page-sidebar > .pf-
|
|
22
|
-
padding-top: var(--pf-
|
|
21
|
+
.ws-page-sidebar > .pf-v6-c-page__sidebar-body {
|
|
22
|
+
padding-top: var(--pf-t--global--spacer--md);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Search */
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
/* Fix search results overflowing page */
|
|
28
28
|
min-width: 480px !important;
|
|
29
29
|
}
|
|
30
|
-
.ws-global-search.pf-
|
|
30
|
+
.ws-global-search.pf-v6-c-input-group {
|
|
31
31
|
/* remove white background on dark Masthead */
|
|
32
|
-
--pf-
|
|
32
|
+
--pf-v6-c-input-group--BackgroundColor: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* For tiny (200px) viewports */
|
|
36
|
-
.ws-masthead .pf-
|
|
36
|
+
.ws-masthead .pf-v6-c-toolbar__item {
|
|
37
37
|
min-width: 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.ws-masthead .pf-
|
|
40
|
+
.ws-masthead .pf-v6-c-switch {
|
|
41
41
|
align-items: center;
|
|
42
|
-
|
|
43
|
-
|
|
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
44
|
}
|
|
45
45
|
|
|
46
|
-
.ws-masthead .pf-
|
|
47
|
-
|
|
48
|
-
--pf-
|
|
49
|
-
--pf-
|
|
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
50
|
}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ToolbarItem,
|
|
25
25
|
SkipToContent,
|
|
26
26
|
Switch,
|
|
27
|
-
SearchInput,
|
|
27
|
+
// SearchInput,
|
|
28
28
|
ToggleGroup,
|
|
29
29
|
ToggleGroupItem
|
|
30
30
|
} from '@patternfly/react-core';
|
|
@@ -35,6 +35,7 @@ import SunIcon from '@patternfly/react-icons/dist/esm/icons/sun-icon';
|
|
|
35
35
|
import { SideNav, TopNav, GdprBanner } from '../../components';
|
|
36
36
|
import staticVersions from '../../versions.json';
|
|
37
37
|
import v5Logo from '../PF-HorizontalLogo-Reverse.svg';
|
|
38
|
+
import { Footer } from '@patternfly/documentation-framework/components';
|
|
38
39
|
|
|
39
40
|
export const RtlContext = createContext(false);
|
|
40
41
|
|
|
@@ -51,38 +52,38 @@ const HeaderTools = ({
|
|
|
51
52
|
const initialVersion = staticVersions.Releases.find(release => release.latest);
|
|
52
53
|
const latestVersion = versions.Releases.find(version => version.latest);
|
|
53
54
|
const previousReleases = Object.values(versions.Releases).filter(version => !version.hidden && !version.latest);
|
|
54
|
-
const hasSearch = algolia;
|
|
55
|
+
// const hasSearch = algolia;
|
|
55
56
|
const [isDropdownOpen, setDropdownOpen] = useState(false);
|
|
56
|
-
const [searchValue, setSearchValue] = React.useState('');
|
|
57
|
-
const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
|
|
57
|
+
// const [searchValue, setSearchValue] = React.useState('');
|
|
58
|
+
// const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
|
|
58
59
|
const [isDarkTheme, setIsDarkTheme] = React.useState(false);
|
|
59
60
|
|
|
60
61
|
const getDropdownItem = (version, isLatest = false) => (
|
|
61
62
|
<DropdownItem itemId={version.name} key={version.name} to={isLatest ? '/' : `/${version.name}`}>
|
|
62
|
-
{`
|
|
63
|
+
{`Current ${version.name}`}
|
|
63
64
|
</DropdownItem>
|
|
64
65
|
);
|
|
65
66
|
|
|
66
|
-
const onChange = (_evt, value) => {
|
|
67
|
-
|
|
68
|
-
};
|
|
67
|
+
// const onChange = (_evt, value) => {
|
|
68
|
+
// setSearchValue(value);
|
|
69
|
+
// };
|
|
69
70
|
|
|
70
|
-
const onToggleExpand = (_evt, isSearchExpanded) => {
|
|
71
|
-
|
|
72
|
-
};
|
|
71
|
+
// const onToggleExpand = (_evt, isSearchExpanded) => {
|
|
72
|
+
// setIsSearchExpanded(!isSearchExpanded);
|
|
73
|
+
// };
|
|
73
74
|
|
|
74
75
|
const toggleDarkTheme = (_evt, selected) => {
|
|
75
76
|
const darkThemeToggleClicked = !selected === isDarkTheme
|
|
76
|
-
document.querySelector('html').classList.toggle('pf-
|
|
77
|
+
document.querySelector('html').classList.toggle('pf-v6-theme-dark', darkThemeToggleClicked);
|
|
77
78
|
setIsDarkTheme(darkThemeToggleClicked);
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
useEffect(() => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, [isSearchExpanded])
|
|
81
|
+
// useEffect(() => {
|
|
82
|
+
// // reattach algolia to input each time search is expanded
|
|
83
|
+
// if (hasSearch && isSearchExpanded) {
|
|
84
|
+
// attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
|
|
85
|
+
// }
|
|
86
|
+
// }, [isSearchExpanded])
|
|
86
87
|
|
|
87
88
|
return (
|
|
88
89
|
<Toolbar isFullHeight>
|
|
@@ -93,7 +94,7 @@ const HeaderTools = ({
|
|
|
93
94
|
</ToolbarItem>
|
|
94
95
|
)}
|
|
95
96
|
<ToolbarGroup
|
|
96
|
-
align={{ default: '
|
|
97
|
+
align={{ default: 'alignEnd' }}
|
|
97
98
|
spaceItems={{ default: 'spacerNone', md: 'spacerMd' }}
|
|
98
99
|
>
|
|
99
100
|
{hasDarkThemeSwitcher && (
|
|
@@ -109,7 +110,7 @@ const HeaderTools = ({
|
|
|
109
110
|
<Switch id="ws-rtl-switch" label={'RTL'} defaultChecked={isRTL} onChange={() => setIsRTL(isRTL => !isRTL)} />
|
|
110
111
|
</ToolbarItem>
|
|
111
112
|
)}
|
|
112
|
-
{hasSearch && (
|
|
113
|
+
{/* {hasSearch && (
|
|
113
114
|
<ToolbarItem>
|
|
114
115
|
<SearchInput
|
|
115
116
|
className="ws-global-search"
|
|
@@ -120,7 +121,7 @@ const HeaderTools = ({
|
|
|
120
121
|
expandableInput={{ isExpanded: isSearchExpanded, onToggleExpand, toggleAriaLabel: 'Expandable search input toggle' }}
|
|
121
122
|
/>
|
|
122
123
|
</ToolbarItem>
|
|
123
|
-
)}
|
|
124
|
+
)} */}
|
|
124
125
|
<ToolbarItem>
|
|
125
126
|
<Button
|
|
126
127
|
component="a"
|
|
@@ -145,7 +146,7 @@ const HeaderTools = ({
|
|
|
145
146
|
onClick={() => setDropdownOpen(!isDropdownOpen)}
|
|
146
147
|
isExpanded={isDropdownOpen}
|
|
147
148
|
>
|
|
148
|
-
|
|
149
|
+
Current alphas
|
|
149
150
|
</MenuToggle>
|
|
150
151
|
)}
|
|
151
152
|
>
|
|
@@ -163,12 +164,35 @@ const HeaderTools = ({
|
|
|
163
164
|
</DropdownList>
|
|
164
165
|
</DropdownGroup>
|
|
165
166
|
)}
|
|
166
|
-
<Divider key="
|
|
167
|
+
<Divider key="divider1" className="ws-switcher-divider"/>
|
|
168
|
+
<DropdownGroup key="Alpha preview version" label="Alpha preview version">
|
|
169
|
+
<DropdownList>
|
|
170
|
+
<DropdownItem
|
|
171
|
+
key="PatternFly 6"
|
|
172
|
+
className="ws-patternfly-versions"
|
|
173
|
+
isExternalLink
|
|
174
|
+
to="https://staging-v6.patternfly.org/"
|
|
175
|
+
itemId="patternfly-6"
|
|
176
|
+
>
|
|
177
|
+
PatternFly 6
|
|
178
|
+
</DropdownItem>
|
|
179
|
+
</DropdownList>
|
|
180
|
+
</DropdownGroup>
|
|
181
|
+
<Divider key="divider2" className="ws-switcher-divider"/>
|
|
167
182
|
<DropdownGroup key="Previous versions" label="Previous versions">
|
|
168
183
|
<DropdownList>
|
|
184
|
+
<DropdownItem
|
|
185
|
+
key="PatternFly 5"
|
|
186
|
+
className="ws-patternfly-versions"
|
|
187
|
+
isExternalLink
|
|
188
|
+
to="https://www.patternfly.org"
|
|
189
|
+
itemId="patternfly-5"
|
|
190
|
+
>
|
|
191
|
+
PatternFly 5
|
|
192
|
+
</DropdownItem>
|
|
169
193
|
<DropdownItem
|
|
170
194
|
key="PatternFly 4"
|
|
171
|
-
className="ws-patternfly-
|
|
195
|
+
className="ws-patternfly-versions"
|
|
172
196
|
isExternalLink
|
|
173
197
|
to="http://v4-archive.patternfly.org/v4/"
|
|
174
198
|
itemId="patternfly-4"
|
|
@@ -177,7 +201,7 @@ const HeaderTools = ({
|
|
|
177
201
|
</DropdownItem>
|
|
178
202
|
<DropdownItem
|
|
179
203
|
key="PatternFly 3"
|
|
180
|
-
className="ws-patternfly-
|
|
204
|
+
className="ws-patternfly-versions"
|
|
181
205
|
isExternalLink
|
|
182
206
|
to="https://pf3.patternfly.org/"
|
|
183
207
|
itemId="patternfly-3"
|
|
@@ -260,7 +284,34 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
260
284
|
<MastheadMain>
|
|
261
285
|
<MastheadBrand href={prurl || '/'}>
|
|
262
286
|
{prnum ? `PR #${prnum}` : (
|
|
263
|
-
<
|
|
287
|
+
<svg height="40px" viewBox="0 0 679 158">
|
|
288
|
+
<title>PF-HorizontalLogo-Color</title>
|
|
289
|
+
<defs>
|
|
290
|
+
<linearGradient x1="68%" y1="2.25860997e-13%" x2="32%" y2="100%" id="linearGradient-website-masthead">
|
|
291
|
+
<stop stopColor="#2B9AF3" offset="0%"></stop>
|
|
292
|
+
<stop stopColor="#73BCF7" stopOpacity="0.502212631" offset="100%"></stop>
|
|
293
|
+
</linearGradient>
|
|
294
|
+
</defs>
|
|
295
|
+
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
296
|
+
<g transform="translate(206.000000, 45.750000)" fill="var(--pf-t--global--text--color--regular)" fillRule="nonzero">
|
|
297
|
+
<path d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"></path>
|
|
298
|
+
<path d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"></path>
|
|
299
|
+
<path d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"></path>
|
|
300
|
+
<path d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"></path>
|
|
301
|
+
<path d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"></path>
|
|
302
|
+
<path d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"></path>
|
|
303
|
+
<path d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"></path>
|
|
304
|
+
<polygon points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"></polygon>
|
|
305
|
+
<polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25"></polygon>
|
|
306
|
+
<path d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"></path>
|
|
307
|
+
</g>
|
|
308
|
+
<g transform="translate(0.000000, 0.000000)">
|
|
309
|
+
<path d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z" fill='var(--pf-t--color--blue--50)'></path>
|
|
310
|
+
<path d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z" fill="url(#linearGradient-website-masthead)"></path>
|
|
311
|
+
<path d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z" fill="url(#linearGradient-website-masthead)" transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "></path>
|
|
312
|
+
</g>
|
|
313
|
+
</g>
|
|
314
|
+
</svg>
|
|
264
315
|
)}
|
|
265
316
|
</MastheadBrand>
|
|
266
317
|
</MastheadMain>
|
|
@@ -287,6 +338,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
287
338
|
<Page
|
|
288
339
|
id="ws-page"
|
|
289
340
|
mainContainerId="ws-page-main"
|
|
341
|
+
mainComponent="div"
|
|
290
342
|
header={Header}
|
|
291
343
|
sidebar={SideBar}
|
|
292
344
|
skipToContent={<SkipToContent href="#ws-page-main">Skip to content</SkipToContent>}
|
|
@@ -294,6 +346,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
294
346
|
defaultManagedSidebarIsOpen={navOpenProp}
|
|
295
347
|
>
|
|
296
348
|
{children}
|
|
349
|
+
{process.env.hasFooter && <Footer />}
|
|
297
350
|
</Page>
|
|
298
351
|
<div id="ws-page-banners">
|
|
299
352
|
{hasGdprBanner && <GdprBanner />}
|